diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_.js b/spinifex/services/spinifexui/frontend/dist/assets/_.js index d11cdee00..120f57942 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Ht as i,It as a,Lt as o,Pt as s}from"./auth.js";import{t as c}from"./back-link.js";import{n as l,r as u,t as d}from"./upload-button.js";import{r as f}from"./s3.js";import{D as p,kt as m}from"./index.js";import{t as h}from"./error-banner.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=p.useParams(),y=a(v??``),{data:b}=n(m(t,y)),x=f(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents??[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes??[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>{let r=`${E.slice(0,n+1).join(`/`)}/`;return{name:e,path:`/s3/ls/${t}/${r}`}})],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(c,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(d,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(h,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>{if(!e.Prefix)return null;let n=i(o(e.Prefix,y)),r=s(e.Prefix,y);return(0,_.jsx)(u,{bucketName:t,folderName:n,fullPrefix:r},e.Prefix)})})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>{if(!e.Key)return null;let n=o(e.Key,y),r=s(e.Key,y);return(0,_.jsx)(l,{bucketName:t,displayName:n,fullKey:r,object:e},e.Key)})]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(r,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Ht as i,It as a,Lt as o,Pt as s}from"./auth.js";import{t as c}from"./back-link.js";import{n as l,r as u,t as d}from"./upload-button.js";import{r as f}from"./s3.js";import{D as p,Rt as m}from"./index.js";import{t as h}from"./error-banner.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=p.useParams(),y=a(v??``),{data:b}=n(m(t,y)),x=f(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents??[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes??[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>{let r=`${E.slice(0,n+1).join(`/`)}/`;return{name:e,path:`/s3/ls/${t}/${r}`}})],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(c,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(d,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(h,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>{if(!e.Prefix)return null;let n=i(o(e.Prefix,y)),r=s(e.Prefix,y);return(0,_.jsx)(u,{bucketName:t,folderName:n,fullPrefix:r},e.Prefix)})})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>{if(!e.Key)return null;let n=o(e.Key,y),r=s(e.Key,y);return(0,_.jsx)(l,{bucketName:t,displayName:n,fullKey:r,object:e},e.Key)})]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(r,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js index eefe5ee04..7b562df6c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{xi as a}from"./awsClient.js";import{Vt as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{At as l,Gt as u,Mt as d,Qt as f,Ut as p,Vt as m,ai as h,ci as g,fi as _,hi as v,in as y,li as b,oi as x,on as S,pi as C,si as ee,ui as w,xn as T,zt as E}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as ne,r as P,t as F}from"./card.js";var I=v(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),L=v(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),R=v(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),re=v(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),z=r(),B=t(n(),1),V=e(),H=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,z.c)(110),{isAdmin:t,version:n,license:r}=T(),[a,o]=(0,B.useState)(!1),l;e[0]===t?l=e[1]:(l={...A,enabled:t},e[0]=t,e[1]=l);let{data:u}=i(l),d;e[2]===t?d=e[3]:(d={...k,enabled:t},e[2]=t,e[3]=d);let{data:f}=i(d);if(!t||!n)return null;let p,m,h,g,_,v,y,b,x,S,C,w,E,D,O,M,N,I,L;if(e[4]!==r||e[5]!==u?.cluster_mode||e[6]!==u?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==f?.vms){g=u?.nodes??[];let t;e[31]===f?.vms?t=e[32]:(t=f?.vms??[],e[31]=f?.vms,e[32]=t);let i=t,a=u?.cluster_mode??`single-node`;h=r===`open-source`;let o=g[0]?.region??null,s=g.reduce(se,0),c=g.reduce(oe,0),l=g.reduce(ae,0),d=g.reduce(ie,0);C=`mb-6 space-y-4`,b=`grid grid-cols-1 gap-4 md:grid-cols-3`;let T;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=T):T=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,V.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let R;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=R):R=e[37];let z;e[38]===n.commit?z=e[39]:(z=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,V.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=z);let B;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=B):B=e[40];let H;e[41]!==n.arch||e[42]!==n.os?(H=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[B,(0,V.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=H):H=e[43],x=(0,V.jsxs)(F,{children:[T,(0,V.jsxs)(P,{className:`space-y-1 text-xs`,children:[A,z,H,o&&(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,V.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=h?`secondary`:`default`,G=h?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,V.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=h?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,V.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===h?X=e[53]:(X=h&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=h,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(S=(0,V.jsxs)(F,{children:[U,(0,V.jsxs)(P,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=S):S=e[57],m=F,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=y):y=e[58],p=P,N=`space-y-2 text-xs`,e[59]===a?I=e[60]:(I=(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=I);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],L=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,V.jsx)(`span`,{children:g.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?_=e[64]:(_=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,V.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=_);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],v=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,V.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],w=d.toFixed(1),E=` / `,D=l.toFixed(1),e[4]=r,e[5]=u?.cluster_mode,e[6]=u?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=f?.vms,e[12]=p,e[13]=m,e[14]=h,e[15]=g,e[16]=_,e[17]=v,e[18]=y,e[19]=b,e[20]=x,e[21]=S,e[22]=C,e[23]=w,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=I,e[30]=L}else p=e[12],m=e[13],h=e[14],g=e[15],_=e[16],v=e[17],y=e[18],b=e[19],x=e[20],S=e[21],C=e[22],w=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],I=e[29],L=e[30];let U;e[67]!==w||e[68]!==E||e[69]!==D?(U=(0,V.jsxs)(`span`,{children:[w,E,D,` GB`]}),e[67]=w,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,V.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==p||e[76]!==_||e[77]!==v||e[78]!==W||e[79]!==N||e[80]!==I||e[81]!==L?(G=(0,V.jsxs)(p,{className:N,children:[I,L,_,v,W]}),e[75]=p,e[76]=_,e[77]=v,e[78]=W,e[79]=N,e[80]=I,e[81]=L,e[82]=G):G=e[82];let K;e[83]!==m||e[84]!==y||e[85]!==G?(K=(0,V.jsxs)(m,{children:[y,G]}),e[83]=m,e[84]=y,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==b||e[88]!==x||e[89]!==S||e[90]!==K?(q=(0,V.jsxs)(`div`,{className:b,children:[x,S,K]}),e[87]=b,e[88]=x,e[89]=S,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==g||e[93]!==a?(J=g.length>0&&(0,V.jsxs)(F,{children:[(0,V.jsx)(j,{className:`pb-0`,children:(0,V.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,V.jsx)(s,{className:`size-3.5`}):(0,V.jsx)(c,{className:`size-3.5`}),`Nodes (`,g.length,`)`]})}),a&&(0,V.jsx)(P,{className:`pt-2`,children:(0,V.jsx)(ce,{nodes:g})})]}),e[92]=g,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===h?X=e[97]:(X=H.map(e=>(0,V.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,V.jsx)(`span`,{className:h?`text-muted-foreground`:void 0,children:e.name}),h?(0,V.jsx)(R,{className:`size-3 text-muted-foreground`}):(0,V.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=h,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,V.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===h?Q=e[101]:(Q=h&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=h,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,V.jsxs)(F,{children:[Y,(0,V.jsxs)(P,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==C||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,V.jsxs)(`div`,{className:C,children:[q,J,$]}),e[105]=C,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,z.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(`thead`,{children:(0,V.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,V.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`overflow-x-auto`,children:(0,V.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,V.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,V.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,V.jsx)(`td`,{className:`py-1.5`,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,z.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(D,{title:`Dashboard`}),n=(0,V.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsxs)(V.Fragment,{children:[t,n,(0,V.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(j,{children:(0,V.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(F,{children:[t,(0,V.jsx)(P,{children:(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,V.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,z.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,V.jsxs)(ne,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,V.jsx)(N,{children:(0,V.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,V.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,V.jsx)(P,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,V.jsx)(M,{children:(0,V.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,V.jsxs)(F,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,z.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,V.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,z.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,V.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,z.c)(16),{data:t}=i(E),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(_,{className:`size-3.5`}),e[6]=l):l=e[6];let u;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(u=n.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[a.length,` running`]}),(0,V.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,V.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=u):u=e[12];let d;return e[13]!==n.length||e[14]!==u?(d=(0,V.jsx)(Y,{title:`Instances`,icon:l,count:n.length,to:`/ec2/describe-instances`,children:u}),e[13]=n.length,e[14]=u,e[15]=d):d=e[15],d}function $(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,z.c)(3),{data:t}=i(y),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(I,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,V.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[i,` GiB total`]}),(0,V.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,V.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,V.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,V.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,z.c)(3),{data:t}=i(S),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(b,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,V.jsxs)(Z,{children:[(0,V.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,V.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,z.c)(3),{data:t}=i(p),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(w,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,z.c)(3),{data:t}=i(l),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(L,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,z.c)(3),{data:t}=i(f),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(x,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,z.c)(3),{data:t}=i(u),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(h,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,z.c)(3),{data:t}=i(m),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(g,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,z.c)(3),{data:t}=i(d),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(C,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{Ni as a}from"./awsClient.js";import{Vt as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{An as l,Jt as u,Qt as d,Si as f,Vt as p,Xt as m,_i as h,en as g,gi as ee,hi as _,hn as v,mi as y,pn as b,sn as x,vi as S,wi as C,xi as w,yi as T,zt as E}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as P,r as F,t as I}from"./card.js";var L=C(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),R=C(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),z=C(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),ne=C(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),B=r(),V=t(n(),1),H=e(),re=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,B.c)(110),{isAdmin:t,version:n,license:r}=l(),[a,o]=(0,V.useState)(!1),u;e[0]===t?u=e[1]:(u={...A,enabled:t},e[0]=t,e[1]=u);let{data:d}=i(u),f;e[2]===t?f=e[3]:(f={...k,enabled:t},e[2]=t,e[3]=f);let{data:p}=i(f);if(!t||!n)return null;let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,M,N,L,R;if(e[4]!==r||e[5]!==d?.cluster_mode||e[6]!==d?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==p?.vms){_=d?.nodes??[];let t;e[31]===p?.vms?t=e[32]:(t=p?.vms??[],e[31]=p?.vms,e[32]=t);let i=t,a=d?.cluster_mode??`single-node`;g=r===`open-source`;let o=_[0]?.region??null,s=_.reduce(se,0),c=_.reduce(oe,0),l=_.reduce(ae,0),u=_.reduce(ie,0);w=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let f;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsxs)(P,{className:`flex items-center gap-2 text-sm`,children:[(0,H.jsx)(ne,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=f):f=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,H.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let z;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=z):z=e[37];let B;e[38]===n.commit?B=e[39]:(B=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[z,(0,H.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=B);let V;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=V):V=e[40];let re;e[41]!==n.arch||e[42]!==n.os?(re=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[V,(0,H.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=re):re=e[43],S=(0,H.jsxs)(I,{children:[f,(0,H.jsxs)(F,{className:`space-y-1 text-xs`,children:[A,B,re,o&&(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,H.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsx)(P,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=g?`secondary`:`default`,G=g?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,H.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=g?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,H.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===g?X=e[53]:(X=g&&(0,H.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=g,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(C=(0,H.jsxs)(I,{children:[U,(0,H.jsxs)(F,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=C):C=e[57],h=I,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsxs)(P,{className:`flex items-center gap-2 text-sm`,children:[(0,H.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=b):b=e[58],m=F,N=`space-y-2 text-xs`,e[59]===a?L=e[60]:(L=(0,H.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,H.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=L);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],R=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,H.jsx)(`span`,{children:_.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?v=e[64]:(v=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,H.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=v);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],y=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,H.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],T=u.toFixed(1),E=` / `,D=l.toFixed(1),e[4]=r,e[5]=d?.cluster_mode,e[6]=d?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=p?.vms,e[12]=m,e[13]=h,e[14]=g,e[15]=_,e[16]=v,e[17]=y,e[18]=b,e[19]=x,e[20]=S,e[21]=C,e[22]=w,e[23]=T,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=L,e[30]=R}else m=e[12],h=e[13],g=e[14],_=e[15],v=e[16],y=e[17],b=e[18],x=e[19],S=e[20],C=e[21],w=e[22],T=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],L=e[29],R=e[30];let U;e[67]!==T||e[68]!==E||e[69]!==D?(U=(0,H.jsxs)(`span`,{children:[T,E,D,` GB`]}),e[67]=T,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,H.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==m||e[76]!==v||e[77]!==y||e[78]!==W||e[79]!==N||e[80]!==L||e[81]!==R?(G=(0,H.jsxs)(m,{className:N,children:[L,R,v,y,W]}),e[75]=m,e[76]=v,e[77]=y,e[78]=W,e[79]=N,e[80]=L,e[81]=R,e[82]=G):G=e[82];let K;e[83]!==h||e[84]!==b||e[85]!==G?(K=(0,H.jsxs)(h,{children:[b,G]}),e[83]=h,e[84]=b,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==x||e[88]!==S||e[89]!==C||e[90]!==K?(q=(0,H.jsxs)(`div`,{className:x,children:[S,C,K]}),e[87]=x,e[88]=S,e[89]=C,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==_||e[93]!==a?(J=_.length>0&&(0,H.jsxs)(I,{children:[(0,H.jsx)(j,{className:`pb-0`,children:(0,H.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,H.jsx)(s,{className:`size-3.5`}):(0,H.jsx)(c,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),a&&(0,H.jsx)(F,{className:`pt-2`,children:(0,H.jsx)(ce,{nodes:_})})]}),e[92]=_,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsx)(P,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===g?X=e[97]:(X=re.map(e=>(0,H.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,H.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,H.jsx)(z,{className:`size-3 text-muted-foreground`}):(0,H.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=g,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,H.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===g?Q=e[101]:(Q=g&&(0,H.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=g,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,H.jsxs)(I,{children:[Y,(0,H.jsxs)(F,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==w||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,H.jsxs)(`div`,{className:w,children:[q,J,$]}),e[105]=w,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,B.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,H.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,H.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,H.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,H.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,H.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,H.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,H.jsx)(`td`,{className:`py-1.5`,children:(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,B.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(D,{title:`Dashboard`}),n=(0,H.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,H.jsxs)(H.Fragment,{children:[t,n,(0,H.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,B.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(j,{children:(0,H.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,H.jsxs)(I,{children:[t,(0,H.jsx)(F,{children:(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,H.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,B.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,H.jsxs)(P,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,H.jsx)(N,{children:(0,H.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,H.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,H.jsx)(F,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,H.jsx)(M,{children:(0,H.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,H.jsxs)(I,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,B.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,H.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,B.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,H.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,B.c)(16),{data:t}=i(u),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(w,{className:`size-3.5`}),e[6]=l):l=e[6];let d;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(d=n.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,H.jsxs)(`span`,{children:[a.length,` running`]}),(0,H.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,H.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,H.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=d):d=e[12];let f;return e[13]!==n.length||e[14]!==d?(f=(0,H.jsx)(Y,{title:`Instances`,icon:l,count:n.length,to:`/ec2/describe-instances`,children:d}),e[13]=n.length,e[14]=d,e[15]=f):f=e[15],f}function $(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,B.c)(3),{data:t}=i(b),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(L,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,H.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,H.jsxs)(`span`,{children:[i,` GiB total`]}),(0,H.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,H.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,H.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,H.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,B.c)(3),{data:t}=i(v),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(S,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,H.jsxs)(Z,{children:[(0,H.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,H.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,B.c)(3),{data:t}=i(d),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(T,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,H.jsx)(Z,{children:(0,H.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,B.c)(3),{data:t}=i(E),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(R,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,H.jsx)(Z,{children:(0,H.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,B.c)(3),{data:t}=i(x),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(_,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,B.c)(3),{data:t}=i(g),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(y,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,B.c)(3),{data:t}=i(m),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(h,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,B.c)(3),{data:t}=i(p),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(f,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js index 3ef7e9b0a..1d0100e44 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ht as r}from"./auth.js";import{t as i}from"./back-link.js";import{n as a,r as o,t as s}from"./upload-button.js";import{r as c}from"./s3.js";import{H as l,kt as u}from"./index.js";import{t as d}from"./error-banner.js";import{t as f}from"./page-heading.js";var p=t(),m=e();function h(){let e=(0,p.c)(31),{bucket:t}=l.useParams(),h;e[0]===t?h=e[1]:(h=u(t),e[0]=t,e[1]=h);let{data:g}=n(h),_=c(),v;e[2]===g.Contents?v=e[3]:(v=g.Contents??[],e[2]=g.Contents,e[3]=v);let y=v,b;e[4]===g.CommonPrefixes?b=e[5]:(b=g.CommonPrefixes??[],e[4]=g.CommonPrefixes,e[5]=b);let x=b,S;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(i,{to:`/s3/ls`,children:`Back to buckets`}),e[6]=S):S=e[6];let C;e[7]!==t||e[8]!==_.isPending||e[9]!==_.mutateAsync?(C=(0,m.jsx)(s,{bucket:t,isPending:_.isPending,onUpload:_.mutateAsync}),e[7]=t,e[8]=_.isPending,e[9]=_.mutateAsync,e[10]=C):C=e[10];let w;e[11]!==t||e[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:t}),e[11]=t,e[12]=C,e[13]=w):w=e[13];let T;e[14]===_.error?T=e[15]:(T=_.error&&(0,m.jsx)(d,{error:_.error,msg:`Failed to upload object`}),e[14]=_.error,e[15]=T);let E;e[16]!==t||e[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>{if(!e.Prefix)return null;let n=r(e.Prefix);return(0,m.jsx)(o,{bucketName:t,folderName:n,fullPrefix:e.Prefix},e.Prefix)})})]}),e[16]=t,e[17]=x,e[18]=E):E=e[18];let D;e[19]!==t||e[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(a,{bucketName:t,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),e[19]=t,e[20]=y,e[21]=D):D=e[21];let O;e[22]!==x.length||e[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),e[22]=x.length,e[23]=y.length,e[24]=O):O=e[24];let k;return e[25]!==w||e[26]!==T||e[27]!==E||e[28]!==D||e[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),e[25]=w,e[26]=T,e[27]=E,e[28]=D,e[29]=O,e[30]=k):k=e[30],k}export{h as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ht as r}from"./auth.js";import{t as i}from"./back-link.js";import{n as a,r as o,t as s}from"./upload-button.js";import{r as c}from"./s3.js";import{H as l,Rt as u}from"./index.js";import{t as d}from"./error-banner.js";import{t as f}from"./page-heading.js";var p=t(),m=e();function h(){let e=(0,p.c)(31),{bucket:t}=l.useParams(),h;e[0]===t?h=e[1]:(h=u(t),e[0]=t,e[1]=h);let{data:g}=n(h),_=c(),v;e[2]===g.Contents?v=e[3]:(v=g.Contents??[],e[2]=g.Contents,e[3]=v);let y=v,b;e[4]===g.CommonPrefixes?b=e[5]:(b=g.CommonPrefixes??[],e[4]=g.CommonPrefixes,e[5]=b);let x=b,S;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(i,{to:`/s3/ls`,children:`Back to buckets`}),e[6]=S):S=e[6];let C;e[7]!==t||e[8]!==_.isPending||e[9]!==_.mutateAsync?(C=(0,m.jsx)(s,{bucket:t,isPending:_.isPending,onUpload:_.mutateAsync}),e[7]=t,e[8]=_.isPending,e[9]=_.mutateAsync,e[10]=C):C=e[10];let w;e[11]!==t||e[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:t}),e[11]=t,e[12]=C,e[13]=w):w=e[13];let T;e[14]===_.error?T=e[15]:(T=_.error&&(0,m.jsx)(d,{error:_.error,msg:`Failed to upload object`}),e[14]=_.error,e[15]=T);let E;e[16]!==t||e[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>{if(!e.Prefix)return null;let n=r(e.Prefix);return(0,m.jsx)(o,{bucketName:t,folderName:n,fullPrefix:e.Prefix},e.Prefix)})})]}),e[16]=t,e[17]=x,e[18]=E):E=e[18];let D;e[19]!==t||e[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(a,{bucketName:t,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),e[19]=t,e[20]=y,e[21]=D):D=e[21];let O;e[22]!==x.length||e[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),e[22]=x.length,e[23]=y.length,e[24]=O):O=e[24];let k;return e[25]!==w||e[26]!==T||e[27]!==E||e[28]!==D||e[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),e[25]=w,e[26]=T,e[27]=E,e[28]=D,e[29]=O,e[30]=k):k=e[30],k}export{h as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js index 32c6efa80..e9a8fa02e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{xi as o}from"./awsClient.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{i as u,l as d,o as f,r as p,u as m}from"./ecs.js";import{Qt as h,Ut as g,at as _,b as v,ct as y,dt as b,nn as x,st as S,vi as C,xr as w}from"./index.js";import{t as ee}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,t as D}from"./field.js";import{a as O,i as k,l as A,n as j,o as M,r as N,s as P,t as F}from"./alert-dialog.js";import{t as I}from"./delete-confirmation-dialog.js";import{n as L,t as R}from"./detail-row.js";import{t as z}from"./state-badge.js";import{i as B,n as te,r as ne,t as re}from"./tabs.js";var V=r(),H=t(n(),1),U=e(),W=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function G({clusterName:e,open:t,onOpenChange:n}){let r=f(),{data:a}=i(x),{data:o}=i(h),{data:s}=i(g),c=a?.Subnets??[],l=o?.SecurityGroups??[],u=s?.KeyPairs??[],[d,p]=(0,H.useState)(`t3.small`),[m,_]=(0,H.useState)(1),[v,y]=(0,H.useState)(``),[b,S]=(0,H.useState)(``),[C,T]=(0,H.useState)(``);function I(e){e||(p(`t3.small`),_(1),y(``),S(``),T(``),r.reset()),n(e)}async function L(){try{await r.mutateAsync({Cluster:e,InstanceType:d||void 0,Count:m,SubnetID:v,SecurityGroupID:b,KeyName:C||void 0}),I(!1)}catch{}}let R=r.isPending||v===``||b===``;return(0,U.jsx)(F,{onOpenChange:I,open:t,children:(0,U.jsxs)(k,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,U.jsxs)(P,{children:[(0,U.jsx)(A,{children:`Provision EC2 capacity`}),(0,U.jsxs)(O,{children:[`Launch container instances into cluster “`,e,`”. They register automatically once booted.`]})]}),(0,U.jsxs)(`div`,{className:`space-y-4`,children:[(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-instance-type`,children:`Instance type`})}),(0,U.jsx)(w,{id:`provision-instance-type`,onChange:e=>p(e.target.value),placeholder:`t3.small`,value:d})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-count`,children:`Count`})}),(0,U.jsx)(w,{id:`provision-count`,max:10,min:1,onChange:e=>_(Number(e.target.value)),type:`number`,value:m})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-subnet`,children:`Subnet`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-subnet`,onChange:e=>y(e.target.value),value:v,children:[(0,U.jsx)(`option`,{value:``,children:`Select a subnet`}),c.map(e=>(0,U.jsxs)(`option`,{value:e.SubnetId??``,children:[e.SubnetId,` (`,e.CidrBlock,e.AvailabilityZone?`, ${e.AvailabilityZone}`:``,`)`]},e.SubnetId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-sg`,children:`Security group`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-sg`,onChange:e=>S(e.target.value),value:b,children:[(0,U.jsx)(`option`,{value:``,children:`Select a security group`}),l.map(e=>(0,U.jsxs)(`option`,{value:e.GroupId??``,children:[e.GroupId,` (`,e.GroupName,`)`]},e.GroupId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-key`,children:`Key pair`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-key`,onChange:e=>T(e.target.value),value:C,children:[(0,U.jsx)(`option`,{value:``,children:`None`}),u.map(e=>(0,U.jsx)(`option`,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))]})]})]}),r.error&&(0,U.jsx)(ee,{error:r.error instanceof Error?r.error:void 0,msg:`Failed to provision capacity.`}),(0,U.jsxs)(M,{children:[(0,U.jsx)(N,{children:`Cancel`}),(0,U.jsx)(j,{disabled:R,onClick:e=>{e.preventDefault(),L()},children:r.isPending?`Provisioning…`:`Provision`})]})]})})}var K={drain:`Drain`,activate:`Activate`,deregister:`Deregister`},q={drain:`Draining force-stops the service-owned tasks on this instance so it can be retired.`,activate:`This returns the instance to ACTIVE so the scheduler can place tasks on it again.`,deregister:`This force-removes the container instance record. Any tasks it still holds are stopped.`};function ie(e){let t=(0,V.c)(28),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=S(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=m(),s=u(),[c,d]=(0,H.useState)(null),[f,p]=(0,H.useState)(!1),h;t[2]!==n||t[3]!==s||t[4]!==c||t[5]!==o?(h=function(){if(!c)return;let e=()=>d(null);if(c.action===`deregister`){s.mutate({cluster:n,containerInstance:c.arn},{onSuccess:e});return}o.mutate({cluster:n,containerInstance:c.arn,status:c.action===`drain`?`DRAINING`:`ACTIVE`},{onSuccess:e})},t[2]=n,t[3]=s,t[4]=c,t[5]=o,t[6]=h):h=t[6];let g=h,_=o.isError||s.isError,v=o.error??s.error,y=o.isPending||s.isPending,b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(l,{onClick:()=>p(!0),size:`sm`,children:`Provision EC2 capacity`})}),t[7]=b):b=t[7];let x;t[8]!==v||t[9]!==_?(x=_&&(0,U.jsx)(ee,{error:v instanceof Error?v:void 0,msg:`Container instance action failed.`}),t[8]=v,t[9]=_,t[10]=x):x=t[10];let C;t[11]===i?C=t[12]:(C=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No container instances found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`EC2 Instance`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=e.containerInstanceArn??``,n=e.status===`DRAINING`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.ec2InstanceId}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,U.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,U.jsx)(l,{"aria-label":n?`Activate container instance`:`Drain container instance`,onClick:()=>d({arn:t,action:n?`activate`:`drain`}),size:`sm`,variant:`outline`,children:n?`Activate`:`Drain`}),(0,U.jsx)(l,{onClick:()=>d({arn:t,action:`deregister`}),size:`sm`,variant:`destructive`,children:`Deregister`})]})})]},t)})})]})}),t[11]=i,t[12]=C);let w;t[13]!==n||t[14]!==f?(w=(0,U.jsx)(G,{clusterName:n,onOpenChange:p,open:f}),t[13]=n,t[14]=f,t[15]=w):w=t[15];let T=c?K[c.action]:`Confirm`,E=c?q[c.action]:``,D;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>!e&&d(null),t[16]=D):D=t[16];let O=c!==null,k;t[17]!==g||t[18]!==y||t[19]!==O||t[20]!==T||t[21]!==E?(k=(0,U.jsx)(I,{confirmLabel:T,description:E,isPending:y,onConfirm:g,onOpenChange:D,open:O,title:`Container instance`}),t[17]=g,t[18]=y,t[19]=O,t[20]=T,t[21]=E,t[22]=k):k=t[22];let A;return t[23]!==k||t[24]!==x||t[25]!==C||t[26]!==w?(A=(0,U.jsxs)(U.Fragment,{children:[b,x,C,w,k]}),t[23]=k,t[24]=x,t[25]=C,t[26]=w,t[27]=A):A=t[27],A}function J(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function ae(e){let t=(0,V.c)(13),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=y(n),t[0]=n,t[1]=r);let{data:i}=a(r),s;t[2]===n?s=t[3]:(s={cluster:n},t[2]=n,t[3]=s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(l,{size:`sm`,children:`Create service`}),t[4]=c):c=t[4];let u;t[5]===s?u=t[6]:(u=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(o,{search:s,to:`/ecs/create-service`,children:c})}),t[5]=s,t[6]=u);let d;t[7]!==n||t[8]!==i?(d=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No services found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task Definition`})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(o,{className:`underline`,params:{clusterName:n,serviceName:e.serviceName??``},to:`/ecs/list-clusters/$clusterName/services/$serviceName`,children:e.serviceName})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:J(e.taskDefinition)})]},e.serviceArn??e.serviceName))})]})}),t[7]=n,t[8]=i,t[9]=d):d=t[9];let f;return t[10]!==u||t[11]!==d?(f=(0,U.jsxs)(U.Fragment,{children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function Y(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function oe(e){let t=(0,V.c)(27),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=b(n),t[0]=n,t[1]=r);let{data:i}=a(r),s=d(),[c,u]=(0,H.useState)(null),f;t[2]!==n||t[3]!==c||t[4]!==s?(f=function(){c&&s.mutate({cluster:n,task:c},{onSuccess:()=>u(null)})},t[2]=n,t[3]=c,t[4]=s,t[5]=f):f=t[5];let p=f,m;t[6]===n?m=t[7]:(m={cluster:n},t[6]=n,t[7]=m);let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,U.jsx)(l,{size:`sm`,children:`Run task`}),t[8]=h):h=t[8];let g;t[9]===m?g=t[10]:(g=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(o,{search:m,to:`/ecs/run-task`,children:h})}),t[9]=m,t[10]=g);let _;t[11]!==s.error||t[12]!==s.isError?(_=s.isError&&(0,U.jsx)(ee,{error:s.error instanceof Error?s.error:void 0,msg:`Failed to stop task.`}),t[11]=s.error,t[12]=s.isError,t[13]=_):_=t[13];let v;t[14]!==n||t[15]!==i?(v=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tasks found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Last Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Group`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=Y(e.taskArn),r=e.lastStatus!==`STOPPED`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:(0,U.jsx)(o,{className:`underline`,params:{clusterName:n,taskId:t},to:`/ecs/list-clusters/$clusterName/tasks/$taskId`,children:t})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.lastStatus})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredStatus}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.group}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:r&&(0,U.jsx)(l,{onClick:()=>u(e.taskArn??t),size:`sm`,variant:`destructive`,children:`Stop`})})]},t)})})]})}),t[14]=n,t[15]=i,t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(null),t[17]=y):y=t[17];let x=c!==null,S;t[18]!==p||t[19]!==s.isPending||t[20]!==x?(S=(0,U.jsx)(I,{confirmLabel:`Stop task`,description:`This stops the task and releases its ENI and reserved capacity.`,isPending:s.isPending,onConfirm:p,onOpenChange:y,open:x,pendingLabel:`Stopping…`,title:`Stop task`}),t[18]=p,t[19]=s.isPending,t[20]=x,t[21]=S):S=t[21];let C;return t[22]!==S||t[23]!==g||t[24]!==_||t[25]!==v?(C=(0,U.jsxs)(U.Fragment,{children:[g,_,v,S]}),t[22]=S,t[23]=g,t[24]=_,t[25]=v,t[26]=C):C=t[26],C}function X(e){let t=(0,V.c)(70),{clusterName:n}=e,r=C(),[i,o]=(0,H.useState)(!1),u;t[0]===n?u=t[1]:(u=_(n),t[0]=n,t[1]=u);let{data:d}=a(u),f=p(),m;t[2]!==n||t[3]!==f||t[4]!==r?(m=function(){f.mutate(n,{onSuccess:()=>{r({to:`/ecs/list-clusters`})}})},t[2]=n,t[3]=f,t[4]=r,t[5]=m):m=t[5];let h=m;if(!d){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,U.jsx)(s,{to:`/ecs/list-clusters`,children:`Clusters`}),t[6]=e):e=t[6];let r;t[7]===n?r=t[8]:(r=(0,U.jsx)(T,{subtitle:`Cluster Details`,title:n}),t[7]=n,t[8]=r);let i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`Cluster not found.`}),t[9]=i):i=t[9];let a;return t[10]===r?a=t[11]:(a=(0,U.jsxs)(U.Fragment,{children:[e,r,i]}),t[10]=r,t[11]=a),a}let g;t[12]===d.tags?g=t[13]:(g=d.tags??[],t[12]=d.tags,t[13]=g);let v=g,y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,U.jsx)(s,{to:`/ecs/list-clusters`,children:`Clusters`}),t[14]=y):y=t[14];let b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>o(!0),t[15]=b):b=t[15];let x;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,U.jsxs)(l,{onClick:b,size:`sm`,variant:`destructive`,children:[(0,U.jsx)(c,{className:`size-4`}),`Delete`]}),t[16]=x):x=t[16];let S;t[17]===d.status?S=t[18]:(S=(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[x,(0,U.jsx)(z,{state:d.status})]}),t[17]=d.status,t[18]=S);let w;t[19]!==n||t[20]!==S?(w=(0,U.jsx)(T,{actions:S,subtitle:`Cluster Details`,title:n}),t[19]=n,t[20]=S,t[21]=w):w=t[21];let E;t[22]!==f.error||t[23]!==f.isError?(E=f.isError&&(0,U.jsx)(ee,{error:f.error instanceof Error?f.error:void 0,msg:`Failed to delete cluster.`}),t[22]=f.error,t[23]=f.isError,t[24]=E):E=t[24];let D;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,U.jsx)(L.Header,{children:`Overview`}),t[25]=D):D=t[25];let O;t[26]===d.clusterArn?O=t[27]:(O=(0,U.jsx)(R,{label:`ARN`,value:d.clusterArn}),t[26]=d.clusterArn,t[27]=O);let k;t[28]===d.status?k=t[29]:(k=(0,U.jsx)(R,{label:`Status`,value:d.status}),t[28]=d.status,t[29]=k);let A=String(d.activeServicesCount??0),j;t[30]===A?j=t[31]:(j=(0,U.jsx)(R,{label:`Active services`,value:A}),t[30]=A,t[31]=j);let M=String(d.runningTasksCount??0),N;t[32]===M?N=t[33]:(N=(0,U.jsx)(R,{label:`Running tasks`,value:M}),t[32]=M,t[33]=N);let P=String(d.pendingTasksCount??0),F;t[34]===P?F=t[35]:(F=(0,U.jsx)(R,{label:`Pending tasks`,value:P}),t[34]=P,t[35]=F);let W=String(d.registeredContainerInstancesCount??0),G;t[36]===W?G=t[37]:(G=(0,U.jsx)(R,{label:`Registered instances`,value:W}),t[36]=W,t[37]=G);let K;t[38]!==O||t[39]!==k||t[40]!==j||t[41]!==N||t[42]!==F||t[43]!==G?(K=(0,U.jsxs)(L,{children:[D,(0,U.jsxs)(L.Content,{children:[O,k,j,N,F,G]})]}),t[38]=O,t[39]=k,t[40]=j,t[41]=N,t[42]=F,t[43]=G,t[44]=K):K=t[44];let q;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,U.jsxs)(te,{children:[(0,U.jsx)(B,{value:`services`,children:`Services`}),(0,U.jsx)(B,{value:`tasks`,children:`Tasks`}),(0,U.jsx)(B,{value:`infrastructure`,children:`Infrastructure`}),(0,U.jsx)(B,{value:`tags`,children:`Tags`})]}),t[45]=q):q=t[45];let J;t[46]===n?J=t[47]:(J=(0,U.jsx)(ne,{value:`services`,children:(0,U.jsx)(ae,{clusterName:n})}),t[46]=n,t[47]=J);let Y;t[48]===n?Y=t[49]:(Y=(0,U.jsx)(ne,{value:`tasks`,children:(0,U.jsx)(oe,{clusterName:n})}),t[48]=n,t[49]=Y);let X;t[50]===n?X=t[51]:(X=(0,U.jsx)(ne,{value:`infrastructure`,children:(0,U.jsx)(ie,{clusterName:n})}),t[50]=n,t[51]=X);let Z;t[52]===v?Z=t[53]:(Z=(0,U.jsx)(ne,{value:`tags`,children:v.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Key`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Value`})]})}),(0,U.jsx)(`tbody`,{children:v.map(se)})]})})}),t[52]=v,t[53]=Z);let Q;t[54]!==J||t[55]!==Y||t[56]!==X||t[57]!==Z?(Q=(0,U.jsxs)(re,{className:`mt-6`,defaultValue:`services`,children:[q,J,Y,X,Z]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z,t[58]=Q):Q=t[58];let ce=`This permanently deletes cluster "${n}" and force-stops every task it holds. This cannot be undone.`,$;t[59]!==f.isPending||t[60]!==h||t[61]!==i||t[62]!==ce?($=(0,U.jsx)(I,{description:ce,isPending:f.isPending,onConfirm:h,onOpenChange:o,open:i,title:`Delete cluster`}),t[59]=f.isPending,t[60]=h,t[61]=i,t[62]=ce,t[63]=$):$=t[63];let le;return t[64]!==K||t[65]!==Q||t[66]!==$||t[67]!==w||t[68]!==E?(le=(0,U.jsxs)(U.Fragment,{children:[y,w,E,K,Q,$]}),t[64]=K,t[65]=Q,t[66]=$,t[67]=w,t[68]=E,t[69]=le):le=t[69],le}function se(e){return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.key}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.value})]},e.key)}function Z(){let e=(0,V.c)(2),{clusterName:t}=v.useParams(),n;return e[0]===t?n=e[1]:(n=(0,U.jsx)(X,{clusterName:t}),e[0]=t,e[1]=n),n}export{Z as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Ni as o}from"./awsClient.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{i as u,l as d,o as f,r as p,u as m}from"./ecs.js";import{Ar as h,Di as g,Qt as _,at as v,b as y,ct as b,dn as x,dt as S,sn as C,st as w}from"./index.js";import{t as ee}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,t as D}from"./field.js";import{a as O,i as k,l as A,n as j,o as M,r as N,s as P,t as F}from"./alert-dialog.js";import{t as I}from"./delete-confirmation-dialog.js";import{n as L,t as R}from"./detail-row.js";import{t as z}from"./state-badge.js";import{i as B,n as te,r as ne,t as re}from"./tabs.js";var V=r(),H=t(n(),1),U=e(),W=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function G({clusterName:e,open:t,onOpenChange:n}){let r=f(),{data:a}=i(x),{data:o}=i(C),{data:s}=i(_),c=a?.Subnets??[],l=o?.SecurityGroups??[],u=s?.KeyPairs??[],[d,p]=(0,H.useState)(`t3.small`),[m,g]=(0,H.useState)(1),[v,y]=(0,H.useState)(``),[b,S]=(0,H.useState)(``),[w,T]=(0,H.useState)(``);function I(e){e||(p(`t3.small`),g(1),y(``),S(``),T(``),r.reset()),n(e)}async function L(){try{await r.mutateAsync({Cluster:e,InstanceType:d||void 0,Count:m,SubnetID:v,SecurityGroupID:b,KeyName:w||void 0}),I(!1)}catch{}}let R=r.isPending||v===``||b===``;return(0,U.jsx)(F,{onOpenChange:I,open:t,children:(0,U.jsxs)(k,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,U.jsxs)(P,{children:[(0,U.jsx)(A,{children:`Provision EC2 capacity`}),(0,U.jsxs)(O,{children:[`Launch container instances into cluster “`,e,`”. They register automatically once booted.`]})]}),(0,U.jsxs)(`div`,{className:`space-y-4`,children:[(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-instance-type`,children:`Instance type`})}),(0,U.jsx)(h,{id:`provision-instance-type`,onChange:e=>p(e.target.value),placeholder:`t3.small`,value:d})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-count`,children:`Count`})}),(0,U.jsx)(h,{id:`provision-count`,max:10,min:1,onChange:e=>g(Number(e.target.value)),type:`number`,value:m})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-subnet`,children:`Subnet`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-subnet`,onChange:e=>y(e.target.value),value:v,children:[(0,U.jsx)(`option`,{value:``,children:`Select a subnet`}),c.map(e=>(0,U.jsxs)(`option`,{value:e.SubnetId??``,children:[e.SubnetId,` (`,e.CidrBlock,e.AvailabilityZone?`, ${e.AvailabilityZone}`:``,`)`]},e.SubnetId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-sg`,children:`Security group`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-sg`,onChange:e=>S(e.target.value),value:b,children:[(0,U.jsx)(`option`,{value:``,children:`Select a security group`}),l.map(e=>(0,U.jsxs)(`option`,{value:e.GroupId??``,children:[e.GroupId,` (`,e.GroupName,`)`]},e.GroupId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-key`,children:`Key pair`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-key`,onChange:e=>T(e.target.value),value:w,children:[(0,U.jsx)(`option`,{value:``,children:`None`}),u.map(e=>(0,U.jsx)(`option`,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))]})]})]}),r.error&&(0,U.jsx)(ee,{error:r.error instanceof Error?r.error:void 0,msg:`Failed to provision capacity.`}),(0,U.jsxs)(M,{children:[(0,U.jsx)(N,{children:`Cancel`}),(0,U.jsx)(j,{disabled:R,onClick:e=>{e.preventDefault(),L()},children:r.isPending?`Provisioning…`:`Provision`})]})]})})}var K={drain:`Drain`,activate:`Activate`,deregister:`Deregister`},q={drain:`Draining force-stops the service-owned tasks on this instance so it can be retired.`,activate:`This returns the instance to ACTIVE so the scheduler can place tasks on it again.`,deregister:`This force-removes the container instance record. Any tasks it still holds are stopped.`};function ie(e){let t=(0,V.c)(28),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=w(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=m(),s=u(),[c,d]=(0,H.useState)(null),[f,p]=(0,H.useState)(!1),h;t[2]!==n||t[3]!==s||t[4]!==c||t[5]!==o?(h=function(){if(!c)return;let e=()=>d(null);if(c.action===`deregister`){s.mutate({cluster:n,containerInstance:c.arn},{onSuccess:e});return}o.mutate({cluster:n,containerInstance:c.arn,status:c.action===`drain`?`DRAINING`:`ACTIVE`},{onSuccess:e})},t[2]=n,t[3]=s,t[4]=c,t[5]=o,t[6]=h):h=t[6];let g=h,_=o.isError||s.isError,v=o.error??s.error,y=o.isPending||s.isPending,b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(l,{onClick:()=>p(!0),size:`sm`,children:`Provision EC2 capacity`})}),t[7]=b):b=t[7];let x;t[8]!==v||t[9]!==_?(x=_&&(0,U.jsx)(ee,{error:v instanceof Error?v:void 0,msg:`Container instance action failed.`}),t[8]=v,t[9]=_,t[10]=x):x=t[10];let S;t[11]===i?S=t[12]:(S=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No container instances found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`EC2 Instance`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=e.containerInstanceArn??``,n=e.status===`DRAINING`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.ec2InstanceId}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,U.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,U.jsx)(l,{"aria-label":n?`Activate container instance`:`Drain container instance`,onClick:()=>d({arn:t,action:n?`activate`:`drain`}),size:`sm`,variant:`outline`,children:n?`Activate`:`Drain`}),(0,U.jsx)(l,{onClick:()=>d({arn:t,action:`deregister`}),size:`sm`,variant:`destructive`,children:`Deregister`})]})})]},t)})})]})}),t[11]=i,t[12]=S);let C;t[13]!==n||t[14]!==f?(C=(0,U.jsx)(G,{clusterName:n,onOpenChange:p,open:f}),t[13]=n,t[14]=f,t[15]=C):C=t[15];let T=c?K[c.action]:`Confirm`,E=c?q[c.action]:``,D;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>!e&&d(null),t[16]=D):D=t[16];let O=c!==null,k;t[17]!==g||t[18]!==y||t[19]!==O||t[20]!==T||t[21]!==E?(k=(0,U.jsx)(I,{confirmLabel:T,description:E,isPending:y,onConfirm:g,onOpenChange:D,open:O,title:`Container instance`}),t[17]=g,t[18]=y,t[19]=O,t[20]=T,t[21]=E,t[22]=k):k=t[22];let A;return t[23]!==k||t[24]!==x||t[25]!==S||t[26]!==C?(A=(0,U.jsxs)(U.Fragment,{children:[b,x,S,C,k]}),t[23]=k,t[24]=x,t[25]=S,t[26]=C,t[27]=A):A=t[27],A}function J(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function ae(e){let t=(0,V.c)(13),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=b(n),t[0]=n,t[1]=r);let{data:i}=a(r),s;t[2]===n?s=t[3]:(s={cluster:n},t[2]=n,t[3]=s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(l,{size:`sm`,children:`Create service`}),t[4]=c):c=t[4];let u;t[5]===s?u=t[6]:(u=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(o,{search:s,to:`/ecs/create-service`,children:c})}),t[5]=s,t[6]=u);let d;t[7]!==n||t[8]!==i?(d=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No services found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task Definition`})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(o,{className:`underline`,params:{clusterName:n,serviceName:e.serviceName??``},to:`/ecs/list-clusters/$clusterName/services/$serviceName`,children:e.serviceName})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:J(e.taskDefinition)})]},e.serviceArn??e.serviceName))})]})}),t[7]=n,t[8]=i,t[9]=d):d=t[9];let f;return t[10]!==u||t[11]!==d?(f=(0,U.jsxs)(U.Fragment,{children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function Y(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function oe(e){let t=(0,V.c)(27),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=S(n),t[0]=n,t[1]=r);let{data:i}=a(r),s=d(),[c,u]=(0,H.useState)(null),f;t[2]!==n||t[3]!==c||t[4]!==s?(f=function(){c&&s.mutate({cluster:n,task:c},{onSuccess:()=>u(null)})},t[2]=n,t[3]=c,t[4]=s,t[5]=f):f=t[5];let p=f,m;t[6]===n?m=t[7]:(m={cluster:n},t[6]=n,t[7]=m);let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,U.jsx)(l,{size:`sm`,children:`Run task`}),t[8]=h):h=t[8];let g;t[9]===m?g=t[10]:(g=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(o,{search:m,to:`/ecs/run-task`,children:h})}),t[9]=m,t[10]=g);let _;t[11]!==s.error||t[12]!==s.isError?(_=s.isError&&(0,U.jsx)(ee,{error:s.error instanceof Error?s.error:void 0,msg:`Failed to stop task.`}),t[11]=s.error,t[12]=s.isError,t[13]=_):_=t[13];let v;t[14]!==n||t[15]!==i?(v=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tasks found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Last Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Group`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=Y(e.taskArn),r=e.lastStatus!==`STOPPED`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:(0,U.jsx)(o,{className:`underline`,params:{clusterName:n,taskId:t},to:`/ecs/list-clusters/$clusterName/tasks/$taskId`,children:t})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.lastStatus})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredStatus}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.group}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:r&&(0,U.jsx)(l,{onClick:()=>u(e.taskArn??t),size:`sm`,variant:`destructive`,children:`Stop`})})]},t)})})]})}),t[14]=n,t[15]=i,t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(null),t[17]=y):y=t[17];let b=c!==null,x;t[18]!==p||t[19]!==s.isPending||t[20]!==b?(x=(0,U.jsx)(I,{confirmLabel:`Stop task`,description:`This stops the task and releases its ENI and reserved capacity.`,isPending:s.isPending,onConfirm:p,onOpenChange:y,open:b,pendingLabel:`Stopping…`,title:`Stop task`}),t[18]=p,t[19]=s.isPending,t[20]=b,t[21]=x):x=t[21];let C;return t[22]!==x||t[23]!==g||t[24]!==_||t[25]!==v?(C=(0,U.jsxs)(U.Fragment,{children:[g,_,v,x]}),t[22]=x,t[23]=g,t[24]=_,t[25]=v,t[26]=C):C=t[26],C}function X(e){let t=(0,V.c)(70),{clusterName:n}=e,r=g(),[i,o]=(0,H.useState)(!1),u;t[0]===n?u=t[1]:(u=v(n),t[0]=n,t[1]=u);let{data:d}=a(u),f=p(),m;t[2]!==n||t[3]!==f||t[4]!==r?(m=function(){f.mutate(n,{onSuccess:()=>{r({to:`/ecs/list-clusters`})}})},t[2]=n,t[3]=f,t[4]=r,t[5]=m):m=t[5];let h=m;if(!d){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,U.jsx)(s,{to:`/ecs/list-clusters`,children:`Clusters`}),t[6]=e):e=t[6];let r;t[7]===n?r=t[8]:(r=(0,U.jsx)(T,{subtitle:`Cluster Details`,title:n}),t[7]=n,t[8]=r);let i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`Cluster not found.`}),t[9]=i):i=t[9];let a;return t[10]===r?a=t[11]:(a=(0,U.jsxs)(U.Fragment,{children:[e,r,i]}),t[10]=r,t[11]=a),a}let _;t[12]===d.tags?_=t[13]:(_=d.tags??[],t[12]=d.tags,t[13]=_);let y=_,b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,U.jsx)(s,{to:`/ecs/list-clusters`,children:`Clusters`}),t[14]=b):b=t[14];let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>o(!0),t[15]=x):x=t[15];let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,U.jsxs)(l,{onClick:x,size:`sm`,variant:`destructive`,children:[(0,U.jsx)(c,{className:`size-4`}),`Delete`]}),t[16]=S):S=t[16];let C;t[17]===d.status?C=t[18]:(C=(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[S,(0,U.jsx)(z,{state:d.status})]}),t[17]=d.status,t[18]=C);let w;t[19]!==n||t[20]!==C?(w=(0,U.jsx)(T,{actions:C,subtitle:`Cluster Details`,title:n}),t[19]=n,t[20]=C,t[21]=w):w=t[21];let E;t[22]!==f.error||t[23]!==f.isError?(E=f.isError&&(0,U.jsx)(ee,{error:f.error instanceof Error?f.error:void 0,msg:`Failed to delete cluster.`}),t[22]=f.error,t[23]=f.isError,t[24]=E):E=t[24];let D;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,U.jsx)(L.Header,{children:`Overview`}),t[25]=D):D=t[25];let O;t[26]===d.clusterArn?O=t[27]:(O=(0,U.jsx)(R,{label:`ARN`,value:d.clusterArn}),t[26]=d.clusterArn,t[27]=O);let k;t[28]===d.status?k=t[29]:(k=(0,U.jsx)(R,{label:`Status`,value:d.status}),t[28]=d.status,t[29]=k);let A=String(d.activeServicesCount??0),j;t[30]===A?j=t[31]:(j=(0,U.jsx)(R,{label:`Active services`,value:A}),t[30]=A,t[31]=j);let M=String(d.runningTasksCount??0),N;t[32]===M?N=t[33]:(N=(0,U.jsx)(R,{label:`Running tasks`,value:M}),t[32]=M,t[33]=N);let P=String(d.pendingTasksCount??0),F;t[34]===P?F=t[35]:(F=(0,U.jsx)(R,{label:`Pending tasks`,value:P}),t[34]=P,t[35]=F);let W=String(d.registeredContainerInstancesCount??0),G;t[36]===W?G=t[37]:(G=(0,U.jsx)(R,{label:`Registered instances`,value:W}),t[36]=W,t[37]=G);let K;t[38]!==O||t[39]!==k||t[40]!==j||t[41]!==N||t[42]!==F||t[43]!==G?(K=(0,U.jsxs)(L,{children:[D,(0,U.jsxs)(L.Content,{children:[O,k,j,N,F,G]})]}),t[38]=O,t[39]=k,t[40]=j,t[41]=N,t[42]=F,t[43]=G,t[44]=K):K=t[44];let q;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,U.jsxs)(te,{children:[(0,U.jsx)(B,{value:`services`,children:`Services`}),(0,U.jsx)(B,{value:`tasks`,children:`Tasks`}),(0,U.jsx)(B,{value:`infrastructure`,children:`Infrastructure`}),(0,U.jsx)(B,{value:`tags`,children:`Tags`})]}),t[45]=q):q=t[45];let J;t[46]===n?J=t[47]:(J=(0,U.jsx)(ne,{value:`services`,children:(0,U.jsx)(ae,{clusterName:n})}),t[46]=n,t[47]=J);let Y;t[48]===n?Y=t[49]:(Y=(0,U.jsx)(ne,{value:`tasks`,children:(0,U.jsx)(oe,{clusterName:n})}),t[48]=n,t[49]=Y);let X;t[50]===n?X=t[51]:(X=(0,U.jsx)(ne,{value:`infrastructure`,children:(0,U.jsx)(ie,{clusterName:n})}),t[50]=n,t[51]=X);let Z;t[52]===y?Z=t[53]:(Z=(0,U.jsx)(ne,{value:`tags`,children:y.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Key`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Value`})]})}),(0,U.jsx)(`tbody`,{children:y.map(se)})]})})}),t[52]=y,t[53]=Z);let Q;t[54]!==J||t[55]!==Y||t[56]!==X||t[57]!==Z?(Q=(0,U.jsxs)(re,{className:`mt-6`,defaultValue:`services`,children:[q,J,Y,X,Z]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z,t[58]=Q):Q=t[58];let ce=`This permanently deletes cluster "${n}" and force-stops every task it holds. This cannot be undone.`,$;t[59]!==f.isPending||t[60]!==h||t[61]!==i||t[62]!==ce?($=(0,U.jsx)(I,{description:ce,isPending:f.isPending,onConfirm:h,onOpenChange:o,open:i,title:`Delete cluster`}),t[59]=f.isPending,t[60]=h,t[61]=i,t[62]=ce,t[63]=$):$=t[63];let le;return t[64]!==K||t[65]!==Q||t[66]!==$||t[67]!==w||t[68]!==E?(le=(0,U.jsxs)(U.Fragment,{children:[b,w,E,K,Q,$]}),t[64]=K,t[65]=Q,t[66]=$,t[67]=w,t[68]=E,t[69]=le):le=t[69],le}function se(e){return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.key}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.value})]},e.key)}function Z(){let e=(0,V.c)(2),{clusterName:t}=y.useParams(),n;return e[0]===t?n=e[1]:(n=(0,U.jsx)(X,{clusterName:t}),e[0]=t,e[1]=n),n}export{Z as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js index 12ad70634..d93424a70 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{xi as o}from"./awsClient.js";import{Rt as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./circle-arrow-up.js";import{t as u}from"./cli-command-panel.js";import{t as d}from"./trash-2.js";import{t as f}from"./triangle-alert.js";import{t as p}from"./button.js";import{C as m,S as h,T as g,_,b as v,c as y,f as b,h as x,i as S,l as C,m as w,n as T,p as E,r as D,s as O,u as k,v as A,w as j,x as M,y as N}from"./eks.js";import{B as P,Et as F,F as I,I as L,L as R,M as z,N as B,P as V,R as H,V as U,hi as W,nn as G,vi as ee,x as te,xr as K}from"./index.js";import{i as ne,n as re,t as ie}from"./zod.js";import{t as ae}from"./error-banner.js";import{t as oe}from"./page-heading.js";import{a as q,r as J,t as Y}from"./field.js";import{i as se,l as ce,n as le,o as ue,r as de,s as fe,t as pe}from"./alert-dialog.js";import{t as me}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{i as he,n as ge,r as _e,t as ve}from"./tabs.js";import{t as ye}from"./badge.js";import{t as be}from"./json-editor.js";var xe=W(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Se=r(),Q=t(n(),1),$=e();function Ce(e){return e?.split(`/`).pop()??e??``}function we(e){let t=(0,Se.c)(55),{clusterName:n,principalArn:r,onDelete:a}=e,o;t[0]!==n||t[1]!==r?(o=B(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=i(o),c;t[3]!==n||t[4]!==r?(c=R(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=i(c),u=E(),f=h(),[m,g]=(0,Q.useState)(T[0].arn),_=s?.accessEntry,v;t[6]===l?.associatedAccessPolicies?v=t[7]:(v=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=v);let y=v,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=b);let x;t[10]!==a||t[11]!==r?(x=()=>a(r),t[10]=a,t[11]=r,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(d,{className:`size-4`}),t[13]=S):S=t[13];let C;t[14]===x?C=t[15]:(C=(0,$.jsx)(p,{onClick:x,size:`icon`,variant:`ghost`,children:S}),t[14]=x,t[15]=C);let w;t[16]!==b||t[17]!==C?(w=(0,$.jsx)(X.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[b,C]})}),t[16]=b,t[17]=C,t[18]=w):w=t[18];let D=_?.type,O;t[19]===D?O=t[20]:(O=(0,$.jsx)(Z,{label:`Type`,value:D}),t[19]=D,t[20]=O);let k;t[21]===_?k=t[22]:(k=_?.kubernetesGroups?.length?_.kubernetesGroups.join(`, `):`—`,t[21]=_,t[22]=k);let A;t[23]===k?A=t[24]:(A=(0,$.jsx)(Z,{label:`Kubernetes groups`,value:k}),t[23]=k,t[24]=A);let j;t[25]!==y||t[26]!==n||t[27]!==f||t[28]!==r?(j=y.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:y.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:Ce(e.policyArn)}),(0,$.jsx)(p,{onClick:()=>f.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=y,t[26]=n,t[27]=f,t[28]=r,t[29]=j):j=t[29];let M;t[30]===j?M=t[31]:(M=(0,$.jsx)(Z,{label:`Access policies`,value:j}),t[30]=j,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>g(e.target.value),t[32]=N):N=t[32];let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=T.map(Te),t[33]=P):P=t[33];let F;t[34]===m?F=t[35]:(F=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:m,children:P}),t[34]=m,t[35]=F);let I;t[36]!==u||t[37]!==n||t[38]!==m||t[39]!==r?(I=()=>u.mutate({clusterName:n,principalArn:r,policyArn:m,accessScopeType:`cluster`}),t[36]=u,t[37]=n,t[38]=m,t[39]=r,t[40]=I):I=t[40];let L;t[41]!==u.isPending||t[42]!==I?(L=(0,$.jsx)(p,{disabled:u.isPending,onClick:I,size:`sm`,children:`Associate`}),t[41]=u.isPending,t[42]=I,t[43]=L):L=t[43];let z;t[44]!==F||t[45]!==L?(z=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[F,L]}),t[44]=F,t[45]=L,t[46]=z):z=t[46];let V;t[47]!==O||t[48]!==A||t[49]!==M||t[50]!==z?(V=(0,$.jsxs)(X.Content,{children:[O,A,M,z]}),t[47]=O,t[48]=A,t[49]=M,t[50]=z,t[51]=V):V=t[51];let H;return t[52]!==V||t[53]!==w?(H=(0,$.jsxs)(X,{children:[w,V]}),t[52]=V,t[53]=w,t[54]=H):H=t[54],H}function Te(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Ee(e){let t=(0,Se.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=w(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ie(C),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=ne(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(De).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(fe,{children:(0,$.jsx)(ce,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,_;t[8]===l?_=t[9]:(_=l(`principalArn`),t[8]=l,t[9]=_);let v;t[10]!==g||t[11]!==_?(v=(0,$.jsx)(K,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,..._}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]===d.principalArn?y=t[14]:(y=(0,$.jsx)(J,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=y);let b;t[15]!==v||t[16]!==y?(b=(0,$.jsxs)(Y,{children:[h,v,y]}),t[15]=v,t[16]=y,t[17]=b):b=t[17];let x;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=x):x=t[18];let S;t[19]===l?S=t[20]:(S=l(`kubernetesGroups`),t[19]=l,t[20]=S);let T;t[21]===S?T=t[22]:(T=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(K,{id:`ae-groups`,placeholder:`system:masters`,...S})]}),t[21]=S,t[22]=T);let E;t[23]!==b||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[b,T]}),t[23]=b,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(de,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(ue,{children:[D,(0,$.jsx)(le,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(se,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(pe,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function De(e){return e.trim()}function Oe(e){let t=(0,Se.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=z(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=A(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),d;t[2]===i.accessEntries?d=t[3]:(d=i.accessEntries??[],t[2]=i.accessEntries,t[3]=d);let f=d,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(p,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==f?(h=f.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:f.map(e=>(0,$.jsx)(we,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=f,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Ee,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==o||t[13]!==l?(v=()=>{l&&o.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=o,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let b=l!==void 0,x;t[16]!==o.isPending||t[17]!==_||t[18]!==v||t[19]!==b?(x=(0,$.jsx)(me,{description:_,isPending:o.isPending,onConfirm:v,onOpenChange:y,open:b,title:`Delete access entry`}),t[16]=o.isPending,t[17]=_,t[18]=v,t[19]=b,t[20]=x):x=t[20];let S;return t[21]!==x||t[22]!==h||t[23]!==g?(S=(0,$.jsxs)($.Fragment,{children:[m,h,g,x]}),t[21]=x,t[22]=h,t[23]=g,t[24]=S):S=t[24],S}var ke=new Set([`CREATING`,`UPDATING`,`DELETING`]),Ae=5e3,je=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function Me({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=x(),o=t.filter(e=>!n.includes(e.addonName??``)),{control:s,formState:{errors:c},handleSubmit:l,register:u,reset:d,setValue:f,watch:p}=ne({resolver:ie(k),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),m=p(`addonName`),h=p(`addonVersion`),g=t.find(e=>e.addonName===m)?.addonVersions??[],_=g.find(e=>e.addonVersion===h)?.requiresIamPermissions??!1,v=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;f(`addonName`,e,{shouldValidate:!0}),f(`addonVersion`,n,{shouldValidate:!0})},y=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),d(),i(!1)};return(0,$.jsx)(pe,{onOpenChange:i,open:r,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(fe,{children:(0,$.jsx)(ce,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!c.addonName,className:je,id:`addon-name`,onChange:e=>v(e.target.value),value:m,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(J,{errors:[c.addonName]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!c.addonVersion,className:je,disabled:g.length===0,id:`addon-version`,onChange:e=>f(`addonVersion`,e.target.value,{shouldValidate:!0}),value:h,children:g.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(J,{errors:[c.addonVersion]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(K,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...u(`serviceAccountRoleArn`)}),_&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(re,{control:s,name:`configurationValues`,render:({field:{onBlur:e,onChange:t,ref:n,value:r}})=>(0,$.jsx)(be,{error:!!c.configurationValues,id:`addon-config`,onBlur:e,onChange:t,placeholder:`{"replicaCount": 2}`,ref:n,rows:4,value:r})}),(0,$.jsx)(J,{errors:[c.configurationValues]})]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(de,{children:`Cancel`}),(0,$.jsx)(le,{disabled:a.isPending,onClick:e=>{e.preventDefault(),l(y)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function Ne(e){let t=(0,Se.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=j(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{let e=O.safeParse(p);if(!e.success){g(e.error.issues[0]?.message??`Configuration must be valid JSON`);return}g(void 0),c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(fe,{children:(0,$.jsxs)(ce,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Pe),t[18]=a,t[19]=T);let E;t[20]!==C||t[21]!==T||t[22]!==l?(E=(0,$.jsxs)(Y,{children:[S,(0,$.jsx)(`select`,{className:je,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=E):E=t[23];let D;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=D):D=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>f(e.target.value),t[25]=k):k=t[25];let A;t[26]===d?A=t[27]:(A=(0,$.jsxs)(Y,{children:[D,(0,$.jsx)(K,{id:`update-addon-role`,onChange:k,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=A);let M;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=M):M=t[28];let N=!!h,P;t[29]!==p||t[30]!==N?(P=(0,$.jsxs)(Y,{children:[M,(0,$.jsx)(be,{error:N,id:`update-addon-config`,onChange:m,rows:4,value:p})]}),t[29]=p,t[30]=N,t[31]=P):P=t[31];let F;t[32]!==A||t[33]!==P||t[34]!==E?(F=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[E,A,P]}),t[32]=A,t[33]=P,t[34]=E,t[35]=F):F=t[35];let I;t[36]===h?I=t[37]:(I=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=I);let L;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsx)(de,{children:`Cancel`}),t[38]=L):L=t[38];let R;t[39]===b?R=t[40]:(R=e=>{e.preventDefault(),b()},t[39]=b,t[40]=R);let z=c.isPending?`Updating…`:`Update`,B;t[41]!==R||t[42]!==z||t[43]!==c.isPending?(B=(0,$.jsxs)(ue,{children:[L,(0,$.jsx)(le,{disabled:c.isPending,onClick:R,children:z})]}),t[41]=R,t[42]=z,t[43]=c.isPending,t[44]=B):B=t[44];let V;t[45]!==F||t[46]!==I||t[47]!==B||t[48]!==x?(V=(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[x,F,I,B]}),t[45]=F,t[46]=I,t[47]=B,t[48]=x,t[49]=V):V=t[49];let H;return t[50]!==s||t[51]!==o||t[52]!==V?(H=(0,$.jsx)(pe,{onOpenChange:s,open:o,children:V}),t[50]=s,t[51]=o,t[52]=V,t[53]=H):H=t[53],H}function Pe(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Fe(e){let t=(0,Se.c)(53),{clusterName:n,addonName:r,catalog:a,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=V(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Le},t[3]=s,t[4]=c);let{data:u}=i(c),[f,m]=(0,Q.useState)(!1),h=u?.addon,g=h?.health?.issues?.[0]?.message,_;t[5]!==r||t[6]!==a?(_=a.find(e=>e.addonName===r)?.addonVersions?.map(Ie).filter(Boolean)??[],t[5]=r,t[6]=a,t[7]=_):_=t[7];let v=_,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=b);let x=h?.status,S;t[10]===x?S=t[11]:(S=y(x),t[10]=x,t[11]=S);let C=h?.status??`UNKNOWN`,w;t[12]!==S||t[13]!==C?(w=(0,$.jsx)(ye,{variant:S,children:C}),t[12]=S,t[13]=C,t[14]=w):w=t[14];let T;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>m(!0),t[15]=T):T=t[15];let E;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(p,{"aria-label":`Update add-on`,onClick:T,size:`icon`,variant:`ghost`,children:(0,$.jsx)(l,{className:`size-4`})}),t[16]=E):E=t[16];let D;t[17]!==r||t[18]!==o?(D=()=>o(r),t[17]=r,t[18]=o,t[19]=D):D=t[19];let O;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(d,{className:`size-4`}),t[20]=O):O=t[20];let k;t[21]===D?k=t[22]:(k=(0,$.jsx)(p,{"aria-label":`Remove add-on`,onClick:D,size:`icon`,variant:`ghost`,children:O}),t[21]=D,t[22]=k);let A;t[23]!==k||t[24]!==w?(A=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[w,E,k]}),t[23]=k,t[24]=w,t[25]=A):A=t[25];let j;t[26]!==A||t[27]!==b?(j=(0,$.jsx)(X.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,A]})}),t[26]=A,t[27]=b,t[28]=j):j=t[28];let M=h?.addonVersion,N;t[29]===M?N=t[30]:(N=(0,$.jsx)(Z,{label:`Version`,value:M}),t[29]=M,t[30]=N);let P=h?.serviceAccountRoleArn,F;t[31]===P?F=t[32]:(F=(0,$.jsx)(Z,{label:`IRSA role`,value:P}),t[31]=P,t[32]=F);let I;t[33]===g?I=t[34]:(I=g&&(0,$.jsx)(Z,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:g})}),t[33]=g,t[34]=I);let L;t[35]!==N||t[36]!==F||t[37]!==I?(L=(0,$.jsxs)(X.Content,{children:[N,F,I]}),t[35]=N,t[36]=F,t[37]=I,t[38]=L):L=t[38];let R=h?.addonVersion,z=h?.serviceAccountRoleArn,B=h?.configurationValues,H;t[39]!==R||t[40]!==z||t[41]!==B?(H={addonVersion:R,serviceAccountRoleArn:z,configurationValues:B},t[39]=R,t[40]=z,t[41]=B,t[42]=H):H=t[42];let U;t[43]!==r||t[44]!==n||t[45]!==f||t[46]!==H||t[47]!==v?(U=(0,$.jsx)(Ne,{addonName:r,clusterName:n,current:H,onOpenChange:m,open:f,versions:v}),t[43]=r,t[44]=n,t[45]=f,t[46]=H,t[47]=v,t[48]=U):U=t[48];let W;return t[49]!==j||t[50]!==L||t[51]!==U?(W=(0,$.jsxs)(X,{children:[j,L,U]}),t[49]=j,t[50]=L,t[51]=U,t[52]=W):W=t[52],W}function Ie(e){return e.addonVersion??``}function Le(e){return ke.has(e.state.data?.addon?.status??``)?Ae:!1}function Re(e){let t=(0,Se.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=L(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:s}=i(I),c=N(),[l,u]=(0,Q.useState)(!1),[d,f]=(0,Q.useState)(),m;t[2]===o.addons?m=t[3]:(m=o.addons??[],t[2]=o.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(p,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=y):y=t[7];let b;t[8]!==h||t[9]!==_||t[10]!==n?(b=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Fe,{addonName:e,catalog:_,clusterName:n,onDelete:f},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(x=(0,$.jsx)(Me,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=x):x=t[16];let S=`Remove add-on "${d??``}" from the cluster?`,C;t[17]!==n||t[18]!==c||t[19]!==d?(C=()=>{d&&c.mutate({clusterName:n,addonName:d},{onSuccess:()=>f(void 0)})},t[17]=n,t[18]=c,t[19]=d,t[20]=C):C=t[20];let w;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>!e&&f(void 0),t[21]=w):w=t[21];let T=d!==void 0,E;t[22]!==c.isPending||t[23]!==T||t[24]!==S||t[25]!==C?(E=(0,$.jsx)(me,{confirmLabel:`Remove`,description:S,isPending:c.isPending,onConfirm:C,onOpenChange:w,open:T,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=T,t[24]=S,t[25]=C,t[26]=E):E=t[26];let D;return t[27]!==E||t[28]!==b||t[29]!==x?(D=(0,$.jsxs)($.Fragment,{children:[y,b,x,E]}),t[27]=E,t[28]=b,t[29]=x,t[30]=D):D=t[30],D}function ze(e){let t=(0,Se.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(o,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Be(e){let t=(0,Se.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(X.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(ze,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(Z,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(Z,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(Z,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(Z,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(Z,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(Ue)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(X,{children:[u,(0,$.jsxs)(X.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(X.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(X,{children:[x,(0,$.jsx)(X.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(He)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(X.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(ze,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(Z,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(Ve)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(Z,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(X,{children:[C,(0,$.jsxs)(X.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function Ve(e){return(0,$.jsx)(ze,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function He(e){return(0,$.jsx)(ze,{id:e,to:`/ec2/describe-subnets/$id`},e)}function Ue(e){return(0,$.jsx)(`div`,{children:e},e)}function We(e){let t=(0,Se.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=m(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[f,p]=(0,Q.useState)(i.maxSize??0),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),p(i.maxSize??0),g(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==f||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=f)){g(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:f},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=f,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(fe,{children:(0,$.jsxs)(ce,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(Y,{children:[S,(0,$.jsx)(K,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(Y,{children:[T,(0,$.jsx)(K,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>p(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===f?A=t[27]:(A=(0,$.jsxs)(Y,{children:[O,(0,$.jsx)(K,{id:`scale-max`,onChange:k,type:`number`,value:f})]}),t[26]=f,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===h?M=t[33]:(M=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[32]=h,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(de,{children:`Cancel`}),t[34]=N):N=t[34];let P;t[35]===b?P=t[36]:(P=e=>{e.preventDefault(),b()},t[35]=b,t[36]=P);let F=s.isPending?`Scaling…`:`Scale`,I;t[37]!==s.isPending||t[38]!==P||t[39]!==F?(I=(0,$.jsxs)(ue,{children:[N,(0,$.jsx)(le,{disabled:s.isPending,onClick:P,children:F})]}),t[37]=s.isPending,t[38]=P,t[39]=F,t[40]=I):I=t[40];let L;t[41]!==j||t[42]!==M||t[43]!==I||t[44]!==x?(L=(0,$.jsxs)(se,{children:[x,j,M,I]}),t[41]=j,t[42]=M,t[43]=I,t[44]=x,t[45]=L):L=t[45];let R;return t[46]!==o||t[47]!==a||t[48]!==L?(R=(0,$.jsx)(pe,{onOpenChange:o,open:a,children:L}),t[46]=o,t[47]=a,t[48]=L,t[49]=R):R=t[49],R}function Ge(e){let t=(0,Se.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:a,onDelete:o}=e,s;t[0]!==n||t[1]!==a?(s=P(n,a),t[0]=n,t[1]=a,t[2]=s):s=t[2];let{data:c}=i(s),u=g(),f=c?.nodegroup,m=f?.scalingConfig,[h,_]=(0,Q.useState)(!1),[v,y]=(0,Q.useState)(!1),b=!!r&&!!f?.version&&f.version!==r,x;t[3]===a?x=t[4]:(x=(0,$.jsx)(`span`,{children:a}),t[3]=a,t[4]=x);let S;t[5]===b?S=t[6]:(S=b&&(0,$.jsx)(p,{"aria-label":`Update node group version`,onClick:()=>y(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(l,{className:`size-4`})}),t[5]=b,t[6]=S);let C;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>_(!0),t[7]=C):C=t[7];let w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(p,{"aria-label":`Scale node group`,onClick:C,size:`icon`,variant:`ghost`,children:(0,$.jsx)(xe,{className:`size-4`})}),t[8]=w):w=t[8];let T;t[9]!==a||t[10]!==o?(T=()=>o(a),t[9]=a,t[10]=o,t[11]=T):T=t[11];let E;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(d,{className:`size-4`}),t[12]=E):E=t[12];let D;t[13]===T?D=t[14]:(D=(0,$.jsx)(p,{"aria-label":`Delete node group`,onClick:T,size:`icon`,variant:`ghost`,children:E}),t[13]=T,t[14]=D);let O;t[15]!==S||t[16]!==D?(O=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[S,w,D]}),t[15]=S,t[16]=D,t[17]=O):O=t[17];let k;t[18]!==x||t[19]!==O?(k=(0,$.jsx)(X.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[x,O]})}),t[18]=x,t[19]=O,t[20]=k):k=t[20];let A=f?.status,j;t[21]===A?j=t[22]:(j=(0,$.jsx)(Z,{label:`Status`,value:A}),t[21]=A,t[22]=j);let M=b?`${f?.version} (cluster on ${r})`:f?.version,N;t[23]===M?N=t[24]:(N=(0,$.jsx)(Z,{label:`Kubernetes version`,value:M}),t[23]=M,t[24]=N);let F;t[25]===f?.instanceTypes?F=t[26]:(F=f?.instanceTypes?.join(`, `),t[25]=f?.instanceTypes,t[26]=F);let I;t[27]===F?I=t[28]:(I=(0,$.jsx)(Z,{label:`Instance types`,value:F}),t[27]=F,t[28]=I);let L=f?.amiType,R;t[29]===L?R=t[30]:(R=(0,$.jsx)(Z,{label:`AMI type`,value:L}),t[29]=L,t[30]=R);let z=f?.capacityType,B;t[31]===z?B=t[32]:(B=(0,$.jsx)(Z,{label:`Capacity type`,value:z}),t[31]=z,t[32]=B);let V=m?`${m.minSize} / ${m.desiredSize} / ${m.maxSize}`:void 0,H;t[33]===V?H=t[34]:(H=(0,$.jsx)(Z,{label:`Scaling (min / desired / max)`,value:V}),t[33]=V,t[34]=H);let U;t[35]!==j||t[36]!==N||t[37]!==I||t[38]!==R||t[39]!==B||t[40]!==H?(U=(0,$.jsxs)(X.Content,{children:[j,N,I,R,B,H]}),t[35]=j,t[36]=N,t[37]=I,t[38]=R,t[39]=B,t[40]=H,t[41]=U):U=t[41];let W;t[42]===m?W=t[43]:(W=m??{},t[42]=m,t[43]=W);let G;t[44]!==n||t[45]!==a||t[46]!==h||t[47]!==W?(G=(0,$.jsx)(We,{clusterName:n,current:W,nodegroupName:a,onOpenChange:_,open:h}),t[44]=n,t[45]=a,t[46]=h,t[47]=W,t[48]=G):G=t[48];let ee=`Update node group "${a}" from ${f?.version} to ${r}? Nodes are replaced in a rolling update.`,te;t[49]!==n||t[50]!==r||t[51]!==a||t[52]!==u?(te=()=>u.mutate({clusterName:n,nodegroupName:a,version:r},{onSuccess:()=>y(!1)}),t[49]=n,t[50]=r,t[51]=a,t[52]=u,t[53]=te):te=t[53];let K;t[54]!==v||t[55]!==ee||t[56]!==te||t[57]!==u.isPending?(K=(0,$.jsx)(me,{confirmLabel:`Update`,description:ee,isPending:u.isPending,onConfirm:te,onOpenChange:y,open:v,title:`Update node group version`}),t[54]=v,t[55]=ee,t[56]=te,t[57]=u.isPending,t[58]=K):K=t[58];let ne;return t[59]!==k||t[60]!==U||t[61]!==G||t[62]!==K?(ne=(0,$.jsxs)(X,{children:[k,U,G,K]}),t[59]=k,t[60]=U,t[61]=G,t[62]=K,t[63]=ne):ne=t[63],ne}function Ke({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:a}=i(F),{data:o}=i(G),s=_(),c=a?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:h}=ne({resolver:ie(b),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),g=h(`subnetIds`),v=e=>{let t=g.includes(e)?g.filter(t=>t!==e):[...g,e];m(`subnetIds`,t,{shouldValidate:!0})},y=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(pe,{onOpenChange:r,open:n,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(fe,{children:(0,$.jsx)(ce,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(K,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(J,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(J,{errors:[u.nodeRole]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:g.includes(e.SubnetId??``),onChange:()=>v(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(J,{errors:[u.subnetIds]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(K,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(J,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:D.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:S.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(K,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(K,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(K,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(K,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(J,{errors:[u.desiredSize]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(de,{children:`Cancel`}),(0,$.jsx)(le,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(y)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function qe(e){let t=(0,Se.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,o;t[0]===n?o=t[1]:(o=U(n),t[0]=n,t[1]=o);let{data:s}=a(o),c=M(),[l,u]=(0,Q.useState)(!1),[d,f]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(p,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Ge,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:f},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(Ke,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${d??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==d?(b=()=>{d&&c.mutate({clusterName:n,nodegroupName:d},{onSuccess:()=>f(void 0)})},t[13]=n,t[14]=c,t[15]=d,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&f(void 0),t[17]=x):x=t[17];let S=d!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(me,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var Je=`ap-southeast-2`;function Ye(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Xe(e){let t=(0,Se.c)(134),{clusterName:n}=e,r=ee(),[i,o]=(0,Q.useState)(!1),l;t[0]===n?l=t[1]:(l=H(n),t[0]=n,t[1]=l);let{data:m}=a(l),h=v(),g=m.cluster,_,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F;if(t[2]!==g?.arn||t[3]!==g?.health?.issues||t[4]!==g?.status||t[5]!==n||t[6]!==h||t[7]!==r){let e=g?.health?.issues??[],i;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(i={type:`bin`,value:`aws eks update-kubeconfig`},t[26]=i):i=t[26];let a;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(a={type:`flag`,value:` --name `},t[27]=a):a=t[27];let s;t[28]===n?s=t[29]:(s={type:`value`,value:n},t[28]=n,t[29]=s);let l;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(l={type:`flag`,value:` --region `},t[30]=l):l=t[30];let u;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(u={type:`value`,value:Je},t[31]=u):u=t[31];let m;t[32]===s?m=t[33]:(m={label:`Configure kubectl`,parts:[i,a,s,l,u]},t[32]=s,t[33]=m);let v;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(v={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[34]=v):v=t[34];let I;t[35]===m?I=t[36]:(I=[m,v],t[35]=m,t[36]=I),w=I;let L;t[37]!==n||t[38]!==h||t[39]!==r?(L=function(){h.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[37]=n,t[38]=h,t[39]=r,t[40]=L):L=t[40],C=L,t[41]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(c,{to:`/eks/list-clusters`,children:`Clusters`}),t[41]=T):T=t[41];let R;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>o(!0),t[42]=R):R=t[42];let z;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsxs)(p,{onClick:R,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(d,{className:`size-4`}),`Delete`]}),t[43]=z):z=t[43];let B=g?.status,V;t[44]===B?V=t[45]:(V=Ye(B),t[44]=B,t[45]=V);let H=g?.status??`UNKNOWN`,U;t[46]!==V||t[47]!==H?(U=(0,$.jsx)(ye,{variant:V,children:H}),t[46]=V,t[47]=H,t[48]=U):U=t[48];let W=e.length>0&&(0,$.jsxs)(ye,{variant:`destructive`,children:[(0,$.jsx)(f,{className:`size-3`}),e.length===1?`1 health issue`:`${e.length} health issues`]}),G;t[49]!==U||t[50]!==W?(G=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[z,U,W]}),t[49]=U,t[50]=W,t[51]=G):G=t[51],t[52]!==n||t[53]!==G?(E=(0,$.jsx)(oe,{actions:G,subtitle:`Cluster Details`,title:n}),t[52]=n,t[53]=G,t[54]=E):E=t[54],t[55]!==h.error||t[56]!==h.isError?(D=h.isError&&(0,$.jsx)(ae,{error:h.error instanceof Error?h.error:void 0,msg:`Failed to delete cluster.`}),t[55]=h.error,t[56]=h.isError,t[57]=D):D=t[57],S=ve,P=`overview`,t[58]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsxs)(ge,{children:[(0,$.jsx)(he,{value:`overview`,children:`Overview`}),(0,$.jsx)(he,{value:`compute`,children:`Compute`}),(0,$.jsx)(he,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(he,{value:`access`,children:`Access`}),(0,$.jsx)(he,{value:`networking`,children:`Networking`}),(0,$.jsx)(he,{value:`connect`,children:`Connect`})]}),t[58]=F):F=t[58],x=_e,N=`overview`,b=X,t[59]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(X.Header,{children:`Cluster`}),t[59]=M):M=t[59],y=X.Content;let ee=g?.arn;t[60]===ee?A=t[61]:(A=(0,$.jsx)(Z,{label:`ARN`,value:ee}),t[60]=ee,t[61]=A);let te=g?.status;t[62]===te?j=t[63]:(j=(0,$.jsx)(Z,{label:`Status`,value:te}),t[62]=te,t[63]=j),_=Z,O=`Health`,k=e.length>0?e.map(Ze).filter(Boolean).join(`; `):`OK`,t[2]=g?.arn,t[3]=g?.health?.issues,t[4]=g?.status,t[5]=n,t[6]=h,t[7]=r,t[8]=_,t[9]=y,t[10]=b,t[11]=x,t[12]=S,t[13]=C,t[14]=w,t[15]=T,t[16]=E,t[17]=D,t[18]=O,t[19]=k,t[20]=A,t[21]=j,t[22]=M,t[23]=N,t[24]=P,t[25]=F}else _=t[8],y=t[9],b=t[10],x=t[11],S=t[12],C=t[13],w=t[14],T=t[15],E=t[16],D=t[17],O=t[18],k=t[19],A=t[20],j=t[21],M=t[22],N=t[23],P=t[24],F=t[25];let I;t[64]!==_||t[65]!==O||t[66]!==k?(I=(0,$.jsx)(_,{label:O,value:k}),t[64]=_,t[65]=O,t[66]=k,t[67]=I):I=t[67];let L=g?.version,R;t[68]===L?R=t[69]:(R=(0,$.jsx)(Z,{label:`Kubernetes version`,value:L}),t[68]=L,t[69]=R);let z=g?.platformVersion,B;t[70]===z?B=t[71]:(B=(0,$.jsx)(Z,{label:`Platform version`,value:z}),t[70]=z,t[71]=B);let V=g?.endpoint,U;t[72]===V?U=t[73]:(U=(0,$.jsx)(Z,{label:`Endpoint`,value:V}),t[72]=V,t[73]=U);let W=g?.identity?.oidc?.issuer,G;t[74]===W?G=t[75]:(G=(0,$.jsx)(Z,{label:`OIDC issuer`,value:W}),t[74]=W,t[75]=G);let te=g?.resourcesVpcConfig?.vpcId,K;t[76]===te?K=t[77]:(K=(0,$.jsx)(Z,{label:`VPC`,value:te}),t[76]=te,t[77]=K);let ne=g?.createdAt,re;t[78]===ne?re=t[79]:(re=s(ne),t[78]=ne,t[79]=re);let ie;t[80]===re?ie=t[81]:(ie=(0,$.jsx)(Z,{label:`Created at`,value:re}),t[80]=re,t[81]=ie);let q;t[82]!==y||t[83]!==I||t[84]!==R||t[85]!==B||t[86]!==U||t[87]!==G||t[88]!==K||t[89]!==ie||t[90]!==A||t[91]!==j?(q=(0,$.jsxs)(y,{children:[A,j,I,R,B,U,G,K,ie]}),t[82]=y,t[83]=I,t[84]=R,t[85]=B,t[86]=U,t[87]=G,t[88]=K,t[89]=ie,t[90]=A,t[91]=j,t[92]=q):q=t[92];let J;t[93]!==b||t[94]!==q||t[95]!==M?(J=(0,$.jsxs)(b,{children:[M,q]}),t[93]=b,t[94]=q,t[95]=M,t[96]=J):J=t[96];let Y;t[97]!==x||t[98]!==J||t[99]!==N?(Y=(0,$.jsx)(x,{value:N,children:J}),t[97]=x,t[98]=J,t[99]=N,t[100]=Y):Y=t[100];let se=g?.version,ce=g?.resourcesVpcConfig?.vpcId,le;t[101]!==n||t[102]!==se||t[103]!==ce?(le=(0,$.jsx)(_e,{value:`compute`,children:(0,$.jsx)(qe,{clusterName:n,clusterVersion:se,vpcId:ce})}),t[101]=n,t[102]=se,t[103]=ce,t[104]=le):le=t[104];let ue;t[105]===n?ue=t[106]:(ue=(0,$.jsx)(_e,{value:`addons`,children:(0,$.jsx)(Re,{clusterName:n})}),t[105]=n,t[106]=ue);let de;t[107]===n?de=t[108]:(de=(0,$.jsx)(_e,{value:`access`,children:(0,$.jsx)(Oe,{clusterName:n})}),t[107]=n,t[108]=de);let fe;t[109]===g?fe=t[110]:(fe=(0,$.jsx)(_e,{value:`networking`,children:(0,$.jsx)(Be,{cluster:g})}),t[109]=g,t[110]=fe);let pe;t[111]===w?pe=t[112]:(pe=(0,$.jsx)(_e,{value:`connect`,children:(0,$.jsx)(u,{commands:w})}),t[111]=w,t[112]=pe);let be;t[113]!==S||t[114]!==Y||t[115]!==le||t[116]!==ue||t[117]!==de||t[118]!==fe||t[119]!==pe||t[120]!==P||t[121]!==F?(be=(0,$.jsxs)(S,{defaultValue:P,children:[F,Y,le,ue,de,fe,pe]}),t[113]=S,t[114]=Y,t[115]=le,t[116]=ue,t[117]=de,t[118]=fe,t[119]=pe,t[120]=P,t[121]=F,t[122]=be):be=t[122];let xe=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Ce;t[123]!==h.isPending||t[124]!==C||t[125]!==i||t[126]!==xe?(Ce=(0,$.jsx)(me,{description:xe,isPending:h.isPending,onConfirm:C,onOpenChange:o,open:i,title:`Delete cluster`}),t[123]=h.isPending,t[124]=C,t[125]=i,t[126]=xe,t[127]=Ce):Ce=t[127];let we;return t[128]!==T||t[129]!==E||t[130]!==D||t[131]!==be||t[132]!==Ce?(we=(0,$.jsxs)($.Fragment,{children:[T,E,D,be,Ce]}),t[128]=T,t[129]=E,t[130]=D,t[131]=be,t[132]=Ce,t[133]=we):we=t[133],we}function Ze(e){return e.message}function Qe(){let e=(0,Se.c)(2),{clusterName:t}=te.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Xe,{clusterName:t}),e[0]=t,e[1]=n),n}export{Qe as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Ni as o}from"./awsClient.js";import{Rt as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./circle-arrow-up.js";import{t as u}from"./cli-command-panel.js";import{t as d}from"./trash-2.js";import{t as f}from"./triangle-alert.js";import{t as p}from"./button.js";import{C as m,S as h,T as g,_,b as v,c as y,f as b,h as x,i as S,l as C,m as w,n as T,p as E,r as D,s as O,u as k,v as A,w as j,x as M,y as N}from"./eks.js";import{Ar as P,At as F,B as I,Di as L,F as R,I as z,L as B,M as V,N as H,P as U,R as W,V as G,dn as K,wi as ee,x as te}from"./index.js";import{i as ne,n as re,t as ie}from"./zod.js";import{t as ae}from"./error-banner.js";import{t as oe}from"./page-heading.js";import{a as q,r as J,t as Y}from"./field.js";import{i as se,l as ce,n as le,o as ue,r as de,s as fe,t as pe}from"./alert-dialog.js";import{t as me}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{i as he,n as ge,r as _e,t as ve}from"./tabs.js";import{t as ye}from"./badge.js";import{t as be}from"./json-editor.js";var xe=ee(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Se=r(),Q=t(n(),1),$=e();function Ce(e){return e?.split(`/`).pop()??e??``}function we(e){let t=(0,Se.c)(55),{clusterName:n,principalArn:r,onDelete:a}=e,o;t[0]!==n||t[1]!==r?(o=H(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=i(o),c;t[3]!==n||t[4]!==r?(c=B(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=i(c),u=E(),f=h(),[m,g]=(0,Q.useState)(T[0].arn),_=s?.accessEntry,v;t[6]===l?.associatedAccessPolicies?v=t[7]:(v=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=v);let y=v,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=b);let x;t[10]!==a||t[11]!==r?(x=()=>a(r),t[10]=a,t[11]=r,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(d,{className:`size-4`}),t[13]=S):S=t[13];let C;t[14]===x?C=t[15]:(C=(0,$.jsx)(p,{onClick:x,size:`icon`,variant:`ghost`,children:S}),t[14]=x,t[15]=C);let w;t[16]!==b||t[17]!==C?(w=(0,$.jsx)(X.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[b,C]})}),t[16]=b,t[17]=C,t[18]=w):w=t[18];let D=_?.type,O;t[19]===D?O=t[20]:(O=(0,$.jsx)(Z,{label:`Type`,value:D}),t[19]=D,t[20]=O);let k;t[21]===_?k=t[22]:(k=_?.kubernetesGroups?.length?_.kubernetesGroups.join(`, `):`—`,t[21]=_,t[22]=k);let A;t[23]===k?A=t[24]:(A=(0,$.jsx)(Z,{label:`Kubernetes groups`,value:k}),t[23]=k,t[24]=A);let j;t[25]!==y||t[26]!==n||t[27]!==f||t[28]!==r?(j=y.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:y.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:Ce(e.policyArn)}),(0,$.jsx)(p,{onClick:()=>f.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=y,t[26]=n,t[27]=f,t[28]=r,t[29]=j):j=t[29];let M;t[30]===j?M=t[31]:(M=(0,$.jsx)(Z,{label:`Access policies`,value:j}),t[30]=j,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>g(e.target.value),t[32]=N):N=t[32];let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=T.map(Te),t[33]=P):P=t[33];let F;t[34]===m?F=t[35]:(F=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:m,children:P}),t[34]=m,t[35]=F);let I;t[36]!==u||t[37]!==n||t[38]!==m||t[39]!==r?(I=()=>u.mutate({clusterName:n,principalArn:r,policyArn:m,accessScopeType:`cluster`}),t[36]=u,t[37]=n,t[38]=m,t[39]=r,t[40]=I):I=t[40];let L;t[41]!==u.isPending||t[42]!==I?(L=(0,$.jsx)(p,{disabled:u.isPending,onClick:I,size:`sm`,children:`Associate`}),t[41]=u.isPending,t[42]=I,t[43]=L):L=t[43];let R;t[44]!==F||t[45]!==L?(R=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[F,L]}),t[44]=F,t[45]=L,t[46]=R):R=t[46];let z;t[47]!==O||t[48]!==A||t[49]!==M||t[50]!==R?(z=(0,$.jsxs)(X.Content,{children:[O,A,M,R]}),t[47]=O,t[48]=A,t[49]=M,t[50]=R,t[51]=z):z=t[51];let V;return t[52]!==z||t[53]!==w?(V=(0,$.jsxs)(X,{children:[w,z]}),t[52]=z,t[53]=w,t[54]=V):V=t[54],V}function Te(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Ee(e){let t=(0,Se.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=w(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ie(C),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=ne(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(De).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(fe,{children:(0,$.jsx)(ce,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,_;t[8]===l?_=t[9]:(_=l(`principalArn`),t[8]=l,t[9]=_);let v;t[10]!==g||t[11]!==_?(v=(0,$.jsx)(P,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,..._}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]===d.principalArn?y=t[14]:(y=(0,$.jsx)(J,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=y);let b;t[15]!==v||t[16]!==y?(b=(0,$.jsxs)(Y,{children:[h,v,y]}),t[15]=v,t[16]=y,t[17]=b):b=t[17];let x;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=x):x=t[18];let S;t[19]===l?S=t[20]:(S=l(`kubernetesGroups`),t[19]=l,t[20]=S);let T;t[21]===S?T=t[22]:(T=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(P,{id:`ae-groups`,placeholder:`system:masters`,...S})]}),t[21]=S,t[22]=T);let E;t[23]!==b||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[b,T]}),t[23]=b,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(de,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(ue,{children:[D,(0,$.jsx)(le,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(se,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(pe,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function De(e){return e.trim()}function Oe(e){let t=(0,Se.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=V(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=A(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),d;t[2]===i.accessEntries?d=t[3]:(d=i.accessEntries??[],t[2]=i.accessEntries,t[3]=d);let f=d,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(p,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==f?(h=f.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:f.map(e=>(0,$.jsx)(we,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=f,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Ee,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==o||t[13]!==l?(v=()=>{l&&o.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=o,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let b=l!==void 0,x;t[16]!==o.isPending||t[17]!==_||t[18]!==v||t[19]!==b?(x=(0,$.jsx)(me,{description:_,isPending:o.isPending,onConfirm:v,onOpenChange:y,open:b,title:`Delete access entry`}),t[16]=o.isPending,t[17]=_,t[18]=v,t[19]=b,t[20]=x):x=t[20];let S;return t[21]!==x||t[22]!==h||t[23]!==g?(S=(0,$.jsxs)($.Fragment,{children:[m,h,g,x]}),t[21]=x,t[22]=h,t[23]=g,t[24]=S):S=t[24],S}var ke=new Set([`CREATING`,`UPDATING`,`DELETING`]),Ae=5e3,je=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function Me({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=x(),o=t.filter(e=>!n.includes(e.addonName??``)),{control:s,formState:{errors:c},handleSubmit:l,register:u,reset:d,setValue:f,watch:p}=ne({resolver:ie(k),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),m=p(`addonName`),h=p(`addonVersion`),g=t.find(e=>e.addonName===m)?.addonVersions??[],_=g.find(e=>e.addonVersion===h)?.requiresIamPermissions??!1,v=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;f(`addonName`,e,{shouldValidate:!0}),f(`addonVersion`,n,{shouldValidate:!0})},y=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),d(),i(!1)};return(0,$.jsx)(pe,{onOpenChange:i,open:r,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(fe,{children:(0,$.jsx)(ce,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!c.addonName,className:je,id:`addon-name`,onChange:e=>v(e.target.value),value:m,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(J,{errors:[c.addonName]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!c.addonVersion,className:je,disabled:g.length===0,id:`addon-version`,onChange:e=>f(`addonVersion`,e.target.value,{shouldValidate:!0}),value:h,children:g.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(J,{errors:[c.addonVersion]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(P,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...u(`serviceAccountRoleArn`)}),_&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(re,{control:s,name:`configurationValues`,render:({field:{onBlur:e,onChange:t,ref:n,value:r}})=>(0,$.jsx)(be,{error:!!c.configurationValues,id:`addon-config`,onBlur:e,onChange:t,placeholder:`{"replicaCount": 2}`,ref:n,rows:4,value:r})}),(0,$.jsx)(J,{errors:[c.configurationValues]})]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(de,{children:`Cancel`}),(0,$.jsx)(le,{disabled:a.isPending,onClick:e=>{e.preventDefault(),l(y)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function Ne(e){let t=(0,Se.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=j(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{let e=O.safeParse(p);if(!e.success){g(e.error.issues[0]?.message??`Configuration must be valid JSON`);return}g(void 0),c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(fe,{children:(0,$.jsxs)(ce,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Pe),t[18]=a,t[19]=T);let E;t[20]!==C||t[21]!==T||t[22]!==l?(E=(0,$.jsxs)(Y,{children:[S,(0,$.jsx)(`select`,{className:je,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=E):E=t[23];let D;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=D):D=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>f(e.target.value),t[25]=k):k=t[25];let A;t[26]===d?A=t[27]:(A=(0,$.jsxs)(Y,{children:[D,(0,$.jsx)(P,{id:`update-addon-role`,onChange:k,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=A);let M;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=M):M=t[28];let N=!!h,F;t[29]!==p||t[30]!==N?(F=(0,$.jsxs)(Y,{children:[M,(0,$.jsx)(be,{error:N,id:`update-addon-config`,onChange:m,rows:4,value:p})]}),t[29]=p,t[30]=N,t[31]=F):F=t[31];let I;t[32]!==A||t[33]!==F||t[34]!==E?(I=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[E,A,F]}),t[32]=A,t[33]=F,t[34]=E,t[35]=I):I=t[35];let L;t[36]===h?L=t[37]:(L=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=L);let R;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(de,{children:`Cancel`}),t[38]=R):R=t[38];let z;t[39]===b?z=t[40]:(z=e=>{e.preventDefault(),b()},t[39]=b,t[40]=z);let B=c.isPending?`Updating…`:`Update`,V;t[41]!==z||t[42]!==B||t[43]!==c.isPending?(V=(0,$.jsxs)(ue,{children:[R,(0,$.jsx)(le,{disabled:c.isPending,onClick:z,children:B})]}),t[41]=z,t[42]=B,t[43]=c.isPending,t[44]=V):V=t[44];let H;t[45]!==I||t[46]!==L||t[47]!==V||t[48]!==x?(H=(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[x,I,L,V]}),t[45]=I,t[46]=L,t[47]=V,t[48]=x,t[49]=H):H=t[49];let U;return t[50]!==s||t[51]!==o||t[52]!==H?(U=(0,$.jsx)(pe,{onOpenChange:s,open:o,children:H}),t[50]=s,t[51]=o,t[52]=H,t[53]=U):U=t[53],U}function Pe(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Fe(e){let t=(0,Se.c)(53),{clusterName:n,addonName:r,catalog:a,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=U(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Le},t[3]=s,t[4]=c);let{data:u}=i(c),[f,m]=(0,Q.useState)(!1),h=u?.addon,g=h?.health?.issues?.[0]?.message,_;t[5]!==r||t[6]!==a?(_=a.find(e=>e.addonName===r)?.addonVersions?.map(Ie).filter(Boolean)??[],t[5]=r,t[6]=a,t[7]=_):_=t[7];let v=_,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=b);let x=h?.status,S;t[10]===x?S=t[11]:(S=y(x),t[10]=x,t[11]=S);let C=h?.status??`UNKNOWN`,w;t[12]!==S||t[13]!==C?(w=(0,$.jsx)(ye,{variant:S,children:C}),t[12]=S,t[13]=C,t[14]=w):w=t[14];let T;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>m(!0),t[15]=T):T=t[15];let E;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(p,{"aria-label":`Update add-on`,onClick:T,size:`icon`,variant:`ghost`,children:(0,$.jsx)(l,{className:`size-4`})}),t[16]=E):E=t[16];let D;t[17]!==r||t[18]!==o?(D=()=>o(r),t[17]=r,t[18]=o,t[19]=D):D=t[19];let O;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(d,{className:`size-4`}),t[20]=O):O=t[20];let k;t[21]===D?k=t[22]:(k=(0,$.jsx)(p,{"aria-label":`Remove add-on`,onClick:D,size:`icon`,variant:`ghost`,children:O}),t[21]=D,t[22]=k);let A;t[23]!==k||t[24]!==w?(A=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[w,E,k]}),t[23]=k,t[24]=w,t[25]=A):A=t[25];let j;t[26]!==A||t[27]!==b?(j=(0,$.jsx)(X.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,A]})}),t[26]=A,t[27]=b,t[28]=j):j=t[28];let M=h?.addonVersion,N;t[29]===M?N=t[30]:(N=(0,$.jsx)(Z,{label:`Version`,value:M}),t[29]=M,t[30]=N);let P=h?.serviceAccountRoleArn,F;t[31]===P?F=t[32]:(F=(0,$.jsx)(Z,{label:`IRSA role`,value:P}),t[31]=P,t[32]=F);let I;t[33]===g?I=t[34]:(I=g&&(0,$.jsx)(Z,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:g})}),t[33]=g,t[34]=I);let L;t[35]!==N||t[36]!==F||t[37]!==I?(L=(0,$.jsxs)(X.Content,{children:[N,F,I]}),t[35]=N,t[36]=F,t[37]=I,t[38]=L):L=t[38];let R=h?.addonVersion,z=h?.serviceAccountRoleArn,B=h?.configurationValues,V;t[39]!==R||t[40]!==z||t[41]!==B?(V={addonVersion:R,serviceAccountRoleArn:z,configurationValues:B},t[39]=R,t[40]=z,t[41]=B,t[42]=V):V=t[42];let H;t[43]!==r||t[44]!==n||t[45]!==f||t[46]!==V||t[47]!==v?(H=(0,$.jsx)(Ne,{addonName:r,clusterName:n,current:V,onOpenChange:m,open:f,versions:v}),t[43]=r,t[44]=n,t[45]=f,t[46]=V,t[47]=v,t[48]=H):H=t[48];let W;return t[49]!==j||t[50]!==L||t[51]!==H?(W=(0,$.jsxs)(X,{children:[j,L,H]}),t[49]=j,t[50]=L,t[51]=H,t[52]=W):W=t[52],W}function Ie(e){return e.addonVersion??``}function Le(e){return ke.has(e.state.data?.addon?.status??``)?Ae:!1}function Re(e){let t=(0,Se.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=z(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:s}=i(R),c=N(),[l,u]=(0,Q.useState)(!1),[d,f]=(0,Q.useState)(),m;t[2]===o.addons?m=t[3]:(m=o.addons??[],t[2]=o.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(p,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=y):y=t[7];let b;t[8]!==h||t[9]!==_||t[10]!==n?(b=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Fe,{addonName:e,catalog:_,clusterName:n,onDelete:f},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(x=(0,$.jsx)(Me,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=x):x=t[16];let S=`Remove add-on "${d??``}" from the cluster?`,C;t[17]!==n||t[18]!==c||t[19]!==d?(C=()=>{d&&c.mutate({clusterName:n,addonName:d},{onSuccess:()=>f(void 0)})},t[17]=n,t[18]=c,t[19]=d,t[20]=C):C=t[20];let w;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>!e&&f(void 0),t[21]=w):w=t[21];let T=d!==void 0,E;t[22]!==c.isPending||t[23]!==T||t[24]!==S||t[25]!==C?(E=(0,$.jsx)(me,{confirmLabel:`Remove`,description:S,isPending:c.isPending,onConfirm:C,onOpenChange:w,open:T,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=T,t[24]=S,t[25]=C,t[26]=E):E=t[26];let D;return t[27]!==E||t[28]!==b||t[29]!==x?(D=(0,$.jsxs)($.Fragment,{children:[y,b,x,E]}),t[27]=E,t[28]=b,t[29]=x,t[30]=D):D=t[30],D}function ze(e){let t=(0,Se.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(o,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Be(e){let t=(0,Se.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(X.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(ze,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(Z,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(Z,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(Z,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(Z,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(Z,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(Ue)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(X,{children:[u,(0,$.jsxs)(X.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(X.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(X,{children:[x,(0,$.jsx)(X.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(He)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(X.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(ze,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(Z,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(Ve)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(Z,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(X,{children:[C,(0,$.jsxs)(X.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function Ve(e){return(0,$.jsx)(ze,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function He(e){return(0,$.jsx)(ze,{id:e,to:`/ec2/describe-subnets/$id`},e)}function Ue(e){return(0,$.jsx)(`div`,{children:e},e)}function We(e){let t=(0,Se.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=m(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[f,p]=(0,Q.useState)(i.maxSize??0),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),p(i.maxSize??0),g(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==f||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=f)){g(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:f},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=f,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(fe,{children:(0,$.jsxs)(ce,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(Y,{children:[S,(0,$.jsx)(P,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(Y,{children:[T,(0,$.jsx)(P,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>p(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===f?A=t[27]:(A=(0,$.jsxs)(Y,{children:[O,(0,$.jsx)(P,{id:`scale-max`,onChange:k,type:`number`,value:f})]}),t[26]=f,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===h?M=t[33]:(M=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[32]=h,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(de,{children:`Cancel`}),t[34]=N):N=t[34];let F;t[35]===b?F=t[36]:(F=e=>{e.preventDefault(),b()},t[35]=b,t[36]=F);let I=s.isPending?`Scaling…`:`Scale`,L;t[37]!==s.isPending||t[38]!==F||t[39]!==I?(L=(0,$.jsxs)(ue,{children:[N,(0,$.jsx)(le,{disabled:s.isPending,onClick:F,children:I})]}),t[37]=s.isPending,t[38]=F,t[39]=I,t[40]=L):L=t[40];let R;t[41]!==j||t[42]!==M||t[43]!==L||t[44]!==x?(R=(0,$.jsxs)(se,{children:[x,j,M,L]}),t[41]=j,t[42]=M,t[43]=L,t[44]=x,t[45]=R):R=t[45];let z;return t[46]!==o||t[47]!==a||t[48]!==R?(z=(0,$.jsx)(pe,{onOpenChange:o,open:a,children:R}),t[46]=o,t[47]=a,t[48]=R,t[49]=z):z=t[49],z}function Ge(e){let t=(0,Se.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:a,onDelete:o}=e,s;t[0]!==n||t[1]!==a?(s=I(n,a),t[0]=n,t[1]=a,t[2]=s):s=t[2];let{data:c}=i(s),u=g(),f=c?.nodegroup,m=f?.scalingConfig,[h,_]=(0,Q.useState)(!1),[v,y]=(0,Q.useState)(!1),b=!!r&&!!f?.version&&f.version!==r,x;t[3]===a?x=t[4]:(x=(0,$.jsx)(`span`,{children:a}),t[3]=a,t[4]=x);let S;t[5]===b?S=t[6]:(S=b&&(0,$.jsx)(p,{"aria-label":`Update node group version`,onClick:()=>y(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(l,{className:`size-4`})}),t[5]=b,t[6]=S);let C;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>_(!0),t[7]=C):C=t[7];let w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(p,{"aria-label":`Scale node group`,onClick:C,size:`icon`,variant:`ghost`,children:(0,$.jsx)(xe,{className:`size-4`})}),t[8]=w):w=t[8];let T;t[9]!==a||t[10]!==o?(T=()=>o(a),t[9]=a,t[10]=o,t[11]=T):T=t[11];let E;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(d,{className:`size-4`}),t[12]=E):E=t[12];let D;t[13]===T?D=t[14]:(D=(0,$.jsx)(p,{"aria-label":`Delete node group`,onClick:T,size:`icon`,variant:`ghost`,children:E}),t[13]=T,t[14]=D);let O;t[15]!==S||t[16]!==D?(O=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[S,w,D]}),t[15]=S,t[16]=D,t[17]=O):O=t[17];let k;t[18]!==x||t[19]!==O?(k=(0,$.jsx)(X.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[x,O]})}),t[18]=x,t[19]=O,t[20]=k):k=t[20];let A=f?.status,j;t[21]===A?j=t[22]:(j=(0,$.jsx)(Z,{label:`Status`,value:A}),t[21]=A,t[22]=j);let M=b?`${f?.version} (cluster on ${r})`:f?.version,N;t[23]===M?N=t[24]:(N=(0,$.jsx)(Z,{label:`Kubernetes version`,value:M}),t[23]=M,t[24]=N);let P;t[25]===f?.instanceTypes?P=t[26]:(P=f?.instanceTypes?.join(`, `),t[25]=f?.instanceTypes,t[26]=P);let F;t[27]===P?F=t[28]:(F=(0,$.jsx)(Z,{label:`Instance types`,value:P}),t[27]=P,t[28]=F);let L=f?.amiType,R;t[29]===L?R=t[30]:(R=(0,$.jsx)(Z,{label:`AMI type`,value:L}),t[29]=L,t[30]=R);let z=f?.capacityType,B;t[31]===z?B=t[32]:(B=(0,$.jsx)(Z,{label:`Capacity type`,value:z}),t[31]=z,t[32]=B);let V=m?`${m.minSize} / ${m.desiredSize} / ${m.maxSize}`:void 0,H;t[33]===V?H=t[34]:(H=(0,$.jsx)(Z,{label:`Scaling (min / desired / max)`,value:V}),t[33]=V,t[34]=H);let U;t[35]!==j||t[36]!==N||t[37]!==F||t[38]!==R||t[39]!==B||t[40]!==H?(U=(0,$.jsxs)(X.Content,{children:[j,N,F,R,B,H]}),t[35]=j,t[36]=N,t[37]=F,t[38]=R,t[39]=B,t[40]=H,t[41]=U):U=t[41];let W;t[42]===m?W=t[43]:(W=m??{},t[42]=m,t[43]=W);let G;t[44]!==n||t[45]!==a||t[46]!==h||t[47]!==W?(G=(0,$.jsx)(We,{clusterName:n,current:W,nodegroupName:a,onOpenChange:_,open:h}),t[44]=n,t[45]=a,t[46]=h,t[47]=W,t[48]=G):G=t[48];let K=`Update node group "${a}" from ${f?.version} to ${r}? Nodes are replaced in a rolling update.`,ee;t[49]!==n||t[50]!==r||t[51]!==a||t[52]!==u?(ee=()=>u.mutate({clusterName:n,nodegroupName:a,version:r},{onSuccess:()=>y(!1)}),t[49]=n,t[50]=r,t[51]=a,t[52]=u,t[53]=ee):ee=t[53];let te;t[54]!==v||t[55]!==K||t[56]!==ee||t[57]!==u.isPending?(te=(0,$.jsx)(me,{confirmLabel:`Update`,description:K,isPending:u.isPending,onConfirm:ee,onOpenChange:y,open:v,title:`Update node group version`}),t[54]=v,t[55]=K,t[56]=ee,t[57]=u.isPending,t[58]=te):te=t[58];let ne;return t[59]!==k||t[60]!==U||t[61]!==G||t[62]!==te?(ne=(0,$.jsxs)(X,{children:[k,U,G,te]}),t[59]=k,t[60]=U,t[61]=G,t[62]=te,t[63]=ne):ne=t[63],ne}function Ke({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:a}=i(F),{data:o}=i(K),s=_(),c=a?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:h}=ne({resolver:ie(b),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),g=h(`subnetIds`),v=e=>{let t=g.includes(e)?g.filter(t=>t!==e):[...g,e];m(`subnetIds`,t,{shouldValidate:!0})},y=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(pe,{onOpenChange:r,open:n,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(fe,{children:(0,$.jsx)(ce,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(P,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(J,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(J,{errors:[u.nodeRole]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:g.includes(e.SubnetId??``),onChange:()=>v(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(J,{errors:[u.subnetIds]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(P,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(J,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:D.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:S.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(P,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(P,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(P,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(P,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(J,{errors:[u.desiredSize]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(de,{children:`Cancel`}),(0,$.jsx)(le,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(y)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function qe(e){let t=(0,Se.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,o;t[0]===n?o=t[1]:(o=G(n),t[0]=n,t[1]=o);let{data:s}=a(o),c=M(),[l,u]=(0,Q.useState)(!1),[d,f]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(p,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Ge,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:f},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(Ke,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${d??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==d?(b=()=>{d&&c.mutate({clusterName:n,nodegroupName:d},{onSuccess:()=>f(void 0)})},t[13]=n,t[14]=c,t[15]=d,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&f(void 0),t[17]=x):x=t[17];let S=d!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(me,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var Je=`ap-southeast-2`;function Ye(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Xe(e){let t=(0,Se.c)(134),{clusterName:n}=e,r=L(),[i,o]=(0,Q.useState)(!1),l;t[0]===n?l=t[1]:(l=W(n),t[0]=n,t[1]=l);let{data:m}=a(l),h=v(),g=m.cluster,_,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F;if(t[2]!==g?.arn||t[3]!==g?.health?.issues||t[4]!==g?.status||t[5]!==n||t[6]!==h||t[7]!==r){let e=g?.health?.issues??[],i;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(i={type:`bin`,value:`aws eks update-kubeconfig`},t[26]=i):i=t[26];let a;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(a={type:`flag`,value:` --name `},t[27]=a):a=t[27];let s;t[28]===n?s=t[29]:(s={type:`value`,value:n},t[28]=n,t[29]=s);let l;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(l={type:`flag`,value:` --region `},t[30]=l):l=t[30];let u;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(u={type:`value`,value:Je},t[31]=u):u=t[31];let m;t[32]===s?m=t[33]:(m={label:`Configure kubectl`,parts:[i,a,s,l,u]},t[32]=s,t[33]=m);let v;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(v={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[34]=v):v=t[34];let I;t[35]===m?I=t[36]:(I=[m,v],t[35]=m,t[36]=I),w=I;let L;t[37]!==n||t[38]!==h||t[39]!==r?(L=function(){h.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[37]=n,t[38]=h,t[39]=r,t[40]=L):L=t[40],C=L,t[41]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(c,{to:`/eks/list-clusters`,children:`Clusters`}),t[41]=T):T=t[41];let R;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>o(!0),t[42]=R):R=t[42];let z;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsxs)(p,{onClick:R,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(d,{className:`size-4`}),`Delete`]}),t[43]=z):z=t[43];let B=g?.status,V;t[44]===B?V=t[45]:(V=Ye(B),t[44]=B,t[45]=V);let H=g?.status??`UNKNOWN`,U;t[46]!==V||t[47]!==H?(U=(0,$.jsx)(ye,{variant:V,children:H}),t[46]=V,t[47]=H,t[48]=U):U=t[48];let W=e.length>0&&(0,$.jsxs)(ye,{variant:`destructive`,children:[(0,$.jsx)(f,{className:`size-3`}),e.length===1?`1 health issue`:`${e.length} health issues`]}),G;t[49]!==U||t[50]!==W?(G=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[z,U,W]}),t[49]=U,t[50]=W,t[51]=G):G=t[51],t[52]!==n||t[53]!==G?(E=(0,$.jsx)(oe,{actions:G,subtitle:`Cluster Details`,title:n}),t[52]=n,t[53]=G,t[54]=E):E=t[54],t[55]!==h.error||t[56]!==h.isError?(D=h.isError&&(0,$.jsx)(ae,{error:h.error instanceof Error?h.error:void 0,msg:`Failed to delete cluster.`}),t[55]=h.error,t[56]=h.isError,t[57]=D):D=t[57],S=ve,P=`overview`,t[58]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsxs)(ge,{children:[(0,$.jsx)(he,{value:`overview`,children:`Overview`}),(0,$.jsx)(he,{value:`compute`,children:`Compute`}),(0,$.jsx)(he,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(he,{value:`access`,children:`Access`}),(0,$.jsx)(he,{value:`networking`,children:`Networking`}),(0,$.jsx)(he,{value:`connect`,children:`Connect`})]}),t[58]=F):F=t[58],x=_e,N=`overview`,b=X,t[59]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(X.Header,{children:`Cluster`}),t[59]=M):M=t[59],y=X.Content;let K=g?.arn;t[60]===K?A=t[61]:(A=(0,$.jsx)(Z,{label:`ARN`,value:K}),t[60]=K,t[61]=A);let ee=g?.status;t[62]===ee?j=t[63]:(j=(0,$.jsx)(Z,{label:`Status`,value:ee}),t[62]=ee,t[63]=j),_=Z,O=`Health`,k=e.length>0?e.map(Ze).filter(Boolean).join(`; `):`OK`,t[2]=g?.arn,t[3]=g?.health?.issues,t[4]=g?.status,t[5]=n,t[6]=h,t[7]=r,t[8]=_,t[9]=y,t[10]=b,t[11]=x,t[12]=S,t[13]=C,t[14]=w,t[15]=T,t[16]=E,t[17]=D,t[18]=O,t[19]=k,t[20]=A,t[21]=j,t[22]=M,t[23]=N,t[24]=P,t[25]=F}else _=t[8],y=t[9],b=t[10],x=t[11],S=t[12],C=t[13],w=t[14],T=t[15],E=t[16],D=t[17],O=t[18],k=t[19],A=t[20],j=t[21],M=t[22],N=t[23],P=t[24],F=t[25];let I;t[64]!==_||t[65]!==O||t[66]!==k?(I=(0,$.jsx)(_,{label:O,value:k}),t[64]=_,t[65]=O,t[66]=k,t[67]=I):I=t[67];let R=g?.version,z;t[68]===R?z=t[69]:(z=(0,$.jsx)(Z,{label:`Kubernetes version`,value:R}),t[68]=R,t[69]=z);let B=g?.platformVersion,V;t[70]===B?V=t[71]:(V=(0,$.jsx)(Z,{label:`Platform version`,value:B}),t[70]=B,t[71]=V);let H=g?.endpoint,U;t[72]===H?U=t[73]:(U=(0,$.jsx)(Z,{label:`Endpoint`,value:H}),t[72]=H,t[73]=U);let G=g?.identity?.oidc?.issuer,K;t[74]===G?K=t[75]:(K=(0,$.jsx)(Z,{label:`OIDC issuer`,value:G}),t[74]=G,t[75]=K);let ee=g?.resourcesVpcConfig?.vpcId,te;t[76]===ee?te=t[77]:(te=(0,$.jsx)(Z,{label:`VPC`,value:ee}),t[76]=ee,t[77]=te);let ne=g?.createdAt,re;t[78]===ne?re=t[79]:(re=s(ne),t[78]=ne,t[79]=re);let ie;t[80]===re?ie=t[81]:(ie=(0,$.jsx)(Z,{label:`Created at`,value:re}),t[80]=re,t[81]=ie);let q;t[82]!==y||t[83]!==I||t[84]!==z||t[85]!==V||t[86]!==U||t[87]!==K||t[88]!==te||t[89]!==ie||t[90]!==A||t[91]!==j?(q=(0,$.jsxs)(y,{children:[A,j,I,z,V,U,K,te,ie]}),t[82]=y,t[83]=I,t[84]=z,t[85]=V,t[86]=U,t[87]=K,t[88]=te,t[89]=ie,t[90]=A,t[91]=j,t[92]=q):q=t[92];let J;t[93]!==b||t[94]!==q||t[95]!==M?(J=(0,$.jsxs)(b,{children:[M,q]}),t[93]=b,t[94]=q,t[95]=M,t[96]=J):J=t[96];let Y;t[97]!==x||t[98]!==J||t[99]!==N?(Y=(0,$.jsx)(x,{value:N,children:J}),t[97]=x,t[98]=J,t[99]=N,t[100]=Y):Y=t[100];let se=g?.version,ce=g?.resourcesVpcConfig?.vpcId,le;t[101]!==n||t[102]!==se||t[103]!==ce?(le=(0,$.jsx)(_e,{value:`compute`,children:(0,$.jsx)(qe,{clusterName:n,clusterVersion:se,vpcId:ce})}),t[101]=n,t[102]=se,t[103]=ce,t[104]=le):le=t[104];let ue;t[105]===n?ue=t[106]:(ue=(0,$.jsx)(_e,{value:`addons`,children:(0,$.jsx)(Re,{clusterName:n})}),t[105]=n,t[106]=ue);let de;t[107]===n?de=t[108]:(de=(0,$.jsx)(_e,{value:`access`,children:(0,$.jsx)(Oe,{clusterName:n})}),t[107]=n,t[108]=de);let fe;t[109]===g?fe=t[110]:(fe=(0,$.jsx)(_e,{value:`networking`,children:(0,$.jsx)(Be,{cluster:g})}),t[109]=g,t[110]=fe);let pe;t[111]===w?pe=t[112]:(pe=(0,$.jsx)(_e,{value:`connect`,children:(0,$.jsx)(u,{commands:w})}),t[111]=w,t[112]=pe);let be;t[113]!==S||t[114]!==Y||t[115]!==le||t[116]!==ue||t[117]!==de||t[118]!==fe||t[119]!==pe||t[120]!==P||t[121]!==F?(be=(0,$.jsxs)(S,{defaultValue:P,children:[F,Y,le,ue,de,fe,pe]}),t[113]=S,t[114]=Y,t[115]=le,t[116]=ue,t[117]=de,t[118]=fe,t[119]=pe,t[120]=P,t[121]=F,t[122]=be):be=t[122];let xe=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Ce;t[123]!==h.isPending||t[124]!==C||t[125]!==i||t[126]!==xe?(Ce=(0,$.jsx)(me,{description:xe,isPending:h.isPending,onConfirm:C,onOpenChange:o,open:i,title:`Delete cluster`}),t[123]=h.isPending,t[124]=C,t[125]=i,t[126]=xe,t[127]=Ce):Ce=t[127];let we;return t[128]!==T||t[129]!==E||t[130]!==D||t[131]!==be||t[132]!==Ce?(we=(0,$.jsxs)($.Fragment,{children:[T,E,D,be,Ce]}),t[128]=T,t[129]=E,t[130]=D,t[131]=be,t[132]=Ce,t[133]=we):we=t[133],we}function Ze(e){return e.message}function Qe(){let e=(0,Se.c)(2),{clusterName:t}=te.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Xe,{clusterName:t}),e[0]=t,e[1]=n),n}export{Qe as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_groupName.js b/spinifex/services/spinifexui/frontend/dist/assets/_groupName.js index 347b730a4..2bbdb3ad2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_groupName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_groupName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{S as l,n as u,p as d,r as f,v as p}from"./iam.js";import{Ot as m,S as h,St as g,gt as _,pt as v,vi as y}from"./index.js";import{t as b}from"./error-banner.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=t(n()),E=e();function D(){let{groupName:e}=h.useParams(),t=y(),{data:n}=r(_(e)),{data:D}=r(v(e)),{data:O}=r(g),{data:k}=r(m),A=d(),j=f(),M=p(),N=u(),P=l(),[F,I]=(0,T.useState)(!1),[L,R]=(0,T.useState)(!1),[z,B]=(0,T.useState)(!1),[V,H]=(0,T.useState)(null),[U,W]=(0,T.useState)(null),G=n.Group,K=n.Users??[],q=D.AttachedPolicies??[],J=O.Policies??[],Y=k.Users??[],X=new Set(q.map(e=>e.PolicyArn)),Z=J.filter(e=>e.Arn&&!X.has(e.Arn)),Q=new Set(K.map(e=>e.UserName)),$=Y.filter(e=>e.UserName&&!Q.has(e.UserName)),ee=async()=>{try{await A.mutateAsync(e),t({to:`/iam/list-groups`})}finally{I(!1)}},te=async t=>{await j.mutateAsync({groupName:e,policyArn:t}),R(!1)},ne=async t=>{H(t);try{await M.mutateAsync({groupName:e,policyArn:t})}finally{H(null)}},re=async t=>{await N.mutateAsync({groupName:e,userName:t}),B(!1)},ie=async t=>{W(t);try{await P.mutateAsync({groupName:e,userName:t})}finally{W(null)}};return G?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/iam/list-groups`,children:`Back to groups`}),A.error&&(0,E.jsx)(b,{error:A.error,msg:`Failed to delete group`}),N.error&&(0,E.jsx)(b,{error:N.error,msg:`Failed to add user`}),P.error&&(0,E.jsx)(b,{error:P.error,msg:`Failed to remove user`}),j.error&&(0,E.jsx)(b,{error:j.error,msg:`Failed to attach policy`}),M.error&&(0,E.jsx)(b,{error:M.error,msg:`Failed to detach policy`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(x,{actions:(0,E.jsxs)(c,{onClick:()=>I(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Group Details`,title:G.GroupName??``}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Group Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Group Name`,value:G.GroupName}),(0,E.jsx)(w,{label:`Group ID`,value:G.GroupId}),(0,E.jsx)(w,{label:`ARN`,value:G.Arn}),(0,E.jsx)(w,{label:`Path`,value:G.Path}),(0,E.jsx)(w,{label:`Created`,value:a(G.CreateDate)})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:(0,E.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,E.jsx)(`span`,{children:`Members`}),(0,E.jsx)(c,{onClick:()=>B(!z),size:`sm`,children:`Add User`})]})}),(0,E.jsxs)(C.Content,{children:[z&&$.length>0&&(0,E.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a user to add:`}),(0,E.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,E.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:N.isPending,onClick:()=>{e.UserName&&re(e.UserName)},type:`button`,children:[(0,E.jsx)(`span`,{children:e.UserName}),(0,E.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.UserName))})]}),z&&$.length===0&&(0,E.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No users available to add.`}),K.length>0?(0,E.jsx)(`div`,{className:`col-span-2 space-y-3`,children:K.map(e=>(0,E.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,E.jsx)(i,{className:`text-sm font-medium hover:underline`,params:{userName:e.UserName??``},to:`/iam/list-users/$userName`,children:e.UserName}),(0,E.jsx)(c,{disabled:U===e.UserName,onClick:()=>{e.UserName&&ie(e.UserName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.UserName))}):(0,E.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No members.`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:(0,E.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,E.jsx)(`span`,{children:`Attached Policies`}),(0,E.jsx)(c,{onClick:()=>R(!L),size:`sm`,children:`Attach Policy`})]})}),(0,E.jsxs)(C.Content,{children:[L&&Z.length>0&&(0,E.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,E.jsx)(`div`,{className:`space-y-1`,children:Z.map(e=>(0,E.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:j.isPending,onClick:()=>{e.Arn&&te(e.Arn)},type:`button`,children:[(0,E.jsx)(`span`,{children:e.PolicyName}),(0,E.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),L&&Z.length===0&&(0,E.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),q.length>0?(0,E.jsx)(`div`,{className:`col-span-2 space-y-3`,children:q.map(e=>(0,E.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,E.jsxs)(`div`,{className:`space-y-1`,children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,E.jsx)(c,{disabled:V===e.PolicyArn,onClick:()=>{e.PolicyArn&&ne(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,E.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to delete the group "${e}"? This action cannot be undone. You must remove all members and detach all policies first.`,isPending:A.isPending,onConfirm:ee,onOpenChange:I,open:F,title:`Delete Group`})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/iam/list-groups`,children:`Back to groups`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Group not found.`})]})}export{D as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{O as l,n as u,p as d,r as f,x as p}from"./iam.js";import{Di as m,Pt as h,S as g,pt as _,vt as v,wt as y}from"./index.js";import{t as b}from"./error-banner.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";import{t as T}from"./inline-policies-panel.js";var E=t(n()),D=e();function O(){let{groupName:e}=g.useParams(),t=m(),{data:n}=r(v(e)),{data:O}=r(_(e)),{data:k}=r(y),{data:ee}=r(h),A=d(),j=f(),M=p(),N=u(),P=l(),[F,I]=(0,E.useState)(!1),[L,R]=(0,E.useState)(!1),[z,B]=(0,E.useState)(!1),[V,H]=(0,E.useState)(null),[U,W]=(0,E.useState)(null),G=n.Group,K=n.Users??[],q=O.AttachedPolicies??[],J=k.Policies??[],Y=ee.Users??[],X=new Set(q.map(e=>e.PolicyArn)),Z=J.filter(e=>e.Arn&&!X.has(e.Arn)),Q=new Set(K.map(e=>e.UserName)),$=Y.filter(e=>e.UserName&&!Q.has(e.UserName)),te=async()=>{try{await A.mutateAsync(e),t({to:`/iam/list-groups`})}finally{I(!1)}},ne=async t=>{await j.mutateAsync({groupName:e,policyArn:t}),R(!1)},re=async t=>{H(t);try{await M.mutateAsync({groupName:e,policyArn:t})}finally{H(null)}},ie=async t=>{await N.mutateAsync({groupName:e,userName:t}),B(!1)},ae=async t=>{W(t);try{await P.mutateAsync({groupName:e,userName:t})}finally{W(null)}};return G?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/iam/list-groups`,children:`Back to groups`}),A.error&&(0,D.jsx)(b,{error:A.error,msg:`Failed to delete group`}),N.error&&(0,D.jsx)(b,{error:N.error,msg:`Failed to add user`}),P.error&&(0,D.jsx)(b,{error:P.error,msg:`Failed to remove user`}),j.error&&(0,D.jsx)(b,{error:j.error,msg:`Failed to attach policy`}),M.error&&(0,D.jsx)(b,{error:M.error,msg:`Failed to detach policy`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(x,{actions:(0,D.jsxs)(c,{onClick:()=>I(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Group Details`,title:G.GroupName??``}),(0,D.jsxs)(C,{children:[(0,D.jsx)(C.Header,{children:`Group Information`}),(0,D.jsxs)(C.Content,{children:[(0,D.jsx)(w,{label:`Group Name`,value:G.GroupName}),(0,D.jsx)(w,{label:`Group ID`,value:G.GroupId}),(0,D.jsx)(w,{label:`ARN`,value:G.Arn}),(0,D.jsx)(w,{label:`Path`,value:G.Path}),(0,D.jsx)(w,{label:`Created`,value:a(G.CreateDate)})]})]}),(0,D.jsxs)(C,{children:[(0,D.jsx)(C.Header,{children:(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(`span`,{children:`Members`}),(0,D.jsx)(c,{onClick:()=>B(!z),size:`sm`,children:`Add User`})]})}),(0,D.jsxs)(C.Content,{children:[z&&$.length>0&&(0,D.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,D.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a user to add:`}),(0,D.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,D.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:N.isPending,onClick:()=>{e.UserName&&ie(e.UserName)},type:`button`,children:[(0,D.jsx)(`span`,{children:e.UserName}),(0,D.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.UserName))})]}),z&&$.length===0&&(0,D.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No users available to add.`}),K.length>0?(0,D.jsx)(`div`,{className:`col-span-2 space-y-3`,children:K.map(e=>(0,D.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,D.jsx)(i,{className:`text-sm font-medium hover:underline`,params:{userName:e.UserName??``},to:`/iam/list-users/$userName`,children:e.UserName}),(0,D.jsx)(c,{disabled:U===e.UserName,onClick:()=>{e.UserName&&ae(e.UserName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.UserName))}):(0,D.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No members.`})]})]}),(0,D.jsxs)(C,{children:[(0,D.jsx)(C.Header,{children:(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(`span`,{children:`Attached Policies`}),(0,D.jsx)(c,{onClick:()=>R(!L),size:`sm`,children:`Attach Policy`})]})}),(0,D.jsxs)(C.Content,{children:[L&&Z.length>0&&(0,D.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,D.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,D.jsx)(`div`,{className:`space-y-1`,children:Z.map(e=>(0,D.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:j.isPending,onClick:()=>{e.Arn&&ne(e.Arn)},type:`button`,children:[(0,D.jsx)(`span`,{children:e.PolicyName}),(0,D.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),L&&Z.length===0&&(0,D.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),q.length>0?(0,D.jsx)(`div`,{className:`col-span-2 space-y-3`,children:q.map(e=>(0,D.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,D.jsxs)(`div`,{className:`space-y-1`,children:[(0,D.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,D.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,D.jsx)(c,{disabled:V===e.PolicyArn,onClick:()=>{e.PolicyArn&&re(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,D.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,D.jsx)(T,{kind:`group`,name:e})]}),(0,D.jsx)(S,{description:`Are you sure you want to delete the group "${e}"? This action cannot be undone. You must remove all members and detach all policies first.`,isPending:A.isPending,onConfirm:te,onOpenChange:I,open:F,title:`Delete Group`})]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/iam/list-groups`,children:`Back to groups`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Group not found.`})]})}export{O as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id.js b/spinifex/services/spinifexui/frontend/dist/assets/_id.js index bb927817a..642360469 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Vt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{R as p,n as m,q as h}from"./ec2.js";import{jt as g,r as _,vi as v,zt as y}from"./index.js";import{t as b}from"./error-banner.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=t(n()),E=e();function D(){let{id:e}=_.useParams(),t=v(),{data:n}=r(g(e)),{data:D}=r(y),O=m(),k=p(),A=h(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(``),F=n.Addresses?.[0],I=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],L=async()=>{try{await A.mutateAsync(e),t({to:`/ec2/describe-addresses`})}finally{M(!1)}},R=async()=>{N&&await O.mutateAsync({allocationId:e,instanceId:N})},z=async()=>{F?.AssociationId&&await k.mutateAsync(F.AssociationId)};if(!F?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(a,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let B=!!F.AssociationId,V=i(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(a,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(b,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(x,{actions:(0,E.jsxs)(f,{disabled:B||A.isPending,onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(d,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:V?`${F.AllocationId} (${V})`:F.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:F.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:F.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:F.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:F.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:F.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:F.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:B?(0,E.jsx)(f,{disabled:k.isPending,onClick:z,size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(u,{onValueChange:e=>P(e??``),value:N,children:[(0,E.jsx)(l,{className:`w-full`,children:(0,E.jsx)(o,{placeholder:`Select an instance`})}),(0,E.jsx)(c,{children:I.map(e=>{let t=i(e.Tags);return(0,E.jsx)(s,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(f,{disabled:!N||O.isPending,onClick:R,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${F.AllocationId}" (${F.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:L,onOpenChange:M,open:j,title:`Release Elastic IP`})]})}export{D as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Vt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{R as p,n as m,q as h}from"./ec2.js";import{Bt as g,Di as _,Jt as v,r as y}from"./index.js";import{t as b}from"./error-banner.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=t(n()),E=e();function D(){let{id:e}=y.useParams(),t=_(),{data:n}=r(g(e)),{data:D}=r(v),O=m(),k=p(),A=h(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(``),F=n.Addresses?.[0],I=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],L=async()=>{try{await A.mutateAsync(e),t({to:`/ec2/describe-addresses`})}finally{M(!1)}},R=async()=>{N&&await O.mutateAsync({allocationId:e,instanceId:N})},z=async()=>{F?.AssociationId&&await k.mutateAsync(F.AssociationId)};if(!F?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(a,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let B=!!F.AssociationId,V=i(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(a,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(b,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(x,{actions:(0,E.jsxs)(f,{disabled:B||A.isPending,onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(d,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:V?`${F.AllocationId} (${V})`:F.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:F.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:F.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:F.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:F.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:F.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:F.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:B?(0,E.jsx)(f,{disabled:k.isPending,onClick:z,size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(u,{onValueChange:e=>P(e??``),value:N,children:[(0,E.jsx)(l,{className:`w-full`,children:(0,E.jsx)(o,{placeholder:`Select an instance`})}),(0,E.jsx)(c,{children:I.map(e=>{let t=i(e.Tags);return(0,E.jsx)(s,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(f,{disabled:!N||O.isPending,onClick:R,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${F.AllocationId}" (${F.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:L,onOpenChange:M,open:j,title:`Release Elastic IP`})]})}export{D as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js index d8c3c7811..bd4ad565f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{A as m,J as h,Y as g,c as _,s as v}from"./ec2.js";import{Zt as y,f as b,ii as x,vi as S,xr as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,r as A,t as j}from"./field.js";import{y as M}from"./ec22.js";import{i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./alert-dialog.js";import{t as B}from"./delete-confirmation-dialog.js";import{n as V,t as H}from"./detail-row.js";var U=t(n()),W=e();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function q({open:e,onOpenChange:t,direction:n,groupId:r}){let i=_(),a=v(),d=n===`ingress`?i:a,{control:f,handleSubmit:p,register:m,reset:h,watch:g,formState:{errors:y}}=w({resolver:E(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),b=g(`ipProtocol`),x=b===`-1`||b===`icmp`;return(0,W.jsx)(z,{onOpenChange:t,open:e,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,n===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),d.error&&(0,W.jsx)(D,{error:d.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:p(async e=>{let n={groupId:r,ipProtocol:e.ipProtocol,fromPort:x?-1:e.fromPort,toPort:x?-1:e.toPort,cidrIp:e.cidrIp};await d.mutateAsync(n),h(),t(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(T,{control:f,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(l,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(o,{})}),(0,W.jsxs)(c,{children:[(0,W.jsx)(s,{value:`tcp`,children:`TCP`}),(0,W.jsx)(s,{value:`udp`,children:`UDP`}),(0,W.jsx)(s,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(s,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[y.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(C,{"aria-invalid":!!y.fromPort,disabled:x,id:`fromPort`,type:`number`,...m(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(C,{"aria-invalid":!!y.toPort,disabled:x,id:`toPort`,type:`number`,...m(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(C,{"aria-invalid":!!y.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...m(`cidrIp`)}),(0,W.jsx)(A,{errors:[y.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{h(),d.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:d.isPending,form:`add-rule-form`,type:`submit`,children:d.isPending?`Adding…`:`Add Rule`})]})]})})}function J(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function Y({rule:e,source:t,groupId:n,direction:r}){let i=g(),a=h(),o=r===`ingress`?i:a,s=async()=>{try{await o.mutateAsync({groupId:n,ipProtocol:e.IpProtocol??`-1`,fromPort:e.FromPort??-1,toPort:e.ToPort??-1,...t.kind===`group`?{sourceGroupId:t.value}:{cidrIp:t.value}})}catch{}},c=t.kind===`group`&&t.value===n?`${t.value} (this security group)`:t.value;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[r===`ingress`?`Source`:`Destination`,`:`,` `]}),c]})]}),(0,W.jsx)(p,{disabled:o.isPending,onClick:s,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(x,{className:`size-3`})})]}),o.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(D,{error:o.error,msg:`Failed to remove rule`})})]})}function X(){let{id:e}=b.useParams(),t=S(),{data:n}=r(y(e)),o=n.SecurityGroups?.[0],s=m(),[c,l]=(0,U.useState)(!1),[u,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),v=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{l(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let x=o.IpPermissions??[],C=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(D,{error:s.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(O,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(p,{onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(f,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:o.GroupName?`${o.GroupId} (${o.GroupName})`:o.GroupId}),(0,W.jsxs)(V,{children:[(0,W.jsx)(V.Header,{children:`Security Group Information`}),(0,W.jsxs)(V.Content,{children:[(0,W.jsx)(H,{label:`Group ID`,value:o.GroupId}),(0,W.jsx)(H,{label:`Group Name`,value:o.GroupName}),(0,W.jsx)(H,{label:`Description`,value:o.Description}),(0,W.jsx)(H,{label:`VPC ID`,value:o.VpcId?(0,W.jsx)(i,{className:`text-primary hover:underline`,params:{id:o.VpcId},to:`/ec2/describe-vpcs/$id`,children:o.VpcId}):`—`}),(0,W.jsx)(H,{label:`Owner ID`,value:o.OwnerId})]})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,x.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>h(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),x.length>0?(0,W.jsx)(`div`,{children:x.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`ingress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,C.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>_(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),C.length>0?(0,W.jsx)(`div`,{children:C.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`egress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(B,{description:`Are you sure you want to delete the security group "${o.GroupId}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:v,onOpenChange:l,open:c,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:h,open:u}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:_,open:g})]})}export{X as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{A as m,J as h,Y as g,c as _,s as v}from"./ec2.js";import{Ar as y,Di as b,f as x,on as S,pi as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,r as A,t as j}from"./field.js";import{y as M}from"./ec22.js";import{i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./alert-dialog.js";import{t as B}from"./delete-confirmation-dialog.js";import{n as V,t as H}from"./detail-row.js";var U=t(n()),W=e();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function q({open:e,onOpenChange:t,direction:n,groupId:r}){let i=_(),a=v(),d=n===`ingress`?i:a,{control:f,handleSubmit:p,register:m,reset:h,watch:g,formState:{errors:b}}=w({resolver:E(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),x=g(`ipProtocol`),S=x===`-1`||x===`icmp`;return(0,W.jsx)(z,{onOpenChange:t,open:e,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,n===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),d.error&&(0,W.jsx)(D,{error:d.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:p(async e=>{let n={groupId:r,ipProtocol:e.ipProtocol,fromPort:S?-1:e.fromPort,toPort:S?-1:e.toPort,cidrIp:e.cidrIp};await d.mutateAsync(n),h(),t(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(T,{control:f,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(l,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(o,{})}),(0,W.jsxs)(c,{children:[(0,W.jsx)(s,{value:`tcp`,children:`TCP`}),(0,W.jsx)(s,{value:`udp`,children:`UDP`}),(0,W.jsx)(s,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(s,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[b.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(y,{"aria-invalid":!!b.fromPort,disabled:S,id:`fromPort`,type:`number`,...m(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[b.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(y,{"aria-invalid":!!b.toPort,disabled:S,id:`toPort`,type:`number`,...m(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[b.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(y,{"aria-invalid":!!b.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...m(`cidrIp`)}),(0,W.jsx)(A,{errors:[b.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{h(),d.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:d.isPending,form:`add-rule-form`,type:`submit`,children:d.isPending?`Adding…`:`Add Rule`})]})]})})}function J(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function Y({rule:e,source:t,groupId:n,direction:r}){let i=g(),a=h(),o=r===`ingress`?i:a,s=async()=>{try{await o.mutateAsync({groupId:n,ipProtocol:e.IpProtocol??`-1`,fromPort:e.FromPort??-1,toPort:e.ToPort??-1,...t.kind===`group`?{sourceGroupId:t.value}:{cidrIp:t.value}})}catch{}},c=t.kind===`group`&&t.value===n?`${t.value} (this security group)`:t.value;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[r===`ingress`?`Source`:`Destination`,`:`,` `]}),c]})]}),(0,W.jsx)(p,{disabled:o.isPending,onClick:s,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(C,{className:`size-3`})})]}),o.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(D,{error:o.error,msg:`Failed to remove rule`})})]})}function X(){let{id:e}=x.useParams(),t=b(),{data:n}=r(S(e)),o=n.SecurityGroups?.[0],s=m(),[c,l]=(0,U.useState)(!1),[u,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),v=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{l(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let y=o.IpPermissions??[],C=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(D,{error:s.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(O,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(p,{onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(f,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:o.GroupName?`${o.GroupId} (${o.GroupName})`:o.GroupId}),(0,W.jsxs)(V,{children:[(0,W.jsx)(V.Header,{children:`Security Group Information`}),(0,W.jsxs)(V.Content,{children:[(0,W.jsx)(H,{label:`Group ID`,value:o.GroupId}),(0,W.jsx)(H,{label:`Group Name`,value:o.GroupName}),(0,W.jsx)(H,{label:`Description`,value:o.Description}),(0,W.jsx)(H,{label:`VPC ID`,value:o.VpcId?(0,W.jsx)(i,{className:`text-primary hover:underline`,params:{id:o.VpcId},to:`/ec2/describe-vpcs/$id`,children:o.VpcId}):`—`}),(0,W.jsx)(H,{label:`Owner ID`,value:o.OwnerId})]})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,y.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>h(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),y.length>0?(0,W.jsx)(`div`,{children:y.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`ingress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,C.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>_(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),C.length>0?(0,W.jsx)(`div`,{children:C.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`egress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(B,{description:`Are you sure you want to delete the security group "${o.GroupId}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:v,onOpenChange:l,open:c,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:h,open:u}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:_,open:g})]})}export{X as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js index 36f8601e3..27c8b1a9a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as ee}from"./copy.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{K as l,j as te,l as ne}from"./ec2.js";import{$t as u,Jt as d,di as f,p,vi as m,xr as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as re}from"./page-heading.js";import{a as _,t as v}from"./field.js";import{a as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./alert-dialog.js";import{t as D}from"./delete-confirmation-dialog.js";import{n as O,t as k}from"./detail-row.js";import{t as A}from"./state-badge.js";import{t as j}from"./textarea.js";var M=t(n()),N=e();function P(){let{id:e}=p.useParams(),t=m(),{data:n}=r(u(e)),{data:P}=r(d),F=n.Snapshots?.[0],I=te(),L=ne(),R=l(),[z,B]=(0,M.useState)(!1),[V,H]=(0,M.useState)(!1),[U,W]=(0,M.useState)(``),[G,K]=(0,M.useState)(!1),[q,J]=(0,M.useState)(``),[Y,X]=(0,M.useState)(``),[Z,Q]=(0,M.useState)(null),ie=P.Regions?.[0]?.RegionName??`ap-southeast-2`,$=F?.State===`completed`,ae=F?.State===`completed`;function oe(e){e||(J(``),X(``),Q(null)),K(e)}async function se(){try{let t=await R.mutateAsync({snapshotId:e,name:q,description:Y||void 0});Q(t.ImageId??null),J(``),X(``)}catch{}}let ce=async()=>{try{await I.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},le=async()=>{try{await L.mutateAsync({sourceSnapshotId:e,sourceRegion:ie,description:U||void 0}),H(!1),W(``)}catch{}};if(!F?.SnapshotId)return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,N.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let ue=a(F.StartTime);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),I.error&&(0,N.jsx)(g,{error:I.error,msg:`Failed to delete snapshot`}),L.error&&(0,N.jsx)(g,{error:L.error,msg:`Failed to copy snapshot`}),R.error&&(0,N.jsx)(g,{error:R.error,msg:`Failed to register image`}),(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(re,{actions:(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsxs)(c,{disabled:!$,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,N.jsx)(s,{className:`size-4`}),`Delete`]}),(0,N.jsxs)(c,{disabled:!$,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,N.jsx)(ee,{className:`size-4`}),`Copy Snapshot`]}),(0,N.jsxs)(c,{disabled:!ae,onClick:()=>K(!0),size:`sm`,variant:`outline`,children:[(0,N.jsx)(f,{className:`size-4`}),`Register as AMI`]}),(0,N.jsx)(A,{state:F.State})]}),subtitle:`Snapshot Details`,title:F.SnapshotId}),(0,N.jsxs)(O,{children:[(0,N.jsx)(O.Header,{children:`Snapshot Information`}),(0,N.jsxs)(O.Content,{children:[(0,N.jsx)(k,{label:`Snapshot ID`,value:F.SnapshotId}),(0,N.jsx)(k,{label:`Volume ID`,value:F.VolumeId?(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:F.VolumeId},to:`/ec2/describe-volumes/$id`,children:F.VolumeId}):void 0}),(0,N.jsx)(k,{label:`Volume Size`,value:`${F.VolumeSize} GiB`}),(0,N.jsx)(k,{label:`State`,value:F.State}),(0,N.jsx)(k,{label:`Description`,value:F.Description}),(0,N.jsx)(k,{label:`Progress`,value:F.Progress}),(0,N.jsx)(k,{label:`Start Time`,value:ue}),(0,N.jsx)(k,{label:`Owner ID`,value:F.OwnerId}),(0,N.jsx)(k,{label:`Encrypted`,value:F.Encrypted?`Yes`:`No`})]})]})]}),(0,N.jsx)(D,{description:`Are you sure you want to delete the snapshot "${F.SnapshotId}"? This action cannot be undone.`,isPending:I.isPending,onConfirm:ce,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,N.jsx)(E,{onOpenChange:H,open:V,children:(0,N.jsxs)(b,{children:[(0,N.jsxs)(T,{children:[(0,N.jsx)(x,{children:`Copy Snapshot`}),(0,N.jsx)(y,{children:`Create a copy of this snapshot in the current region.`})]}),(0,N.jsxs)(v,{children:[(0,N.jsx)(_,{children:(0,N.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,N.jsx)(h,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,N.jsxs)(C,{children:[(0,N.jsx)(w,{children:`Cancel`}),(0,N.jsx)(S,{disabled:L.isPending,onClick:le,children:L.isPending?`Copying…`:`Copy Snapshot`})]})]})}),(0,N.jsx)(E,{onOpenChange:oe,open:G,children:(0,N.jsxs)(b,{children:[(0,N.jsxs)(T,{children:[(0,N.jsx)(x,{children:Z?`Image Registered`:`Register as AMI`}),(0,N.jsx)(y,{children:Z?(0,N.jsxs)(N.Fragment,{children:[`AMI`,` `,(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:Z},to:`/ec2/describe-images/$id`,children:Z}),` `,`was registered successfully.`]}):`Create an AMI from snapshot "${e}".`})]}),!Z&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(v,{children:[(0,N.jsx)(_,{children:(0,N.jsx)(`label`,{htmlFor:`registerName`,children:`Name`})}),(0,N.jsx)(h,{id:`registerName`,onChange:e=>J(e.target.value),placeholder:`my-image`,value:q})]}),(0,N.jsxs)(v,{children:[(0,N.jsx)(_,{children:(0,N.jsx)(`label`,{htmlFor:`registerDescription`,children:`Description (optional)`})}),(0,N.jsx)(j,{id:`registerDescription`,onChange:e=>X(e.target.value),placeholder:`Optional description`,rows:2,value:Y})]})]}),(0,N.jsxs)(C,{children:[(0,N.jsx)(w,{children:Z?`Close`:`Cancel`}),!Z&&(0,N.jsx)(S,{disabled:R.isPending||!q.trim(),onClick:se,children:R.isPending?`Registering…`:`Register AMI`})]})]})})]})}export{P as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as ee}from"./copy.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{K as te,j as ne,l}from"./ec2.js";import{Ar as u,Di as d,bi as f,cn as p,p as m,rn as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as re}from"./page-heading.js";import{a as _,t as v}from"./field.js";import{a as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./alert-dialog.js";import{t as D}from"./delete-confirmation-dialog.js";import{n as O,t as k}from"./detail-row.js";import{t as A}from"./state-badge.js";import{t as j}from"./textarea.js";var M=t(n()),N=e();function P(){let{id:e}=m.useParams(),t=d(),{data:n}=r(p(e)),{data:P}=r(h),F=n.Snapshots?.[0],I=ne(),L=l(),R=te(),[z,B]=(0,M.useState)(!1),[V,H]=(0,M.useState)(!1),[U,W]=(0,M.useState)(``),[G,K]=(0,M.useState)(!1),[q,J]=(0,M.useState)(``),[Y,X]=(0,M.useState)(``),[Z,Q]=(0,M.useState)(null),ie=P.Regions?.[0]?.RegionName??`ap-southeast-2`,$=F?.State===`completed`,ae=F?.State===`completed`;function oe(e){e||(J(``),X(``),Q(null)),K(e)}async function se(){try{let t=await R.mutateAsync({snapshotId:e,name:q,description:Y||void 0});Q(t.ImageId??null),J(``),X(``)}catch{}}let ce=async()=>{try{await I.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},le=async()=>{try{await L.mutateAsync({sourceSnapshotId:e,sourceRegion:ie,description:U||void 0}),H(!1),W(``)}catch{}};if(!F?.SnapshotId)return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,N.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let ue=a(F.StartTime);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),I.error&&(0,N.jsx)(g,{error:I.error,msg:`Failed to delete snapshot`}),L.error&&(0,N.jsx)(g,{error:L.error,msg:`Failed to copy snapshot`}),R.error&&(0,N.jsx)(g,{error:R.error,msg:`Failed to register image`}),(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(re,{actions:(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsxs)(c,{disabled:!$,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,N.jsx)(s,{className:`size-4`}),`Delete`]}),(0,N.jsxs)(c,{disabled:!$,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,N.jsx)(ee,{className:`size-4`}),`Copy Snapshot`]}),(0,N.jsxs)(c,{disabled:!ae,onClick:()=>K(!0),size:`sm`,variant:`outline`,children:[(0,N.jsx)(f,{className:`size-4`}),`Register as AMI`]}),(0,N.jsx)(A,{state:F.State})]}),subtitle:`Snapshot Details`,title:F.SnapshotId}),(0,N.jsxs)(O,{children:[(0,N.jsx)(O.Header,{children:`Snapshot Information`}),(0,N.jsxs)(O.Content,{children:[(0,N.jsx)(k,{label:`Snapshot ID`,value:F.SnapshotId}),(0,N.jsx)(k,{label:`Volume ID`,value:F.VolumeId?(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:F.VolumeId},to:`/ec2/describe-volumes/$id`,children:F.VolumeId}):void 0}),(0,N.jsx)(k,{label:`Volume Size`,value:`${F.VolumeSize} GiB`}),(0,N.jsx)(k,{label:`State`,value:F.State}),(0,N.jsx)(k,{label:`Description`,value:F.Description}),(0,N.jsx)(k,{label:`Progress`,value:F.Progress}),(0,N.jsx)(k,{label:`Start Time`,value:ue}),(0,N.jsx)(k,{label:`Owner ID`,value:F.OwnerId}),(0,N.jsx)(k,{label:`Encrypted`,value:F.Encrypted?`Yes`:`No`})]})]})]}),(0,N.jsx)(D,{description:`Are you sure you want to delete the snapshot "${F.SnapshotId}"? This action cannot be undone.`,isPending:I.isPending,onConfirm:ce,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,N.jsx)(E,{onOpenChange:H,open:V,children:(0,N.jsxs)(b,{children:[(0,N.jsxs)(T,{children:[(0,N.jsx)(x,{children:`Copy Snapshot`}),(0,N.jsx)(y,{children:`Create a copy of this snapshot in the current region.`})]}),(0,N.jsxs)(v,{children:[(0,N.jsx)(_,{children:(0,N.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,N.jsx)(u,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,N.jsxs)(C,{children:[(0,N.jsx)(w,{children:`Cancel`}),(0,N.jsx)(S,{disabled:L.isPending,onClick:le,children:L.isPending?`Copying…`:`Copy Snapshot`})]})]})}),(0,N.jsx)(E,{onOpenChange:oe,open:G,children:(0,N.jsxs)(b,{children:[(0,N.jsxs)(T,{children:[(0,N.jsx)(x,{children:Z?`Image Registered`:`Register as AMI`}),(0,N.jsx)(y,{children:Z?(0,N.jsxs)(N.Fragment,{children:[`AMI`,` `,(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:Z},to:`/ec2/describe-images/$id`,children:Z}),` `,`was registered successfully.`]}):`Create an AMI from snapshot "${e}".`})]}),!Z&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(v,{children:[(0,N.jsx)(_,{children:(0,N.jsx)(`label`,{htmlFor:`registerName`,children:`Name`})}),(0,N.jsx)(u,{id:`registerName`,onChange:e=>J(e.target.value),placeholder:`my-image`,value:q})]}),(0,N.jsxs)(v,{children:[(0,N.jsx)(_,{children:(0,N.jsx)(`label`,{htmlFor:`registerDescription`,children:`Description (optional)`})}),(0,N.jsx)(j,{id:`registerDescription`,onChange:e=>X(e.target.value),placeholder:`Optional description`,rows:2,value:Y})]})]}),(0,N.jsxs)(C,{children:[(0,N.jsx)(w,{children:Z?`Close`:`Cancel`}),!Z&&(0,N.jsx)(S,{disabled:R.isPending||!q.trim(),onClick:se,children:R.isPending?`Registering…`:`Register AMI`})]})]})})]})}export{P as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js index 110399d18..787cfd14b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{M as l}from"./ec2.js";import{m as u,tn as d,vi as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=u.useParams(),t=f(),{data:n}=r(d(e)),x=n.Subnets?.[0],S=l(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=a(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{M as l}from"./ec2.js";import{Di as u,m as d,un as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=d.useParams(),t=u(),{data:n}=r(f(e)),x=n.Subnets?.[0],S=l(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=a(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id13.js b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js index 108489c4f..b5c65f084 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id13.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Ft as o,Vt as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{_ as d,c as f,l as p,m,p as h}from"./elbv2.js";import{$ as g,Q as _,et as v,h as y,nt as b,vi as x,xr as S,zt as C}from"./index.js";import{t as w}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{i as L,n as R,t as z}from"./tags-editor.js";import{i as B,n as V,r as H,t as U}from"./tabs.js";var W=r(),G=t(n(),1),K=e();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:c}=e,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={},t[0]=l):l=t[0];let[u,d]=(0,G.useState)(l),[f,p]=(0,G.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,G.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let _=g,v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=v):v=t[5];let y=v,b;t[6]!==c||t[7]!==u?(b=()=>{let e=Object.entries(u).filter(Y);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),c(t)},t[6]=c,t[7]=u,t[8]=b):b=t[8];let x=b,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==u?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=u[t],r=n?.checked??!1,i=s(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>_(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(S,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>y(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=u,t[15]=T):T=t[15];let P;t[16]===f?P=t[17]:(P=f&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==x||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:x,children:I}),t[20]=x,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:e,vpcId:t,defaultPort:n,isActive:r}){let{data:s}=a(C),{data:c,isLoading:d,error:f}=i({...b(e),refetchInterval:r?X:!1,refetchIntervalInBackground:!1}),h=m(),g=p(),[_,v]=(0,G.useState)(!1),[y,x]=(0,G.useState)(),S=(s.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===t&&e.State?.Name!==`terminated`),T=c?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[h.error&&(0,K.jsx)(w,{error:h.error,msg:`Failed to register targets`}),g.error&&(0,K.jsx)(w,{error:g.error,msg:`Failed to deregister target`}),f&&(0,K.jsx)(w,{error:f,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:d?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(u,{onClick:()=>v(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:o(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(u,{"aria-label":`Deregister ${t.Id}`,onClick:()=>x(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(l,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:n,instances:S,isPending:h.isPending,onConfirm:async t=>{try{await h.mutateAsync({targetGroupArn:e,targets:t}),v(!1)}catch{}},onOpenChange:v,open:_}),(0,K.jsx)(P,{description:y?`Deregister ${y.Id}${y.Port?`:${y.Port}`:``} from this target group?`:``,isPending:g.isPending,onConfirm:async()=>{if(y?.Id)try{await g.mutateAsync({targetGroupArn:e,targets:[{id:y.Id,port:y.Port}]})}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:y!==void 0,title:`Deregister target`})]})}function re({arn:e}){let t=x(),{data:n}=a(v(e)),{data:r}=a(g(e)),{data:i}=a(_([e])),o=f(),s=h(),p=d(),[m,y]=(0,G.useState)(!1),[b,S]=(0,G.useState)(`overview`),C=n.TargetGroups?.[0];if(!C?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(c,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await o.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{y(!1)}},D=r.Attributes??[],O=i?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(c,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),o.error&&(0,K.jsx)(w,{error:o.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(u,{onClick:()=>y(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:C.TargetGroupName??C.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:S,value:b,children:[(0,K.jsxs)(V,{children:[(0,K.jsx)(B,{value:`overview`,children:`Overview`}),(0,K.jsx)(B,{value:`targets`,children:`Targets`}),(0,K.jsx)(B,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(B,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(B,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:C.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:C.Protocol}),(0,K.jsx)(I,{label:`Port`,value:C.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:C.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:C.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:C.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:C.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:C.Port??80,isActive:b===`targets`,targetGroupArn:C.TargetGroupArn,vpcId:C.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:C.HealthCheckEnabled===void 0?void 0:String(C.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:C.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:C.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:C.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:C.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:C.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:C.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:C.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:C.Matcher?.HttpCode??C.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(R,{attributes:D,error:s.error,isPending:s.isPending,isSuccess:s.isSuccess,onSubmit:t=>{s.mutate({targetGroupArn:e,attributes:t})},specs:L})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(z,{error:p.error,isPending:p.isPending,isSuccess:p.isSuccess,onSubmit:t=>p.mutate({resourceArn:e,tags:t,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${C.TargetGroupName??C.TargetGroupArn}"? This action cannot be undone.`,isPending:o.isPending,onConfirm:E,onOpenChange:y,open:m,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=y.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Ft as o,Vt as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{_ as d,c as f,l as p,m,p as h}from"./elbv2.js";import{$ as g,Ar as _,Di as v,Jt as y,Q as b,et as x,h as S,nt as C}from"./index.js";import{t as w}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{i as L,n as R,t as z}from"./tags-editor.js";import{i as B,n as V,r as H,t as U}from"./tabs.js";var W=r(),G=t(n(),1),K=e();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:c}=e,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={},t[0]=l):l=t[0];let[u,d]=(0,G.useState)(l),[f,p]=(0,G.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,G.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let v=g,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(y=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=y):y=t[5];let b=y,x;t[6]!==c||t[7]!==u?(x=()=>{let e=Object.entries(u).filter(Y);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),c(t)},t[6]=c,t[7]=u,t[8]=x):x=t[8];let S=x,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==u?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=u[t],r=n?.checked??!1,i=s(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>v(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(_,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>b(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=u,t[15]=T):T=t[15];let P;t[16]===f?P=t[17]:(P=f&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==S||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:S,children:I}),t[20]=S,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:e,vpcId:t,defaultPort:n,isActive:r}){let{data:s}=a(y),{data:c,isLoading:d,error:f}=i({...C(e),refetchInterval:r?X:!1,refetchIntervalInBackground:!1}),h=m(),g=p(),[_,v]=(0,G.useState)(!1),[b,x]=(0,G.useState)(),S=(s.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===t&&e.State?.Name!==`terminated`),T=c?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[h.error&&(0,K.jsx)(w,{error:h.error,msg:`Failed to register targets`}),g.error&&(0,K.jsx)(w,{error:g.error,msg:`Failed to deregister target`}),f&&(0,K.jsx)(w,{error:f,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:d?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(u,{onClick:()=>v(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:o(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(u,{"aria-label":`Deregister ${t.Id}`,onClick:()=>x(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(l,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:n,instances:S,isPending:h.isPending,onConfirm:async t=>{try{await h.mutateAsync({targetGroupArn:e,targets:t}),v(!1)}catch{}},onOpenChange:v,open:_}),(0,K.jsx)(P,{description:b?`Deregister ${b.Id}${b.Port?`:${b.Port}`:``} from this target group?`:``,isPending:g.isPending,onConfirm:async()=>{if(b?.Id)try{await g.mutateAsync({targetGroupArn:e,targets:[{id:b.Id,port:b.Port}]})}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:b!==void 0,title:`Deregister target`})]})}function re({arn:e}){let t=v(),{data:n}=a(x(e)),{data:r}=a(g(e)),{data:i}=a(b([e])),o=f(),s=h(),p=d(),[m,_]=(0,G.useState)(!1),[y,S]=(0,G.useState)(`overview`),C=n.TargetGroups?.[0];if(!C?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(c,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await o.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{_(!1)}},D=r.Attributes??[],O=i?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(c,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),o.error&&(0,K.jsx)(w,{error:o.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(u,{onClick:()=>_(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:C.TargetGroupName??C.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:S,value:y,children:[(0,K.jsxs)(V,{children:[(0,K.jsx)(B,{value:`overview`,children:`Overview`}),(0,K.jsx)(B,{value:`targets`,children:`Targets`}),(0,K.jsx)(B,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(B,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(B,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:C.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:C.Protocol}),(0,K.jsx)(I,{label:`Port`,value:C.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:C.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:C.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:C.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:C.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:C.Port??80,isActive:y===`targets`,targetGroupArn:C.TargetGroupArn,vpcId:C.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:C.HealthCheckEnabled===void 0?void 0:String(C.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:C.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:C.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:C.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:C.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:C.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:C.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:C.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:C.Matcher?.HttpCode??C.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(R,{attributes:D,error:s.error,isPending:s.isPending,isSuccess:s.isSuccess,onSubmit:t=>{s.mutate({targetGroupArn:e,attributes:t})},specs:L})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(z,{error:p.error,isPending:p.isPending,isSuccess:p.isSuccess,onSubmit:t=>p.mutate({resourceArn:e,tags:t,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${C.TargetGroupName??C.TargetGroupArn}"? This action cannot be undone.`,isPending:o.isPending,onConfirm:E,onOpenChange:_,open:m,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=S.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js index bb878d74e..d938e21f6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Rt as a,Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as ee}from"./select.js";import{t as f}from"./trash-2.js";import{n as p,t as m}from"./button.js";import{L as h,N as g,o as _}from"./ec2.js";import{g as v,hi as y,mi as te,rn as ne,vi as re,xr as b,zt as x}from"./index.js";import{t as S}from"./error-banner.js";import{t as ie}from"./page-heading.js";import{a as C,t as w}from"./field.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=y(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=y(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=v.useParams(),t=re(),{data:n}=r(ne(e)),{data:y}=r(x),B=n.Volumes?.[0],V=g(),H=_(),U=h(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=y.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(S,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(S,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(S,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ie,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(m,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(f,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(i,{className:p({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(m,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(m,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(m,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(i,{className:p({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(te,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:a(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:a(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(ee,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(d,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(u,{children:oe.map(e=>{let t=o(e.Tags);return(0,z.jsxs)(l,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(b,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Rt as a,Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as ee}from"./select.js";import{t as f}from"./trash-2.js";import{n as p,t as m}from"./button.js";import{L as h,N as g,o as _}from"./ec2.js";import{Ar as v,Ci as y,Di as te,Jt as ne,fn as re,g as b,wi as x}from"./index.js";import{t as S}from"./error-banner.js";import{t as ie}from"./page-heading.js";import{a as C,t as w}from"./field.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=x(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=x(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=b.useParams(),t=te(),{data:n}=r(re(e)),{data:x}=r(ne),B=n.Volumes?.[0],V=g(),H=_(),U=h(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=x.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(S,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(S,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(S,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ie,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(m,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(f,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(i,{className:p({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(m,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(m,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(m,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(i,{className:p({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(y,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:a(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:a(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(ee,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(d,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(u,{children:oe.map(e=>{let t=o(e.Tags);return(0,z.jsxs)(l,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(v,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id15.js b/spinifex/services/spinifexui/frontend/dist/assets/_id15.js index 744922e56..1fbb1b2e5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id15.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id15.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{W as i}from"./ec2.js";import{_ as a,rn as o,vi as s,xr as c}from"./index.js";import{i as l,t as u}from"./zod.js";import{t as d}from"./error-banner.js";import{t as f}from"./form-actions.js";import{t as p}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{_}from"./ec22.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=a.useParams(),b=s(),x;e[0]===t?x=e[1]:(x=o(t),e[0]=t,e[1]=x);let{data:S}=n(x),C=S.Volumes?.[0],w=C?.VolumeId,T=i(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=u(_.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),e[2]=E,e[3]=D);let O;e[4]===E?O=e[5]:(O={size:E},e[4]=E,e[5]=O);let k;e[6]!==D||e[7]!==O?(k={resolver:D,defaultValues:O},e[6]=D,e[7]=O,e[8]=k):k=e[8];let{handleSubmit:A,register:j,formState:M}=l(k),{errors:N,isSubmitting:P}=M;if(!w){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(r,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),e[9]=t):t=e[9],t}let F;e[10]!==T||e[11]!==b||e[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[10]=T,e[11]=b,e[12]=w,e[13]=F):F=e[13];let I=F,L,R;e[14]===w?(L=e[15],R=e[16]):(L=(0,y.jsx)(r,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(p,{subtitle:w,title:`Resize Volume`}),e[14]=w,e[15]=L,e[16]=R);let z;e[17]===T.error?z=e[18]:(z=T.error&&(0,y.jsx)(d,{error:T.error,msg:`Failed to resize volume`}),e[17]=T.error,e[18]=z);let B;e[19]!==A||e[20]!==I?(B=A(I),e[19]=A,e[20]=I,e[21]=B):B=e[21];let V;e[22]===E?V=e[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),e[22]=E,e[23]=V);let H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),e[24]=H):H=e[24];let U=!!N.size,W=E+1,G;e[25]===j?G=e[26]:(G=j(`size`,{valueAsNumber:!0}),e[25]=j,e[26]=G);let K;e[27]!==U||e[28]!==W||e[29]!==G?(K=(0,y.jsx)(c,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),e[27]=U,e[28]=W,e[29]=G,e[30]=K):K=e[30];let q;e[31]===N.size?q=e[32]:(q=(0,y.jsx)(h,{errors:[N.size]}),e[31]=N.size,e[32]=q);let J;e[33]!==K||e[34]!==q?(J=(0,y.jsxs)(g,{children:[H,K,q]}),e[33]=K,e[34]=q,e[35]=J):J=e[35];let Y;e[36]!==b||e[37]!==w?(Y=async()=>await b({to:`/ec2/describe-volumes/$id`,params:{id:w}}),e[36]=b,e[37]=w,e[38]=Y):Y=e[38];let X;e[39]!==P||e[40]!==T.isPending||e[41]!==Y?(X=(0,y.jsx)(f,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),e[39]=P,e[40]=T.isPending,e[41]=Y,e[42]=X):X=e[42];let Z;e[43]!==V||e[44]!==J||e[45]!==X||e[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),e[43]=V,e[44]=J,e[45]=X,e[46]=B,e[47]=Z):Z=e[47];let Q;return e[48]!==Z||e[49]!==L||e[50]!==R||e[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),e[48]=Z,e[49]=L,e[50]=R,e[51]=z,e[52]=Q):Q=e[52],Q}export{b as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{W as i}from"./ec2.js";import{Ar as a,Di as o,_ as s,fn as c}from"./index.js";import{i as l,t as u}from"./zod.js";import{t as d}from"./error-banner.js";import{t as f}from"./form-actions.js";import{t as p}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{_}from"./ec22.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=s.useParams(),b=o(),x;e[0]===t?x=e[1]:(x=c(t),e[0]=t,e[1]=x);let{data:S}=n(x),C=S.Volumes?.[0],w=C?.VolumeId,T=i(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=u(_.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),e[2]=E,e[3]=D);let O;e[4]===E?O=e[5]:(O={size:E},e[4]=E,e[5]=O);let k;e[6]!==D||e[7]!==O?(k={resolver:D,defaultValues:O},e[6]=D,e[7]=O,e[8]=k):k=e[8];let{handleSubmit:A,register:j,formState:M}=l(k),{errors:N,isSubmitting:P}=M;if(!w){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(r,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),e[9]=t):t=e[9],t}let F;e[10]!==T||e[11]!==b||e[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[10]=T,e[11]=b,e[12]=w,e[13]=F):F=e[13];let I=F,L,R;e[14]===w?(L=e[15],R=e[16]):(L=(0,y.jsx)(r,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(p,{subtitle:w,title:`Resize Volume`}),e[14]=w,e[15]=L,e[16]=R);let z;e[17]===T.error?z=e[18]:(z=T.error&&(0,y.jsx)(d,{error:T.error,msg:`Failed to resize volume`}),e[17]=T.error,e[18]=z);let B;e[19]!==A||e[20]!==I?(B=A(I),e[19]=A,e[20]=I,e[21]=B):B=e[21];let V;e[22]===E?V=e[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),e[22]=E,e[23]=V);let H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(m,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),e[24]=H):H=e[24];let U=!!N.size,W=E+1,G;e[25]===j?G=e[26]:(G=j(`size`,{valueAsNumber:!0}),e[25]=j,e[26]=G);let K;e[27]!==U||e[28]!==W||e[29]!==G?(K=(0,y.jsx)(a,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),e[27]=U,e[28]=W,e[29]=G,e[30]=K):K=e[30];let q;e[31]===N.size?q=e[32]:(q=(0,y.jsx)(h,{errors:[N.size]}),e[31]=N.size,e[32]=q);let J;e[33]!==K||e[34]!==q?(J=(0,y.jsxs)(g,{children:[H,K,q]}),e[33]=K,e[34]=q,e[35]=J):J=e[35];let Y;e[36]!==b||e[37]!==w?(Y=async()=>await b({to:`/ec2/describe-volumes/$id`,params:{id:w}}),e[36]=b,e[37]=w,e[38]=Y):Y=e[38];let X;e[39]!==P||e[40]!==T.isPending||e[41]!==Y?(X=(0,y.jsx)(f,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),e[39]=P,e[40]=T.isPending,e[41]=Y,e[42]=X):X=e[42];let Z;e[43]!==V||e[44]!==J||e[45]!==X||e[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),e[43]=V,e[44]=J,e[45]=X,e[46]=B,e[47]=Z):Z=e[47];let Q;return e[48]!==Z||e[49]!==L||e[50]!==R||e[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),e[48]=Z,e[49]=L,e[50]=R,e[51]=z,e[52]=Q):Q=e[52],Q}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js index 0579be86c..76179d3ce 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{P as l}from"./ec2.js";import{an as u,nn as d,v as f,vi as p}from"./index.js";import{t as m}from"./error-banner.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=f.useParams(),t=p(),{data:n}=r(u(e)),{data:S}=r(d),C=n.Vpcs?.[0],w=l(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=a(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(m,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(c,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(s,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{P as l}from"./ec2.js";import{Di as u,dn as d,mn as f,v as p}from"./index.js";import{t as m}from"./error-banner.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=p.useParams(),t=u(),{data:n}=r(f(e)),{data:S}=r(d),C=n.Vpcs?.[0],w=l(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=a(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(m,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(c,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(s,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id17.js b/spinifex/services/spinifexui/frontend/dist/assets/_id17.js index c6daef928..f6a1ad6c7 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id17.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id17.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{xi as a}from"./awsClient.js";import{Rt as o,zt as s}from"./auth.js";import{t as c}from"./button.js";import{a as l,c as u,l as d,o as f,r as p,s as m,t as h}from"./ecr.js";import{A as g,O as _,j as v,k as y,y as b}from"./index.js";import{t as x}from"./page-heading.js";import{a as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./alert-dialog.js";import{i as A,n as j,r as M,t as N}from"./tabs.js";import{t as P}from"./badge.js";import{n as F}from"./json.js";import{t as ee}from"./json-editor.js";var I=r(),L=t(n(),1),R=e(),z=`{ +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ni as a}from"./awsClient.js";import{Rt as o,zt as s}from"./auth.js";import{t as c}from"./button.js";import{a as l,c as u,l as d,o as f,r as p,s as m,t as h}from"./ecr.js";import{A as g,It as _,O as v,j as y,k as b,y as x}from"./index.js";import{t as S}from"./page-heading.js";import{a as C,i as w,l as T,n as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";import{i as j,n as M,r as N,t as P}from"./tabs.js";import{t as F}from"./badge.js";import{t as ee}from"./json-editor.js";var I=r(),L=t(n(),1),R=e(),z=`{ "rules": [ { "rulePriority": 1, @@ -12,6 +12,6 @@ import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}fro "action": { "type": "expire" } } ] -}`;function B(e){let t=(0,I.c)(57),{repositoryName:n}=e,r;t[0]===n?r=t[1]:(r=_(n),t[0]=n,t[1]=r);let{data:a}=i(r),o=u(),s=p(),l=f(),[d,m]=(0,L.useState)(a??``),h,g;t[2]===a?(h=t[3],g=t[4]):(h=()=>{m(a??``)},g=[a],t[2]=a,t[3]=h,t[4]=g),(0,L.useEffect)(h,g);let v;t[5]!==d||t[6]!==o||t[7]!==n?(v=async function(){try{await o.mutateAsync({repositoryName:n,lifecyclePolicyText:d})}catch{}},t[5]=d,t[6]=o,t[7]=n,t[8]=v):v=t[8];let y=v,b;t[9]!==s||t[10]!==n?(b=async function(){try{await s.mutateAsync(n)}catch{}},t[9]=s,t[10]=n,t[11]=b):b=t[11];let x=b,S;t[12]!==l||t[13]!==n?(S=async function(){try{await l.mutateAsync(n)}catch{}},t[12]=l,t[13]=n,t[14]=S):S=t[14];let C=S,w;t[15]===d?w=t[16]:(w=d.trim(),t[15]=d,t[16]=w);let T=w,E;t[17]!==d||t[18]!==T.length?(E=T.length>0&&!F(d),t[17]=d,t[18]=T.length,t[19]=E):E=t[19];let D=E,O=o.error??s.error??l.error,k;t[20]===l.data?.previewResults?k=t[21]:(k=l.data?.previewResults??[],t[20]=l.data?.previewResults,t[21]=k);let A=k,j;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,R.jsx)(`h2`,{className:`text-sm font-medium`,children:`Lifecycle policy`}),t[22]=j):j=t[22];let M=s.isPending||!a,N=s.isPending?`Deleting…`:`Delete`,P;t[23]!==x||t[24]!==M||t[25]!==N?(P=(0,R.jsx)(c,{disabled:M,onClick:x,size:`sm`,variant:`destructive`,children:N}),t[23]=x,t[24]=M,t[25]=N,t[26]=P):P=t[26];let B=l.isPending||!a,te=l.isPending?`Previewing…`:`Preview`,H;t[27]!==C||t[28]!==B||t[29]!==te?(H=(0,R.jsx)(c,{disabled:B,onClick:C,size:`sm`,variant:`outline`,children:te}),t[27]=C,t[28]=B,t[29]=te,t[30]=H):H=t[30];let U=o.isPending||T.length===0||D,W=o.isPending?`Saving…`:`Save`,G;t[31]!==y||t[32]!==U||t[33]!==W?(G=(0,R.jsx)(c,{disabled:U,onClick:y,size:`sm`,children:W}),t[31]=y,t[32]=U,t[33]=W,t[34]=G):G=t[34];let K;t[35]!==P||t[36]!==H||t[37]!==G?(K=(0,R.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[j,(0,R.jsxs)(`div`,{className:`flex gap-2`,children:[P,H,G]})]}),t[35]=P,t[36]=H,t[37]=G,t[38]=K):K=t[38];let q;t[39]!==d||t[40]!==D?(q=(0,R.jsx)(ee,{className:`text-xs`,error:D,onChange:m,placeholder:z,rows:14,value:d}),t[39]=d,t[40]=D,t[41]=q):q=t[41];let J;t[42]===D?J=t[43]:(J=D&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:`Lifecycle policy must be valid JSON.`}),t[42]=D,t[43]=J);let Y;t[44]===O?Y=t[45]:(Y=O&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:O.message}),t[44]=O,t[45]=Y);let X;t[46]!==K||t[47]!==q||t[48]!==J||t[49]!==Y?(X=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[K,q,J,Y]}),t[46]=K,t[47]=q,t[48]=J,t[49]=Y,t[50]=X):X=t[50];let Z;t[51]!==l.isSuccess||t[52]!==A?(Z=l.isSuccess&&(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[(0,R.jsxs)(`h3`,{className:`mb-2 text-sm font-medium`,children:[`Preview: `,A.length,` image`,A.length===1?``:`s`,` would expire`]}),A.length>0?(0,R.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,R.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,R.jsx)(`thead`,{children:(0,R.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tags`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Digest`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pushed`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Rule`})]})}),(0,R.jsx)(`tbody`,{children:A.map(V)})]})}):(0,R.jsx)(`p`,{className:`text-muted-foreground`,children:`No images match this policy.`})]}),t[51]=l.isSuccess,t[52]=A,t[53]=Z):Z=t[53];let Q;return t[54]!==X||t[55]!==Z?(Q=(0,R.jsxs)(`div`,{className:`space-y-4`,children:[X,Z]}),t[54]=X,t[55]=Z,t[56]=Q):Q=t[56],Q}function V(e){return(0,R.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,R.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTags&&e.imageTags.length>0?e.imageTags.join(`, `):``}),(0,R.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:[e.imageDigest?.slice(0,19),`…`]}),(0,R.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.imagePushedAt)}),(0,R.jsx)(`td`,{className:`px-4 py-2`,children:e.appliedRulePriority})]},e.imageDigest)}function te(e){let t=(0,I.c)(41),{repositoryName:n}=e,r;t[0]===n?r=t[1]:(r=v(n),t[0]=n,t[1]=r);let{data:a}=i(r),o=d(),s=l(),[u,f]=(0,L.useState)(a??``),p,m;t[2]===a?(p=t[3],m=t[4]):(p=()=>{f(a??``)},m=[a],t[2]=a,t[3]=p,t[4]=m),(0,L.useEffect)(p,m);let h;t[5]!==u||t[6]!==n||t[7]!==o?(h=async function(){try{await o.mutateAsync({repositoryName:n,policyText:u})}catch{}},t[5]=u,t[6]=n,t[7]=o,t[8]=h):h=t[8];let g=h,_;t[9]!==s||t[10]!==n?(_=async function(){try{await s.mutateAsync(n)}catch{}},t[9]=s,t[10]=n,t[11]=_):_=t[11];let y=_,b;t[12]===u?b=t[13]:(b=u.trim(),t[12]=u,t[13]=b);let x=b,S;t[14]!==u||t[15]!==x.length?(S=x.length>0&&!F(u),t[14]=u,t[15]=x.length,t[16]=S):S=t[16];let C=S,w=o.error??s.error,T;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,R.jsx)(`h2`,{className:`text-sm font-medium`,children:`Repository policy`}),t[17]=T):T=t[17];let E=s.isPending||!a,D=s.isPending?`Deleting…`:`Delete`,O;t[18]!==y||t[19]!==D||t[20]!==E?(O=(0,R.jsx)(c,{disabled:E,onClick:y,size:`sm`,variant:`destructive`,children:D}),t[18]=y,t[19]=D,t[20]=E,t[21]=O):O=t[21];let k=o.isPending||x.length===0||C,A=o.isPending?`Saving…`:`Save`,j;t[22]!==g||t[23]!==k||t[24]!==A?(j=(0,R.jsx)(c,{disabled:k,onClick:g,size:`sm`,children:A}),t[22]=g,t[23]=k,t[24]=A,t[25]=j):j=t[25];let M;t[26]!==O||t[27]!==j?(M=(0,R.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[T,(0,R.jsxs)(`div`,{className:`flex gap-2`,children:[O,j]})]}),t[26]=O,t[27]=j,t[28]=M):M=t[28];let N;t[29]!==u||t[30]!==C?(N=(0,R.jsx)(ee,{className:`text-xs`,error:C,onChange:f,placeholder:`No policy attached. Paste an IAM policy document to set one.`,rows:10,value:u}),t[29]=u,t[30]=C,t[31]=N):N=t[31];let P;t[32]===C?P=t[33]:(P=C&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:`Policy must be valid JSON.`}),t[32]=C,t[33]=P);let z;t[34]===w?z=t[35]:(z=w&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:w.message}),t[34]=w,t[35]=z);let B;return t[36]!==M||t[37]!==N||t[38]!==P||t[39]!==z?(B=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[M,N,P,z]}),t[36]=M,t[37]=N,t[38]=P,t[39]=z,t[40]=B):B=t[40],B}var H=`ap-southeast-2`;function U(e){if(!e)return``;let t=e.indexOf(`/`);return t===-1?e:e.slice(0,t)}function W(e){let t=(0,I.c)(18),{repositoryName:n,repositoryUri:r}=e,[i,a]=(0,L.useState)(!1),o;t[0]===r?o=t[1]:(o=U(r),t[0]=r,t[1]=o);let s=o,l=r??`${s}/${n}`,u=`aws ecr get-login-password --region ${H} | docker login --username AWS --password-stdin ${s}`,d=`docker build -t ${n} .`,f=`docker tag ${n}:latest ${l}:latest`,p=`docker push ${l}:latest`,m;t[2]!==u||t[3]!==d||t[4]!==f||t[5]!==p?(m=[u,d,f,p],t[2]=u,t[3]=d,t[4]=f,t[5]=p,t[6]=m):m=t[6];let h=m,g;t[7]===h?g=t[8]:(g=async function(){await navigator.clipboard.writeText(h.join(` +}`;function B(e){let t=(0,I.c)(57),{repositoryName:n}=e,r;t[0]===n?r=t[1]:(r=v(n),t[0]=n,t[1]=r);let{data:a}=i(r),o=u(),s=p(),l=f(),[d,m]=(0,L.useState)(a??``),h,g;t[2]===a?(h=t[3],g=t[4]):(h=()=>{m(a??``)},g=[a],t[2]=a,t[3]=h,t[4]=g),(0,L.useEffect)(h,g);let y;t[5]!==d||t[6]!==o||t[7]!==n?(y=async function(){try{await o.mutateAsync({repositoryName:n,lifecyclePolicyText:d})}catch{}},t[5]=d,t[6]=o,t[7]=n,t[8]=y):y=t[8];let b=y,x;t[9]!==s||t[10]!==n?(x=async function(){try{await s.mutateAsync(n)}catch{}},t[9]=s,t[10]=n,t[11]=x):x=t[11];let S=x,C;t[12]!==l||t[13]!==n?(C=async function(){try{await l.mutateAsync(n)}catch{}},t[12]=l,t[13]=n,t[14]=C):C=t[14];let w=C,T;t[15]===d?T=t[16]:(T=d.trim(),t[15]=d,t[16]=T);let E=T,D;t[17]!==d||t[18]!==E.length?(D=E.length>0&&!_(d),t[17]=d,t[18]=E.length,t[19]=D):D=t[19];let O=D,k=o.error??s.error??l.error,A;t[20]===l.data?.previewResults?A=t[21]:(A=l.data?.previewResults??[],t[20]=l.data?.previewResults,t[21]=A);let j=A,M;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,R.jsx)(`h2`,{className:`text-sm font-medium`,children:`Lifecycle policy`}),t[22]=M):M=t[22];let N=s.isPending||!a,P=s.isPending?`Deleting…`:`Delete`,F;t[23]!==S||t[24]!==N||t[25]!==P?(F=(0,R.jsx)(c,{disabled:N,onClick:S,size:`sm`,variant:`destructive`,children:P}),t[23]=S,t[24]=N,t[25]=P,t[26]=F):F=t[26];let B=l.isPending||!a,te=l.isPending?`Previewing…`:`Preview`,H;t[27]!==w||t[28]!==B||t[29]!==te?(H=(0,R.jsx)(c,{disabled:B,onClick:w,size:`sm`,variant:`outline`,children:te}),t[27]=w,t[28]=B,t[29]=te,t[30]=H):H=t[30];let U=o.isPending||E.length===0||O,W=o.isPending?`Saving…`:`Save`,G;t[31]!==b||t[32]!==U||t[33]!==W?(G=(0,R.jsx)(c,{disabled:U,onClick:b,size:`sm`,children:W}),t[31]=b,t[32]=U,t[33]=W,t[34]=G):G=t[34];let K;t[35]!==F||t[36]!==H||t[37]!==G?(K=(0,R.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[M,(0,R.jsxs)(`div`,{className:`flex gap-2`,children:[F,H,G]})]}),t[35]=F,t[36]=H,t[37]=G,t[38]=K):K=t[38];let q;t[39]!==d||t[40]!==O?(q=(0,R.jsx)(ee,{className:`text-xs`,error:O,onChange:m,placeholder:z,rows:14,value:d}),t[39]=d,t[40]=O,t[41]=q):q=t[41];let J;t[42]===O?J=t[43]:(J=O&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:`Lifecycle policy must be valid JSON.`}),t[42]=O,t[43]=J);let Y;t[44]===k?Y=t[45]:(Y=k&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:k.message}),t[44]=k,t[45]=Y);let X;t[46]!==K||t[47]!==q||t[48]!==J||t[49]!==Y?(X=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[K,q,J,Y]}),t[46]=K,t[47]=q,t[48]=J,t[49]=Y,t[50]=X):X=t[50];let Z;t[51]!==l.isSuccess||t[52]!==j?(Z=l.isSuccess&&(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[(0,R.jsxs)(`h3`,{className:`mb-2 text-sm font-medium`,children:[`Preview: `,j.length,` image`,j.length===1?``:`s`,` would expire`]}),j.length>0?(0,R.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,R.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,R.jsx)(`thead`,{children:(0,R.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tags`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Digest`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pushed`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Rule`})]})}),(0,R.jsx)(`tbody`,{children:j.map(V)})]})}):(0,R.jsx)(`p`,{className:`text-muted-foreground`,children:`No images match this policy.`})]}),t[51]=l.isSuccess,t[52]=j,t[53]=Z):Z=t[53];let Q;return t[54]!==X||t[55]!==Z?(Q=(0,R.jsxs)(`div`,{className:`space-y-4`,children:[X,Z]}),t[54]=X,t[55]=Z,t[56]=Q):Q=t[56],Q}function V(e){return(0,R.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,R.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTags&&e.imageTags.length>0?e.imageTags.join(`, `):``}),(0,R.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:[e.imageDigest?.slice(0,19),`…`]}),(0,R.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.imagePushedAt)}),(0,R.jsx)(`td`,{className:`px-4 py-2`,children:e.appliedRulePriority})]},e.imageDigest)}function te(e){let t=(0,I.c)(41),{repositoryName:n}=e,r;t[0]===n?r=t[1]:(r=y(n),t[0]=n,t[1]=r);let{data:a}=i(r),o=d(),s=l(),[u,f]=(0,L.useState)(a??``),p,m;t[2]===a?(p=t[3],m=t[4]):(p=()=>{f(a??``)},m=[a],t[2]=a,t[3]=p,t[4]=m),(0,L.useEffect)(p,m);let h;t[5]!==u||t[6]!==n||t[7]!==o?(h=async function(){try{await o.mutateAsync({repositoryName:n,policyText:u})}catch{}},t[5]=u,t[6]=n,t[7]=o,t[8]=h):h=t[8];let g=h,v;t[9]!==s||t[10]!==n?(v=async function(){try{await s.mutateAsync(n)}catch{}},t[9]=s,t[10]=n,t[11]=v):v=t[11];let b=v,x;t[12]===u?x=t[13]:(x=u.trim(),t[12]=u,t[13]=x);let S=x,C;t[14]!==u||t[15]!==S.length?(C=S.length>0&&!_(u),t[14]=u,t[15]=S.length,t[16]=C):C=t[16];let w=C,T=o.error??s.error,E;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,R.jsx)(`h2`,{className:`text-sm font-medium`,children:`Repository policy`}),t[17]=E):E=t[17];let D=s.isPending||!a,O=s.isPending?`Deleting…`:`Delete`,k;t[18]!==b||t[19]!==O||t[20]!==D?(k=(0,R.jsx)(c,{disabled:D,onClick:b,size:`sm`,variant:`destructive`,children:O}),t[18]=b,t[19]=O,t[20]=D,t[21]=k):k=t[21];let A=o.isPending||S.length===0||w,j=o.isPending?`Saving…`:`Save`,M;t[22]!==g||t[23]!==A||t[24]!==j?(M=(0,R.jsx)(c,{disabled:A,onClick:g,size:`sm`,children:j}),t[22]=g,t[23]=A,t[24]=j,t[25]=M):M=t[25];let N;t[26]!==k||t[27]!==M?(N=(0,R.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[E,(0,R.jsxs)(`div`,{className:`flex gap-2`,children:[k,M]})]}),t[26]=k,t[27]=M,t[28]=N):N=t[28];let P;t[29]!==u||t[30]!==w?(P=(0,R.jsx)(ee,{className:`text-xs`,error:w,onChange:f,placeholder:`No policy attached. Paste an IAM policy document to set one.`,rows:10,value:u}),t[29]=u,t[30]=w,t[31]=P):P=t[31];let F;t[32]===w?F=t[33]:(F=w&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:`Policy must be valid JSON.`}),t[32]=w,t[33]=F);let z;t[34]===T?z=t[35]:(z=T&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:T.message}),t[34]=T,t[35]=z);let B;return t[36]!==N||t[37]!==P||t[38]!==F||t[39]!==z?(B=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[N,P,F,z]}),t[36]=N,t[37]=P,t[38]=F,t[39]=z,t[40]=B):B=t[40],B}var H=`ap-southeast-2`;function U(e){if(!e)return``;let t=e.indexOf(`/`);return t===-1?e:e.slice(0,t)}function W(e){let t=(0,I.c)(18),{repositoryName:n,repositoryUri:r}=e,[i,a]=(0,L.useState)(!1),o;t[0]===r?o=t[1]:(o=U(r),t[0]=r,t[1]=o);let s=o,l=r??`${s}/${n}`,u=`aws ecr get-login-password --region ${H} | docker login --username AWS --password-stdin ${s}`,d=`docker build -t ${n} .`,f=`docker tag ${n}:latest ${l}:latest`,p=`docker push ${l}:latest`,m;t[2]!==u||t[3]!==d||t[4]!==f||t[5]!==p?(m=[u,d,f,p],t[2]=u,t[3]=d,t[4]=f,t[5]=p,t[6]=m):m=t[6];let h=m,g;t[7]===h?g=t[8]:(g=async function(){await navigator.clipboard.writeText(h.join(` `)),a(!0),setTimeout(()=>a(!1),2e3)},t[7]=h,t[8]=g);let _=g,v;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,R.jsx)(`h2`,{className:`text-sm font-medium`,children:`Push commands`}),t[9]=v):v=t[9];let y=i?`Copied`:`Copy`,b;t[10]!==_||t[11]!==y?(b=(0,R.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[v,(0,R.jsx)(c,{onClick:_,size:`sm`,variant:`outline`,children:y})]}),t[10]=_,t[11]=y,t[12]=b):b=t[12];let x=h.join(` -`),S;t[13]===x?S=t[14]:(S=(0,R.jsx)(`pre`,{className:`overflow-x-auto rounded bg-muted p-3 font-mono text-xs`,children:x}),t[13]=x,t[14]=S);let C;return t[15]!==b||t[16]!==S?(C=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[b,S]}),t[15]=b,t[16]=S,t[17]=C):C=t[17],C}function G(e){let t=(0,I.c)(31),{repositoryName:n,repositoryUri:r,imageTagMutability:i}=e,a=m(),o=i===`IMMUTABLE`,s=o?`MUTABLE`:`IMMUTABLE`,l=o?`Make mutable`:`Make immutable`,u;t[0]!==s||t[1]!==a||t[2]!==n?(u=async function(){try{await a.mutateAsync({repositoryName:n,imageTagMutability:s})}catch{}},t[0]=s,t[1]=a,t[2]=n,t[3]=u):u=t[3];let d=u,f;t[4]!==n||t[5]!==r?(f=(0,R.jsx)(W,{repositoryName:n,repositoryUri:r}),t[4]=n,t[5]=r,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,R.jsx)(`h2`,{className:`text-sm font-medium`,children:`Tag immutability`}),t[7]=p):p=t[7];let h=o?`Tags cannot be overwritten to point at a different image.`:`Tags can be overwritten by a new push.`,g;t[8]===h?g=t[9]:(g=(0,R.jsxs)(`div`,{children:[p,(0,R.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:h})]}),t[8]=h,t[9]=g);let _=o?`default`:`outline`,v=o?`Immutable`:`Mutable`,y;t[10]!==_||t[11]!==v?(y=(0,R.jsx)(P,{variant:_,children:v}),t[10]=_,t[11]=v,t[12]=y):y=t[12];let b;t[13]!==g||t[14]!==y?(b=(0,R.jsxs)(`div`,{className:`flex items-center justify-between`,children:[g,y]}),t[13]=g,t[14]=y,t[15]=b):b=t[15];let x;t[16]===a.error?x=t[17]:(x=a.error&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:a.error.message}),t[16]=a.error,t[17]=x);let S;t[18]===d?S=t[19]:(S=()=>void d(),t[18]=d,t[19]=S);let C=a.isPending?`Saving…`:l,w;t[20]!==a.isPending||t[21]!==S||t[22]!==C?(w=(0,R.jsx)(c,{className:`mt-3`,disabled:a.isPending,onClick:S,size:`sm`,variant:`outline`,children:C}),t[20]=a.isPending,t[21]=S,t[22]=C,t[23]=w):w=t[23];let T;t[24]!==x||t[25]!==w||t[26]!==b?(T=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[b,x,w]}),t[24]=x,t[25]=w,t[26]=b,t[27]=T):T=t[27];let E;return t[28]!==T||t[29]!==f?(E=(0,R.jsxs)(`div`,{className:`space-y-6`,children:[f,T]}),t[28]=T,t[29]=f,t[30]=E):E=t[30],E}function K(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[(0,R.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:`Image scanning`}),(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Vulnerability scanning is not supported by this registry. Pushed images are stored and served without scan findings.`})]}),e[0]=t):t=e[0],t}function q(e){let t=(0,I.c)(57),{repositoryName:n}=e,{data:r}=i(y),l;t[0]===n?l=t[1]:(l=g(n),t[0]=n,t[1]=l);let{data:u}=i(l),d=h(),[f,p]=(0,L.useState)(null),m;t[2]===r.repositories?m=t[3]:(m=r.repositories??[],t[2]=r.repositories,t[3]=m);let _;if(t[4]!==n||t[5]!==m){let e;t[7]===n?e=t[8]:(e=e=>e.repositoryName===n,t[7]=n,t[8]=e),_=m.find(e),t[4]=n,t[5]=m,t[6]=_}else _=t[6];let v=_,b;t[9]===u.imageDetails?b=t[10]:(b=u.imageDetails??[],t[9]=u.imageDetails,t[10]=b);let P=b,F;t[11]!==d||t[12]!==f||t[13]!==n?(F=async function(){if(f)try{await d.mutateAsync({repositoryName:n,imageIds:[{imageDigest:f}]}),p(null)}catch{}},t[11]=d,t[12]=f,t[13]=n,t[14]=F):F=t[14];let ee=F,z=v?.repositoryUri,V;t[15]!==n||t[16]!==z?(V=(0,R.jsx)(x,{subtitle:z,title:n}),t[15]=n,t[16]=z,t[17]=V):V=t[17];let H;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,R.jsx)(`div`,{className:`mb-4`,children:(0,R.jsx)(a,{className:`text-sm text-primary hover:underline`,to:`/ecr/list-repositories`,children:`← Back to repositories`})}),t[18]=H):H=t[18];let U;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,R.jsxs)(j,{children:[(0,R.jsx)(A,{value:`summary`,children:`Summary`}),(0,R.jsx)(A,{value:`images`,children:`Images`}),(0,R.jsx)(A,{value:`lifecycle`,children:`Lifecycle`}),(0,R.jsx)(A,{value:`scan`,children:`Scan`}),(0,R.jsx)(A,{value:`permissions`,children:`Permissions`})]}),t[19]=U):U=t[19];let W=v?.imageTagMutability,q=v?.repositoryUri,J;t[20]!==n||t[21]!==W||t[22]!==q?(J=(0,R.jsx)(M,{value:`summary`,children:(0,R.jsx)(G,{imageTagMutability:W,repositoryName:n,repositoryUri:q})}),t[20]=n,t[21]=W,t[22]=q,t[23]=J):J=t[23];let Y;t[24]===P?Y=t[25]:(Y=(0,R.jsx)(M,{value:`images`,children:P.length>0?(0,R.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,R.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,R.jsx)(`thead`,{children:(0,R.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tags`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Digest`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Size`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pushed`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,R.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,R.jsx)(`tbody`,{children:P.map(e=>{if(!e.imageDigest)return null;let t=e.imageDigest;return(0,R.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,R.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTags&&e.imageTags.length>0?e.imageTags.join(`, `):``}),(0,R.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:[t.slice(0,19),`…`]}),(0,R.jsx)(`td`,{className:`px-4 py-2`,children:s(e.imageSizeInBytes??0)}),(0,R.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.imagePushedAt)}),(0,R.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,R.jsx)(c,{onClick:()=>p(t),size:`sm`,variant:`destructive`,children:`Delete`})})]},t)})})]})}):(0,R.jsx)(`p`,{className:`text-muted-foreground`,children:`No images pushed yet.`})}),t[24]=P,t[25]=Y);let X;t[26]===n?X=t[27]:(X=(0,R.jsx)(M,{value:`lifecycle`,children:(0,R.jsx)(B,{repositoryName:n})}),t[26]=n,t[27]=X);let Z;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,R.jsx)(M,{value:`scan`,children:(0,R.jsx)(K,{})}),t[28]=Z):Z=t[28];let Q;t[29]===n?Q=t[30]:(Q=(0,R.jsx)(M,{value:`permissions`,children:(0,R.jsx)(te,{repositoryName:n})}),t[29]=n,t[30]=Q);let $;t[31]!==J||t[32]!==Y||t[33]!==X||t[34]!==Q?($=(0,R.jsxs)(N,{defaultValue:`summary`,children:[U,J,Y,X,Z,Q]}),t[31]=J,t[32]=Y,t[33]=X,t[34]=Q,t[35]=$):$=t[35];let ne;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(ne=e=>!e&&p(null),t[36]=ne):ne=t[36];let re=f!==null,ie;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,R.jsxs)(O,{children:[(0,R.jsx)(w,{children:`Delete image?`}),(0,R.jsx)(S,{children:`This permanently deletes the image manifest and any tags pointing at it. This cannot be undone.`})]}),t[37]=ie):ie=t[37];let ae;t[38]===d.error?ae=t[39]:(ae=d.error&&(0,R.jsx)(`p`,{className:`text-sm text-destructive`,children:d.error.message}),t[38]=d.error,t[39]=ae);let oe;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,R.jsx)(D,{children:`Cancel`}),t[40]=oe):oe=t[40];let se;t[41]===ee?se=t[42]:(se=e=>{e.preventDefault(),ee()},t[41]=ee,t[42]=se);let ce=d.isPending?`Deleting…`:`Delete`,le;t[43]!==d.isPending||t[44]!==se||t[45]!==ce?(le=(0,R.jsxs)(E,{children:[oe,(0,R.jsx)(T,{disabled:d.isPending,onClick:se,children:ce})]}),t[43]=d.isPending,t[44]=se,t[45]=ce,t[46]=le):le=t[46];let ue;t[47]!==ae||t[48]!==le?(ue=(0,R.jsxs)(C,{children:[ie,ae,le]}),t[47]=ae,t[48]=le,t[49]=ue):ue=t[49];let de;t[50]!==re||t[51]!==ue?(de=(0,R.jsx)(k,{onOpenChange:ne,open:re,children:ue}),t[50]=re,t[51]=ue,t[52]=de):de=t[52];let fe;return t[53]!==$||t[54]!==de||t[55]!==V?(fe=(0,R.jsxs)(R.Fragment,{children:[V,H,$,de]}),t[53]=$,t[54]=de,t[55]=V,t[56]=fe):fe=t[56],fe}function J(){let e=(0,I.c)(2),{id:t}=b.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,R.jsx)(q,{repositoryName:n}),e[0]=n,e[1]=r),r}export{J as component}; \ No newline at end of file +`),S;t[13]===x?S=t[14]:(S=(0,R.jsx)(`pre`,{className:`overflow-x-auto rounded bg-muted p-3 font-mono text-xs`,children:x}),t[13]=x,t[14]=S);let C;return t[15]!==b||t[16]!==S?(C=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[b,S]}),t[15]=b,t[16]=S,t[17]=C):C=t[17],C}function G(e){let t=(0,I.c)(31),{repositoryName:n,repositoryUri:r,imageTagMutability:i}=e,a=m(),o=i===`IMMUTABLE`,s=o?`MUTABLE`:`IMMUTABLE`,l=o?`Make mutable`:`Make immutable`,u;t[0]!==s||t[1]!==a||t[2]!==n?(u=async function(){try{await a.mutateAsync({repositoryName:n,imageTagMutability:s})}catch{}},t[0]=s,t[1]=a,t[2]=n,t[3]=u):u=t[3];let d=u,f;t[4]!==n||t[5]!==r?(f=(0,R.jsx)(W,{repositoryName:n,repositoryUri:r}),t[4]=n,t[5]=r,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,R.jsx)(`h2`,{className:`text-sm font-medium`,children:`Tag immutability`}),t[7]=p):p=t[7];let h=o?`Tags cannot be overwritten to point at a different image.`:`Tags can be overwritten by a new push.`,g;t[8]===h?g=t[9]:(g=(0,R.jsxs)(`div`,{children:[p,(0,R.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:h})]}),t[8]=h,t[9]=g);let _=o?`default`:`outline`,v=o?`Immutable`:`Mutable`,y;t[10]!==_||t[11]!==v?(y=(0,R.jsx)(F,{variant:_,children:v}),t[10]=_,t[11]=v,t[12]=y):y=t[12];let b;t[13]!==g||t[14]!==y?(b=(0,R.jsxs)(`div`,{className:`flex items-center justify-between`,children:[g,y]}),t[13]=g,t[14]=y,t[15]=b):b=t[15];let x;t[16]===a.error?x=t[17]:(x=a.error&&(0,R.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:a.error.message}),t[16]=a.error,t[17]=x);let S;t[18]===d?S=t[19]:(S=()=>void d(),t[18]=d,t[19]=S);let C=a.isPending?`Saving…`:l,w;t[20]!==a.isPending||t[21]!==S||t[22]!==C?(w=(0,R.jsx)(c,{className:`mt-3`,disabled:a.isPending,onClick:S,size:`sm`,variant:`outline`,children:C}),t[20]=a.isPending,t[21]=S,t[22]=C,t[23]=w):w=t[23];let T;t[24]!==x||t[25]!==w||t[26]!==b?(T=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[b,x,w]}),t[24]=x,t[25]=w,t[26]=b,t[27]=T):T=t[27];let E;return t[28]!==T||t[29]!==f?(E=(0,R.jsxs)(`div`,{className:`space-y-6`,children:[f,T]}),t[28]=T,t[29]=f,t[30]=E):E=t[30],E}function K(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,R.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[(0,R.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:`Image scanning`}),(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Vulnerability scanning is not supported by this registry. Pushed images are stored and served without scan findings.`})]}),e[0]=t):t=e[0],t}function q(e){let t=(0,I.c)(57),{repositoryName:n}=e,{data:r}=i(b),l;t[0]===n?l=t[1]:(l=g(n),t[0]=n,t[1]=l);let{data:u}=i(l),d=h(),[f,p]=(0,L.useState)(null),m;t[2]===r.repositories?m=t[3]:(m=r.repositories??[],t[2]=r.repositories,t[3]=m);let _;if(t[4]!==n||t[5]!==m){let e;t[7]===n?e=t[8]:(e=e=>e.repositoryName===n,t[7]=n,t[8]=e),_=m.find(e),t[4]=n,t[5]=m,t[6]=_}else _=t[6];let v=_,y;t[9]===u.imageDetails?y=t[10]:(y=u.imageDetails??[],t[9]=u.imageDetails,t[10]=y);let x=y,F;t[11]!==d||t[12]!==f||t[13]!==n?(F=async function(){if(f)try{await d.mutateAsync({repositoryName:n,imageIds:[{imageDigest:f}]}),p(null)}catch{}},t[11]=d,t[12]=f,t[13]=n,t[14]=F):F=t[14];let ee=F,z=v?.repositoryUri,V;t[15]!==n||t[16]!==z?(V=(0,R.jsx)(S,{subtitle:z,title:n}),t[15]=n,t[16]=z,t[17]=V):V=t[17];let H;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,R.jsx)(`div`,{className:`mb-4`,children:(0,R.jsx)(a,{className:`text-sm text-primary hover:underline`,to:`/ecr/list-repositories`,children:`← Back to repositories`})}),t[18]=H):H=t[18];let U;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,R.jsxs)(M,{children:[(0,R.jsx)(j,{value:`summary`,children:`Summary`}),(0,R.jsx)(j,{value:`images`,children:`Images`}),(0,R.jsx)(j,{value:`lifecycle`,children:`Lifecycle`}),(0,R.jsx)(j,{value:`scan`,children:`Scan`}),(0,R.jsx)(j,{value:`permissions`,children:`Permissions`})]}),t[19]=U):U=t[19];let W=v?.imageTagMutability,q=v?.repositoryUri,J;t[20]!==n||t[21]!==W||t[22]!==q?(J=(0,R.jsx)(N,{value:`summary`,children:(0,R.jsx)(G,{imageTagMutability:W,repositoryName:n,repositoryUri:q})}),t[20]=n,t[21]=W,t[22]=q,t[23]=J):J=t[23];let Y;t[24]===x?Y=t[25]:(Y=(0,R.jsx)(N,{value:`images`,children:x.length>0?(0,R.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,R.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,R.jsx)(`thead`,{children:(0,R.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tags`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Digest`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Size`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pushed`}),(0,R.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,R.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,R.jsx)(`tbody`,{children:x.map(e=>{if(!e.imageDigest)return null;let t=e.imageDigest;return(0,R.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,R.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTags&&e.imageTags.length>0?e.imageTags.join(`, `):``}),(0,R.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:[t.slice(0,19),`…`]}),(0,R.jsx)(`td`,{className:`px-4 py-2`,children:s(e.imageSizeInBytes??0)}),(0,R.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.imagePushedAt)}),(0,R.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,R.jsx)(c,{onClick:()=>p(t),size:`sm`,variant:`destructive`,children:`Delete`})})]},t)})})]})}):(0,R.jsx)(`p`,{className:`text-muted-foreground`,children:`No images pushed yet.`})}),t[24]=x,t[25]=Y);let X;t[26]===n?X=t[27]:(X=(0,R.jsx)(N,{value:`lifecycle`,children:(0,R.jsx)(B,{repositoryName:n})}),t[26]=n,t[27]=X);let Z;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,R.jsx)(N,{value:`scan`,children:(0,R.jsx)(K,{})}),t[28]=Z):Z=t[28];let Q;t[29]===n?Q=t[30]:(Q=(0,R.jsx)(N,{value:`permissions`,children:(0,R.jsx)(te,{repositoryName:n})}),t[29]=n,t[30]=Q);let $;t[31]!==J||t[32]!==Y||t[33]!==X||t[34]!==Q?($=(0,R.jsxs)(P,{defaultValue:`summary`,children:[U,J,Y,X,Z,Q]}),t[31]=J,t[32]=Y,t[33]=X,t[34]=Q,t[35]=$):$=t[35];let ne;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(ne=e=>!e&&p(null),t[36]=ne):ne=t[36];let re=f!==null,ie;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,R.jsxs)(k,{children:[(0,R.jsx)(T,{children:`Delete image?`}),(0,R.jsx)(C,{children:`This permanently deletes the image manifest and any tags pointing at it. This cannot be undone.`})]}),t[37]=ie):ie=t[37];let ae;t[38]===d.error?ae=t[39]:(ae=d.error&&(0,R.jsx)(`p`,{className:`text-sm text-destructive`,children:d.error.message}),t[38]=d.error,t[39]=ae);let oe;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,R.jsx)(O,{children:`Cancel`}),t[40]=oe):oe=t[40];let se;t[41]===ee?se=t[42]:(se=e=>{e.preventDefault(),ee()},t[41]=ee,t[42]=se);let ce=d.isPending?`Deleting…`:`Delete`,le;t[43]!==d.isPending||t[44]!==se||t[45]!==ce?(le=(0,R.jsxs)(D,{children:[oe,(0,R.jsx)(E,{disabled:d.isPending,onClick:se,children:ce})]}),t[43]=d.isPending,t[44]=se,t[45]=ce,t[46]=le):le=t[46];let ue;t[47]!==ae||t[48]!==le?(ue=(0,R.jsxs)(w,{children:[ie,ae,le]}),t[47]=ae,t[48]=le,t[49]=ue):ue=t[49];let de;t[50]!==re||t[51]!==ue?(de=(0,R.jsx)(A,{onOpenChange:ne,open:re,children:ue}),t[50]=re,t[51]=ue,t[52]=de):de=t[52];let fe;return t[53]!==$||t[54]!==de||t[55]!==V?(fe=(0,R.jsxs)(R.Fragment,{children:[V,H,$,de]}),t[53]=$,t[54]=de,t[55]=V,t[56]=fe):fe=t[56],fe}function J(){let e=(0,I.c)(2),{id:t}=x.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,R.jsx)(q,{repositoryName:n}),e[0]=n,e[1]=r),r}export{J as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id2.js b/spinifex/services/spinifexui/frontend/dist/assets/_id2.js index a35f9fc44..5d9303520 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id2.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{t as a}from"./useSuspenseQuery.js";import{r as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./circle-arrow-up.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{F as d}from"./ec2.js";import{Cn as f,Ft as p,i as m,vi as h,xn as g,yi as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{a as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D}from"./alert-dialog.js";import{t as O}from"./delete-confirmation-dialog.js";import{t as k}from"./state-badge.js";import{r as A}from"./system-managed.js";import{t as j}from"./ami-details.js";var M=t(n()),N=r();function P(){let e=(0,N.c)(2),t=_(),n;return e[0]===t?n=e[1]:(n={mutationFn:F,onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=t,e[1]=n),i(n)}async function F(e){let t=o();if(!t)throw Error(`Not authenticated`);return await f({action:`PromoteImage`,credentials:t,params:{ImageId:e}})}var I=e(),L=`000000000000`;function R(){let{id:e}=m.useParams(),t=h(),{data:n}=a(p(e)),r=n?.Images?.[0],{isAdmin:i}=g(),o=d(),f=P(),[_,N]=(0,M.useState)(!1),[F,R]=(0,M.useState)(!1);if(!r?.ImageId||A(r))return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(s,{to:`/ec2/describe-images`,children:`Back to images`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]});let z=r.OwnerId===L;async function B(){try{await o.mutateAsync(e),t({to:`/ec2/describe-images`})}finally{N(!1)}}async function V(){try{await f.mutateAsync(e),R(!1)}catch{}}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(s,{to:`/ec2/describe-images`,children:`Back to images`}),o.error&&(0,I.jsx)(v,{error:o.error,msg:`Failed to deregister image`}),f.error&&(0,I.jsx)(v,{error:f.error,msg:`Failed to promote image`}),(0,I.jsxs)(`div`,{className:`space-y-6`,children:[(0,I.jsx)(y,{actions:(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&!z&&(0,I.jsxs)(u,{onClick:()=>R(!0),size:`sm`,variant:`outline`,children:[(0,I.jsx)(c,{className:`size-4`}),`Promote to System`]}),(0,I.jsxs)(u,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,I.jsx)(l,{className:`size-4`}),`Deregister`]}),(0,I.jsx)(k,{state:r.State})]}),subtitle:`Image Details`,title:r.ImageId}),(0,I.jsx)(j,{image:r,showExtendedDetails:!0})]}),(0,I.jsx)(O,{description:`Are you sure you want to deregister "${r.ImageId}"? The backing snapshot will not be deleted.`,isPending:o.isPending,onConfirm:B,onOpenChange:N,open:_,title:`Deregister Image`}),(0,I.jsx)(D,{onOpenChange:R,open:F,children:(0,I.jsxs)(x,{children:[(0,I.jsxs)(E,{children:[(0,I.jsx)(S,{children:`Promote to System Image`}),(0,I.jsxs)(b,{children:[`This will make “`,r.ImageId,`” visible to all accounts as a system image. This cannot be undone via the UI.`]})]}),(0,I.jsxs)(w,{children:[(0,I.jsx)(T,{children:`Cancel`}),(0,I.jsx)(C,{disabled:f.isPending,onClick:V,children:f.isPending?`Promoting…`:`Promote`})]})]})})]})}export{R as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{t as a}from"./useSuspenseQuery.js";import{r as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./circle-arrow-up.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{F as d}from"./ec2.js";import{An as f,Di as p,Mn as m,Oi as h,Wt as g,i as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{a as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D}from"./alert-dialog.js";import{t as O}from"./delete-confirmation-dialog.js";import{t as k}from"./state-badge.js";import{r as A}from"./system-managed.js";import{t as j}from"./ami-details.js";var M=t(n()),N=r();function P(){let e=(0,N.c)(2),t=h(),n;return e[0]===t?n=e[1]:(n={mutationFn:F,onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=t,e[1]=n),i(n)}async function F(e){let t=o();if(!t)throw Error(`Not authenticated`);return await m({action:`PromoteImage`,credentials:t,params:{ImageId:e}})}var I=e(),L=`000000000000`;function R(){let{id:e}=_.useParams(),t=p(),{data:n}=a(g(e)),r=n?.Images?.[0],{isAdmin:i}=f(),o=d(),m=P(),[h,N]=(0,M.useState)(!1),[F,R]=(0,M.useState)(!1);if(!r?.ImageId||A(r))return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(s,{to:`/ec2/describe-images`,children:`Back to images`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]});let z=r.OwnerId===L;async function B(){try{await o.mutateAsync(e),t({to:`/ec2/describe-images`})}finally{N(!1)}}async function V(){try{await m.mutateAsync(e),R(!1)}catch{}}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(s,{to:`/ec2/describe-images`,children:`Back to images`}),o.error&&(0,I.jsx)(v,{error:o.error,msg:`Failed to deregister image`}),m.error&&(0,I.jsx)(v,{error:m.error,msg:`Failed to promote image`}),(0,I.jsxs)(`div`,{className:`space-y-6`,children:[(0,I.jsx)(y,{actions:(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&!z&&(0,I.jsxs)(u,{onClick:()=>R(!0),size:`sm`,variant:`outline`,children:[(0,I.jsx)(c,{className:`size-4`}),`Promote to System`]}),(0,I.jsxs)(u,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,I.jsx)(l,{className:`size-4`}),`Deregister`]}),(0,I.jsx)(k,{state:r.State})]}),subtitle:`Image Details`,title:r.ImageId}),(0,I.jsx)(j,{image:r,showExtendedDetails:!0})]}),(0,I.jsx)(O,{description:`Are you sure you want to deregister "${r.ImageId}"? The backing snapshot will not be deleted.`,isPending:o.isPending,onConfirm:B,onOpenChange:N,open:h,title:`Deregister Image`}),(0,I.jsx)(D,{onOpenChange:R,open:F,children:(0,I.jsxs)(x,{children:[(0,I.jsxs)(E,{children:[(0,I.jsx)(S,{children:`Promote to System Image`}),(0,I.jsxs)(b,{children:[`This will make “`,r.ImageId,`” visible to all accounts as a system image. This cannot be undone via the UI.`]})]}),(0,I.jsxs)(w,{children:[(0,I.jsx)(T,{children:`Cancel`}),(0,I.jsx)(C,{disabled:m.isPending,onClick:V,children:m.isPending?`Promoting…`:`Promote`})]})]})})]})}export{R as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js index fd6e18935..622a89ca7 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{xi as o}from"./awsClient.js";import{Bt as s,Rt as c}from"./auth.js";import{t as l}from"./back-link.js";import{c as u,i as d,n as f,s as p,t as m}from"./select.js";import{t as h}from"./rotate-cw.js";import{t as g}from"./trash-2.js";import{t as _}from"./button.js";import{G as v,Q as y,U as b,V as x,X as S,Z as C,r as w,u as T,z as E}from"./ec2.js";import{Ft as D,Lt as O,Pt as k,Rt as A,a as j,hi as M,xn as ee,xr as te,xt as N}from"./index.js";import{t as P}from"./error-banner.js";import{t as ne}from"./page-heading.js";import{a as F,t as I}from"./field.js";import{a as L,i as R,l as z,n as B,o as V,r as H,s as U,t as re}from"./alert-dialog.js";import{t as W}from"./delete-confirmation-dialog.js";import{n as G,t as K}from"./detail-row.js";import{t as ie}from"./state-badge.js";import{t as ae}from"./ami-details.js";import{r as oe}from"./admin.js";import{t as q}from"./textarea.js";var se=M(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ce=M(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),J=M(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=M(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ue=M(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=T(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{let t=await r.mutateAsync({instanceId:e,name:i,description:o||void 0});l(t.ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(re,{onOpenChange:u,open:t,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(L,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(te,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(q,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(B,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=k(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(N),c=w(),l=E(),[d,h]=(0,Y.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(Q),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let v=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,x;t[6]!==c||t[7]!==n||t[8]!==d?(x=async()=>{d&&(await c.mutateAsync({instanceId:n,instanceProfileName:d}),h(``))},t[6]=c,t[7]=n,t[8]=d,t[9]=x):x=t[9];let S=x,C;t[10]!==v||t[11]!==l||t[12]!==n?(C=async()=>{v?.AssociationId&&await l.mutateAsync({associationId:v.AssociationId,instanceId:n})},t[10]=v,t[11]=l,t[12]=n,t[13]=C):C=t[13];let T=C,D;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,X.jsx)(G.Header,{children:`IAM Role`}),t[14]=D):D=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(P,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=O);let A;t[17]===l.error?A=t[18]:(A=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(P,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=A);let j;t[19]!==c.isPending||t[20]!==v||t[21]!==l.isPending||t[22]!==S||t[23]!==T||t[24]!==b||t[25]!==d?(j=v?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(K,{label:`Instance Profile ARN`,value:v.IamInstanceProfile?.Arn}),(0,X.jsx)(K,{label:`State`,value:(0,X.jsx)(ie,{state:v.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(_,{disabled:l.isPending,onClick:T,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),b.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(m,{onValueChange:e=>h(e??``),value:d,children:[(0,X.jsx)(p,{className:`w-full`,children:(0,X.jsx)(u,{placeholder:`Select an instance profile`})}),(0,X.jsx)(f,{children:b.map(pe)})]}),(0,X.jsx)(_,{disabled:!d||c.isPending,onClick:S,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=v,t[21]=l.isPending,t[22]=S,t[23]=T,t[24]=b,t[25]=d,t[26]=j):j=t[26];let M;return t[27]!==O||t[28]!==A||t[29]!==j?(M=(0,X.jsxs)(G,{children:[D,(0,X.jsxs)(G.Content,{children:[O,A,j]})]}),t[27]=O,t[28]=A,t[29]=j,t[30]=M):M=t[30],M}function pe(e){return(0,X.jsx)(d,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,i=S(),a=C(),o=v(),s=y(),[c,l]=(0,Y.useState)(!1),u=$.has(r??``),d;t[0]!==n||t[1]!==s?(d=()=>{s.mutate(n,{onSettled:()=>l(!1)})},t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d;if(u&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let p;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=p):p=t[6];let m;t[7]===i.error?m=t[8]:(m=i.error&&(0,X.jsx)(P,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let b;t[9]===a.error?b=t[10]:(b=a.error&&(0,X.jsx)(P,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=b);let x;t[11]===o.error?x=t[12]:(x=o.error&&(0,X.jsx)(P,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=x);let w;t[13]===s.error?w=t[14]:(w=s.error&&(0,X.jsx)(P,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=w);let T;t[15]!==n||t[16]!==i||t[17]!==r?(T=r===`stopped`&&(0,X.jsxs)(_,{disabled:i.isPending,onClick:()=>i.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=T):T=t[18];let E;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(E=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(_,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(_,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(h,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=E):E=t[23];let D;t[24]!==r||t[25]!==s.isPending?(D=(r===`stopped`||r===`running`)&&(0,X.jsxs)(_,{disabled:s.isPending,onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=D):D=t[26];let O;t[27]!==T||t[28]!==E||t[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),t[27]=T,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,A;t[31]!==f||t[32]!==c||t[33]!==k||t[34]!==s.isPending?(A=(0,X.jsx)(W,{confirmLabel:`Terminate`,description:k,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=k,t[34]=s.isPending,t[35]=A):A=t[35];let j;return t[36]!==O||t[37]!==A||t[38]!==m||t[39]!==b||t[40]!==x||t[41]!==w?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,b,x,w,O,A]}),t[36]=O,t[37]=A,t[38]=m,t[39]=b,t[40]=x,t[41]=w,t[42]=j):j=t[42],j}function he(){let{id:e}=j.useParams(),{isAdmin:t}=ee(),{data:n}=a(O(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:h}=a(D(r?.ImageId)),g=h?.Images?.[0],{data:v}=a(A),{data:y}=i({...oe,enabled:t,refetchInterval:5e3}),S=y?.vms?.find(t=>t.instance_id===e),C=b(),w=x(),[T,E]=(0,Y.useState)(!1),[k,M]=(0,Y.useState)(``),[te,N]=(0,Y.useState)(!1),[W,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(v.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=c(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await C.mutateAsync({instanceId:e,instanceType:k}),E(!1),M(``)}catch{}}async function ge(){try{let t=await w.mutateAsync(e),n=t.Output?atob(t.Output):`(no output)`;q(n),N(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),C.error&&(0,X.jsx)(P,{error:C.error,msg:`Failed to modify instance`}),w.error&&(0,X.jsx)(P,{error:w.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(ne,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(_,{disabled:w.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),w.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(_,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(_,{onClick:()=>{M(r.InstanceType??``),E(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),te&&W!==null&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(_,{onClick:()=>{N(!1),q(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:W})})]}),(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Instance Information`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(K,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(K,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(K,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(K,{label:`Launch Time`,value:pe}),(0,X.jsx)(K,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(K,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Network & Security`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(K,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(K,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(K,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(K,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(K,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(K,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(K,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&S?.gpu&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`GPU`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Model`,value:S.gpu.model}),(0,X.jsx)(K,{label:`VRAM`,value:s(S.gpu.vram_mib)}),(0,X.jsx)(K,{label:`Attachment`,value:S.gpu.profile?`MIG slice`:`PCIe passthrough`}),S.gpu.profile&&(0,X.jsx)(K,{label:`Profile`,value:S.gpu.profile}),S.gpu.mdev_path&&(0,X.jsx)(K,{label:`Mdev path`,value:S.gpu.mdev_path}),S.gpu.pci_address&&(0,X.jsx)(K,{label:`PCI address`,value:S.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(K,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(K,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(K,{label:`Attach Time`,value:c(e.Ebs?.AttachTime)}),(0,X.jsx)(K,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),g&&(0,X.jsx)(ae,{image:g})]}),(0,X.jsx)(re,{onOpenChange:e=>{e||(E(!1),M(``))},open:T,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(L,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(m,{onValueChange:e=>M(e??``),value:k,children:[(0,X.jsx)(p,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(u,{})}),(0,X.jsx)(f,{children:Z.map(e=>(0,X.jsx)(d,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:C.isPending||!k||k===r.InstanceType,onClick:he,children:C.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:ce})]})}export{he as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Ni as o}from"./awsClient.js";import{Bt as s,Rt as c}from"./auth.js";import{t as l}from"./back-link.js";import{c as u,i as d,n as f,s as p,t as m}from"./select.js";import{t as h}from"./rotate-cw.js";import{t as g}from"./trash-2.js";import{t as _}from"./button.js";import{G as v,Q as y,U as b,V as x,X as S,Z as C,r as w,u as T,z as E}from"./ec2.js";import{An as D,Ar as O,Ct as k,Kt as A,Ut as j,Wt as M,a as N,qt as ee,wi as P}from"./index.js";import{t as F}from"./error-banner.js";import{t as te}from"./page-heading.js";import{a as I,t as L}from"./field.js";import{a as ne,i as R,l as z,n as B,o as V,r as H,s as U,t as re}from"./alert-dialog.js";import{t as W}from"./delete-confirmation-dialog.js";import{n as G,t as K}from"./detail-row.js";import{t as ie}from"./state-badge.js";import{t as ae}from"./ami-details.js";import{r as oe}from"./admin.js";import{t as q}from"./textarea.js";var se=P(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ce=P(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),J=P(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=P(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ue=P(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=T(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{let t=await r.mutateAsync({instanceId:e,name:i,description:o||void 0});l(t.ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(re,{onOpenChange:u,open:t,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(ne,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(O,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(q,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(B,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=j(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(k),c=w(),l=E(),[d,h]=(0,Y.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(Q),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let v=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,x;t[6]!==c||t[7]!==n||t[8]!==d?(x=async()=>{d&&(await c.mutateAsync({instanceId:n,instanceProfileName:d}),h(``))},t[6]=c,t[7]=n,t[8]=d,t[9]=x):x=t[9];let S=x,C;t[10]!==v||t[11]!==l||t[12]!==n?(C=async()=>{v?.AssociationId&&await l.mutateAsync({associationId:v.AssociationId,instanceId:n})},t[10]=v,t[11]=l,t[12]=n,t[13]=C):C=t[13];let T=C,D;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,X.jsx)(G.Header,{children:`IAM Role`}),t[14]=D):D=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(F,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=O);let A;t[17]===l.error?A=t[18]:(A=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(F,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=A);let M;t[19]!==c.isPending||t[20]!==v||t[21]!==l.isPending||t[22]!==S||t[23]!==T||t[24]!==b||t[25]!==d?(M=v?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(K,{label:`Instance Profile ARN`,value:v.IamInstanceProfile?.Arn}),(0,X.jsx)(K,{label:`State`,value:(0,X.jsx)(ie,{state:v.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(_,{disabled:l.isPending,onClick:T,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),b.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(m,{onValueChange:e=>h(e??``),value:d,children:[(0,X.jsx)(p,{className:`w-full`,children:(0,X.jsx)(u,{placeholder:`Select an instance profile`})}),(0,X.jsx)(f,{children:b.map(pe)})]}),(0,X.jsx)(_,{disabled:!d||c.isPending,onClick:S,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=v,t[21]=l.isPending,t[22]=S,t[23]=T,t[24]=b,t[25]=d,t[26]=M):M=t[26];let N;return t[27]!==O||t[28]!==A||t[29]!==M?(N=(0,X.jsxs)(G,{children:[D,(0,X.jsxs)(G.Content,{children:[O,A,M]})]}),t[27]=O,t[28]=A,t[29]=M,t[30]=N):N=t[30],N}function pe(e){return(0,X.jsx)(d,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,i=S(),a=C(),o=v(),s=y(),[c,l]=(0,Y.useState)(!1),u=$.has(r??``),d;t[0]!==n||t[1]!==s?(d=()=>{s.mutate(n,{onSettled:()=>l(!1)})},t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d;if(u&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let p;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=p):p=t[6];let m;t[7]===i.error?m=t[8]:(m=i.error&&(0,X.jsx)(F,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let b;t[9]===a.error?b=t[10]:(b=a.error&&(0,X.jsx)(F,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=b);let x;t[11]===o.error?x=t[12]:(x=o.error&&(0,X.jsx)(F,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=x);let w;t[13]===s.error?w=t[14]:(w=s.error&&(0,X.jsx)(F,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=w);let T;t[15]!==n||t[16]!==i||t[17]!==r?(T=r===`stopped`&&(0,X.jsxs)(_,{disabled:i.isPending,onClick:()=>i.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=T):T=t[18];let E;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(E=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(_,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(_,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(h,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=E):E=t[23];let D;t[24]!==r||t[25]!==s.isPending?(D=(r===`stopped`||r===`running`)&&(0,X.jsxs)(_,{disabled:s.isPending,onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=D):D=t[26];let O;t[27]!==T||t[28]!==E||t[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),t[27]=T,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,A;t[31]!==f||t[32]!==c||t[33]!==k||t[34]!==s.isPending?(A=(0,X.jsx)(W,{confirmLabel:`Terminate`,description:k,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=k,t[34]=s.isPending,t[35]=A):A=t[35];let j;return t[36]!==O||t[37]!==A||t[38]!==m||t[39]!==b||t[40]!==x||t[41]!==w?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,b,x,w,O,A]}),t[36]=O,t[37]=A,t[38]=m,t[39]=b,t[40]=x,t[41]=w,t[42]=j):j=t[42],j}function he(){let{id:e}=N.useParams(),{isAdmin:t}=D(),{data:n}=a(A(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:h}=a(M(r?.ImageId)),g=h?.Images?.[0],{data:v}=a(ee),{data:y}=i({...oe,enabled:t,refetchInterval:5e3}),S=y?.vms?.find(t=>t.instance_id===e),C=b(),w=x(),[T,E]=(0,Y.useState)(!1),[O,k]=(0,Y.useState)(``),[j,P]=(0,Y.useState)(!1),[W,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(v.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=c(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await C.mutateAsync({instanceId:e,instanceType:O}),E(!1),k(``)}catch{}}async function ge(){try{let t=await w.mutateAsync(e),n=t.Output?atob(t.Output):`(no output)`;q(n),P(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),C.error&&(0,X.jsx)(F,{error:C.error,msg:`Failed to modify instance`}),w.error&&(0,X.jsx)(F,{error:w.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(te,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(_,{disabled:w.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),w.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(_,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(_,{onClick:()=>{k(r.InstanceType??``),E(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),j&&W!==null&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(_,{onClick:()=>{P(!1),q(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:W})})]}),(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Instance Information`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(K,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(K,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(K,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(K,{label:`Launch Time`,value:pe}),(0,X.jsx)(K,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(K,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Network & Security`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(K,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(K,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(K,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(K,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(K,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(K,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(K,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&S?.gpu&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`GPU`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Model`,value:S.gpu.model}),(0,X.jsx)(K,{label:`VRAM`,value:s(S.gpu.vram_mib)}),(0,X.jsx)(K,{label:`Attachment`,value:S.gpu.profile?`MIG slice`:`PCIe passthrough`}),S.gpu.profile&&(0,X.jsx)(K,{label:`Profile`,value:S.gpu.profile}),S.gpu.mdev_path&&(0,X.jsx)(K,{label:`Mdev path`,value:S.gpu.mdev_path}),S.gpu.pci_address&&(0,X.jsx)(K,{label:`PCI address`,value:S.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(K,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(K,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(K,{label:`Attach Time`,value:c(e.Ebs?.AttachTime)}),(0,X.jsx)(K,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),g&&(0,X.jsx)(ae,{image:g})]}),(0,X.jsx)(re,{onOpenChange:e=>{e||(E(!1),k(``))},open:T,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(ne,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(m,{onValueChange:e=>k(e??``),value:O,children:[(0,X.jsx)(p,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(u,{})}),(0,X.jsx)(f,{children:Z.map(e=>(0,X.jsx)(d,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:C.isPending||!O||O===r.InstanceType,onClick:he,children:C.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:ce})]})}export{he as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js index 61f122e3a..c0c8db95e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{I as m,a as h,w as g}from"./ec2.js";import{Bt as _,o as v,on as y,vi as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=v.useParams(),t=b(),{data:n}=r(_(e)),{data:O}=r(y),k=h(),A=m(),j=g(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=n.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:e,vpcId:P})},B=async t=>{await A.mutateAsync({internetGatewayId:e,vpcId:t})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let V=I.Attachments?.[0],H=!!V?.VpcId,U=a(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(x,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(S,{actions:(0,D.jsxs)(p,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(f,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:U?`${I.InternetGatewayId} (${U})`:I.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:I.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:I.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:V?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:H?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(i,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(p,{disabled:A.isPending,onClick:async()=>await B(V.VpcId??``),size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(d,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(u,{className:`w-full`,children:(0,D.jsx)(s,{placeholder:`Select a VPC`})}),(0,D.jsx)(l,{children:L.map(e=>{let t=a(e.Tags);return(0,D.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(p,{disabled:!P||k.isPending,onClick:z,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${I.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:R,onOpenChange:N,open:M,title:`Delete Internet Gateway`})]})}export{O as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{I as m,a as h,w as g}from"./ec2.js";import{Di as _,Yt as v,hn as y,o as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=b.useParams(),t=_(),{data:n}=r(v(e)),{data:O}=r(y),k=h(),A=m(),j=g(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=n.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:e,vpcId:P})},B=async t=>{await A.mutateAsync({internetGatewayId:e,vpcId:t})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let V=I.Attachments?.[0],H=!!V?.VpcId,U=a(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(x,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(S,{actions:(0,D.jsxs)(p,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(f,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:U?`${I.InternetGatewayId} (${U})`:I.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:I.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:I.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:V?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:H?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(i,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(p,{disabled:A.isPending,onClick:async()=>await B(V.VpcId??``),size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(d,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(u,{className:`w-full`,children:(0,D.jsx)(s,{placeholder:`Select a VPC`})}),(0,D.jsx)(l,{children:L.map(e=>{let t=a(e.Tags);return(0,D.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(p,{disabled:!P||k.isPending,onClick:z,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${I.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:R,onOpenChange:N,open:M,title:`Delete Internet Gateway`})]})}export{O as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js index efcf58831..00a91b4e4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Rt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{T as c}from"./ec2.js";import{Ht as l,s as u,vi as d}from"./index.js";import{t as f}from"./error-banner.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=t(n()),v=e();function y(){let{id:e}=u.useParams(),t=d(),{data:n}=r(l(e)),y=n.KeyPairs?.[0],b=c(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=i(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(f,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(s,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(o,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Rt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{T as c}from"./ec2.js";import{Di as l,Zt as u,s as d}from"./index.js";import{t as f}from"./error-banner.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=t(n()),v=e();function y(){let{id:e}=d.useParams(),t=l(),{data:n}=r(u(e)),y=n.KeyPairs?.[0],b=c(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=i(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(f,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(s,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(o,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js index 3a1ba180b..130773d4e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Rt as a,Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{t as h}from"./certificate-import-dialog.js";import{_ as g,a as _,d as v,f as y,g as b,h as x,o as S,r as C,s as w,t as T,u as E}from"./elbv2.js";import{J as D,K as O,Q as k,Qt as A,U as j,Y as M,Z as N,c as P,hi as F,nn as I,q as ee,tt as L,vi as R,xr as te}from"./index.js";import{a as ne,i as z,n as re,r as B,t as V}from"./zod.js";import{t as H}from"./error-banner.js";import{t as U}from"./page-heading.js";import{a as W,r as ie,t as G}from"./field.js";import{a as K,i as q,l as J,n as Y,o as ae,r as oe,s as se,t as ce}from"./alert-dialog.js";import{t as le}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as ue}from"./state-badge.js";import{c as de,i as fe,n as pe,o as me,s as he,t as ge}from"./elbv22.js";import{n as _e,r as ve,t as ye}from"./tags-editor.js";import{i as be,n as xe,r as Se,t as Ce}from"./tabs.js";var we=F(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Te=r(),Q=t(n(),1),$=e(),Ee=80,De=443;function Oe(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function ke(e){let t=(0,Te.c)(59),{form:n,protocols:r,targetGroups:i,certificates:a,sslPolicies:o}=e,s;t[0]===a?s=t[1]:(s=a===void 0?[]:a,t[0]=a,t[1]=s);let l=s,p;t[2]===o?p=t[3]:(p=o===void 0?[]:o,t[2]=o,t[3]=p);let g=p,{control:_,register:v,getValues:y,setValue:b,formState:x}=n,{errors:S}=x,[C,w]=(0,Q.useState)(!1),T;t[4]===_?T=t[5]:(T={control:_,name:`protocol`},t[4]=_,t[5]=T);let E=ne(T),D=E===`HTTPS`,O;t[6]===E?O=t[7]:(O=he(E),t[6]=E,t[7]=O);let k=O,A;t[8]!==y||t[9]!==b?(A=e=>{if(!e)return;let t=y(`port`);he(e)?(t===Ee&&b(`port`,De),e===`HTTPS`?y(`sslPolicy`)||b(`sslPolicy`,ge):b(`sslPolicy`,void 0)):(t===De&&b(`port`,Ee),b(`certificateArn`,void 0),b(`sslPolicy`,void 0))},t[8]=y,t[9]=b,t[10]=A):A=t[10];let j=A,M;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=M):M=t[11];let N;t[12]!==j||t[13]!==r?(N=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:e=>{t.onChange(e),j(e)},value:t.value,children:[(0,$.jsx)(d,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(c,{})}),(0,$.jsx)(u,{children:r.map(Ne)})]})},t[12]=j,t[13]=r,t[14]=N):N=t[14];let P;t[15]!==_||t[16]!==N?(P=(0,$.jsxs)(G,{children:[M,(0,$.jsx)(re,{control:_,name:`protocol`,render:N})]}),t[15]=_,t[16]=N,t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=F):F=t[18];let I=!!S.port,ee=k?`443`:`80`,L;t[19]===v?L=t[20]:(L=v(`port`,{valueAsNumber:!0}),t[19]=v,t[20]=L);let R;t[21]!==I||t[22]!==ee||t[23]!==L?(R=(0,$.jsx)(te,{"aria-invalid":I,id:`listener-port`,inputMode:`numeric`,placeholder:ee,type:`number`,...L}),t[21]=I,t[22]=ee,t[23]=L,t[24]=R):R=t[24];let z;t[25]===S.port?z=t[26]:(z=(0,$.jsx)(ie,{errors:[S.port]}),t[25]=S.port,t[26]=z);let B;t[27]!==R||t[28]!==z?(B=(0,$.jsxs)(G,{children:[F,R,z]}),t[27]=R,t[28]=z,t[29]=B):B=t[29];let V;t[30]!==l||t[31]!==_||t[32]!==S.certificateArn||t[33]!==C||t[34]!==D||t[35]!==k||t[36]!==b||t[37]!==g?(V=k&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(re,{control:_,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!S.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(c,{placeholder:`Select certificate`})}),(0,$.jsx)(u,{children:l.map(Me)})]})}}),(0,$.jsx)(ie,{errors:[S.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[l.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(m,{className:`ml-auto`,onClick:()=>w(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),D&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(re,{control:_,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(d,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(c,{})}),(0,$.jsx)(u,{children:g.map(je)})]})}})]}),(0,$.jsx)(h,{onImported:e=>b(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:w,open:C})]}),t[30]=l,t[31]=_,t[32]=S.certificateArn,t[33]=C,t[34]=D,t[35]=k,t[36]=b,t[37]=g,t[38]=V):V=t[38];let H;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=H):H=t[39];let U;t[40]!==S.defaultTargetGroupArn||t[41]!==i?(U=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!S.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(c,{placeholder:`Select target group`})}),(0,$.jsx)(u,{children:i.map(Ae)})]})},t[40]=S.defaultTargetGroupArn,t[41]=i,t[42]=U):U=t[42];let K;t[43]!==_||t[44]!==U?(K=(0,$.jsx)(re,{control:_,name:`defaultTargetGroupArn`,render:U}),t[43]=_,t[44]=U,t[45]=K):K=t[45];let q;t[46]===S.defaultTargetGroupArn?q=t[47]:(q=(0,$.jsx)(ie,{errors:[S.defaultTargetGroupArn]}),t[46]=S.defaultTargetGroupArn,t[47]=q);let J;t[48]===i.length?J=t[49]:(J=i.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=i.length,t[49]=J);let Y;t[50]!==K||t[51]!==q||t[52]!==J?(Y=(0,$.jsxs)(G,{children:[H,K,q,J]}),t[50]=K,t[51]=q,t[52]=J,t[53]=Y):Y=t[53];let ae;return t[54]!==P||t[55]!==B||t[56]!==V||t[57]!==Y?(ae=(0,$.jsxs)($.Fragment,{children:[P,B,V,Y]}),t[54]=P,t[55]=B,t[56]=V,t[57]=Y,t[58]=ae):ae=t[58],ae}function Ae(e){return(0,$.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function je(e){return(0,$.jsx)(l,{value:e.Name??``,children:e.Name},e.Name)}function Me(e){return(0,$.jsx)(l,{value:e.CertificateArn??``,children:Oe(e)},e.CertificateArn)}function Ne(e){return(0,$.jsx)(l,{value:e,children:e},e)}function Pe({listenerArn:e,targetGroups:t}){let{data:n}=i(O(e)),r=C(),a=y(),o=w(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),[d,f]=(0,Q.useState)(),h=n.Rules??[],g=new Map;for(let e of t)e.TargetGroupArn&&e.TargetGroupName&&g.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[r.error&&(0,$.jsx)(H,{error:r.error,msg:`Failed to create rule`}),a.error&&(0,$.jsx)(H,{error:a.error,msg:`Failed to modify rule`}),o.error&&(0,$.jsx)(H,{error:o.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[h.length,` rule`,h.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(m,{onClick:()=>c(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:h.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Fe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Le(e,g)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(m,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>u(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(m,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>f(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(ze,{isPending:r.isPending,mode:`add`,onOpenChange:c,onSubmit:async t=>{try{await r.mutateAsync({listenerArn:e,priority:t.priority,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),c(!1)}catch{}},open:s,targetGroups:t}),(0,$.jsx)(ze,{initialRule:l,isPending:a.isPending,mode:`edit`,onOpenChange:e=>!e&&u(void 0),onSubmit:async t=>{if(l?.RuleArn)try{await a.mutateAsync({ruleArn:l.RuleArn,listenerArn:e,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),u(void 0)}catch{}},open:l!==void 0,targetGroups:t}),(0,$.jsx)(le,{description:d?`Delete rule with priority ${d.Priority}? This cannot be undone.`:``,isPending:o.isPending,onConfirm:async()=>{if(d?.RuleArn)try{await o.mutateAsync({ruleArn:d.RuleArn,listenerArn:e})}finally{f(void 0)}},onOpenChange:e=>!e&&f(void 0),open:d!==void 0,title:`Delete rule`})]})}function Fe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Ie(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Ie(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Le(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Re(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function ze({open:e,onOpenChange:t,onSubmit:n,isPending:r,targetGroups:i,mode:a,initialRule:o}){let s=[{field:`path-pattern`,rawValues:``}],p=z({resolver:V(fe),defaultValues:{priority:1,conditions:s,forwardTargetGroupArn:``}}),{fields:h,append:g,remove:_}=B({control:p.control,name:`conditions`});(0,Q.useEffect)(()=>{if(a===`add`){e||p.reset({priority:1,conditions:s,forwardTargetGroupArn:``});return}if(!o)return;let t=Number(o.Priority??1),n=o.Conditions?.map(e=>We(e))??s;p.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:s,forwardTargetGroupArn:o.Actions?.[0]?.TargetGroupArn??``})},[o,e,a]);let v=p.handleSubmit(n);return(0,$.jsx)(ce,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:a===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(K,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(te,{"aria-invalid":!!p.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...p.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(ie,{errors:[p.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(W,{children:`Conditions`}),(0,$.jsx)(m,{disabled:h.length>=5,onClick:()=>g({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),h.map((e,t)=>(0,$.jsx)(Be,{form:p,index:t,onRemove:h.length>1?()=>_(t):void 0},e.id))]}),(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(re,{control:p.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(f,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!p.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(c,{placeholder:`Select target group`})}),(0,$.jsx)(u,{children:i.map(e=>(0,$.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(ie,{errors:[p.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(ae,{children:[(0,$.jsx)(oe,{disabled:r,children:`Cancel`}),(0,$.jsx)(Y,{disabled:r,onClick:v,children:Ge(a,r)})]})]})})}function Be(e){let t=(0,Te.c)(54),{form:n,index:r,onRemove:i}=e,a,o,s,h,g,_,v,y,b,x;if(t[0]!==n||t[1]!==r||t[2]!==i){let e=n.watch(`conditions.${r}.field`);s=n.formState.errors.conditions?.[r],y=`space-y-2 rounded-md border p-3`;let S=`rule-cond-${r}-field`,C;t[13]===S?C=t[14]:(C=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:S,children:`Type`})}),t[13]=S,t[14]=C);let w=`conditions.${r}.field`,T;t[15]===r?T=t[16]:(T=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(d,{className:`w-full`,id:`rule-cond-${r}-field`,children:(0,$.jsx)(c,{})}),(0,$.jsxs)(u,{children:[(0,$.jsx)(l,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(l,{value:`host-header`,children:`Host header`}),(0,$.jsx)(l,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(l,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(l,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(l,{value:`query-string`,children:`Query string`})]})]})},t[15]=r,t[16]=T);let E;t[17]!==n.control||t[18]!==w||t[19]!==T?(E=(0,$.jsx)(re,{control:n.control,name:w,render:T}),t[17]=n.control,t[18]=w,t[19]=T,t[20]=E):E=t[20];let D;t[21]!==E||t[22]!==C?(D=(0,$.jsxs)(`div`,{className:`flex-1`,children:[C,E]}),t[21]=E,t[22]=C,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==i?(O=i&&(0,$.jsx)(m,{"aria-label":`Remove condition ${r+1}`,className:`self-end`,onClick:i,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})}),t[24]=r,t[25]=i,t[26]=O):O=t[26],t[27]!==D||t[28]!==O?(b=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[D,O]}),t[27]=D,t[28]=O,t[29]=b):b=t[29],x=e===`http-header`&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${r}-hdr-name`,children:`Header name`})}),(0,$.jsx)(te,{"aria-invalid":!!s?.httpHeaderName,id:`rule-cond-${r}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${r}.httpHeaderName`)}),(0,$.jsx)(ie,{errors:[s?.httpHeaderName]})]}),o=G;let k=`rule-cond-${r}-values`,A;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=A):A=t[30],t[31]===k?v=t[32]:(v=(0,$.jsx)(W,{children:(0,$.jsxs)(`label`,{htmlFor:k,children:[`Values`,` `,A]})}),t[31]=k,t[32]=v),a=te,h=!!s?.rawValues,g=`rule-cond-${r}-values`,_=Ve(e),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=h,t[7]=g,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x}else a=t[3],o=t[4],s=t[5],h=t[6],g=t[7],_=t[8],v=t[9],y=t[10],b=t[11],x=t[12];let S;t[33]!==n||t[34]!==r?(S=n.register(`conditions.${r}.rawValues`),t[33]=n,t[34]=r,t[35]=S):S=t[35];let C;t[36]!==a||t[37]!==h||t[38]!==g||t[39]!==_||t[40]!==S?(C=(0,$.jsx)(a,{"aria-invalid":h,id:g,placeholder:_,...S}),t[36]=a,t[37]=h,t[38]=g,t[39]=_,t[40]=S,t[41]=C):C=t[41];let w=s?.rawValues,T;t[42]===w?T=t[43]:(T=(0,$.jsx)(ie,{errors:[w]}),t[42]=w,t[43]=T);let E;t[44]!==o||t[45]!==T||t[46]!==v||t[47]!==C?(E=(0,$.jsxs)(o,{children:[v,C,T]}),t[44]=o,t[45]=T,t[46]=v,t[47]=C,t[48]=E):E=t[48];let D;return t[49]!==E||t[50]!==y||t[51]!==b||t[52]!==x?(D=(0,$.jsxs)(`div`,{className:y,children:[b,x,E]}),t[49]=E,t[50]=y,t[51]=b,t[52]=x,t[53]=D):D=t[53],D}function Ve(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var He=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function Ue(e){return e!==void 0&&He.has(e)}function We(e){let t=Ie(e);return{field:Ue(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function Ge(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ke(e){return{protocol:me(e),port:80,defaultTargetGroupArn:``}}function qe(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function Je({loadBalancerArn:e,vpcId:t,lbType:n}){let r=de(n),{data:a}=i(ee(e)),{data:o}=i(L),{data:s}=i(j),{data:c}=i(N),l=T(),u=_(),d=E(),[f,h]=(0,Q.useState)(!1),[g,v]=(0,Q.useState)(),[y,b]=(0,Q.useState)(),[x,S]=(0,Q.useState)(),C=a.Listeners??[],w=o.TargetGroups??[],D=w.filter(e=>e.VpcId===t),O=s.CertificateSummaryList??[],k=c.SslPolicies??[],A=new Map;for(let e of w)e.TargetGroupArn&&e.TargetGroupName&&A.set(e.TargetGroupArn,e.TargetGroupName);let M=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=A.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[l.error&&(0,$.jsx)(H,{error:l.error,msg:`Failed to create listener`}),d.error&&(0,$.jsx)(H,{error:d.error,msg:`Failed to modify listener`}),u.error&&(0,$.jsx)(H,{error:u.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[C.length,` listener`,C.length===1?``:`s`]}),(0,$.jsx)(m,{onClick:()=>h(!0),size:`sm`,children:`Add listener`})]}),C.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:C.map(e=>{let t=e.ListenerArn??``,n=x===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:qe(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:M(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(m,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>S(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(m,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>v(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(m,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>b(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Pe,{listenerArn:t,targetGroups:D})})})]},t)})})]})}),(0,$.jsx)(Ye,{certificates:O,isPending:l.isPending,lbType:n,onOpenChange:h,onSubmit:async t=>{try{await l.mutateAsync({loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),h(!1)}catch{}},open:f,protocols:r,sslPolicies:k,targetGroups:D}),(0,$.jsx)(Xe,{certificates:O,isPending:d.isPending,listener:g,onOpenChange:e=>!e&&v(void 0),onSubmit:async t=>{if(g?.ListenerArn)try{await d.mutateAsync({listenerArn:g.ListenerArn,loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),v(void 0)}catch{}},protocols:r,sslPolicies:k,targetGroups:D}),(0,$.jsx)(le,{description:y?`Delete listener ${y.Protocol}:${y.Port}? This cannot be undone.`:``,isPending:u.isPending,onConfirm:async()=>{if(y?.ListenerArn)try{await u.mutateAsync(y.ListenerArn)}finally{b(void 0)}},onOpenChange:e=>!e&&b(void 0),open:y!==void 0,title:`Delete listener`})]})}function Ye(e){let t=(0,Te.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=V(pe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ke(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=z(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ke(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Add listener`}),(0,$.jsx)(K,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(ke,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(oe,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(Y,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(ae,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(ce,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Xe(e){let t=(0,Te.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:V(pe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=z(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=he(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Edit listener`}),(0,$.jsx)(K,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(ke,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(Y,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(ae,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(ce,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Ze(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Qe(e){let t=(0,Te.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,h;t[3]===l?h=t[4]:(h=()=>d(l),t[3]=l,t[4]=h);let g=h,_;t[5]!==l||t[6]!==u?(_=Ze(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===o?x=t[14]:(x=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=x);let S;t[15]!==v||t[16]!==s?(S=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=v,t[16]=s,t[17]=S):S=t[17];let C;t[18]!==n||t[19]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=C):C=t[20];let w;t[21]===y?w=t[22]:(w=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=y,t[22]=w);let T;t[23]!==C||t[24]!==w?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=v?`Unsaved changes`:`No changes`,D;t[26]===E?D=t[27]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[26]=E,t[27]=D);let O=a||!v,k;t[28]!==g||t[29]!==O?(k=(0,$.jsx)(m,{disabled:O,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=g,t[29]=O,t[30]=k):k=t[30];let A=a||!v||y,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(m,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==D||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,k,M]}),t[34]=D,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==T||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,N]}),t[38]=T,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==b||t[43]!==x||t[44]!==S?(F=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,P]}),t[41]=P,t[42]=b,t[43]=x,t[44]=S,t[45]=F):F=t[45],F}function $e(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function et(e){let t=o(e.Tags),n=e.AvailabilityZone?` · ${e.AvailabilityZone}`:``,r=e.CidrBlock?` (${e.CidrBlock})`:``;return`${e.SubnetId}${t?` — ${t}`:``}${r}${n}`}function tt(e){let t=(0,Te.c)(47),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,h;t[3]===l?h=t[4]:(h=()=>d(l),t[3]=l,t[4]=h);let g=h,_;t[5]!==l||t[6]!==u?(_=$e(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-amber-500 bg-amber-500/10 p-3 text-sm text-amber-700 dark:text-amber-400`,role:`note`,children:`Applying a subnet change re-homes the load balancer by relaunching its underlying system VM. Expect a brief data-plane interruption while it restarts.`}),t[13]=x):x=t[13];let S;t[14]===o?S=t[15]:(S=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update subnets`}),t[14]=o,t[15]=S);let C;t[16]!==v||t[17]!==s?(C=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Subnets updated.`}),t[16]=v,t[17]=s,t[18]=C):C=t[18];let w;t[19]!==n||t[20]!==u?(w=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnets in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:u.includes(e.SubnetId??``),onChange:()=>p(e.SubnetId??``),type:`checkbox`}),(0,$.jsx)(`span`,{className:`font-mono`,children:et(e)})]},e.SubnetId)),t[19]=n,t[20]=u,t[21]=w):w=t[21];let T;t[22]===y?T=t[23]:(T=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one subnet is required.`}),t[22]=y,t[23]=T);let E;t[24]!==T||t[25]!==w?(E=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[w,T]}),t[24]=T,t[25]=w,t[26]=E):E=t[26];let D=v?`Unsaved changes`:`No changes`,O;t[27]===D?O=t[28]:(O=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:D}),t[27]=D,t[28]=O);let k=a||!v,A;t[29]!==g||t[30]!==k?(A=(0,$.jsx)(m,{disabled:k,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[29]=g,t[30]=k,t[31]=A):A=t[31];let j=a||!v||y,M=a?`Saving…`:`Save changes`,N;t[32]!==j||t[33]!==M?(N=(0,$.jsx)(m,{disabled:j,size:`sm`,type:`submit`,children:M}),t[32]=j,t[33]=M,t[34]=N):N=t[34];let P;t[35]!==O||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[O,A,N]}),t[35]=O,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]!==E||t[40]!==P?(F=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[E,P]}),t[39]=E,t[40]=P,t[41]=F):F=t[41];let I;return t[42]!==F||t[43]!==b||t[44]!==S||t[45]!==C?(I=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,C,F]}),t[42]=F,t[43]=b,t[44]=S,t[45]=C,t[46]=I):I=t[46],I}function nt({arn:e}){let t=R(),{data:n}=i(M(e)),{data:r}=i(D(e)),{data:c}=i(k([e])),{data:l}=i(I),{data:u}=i(A),d=S(),f=v(),h=g(),_=x(),y=b(),[C,w]=(0,Q.useState)(!1),T=n.LoadBalancers?.[0];if(!T?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let E=async()=>{try{await d.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{w(!1)}},O=l.Subnets??[],j=e=>{let t=O.find(t=>t.SubnetId===e);if(!t)return e;let n=o(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},N=r.Attributes??[],P=c?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[],F=(T.SecurityGroups??[]).filter(e=>e!==void 0),ee=(u.SecurityGroups??[]).filter(e=>e.VpcId===T.VpcId),L=O.filter(e=>e.VpcId===T.VpcId),te=(T.AvailabilityZones??[]).map(e=>e.SubnetId).filter(e=>e!==void 0),ne=T.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),d.error&&(0,$.jsx)(H,{error:d.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(U,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(m,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(p,{className:`size-4`}),`Delete`]}),(0,$.jsx)(ue,{state:T.State?.Code})]}),subtitle:`Load Balancer Details`,title:T.LoadBalancerName??T.LoadBalancerArn}),(0,$.jsxs)(Ce,{defaultValue:`overview`,children:[(0,$.jsxs)(xe,{children:[(0,$.jsx)(be,{value:`overview`,children:`Overview`}),(0,$.jsx)(be,{value:`listeners`,children:`Listeners`}),(0,$.jsx)(be,{value:`subnets`,children:`Subnets`}),!ne&&(0,$.jsx)(be,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(be,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(be,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(Se,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:T.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:T.DNSName}),(0,$.jsx)(Z,{label:`State`,value:T.State?.Reason?`${T.State.Code} — ${T.State.Reason}`:T.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:T.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:T.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:T.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:T.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:a(T.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(T.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?j(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(T.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(T.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(Se,{value:`listeners`,children:(0,$.jsx)(Je,{lbType:ne?`network`:`application`,loadBalancerArn:e,vpcId:T.VpcId})}),(0,$.jsx)(Se,{value:`subnets`,children:(0,$.jsx)(tt,{available:L,current:te,error:y.error,isPending:y.isPending,isSuccess:y.isSuccess,onSubmit:t=>y.mutate({loadBalancerArn:e,subnetIds:t})})}),!ne&&(0,$.jsx)(Se,{value:`security-groups`,children:(0,$.jsx)(Qe,{available:ee,current:F,error:_.error,isPending:_.isPending,isSuccess:_.isSuccess,onSubmit:t=>_.mutate({loadBalancerArn:e,securityGroupIds:t})})}),(0,$.jsx)(Se,{value:`attributes`,children:(0,$.jsx)(_e,{attributes:N,error:f.error,isPending:f.isPending,isSuccess:f.isSuccess,onSubmit:t=>{f.mutate({loadBalancerArn:e,attributes:t})},specs:ve})}),(0,$.jsx)(Se,{value:`tags`,children:(0,$.jsx)(ye,{error:h.error,isPending:h.isPending,isSuccess:h.isSuccess,onSubmit:t=>h.mutate({resourceArn:e,tags:t,initialKeys:P.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:P})})]})]}),(0,$.jsx)(le,{description:`Are you sure you want to delete load balancer "${T.LoadBalancerName??T.LoadBalancerArn}"? This action cannot be undone.`,isPending:d.isPending,onConfirm:E,onOpenChange:w,open:C,title:`Delete load balancer`})]})}function rt(){let e=(0,Te.c)(2),{id:t}=P.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(nt,{arn:n}),e[0]=n,e[1]=r),r}export{rt as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Rt as a,Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{t as h}from"./certificate-import-dialog.js";import{_ as g,a as _,d as v,f as y,g as b,h as x,o as S,r as C,s as w,t as T,u as E}from"./elbv2.js";import{Ar as D,Di as O,J as k,K as A,Q as j,U as M,Y as N,Z as P,c as F,dn as I,q as ee,sn as te,tt as L,wi as R}from"./index.js";import{a as ne,i as z,n as re,r as B,t as V}from"./zod.js";import{t as H}from"./error-banner.js";import{t as U}from"./page-heading.js";import{a as W,r as ie,t as G}from"./field.js";import{a as K,i as q,l as J,n as Y,o as ae,r as oe,s as se,t as ce}from"./alert-dialog.js";import{t as le}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as ue}from"./state-badge.js";import{c as de,i as fe,n as pe,o as me,s as he,t as ge}from"./elbv22.js";import{n as _e,r as ve,t as ye}from"./tags-editor.js";import{i as be,n as xe,r as Se,t as Ce}from"./tabs.js";var we=R(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Te=r(),Q=t(n(),1),$=e(),Ee=80,De=443;function Oe(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function ke(e){let t=(0,Te.c)(59),{form:n,protocols:r,targetGroups:i,certificates:a,sslPolicies:o}=e,s;t[0]===a?s=t[1]:(s=a===void 0?[]:a,t[0]=a,t[1]=s);let l=s,p;t[2]===o?p=t[3]:(p=o===void 0?[]:o,t[2]=o,t[3]=p);let g=p,{control:_,register:v,getValues:y,setValue:b,formState:x}=n,{errors:S}=x,[C,w]=(0,Q.useState)(!1),T;t[4]===_?T=t[5]:(T={control:_,name:`protocol`},t[4]=_,t[5]=T);let E=ne(T),O=E===`HTTPS`,k;t[6]===E?k=t[7]:(k=he(E),t[6]=E,t[7]=k);let A=k,j;t[8]!==y||t[9]!==b?(j=e=>{if(!e)return;let t=y(`port`);he(e)?(t===Ee&&b(`port`,De),e===`HTTPS`?y(`sslPolicy`)||b(`sslPolicy`,ge):b(`sslPolicy`,void 0)):(t===De&&b(`port`,Ee),b(`certificateArn`,void 0),b(`sslPolicy`,void 0))},t[8]=y,t[9]=b,t[10]=j):j=t[10];let M=j,N;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=N):N=t[11];let P;t[12]!==M||t[13]!==r?(P=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:e=>{t.onChange(e),M(e)},value:t.value,children:[(0,$.jsx)(d,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(c,{})}),(0,$.jsx)(u,{children:r.map(Ne)})]})},t[12]=M,t[13]=r,t[14]=P):P=t[14];let F;t[15]!==_||t[16]!==P?(F=(0,$.jsxs)(G,{children:[N,(0,$.jsx)(re,{control:_,name:`protocol`,render:P})]}),t[15]=_,t[16]=P,t[17]=F):F=t[17];let I;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=I):I=t[18];let ee=!!S.port,te=A?`443`:`80`,L;t[19]===v?L=t[20]:(L=v(`port`,{valueAsNumber:!0}),t[19]=v,t[20]=L);let R;t[21]!==ee||t[22]!==te||t[23]!==L?(R=(0,$.jsx)(D,{"aria-invalid":ee,id:`listener-port`,inputMode:`numeric`,placeholder:te,type:`number`,...L}),t[21]=ee,t[22]=te,t[23]=L,t[24]=R):R=t[24];let z;t[25]===S.port?z=t[26]:(z=(0,$.jsx)(ie,{errors:[S.port]}),t[25]=S.port,t[26]=z);let B;t[27]!==R||t[28]!==z?(B=(0,$.jsxs)(G,{children:[I,R,z]}),t[27]=R,t[28]=z,t[29]=B):B=t[29];let V;t[30]!==l||t[31]!==_||t[32]!==S.certificateArn||t[33]!==C||t[34]!==O||t[35]!==A||t[36]!==b||t[37]!==g?(V=A&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(re,{control:_,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!S.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(c,{placeholder:`Select certificate`})}),(0,$.jsx)(u,{children:l.map(Me)})]})}}),(0,$.jsx)(ie,{errors:[S.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[l.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(m,{className:`ml-auto`,onClick:()=>w(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),O&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(re,{control:_,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(d,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(c,{})}),(0,$.jsx)(u,{children:g.map(je)})]})}})]}),(0,$.jsx)(h,{onImported:e=>b(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:w,open:C})]}),t[30]=l,t[31]=_,t[32]=S.certificateArn,t[33]=C,t[34]=O,t[35]=A,t[36]=b,t[37]=g,t[38]=V):V=t[38];let H;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=H):H=t[39];let U;t[40]!==S.defaultTargetGroupArn||t[41]!==i?(U=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!S.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(c,{placeholder:`Select target group`})}),(0,$.jsx)(u,{children:i.map(Ae)})]})},t[40]=S.defaultTargetGroupArn,t[41]=i,t[42]=U):U=t[42];let K;t[43]!==_||t[44]!==U?(K=(0,$.jsx)(re,{control:_,name:`defaultTargetGroupArn`,render:U}),t[43]=_,t[44]=U,t[45]=K):K=t[45];let q;t[46]===S.defaultTargetGroupArn?q=t[47]:(q=(0,$.jsx)(ie,{errors:[S.defaultTargetGroupArn]}),t[46]=S.defaultTargetGroupArn,t[47]=q);let J;t[48]===i.length?J=t[49]:(J=i.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=i.length,t[49]=J);let Y;t[50]!==K||t[51]!==q||t[52]!==J?(Y=(0,$.jsxs)(G,{children:[H,K,q,J]}),t[50]=K,t[51]=q,t[52]=J,t[53]=Y):Y=t[53];let ae;return t[54]!==F||t[55]!==B||t[56]!==V||t[57]!==Y?(ae=(0,$.jsxs)($.Fragment,{children:[F,B,V,Y]}),t[54]=F,t[55]=B,t[56]=V,t[57]=Y,t[58]=ae):ae=t[58],ae}function Ae(e){return(0,$.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function je(e){return(0,$.jsx)(l,{value:e.Name??``,children:e.Name},e.Name)}function Me(e){return(0,$.jsx)(l,{value:e.CertificateArn??``,children:Oe(e)},e.CertificateArn)}function Ne(e){return(0,$.jsx)(l,{value:e,children:e},e)}function Pe({listenerArn:e,targetGroups:t}){let{data:n}=i(A(e)),r=C(),a=y(),o=w(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),[d,f]=(0,Q.useState)(),h=n.Rules??[],g=new Map;for(let e of t)e.TargetGroupArn&&e.TargetGroupName&&g.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[r.error&&(0,$.jsx)(H,{error:r.error,msg:`Failed to create rule`}),a.error&&(0,$.jsx)(H,{error:a.error,msg:`Failed to modify rule`}),o.error&&(0,$.jsx)(H,{error:o.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[h.length,` rule`,h.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(m,{onClick:()=>c(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:h.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Fe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Le(e,g)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(m,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>u(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(m,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>f(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(ze,{isPending:r.isPending,mode:`add`,onOpenChange:c,onSubmit:async t=>{try{await r.mutateAsync({listenerArn:e,priority:t.priority,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),c(!1)}catch{}},open:s,targetGroups:t}),(0,$.jsx)(ze,{initialRule:l,isPending:a.isPending,mode:`edit`,onOpenChange:e=>!e&&u(void 0),onSubmit:async t=>{if(l?.RuleArn)try{await a.mutateAsync({ruleArn:l.RuleArn,listenerArn:e,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),u(void 0)}catch{}},open:l!==void 0,targetGroups:t}),(0,$.jsx)(le,{description:d?`Delete rule with priority ${d.Priority}? This cannot be undone.`:``,isPending:o.isPending,onConfirm:async()=>{if(d?.RuleArn)try{await o.mutateAsync({ruleArn:d.RuleArn,listenerArn:e})}finally{f(void 0)}},onOpenChange:e=>!e&&f(void 0),open:d!==void 0,title:`Delete rule`})]})}function Fe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Ie(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Ie(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Le(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Re(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function ze({open:e,onOpenChange:t,onSubmit:n,isPending:r,targetGroups:i,mode:a,initialRule:o}){let s=[{field:`path-pattern`,rawValues:``}],p=z({resolver:V(fe),defaultValues:{priority:1,conditions:s,forwardTargetGroupArn:``}}),{fields:h,append:g,remove:_}=B({control:p.control,name:`conditions`});(0,Q.useEffect)(()=>{if(a===`add`){e||p.reset({priority:1,conditions:s,forwardTargetGroupArn:``});return}if(!o)return;let t=Number(o.Priority??1),n=o.Conditions?.map(e=>We(e))??s;p.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:s,forwardTargetGroupArn:o.Actions?.[0]?.TargetGroupArn??``})},[o,e,a]);let v=p.handleSubmit(n);return(0,$.jsx)(ce,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:a===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(K,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(D,{"aria-invalid":!!p.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...p.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(ie,{errors:[p.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(W,{children:`Conditions`}),(0,$.jsx)(m,{disabled:h.length>=5,onClick:()=>g({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),h.map((e,t)=>(0,$.jsx)(Be,{form:p,index:t,onRemove:h.length>1?()=>_(t):void 0},e.id))]}),(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(re,{control:p.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(f,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!p.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(c,{placeholder:`Select target group`})}),(0,$.jsx)(u,{children:i.map(e=>(0,$.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(ie,{errors:[p.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(ae,{children:[(0,$.jsx)(oe,{disabled:r,children:`Cancel`}),(0,$.jsx)(Y,{disabled:r,onClick:v,children:Ge(a,r)})]})]})})}function Be(e){let t=(0,Te.c)(54),{form:n,index:r,onRemove:i}=e,a,o,s,h,g,_,v,y,b,x;if(t[0]!==n||t[1]!==r||t[2]!==i){let e=n.watch(`conditions.${r}.field`);s=n.formState.errors.conditions?.[r],y=`space-y-2 rounded-md border p-3`;let S=`rule-cond-${r}-field`,C;t[13]===S?C=t[14]:(C=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:S,children:`Type`})}),t[13]=S,t[14]=C);let w=`conditions.${r}.field`,T;t[15]===r?T=t[16]:(T=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(d,{className:`w-full`,id:`rule-cond-${r}-field`,children:(0,$.jsx)(c,{})}),(0,$.jsxs)(u,{children:[(0,$.jsx)(l,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(l,{value:`host-header`,children:`Host header`}),(0,$.jsx)(l,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(l,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(l,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(l,{value:`query-string`,children:`Query string`})]})]})},t[15]=r,t[16]=T);let E;t[17]!==n.control||t[18]!==w||t[19]!==T?(E=(0,$.jsx)(re,{control:n.control,name:w,render:T}),t[17]=n.control,t[18]=w,t[19]=T,t[20]=E):E=t[20];let O;t[21]!==E||t[22]!==C?(O=(0,$.jsxs)(`div`,{className:`flex-1`,children:[C,E]}),t[21]=E,t[22]=C,t[23]=O):O=t[23];let k;t[24]!==r||t[25]!==i?(k=i&&(0,$.jsx)(m,{"aria-label":`Remove condition ${r+1}`,className:`self-end`,onClick:i,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})}),t[24]=r,t[25]=i,t[26]=k):k=t[26],t[27]!==O||t[28]!==k?(b=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[O,k]}),t[27]=O,t[28]=k,t[29]=b):b=t[29],x=e===`http-header`&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${r}-hdr-name`,children:`Header name`})}),(0,$.jsx)(D,{"aria-invalid":!!s?.httpHeaderName,id:`rule-cond-${r}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${r}.httpHeaderName`)}),(0,$.jsx)(ie,{errors:[s?.httpHeaderName]})]}),o=G;let A=`rule-cond-${r}-values`,j;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=j):j=t[30],t[31]===A?v=t[32]:(v=(0,$.jsx)(W,{children:(0,$.jsxs)(`label`,{htmlFor:A,children:[`Values`,` `,j]})}),t[31]=A,t[32]=v),a=D,h=!!s?.rawValues,g=`rule-cond-${r}-values`,_=Ve(e),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=h,t[7]=g,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x}else a=t[3],o=t[4],s=t[5],h=t[6],g=t[7],_=t[8],v=t[9],y=t[10],b=t[11],x=t[12];let S;t[33]!==n||t[34]!==r?(S=n.register(`conditions.${r}.rawValues`),t[33]=n,t[34]=r,t[35]=S):S=t[35];let C;t[36]!==a||t[37]!==h||t[38]!==g||t[39]!==_||t[40]!==S?(C=(0,$.jsx)(a,{"aria-invalid":h,id:g,placeholder:_,...S}),t[36]=a,t[37]=h,t[38]=g,t[39]=_,t[40]=S,t[41]=C):C=t[41];let w=s?.rawValues,T;t[42]===w?T=t[43]:(T=(0,$.jsx)(ie,{errors:[w]}),t[42]=w,t[43]=T);let E;t[44]!==o||t[45]!==T||t[46]!==v||t[47]!==C?(E=(0,$.jsxs)(o,{children:[v,C,T]}),t[44]=o,t[45]=T,t[46]=v,t[47]=C,t[48]=E):E=t[48];let O;return t[49]!==E||t[50]!==y||t[51]!==b||t[52]!==x?(O=(0,$.jsxs)(`div`,{className:y,children:[b,x,E]}),t[49]=E,t[50]=y,t[51]=b,t[52]=x,t[53]=O):O=t[53],O}function Ve(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var He=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function Ue(e){return e!==void 0&&He.has(e)}function We(e){let t=Ie(e);return{field:Ue(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function Ge(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ke(e){return{protocol:me(e),port:80,defaultTargetGroupArn:``}}function qe(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function Je({loadBalancerArn:e,vpcId:t,lbType:n}){let r=de(n),{data:a}=i(ee(e)),{data:o}=i(L),{data:s}=i(M),{data:c}=i(P),l=T(),u=_(),d=E(),[f,h]=(0,Q.useState)(!1),[g,v]=(0,Q.useState)(),[y,b]=(0,Q.useState)(),[x,S]=(0,Q.useState)(),C=a.Listeners??[],w=o.TargetGroups??[],D=w.filter(e=>e.VpcId===t),O=s.CertificateSummaryList??[],k=c.SslPolicies??[],A=new Map;for(let e of w)e.TargetGroupArn&&e.TargetGroupName&&A.set(e.TargetGroupArn,e.TargetGroupName);let j=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=A.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[l.error&&(0,$.jsx)(H,{error:l.error,msg:`Failed to create listener`}),d.error&&(0,$.jsx)(H,{error:d.error,msg:`Failed to modify listener`}),u.error&&(0,$.jsx)(H,{error:u.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[C.length,` listener`,C.length===1?``:`s`]}),(0,$.jsx)(m,{onClick:()=>h(!0),size:`sm`,children:`Add listener`})]}),C.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:C.map(e=>{let t=e.ListenerArn??``,n=x===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:qe(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:j(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(m,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>S(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(m,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>v(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(m,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>b(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Pe,{listenerArn:t,targetGroups:D})})})]},t)})})]})}),(0,$.jsx)(Ye,{certificates:O,isPending:l.isPending,lbType:n,onOpenChange:h,onSubmit:async t=>{try{await l.mutateAsync({loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),h(!1)}catch{}},open:f,protocols:r,sslPolicies:k,targetGroups:D}),(0,$.jsx)(Xe,{certificates:O,isPending:d.isPending,listener:g,onOpenChange:e=>!e&&v(void 0),onSubmit:async t=>{if(g?.ListenerArn)try{await d.mutateAsync({listenerArn:g.ListenerArn,loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),v(void 0)}catch{}},protocols:r,sslPolicies:k,targetGroups:D}),(0,$.jsx)(le,{description:y?`Delete listener ${y.Protocol}:${y.Port}? This cannot be undone.`:``,isPending:u.isPending,onConfirm:async()=>{if(y?.ListenerArn)try{await u.mutateAsync(y.ListenerArn)}finally{b(void 0)}},onOpenChange:e=>!e&&b(void 0),open:y!==void 0,title:`Delete listener`})]})}function Ye(e){let t=(0,Te.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=V(pe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ke(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=z(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ke(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Add listener`}),(0,$.jsx)(K,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(ke,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(oe,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(Y,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(ae,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(ce,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Xe(e){let t=(0,Te.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:V(pe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=z(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=he(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Edit listener`}),(0,$.jsx)(K,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(ke,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(Y,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(ae,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(ce,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Ze(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Qe(e){let t=(0,Te.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,h;t[3]===l?h=t[4]:(h=()=>d(l),t[3]=l,t[4]=h);let g=h,_;t[5]!==l||t[6]!==u?(_=Ze(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===o?x=t[14]:(x=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=x);let S;t[15]!==v||t[16]!==s?(S=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=v,t[16]=s,t[17]=S):S=t[17];let C;t[18]!==n||t[19]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=C):C=t[20];let w;t[21]===y?w=t[22]:(w=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=y,t[22]=w);let T;t[23]!==C||t[24]!==w?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=v?`Unsaved changes`:`No changes`,D;t[26]===E?D=t[27]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[26]=E,t[27]=D);let O=a||!v,k;t[28]!==g||t[29]!==O?(k=(0,$.jsx)(m,{disabled:O,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=g,t[29]=O,t[30]=k):k=t[30];let A=a||!v||y,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(m,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==D||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,k,M]}),t[34]=D,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==T||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,N]}),t[38]=T,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==b||t[43]!==x||t[44]!==S?(F=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,P]}),t[41]=P,t[42]=b,t[43]=x,t[44]=S,t[45]=F):F=t[45],F}function $e(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function et(e){let t=o(e.Tags),n=e.AvailabilityZone?` · ${e.AvailabilityZone}`:``,r=e.CidrBlock?` (${e.CidrBlock})`:``;return`${e.SubnetId}${t?` — ${t}`:``}${r}${n}`}function tt(e){let t=(0,Te.c)(47),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,h;t[3]===l?h=t[4]:(h=()=>d(l),t[3]=l,t[4]=h);let g=h,_;t[5]!==l||t[6]!==u?(_=$e(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-amber-500 bg-amber-500/10 p-3 text-sm text-amber-700 dark:text-amber-400`,role:`note`,children:`Applying a subnet change re-homes the load balancer by relaunching its underlying system VM. Expect a brief data-plane interruption while it restarts.`}),t[13]=x):x=t[13];let S;t[14]===o?S=t[15]:(S=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update subnets`}),t[14]=o,t[15]=S);let C;t[16]!==v||t[17]!==s?(C=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Subnets updated.`}),t[16]=v,t[17]=s,t[18]=C):C=t[18];let w;t[19]!==n||t[20]!==u?(w=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnets in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:u.includes(e.SubnetId??``),onChange:()=>p(e.SubnetId??``),type:`checkbox`}),(0,$.jsx)(`span`,{className:`font-mono`,children:et(e)})]},e.SubnetId)),t[19]=n,t[20]=u,t[21]=w):w=t[21];let T;t[22]===y?T=t[23]:(T=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one subnet is required.`}),t[22]=y,t[23]=T);let E;t[24]!==T||t[25]!==w?(E=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[w,T]}),t[24]=T,t[25]=w,t[26]=E):E=t[26];let D=v?`Unsaved changes`:`No changes`,O;t[27]===D?O=t[28]:(O=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:D}),t[27]=D,t[28]=O);let k=a||!v,A;t[29]!==g||t[30]!==k?(A=(0,$.jsx)(m,{disabled:k,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[29]=g,t[30]=k,t[31]=A):A=t[31];let j=a||!v||y,M=a?`Saving…`:`Save changes`,N;t[32]!==j||t[33]!==M?(N=(0,$.jsx)(m,{disabled:j,size:`sm`,type:`submit`,children:M}),t[32]=j,t[33]=M,t[34]=N):N=t[34];let P;t[35]!==O||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[O,A,N]}),t[35]=O,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]!==E||t[40]!==P?(F=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[E,P]}),t[39]=E,t[40]=P,t[41]=F):F=t[41];let I;return t[42]!==F||t[43]!==b||t[44]!==S||t[45]!==C?(I=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,C,F]}),t[42]=F,t[43]=b,t[44]=S,t[45]=C,t[46]=I):I=t[46],I}function nt({arn:e}){let t=O(),{data:n}=i(N(e)),{data:r}=i(k(e)),{data:c}=i(j([e])),{data:l}=i(I),{data:u}=i(te),d=S(),f=v(),h=g(),_=x(),y=b(),[C,w]=(0,Q.useState)(!1),T=n.LoadBalancers?.[0];if(!T?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let E=async()=>{try{await d.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{w(!1)}},D=l.Subnets??[],A=e=>{let t=D.find(t=>t.SubnetId===e);if(!t)return e;let n=o(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},M=r.Attributes??[],P=c?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[],F=(T.SecurityGroups??[]).filter(e=>e!==void 0),ee=(u.SecurityGroups??[]).filter(e=>e.VpcId===T.VpcId),L=D.filter(e=>e.VpcId===T.VpcId),R=(T.AvailabilityZones??[]).map(e=>e.SubnetId).filter(e=>e!==void 0),ne=T.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),d.error&&(0,$.jsx)(H,{error:d.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(U,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(m,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(p,{className:`size-4`}),`Delete`]}),(0,$.jsx)(ue,{state:T.State?.Code})]}),subtitle:`Load Balancer Details`,title:T.LoadBalancerName??T.LoadBalancerArn}),(0,$.jsxs)(Ce,{defaultValue:`overview`,children:[(0,$.jsxs)(xe,{children:[(0,$.jsx)(be,{value:`overview`,children:`Overview`}),(0,$.jsx)(be,{value:`listeners`,children:`Listeners`}),(0,$.jsx)(be,{value:`subnets`,children:`Subnets`}),!ne&&(0,$.jsx)(be,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(be,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(be,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(Se,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:T.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:T.DNSName}),(0,$.jsx)(Z,{label:`State`,value:T.State?.Reason?`${T.State.Code} — ${T.State.Reason}`:T.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:T.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:T.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:T.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:T.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:a(T.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(T.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?A(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(T.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(T.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(Se,{value:`listeners`,children:(0,$.jsx)(Je,{lbType:ne?`network`:`application`,loadBalancerArn:e,vpcId:T.VpcId})}),(0,$.jsx)(Se,{value:`subnets`,children:(0,$.jsx)(tt,{available:L,current:R,error:y.error,isPending:y.isPending,isSuccess:y.isSuccess,onSubmit:t=>y.mutate({loadBalancerArn:e,subnetIds:t})})}),!ne&&(0,$.jsx)(Se,{value:`security-groups`,children:(0,$.jsx)(Qe,{available:ee,current:F,error:_.error,isPending:_.isPending,isSuccess:_.isSuccess,onSubmit:t=>_.mutate({loadBalancerArn:e,securityGroupIds:t})})}),(0,$.jsx)(Se,{value:`attributes`,children:(0,$.jsx)(_e,{attributes:M,error:f.error,isPending:f.isPending,isSuccess:f.isSuccess,onSubmit:t=>{f.mutate({loadBalancerArn:e,attributes:t})},specs:ve})}),(0,$.jsx)(Se,{value:`tags`,children:(0,$.jsx)(ye,{error:h.error,isPending:h.isPending,isSuccess:h.isSuccess,onSubmit:t=>h.mutate({resourceArn:e,tags:t,initialKeys:P.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:P})})]})]}),(0,$.jsx)(le,{description:`Are you sure you want to delete load balancer "${T.LoadBalancerName??T.LoadBalancerArn}"? This action cannot be undone.`,isPending:d.isPending,onConfirm:E,onOpenChange:w,open:C,title:`Delete load balancer`})]})}function rt(){let e=(0,Te.c)(2),{id:t}=F.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(nt,{arn:n}),e[0]=n,e[1]=r),r}export{rt as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js index e18dc320b..57e8fe2d3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{E as l}from"./ec2.js";import{Wt as u,l as d,vi as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=d.useParams(),t=f(),{data:n}=r(u(e)),x=l(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=a(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(p,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{E as l}from"./ec2.js";import{$t as u,Di as d,l as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=d(),{data:n}=r(u(e)),x=l(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=a(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(p,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js index 466532b25..735a6cc13 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{D as c}from"./ec2.js";import{Kt as l,u,vi as d,zt as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=u.useParams(),t=d(),{data:n}=r(l(e)),{data:x}=r(f),S=c(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(s,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:T.State})]}),subtitle:`Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),t({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{D as c}from"./ec2.js";import{Di as l,Jt as u,tn as d,u as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=l(),{data:n}=r(d(e)),{data:x}=r(u),S=c(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(s,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:T.State})]}),subtitle:`Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),t({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js index 40ade361f..c375e9eba 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{B as m,O as h,g as ee,i as te,k as ne}from"./ec2.js";import{Gt as re,Vt as g,Yt as ie,d as _,nn as v,vi as y,xr as ae}from"./index.js";import{a as oe,i as b,n as x,t as S}from"./zod.js";import{t as C}from"./error-banner.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{l as O,r as k}from"./ec22.js";import{t as A}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=_.useParams(),t=y(),{data:n}=r(ie(e)),{data:I}=r(g),{data:L}=r(re),{data:R}=r(v),z=ne(),B=ee(),V=h(),H=te(),U=m(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=b({resolver:S(O),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=oe({control:q.control,name:`targetType`}),J=b({resolver:S(k),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=a(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(C,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(w,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(p,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(f,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(p,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(C,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(ae,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(E,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(x,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(u,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(s,{})}),(0,P.jsxs)(l,{children:[(0,P.jsx)(c,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(c,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(x,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(s,{placeholder:`Select target`})}),(0,P.jsx)(l,{children:ce===`igw`?le.map(e=>(0,P.jsx)(c,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(c,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(E,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(p,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(i,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(p,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(C,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(x,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(s,{placeholder:`Select a subnet`})}),(0,P.jsx)(l,{children:fe.map(e=>{let t=a(e.Tags);return(0,P.jsx)(c,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(E,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(p,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(A,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{B as m,O as h,g as ee,i as te,k as ne}from"./ec2.js";import{Ar as re,Di as g,Xt as ie,d as _,dn as v,en as y,in as ae}from"./index.js";import{a as oe,i as b,n as x,t as S}from"./zod.js";import{t as C}from"./error-banner.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{l as O,r as k}from"./ec22.js";import{t as A}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=_.useParams(),t=g(),{data:n}=r(ae(e)),{data:I}=r(ie),{data:L}=r(y),{data:R}=r(v),z=ne(),B=ee(),V=h(),H=te(),U=m(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=b({resolver:S(O),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=oe({control:q.control,name:`targetType`}),J=b({resolver:S(k),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=a(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(C,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(w,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(p,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(f,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(p,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(C,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(re,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(E,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(x,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(u,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(s,{})}),(0,P.jsxs)(l,{children:[(0,P.jsx)(c,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(c,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(x,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(s,{placeholder:`Select target`})}),(0,P.jsx)(l,{children:ce===`igw`?le.map(e=>(0,P.jsx)(c,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(c,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(E,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(p,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(i,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(p,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(C,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(x,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(s,{placeholder:`Select a subnet`})}),(0,P.jsx)(l,{children:fe.map(e=>{let t=a(e.Tags);return(0,P.jsx)(c,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(E,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(p,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(A,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js index aa458d82b..e15d4a6c0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{m as l,t as u,x as d}from"./iam.js";import{C as f,Et as p,vi as m,yt as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=f.useParams(),t=m(),{data:n}=r(h(e)),{data:C}=r(p),w=l(),T=u(),E=d(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(g,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(g,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(g,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(c,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:a(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(c,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(i,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(c,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{D as l,h as u,t as d}from"./iam.js";import{At as f,C as p,Di as m,xt as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=p.useParams(),t=m(),{data:n}=r(h(e)),{data:C}=r(f),w=u(),T=d(),E=l(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(g,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(g,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(g,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(c,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:a(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(c,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(i,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(c,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js index 401fbf5f4..7e3342e33 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Rt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{h as c}from"./iam.js";import{Ct as l,vi as u,w as d,wt as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./policy-document-viewer.js";var y=t(n()),b=e();function x(){let{policyArn:e}=d.useParams(),t=decodeURIComponent(e),n=u(),{data:x}=r(l(t)),S=x.Policy,C=c(),[w,T]=(0,y.useState)(!1),{data:E}=r(f(t,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(p,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(s,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:i(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Rt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{g as c}from"./iam.js";import{Di as l,Et as u,Tt as d,w as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./policy-document-viewer.js";var y=t(n()),b=e();function x(){let{policyArn:e}=f.useParams(),t=decodeURIComponent(e),n=l(),{data:x}=r(d(t)),S=x.Policy,C=c(),[w,T]=(0,y.useState)(!1),{data:E}=r(u(t,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(p,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(s,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:i(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js index 4a32dec41..c25b0fa99 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{g as l,i as u,y as d}from"./iam.js";import{St as f,T as p,Tt as m,bt as h,mt as g,vi as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";var w=t(n()),T=e();function E(){let{roleName:e}=p.useParams(),t=_(),{data:n}=r(m(e)),{data:E}=r(g(e)),{data:D}=r(h(e)),{data:O}=r(f),k=l(),A=u(),j=d(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=n.Role,z=E.AttachedPolicies??[],B=D.InstanceProfiles??[],V=O.Policies??[],H=new Set(z.map(e=>e.PolicyArn)),U=V.filter(e=>e.Arn&&!H.has(e.Arn)),W=R?.AssumeRolePolicyDocument?decodeURIComponent(R.AssumeRolePolicyDocument):null,G=async()=>{try{await k.mutateAsync(e),t({to:`/iam/list-roles`})}finally{N(!1)}},K=async t=>{await A.mutateAsync({roleName:e,policyArn:t}),F(!1)},q=async t=>{L(t);try{await j.mutateAsync({roleName:e,policyArn:t})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(v,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(v,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(v,{error:j.error,msg:`Failed to detach policy`}),(0,T.jsxs)(`div`,{className:`space-y-6`,children:[(0,T.jsx)(y,{actions:(0,T.jsxs)(c,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:R.RoleName??``}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Role Information`}),(0,T.jsxs)(x.Content,{children:[(0,T.jsx)(S,{label:`Role Name`,value:R.RoleName}),(0,T.jsx)(S,{label:`Role ID`,value:R.RoleId}),(0,T.jsx)(S,{label:`ARN`,value:R.Arn}),(0,T.jsx)(S,{label:`Path`,value:R.Path}),(0,T.jsx)(S,{label:`Description`,value:R.Description??`-`}),(0,T.jsx)(S,{label:`Created`,value:a(R.CreateDate)})]})]}),W&&(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Trust Policy`}),(0,T.jsx)(`div`,{className:`p-4`,children:(0,T.jsx)(C,{document:W})})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsx)(`span`,{children:`Attached Policies`}),(0,T.jsx)(c,{onClick:()=>F(!P),size:`sm`,children:`Attach Policy`})]})}),(0,T.jsxs)(x.Content,{children:[P&&U.length>0&&(0,T.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,T.jsx)(`div`,{className:`space-y-1`,children:U.map(e=>(0,T.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&K(e.Arn)},type:`button`,children:[(0,T.jsx)(`span`,{children:e.PolicyName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),P&&U.length===0&&(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),z.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:z.map(e=>(0,T.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,T.jsxs)(`div`,{className:`space-y-1`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,T.jsx)(c,{disabled:I===e.PolicyArn,onClick:()=>{e.PolicyArn&&q(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Instance Profiles`}),(0,T.jsx)(x.Content,{children:B.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,T.jsxs)(i,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,T.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:k.isPending,onConfirm:G,onOpenChange:N,open:M,title:`Delete Role`})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{E as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{Rt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{S as l,_ as u,i as d}from"./iam.js";import{Di as f,St as p,T as m,kt as h,mt as g,wt as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";import{t as w}from"./inline-policies-panel.js";var T=t(n()),E=e();function D(){let{roleName:e}=m.useParams(),t=f(),{data:n}=r(h(e)),{data:D}=r(g(e)),{data:O}=r(p(e)),{data:k}=r(_),A=u(),j=d(),M=l(),[N,P]=(0,T.useState)(!1),[F,I]=(0,T.useState)(!1),[L,R]=(0,T.useState)(null),z=n.Role,B=D.AttachedPolicies??[],V=O.InstanceProfiles??[],H=k.Policies??[],U=new Set(B.map(e=>e.PolicyArn)),W=H.filter(e=>e.Arn&&!U.has(e.Arn)),G=z?.AssumeRolePolicyDocument?decodeURIComponent(z.AssumeRolePolicyDocument):null,K=async()=>{try{await A.mutateAsync(e),t({to:`/iam/list-roles`})}finally{P(!1)}},q=async t=>{await j.mutateAsync({roleName:e,policyArn:t}),I(!1)},J=async t=>{R(t);try{await M.mutateAsync({roleName:e,policyArn:t})}finally{R(null)}};return z?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),A.error&&(0,E.jsx)(v,{error:A.error,msg:`Failed to delete role`}),j.error&&(0,E.jsx)(v,{error:j.error,msg:`Failed to attach policy`}),M.error&&(0,E.jsx)(v,{error:M.error,msg:`Failed to detach policy`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(y,{actions:(0,E.jsxs)(c,{onClick:()=>P(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:z.RoleName??``}),(0,E.jsxs)(x,{children:[(0,E.jsx)(x.Header,{children:`Role Information`}),(0,E.jsxs)(x.Content,{children:[(0,E.jsx)(S,{label:`Role Name`,value:z.RoleName}),(0,E.jsx)(S,{label:`Role ID`,value:z.RoleId}),(0,E.jsx)(S,{label:`ARN`,value:z.Arn}),(0,E.jsx)(S,{label:`Path`,value:z.Path}),(0,E.jsx)(S,{label:`Description`,value:z.Description??`-`}),(0,E.jsx)(S,{label:`Created`,value:a(z.CreateDate)})]})]}),G&&(0,E.jsxs)(x,{children:[(0,E.jsx)(x.Header,{children:`Trust Policy`}),(0,E.jsx)(`div`,{className:`p-4`,children:(0,E.jsx)(C,{document:G})})]}),(0,E.jsxs)(x,{children:[(0,E.jsx)(x.Header,{children:(0,E.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,E.jsx)(`span`,{children:`Attached Policies`}),(0,E.jsx)(c,{onClick:()=>I(!F),size:`sm`,children:`Attach Policy`})]})}),(0,E.jsxs)(x.Content,{children:[F&&W.length>0&&(0,E.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,E.jsx)(`div`,{className:`space-y-1`,children:W.map(e=>(0,E.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:j.isPending,onClick:()=>{e.Arn&&q(e.Arn)},type:`button`,children:[(0,E.jsx)(`span`,{children:e.PolicyName}),(0,E.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),F&&W.length===0&&(0,E.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),B.length>0?(0,E.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,E.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,E.jsxs)(`div`,{className:`space-y-1`,children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,E.jsx)(c,{disabled:L===e.PolicyArn,onClick:()=>{e.PolicyArn&&J(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,E.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,E.jsx)(w,{kind:`role`,name:e}),(0,E.jsxs)(x,{children:[(0,E.jsx)(x.Header,{children:`Instance Profiles`}),(0,E.jsx)(x.Content,{children:V.length>0?(0,E.jsx)(`div`,{className:`col-span-2 space-y-3`,children:V.map(e=>(0,E.jsxs)(i,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,E.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,E.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,E.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:A.isPending,onConfirm:K,onOpenChange:P,open:N,title:`Delete Role`})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{D as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_serviceName.js b/spinifex/services/spinifexui/frontend/dist/assets/_serviceName.js index 5f8093cdb..4a960cfdc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_serviceName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_serviceName.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./back-link.js";import{ct as a,dt as o,t as s}from"./index.js";import{t as c}from"./page-heading.js";import{n as l,t as u}from"./detail-row.js";import{t as d}from"./state-badge.js";var f=t(),p=e();function m(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function h(e,t){return(e.attachments??[]).find(e=>e.type===`ElasticNetworkInterface`)?.details?.find(e=>e.name===t)?.value}function g(e){let t=(0,f.c)(69),{clusterName:s,serviceName:g}=e,b;t[0]===s?b=t[1]:(b=a(s),t[0]=s,t[1]=b);let{data:x}=n(b),S;t[2]===s?S=t[3]:(S=o(s),t[2]=s,t[3]=S);let{data:C}=n(S),w,T,E,D,O,k,A,j,M,N;if(t[4]!==s||t[5]!==g||t[6]!==x||t[7]!==C){E=Symbol.for(`react.early_return_sentinel`);bb0:{let e;t[18]===g?e=t[19]:(e=e=>e.serviceName===g,t[18]=g,t[19]=e);let n=x.find(e);if(!n){let e;t[20]===s?e=t[21]:(e={clusterName:s},t[20]=s,t[21]=e);let n;t[22]!==s||t[23]!==e?(n=(0,p.jsx)(i,{params:e,to:`/ecs/list-clusters/$clusterName`,children:s}),t[22]=s,t[23]=e,t[24]=n):n=t[24];let r;t[25]===g?r=t[26]:(r=(0,p.jsx)(c,{subtitle:`Service Details`,title:g}),t[25]=g,t[26]=r);let a;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`Service not found.`}),t[27]=a):a=t[27];let o;t[28]!==n||t[29]!==r?(o=(0,p.jsxs)(p.Fragment,{children:[n,r,a]}),t[28]=n,t[29]=r,t[30]=o):o=t[30],E=o;break bb0}let a=n.loadBalancers??[],o;t[31]===g?o=t[32]:(o=e=>e.group===`service:${g}`,t[31]=g,t[32]=o);let f=C.filter(o),b=n.deployments??[],S=n.events??[],P;t[33]===s?P=t[34]:(P={clusterName:s},t[33]=s,t[34]=P),t[35]!==s||t[36]!==P?(A=(0,p.jsx)(i,{params:P,to:`/ecs/list-clusters/$clusterName`,children:s}),t[35]=s,t[36]=P,t[37]=A):A=t[37],j=(0,p.jsx)(c,{actions:(0,p.jsx)(d,{state:n.status}),subtitle:`Service Details`,title:g});let F;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,p.jsx)(l.Header,{children:`Configuration`}),t[38]=F):F=t[38];let I=String(n.desiredCount??0),L;t[39]===I?L=t[40]:(L=(0,p.jsx)(u,{label:`Desired count`,value:I}),t[39]=I,t[40]=L);let R=String(n.runningCount??0),z;t[41]===R?z=t[42]:(z=(0,p.jsx)(u,{label:`Running count`,value:R}),t[41]=R,t[42]=z);let B=String(n.pendingCount??0),V;t[43]===B?V=t[44]:(V=(0,p.jsx)(u,{label:`Pending count`,value:B}),t[43]=B,t[44]=V);let H=(0,p.jsxs)(l.Content,{children:[(0,p.jsx)(u,{label:`Status`,value:(0,p.jsx)(d,{state:n.status})}),L,z,V,(0,p.jsx)(u,{label:`Task definition`,value:m(n.taskDefinition)}),(0,p.jsx)(u,{label:`Launch type`,value:n.launchType}),(0,p.jsx)(u,{label:`Scheduling strategy`,value:n.schedulingStrategy})]});t[45]===H?M=t[46]:(M=(0,p.jsxs)(l,{children:[F,H]}),t[45]=H,t[46]=M);let U;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Load balancers`}),t[47]=U):U=t[47];let W=a.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`None`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Group`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Container`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`})]})}),(0,p.jsx)(`tbody`,{children:a.map(y)})]})});t[48]===W?N=t[49]:(N=(0,p.jsxs)(`div`,{className:`mt-6`,children:[U,W]}),t[48]=W,t[49]=N);let G;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Tasks`}),t[50]=G):G=t[50];let K=f.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`No tasks found.`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Last Status`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Private IP`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Public IP`})]})}),(0,p.jsx)(`tbody`,{children:f.map(e=>{let t=m(e.taskArn);return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:(0,p.jsx)(r,{className:`underline`,params:{clusterName:s,taskId:t},to:`/ecs/list-clusters/$clusterName/tasks/$taskId`,children:t})}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:(0,p.jsx)(d,{state:e.lastStatus})}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:h(e,`privateIPv4Address`)??`—`}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:h(e,`publicIPv4Address`)??`—`})]},t)})})]})});t[51]===K?w=t[52]:(w=(0,p.jsxs)(`div`,{className:`mt-6`,children:[G,K]}),t[51]=K,t[52]=w);let q;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Deployments`}),t[53]=q):q=t[53];let J=b.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`None`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task Definition`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`})]})}),(0,p.jsx)(`tbody`,{children:b.map(v)})]})});t[54]===J?T=t[55]:(T=(0,p.jsxs)(`div`,{className:`mt-6`,children:[q,J]}),t[54]=J,t[55]=T),D=`mt-6`,t[56]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Events`}),t[56]=O):O=t[56],k=S.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`None`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Time`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Message`})]})}),(0,p.jsx)(`tbody`,{children:S.map(_)})]})})}t[4]=s,t[5]=g,t[6]=x,t[7]=C,t[8]=w,t[9]=T,t[10]=E,t[11]=D,t[12]=O,t[13]=k,t[14]=A,t[15]=j,t[16]=M,t[17]=N}else w=t[8],T=t[9],E=t[10],D=t[11],O=t[12],k=t[13],A=t[14],j=t[15],M=t[16],N=t[17];if(E!==Symbol.for(`react.early_return_sentinel`))return E;let P;t[57]!==D||t[58]!==O||t[59]!==k?(P=(0,p.jsxs)(`div`,{className:D,children:[O,k]}),t[57]=D,t[58]=O,t[59]=k,t[60]=P):P=t[60];let F;return t[61]!==w||t[62]!==T||t[63]!==P||t[64]!==A||t[65]!==j||t[66]!==M||t[67]!==N?(F=(0,p.jsxs)(p.Fragment,{children:[A,j,M,N,w,T,P]}),t[61]=w,t[62]=T,t[63]=P,t[64]=A,t[65]=j,t[66]=M,t[67]=N,t[68]=F):F=t[68],F}function _(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.createdAt?new Date(e.createdAt).toISOString():``}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.message})]},e.id)}function v(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.status}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:m(e.taskDefinition)}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredCount??0}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.runningCount??0}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingCount??0})]},e.id)}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:m(e.targetGroupArn)}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.containerName}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.containerPort})]},`${e.targetGroupArn??``}-${e.containerName??``}-${e.containerPort??``}`)}function b(){let e=(0,f.c)(3),{clusterName:t,serviceName:n}=s.useParams(),r;return e[0]!==t||e[1]!==n?(r=(0,p.jsx)(g,{clusterName:t,serviceName:n}),e[0]=t,e[1]=n,e[2]=r):r=e[2],r}export{b as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./back-link.js";import{ct as a,dt as o,t as s}from"./index.js";import{t as c}from"./page-heading.js";import{n as l,t as u}from"./detail-row.js";import{t as d}from"./state-badge.js";var f=t(),p=e();function m(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function h(e,t){return(e.attachments??[]).find(e=>e.type===`ElasticNetworkInterface`)?.details?.find(e=>e.name===t)?.value}function g(e){let t=(0,f.c)(69),{clusterName:s,serviceName:g}=e,b;t[0]===s?b=t[1]:(b=a(s),t[0]=s,t[1]=b);let{data:x}=n(b),S;t[2]===s?S=t[3]:(S=o(s),t[2]=s,t[3]=S);let{data:C}=n(S),w,T,E,D,O,k,A,j,M,N;if(t[4]!==s||t[5]!==g||t[6]!==x||t[7]!==C){E=Symbol.for(`react.early_return_sentinel`);bb0:{let e;t[18]===g?e=t[19]:(e=e=>e.serviceName===g,t[18]=g,t[19]=e);let n=x.find(e);if(!n){let e;t[20]===s?e=t[21]:(e={clusterName:s},t[20]=s,t[21]=e);let n;t[22]!==s||t[23]!==e?(n=(0,p.jsx)(i,{params:e,to:`/ecs/list-clusters/$clusterName`,children:s}),t[22]=s,t[23]=e,t[24]=n):n=t[24];let r;t[25]===g?r=t[26]:(r=(0,p.jsx)(c,{subtitle:`Service Details`,title:g}),t[25]=g,t[26]=r);let a;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`Service not found.`}),t[27]=a):a=t[27];let o;t[28]!==n||t[29]!==r?(o=(0,p.jsxs)(p.Fragment,{children:[n,r,a]}),t[28]=n,t[29]=r,t[30]=o):o=t[30],E=o;break bb0}let a=n.loadBalancers??[],o;t[31]===g?o=t[32]:(o=e=>e.group===`service:${g}`,t[31]=g,t[32]=o);let f=C.filter(o),b=n.deployments??[],S=n.events??[],P;t[33]===s?P=t[34]:(P={clusterName:s},t[33]=s,t[34]=P),t[35]!==s||t[36]!==P?(A=(0,p.jsx)(i,{params:P,to:`/ecs/list-clusters/$clusterName`,children:s}),t[35]=s,t[36]=P,t[37]=A):A=t[37],j=(0,p.jsx)(c,{actions:(0,p.jsx)(d,{state:n.status}),subtitle:`Service Details`,title:g});let F;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,p.jsx)(l.Header,{children:`Configuration`}),t[38]=F):F=t[38];let I=String(n.desiredCount??0),L;t[39]===I?L=t[40]:(L=(0,p.jsx)(u,{label:`Desired count`,value:I}),t[39]=I,t[40]=L);let R=String(n.runningCount??0),z;t[41]===R?z=t[42]:(z=(0,p.jsx)(u,{label:`Running count`,value:R}),t[41]=R,t[42]=z);let B=String(n.pendingCount??0),V;t[43]===B?V=t[44]:(V=(0,p.jsx)(u,{label:`Pending count`,value:B}),t[43]=B,t[44]=V);let H=(0,p.jsxs)(l.Content,{children:[(0,p.jsx)(u,{label:`Status`,value:(0,p.jsx)(d,{state:n.status})}),L,z,V,(0,p.jsx)(u,{label:`Task definition`,value:m(n.taskDefinition)}),(0,p.jsx)(u,{label:`Launch type`,value:n.launchType}),(0,p.jsx)(u,{label:`Scheduling strategy`,value:n.schedulingStrategy})]});t[45]===H?M=t[46]:(M=(0,p.jsxs)(l,{children:[F,H]}),t[45]=H,t[46]=M);let U;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Load balancers`}),t[47]=U):U=t[47];let W=a.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`None`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Group`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Container`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`})]})}),(0,p.jsx)(`tbody`,{children:a.map(y)})]})});t[48]===W?N=t[49]:(N=(0,p.jsxs)(`div`,{className:`mt-6`,children:[U,W]}),t[48]=W,t[49]=N);let G;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Tasks`}),t[50]=G):G=t[50];let K=f.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`No tasks found.`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Last Status`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Private IP`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Public IP`})]})}),(0,p.jsx)(`tbody`,{children:f.map(e=>{let t=m(e.taskArn);return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:(0,p.jsx)(r,{className:`underline`,params:{clusterName:s,taskId:t},to:`/ecs/list-clusters/$clusterName/tasks/$taskId`,children:t})}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:(0,p.jsx)(d,{state:e.lastStatus})}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:h(e,`privateIPv4Address`)??`—`}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:h(e,`publicIPv4Address`)??`—`})]},t)})})]})});t[51]===K?w=t[52]:(w=(0,p.jsxs)(`div`,{className:`mt-6`,children:[G,K]}),t[51]=K,t[52]=w);let q;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Deployments`}),t[53]=q):q=t[53];let J=b.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`None`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task Definition`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`})]})}),(0,p.jsx)(`tbody`,{children:b.map(v)})]})});t[54]===J?T=t[55]:(T=(0,p.jsxs)(`div`,{className:`mt-6`,children:[q,J]}),t[54]=J,t[55]=T),D=`mt-6`,t[56]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,p.jsx)(`h2`,{className:`mb-2 font-semibold`,children:`Events`}),t[56]=O):O=t[56],k=S.length===0?(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`None`}):(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Time`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Message`})]})}),(0,p.jsx)(`tbody`,{children:S.map(_)})]})})}t[4]=s,t[5]=g,t[6]=x,t[7]=C,t[8]=w,t[9]=T,t[10]=E,t[11]=D,t[12]=O,t[13]=k,t[14]=A,t[15]=j,t[16]=M,t[17]=N}else w=t[8],T=t[9],E=t[10],D=t[11],O=t[12],k=t[13],A=t[14],j=t[15],M=t[16],N=t[17];if(E!==Symbol.for(`react.early_return_sentinel`))return E;let P;t[57]!==D||t[58]!==O||t[59]!==k?(P=(0,p.jsxs)(`div`,{className:D,children:[O,k]}),t[57]=D,t[58]=O,t[59]=k,t[60]=P):P=t[60];let F;return t[61]!==w||t[62]!==T||t[63]!==P||t[64]!==A||t[65]!==j||t[66]!==M||t[67]!==N?(F=(0,p.jsxs)(p.Fragment,{children:[A,j,M,N,w,T,P]}),t[61]=w,t[62]=T,t[63]=P,t[64]=A,t[65]=j,t[66]=M,t[67]=N,t[68]=F):F=t[68],F}function _(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.createdAt?new Date(e.createdAt).toISOString():``}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.message})]},e.id)}function v(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.status}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:m(e.taskDefinition)}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredCount??0}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.runningCount??0}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingCount??0})]},e.id)}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:m(e.targetGroupArn)}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.containerName}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.containerPort})]},`${e.targetGroupArn??``}-${e.containerName??``}-${e.containerPort??``}`)}function b(){let e=(0,f.c)(3),{clusterName:t,serviceName:n}=s.useParams(),r;return e[0]!==t||e[1]!==n?(r=(0,p.jsx)(g,{clusterName:t,serviceName:n}),e[0]=t,e[1]=n,e[2]=r):r=e[2],r}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js index dc63b27b4..5e965bd5a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{xi as a}from"./awsClient.js";import{Rt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./check.js";import{t as l}from"./trash-2.js";import{t as u}from"./triangle-alert.js";import{t as d}from"./button.js";import{C as f,S as p,_ as m,a as h,b as g,f as _,o as v}from"./iam.js";import{Dt as y,E as b,St as x,_t as S,ft as C,ht as ee,vi as te}from"./index.js";import{t as w}from"./use-copy-to-clipboard.js";import{t as T}from"./error-banner.js";import{t as ne}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as re}from"./delete-confirmation-dialog.js";import{n as P,t as F}from"./detail-row.js";import{t as I}from"./state-badge.js";var L=t(n()),R=r(),z=e();function B(e){let t=(0,R.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=w(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,z.jsxs)(M,{children:[(0,z.jsx)(D,{children:(0,z.jsx)(u,{className:`text-destructive`})}),(0,z.jsx)(k,{children:`Save Your Access Key`}),(0,z.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=s):s=t[0];let l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=l):l=t[1];let f;t[2]===r?f=t[3]:(f=(0,z.jsxs)(`div`,{children:[l,r]}),t[2]=r,t[3]=f);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===i?m=t[6]:(m=(0,z.jsxs)(`div`,{children:[p,i]}),t[5]=i,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,z.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==r||t[11]!==o||t[12]!==i?(g=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=g):g=t[13];let _;t[14]===a?_=t[15]:(_=a?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(c,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,z.jsx)(d,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,z.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,z.jsx)(A,{children:(0,z.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,z.jsx)(N,{open:!0,children:(0,z.jsxs)(O,{className:`max-w-2xl`,children:[s,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function V(){let{userName:e}=b.useParams(),t=te(),{data:n}=i(y(e)),{data:r}=i(C(e)),{data:c}=i(ee(e)),{data:u}=i(x),{data:w}=i(S(e)),E=m(),D=v(),O=_(),k=f(),A=h(),j=g(),M=p(),[N,R]=(0,L.useState)(!1),[V,H]=(0,L.useState)(null),[U,W]=(0,L.useState)(!1),[G,K]=(0,L.useState)(null),[ie,q]=(0,L.useState)(null),[ae,J]=(0,L.useState)(null),Y=n.User,X=r.AccessKeyMetadata??[],Z=c.AttachedPolicies??[],oe=u.Policies??[],Q=w.Groups??[],se=new Set(Z.map(e=>e.PolicyArn)),$=oe.filter(e=>e.Arn&&!se.has(e.Arn)),ce=async()=>{try{await E.mutateAsync(e),t({to:`/iam/list-users`})}finally{R(!1)}},le=async()=>{let t=await D.mutateAsync(e);t.AccessKey&&H({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},ue=async t=>{if(t.AccessKeyId){K(t.AccessKeyId);try{await k.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{K(null)}}},de=async t=>{K(t);try{await O.mutateAsync({userName:e,accessKeyId:t})}finally{K(null)}},fe=async t=>{await A.mutateAsync({userName:e,policyArn:t}),W(!1)},pe=async t=>{q(t);try{await j.mutateAsync({userName:e,policyArn:t})}finally{q(null)}},me=async t=>{J(t);try{await M.mutateAsync({groupName:t,userName:e})}finally{J(null)}};return Y?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),E.error&&(0,z.jsx)(T,{error:E.error,msg:`Failed to delete user`}),D.error&&(0,z.jsx)(T,{error:D.error,msg:`Failed to create access key`}),O.error&&(0,z.jsx)(T,{error:O.error,msg:`Failed to delete access key`}),A.error&&(0,z.jsx)(T,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,z.jsx)(T,{error:j.error,msg:`Failed to detach policy`}),M.error&&(0,z.jsx)(T,{error:M.error,msg:`Failed to remove from group`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ne,{actions:(0,z.jsxs)(d,{onClick:()=>R(!0),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:Y.UserName??``}),(0,z.jsxs)(P,{children:[(0,z.jsx)(P.Header,{children:`User Information`}),(0,z.jsxs)(P.Content,{children:[(0,z.jsx)(F,{label:`User Name`,value:Y.UserName}),(0,z.jsx)(F,{label:`User ID`,value:Y.UserId}),(0,z.jsx)(F,{label:`ARN`,value:Y.Arn}),(0,z.jsx)(F,{label:`Path`,value:Y.Path}),(0,z.jsx)(F,{label:`Created`,value:o(Y.CreateDate)})]})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(P.Header,{children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(`span`,{children:`Access Keys`}),(0,z.jsx)(d,{disabled:D.isPending,onClick:le,size:`sm`,children:D.isPending?`Creating...`:`Create Access Key`})]})}),(0,z.jsx)(P.Content,{children:X.length>0?(0,z.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,z.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,o(e.CreateDate)]})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(I,{state:e.Status}),(0,z.jsx)(d,{disabled:G===e.AccessKeyId,onClick:async()=>await ue(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,z.jsx)(d,{disabled:G===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&de(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,z.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(P.Header,{children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(`span`,{children:`Attached Policies`}),(0,z.jsx)(d,{onClick:()=>W(!U),size:`sm`,children:`Attach Policy`})]})}),(0,z.jsxs)(P.Content,{children:[U&&$.length>0&&(0,z.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,z.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,z.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&fe(e.Arn)},type:`button`,children:[(0,z.jsx)(`span`,{children:e.PolicyName}),(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),U&&$.length===0&&(0,z.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),Z.length>0?(0,z.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Z.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,z.jsx)(d,{disabled:ie===e.PolicyArn,onClick:()=>{e.PolicyArn&&pe(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,z.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(P.Header,{children:`Groups`}),(0,z.jsx)(P.Content,{children:Q.length>0?(0,z.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Q.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,z.jsx)(a,{className:`text-sm font-medium hover:underline`,params:{groupName:e.GroupName??``},to:`/iam/list-groups/$groupName`,children:e.GroupName}),(0,z.jsx)(d,{disabled:ae===e.GroupName,onClick:()=>{e.GroupName&&me(e.GroupName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.GroupName))}):(0,z.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`Not a member of any group.`})})]})]}),(0,z.jsx)(re,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:E.isPending,onConfirm:ce,onOpenChange:R,open:N,title:`Delete User`}),V&&(0,z.jsx)(B,{accessKeyId:V.accessKeyId,onClose:()=>H(null),secretAccessKey:V.secretAccessKey})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{V as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ni as a}from"./awsClient.js";import{Rt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./check.js";import{t as l}from"./trash-2.js";import{t as u}from"./triangle-alert.js";import{t as d}from"./button.js";import{C as f,O as p,a as m,f as h,k as g,o as _,y as v}from"./iam.js";import{Di as y,E as b,Nt as x,ft as S,ht as ee,wt as te,yt as ne}from"./index.js";import{t as C}from"./use-copy-to-clipboard.js";import{t as w}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as re}from"./delete-confirmation-dialog.js";import{n as P,t as F}from"./detail-row.js";import{t as I}from"./state-badge.js";import{t as L}from"./inline-policies-panel.js";var R=t(n()),z=r(),B=e();function ie(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=C(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsxs)(M,{children:[(0,B.jsx)(D,{children:(0,B.jsx)(u,{className:`text-destructive`})}),(0,B.jsx)(k,{children:`Save Your Access Key`}),(0,B.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=s):s=t[0];let l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=l):l=t[1];let f;t[2]===r?f=t[3]:(f=(0,B.jsxs)(`div`,{children:[l,r]}),t[2]=r,t[3]=f);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===i?m=t[6]:(m=(0,B.jsxs)(`div`,{children:[p,i]}),t[5]=i,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==r||t[11]!==o||t[12]!==i?(g=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=g):g=t[13];let _;t[14]===a?_=t[15]:(_=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(d,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(A,{children:(0,B.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(N,{open:!0,children:(0,B.jsxs)(O,{className:`max-w-2xl`,children:[s,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function V(){let{userName:e}=b.useParams(),t=y(),{data:n}=i(x(e)),{data:r}=i(S(e)),{data:c}=i(ee(e)),{data:u}=i(te),{data:C}=i(ne(e)),E=v(),D=_(),O=h(),k=g(),A=m(),j=f(),M=p(),[N,z]=(0,R.useState)(!1),[V,H]=(0,R.useState)(null),[U,W]=(0,R.useState)(!1),[G,K]=(0,R.useState)(null),[ae,q]=(0,R.useState)(null),[oe,J]=(0,R.useState)(null),Y=n.User,X=r.AccessKeyMetadata??[],Z=c.AttachedPolicies??[],se=u.Policies??[],Q=C.Groups??[],ce=new Set(Z.map(e=>e.PolicyArn)),$=se.filter(e=>e.Arn&&!ce.has(e.Arn)),le=async()=>{try{await E.mutateAsync(e),t({to:`/iam/list-users`})}finally{z(!1)}},ue=async()=>{let t=await D.mutateAsync(e);t.AccessKey&&H({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},de=async t=>{if(t.AccessKeyId){K(t.AccessKeyId);try{await k.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{K(null)}}},fe=async t=>{K(t);try{await O.mutateAsync({userName:e,accessKeyId:t})}finally{K(null)}},pe=async t=>{await A.mutateAsync({userName:e,policyArn:t}),W(!1)},me=async t=>{q(t);try{await j.mutateAsync({userName:e,policyArn:t})}finally{q(null)}},he=async t=>{J(t);try{await M.mutateAsync({groupName:t,userName:e})}finally{J(null)}};return Y?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),E.error&&(0,B.jsx)(w,{error:E.error,msg:`Failed to delete user`}),D.error&&(0,B.jsx)(w,{error:D.error,msg:`Failed to create access key`}),O.error&&(0,B.jsx)(w,{error:O.error,msg:`Failed to delete access key`}),A.error&&(0,B.jsx)(w,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,B.jsx)(w,{error:j.error,msg:`Failed to detach policy`}),M.error&&(0,B.jsx)(w,{error:M.error,msg:`Failed to remove from group`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(d,{onClick:()=>z(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:Y.UserName??``}),(0,B.jsxs)(P,{children:[(0,B.jsx)(P.Header,{children:`User Information`}),(0,B.jsxs)(P.Content,{children:[(0,B.jsx)(F,{label:`User Name`,value:Y.UserName}),(0,B.jsx)(F,{label:`User ID`,value:Y.UserId}),(0,B.jsx)(F,{label:`ARN`,value:Y.Arn}),(0,B.jsx)(F,{label:`Path`,value:Y.Path}),(0,B.jsx)(F,{label:`Created`,value:o(Y.CreateDate)})]})]}),(0,B.jsxs)(P,{children:[(0,B.jsx)(P.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(d,{disabled:D.isPending,onClick:ue,size:`sm`,children:D.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(P.Content,{children:X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,o(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(I,{state:e.Status}),(0,B.jsx)(d,{disabled:G===e.AccessKeyId,onClick:async()=>await de(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(d,{disabled:G===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&fe(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(P,{children:[(0,B.jsx)(P.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(d,{onClick:()=>W(!U),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(P.Content,{children:[U&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&pe(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),U&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),Z.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Z.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(d,{disabled:ae===e.PolicyArn,onClick:()=>{e.PolicyArn&&me(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,B.jsx)(L,{kind:`user`,name:e}),(0,B.jsxs)(P,{children:[(0,B.jsx)(P.Header,{children:`Groups`}),(0,B.jsx)(P.Content,{children:Q.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Q.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsx)(a,{className:`text-sm font-medium hover:underline`,params:{groupName:e.GroupName??``},to:`/iam/list-groups/$groupName`,children:e.GroupName}),(0,B.jsx)(d,{disabled:oe===e.GroupName,onClick:()=>{e.GroupName&&he(e.GroupName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.GroupName))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`Not a member of any group.`})})]})]}),(0,B.jsx)(re,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:E.isPending,onConfirm:le,onOpenChange:z,open:N,title:`Delete User`}),V&&(0,B.jsx)(ie,{accessKeyId:V.accessKeyId,onClose:()=>H(null),secretAccessKey:V.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{V as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/admin.js b/spinifex/services/spinifexui/frontend/dist/assets/admin.js index ea7530ce1..24303e481 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/admin.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/admin.js @@ -1 +1 @@ -import{t as e}from"./queryOptions.js";import{r as t}from"./auth.js";import{Cn as n}from"./index.js";var r=e({queryKey:[`admin`,`nodes`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetNodes`,credentials:e})},staleTime:1e4}),i=e({queryKey:[`admin`,`vms`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetVMs`,credentials:e})},staleTime:1e4}),a=e({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetStorageStatus`,credentials:e})},staleTime:1e4});export{a as n,i as r,r as t}; \ No newline at end of file +import{t as e}from"./queryOptions.js";import{r as t}from"./auth.js";import{Mn as n}from"./index.js";var r=e({queryKey:[`admin`,`nodes`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetNodes`,credentials:e})},staleTime:1e4}),i=e({queryKey:[`admin`,`vms`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetVMs`,credentials:e})},staleTime:1e4}),a=e({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetStorageStatus`,credentials:e})},staleTime:1e4});export{a as n,i as r,r as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js index 3ac9be9d7..1177705ce 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Ft as n}from"./auth.js";import{t as r}from"./button.js";import{An as i,Fn as a,Mn as o,gr as s,hr as c,kn as l,mr as u}from"./index.js";function d(e){return i(e,`alert-dialog`)}var f=t(),p=e();function m(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(d,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(o,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(s,{className:a,"data-slot":`alert-dialog-overlay`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function _(e){let t=(0,f.c)(11),r,i,o;t[0]===e?(r=t[1],i=t[2],o=t[3]):({className:r,size:o,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=o);let s=o===void 0?`default`:o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(g,{}),t[4]=c):c=t[4];let l;t[5]===r?l=t[6]:(l=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),t[5]=r,t[6]=l);let u;return t[7]!==i||t[8]!==s||t[9]!==l?(u=(0,p.jsxs)(h,{children:[c,(0,p.jsx)(a,{className:l,"data-size":s,"data-slot":`alert-dialog-content`,...i})]}),t[7]=i,t[8]=s,t[9]=l,t[10]=u):u=t[10],u}function v(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function x(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(l,{className:a,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function S(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(u,{className:a,"data-slot":`alert-dialog-description`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function C(e){let t=(0,f.c)(8),i,a;t[0]===e?(i=t[1],a=t[2]):({className:i,...a}=e,t[0]=e,t[1]=i,t[2]=a);let o;t[3]===i?o=t[4]:(o=n(i),t[3]=i,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,p.jsx)(r,{className:o,"data-slot":`alert-dialog-action`,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function w(e){let t=(0,f.c)(14),i,a,o,s;t[0]===e?(i=t[1],a=t[2],o=t[3],s=t[4]):({className:i,variant:o,size:s,...a}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o,t[4]=s);let l=o===void 0?`outline`:o,u=s===void 0?`default`:s,d;t[5]===i?d=t[6]:(d=n(i),t[5]=i,t[6]=d);let m;t[7]!==u||t[8]!==l?(m=(0,p.jsx)(r,{size:u,variant:l}),t[7]=u,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==a||t[11]!==d||t[12]!==m?(h=(0,p.jsx)(c,{className:d,"data-slot":`alert-dialog-cancel`,render:m,...a}),t[10]=a,t[11]=d,t[12]=m,t[13]=h):h=t[13],h}export{S as a,b as c,_ as i,x as l,C as n,y as o,w as r,v as s,m as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ft as n}from"./auth.js";import{t as r}from"./button.js";import{Cr as i,Rn as a,Tr as o,Vn as s,Wn as c,wr as l,zn as u}from"./index.js";function d(e){return u(e,`alert-dialog`)}var f=t(),p=e();function m(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(d,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(s,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,r),t[3]=r,t[4]=a);let s;return t[5]!==i||t[6]!==a?(s=(0,p.jsx)(o,{className:a,"data-slot":`alert-dialog-overlay`,...i}),t[5]=i,t[6]=a,t[7]=s):s=t[7],s}function _(e){let t=(0,f.c)(11),r,i,a;t[0]===e?(r=t[1],i=t[2],a=t[3]):({className:r,size:a,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a);let o=a===void 0?`default`:a,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,p.jsx)(g,{}),t[4]=s):s=t[4];let l;t[5]===r?l=t[6]:(l=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),t[5]=r,t[6]=l);let u;return t[7]!==i||t[8]!==o||t[9]!==l?(u=(0,p.jsxs)(h,{children:[s,(0,p.jsx)(c,{className:l,"data-size":o,"data-slot":`alert-dialog-content`,...i})]}),t[7]=i,t[8]=o,t[9]=l,t[10]=u):u=t[10],u}function v(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function x(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,p.jsx)(a,{className:o,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function S(e){let t=(0,f.c)(8),r,a;t[0]===e?(r=t[1],a=t[2]):({className:r,...a}=e,t[0]=e,t[1]=r,t[2]=a);let o;t[3]===r?o=t[4]:(o=n(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),t[3]=r,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,p.jsx)(i,{className:o,"data-slot":`alert-dialog-description`,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function C(e){let t=(0,f.c)(8),i,a;t[0]===e?(i=t[1],a=t[2]):({className:i,...a}=e,t[0]=e,t[1]=i,t[2]=a);let o;t[3]===i?o=t[4]:(o=n(i),t[3]=i,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,p.jsx)(r,{className:o,"data-slot":`alert-dialog-action`,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function w(e){let t=(0,f.c)(14),i,a,o,s;t[0]===e?(i=t[1],a=t[2],o=t[3],s=t[4]):({className:i,variant:o,size:s,...a}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o,t[4]=s);let c=o===void 0?`outline`:o,u=s===void 0?`default`:s,d;t[5]===i?d=t[6]:(d=n(i),t[5]=i,t[6]=d);let m;t[7]!==u||t[8]!==c?(m=(0,p.jsx)(r,{size:u,variant:c}),t[7]=u,t[8]=c,t[9]=m):m=t[9];let h;return t[10]!==a||t[11]!==d||t[12]!==m?(h=(0,p.jsx)(l,{className:d,"data-slot":`alert-dialog-cancel`,render:m,...a}),t[10]=a,t[11]=d,t[12]=m,t[13]=h):h=t[13],h}export{S as a,b as c,_ as i,x as l,C as n,y as o,w as r,v as s,m as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js index 1888d7bdc..72e9a7e3a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./ec2.js";import{vi as a,xr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{n as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=a(),v=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).AllocationId;t(n?{to:`/ec2/describe-addresses/$id`,params:{id:n}}:{to:`/ec2/describe-addresses`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(n,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(f,{title:`Allocate Elastic IP`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(u,{error:v.error,msg:`Failed to allocate Elastic IP`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(o,{id:`name`,placeholder:`my-elastic-ip`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(r,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>await t({to:`/ec2/describe-addresses`}),e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Allocating…`,submitLabel:`Allocate`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 allocate-address`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./ec2.js";import{Ar as a,Di as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{n as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=o(),v=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).AllocationId;t(n?{to:`/ec2/describe-addresses/$id`,params:{id:n}}:{to:`/ec2/describe-addresses`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(n,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(f,{title:`Allocate Elastic IP`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(u,{error:v.error,msg:`Failed to allocate Elastic IP`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(a,{id:`name`,placeholder:`my-elastic-ip`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(r,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>await t({to:`/ec2/describe-addresses`}),e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Allocating…`,submitLabel:`Allocate`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 allocate-address`},{type:`flag`,value:` \\ --domain`},{type:`value`,value:` vpc`}];return e.trim()&&t.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=elastic-ip,Tags=[{Key=Name,Value=${e.trim()}}]'`}),[{label:`Allocate Elastic IP`,parts:t}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js index 1ab0d3067..2c4cf9a74 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{xi as n}from"./awsClient.js";import{Rt as r}from"./auth.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform??`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ni as n}from"./awsClient.js";import{Rt as r}from"./auth.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform??`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js index 54dd7b7e1..3267fca78 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js @@ -1,2 +1,2 @@ -import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{A as i,F as a,H as o,N as s,U as c,i as l,p as ee,s as te,t as ne,u as re}from"./useStore.js";import{$ as ie,A as ae,At as u,B as oe,C as se,Ct as ce,D as le,Dt as ue,E as de,Et as fe,F as pe,G as me,H as he,I as ge,J as _e,K as ve,L as ye,M as be,Mt as xe,N as Se,Nt as Ce,O as we,P as Te,Q as Ee,R as De,S as Oe,St as ke,Tt as eee,U as Ae,V as je,W as Me,X as Ne,Z as Pe,_ as Fe,_t as Ie,at as Le,b as Re,bt as ze,ct as Be,dt as Ve,et as He,ft as Ue,g as We,gt as Ge,ht as Ke,it as qe,j as Je,jt as Ye,k as Xe,kt as Ze,lt as Qe,mt as $e,nt as et,ot as tt,pt as nt,q as rt,r as it,tt as tee,ut as at,v as ot,vt as st,w as ct,wt as lt,x as ut,xt as dt,y as nee,yt as ft,z as ree}from"./auth.js";import{A as pt,C as mt,D as ht,E as gt,O as _t,S as vt,T as iee,_ as aee,a as yt,c as oee,d as bt,f as xt,g as see,h as St,i as Ct,k as wt,l as cee,n as Tt,o as lee,s as uee,w as dee,x as fee}from"./index.browser.js";import{i as pee,n as mee,r as hee}from"./index2.browser.js";var gee=`Error preloading route! ☝️`,_ee=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_ee()})),Dt=n(r(),1);t();var vee=n(Et(),1);function yee(e,t){let n=l(),r=o(t),{activeProps:ie,inactiveProps:ae,activeOptions:u,to:oe,preload:se,preloadDelay:ce,preloadIntentProximity:le,hashScrollIntoView:ue,replace:de,startTransition:fe,resetScroll:pe,viewTransition:me,children:he,target:ge,disabled:_e,style:ve,className:ye,onClick:be,onBlur:xe,onFocus:Se,onMouseEnter:Ce,onMouseLeave:we,onTouchStart:Te,ignoreBlocker:Ee,params:De,search:Oe,hash:ke,state:eee,mask:Ae,reloadDocument:je,unsafeRelative:Me,from:Ne,_fromLocation:Pe,...Fe}=e,Ie=te(),Le=Dt.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Re=ne(n.stores.location,e=>e,(e,t)=>e.href===t.href),ze=Dt.useMemo(()=>{let e={_fromLocation:Re,...Le};return n.buildLocation(e)},[n,Re,Le]),Be=ze.maskedLocation?ze.maskedLocation.publicHref:ze.publicHref,Ve=ze.maskedLocation?ze.maskedLocation.external:ze.external,He=Dt.useMemo(()=>It(Be,Ve,n.history,_e),[_e,Ve,Be,n.history]),Ue=Dt.useMemo(()=>{if(He?.external)return a(He.href,n.protocolAllowlist)?void 0:He.href;if(!bee(oe)&&!(typeof oe!=`string`||oe.indexOf(`:`)===-1))try{return new URL(oe),a(oe,n.protocolAllowlist)?void 0:oe}catch{}},[oe,He,n.protocolAllowlist]),We=Dt.useMemo(()=>{if(Ue)return!1;if(u?.exact){if(!re(Re.pathname,ze.pathname,n.basepath))return!1}else{let e=ee(Re.pathname,n.basepath),t=ee(ze.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(u?.includeSearch??!0)&&!i(Re.search,ze.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?Ie&&Re.hash===ze.hash:!0},[u?.exact,u?.explicitUndefined,u?.includeHash,u?.includeSearch,Re,Ue,Ie,ze.hash,ze.pathname,ze.search,n.basepath]),Ge=We?s(ie,{})??kt:Ot,Ke=We?Ot:s(ae,{})??Ot,qe=[ye,Ge.className,Ke.className].filter(Boolean).join(` `),Je=(ve||Ge.style||Ke.style)&&{...ve,...Ge.style,...Ke.style},[Ye,Xe]=Dt.useState(!1),Ze=Dt.useRef(!1),Qe=e.reloadDocument||Ue?!1:se??n.options.defaultPreload,$e=ce??n.options.defaultPreloadDelay??0,et=Dt.useCallback(()=>{n.preloadRoute({...Le,_builtLocation:ze}).catch(e=>{console.warn(e),console.warn(gee)})},[n,Le,ze]);c(r,Dt.useCallback(e=>{e?.isIntersecting&&et()},[et]),Pt,{disabled:!!_e||Qe!==`viewport`}),Dt.useEffect(()=>{Ze.current||!_e&&Qe===`render`&&(et(),Ze.current=!0)},[_e,et,Qe]);let tt=e=>{let t=e.currentTarget.getAttribute(`target`),r=ge===void 0?t:ge;if(!_e&&!See(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,vee.flushSync)(()=>{Xe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Xe(!1)});n.navigate({...Le,replace:de,resetScroll:pe,hashScrollIntoView:ue,startTransition:fe,viewTransition:me,ignoreBlocker:Ee})}};if(Ue)return{...Fe,ref:r,href:Ue,...he&&{children:he},...ge&&{target:ge},..._e&&{disabled:_e},...ve&&{style:ve},...ye&&{className:ye},...be&&{onClick:be},...xe&&{onBlur:xe},...Se&&{onFocus:Se},...Ce&&{onMouseEnter:Ce},...we&&{onMouseLeave:we},...Te&&{onTouchStart:Te}};let nt=e=>{if(_e||Qe!==`intent`)return;if(!$e){et();return}let t=e.currentTarget;if(Nt.has(t))return;let n=setTimeout(()=>{Nt.delete(t),et()},$e);Nt.set(t,n)},rt=e=>{_e||Qe!==`intent`||et()},it=e=>{if(_e||!Qe||!$e)return;let t=e.currentTarget,n=Nt.get(t);n&&(clearTimeout(n),Nt.delete(t))};return{...Fe,...Ge,...Ke,href:He?.href,ref:r,onClick:Ft([be,tt]),onBlur:Ft([xe,it]),onFocus:Ft([Se,nt]),onMouseEnter:Ft([Ce,nt]),onMouseLeave:Ft([we,it]),onTouchStart:Ft([Te,rt]),disabled:!!_e,target:ge,...Je&&{style:Je},...qe&&{className:qe},..._e&&At,...We&&jt,...Ie&&Ye&&Mt}}var Ot={},kt={className:`active`},At={role:`link`,"aria-disabled":!0},jt={"data-status":`active`,"aria-current":`page`},Mt={"data-transitioning":`transitioning`},Nt=new WeakMap,Pt={rootMargin:`100px`},Ft=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function It(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function bee(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var xee=Dt.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=yee(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Dt.createElement(`a`,t,o)}return Dt.createElement(n,a,o)});function See(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Lt=class extends et{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=ke.of(e?.input),l=[],ee=[],te=!1,ne,re=new xe({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(re,s),this.setHostPrefix(re,e,r);let t=ce(e.traits);if(t.http){re.method=t.http[0];let[e,n]=t.http[1].split(`?`);re.path==`/`?re.path=e:re.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(re.path.includes(`{${e}+}`)||re.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();re.path.includes(`{${e}+}`)?re.path=re.path.replace(`{${e}+}`,n.split(`/`).map(Le).join(`/`)):re.path.includes(`{${e}}`)&&(re.path=re.path.replace(`{${e}}`,Le(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return re.headers=o,re.query=a,re.body=ne,re}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=ke.of(e.output),a={};if(n.statusCode>=300){let i=await tt(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await tt(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await tt(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=ke.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=Ct(n.body);else if(n.body){let i=await tt(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?aee(o,`,`,2):see(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},Rt=class extends qe{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new ie(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=ke.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??ht;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??wt;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Cee=class extends qe{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=ke.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(He(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=mt(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??_t)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:fee(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=vt.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??_t)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Tt():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},zt=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Cee(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=ke.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function wee(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new St(e,`bigDecimal`):BigInt(e)}return t}var Tee=(e,t)=>tt(e,t).then(e=>(t?.utf8Encoder??ht)(e)),Eee=(e,t)=>Tee(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),Bt=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),Vt=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},Dee=(e,t)=>Ht(e,t,[`header`,`code`,`type`]),Oee=(e,t,n=!1)=>Ht(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),Ht=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=Bt(e??{},`x-amzn-errortype`);if(n!==void 0)return Vt(e[n]);break;case`code`:let r=Bt(t??{},`code`);if(r&&t[r]!==void 0)return Vt(t[r]);break;case`type`:if(t?.__type!==void 0)return Vt(t.__type);break}},kee=class extends Re{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,wee):await Eee(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=ke.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new nee(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return pt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?vt.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(He(r,this.settings)){case 5:return iee(t);case 6:return gt(t);case 7:return dee(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof St)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new St(e.string,e.type):new St(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof St?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},Aee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof St){let e=`${`Νnv`+this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},jee=class extends Re{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=ke.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new Aee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=ke.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=ke.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??_t)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(He(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return mt(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof St&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Tt();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?vt.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??_t)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof St?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},Ut=class extends Re{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new jee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new kee(this.settings);return e.setSerdeContext(this.serdeContext),e}},Mee=class extends tee{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new Ut({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new ut(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(eee(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=Oee(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=ke.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},re=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=re.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},Wt=class extends Mee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},Nee=class extends Lt{serializer;deserializer;codec;mixin=new ut;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Ut(n),this.serializer=new zt(this.codec.createSerializer(),n),this.deserializer=new Rt(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ke.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=ke.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=Dee(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=ke.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},Pee=/[&<>"]/g,Fee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Iee(e){return e.replace(Pee,e=>Fee[e])}var Lee=/[&"'<>\r\n\u0085\u2028]/g,Ree={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function zee(e){return e.replace(Lee,e=>Ree[e])}var Gt=class{value;constructor(e){this.value=e}toString(){return zee(``+this.value)}},Kt=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new Gt(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${Iee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Bee=class extends Fe{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},Vee=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},Hee=class extends Re{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=ke.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??pt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Kt.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=Kt.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=Kt.of(e);if(typeof n!=`string`)if(t instanceof Kt||t instanceof Gt)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=Kt.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=Kt.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[re,ie]=this.getXmlnsAttribute(e,r),ae=(e,t,n)=>{let r=Kt.of(s,t),[i,a]=this.getXmlnsAttribute(o,ie);a&&r.addAttribute(i,a),e.addChildNode(r);let l=Kt.of(ee);c.isListSchema()?this.writeList(c,n,l,ie):c.isMapSchema()?this.writeMap(c,n,l,ie,!0):c.isStructSchema()?l=this.writeStruct(c,n,ie):this.writeSimpleInto(c,n,l,ie),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=Kt.of(a.xmlName??e.getMemberName());ae(t,r,i),n.addChildNode(t)}}else{let r;i||(r=Kt.of(a.xmlName??e.getMemberName()),ie&&r.addAttribute(re,ie),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=Kt.of(`entry`);ae(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=ke.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??_t)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(He(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=mt(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=mt(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof St?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Tt():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=ke.of(e),o=new Gt(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Uee=class extends Re{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Hee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ot(this.settings);return e.setSerdeContext(this.serdeContext),e}},Wee=class extends Lt{codec;serializer;deserializer;mixin=new ut;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Uee(t),this.serializer=new zt(this.codec.createSerializer(),t),this.deserializer=new Rt(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ke.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Vee(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=ke.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}};async function Gee(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},qee=class{digestLength=16;state=Uint32Array.from(qt);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let t=bt(e),n=0,r=t.byteLength;for(this.bytesHashed+=r;r>0;)this.writeBuffer.setUint8(this.bufferLength++,t[n++]),--r,this.bufferLength===64&&(Yt(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),t=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,r=this.bytesHashed*8;if(t.setUint8(n++,128),this.bufferLength%64>=56){for(let e=n;e<64;++e)t.setUint8(e,0);Yt(e,t),n=0}for(let e=n;e<56;++e)t.setUint8(e,0);t.setUint32(56,r>>>0,!0),t.setUint32(60,Math.floor(r/2**32),!0),Yt(e,t);let i=new Uint8Array(16),a=new DataView(i.buffer);for(let t=0;t<4;++t)a.setUint32(t*4,e[t],!0);return i}reset(){this.state.set(qt),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},qt=[1732584193,4023233417,2562383102,271733878],Jt=4294967295,Jee=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),Yee=Array.from({length:64},(e,t)=>Math.abs(Math.sin(t+1))*2**32>>>0);function Yt(e,t){let n=e[0],r=e[1],i=e[2],a=e[3];for(let e=0;e<64;++e){let o,s;e<16?(o=r&i|~r&a,s=e):e<32?(o=a&r|i&~a,s=(5*e+1)%16):e<48?(o=r^i^a,s=(3*e+5)%16):(o=i^(r|~a),s=7*e%16);let c=t.getUint32(s*4,!0),l=a;a=i,i=r;let ee=Jee[(e>>4)*4+(e&3)],te=(n+o&Jt)+(c+Yee[e]&Jt)&Jt;r=r+((te<>>32-ee)>>>0)&Jt,n=l}e[0]=e[0]+n&Jt,e[1]=e[1]+r&Jt,e[2]=e[2]+i&Jt,e[3]=e[3]+a&Jt}var Xee=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Zee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Qee=e=>{let t=[];switch(e.operation){default:t.push(Zee(e))}return t},$ee=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},ete=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,defaultSigningName:`acm`,clientContextParams:e.clientContextParams??{}}),tte={ServiceType:{type:`clientContextParams`,name:`serviceType`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},nte={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},Xt=`PartitionResult`,Zt=`stringEquals`,Qt=`booleanEquals`,$t={fn:`getAttr`,argv:[{ref:Xt},`name`]},en={},tn={conditions:[[`isSet`,[{ref:`Endpoint`}]],[`aws.partition`,[{ref:`Region`}],Xt],[Zt,[{ref:`ServiceType`},`ACM-ACME`]],[Zt,[$t,`aws`]],[Qt,[{ref:`UseFIPS`},!0]],[Qt,[{ref:`UseDualStack`},!0]],[Zt,[$t,`aws-us-gov`]]],results:[[-1],[`{Endpoint}`,en],[-1,`FIPS endpoints are not available for ACME operations`],[`https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}`,en],[-1,`ACME operations are only available in commercial AWS partitions`],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,en],[`https://acm.{Region}.amazonaws.com`,en],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,en],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,en],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,en],[-1,`Region must be set to resolve an endpoint.`]]},rte=2,ite=new Int32Array([-1,1,-1,0,100000001,3,1,4,100000010,2,9,5,4,7,6,5,100000008,100000009,5,100000005,8,6,100000006,100000007,3,10,100000004,4,100000002,100000003]),ate=nt.from(ite,rte,tn.conditions,tn.results),ote=new Ue({size:50,params:[`Endpoint`,`Region`,`ServiceType`,`UseDualStack`,`UseFIPS`]}),ste=(e,t={})=>ote.get(e,()=>at(ate,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var nn=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},cte=class e extends nn{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lte=class e extends nn{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rn=class e extends nn{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},an=class e extends nn{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},on=class e extends nn{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sn=class e extends nn{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cn=class e extends nn{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},ln=class e extends nn{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},un=class e extends nn{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dn=class e extends nn{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fn=class e extends nn{name=`InternalServerException`;$fault=`server`;$retryable={};constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},pn=class e extends nn{name=`ServiceQuotaExceededException`;$fault=`client`;constructor(t){super({name:`ServiceQuotaExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mn=class e extends nn{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hn=class e extends nn{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gn=class e extends nn{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_n=class e extends nn{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vn=class e extends nn{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yn=class e extends nn{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bn=`AccessDeniedException`,xn=`CreatedAt`,Sn=`CertificateArn`,Cn=`CertificateChain`,wn=`ConflictException`,Tn=`CertificateKeyPairOrigin`,En=`CertificateKeyPairOrigins`,Dn=`CertificateSummary`,On=`CertificateSummaryList`,kn=`CertificateStatuses`,An=`Certificate`,jn=`DomainName`,Mn=`Exported`,Nn=`ExtendedKeyUsages`,Pn=`ExportOption`,Fn=`Filters`,In=`HasAdditionalSubjectAlternativeNames`,Ln=`ImportedAt`,Rn=`InvalidArgsException`,zn=`InvalidArnException`,Bn=`IssuedAt`,Vn=`ImportCertificate`,Hn=`ImportCertificateRequest`,Un=`ImportCertificateResponse`,Wn=`InvalidDomainValidationOptionsException`,Gn=`InvalidParameterException`,Kn=`InternalServerException`,qn=`InvalidStateException`,Jn=`InvalidTagException`,Yn=`InUse`,Xn=`Includes`,Zn=`Key`,Qn=`KeyAlgorithm`,$n=`KeyUsages`,er=`ListCertificates`,tr=`ListCertificatesRequest`,nr=`ListCertificatesResponse`,rr=`LimitExceededException`,ir=`Message`,ar=`ManagedBy`,or=`MaxItems`,sr=`NotAfter`,cr=`NotBefore`,lr=`NextToken`,ur=`PrivateKey`,dr=`PrivateKeyBlob`,fr=`RevokedAt`,pr=`RenewalEligibility`,mr=`RequestInProgressException`,hr=`ResourceInUseException`,gr=`ResourceNotFoundException`,_r=`Status`,vr=`SubjectAlternativeNameSummaries`,yr=`SortBy`,br=`SortOrder`,xr=`ServiceQuotaExceededException`,Sr=`Type`,Cr=`ThrottlingException`,wr=`TagList`,Tr=`TooManyTagsException`,Er=`TagPolicyException`,Dr=`ThrottlingReason`,Or=`ThrottlingReasonList`,kr=`Tags`,Ar=`Tag`,jr=`Value`,Mr=`ValidationException`,Nr=`awsQueryError`,Pr=`client`,Fr=`error`,Ir=`extendedKeyUsage`,Lr=`exportOption`,Rr=`httpError`,zr=`keyTypes`,Br=`keyUsage`,Vr=`message`,ute=`managedBy`,dte=`reason`,fte=`resource`,Hr=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,pte=`server`,mte=`throttlingReasons`,d=`com.amazonaws.acm`,Ur=dt.for(Hr),hte=[-3,Hr,`ACMServiceException`,0,[],[]];Ur.registerError(hte,nn);var Wr=dt.for(d),gte=[-3,d,bn,{[Nr]:[`AccessDenied`,403],[Fr]:Pr,[Rr]:403},[ir],[0]];Wr.registerError(gte,cte);var _te=[-3,d,wn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(_te,dn);var vte=[-3,d,Kn,{[Fr]:pte},[Vr],[0]];Wr.registerError(vte,fn);var yte=[-3,d,Rn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(yte,_n);var bte=[-3,d,zn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(bte,lte);var xte=[-3,d,Wn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(xte,vn);var Ste=[-3,d,Gn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ste,rn);var Cte=[-3,d,qn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Cte,yn);var wte=[-3,d,Jn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(wte,an);var Tte=[-3,d,rr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Tte,gn);var Ete=[-3,d,mr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ete,hn);var Dte=[-3,d,hr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Dte,mn);var Ote=[-3,d,gr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ote,on);var kte=[-3,d,xr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(kte,pn);var Ate=[-3,d,Er,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ate,sn);var jte=[-3,d,Cr,{[Nr]:[`Throttling`,400],[Fr]:Pr,[Rr]:400},[Vr,mte],[0,()=>Kte]];Wr.registerError(jte,cn);var Mte=[-3,d,Tr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Mte,ln);var Nte=[-3,d,Mr,{[Nr]:[`ValidationError`,400],[Fr]:Pr,[Rr]:400},[Vr],[0]];Wr.registerError(Nte,un);var Pte=[Ur,Wr],Fte=[0,d,dr,8,21],Ite=[3,d,Dn,0,[Sn,jn,vr,In,_r,Sr,Qn,$n,Nn,Pn,Yn,Mn,pr,cr,sr,xn,Bn,Ln,fr,ar,Tn],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0,0]],Lte=[3,d,Fn,0,[Ir,Br,zr,Lr,ute],[64,64,64,0,0]],Rte=[3,d,Hn,0,[An,ur,Sn,Cn,kr],[21,[()=>Fte,0],0,21,()=>Gte],2],zte=[3,d,Un,0,[Sn],[0]],Bte=[3,d,tr,0,[kn,En,Xn,lr,or,yr,br],[64,64,()=>Lte,0,1,0,0]],Vte=[3,d,nr,0,[lr,On],[0,()=>Wte]],Hte=[3,d,Ar,0,[Zn,jr],[0,0],1],Ute=[3,d,Dr,0,[dte,fte],[0,0]],Wte=[1,d,On,0,()=>Ite],Gte=[1,d,wr,0,()=>Hte],Kte=[1,d,Or,0,()=>Ute],qte=[9,d,Vn,0,()=>Rte,()=>zte],Jte=[9,d,er,0,()=>Bte,()=>Vte],Yte=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ste,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Wt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:Pte,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),Xte=e=>{let t=Je(e),n=()=>t().then(ft),r=Yte(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:nte.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Zte=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Qte=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),$te=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),Zte(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),Qte(n))},ene=class extends fe{config;constructor(...[e]){let t=Xte(e||{});super(t),this.initConfig=t;let n=$te($ee(Qe(Me(be(rt(ge(ete(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:Xee,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},tne=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function nne(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var rne=e=>{let t=[];switch(e.operation){default:t.push(nne(e))}return t},ine=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},ane=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),one={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},sne={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/middleware-sdk-ec2":`^3.972.41`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},Gr=`ref`,Kr=-1,qr=!0,Jr=`isSet`,Yr=`PartitionResult`,Xr=`booleanEquals`,Zr=`getAttr`,Qr={[Gr]:`Endpoint`},$r={[Gr]:Yr},ei={},ti=[{[Gr]:`Region`}],ni={conditions:[[Jr,[Qr]],[Jr,ti],[`aws.partition`,ti,Yr],[Xr,[{[Gr]:`UseFIPS`},qr]],[Xr,[{[Gr]:`UseDualStack`},qr]],[Xr,[{fn:Zr,argv:[$r,`supportsDualStack`]},qr]],[Xr,[{fn:Zr,argv:[$r,`supportsFIPS`]},qr]],[`stringEquals`,[{fn:Zr,argv:[$r,`name`]},`aws-us-gov`]]],results:[[Kr],[Kr,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Kr,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Qr,ei],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,ei],[Kr,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,ei],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,ei],[Kr,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,ei],[Kr,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,ei],[Kr,`Invalid Configuration: Missing Region`]]},cne=2,lne=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),une=nt.from(lne,cne,ni.conditions,ni.results),dne=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),fne=(e,t={})=>dne.get(e,()=>at(une,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var pne=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},ri=`Address`,mne=`AllocateAddressRequest`,hne=`AllocateAddressResult`,gne=`AssociateAddressRequest`,_ne=`AssociateAddressResult`,vne=`AllAvailabilityZones`,yne=`AllocateAddress`,bne=`ApplianceArn`,xne=`AssociateAddress`,Sne=`AttachedAppliances`,Cne=`AttributeBooleanValue`,wne=`AssociateCarrierIpAddress`,Tne=`AdditionalFlexibleNetworkInterfaces`,Ene=`AvailableIpAddressCount`,ii=`AssignIpv6AddressOnCreation`,Dne=`AttachInternetGateway`,One=`AttachInternetGatewayRequest`,kne=`AssociateIamInstanceProfile`,Ane=`AssociateIamInstanceProfileRequest`,jne=`AssociateIamInstanceProfileResult`,Mne=`AllocationIdList`,Nne=`AssociationIdList`,ai=`AdditionalInfo`,oi=`AllocationId`,si=`AllocationIds`,ci=`AssociationId`,Pne=`AssociationIds`,li=`AttachmentId`,Fne=`AmiLaunchIndex`,Ine=`AttachmentLimitType`,Lne=`AddressList`,ui=`AvailabilityMode`,Rne=`AssociatePublicIpAddress`,zne=`AmazonProvidedIpv6CidrBlock`,Bne=`AutoProvisionZones`,Vne=`AutoRecoverySupported`,Hne=`AssociateRouteTableRequest`,Une=`AssociateRouteTableResult`,Wne=`AssociateRouteTable`,Gne=`AllowReassociation`,Kne=`AllRegions`,di=`AssociatedResource`,fi=`AutoRecovery`,pi=`AssociationState`,qne=`AuthorizeSecurityGroupEgress`,Jne=`AuthorizeSecurityGroupEgressRequest`,Yne=`AuthorizeSecurityGroupEgressResult`,Xne=`AuthorizeSecurityGroupIngressRequest`,Zne=`AuthorizeSecurityGroupIngressResult`,Qne=`AuthorizeSecurityGroupIngress`,$ne=`AutoScalingIps`,mi=`AmdSevSnp`,ere=`AttachmentState`,tre=`ArchitectureTypeList`,hi=`AttachTime`,nre=`AttachVolumeRequest`,rre=`AttributeValue`,ire=`AttachVolume`,gi=`AvailabilityZone`,_i=`AvailabilityZoneAddress`,vi=`AvailabilityZoneAddresses`,are=`AvailabilityZoneGeography`,ore=`AvailabilityZoneGeographyList`,yi=`AvailabilityZoneId`,sre=`AvailabilityZoneList`,cre=`AvailabilityZoneMessage`,lre=`AvailabilityZoneMessageList`,ure=`AvailabilityZoneSubGeography`,dre=`AvailabilityZoneSubGeographyList`,fre=`AvailabilityZones`,bi=`Accelerators`,pre=`Addresses`,mre=`Affinity`,xi=`Arn`,Si=`Architecture`,hre=`Associations`,Ci=`Association`,gre=`Attribute`,wi=`Attachment`,Ti=`Attachments`,_re=`BlobAttributeValue`,vre=`BaselineBandwidthInGbps`,Ei=`BaselineBandwidthInMbps`,Di=`BlockDeviceMapping`,yre=`BlockDeviceMappingList`,bre=`BlockDeviceMappingRequestList`,Oi=`BlockDeviceMappings`,xre=`BlockDurationMinutes`,ki=`BaselineIops`,Ai=`BootMode`,Sre=`BootModeTypeList`,Cre=`BareMetal`,ji=`BlockPublicAccessStates`,wre=`BillingProductList`,Tre=`BurstablePerformanceSupported`,Ere=`BillingProducts`,Dre=`BillingProduct`,Mi=`BaselineThroughputInMBps`,Ni=`BandwidthWeighting`,Ore=`BandwidthWeightingTypeList`,kre=`BandwidthWeightings`,Pi=`CidrBlock`,Are=`CidrBlockAssociationSet`,jre=`CapacityBlockId`,Mre=`CidrBlockState`,Nre=`CoreCountList`,Fi=`CoreCount`,Pre=`CpuCredits`,Ii=`CompletionDurationMinutes`,Fre=`CreationDate`,Li=`CarrierGatewayId`,Ire=`CurrentGeneration`,Ri=`CarrierIp`,Lre=`CurrentInstanceBootMode`,Rre=`CreateInternetGateway`,zre=`CreateInternetGatewayRequest`,Bre=`CreateInternetGatewayResult`,Vre=`CreateImageRequest`,Hre=`CreateImageResult`,zi=`CidrIp`,Bi=`CidrIpv6`,Vi=`CidrIpv4`,Ure=`CoreInfo`,Wre=`CreateImage`,Gre=`CreateKeyPair`,Kre=`CreateKeyPairRequest`,Hi=`CoreNetworkArn`,qre=`CreateNatGateway`,Jre=`CreateNatGatewayRequest`,Yre=`CreateNatGatewayResult`,Ui=`CpuOptions`,Wi=`CustomerOwnedIp`,Gi=`CustomerOwnedIpv4Pool`,Xre=`CpuOptionsRequest`,Zre=`CreatePlacementGroup`,Qre=`CreatePlacementGroupRequest`,$re=`CreatePlacementGroupResult`,Ki=`CapacityReservationId`,qi=`CapacityReservationPreference`,eie=`CreateRouteRequest`,Ji=`CapacityReservationResourceGroupArn`,tie=`CreateRouteResult`,nie=`CapacityReservationSpecificationResponse`,Yi=`CapacityReservationSpecification`,Xi=`CapacityReservationTarget`,Zi=`CapacityReservationTargetResponse`,Qi=`CreateRouteTableRequest`,$i=`CreateRouteTableResult`,ea=`CreateRouteTable`,ta=`CreateRoute`,na=`CreateSecurityGroup`,ra=`CreateSecurityGroupRequest`,ia=`CreateSecurityGroupResult`,aa=`CopySnapshotRequest`,oa=`CopySnapshotRequestPSU`,sa=`CopySnapshotResult`,ca=`CreateSnapshotRequest`,la=`CreateSubnetRequest`,ua=`CreateSubnetResult`,da=`CreditSpecificationRequest`,fa=`CopySnapshot`,pa=`CreditSpecification`,ma=`CreateSnapshot`,ha=`CreateSubnet`,ga=`CurrentState`,_a=`ClientToken`,va=`ConnectionTrackingConfiguration`,ya=`ConnectionTrackingSpecification`,ba=`ConnectionTrackingSpecificationRequest`,xa=`ConnectionTrackingSpecificationResponse`,Sa=`CompletionTime`,Ca=`ConnectivityType`,wa=`CreateTime`,Ta=`CreateVolumeRequest`,Ea=`CreateVpcRequest`,Da=`CreateVpcResult`,Oa=`CreateVolume`,ka=`CreateVpc`,Aa=`Code`,ja=`Configured`,Ma=`Count`,Na=`DescribeAddressesRequest`,Pa=`DescribeAddressesResult`,Fa=`DisassociateAddressRequest`,Ia=`DeleteAssociatedSnapshots`,La=`DisableApiStop`,Ra=`DisableApiTermination`,za=`DestinationAvailabilityZone`,Ba=`DescribeAvailabilityZonesRequest`,Va=`DescribeAvailabilityZonesResult`,Ha=`DescribeAvailabilityZones`,Ua=`DescribeAddresses`,Wa=`DisassociateAddress`,Ga=`DestinationCidrBlock`,Ka=`DefaultConnectionTrackingConfiguration`,qa=`DefaultCores`,Ja=`DataEncryptionKeyId`,Ya=`DefaultEnaQueueCountPerInterface`,Xa=`DefaultForAz`,Za=`DedicatedHostsSupported`,Qa=`DeviceIndex`,$a=`DestinationIpv6CidrBlock`,eo=`DeleteInternetGateway`,to=`DeleteInternetGatewayRequest`,no=`DescribeInternetGatewaysRequest`,ro=`DescribeInternetGatewaysResult`,io=`DetachInternetGatewayRequest`,ao=`DescribeInternetGateways`,oo=`DetachInternetGateway`,so=`DisassociateIamInstanceProfile`,co=`DescribeIamInstanceProfileAssociations`,lo=`DescribeIamInstanceProfileAssociationsRequest`,uo=`DescribeIamInstanceProfileAssociationsResult`,fo=`DisassociateIamInstanceProfileRequest`,po=`DisassociateIamInstanceProfileResult`,mo=`DiskInfoList`,ho=`DeregisterImageRequest`,go=`DeregisterImageResult`,_o=`DescribeImagesRequest`,vo=`DescribeImagesResult`,yo=`DescribeInstancesRequest`,bo=`DescribeInstancesResult`,xo=`DescribeInstanceTypesRequest`,So=`DescribeInstanceTypesResult`,Co=`DescribeInstanceTypes`,wo=`DeregisterImage`,To=`DescribeImages`,Eo=`DescribeInstances`,Do=`DiskInfo`,Oo=`DeleteKeyPair`,ko=`DeleteKeyPairRequest`,Ao=`DeleteKeyPairResult`,jo=`DescribeKeyPairsRequest`,Mo=`DescribeKeyPairsResult`,No=`DescribeKeyPairs`,Po=`DisableLniAtDeviceIndex`,Fo=`DeviceName`,Io=`DefaultNetworkCardIndex`,Lo=`DeleteNatGateway`,Ro=`DeleteNatGatewayRequest`,zo=`DeleteNatGatewayResult`,Bo=`DescribeNatGatewaysRequest`,Vo=`DescribeNatGatewaysResult`,Ho=`DescribeNatGateways`,Uo=`DestinationOutpostArn`,Wo=`DhcpOptionsId`,Go=`DeleteOnTermination`,Ko=`DeletePlacementGroup`,qo=`DeletePlacementGroupRequest`,Jo=`DescribePlacementGroupsRequest`,Yo=`DescribePlacementGroupsResult`,Xo=`DescribePlacementGroups`,Zo=`DestinationPrefixListId`,Qo=`DeregistrationProtection`,f=`DryRun`,$o=`DeleteRouteRequest`,es=`DescribeRegionsRequest`,ts=`DescribeRegionsResult`,ns=`DeleteRouteTable`,rs=`DeleteRouteTableRequest`,is=`DescribeRouteTablesRequest`,as=`DescribeRouteTablesResult`,os=`DisassociateRouteTableRequest`,ss=`DescribeRouteTables`,cs=`DisassociateRouteTable`,ls=`DestinationRegion`,us=`DeleteRoute`,ds=`DescribeRegions`,fs=`DeleteSecurityGroup`,ps=`DeleteSecurityGroupRequest`,ms=`DeleteSecurityGroupResult`,hs=`DescribeSecurityGroupsRequest`,gs=`DescribeSecurityGroupsResult`,_s=`DescribeSecurityGroups`,vs=`DeleteSnapshotRequest`,ys=`DeleteSnapshotReturnCode`,bs=`DeleteSnapshotResultSet`,xs=`DeleteSubnetRequest`,Ss=`DeleteSnapshotResults`,Cs=`DescribeSnapshotsRequest`,ws=`DescribeSnapshotsResult`,Ts=`DescribeSubnetsRequest`,Es=`DescribeSubnetsResult`,Ds=`DeleteSnapshot`,Os=`DeleteSubnet`,ks=`DescribeSnapshots`,As=`DescribeSubnets`,js=`DefaultTcpEstablishedTimeout`,Ms=`DefaultThreadsPerCore`,Ns=`DeprecationTime`,Ps=`DeleteTime`,Fs=`DefaultUdpStreamTimeout`,Is=`DefaultUdpTimeout`,Ls=`DefaultVCpus`,Rs=`DeleteVolumeRequest`,zs=`DeleteVpcRequest`,Bs=`DescribeVolumesRequest`,Vs=`DescribeVolumesResult`,Hs=`DescribeVpcsRequest`,Us=`DescribeVpcsResult`,Ws=`DetachVolumeRequest`,Gs=`DeleteVolume`,Ks=`DeleteVpc`,qs=`DescribeVolumes`,Js=`DescribeVpcs`,Ys=`DetachVolume`,Xs=`Description`,Zs=`Device`,Qs=`Disks`,$s=`Domain`,ec=`EbsBlockDevice`,tc=`ExecutableByStringList`,nc=`ExecutableBy`,rc=`EbsCardIndex`,ic=`EbsCardInfoList`,ac=`EbsCardInfo`,oc=`EbsCards`,sc=`EncryptionControl`,cc=`EnableDns64`,lc=`ElasticFileSystem`,uc=`ElasticFileSystemExclusion`,dc=`ElasticGpuAssociation`,fc=`ElasticGpuAssociationId`,pc=`ElasticGpuAssociationList`,mc=`ElasticGpuAssociationState`,hc=`ElasticGpuAssociationTime`,gc=`ElasticGpuAssociations`,_c=`ElasticGpuId`,vc=`ElasticGpuSpecification`,yc=`ElasticGpuSpecifications`,bc=`ElasticInferenceAccelerator`,xc=`ElasticInferenceAcceleratorAssociation`,Sc=`ElasticInferenceAcceleratorAssociationId`,Cc=`ElasticInferenceAcceleratorAssociationList`,wc=`ElasticInferenceAcceleratorAssociationState`,Tc=`ElasticInferenceAcceleratorAssociationTime`,Ec=`ElasticInferenceAcceleratorArn`,Dc=`ElasticInferenceAcceleratorAssociations`,Oc=`ElasticInferenceAccelerators`,kc=`EbsInstanceBlockDevice`,Ac=`EbsInstanceBlockDeviceSpecification`,jc=`EncryptionInTransitSupported`,Mc=`EbsInfo`,Nc=`EfaInfo`,Pc=`EnableLniAtDeviceIndex`,Fc=`EbsOptimized`,Ic=`EbsOptimizedInfo`,Lc=`EgressOnlyInternetGateway`,Rc=`EgressOnlyInternetGatewayExclusion`,zc=`EgressOnlyInternetGatewayId`,Bc=`EnclaveOptionsRequest`,Vc=`EbsOptimizedSupport`,Hc=`EnclaveOptions`,Uc=`EnablePrimaryIpv6`,Wc=`EnaQueueCount`,Gc=`EnableResourceNameDnsAAAARecord`,Kc=`EnableResourceNameDnsAAAARecordOnLaunch`,qc=`EnableResourceNameDnsARecord`,Jc=`EnableResourceNameDnsARecordOnLaunch`,Yc=`EnaSrdEnabled`,Xc=`EnaSrdSpecification`,Zc=`EnaSrdSpecificationRequest`,Qc=`EnaSrdSupported`,$c=`EnaSrdUdpEnabled`,el=`EnaSrdUdpSpecification`,tl=`EnaSrdUdpSpecificationRequest`,nl=`EfaSupported`,rl=`EncryptionSupport`,il=`EnaSupport`,al=`EndTime`,ol=`ExecutableUsers`,sl=`Ebs`,cl=`Enabled`,ll=`Encrypted`,ul=`Endpoint`,dl=`Force`,fl=`FailureCode`,pl=`FpgaDeviceInfo`,ml=`FpgaDeviceInfoList`,hl=`FpgaDeviceMemoryInfo`,gl=`FlexibleEnaQueuesSupport`,_l=`FpgaInfo`,vl=`FilterList`,yl=`FailureMessage`,bl=`FromPort`,xl=`FastRestored`,Sl=`FullSnapshotSizeInBytes`,Cl=`FreeTierEligible`,wl=`Filters`,Tl=`Filter`,El=`Fpgas`,Dl=`Groups`,Ol=`GroupArn`,kl=`GetConsoleOutput`,Al=`GetConsoleOutputRequest`,jl=`GetConsoleOutputResult`,Ml=`GroupDescription`,Nl=`GpuDeviceInfo`,Pl=`GpuDeviceInfoList`,Fl=`GpuDeviceMemoryInfo`,Il=`GatewayId`,Ll=`GroupIdentifierList`,Rl=`GroupIdStringList`,zl=`GpuInfo`,Bl=`GroupId`,Vl=`GroupIds`,Hl=`GroupIdentifier`,Ul=`GroupLongName`,Wl=`GroupName`,Gl=`GroupNameStringList`,Kl=`GroupNames`,ql=`GroupOwnerId`,Jl=`GpuPartitionSize`,Yl=`Geography`,Xl=`Gpus`,Zl=`HiddenByDefault`,Ql=`HttpEndpoint`,$l=`HostId`,eu=`HibernationOptions`,tu=`HibernationOptionsRequest`,nu=`HttpProtocolIpv6`,ru=`HttpPutResponseHopLimit`,iu=`HostResourceGroupArn`,au=`HibernationSupported`,ou=`HttpTokens`,su=`HostnameType`,cu=`Hibernate`,lu=`Hypervisor`,uu=`Id`,du=`Ipv6Addresses`,fu=`Ipv6AddressAttribute`,pu=`Ipv6AddressCount`,mu=`InstanceAttachmentEnaSrdSpecification`,hu=`InstanceAttachmentEnaSrdUdpSpecification`,gu=`InferenceAcceleratorInfo`,_u=`Ipv4AddressesPerInterface`,vu=`Ipv6AddressesPerInterface`,yu=`Ipv4AddressesPerSecondaryInterface`,bu=`ImageAllowed`,xu=`IpAddress`,Su=`Ipv6Address`,Cu=`InstanceBlockDeviceMapping`,wu=`InstanceBlockDeviceMappingList`,Tu=`InstanceBlockDeviceMappingSpecification`,Eu=`InstanceBlockDeviceMappingSpecificationList`,Du=`Ipv6CidrBlock`,Ou=`Ipv6CidrBlockAssociationSet`,ku=`Ipv6CidrBlockNetworkBorderGroup`,Au=`Ipv6CidrBlockState`,ju=`IncludeDeprecated`,Mu=`InferenceDeviceInfo`,Nu=`InferenceDeviceInfoList`,Pu=`InferenceDeviceMemoryInfo`,Fu=`IncludeDisabled`,Iu=`IsDefault`,Lu=`IsEgress`,Ru=`InternetGateway`,zu=`InternetGatewayAttachment`,Bu=`InternetGatewayAttachmentList`,Vu=`InternetGatewayBlockMode`,Hu=`InternetGatewayExclusion`,Uu=`InternetGatewayId`,Wu=`InternetGatewayIdList`,Gu=`InternetGatewayIds`,Ku=`InternetGatewayList`,qu=`InternetGateways`,Ju=`InstanceId`,Yu=`InstanceIpv6Address`,Xu=`InstanceIpv6AddressList`,Zu=`InstanceInterruptionBehavior`,Qu=`IamInstanceProfile`,$u=`IamInstanceProfileAssociation`,ed=`IamInstanceProfileAssociationSet`,td=`IamInstanceProfileAssociations`,nd=`Ipv6IpamPoolId`,rd=`Ipv4IpamPoolId`,id=`InstanceIpv4PrefixList`,ad=`InstanceIpv6PrefixList`,od=`IamInstanceProfileSpecification`,sd=`InstanceIpv4Prefix`,cd=`InstanceIpv6Prefix`,ld=`InstanceInitiatedShutdownBehavior`,ud=`ImageIdStringList`,dd=`InstanceIdStringList`,fd=`ImageId`,pd=`ImageIds`,md=`InstanceIds`,hd=`ImportKeyPair`,gd=`ImportKeyPairRequest`,_d=`ImportKeyPairResult`,vd=`ImageLocation`,yd=`ImageList`,bd=`InstanceLifecycle`,xd=`InstanceList`,Sd=`IpList`,Cd=`InstanceMaintenanceOptions`,wd=`InstanceMaintenanceOptionsRequest`,Td=`InstanceMarketOptionsRequest`,Ed=`InstanceMetadataOptionsRequest`,Dd=`InstanceMetadataOptionsResponse`,Od=`InstanceMarketOptions`,kd=`IncludeManagedResources`,Ad=`InstanceMetadataTags`,jd=`Ipv6Native`,Md=`InstanceNetworkInterface`,Nd=`InstanceNetworkInterfaceAssociation`,Pd=`InstanceNetworkInterfaceAttachment`,Fd=`InstanceNetworkInterfaceList`,Id=`InstanceNetworkInterfaceSpecification`,Ld=`InstanceNetworkInterfaceSpecificationList`,Rd=`Ipv6NetmaskLength`,zd=`Ipv4NetmaskLength`,Bd=`InstanceNetworkPerformanceOptions`,Vd=`InstanceNetworkPerformanceOptionsRequest`,Hd=`ImageOwnerAlias`,Ud=`IpOwnerId`,Wd=`InstanceOwnerId`,Gd=`InstanceOwningService`,Kd=`Ipv6PrefixCount`,qd=`Ipv4PrefixCount`,Jd=`IpPermissionsEgress`,Yd=`IpamPoolId`,Xd=`InstancePrivateIpAddress`,rie=`InstancePrivateIpAddressList`,iie=`IsPrimaryIpv6`,aie=`IncludePublicKey`,oie=`IpPermissionList`,sie=`Ipv4PrefixList`,cie=`Ipv6PrefixList`,lie=`Ipv4PrefixSpecificationRequest`,uie=`Ipv6PrefixSpecificationRequest`,Zd=`Ipv6Prefixes`,Qd=`IpPermissions`,die=`IpPermission`,$d=`IpProtocol`,ef=`Ipv6Prefix`,tf=`Ipv6Pool`,nf=`Ipv4Prefixes`,rf=`Ipv4Prefix`,fie=`IsPrimary`,pie=`IpRangeList`,mie=`Ipv6RangeList`,hie=`IpRanges`,gie=`IpRange`,_ie=`Ipv6Ranges`,vie=`Ipv6Range`,yie=`InstanceStateChange`,bie=`InstanceStateChangeList`,xie=`InstanceSecondaryInterfaceAttachment`,Sie=`InstanceSecondaryInterfaceList`,Cie=`InstanceSecondaryInterfacePrivateIpAddress`,wie=`InstanceSecondaryInterfacePrivateIpAddressList`,Tie=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,Eie=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Die=`InstanceSecondaryInterfaceSpecificationListRequest`,Oie=`InstanceSecondaryInterfaceSpecificationRequest`,kie=`InstanceSecondaryInterface`,af=`InstanceStorageInfo`,Aie=`InstanceStorageSupported`,of=`ImdsSupport`,jie=`InstanceState`,sf=`IpSource`,Mie=`Ipv6Supported`,cf=`InstanceType`,Nie=`InstanceTypeInfoList`,Pie=`InstanceTypeInfo`,Fie=`ImageType`,lf=`InstanceTenancy`,uf=`InstanceTypes`,df=`InterfaceType`,Iie=`IncludeUnsupportedInRegion`,Lie=`ImageWatermarks`,Rie=`ImageWatermarkList`,zie=`ImageWatermark`,Bie=`Images`,Vie=`Image`,Hie=`Instance`,Uie=`Instances`,ff=`Iops`,Wie=`Key`,Gie=`KeyFormat`,pf=`KeyFingerprint`,mf=`KernelId`,hf=`KmsKeyId`,Kie=`KeyMaterial`,gf=`KeyName`,qie=`KeyNameStringList`,Jie=`KeyNames`,Yie=`KeyPairs`,_f=`KeyPairId`,Xie=`KeyPairIdStringList`,Zie=`KeyPairIds`,Qie=`KeyPairInfo`,$ie=`KeyPairList`,eae=`KeyPair`,vf=`KeyType`,tae=`Kernel`,nae=`Lambda`,yf=`LicenseConfigurationArn`,rae=`LicenseConfigurationRequest`,iae=`LicenseConfiguration`,aae=`LambdaExclusion`,oae=`LogicalGpuCount`,bf=`LocalGatewayId`,xf=`LinkedGroupId`,sae=`LicenseList`,cae=`LastLaunchedTime`,lae=`LicenseSpecifications`,uae=`LicenseSpecificationListRequest`,dae=`LicenseSpecification`,fae=`LaunchTemplate`,pae=`LaunchTemplateId`,mae=`LaunchTemplateName`,hae=`LaunchTemplateSpecification`,gae=`LaunchTime`,_ae=`Latest`,vae=`Licenses`,yae=`Location`,Sf=`MultiAttachEnabled`,Cf=`MediaAcceleratorInfo`,wf=`MacAddress`,Tf=`MaximumBandwidthInMbps`,Ef=`MapCustomerOwnedIpOnLaunch`,bae=`MaxCount`,xae=`MinCount`,Sae=`MediaDeviceInfo`,Cae=`MediaDeviceInfoList`,wae=`MediaDeviceMemoryInfo`,Tae=`MaximumEbsAttachments`,Eae=`MaximumEbsCards`,Dae=`MaximumEfaInterfaces`,Oae=`MaximumEnaQueueCount`,kae=`MaximumEnaQueueCountPerInterface`,Df=`MaximumIops`,Aae=`ModifyInstanceAttributeRequest`,jae=`ModifyInstanceAttributeValue`,Mae=`ModifyInstanceAttribute`,Of=`MemoryInfo`,Nae=`MaximumNetworkCards`,kf=`MaximumNetworkInterfaces`,Af=`MetadataOptions`,jf=`MaintenanceOptions`,Mf=`MapPublicIpOnLaunch`,Pae=`MaxPrice`,Nf=`MaxResults`,Fae=`ModifySubnetAttributeRequest`,Iae=`ModifySubnetAttribute`,Lae=`MaximumSecondaryNetworkInterfaces`,Pf=`ModificationState`,Rae=`MarketType`,Ff=`MaximumThroughputInMBps`,zae=`ModifyVolumeRequest`,Bae=`ModifyVolumeResult`,Vae=`ModifyVolume`,Hae=`Main`,If=`Manufacturer`,Uae=`Managed`,Lf=`Message`,Wae=`Messages`,Rf=`Mode`,zf=`Monitoring`,Bf=`Name`,Vf=`NetworkBorderGroup`,Gae=`NetworkCards`,Hf=`NetworkCardIndex`,Kae=`NetworkCardInfoList`,qae=`NetworkCardInfo`,Uf=`NoDevice`,Jae=`NeuronDeviceCoreInfo`,Yae=`NeuronDeviceInfo`,Xae=`NeuronDeviceInfoList`,Zae=`NeuronDeviceMemoryInfo`,Qae=`NeuronDevices`,$ae=`NitroEnclavesSupport`,Wf=`NatGateway`,eoe=`NatGatewayAddresses`,toe=`NatGatewayAttachedAppliance`,noe=`NatGatewayAttachedApplianceList`,roe=`NatGatewayAddressList`,ioe=`NatGatewayAddress`,aoe=`NatGatewayExclusion`,Gf=`NatGatewayId`,ooe=`NatGatewayIdStringList`,soe=`NatGatewayIds`,coe=`NatGatewayList`,loe=`NatGateways`,Kf=`NetworkInterfaceId`,uoe=`NetworkInterfaceOwnerId`,qf=`NetworkInterfaces`,Jf=`NetworkInfo`,Yf=`NeuronInfo`,Xf=`NetworkPerformanceOptions`,Zf=`NetworkPerformance`,doe=`NoReboot`,Qf=`NvmeSupport`,$f=`NitroTpmInfo`,foe=`NitroTpmSupport`,poe=`NitroTpmSupportedVersionsList`,ep=`NextToken`,tp=`NestedVirtualization`,moe=`Origin`,np=`OutpostArn`,hoe=`OwnerAlias`,rp=`OwnerId`,ip=`OptInStatus`,goe=`OriginalIops`,_oe=`OwnerIds`,voe=`OriginalMultiAttachEnabled`,ap=`OdbNetworkArn`,yoe=`OperatorRequest`,boe=`OperatorResponse`,xoe=`OwnerStringList`,Soe=`OriginalSize`,Coe=`OriginalThroughput`,woe=`OriginalVolumeType`,op=`Operator`,Toe=`Output`,Eoe=`Owners`,sp=`Owner`,cp=`Principal`,lp=`ProvisionedBandwidth`,Doe=`PeakBandwidthInGbps`,Ooe=`ProductCodeId`,koe=`ProductCodeList`,Aoe=`ProductCodeType`,up=`PartitionCount`,joe=`ProductCode`,dp=`ProductCodes`,Moe=`PrivateDnsHostnameTypeOnLaunch`,fp=`PrivateDnsName`,pp=`PrivateDnsNameOptions`,mp=`PrivateDnsNameOptionsOnLaunch`,Noe=`PrivateDnsNameOptionsRequest`,Poe=`PrivateDnsNameOptionsResponse`,hp=`PublicDnsName`,gp=`PlatformDetails`,_p=`PlacementGroup`,vp=`ParentGroupId`,Foe=`PlacementGroupIdStringList`,yp=`PlacementGroupInfo`,Ioe=`PlacementGroupList`,Loe=`PlacementGroupStrategyList`,Roe=`PlacementGroups`,bp=`PublicIp`,zoe=`PrivateIpAddressCount`,Boe=`PrivateIpAddressSpecification`,Voe=`PrivateIpAddressSpecificationList`,xp=`PrivateIpAddress`,Sp=`PrivateIpAddresses`,Hoe=`PublicIpAddress`,Cp=`PublicIpv4Pool`,Uoe=`PublicIpStringList`,Woe=`PrimaryIpv6`,Goe=`PrivateIp`,wp=`ProcessorInfo`,Koe=`PublicIps`,qoe=`PublicKey`,Joe=`PublicKeyMaterial`,Tp=`PrefixListId`,Yoe=`PrefixListIdList`,Xoe=`PrefixListIds`,Zoe=`PartitionNumber`,Ep=`PeeringStatus`,Qoe=`PhcSupport`,$oe=`PreviousState`,ese=`ProvisionTime`,tse=`PresignedUrl`,nse=`PropagatingVgw`,rse=`PropagatingVgwList`,ise=`PropagatingVgws`,ase=`ParentZoneId`,ose=`ParentZoneName`,Dp=`Platform`,Op=`Placement`,kp=`Primary`,Ap=`Progress`,sse=`Provisioned`,cse=`Public`,jp=`Return`,lse=`ReleaseAddressRequest`,use=`ReleaseAddress`,dse=`RestorableByUserIds`,fse=`RestorableBy`,pse=`ReturnCode`,Mp=`RootDeviceName`,Np=`RootDeviceType`,mse=`RootDeviceTypeList`,hse=`RestoreExpiryTime`,gse=`ResourceExclusions`,_se=`RegionGeography`,vse=`ReferencedGroupId`,yse=`ReferencedGroupInfo`,bse=`RegionGeographyList`,xse=`RunInstancesMonitoringEnabled`,Sse=`RebootInstancesRequest`,Cse=`RegisterImageRequest`,wse=`RegisterImageResult`,Tse=`RunInstancesRequest`,Ese=`RunInstancesUserData`,Pp=`RamdiskId`,Dse=`ReservationId`,Ose=`RebootInstances`,kse=`RegisterImage`,Ase=`RequesterId`,jse=`RunInstances`,Mse=`RegionList`,Nse=`ReservationList`,Pse=`RouteList`,Fse=`RebootMigrationSupport`,Ise=`RebootMigration`,Fp=`RegionName`,Lse=`RegionNameStringList`,Rse=`RegionNames`,zse=`ReferencedSecurityGroup`,Bse=`RevokeSecurityGroupEgress`,Vse=`RevokeSecurityGroupEgressRequest`,Hse=`RevokeSecurityGroupEgressResult`,Use=`RevokeSecurityGroupIngressRequest`,Wse=`RevokeSecurityGroupIngressResult`,Gse=`RevokeSecurityGroupIngress`,Kse=`RevokedSecurityGroupRule`,qse=`RevokedSecurityGroupRuleList`,Ip=`RevokedSecurityGroupRules`,Jse=`RouteTableAssociation`,Yse=`RouteTableAssociationId`,Xse=`RouteTableAssociationList`,Zse=`RouteTableAssociationState`,Lp=`RouteTableId`,Qse=`RouteTableIdStringList`,$se=`RouteTableIds`,ece=`RouteTableList`,tce=`ResourceType`,nce=`RequestTime`,Rp=`RouteTable`,rce=`RouteTables`,ice=`Ramdisk`,ace=`Regions`,oce=`Region`,sce=`Requested`,cce=`Reservations`,lce=`Reservation`,uce=`Route`,dce=`Routes`,fce=`SecondaryAllocationIds`,pce=`SecondaryAllocationId`,mce=`SupportedAdditionalProcessorFeatureList`,hce=`SubnetArn`,gce=`SupportedArchitectures`,_ce=`SupportedBootModes`,vce=`SubnetCidrBlockState`,yce=`SustainedClockSpeedInGhz`,zp=`SourceDestCheck`,bce=`SpreadDomain`,xce=`SupportedFeatures`,Sce=`SubGeography`,Bp=`SecurityGroupArn`,Vp=`SecurityGroupId`,Cce=`SecurityGroupIdStringList`,wce=`SecurityGroupIds`,Tce=`SecurityGroupList`,Hp=`SecurityGroupRules`,Ece=`SecurityGroupRuleArn`,Up=`SecurityGroupRuleIds`,Dce=`SecurityGroupRuleIdList`,Wp=`SecurityGroupRuleId`,Oce=`SecurityGroupRuleList`,kce=`SecurityGroupRule`,Ace=`SecurityGroupStringList`,Gp=`SecurityGroups`,Kp=`SecurityGroup`,jce=`SubnetIds`,Mce=`SubnetIpv6CidrBlockAssociation`,Nce=`SubnetIpv6CidrBlockAssociationSet`,Pce=`SourceImageCreationTime`,Fce=`SizeInGB`,qp=`SourceImageId`,Ice=`SecondaryInterfaceId`,Lce=`SourceInstanceId`,Jp=`SizeInMiB`,Rce=`SpotInstanceRequestId`,Yp=`SourceImageRegion`,zce=`StartInstancesRequest`,Bce=`StartInstancesResult`,Vce=`StopInstancesRequest`,Hce=`StopInstancesResult`,Uce=`SupportedInRegion`,Wce=`SnapshotIdStringList`,Gce=`SubnetIdStringList`,Kce=`SpotInstanceType`,Xp=`SecondaryInterfaces`,qce=`SecondaryInterface`,Zp=`SnapshotId`,Jce=`SnapshotIds`,Yce=`StartingInstances`,Xce=`StartInstances`,Zce=`StoppingInstances`,Qce=`StopInstances`,Qp=`SubnetId`,$ce=`SnapshotLocation`,ele=`SnapshotList`,$p=`SpreadLevel`,tle=`SubnetList`,nle=`ServiceManaged`,rle=`SpotMarketOptions`,em=`StatusMessage`,tm=`StateMessage`,ile=`SecondaryNetworkId`,nm=`SriovNetSupport`,ale=`SecondaryNetworkSupported`,ole=`SpotOptions`,rm=`SkipOsShutdown`,sle=`SecondaryPrivateIpAddresses`,im=`SecondaryPrivateIpAddressCount`,cle=`SecondaryPrivateIpAddress`,lle=`SupportedRootDeviceTypes`,ule=`SourceRegion`,am=`StateReason`,om=`SourceSecurityGroupName`,sm=`SourceSecurityGroupOwnerId`,dle=`SourceSnapshotId`,cm=`SecondarySubnetId`,fle=`SupportedStrategies`,lm=`StartTime`,ple=`StateTransitionReason`,um=`SseType`,mle=`StorageTier`,hle=`SupportedUsageClasses`,gle=`SensitiveUserData`,_le=`SourceVolumeId`,vle=`SupportedVirtualizationTypes`,yle=`SupportedVersions`,dm=`Size`,ble=`Snapshots`,xle=`Snapshot`,fm=`State`,pm=`Status`,mm=`Strategy`,hm=`Subnet`,Sle=`Subnets`,gm=`Tags`,_m=`TcpEstablishedTimeout`,Cle=`TotalFpgaMemoryInMiB`,vm=`TransitGatewayId`,wle=`TotalGpuMemoryInMiB`,Tle=`TerminateInstances`,Ele=`TotalInferenceMemoryInMiB`,Dle=`TerminateInstancesRequest`,Ole=`TerminateInstancesResult`,kle=`TargetIops`,Ale=`TerminatingInstances`,jle=`TagList`,Mle=`TargetMultiAttachEnabled`,Nle=`TotalMediaMemoryInMiB`,Ple=`TotalNeuronDeviceMemoryInMiB`,ym=`ToPort`,bm=`ThreadsPerCore`,Fle=`ThreadsPerCoreList`,xm=`TagSpecifications`,Ile=`TotalSizeInGB`,Lle=`TagSpecificationList`,Sm=`TagSpecification`,Rle=`TargetSize`,Cm=`TpmSupport`,zle=`TargetThroughput`,Ble=`TransferType`,Vle=`TargetVolumeType`,wm=`Tag`,Hle=`Tenancy`,Tm=`Throughput`,Em=`Timestamp`,Dm=`Type`,Ule=`UsageClassTypeList`,Wle=`UefiData`,Om=`UserData`,km=`UserId`,Gle=`UserIdGroupPairs`,Kle=`UserIdGroupPairList`,qle=`UserIdGroupPair`,Am=`UnknownIpPermissions`,jm=`UsageOperation`,Jle=`UsageOperationUpdateTime`,Mm=`UdpStreamTimeout`,Nm=`UdpTimeout`,Pm=`Value`,Yle=`VolumeAttachmentList`,Xle=`VolumeAttachment`,Zle=`VpcCidrBlockAssociation`,Qle=`VpcCidrBlockAssociationSet`,$le=`VpcCidrBlockState`,Fm=`VCpuInfo`,eue=`ValidCores`,Im=`VpcEncryptionControl`,tue=`VpcEncryptionControlConfiguration`,nue=`VpcEncryptionControlExclusion`,rue=`VpcEncryptionControlExclusions`,iue=`VpcEncryptionControlId`,Lm=`VpcEndpointId`,Rm=`VpcId`,aue=`VpcIpv6CidrBlockAssociation`,oue=`VpcIpv6CidrBlockAssociationSet`,zm=`VolumeInitializationRate`,sue=`VolumeIdStringList`,cue=`VpcIdStringList`,Bm=`VolumeId`,lue=`VolumeIds`,uue=`VpcIds`,due=`VpcLattice`,fue=`VpcLatticeExclusion`,pue=`VolumeList`,mue=`VpcList`,Vm=`VolumeModification`,Hm=`VirtualName`,hue=`VolumeOwnerId`,gue=`VpcPeering`,Um=`VpcPeeringConnectionId`,_ue=`VpcPeeringExclusion`,vue=`VirtualPrivateGateway`,yue=`VirtualPrivateGatewayExclusion`,bue=`ValueStringList`,Wm=`VolumeSize`,Gm=`VolumeType`,xue=`VirtualizationTypeList`,Sue=`ValidThreadsPerCore`,Km=`VirtualizationType`,Cue=`ValidUntil`,wue=`Values`,qm=`Version`,Tue=`Volumes`,Eue=`Volume`,Jm=`Vpc`,Due=`Vpcs`,Oue=`WatermarkCreationTime`,kue=`WatermarkKey`,Aue=`WorkloadsList`,jue=`Workloads`,Ym=`ZoneId`,Mue=`ZoneIdStringList`,Nue=`ZoneIds`,Xm=`ZoneName`,Pue=`ZoneNameStringList`,Fue=`ZoneNames`,Iue=`ZoneType`,Lue=`attachedApplianceSet`,Rue=`applianceArn`,zue=`additionalFlexibleNetworkInterfaces`,Zm=`allocationId`,Bue=`availableIpAddressCount`,Vue=`assignIpv6AddressOnCreation`,Qm=`additionalInfo`,$m=`associationId`,eh=`attachmentId`,Hue=`amiLaunchIndex`,Uue=`attachmentLimitType`,Wue=`availabilityMode`,Gue=`associatePublicIpAddress`,Kue=`amazonProvidedIpv6CidrBlock`,que=`autoProvisionZones`,Jue=`autoRecoverySupported`,Yue=`allowReassociation`,th=`associatedResource`,Xue=`autoRecovery`,nh=`associationState`,Zue=`autoScalingIps`,Que=`amdSevSnp`,$ue=`addressesSet`,ede=`associationSet`,rh=`attachmentSet`,tde=`attachmentState`,ih=`attachTime`,ah=`availabilityZone`,oh=`availabilityZoneId`,nde=`availabilityZoneInfo`,sh=`accelerators`,rde=`affinity`,ch=`arn`,lh=`architecture`,uh=`association`,dh=`attachment`,ide=`attribute`,ade=`baselineBandwidthInGbps`,fh=`baselineBandwidthInMbps`,ph=`blockDeviceMapping`,mh=`baselineIops`,hh=`bootMode`,ode=`bareMetal`,gh=`blockPublicAccessStates`,sde=`burstablePerformanceSupported`,_h=`baselineThroughputInMBps`,cde=`bandwidthWeighting`,lde=`bandwidthWeightings`,vh=`cidrBlock`,ude=`cidrBlockAssociationSet`,dde=`capacityBlockId`,fde=`cidrBlockState`,pde=`coreCount`,mde=`completionDurationMinutes`,hde=`creationDate`,gde=`carrierGatewayId`,_de=`currentGeneration`,yh=`carrierIp`,vde=`currentInstanceBootMode`,bh=`cidrIp`,xh=`cidrIpv6`,Sh=`cidrIpv4`,yde=`coreInfo`,bde=`coreNetworkArn`,xde=`cpuOptions`,Ch=`customerOwnedIp`,wh=`customerOwnedIpv4Pool`,Th=`capacityReservationId`,Sde=`capacityReservationPreference`,Cde=`capacityReservationResourceGroupArn`,wde=`capacityReservationSpecification`,Tde=`capacityReservationTarget`,Ede=`currentState`,Eh=`clientToken`,Dh=`connectionTrackingConfiguration`,Dde=`completionTime`,Ode=`connectivityType`,Oh=`createTime`,kh=`code`,kde=`configured`,Ah=`count`,jh=`disableApiTermination`,Mh=`destinationCidrBlock`,Ade=`defaultCores`,jde=`dataEncryptionKeyId`,Mde=`defaultEnaQueueCountPerInterface`,Nde=`defaultForAz`,Pde=`dedicatedHostsSupported`,Nh=`deviceIndex`,Ph=`destinationIpv6CidrBlock`,Fh=`deviceName`,Fde=`defaultNetworkCardIndex`,Ide=`dnsName`,Lde=`dhcpOptionsId`,Ih=`deleteOnTermination`,Rde=`destinationPrefixListId`,zde=`deregistrationProtection`,p=`dryRun`,Bde=`destinationRegion`,Vde=`deleteSnapshotResultSet`,Hde=`defaultTcpEstablishedTimeout`,Ude=`defaultThreadsPerCore`,Wde=`deprecationTime`,Gde=`deleteTime`,Kde=`defaultUdpStreamTimeout`,qde=`defaultUdpTimeout`,Jde=`defaultVCpus`,Lh=`description`,Yde=`device`,Xde=`disks`,Rh=`domain`,zh=`ebsCardIndex`,Zde=`ebsCardSet`,Qde=`encryptionControl`,$de=`enableDns64`,efe=`elasticFileSystem`,tfe=`elasticGpuAssociationId`,nfe=`elasticGpuAssociationState`,rfe=`elasticGpuAssociationSet`,ife=`elasticGpuAssociationTime`,afe=`elasticGpuId`,ofe=`elasticInferenceAcceleratorArn`,sfe=`elasticInferenceAcceleratorAssociationId`,cfe=`elasticInferenceAcceleratorAssociationState`,lfe=`elasticInferenceAcceleratorAssociationSet`,ufe=`elasticInferenceAcceleratorAssociationTime`,dfe=`encryptionInTransitSupported`,ffe=`ebsInfo`,pfe=`efaInfo`,mfe=`enableLniAtDeviceIndex`,Bh=`ebsOptimized`,hfe=`ebsOptimizedInfo`,gfe=`egressOnlyInternetGateway`,Vh=`egressOnlyInternetGatewayId`,_fe=`ebsOptimizedSupport`,vfe=`enclaveOptions`,yfe=`enaQueueCount`,m=`ec2QueryName`,Hh=`enableResourceNameDnsAAAARecord`,Uh=`enableResourceNameDnsARecord`,bfe=`enaSrdEnabled`,xfe=`enaSrdSpecification`,Sfe=`enaSrdSupported`,Cfe=`enaSrdUdpEnabled`,wfe=`enaSrdUdpSpecification`,Tfe=`efaSupported`,Wh=`encryptionSupport`,Gh=`enaSupport`,Efe=`endTime`,Kh=`ebs`,qh=`enabled`,Jh=`encrypted`,Yh=`failureCode`,Dfe=`flexibleEnaQueuesSupport`,Ofe=`fpgaInfo`,Xh=`failureMessage`,Zh=`fromPort`,kfe=`fastRestored`,Afe=`fullSnapshotSizeInBytes`,Qh=`freeTierEligible`,jfe=`force`,Mfe=`fpgas`,Nfe=`groupArn`,Pfe=`groupDescription`,$h=`gatewayId`,eg=`gpuInfo`,tg=`groupId`,ng=`groupLongName`,rg=`groupName`,ig=`groupOwnerId`,ag=`gpuPartitionSize`,og=`geographySet`,sg=`groupSet`,cg=`gpus`,lg=`groups`,ug=`hypervisor`,dg=`hiddenByDefault`,fg=`httpEndpoint`,pg=`hostId`,mg=`hibernationOptions`,hg=`httpProtocolIpv6`,gg=`httpPutResponseHopLimit`,_g=`hostResourceGroupArn`,vg=`hibernationSupported`,yg=`httpTokens`,bg=`hostnameType`,xg=`id`,Sg=`ipv6AddressAttribute`,Cg=`ipv6AddressCount`,wg=`inferenceAcceleratorInfo`,Tg=`ipv4AddressesPerInterface`,Eg=`ipv6AddressesPerInterface`,Dg=`ipv4AddressesPerSecondaryInterface`,Og=`ipv6AddressesSet`,kg=`imageAllowed`,Ag=`ipAddress`,jg=`ipv6Address`,Mg=`ipv6CidrBlock`,Ng=`ipv6CidrBlockAssociationSet`,Pg=`ipv6CidrBlockState`,Fg=`isDefault`,Ig=`isEgress`,Lg=`internetGateway`,Rg=`internetGatewayBlockMode`,zg=`internetGatewayId`,Bg=`internetGatewaySet`,Vg=`instanceId`,Hg=`iamInstanceProfile`,Ug=`iamInstanceProfileAssociation`,Wg=`iamInstanceProfileAssociationSet`,Gg=`instanceInitiatedShutdownBehavior`,Kg=`imageId`,qg=`imageLocation`,Jg=`instanceLifecycle`,Yg=`instanceMetadataTags`,Xg=`ipv6Native`,Zg=`imageOwnerAlias`,Qg=`imageOwnerId`,$g=`instanceOwnerId`,e_=`ipOwnerId`,t_=`instanceOwningService`,n_=`ipPermissionsEgress`,r_=`isPrimaryIpv6`,i_=`ipv4PrefixSet`,a_=`ipv6PrefixSet`,o_=`ipProtocol`,s_=`ipPermissions`,c_=`ipv4Prefix`,l_=`ipv6Pool`,u_=`ipv6Prefix`,d_=`isPublic`,f_=`isPrimary`,p_=`ipRanges`,m_=`ipv6Ranges`,h_=`instanceStorageInfo`,g_=`instanceStorageSupported`,__=`imagesSet`,v_=`imageState`,y_=`imdsSupport`,b_=`instancesSet`,x_=`instanceState`,S_=`ipSource`,C_=`ipv6Supported`,w_=`instanceType`,T_=`instanceTypeSet`,E_=`idempotencyToken`,D_=`imageType`,O_=`instanceTenancy`,k_=`interfaceType`,A_=`imageWatermarkSet`,j_=`iops`,h=`item`,M_=`key`,N_=`keyFingerprint`,P_=`kernelId`,F_=`kmsKeyId`,I_=`keyMaterial`,L_=`keyName`,R_=`keyPairId`,z_=`keySet`,B_=`keyType`,V_=`kernel`,H_=`lambda`,U_=`licenseConfigurationArn`,W_=`logicalGpuCount`,G_=`localGatewayId`,K_=`linkedGroupId`,q_=`lastLaunchedTime`,J_=`licenseSet`,Y_=`launchTime`,X_=`multiAttachEnabled`,Z_=`mediaAcceleratorInfo`,Q_=`macAddress`,$_=`maximumBandwidthInMbps`,ev=`mapCustomerOwnedIpOnLaunch`,tv=`maximumEbsAttachments`,nv=`maximumEbsCards`,rv=`maximumEfaInterfaces`,iv=`maximumEnaQueueCount`,av=`maximumEnaQueueCountPerInterface`,ov=`maximumIops`,sv=`memoryInfo`,cv=`maximumNetworkCards`,lv=`maximumNetworkInterfaces`,uv=`metadataOptions`,dv=`maintenanceOptions`,fv=`mapPublicIpOnLaunch`,pv=`maxResults`,mv=`messageSet`,hv=`maximumSecondaryNetworkInterfaces`,gv=`modificationState`,_v=`maximumThroughputInMBps`,vv=`main`,yv=`manufacturer`,bv=`managed`,xv=`message`,Sv=`mode`,Cv=`monitoring`,wv=`name`,Tv=`networkBorderGroup`,Ev=`networkCards`,Dv=`networkCardIndex`,Ov=`noDevice`,kv=`neuronDevices`,Av=`nitroEnclavesSupport`,jv=`natGateway`,Mv=`natGatewayAddressSet`,Nv=`natGatewayId`,Pv=`natGatewaySet`,Fv=`networkInterfaceId`,Iv=`networkInterfaceOwnerId`,Lv=`networkInterfaceSet`,Rv=`networkInterface`,zv=`networkInfo`,Bv=`neuronInfo`,Vv=`networkPerformanceOptions`,Hv=`networkPerformance`,Uv=`noReboot`,Wv=`nvmeSupport`,Gv=`nitroTpmInfo`,Kv=`nitroTpmSupport`,qv=`nextToken`,Jv=`nestedVirtualization`,Yv=`origin`,Xv=`outpostArn`,Zv=`ownerAlias`,Qv=`ownerId`,$v=`optInStatus`,ey=`originalIops`,ty=`originalMultiAttachEnabled`,ny=`odbNetworkArn`,ry=`originalSize`,iy=`originalThroughput`,ay=`originalVolumeType`,oy=`operator`,sy=`output`,cy=`principal`,ly=`provisionedBandwidth`,uy=`peakBandwidthInGbps`,dy=`productCodes`,fy=`partitionCount`,py=`productCode`,my=`privateDnsNameOptions`,hy=`privateDnsNameOptionsOnLaunch`,gy=`privateDnsName`,_y=`publicDnsName`,vy=`platformDetails`,yy=`placementGroup`,by=`placementGroupInfo`,xy=`parentGroupId`,Sy=`placementGroupSet`,Cy=`publicIp`,wy=`privateIpAddressesSet`,Ty=`privateIpAddressSet`,Ey=`privateIpAddress`,Dy=`publicIpv4Pool`,Oy=`processorInfo`,ky=`privateIp`,Ay=`publicKey`,jy=`publicKeyMaterial`,My=`prefixListId`,Ny=`prefixListIds`,Py=`partitionNumber`,Fy=`peeringStatus`,Iy=`phcSupport`,Ly=`previousState`,Ry=`provisionTime`,zy=`presignedUrl`,By=`propagatingVgwSet`,Vy=`parentZoneId`,Hy=`parentZoneName`,Uy=`platform`,Wy=`placement`,Gy=`primary`,Ky=`progress`,qy=`provisioned`,Jy=`return`,Yy=`returnCode`,Xy=`rootDeviceName`,Zy=`rootDeviceType`,Qy=`restoreExpiryTime`,$y=`regionEndpoint`,eb=`resourceExclusions`,tb=`referencedGroupId`,nb=`referencedGroupInfo`,rb=`reservationId`,ib=`ramdiskId`,ab=`regionInfo`,ob=`requesterId`,sb=`rebootMigrationSupport`,cb=`rebootMigration`,lb=`regionName`,ub=`revokedSecurityGroupRuleSet`,db=`reservationSet`,fb=`routeSet`,pb=`routeTableAssociationId`,mb=`routeTableId`,hb=`routeTableSet`,gb=`resourceType`,_b=`requestTime`,vb=`routeTable`,yb=`ramdisk`,bb=`reason`,xb=`requested`,Sb=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,Cb=`supportedArchitectures`,wb=`subnetArn`,Tb=`supportedBootModes`,Eb=`sustainedClockSpeedInGhz`,Db=`sourceDestCheck`,Ob=`spreadDomain`,kb=`supportedFeatures`,Ab=`securityGroupArn`,jb=`securityGroupInfo`,Mb=`securityGroupRuleArn`,Nb=`securityGroupRuleId`,Pb=`securityGroupRuleSet`,Fb=`subGeographySet`,Ib=`sourceImageCreationTime`,Lb=`sizeInGB`,Rb=`sourceInstanceId`,zb=`secondaryInterfaceId`,Bb=`sourceImageId`,Vb=`sizeInMiB`,Hb=`sourceImageRegion`,Ub=`spotInstanceRequestId`,Wb=`supportedInRegion`,Gb=`secondaryInterfaceSet`,Kb=`snapshotId`,qb=`subnetId`,Jb=`spreadLevel`,Yb=`serviceManaged`,Xb=`statusMessage`,Zb=`stateMessage`,Qb=`secondaryNetworkId`,$b=`secondaryNetworkSupported`,ex=`sriovNetSupport`,tx=`secondaryPrivateIpAddressCount`,nx=`supportedRootDeviceTypes`,rx=`stateReason`,ix=`sourceSecurityGroupName`,ax=`sourceSecurityGroupOwnerId`,ox=`secondarySubnetId`,sx=`snapshotSet`,cx=`subnetSet`,lx=`supportedStrategies`,ux=`startTime`,dx=`sseType`,fx=`storageTier`,px=`supportedUsageClasses`,mx=`sourceVolumeId`,hx=`supportedVirtualizationTypes`,gx=`supportedVersions`,_x=`size`,vx=`state`,yx=`status`,bx=`strategy`,xx=`subnet`,Sx=`tenancy`,Cx=`tcpEstablishedTimeout`,wx=`totalFpgaMemoryInMiB`,Tx=`transitGatewayId`,Ex=`totalGpuMemoryInMiB`,Dx=`totalInferenceMemoryInMiB`,Ox=`targetIops`,kx=`targetMultiAttachEnabled`,Ax=`totalMediaMemoryInMiB`,jx=`totalNeuronDeviceMemoryInMiB`,Mx=`toPort`,Nx=`threadsPerCore`,Px=`tagSet`,Fx=`totalSizeInGB`,Ix=`targetSize`,Lx=`tpmSupport`,Rx=`targetThroughput`,zx=`transferType`,Bx=`targetVolumeType`,Vx=`throughput`,Hx=`timestamp`,Ux=`type`,Wx=`userData`,Gx=`userId`,Kx=`unknownIpPermissionSet`,qx=`usageOperation`,Jx=`usageOperationUpdateTime`,Yx=`udpStreamTimeout`,Xx=`udpTimeout`,Zx=`value`,Qx=`vCpuInfo`,$x=`validCores`,eS=`vpcEncryptionControlId`,tS=`vpcEndpointId`,nS=`vpcId`,rS=`volumeInitializationRate`,iS=`volumeId`,aS=`vpcLattice`,oS=`volumeModification`,sS=`virtualName`,cS=`volumeOwnerId`,lS=`vpcPeering`,uS=`vpcPeeringConnectionId`,dS=`virtualPrivateGateway`,fS=`volumeSet`,pS=`volumeSize`,mS=`vpcSet`,hS=`volumeType`,gS=`validThreadsPerCore`,_S=`virtualizationType`,vS=`version`,yS=`vpc`,bS=`watermarkCreationTime`,xS=`watermarkKey`,SS=`workloadSet`,g=`xmlName`,CS=`zoneId`,wS=`zoneName`,TS=`zoneState`,ES=`zoneType`,_=`com.amazonaws.ec2`,DS=dt.for(Sb),OS=[-3,Sb,`EC2ServiceException`,0,[],[]];DS.registerError(OS,pne);var kS=[DS],AS=[0,_,oa,8,0],jS=[0,_,jae,8,0],MS=[0,_,Ese,8,0],NS=[0,_,gle,8,0],PS=[3,_,ri,0,[oi,ci,$s,Kf,uoe,xp,gm,Cp,Vf,Wi,Gi,Ri,Qp,nle,Ju,bp],[[0,{[m]:`AllocationId`,[g]:Zm}],[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`Domain`,[g]:Rh}],[0,{[m]:`NetworkInterfaceId`,[g]:Fv}],[0,{[m]:`NetworkInterfaceOwnerId`,[g]:Iv}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`PublicIpv4Pool`,[g]:Dy}],[0,{[m]:`NetworkBorderGroup`,[g]:Tv}],[0,{[m]:`CustomerOwnedIp`,[g]:Ch}],[0,{[m]:`CustomerOwnedIpv4Pool`,[g]:wh}],[0,{[m]:`CarrierIp`,[g]:yh}],[0,{[m]:`SubnetId`,[g]:qb}],[0,{[m]:`ServiceManaged`,[g]:Yb}],[0,{[m]:`InstanceId`,[g]:Vg}],[0,{[m]:`PublicIp`,[g]:Cy}]]],FS=[3,_,mne,0,[$s,ri,Cp,Vf,Gi,xm,Yd,f],[0,0,0,0,0,[()=>Fk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}]]],IS=[3,_,hne,0,[oi,Cp,Vf,$s,Wi,Gi,Ri,bp],[[0,{[m]:`AllocationId`,[g]:Zm}],[0,{[m]:`PublicIpv4Pool`,[g]:Dy}],[0,{[m]:`NetworkBorderGroup`,[g]:Tv}],[0,{[m]:`Domain`,[g]:Rh}],[0,{[m]:`CustomerOwnedIp`,[g]:Ch}],[0,{[m]:`CustomerOwnedIpv4Pool`,[g]:wh}],[0,{[m]:`CarrierIp`,[g]:yh}],[0,{[m]:`PublicIp`,[g]:Cy}]]],LS=[3,_,gne,0,[oi,Ju,bp,f,Kf,xp,Gne],[0,0,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`NetworkInterfaceId`,[g]:Fv}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}],[2,{[m]:`AllowReassociation`,[g]:Yue}]]],RS=[3,_,_ne,0,[ci],[[0,{[m]:`AssociationId`,[g]:$m}]]],zS=[3,_,Ane,0,[Qu,Ju],[[()=>_T,0],0],2],BS=[3,_,jne,0,[$u],[[()=>gT,{[m]:`IamInstanceProfileAssociation`,[g]:Ug}]]],VS=[3,_,Hne,0,[Lp,Il,Cp,f,Qp],[[0,{[m]:`RouteTableId`,[g]:mb}],0,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`SubnetId`,[g]:qb}]],1],HS=[3,_,Une,0,[ci,pi],[[0,{[m]:`AssociationId`,[g]:$m}],[()=>sD,{[m]:`AssociationState`,[g]:nh}]]],US=[3,_,One,0,[Uu,Rm,f],[[0,{[m]:`InternetGatewayId`,[g]:zg}],[0,{[m]:`VpcId`,[g]:nS}],[2,{[m]:`DryRun`,[g]:p}]],2],WS=[3,_,nre,0,[Zs,Ju,Bm,rc,f],[0,0,0,1,[2,{[m]:`DryRun`,[g]:p}]],3],GS=[3,_,Cne,0,[Pm],[[2,{[m]:`Value`,[g]:Zx}]]],KS=[3,_,rre,0,[Pm],[[0,{[m]:`Value`,[g]:Zx}]]],qS=[3,_,Jne,0,[Bl,xm,f,om,sm,$d,bl,ym,zi,Qd],[[0,{[m]:`GroupId`,[g]:tg}],[()=>Fk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`SourceSecurityGroupName`,[g]:ix}],[0,{[m]:`SourceSecurityGroupOwnerId`,[g]:ax}],[0,{[m]:`IpProtocol`,[g]:o_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:Mx}],[0,{[m]:`CidrIp`,[g]:bh}],[()=>BO,{[m]:`IpPermissions`,[g]:s_}]],1],JS=[3,_,Yne,0,[jp,Hp],[[2,{[m]:`Return`,[g]:Jy}],[()=>Ek,{[m]:`SecurityGroupRuleSet`,[g]:Pb}]]],YS=[3,_,Xne,0,[zi,bl,Bl,Wl,Qd,$d,om,sm,ym,xm,f],[0,1,0,0,[()=>BO,0],0,0,0,1,[()=>Fk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]]],XS=[3,_,Zne,0,[jp,Hp],[[2,{[m]:`Return`,[g]:Jy}],[()=>Ek,{[m]:`SecurityGroupRuleSet`,[g]:Pb}]]],ZS=[3,_,gi,0,[ip,Wae,Fp,Xm,Ym,Wl,Vf,Iue,ose,ase,Ul,Yl,Sce,fm],[[0,{[m]:`OptInStatus`,[g]:$v}],[()=>qD,{[m]:`MessageSet`,[g]:mv}],[0,{[m]:`RegionName`,[g]:lb}],[0,{[m]:`ZoneName`,[g]:wS}],[0,{[m]:`ZoneId`,[g]:CS}],[0,{[m]:`GroupName`,[g]:rg}],[0,{[m]:`NetworkBorderGroup`,[g]:Tv}],[0,{[m]:`ZoneType`,[g]:ES}],[0,{[m]:`ParentZoneName`,[g]:Hy}],[0,{[m]:`ParentZoneId`,[g]:Vy}],[0,{[m]:`GroupLongName`,[g]:ng}],[()=>GD,{[m]:`GeographySet`,[g]:og}],[()=>JD,{[m]:`SubGeographySet`,[g]:Fb}],[0,{[m]:`ZoneState`,[g]:TS}]]],QS=[3,_,_i,0,[gi,yi,si],[0,0,[()=>VD,{[g]:oi}]]],$S=[3,_,are,0,[Bf],[[0,{[m]:`Name`,[g]:wv}]]],eC=[3,_,cre,0,[Lf],[[0,{[m]:`Message`,[g]:xv}]]],tC=[3,_,ure,0,[Bf],[[0,{[m]:`Name`,[g]:wv}]]],nC=[3,_,_re,0,[Pm],[[21,{[m]:`Value`,[g]:Zx}]]],rC=[3,_,Di,0,[sl,Uf,Fo,Hm],[[()=>Hw,{[m]:`Ebs`,[g]:Kh}],[0,{[m]:`NoDevice`,[g]:Ov}],[0,{[m]:`DeviceName`,[g]:Fh}],[0,{[m]:`VirtualName`,[g]:sS}]]],iC=[3,_,ji,0,[Vu],[[0,{[m]:`InternetGatewayBlockMode`,[g]:Rg}]]],aC=[3,_,Yi,0,[qi,Xi],[0,()=>sC]],oC=[3,_,nie,0,[qi,Xi],[[0,{[m]:`CapacityReservationPreference`,[g]:Sde}],[()=>cC,{[m]:`CapacityReservationTarget`,[g]:Tde}]]],sC=[3,_,Xi,0,[Ki,Ji],[0,0]],cC=[3,_,Zi,0,[Ki,Ji],[[0,{[m]:`CapacityReservationId`,[g]:Th}],[0,{[m]:`CapacityReservationResourceGroupArn`,[g]:Cde}]]],lC=[3,_,ba,0,[_m,Mm,Nm],[1,1,1]],uC=[3,_,xa,0,[_m,Mm,Nm],[[1,{[m]:`TcpEstablishedTimeout`,[g]:Cx}],[1,{[m]:`UdpStreamTimeout`,[g]:Yx}],[1,{[m]:`UdpTimeout`,[g]:Xx}]]],dC=[3,_,aa,0,[ule,dle,Xs,Uo,ls,ll,hf,tse,xm,Ii,za,f],[0,0,0,0,[0,{[m]:`DestinationRegion`,[g]:Bde}],[2,{[m]:`Encrypted`,[g]:Jh}],[0,{[m]:`KmsKeyId`,[g]:F_}],[()=>AS,{[m]:`PresignedUrl`,[g]:zy}],[()=>Fk,{[g]:Sm}],1,0,[2,{[m]:`DryRun`,[g]:p}]],2],fC=[3,_,sa,0,[gm,Zp],[[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`SnapshotId`,[g]:Kb}]]],pC=[3,_,Ui,0,[Fi,bm,mi,tp],[[1,{[m]:`CoreCount`,[g]:pde}],[1,{[m]:`ThreadsPerCore`,[g]:Nx}],[0,{[m]:`AmdSevSnp`,[g]:Que}],[0,{[m]:`NestedVirtualization`,[g]:Jv}]]],mC=[3,_,Xre,0,[Fi,bm,mi,tp],[1,1,0,0]],hC=[3,_,Vre,0,[Ju,Bf,xm,$ce,f,Xs,doe,Oi],[[0,{[m]:`InstanceId`,[g]:Vg}],[0,{[m]:`Name`,[g]:wv}],[()=>Fk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`Description`,[g]:Lh}],[2,{[m]:`NoReboot`,[g]:Uv}],[()=>QD,{[m]:`BlockDeviceMapping`,[g]:ph}]],2],gC=[3,_,Hre,0,[fd],[[0,{[m]:`ImageId`,[g]:Kg}]]],_C=[3,_,zre,0,[xm,f],[[()=>Fk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]]],vC=[3,_,Bre,0,[Ru],[[()=>eE,{[m]:`InternetGateway`,[g]:Lg}]]],yC=[3,_,Kre,0,[gf,vf,xm,Gie,f],[0,0,[()=>Fk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}]],1],bC=[3,_,Jre,0,[ui,oi,_a,f,Qp,Rm,vi,xm,Ca,xp,fce,sle,im],[0,0,[0,4],2,0,0,[()=>WD,{[g]:_i}],[()=>Fk,{[g]:Sm}],0,0,[()=>VD,{[g]:pce}],[()=>zO,{[g]:cle}],1]],xC=[3,_,Yre,0,[_a,Wf],[[0,{[m]:`ClientToken`,[g]:Eh}],[()=>xE,{[m]:`NatGateway`,[g]:jv}]]],SC=[3,_,Qre,0,[up,xm,$p,xf,op,vp,f,Wl,mm],[1,[()=>Fk,{[g]:Sm}],0,0,()=>jE,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`GroupName`,[g]:rg}],[0,{[m]:`Strategy`,[g]:bx}]]],CC=[3,_,$re,0,[_p],[[()=>PE,{[m]:`PlacementGroup`,[g]:yy}]]],wC=[3,_,eie,0,[Lp,Zo,Lm,vm,bf,Li,Hi,ap,f,Ga,Il,$a,zc,Ju,Kf,Um,Gf],[[0,{[m]:`RouteTableId`,[g]:mb}],0,0,0,0,0,0,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`DestinationCidrBlock`,[g]:Mh}],[0,{[m]:`GatewayId`,[g]:$h}],[0,{[m]:`DestinationIpv6CidrBlock`,[g]:Ph}],[0,{[m]:`EgressOnlyInternetGatewayId`,[g]:Vh}],[0,{[m]:`InstanceId`,[g]:Vg}],[0,{[m]:`NetworkInterfaceId`,[g]:Fv}],[0,{[m]:`VpcPeeringConnectionId`,[g]:uS}],[0,{[m]:`NatGatewayId`,[g]:Nv}]],1],TC=[3,_,tie,0,[jp],[[2,{[m]:`Return`,[g]:Jy}]]],EC=[3,_,Qi,0,[Rm,xm,_a,f],[[0,{[m]:`VpcId`,[g]:nS}],[()=>Fk,{[g]:Sm}],[0,4],[2,{[m]:`DryRun`,[g]:p}]],1],DC=[3,_,$i,0,[Rp,_a],[[()=>aD,{[m]:`RouteTable`,[g]:vb}],[0,{[m]:`ClientToken`,[g]:Eh}]]],OC=[3,_,ra,0,[Xs,Wl,Rm,xm,f],[[0,{[g]:Ml}],0,0,[()=>Fk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]],2],kC=[3,_,ia,0,[Bl,gm,Bp],[[0,{[m]:`GroupId`,[g]:tg}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`SecurityGroupArn`,[g]:Ab}]]],AC=[3,_,ca,0,[Bm,Xs,np,xm,yae,f],[0,0,0,[()=>Fk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}]],1],jC=[3,_,la,0,[Rm,xm,gi,yi,Pi,Du,np,jd,rd,zd,nd,Rd,f],[0,[()=>Fk,{[g]:Sm}],0,0,0,0,0,2,0,1,0,1,[2,{[m]:`DryRun`,[g]:p}]],1],MC=[3,_,ua,0,[hm],[[()=>yD,{[m]:`Subnet`,[g]:xx}]]],NC=[3,_,Ta,0,[gi,yi,ll,ff,hf,np,dm,Zp,Gm,xm,Sf,Tm,_a,zm,op,f],[0,0,[2,{[m]:`Encrypted`,[g]:Jh}],1,0,0,1,0,0,[()=>Fk,{[g]:Sm}],2,1,[0,4],1,()=>jE,[2,{[m]:`DryRun`,[g]:p}]]],PC=[3,_,Ea,0,[Pi,tf,Du,rd,zd,nd,Rd,ku,Im,xm,f,lf,zne],[0,0,0,0,1,0,1,0,()=>FD,[()=>Fk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`InstanceTenancy`,[g]:O_}],[2,{[m]:`AmazonProvidedIpv6CidrBlock`,[g]:Kue}]]],FC=[3,_,Da,0,[Jm],[[()=>jD,{[m]:`Vpc`,[g]:yS}]]],IC=[3,_,da,0,[Pre],[0],1],LC=[3,_,Ka,0,[js,Is,Fs],[[1,{[m]:`DefaultTcpEstablishedTimeout`,[g]:Hde}],[1,{[m]:`DefaultUdpTimeout`,[g]:qde}],[1,{[m]:`DefaultUdpStreamTimeout`,[g]:Kde}]]],RC=[3,_,to,0,[Uu,f],[[0,{[m]:`InternetGatewayId`,[g]:zg}],[2,{[m]:`DryRun`,[g]:p}]],1],zC=[3,_,ko,0,[gf,_f,f],[0,0,[2,{[m]:`DryRun`,[g]:p}]]],BC=[3,_,Ao,0,[jp,_f],[[2,{[m]:`Return`,[g]:Jy}],[0,{[m]:`KeyPairId`,[g]:R_}]]],VC=[3,_,Ro,0,[Gf,f],[[0,{[g]:Gf}],2],1],HC=[3,_,zo,0,[Gf],[[0,{[m]:`NatGatewayId`,[g]:Nv}]]],UC=[3,_,qo,0,[Wl,f],[[0,{[m]:`GroupName`,[g]:rg}],[2,{[m]:`DryRun`,[g]:p}]],1],WC=[3,_,$o,0,[Lp,Zo,f,Ga,$a],[[0,{[m]:`RouteTableId`,[g]:mb}],0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`DestinationCidrBlock`,[g]:Mh}],[0,{[m]:`DestinationIpv6CidrBlock`,[g]:Ph}]],1],GC=[3,_,rs,0,[Lp,f],[[0,{[m]:`RouteTableId`,[g]:mb}],[2,{[m]:`DryRun`,[g]:p}]],1],KC=[3,_,ps,0,[Bl,Wl,f],[0,0,[2,{[m]:`DryRun`,[g]:p}]]],qC=[3,_,ms,0,[jp,Bl],[[2,{[m]:`Return`,[g]:Jy}],[0,{[m]:`GroupId`,[g]:tg}]]],JC=[3,_,vs,0,[Zp,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],YC=[3,_,ys,0,[Zp,pse],[[0,{[m]:`SnapshotId`,[g]:Kb}],[0,{[m]:`ReturnCode`,[g]:Yy}]]],XC=[3,_,xs,0,[Qp,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],ZC=[3,_,Rs,0,[Bm,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],QC=[3,_,zs,0,[Rm,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],$C=[3,_,ho,0,[fd,Ia,f],[0,2,[2,{[m]:`DryRun`,[g]:p}]],1],ew=[3,_,go,0,[jp,Ss],[[2,{[m]:`Return`,[g]:Jy}],[()=>tO,{[m]:`DeleteSnapshotResultSet`,[g]:Vde}]]],tw=[3,_,Na,0,[Koe,f,wl,si],[[()=>fk,{[g]:bp}],[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}],[()=>VD,{[g]:oi}]]],nw=[3,_,Pa,0,[pre],[[()=>BD,{[m]:`AddressesSet`,[g]:$ue}]]],rw=[3,_,Ba,0,[Fue,Nue,vne,f,wl],[[()=>Xk,{[g]:Xm}],[()=>Yk,{[g]:Ym}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}]]],iw=[3,_,Va,0,[fre],[[()=>KD,{[m]:`AvailabilityZoneInfo`,[g]:nde}]]],aw=[3,_,lo,0,[Pne,wl,Nf,ep],[[()=>UD,{[g]:ci}],[()=>lO,{[g]:Tl}],1,0]],ow=[3,_,uo,0,[td,ep],[[()=>hO,{[m]:`IamInstanceProfileAssociationSet`,[g]:Wg}],[0,{[m]:`NextToken`,[g]:qv}]]],sw=[3,_,_o,0,[ol,pd,Eoe,ju,Fu,Nf,ep,f,wl],[[()=>cO,{[g]:nc}],[()=>gO,{[g]:fd}],[()=>ik,{[g]:sp}],2,2,1,0,[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}]]],cw=[3,_,vo,0,[ep,Bie],[[0,{[m]:`NextToken`,[g]:qv}],[()=>_O,{[m]:`ImagesSet`,[g]:__}]]],lw=[3,_,yo,0,[md,kd,f,wl,ep,Nf],[[()=>SO,{[g]:Ju}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}],[0,{[m]:`NextToken`,[g]:qv}],[1,{[m]:`MaxResults`,[g]:pv}]]],uw=[3,_,bo,0,[ep,cce],[[0,{[m]:`NextToken`,[g]:qv}],[()=>gk,{[m]:`ReservationSet`,[g]:db}]]],dw=[3,_,xo,0,[f,uf,wl,Nf,ep,Iie],[2,[64,{[g]:cf}],[()=>lO,{[g]:Tl}],1,0,2]],fw=[3,_,So,0,[uf,ep],[[()=>FO,{[m]:`InstanceTypeSet`,[g]:T_}],[0,{[m]:`NextToken`,[g]:qv}]]],pw=[3,_,no,0,[ep,Nf,f,Gu,wl],[0,1,[2,{[m]:`DryRun`,[g]:p}],[()=>LO,{[m]:`InternetGatewayId`,[g]:zg}],[()=>lO,{[g]:Tl}]]],mw=[3,_,ro,0,[qu,ep],[[()=>RO,{[m]:`InternetGatewaySet`,[g]:Bg}],[0,{[m]:`NextToken`,[g]:qv}]]],hw=[3,_,jo,0,[Jie,Zie,aie,f,wl],[[()=>GO,{[g]:gf}],[()=>KO,{[g]:_f}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}]]],gw=[3,_,Mo,0,[Yie],[[()=>qO,{[m]:`KeySet`,[g]:z_}]]],_w=[3,_,Bo,0,[f,Tl,Nf,soe,ep],[2,[()=>lO,0],1,[()=>$O,{[g]:Gf}],0]],vw=[3,_,Vo,0,[loe,ep],[[()=>ek,{[m]:`NatGatewaySet`,[g]:Pv}],[0,{[m]:`NextToken`,[g]:qv}]]],yw=[3,_,Jo,0,[Vl,f,Kl,wl],[[()=>ak,{[g]:Bl}],[2,{[m]:`DryRun`,[g]:p}],[64,{[m]:`GroupName`,[g]:rg}],[()=>lO,{[g]:Tl}]]],bw=[3,_,Yo,0,[Roe],[[()=>ok,{[m]:`PlacementGroupSet`,[g]:Sy}]]],xw=[3,_,es,0,[Rse,Kne,f,wl],[[()=>hk,{[g]:Fp}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}]]],Sw=[3,_,ts,0,[ace],[[()=>mk,{[m]:`RegionInfo`,[g]:ab}]]],Cw=[3,_,is,0,[ep,Nf,f,$se,wl],[0,1,[2,{[m]:`DryRun`,[g]:p}],[()=>xk,{[g]:Lp}],[()=>lO,{[g]:Tl}]]],ww=[3,_,as,0,[rce,ep],[[()=>Sk,{[m]:`RouteTableSet`,[g]:hb}],[0,{[m]:`NextToken`,[g]:qv}]]],Tw=[3,_,hs,0,[Vl,Kl,ep,Nf,f,wl],[[()=>pO,{[g]:Bl}],[()=>mO,{[g]:Wl}],0,1,[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}]]],Ew=[3,_,gs,0,[ep,Gp],[[0,{[m]:`NextToken`,[g]:qv}],[()=>wk,{[m]:`SecurityGroupInfo`,[g]:jb}]]],Dw=[3,_,Cs,0,[Nf,ep,_oe,dse,Jce,f,wl],[1,0,[()=>ik,{[g]:sp}],[64,{[g]:fse}],[()=>Ok,{[g]:Zp}],[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}]]],Ow=[3,_,ws,0,[ep,ble],[[0,{[m]:`NextToken`,[g]:qv}],[()=>kk,{[m]:`SnapshotSet`,[g]:sx}]]],kw=[3,_,Ts,0,[wl,jce,ep,Nf,f],[[()=>lO,{[g]:Tl}],[()=>Ak,{[g]:Qp}],0,1,[2,{[m]:`DryRun`,[g]:p}]]],Aw=[3,_,Es,0,[ep,Sle],[[0,{[m]:`NextToken`,[g]:qv}],[()=>Mk,{[m]:`SubnetSet`,[g]:cx}]]],jw=[3,_,Bs,0,[lue,kd,f,wl,ep,Nf],[[()=>Hk,{[g]:Bm}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>lO,{[g]:Tl}],[0,{[m]:`NextToken`,[g]:qv}],[1,{[m]:`MaxResults`,[g]:pv}]]],Mw=[3,_,Vs,0,[ep,Tue],[[0,{[m]:`NextToken`,[g]:qv}],[()=>Uk,{[m]:`VolumeSet`,[g]:fS}]]],Nw=[3,_,Hs,0,[wl,uue,ep,Nf,f],[[()=>lO,{[g]:Tl}],[()=>Gk,{[g]:Rm}],0,1,[2,{[m]:`DryRun`,[g]:p}]]],Pw=[3,_,Us,0,[ep,Due],[[0,{[m]:`NextToken`,[g]:qv}],[()=>qk,{[m]:`VpcSet`,[g]:mS}]]],Fw=[3,_,io,0,[Uu,Rm,f],[[0,{[m]:`InternetGatewayId`,[g]:zg}],[0,{[m]:`VpcId`,[g]:nS}],[2,{[m]:`DryRun`,[g]:p}]],2],Iw=[3,_,Ws,0,[Bm,Zs,dl,Ju,f],[0,0,2,0,[2,{[m]:`DryRun`,[g]:p}]],1],Lw=[3,_,Fa,0,[ci,bp,f],[0,0,[2,{[m]:`DryRun`,[g]:p}]]],Rw=[3,_,fo,0,[ci],[0],1],zw=[3,_,po,0,[$u],[[()=>gT,{[m]:`IamInstanceProfileAssociation`,[g]:Ug}]]],Bw=[3,_,os,0,[ci,f],[[0,{[m]:`AssociationId`,[g]:$m}],[2,{[m]:`DryRun`,[g]:p}]],1],Vw=[3,_,Do,0,[Fce,Ma,Dm],[[1,{[m]:`SizeInGB`,[g]:Lb}],[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Type`,[g]:Ux}]]],Hw=[3,_,ec,0,[Go,ff,Zp,Wm,Gm,hf,Tm,np,gi,ll,zm,yi,rc],[[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[1,{[m]:`Iops`,[g]:j_}],[0,{[m]:`SnapshotId`,[g]:Kb}],[1,{[m]:`VolumeSize`,[g]:pS}],[0,{[m]:`VolumeType`,[g]:hS}],[0,{[m]:`KmsKeyId`,[g]:F_}],[1,{[m]:`Throughput`,[g]:Vx}],[0,{[m]:`OutpostArn`,[g]:Xv}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[2,{[m]:`Encrypted`,[g]:Jh}],1,0,1]],Uw=[3,_,ac,0,[rc,Ei,Mi,ki,Tf,Ff,Df],[[1,{[m]:`EbsCardIndex`,[g]:zh}],[1,{[m]:`BaselineBandwidthInMbps`,[g]:fh}],[1,{[m]:`BaselineThroughputInMBps`,[g]:_h}],[1,{[m]:`BaselineIops`,[g]:mh}],[1,{[m]:`MaximumBandwidthInMbps`,[g]:$_}],[1,{[m]:`MaximumThroughputInMBps`,[g]:_v}],[1,{[m]:`MaximumIops`,[g]:ov}]]],Ww=[3,_,Mc,0,[Vc,rl,Ic,Qf,Tae,Ine,Eae,oc],[[0,{[m]:`EbsOptimizedSupport`,[g]:_fe}],[0,{[m]:`EncryptionSupport`,[g]:Wh}],[()=>qw,{[m]:`EbsOptimizedInfo`,[g]:hfe}],[0,{[m]:`NvmeSupport`,[g]:Wv}],[1,{[m]:`MaximumEbsAttachments`,[g]:tv}],[0,{[m]:`AttachmentLimitType`,[g]:Uue}],[1,{[m]:`MaximumEbsCards`,[g]:nv}],[()=>rO,{[m]:`EbsCardSet`,[g]:Zde}]]],Gw=[3,_,kc,0,[hi,Go,pm,Bm,di,hue,op,rc],[[4,{[m]:`AttachTime`,[g]:ih}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[0,{[m]:`Status`,[g]:yx}],[0,{[m]:`VolumeId`,[g]:iS}],[0,{[m]:`AssociatedResource`,[g]:th}],[0,{[m]:`VolumeOwnerId`,[g]:cS}],[()=>ME,{[m]:`Operator`,[g]:oy}],[1,{[m]:`EbsCardIndex`,[g]:zh}]]],Kw=[3,_,Ac,0,[Bm,Go],[[0,{[m]:`VolumeId`,[g]:iS}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}]]],qw=[3,_,Ic,0,[Ei,Mi,ki,Tf,Ff,Df],[[1,{[m]:`BaselineBandwidthInMbps`,[g]:fh}],[1,{[m]:`BaselineThroughputInMBps`,[g]:_h}],[1,{[m]:`BaselineIops`,[g]:mh}],[1,{[m]:`MaximumBandwidthInMbps`,[g]:$_}],[1,{[m]:`MaximumThroughputInMBps`,[g]:_v}],[1,{[m]:`MaximumIops`,[g]:ov}]]],Jw=[3,_,Nc,0,[Dae],[[1,{[m]:`MaximumEfaInterfaces`,[g]:rv}]]],Yw=[3,_,dc,0,[_c,fc,mc,hc],[[0,{[m]:`ElasticGpuId`,[g]:afe}],[0,{[m]:`ElasticGpuAssociationId`,[g]:tfe}],[0,{[m]:`ElasticGpuAssociationState`,[g]:nfe}],[0,{[m]:`ElasticGpuAssociationTime`,[g]:ife}]]],Xw=[3,_,vc,0,[Dm],[0],1],Zw=[3,_,bc,0,[Dm,Ma],[0,1],1],Qw=[3,_,xc,0,[Ec,Sc,wc,Tc],[[0,{[m]:`ElasticInferenceAcceleratorArn`,[g]:ofe}],[0,{[m]:`ElasticInferenceAcceleratorAssociationId`,[g]:sfe}],[0,{[m]:`ElasticInferenceAcceleratorAssociationState`,[g]:cfe}],[4,{[m]:`ElasticInferenceAcceleratorAssociationTime`,[g]:ufe}]]],$w=[3,_,Zc,0,[Yc,el],[2,()=>eT]],eT=[3,_,tl,0,[$c],[2]],tT=[3,_,Hc,0,[cl],[[2,{[m]:`Enabled`,[g]:qh}]]],nT=[3,_,Bc,0,[cl],[2]],rT=[3,_,Tl,0,[Bf,wue],[0,[()=>zk,{[g]:Pm}]]],iT=[3,_,pl,0,[Bf,If,Ma,Of],[[0,{[m]:`Name`,[g]:wv}],[0,{[m]:`Manufacturer`,[g]:yv}],[1,{[m]:`Count`,[g]:Ah}],[()=>aT,{[m]:`MemoryInfo`,[g]:sv}]]],aT=[3,_,hl,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Vb}]]],oT=[3,_,_l,0,[El,Cle],[[()=>uO,{[m]:`Fpgas`,[g]:Mfe}],[1,{[m]:`TotalFpgaMemoryInMiB`,[g]:wx}]]],sT=[3,_,Al,0,[Ju,_ae,f],[0,2,[2,{[m]:`DryRun`,[g]:p}]],1],cT=[3,_,jl,0,[Ju,Em,Toe],[[0,{[m]:`InstanceId`,[g]:Vg}],[4,{[m]:`Timestamp`,[g]:Hx}],[0,{[m]:`Output`,[g]:sy}]]],lT=[3,_,Nl,0,[Bf,If,Ma,oae,Jl,jue,Of],[[0,{[m]:`Name`,[g]:wv}],[0,{[m]:`Manufacturer`,[g]:yv}],[1,{[m]:`Count`,[g]:Ah}],[1,{[m]:`LogicalGpuCount`,[g]:W_}],[1,{[m]:`GpuPartitionSize`,[g]:ag}],[()=>Jk,{[m]:`WorkloadSet`,[g]:SS}],[()=>uT,{[m]:`MemoryInfo`,[g]:sv}]]],uT=[3,_,Fl,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Vb}]]],dT=[3,_,zl,0,[Xl,wle],[[()=>dO,{[m]:`Gpus`,[g]:cg}],[1,{[m]:`TotalGpuMemoryInMiB`,[g]:Ex}]]],fT=[3,_,Hl,0,[Bl,Wl],[[0,{[m]:`GroupId`,[g]:tg}],[0,{[m]:`GroupName`,[g]:rg}]]],pT=[3,_,eu,0,[ja],[[2,{[m]:`Configured`,[g]:kde}]]],mT=[3,_,tu,0,[ja],[2]],hT=[3,_,Qu,0,[xi,uu],[[0,{[m]:`Arn`,[g]:ch}],[0,{[m]:`Id`,[g]:xg}]]],gT=[3,_,$u,0,[ci,Ju,Qu,fm,Em],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`InstanceId`,[g]:Vg}],[()=>hT,{[m]:`IamInstanceProfile`,[g]:Hg}],[0,{[m]:`State`,[g]:vx}],[4,{[m]:`Timestamp`,[g]:Hx}]]],_T=[3,_,od,0,[xi,Bf],[[0,{[m]:`Arn`,[g]:ch}],[0,{[m]:`Name`,[g]:wv}]]],vT=[3,_,Vie,0,[gp,jm,Oi,Xs,il,lu,Hd,Bf,Mp,Np,nm,am,gm,Km,Ai,Cm,Ns,of,Lce,Qo,cae,bu,qp,Yp,Cl,Lie,fd,vd,fm,rp,Fre,cse,dp,Si,Fie,mf,Pp,Dp],[[0,{[m]:`PlatformDetails`,[g]:vy}],[0,{[m]:`UsageOperation`,[g]:qx}],[()=>ZD,{[m]:`BlockDeviceMapping`,[g]:ph}],[0,{[m]:`Description`,[g]:Lh}],[2,{[m]:`EnaSupport`,[g]:Gh}],[0,{[m]:`Hypervisor`,[g]:ug}],[0,{[m]:`ImageOwnerAlias`,[g]:Zg}],[0,{[m]:`Name`,[g]:wv}],[0,{[m]:`RootDeviceName`,[g]:Xy}],[0,{[m]:`RootDeviceType`,[g]:Zy}],[0,{[m]:`SriovNetSupport`,[g]:ex}],[()=>gD,{[m]:`StateReason`,[g]:rx}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`VirtualizationType`,[g]:_S}],[0,{[m]:`BootMode`,[g]:hh}],[0,{[m]:`TpmSupport`,[g]:Lx}],[0,{[m]:`DeprecationTime`,[g]:Wde}],[0,{[m]:`ImdsSupport`,[g]:y_}],[0,{[m]:`SourceInstanceId`,[g]:Rb}],[0,{[m]:`DeregistrationProtection`,[g]:zde}],[0,{[m]:`LastLaunchedTime`,[g]:q_}],[2,{[m]:`ImageAllowed`,[g]:kg}],[0,{[m]:`SourceImageId`,[g]:Bb}],[0,{[m]:`SourceImageRegion`,[g]:Hb}],[2,{[m]:`FreeTierEligible`,[g]:Qh}],[()=>vO,{[m]:`ImageWatermarkSet`,[g]:A_}],[0,{[m]:`ImageId`,[g]:Kg}],[0,{[m]:`ImageLocation`,[g]:qg}],[0,{[m]:`ImageState`,[g]:v_}],[0,{[m]:`ImageOwnerId`,[g]:Qg}],[0,{[m]:`CreationDate`,[g]:hde}],[2,{[m]:`IsPublic`,[g]:d_}],[()=>uk,{[m]:`ProductCodes`,[g]:dy}],[0,{[m]:`Architecture`,[g]:lh}],[0,{[m]:`ImageType`,[g]:D_}],[0,{[m]:`KernelId`,[g]:P_}],[0,{[m]:`RamdiskId`,[g]:ib}],[0,{[m]:`Platform`,[g]:Uy}]]],yT=[3,_,zie,0,[kue,Yp,qp,Pce,Oue],[[0,{[m]:`WatermarkKey`,[g]:xS}],[0,{[m]:`SourceImageRegion`,[g]:Hb}],[0,{[m]:`SourceImageId`,[g]:Bb}],[4,{[m]:`SourceImageCreationTime`,[g]:Ib}],[4,{[m]:`WatermarkCreationTime`,[g]:bS}]]],bT=[3,_,gd,0,[gf,Joe,xm,f],[[0,{[m]:`KeyName`,[g]:L_}],[21,{[m]:`PublicKeyMaterial`,[g]:jy}],[()=>Fk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]],2],xT=[3,_,_d,0,[pf,gf,_f,gm],[[0,{[m]:`KeyFingerprint`,[g]:N_}],[0,{[m]:`KeyName`,[g]:L_}],[0,{[m]:`KeyPairId`,[g]:R_}],[()=>Pk,{[m]:`TagSet`,[g]:Px}]]],ST=[3,_,gu,0,[bi,Ele],[[()=>yO,{[m]:`Accelerators`,[g]:sh}],[1,{[m]:`TotalInferenceMemoryInMiB`,[g]:Dx}]]],CT=[3,_,Mu,0,[Ma,Bf,If,Of],[[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Name`,[g]:wv}],[0,{[m]:`Manufacturer`,[g]:yv}],[()=>wT,{[m]:`MemoryInfo`,[g]:sv}]]],wT=[3,_,Pu,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Vb}]]],TT=[3,_,Hie,0,[Si,Oi,_a,Fc,il,lu,Qu,bd,gc,Dc,qf,np,Mp,Np,Gp,zp,Rce,nm,am,gm,Km,Ui,jre,Ki,Yi,eu,vae,Af,Hc,Ai,gp,jm,Jle,pp,Su,Cm,jf,Lre,Xf,op,Xp,Ju,fd,fm,fp,hp,ple,gf,Fne,dp,cf,gae,Op,mf,Pp,Dp,zf,Qp,Rm,xp,Hoe],[[0,{[m]:`Architecture`,[g]:lh}],[()=>bO,{[m]:`BlockDeviceMapping`,[g]:ph}],[0,{[m]:`ClientToken`,[g]:Eh}],[2,{[m]:`EbsOptimized`,[g]:Bh}],[2,{[m]:`EnaSupport`,[g]:Gh}],[0,{[m]:`Hypervisor`,[g]:ug}],[()=>hT,{[m]:`IamInstanceProfile`,[g]:Hg}],[0,{[m]:`InstanceLifecycle`,[g]:Jg}],[()=>iO,{[m]:`ElasticGpuAssociationSet`,[g]:rfe}],[()=>oO,{[m]:`ElasticInferenceAcceleratorAssociationSet`,[g]:lfe}],[()=>DO,{[m]:`NetworkInterfaceSet`,[g]:Lv}],[0,{[m]:`OutpostArn`,[g]:Xv}],[0,{[m]:`RootDeviceName`,[g]:Xy}],[0,{[m]:`RootDeviceType`,[g]:Zy}],[()=>fO,{[m]:`GroupSet`,[g]:sg}],[2,{[m]:`SourceDestCheck`,[g]:Db}],[0,{[m]:`SpotInstanceRequestId`,[g]:Ub}],[0,{[m]:`SriovNetSupport`,[g]:ex}],[()=>gD,{[m]:`StateReason`,[g]:rx}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`VirtualizationType`,[g]:_S}],[()=>pC,{[m]:`CpuOptions`,[g]:xde}],[0,{[m]:`CapacityBlockId`,[g]:dde}],[0,{[m]:`CapacityReservationId`,[g]:Th}],[()=>oC,{[m]:`CapacityReservationSpecification`,[g]:wde}],[()=>pT,{[m]:`HibernationOptions`,[g]:mg}],[()=>JO,{[m]:`LicenseSet`,[g]:J_}],[()=>LT,{[m]:`MetadataOptions`,[g]:uv}],[()=>tT,{[m]:`EnclaveOptions`,[g]:vfe}],[0,{[m]:`BootMode`,[g]:hh}],[0,{[m]:`PlatformDetails`,[g]:vy}],[0,{[m]:`UsageOperation`,[g]:qx}],[4,{[m]:`UsageOperationUpdateTime`,[g]:Jx}],[()=>zE,{[m]:`PrivateDnsNameOptions`,[g]:my}],[0,{[m]:`Ipv6Address`,[g]:jg}],[0,{[m]:`TpmSupport`,[g]:Lx}],[()=>NT,{[m]:`MaintenanceOptions`,[g]:dv}],[0,{[m]:`CurrentInstanceBootMode`,[g]:vde}],[()=>HT,{[m]:`NetworkPerformanceOptions`,[g]:Vv}],[()=>ME,{[m]:`Operator`,[g]:oy}],[()=>AO,{[m]:`SecondaryInterfaceSet`,[g]:Gb}],[0,{[m]:`InstanceId`,[g]:Vg}],[0,{[m]:`ImageId`,[g]:Kg}],[()=>XT,{[m]:`InstanceState`,[g]:x_}],[0,{[m]:`PrivateDnsName`,[g]:gy}],[0,{[m]:`DnsName`,[g]:Ide}],[0,{[m]:`Reason`,[g]:bb}],[0,{[m]:`KeyName`,[g]:L_}],[1,{[m]:`AmiLaunchIndex`,[g]:Hue}],[()=>uk,{[m]:`ProductCodes`,[g]:dy}],[0,{[m]:`InstanceType`,[g]:w_}],[4,{[m]:`LaunchTime`,[g]:Y_}],[()=>NE,{[m]:`Placement`,[g]:Wy}],[0,{[m]:`KernelId`,[g]:P_}],[0,{[m]:`RamdiskId`,[g]:ib}],[0,{[m]:`Platform`,[g]:Uy}],[()=>bE,{[m]:`Monitoring`,[g]:Cv}],[0,{[m]:`SubnetId`,[g]:qb}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}],[0,{[m]:`IpAddress`,[g]:Ag}]]],ET=[3,_,mu,0,[Yc,el],[[2,{[m]:`EnaSrdEnabled`,[g]:bfe}],[()=>DT,{[m]:`EnaSrdUdpSpecification`,[g]:wfe}]]],DT=[3,_,hu,0,[$c],[[2,{[m]:`EnaSrdUdpEnabled`,[g]:Cfe}]]],OT=[3,_,Cu,0,[Fo,sl],[[0,{[m]:`DeviceName`,[g]:Fh}],[()=>Gw,{[m]:`Ebs`,[g]:Kh}]]],kT=[3,_,Tu,0,[Fo,sl,Hm,Uf],[[0,{[m]:`DeviceName`,[g]:Fh}],[()=>Kw,{[m]:`Ebs`,[g]:Kh}],[0,{[m]:`VirtualName`,[g]:sS}],[0,{[m]:`NoDevice`,[g]:Ov}]]],AT=[3,_,sd,0,[rf],[[0,{[m]:`Ipv4Prefix`,[g]:c_}]]],jT=[3,_,Yu,0,[Su,iie],[[0,{[m]:`Ipv6Address`,[g]:jg}],[2,{[m]:`IsPrimaryIpv6`,[g]:r_}]]],MT=[3,_,cd,0,[ef],[[0,{[m]:`Ipv6Prefix`,[g]:u_}]]],NT=[3,_,Cd,0,[fi,Ise],[[0,{[m]:`AutoRecovery`,[g]:Xue}],[0,{[m]:`RebootMigration`,[g]:cb}]]],PT=[3,_,wd,0,[fi],[0]],FT=[3,_,Td,0,[Rae,ole],[0,()=>pD]],IT=[3,_,Ed,0,[ou,ru,Ql,nu,Ad],[0,1,0,0,0]],LT=[3,_,Dd,0,[fm,ou,ru,Ql,nu,Ad],[[0,{[m]:`State`,[g]:vx}],[0,{[m]:`HttpTokens`,[g]:yg}],[1,{[m]:`HttpPutResponseHopLimit`,[g]:gg}],[0,{[m]:`HttpEndpoint`,[g]:fg}],[0,{[m]:`HttpProtocolIpv6`,[g]:hg}],[0,{[m]:`InstanceMetadataTags`,[g]:Yg}]]],RT=[3,_,Md,0,[Ci,wi,Xs,Dl,du,wf,Kf,rp,fp,xp,Sp,zp,pm,Qp,Rm,df,nf,Zd,va,op],[[()=>zT,{[m]:`Association`,[g]:uh}],[()=>BT,{[m]:`Attachment`,[g]:dh}],[0,{[m]:`Description`,[g]:Lh}],[()=>fO,{[m]:`GroupSet`,[g]:sg}],[()=>wO,{[m]:`Ipv6AddressesSet`,[g]:Og}],[0,{[m]:`MacAddress`,[g]:Q_}],[0,{[m]:`NetworkInterfaceId`,[g]:Fv}],[0,{[m]:`OwnerId`,[g]:Qv}],[0,{[m]:`PrivateDnsName`,[g]:gy}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}],[()=>kO,{[m]:`PrivateIpAddressesSet`,[g]:wy}],[2,{[m]:`SourceDestCheck`,[g]:Db}],[0,{[m]:`Status`,[g]:yx}],[0,{[m]:`SubnetId`,[g]:qb}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`InterfaceType`,[g]:k_}],[()=>CO,{[m]:`Ipv4PrefixSet`,[g]:i_}],[()=>TO,{[m]:`Ipv6PrefixSet`,[g]:a_}],[()=>uC,{[m]:`ConnectionTrackingConfiguration`,[g]:Dh}],[()=>ME,{[m]:`Operator`,[g]:oy}]]],zT=[3,_,Nd,0,[Ri,Wi,Ud,hp,bp],[[0,{[m]:`CarrierIp`,[g]:yh}],[0,{[m]:`CustomerOwnedIp`,[g]:Ch}],[0,{[m]:`IpOwnerId`,[g]:e_}],[0,{[m]:`PublicDnsName`,[g]:_y}],[0,{[m]:`PublicIp`,[g]:Cy}]]],BT=[3,_,Pd,0,[hi,li,Go,Qa,pm,Hf,Xc,Wc],[[4,{[m]:`AttachTime`,[g]:ih}],[0,{[m]:`AttachmentId`,[g]:eh}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[1,{[m]:`DeviceIndex`,[g]:Nh}],[0,{[m]:`Status`,[g]:yx}],[1,{[m]:`NetworkCardIndex`,[g]:Dv}],[()=>ET,{[m]:`EnaSrdSpecification`,[g]:xfe}],[1,{[m]:`EnaQueueCount`,[g]:yfe}]]],VT=[3,_,Id,0,[Rne,Go,Xs,Qa,Dl,pu,du,Kf,xp,Sp,im,Qp,wne,df,Hf,nf,qd,Zd,Kd,Woe,Xc,ya,Wc],[[2,{[m]:`AssociatePublicIpAddress`,[g]:Gue}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[0,{[m]:`Description`,[g]:Lh}],[1,{[m]:`DeviceIndex`,[g]:Nh}],[()=>Ck,{[g]:Vp}],[1,{[m]:`Ipv6AddressCount`,[g]:Cg}],[()=>wO,{[m]:`Ipv6Addresses`,[g]:Og}],[0,{[m]:`NetworkInterfaceId`,[g]:Fv}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}],[()=>lk,{[m]:`PrivateIpAddresses`,[g]:wy}],[1,{[m]:`SecondaryPrivateIpAddressCount`,[g]:tx}],[0,{[m]:`SubnetId`,[g]:qb}],2,0,1,[()=>HO,{[g]:rf}],1,[()=>UO,{[g]:ef}],1,2,()=>$w,()=>lC,1]],HT=[3,_,Bd,0,[Ni],[[0,{[m]:`BandwidthWeighting`,[g]:cde}]]],UT=[3,_,Vd,0,[Ni],[0]],WT=[3,_,Xd,0,[Ci,kp,fp,xp],[[()=>zT,{[m]:`Association`,[g]:uh}],[2,{[m]:`Primary`,[g]:Gy}],[0,{[m]:`PrivateDnsName`,[g]:gy}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}]]],GT=[3,_,kie,0,[wi,wf,Ice,rp,Sp,zp,pm,cm,ile,df],[[()=>KT,{[m]:`Attachment`,[g]:dh}],[0,{[m]:`MacAddress`,[g]:Q_}],[0,{[m]:`SecondaryInterfaceId`,[g]:zb}],[0,{[m]:`OwnerId`,[g]:Qv}],[()=>jO,{[m]:`PrivateIpAddressSet`,[g]:Ty}],[2,{[m]:`SourceDestCheck`,[g]:Db}],[0,{[m]:`Status`,[g]:yx}],[0,{[m]:`SecondarySubnetId`,[g]:ox}],[0,{[m]:`SecondaryNetworkId`,[g]:Qb}],[0,{[m]:`InterfaceType`,[g]:k_}]]],KT=[3,_,xie,0,[hi,li,Go,Qa,pm,Hf],[[4,{[m]:`AttachTime`,[g]:ih}],[0,{[m]:`AttachmentId`,[g]:eh}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[1,{[m]:`DeviceIndex`,[g]:Nh}],[0,{[m]:`Status`,[g]:yx}],[1,{[m]:`NetworkCardIndex`,[g]:Dv}]]],qT=[3,_,Cie,0,[xp],[[0,{[m]:`PrivateIpAddress`,[g]:Ey}]]],JT=[3,_,Eie,0,[xp],[0],1],YT=[3,_,Oie,0,[Go,Qa,Sp,zoe,cm,df,Hf],[2,1,[()=>MO,{[g]:xp}],1,0,0,1]],XT=[3,_,jie,0,[Aa,Bf],[[1,{[m]:`Code`,[g]:kh}],[0,{[m]:`Name`,[g]:wv}]]],ZT=[3,_,yie,0,[Ju,ga,$oe],[[0,{[m]:`InstanceId`,[g]:Vg}],[()=>XT,{[m]:`CurrentState`,[g]:Ede}],[()=>XT,{[m]:`PreviousState`,[g]:Ly}]]],QT=[3,_,af,0,[Ile,Qs,Qf,rl],[[1,{[m]:`TotalSizeInGB`,[g]:Fx}],[()=>nO,{[m]:`Disks`,[g]:Xde}],[0,{[m]:`NvmeSupport`,[g]:Wv}],[0,{[m]:`EncryptionSupport`,[g]:Wh}]]],$T=[3,_,Pie,0,[cf,Ire,Cl,hle,lle,vle,Cre,lu,wp,Fm,Of,Aie,af,Mc,Jf,zl,_l,yp,gu,au,Tre,Za,Vne,_ce,$ae,foe,$f,Cf,Yf,Qoe,Fse,Uce],[[0,{[m]:`InstanceType`,[g]:w_}],[2,{[m]:`CurrentGeneration`,[g]:_de}],[2,{[m]:`FreeTierEligible`,[g]:Qh}],[()=>Lk,{[m]:`SupportedUsageClasses`,[g]:px}],[()=>vk,{[m]:`SupportedRootDeviceTypes`,[g]:nx}],[()=>Bk,{[m]:`SupportedVirtualizationTypes`,[g]:hx}],[2,{[m]:`BareMetal`,[g]:ode}],[0,{[m]:`Hypervisor`,[g]:ug}],[()=>VE,{[m]:`ProcessorInfo`,[g]:Oy}],[()=>DD,{[m]:`VCpuInfo`,[g]:Qx}],[()=>hE,{[m]:`MemoryInfo`,[g]:sv}],[2,{[m]:`InstanceStorageSupported`,[g]:g_}],[()=>QT,{[m]:`InstanceStorageInfo`,[g]:h_}],[()=>Ww,{[m]:`EbsInfo`,[g]:ffe}],[()=>TE,{[m]:`NetworkInfo`,[g]:zv}],[()=>dT,{[m]:`GpuInfo`,[g]:eg}],[()=>oT,{[m]:`FpgaInfo`,[g]:Ofe}],[()=>FE,{[m]:`PlacementGroupInfo`,[g]:by}],[()=>ST,{[m]:`InferenceAcceleratorInfo`,[g]:wg}],[2,{[m]:`HibernationSupported`,[g]:vg}],[2,{[m]:`BurstablePerformanceSupported`,[g]:sde}],[2,{[m]:`DedicatedHostsSupported`,[g]:Pde}],[2,{[m]:`AutoRecoverySupported`,[g]:Jue}],[()=>$D,{[m]:`SupportedBootModes`,[g]:Tb}],[0,{[m]:`NitroEnclavesSupport`,[g]:Av}],[0,{[m]:`NitroTpmSupport`,[g]:Kv}],[()=>AE,{[m]:`NitroTpmInfo`,[g]:Gv}],[()=>fE,{[m]:`MediaAcceleratorInfo`,[g]:Z_}],[()=>kE,{[m]:`NeuronInfo`,[g]:Bv}],[0,{[m]:`PhcSupport`,[g]:Iy}],[0,{[m]:`RebootMigrationSupport`,[g]:sb}],[2,{[m]:`SupportedInRegion`,[g]:Wb}]]],eE=[3,_,Ru,0,[Ti,Uu,rp,gm],[[()=>IO,{[m]:`AttachmentSet`,[g]:rh}],[0,{[m]:`InternetGatewayId`,[g]:zg}],[0,{[m]:`OwnerId`,[g]:Qv}],[()=>Pk,{[m]:`TagSet`,[g]:Px}]]],tE=[3,_,zu,0,[fm,Rm],[[0,{[m]:`State`,[g]:vx}],[0,{[m]:`VpcId`,[g]:nS}]]],nE=[3,_,die,0,[$d,bl,ym,Gle,hie,_ie,Xoe],[[0,{[m]:`IpProtocol`,[g]:o_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:Mx}],[()=>Rk,{[m]:`Groups`,[g]:lg}],[()=>VO,{[m]:`IpRanges`,[g]:p_}],[()=>WO,{[m]:`Ipv6Ranges`,[g]:m_}],[()=>ck,{[m]:`PrefixListIds`,[g]:Ny}]]],rE=[3,_,gie,0,[Xs,zi],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`CidrIp`,[g]:bh}]]],iE=[3,_,lie,0,[rf],[0]],aE=[3,_,uie,0,[ef],[0]],oE=[3,_,vie,0,[Xs,Bi],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`CidrIpv6`,[g]:xh}]]],sE=[3,_,eae,0,[_f,gm,gf,pf,Kie],[[0,{[m]:`KeyPairId`,[g]:R_}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`KeyName`,[g]:L_}],[0,{[m]:`KeyFingerprint`,[g]:N_}],[()=>NS,{[m]:`KeyMaterial`,[g]:I_}]]],cE=[3,_,Qie,0,[_f,vf,gm,qoe,wa,gf,pf],[[0,{[m]:`KeyPairId`,[g]:R_}],[0,{[m]:`KeyType`,[g]:B_}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`PublicKey`,[g]:Ay}],[4,{[m]:`CreateTime`,[g]:Oh}],[0,{[m]:`KeyName`,[g]:L_}],[0,{[m]:`KeyFingerprint`,[g]:N_}]]],lE=[3,_,hae,0,[pae,mae,qm],[0,0,0]],uE=[3,_,iae,0,[yf],[[0,{[m]:`LicenseConfigurationArn`,[g]:U_}]]],dE=[3,_,rae,0,[yf],[0]],fE=[3,_,Cf,0,[bi,Nle],[[()=>XO,{[m]:`Accelerators`,[g]:sh}],[1,{[m]:`TotalMediaMemoryInMiB`,[g]:Ax}]]],pE=[3,_,Sae,0,[Ma,Bf,If,Of],[[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Name`,[g]:wv}],[0,{[m]:`Manufacturer`,[g]:yv}],[()=>mE,{[m]:`MemoryInfo`,[g]:sv}]]],mE=[3,_,wae,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Vb}]]],hE=[3,_,Of,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Vb}]]],gE=[3,_,Aae,0,[Ju,zp,Hc,La,f,gre,Pm,Oi,Ra,cf,tae,ice,Om,ld,Dl,Fc,nm,il],[[0,{[m]:`InstanceId`,[g]:Vg}],[()=>GS,0],()=>nT,[()=>GS,0],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`Attribute`,[g]:ide}],[()=>jS,{[m]:`Value`,[g]:Zx}],[()=>xO,{[m]:`BlockDeviceMapping`,[g]:ph}],[()=>GS,{[m]:`DisableApiTermination`,[g]:jh}],[()=>KS,{[m]:`InstanceType`,[g]:w_}],[()=>KS,{[m]:`Kernel`,[g]:V_}],[()=>KS,{[m]:`Ramdisk`,[g]:yb}],[()=>nC,{[m]:`UserData`,[g]:Wx}],[()=>KS,{[m]:`InstanceInitiatedShutdownBehavior`,[g]:Gg}],[()=>pO,{[g]:Bl}],[()=>GS,{[m]:`EbsOptimized`,[g]:Bh}],[()=>KS,{[m]:`SriovNetSupport`,[g]:ex}],[()=>GS,{[m]:`EnaSupport`,[g]:Gh}]],1],_E=[3,_,Fae,0,[Qp,ii,Mf,Ef,Gi,cc,Moe,Jc,Kc,Pc,Po],[[0,{[m]:`SubnetId`,[g]:qb}],[()=>GS,0],[()=>GS,0],[()=>GS,0],0,[()=>GS,0],0,[()=>GS,0],[()=>GS,0],1,[()=>GS,0]],1],vE=[3,_,zae,0,[Bm,f,dm,Gm,ff,Tm,Sf],[0,2,1,0,1,1,2],1],yE=[3,_,Bae,0,[Vm],[[()=>AD,{[m]:`VolumeModification`,[g]:oS}]]],bE=[3,_,zf,0,[fm],[[0,{[m]:`State`,[g]:vx}]]],xE=[3,_,Wf,0,[wa,Ps,fl,yl,eoe,Gf,lp,fm,Qp,Rm,gm,Ca,ui,$ne,Bne,Sne,Lp],[[4,{[m]:`CreateTime`,[g]:Oh}],[4,{[m]:`DeleteTime`,[g]:Gde}],[0,{[m]:`FailureCode`,[g]:Yh}],[0,{[m]:`FailureMessage`,[g]:Xh}],[()=>ZO,{[m]:`NatGatewayAddressSet`,[g]:Mv}],[0,{[m]:`NatGatewayId`,[g]:Nv}],[()=>WE,{[m]:`ProvisionedBandwidth`,[g]:ly}],[0,{[m]:`State`,[g]:vx}],[0,{[m]:`SubnetId`,[g]:qb}],[0,{[m]:`VpcId`,[g]:nS}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`ConnectivityType`,[g]:Ode}],[0,{[m]:`AvailabilityMode`,[g]:Wue}],[0,{[m]:`AutoScalingIps`,[g]:Zue}],[0,{[m]:`AutoProvisionZones`,[g]:que}],[()=>QO,{[m]:`AttachedApplianceSet`,[g]:Lue}],[0,{[m]:`RouteTableId`,[g]:mb}]]],SE=[3,_,ioe,0,[oi,Kf,Goe,bp,ci,fie,yl,pm,gi,yi],[[0,{[m]:`AllocationId`,[g]:Zm}],[0,{[m]:`NetworkInterfaceId`,[g]:Fv}],[0,{[m]:`PrivateIp`,[g]:ky}],[0,{[m]:`PublicIp`,[g]:Cy}],[0,{[m]:`AssociationId`,[g]:$m}],[2,{[m]:`IsPrimary`,[g]:f_}],[0,{[m]:`FailureMessage`,[g]:Xh}],[0,{[m]:`Status`,[g]:yx}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[0,{[m]:`AvailabilityZoneId`,[g]:oh}]]],CE=[3,_,toe,0,[Dm,bne,Lm,ere,Pf,fl,yl],[[0,{[m]:`Type`,[g]:Ux}],[0,{[m]:`ApplianceArn`,[g]:Rue}],[0,{[m]:`VpcEndpointId`,[g]:tS}],[0,{[m]:`AttachmentState`,[g]:tde}],[0,{[m]:`ModificationState`,[g]:gv}],[0,{[m]:`FailureCode`,[g]:Yh}],[0,{[m]:`FailureMessage`,[g]:Xh}]]],wE=[3,_,qae,0,[Hf,Zf,kf,Tne,vre,Doe,Ya,Oae,kae],[[1,{[m]:`NetworkCardIndex`,[g]:Dv}],[0,{[m]:`NetworkPerformance`,[g]:Hv}],[1,{[m]:`MaximumNetworkInterfaces`,[g]:lv}],[1,{[m]:`AdditionalFlexibleNetworkInterfaces`,[g]:zue}],[1,{[m]:`BaselineBandwidthInGbps`,[g]:ade}],[1,{[m]:`PeakBandwidthInGbps`,[g]:uy}],[1,{[m]:`DefaultEnaQueueCountPerInterface`,[g]:Mde}],[1,{[m]:`MaximumEnaQueueCount`,[g]:iv}],[1,{[m]:`MaximumEnaQueueCountPerInterface`,[g]:av}]]],TE=[3,_,Jf,0,[Zf,kf,Nae,Io,Gae,_u,vu,Mie,il,nl,Nc,jc,Qc,kre,gl,va,ale,Lae,yu],[[0,{[m]:`NetworkPerformance`,[g]:Hv}],[1,{[m]:`MaximumNetworkInterfaces`,[g]:lv}],[1,{[m]:`MaximumNetworkCards`,[g]:cv}],[1,{[m]:`DefaultNetworkCardIndex`,[g]:Fde}],[()=>tk,{[m]:`NetworkCards`,[g]:Ev}],[1,{[m]:`Ipv4AddressesPerInterface`,[g]:Tg}],[1,{[m]:`Ipv6AddressesPerInterface`,[g]:Eg}],[2,{[m]:`Ipv6Supported`,[g]:C_}],[0,{[m]:`EnaSupport`,[g]:Gh}],[2,{[m]:`EfaSupported`,[g]:Tfe}],[()=>Jw,{[m]:`EfaInfo`,[g]:pfe}],[2,{[m]:`EncryptionInTransitSupported`,[g]:dfe}],[2,{[m]:`EnaSrdSupported`,[g]:Sfe}],[()=>YD,{[m]:`BandwidthWeightings`,[g]:lde}],[0,{[m]:`FlexibleEnaQueuesSupport`,[g]:Dfe}],[()=>LC,{[m]:`ConnectionTrackingConfiguration`,[g]:Dh}],[2,{[m]:`SecondaryNetworkSupported`,[g]:$b}],[1,{[m]:`MaximumSecondaryNetworkInterfaces`,[g]:hv}],[1,{[m]:`Ipv4AddressesPerSecondaryInterface`,[g]:Dg}]]],EE=[3,_,Jae,0,[Ma,qm],[[1,{[m]:`Count`,[g]:Ah}],[1,{[m]:`Version`,[g]:vS}]]],DE=[3,_,Yae,0,[Ma,Bf,Ure,Of],[[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Name`,[g]:wv}],[()=>EE,{[m]:`CoreInfo`,[g]:yde}],[()=>OE,{[m]:`MemoryInfo`,[g]:sv}]]],OE=[3,_,Zae,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Vb}]]],kE=[3,_,Yf,0,[Qae,Ple],[[()=>nk,{[m]:`NeuronDevices`,[g]:kv}],[1,{[m]:`TotalNeuronDeviceMemoryInMiB`,[g]:jx}]]],AE=[3,_,$f,0,[yle],[[()=>rk,{[m]:`SupportedVersions`,[g]:gx}]]],jE=[3,_,yoe,0,[cp],[0]],ME=[3,_,boe,0,[Uae,cp,Zl],[[2,{[m]:`Managed`,[g]:bv}],[0,{[m]:`Principal`,[g]:cy}],[2,{[m]:`HiddenByDefault`,[g]:dg}]]],NE=[3,_,Op,0,[yi,mre,Wl,Zoe,$l,Hle,bce,iu,Bl,gi],[[0,{[m]:`AvailabilityZoneId`,[g]:oh}],[0,{[m]:`Affinity`,[g]:rde}],[0,{[m]:`GroupName`,[g]:rg}],[1,{[m]:`PartitionNumber`,[g]:Py}],[0,{[m]:`HostId`,[g]:pg}],[0,{[m]:`Tenancy`,[g]:Sx}],[0,{[m]:`SpreadDomain`,[g]:Ob}],[0,{[m]:`HostResourceGroupArn`,[g]:_g}],[0,{[m]:`GroupId`,[g]:tg}],[0,{[m]:`AvailabilityZone`,[g]:ah}]]],PE=[3,_,_p,0,[Wl,fm,mm,up,Bl,gm,Ol,$p,xf,op,vp],[[0,{[m]:`GroupName`,[g]:rg}],[0,{[m]:`State`,[g]:vx}],[0,{[m]:`Strategy`,[g]:bx}],[1,{[m]:`PartitionCount`,[g]:fy}],[0,{[m]:`GroupId`,[g]:tg}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`GroupArn`,[g]:Nfe}],[0,{[m]:`SpreadLevel`,[g]:Jb}],[0,{[m]:`LinkedGroupId`,[g]:K_}],[()=>ME,{[m]:`Operator`,[g]:oy}],[0,{[m]:`ParentGroupId`,[g]:xy}]]],FE=[3,_,yp,0,[fle],[[()=>sk,{[m]:`SupportedStrategies`,[g]:lx}]]],IE=[3,_,Tp,0,[Xs,Tp],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`PrefixListId`,[g]:My}]]],LE=[3,_,mp,0,[su,qc,Gc],[[0,{[m]:`HostnameType`,[g]:bg}],[2,{[m]:`EnableResourceNameDnsARecord`,[g]:Uh}],[2,{[m]:`EnableResourceNameDnsAAAARecord`,[g]:Hh}]]],RE=[3,_,Noe,0,[su,qc,Gc],[0,2,2]],zE=[3,_,Poe,0,[su,qc,Gc],[[0,{[m]:`HostnameType`,[g]:bg}],[2,{[m]:`EnableResourceNameDnsARecord`,[g]:Uh}],[2,{[m]:`EnableResourceNameDnsAAAARecord`,[g]:Hh}]]],BE=[3,_,Boe,0,[kp,xp],[[2,{[m]:`Primary`,[g]:Gy}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}]]],VE=[3,_,wp,0,[gce,yce,xce,If],[[()=>HD,{[m]:`SupportedArchitectures`,[g]:Cb}],[1,{[m]:`SustainedClockSpeedInGhz`,[g]:Eb}],[()=>Nk,{[m]:`SupportedFeatures`,[g]:kb}],[0,{[m]:`Manufacturer`,[g]:yv}]]],HE=[3,_,joe,0,[Ooe,Aoe],[[0,{[m]:`ProductCode`,[g]:py}],[0,{[m]:`Type`,[g]:Ux}]]],UE=[3,_,nse,0,[Il],[[0,{[m]:`GatewayId`,[g]:$h}]]],WE=[3,_,lp,0,[ese,sse,nce,sce,pm],[[4,{[m]:`ProvisionTime`,[g]:Ry}],[0,{[m]:`Provisioned`,[g]:qy}],[4,{[m]:`RequestTime`,[g]:_b}],[0,{[m]:`Requested`,[g]:xb}],[0,{[m]:`Status`,[g]:yx}]]],GE=[3,_,Sse,0,[md,f],[[()=>SO,{[g]:Ju}],[2,{[m]:`DryRun`,[g]:p}]],1],KE=[3,_,zse,0,[Bl,Ep,km,Rm,Um],[[0,{[m]:`GroupId`,[g]:tg}],[0,{[m]:`PeeringStatus`,[g]:Fy}],[0,{[m]:`UserId`,[g]:Gx}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`VpcPeeringConnectionId`,[g]:uS}]]],qE=[3,_,oce,0,[ip,Yl,Fp,ul],[[0,{[m]:`OptInStatus`,[g]:$v}],[()=>pk,{[m]:`GeographySet`,[g]:og}],[0,{[m]:`RegionName`,[g]:lb}],[0,{[m]:`RegionEndpoint`,[g]:$y}]]],JE=[3,_,_se,0,[Bf],[[0,{[m]:`Name`,[g]:wv}]]],YE=[3,_,Cse,0,[Bf,vd,Ere,Ai,Cm,Wle,of,xm,f,Xs,Si,mf,Pp,Mp,Oi,Km,nm,il],[[0,{[m]:`Name`,[g]:wv}],0,[()=>XD,{[g]:Dre}],0,0,0,0,[()=>Fk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`Architecture`,[g]:lh}],[0,{[m]:`KernelId`,[g]:P_}],[0,{[m]:`RamdiskId`,[g]:ib}],[0,{[m]:`RootDeviceName`,[g]:Xy}],[()=>QD,{[g]:Di}],[0,{[m]:`VirtualizationType`,[g]:_S}],[0,{[m]:`SriovNetSupport`,[g]:ex}],[2,{[m]:`EnaSupport`,[g]:Gh}]],1],XE=[3,_,wse,0,[fd],[[0,{[m]:`ImageId`,[g]:Kg}]]],ZE=[3,_,lse,0,[oi,bp,Vf,f],[0,0,0,[2,{[m]:`DryRun`,[g]:p}]]],QE=[3,_,lce,0,[Dse,rp,Ase,Dl,Uie],[[0,{[m]:`ReservationId`,[g]:rb}],[0,{[m]:`OwnerId`,[g]:Qv}],[0,{[m]:`RequesterId`,[g]:ob}],[()=>fO,{[m]:`GroupSet`,[g]:sg}],[()=>EO,{[m]:`InstancesSet`,[g]:b_}]]],$E=[3,_,Kse,0,[Wp,Bl,Lu,$d,bl,ym,Vi,Bi,Tp,vse,Xs],[[0,{[m]:`SecurityGroupRuleId`,[g]:Nb}],[0,{[m]:`GroupId`,[g]:tg}],[2,{[m]:`IsEgress`,[g]:Ig}],[0,{[m]:`IpProtocol`,[g]:o_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:Mx}],[0,{[m]:`CidrIpv4`,[g]:Sh}],[0,{[m]:`CidrIpv6`,[g]:xh}],[0,{[m]:`PrefixListId`,[g]:My}],[0,{[m]:`ReferencedGroupId`,[g]:tb}],[0,{[m]:`Description`,[g]:Lh}]]],eD=[3,_,Vse,0,[Bl,Up,f,om,sm,$d,bl,ym,zi,Qd],[[0,{[m]:`GroupId`,[g]:tg}],[()=>Tk,{[g]:Wp}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`SourceSecurityGroupName`,[g]:ix}],[0,{[m]:`SourceSecurityGroupOwnerId`,[g]:ax}],[0,{[m]:`IpProtocol`,[g]:o_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:Mx}],[0,{[m]:`CidrIp`,[g]:bh}],[()=>BO,{[m]:`IpPermissions`,[g]:s_}]],1],tD=[3,_,Hse,0,[jp,Am,Ip],[[2,{[m]:`Return`,[g]:Jy}],[()=>BO,{[m]:`UnknownIpPermissionSet`,[g]:Kx}],[()=>_k,{[m]:`RevokedSecurityGroupRuleSet`,[g]:ub}]]],nD=[3,_,Use,0,[zi,bl,Bl,Wl,Qd,$d,om,sm,ym,Up,f],[0,1,0,0,[()=>BO,0],0,0,0,1,[()=>Tk,{[g]:Wp}],[2,{[m]:`DryRun`,[g]:p}]]],rD=[3,_,Wse,0,[jp,Am,Ip],[[2,{[m]:`Return`,[g]:Jy}],[()=>BO,{[m]:`UnknownIpPermissionSet`,[g]:Kx}],[()=>_k,{[m]:`RevokedSecurityGroupRuleSet`,[g]:ub}]]],iD=[3,_,uce,0,[Ga,$a,Zo,zc,Il,Ju,Wd,Gf,vm,bf,Li,Kf,moe,fm,Um,Hi,ap,xu],[[0,{[m]:`DestinationCidrBlock`,[g]:Mh}],[0,{[m]:`DestinationIpv6CidrBlock`,[g]:Ph}],[0,{[m]:`DestinationPrefixListId`,[g]:Rde}],[0,{[m]:`EgressOnlyInternetGatewayId`,[g]:Vh}],[0,{[m]:`GatewayId`,[g]:$h}],[0,{[m]:`InstanceId`,[g]:Vg}],[0,{[m]:`InstanceOwnerId`,[g]:$g}],[0,{[m]:`NatGatewayId`,[g]:Nv}],[0,{[m]:`TransitGatewayId`,[g]:Tx}],[0,{[m]:`LocalGatewayId`,[g]:G_}],[0,{[m]:`CarrierGatewayId`,[g]:gde}],[0,{[m]:`NetworkInterfaceId`,[g]:Fv}],[0,{[m]:`Origin`,[g]:Yv}],[0,{[m]:`State`,[g]:vx}],[0,{[m]:`VpcPeeringConnectionId`,[g]:uS}],[0,{[m]:`CoreNetworkArn`,[g]:bde}],[0,{[m]:`OdbNetworkArn`,[g]:ny}],[0,{[m]:`IpAddress`,[g]:Ag}]]],aD=[3,_,Rp,0,[hre,ise,Lp,dce,gm,Rm,rp],[[()=>bk,{[m]:`AssociationSet`,[g]:ede}],[()=>dk,{[m]:`PropagatingVgwSet`,[g]:By}],[0,{[m]:`RouteTableId`,[g]:mb}],[()=>yk,{[m]:`RouteSet`,[g]:fb}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`OwnerId`,[g]:Qv}]]],oD=[3,_,Jse,0,[Hae,Yse,Lp,Qp,Il,Cp,pi],[[2,{[m]:`Main`,[g]:vv}],[0,{[m]:`RouteTableAssociationId`,[g]:pb}],[0,{[m]:`RouteTableId`,[g]:mb}],[0,{[m]:`SubnetId`,[g]:qb}],[0,{[m]:`GatewayId`,[g]:$h}],[0,{[m]:`PublicIpv4Pool`,[g]:Dy}],[()=>sD,{[m]:`AssociationState`,[g]:nh}]]],sD=[3,_,Zse,0,[fm,em],[[0,{[m]:`State`,[g]:vx}],[0,{[m]:`StatusMessage`,[g]:Xb}]]],cD=[3,_,xse,0,[cl],[[2,{[m]:`Enabled`,[g]:qh}]],1],lD=[3,_,Tse,0,[bae,xae,Oi,fd,cf,pu,du,mf,gf,zf,Op,Pp,wce,Gp,Qp,Om,vc,Oc,xm,fae,Od,pa,Ui,Yi,eu,lae,Af,Hc,pp,jf,La,Uc,Xf,op,Xp,f,Ra,ld,xp,_a,ai,qf,Qu,Fc],[1,1,[()=>QD,{[g]:Di}],0,0,1,[()=>wO,{[g]:Su}],0,0,[()=>cD,0],[()=>NE,0],0,[()=>Ck,{[g]:Vp}],[()=>Dk,{[g]:Kp}],0,[()=>MS,0],[()=>aO,0],[()=>sO,{[g]:bc}],[()=>Fk,{[g]:Sm}],()=>lE,()=>FT,()=>IC,()=>mC,()=>aC,()=>mT,[()=>YO,{[g]:dae}],()=>IT,()=>nT,()=>RE,()=>PT,2,2,()=>UT,()=>jE,[()=>NO,{[g]:qce}],[2,{[m]:`DryRun`,[g]:p}],[2,{[m]:`DisableApiTermination`,[g]:jh}],[0,{[m]:`InstanceInitiatedShutdownBehavior`,[g]:Gg}],[0,{[m]:`PrivateIpAddress`,[g]:Ey}],[0,{[m]:`ClientToken`,[E_]:1,[g]:Eh}],[0,{[m]:`AdditionalInfo`,[g]:Qm}],[()=>OO,{[m]:`NetworkInterface`,[g]:Rv}],[()=>_T,{[m]:`IamInstanceProfile`,[g]:Hg}],[2,{[m]:`EbsOptimized`,[g]:Bh}]],2],uD=[3,_,Kp,0,[Bl,Jd,gm,Rm,Bp,rp,Wl,Xs,Qd],[[0,{[m]:`GroupId`,[g]:tg}],[()=>BO,{[m]:`IpPermissionsEgress`,[g]:n_}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`SecurityGroupArn`,[g]:Ab}],[0,{[m]:`OwnerId`,[g]:Qv}],[0,{[m]:`GroupName`,[g]:rg}],[0,{[m]:`GroupDescription`,[g]:Pfe}],[()=>BO,{[m]:`IpPermissions`,[g]:s_}]]],dD=[3,_,kce,0,[Wp,Bl,ql,Lu,$d,bl,ym,Vi,Bi,Tp,yse,Xs,gm,Ece],[[0,{[m]:`SecurityGroupRuleId`,[g]:Nb}],[0,{[m]:`GroupId`,[g]:tg}],[0,{[m]:`GroupOwnerId`,[g]:ig}],[2,{[m]:`IsEgress`,[g]:Ig}],[0,{[m]:`IpProtocol`,[g]:o_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:Mx}],[0,{[m]:`CidrIpv4`,[g]:Sh}],[0,{[m]:`CidrIpv6`,[g]:xh}],[0,{[m]:`PrefixListId`,[g]:My}],[()=>KE,{[m]:`ReferencedGroupInfo`,[g]:nb}],[0,{[m]:`Description`,[g]:Lh}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`SecurityGroupRuleArn`,[g]:Mb}]]],fD=[3,_,xle,0,[hoe,np,gm,mle,hse,um,gi,Ble,Ii,Sa,Sl,Zp,Bm,fm,tm,lm,Ap,rp,Xs,Wm,ll,hf,Ja],[[0,{[m]:`OwnerAlias`,[g]:Zv}],[0,{[m]:`OutpostArn`,[g]:Xv}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`StorageTier`,[g]:fx}],[4,{[m]:`RestoreExpiryTime`,[g]:Qy}],[0,{[m]:`SseType`,[g]:dx}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[0,{[m]:`TransferType`,[g]:zx}],[1,{[m]:`CompletionDurationMinutes`,[g]:mde}],[4,{[m]:`CompletionTime`,[g]:Dde}],[1,{[m]:`FullSnapshotSizeInBytes`,[g]:Afe}],[0,{[m]:`SnapshotId`,[g]:Kb}],[0,{[m]:`VolumeId`,[g]:iS}],[0,{[m]:`Status`,[g]:yx}],[0,{[m]:`StatusMessage`,[g]:Xb}],[4,{[m]:`StartTime`,[g]:ux}],[0,{[m]:`Progress`,[g]:Ky}],[0,{[m]:`OwnerId`,[g]:Qv}],[0,{[m]:`Description`,[g]:Lh}],[1,{[m]:`VolumeSize`,[g]:pS}],[2,{[m]:`Encrypted`,[g]:Jh}],[0,{[m]:`KmsKeyId`,[g]:F_}],[0,{[m]:`DataEncryptionKeyId`,[g]:jde}]]],pD=[3,_,rle,0,[Pae,Kce,xre,Cue,Zu],[0,0,1,4,0]],mD=[3,_,zce,0,[md,ai,f],[[()=>SO,{[g]:Ju}],[0,{[m]:`AdditionalInfo`,[g]:Qm}],[2,{[m]:`DryRun`,[g]:p}]],1],hD=[3,_,Bce,0,[Yce],[[()=>PO,{[m]:`InstancesSet`,[g]:b_}]]],gD=[3,_,am,0,[Aa,Lf],[[0,{[m]:`Code`,[g]:kh}],[0,{[m]:`Message`,[g]:xv}]]],_D=[3,_,Vce,0,[md,cu,rm,f,dl],[[()=>SO,{[g]:Ju}],2,2,[2,{[m]:`DryRun`,[g]:p}],[2,{[m]:`Force`,[g]:jfe}]],1],vD=[3,_,Hce,0,[Zce],[[()=>PO,{[m]:`InstancesSet`,[g]:b_}]]],yD=[3,_,hm,0,[yi,Pc,Ef,Gi,rp,ii,Ou,gm,hce,np,cc,jd,mp,ji,Dm,Qp,fm,Rm,Pi,Ene,gi,Xa,Mf],[[0,{[m]:`AvailabilityZoneId`,[g]:oh}],[1,{[m]:`EnableLniAtDeviceIndex`,[g]:mfe}],[2,{[m]:`MapCustomerOwnedIpOnLaunch`,[g]:ev}],[0,{[m]:`CustomerOwnedIpv4Pool`,[g]:wh}],[0,{[m]:`OwnerId`,[g]:Qv}],[2,{[m]:`AssignIpv6AddressOnCreation`,[g]:Vue}],[()=>jk,{[m]:`Ipv6CidrBlockAssociationSet`,[g]:Ng}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`SubnetArn`,[g]:wb}],[0,{[m]:`OutpostArn`,[g]:Xv}],[2,{[m]:`EnableDns64`,[g]:$de}],[2,{[m]:`Ipv6Native`,[g]:Xg}],[()=>LE,{[m]:`PrivateDnsNameOptionsOnLaunch`,[g]:hy}],[()=>iC,{[m]:`BlockPublicAccessStates`,[g]:gh}],[0,{[m]:`Type`,[g]:Ux}],[0,{[m]:`SubnetId`,[g]:qb}],[0,{[m]:`State`,[g]:vx}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`CidrBlock`,[g]:vh}],[1,{[m]:`AvailableIpAddressCount`,[g]:Bue}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[2,{[m]:`DefaultForAz`,[g]:Nde}],[2,{[m]:`MapPublicIpOnLaunch`,[g]:fv}]]],bD=[3,_,vce,0,[fm,em],[[0,{[m]:`State`,[g]:vx}],[0,{[m]:`StatusMessage`,[g]:Xb}]]],xD=[3,_,Mce,0,[ci,Du,Au,fu,sf],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`Ipv6CidrBlock`,[g]:Mg}],[()=>bD,{[m]:`Ipv6CidrBlockState`,[g]:Pg}],[0,{[m]:`Ipv6AddressAttribute`,[g]:Sg}],[0,{[m]:`IpSource`,[g]:S_}]]],SD=[3,_,wm,0,[Wie,Pm],[[0,{[m]:`Key`,[g]:M_}],[0,{[m]:`Value`,[g]:Zx}]]],CD=[3,_,Sm,0,[tce,gm],[[0,{[m]:`ResourceType`,[g]:gb}],[()=>Pk,{[g]:wm}]]],wD=[3,_,Dle,0,[md,dl,rm,f],[[()=>SO,{[g]:Ju}],2,2,[2,{[m]:`DryRun`,[g]:p}]],1],TD=[3,_,Ole,0,[Ale],[[()=>PO,{[m]:`InstancesSet`,[g]:b_}]]],ED=[3,_,qle,0,[Xs,km,Wl,Bl,Rm,Um,Ep],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`UserId`,[g]:Gx}],[0,{[m]:`GroupName`,[g]:rg}],[0,{[m]:`GroupId`,[g]:tg}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`VpcPeeringConnectionId`,[g]:uS}],[0,{[m]:`PeeringStatus`,[g]:Fy}]]],DD=[3,_,Fm,0,[Ls,qa,Ms,eue,Sue],[[1,{[m]:`DefaultVCpus`,[g]:Jde}],[1,{[m]:`DefaultCores`,[g]:Ade}],[1,{[m]:`DefaultThreadsPerCore`,[g]:Ude}],[()=>eO,{[m]:`ValidCores`,[g]:$x}],[()=>Ik,{[m]:`ValidThreadsPerCore`,[g]:gS}]]],OD=[3,_,Eue,0,[yi,np,_le,ff,gm,Gm,xl,Sf,Tm,um,op,zm,Bm,dm,Zp,gi,fm,wa,Ti,ll,hf],[[0,{[m]:`AvailabilityZoneId`,[g]:oh}],[0,{[m]:`OutpostArn`,[g]:Xv}],[0,{[m]:`SourceVolumeId`,[g]:mx}],[1,{[m]:`Iops`,[g]:j_}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[0,{[m]:`VolumeType`,[g]:hS}],[2,{[m]:`FastRestored`,[g]:kfe}],[2,{[m]:`MultiAttachEnabled`,[g]:X_}],[1,{[m]:`Throughput`,[g]:Vx}],[0,{[m]:`SseType`,[g]:dx}],[()=>ME,{[m]:`Operator`,[g]:oy}],[1,{[m]:`VolumeInitializationRate`,[g]:rS}],[0,{[m]:`VolumeId`,[g]:iS}],[1,{[m]:`Size`,[g]:_x}],[0,{[m]:`SnapshotId`,[g]:Kb}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[0,{[m]:`Status`,[g]:yx}],[4,{[m]:`CreateTime`,[g]:Oh}],[()=>Vk,{[m]:`AttachmentSet`,[g]:rh}],[2,{[m]:`Encrypted`,[g]:Jh}],[0,{[m]:`KmsKeyId`,[g]:F_}]]],kD=[3,_,Xle,0,[Go,di,Gd,rc,Bm,Ju,Zs,fm,hi],[[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[0,{[m]:`AssociatedResource`,[g]:th}],[0,{[m]:`InstanceOwningService`,[g]:t_}],[1,{[m]:`EbsCardIndex`,[g]:zh}],[0,{[m]:`VolumeId`,[g]:iS}],[0,{[m]:`InstanceId`,[g]:Vg}],[0,{[m]:`Device`,[g]:Yde}],[0,{[m]:`Status`,[g]:yx}],[4,{[m]:`AttachTime`,[g]:ih}]]],AD=[3,_,Vm,0,[Bm,Pf,em,Rle,kle,Vle,zle,Mle,Soe,goe,woe,Coe,voe,Ap,lm,al,op],[[0,{[m]:`VolumeId`,[g]:iS}],[0,{[m]:`ModificationState`,[g]:gv}],[0,{[m]:`StatusMessage`,[g]:Xb}],[1,{[m]:`TargetSize`,[g]:Ix}],[1,{[m]:`TargetIops`,[g]:Ox}],[0,{[m]:`TargetVolumeType`,[g]:Bx}],[1,{[m]:`TargetThroughput`,[g]:Rx}],[2,{[m]:`TargetMultiAttachEnabled`,[g]:kx}],[1,{[m]:`OriginalSize`,[g]:ry}],[1,{[m]:`OriginalIops`,[g]:ey}],[0,{[m]:`OriginalVolumeType`,[g]:ay}],[1,{[m]:`OriginalThroughput`,[g]:iy}],[2,{[m]:`OriginalMultiAttachEnabled`,[g]:ty}],[1,{[m]:`Progress`,[g]:Ky}],[4,{[m]:`StartTime`,[g]:ux}],[4,{[m]:`EndTime`,[g]:Efe}],[()=>ME,{[m]:`Operator`,[g]:oy}]]],jD=[3,_,Jm,0,[rp,lf,Ou,Are,Iu,sc,gm,ji,Rm,fm,Pi,Wo],[[0,{[m]:`OwnerId`,[g]:Qv}],[0,{[m]:`InstanceTenancy`,[g]:O_}],[()=>Kk,{[m]:`Ipv6CidrBlockAssociationSet`,[g]:Ng}],[()=>Wk,{[m]:`CidrBlockAssociationSet`,[g]:ude}],[2,{[m]:`IsDefault`,[g]:Fg}],[()=>PD,{[m]:`EncryptionControl`,[g]:Qde}],[()=>Pk,{[m]:`TagSet`,[g]:Px}],[()=>iC,{[m]:`BlockPublicAccessStates`,[g]:gh}],[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`State`,[g]:vx}],[0,{[m]:`CidrBlock`,[g]:vh}],[0,{[m]:`DhcpOptionsId`,[g]:Lde}]]],MD=[3,_,Zle,0,[ci,Pi,Mre],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`CidrBlock`,[g]:vh}],[()=>ND,{[m]:`CidrBlockState`,[g]:fde}]]],ND=[3,_,$le,0,[fm,em],[[0,{[m]:`State`,[g]:vx}],[0,{[m]:`StatusMessage`,[g]:Xb}]]],PD=[3,_,Im,0,[Rm,iue,Rf,fm,tm,gse,gm],[[0,{[m]:`VpcId`,[g]:nS}],[0,{[m]:`VpcEncryptionControlId`,[g]:eS}],[0,{[m]:`Mode`,[g]:Sv}],[0,{[m]:`State`,[g]:vx}],[0,{[m]:`StateMessage`,[g]:Zb}],[()=>LD,{[m]:`ResourceExclusions`,[g]:eb}],[()=>Pk,{[m]:`TagSet`,[g]:Px}]]],FD=[3,_,tue,0,[Rf,Hu,Rc,aoe,yue,_ue,aae,fue,uc],[0,0,0,0,0,0,0,0,0],1],ID=[3,_,nue,0,[fm,tm],[[0,{[m]:`State`,[g]:vx}],[0,{[m]:`StateMessage`,[g]:Zb}]]],LD=[3,_,rue,0,[Ru,Lc,Wf,vue,gue,nae,due,lc],[[()=>ID,{[m]:`InternetGateway`,[g]:Lg}],[()=>ID,{[m]:`EgressOnlyInternetGateway`,[g]:gfe}],[()=>ID,{[m]:`NatGateway`,[g]:jv}],[()=>ID,{[m]:`VirtualPrivateGateway`,[g]:dS}],[()=>ID,{[m]:`VpcPeering`,[g]:lS}],[()=>ID,{[m]:`Lambda`,[g]:H_}],[()=>ID,{[m]:`VpcLattice`,[g]:aS}],[()=>ID,{[m]:`ElasticFileSystem`,[g]:efe}]]],RD=[3,_,aue,0,[ci,Du,Au,Vf,tf,fu,sf],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`Ipv6CidrBlock`,[g]:Mg}],[()=>ND,{[m]:`Ipv6CidrBlockState`,[g]:Pg}],[0,{[m]:`NetworkBorderGroup`,[g]:Tv}],[0,{[m]:`Ipv6Pool`,[g]:l_}],[0,{[m]:`Ipv6AddressAttribute`,[g]:Sg}],[0,{[m]:`IpSource`,[g]:S_}]]],zD=`unit`,BD=[1,_,Lne,0,[()=>PS,{[g]:h}]],VD=[1,_,Mne,0,[0,{[g]:oi}]],HD=[1,_,tre,0,[0,{[g]:h}]],UD=[1,_,Nne,0,[0,{[g]:ci}]],WD=[1,_,vi,0,[()=>QS,{[g]:_i}]],GD=[1,_,ore,0,[()=>$S,{[g]:h}]],KD=[1,_,sre,0,[()=>ZS,{[g]:h}]],qD=[1,_,lre,0,[()=>eC,{[g]:h}]],JD=[1,_,dre,0,[()=>tC,{[g]:h}]],YD=[1,_,Ore,0,[0,{[g]:h}]],XD=[1,_,wre,0,[0,{[g]:h}]],ZD=[1,_,yre,0,[()=>rC,{[g]:h}]],QD=[1,_,bre,0,[()=>rC,{[g]:Di}]],$D=[1,_,Sre,0,[0,{[g]:h}]],eO=[1,_,Nre,0,[1,{[g]:h}]],tO=[1,_,bs,0,[()=>YC,{[g]:h}]],nO=[1,_,mo,0,[()=>Vw,{[g]:h}]],rO=[1,_,ic,0,[()=>Uw,{[g]:h}]],iO=[1,_,pc,0,[()=>Yw,{[g]:h}]],aO=[1,_,yc,0,[()=>Xw,{[g]:h}]],oO=[1,_,Cc,0,[()=>Qw,{[g]:h}]],sO=[1,_,Oc,0,[()=>Zw,{[g]:h}]],cO=[1,_,tc,0,[0,{[g]:nc}]],lO=[1,_,vl,0,[()=>rT,{[g]:Tl}]],uO=[1,_,ml,0,[()=>iT,{[g]:h}]],dO=[1,_,Pl,0,[()=>lT,{[g]:h}]],fO=[1,_,Ll,0,[()=>fT,{[g]:h}]],pO=[1,_,Rl,0,[0,{[g]:tg}]],mO=[1,_,Gl,0,[0,{[g]:Wl}]],hO=[1,_,ed,0,[()=>gT,{[g]:h}]],gO=[1,_,ud,0,[0,{[g]:fd}]],_O=[1,_,yd,0,[()=>vT,{[g]:h}]],vO=[1,_,Rie,0,[()=>yT,{[g]:h}]],yO=[1,_,Nu,0,[()=>CT,0]],bO=[1,_,wu,0,[()=>OT,{[g]:h}]],xO=[1,_,Eu,0,[()=>kT,{[g]:h}]],SO=[1,_,dd,0,[0,{[g]:Ju}]],CO=[1,_,id,0,[()=>AT,{[g]:h}]],wO=[1,_,Xu,0,[()=>jT,{[g]:h}]],TO=[1,_,ad,0,[()=>MT,{[g]:h}]],EO=[1,_,xd,0,[()=>TT,{[g]:h}]],DO=[1,_,Fd,0,[()=>RT,{[g]:h}]],OO=[1,_,Ld,0,[()=>VT,{[g]:h}]],kO=[1,_,rie,0,[()=>WT,{[g]:h}]],AO=[1,_,Sie,0,[()=>GT,{[g]:h}]],jO=[1,_,wie,0,[()=>qT,{[g]:h}]],MO=[1,_,Tie,0,[()=>JT,{[g]:h}]],NO=[1,_,Die,0,[()=>YT,{[g]:h}]],PO=[1,_,bie,0,[()=>ZT,{[g]:h}]],FO=[1,_,Nie,0,[()=>$T,{[g]:h}]],IO=[1,_,Bu,0,[()=>tE,{[g]:h}]],LO=[1,_,Wu,0,[0,{[g]:h}]],RO=[1,_,Ku,0,[()=>eE,{[g]:h}]],zO=[1,_,Sd,0,[0,{[g]:h}]],BO=[1,_,oie,0,[()=>nE,{[g]:h}]],VO=[1,_,pie,0,[()=>rE,{[g]:h}]],HO=[1,_,sie,0,[()=>iE,{[g]:h}]],UO=[1,_,cie,0,[()=>aE,{[g]:h}]],WO=[1,_,mie,0,[()=>oE,{[g]:h}]],GO=[1,_,qie,0,[0,{[g]:gf}]],KO=[1,_,Xie,0,[0,{[g]:_f}]],qO=[1,_,$ie,0,[()=>cE,{[g]:h}]],JO=[1,_,sae,0,[()=>uE,{[g]:h}]],YO=[1,_,uae,0,[()=>dE,{[g]:h}]],XO=[1,_,Cae,0,[()=>pE,{[g]:h}]],ZO=[1,_,roe,0,[()=>SE,{[g]:h}]],QO=[1,_,noe,0,[()=>CE,{[g]:h}]],$O=[1,_,ooe,0,[0,{[g]:h}]],ek=[1,_,coe,0,[()=>xE,{[g]:h}]],tk=[1,_,Kae,0,[()=>wE,{[g]:h}]],nk=[1,_,Xae,0,[()=>DE,{[g]:h}]],rk=[1,_,poe,0,[0,{[g]:h}]],ik=[1,_,xoe,0,[0,{[g]:sp}]],ak=[1,_,Foe,0,[0,{[g]:Bl}]],ok=[1,_,Ioe,0,[()=>PE,{[g]:h}]],sk=[1,_,Loe,0,[0,{[g]:h}]],ck=[1,_,Yoe,0,[()=>IE,{[g]:h}]],lk=[1,_,Voe,0,[()=>BE,{[g]:h}]],uk=[1,_,koe,0,[()=>HE,{[g]:h}]],dk=[1,_,rse,0,[()=>UE,{[g]:h}]],fk=[1,_,Uoe,0,[0,{[g]:bp}]],pk=[1,_,bse,0,[()=>JE,{[g]:h}]],mk=[1,_,Mse,0,[()=>qE,{[g]:h}]],hk=[1,_,Lse,0,[0,{[g]:Fp}]],gk=[1,_,Nse,0,[()=>QE,{[g]:h}]],_k=[1,_,qse,0,[()=>$E,{[g]:h}]],vk=[1,_,mse,0,[0,{[g]:h}]],yk=[1,_,Pse,0,[()=>iD,{[g]:h}]],bk=[1,_,Xse,0,[()=>oD,{[g]:h}]],xk=[1,_,Qse,0,[0,{[g]:h}]],Sk=[1,_,ece,0,[()=>aD,{[g]:h}]],Ck=[1,_,Cce,0,[0,{[g]:Vp}]],wk=[1,_,Tce,0,[()=>uD,{[g]:h}]],Tk=[1,_,Dce,0,[0,{[g]:h}]],Ek=[1,_,Oce,0,[()=>dD,{[g]:h}]],Dk=[1,_,Ace,0,[0,{[g]:Kp}]],Ok=[1,_,Wce,0,[0,{[g]:Zp}]],kk=[1,_,ele,0,[()=>fD,{[g]:h}]],Ak=[1,_,Gce,0,[0,{[g]:Qp}]],jk=[1,_,Nce,0,[()=>xD,{[g]:h}]],Mk=[1,_,tle,0,[()=>yD,{[g]:h}]],Nk=[1,_,mce,0,[0,{[g]:h}]],Pk=[1,_,jle,0,[()=>SD,{[g]:h}]],Fk=[1,_,Lle,0,[()=>CD,{[g]:h}]],Ik=[1,_,Fle,0,[1,{[g]:h}]],Lk=[1,_,Ule,0,[0,{[g]:h}]],Rk=[1,_,Kle,0,[()=>ED,{[g]:h}]],zk=[1,_,bue,0,[0,{[g]:h}]],Bk=[1,_,xue,0,[0,{[g]:h}]],Vk=[1,_,Yle,0,[()=>kD,{[g]:h}]],Hk=[1,_,sue,0,[0,{[g]:Bm}]],Uk=[1,_,pue,0,[()=>OD,{[g]:h}]],Wk=[1,_,Qle,0,[()=>MD,{[g]:h}]],Gk=[1,_,cue,0,[0,{[g]:Rm}]],Kk=[1,_,oue,0,[()=>RD,{[g]:h}]],qk=[1,_,mue,0,[()=>jD,{[g]:h}]],Jk=[1,_,Aue,0,[0,{[g]:h}]],Yk=[1,_,Mue,0,[0,{[g]:Ym}]],Xk=[1,_,Pue,0,[0,{[g]:Xm}]],Zk=[9,_,yne,0,()=>FS,()=>IS],Qk=[9,_,xne,0,()=>LS,()=>RS],$k=[9,_,kne,0,()=>zS,()=>BS],eA=[9,_,Wne,0,()=>VS,()=>HS],tA=[9,_,Dne,0,()=>US,()=>zD],nA=[9,_,ire,0,()=>WS,()=>kD],rA=[9,_,qne,0,()=>qS,()=>JS],iA=[9,_,Qne,0,()=>YS,()=>XS],aA=[9,_,fa,0,()=>dC,()=>fC],oA=[9,_,Wre,0,()=>hC,()=>gC],sA=[9,_,Rre,0,()=>_C,()=>vC],cA=[9,_,Gre,0,()=>yC,()=>sE],lA=[9,_,qre,0,()=>bC,()=>xC],uA=[9,_,Zre,0,()=>SC,()=>CC],dA=[9,_,ta,0,()=>wC,()=>TC],fA=[9,_,ea,0,()=>EC,()=>DC],pA=[9,_,na,0,()=>OC,()=>kC],mA=[9,_,ma,0,()=>AC,()=>fD],hA=[9,_,ha,0,()=>jC,()=>MC],gA=[9,_,Oa,0,()=>NC,()=>OD],_A=[9,_,ka,0,()=>PC,()=>FC],vA=[9,_,eo,0,()=>RC,()=>zD],yA=[9,_,Oo,0,()=>zC,()=>BC],bA=[9,_,Lo,0,()=>VC,()=>HC],xA=[9,_,Ko,0,()=>UC,()=>zD],SA=[9,_,us,0,()=>WC,()=>zD],CA=[9,_,ns,0,()=>GC,()=>zD],wA=[9,_,fs,0,()=>KC,()=>qC],TA=[9,_,Ds,0,()=>JC,()=>zD],EA=[9,_,Os,0,()=>XC,()=>zD],DA=[9,_,Gs,0,()=>ZC,()=>zD],OA=[9,_,Ks,0,()=>QC,()=>zD],kA=[9,_,wo,0,()=>$C,()=>ew],AA=[9,_,Ua,0,()=>tw,()=>nw],jA=[9,_,Ha,0,()=>rw,()=>iw],MA=[9,_,co,0,()=>aw,()=>ow],NA=[9,_,To,0,()=>sw,()=>cw],PA=[9,_,Eo,0,()=>lw,()=>uw],FA=[9,_,Co,0,()=>dw,()=>fw],IA=[9,_,ao,0,()=>pw,()=>mw],LA=[9,_,No,0,()=>hw,()=>gw],RA=[9,_,Ho,0,()=>_w,()=>vw],zA=[9,_,Xo,0,()=>yw,()=>bw],BA=[9,_,ds,0,()=>xw,()=>Sw],VA=[9,_,ss,0,()=>Cw,()=>ww],HA=[9,_,_s,0,()=>Tw,()=>Ew],UA=[9,_,ks,0,()=>Dw,()=>Ow],WA=[9,_,As,0,()=>kw,()=>Aw],GA=[9,_,qs,0,()=>jw,()=>Mw],KA=[9,_,Js,0,()=>Nw,()=>Pw],qA=[9,_,oo,0,()=>Fw,()=>zD],JA=[9,_,Ys,0,()=>Iw,()=>kD],YA=[9,_,Wa,0,()=>Lw,()=>zD],XA=[9,_,so,0,()=>Rw,()=>zw],ZA=[9,_,cs,0,()=>Bw,()=>zD],QA=[9,_,kl,0,()=>sT,()=>cT],$A=[9,_,hd,0,()=>bT,()=>xT],ej=[9,_,Mae,0,()=>gE,()=>zD],tj=[9,_,Iae,0,()=>_E,()=>zD],nj=[9,_,Vae,0,()=>vE,()=>yE],rj=[9,_,Ose,0,()=>GE,()=>zD],ij=[9,_,kse,0,()=>YE,()=>XE],aj=[9,_,use,0,()=>ZE,()=>zD],oj=[9,_,Bse,0,()=>eD,()=>tD],sj=[9,_,Gse,0,()=>nD,()=>rD],cj=[9,_,jse,0,()=>lD,()=>QE],lj=[9,_,Xce,0,()=>mD,()=>hD],uj=[9,_,Qce,0,()=>_D,()=>vD],dj=[9,_,Tle,0,()=>wD,()=>TD],fj=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??fne,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??rne,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Bee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:kS,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),pj=e=>{let t=Je(e),n=()=>t().then(ft),r=fj(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:sne.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},mj=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},hj=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),gj=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),mj(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),hj(n))},_j=class extends fe{config;constructor(...[e]){let t=pj(e||{});super(t),this.initConfig=t;let n=gj(ine(Qe(Me(be(rt(ge(ane(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:tne,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},vj=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,yj=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function bj(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecr`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var xj=e=>{let t=[];switch(e.operation){default:t.push(bj(e))}return t},Sj=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},Cj=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecr`}),wj={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Tj={name:`@aws-sdk/client-ecr`,description:`AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecr`}},Ej=`ref`,Dj=-1,Oj=!0,kj=`isSet`,Aj=`PartitionResult`,jj=`stringEquals`,Mj=`booleanEquals`,Nj=`getAttr`,Pj={[Ej]:`Endpoint`},Fj={fn:Nj,argv:[{[Ej]:Aj},`name`]},Ij={[Ej]:Aj},Lj={},Rj=[{[Ej]:`Region`}],zj={conditions:[[kj,[Pj]],[kj,Rj],[`aws.partition`,Rj,Aj],[jj,[Fj,`aws-eusc`]],[jj,[Fj,`aws-iso-f`]],[jj,[Fj,`aws-iso-e`]],[jj,[Fj,`aws-iso-b`]],[jj,[Fj,`aws-iso`]],[jj,[Fj,`aws-cn`]],[jj,[Fj,`aws-us-gov`]],[jj,[Fj,`aws`]],[Mj,[{[Ej]:`UseFIPS`},Oj]],[Mj,[{fn:Nj,argv:[Ij,`supportsFIPS`]},Oj]],[Mj,[{[Ej]:`UseDualStack`},Oj]],[Mj,[{fn:Nj,argv:[Ij,`supportsDualStack`]},Oj]]],results:[[Dj],[Dj,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Dj,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Pj,Lj],[`https://api.ecr.{Region}.{PartitionResult#dnsSuffix}`,Lj],[`https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Lj],[`https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}`,Lj],[`https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Lj],[`https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Lj],[Dj,`FIPS and DualStack are enabled, but this partition does not support one or both`],[Dj,`FIPS is enabled but this partition does not support FIPS`],[`https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Lj],[Dj,`DualStack is enabled but this partition does not support DualStack`],[Dj,`Invalid Configuration: Missing Region`]]},Bj=2,Vj=new Int32Array([-1,1,-1,0,23,3,1,4,100000013,2,5,100000013,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,100000004,14,100000011,100000012,12,18,17,13,100000009,100000010,13,19,100000006,14,100000008,100000009,11,22,21,13,100000005,100000004,13,100000007,100000006,11,100000001,24,13,100000002,100000003]),Hj=nt.from(Vj,Bj,zj.conditions,zj.results),Uj=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Wj=(e,t={})=>Uj.get(e,()=>at(Hj,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var v=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Gj=class e extends v{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kj=class e extends v{name=`RepositoryNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qj=class e extends v{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jj=class e extends v{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yj=class e extends v{name=`UnableToGetUpstreamImageException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamImageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Xj=class e extends v{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zj=class e extends v{name=`EmptyUploadException`;$fault=`client`;constructor(t){super({name:`EmptyUploadException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qj=class e extends v{name=`InvalidLayerException`;$fault=`client`;constructor(t){super({name:`InvalidLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$j=class e extends v{name=`KmsException`;$fault=`client`;kmsError;constructor(t){super({name:`KmsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.kmsError=t.kmsError}},eM=class e extends v{name=`LayerAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`LayerAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tM=class e extends v{name=`LayerPartTooSmallException`;$fault=`client`;constructor(t){super({name:`LayerPartTooSmallException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nM=class e extends v{name=`UploadNotFoundException`;$fault=`client`;constructor(t){super({name:`UploadNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rM=class e extends v{name=`PullThroughCacheRuleAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iM=class e extends v{name=`SecretNotFoundException`;$fault=`client`;constructor(t){super({name:`SecretNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aM=class e extends v{name=`UnableToAccessSecretException`;$fault=`client`;constructor(t){super({name:`UnableToAccessSecretException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oM=class e extends v{name=`UnableToDecryptSecretValueException`;$fault=`client`;constructor(t){super({name:`UnableToDecryptSecretValueException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sM=class e extends v{name=`UnsupportedUpstreamRegistryException`;$fault=`client`;constructor(t){super({name:`UnsupportedUpstreamRegistryException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cM=class e extends v{name=`InvalidTagParameterException`;$fault=`client`;constructor(t){super({name:`InvalidTagParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lM=class e extends v{name=`RepositoryAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`RepositoryAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uM=class e extends v{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dM=class e extends v{name=`TemplateAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`TemplateAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fM=class e extends v{name=`LifecyclePolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pM=class e extends v{name=`PullThroughCacheRuleNotFoundException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mM=class e extends v{name=`RegistryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RegistryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hM=class e extends v{name=`RepositoryNotEmptyException`;$fault=`client`;constructor(t){super({name:`RepositoryNotEmptyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gM=class e extends v{name=`TemplateNotFoundException`;$fault=`client`;constructor(t){super({name:`TemplateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_M=class e extends v{name=`RepositoryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vM=class e extends v{name=`SigningConfigurationNotFoundException`;$fault=`client`;constructor(t){super({name:`SigningConfigurationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yM=class e extends v{name=`ExclusionNotFoundException`;$fault=`client`;constructor(t){super({name:`ExclusionNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bM=class e extends v{name=`ImageNotFoundException`;$fault=`client`;constructor(t){super({name:`ImageNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xM=class e extends v{name=`ScanNotFoundException`;$fault=`client`;constructor(t){super({name:`ScanNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SM=class e extends v{name=`LayerInaccessibleException`;$fault=`client`;constructor(t){super({name:`LayerInaccessibleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CM=class e extends v{name=`LayersNotFoundException`;$fault=`client`;constructor(t){super({name:`LayersNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wM=class e extends v{name=`UnableToGetUpstreamLayerException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TM=class e extends v{name=`LifecyclePolicyPreviewNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},EM=class e extends v{name=`UnableToListUpstreamImageReferrersException`;$fault=`client`;constructor(t){super({name:`UnableToListUpstreamImageReferrersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DM=class e extends v{name=`ImageAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OM=class e extends v{name=`ImageDigestDoesNotMatchException`;$fault=`client`;constructor(t){super({name:`ImageDigestDoesNotMatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kM=class e extends v{name=`ImageTagAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageTagAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AM=class e extends v{name=`ReferencedImagesNotFoundException`;$fault=`client`;constructor(t){super({name:`ReferencedImagesNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jM=class e extends v{name=`BlockedByOrganizationPolicyException`;$fault=`client`;constructor(t){super({name:`BlockedByOrganizationPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MM=class e extends v{name=`ExclusionAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ExclusionAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NM=class e extends v{name=`ImageArchivedException`;$fault=`client`;constructor(t){super({name:`ImageArchivedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PM=class e extends v{name=`UnsupportedImageTypeException`;$fault=`client`;constructor(t){super({name:`UnsupportedImageTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FM=class e extends v{name=`LifecyclePolicyPreviewInProgressException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IM=class e extends v{name=`ImageStorageClassUpdateNotSupportedException`;$fault=`client`;constructor(t){super({name:`ImageStorageClassUpdateNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LM=class e extends v{name=`InvalidLayerPartException`;$fault=`client`;registryId;repositoryName;uploadId;lastValidByteReceived;constructor(t){super({name:`InvalidLayerPartException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.registryId=t.registryId,this.repositoryName=t.repositoryName,this.uploadId=t.uploadId,this.lastValidByteReceived=t.lastValidByteReceived}},RM=`BlockedByOrganizationPolicyException`,zM=`BatchDeleteImage`,BM=`BatchDeleteImageRequest`,VM=`BatchDeleteImageResponse`,HM=`CreateRepository`,UM=`CreateRepositoryRequest`,WM=`CreateRepositoryResponse`,GM=`DescribeImages`,KM=`DescribeImagesFilter`,qM=`DescribeImagesRequest`,JM=`DescribeImagesResponse`,YM=`DeleteLifecyclePolicy`,XM=`DeleteLifecyclePolicyRequest`,ZM=`DeleteLifecyclePolicyResponse`,QM=`DeleteRepository`,$M=`DeleteRepositoryPolicyRequest`,eN=`DeleteRepositoryPolicyResponse`,tN=`DeleteRepositoryPolicy`,nN=`DeleteRepositoryRequest`,rN=`DeleteRepositoryResponse`,iN=`DescribeRepositoriesRequest`,aN=`DescribeRepositoriesResponse`,oN=`DescribeRepositories`,sN=`ExclusionAlreadyExistsException`,cN=`EncryptionConfiguration`,lN=`ExclusionNotFoundException`,uN=`EmptyUploadException`,dN=`GetLifecyclePolicy`,fN=`GetLifecyclePolicyPreview`,pN=`GetLifecyclePolicyPreviewRequest`,mN=`GetLifecyclePolicyPreviewResponse`,hN=`GetLifecyclePolicyRequest`,gN=`GetLifecyclePolicyResponse`,_N=`GetRepositoryPolicyRequest`,vN=`GetRepositoryPolicyResponse`,yN=`GetRepositoryPolicy`,bN=`ImageArchivedException`,xN=`ImageAlreadyExistsException`,SN=`ImageDetail`,CN=`ImageDigestDoesNotMatchException`,wN=`ImageDetailList`,TN=`ImageFailure`,EN=`ImageFailureList`,DN=`ImageIdentifier`,ON=`ImageIdentifierList`,kN=`InvalidLayerException`,AN=`InvalidLayerPartException`,jN=`ImageNotFoundException`,MN=`InvalidParameterException`,NN=`ImageScanningConfiguration`,PN=`ImageStorageClassUpdateNotSupportedException`,FN=`ImageScanFindingsSummary`,IN=`ImageScanStatus`,LN=`ImageTagAlreadyExistsException`,RN=`ImageTagMutabilityExclusionFilter`,zN=`ImageTagMutabilityExclusionFilters`,BN=`InvalidTagParameterException`,VN=`Key`,HN=`KmsException`,UN=`LayerAlreadyExistsException`,WN=`LimitExceededException`,GN=`LayerInaccessibleException`,KN=`LayersNotFoundException`,qN=`LifecyclePolicyNotFoundException`,JN=`LifecyclePolicyPreviewFilter`,YN=`LifecyclePolicyPreviewInProgressException`,XN=`LifecyclePolicyPreviewNotFoundException`,ZN=`LifecyclePolicyPreviewResult`,QN=`LifecyclePolicyPreviewResultList`,$N=`LifecyclePolicyPreviewSummary`,eP=`LifecyclePolicyRuleAction`,tP=`LayerPartTooSmallException`,nP=`PutImageTagMutability`,rP=`PutImageTagMutabilityRequest`,iP=`PutImageTagMutabilityResponse`,aP=`PutLifecyclePolicy`,oP=`PutLifecyclePolicyRequest`,sP=`PutLifecyclePolicyResponse`,cP=`PullThroughCacheRuleAlreadyExistsException`,lP=`PullThroughCacheRuleNotFoundException`,uP=`RepositoryAlreadyExistsException`,dP=`ReferencedImagesNotFoundException`,fP=`RepositoryList`,pP=`RepositoryNotEmptyException`,mP=`RepositoryNotFoundException`,hP=`RegistryPolicyNotFoundException`,gP=`RepositoryPolicyNotFoundException`,_P=`Repository`,vP=`SigningConfigurationNotFoundException`,yP=`ServerException`,bP=`ScanNotFoundException`,xP=`SecretNotFoundException`,SP=`SetRepositoryPolicy`,CP=`SetRepositoryPolicyRequest`,wP=`SetRepositoryPolicyResponse`,TP=`Tag`,EP=`TemplateAlreadyExistsException`,DP=`TransitioningImageTotalCount`,OP=`TransitioningImageTotalCounts`,kP=`TagList`,AP=`TooManyTagsException`,jP=`TemplateNotFoundException`,MP=`UnsupportedImageTypeException`,NP=`UploadNotFoundException`,PP=`UnableToAccessSecretException`,FP=`UnableToDecryptSecretValueException`,IP=`UnableToGetUpstreamImageException`,LP=`UnableToGetUpstreamLayerException`,RP=`UnableToListUpstreamImageReferrersException`,zP=`UnsupportedUpstreamRegistryException`,BP=`Value`,VP=`ValidationException`,HP=`artifactMediaType`,UP=`appliedRulePriority`,WP=`action`,y=`client`,GP=`createdAt`,KP=`description`,b=`error`,qP=`encryptionConfiguration`,JP=`expiringImageTotalCount`,YP=`encryptionType`,XP=`failures`,ZP=`failureCode`,QP=`failureReason`,$P=`findingSeverityCounts`,eF=`filterType`,tF=`filter`,nF=`force`,rF=`httpError`,iF=`imageDetails`,aF=`imageDigest`,oF=`imageIds`,sF=`imageId`,cF=`imageManifestMediaType`,lF=`imagePushedAt`,uF=`imageStatus`,dF=`imageScanningConfiguration`,fF=`imageScanCompletedAt`,pF=`imageScanFindingsSummary`,mF=`imageSizeInBytes`,hF=`imageScanStatus`,gF=`imageTags`,_F=`imageTotalCount`,vF=`imageTagMutability`,yF=`imageTagMutabilityExclusionFilters`,bF=`imageTag`,xF=`kmsError`,SF=`kmsKey`,CF=`lastArchivedAt`,wF=`lastActivatedAt`,TF=`lastEvaluatedAt`,EF=`lifecyclePolicyText`,DF=`lastRecordedPullTime`,OF=`lastValidByteReceived`,x=`message`,kF=`maxResults`,AF=`nextToken`,jF=`previewResults`,MF=`policyText`,NF=`repositoryArn`,PF=`registryId`,FF=`repositoryName`,IF=`repositoryNames`,LF=`repositoryUri`,RF=`repository`,zF=`repositories`,BF=`smithy.ts.sdk.synthetic.com.amazonaws.ecr`,VF=`storageClass`,HF=`subjectManifestDigest`,UF=`scanOnPush`,WF=`server`,GF=`status`,KF=`summary`,qF=`tags`,JF=`transitioningImageTotalCounts`,YF=`tagStatus`,XF=`targetStorageClass`,ZF=`type`,QF=`uploadId`,$F=`vulnerabilitySourceUpdatedAt`,S=`com.amazonaws.ecr`,eI=dt.for(BF),tI=[-3,BF,`ECRServiceException`,0,[],[]];eI.registerError(tI,v);var C=dt.for(S),nI=[-3,S,RM,{[b]:y},[x],[0]];C.registerError(nI,jM);var rI=[-3,S,uN,{[b]:y},[x],[0]];C.registerError(rI,Zj);var iI=[-3,S,sN,{[b]:y},[x],[0]];C.registerError(iI,MM);var aI=[-3,S,lN,{[b]:y},[x],[0]];C.registerError(aI,yM);var oI=[-3,S,xN,{[b]:y},[x],[0]];C.registerError(oI,DM);var sI=[-3,S,bN,{[b]:y},[x],[0]];C.registerError(sI,NM);var cI=[-3,S,CN,{[b]:y},[x],[0]];C.registerError(cI,OM);var lI=[-3,S,jN,{[b]:y},[x],[0]];C.registerError(lI,bM);var uI=[-3,S,PN,{[b]:y},[x],[0]];C.registerError(uI,IM);var dI=[-3,S,LN,{[b]:y},[x],[0]];C.registerError(dI,kM);var fI=[-3,S,kN,{[b]:y},[x],[0]];C.registerError(fI,Qj);var pI=[-3,S,AN,{[b]:y},[PF,FF,QF,OF,x],[0,0,0,1,0]];C.registerError(pI,LM);var mI=[-3,S,MN,{[b]:y},[x],[0]];C.registerError(mI,Gj);var hI=[-3,S,BN,{[b]:y},[x],[0]];C.registerError(hI,cM);var gI=[-3,S,HN,{[b]:y},[x,xF],[0,0]];C.registerError(gI,$j);var _I=[-3,S,UN,{[b]:y},[x],[0]];C.registerError(_I,eM);var vI=[-3,S,GN,{[b]:y},[x],[0]];C.registerError(vI,SM);var yI=[-3,S,tP,{[b]:y},[x],[0]];C.registerError(yI,tM);var bI=[-3,S,KN,{[b]:y},[x],[0]];C.registerError(bI,CM);var xI=[-3,S,qN,{[b]:y},[x],[0]];C.registerError(xI,fM);var SI=[-3,S,YN,{[b]:y},[x],[0]];C.registerError(SI,FM);var CI=[-3,S,XN,{[b]:y},[x],[0]];C.registerError(CI,TM);var wI=[-3,S,WN,{[b]:y},[x],[0]];C.registerError(wI,Jj);var TI=[-3,S,cP,{[b]:y},[x],[0]];C.registerError(TI,rM);var EI=[-3,S,lP,{[b]:y},[x],[0]];C.registerError(EI,pM);var DI=[-3,S,dP,{[b]:y},[x],[0]];C.registerError(DI,AM);var OI=[-3,S,hP,{[b]:y},[x],[0]];C.registerError(OI,mM);var kI=[-3,S,uP,{[b]:y},[x],[0]];C.registerError(kI,lM);var AI=[-3,S,pP,{[b]:y},[x],[0]];C.registerError(AI,hM);var jI=[-3,S,mP,{[b]:y},[x],[0]];C.registerError(jI,Kj);var MI=[-3,S,gP,{[b]:y},[x],[0]];C.registerError(MI,_M);var NI=[-3,S,bP,{[b]:y},[x],[0]];C.registerError(NI,xM);var PI=[-3,S,xP,{[b]:y},[x],[0]];C.registerError(PI,iM);var FI=[-3,S,yP,{[b]:WF},[x],[0]];C.registerError(FI,qj);var II=[-3,S,vP,{[b]:y},[x],[0]];C.registerError(II,vM);var LI=[-3,S,EP,{[b]:y},[x],[0]];C.registerError(LI,dM);var RI=[-3,S,jP,{[b]:y},[x],[0]];C.registerError(RI,gM);var zI=[-3,S,AP,{[b]:y},[x],[0]];C.registerError(zI,uM);var BI=[-3,S,PP,{[b]:y},[x],[0]];C.registerError(BI,aM);var VI=[-3,S,FP,{[b]:y},[x],[0]];C.registerError(VI,oM);var HI=[-3,S,IP,{[b]:y},[x],[0]];C.registerError(HI,Yj);var UI=[-3,S,LP,{[b]:y},[x],[0]];C.registerError(UI,wM);var WI=[-3,S,RP,{[b]:y},[x],[0]];C.registerError(WI,EM);var GI=[-3,S,MP,{[b]:y},[x],[0]];C.registerError(GI,PM);var KI=[-3,S,zP,{[b]:y},[x],[0]];C.registerError(KI,sM);var qI=[-3,S,NP,{[b]:y},[x],[0]];C.registerError(qI,nM);var JI=[-3,S,VP,{[b]:y,[rF]:400},[x],[0]];C.registerError(JI,Xj);var YI=[eI,C],XI=[3,S,BM,0,[FF,oF,PF],[0,()=>BL,0],2],ZI=[3,S,VM,0,[oF,XP],[()=>BL,()=>zL]],QI=[3,S,UM,0,[FF,PF,qF,vF,yF,dF,qP],[0,0,()=>WL,0,()=>VL,()=>SL,()=>dL],1],$I=[3,S,WM,0,[RF],[()=>NL]],eL=[3,S,XM,0,[FF,PF],[0,0],1],tL=[3,S,ZM,0,[PF,FF,EF,TF],[0,0,0,4]],nL=[3,S,$M,0,[FF,PF],[0,0],1],rL=[3,S,eN,0,[PF,FF,MF],[0,0,0]],iL=[3,S,nN,0,[FF,PF,nF],[0,0,2],1],aL=[3,S,rN,0,[RF],[()=>NL]],oL=[3,S,KM,0,[YF,uF],[0,0]],sL=[3,S,qM,0,[FF,PF,oF,AF,kF,tF],[0,0,()=>BL,0,1,()=>oL],1],cL=[3,S,JM,0,[iF,AF],[()=>RL,0]],lL=[3,S,iN,0,[PF,IF,AF,kF],[0,64,0,1]],uL=[3,S,aN,0,[zF,AF],[()=>UL,0]],dL=[3,S,cN,0,[YP,SF],[0,0],1],fL=[3,S,pN,0,[FF,PF,oF,AF,kF,tF],[0,0,()=>BL,0,1,()=>TL],1],pL=[3,S,mN,0,[PF,FF,EF,GF,AF,jF,KF],[0,0,0,0,0,()=>HL,()=>DL]],mL=[3,S,hN,0,[FF,PF],[0,0],1],hL=[3,S,gN,0,[PF,FF,EF,TF],[0,0,0,4]],gL=[3,S,_N,0,[FF,PF],[0,0],1],_L=[3,S,vN,0,[PF,FF,MF],[0,0,0]],vL=[3,S,SN,0,[PF,FF,aF,gF,mF,lF,hF,pF,cF,HP,DF,HF,uF,CF,wF],[0,0,0,64,1,4,()=>CL,()=>xL,0,0,4,0,0,4,4]],yL=[3,S,TN,0,[sF,ZP,QP],[()=>bL,0,0]],bL=[3,S,DN,0,[aF,bF],[0,0]],xL=[3,S,FN,0,[fF,$F,$P],[4,4,129]],SL=[3,S,NN,0,[UF],[2]],CL=[3,S,IN,0,[GF,KP],[0,0]],wL=[3,S,RN,0,[eF,tF],[0,0],2],TL=[3,S,JN,0,[YF],[0]],EL=[3,S,ZN,0,[gF,aF,lF,WP,UP,VF],[64,0,4,()=>OL,1,0]],DL=[3,S,$N,0,[JP,JF],[1,()=>GL]],OL=[3,S,eP,0,[ZF,XF],[0,0]],kL=[3,S,rP,0,[FF,vF,PF,yF],[0,0,0,()=>VL],2],AL=[3,S,iP,0,[PF,FF,vF,yF],[0,0,0,()=>VL]],jL=[3,S,oP,0,[FF,EF,PF],[0,0,0],2],ML=[3,S,sP,0,[PF,FF,EF],[0,0,0]],NL=[3,S,_P,0,[NF,PF,FF,LF,GP,vF,yF,dF,qP],[0,0,0,0,4,0,()=>VL,()=>SL,()=>dL]],PL=[3,S,CP,0,[FF,MF,PF,nF],[0,0,0,2],2],FL=[3,S,wP,0,[PF,FF,MF],[0,0,0]],IL=[3,S,TP,0,[VN,BP],[0,0],2],LL=[3,S,DP,0,[XF,_F],[0,1]],RL=[1,S,wN,0,()=>vL],zL=[1,S,EN,0,()=>yL],BL=[1,S,ON,0,()=>bL],VL=[1,S,zN,0,()=>wL],HL=[1,S,QN,0,()=>EL],UL=[1,S,fP,0,()=>NL],WL=[1,S,kP,0,()=>IL],GL=[1,S,OP,0,()=>LL],KL=[9,S,zM,0,()=>XI,()=>ZI],qL=[9,S,HM,0,()=>QI,()=>$I],JL=[9,S,YM,0,()=>eL,()=>tL],YL=[9,S,QM,0,()=>iL,()=>aL],XL=[9,S,tN,0,()=>nL,()=>rL],ZL=[9,S,GM,0,()=>sL,()=>cL],QL=[9,S,oN,0,()=>lL,()=>uL],$L=[9,S,dN,0,()=>mL,()=>hL],eR=[9,S,fN,0,()=>fL,()=>pL],tR=[9,S,yN,0,()=>gL,()=>_L],nR=[9,S,nP,0,()=>kL,()=>AL],rR=[9,S,aP,0,()=>jL,()=>ML],iR=[9,S,SP,0,()=>PL,()=>FL],aR=e=>({apiVersion:`2015-09-21`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Wj,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??xj,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Wt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecr`,errorTypeRegistries:YI,xmlNamespace:`http://ecr.amazonaws.com/doc/2015-09-21/`,version:`2015-09-21`,serviceTarget:`AmazonEC2ContainerRegistry_V20150921`},serviceId:e?.serviceId??`ECR`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),oR=e=>{let t=Je(e),n=()=>t().then(ft),r=aR(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:Tj.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},sR=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},cR=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),lR=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),sR(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),cR(n))},uR=class extends fe{config;constructor(...[e]){let t=oR(e||{});super(t),this.initConfig=t;let n=lR(Sj(Qe(Me(be(rt(ge(Cj(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:yj,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},dR=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function fR(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecs`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var pR=e=>{let t=[];switch(e.operation){default:t.push(fR(e))}return t},mR=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},hR=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecs`}),gR={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},_R={name:`@aws-sdk/client-ecs`,description:`AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecs`}},vR=`ref`,yR=-1,bR=!0,xR=`isSet`,SR=`PartitionResult`,CR=`booleanEquals`,wR=`getAttr`,TR={[vR]:`Endpoint`},ER={[vR]:SR},DR={},OR=[{[vR]:`Region`}],kR={conditions:[[xR,[TR]],[xR,OR],[`aws.partition`,OR,SR],[CR,[{[vR]:`UseFIPS`},bR]],[CR,[{[vR]:`UseDualStack`},bR]],[CR,[{fn:wR,argv:[ER,`supportsDualStack`]},bR]],[CR,[{fn:wR,argv:[ER,`supportsFIPS`]},bR]]],results:[[yR],[yR,`Invalid Configuration: FIPS and custom endpoint are not supported`],[yR,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[TR,DR],[`https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,DR],[yR,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}`,DR],[yR,`FIPS is enabled but this partition does not support FIPS`],[`https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}`,DR],[yR,`DualStack is enabled but this partition does not support DualStack`],[`https://ecs.{Region}.{PartitionResult#dnsSuffix}`,DR],[yR,`Invalid Configuration: Missing Region`]]},AR=2,jR=new Int32Array([-1,1,-1,0,12,3,1,4,100000011,2,5,100000011,3,8,6,4,7,100000010,5,100000008,100000009,4,10,9,6,100000006,100000007,5,11,100000005,6,100000004,100000005,3,100000001,13,4,100000002,100000003]),MR=nt.from(jR,AR,kR.conditions,kR.results),NR=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),PR=(e,t={})=>NR.get(e,()=>at(MR,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var w=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},FR=class e extends w{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IR=class e extends w{name=`ClientException`;$fault=`client`;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LR=class e extends w{name=`ClusterNotFoundException`;$fault=`client`;constructor(t){super({name:`ClusterNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RR=class e extends w{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zR=class e extends w{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},BR=class e extends w{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},VR=class e extends w{name=`UnsupportedFeatureException`;$fault=`client`;constructor(t){super({name:`UnsupportedFeatureException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HR=class e extends w{name=`UpdateInProgressException`;$fault=`client`;constructor(t){super({name:`UpdateInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UR=class e extends w{name=`NamespaceNotFoundException`;$fault=`client`;constructor(t){super({name:`NamespaceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},WR=class e extends w{name=`ClusterContainsCapacityProviderException`;$fault=`client`;constructor(t){super({name:`ClusterContainsCapacityProviderException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GR=class e extends w{name=`ClusterContainsContainerInstancesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsContainerInstancesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KR=class e extends w{name=`ClusterContainsServicesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsServicesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qR=class e extends w{name=`ClusterContainsTasksException`;$fault=`client`;constructor(t){super({name:`ClusterContainsTasksException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JR=class e extends w{name=`TargetNotConnectedException`;$fault=`client`;constructor(t){super({name:`TargetNotConnectedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YR=class e extends w{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XR=class e extends w{name=`TargetNotFoundException`;$fault=`client`;constructor(t){super({name:`TargetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZR=class e extends w{name=`ServiceNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QR=class e extends w{name=`AttributeLimitExceededException`;$fault=`client`;constructor(t){super({name:`AttributeLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$R=class e extends w{name=`MissingVersionException`;$fault=`client`;constructor(t){super({name:`MissingVersionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ez=class e extends w{name=`NoUpdateAvailableException`;$fault=`client`;constructor(t){super({name:`NoUpdateAvailableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tz=class e extends w{name=`ServiceDeploymentNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceDeploymentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nz=class e extends w{name=`PlatformUnknownException`;$fault=`client`;constructor(t){super({name:`PlatformUnknownException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rz=class e extends w{name=`DaemonNotActiveException`;$fault=`client`;constructor(t){super({name:`DaemonNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iz=class e extends w{name=`DaemonNotFoundException`;$fault=`client`;constructor(t){super({name:`DaemonNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},az=class e extends w{name=`PlatformTaskDefinitionIncompatibilityException`;$fault=`client`;constructor(t){super({name:`PlatformTaskDefinitionIncompatibilityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oz=class e extends w{name=`ServiceNotActiveException`;$fault=`client`;constructor(t){super({name:`ServiceNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sz=class e extends w{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cz=class e extends w{name=`ConflictException`;$fault=`client`;resourceIds;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.resourceIds=t.resourceIds}},lz=class e extends w{name=`TaskSetNotFoundException`;$fault=`client`;constructor(t){super({name:`TaskSetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uz=class e extends w{name=`BlockedException`;$fault=`client`;constructor(t){super({name:`BlockedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dz=`Attachment`,fz=`AdvancedConfiguration`,pz=`AttachmentDetails`,mz=`AccessDeniedException`,hz=`AttributeLimitExceededException`,gz=`AwsVpcConfiguration`,_z=`Attribute`,vz=`Attachments`,yz=`Attributes`,bz=`BlockedException`,xz=`Cluster`,Sz=`CanaryConfiguration`,Cz=`ClusterContainsContainerInstancesException`,wz=`ClusterContainsCapacityProviderException`,Tz=`CreateClusterRequest`,Ez=`CreateClusterResponse`,Dz=`ClusterContainsServicesException`,Oz=`ClusterContainsTasksException`,kz=`ClusterConfiguration`,Az=`CreateCluster`,jz=`ContainerDefinition`,Mz=`ContainerDependency`,Nz=`ContainerDefinitions`,Pz=`ContainerDependencies`,Fz=`ClientException`,Iz=`ConflictException`,Lz=`ContainerInstanceHealthStatus`,Rz=`ContainerInstance`,zz=`ContainerInstances`,Bz=`ClusterNotFoundException`,Vz=`ContainerOverride`,Hz=`ContainerOverrides`,Uz=`CapacityProviderStrategy`,Wz=`CapacityProviderStrategyItem`,Gz=`ContainerRestartPolicy`,Kz=`ClusterSetting`,qz=`ClusterServiceConnectDefaults`,Jz=`ClusterServiceConnectDefaultsRequest`,Yz=`CreateServiceRequest`,Xz=`CreateServiceResponse`,Zz=`ClusterSettings`,Qz=`CreateService`,$z=`Clusters`,eB=`Container`,tB=`Containers`,nB=`Deployment`,rB=`DeploymentAlarms`,iB=`DeploymentConfiguration`,aB=`DeploymentCircuitBreaker`,oB=`DeregisterContainerInstanceRequest`,sB=`DeregisterContainerInstanceResponse`,cB=`DescribeContainerInstancesRequest`,lB=`DescribeContainerInstancesResponse`,uB=`DeregisterContainerInstance`,dB=`DescribeContainerInstances`,fB=`DeleteClusterRequest`,pB=`DeleteClusterResponse`,mB=`DescribeClustersRequest`,hB=`DescribeClustersResponse`,gB=`DeploymentController`,_B=`DeleteCluster`,vB=`DescribeClusters`,yB=`DeploymentEphemeralStorage`,bB=`DevicesList`,xB=`DeploymentLifecycleHook`,SB=`DeploymentLifecycleHookList`,CB=`DeploymentLifecycleHookTimeoutConfiguration`,wB=`DaemonNotActiveException`,TB=`DaemonNotFoundException`,EB=`DescribeServicesRequest`,DB=`DescribeServicesResponse`,OB=`DescribeServices`,kB=`DescribeTasks`,AB=`DeregisterTaskDefinitionRequest`,jB=`DeregisterTaskDefinitionResponse`,MB=`DescribeTaskDefinitionRequest`,NB=`DescribeTaskDefinitionResponse`,PB=`DeregisterTaskDefinition`,FB=`DescribeTaskDefinition`,IB=`DescribeTasksRequest`,LB=`DescribeTasksResponse`,RB=`DockerVolumeConfiguration`,zB=`Device`,BB=`Deployments`,VB=`EBSTagSpecification`,HB=`EBSTagSpecifications`,UB=`ExecuteCommandConfiguration`,WB=`ExecuteCommandLogConfiguration`,GB=`EnvironmentFile`,KB=`EFSAuthorizationConfig`,qB=`EFSVolumeConfiguration`,JB=`EnvironmentFiles`,YB=`EphemeralStorage`,XB=`EnvironmentVariables`,ZB=`Failure`,QB=`FirelensConfiguration`,$B=`FSxWindowsFileServerAuthorizationConfig`,eV=`FSxWindowsFileServerVolumeConfiguration`,tV=`Failures`,nV=`HealthCheck`,rV=`HostEntry`,iV=`HostEntryList`,aV=`HostVolumeProperties`,oV=`InferenceAccelerator`,sV=`InferenceAcceleratorOverride`,cV=`InferenceAcceleratorOverrides`,lV=`InferenceAccelerators`,uV=`InstanceHealthCheckResult`,dV=`InstanceHealthCheckResultList`,fV=`InvalidParameterException`,pV=`KernelCapabilities`,mV=`KeyValuePair`,hV=`LoadBalancer`,gV=`LoadBalancers`,_V=`LinearConfiguration`,vV=`ListContainerInstances`,yV=`ListContainerInstancesRequest`,bV=`ListContainerInstancesResponse`,xV=`ListClustersRequest`,SV=`ListClustersResponse`,CV=`ListClusters`,wV=`LogConfiguration`,TV=`LimitExceededException`,EV=`LinuxParameters`,DV=`ListServices`,OV=`ListServicesRequest`,kV=`ListServicesResponse`,AV=`ListTasks`,jV=`ListTaskDefinitions`,MV=`ListTaskDefinitionsRequest`,NV=`ListTaskDefinitionsResponse`,PV=`ListTasksRequest`,FV=`ListTasksResponse`,IV=`ManagedAgent`,LV=`ManagedAgents`,RV=`MetricConfigurationList`,zV=`MetricConfiguration`,BV=`MonitoringConfiguration`,VV=`MountPoint`,HV=`MountPointList`,UV=`ManagedStorageConfiguration`,WV=`MissingVersionException`,GV=`NetworkBinding`,KV=`NetworkBindings`,qV=`NetworkConfiguration`,JV=`NetworkInterface`,YV=`NetworkInterfaces`,XV=`NamespaceNotFoundException`,ZV=`NoUpdateAvailableException`,QV=`PlacementConstraint`,$V=`ProxyConfigurationProperties`,eH=`PlacementConstraints`,tH=`ProxyConfiguration`,nH=`PortMapping`,rH=`PortMappingList`,iH=`PlacementStrategy`,aH=`PlacementStrategies`,oH=`PlatformTaskDefinitionIncompatibilityException`,sH=`PlatformUnknownException`,cH=`Resource`,lH=`RequiresAttributes`,uH=`RepositoryCredentials`,dH=`ResourceInUseException`,fH=`ResourceNotFoundException`,pH=`RuntimePlatform`,mH=`ResourceRequirement`,hH=`ResourceRequirements`,gH=`RunTask`,_H=`RegisterTaskDefinition`,vH=`RegisterTaskDefinitionRequest`,yH=`RegisterTaskDefinitionResponse`,bH=`RunTaskRequest`,xH=`RunTaskResponse`,SH=`Resources`,CH=`Scale`,wH=`SystemControl`,TH=`ServiceConnectAccessLogConfiguration`,EH=`ServiceConnectConfiguration`,DH=`ServiceConnectClientAlias`,OH=`ServiceConnectClientAliasList`,kH=`ServiceCurrentRevisionSummary`,AH=`ServiceCurrentRevisionSummaryList`,jH=`ServiceConnectService`,MH=`ServiceConnectServiceList`,NH=`ServiceConnectServiceResource`,PH=`ServiceConnectServiceResourceList`,FH=`ServiceConnectTlsConfiguration`,IH=`ServiceConnectTlsCertificateAuthority`,LH=`ServiceConnectTestTrafficHeaderMatchRules`,RH=`ServiceConnectTestTrafficHeaderRules`,zH=`ServiceConnectTestTrafficRules`,BH=`SystemControls`,VH=`ServiceDeploymentNotFoundException`,HH=`ServerException`,UH=`ServiceEvent`,WH=`ServiceEvents`,GH=`S3FilesVolumeConfiguration`,KH=`SecretList`,qH=`ServiceManagedEBSVolumeConfiguration`,JH=`ServiceNotActiveException`,YH=`ServiceNotFoundException`,XH=`ServiceRegistry`,ZH=`ServiceRegistries`,QH=`StopTaskRequest`,$H=`StopTaskResponse`,eU=`StopTask`,tU=`ServiceVolumeConfiguration`,nU=`ServiceVolumeConfigurations`,rU=`Secret`,iU=`Service`,aU=`Services`,oU=`Statistics`,sU=`Tag`,cU=`ThresholdConfiguration`,lU=`TimeoutConfiguration`,uU=`TaskDefinition`,dU=`TaskDefinitionPlacementConstraint`,fU=`TaskDefinitionPlacementConstraints`,pU=`TaskEphemeralStorage`,mU=`TmpfsList`,hU=`TaskManagedEBSVolumeConfiguration`,gU=`TaskManagedEBSVolumeTerminationPolicy`,_U=`TargetNotConnectedException`,vU=`TargetNotFoundException`,yU=`TaskOverride`,bU=`TaskSet`,xU=`TaskSetNotFoundException`,SU=`TaskSets`,CU=`TaskVolumeConfiguration`,wU=`TaskVolumeConfigurations`,TU=`Task`,EU=`Tags`,DU=`Tasks`,OU=`Tmpfs`,kU=`Ulimit`,AU=`UpdateContainerInstancesState`,jU=`UpdateContainerInstancesStateRequest`,MU=`UpdateContainerInstancesStateResponse`,NU=`UnsupportedFeatureException`,PU=`UpdateInProgressException`,FU=`UlimitList`,IU=`Volume`,LU=`VolumeFrom`,RU=`VolumeFromList`,zU=`VersionInfo`,BU=`VolumeList`,VU=`VpcLatticeConfiguration`,HU=`VpcLatticeConfigurations`,UU=`attachments`,WU=`agentConnected`,GU=`advancedConfiguration`,KU=`authorizationConfig`,qU=`awsvpcConfiguration`,JU=`agentHash`,YU=`attachmentId`,XU=`accessLogConfiguration`,ZU=`alarmNames`,QU=`appProtocol`,$U=`accessPointArn`,eW=`awsPcaAuthorityArn`,tW=`assignPublicIp`,nW=`accessPointId`,rW=`activeServicesCount`,iW=`attachmentsStatus`,aW=`alternateTargetGroupArn`,oW=`agentUpdateStatus`,sW=`agentVersion`,cW=`availabilityZone`,lW=`availabilityZoneRebalancing`,uW=`action`,dW=`add`,fW=`alarms`,pW=`arn`,mW=`attributes`,hW=`autoprovision`,gW=`base`,_W=`bindIP`,vW=`bakeTimeInMinutes`,T=`client`,yW=`clusterArn`,bW=`configuredAtLaunch`,xW=`clusterArns`,SW=`clientAliases`,CW=`containerArn`,wW=`connectivityAt`,TW=`cpuArchitecture`,EW=`createdAt`,DW=`canaryBakeTimeInMinutes`,OW=`createdBy`,kW=`canaryConfiguration`,AW=`containerDefinitions`,jW=`computedDesiredCount`,MW=`containerInstanceArn`,NW=`containerInstanceArns`,PW=`containerInstance`,FW=`containerInstances`,IW=`clusterName`,LW=`containerName`,RW=`containerOverrides`,zW=`canaryPercent`,BW=`capacityProviderName`,VW=`containerPortRange`,HW=`capacityProviderStrategy`,UW=`capacityProvider`,WW=`capacityProviders`,GW=`containerPath`,KW=`containerPort`,qW=`credentialsParameter`,JW=`credentialSpecs`,YW=`currentServiceDeployment`,XW=`currentServiceRevisions`,ZW=`clientToken`,QW=`cloudWatchEncryptionEnabled`,$W=`cloudWatchLogGroupName`,eG=`capabilities`,tG=`cluster`,nG=`clusters`,rG=`configuration`,iG=`command`,aG=`compatibilities`,oG=`condition`,sG=`connectivity`,cG=`containers`,lG=`count`,uG=`cpu`,dG=`details`,fG=`deregisteredAt`,pG=`discoveryArn`,mG=`deploymentConfiguration`,hG=`deploymentCircuitBreaker`,gG=`defaultCapacityProviderStrategy`,_G=`desiredCount`,vG=`deploymentController`,yG=`dockerLabels`,bG=`disableNetworking`,xG=`daemonName`,SG=`deviceName`,CG=`discoveryName`,wG=`dnsName`,TG=`dependsOn`,EG=`deleteOnTermination`,DG=`driverOpts`,OG=`deleteRequestedAt`,kG=`dnsServers`,AG=`dnsSearchDomains`,jG=`dockerSecurityOptions`,MG=`desiredStatus`,NG=`deviceType`,PG=`doubleValue`,FG=`dockerVolumeConfiguration`,IG=`dockerVersion`,LG=`devices`,RG=`deployments`,zG=`detail`,BG=`domain`,VG=`driver`,HG=`drop`,E=`error`,UG=`exitCode`,WG=`executeCommandConfiguration`,GG=`enableExecuteCommand`,KG=`enableECSManagedTags`,qG=`environmentFiles`,JG=`enableFaultInjection`,YG=`extraHosts`,XG=`externalId`,ZG=`ec2InstanceId`,QG=`entryPoint`,$G=`executionRoleArn`,eK=`executionStoppedAt`,tK=`ephemeralStorage`,nK=`efsVolumeConfiguration`,rK=`environment`,iK=`enabled`,aK=`enable`,oK=`encrypted`,sK=`essential`,cK=`events`,lK=`expression`,uK=`exact`,dK=`family`,fK=`firelensConfiguration`,pK=`fargateEphemeralStorage`,mK=`fargateEphemeralStorageKmsKeyId`,hK=`familyPrefix`,gK=`fileSystemArn`,_K=`fileSystemId`,vK=`failedTasks`,yK=`filesystemType`,bK=`fsxWindowsFileServerVolumeConfiguration`,xK=`failures`,SK=`filter`,CK=`field`,wK=`force`,TK=`format`,EK=`group`,DK=`gpuIds`,OK=`hostname`,kK=`healthCheck`,AK=`healthCheckGracePeriodSeconds`,jK=`hookDetails`,MK=`httpError`,NK=`hardLimit`,PK=`hostPath`,FK=`hostPortRange`,IK=`hostPort`,LK=`healthStatus`,RK=`hookTargetArn`,zK=`header`,BK=`host`,VK=`id`,HK=`ipAddress`,UK=`inferenceAcceleratorOverrides`,WK=`inferenceAccelerators`,GK=`ipv6Address`,KK=`issuerCertificateAuthority`,qK=`imageDigest`,JK=`ignoredExitCodes`,YK=`ipcMode`,XK=`initProcessEnabled`,ZK=`ingressPortOverride`,QK=`includeQueryParameters`,$K=`idleTimeoutSeconds`,eq=`integerValue`,tq=`iam`,nq=`image`,rq=`interactive`,iq=`include`,aq=`interval`,oq=`iops`,sq=`key`,cq=`kmsKey`,lq=`kmsKeyId`,uq=`links`,dq=`loadBalancers`,fq=`loadBalancerName`,pq=`logConfiguration`,mq=`linearConfiguration`,hq=`logDriver`,gq=`lifecycleHooks`,_q=`linuxParameters`,vq=`lastStatus`,yq=`lastStartedAt`,bq=`lastStatusChange`,xq=`lifecycleStages`,Sq=`launchType`,Cq=`lastUpdated`,wq=`longValue`,Tq=`labels`,Eq=`logging`,D=`message`,Dq=`managedAgents`,Oq=`metricConfigurations`,kq=`managedEBSVolume`,Aq=`minimumHealthyPercent`,jq=`metricNames`,Mq=`mountOptions`,Nq=`mountPoints`,Pq=`maximumPercent`,Fq=`memoryReservation`,Iq=`maxResults`,Lq=`managedStorageConfiguration`,Rq=`maxSwap`,zq=`memory`,Bq=`monitoring`,Vq=`name`,Hq=`networkBindings`,Uq=`networkConfiguration`,Wq=`neuronDeviceIds`,Gq=`networkInterfaces`,Kq=`networkMode`,qq=`nextToken`,Jq=`namespace`,Yq=`options`,Xq=`overallStatus`,Zq=`operatingSystemFamily`,Qq=`overrides`,$q=`privileged`,eJ=`pendingCount`,tJ=`placementConstraints`,nJ=`proxyConfiguration`,rJ=`platformFamily`,iJ=`privateIpv4Address`,aJ=`productionListenerRule`,oJ=`portMappings`,sJ=`pidMode`,cJ=`portName`,lJ=`perRequestTimeoutSeconds`,uJ=`placementStrategy`,dJ=`pullStartedAt`,fJ=`pullStoppedAt`,pJ=`pseudoTerminal`,mJ=`pendingTasksCount`,hJ=`pendingTaskCount`,gJ=`propagateTags`,_J=`platformVersion`,vJ=`permissions`,yJ=`port`,bJ=`protocol`,xJ=`properties`,SJ=`reason`,CJ=`roleArn`,wJ=`restartAttemptPeriod`,TJ=`registeredAt`,EJ=`registryArn`,DJ=`requiresAttributes`,OJ=`registeredBy`,kJ=`repositoryCredentials`,AJ=`registeredContainerInstancesCount`,jJ=`requiresCompatibilities`,MJ=`runningCount`,NJ=`rootDirectory`,PJ=`resourceIds`,FJ=`referenceId`,IJ=`runtimeId`,LJ=`resourceManagementType`,RJ=`readOnly`,zJ=`resetOnHealthyTask`,BJ=`restartPolicy`,VJ=`runtimePlatform`,HJ=`resourceRequirements`,UJ=`readonlyRootFilesystem`,WJ=`remainingResources`,GJ=`registeredResources`,KJ=`rolloutState`,qJ=`rolloutStateReason`,JJ=`resolutionSeconds`,YJ=`resourceType`,XJ=`runningTasksCount`,ZJ=`requestedTaskCount`,QJ=`runningTaskCount`,$J=`revision`,eY=`retries`,tY=`role`,nY=`rollback`,rY=`smithy.ts.sdk.synthetic.com.amazonaws.ecs`,iY=`startedAt`,aY=`serviceArn`,oY=`serviceArns`,sY=`stoppedAt`,cY=`stoppingAt`,lY=`startedBy`,uY=`s3BucketName`,dY=`stepBakeTimeInMinutes`,fY=`systemControls`,pY=`serviceConnectConfiguration`,mY=`serviceConnectDefaults`,hY=`serviceConnectResources`,gY=`sourceContainer`,_Y=`stopCode`,vY=`s3EncryptionEnabled`,yY=`securityGroups`,bY=`sizeInGiB`,xY=`snapshotId`,SY=`s3KeyPrefix`,CY=`softLimit`,wY=`sharedMemorySize`,TY=`serviceName`,EY=`secretOptions`,DY=`startPeriod`,OY=`sourcePath`,kY=`stepPercent`,AY=`statusReason`,jY=`serviceRegistries`,MY=`stoppedReason`,NY=`schedulingStrategy`,PY=`stabilityStatusAt`,FY=`stringSetValue`,IY=`stabilityStatus`,LY=`startTimeout`,RY=`stopTimeout`,zY=`sourceVolume`,BY=`s3filesVolumeConfiguration`,VY=`scale`,HY=`scope`,UY=`server`,WY=`secrets`,GY=`service`,KY=`services`,qY=`settings`,JY=`size`,YY=`sort`,XY=`status`,ZY=`statistics`,QY=`strategy`,$Y=`subnets`,eX=`swappiness`,tX=`type`,nX=`taskArn`,rX=`taskArns`,iX=`thresholdConfiguration`,aX=`timeoutConfiguration`,oX=`taskDefinition`,sX=`taskDefinitionArn`,cX=`taskDefinitionArns`,lX=`transitEncryptionPort`,uX=`transitEncryption`,dX=`targetGroupArn`,fX=`targetId`,pX=`timeoutInMinutes`,mX=`testListenerRule`,hX=`terminationPolicy`,gX=`taskRoleArn`,_X=`taskSetArn`,vX=`taskSets`,yX=`tagSpecifications`,bX=`targetType`,xX=`testTrafficRules`,SX=`tags`,CX=`tasks`,wX=`task`,TX=`throughput`,EX=`timeout`,DX=`tls`,OX=`tmpfs`,kX=`user`,AX=`updatedAt`,jX=`ulimits`,MX=`unit`,NX=`value`,PX=`versionConsistency`,FX=`volumeConfigurations`,IX=`volumesFrom`,LX=`valueFrom`,RX=`versionInfo`,zX=`volumeInitializationRate`,BX=`vpcLatticeConfigurations`,VX=`volumeType`,HX=`version`,UX=`volumes`,WX=`weight`,GX=`workingDirectory`,O=`com.amazonaws.ecs`,KX=dt.for(rY),qX=[-3,rY,`ECSServiceException`,0,[],[]];KX.registerError(qX,w);var k=dt.for(O),JX=[-3,O,mz,{[E]:T,[MK]:403},[D],[0]];k.registerError(JX,FR);var YX=[-3,O,hz,{[E]:T},[D],[0]];k.registerError(YX,QR);var XX=[-3,O,bz,{[E]:T},[D],[0]];k.registerError(XX,uz);var ZX=[-3,O,Fz,{[E]:T},[D],[0]];k.registerError(ZX,IR);var QX=[-3,O,wz,{[E]:T},[D],[0]];k.registerError(QX,WR);var $X=[-3,O,Cz,{[E]:T},[D],[0]];k.registerError($X,GR);var eZ=[-3,O,Dz,{[E]:T},[D],[0]];k.registerError(eZ,KR);var tZ=[-3,O,Oz,{[E]:T},[D],[0]];k.registerError(tZ,qR);var nZ=[-3,O,Bz,{[E]:T},[D],[0]];k.registerError(nZ,LR);var rZ=[-3,O,Iz,{[E]:T},[PJ,D],[64,0]];k.registerError(rZ,cz);var iZ=[-3,O,wB,{[E]:T},[D],[0]];k.registerError(iZ,rz);var aZ=[-3,O,TB,{[E]:T},[D],[0]];k.registerError(aZ,iz);var oZ=[-3,O,fV,{[E]:T},[D],[0]];k.registerError(oZ,RR);var sZ=[-3,O,TV,{[E]:T},[D],[0]];k.registerError(sZ,zR);var cZ=[-3,O,WV,{[E]:T},[D],[0]];k.registerError(cZ,$R);var lZ=[-3,O,XV,{[E]:T},[D],[0]];k.registerError(lZ,UR);var uZ=[-3,O,ZV,{[E]:T},[D],[0]];k.registerError(uZ,ez);var dZ=[-3,O,oH,{[E]:T},[D],[0]];k.registerError(dZ,az);var fZ=[-3,O,sH,{[E]:T},[D],[0]];k.registerError(fZ,nz);var pZ=[-3,O,dH,{[E]:T},[D],[0]];k.registerError(pZ,YR);var mZ=[-3,O,fH,{[E]:T},[D],[0]];k.registerError(mZ,sz);var hZ=[-3,O,HH,{[E]:UY},[D],[0]];k.registerError(hZ,BR);var gZ=[-3,O,VH,{[E]:T},[D],[0]];k.registerError(gZ,tz);var _Z=[-3,O,JH,{[E]:T},[D],[0]];k.registerError(_Z,oz);var vZ=[-3,O,YH,{[E]:T},[D],[0]];k.registerError(vZ,ZR);var yZ=[-3,O,_U,{[E]:T},[D],[0]];k.registerError(yZ,JR);var bZ=[-3,O,vU,{[E]:T},[D],[0]];k.registerError(bZ,XR);var xZ=[-3,O,xU,{[E]:T},[D],[0]];k.registerError(xZ,lz);var SZ=[-3,O,NU,{[E]:T},[D],[0]];k.registerError(SZ,VR);var CZ=[-3,O,PU,{[E]:T},[D],[0]];k.registerError(CZ,HR);var wZ=[KX,k],TZ=[3,O,fz,0,[aW,aJ,mX,CJ],[0,0,0,0]],EZ=[3,O,dz,0,[VK,tX,XY,dG],[0,0,0,()=>Lme]],DZ=[3,O,_z,0,[Vq,NX,bX,fX],[0,0,0,0],1],OZ=[3,O,gz,0,[$Y,yY,tW],[64,64,0],1],kZ=[3,O,Sz,0,[zW,DW],[1,1]],AZ=[3,O,Wz,0,[UW,WX,gW],[0,1,1],1],jZ=[3,O,xz,0,[yW,IW,rG,XY,AJ,XJ,mJ,rW,ZY,SX,qY,WW,gG,UU,iW,mY],[0,0,()=>MZ,0,1,1,1,1,()=>che,()=>CQ,()=>sQ,64,()=>oQ,()=>iQ,0,()=>NZ]],MZ=[3,O,kz,0,[WG,Lq],[()=>dpe,()=>Rpe]],NZ=[3,O,qz,0,[Jq],[0]],PZ=[3,O,Jz,0,[Jq],[0],1],FZ=[3,O,Kz,0,[Vq,NX],[0,0]],IZ=[3,O,eB,0,[CW,nX,Vq,nq,qK,IJ,vq,UG,SJ,Hq,Gq,LK,Dq,uG,zq,Fq,DK,Wq],[0,0,0,0,0,0,0,1,0,()=>Zme,()=>Qme,0,()=>Jme,0,0,0,64,64]],LZ=[3,O,jz,0,[Vq,nq,kJ,uG,zq,Fq,uq,oJ,sK,BJ,QG,iG,rK,qG,Nq,IX,_q,WY,TG,LY,RY,PX,OK,kX,GX,bG,$q,UJ,kG,AG,YG,jG,rq,pJ,yG,jX,pq,kK,fY,HJ,fK,JW],[0,0,[()=>Ype,0],1,1,1,64,()=>$me,2,()=>HZ,64,64,[()=>fQ,0],()=>dQ,()=>Xme,()=>mhe,()=>Tpe,()=>bQ,()=>zme,1,1,0,0,0,0,2,2,2,64,64,()=>Gme,64,2,2,128,()=>phe,()=>YZ,()=>_pe,()=>lhe,()=>vQ,()=>mpe,64]],RZ=[3,O,Mz,0,[LW,oG],[0,0],2],zZ=[3,O,Rz,0,[MW,ZG,BW,HX,RX,WJ,GJ,XY,AY,WU,XJ,mJ,oW,mW,TJ,UU,SX,LK],[0,0,0,1,()=>Nme,()=>yQ,()=>yQ,0,0,2,1,1,0,()=>aQ,4,()=>iQ,()=>CQ,()=>BZ]],BZ=[3,O,Lz,0,[Xq,dG],[0,()=>qme]],VZ=[3,O,Vz,0,[Vq,iG,rK,qG,uG,zq,Fq,HJ],[0,64,[()=>fQ,0],()=>dQ,1,1,1,()=>vQ]],HZ=[3,O,Gz,0,[iK,JK,wJ],[2,65,1],1],UZ=[3,O,Tz,0,[IW,SX,qY,rG,WW,gG,mY],[0,()=>CQ,()=>sQ,()=>MZ,64,()=>oQ,()=>PZ]],Ffe=[3,O,Ez,0,[tG],[()=>jZ]],Ife=[3,O,Yz,0,[TY,tG,oX,lW,dq,jY,_G,ZW,Sq,HW,_J,tY,mG,tJ,uJ,Uq,AK,NY,vG,SX,KG,gJ,GG,pY,FX,BX,Bq],[0,0,0,0,()=>hQ,()=>xQ,1,0,0,()=>oQ,0,0,()=>WZ,()=>gQ,()=>_Q,()=>XZ,1,0,()=>GZ,()=>CQ,2,0,2,()=>eQ,()=>SQ,()=>DQ,()=>Bpe],1],Lfe=[3,O,Xz,0,[GY],[()=>$Z]],Rfe=[3,O,fB,0,[tG],[0],1],zfe=[3,O,pB,0,[tG],[()=>jZ]],Bfe=[3,O,nB,0,[VK,XY,oX,_G,eJ,MJ,vK,EW,AX,HW,Sq,_J,rJ,Uq,KJ,qJ,pY,hY,FX,pK,BX],[0,0,0,1,1,1,1,4,4,()=>oQ,0,0,0,()=>XZ,0,0,()=>eQ,()=>ihe,()=>SQ,()=>KZ,()=>DQ]],Vfe=[3,O,rB,0,[ZU,nY,aK],[64,2,2],3],Hfe=[3,O,aB,0,[aK,nY,zJ,iX],[2,2,2,()=>Dme],2],WZ=[3,O,iB,0,[hG,Pq,Aq,fW,QY,vW,gq,mq,kW],[()=>Hfe,1,1,()=>Vfe,0,1,()=>Hme,()=>wpe,()=>kZ]],GZ=[3,O,gB,0,[tX],[0],1],KZ=[3,O,yB,0,[lq],[0]],Ufe=[3,O,xB,0,[bX,RK,CJ,xq,jK,aX],[0,0,0,64,15,()=>Wfe]],Wfe=[3,O,CB,0,[pX,uW],[1,0]],Gfe=[3,O,oB,0,[PW,tG,wK],[0,0,2],1],Kfe=[3,O,sB,0,[PW],[()=>zZ]],qfe=[3,O,AB,0,[oX],[0],1],Jfe=[3,O,jB,0,[oX],[[()=>nQ,0]]],Yfe=[3,O,mB,0,[nG,iq],[64,64]],Xfe=[3,O,hB,0,[nG,xK],[()=>Rme,()=>pQ]],Zfe=[3,O,cB,0,[FW,tG,iq],[64,0,64],1],Qfe=[3,O,lB,0,[FW,xK],[()=>lQ,()=>pQ]],$fe=[3,O,EB,0,[KY,tG,iq],[64,0,64],1],epe=[3,O,DB,0,[KY,xK],[()=>she,()=>pQ]],tpe=[3,O,MB,0,[oX,iq],[0,64],1],npe=[3,O,NB,0,[oX,SX],[[()=>nQ,0],()=>CQ]],rpe=[3,O,IB,0,[CX,tG,iq],[64,0,64],1],ipe=[3,O,LB,0,[CX,xK],[[()=>TQ,0],()=>pQ]],ape=[3,O,zB,0,[PK,GW,vJ],[0,0,64],1],ope=[3,O,RB,0,[HY,hW,VG,DG,Tq],[0,2,0,128,128]],spe=[3,O,VB,0,[YJ,SX,gJ],[0,()=>CQ,0],1],cpe=[3,O,KB,0,[nW,tq],[0,0]],lpe=[3,O,qB,0,[_K,NJ,uX,lX,KU],[0,0,0,1,()=>cpe],1],upe=[3,O,GB,0,[NX,tX],[0,0],2],qZ=[3,O,YB,0,[bY],[1],1],dpe=[3,O,UB,0,[lq,Eq,pq],[0,0,()=>fpe]],fpe=[3,O,WB,0,[$W,QW,uY,vY,SY],[0,2,0,2,0]],ppe=[3,O,ZB,0,[pW,SJ,zG],[0,0,0]],mpe=[3,O,QB,0,[tX,Yq],[0,128],1],hpe=[3,O,$B,0,[qW,BG],[0,0],2],gpe=[3,O,eV,0,[_K,NJ,KU],[0,0,()=>hpe],3],_pe=[3,O,nV,0,[iG,aq,EX,eY,DY],[64,1,1,1,1],1],vpe=[3,O,rV,0,[OK,HK],[0,0],2],ype=[3,O,aV,0,[OY],[0]],bpe=[3,O,oV,0,[SG,NG],[0,0],2],xpe=[3,O,sV,0,[SG,NG],[0,0]],Spe=[3,O,uV,0,[tX,XY,AY,Cq,bq],[0,0,0,4,4]],Cpe=[3,O,pV,0,[dW,HG],[64,64]],JZ=[3,O,mV,0,[Vq,NX],[0,0]],wpe=[3,O,_V,0,[kY,dY],[1,1]],Tpe=[3,O,EV,0,[eG,LG,XK,wY,OX,Rq,eX],[()=>Cpe,()=>Wme,2,1,()=>fhe,1,1]],Epe=[3,O,xV,0,[qq,Iq],[0,1]],Dpe=[3,O,SV,0,[xW,qq],[64,0]],Ope=[3,O,yV,0,[tG,SK,qq,Iq,XY],[0,0,0,1,0]],kpe=[3,O,bV,0,[NW,qq],[64,0]],Ape=[3,O,OV,0,[tG,qq,Iq,Sq,NY,LJ],[0,0,1,0,0,0]],jpe=[3,O,kV,0,[oY,qq],[64,0]],Mpe=[3,O,MV,0,[hK,XY,YY,qq,Iq],[0,0,0,0,1]],Npe=[3,O,NV,0,[cX,qq],[64,0]],Ppe=[3,O,PV,0,[tG,PW,dK,qq,Iq,lY,TY,MG,Sq,xG],[0,0,0,0,1,0,0,0,0,0]],Fpe=[3,O,FV,0,[rX,qq],[64,0]],Ipe=[3,O,hV,0,[dX,fq,LW,KW,GU],[0,0,0,1,()=>TZ]],YZ=[3,O,wV,0,[hq,Yq,EY],[0,128,()=>bQ],1],Lpe=[3,O,IV,0,[yq,Vq,SJ,vq],[4,0,0,0]],Rpe=[3,O,UV,0,[lq,mK],[0,0]],zpe=[3,O,zV,0,[jq,JJ],[64,1],2],Bpe=[3,O,BV,0,[Oq],[()=>Yme]],Vpe=[3,O,VV,0,[zY,GW,RJ],[0,0,2]],Hpe=[3,O,GV,0,[_W,KW,IK,bJ,VW,FK],[0,1,1,0,0,0]],XZ=[3,O,qV,0,[qU],[()=>OZ]],Upe=[3,O,JV,0,[YU,iJ,GK],[0,0,0]],Wpe=[3,O,QV,0,[tX,lK],[0,0]],Gpe=[3,O,iH,0,[tX,CK],[0,0]],Kpe=[3,O,nH,0,[KW,IK,bJ,Vq,QU,VW],[1,1,0,0,0,0]],ZZ=[3,O,tH,0,[LW,tX,xJ],[0,0,()=>ehe],1],qpe=[3,O,vH,0,[dK,AW,gX,$G,Kq,UX,tJ,jJ,uG,zq,SX,sJ,YK,nJ,WK,tK,VJ,JG],[0,[()=>cQ,0],0,0,0,()=>EQ,()=>wQ,64,0,0,()=>CQ,0,0,()=>ZZ,()=>mQ,()=>qZ,()=>QZ,2],2],Jpe=[3,O,yH,0,[oX,SX],[[()=>nQ,0],()=>CQ]],Ype=[3,O,uH,8,[qW],[0],1],Xpe=[3,O,cH,0,[Vq,tX,PG,wq,eq,FY],[0,0,1,1,1,64]],Zpe=[3,O,mH,0,[NX,tX],[0,0],2],Qpe=[3,O,bH,0,[oX,HW,tG,lG,KG,GG,EK,Sq,Uq,Qq,tJ,uJ,_J,gJ,FJ,lY,SX,ZW,FX],[0,()=>oQ,0,1,2,2,0,0,()=>XZ,[()=>rQ,0],()=>gQ,()=>_Q,0,0,0,0,()=>CQ,[0,4],()=>dhe],1],$pe=[3,O,xH,0,[CX,xK],[[()=>TQ,0],()=>pQ]],QZ=[3,O,pH,0,[TW,Zq],[0,0]],eme=[3,O,GH,0,[gK,NJ,lX,$U],[0,0,1,0],1],tme=[3,O,CH,0,[NX,MX],[1,0]],nme=[3,O,rU,0,[Vq,LX],[0,0],2],$Z=[3,O,iU,0,[aY,TY,yW,dq,jY,XY,_G,MJ,eJ,Sq,HW,_J,rJ,oX,mG,vX,RG,CJ,cK,EW,YW,XW,tJ,uJ,Uq,AK,NY,vG,SX,OW,KG,gJ,GG,lW,LJ],[0,0,0,()=>hQ,()=>xQ,0,1,1,1,0,()=>oQ,0,0,0,()=>WZ,()=>uhe,()=>Ume,0,()=>ohe,4,0,()=>ahe,()=>gQ,()=>_Q,()=>XZ,1,0,()=>GZ,()=>CQ,0,2,0,2,0,0]],rme=[3,O,TH,0,[TK,QK],[0,0],1],ime=[3,O,DH,0,[yJ,wG,xX],[1,0,()=>lme],1],eQ=[3,O,EH,0,[iK,Jq,KY,pq,XU],[2,0,()=>rhe,()=>YZ,()=>rme],1],ame=[3,O,jH,0,[cJ,CG,SW,ZK,EX,DX],[0,0,()=>nhe,1,()=>Ome,()=>dme],1],ome=[3,O,NH,0,[CG,pG],[0,0]],sme=[3,O,LH,0,[uK],[0],1],cme=[3,O,RH,0,[Vq,NX],[0,()=>sme],1],lme=[3,O,zH,0,[zK],[()=>cme],1],ume=[3,O,IH,0,[eW],[0]],dme=[3,O,FH,0,[KK,cq,CJ],[()=>ume,0,0],1],fme=[3,O,kH,0,[pW,ZJ,QJ,hJ],[0,1,1,1]],pme=[3,O,UH,0,[VK,EW,D],[0,4,0]],mme=[3,O,qH,0,[CJ,oK,lq,VX,bY,xY,zX,oq,TX,yX,yK],[0,2,0,0,1,0,1,1,1,()=>uQ,0],1],hme=[3,O,XH,0,[EJ,yJ,LW,KW],[0,1,0,1]],gme=[3,O,tU,0,[Vq,kq],[0,()=>mme],1],_me=[3,O,QH,0,[wX,tG,SJ],[0,0,0],1],vme=[3,O,$H,0,[wX],[[()=>tQ,0]]],yme=[3,O,wH,0,[Jq,NX],[0,0]],bme=[3,O,sU,0,[sq,NX],[0,0]],tQ=[3,O,TU,0,[UU,mW,cW,BW,yW,sG,wW,MW,cG,uG,EW,MG,GG,eK,EK,LK,WK,vq,Sq,zq,Qq,_J,rJ,dJ,fJ,iY,lY,_Y,sY,MY,cY,SX,nX,sX,HX,tK,pK],[()=>iQ,()=>aQ,0,0,0,0,4,0,()=>Vme,0,4,0,2,4,0,0,()=>mQ,0,0,0,[()=>rQ,0],0,0,4,4,4,0,0,4,0,4,()=>CQ,0,0,1,()=>qZ,()=>Sme]],nQ=[3,O,uU,0,[sX,AW,dK,gX,$G,Kq,$J,UX,XY,DJ,tJ,aG,VJ,jJ,uG,zq,WK,sJ,YK,nJ,TJ,fG,OG,OJ,tK,JG],[0,[()=>cQ,0],0,0,0,0,1,()=>EQ,0,()=>the,()=>wQ,64,()=>QZ,64,0,0,()=>mQ,0,0,()=>ZZ,4,4,4,0,()=>qZ,2]],xme=[3,O,dU,0,[tX,lK],[0,0]],Sme=[3,O,pU,0,[bY,lq],[1,0]],Cme=[3,O,hU,0,[CJ,oK,lq,VX,bY,xY,zX,oq,TX,yX,hX,yK],[0,2,0,0,1,0,1,1,1,()=>uQ,()=>wme,0],1],wme=[3,O,gU,0,[EG],[2],1],rQ=[3,O,yU,0,[RW,uG,UK,$G,zq,gX,tK],[[()=>Bme,0],0,()=>Kme,0,0,0,()=>qZ]],Tme=[3,O,bU,0,[VK,_X,aY,yW,lY,XG,XY,oX,jW,eJ,MJ,EW,AX,Sq,HW,_J,rJ,Uq,dq,jY,VY,IY,PY,SX,pK],[0,0,0,0,0,0,0,0,1,1,1,4,4,0,()=>oQ,0,0,()=>XZ,()=>hQ,()=>xQ,()=>tme,0,4,()=>CQ,()=>KZ]],Eme=[3,O,CU,0,[Vq,kq],[0,()=>Cme],1],Dme=[3,O,cU,0,[tX,NX],[0,1],2],Ome=[3,O,lU,0,[$K,lJ],[1,1]],kme=[3,O,OU,0,[GW,JY,Mq],[0,1,64],2],Ame=[3,O,kU,0,[Vq,CY,NK],[0,1,1],3],jme=[3,O,jU,0,[FW,XY,tG],[64,0,0],2],Mme=[3,O,MU,0,[FW,xK],[()=>lQ,()=>pQ]],Nme=[3,O,zU,0,[sW,JU,IG],[0,0,0]],Pme=[3,O,IU,0,[Vq,BK,FG,nK,BY,bK,bW],[0,()=>ype,()=>ope,()=>lpe,()=>eme,()=>gpe,2]],Fme=[3,O,LU,0,[gY,RJ],[0,2]],Ime=[3,O,VU,0,[CJ,dX,cJ],[0,0,0],3],Lme=[1,O,pz,0,()=>JZ],iQ=[1,O,vz,0,()=>EZ],aQ=[1,O,yz,0,()=>DZ],oQ=[1,O,Uz,0,()=>AZ],Rme=[1,O,$z,0,()=>jZ],sQ=[1,O,Zz,0,()=>FZ],cQ=[1,O,Nz,0,[()=>LZ,0]],zme=[1,O,Pz,0,()=>RZ],lQ=[1,O,zz,0,()=>zZ],Bme=[1,O,Hz,0,[()=>VZ,0]],Vme=[1,O,tB,0,()=>IZ],Hme=[1,O,SB,0,()=>Ufe],Ume=[1,O,BB,0,()=>Bfe],Wme=[1,O,bB,0,()=>ape],uQ=[1,O,HB,0,()=>spe],dQ=[1,O,JB,0,()=>upe],fQ=[1,O,XB,8,()=>JZ],pQ=[1,O,tV,0,()=>ppe],Gme=[1,O,iV,0,()=>vpe],Kme=[1,O,cV,0,()=>xpe],mQ=[1,O,lV,0,()=>bpe],qme=[1,O,dV,0,()=>Spe],hQ=[1,O,gV,0,()=>Ipe],Jme=[1,O,LV,0,()=>Lpe],Yme=[1,O,RV,0,()=>zpe],Xme=[1,O,HV,0,()=>Vpe],Zme=[1,O,KV,0,()=>Hpe],Qme=[1,O,YV,0,()=>Upe],gQ=[1,O,eH,0,()=>Wpe],_Q=[1,O,aH,0,()=>Gpe],$me=[1,O,rH,0,()=>Kpe],ehe=[1,O,$V,0,()=>JZ],the=[1,O,lH,0,()=>DZ],vQ=[1,O,hH,0,()=>Zpe],yQ=[1,O,SH,0,()=>Xpe],bQ=[1,O,KH,0,()=>nme],nhe=[1,O,OH,0,()=>ime],rhe=[1,O,MH,0,()=>ame],ihe=[1,O,PH,0,()=>ome],ahe=[1,O,AH,0,()=>fme],ohe=[1,O,WH,0,()=>pme],xQ=[1,O,ZH,0,()=>hme],she=[1,O,aU,0,()=>$Z],SQ=[1,O,nU,0,()=>gme],che=[1,O,oU,0,()=>JZ],lhe=[1,O,BH,0,()=>yme],CQ=[1,O,EU,0,()=>bme],wQ=[1,O,fU,0,()=>xme],TQ=[1,O,DU,0,[()=>tQ,0]],uhe=[1,O,SU,0,()=>Tme],dhe=[1,O,wU,0,()=>Eme],fhe=[1,O,mU,0,()=>kme],phe=[1,O,FU,0,()=>Ame],mhe=[1,O,RU,0,()=>Fme],EQ=[1,O,BU,0,()=>Pme],DQ=[1,O,HU,0,()=>Ime],hhe=[9,O,Az,0,()=>UZ,()=>Ffe],ghe=[9,O,Qz,0,()=>Ife,()=>Lfe],_he=[9,O,_B,2,()=>Rfe,()=>zfe],vhe=[9,O,uB,0,()=>Gfe,()=>Kfe],yhe=[9,O,PB,0,()=>qfe,()=>Jfe],bhe=[9,O,vB,0,()=>Yfe,()=>Xfe],xhe=[9,O,dB,0,()=>Zfe,()=>Qfe],She=[9,O,OB,0,()=>$fe,()=>epe],Che=[9,O,FB,0,()=>tpe,()=>npe],whe=[9,O,kB,0,()=>rpe,()=>ipe],The=[9,O,CV,0,()=>Epe,()=>Dpe],Ehe=[9,O,vV,0,()=>Ope,()=>kpe],Dhe=[9,O,DV,0,()=>Ape,()=>jpe],Ohe=[9,O,jV,0,()=>Mpe,()=>Npe],khe=[9,O,AV,0,()=>Ppe,()=>Fpe],Ahe=[9,O,_H,0,()=>qpe,()=>Jpe],jhe=[9,O,gH,0,()=>Qpe,()=>$pe],Mhe=[9,O,eU,0,()=>_me,()=>vme],Nhe=[9,O,AU,0,()=>jme,()=>Mme],Phe=e=>({apiVersion:`2014-11-13`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??PR,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??pR,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Wt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecs`,errorTypeRegistries:wZ,xmlNamespace:`http://ecs.amazonaws.com/doc/2014-11-13/`,version:`2014-11-13`,serviceTarget:`AmazonEC2ContainerServiceV20141113`},serviceId:e?.serviceId??`ECS`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),Fhe=e=>{let t=Je(e),n=()=>t().then(ft),r=Phe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:_R.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Ihe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Lhe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Rhe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),Ihe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),Lhe(n))},zhe=class extends fe{config;constructor(...[e]){let t=Fhe(e||{});super(t),this.initConfig=t;let n=Rhe(mR(Qe(Me(be(rt(ge(hR(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:dR,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},Bhe=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Vhe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Hhe=e=>{let t=[];switch(e.operation){default:t.push(Vhe(e))}return t},Uhe=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},Whe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),Ghe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Khe={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},OQ=`ref`,kQ=-1,AQ=!0,jQ=`isSet`,MQ=`PartitionResult`,NQ=`booleanEquals`,PQ=`getAttr`,FQ=`stringEquals`,IQ={[OQ]:`Endpoint`},LQ={[OQ]:MQ},RQ={fn:PQ,argv:[LQ,`name`]},zQ={},BQ=[{[OQ]:`Region`}],VQ={conditions:[[jQ,[IQ]],[jQ,BQ],[`aws.partition`,BQ,MQ],[NQ,[{[OQ]:`UseFIPS`},AQ]],[NQ,[{[OQ]:`UseDualStack`},AQ]],[NQ,[{fn:PQ,argv:[LQ,`supportsDualStack`]},AQ]],[NQ,[{fn:PQ,argv:[LQ,`supportsFIPS`]},AQ]],[FQ,[RQ,`aws`]],[FQ,[RQ,`aws-us-gov`]]],results:[[kQ],[kQ,`Invalid Configuration: FIPS and custom endpoint are not supported`],[kQ,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[IQ,zQ],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,zQ],[kQ,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,zQ],[`https://eks.{Region}.amazonaws.com`,zQ],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,zQ],[kQ,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,zQ],[kQ,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,zQ],[kQ,`Invalid Configuration: Missing Region`]]},qhe=2,Jhe=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),Yhe=nt.from(Jhe,qhe,VQ.conditions,VQ.results),Xhe=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Zhe=(e,t={})=>Xhe.get(e,()=>at(Yhe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var HQ=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Qhe=class e extends HQ{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$he=class e extends HQ{name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},ege=class e extends HQ{name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},tge=class e extends HQ{name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},nge=class e extends HQ{name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},rge=class e extends HQ{name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},ige=class e extends HQ{name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},age=class e extends HQ{name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},oge=class e extends HQ{name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},sge=class e extends HQ{name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},cge=class e extends HQ{name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},lge=class e extends HQ{name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},uge=class e extends HQ{name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dge=class e extends HQ{name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fge=class e extends HQ{name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pge=`Addon`,mge=`AssociatedAccessPolicy`,hge=`AssociatedAccessPoliciesList`,gge=`AssociateAccessPolicyRequest`,_ge=`AssociateAccessPolicyResponse`,vge=`AssociateAccessPolicy`,yge=`AccessConfigResponse`,bge=`AccessDeniedException`,xge=`AccessEntry`,Sge=`AddonHealth`,Cge=`AddonInfo`,wge=`AddonIssueList`,Tge=`AddonIssue`,Ege=`AddonNamespaceConfigRequest`,Dge=`AddonNamespaceConfigResponse`,Oge=`AccessPolicy`,kge=`AddonPodIdentityAssociations`,Age=`AddonPodIdentityAssociationsList`,jge=`AccessPoliciesList`,Mge=`AccessScope`,Nge=`AutoScalingGroup`,Pge=`AutoScalingGroupList`,Fge=`AddonVersionInfo`,Ige=`AddonVersionInfoList`,Lge=`Addons`,Rge=`BadRequestException`,zge=`BlockStorage`,Bge=`Cancellation`,Vge=`CreateAddon`,Hge=`CreateAccessConfigRequest`,Uge=`CreateAccessEntry`,Wge=`CreateAccessEntryRequest`,Gge=`CreateAccessEntryResponse`,Kge=`CreateAddonRequest`,qge=`CreateAddonResponse`,Jge=`ComputeConfigRequest`,Yge=`ComputeConfigResponse`,Xge=`ConnectorConfigResponse`,Zge=`CreateClusterRequest`,Qge=`CreateClusterResponse`,$ge=`CreateCluster`,e_e=`ClientException`,t_e=`ClusterHealth`,n_e=`ClusterIssueList`,r_e=`ClusterIssue`,i_e=`CreateNodegroup`,a_e=`CreateNodegroupRequest`,o_e=`CreateNodegroupResponse`,s_e=`ControlPlanePlacementRequest`,c_e=`ControlPlanePlacementResponse`,l_e=`ControlPlaneScalingConfig`,u_e=`Certificate`,d_e=`Cluster`,f_e=`Compatibility`,p_e=`Compatibilities`,m_e=`DeleteAddon`,h_e=`DeleteAccessEntry`,g_e=`DeleteAccessEntryRequest`,__e=`DeleteAccessEntryResponse`,v_e=`DescribeAccessEntryRequest`,y_e=`DescribeAccessEntryResponse`,b_e=`DescribeAccessEntry`,x_e=`DisassociateAccessPolicy`,S_e=`DisassociateAccessPolicyRequest`,C_e=`DisassociateAccessPolicyResponse`,w_e=`DeleteAddonRequest`,T_e=`DeleteAddonResponse`,E_e=`DescribeAddonRequest`,D_e=`DescribeAddonResponse`,O_e=`DescribeAddonVersions`,k_e=`DescribeAddonVersionsRequest`,A_e=`DescribeAddonVersionsResponse`,j_e=`DescribeAddon`,M_e=`DeleteClusterRequest`,N_e=`DeleteClusterResponse`,P_e=`DescribeClusterRequest`,F_e=`DescribeClusterResponse`,I_e=`DeleteCluster`,L_e=`DescribeCluster`,R_e=`DeleteNodegroup`,z_e=`DeleteNodegroupRequest`,B_e=`DeleteNodegroupResponse`,V_e=`DescribeNodegroupRequest`,H_e=`DescribeNodegroupResponse`,U_e=`DescribeNodegroup`,W_e=`EncryptionConfig`,G_e=`EncryptionConfigList`,K_e=`ErrorDetail`,q_e=`ErrorDetails`,J_e=`ElasticLoadBalancing`,Y_e=`EtcdPlacementRequest`,X_e=`EtcdPlacementResponse`,Z_e=`Identity`,Q_e=`IssueList`,$_e=`InvalidParameterException`,eve=`InvalidRequestException`,tve=`InvalidStateException`,nve=`Issue`,rve=`KubernetesNetworkConfigRequest`,ive=`KubernetesNetworkConfigResponse`,ave=`ListAddons`,ove=`ListAssociatedAccessPolicies`,sve=`ListAssociatedAccessPoliciesRequest`,cve=`ListAssociatedAccessPoliciesResponse`,lve=`ListAccessEntries`,uve=`ListAccessEntriesRequest`,dve=`ListAccessEntriesResponse`,fve=`ListAccessPolicies`,pve=`ListAccessPoliciesRequest`,mve=`ListAccessPoliciesResponse`,hve=`ListAddonsRequest`,gve=`ListAddonsResponse`,_ve=`ListClustersRequest`,vve=`ListClustersResponse`,yve=`ListClusters`,bve=`ListNodegroups`,xve=`ListNodegroupsRequest`,Sve=`ListNodegroupsResponse`,Cve=`LogSetup`,wve=`LogSetups`,Tve=`LaunchTemplateSpecification`,Eve=`Logging`,Dve=`MarketplaceInformation`,Ove=`Nodegroup`,kve=`NotFoundException`,Ave=`NodegroupHealth`,jve=`NodegroupResources`,Mve=`NodeRepairConfig`,Nve=`NodeRepairConfigOverrides`,Pve=`NodeRepairConfigOverridesList`,Fve=`NodegroupScalingConfig`,Ive=`NodegroupUpdateConfig`,Lve=`OutpostConfigRequest`,Rve=`OutpostConfigResponse`,zve=`OIDC`,Bve=`Provider`,Vve=`RemoteAccessConfig`,Hve=`ResourceInUseException`,Uve=`ResourceLimitExceededException`,Wve=`RemoteNetworkConfigRequest`,Gve=`RemoteNetworkConfigResponse`,Kve=`ResourceNotFoundException`,qve=`RemoteNodeNetwork`,Jve=`RemoteNodeNetworkList`,Yve=`ResourcePropagationDelayException`,Xve=`RemotePodNetwork`,Zve=`RemotePodNetworkList`,Qve=`StorageConfigRequest`,$ve=`StorageConfigResponse`,eye=`ServerException`,tye=`ServiceUnavailableException`,nye=`Taint`,rye=`ThrottlingException`,iye=`Update`,aye=`UpdateAddon`,oye=`UpdateAddonRequest`,sye=`UpdateAddonResponse`,cye=`UnsupportedAvailabilityZoneException`,lye=`UpdateLabelsPayload`,uye=`UpdateNodegroupConfig`,dye=`UpdateNodegroupConfigRequest`,fye=`UpdateNodegroupConfigResponse`,pye=`UpdateNodegroupVersion`,mye=`UpdateNodegroupVersionRequest`,hye=`UpdateNodegroupVersionResponse`,gye=`UpdateParam`,_ye=`UpgradePolicyRequest`,vye=`UpgradePolicyResponse`,yye=`UpdateParams`,bye=`UpdateTaintsPayload`,xye=`VpcConfigRequest`,Sye=`VpcConfigResponse`,Cye=`WarmPoolConfig`,wye=`ZonalShiftConfigRequest`,Tye=`ZonalShiftConfigResponse`,UQ=`arn`,Eye=`addonArn`,Dye=`associatedAccessPolicy`,Oye=`associatedAccessPolicies`,kye=`associatedAt`,WQ=`accessConfig`,Aye=`activationCode`,jye=`activationExpiry`,Mye=`accessEntryArn`,GQ=`accessEntry`,Nye=`accessEntries`,Pye=`activationId`,KQ=`authenticationMode`,qQ=`addonName`,Fye=`addOrUpdateLabels`,Iye=`addOrUpdateTaints`,Lye=`accessPolicies`,JQ=`associatedPolicyArn`,YQ=`accessScope`,Rye=`autoScalingGroups`,XQ=`amiType`,ZQ=`addonVersion`,zye=`addonVersions`,QQ=`addon`,$Q=`addons`,Bye=`architecture`,e$=`bootstrapClusterCreatorAdminPermissions`,t$=`blockStorage`,Vye=`bootstrapSelfManagedAddons`,n$=`client`,r$=`createdAt`,Hye=`certificateAuthority`,Uye=`connectorConfig`,i$=`computeConfig`,Wye=`clusterLogging`,A=`clusterName`,a$=`controlPlaneEgressMode`,o$=`controlPlaneInstanceType`,s$=`controlPlanePlacement`,c$=`controlPlaneScalingConfig`,l$=`clientRequestToken`,Gye=`clusterSecurityGroupId`,Kye=`computeTypes`,u$=`capacityType`,d$=`configurationValues`,qye=`clusterVersion`,Jye=`cancellation`,f$=`cidrs`,p$=`cluster`,Yye=`clusters`,m$=`code`,Xye=`compatibilities`,Zye=`data`,Qye=`defaultNamespace`,h$=`deletionProtection`,g$=`diskSize`,$ye=`desiredSize`,ebe=`defaultVersion`,_$=`error`,v$=`encryptionConfig`,tbe=`errorCode`,y$=`etcdInstanceType`,b$=`elasticLoadBalancing`,nbe=`errorMessage`,x$=`etcdPlacement`,S$=`endpointPublicAccess`,C$=`endpointPrivateAccess`,rbe=`ec2SshKey`,ibe=`effect`,w$=`enabled`,abe=`endpoint`,obe=`errors`,T$=`fargateProfileName`,sbe=`force`,E$=`groupName`,D$=`health`,O$=`httpError`,k$=`httpQuery`,A$=`http`,j$=`issues`,M$=`ipFamily`,N$=`instanceTypes`,P$=`id`,cbe=`identity`,F$=`include`,lbe=`issuer`,ube=`key`,dbe=`keyArn`,I$=`kubernetesGroups`,L$=`kubernetesNetworkConfig`,R$=`kubernetesVersion`,z$=`logging`,B$=`launchTemplate`,V$=`labels`,H$=`message`,U$=`modifiedAt`,fbe=`maxGroupPreparedCapacity`,W$=`marketplaceInformation`,pbe=`maxParallelNodesRepairedCount`,mbe=`maxParallelNodesRepairedPercentage`,G$=`maxResults`,hbe=`minRepairWaitTimeMins`,K$=`minSize`,gbe=`maxSize`,_be=`maxUnavailable`,vbe=`maxUnhealthyNodeThresholdCount`,ybe=`maxUnhealthyNodeThresholdPercentage`,bbe=`maxUnavailablePercentage`,q$=`name`,xbe=`nodegroupArn`,J$=`namespaceConfig`,Sbe=`nodeMonitoringCondition`,Y$=`nodegroupName`,X$=`nodePools`,Z$=`nodeRole`,Q$=`nodeRoleArn`,$$=`nodeRepairConfig`,Cbe=`nodeRepairConfigOverrides`,e1=`nextToken`,wbe=`nodeUnhealthyReason`,Tbe=`namespaces`,t1=`namespace`,n1=`nodegroup`,Ebe=`nodegroups`,r1=`owner`,i1=`outpostArns`,a1=`outpostConfig`,Dbe=`oidc`,o1=`owners`,s1=`publisher`,c1=`principalArn`,l1=`publicAccessCidrs`,u1=`policyArn`,Obe=`productId`,d1=`podIdentityAssociations`,kbe=`poolState`,Abe=`productUrl`,jbe=`platformVersion`,Mbe=`platformVersions`,Nbe=`params`,f1=`provider`,p1=`preserve`,m1=`publishers`,h1=`roleArn`,Pbe=`remoteAccessSecurityGroup`,g1=`remoteAccess`,Fbe=`repairAction`,Ibe=`requiresConfiguration`,_1=`resolveConflicts`,v1=`resourceIds`,Lbe=`requiresIamPermissions`,Rbe=`removeLabels`,y1=`remoteNetworkConfig`,b1=`remoteNodeNetworks`,zbe=`reuseOnScaleIn`,x1=`remotePodNetworks`,Bbe=`removeTaints`,S1=`releaseVersion`,C1=`resourcesVpcConfig`,Vbe=`reason`,w1=`resources`,T1=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,Hbe=`serviceAccount`,E1=`serviceAccountRoleArn`,D1=`storageConfig`,O1=`scalingConfig`,k1=`securityGroupIds`,A1=`subscriptionId`,j1=`serviceIpv4Cidr`,Ube=`serviceIpv6Cidr`,M1=`subnetIds`,N1=`spreadLevel`,Wbe=`sourceSecurityGroups`,P1=`supportType`,F1=`server`,I1=`status`,L1=`subnets`,R1=`tags`,Gbe=`taintsList`,z1=`taints`,Kbe=`tier`,B1=`type`,V1=`types`,H1=`username`,U1=`updateConfig`,W1=`upgradePolicy`,qbe=`updateStrategy`,G1=`update`,K1=`version`,Jbe=`vpcId`,Ybe=`validZones`,q1=`value`,J1=`warmPoolConfig`,Y1=`zonalShiftConfig`,j=`com.amazonaws.eks`,X1=dt.for(T1),Xbe=[-3,T1,`EKSServiceException`,0,[],[]];X1.registerError(Xbe,HQ);var Z1=dt.for(j),Zbe=[-3,j,bge,{[_$]:n$,[O$]:403},[H$],[0]];Z1.registerError(Zbe,Qhe);var Qbe=[-3,j,Rge,{[_$]:n$,[O$]:400},[H$],[0]];Z1.registerError(Qbe,uge);var $be=[-3,j,e_e,{[_$]:n$,[O$]:400},[A,Y$,qQ,A1,H$],[0,0,0,0,0]];Z1.registerError($be,rge);var exe=[-3,j,$_e,{[_$]:n$,[O$]:400},[A,Y$,T$,qQ,A1,H$],[0,0,0,0,0,0]];Z1.registerError(exe,$he);var txe=[-3,j,eve,{[_$]:n$,[O$]:400},[A,Y$,qQ,A1,H$],[0,0,0,0,0]];Z1.registerError(txe,ege);var nxe=[-3,j,tve,{[_$]:n$,[O$]:400},[A,H$],[0,0]];Z1.registerError(nxe,oge);var rxe=[-3,j,kve,{[_$]:n$,[O$]:404},[H$],[0]];Z1.registerError(rxe,dge);var ixe=[-3,j,Hve,{[_$]:n$,[O$]:409},[A,Y$,qQ,H$],[0,0,0,0]];Z1.registerError(ixe,ige);var axe=[-3,j,Uve,{[_$]:n$,[O$]:400},[A,Y$,A1,H$],[0,0,0,0]];Z1.registerError(axe,sge);var oxe=[-3,j,Kve,{[_$]:n$,[O$]:404},[A,Y$,T$,qQ,A1,H$],[0,0,0,0,0,0]];Z1.registerError(oxe,tge);var sxe=[-3,j,Yve,{[_$]:n$,[O$]:428},[H$],[0]];Z1.registerError(sxe,fge);var cxe=[-3,j,eye,{[_$]:F1,[O$]:500},[A,Y$,qQ,A1,H$],[0,0,0,0,0]];Z1.registerError(cxe,nge);var lxe=[-3,j,tye,{[_$]:F1,[O$]:503},[H$],[0]];Z1.registerError(lxe,cge);var uxe=[-3,j,rye,{[_$]:n$,[O$]:429},[A,H$],[0,0]];Z1.registerError(uxe,age);var dxe=[-3,j,cye,{[_$]:n$,[O$]:400},[H$,A,Y$,Ybe],[0,0,0,64]];Z1.registerError(dxe,lge);var fxe=[X1,Z1],pxe=[3,j,yge,0,[e$,KQ],[2,0]],Q1=[3,j,xge,0,[A,c1,I$,Mye,r$,U$,R1,H1,B1],[0,0,64,0,4,4,128,0,0]],mxe=[3,j,Oge,0,[q$,UQ],[0,0]],$1=[3,j,Mge,0,[B1,Tbe],[0,64]],e0=[3,j,pge,0,[qQ,A,I1,ZQ,D$,Eye,r$,U$,E1,R1,s1,r1,W$,d$,d1,J$],[0,0,0,0,()=>hxe,0,4,4,0,128,0,0,()=>c0,0,64,()=>yxe]],hxe=[3,j,Sge,0,[j$],[()=>sCe]],gxe=[3,j,Cge,0,[qQ,B1,zye,s1,r1,W$,Qye],[0,0,()=>lCe,0,0,()=>c0,0]],_xe=[3,j,Tge,0,[m$,H$,v1],[0,0,64]],vxe=[3,j,Ege,0,[t1],[0]],yxe=[3,j,Dge,0,[t1],[0]],bxe=[3,j,kge,0,[Hbe,h1],[0,0],2],xxe=[3,j,Fge,0,[ZQ,Bye,Kye,Xye,Ibe,Lbe],[0,64,64,()=>pCe,2,2]],Sxe=[3,j,gge,0,[A,c1,u1,YQ],[[0,1],[0,1],0,()=>$1],4],Cxe=[3,j,_ge,0,[A,c1,Dye],[0,0,()=>t0]],t0=[3,j,mge,0,[u1,YQ,kye,U$],[0,()=>$1,4,4]],wxe=[3,j,Nge,0,[q$],[0]],n0=[3,j,zge,0,[w$],[2]],Txe=[3,j,Bge,0,[I1,Vbe],[0,0]],Exe=[3,j,u_e,0,[Zye],[0]],r0=[3,j,d_e,0,[q$,UQ,r$,K1,abe,h1,C1,L$,z$,cbe,I1,Hye,l$,jbe,R1,v$,Uye,P$,D$,a1,WQ,W1,Y1,y1,i$,D1,h$,c$],[0,0,4,0,0,0,()=>rCe,()=>_Se,()=>s0,()=>mSe,0,()=>Exe,0,0,128,()=>_0,()=>Mxe,0,()=>Dxe,()=>ISe,()=>pxe,()=>tCe,()=>aCe,()=>zSe,()=>jxe,()=>USe,2,()=>i0]],Dxe=[3,j,t_e,0,[j$],[()=>fCe]],Oxe=[3,j,r_e,0,[m$,H$,v1],[0,0,64]],kxe=[3,j,f_e,0,[qye,Mbe,ebe],[0,64,2]],Axe=[3,j,Jge,0,[w$,X$,Q$],[2,64,0]],jxe=[3,j,Yge,0,[w$,X$,Q$],[2,64,0]],Mxe=[3,j,Xge,0,[Pye,Aye,jye,f1,h1],[0,0,4,0,0]],Nxe=[3,j,s_e,0,[E$,N1],[0,0]],Pxe=[3,j,c_e,0,[E$,N1],[0,0]],i0=[3,j,l_e,0,[Kbe],[0]],Fxe=[3,j,Hge,0,[e$,KQ],[2,0]],Ixe=[3,j,Wge,0,[A,c1,I$,R1,l$,H1,B1],[[0,1],0,64,128,[0,4],0,0],2],Lxe=[3,j,Gge,0,[GQ],[()=>Q1]],Rxe=[3,j,Kge,0,[A,qQ,ZQ,E1,_1,l$,R1,d$,d1,J$],[[0,1],0,0,0,0,[0,4],128,0,()=>g0,()=>vxe],2],zxe=[3,j,qge,0,[QQ],[()=>e0]],Bxe=[3,j,Zge,0,[q$,h1,C1,K1,L$,z$,l$,R1,v$,a1,WQ,Vye,W1,Y1,y1,i$,D1,h$,c$],[0,0,()=>nCe,0,()=>gSe,()=>s0,[0,4],128,()=>_0,()=>FSe,()=>Fxe,2,()=>eCe,()=>iCe,()=>RSe,()=>Axe,()=>HSe,2,()=>i0],3],Vxe=[3,j,Qge,0,[p$],[()=>r0]],Hxe=[3,j,a_e,0,[A,Y$,L1,Z$,O1,g$,N$,XQ,g1,V$,z1,R1,l$,B$,U1,$$,u$,K1,S1,J1],[[0,1],0,64,0,()=>u0,1,64,0,()=>p0,128,()=>b0,128,[0,4],()=>o0,()=>d0,()=>f0,0,0,0,()=>h0],4],Uxe=[3,j,o_e,0,[n1],[()=>l0]],Wxe=[3,j,g_e,0,[A,c1],[[0,1],[0,1]],2],Gxe=[3,j,__e,0,[],[]],Kxe=[3,j,w_e,0,[A,qQ,p1],[[0,1],[0,1],[2,{[k$]:p1}]],2],qxe=[3,j,T_e,0,[QQ],[()=>e0]],Jxe=[3,j,M_e,0,[q$],[[0,1]],1],Yxe=[3,j,N_e,0,[p$],[()=>r0]],Xxe=[3,j,z_e,0,[A,Y$],[[0,1],[0,1]],2],Zxe=[3,j,B_e,0,[n1],[()=>l0]],Qxe=[3,j,v_e,0,[A,c1],[[0,1],[0,1]],2],$xe=[3,j,y_e,0,[GQ],[()=>Q1]],eSe=[3,j,E_e,0,[A,qQ],[[0,1],[0,1]],2],tSe=[3,j,D_e,0,[QQ],[()=>e0]],nSe=[3,j,k_e,0,[R$,G$,e1,qQ,V1,m1,o1],[[0,{[k$]:R$}],[1,{[k$]:G$}],[0,{[k$]:e1}],[0,{[k$]:qQ}],[64,{[k$]:V1}],[64,{[k$]:m1}],[64,{[k$]:o1}]]],rSe=[3,j,A_e,0,[$Q,e1],[()=>cCe,0]],iSe=[3,j,P_e,0,[q$],[[0,1]],1],aSe=[3,j,F_e,0,[p$],[()=>r0]],oSe=[3,j,V_e,0,[A,Y$],[[0,1],[0,1]],2],sSe=[3,j,H_e,0,[n1],[()=>l0]],cSe=[3,j,S_e,0,[A,c1,u1],[[0,1],[0,1],[0,1]],3],lSe=[3,j,C_e,0,[],[]],a0=[3,j,J_e,0,[w$],[2]],uSe=[3,j,W_e,0,[w1,f1],[64,()=>LSe]],dSe=[3,j,K_e,0,[tbe,nbe,v1],[0,0,64]],fSe=[3,j,Y_e,0,[N1],[0]],pSe=[3,j,X_e,0,[N1],[0]],mSe=[3,j,Z_e,0,[Dbe],[()=>PSe]],hSe=[3,j,nve,0,[m$,H$,v1],[0,0,64]],gSe=[3,j,rve,0,[j1,M$,b$],[0,0,()=>a0]],_Se=[3,j,ive,0,[j1,Ube,M$,b$],[0,0,0,()=>a0]],o0=[3,j,Tve,0,[q$,K1,P$],[0,0,0]],vSe=[3,j,uve,0,[A,JQ,G$,e1],[[0,1],[0,{[k$]:JQ}],[1,{[k$]:G$}],[0,{[k$]:e1}]],1],ySe=[3,j,dve,0,[Nye,e1],[64,0]],bSe=[3,j,pve,0,[G$,e1],[[1,{[k$]:G$}],[0,{[k$]:e1}]]],xSe=[3,j,mve,0,[Lye,e1],[()=>oCe,0]],SSe=[3,j,hve,0,[A,G$,e1],[[0,1],[1,{[k$]:G$}],[0,{[k$]:e1}]],1],CSe=[3,j,gve,0,[$Q,e1],[64,0]],wSe=[3,j,sve,0,[A,c1,G$,e1],[[0,1],[0,1],[1,{[k$]:G$}],[0,{[k$]:e1}]],2],TSe=[3,j,cve,0,[A,c1,e1,Oye],[0,0,0,()=>uCe]],ESe=[3,j,_ve,0,[G$,e1,F$],[[1,{[k$]:G$}],[0,{[k$]:e1}],[64,{[k$]:F$}]]],DSe=[3,j,vve,0,[Yye,e1],[64,0]],OSe=[3,j,xve,0,[A,G$,e1],[[0,1],[1,{[k$]:G$}],[0,{[k$]:e1}]],1],kSe=[3,j,Sve,0,[Ebe,e1],[64,0]],s0=[3,j,Eve,0,[Wye],[()=>gCe]],ASe=[3,j,Cve,0,[V1,w$],[64,2]],c0=[3,j,Dve,0,[Obe,Abe],[0,0]],l0=[3,j,Ove,0,[Y$,xbe,A,K1,S1,r$,U$,I1,u$,O1,N$,L1,g1,XQ,Z$,V$,z1,w1,g$,D$,U1,$$,B$,R1,J1],[0,0,0,0,0,4,4,0,0,()=>u0,64,64,()=>p0,0,0,128,()=>b0,()=>MSe,1,()=>jSe,()=>d0,()=>f0,()=>o0,128,()=>h0]],jSe=[3,j,Ave,0,[j$],[()=>hCe]],MSe=[3,j,jve,0,[Rye,Pbe],[()=>dCe,0]],u0=[3,j,Fve,0,[K$,gbe,$ye],[1,1,1]],d0=[3,j,Ive,0,[_be,bbe,qbe],[1,1,0]],f0=[3,j,Mve,0,[w$,vbe,ybe,pbe,mbe,Cbe],[2,1,1,1,1,()=>_Ce]],NSe=[3,j,Nve,0,[Sbe,wbe,hbe,Fbe],[0,0,1,0]],PSe=[3,j,zve,0,[lbe],[0]],FSe=[3,j,Lve,0,[i1,o$,s$,y$,x$],[64,0,()=>Nxe,0,()=>fSe],2],ISe=[3,j,Rve,0,[i1,o$,s$,y$,x$],[64,0,()=>Pxe,0,()=>pSe],2],LSe=[3,j,Bve,0,[dbe],[0]],p0=[3,j,Vve,0,[rbe,Wbe],[0,64]],RSe=[3,j,Wve,0,[b1,x1],[()=>v0,()=>y0]],zSe=[3,j,Gve,0,[b1,x1],[()=>v0,()=>y0]],BSe=[3,j,qve,0,[f$],[64]],VSe=[3,j,Xve,0,[f$],[64]],HSe=[3,j,Qve,0,[t$],[()=>n0]],USe=[3,j,$ve,0,[t$],[()=>n0]],WSe=[3,j,nye,0,[ube,q1,ibe],[0,0,0]],m0=[3,j,iye,0,[P$,I1,B1,Nbe,r$,obe,Jye],[0,0,0,()=>vCe,4,()=>mCe,()=>Txe]],GSe=[3,j,oye,0,[A,qQ,ZQ,E1,_1,l$,d$,d1],[[0,1],[0,1],0,0,0,[0,4],0,()=>g0],2],KSe=[3,j,sye,0,[G1],[()=>m0]],qSe=[3,j,lye,0,[Fye,Rbe],[128,64]],JSe=[3,j,dye,0,[A,Y$,V$,z1,O1,U1,$$,J1,l$],[[0,1],[0,1],()=>qSe,()=>$Se,()=>u0,()=>d0,()=>f0,()=>h0,[0,4]],2],YSe=[3,j,fye,0,[G1],[()=>m0]],XSe=[3,j,mye,0,[A,Y$,K1,S1,B$,sbe,l$],[[0,1],[0,1],0,0,()=>o0,2,[0,4]],2],ZSe=[3,j,hye,0,[G1],[()=>m0]],QSe=[3,j,gye,0,[B1,q1],[0,0]],$Se=[3,j,bye,0,[Iye,Bbe],[()=>b0,()=>b0]],eCe=[3,j,_ye,0,[P1],[0]],tCe=[3,j,vye,0,[P1],[0]],nCe=[3,j,xye,0,[M1,k1,S$,C$,l1,a$],[64,64,2,2,64,0]],rCe=[3,j,Sye,0,[M1,k1,Gye,Jbe,S$,C$,l1,a$],[64,64,0,0,2,2,64,0]],h0=[3,j,Cye,0,[w$,K$,fbe,kbe,zbe],[2,1,1,0,2]],iCe=[3,j,wye,0,[w$],[2]],aCe=[3,j,Tye,0,[w$],[2]],oCe=[1,j,jge,0,()=>mxe],sCe=[1,j,wge,0,()=>_xe],g0=[1,j,Age,0,()=>bxe],cCe=[1,j,Lge,0,()=>gxe],lCe=[1,j,Ige,0,()=>xxe],uCe=[1,j,hge,0,()=>t0],dCe=[1,j,Pge,0,()=>wxe],fCe=[1,j,n_e,0,()=>Oxe],pCe=[1,j,p_e,0,()=>kxe],_0=[1,j,G_e,0,()=>uSe],mCe=[1,j,q_e,0,()=>dSe],hCe=[1,j,Q_e,0,()=>hSe],gCe=[1,j,wve,0,()=>ASe],_Ce=[1,j,Pve,0,()=>NSe],v0=[1,j,Jve,0,()=>BSe],y0=[1,j,Zve,0,()=>VSe],b0=[1,j,Gbe,0,()=>WSe],vCe=[1,j,yye,0,()=>QSe],yCe=[9,j,vge,{[A$]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>Sxe,()=>Cxe],bCe=[9,j,Uge,{[A$]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>Ixe,()=>Lxe],xCe=[9,j,Vge,{[A$]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>Rxe,()=>zxe],SCe=[9,j,$ge,{[A$]:[`POST`,`/clusters`,200]},()=>Bxe,()=>Vxe],CCe=[9,j,i_e,{[A$]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>Hxe,()=>Uxe],wCe=[9,j,h_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>Wxe,()=>Gxe],TCe=[9,j,m_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>Kxe,()=>qxe],ECe=[9,j,I_e,{[A$]:[`DELETE`,`/clusters/{name}`,200]},()=>Jxe,()=>Yxe],DCe=[9,j,R_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>Xxe,()=>Zxe],OCe=[9,j,b_e,{[A$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>Qxe,()=>$xe],kCe=[9,j,j_e,{[A$]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>eSe,()=>tSe],ACe=[9,j,O_e,{[A$]:[`GET`,`/addons/supported-versions`,200]},()=>nSe,()=>rSe],jCe=[9,j,L_e,{[A$]:[`GET`,`/clusters/{name}`,200]},()=>iSe,()=>aSe],MCe=[9,j,U_e,{[A$]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>oSe,()=>sSe],NCe=[9,j,x_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>cSe,()=>lSe],PCe=[9,j,lve,{[A$]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>vSe,()=>ySe],FCe=[9,j,fve,{[A$]:[`GET`,`/access-policies`,200]},()=>bSe,()=>xSe],ICe=[9,j,ave,{[A$]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>SSe,()=>CSe],LCe=[9,j,ove,{[A$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>wSe,()=>TSe],RCe=[9,j,yve,{[A$]:[`GET`,`/clusters`,200]},()=>ESe,()=>DSe],zCe=[9,j,bve,{[A$]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>OSe,()=>kSe],BCe=[9,j,aye,{[A$]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>GSe,()=>KSe],VCe=[9,j,uye,{[A$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>JSe,()=>YSe],HCe=[9,j,pye,{[A$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>XSe,()=>ZSe],UCe=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Zhe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Hhe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Nee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:fxe,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),WCe=e=>{let t=Je(e),n=()=>t().then(ft),r=UCe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:Khe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},GCe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},KCe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),qCe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),GCe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),KCe(n))},JCe=class extends fe{config;constructor(...[e]){let t=WCe(e||{});super(t),this.initConfig=t;let n=qCe(Uhe(Qe(Me(be(rt(ge(Whe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:Bhe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},YCe=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function XCe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var ZCe=e=>{let t=[];switch(e.operation){default:t.push(XCe(e))}return t},QCe=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},$Ce=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),ewe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},twe={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},x0=`ref`,S0=-1,C0=!0,w0=`isSet`,T0=`PartitionResult`,E0=`booleanEquals`,D0=`getAttr`,O0={[x0]:`Endpoint`},k0={[x0]:T0},A0={},j0=[{[x0]:`Region`}],M0={conditions:[[w0,[O0]],[w0,j0],[`aws.partition`,j0,T0],[E0,[{[x0]:`UseFIPS`},C0]],[E0,[{[x0]:`UseDualStack`},C0]],[E0,[{fn:D0,argv:[k0,`supportsDualStack`]},C0]],[E0,[{fn:D0,argv:[k0,`supportsFIPS`]},C0]],[`stringEquals`,[{fn:D0,argv:[k0,`name`]},`aws-us-gov`]]],results:[[S0],[S0,`Invalid Configuration: FIPS and custom endpoint are not supported`],[S0,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[O0,A0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,A0],[S0,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,A0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,A0],[S0,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,A0],[S0,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,A0],[S0,`Invalid Configuration: Missing Region`]]},nwe=2,rwe=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),iwe=nt.from(rwe,nwe,M0.conditions,M0.results),awe=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),owe=(e,t={})=>awe.get(e,()=>at(iwe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var M=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},swe=class e extends M{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cwe=class e extends M{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lwe=class e extends M{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uwe=class e extends M{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dwe=class e extends M{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fwe=class e extends M{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pwe=class e extends M{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mwe=class e extends M{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hwe=class e extends M{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gwe=class e extends M{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_we=class e extends M{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vwe=class e extends M{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ywe=class e extends M{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bwe=class e extends M{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xwe=class e extends M{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Swe=class e extends M{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Cwe=class e extends M{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wwe=class e extends M{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Twe=class e extends M{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ewe=class e extends M{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Dwe=class e extends M{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Owe=class e extends M{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kwe=class e extends M{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Awe=class e extends M{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jwe=class e extends M{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Mwe=class e extends M{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Nwe=class e extends M{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Pwe=class e extends M{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Fwe=class e extends M{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Iwe=class e extends M{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Lwe=class e extends M{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Rwe=class e extends M{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zwe=class e extends M{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Bwe=class e extends M{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Vwe=class e extends M{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Hwe=class e extends M{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Uwe=class e extends M{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Wwe=class e extends M{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Gwe=class e extends M{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Kwe=class e extends M{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qwe=class e extends M{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Jwe=class e extends M{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ywe=class e extends M{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Xwe=class e extends M{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Zwe=class e extends M{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Qwe=class e extends M{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$we=class e extends M{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eTe=class e extends M{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tTe=class e extends M{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nTe=class e extends M{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rTe=class e extends M{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iTe=class e extends M{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aTe=class e extends M{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oTe=class e extends M{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sTe=class e extends M{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cTe=class e extends M{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lTe=`Action`,uTe=`AdditionalClaims`,dTe=`AuthenticateCognitoActionConfig`,fTe=`AuthenticateCognitoConfig`,N0=`AnomalyDetection`,pTe=`AuthorizationEndpoint`,P0=`AllocationId`,mTe=`AllocationIdNotFoundException`,hTe=`ALPNPolicyNotSupportedException`,F0=`AdministrativeOverride`,gTe=`AuthenticateOidcActionConfig`,_Te=`AuthenticateOidcConfig`,I0=`AlpnPolicy`,L0=`AuthenticationRequestExtraParams`,vTe=`AddTags`,yTe=`AddTagsInput`,bTe=`AddTagsOutput`,xTe=`AdvertiseTrustStoreCaNames`,R0=`AvailabilityZone`,STe=`AvailabilityZoneNotSupportedException`,z0=`AvailabilityZones`,B0=`Actions`,V0=`Attributes`,H0=`Certificates`,CTe=`CertificateArn`,wTe=`CaCertificatesBundleNotFoundException`,TTe=`CapacityDecreaseRequestsLimitExceededException`,ETe=`CanonicalHostedZoneId`,DTe=`ClientId`,OTe=`CertificateList`,kTe=`CreateLoadBalancer`,ATe=`CreateLoadBalancerInput`,jTe=`CreateLoadBalancerOutput`,MTe=`CreateListenerInput`,NTe=`CreateListenerOutput`,PTe=`CreateListener`,FTe=`CertificateNotFoundException`,U0=`CustomerOwnedIpv4Pool`,ITe=`CreateRule`,LTe=`CreateRuleInput`,RTe=`CreateRuleOutput`,zTe=`CapacityReservationPendingException`,BTe=`ClientSecret`,VTe=`ContentType`,HTe=`CreateTargetGroup`,UTe=`CreateTargetGroupInput`,WTe=`CreateTargetGroupOutput`,GTe=`CreatedTime`,KTe=`CapacityUnitsLimitExceededException`,qTe=`Certificate`,JTe=`Cipher`,W0=`Ciphers`,YTe=`Code`,G0=`Conditions`,K0=`Description`,q0=`DefaultActions`,XTe=`DeleteAssociationSameAccountException`,ZTe=`DeleteListener`,QTe=`DeleteLoadBalancer`,$Te=`DescribeLoadBalancerAttributes`,eEe=`DescribeLoadBalancerAttributesInput`,tEe=`DescribeLoadBalancerAttributesOutput`,nEe=`DeleteLoadBalancerInput`,rEe=`DescribeLoadBalancersInput`,iEe=`DuplicateLoadBalancerNameException`,aEe=`DeleteLoadBalancerOutput`,oEe=`DescribeLoadBalancersOutput`,sEe=`DescribeLoadBalancers`,cEe=`DuplicateListenerException`,lEe=`DeleteListenerInput`,uEe=`DescribeListenersInput`,dEe=`DeleteListenerOutput`,fEe=`DescribeListenersOutput`,pEe=`DescribeListeners`,mEe=`DNSName`,hEe=`DeleteRule`,gEe=`DeleteRuleInput`,_Ee=`DescribeRulesInput`,vEe=`DeleteRuleOutput`,yEe=`DescribeRulesOutput`,bEe=`DescribeRules`,xEe=`DurationSeconds`,SEe=`DescribeSSLPolicies`,CEe=`DescribeSSLPoliciesInput`,wEe=`DescribeSSLPoliciesOutput`,TEe=`DeregisterTargets`,EEe=`DeleteTargetGroup`,DEe=`DescribeTargetGroupAttributes`,OEe=`DescribeTargetGroupAttributesInput`,kEe=`DescribeTargetGroupAttributesOutput`,AEe=`DeleteTargetGroupInput`,jEe=`DescribeTargetGroupsInput`,MEe=`DuplicateTargetGroupNameException`,NEe=`DeleteTargetGroupOutput`,PEe=`DescribeTargetGroupsOutput`,FEe=`DescribeTargetGroups`,IEe=`DescribeTargetHealth`,LEe=`DescribeTargetHealthInput`,REe=`DescribeTargetHealthOutput`,zEe=`DeregisterTargetsInput`,BEe=`DescribeTagsInput`,VEe=`DuplicateTagKeysException`,HEe=`DeregisterTargetsOutput`,UEe=`DescribeTagsOutput`,WEe=`DuplicateTrustStoreNameException`,GEe=`DescribeTags`,KEe=`Enabled`,J0=`EnablePrefixForIpv6SourceNat`,Y0=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,qEe=`Format`,JEe=`ForwardActionConfig`,YEe=`ForwardConfig`,XEe=`FixedResponseActionConfig`,ZEe=`FixedResponseConfig`,QEe=`Field`,$Ee=`GrpcCode`,eDe=`Host`,tDe=`HttpCode`,X0=`HealthCheckEnabled`,Z0=`HealthCheckIntervalSeconds`,Q0=`HealthCheckProtocol`,$0=`HealthCheckPort`,e2=`HealthCheckPath`,t2=`HealthCheckTimeoutSeconds`,nDe=`HostHeaderConfig`,rDe=`HostHeaderConditionConfig`,iDe=`HttpHeaderConditionConfig`,aDe=`HttpHeaderConfig`,oDe=`HttpHeaderName`,n2=`HostHeaderRewriteConfig`,sDe=`HttpRequestMethodConfig`,cDe=`HttpRequestMethodConditionConfig`,r2=`HealthyThresholdCount`,lDe=`HealthUnavailableException`,i2=`Issuer`,uDe=`IpAddress`,a2=`IpAddressType`,dDe=`InvalidCaCertificatesBundleException`,fDe=`IgnoreClientCertificateExpiry`,pDe=`InsufficientCapacityException`,mDe=`InvalidConfigurationRequestException`,o2=`IsDefault`,hDe=`Ipv4IpamPoolId`,gDe=`InvalidLoadBalancerActionException`,s2=`IpamPools`,c2=`IPv6Address`,_De=`IncompatibleProtocolsException`,vDe=`InvalidRevocationContentException`,yDe=`InvalidSchemeException`,bDe=`InvalidSubnetException`,xDe=`InvalidSecurityGroupException`,SDe=`InvalidTargetException`,CDe=`Id`,wDe=`Include`,TDe=`JwksEndpoint`,EDe=`JwtValidationActionAdditionalClaim`,DDe=`JwtValidationActionAdditionalClaims`,ODe=`JwtValidationActionConfig`,kDe=`JwtValidationConfig`,l2=`Key`,u2=`Listeners`,d2=`ListenerArn`,ADe=`ListenerArns`,f2=`LoadBalancers`,p2=`LoadBalancerAddresses`,m2=`LoadBalancerArn`,h2=`LoadBalancerArns`,jDe=`LoadBalancerAddress`,MDe=`LoadBalancerAttribute`,NDe=`LoadBalancerAttributes`,PDe=`LoadBalancerName`,FDe=`LoadBalancerNotFoundException`,IDe=`LoadBalancerState`,LDe=`LoadBalancerType`,RDe=`LoadBalancer`,zDe=`ListenerNotFoundException`,BDe=`Listener`,N=`Message`,g2=`MutualAuthentication`,VDe=`MutualAuthenticationAttributes`,HDe=`MessageBody`,UDe=`MitigationInEffect`,WDe=`ModifyListener`,GDe=`ModifyLoadBalancerAttributes`,KDe=`ModifyLoadBalancerAttributesInput`,qDe=`ModifyLoadBalancerAttributesOutput`,JDe=`ModifyListenerInput`,YDe=`ModifyListenerOutput`,XDe=`ModifyRule`,ZDe=`ModifyRuleInput`,QDe=`ModifyRuleOutput`,$De=`ModifyTargetGroupAttributes`,eOe=`ModifyTargetGroupAttributesInput`,tOe=`ModifyTargetGroupAttributesOutput`,_2=`Matcher`,v2=`Marker`,nOe=`Mode`,y2=`Name`,b2=`NextMarker`,x2=`Names`,rOe=`Order`,iOe=`OutpostId`,aOe=`OperationNotPermittedException`,S2=`OnUnauthenticatedRequest`,C2=`Priority`,w2=`PrivateIPv4Address`,oOe=`PriorityInUseException`,sOe=`PathPatternConfig`,cOe=`PathPatternConditionConfig`,lOe=`PriorRequestNotCompleteException`,T2=`PageSize`,E2=`ProtocolVersion`,uOe=`Path`,D2=`Port`,O2=`Protocol`,dOe=`Query`,fOe=`QueryStringConfig`,pOe=`QueryStringConditionConfig`,mOe=`QuicServerId`,hOe=`QueryStringKeyValuePair`,gOe=`QueryStringKeyValuePairList`,k2=`Reason`,A2=`ResourceArns`,_Oe=`RedirectActionConfig`,vOe=`ResourceArn`,j2=`RuleArn`,yOe=`RuleArns`,bOe=`RedirectConfig`,xOe=`RewriteConfigList`,SOe=`RuleConditionList`,COe=`RevocationContentNotFoundException`,wOe=`RewriteConfig`,TOe=`RuleCondition`,EOe=`RevocationIdNotFoundException`,DOe=`ResourceInUseException`,OOe=`ResourceNotFoundException`,kOe=`RuleNotFoundException`,AOe=`RegisterTargetsInput`,jOe=`RemoveTagsInput`,MOe=`RuleTransformList`,NOe=`RegisterTargetsOutput`,POe=`RemoveTagsOutput`,FOe=`ResetTransforms`,IOe=`RegisterTargets`,LOe=`RemoveTags`,ROe=`RuleTransform`,M2=`RegexValues`,zOe=`Result`,BOe=`Regex`,VOe=`Replace`,N2=`Rewrites`,P2=`Rules`,HOe=`Rule`,F2=`State`,I2=`StatusCode`,L2=`SessionCookieName`,R2=`SecurityGroups`,UOe=`SecurityGroupIds`,z2=`SubnetId`,WOe=`SourceIpConfig`,GOe=`SourceIpConditionConfig`,KOe=`SupportedLoadBalancerTypes`,B2=`SubnetMappings`,qOe=`SubnetMapping`,JOe=`SubnetNotFoundException`,YOe=`SourceNatIpv6Prefixes`,XOe=`SourceNatIpv6Prefix`,V2=`SslPolicy`,H2=`SslPolicies`,ZOe=`SslProtocols`,QOe=`SetSubnets`,$Oe=`SetSecurityGroups`,eke=`SetSecurityGroupsInput`,tke=`SetSecurityGroupsOutput`,nke=`SetSubnetsInput`,rke=`SSLPolicyNotFoundException`,ike=`SetSubnetsOutput`,U2=`SessionTimeout`,W2=`Scope`,G2=`Scheme`,K2=`Subnets`,q2=`Type`,J2=`TargetControlPort`,Y2=`TagDescriptions`,ake=`TagDescription`,oke=`TargetDescription`,ske=`TargetDescriptions`,cke=`TokenEndpoint`,X2=`TargetGroups`,Z2=`TargetGroupArn`,lke=`TargetGroupAssociationLimitException`,uke=`TargetGroupArns`,dke=`TargetGroupAttribute`,fke=`TargetGroupAttributes`,pke=`TargetGroupList`,mke=`TargetGroupName`,hke=`TargetGroupNotFoundException`,Q2=`TargetGroupStickinessConfig`,gke=`TargetGroupTuple`,_ke=`TargetGroup`,$2=`TargetHealth`,e4=`TargetHealthDescriptions`,vke=`TargetHealthDescription`,yke=`TagKeys`,bke=`TagList`,xke=`TooManyActionsException`,Ske=`TooManyCertificatesException`,Cke=`TooManyLoadBalancersException`,wke=`TooManyListenersException`,Tke=`TooManyRulesException`,Eke=`TooManyRegistrationsForTargetIdException`,Dke=`TooManyTagsException`,Oke=`TooManyTargetsException`,kke=`TooManyTargetGroupsException`,Ake=`TooManyTrustStoresException`,jke=`TooManyTrustStoreRevocationEntriesException`,Mke=`TooManyUniqueTargetGroupsPerLoadBalancerException`,Nke=`TrustStoreArn`,Pke=`TrustStoreAssociationNotFoundException`,Fke=`TrustStoreAssociationStatus`,Ike=`TrustStoreInUseException`,Lke=`TrustStoreNotFoundException`,Rke=`TrustStoreNotReadyException`,t4=`TargetType`,n4=`Tags`,zke=`Tag`,r4=`Targets`,Bke=`Target`,i4=`Transforms`,Vke=`UseExistingClientSecret`,Hke=`UserInfoEndpoint`,Uke=`UserPoolArn`,Wke=`UserPoolClientId`,Gke=`UserPoolDomain`,Kke=`UnsupportedProtocolException`,a4=`UrlRewriteConfig`,o4=`UnhealthyThresholdCount`,s4=`Values`,c4=`VpcId`,l4=`Value`,qke=`Weight`,Jke=`ZoneName`,P=`awsQueryError`,F=`client`,I=`error`,L=`httpError`,u4=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,d4=`server`,R=`com.amazonaws.elasticloadbalancingv2`,f4=dt.for(u4),Yke=[-3,u4,`ElasticLoadBalancingV2ServiceException`,0,[],[]];f4.registerError(Yke,M);var z=dt.for(R),Xke=[-3,R,mTe,{[P]:[`AllocationIdNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(Xke,ywe);var Zke=[-3,R,hTe,{[P]:[`ALPNPolicyNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(Zke,bwe);var Qke=[-3,R,STe,{[P]:[`AvailabilityZoneNotSupported`,400],[I]:F,[L]:400},[N],[0]];z.registerError(Qke,xwe);var $ke=[-3,R,wTe,{[P]:[`CaCertificatesBundleNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError($ke,Swe);var eAe=[-3,R,TTe,{[P]:[`CapacityDecreaseRequestLimitExceeded`,400],[I]:F,[L]:400},[N],[0]];z.registerError(eAe,Cwe);var tAe=[-3,R,zTe,{[P]:[`CapacityReservationPending`,400],[I]:F,[L]:400},[N],[0]];z.registerError(tAe,wwe);var nAe=[-3,R,KTe,{[P]:[`CapacityUnitsLimitExceeded`,400],[I]:F,[L]:400},[N],[0]];z.registerError(nAe,Twe);var rAe=[-3,R,FTe,{[P]:[`CertificateNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(rAe,swe);var iAe=[-3,R,XTe,{[P]:[`DeleteAssociationSameAccount`,400],[I]:F,[L]:400},[N],[0]];z.registerError(iAe,eTe);var aAe=[-3,R,cEe,{[P]:[`DuplicateListener`,400],[I]:F,[L]:400},[N],[0]];z.registerError(aAe,Ewe);var oAe=[-3,R,iEe,{[P]:[`DuplicateLoadBalancerName`,400],[I]:F,[L]:400},[N],[0]];z.registerError(oAe,zwe);var sAe=[-3,R,VEe,{[P]:[`DuplicateTagKeys`,400],[I]:F,[L]:400},[N],[0]];z.registerError(sAe,uwe);var cAe=[-3,R,MEe,{[P]:[`DuplicateTargetGroupName`,400],[I]:F,[L]:400},[N],[0]];z.registerError(cAe,Xwe);var lAe=[-3,R,WEe,{[P]:[`DuplicateTrustStoreName`,400],[I]:F,[L]:400},[N],[0]];z.registerError(lAe,Zwe);var uAe=[-3,R,lDe,{[P]:[`HealthUnavailable`,500],[I]:d4,[L]:500},[N],[0]];z.registerError(uAe,iTe);var dAe=[-3,R,_De,{[P]:[`IncompatibleProtocols`,400],[I]:F,[L]:400},[N],[0]];z.registerError(dAe,Dwe);var fAe=[-3,R,pDe,{[P]:[`InsufficientCapacity`,500],[I]:d4,[L]:500},[N],[0]];z.registerError(fAe,sTe);var pAe=[-3,R,dDe,{[P]:[`InvalidCaCertificatesBundle`,400],[I]:F,[L]:400},[N],[0]];z.registerError(pAe,Qwe);var mAe=[-3,R,mDe,{[P]:[`InvalidConfigurationRequest`,400],[I]:F,[L]:400},[N],[0]];z.registerError(mAe,Owe);var hAe=[-3,R,gDe,{[P]:[`InvalidLoadBalancerAction`,400],[I]:F,[L]:400},[N],[0]];z.registerError(hAe,kwe);var gAe=[-3,R,vDe,{[P]:[`InvalidRevocationContent`,400],[I]:F,[L]:400},[N],[0]];z.registerError(gAe,gwe);var _Ae=[-3,R,yDe,{[P]:[`InvalidScheme`,400],[I]:F,[L]:400},[N],[0]];z.registerError(_Ae,Bwe);var vAe=[-3,R,xDe,{[P]:[`InvalidSecurityGroup`,400],[I]:F,[L]:400},[N],[0]];z.registerError(vAe,Vwe);var yAe=[-3,R,bDe,{[P]:[`InvalidSubnet`,400],[I]:F,[L]:400},[N],[0]];z.registerError(yAe,Hwe);var bAe=[-3,R,SDe,{[P]:[`InvalidTarget`,400],[I]:F,[L]:400},[N],[0]];z.registerError(bAe,rTe);var xAe=[-3,R,zDe,{[P]:[`ListenerNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(xAe,cwe);var SAe=[-3,R,FDe,{[P]:[`LoadBalancerNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(SAe,dwe);var CAe=[-3,R,aOe,{[P]:[`OperationNotPermitted`,400],[I]:F,[L]:400},[N],[0]];z.registerError(CAe,Uwe);var wAe=[-3,R,oOe,{[P]:[`PriorityInUse`,400],[I]:F,[L]:400},[N],[0]];z.registerError(wAe,qwe);var TAe=[-3,R,lOe,{[P]:[`PriorRequestNotComplete`,429],[I]:F,[L]:429},[N],[0]];z.registerError(TAe,cTe);var EAe=[-3,R,DOe,{[P]:[`ResourceInUse`,400],[I]:F,[L]:400},[N],[0]];z.registerError(EAe,Wwe);var DAe=[-3,R,OOe,{[P]:[`ResourceNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(DAe,oTe);var OAe=[-3,R,COe,{[P]:[`RevocationContentNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(OAe,_we);var kAe=[-3,R,EOe,{[P]:[`RevocationIdNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(kAe,aTe);var AAe=[-3,R,kOe,{[P]:[`RuleNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(AAe,fwe);var jAe=[-3,R,rke,{[P]:[`SSLPolicyNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(jAe,Awe);var MAe=[-3,R,JOe,{[P]:[`SubnetNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(MAe,Gwe);var NAe=[-3,R,lke,{[P]:[`TargetGroupAssociationLimit`,400],[I]:F,[L]:400},[N],[0]];z.registerError(NAe,jwe);var PAe=[-3,R,hke,{[P]:[`TargetGroupNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(PAe,pwe);var FAe=[-3,R,xke,{[P]:[`TooManyActions`,400],[I]:F,[L]:400},[N],[0]];z.registerError(FAe,Mwe);var IAe=[-3,R,Ske,{[P]:[`TooManyCertificates`,400],[I]:F,[L]:400},[N],[0]];z.registerError(IAe,lwe);var LAe=[-3,R,wke,{[P]:[`TooManyListeners`,400],[I]:F,[L]:400},[N],[0]];z.registerError(LAe,Nwe);var RAe=[-3,R,Cke,{[P]:[`TooManyLoadBalancers`,400],[I]:F,[L]:400},[N],[0]];z.registerError(RAe,Kwe);var zAe=[-3,R,Eke,{[P]:[`TooManyRegistrationsForTargetId`,400],[I]:F,[L]:400},[N],[0]];z.registerError(zAe,Pwe);var BAe=[-3,R,Tke,{[P]:[`TooManyRules`,400],[I]:F,[L]:400},[N],[0]];z.registerError(BAe,Jwe);var VAe=[-3,R,Dke,{[P]:[`TooManyTags`,400],[I]:F,[L]:400},[N],[0]];z.registerError(VAe,mwe);var HAe=[-3,R,kke,{[P]:[`TooManyTargetGroups`,400],[I]:F,[L]:400},[N],[0]];z.registerError(HAe,Ywe);var UAe=[-3,R,Oke,{[P]:[`TooManyTargets`,400],[I]:F,[L]:400},[N],[0]];z.registerError(UAe,Fwe);var WAe=[-3,R,jke,{[P]:[`TooManyTrustStoreRevocationEntries`,400],[I]:F,[L]:400},[N],[0]];z.registerError(WAe,vwe);var GAe=[-3,R,Ake,{[P]:[`TooManyTrustStores`,400],[I]:F,[L]:400},[N],[0]];z.registerError(GAe,$we);var KAe=[-3,R,Mke,{[P]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[I]:F,[L]:400},[N],[0]];z.registerError(KAe,Iwe);var qAe=[-3,R,Pke,{[P]:[`AssociationNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(qAe,tTe);var JAe=[-3,R,Ike,{[P]:[`TrustStoreInUse`,400],[I]:F,[L]:400},[N],[0]];z.registerError(JAe,nTe);var YAe=[-3,R,Lke,{[P]:[`TrustStoreNotFound`,400],[I]:F,[L]:400},[N],[0]];z.registerError(YAe,hwe);var XAe=[-3,R,Rke,{[P]:[`TrustStoreNotReady`,400],[I]:F,[L]:400},[N],[0]];z.registerError(XAe,Lwe);var ZAe=[-3,R,Kke,{[P]:[`UnsupportedProtocol`,400],[I]:F,[L]:400},[N],[0]];z.registerError(ZAe,Rwe);var QAe=[f4,z],$Ae=[3,R,lTe,0,[q2,Z2,_Te,fTe,rOe,bOe,ZEe,YEe,kDe],[0,0,()=>aje,()=>ije,1,()=>hMe,()=>Gje,()=>Kje,()=>Qje],1],eje=[3,R,yTe,0,[A2,n4],[64,()=>O4],2],tje=[3,R,bTe,0,[],[]],nje=[3,R,F0,0,[F2,k2,K0],[0,0,0]],rje=[3,R,N0,0,[zOe,UDe],[0,0]],ije=[3,R,dTe,0,[Uke,Wke,Gke,L2,W2,U2,L0,S2],[0,0,0,0,0,1,128,0],3],aje=[3,R,gTe,0,[i2,pTe,cke,Hke,DTe,BTe,L2,W2,U2,L0,S2,Vke],[0,0,0,0,0,0,0,0,1,128,0,2],5],oje=[3,R,R0,0,[Jke,z2,iOe,p2,YOe],[0,0,0,()=>HMe,64]],sje=[3,R,qTe,0,[CTe,o2],[0,2]],cje=[3,R,JTe,0,[y2,C2],[0,1]],lje=[3,R,MTe,0,[m2,q0,O2,D2,V2,H0,I0,n4,g2],[0,()=>_4,0,1,0,()=>y4,64,()=>O4,()=>h4],2],uje=[3,R,NTe,0,[u2],[()=>b4]],dje=[3,R,ATe,0,[y2,K2,B2,R2,G2,n4,q2,a2,U0,J0,s2],[0,64,()=>D4,64,0,()=>O4,0,0,0,0,()=>p4],1],fje=[3,R,jTe,0,[f2],[()=>S4]],pje=[3,R,LTe,0,[d2,G0,C2,B0,n4,i4],[0,()=>w4,1,()=>_4,()=>O4,()=>E4],4],mje=[3,R,RTe,0,[P2],[()=>T4]],hje=[3,R,UTe,0,[y2,O2,E2,D2,c4,Q0,$0,X0,e2,Z0,t2,r2,o4,_2,t4,n4,a2,J2],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>m4,0,()=>O4,0,1],1],gje=[3,R,WTe,0,[X2],[()=>j4]],_je=[3,R,lEe,0,[d2],[0],1],vje=[3,R,dEe,0,[],[]],yje=[3,R,nEe,0,[m2],[0],1],bje=[3,R,aEe,0,[],[]],xje=[3,R,gEe,0,[j2],[0],1],Sje=[3,R,vEe,0,[],[]],Cje=[3,R,AEe,0,[Z2],[0],1],wje=[3,R,NEe,0,[],[]],Tje=[3,R,zEe,0,[Z2,r4],[0,()=>k4],2],Eje=[3,R,HEe,0,[],[]],Dje=[3,R,uEe,0,[m2,ADe,v2,T2],[0,64,0,1]],Oje=[3,R,fEe,0,[u2,b2],[()=>b4,0]],kje=[3,R,eEe,0,[m2],[0],1],Aje=[3,R,tEe,0,[V0],[()=>x4]],jje=[3,R,rEe,0,[h2,x2,v2,T2],[64,64,0,1]],Mje=[3,R,oEe,0,[f2,b2],[()=>S4,0]],Nje=[3,R,_Ee,0,[d2,yOe,v2,T2],[0,64,0,1]],Pje=[3,R,yEe,0,[P2,b2],[()=>T4,0]],Fje=[3,R,CEe,0,[x2,v2,T2,LDe],[64,0,1,0]],Ije=[3,R,wEe,0,[H2,b2],[()=>WMe,0]],Lje=[3,R,BEe,0,[A2],[64],1],Rje=[3,R,UEe,0,[Y2],[()=>GMe]],zje=[3,R,OEe,0,[Z2],[0],1],Bje=[3,R,kEe,0,[V0],[()=>A4]],Vje=[3,R,jEe,0,[m2,uke,x2,v2,T2],[0,64,64,0,1]],Hje=[3,R,PEe,0,[X2,b2],[()=>j4,0]],Uje=[3,R,LEe,0,[Z2,r4,wDe],[0,()=>k4,64],1],Wje=[3,R,REe,0,[e4],[()=>qMe]],Gje=[3,R,XEe,0,[I2,HDe,VTe],[0,0,0],1],Kje=[3,R,JEe,0,[X2,Q2],[()=>KMe,()=>FMe]],qje=[3,R,rDe,0,[s4,M2],[64,64]],Jje=[3,R,n2,0,[N2],[()=>C4]],Yje=[3,R,iDe,0,[oDe,s4,M2],[0,64,64]],Xje=[3,R,cDe,0,[s4],[64]],p4=[3,R,s2,0,[hDe],[0]],Zje=[3,R,EDe,0,[qEe,y2,s4],[0,0,64],3],Qje=[3,R,ODe,0,[TDe,i2,uTe],[0,0,()=>VMe],2],$je=[3,R,BDe,0,[d2,m2,D2,O2,H0,V2,q0,I0,g2],[0,0,1,0,()=>y4,0,()=>_4,64,()=>h4]],eMe=[3,R,RDe,0,[m2,mEe,ETe,GTe,PDe,G2,c4,F2,q2,z0,R2,a2,U0,Y0,J0,s2],[0,0,0,4,0,0,0,()=>rMe,0,()=>v4,64,0,0,0,0,()=>p4]],tMe=[3,R,jDe,0,[uDe,P0,w2,c2],[0,0,0,0]],nMe=[3,R,MDe,0,[l2,l4],[0,0]],rMe=[3,R,IDe,0,[YTe,k2],[0,0]],m4=[3,R,_2,0,[tDe,$Ee],[0,0]],iMe=[3,R,JDe,0,[d2,D2,O2,V2,H0,q0,I0,g2],[0,1,0,0,()=>y4,()=>_4,64,()=>h4],1],aMe=[3,R,YDe,0,[u2],[()=>b4]],oMe=[3,R,KDe,0,[m2,V0],[0,()=>x4],2],sMe=[3,R,qDe,0,[V0],[()=>x4]],cMe=[3,R,ZDe,0,[j2,G0,B0,i4,FOe],[0,()=>w4,()=>_4,()=>E4,2],1],lMe=[3,R,QDe,0,[P2],[()=>T4]],uMe=[3,R,eOe,0,[Z2,V0],[0,()=>A4],2],dMe=[3,R,tOe,0,[V0],[()=>A4]],h4=[3,R,VDe,0,[nOe,Nke,fDe,Fke,xTe],[0,0,2,0,0]],fMe=[3,R,cOe,0,[s4,M2],[64,64]],pMe=[3,R,pOe,0,[s4],[()=>UMe]],mMe=[3,R,hOe,0,[l2,l4],[0,0]],hMe=[3,R,_Oe,0,[I2,O2,D2,eDe,uOe,dOe],[0,0,0,0,0,0],1],gMe=[3,R,AOe,0,[Z2,r4],[0,()=>k4],2],_Me=[3,R,NOe,0,[],[]],vMe=[3,R,jOe,0,[A2,yke],[64,64],2],yMe=[3,R,POe,0,[],[]],bMe=[3,R,wOe,0,[BOe,VOe],[0,0],2],xMe=[3,R,HOe,0,[j2,C2,G0,B0,o2,i4],[0,0,()=>w4,()=>_4,2,()=>E4]],SMe=[3,R,TOe,0,[QEe,s4,nDe,sOe,aDe,fOe,sDe,WOe,M2],[0,64,()=>qje,()=>fMe,()=>Yje,()=>pMe,()=>Xje,()=>OMe,64]],CMe=[3,R,ROe,0,[q2,n2,a4],[0,()=>Jje,()=>zMe],1],wMe=[3,R,eke,0,[m2,R2,Y0],[0,64,0],2],TMe=[3,R,tke,0,[UOe,Y0],[64,0]],EMe=[3,R,nke,0,[m2,K2,B2,a2,J0],[0,64,()=>D4,0,0],1],DMe=[3,R,ike,0,[z0,a2,J0],[()=>v4,0,0]],OMe=[3,R,GOe,0,[s4],[64]],kMe=[3,R,V2,0,[ZOe,W0,y2,KOe],[64,()=>BMe,0,64]],AMe=[3,R,qOe,0,[z2,P0,w2,c2,XOe],[0,0,0,0,0]],jMe=[3,R,zke,0,[l2,l4],[0,0],1],MMe=[3,R,ake,0,[vOe,n4],[0,()=>O4]],g4=[3,R,oke,0,[CDe,D2,R0,mOe],[0,1,0,0],1],NMe=[3,R,_ke,0,[Z2,mke,O2,D2,c4,Q0,$0,X0,Z0,t2,r2,o4,e2,_2,h2,t4,E2,a2,J2],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>m4,64,0,0,0,1]],PMe=[3,R,dke,0,[l2,l4],[0,0]],FMe=[3,R,Q2,0,[KEe,xEe],[2,1]],IMe=[3,R,gke,0,[Z2,qke],[0,1]],LMe=[3,R,$2,0,[F2,k2,K0],[0,0,0]],RMe=[3,R,vke,0,[Bke,$0,$2,N0,F0],[()=>g4,0,()=>LMe,()=>rje,()=>nje]],zMe=[3,R,a4,0,[N2],[()=>C4]],_4=[1,R,B0,0,()=>$Ae],v4=[1,R,z0,0,()=>oje],y4=[1,R,OTe,0,()=>sje],BMe=[1,R,W0,0,()=>cje],VMe=[1,R,DDe,0,()=>Zje],b4=[1,R,u2,0,()=>$je],HMe=[1,R,p2,0,()=>tMe],x4=[1,R,NDe,0,()=>nMe],S4=[1,R,f2,0,()=>eMe],UMe=[1,R,gOe,0,()=>mMe],C4=[1,R,xOe,0,()=>bMe],w4=[1,R,SOe,0,()=>SMe],T4=[1,R,P2,0,()=>xMe],E4=[1,R,MOe,0,()=>CMe],WMe=[1,R,H2,0,()=>kMe],D4=[1,R,B2,0,()=>AMe],GMe=[1,R,Y2,0,()=>MMe],O4=[1,R,bke,0,()=>jMe],k4=[1,R,ske,0,()=>g4],A4=[1,R,fke,0,()=>PMe],KMe=[1,R,pke,0,()=>IMe],j4=[1,R,X2,0,()=>NMe],qMe=[1,R,e4,0,()=>RMe],JMe=[9,R,vTe,0,()=>eje,()=>tje],YMe=[9,R,PTe,0,()=>lje,()=>uje],XMe=[9,R,kTe,0,()=>dje,()=>fje],ZMe=[9,R,ITe,0,()=>pje,()=>mje],QMe=[9,R,HTe,0,()=>hje,()=>gje],$Me=[9,R,ZTe,0,()=>_je,()=>vje],eNe=[9,R,QTe,0,()=>yje,()=>bje],tNe=[9,R,hEe,0,()=>xje,()=>Sje],nNe=[9,R,EEe,0,()=>Cje,()=>wje],rNe=[9,R,TEe,0,()=>Tje,()=>Eje],iNe=[9,R,pEe,0,()=>Dje,()=>Oje],aNe=[9,R,$Te,0,()=>kje,()=>Aje],oNe=[9,R,sEe,0,()=>jje,()=>Mje],sNe=[9,R,bEe,0,()=>Nje,()=>Pje],cNe=[9,R,SEe,0,()=>Fje,()=>Ije],lNe=[9,R,GEe,0,()=>Lje,()=>Rje],uNe=[9,R,DEe,0,()=>zje,()=>Bje],dNe=[9,R,FEe,0,()=>Vje,()=>Hje],fNe=[9,R,IEe,0,()=>Uje,()=>Wje],pNe=[9,R,WDe,0,()=>iMe,()=>aMe],mNe=[9,R,GDe,0,()=>oMe,()=>sMe],hNe=[9,R,XDe,0,()=>cMe,()=>lMe],gNe=[9,R,$De,0,()=>uMe,()=>dMe],_Ne=[9,R,IOe,0,()=>gMe,()=>_Me],vNe=[9,R,LOe,0,()=>vMe,()=>yMe],yNe=[9,R,$Oe,0,()=>wMe,()=>TMe],bNe=[9,R,QOe,0,()=>EMe,()=>DMe],xNe=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??owe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ZCe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Fe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:QAe,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),SNe=e=>{let t=Je(e),n=()=>t().then(ft),r=xNe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:twe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},CNe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wNe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),TNe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),CNe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),wNe(n))},ENe=class extends fe{config;constructor(...[e]){let t=SNe(e||{});super(t),this.initConfig=t;let n=TNe(QCe(Qe(Me(be(rt(ge($Ce(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:YCe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},DNe=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ONe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var kNe=e=>{let t=[];switch(e.operation){default:t.push(ONe(e))}return t},ANe=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},jNe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),MNe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},NNe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},M4=`ref`,N4=`authSchemes`,P4=`name`,F4=`signingRegion`,I4=-1,L4=!0,R4=`isSet`,z4=`PartitionResult`,B4=`booleanEquals`,V4=`stringEquals`,H4=`getAttr`,U4=`sigv4`,W4={[M4]:`Endpoint`},G4={fn:H4,argv:[{[M4]:z4},`name`]},K4={[M4]:z4},q4={[N4]:[{[P4]:U4,[F4]:`us-east-1`}]},J4={[N4]:[{[P4]:U4,[F4]:`cn-north-1`}]},Y4={[N4]:[{[P4]:U4,[F4]:`us-gov-west-1`}]},X4={[N4]:[{[P4]:U4,[F4]:`us-iso-east-1`}]},Z4={[N4]:[{[P4]:U4,[F4]:`us-isob-east-1`}]},Q4={[N4]:[{[P4]:U4,[F4]:`{PartitionResult#implicitGlobalRegion}`}]},$4=[{[M4]:`Region`}],e3={conditions:[[R4,[W4]],[R4,$4],[`aws.partition`,$4,z4],[B4,[{[M4]:`UseFIPS`},L4]],[B4,[{[M4]:`UseDualStack`},L4]],[V4,[G4,`aws`]],[V4,[G4,`aws-cn`]],[V4,[G4,`aws-us-gov`]],[B4,[{fn:H4,argv:[K4,`supportsDualStack`]},L4]],[V4,[G4,`aws-iso`]],[V4,[G4,`aws-iso-b`]],[B4,[{fn:H4,argv:[K4,`supportsFIPS`]},L4]],[V4,[G4,`aws-iso-e`]],[V4,[G4,`aws-iso-f`]],[V4,[G4,`aws-eusc`]]],results:[[I4],[I4,`Invalid Configuration: FIPS and custom endpoint are not supported`],[I4,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[W4,{}],[`https://iam.global.api.aws`,q4],[`https://iam-fips.global.api.aws`,q4],[`https://iam.global.api.amazonwebservices.com.cn`,J4],[`https://iam.cn-north-1.amazonaws.com.cn`,J4],[`https://iam.us-gov.api.aws`,Y4],[`https://iam.us-gov.amazonaws.com`,Y4],[`https://iam.us-iso-east-1.c2s.ic.gov`,X4],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,X4],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,Z4],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,Z4],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[N4]:[{[P4]:U4,[F4]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[N4]:[{[P4]:U4,[F4]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[N4]:[{[P4]:U4,[F4]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,Q4],[I4,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,Q4],[I4,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,Q4],[I4,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,Q4],[I4,`Invalid Configuration: Missing Region`]]},PNe=2,FNe=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),INe=nt.from(FNe,PNe,e3.conditions,e3.results),LNe=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),RNe=(e,t={})=>LNe.get(e,()=>at(INe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var B=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},zNe=class e extends B{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},BNe=class e extends B{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VNe=class e extends B{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},HNe=class e extends B{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UNe=class e extends B{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},WNe=class e extends B{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GNe=class e extends B{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KNe=class e extends B{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qNe=class e extends B{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JNe=class e extends B{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YNe=class e extends B{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XNe=class e extends B{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZNe=class e extends B{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QNe=class e extends B{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$Ne=class e extends B{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ePe=class e extends B{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tPe=class e extends B{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nPe=class e extends B{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rPe=class e extends B{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iPe=class e extends B{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aPe=class e extends B{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oPe=class e extends B{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sPe=class e extends B{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cPe=class e extends B{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lPe=class e extends B{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uPe=class e extends B{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dPe=class e extends B{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fPe=class e extends B{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pPe=class e extends B{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},mPe=class e extends B{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hPe=class e extends B{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gPe=class e extends B{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_Pe=class e extends B{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vPe=class e extends B{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yPe=class e extends B{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},t3=`Arn`,bPe=`AttachmentCount`,xPe=`AttachGroupPolicy`,SPe=`AttachGroupPolicyRequest`,n3=`AccessKey`,r3=`AccessKeyId`,i3=`AccessKeyMetadata`,CPe=`AccountNotManagementOrDelegatedAdministratorException`,wPe=`AttachedPolicy`,TPe=`AttachedPermissionsBoundary`,a3=`AttachedPolicies`,EPe=`AttachRolePolicy`,o3=`AssumeRolePolicyDocument`,DPe=`AttachRolePolicyRequest`,OPe=`AddRoleToInstanceProfile`,kPe=`AddRoleToInstanceProfileRequest`,APe=`AttachUserPolicy`,jPe=`AttachUserPolicyRequest`,MPe=`AddUserToGroup`,NPe=`AddUserToGroupRequest`,PPe=`CreateAccessKey`,FPe=`CreateAccessKeyRequest`,IPe=`CreateAccessKeyResponse`,s3=`CreateDate`,LPe=`CreateGroup`,RPe=`CreateGroupRequest`,zPe=`CreateGroupResponse`,BPe=`CallerIsNotManagementAccountException`,VPe=`CreateInstanceProfile`,HPe=`CreateInstanceProfileRequest`,UPe=`CreateInstanceProfileResponse`,WPe=`ConcurrentModificationException`,GPe=`CreatePolicyRequest`,KPe=`CreatePolicyResponse`,qPe=`CreatePolicy`,JPe=`CreateRole`,YPe=`CredentialReportExpiredException`,XPe=`CredentialReportNotPresentException`,ZPe=`CredentialReportNotReadyException`,QPe=`CreateRoleRequest`,$Pe=`CreateRoleResponse`,eFe=`CreateUser`,tFe=`CreateUserRequest`,nFe=`CreateUserResponse`,c3=`Description`,rFe=`DeleteAccessKey`,iFe=`DeleteAccessKeyRequest`,aFe=`DeleteConflictException`,oFe=`DuplicateCertificateException`,sFe=`DeleteGroup`,cFe=`DetachGroupPolicyRequest`,lFe=`DetachGroupPolicy`,uFe=`DeleteGroupRequest`,dFe=`DeleteInstanceProfile`,fFe=`DeleteInstanceProfileRequest`,pFe=`DeletePolicyRequest`,mFe=`DeletePolicy`,hFe=`DetachRolePolicyRequest`,gFe=`DetachRolePolicy`,_Fe=`DeleteRoleRequest`,vFe=`DeleteRole`,yFe=`DuplicateSSHPublicKeyException`,bFe=`DeleteUser`,xFe=`DetachUserPolicyRequest`,SFe=`DetachUserPolicy`,CFe=`DeleteUserRequest`,wFe=`DefaultVersionId`,TFe=`Document`,EFe=`EntityAlreadyExistsException`,DFe=`EntityTemporarilyUnmodifiableException`,OFe=`FeatureDisabledException`,kFe=`FeatureEnabledException`,l3=`Group`,AFe=`GetGroup`,jFe=`GetGroupRequest`,MFe=`GetGroupResponse`,NFe=`GroupId`,PFe=`GetInstanceProfile`,FFe=`GetInstanceProfileRequest`,IFe=`GetInstanceProfileResponse`,u3=`GroupName`,LFe=`GetPolicy`,RFe=`GetPolicyRequest`,zFe=`GetPolicyResponse`,BFe=`GetPolicyVersion`,VFe=`GetPolicyVersionRequest`,HFe=`GetPolicyVersionResponse`,UFe=`GetRole`,WFe=`GetRoleRequest`,GFe=`GetRoleResponse`,KFe=`GetUser`,qFe=`GetUserRequest`,JFe=`GetUserResponse`,d3=`Groups`,YFe=`IsAttachable`,XFe=`InvalidAuthenticationCodeException`,ZFe=`InvalidCertificateException`,QFe=`IsDefaultVersion`,$Fe=`InvalidInputException`,f3=`InstanceProfile`,eIe=`InstanceProfileId`,tIe=`InvalidPublicKeyException`,p3=`InstanceProfileName`,m3=`InstanceProfiles`,h3=`IsTruncated`,nIe=`InvalidUserTypeException`,rIe=`Key`,iIe=`KeyPairMismatchException`,aIe=`ListAttachedGroupPolicies`,oIe=`ListAttachedGroupPoliciesRequest`,sIe=`ListAttachedGroupPoliciesResponse`,cIe=`ListAccessKeys`,lIe=`ListAccessKeysRequest`,uIe=`ListAccessKeysResponse`,dIe=`ListAttachedRolePolicies`,fIe=`ListAttachedRolePoliciesRequest`,pIe=`ListAttachedRolePoliciesResponse`,mIe=`ListAttachedUserPolicies`,hIe=`ListAttachedUserPoliciesRequest`,gIe=`ListAttachedUserPoliciesResponse`,_Ie=`LimitExceededException`,vIe=`ListGroups`,yIe=`ListGroupsForUser`,bIe=`ListGroupsForUserRequest`,xIe=`ListGroupsForUserResponse`,SIe=`ListGroupsRequest`,CIe=`ListGroupsResponse`,wIe=`ListInstanceProfiles`,TIe=`ListInstanceProfilesForRole`,EIe=`ListInstanceProfilesForRoleRequest`,DIe=`ListInstanceProfilesForRoleResponse`,OIe=`ListInstanceProfilesRequest`,kIe=`ListInstanceProfilesResponse`,AIe=`ListPoliciesRequest`,jIe=`ListPoliciesResponse`,MIe=`ListPolicies`,NIe=`ListRoles`,PIe=`ListRolesRequest`,FIe=`ListRolesResponse`,IIe=`ListUsers`,LIe=`LastUsedDate`,RIe=`ListUsersRequest`,zIe=`ListUsersResponse`,g3=`Message`,BIe=`MalformedCertificateException`,_3=`MaxItems`,VIe=`MalformedPolicyDocumentException`,v3=`MaxSessionDuration`,y3=`Marker`,HIe=`NoSuchEntityException`,UIe=`OnlyAttached`,WIe=`OpenIdIdpCommunicationErrorException`,GIe=`OrganizationNotFoundException`,KIe=`OrganizationNotInAllFeaturesModeException`,b3=`PolicyArn`,x3=`PermissionsBoundary`,qIe=`PermissionsBoundaryArn`,JIe=`PermissionsBoundaryType`,YIe=`PermissionsBoundaryUsageCount`,XIe=`PolicyDocument`,ZIe=`PolicyEvaluationException`,QIe=`PolicyId`,$Ie=`PasswordLastUsed`,S3=`PolicyName`,eLe=`PolicyNotAttachableException`,tLe=`PasswordPolicyViolationException`,C3=`PathPrefix`,nLe=`PolicyUsageFilter`,w3=`PolicyVersion`,T3=`Path`,E3=`Policy`,rLe=`Policies`,iLe=`Region`,aLe=`ReportGenerationLimitExceededException`,oLe=`RoleId`,D3=`RoleLastUsed`,O3=`RoleName`,sLe=`RemoveRoleFromInstanceProfile`,cLe=`RemoveRoleFromInstanceProfileRequest`,lLe=`RemoveUserFromGroup`,uLe=`RemoveUserFromGroupRequest`,k3=`Role`,A3=`Roles`,j3=`Status`,dLe=`SecretAccessKey`,fLe=`ServiceAccessNotEnabledException`,pLe=`ServiceFailureException`,mLe=`ServiceNotSupportedException`,hLe=`Scope`,M3=`Tags`,gLe=`Tag`,_Le=`UpdateAccessKey`,vLe=`UpdateAccessKeyRequest`,yLe=`UpdateDate`,bLe=`UnmodifiableEntityException`,xLe=`UserId`,N3=`UserName`,SLe=`UnrecognizedPublicKeyEncodingException`,P3=`User`,F3=`Users`,I3=`VersionId`,CLe=`Value`,wLe=`accessKeyMetadataListType`,TLe=`accessKeySecretType`,ELe=`attachedPoliciesListType`,V=`awsQueryError`,H=`client`,U=`error`,DLe=`groupListType`,W=`httpError`,OLe=`instanceProfileListType`,G=`message`,kLe=`policyListType`,ALe=`roleListType`,L3=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,R3=`server`,jLe=`tagListType`,MLe=`userListType`,K=`com.amazonaws.iam`,z3=dt.for(L3),NLe=[-3,L3,`IAMServiceException`,0,[],[]];z3.registerError(NLe,B);var q=dt.for(K),PLe=[-3,K,CPe,{[U]:H,[W]:400},[g3],[0]];q.registerError(PLe,HNe);var FLe=[-3,K,BPe,{[U]:H,[W]:400},[g3],[0]];q.registerError(FLe,oPe);var ILe=[-3,K,WPe,{[V]:[`ConcurrentModification`,409],[U]:H,[W]:409},[G],[0]];q.registerError(ILe,zNe);var LLe=[-3,K,YPe,{[V]:[`ReportExpired`,410],[U]:H,[W]:410},[G],[0]];q.registerError(LLe,lPe);var RLe=[-3,K,XPe,{[V]:[`ReportNotPresent`,410],[U]:H,[W]:410},[G],[0]];q.registerError(RLe,uPe);var zLe=[-3,K,ZPe,{[V]:[`ReportInProgress`,404],[U]:H,[W]:404},[G],[0]];q.registerError(zLe,dPe);var BLe=[-3,K,aFe,{[V]:[`DeleteConflict`,409],[U]:H,[W]:409},[G],[0]];q.registerError(BLe,ePe);var VLe=[-3,K,oFe,{[V]:[`DuplicateCertificate`,409],[U]:H,[W]:409},[G],[0]];q.registerError(VLe,gPe);var HLe=[-3,K,yFe,{[V]:[`DuplicateSSHPublicKey`,400],[U]:H,[W]:400},[G],[0]];q.registerError(HLe,vPe);var ULe=[-3,K,EFe,{[V]:[`EntityAlreadyExists`,409],[U]:H,[W]:409},[G],[0]];q.registerError(ULe,GNe);var WLe=[-3,K,DFe,{[V]:[`EntityTemporarilyUnmodifiable`,409],[U]:H,[W]:409},[G],[0]];q.registerError(WLe,JNe);var GLe=[-3,K,OFe,{[V]:[`FeatureDisabled`,404],[U]:H,[W]:404},[G],[0]];q.registerError(GLe,iPe);var KLe=[-3,K,kFe,{[V]:[`FeatureEnabled`,409],[U]:H,[W]:409},[G],[0]];q.registerError(KLe,sPe);var qLe=[-3,K,XFe,{[V]:[`InvalidAuthenticationCode`,403],[U]:H,[W]:403},[G],[0]];q.registerError(qLe,aPe);var JLe=[-3,K,ZFe,{[V]:[`InvalidCertificate`,400],[U]:H,[W]:400},[G],[0]];q.registerError(JLe,_Pe);var YLe=[-3,K,$Fe,{[V]:[`InvalidInput`,400],[U]:H,[W]:400},[G],[0]];q.registerError(YLe,UNe);var XLe=[-3,K,tIe,{[V]:[`InvalidPublicKey`,400],[U]:H,[W]:400},[G],[0]];q.registerError(XLe,yPe);var ZLe=[-3,K,nIe,{[V]:[`InvalidUserType`,400],[U]:H,[W]:400},[G],[0]];q.registerError(ZLe,YNe);var QLe=[-3,K,iIe,{[V]:[`KeyPairMismatch`,400],[U]:H,[W]:400},[G],[0]];q.registerError(QLe,mPe);var $Le=[-3,K,_Ie,{[V]:[`LimitExceeded`,409],[U]:H,[W]:409},[G],[0]];q.registerError($Le,WNe);var eRe=[-3,K,BIe,{[V]:[`MalformedCertificate`,400],[U]:H,[W]:400},[G],[0]];q.registerError(eRe,hPe);var tRe=[-3,K,VIe,{[V]:[`MalformedPolicyDocument`,400],[U]:H,[W]:400},[G],[0]];q.registerError(tRe,QNe);var nRe=[-3,K,HIe,{[V]:[`NoSuchEntity`,404],[U]:H,[W]:404},[G],[0]];q.registerError(nRe,BNe);var rRe=[-3,K,WIe,{[V]:[`OpenIdIdpCommunicationError`,400],[U]:H,[W]:400},[G],[0]];q.registerError(rRe,ZNe);var iRe=[-3,K,GIe,{[U]:H,[W]:400},[g3],[0]];q.registerError(iRe,tPe);var aRe=[-3,K,KIe,{[U]:H,[W]:400},[g3],[0]];q.registerError(aRe,nPe);var oRe=[-3,K,tLe,{[V]:[`PasswordPolicyViolation`,400],[U]:H,[W]:400},[G],[0]];q.registerError(oRe,XNe);var sRe=[-3,K,ZIe,{[V]:[`PolicyEvaluation`,500],[U]:R3,[W]:500},[G],[0]];q.registerError(sRe,pPe);var cRe=[-3,K,eLe,{[V]:[`PolicyNotAttachable`,400],[U]:H,[W]:400},[G],[0]];q.registerError(cRe,qNe);var lRe=[-3,K,aLe,{[V]:[`ReportGenerationLimitExceeded`,409],[U]:H,[W]:409},[G],[0]];q.registerError(lRe,cPe);var uRe=[-3,K,fLe,{[U]:H,[W]:400},[g3],[0]];q.registerError(uRe,rPe);var dRe=[-3,K,pLe,{[V]:[`ServiceFailure`,500],[U]:R3,[W]:500},[G],[0]];q.registerError(dRe,VNe);var fRe=[-3,K,mLe,{[V]:[`NotSupportedService`,404],[U]:H,[W]:404},[G],[0]];q.registerError(fRe,$Ne);var pRe=[-3,K,bLe,{[V]:[`UnmodifiableEntity`,400],[U]:H,[W]:400},[G],[0]];q.registerError(pRe,KNe);var mRe=[-3,K,SLe,{[V]:[`UnrecognizedPublicKeyEncoding`,400],[U]:H,[W]:400},[G],[0]];q.registerError(mRe,fPe);var hRe=[z3,q],gRe=[0,K,TLe,8,0],_Re=[3,K,n3,0,[N3,r3,j3,dLe,s3],[0,0,0,[()=>gRe,0],4],4],vRe=[3,K,i3,0,[N3,r3,j3,s3],[0,0,0,4]],yRe=[3,K,kPe,0,[p3,O3],[0,0],2],bRe=[3,K,NPe,0,[u3,N3],[0,0],2],B3=[3,K,TPe,0,[JIe,qIe],[0,0]],xRe=[3,K,wPe,0,[S3,b3],[0,0]],SRe=[3,K,SPe,0,[u3,b3],[0,0],2],CRe=[3,K,DPe,0,[O3,b3],[0,0],2],wRe=[3,K,jPe,0,[N3,b3],[0,0],2],TRe=[3,K,FPe,0,[N3],[0]],ERe=[3,K,IPe,0,[n3],[[()=>_Re,0]],1],DRe=[3,K,RPe,0,[u3,T3],[0,0],1],ORe=[3,K,zPe,0,[l3],[()=>V3],1],kRe=[3,K,HPe,0,[p3,T3,M3],[0,0,()=>Z3],1],ARe=[3,K,UPe,0,[f3],[()=>H3],1],jRe=[3,K,GPe,0,[S3,XIe,T3,c3,M3],[0,0,0,0,()=>Z3],2],MRe=[3,K,KPe,0,[E3],[()=>U3]],NRe=[3,K,QPe,0,[O3,o3,T3,c3,v3,x3,M3],[0,0,0,0,1,0,()=>Z3],2],PRe=[3,K,$Pe,0,[k3],[()=>W3],1],FRe=[3,K,tFe,0,[N3,T3,x3,M3],[0,0,0,()=>Z3],1],IRe=[3,K,nFe,0,[P3],[()=>G3]],LRe=[3,K,iFe,0,[r3,N3],[0,0],1],RRe=[3,K,uFe,0,[u3],[0],1],zRe=[3,K,fFe,0,[p3],[0],1],BRe=[3,K,pFe,0,[b3],[0],1],VRe=[3,K,_Fe,0,[O3],[0],1],HRe=[3,K,CFe,0,[N3],[0],1],URe=[3,K,cFe,0,[u3,b3],[0,0],2],WRe=[3,K,hFe,0,[O3,b3],[0,0],2],GRe=[3,K,xFe,0,[N3,b3],[0,0],2],KRe=[3,K,jFe,0,[u3,y3,_3],[0,0,1],1],qRe=[3,K,MFe,0,[l3,F3,h3,y3],[()=>V3,()=>Q3,2,0],2],JRe=[3,K,FFe,0,[p3],[0],1],YRe=[3,K,IFe,0,[f3],[()=>H3],1],XRe=[3,K,RFe,0,[b3],[0],1],ZRe=[3,K,zFe,0,[E3],[()=>U3]],QRe=[3,K,VFe,0,[b3,I3],[0,0],2],$Re=[3,K,HFe,0,[w3],[()=>Eze]],eze=[3,K,WFe,0,[O3],[0],1],tze=[3,K,GFe,0,[k3],[()=>W3],1],nze=[3,K,qFe,0,[N3],[0]],rze=[3,K,JFe,0,[P3],[()=>G3],1],V3=[3,K,l3,0,[T3,u3,NFe,t3,s3],[0,0,0,0,4],5],H3=[3,K,f3,0,[T3,p3,eIe,t3,s3,A3,M3],[0,0,0,0,4,()=>X3,()=>Z3],6],ize=[3,K,lIe,0,[N3,y3,_3],[0,0,1]],aze=[3,K,uIe,0,[i3,h3,y3],[()=>Mze,2,0],1],oze=[3,K,oIe,0,[u3,C3,y3,_3],[0,0,0,1],1],sze=[3,K,sIe,0,[a3,h3,y3],[()=>q3,2,0]],cze=[3,K,fIe,0,[O3,C3,y3,_3],[0,0,0,1],1],lze=[3,K,pIe,0,[a3,h3,y3],[()=>q3,2,0]],uze=[3,K,hIe,0,[N3,C3,y3,_3],[0,0,0,1],1],dze=[3,K,gIe,0,[a3,h3,y3],[()=>q3,2,0]],fze=[3,K,bIe,0,[N3,y3,_3],[0,0,1],1],pze=[3,K,xIe,0,[d3,h3,y3],[()=>J3,2,0],1],mze=[3,K,SIe,0,[C3,y3,_3],[0,0,1]],hze=[3,K,CIe,0,[d3,h3,y3],[()=>J3,2,0],1],gze=[3,K,EIe,0,[O3,y3,_3],[0,0,1],1],_ze=[3,K,DIe,0,[m3,h3,y3],[()=>Y3,2,0],1],vze=[3,K,OIe,0,[C3,y3,_3],[0,0,1]],yze=[3,K,kIe,0,[m3,h3,y3],[()=>Y3,2,0],1],bze=[3,K,AIe,0,[hLe,UIe,C3,nLe,y3,_3],[0,2,0,0,0,1]],xze=[3,K,jIe,0,[rLe,h3,y3],[()=>Nze,2,0]],Sze=[3,K,PIe,0,[C3,y3,_3],[0,0,1]],Cze=[3,K,FIe,0,[A3,h3,y3],[()=>X3,2,0],1],wze=[3,K,RIe,0,[C3,y3,_3],[0,0,1]],Tze=[3,K,zIe,0,[F3,h3,y3],[()=>Q3,2,0],1],U3=[3,K,E3,0,[S3,QIe,t3,T3,wFe,bPe,YIe,YFe,c3,s3,yLe,M3],[0,0,0,0,0,1,1,2,0,4,4,()=>Z3]],Eze=[3,K,w3,0,[TFe,I3,QFe,s3],[0,0,2,4]],Dze=[3,K,cLe,0,[p3,O3],[0,0],2],Oze=[3,K,uLe,0,[u3,N3],[0,0],2],W3=[3,K,k3,0,[T3,O3,oLe,t3,s3,o3,c3,v3,x3,M3,D3],[0,0,0,0,4,0,0,1,()=>B3,()=>Z3,()=>kze],5],kze=[3,K,D3,0,[LIe,iLe],[4,0]],Aze=[3,K,gLe,0,[rIe,CLe],[0,0],2],jze=[3,K,vLe,0,[r3,j3,N3],[0,0,0],2],G3=[3,K,P3,0,[T3,N3,xLe,t3,s3,$Ie,x3,M3],[0,0,0,0,4,4,()=>B3,()=>Z3],5],K3=`unit`,Mze=[1,K,wLe,0,()=>vRe],q3=[1,K,ELe,0,()=>xRe],J3=[1,K,DLe,0,()=>V3],Y3=[1,K,OLe,0,()=>H3],Nze=[1,K,kLe,0,()=>U3],X3=[1,K,ALe,0,()=>W3],Z3=[1,K,jLe,0,()=>Aze],Q3=[1,K,MLe,0,()=>G3],Pze=[9,K,OPe,0,()=>yRe,()=>K3],Fze=[9,K,MPe,0,()=>bRe,()=>K3],Ize=[9,K,xPe,0,()=>SRe,()=>K3],Lze=[9,K,EPe,0,()=>CRe,()=>K3],Rze=[9,K,APe,0,()=>wRe,()=>K3],zze=[9,K,PPe,0,()=>TRe,()=>ERe],Bze=[9,K,LPe,0,()=>DRe,()=>ORe],Vze=[9,K,VPe,0,()=>kRe,()=>ARe],Hze=[9,K,qPe,0,()=>jRe,()=>MRe],Uze=[9,K,JPe,0,()=>NRe,()=>PRe],Wze=[9,K,eFe,0,()=>FRe,()=>IRe],Gze=[9,K,rFe,0,()=>LRe,()=>K3],Kze=[9,K,sFe,0,()=>RRe,()=>K3],qze=[9,K,dFe,0,()=>zRe,()=>K3],Jze=[9,K,mFe,0,()=>BRe,()=>K3],Yze=[9,K,vFe,0,()=>VRe,()=>K3],Xze=[9,K,bFe,0,()=>HRe,()=>K3],Zze=[9,K,lFe,0,()=>URe,()=>K3],Qze=[9,K,gFe,0,()=>WRe,()=>K3],$ze=[9,K,SFe,0,()=>GRe,()=>K3],eBe=[9,K,AFe,0,()=>KRe,()=>qRe],tBe=[9,K,PFe,0,()=>JRe,()=>YRe],nBe=[9,K,LFe,0,()=>XRe,()=>ZRe],rBe=[9,K,BFe,0,()=>QRe,()=>$Re],iBe=[9,K,UFe,0,()=>eze,()=>tze],aBe=[9,K,KFe,0,()=>nze,()=>rze],oBe=[9,K,cIe,0,()=>ize,()=>aze],sBe=[9,K,aIe,0,()=>oze,()=>sze],cBe=[9,K,dIe,0,()=>cze,()=>lze],lBe=[9,K,mIe,0,()=>uze,()=>dze],uBe=[9,K,vIe,0,()=>mze,()=>hze],dBe=[9,K,yIe,0,()=>fze,()=>pze],fBe=[9,K,wIe,0,()=>vze,()=>yze],pBe=[9,K,TIe,0,()=>gze,()=>_ze],mBe=[9,K,MIe,0,()=>bze,()=>xze],hBe=[9,K,NIe,0,()=>Sze,()=>Cze],gBe=[9,K,IIe,0,()=>wze,()=>Tze],_Be=[9,K,sLe,0,()=>Dze,()=>K3],vBe=[9,K,lLe,0,()=>Oze,()=>K3],yBe=[9,K,_Le,0,()=>jze,()=>K3],bBe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??RNe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??kNe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Fe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:hRe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),xBe=e=>{let t=Je(e),n=()=>t().then(ft),r=bBe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:NNe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},SBe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},CBe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),wBe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),SBe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),CBe(n))},TBe=class extends fe{config;constructor(...[e]){let t=xBe(e||{});super(t),this.initConfig=t;let n=wBe(ANe(Qe(Me(be(rt(ge(jNe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:DNe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},$3={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},EBe=$3.WHEN_SUPPORTED,e6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},DBe=$3.WHEN_SUPPORTED,t6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(t6||={});var OBe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(OBe||={});var n6=t6.CRC32,kBe=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===$3.WHEN_SUPPORTED||t?n6:void 0;if(e[n])return e[n]},r6=e=>e===t6.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,ABe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},jBe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},i6=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!cee(e),a6=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let e=0;e<8;++e)t=t&1?2197175160^t>>>1:t>>>1;a6[e]=t>>>0}var MBe=class{digestLength=4;crc=4294967295;update(e){let t=this.crc;for(let n=0;n>>8^a6[(t^e[n])&255];this.crc=t}async digest(){let e=(this.crc^4294967295)>>>0,t=new Uint8Array(4);return t[0]=e>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t}reset(){this.crc=4294967295}},NBe=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},o6,s6,c6,l6,u6,d6,f6,p6,m6,PBe=()=>{o6||(o6=NBe(),[s6,c6,l6,u6,d6,f6,p6,m6]=o6)},FBe=class{c1=0;c2=0;constructor(){PBe(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,ee=((r>>>16^e[n++])&255)<<1,te=((r>>>24^e[n++])&255)<<1;r=m6[t]^p6[a]^f6[o]^d6[s]^u6[c]^l6[l]^c6[ee]^s6[te],i=m6[t+1]^p6[a+1]^f6[o+1]^d6[s+1]^u6[c+1]^l6[l+1]^c6[ee+1]^s6[te+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^s6[t],i^=s6[t+1],++n}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},IBe=[t6.CRC32,t6.CRC32C,t6.CRC64NVME,t6.SHA1,t6.SHA256],h6=[t6.SHA256,t6.SHA1,t6.CRC32,t6.CRC32C,t6.CRC64NVME],g6=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case t6.MD5:return n?.MD5??t.md5;case t6.CRC32:return n?.CRC32??pee;case t6.CRC32C:return n?.CRC32C??MBe;case t6.CRC64NVME:return n?.CRC64NVME??FBe;case t6.SHA1:return n?.SHA1??t.sha1;case t6.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${IBe}, or provide an implementation to the client constructor checksums field.`)}},_6=(e,t)=>{let n=new e;return n.update(bt(t||``)),n.digest()},LBe={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},RBe=(e,t)=>(n,r)=>async i=>{if(!xe.isInstance(i.request)||jBe(`x-amz-checksum-`,i.request.headers))return n(i);let{request:a,input:o}=i,{body:s,headers:c}=a,{base64Encoder:l,streamHasher:ee}=e,{requestChecksumRequired:te,requestAlgorithmMember:ne}=t,re=await e.requestChecksumCalculation(),ie=ne?.name,ae=ne?.httpHeader;ie&&!o[ie]&&(re===$3.WHEN_SUPPORTED||te)&&(o[ie]=n6,ae&&(c[ae]=n6));let u=kBe(o,{requestChecksumRequired:te,requestAlgorithmMember:ne?.name,requestChecksumCalculation:re}),oe=s,se=c;if(u){switch(u){case t6.CRC32:me(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case t6.CRC32C:me(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case t6.CRC64NVME:me(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case t6.SHA1:me(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case t6.SHA256:me(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=r6(u),n=g6(u,e);if(i6(s)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;oe=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?uee(s,e.requestStreamBufferSize,r.logger):s,{base64Encoder:l,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:ee}),se={...c,"content-encoding":c[`content-encoding`]?`${c[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":c[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete se[`content-length`]}else if(!ABe(t,c)){let e=await _6(n,s);se={...c,[t]:l(e)}}}try{return await n({...i,request:{...a,headers:se,body:oe}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},zBe={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},BBe=(e,t)=>(n,r)=>async i=>{let a=i.input,{requestValidationModeMember:o}=t,s=await e.requestChecksumCalculation(),c=await e.responseChecksumValidation();switch(s){case $3.WHEN_REQUIRED:me(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case $3.WHEN_SUPPORTED:me(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(c){case e6.WHEN_REQUIRED:me(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case e6.WHEN_SUPPORTED:me(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return o&&!a[o]&&c===e6.WHEN_SUPPORTED&&(a[o]=`ENABLED`),n(i)},v6=(e=[])=>{let t=[],n=h6.length;for(let r of e){let e=h6.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},VBe=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},HBe=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await _6(t,e)),UBe=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=v6(n),{body:a,headers:o}=e;for(let n of i){let i=r6(n),s=o[i];if(s){let o;try{o=g6(n,t)}catch(e){if(n===t6.CRC64NVME){r?.warn(`Skipping ${t6.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(i6(a)){e.body=oee({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await HBe(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},WBe={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},GBe=(e,t)=>(n,r)=>async i=>{if(!xe.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=r6(e);return s.headers[t]!==void 0}),a=v6([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=r6(e),n=s.headers[t];return!n||VBe(n)}))return o;await UBe(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},y6=(e,t)=>({applyToStack:n=>{n.add(RBe(e,t),LBe),n.addRelativeTo(BBe(e,t),zBe),n.addRelativeTo(GBe(e,t),WBe)}}),KBe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:u(t??EBe),responseChecksumValidation:u(n??DBe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},qBe=`content-length`,JBe=`x-amz-decoded-content-length`;function YBe(){return(e,t)=>async n=>{let{request:r}=n;if(xe.isInstance(r)&&!(qBe in r.headers)&&!(JBe in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof Ge)?t.logger.warn(e):console.warn(e)}return e({...n})}}var XBe={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},ZBe=e=>({applyToStack:e=>{e.add(YBe(),XBe)}}),QBe=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},$Be={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function eVe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var tVe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},nVe=e=>({applyToStack:t=>{t.add(eVe(e),tVe),t.addRelativeTo(QBe(e),$Be)}}),rVe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new b6(Promise.resolve(e)))})),t)):i.set(r,new b6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},aVe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new iVe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},oVe=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(Ye.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{gt(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},sVe={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},cVe=e=>({applyToStack:t=>{t.addRelativeTo(oVe(e),sVe)}}),lVe=`sigv4-s3express`,uVe=`x-amz-s3session-token`,dVe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===lVe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(me(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,xe.isInstance(r.request)&&i.sessionToken&&(r.request.headers[uVe]=i.sessionToken)}}}return t(r)},fVe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},pVe=e=>({applyToStack:t=>{t.add(dVe(e),fVe)}}),mVe=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},hVe=e=>e=>{throw e},gVe=(e,t)=>{},_Ve=e=>(t,n)=>async r=>{if(!xe.isInstance(r.request))return t(r);let i=Ce(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await mVe(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||hVe)(a));return(s.successHandler||gVe)(l.response,a),l},vVe=e=>({applyToStack:t=>{t.addRelativeTo(_Ve(e),ree)}});function yVe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var bVe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},xVe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Ye.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await SVe(s,e);if(a.body=yVe(c),c.length===0&&bVe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},SVe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),CVe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},x6=e=>({applyToStack:t=>{t.addRelativeTo(xVe(e),CVe)}});function wVe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var TVe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function EVe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!vj(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var DVe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},OVe=e=>({applyToStack:t=>{t.add(EVe(e),DVe),t.addRelativeTo(wVe(e),TVe)}}),kVe=class extends Wee{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ke.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function AVe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&xe.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var jVe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},MVe=e=>({applyToStack:t=>{t.add(AVe(e),jVe)}});function NVe(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var PVe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},FVe=e=>({applyToStack:t=>{t.add(NVe(e),PVe)}});function IVe(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?RVe(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var LVe={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},S6=e=>({applyToStack:t=>{t.add(IVe(e),LVe)}});function RVe(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var C6=`ref`,J=`argv`,w6=`backend`,T6=`authSchemes`,E6=`disableDoubleEncoding`,D6=`signingName`,O6=`signingRegion`,k6=`signingRegionSet`,Y=-1,X=!0,A6=!1,j6=`isSet`,M6=`booleanEquals`,Z=`stringEquals`,N6=`coalesce`,P6=`substring`,F6=``,I6=`aws.partition`,L6=`partitionResult`,R6=`accessPointSuffix`,z6=`regionPrefix`,B6=e=>`outpostId_ssa_`+e+F6,V6=`hardwareType`,H6=`ite`,U6=`isValidHostLabel`,W6=`sigv4`,G6=`aws.isVirtualHostableS3Bucket`,K6=`url`,q6=`getAttr`,J6=`bucketArn`,Y6=`--`,X6=`arnType`,Z6=`accesspoint`,Q6=e=>`accessPointName_ssa_`+e+F6,$6=`s3-object-lambda`,e8=`s3-outposts`,t8=`bucketPartition`,n8=`us-east-1`,r8=`outpostType`,i8=`name`,a8=`s3`,o8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,s8=`{url#scheme}://{url#authority}{url#path}`,c8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,l8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,u8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,d8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,f8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",p8=`sigv4a`,m8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,h8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,g8=`https://s3.{partitionResult#dnsSuffix}`,_8={[C6]:`UseFIPS`},v8={[C6]:`UseDualStack`},y8={[C6]:`Bucket`},b8={fn:q6,[J]:[{[C6]:L6},i8]},x8={[C6]:K6},S8={[C6]:`Region`},C8={[C6]:J6},w8={[C6]:X6},T8={[C6]:`accessPointName_ssa_1`},E8={fn:q6,[J]:[C8,`region`]},D8={[C6]:V6},O8={fn:q6,[J]:[C8,`service`]},k8={fn:q6,[J]:[C8,`accountId`]},A8={[w6]:`S3Express`,[T6]:[{[E6]:!0,[i8]:`{_s3e_auth}`,[D6]:`s3express`,[O6]:`{Region}`}]},j8={[w6]:`S3Express`,[T6]:[{[E6]:!0,[i8]:W6,[D6]:`s3express`,[O6]:`{Region}`}]},M8={[T6]:[{[E6]:!0,[i8]:p8,[D6]:e8,[k6]:[`*`]},{[E6]:!0,[i8]:W6,[D6]:e8,[O6]:`{Region}`}]},N8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:a8,[O6]:n8}]},P8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:a8,[O6]:`{Region}`}]},F8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:$6,[O6]:`{bucketArn#region}`}]},I8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:a8,[O6]:`{bucketArn#region}`}]},L8={[T6]:[{[E6]:!0,[i8]:p8,[D6]:e8,[k6]:[`*`]},{[E6]:!0,[i8]:W6,[D6]:e8,[O6]:`{bucketArn#region}`}]},R8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:$6,[O6]:`{Region}`}]},z8=[S8],B8=[{[C6]:`Endpoint`}],V8=[y8],H8=[y8,0,7,!0],U8=[C8,`resourceId[1]`],zVe=[`*`],W8={conditions:[[j6,z8],[M6,[{[C6]:`Accelerate`},X]],[M6,[_8,X]],[M6,[v8,X]],[j6,B8],[j6,V8],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,0,6,X]},F6]},`--x-s3`]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:H8},F6]},`--xa-s3`]],[I6,z8,L6],[P6,H8,R6],[Z,[{[C6]:R6},`--op-s3`]],[P6,[y8,8,12,X],z6],[P6,[y8,32,49,X],B6(2)],[P6,[y8,49,50,X],V6],[M6,[{[C6]:`ForcePathStyle`},X]],[Z,[b8,`aws-cn`]],[H6,[v8,`.dualstack`,F6],`_s3e_ds`],[U6,[{[C6]:B6(2)},A6]],[H6,[_8,`-fips`,F6],`_s3e_fips`],[H6,[{fn:N6,[J]:[{[C6]:`DisableS3ExpressSessionAuth`},A6]},W6,`sigv4-s3express`],`_s3e_auth`],[G6,[y8,A6]],[`parseURL`,B8,K6],[M6,[{fn:N6,[J]:[{[C6]:`UseS3ExpressControlEndpoint`},A6]},X]],[G6,[y8,X]],[Z,[{fn:q6,[J]:[x8,`scheme`]},`http`]],[U6,[S8,A6]],[`aws.parseArn`,V8,J6],[q6,[{fn:`split`,[J]:[y8,Y6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,0,4,A6]},F6]},`arn:`]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,16,18,X]},F6]},Y6]],[M6,[{fn:q6,[J]:[x8,`isIp`]},X]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,21,23,X]},F6]},Y6]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,27,29,X]},F6]},Y6]],[Z,[{[C6]:z6},`beta`]],[`uriEncode`,V8,`uri_encoded_bucket`],[U6,[S8,X]],[M6,[{fn:N6,[J]:[{[C6]:`UseObjectLambdaEndpoint`},A6]},X]],[q6,[C8,`resourceId[0]`],X6],[Z,[w8,F6]],[Z,[w8,Z6]],[q6,U8,Q6(1)],[Z,[T8,F6]],[Z,[E8,F6]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,14,16,X]},F6]},Y6]],[Z,[D8,`e`]],[Z,[D8,`o`]],[Z,[S8,`aws-global`]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,19,21,X]},F6]},Y6]],[Z,[O8,$6]],[M6,[{fn:N6,[J]:[{[C6]:`DisableAccessPoints`},A6]},X]],[Z,[O8,e8]],[I6,[E8],t8],[U6,[T8,X]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,26,28,X]},F6]},Y6]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,15,17,X]},F6]},Y6]],[q6,[C8,`resourceId[4]`]],[Z,[{fn:N6,[J]:[{fn:P6,[J]:[y8,20,22,X]},F6]},Y6]],[M6,[{[C6]:`UseGlobalEndpoint`},X]],[Z,[S8,n8]],[q6,U8,B6(1)],[M6,[{fn:N6,[J]:[{[C6]:`UseArnRegion`},X]},X]],[U6,[{[C6]:B6(1)},A6]],[q6,[C8,`resourceId[2]`],r8],[Z,[S8,E8]],[Z,[{fn:q6,[J]:[{[C6]:t8},i8]},b8]],[M6,[{[C6]:`DisableMultiRegionAccessPoints`},X]],[U6,[E8,X]],[Z,[{fn:q6,[J]:[C8,`partition`]},b8]],[Z,[k8,F6]],[Z,[O8,a8]],[U6,[k8,A6]],[q6,[C8,`resourceId[3]`],Q6(2)],[U6,[T8,A6]],[Z,[{[C6]:r8},Z6]],[U6,[{[C6]:Q6(2)},A6]]],results:[[Y],[Y,`Accelerate cannot be used with FIPS`],[Y,`Cannot set dual-stack in combination with a custom endpoint.`],[Y,`A custom endpoint cannot be combined with FIPS`],[Y,`A custom endpoint cannot be combined with S3 Accelerate`],[Y,`Partition does not support FIPS`],[Y,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,A8],[o8,A8],[Y,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,A8],[Y,`Unrecognized S3Express bucket name format.`],[s8,A8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,j8],[Y,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,M8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,M8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,M8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,M8],[Y,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[Y,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[Y,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[Y,"Custom endpoint `{Endpoint}` was not a valid URI"],[Y,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,P8],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,P8],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,P8],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,P8],[c8,N8],[o8,N8],[c8,P8],[o8,P8],[l8,N8],[l8,P8],[u8,N8],[u8,P8],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,P8],[Y,`Invalid region: region was not a valid DNS name.`],[Y,`S3 Object Lambda does not support Dual-stack`],[Y,`S3 Object Lambda does not support S3 Accelerate`],[Y,`Access points are not supported for this operation`],[Y,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[Y,`Invalid ARN: Missing account id`],[d8(1),F8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,F8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,F8],[Y,f8(1)],[Y,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[Y,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[Y,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[Y,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[Y,`Invalid ARN: bucket ARN is missing a region`],[Y,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[Y,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[Y,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,I8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,I8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,I8],[d8(1),I8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,I8],[Y,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[Y,`S3 MRAP does not support dual-stack`],[Y,`S3 MRAP does not support FIPS`],[Y,`S3 MRAP does not support S3 Accelerate`],[Y,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[T6]:[{[E6]:X,name:p8,[D6]:a8,[k6]:zVe}]}],[Y,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[Y,`Invalid Access Point Name`],[Y,`S3 Outposts does not support Dual-stack`],[Y,`S3 Outposts does not support FIPS`],[Y,`S3 Outposts does not support S3 Accelerate`],[Y,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,L8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,L8],[Y,f8(2)],[Y,"Expected an outpost type `accesspoint`, found {outpostType}"],[Y,`Invalid ARN: expected an access point name`],[Y,`Invalid ARN: Expected a 4-component resource`],[Y,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[Y,`Invalid ARN: The Outpost Id was not set`],[Y,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[Y,`Invalid ARN: No ARN type specified`],[Y,"Invalid ARN: `{Bucket}` was not a valid ARN"],[Y,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,N8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,P8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,N8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,P8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,N8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,P8],[m8,N8],[m8,P8],[h8,N8],[h8,P8],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,P8],[Y,`Path-style addressing cannot be used with S3 Accelerate`],[s8,R8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,R8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,R8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,P8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,P8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,P8],[s8,N8],[s8,P8],[g8,N8],[g8,P8],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,P8],[Y,`A region must be set when sending requests to S3.`]]},BVe=2,VVe=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),HVe=nt.from(VVe,BVe,W8.conditions,W8.results),UVe=new Ue({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),G8=(e,t={})=>UVe.get(e,()=>at(HVe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var WVe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=Ce(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await $e(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function K8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function q8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var GVe=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(se.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(G8,e=>{let t=[];switch(e.operation){default:t.push(K8(e)),t.push(q8(e))}return t},{"aws.auth#sigv4":K8,"aws.auth#sigv4a":q8}),KVe=e=>{let t=de(ct(e));return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},qVe=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),J8=Ke({ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},`AmazonS3`,`S3Client`,Be),JVe={Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}},YVe={UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}},XVe={DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}},ZVe={Bucket:{type:`contextParams`,name:`Bucket`}},QVe={},$Ve={Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}},Y8=(e,t,n,r)=>[x6(n)],eHe=(e,t,n,r)=>[x6(n),S6(n)],tHe=(e,t,n,r)=>[x6(n),FVe(n)],nHe=(e,t,n,r)=>[y6(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),x6(n)],rHe=(e,t,n,r)=>[y6(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),S6(n),cVe(n)],iHe=(e,t,n,r)=>[y6(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),ZBe(n),x6(n),S6(n)],aHe=(e,t,n,r)=>[y6(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),x6(n),S6(n)],X8=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},oHe=class e extends X8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sHe=class e extends X8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cHe=class e extends X8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lHe=class e extends X8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uHe=class e extends X8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dHe=class e extends X8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fHe=class e extends X8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pHe=class e extends X8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},mHe=class e extends X8{name=`NoSuchAnnotation`;$fault=`client`;constructor(t){super({name:`NoSuchAnnotation`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hHe=class e extends X8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gHe=class e extends X8{name=`InvalidPrefix`;$fault=`client`;constructor(t){super({name:`InvalidPrefix`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_He=class e extends X8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vHe=class e extends X8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yHe=class e extends X8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bHe=class e extends X8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xHe=class e extends X8{name=`AnnotationLimitExceeded`;$fault=`client`;constructor(t){super({name:`AnnotationLimitExceeded`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SHe=class e extends X8{name=`AnnotationNameTooLong`;$fault=`client`;constructor(t){super({name:`AnnotationNameTooLong`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CHe=class e extends X8{name=`InvalidAnnotationName`;$fault=`client`;constructor(t){super({name:`InvalidAnnotationName`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wHe=class e extends X8{name=`UnsupportedMediaType`;$fault=`client`;constructor(t){super({name:`UnsupportedMediaType`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},THe=class e extends X8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},EHe=class e extends X8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Z8=`ACL`,DHe=`AccessDenied`,OHe=`AbortDate`,Q8=`AccessKeyId`,kHe=`AnnotationLimitExceeded`,AHe=`AbortMultipartUpload`,jHe=`AbortMultipartUploadOutput`,MHe=`AbortMultipartUploadRequest`,NHe=`AnnotationNameTooLong`,PHe=`AcceptRanges`,FHe=`AbortRuleId`,IHe=`AccessTier`,$8=`Bucket`,e5=`BucketArn`,LHe=`BucketAlreadyExists`,RHe=`BucketAlreadyOwnedByYou`,zHe=`BypassGovernanceRetention`,BHe=`BucketInfo`,t5=`BucketKeyEnabled`,VHe=`BucketNamespace`,n5=`BucketRegion`,r5=`Body`,i5=`Buckets`,a5=`ChecksumAlgorithm`,HHe=`CreateBucket`,o5=`CreateBucketConfiguration`,UHe=`CreateBucketOutput`,WHe=`CreateBucketRequest`,s5=`CacheControl`,c5=`ChecksumCRC32`,l5=`ChecksumCRC32C`,u5=`ChecksumCRC64NVME`,d5=`Cache-Control`,GHe=`CreationDate`,f5=`Content-Disposition`,p5=`ContentDisposition`,m5=`Content-Encoding`,h5=`ContentEncoding`,g5=`ContentLanguage`,_5=`Content-Language`,v5=`Content-Length`,y5=`ContentLength`,b5=`Content-MD5`,x5=`ChecksumMD5`,S5=`ContentMD5`,KHe=`CompletedMultipartUpload`,qHe=`CompleteMultipartUploadOutput`,JHe=`CreateMultipartUploadOutput`,YHe=`CompleteMultipartUploadResult`,XHe=`CompleteMultipartUploadRequest`,ZHe=`CreateMultipartUploadRequest`,C5=`CompleteMultipartUpload`,QHe=`CreateMultipartUpload`,$He=`ChecksumMode`,eUe=`CommonPrefix`,tUe=`CommonPrefixList`,nUe=`CompletedPartList`,rUe=`CompletedPart`,iUe=`CommonPrefixes`,aUe=`ContentRange`,oUe=`Content-Range`,w5=`ChecksumSHA1`,T5=`ChecksumSHA256`,E5=`ChecksumSHA512`,sUe=`CreateSessionOutput`,cUe=`CreateSessionResult`,lUe=`CreateSessionRequest`,uUe=`CreateSession`,D5=`ChecksumType`,O5=`Content-Type`,k5=`ContentType`,A5=`ContinuationToken`,j5=`ChecksumXXHASH64`,M5=`ChecksumXXHASH3`,N5=`ChecksumXXHASH128`,dUe=`Contents`,P5=`Credentials`,F5=`DeleteMarker`,fUe=`DisplayName`,pUe=`DeleteObjectOutput`,mUe=`DeleteObjectRequest`,hUe=`DeleteObject`,gUe=`DataRedundancy`,I5=`Delimiter`,L5=`ExpectedBucketOwner`,R5=`ExpiresString`,z5=`ETag`,_Ue=`EncryptionTypeMismatch`,B5=`EncodingType`,V5=`Expiration`,H5=`Expires`,vUe=`FetchOwner`,U5=`GrantFullControl`,yUe=`GetObject`,bUe=`GetObjectOutput`,xUe=`GetObjectRequest`,W5=`GrantRead`,G5=`GrantReadACP`,SUe=`GrantWrite`,K5=`GrantWriteACP`,CUe=`InvalidAnnotationName`,wUe=`ID`,q5=`IfMatch`,TUe=`IfMatchInitiatedTime`,EUe=`IfMatchLastModifiedTime`,DUe=`IfMatchSize`,OUe=`If-Modified-Since`,kUe=`IfModifiedSince`,AUe=`InitiateMultipartUploadResult`,J5=`If-Match`,Y5=`IfNoneMatch`,X5=`If-None-Match`,jUe=`InvalidObjectState`,MUe=`InvalidPrefix`,NUe=`IdempotencyParameterMismatch`,PUe=`InvalidRequest`,FUe=`IsRestoreInProgress`,IUe=`IsTruncated`,LUe=`IfUnmodifiedSince`,RUe=`If-Unmodified-Since`,zUe=`InvalidWriteOffset`,Z5=`Key`,BUe=`KeyCount`,Q5=`Location`,VUe=`ListAllMyBucketsResult`,HUe=`ListBuckets`,UUe=`ListBucketsOutput`,WUe=`ListBucketsRequest`,GUe=`ListBucketResult`,KUe=`LocationConstraint`,qUe=`LocationInfo`,$5=`LastModified`,JUe=`Last-Modified`,YUe=`ListObjectsV2`,XUe=`ListObjectsV2Output`,ZUe=`ListObjectsV2Request`,e7=`Metadata`,QUe=`MaxBuckets`,$Ue=`MFA`,t7=`MaxKeys`,eWe=`MissingMeta`,tWe=`MpuObjectSize`,nWe=`MultipartUpload`,n7=`Name`,rWe=`NextContinuationToken`,iWe=`NotFound`,aWe=`NoSuchAnnotation`,oWe=`NoSuchBucket`,sWe=`NoSuchKey`,cWe=`NoSuchUpload`,r7=`Owner`,lWe=`ObjectAlreadyInActiveTierError`,uWe=`ObjectLockEnabledForBucket`,i7=`ObjectLockLegalHoldStatus`,a7=`ObjectLockMode`,o7=`ObjectLockRetainUntilDate`,dWe=`ObjectList`,fWe=`ObjectNotInActiveTierError`,pWe=`ObjectOwnership`,mWe=`OptionalObjectAttributes`,hWe=`Object`,s7=`Prefix`,gWe=`PartsCount`,c7=`PartNumber`,_We=`PutObject`,vWe=`PutObjectOutput`,yWe=`PutObjectRequest`,bWe=`PutObjectTagging`,xWe=`PutObjectTaggingOutput`,SWe=`PutObjectTaggingRequest`,CWe=`Parts`,wWe=`Part`,l7=`RequestCharged`,TWe=`ResponseCacheControl`,EWe=`ResponseContentDisposition`,DWe=`ResponseContentEncoding`,OWe=`ResponseContentLanguage`,kWe=`ResponseContentType`,AWe=`ResponseExpires`,jWe=`RestoreExpiryDate`,u7=`RequestPayer`,MWe=`ReplicationStatus`,d7=`RestoreStatus`,f7=`Range`,NWe=`Restore`,p7=`StartAfter`,m7=`SecretAccessKey`,PWe=`StreamingBlob`,h7=`StorageClass`,FWe=`SessionCredentialValue`,IWe=`SessionCredentials`,LWe=`SessionMode`,g7=`ServerSideEncryption`,_7=`SSECustomerAlgorithm`,v7=`SSECustomerKey`,y7=`SSECustomerKeyMD5`,b7=`SSEKMSEncryptionContext`,x7=`SSEKMSKeyId`,S7=`SessionToken`,C7=`Size`,RWe=`Tags`,zWe=`TagCount`,BWe=`TooManyParts`,w7=`TagSet`,T7=`Tag`,E7=`Tagging`,D7=`Type`,O7=`UploadId`,VWe=`UnsupportedMediaType`,HWe=`UploadPart`,UWe=`UploadPartOutput`,WWe=`UploadPartRequest`,GWe=`Value`,k7=`VersionId`,KWe=`WriteOffsetBytes`,A7=`WebsiteRedirectLocation`,qWe=`accept-ranges`,JWe=`bucket-region`,j7=`client`,M7=`continuation-token`,YWe=`delimiter`,N7=`error`,XWe=`encoding-type`,ZWe=`fetch-owner`,P7=`http`,F7=`httpChecksum`,I7=`httpError`,Q=`httpHeader`,L7=`httpPayload`,R7=`httpPrefixHeaders`,z7=`httpQuery`,QWe=`max-buckets`,$We=`max-keys`,B7=`prefix`,V7=`partNumber`,eGe=`response-cache-control`,tGe=`response-content-disposition`,nGe=`response-content-encoding`,rGe=`response-content-language`,iGe=`response-content-type`,aGe=`response-expires`,H7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,oGe=`start-after`,sGe=`streaming`,U7=`uploadId`,W7=`versionId`,G7=`xmlFlattened`,K7=`xmlName`,q7=`x-amz-acl`,cGe=`x-amz-abort-date`,lGe=`x-amz-abort-rule-id`,uGe=`x-amz-bucket-arn`,dGe=`x-amz-bypass-governance-retention`,fGe=`x-amz-bucket-namespace`,pGe=`x-amz-bucket-object-lock-enabled`,J7=`x-amz-checksum-algorithm`,Y7=`x-amz-checksum-crc32`,X7=`x-amz-checksum-crc32c`,Z7=`x-amz-checksum-crc64nvme`,Q7=`x-amz-checksum-md5`,mGe=`x-amz-checksum-mode`,$7=`x-amz-checksum-sha1`,e9=`x-amz-checksum-sha256`,t9=`x-amz-checksum-sha512`,hGe=`x-amz-create-session-mode`,n9=`x-amz-checksum-type`,r9=`x-amz-checksum-xxhash64`,i9=`x-amz-checksum-xxhash3`,a9=`x-amz-checksum-xxhash128`,o9=`x-amz-delete-marker`,s9=`x-amz-expiration`,c9=`x-amz-expected-bucket-owner`,l9=`x-amz-grant-full-control`,u9=`x-amz-grant-read`,d9=`x-amz-grant-read-acp`,gGe=`x-amz-grant-write`,f9=`x-amz-grant-write-acp`,_Ge=`x-amz-if-match-initiated-time`,vGe=`x-amz-if-match-last-modified-time`,yGe=`x-amz-if-match-size`,p9=`x-amz-meta-`,bGe=`x-amz-mfa`,xGe=`x-amz-missing-meta`,SGe=`x-amz-mp-object-size`,CGe=`x-amz-mp-parts-count`,m9=`x-amz-object-lock-legal-hold`,h9=`x-amz-object-lock-mode`,g9=`x-amz-object-lock-retain-until-date`,wGe=`x-amz-object-ownership`,TGe=`x-amz-optional-object-attributes`,EGe=`x-amz-object-size`,DGe=`x-amz-restore`,_9=`x-amz-request-charged`,v9=`x-amz-request-payer`,OGe=`x-amz-replication-status`,y9=`x-amz-storage-class`,b9=`x-amz-sdk-checksum-algorithm`,x9=`x-amz-server-side-encryption`,S9=`x-amz-server-side-encryption-aws-kms-key-id`,C9=`x-amz-server-side-encryption-bucket-key-enabled`,w9=`x-amz-server-side-encryption-context`,T9=`x-amz-server-side-encryption-customer-algorithm`,E9=`x-amz-server-side-encryption-customer-key`,D9=`x-amz-server-side-encryption-customer-key-MD5`,O9=`x-amz-tagging`,kGe=`x-amz-tagging-count`,k9=`x-amz-version-id`,AGe=`x-amz-write-offset-bytes`,A9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,j9=dt.for(H7),jGe=[-3,H7,`S3ServiceException`,0,[],[]];j9.registerError(jGe,X8);var M9=dt.for($),MGe=[-3,$,DHe,{[N7]:j7,[I7]:403},[],[]];M9.registerError(MGe,sHe);var NGe=[-3,$,kHe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(NGe,xHe);var PGe=[-3,$,NHe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(PGe,SHe);var FGe=[-3,$,LHe,{[N7]:j7,[I7]:409},[],[]];M9.registerError(FGe,lHe);var IGe=[-3,$,RHe,{[N7]:j7,[I7]:409},[],[]];M9.registerError(IGe,uHe);var LGe=[-3,$,_Ue,{[N7]:j7,[I7]:400},[],[]];M9.registerError(LGe,_He);var RGe=[-3,$,NUe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(RGe,THe);var zGe=[-3,$,CUe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(zGe,CHe);var BGe=[-3,$,jUe,{[N7]:j7,[I7]:403},[h7,IHe],[0,0]];M9.registerError(BGe,pHe);var VGe=[-3,$,MUe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(VGe,gHe);var HGe=[-3,$,PUe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(HGe,vHe);var UGe=[-3,$,zUe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(UGe,yHe);var WGe=[-3,$,aWe,{[N7]:j7,[I7]:404},[],[]];M9.registerError(WGe,mHe);var GGe=[-3,$,oWe,{[N7]:j7,[I7]:404},[],[]];M9.registerError(GGe,dHe);var KGe=[-3,$,sWe,{[N7]:j7,[I7]:404},[],[]];M9.registerError(KGe,fHe);var qGe=[-3,$,cWe,{[N7]:j7,[I7]:404},[],[]];M9.registerError(qGe,oHe);var JGe=[-3,$,iWe,{[N7]:j7},[],[]];M9.registerError(JGe,hHe);var YGe=[-3,$,lWe,{[N7]:j7,[I7]:403},[],[]];M9.registerError(YGe,EHe);var XGe=[-3,$,fWe,{[N7]:j7,[I7]:403},[],[]];M9.registerError(XGe,cHe);var ZGe=[-3,$,BWe,{[N7]:j7,[I7]:400},[],[]];M9.registerError(ZGe,bHe);var QGe=[-3,$,VWe,{[N7]:j7,[I7]:415},[],[]];M9.registerError(QGe,wHe);var $Ge=[j9,M9],N9=[0,$,FWe,8,0],P9=[0,$,v7,8,0],F9=[0,$,b7,8,0],I9=[0,$,x7,8,0],L9=[0,$,PWe,{[sGe]:1},42],eKe=[3,$,jHe,0,[l7],[[0,{[Q]:_9}]]],tKe=[3,$,MHe,0,[$8,Z5,O7,u7,L5,TUe],[[0,1],[0,1],[0,{[z7]:U7}],[0,{[Q]:v9}],[0,{[Q]:c9}],[6,{[Q]:_Ge}]],3],nKe=[3,$,$8,0,[n7,GHe,n5,e5],[0,4,0,0]],rKe=[3,$,BHe,0,[gUe,D7],[0,0]],iKe=[3,$,eUe,0,[s7],[0]],aKe=[3,$,KHe,0,[CWe],[[()=>LKe,{[G7]:1,[K7]:wWe}]]],oKe=[3,$,rUe,0,[z5,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,c7],[0,0,0,0,0,0,0,0,0,0,0,1]],sKe=[3,$,qHe,{[K7]:YHe},[Q5,$8,Z5,V5,z5,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,D5,g7,k7,x7,t5,l7],[0,0,0,[0,{[Q]:s9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Q]:x9}],[0,{[Q]:k9}],[()=>I9,{[Q]:S9}],[2,{[Q]:C9}],[0,{[Q]:_9}]]],cKe=[3,$,XHe,0,[$8,Z5,O7,nWe,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,D5,tWe,u7,L5,q5,Y5,_7,v7,y7],[[0,1],[0,1],[0,{[z7]:U7}],[()=>aKe,{[L7]:1,[K7]:C5}],[0,{[Q]:Y7}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:$7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:Q7}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:n9}],[1,{[Q]:SGe}],[0,{[Q]:v9}],[0,{[Q]:c9}],[0,{[Q]:J5}],[0,{[Q]:X5}],[0,{[Q]:T9}],[()=>P9,{[Q]:E9}],[0,{[Q]:D9}]],3],lKe=[3,$,o5,0,[KUe,Q5,$8,RWe],[0,()=>wKe,()=>rKe,[()=>B9,0]]],uKe=[3,$,UHe,0,[Q5,e5],[[0,{[Q]:Q5}],[0,{[Q]:uGe}]]],dKe=[3,$,WHe,0,[$8,Z8,o5,U5,W5,G5,SUe,K5,uWe,pWe,VHe],[[0,1],[0,{[Q]:q7}],[()=>lKe,{[L7]:1,[K7]:o5}],[0,{[Q]:l9}],[0,{[Q]:u9}],[0,{[Q]:d9}],[0,{[Q]:gGe}],[0,{[Q]:f9}],[2,{[Q]:pGe}],[0,{[Q]:wGe}],[0,{[Q]:fGe}]],1],fKe=[3,$,JHe,{[K7]:AUe},[OHe,FHe,$8,Z5,O7,g7,_7,y7,x7,b7,t5,l7,a5,D5],[[4,{[Q]:cGe}],[0,{[Q]:lGe}],[0,{[K7]:$8}],0,0,[0,{[Q]:x9}],[0,{[Q]:T9}],[0,{[Q]:D9}],[()=>I9,{[Q]:S9}],[()=>F9,{[Q]:w9}],[2,{[Q]:C9}],[0,{[Q]:_9}],[0,{[Q]:J7}],[0,{[Q]:n9}]]],pKe=[3,$,ZHe,0,[$8,Z5,Z8,s5,p5,h5,g5,k5,H5,U5,W5,G5,K5,e7,g7,h7,A7,_7,v7,y7,x7,b7,t5,u7,E7,a7,o7,i7,L5,a5,D5],[[0,1],[0,1],[0,{[Q]:q7}],[0,{[Q]:d5}],[0,{[Q]:f5}],[0,{[Q]:m5}],[0,{[Q]:_5}],[0,{[Q]:O5}],[4,{[Q]:H5}],[0,{[Q]:l9}],[0,{[Q]:u9}],[0,{[Q]:d9}],[0,{[Q]:f9}],[128,{[R7]:p9}],[0,{[Q]:x9}],[0,{[Q]:y9}],[0,{[Q]:A9}],[0,{[Q]:T9}],[()=>P9,{[Q]:E9}],[0,{[Q]:D9}],[()=>I9,{[Q]:S9}],[()=>F9,{[Q]:w9}],[2,{[Q]:C9}],[0,{[Q]:v9}],[0,{[Q]:O9}],[0,{[Q]:h9}],[5,{[Q]:g9}],[0,{[Q]:m9}],[0,{[Q]:c9}],[0,{[Q]:J7}],[0,{[Q]:n9}]],2],mKe=[3,$,sUe,{[K7]:cUe},[P5,g7,x7,b7,t5],[[()=>jKe,{[K7]:P5}],[0,{[Q]:x9}],[()=>I9,{[Q]:S9}],[()=>F9,{[Q]:w9}],[2,{[Q]:C9}]],1],hKe=[3,$,lUe,0,[$8,LWe,g7,x7,b7,t5],[[0,1],[0,{[Q]:hGe}],[0,{[Q]:x9}],[()=>I9,{[Q]:S9}],[()=>F9,{[Q]:w9}],[2,{[Q]:C9}]],1],gKe=[3,$,pUe,0,[F5,k7,l7],[[2,{[Q]:o9}],[0,{[Q]:k9}],[0,{[Q]:_9}]]],_Ke=[3,$,mUe,0,[$8,Z5,$Ue,k7,u7,zHe,L5,q5,EUe,DUe],[[0,1],[0,1],[0,{[Q]:bGe}],[0,{[z7]:W7}],[0,{[Q]:v9}],[2,{[Q]:dGe}],[0,{[Q]:c9}],[0,{[Q]:J5}],[6,{[Q]:vGe}],[1,{[Q]:yGe}]],2],vKe=[3,$,bUe,0,[r5,F5,PHe,V5,NWe,$5,y5,z5,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,D5,eWe,k7,s5,p5,h5,g5,aUe,k5,H5,R5,A7,g7,e7,_7,y7,x7,t5,h7,l7,MWe,gWe,zWe,a7,o7,i7],[[()=>L9,16],[2,{[Q]:o9}],[0,{[Q]:qWe}],[0,{[Q]:s9}],[0,{[Q]:DGe}],[4,{[Q]:JUe}],[1,{[Q]:v5}],[0,{[Q]:z5}],[0,{[Q]:Y7}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:$7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:Q7}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:n9}],[1,{[Q]:xGe}],[0,{[Q]:k9}],[0,{[Q]:d5}],[0,{[Q]:f5}],[0,{[Q]:m5}],[0,{[Q]:_5}],[0,{[Q]:oUe}],[0,{[Q]:O5}],[4,{[Q]:H5}],[0,{[Q]:R5}],[0,{[Q]:A9}],[0,{[Q]:x9}],[128,{[R7]:p9}],[0,{[Q]:T9}],[0,{[Q]:D9}],[()=>I9,{[Q]:S9}],[2,{[Q]:C9}],[0,{[Q]:y9}],[0,{[Q]:_9}],[0,{[Q]:OGe}],[1,{[Q]:CGe}],[1,{[Q]:kGe}],[0,{[Q]:h9}],[5,{[Q]:g9}],[0,{[Q]:m9}]]],yKe=[3,$,xUe,0,[$8,Z5,q5,kUe,Y5,LUe,f7,TWe,EWe,DWe,OWe,kWe,AWe,k7,_7,v7,y7,u7,c7,L5,$He],[[0,1],[0,1],[0,{[Q]:J5}],[4,{[Q]:OUe}],[0,{[Q]:X5}],[4,{[Q]:RUe}],[0,{[Q]:f7}],[0,{[z7]:eGe}],[0,{[z7]:tGe}],[0,{[z7]:nGe}],[0,{[z7]:rGe}],[0,{[z7]:iGe}],[6,{[z7]:aGe}],[0,{[z7]:W7}],[0,{[Q]:T9}],[()=>P9,{[Q]:E9}],[0,{[Q]:D9}],[0,{[Q]:v9}],[1,{[z7]:V7}],[0,{[Q]:c9}],[0,{[Q]:mGe}]],2],bKe=[3,$,UUe,{[K7]:VUe},[i5,r7,A5,s7],[[()=>FKe,0],()=>R9,0,0]],xKe=[3,$,WUe,0,[QUe,A5,s7,n5],[[1,{[z7]:QWe}],[0,{[z7]:M7}],[0,{[z7]:B7}],[0,{[z7]:JWe}]]],SKe=[3,$,XUe,{[K7]:GUe},[IUe,dUe,n7,s7,I5,t7,iUe,B5,BUe,A5,rWe,p7,l7],[2,[()=>RKe,{[G7]:1}],0,0,0,1,[()=>IKe,{[G7]:1}],0,1,0,0,0,[0,{[Q]:_9}]]],CKe=[3,$,ZUe,0,[$8,I5,B5,t7,s7,A5,vUe,p7,u7,L5,mWe],[[0,1],[0,{[z7]:YWe}],[0,{[z7]:XWe}],[1,{[z7]:$We}],[0,{[z7]:B7}],[0,{[z7]:M7}],[2,{[z7]:ZWe}],[0,{[z7]:oGe}],[0,{[Q]:v9}],[0,{[Q]:c9}],[64,{[Q]:TGe}]],1],wKe=[3,$,qUe,0,[D7,n7],[0,0]],TKe=[3,$,hWe,0,[Z5,$5,z5,a5,D5,C7,h7,r7,d7],[0,4,0,[64,{[G7]:1}],0,1,0,()=>R9,()=>AKe]],R9=[3,$,r7,0,[fUe,wUe],[0,0]],EKe=[3,$,vWe,0,[V5,z5,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,D5,g7,k7,_7,y7,x7,b7,t5,C7,l7],[[0,{[Q]:s9}],[0,{[Q]:z5}],[0,{[Q]:Y7}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:$7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:Q7}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:n9}],[0,{[Q]:x9}],[0,{[Q]:k9}],[0,{[Q]:T9}],[0,{[Q]:D9}],[()=>I9,{[Q]:S9}],[()=>F9,{[Q]:w9}],[2,{[Q]:C9}],[1,{[Q]:EGe}],[0,{[Q]:_9}]]],DKe=[3,$,yWe,0,[$8,Z5,Z8,r5,s5,p5,h5,g5,y5,S5,k5,a5,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,H5,q5,Y5,U5,W5,G5,K5,KWe,e7,g7,h7,A7,_7,v7,y7,x7,b7,t5,u7,E7,a7,o7,i7,L5],[[0,1],[0,1],[0,{[Q]:q7}],[()=>L9,16],[0,{[Q]:d5}],[0,{[Q]:f5}],[0,{[Q]:m5}],[0,{[Q]:_5}],[1,{[Q]:v5}],[0,{[Q]:b5}],[0,{[Q]:O5}],[0,{[Q]:b9}],[0,{[Q]:Y7}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:$7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:Q7}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[4,{[Q]:H5}],[0,{[Q]:J5}],[0,{[Q]:X5}],[0,{[Q]:l9}],[0,{[Q]:u9}],[0,{[Q]:d9}],[0,{[Q]:f9}],[1,{[Q]:AGe}],[128,{[R7]:p9}],[0,{[Q]:x9}],[0,{[Q]:y9}],[0,{[Q]:A9}],[0,{[Q]:T9}],[()=>P9,{[Q]:E9}],[0,{[Q]:D9}],[()=>I9,{[Q]:S9}],[()=>F9,{[Q]:w9}],[2,{[Q]:C9}],[0,{[Q]:v9}],[0,{[Q]:O9}],[0,{[Q]:h9}],[5,{[Q]:g9}],[0,{[Q]:m9}],[0,{[Q]:c9}]],2],OKe=[3,$,xWe,0,[k7],[[0,{[Q]:k9}]]],kKe=[3,$,SWe,0,[$8,Z5,E7,k7,S5,a5,L5,u7],[[0,1],[0,1],[()=>MKe,{[L7]:1,[K7]:E7}],[0,{[z7]:W7}],[0,{[Q]:b5}],[0,{[Q]:b9}],[0,{[Q]:c9}],[0,{[Q]:v9}]],3],AKe=[3,$,d7,0,[FUe,jWe],[2,4]],jKe=[3,$,IWe,0,[Q8,m7,S7,V5],[[0,{[K7]:Q8}],[()=>N9,{[K7]:m7}],[()=>N9,{[K7]:S7}],[4,{[K7]:V5}]],4],z9=[3,$,T7,0,[Z5,GWe],[0,0],2],MKe=[3,$,E7,0,[w7],[[()=>B9,0]],1],NKe=[3,$,UWe,0,[g7,z5,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,_7,y7,x7,t5,l7],[[0,{[Q]:x9}],[0,{[Q]:z5}],[0,{[Q]:Y7}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:$7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:Q7}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:T9}],[0,{[Q]:D9}],[()=>I9,{[Q]:S9}],[2,{[Q]:C9}],[0,{[Q]:_9}]]],PKe=[3,$,WWe,0,[$8,Z5,c7,O7,r5,y5,S5,a5,c5,l5,u5,w5,T5,E5,x5,j5,M5,N5,_7,v7,y7,u7,L5],[[0,1],[0,1],[1,{[z7]:V7}],[0,{[z7]:U7}],[()=>L9,16],[1,{[Q]:v5}],[0,{[Q]:b5}],[0,{[Q]:b9}],[0,{[Q]:Y7}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:$7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:Q7}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:T9}],[()=>P9,{[Q]:E9}],[0,{[Q]:D9}],[0,{[Q]:v9}],[0,{[Q]:c9}]],4],FKe=[1,$,i5,0,[()=>nKe,{[K7]:$8}]],IKe=[1,$,tUe,0,()=>iKe],LKe=[1,$,nUe,0,()=>oKe],RKe=[1,$,dWe,0,[()=>TKe,0]],B9=[1,$,w7,0,[()=>z9,{[K7]:T7}]],zKe=[9,$,AHe,{[P7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>tKe,()=>eKe],BKe=[9,$,C5,{[P7]:[`POST`,`/{Key+}`,200]},()=>cKe,()=>sKe],VKe=[9,$,HHe,{[P7]:[`PUT`,`/`,200]},()=>dKe,()=>uKe],HKe=[9,$,QHe,{[P7]:[`POST`,`/{Key+}?uploads`,200]},()=>pKe,()=>fKe],UKe=[9,$,uUe,{[P7]:[`GET`,`/?session`,200]},()=>hKe,()=>mKe],WKe=[9,$,hUe,{[P7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>_Ke,()=>gKe],GKe=[9,$,yUe,{[F7]:`-`,[P7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>yKe,()=>vKe],KKe=[9,$,HUe,{[P7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>xKe,()=>bKe],qKe=[9,$,YUe,{[P7]:[`GET`,`/?list-type=2`,200]},()=>CKe,()=>SKe],JKe=[9,$,_We,{[F7]:`-`,[P7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>DKe,()=>EKe],YKe=[9,$,bWe,{[F7]:`-`,[P7]:[`PUT`,`/{Key+}?tagging`,200]},()=>kKe,()=>OKe],XKe=[9,$,HWe,{[F7]:`-`,[P7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>PKe,()=>NKe],ZKe=class extends J8(XVe,Y8,`CreateSession`,UKe){},QKe={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:browser":`yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`yarn g:vitest watch -c vitest.config.browser.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/checksums":`^3.1000.12`,"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/middleware-sdk-s3":`^3.972.58`,"@aws-sdk/signature-v4-multi-region":`^3.996.38`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1079.0`,"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}},V9=64,H9=20,U9=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),$Ke=new Int32Array([1518500249,1859775393,2400959708,3395469782]),eqe=class e{digestLength=H9;state=Int32Array.from(U9);w;buffer=new Uint8Array(V9);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(t){if(t){let n=e.normalizeKey(t);this.inner=new e,this.outer=new e;let r=new Uint8Array(V9*2);for(let e=0;e0){for(;n>0&&this.bufferLength=V9;)this.hashBuffer(e,t),t+=V9,n-=V9;for(;n>0;)this.buffer[this.bufferLength++]=e[t++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw Error(`Attempted to digest an already finished HMAC.`);this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(U9),this.buffer=new Uint8Array(V9),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),t=this.buffer.slice(),n=this.bufferLength,r=this.bytesHashed/536870912|0,i=this.bytesHashed<<3;if(t[n++]=128,n>V9-8){for(let e=n;e>>24&255,o[1]=e[0]>>>16&255,o[2]=e[0]>>>8&255,o[3]=e[0]&255,o[4]=e[1]>>>24&255,o[5]=e[1]>>>16&255,o[6]=e[1]>>>8&255,o[7]=e[1]&255,o[8]=e[2]>>>24&255,o[9]=e[2]>>>16&255,o[10]=e[2]>>>8&255,o[11]=e[2]&255,o[12]=e[3]>>>24&255,o[13]=e[3]>>>16&255,o[14]=e[3]>>>8&255,o[15]=e[3]&255,o[16]=e[4]>>>24&255,o[17]=e[4]>>>16&255,o[18]=e[4]>>>8&255,o[19]=e[4]&255,o}static normalizeKey(t){let n=bt(t);if(n.byteLength>V9){let t=new e;t.update(n);let r=t.digestSync(),i=new Uint8Array(V9);return i.set(r),i}let r=new Uint8Array(V9);return r.set(n),r}hashBuffer(e,t){this.hashBufferWith(this.state,e,t)}hashBufferWith(e,t,n){let r=this.w??=new Int32Array(80),i=e[0],a=e[1],o=e[2],s=e[3],c=e[4];for(let e=0;e<16;++e)r[e]=(t[n+e*4]&255)<<24|(t[n+e*4+1]&255)<<16|(t[n+e*4+2]&255)<<8|t[n+e*4+3]&255;for(let e=16;e<80;++e){let t=r[e-3]^r[e-8]^r[e-14]^r[e-16];r[e]=t<<1|t>>>31}for(let e=0;e<80;++e){let t=e<20?0:e<40?1:e<60?2:3,n=((i<<5|i>>>27)+(t===0?a&o^~a&s:t===2?a&o^a&s^o&s:a^o^s)|0)+(c+($Ke[t]+r[e]|0)|0)|0;c=s,s=o,o=a<<30|a>>>2,a=i,i=n}e[0]=e[0]+i|0,e[1]=e[1]+a|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+c|0}},tqe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??G8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??lee,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??GVe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new le}],logger:e?.logger??new Ge,md5:e?.md5??qee,protocol:e?.protocol??kVe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:$Ge,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??Ct,serviceId:e?.serviceId??`S3`,sha1:e?.sha1??eqe,sha256:e?.sha256??We,signerConstructor:e?.signerConstructor??se,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Ze,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),nqe=e=>{let t=Je(e),n=()=>t().then(ft),r=tqe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:QKe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??hee,maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,streamHasher:e?.streamHasher??Kee,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},rqe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},iqe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),aqe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),rqe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),iqe(n))},oqe=class extends fe{config;constructor(...[e]){let t=nqe(e||{});super(t),this.initConfig=t;let n=aqe(aVe(KVe(mee(Qe(Me(be(rt(KBe(ge(qVe(t))))))))),{session:[()=>this,ZKe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:WVe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(OVe(this.config)),this.middlewareStack.use(MVe(this.config)),this.middlewareStack.use(nVe(this.config)),this.middlewareStack.use(pVe(this.config)),this.middlewareStack.use(vVe(this.config))}destroy(){super.destroy()}},W9=`ap-southeast-2`,G9=`${window.location.protocol}//localhost:9999`,sqe=`${window.location.protocol}//localhost:8443`,K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function cqe(){if(!K9){let e=it();if(!e)throw Error(`AWS credentials not configured`);K9=new _j({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),K9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return K9}function lqe(){if(!q9){let e=it();if(!e)throw Error(`AWS credentials not configured`);q9=new JCe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),q9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return q9}function uqe(){if(!J9){let e=it();if(!e)throw Error(`AWS credentials not configured`);J9=new ENe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function dqe(){if(!Y9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Y9=new ene({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function fqe(){if(!X9){let e=it();if(!e)throw Error(`AWS credentials not configured`);X9=new TBe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function pqe(){if(!Q9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Q9=new uR({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Q9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function mqe(){if(!$9){let e=it();if(!e)throw Error(`AWS credentials not configured`);$9=new zhe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),$9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function hqe(){if(!Z9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Z9=new oqe({endpoint:sqe,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),Z9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),Z9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function gqe(){K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{$ze as $,fM as $n,JA as $r,CCe as $t,tHe as A,The as An,TA as Ar,rNe as At,Bze as B,KL as Bn,PA as Br,pNe as Bt,ZVe as C,vhe as Cn,vA as Cr,XMe as Ct,eHe as D,She as Dn,SA as Dr,eNe as Dt,Y8 as E,xhe as En,xA as Er,$Me as Et,Fze as F,Ahe as Fn,AA as Fr,cNe as Ft,Gze as G,ZL as Gn,BA as Gr,vNe as Gt,Hze as H,JL as Hn,LA as Hr,hNe as Ht,Ize as I,jhe as In,jA as Ir,lNe as It,Jze as J,eR as Jn,UA as Jr,ewe as Jt,Kze as K,QL as Kn,VA as Kr,yNe as Kt,Lze as L,Mhe as Ln,MA as Lr,uNe as Lt,rHe as M,Dhe as Mn,DA as Mr,aNe as Mt,J8 as N,Ohe as Nn,OA as Nr,oNe as Nt,iHe as O,Che as On,CA as Or,tNe as Ot,Pze as P,khe as Pn,kA as Pr,sNe as Pt,Qze as Q,iR as Qn,qA as Qr,SCe as Qt,Rze as R,Nhe as Rn,NA as Rr,dNe as Rt,YVe as S,Et as Si,_he as Sn,_A as Sr,YMe as St,$Ve as T,bhe as Tn,bA as Tr,QMe as Tt,Uze as U,YL as Un,RA as Ur,gNe as Ut,Vze as V,qL as Vn,IA as Vr,mNe as Vt,Wze as W,XL as Wn,zA as Wr,_Ne as Wt,Xze as X,nR as Xn,GA as Xr,bCe as Xt,Yze as Y,tR as Yn,WA as Yr,yCe as Yt,Zze as Z,rR as Zn,KA as Zr,xCe as Zt,qKe as _,one as _i,VCe as _n,fA as _r,_Be as _t,mqe as a,ej as ai,kCe as an,eA as ar,aBe as at,XKe as b,tte as bi,hhe as bn,hA as br,MNe as bt,fqe as c,rj as ci,MCe as cn,rA as cr,cBe as ct,BKe as d,oj as di,FCe as dn,oA as dr,dBe as dt,YA as ei,wCe as en,_M as er,eBe as et,VKe as f,sj as fi,ICe as fn,sA as fr,fBe as ft,KKe as g,dj as gi,BCe as gn,dA as gr,gBe as gt,GKe as h,uj as hi,zCe as hn,uA as hr,hBe as ht,pqe as i,$A as ii,OCe as in,$k as ir,iBe as it,nHe as j,Ehe as jn,EA as jr,iNe as jt,aHe as k,whe as kn,wA as kr,nNe as kt,hqe as l,ij as li,NCe as ln,iA as lr,lBe as lt,WKe as m,lj as mi,RCe as mn,lA as mr,mBe as mt,dqe as n,ZA as ni,ECe as nn,Zk as nr,nBe as nt,lqe as o,tj as oi,ACe as on,tA as or,oBe as ot,HKe as p,cj as pi,LCe as pn,cA as pr,pBe as pt,qze as q,$L as qn,HA as qr,bNe as qt,cqe as r,QA as ri,DCe as rn,Qk as rr,rBe as rt,uqe as s,nj as si,jCe as sn,nA as sr,sBe as st,gqe as t,XA as ti,TCe as tn,wj as tr,tBe as tt,zKe as u,aj as ui,PCe as un,aA as ur,uBe as ut,JKe as v,qte as vi,HCe as vn,pA as vr,vBe as vt,QVe as w,yhe as wn,yA as wr,ZMe as wt,JVe as x,xee as xi,ghe as xn,gA as xr,JMe as xt,YKe as y,Jte as yi,Ghe as yn,mA as yr,yBe as yt,zze as z,gR as zn,FA as zr,fNe as zt}; \ No newline at end of file +import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{A as i,F as a,H as o,N as s,U as c,i as l,p as ee,s as te,t as ne,u as re}from"./useStore.js";import{$ as ie,A as ae,At as u,B as oe,C as se,Ct as ce,D as le,Dt as ue,E as de,Et as fe,F as pe,G as me,H as he,I as ge,J as _e,K as ve,L as ye,M as be,Mt as xe,N as Se,Nt as Ce,O as we,P as Te,Q as Ee,R as De,S as Oe,St as ke,Tt as eee,U as Ae,V as je,W as Me,X as Ne,Z as Pe,_ as Fe,_t as Ie,at as Le,b as Re,bt as ze,ct as Be,dt as Ve,et as He,ft as Ue,g as We,gt as Ge,ht as Ke,it as qe,j as Je,jt as Ye,k as Xe,kt as Ze,lt as Qe,mt as $e,nt as et,ot as tt,pt as nt,q as rt,r as it,tt as tee,ut as at,v as ot,vt as st,w as ct,wt as lt,x as ut,xt as dt,y as nee,yt as ft,z as ree}from"./auth.js";import{A as pt,C as mt,D as ht,E as gt,O as _t,S as vt,T as iee,_ as aee,a as yt,c as oee,d as bt,f as xt,g as see,h as St,i as Ct,k as wt,l as cee,n as Tt,o as lee,s as uee,w as dee,x as fee}from"./index.browser.js";import{i as pee,n as mee,r as hee}from"./index2.browser.js";var gee=`Error preloading route! ☝️`,_ee=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_ee()})),Dt=n(r(),1);t();var vee=n(Et(),1);function yee(e,t){let n=l(),r=o(t),{activeProps:ie,inactiveProps:ae,activeOptions:u,to:oe,preload:se,preloadDelay:ce,preloadIntentProximity:le,hashScrollIntoView:ue,replace:de,startTransition:fe,resetScroll:pe,viewTransition:me,children:he,target:ge,disabled:_e,style:ve,className:ye,onClick:be,onBlur:xe,onFocus:Se,onMouseEnter:Ce,onMouseLeave:we,onTouchStart:Te,ignoreBlocker:Ee,params:De,search:Oe,hash:ke,state:eee,mask:Ae,reloadDocument:je,unsafeRelative:Me,from:Ne,_fromLocation:Pe,...Fe}=e,Ie=te(),Le=Dt.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Re=ne(n.stores.location,e=>e,(e,t)=>e.href===t.href),ze=Dt.useMemo(()=>{let e={_fromLocation:Re,...Le};return n.buildLocation(e)},[n,Re,Le]),Be=ze.maskedLocation?ze.maskedLocation.publicHref:ze.publicHref,Ve=ze.maskedLocation?ze.maskedLocation.external:ze.external,He=Dt.useMemo(()=>It(Be,Ve,n.history,_e),[_e,Ve,Be,n.history]),Ue=Dt.useMemo(()=>{if(He?.external)return a(He.href,n.protocolAllowlist)?void 0:He.href;if(!bee(oe)&&!(typeof oe!=`string`||oe.indexOf(`:`)===-1))try{return new URL(oe),a(oe,n.protocolAllowlist)?void 0:oe}catch{}},[oe,He,n.protocolAllowlist]),We=Dt.useMemo(()=>{if(Ue)return!1;if(u?.exact){if(!re(Re.pathname,ze.pathname,n.basepath))return!1}else{let e=ee(Re.pathname,n.basepath),t=ee(ze.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(u?.includeSearch??!0)&&!i(Re.search,ze.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?Ie&&Re.hash===ze.hash:!0},[u?.exact,u?.explicitUndefined,u?.includeHash,u?.includeSearch,Re,Ue,Ie,ze.hash,ze.pathname,ze.search,n.basepath]),Ge=We?s(ie,{})??kt:Ot,Ke=We?Ot:s(ae,{})??Ot,qe=[ye,Ge.className,Ke.className].filter(Boolean).join(` `),Je=(ve||Ge.style||Ke.style)&&{...ve,...Ge.style,...Ke.style},[Ye,Xe]=Dt.useState(!1),Ze=Dt.useRef(!1),Qe=e.reloadDocument||Ue?!1:se??n.options.defaultPreload,$e=ce??n.options.defaultPreloadDelay??0,et=Dt.useCallback(()=>{n.preloadRoute({...Le,_builtLocation:ze}).catch(e=>{console.warn(e),console.warn(gee)})},[n,Le,ze]);c(r,Dt.useCallback(e=>{e?.isIntersecting&&et()},[et]),Pt,{disabled:!!_e||Qe!==`viewport`}),Dt.useEffect(()=>{Ze.current||!_e&&Qe===`render`&&(et(),Ze.current=!0)},[_e,et,Qe]);let tt=e=>{let t=e.currentTarget.getAttribute(`target`),r=ge===void 0?t:ge;if(!_e&&!See(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,vee.flushSync)(()=>{Xe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Xe(!1)});n.navigate({...Le,replace:de,resetScroll:pe,hashScrollIntoView:ue,startTransition:fe,viewTransition:me,ignoreBlocker:Ee})}};if(Ue)return{...Fe,ref:r,href:Ue,...he&&{children:he},...ge&&{target:ge},..._e&&{disabled:_e},...ve&&{style:ve},...ye&&{className:ye},...be&&{onClick:be},...xe&&{onBlur:xe},...Se&&{onFocus:Se},...Ce&&{onMouseEnter:Ce},...we&&{onMouseLeave:we},...Te&&{onTouchStart:Te}};let nt=e=>{if(_e||Qe!==`intent`)return;if(!$e){et();return}let t=e.currentTarget;if(Nt.has(t))return;let n=setTimeout(()=>{Nt.delete(t),et()},$e);Nt.set(t,n)},rt=e=>{_e||Qe!==`intent`||et()},it=e=>{if(_e||!Qe||!$e)return;let t=e.currentTarget,n=Nt.get(t);n&&(clearTimeout(n),Nt.delete(t))};return{...Fe,...Ge,...Ke,href:He?.href,ref:r,onClick:Ft([be,tt]),onBlur:Ft([xe,it]),onFocus:Ft([Se,nt]),onMouseEnter:Ft([Ce,nt]),onMouseLeave:Ft([we,it]),onTouchStart:Ft([Te,rt]),disabled:!!_e,target:ge,...Je&&{style:Je},...qe&&{className:qe},..._e&&At,...We&&jt,...Ie&&Ye&&Mt}}var Ot={},kt={className:`active`},At={role:`link`,"aria-disabled":!0},jt={"data-status":`active`,"aria-current":`page`},Mt={"data-transitioning":`transitioning`},Nt=new WeakMap,Pt={rootMargin:`100px`},Ft=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function It(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function bee(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var xee=Dt.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=yee(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Dt.createElement(`a`,t,o)}return Dt.createElement(n,a,o)});function See(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Lt=class extends et{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=ke.of(e?.input),l=[],ee=[],te=!1,ne,re=new xe({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(re,s),this.setHostPrefix(re,e,r);let t=ce(e.traits);if(t.http){re.method=t.http[0];let[e,n]=t.http[1].split(`?`);re.path==`/`?re.path=e:re.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(re.path.includes(`{${e}+}`)||re.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();re.path.includes(`{${e}+}`)?re.path=re.path.replace(`{${e}+}`,n.split(`/`).map(Le).join(`/`)):re.path.includes(`{${e}}`)&&(re.path=re.path.replace(`{${e}}`,Le(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return re.headers=o,re.query=a,re.body=ne,re}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=ke.of(e.output),a={};if(n.statusCode>=300){let i=await tt(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await tt(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await tt(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=ke.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=Ct(n.body);else if(n.body){let i=await tt(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?aee(o,`,`,2):see(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},Rt=class extends qe{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new ie(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=ke.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??ht;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??wt;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Cee=class extends qe{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=ke.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(He(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=mt(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??_t)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:fee(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=vt.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??_t)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Tt():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},zt=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Cee(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=ke.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function wee(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new St(e,`bigDecimal`):BigInt(e)}return t}var Tee=(e,t)=>tt(e,t).then(e=>(t?.utf8Encoder??ht)(e)),Eee=(e,t)=>Tee(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),Bt=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),Vt=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},Dee=(e,t)=>Ht(e,t,[`header`,`code`,`type`]),Oee=(e,t,n=!1)=>Ht(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),Ht=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=Bt(e??{},`x-amzn-errortype`);if(n!==void 0)return Vt(e[n]);break;case`code`:let r=Bt(t??{},`code`);if(r&&t[r]!==void 0)return Vt(t[r]);break;case`type`:if(t?.__type!==void 0)return Vt(t.__type);break}},kee=class extends Re{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,wee):await Eee(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=ke.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new nee(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return pt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?vt.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(He(r,this.settings)){case 5:return iee(t);case 6:return gt(t);case 7:return dee(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof St)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new St(e.string,e.type):new St(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof St?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},Aee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof St){let e=`${`Νnv`+this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},jee=class extends Re{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=ke.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new Aee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=ke.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=ke.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??_t)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(He(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return mt(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof St&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Tt();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?vt.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??_t)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof St?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},Ut=class extends Re{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new jee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new kee(this.settings);return e.setSerdeContext(this.serdeContext),e}},Mee=class extends tee{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new Ut({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new ut(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(eee(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=Oee(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=ke.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},re=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=re.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},Wt=class extends Mee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},Nee=class extends Lt{serializer;deserializer;codec;mixin=new ut;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Ut(n),this.serializer=new zt(this.codec.createSerializer(),n),this.deserializer=new Rt(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ke.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=ke.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=Dee(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=ke.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},Pee=/[&<>"]/g,Fee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Iee(e){return e.replace(Pee,e=>Fee[e])}var Lee=/[&"'<>\r\n\u0085\u2028]/g,Ree={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function zee(e){return e.replace(Lee,e=>Ree[e])}var Gt=class{value;constructor(e){this.value=e}toString(){return zee(``+this.value)}},Kt=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new Gt(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${Iee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Bee=class extends Fe{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},Vee=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},Hee=class extends Re{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=ke.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??pt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Kt.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=Kt.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=Kt.of(e);if(typeof n!=`string`)if(t instanceof Kt||t instanceof Gt)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=Kt.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=Kt.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[re,ie]=this.getXmlnsAttribute(e,r),ae=(e,t,n)=>{let r=Kt.of(s,t),[i,a]=this.getXmlnsAttribute(o,ie);a&&r.addAttribute(i,a),e.addChildNode(r);let l=Kt.of(ee);c.isListSchema()?this.writeList(c,n,l,ie):c.isMapSchema()?this.writeMap(c,n,l,ie,!0):c.isStructSchema()?l=this.writeStruct(c,n,ie):this.writeSimpleInto(c,n,l,ie),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=Kt.of(a.xmlName??e.getMemberName());ae(t,r,i),n.addChildNode(t)}}else{let r;i||(r=Kt.of(a.xmlName??e.getMemberName()),ie&&r.addAttribute(re,ie),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=Kt.of(`entry`);ae(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=ke.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??_t)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(He(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=mt(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=mt(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof St?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Tt():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=ke.of(e),o=new Gt(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Uee=class extends Re{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Hee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ot(this.settings);return e.setSerdeContext(this.serdeContext),e}},Wee=class extends Lt{codec;serializer;deserializer;mixin=new ut;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Uee(t),this.serializer=new zt(this.codec.createSerializer(),t),this.deserializer=new Rt(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ke.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Vee(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=ke.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}};async function Gee(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},qee=class{digestLength=16;state=Uint32Array.from(qt);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let t=bt(e),n=0,r=t.byteLength;for(this.bytesHashed+=r;r>0;)this.writeBuffer.setUint8(this.bufferLength++,t[n++]),--r,this.bufferLength===64&&(Yt(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),t=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,r=this.bytesHashed*8;if(t.setUint8(n++,128),this.bufferLength%64>=56){for(let e=n;e<64;++e)t.setUint8(e,0);Yt(e,t),n=0}for(let e=n;e<56;++e)t.setUint8(e,0);t.setUint32(56,r>>>0,!0),t.setUint32(60,Math.floor(r/2**32),!0),Yt(e,t);let i=new Uint8Array(16),a=new DataView(i.buffer);for(let t=0;t<4;++t)a.setUint32(t*4,e[t],!0);return i}reset(){this.state.set(qt),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},qt=[1732584193,4023233417,2562383102,271733878],Jt=4294967295,Jee=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),Yee=Array.from({length:64},(e,t)=>Math.abs(Math.sin(t+1))*2**32>>>0);function Yt(e,t){let n=e[0],r=e[1],i=e[2],a=e[3];for(let e=0;e<64;++e){let o,s;e<16?(o=r&i|~r&a,s=e):e<32?(o=a&r|i&~a,s=(5*e+1)%16):e<48?(o=r^i^a,s=(3*e+5)%16):(o=i^(r|~a),s=7*e%16);let c=t.getUint32(s*4,!0),l=a;a=i,i=r;let ee=Jee[(e>>4)*4+(e&3)],te=(n+o&Jt)+(c+Yee[e]&Jt)&Jt;r=r+((te<>>32-ee)>>>0)&Jt,n=l}e[0]=e[0]+n&Jt,e[1]=e[1]+r&Jt,e[2]=e[2]+i&Jt,e[3]=e[3]+a&Jt}var Xee=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Zee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Qee=e=>{let t=[];switch(e.operation){default:t.push(Zee(e))}return t},$ee=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},ete=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,defaultSigningName:`acm`,clientContextParams:e.clientContextParams??{}}),tte={ServiceType:{type:`clientContextParams`,name:`serviceType`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},nte={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},Xt=`PartitionResult`,Zt=`stringEquals`,Qt=`booleanEquals`,$t={fn:`getAttr`,argv:[{ref:Xt},`name`]},en={},tn={conditions:[[`isSet`,[{ref:`Endpoint`}]],[`aws.partition`,[{ref:`Region`}],Xt],[Zt,[{ref:`ServiceType`},`ACM-ACME`]],[Zt,[$t,`aws`]],[Qt,[{ref:`UseFIPS`},!0]],[Qt,[{ref:`UseDualStack`},!0]],[Zt,[$t,`aws-us-gov`]]],results:[[-1],[`{Endpoint}`,en],[-1,`FIPS endpoints are not available for ACME operations`],[`https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}`,en],[-1,`ACME operations are only available in commercial AWS partitions`],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,en],[`https://acm.{Region}.amazonaws.com`,en],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,en],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,en],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,en],[-1,`Region must be set to resolve an endpoint.`]]},rte=2,ite=new Int32Array([-1,1,-1,0,100000001,3,1,4,100000010,2,9,5,4,7,6,5,100000008,100000009,5,100000005,8,6,100000006,100000007,3,10,100000004,4,100000002,100000003]),ate=nt.from(ite,rte,tn.conditions,tn.results),ote=new Ue({size:50,params:[`Endpoint`,`Region`,`ServiceType`,`UseDualStack`,`UseFIPS`]}),ste=(e,t={})=>ote.get(e,()=>at(ate,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var nn=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},cte=class e extends nn{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lte=class e extends nn{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rn=class e extends nn{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},an=class e extends nn{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},on=class e extends nn{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sn=class e extends nn{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cn=class e extends nn{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},ln=class e extends nn{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},un=class e extends nn{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dn=class e extends nn{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fn=class e extends nn{name=`InternalServerException`;$fault=`server`;$retryable={};constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},pn=class e extends nn{name=`ServiceQuotaExceededException`;$fault=`client`;constructor(t){super({name:`ServiceQuotaExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mn=class e extends nn{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hn=class e extends nn{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gn=class e extends nn{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_n=class e extends nn{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vn=class e extends nn{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yn=class e extends nn{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bn=`AccessDeniedException`,xn=`CreatedAt`,Sn=`CertificateArn`,Cn=`CertificateChain`,wn=`ConflictException`,Tn=`CertificateKeyPairOrigin`,En=`CertificateKeyPairOrigins`,Dn=`CertificateSummary`,On=`CertificateSummaryList`,kn=`CertificateStatuses`,An=`Certificate`,jn=`DomainName`,Mn=`Exported`,Nn=`ExtendedKeyUsages`,Pn=`ExportOption`,Fn=`Filters`,In=`HasAdditionalSubjectAlternativeNames`,Ln=`ImportedAt`,Rn=`InvalidArgsException`,zn=`InvalidArnException`,Bn=`IssuedAt`,Vn=`ImportCertificate`,Hn=`ImportCertificateRequest`,Un=`ImportCertificateResponse`,Wn=`InvalidDomainValidationOptionsException`,Gn=`InvalidParameterException`,Kn=`InternalServerException`,qn=`InvalidStateException`,Jn=`InvalidTagException`,Yn=`InUse`,Xn=`Includes`,Zn=`Key`,Qn=`KeyAlgorithm`,$n=`KeyUsages`,er=`ListCertificates`,tr=`ListCertificatesRequest`,nr=`ListCertificatesResponse`,rr=`LimitExceededException`,ir=`Message`,ar=`ManagedBy`,or=`MaxItems`,sr=`NotAfter`,cr=`NotBefore`,lr=`NextToken`,ur=`PrivateKey`,dr=`PrivateKeyBlob`,fr=`RevokedAt`,pr=`RenewalEligibility`,mr=`RequestInProgressException`,hr=`ResourceInUseException`,gr=`ResourceNotFoundException`,_r=`Status`,vr=`SubjectAlternativeNameSummaries`,yr=`SortBy`,br=`SortOrder`,xr=`ServiceQuotaExceededException`,Sr=`Type`,Cr=`ThrottlingException`,wr=`TagList`,Tr=`TooManyTagsException`,Er=`TagPolicyException`,Dr=`ThrottlingReason`,Or=`ThrottlingReasonList`,kr=`Tags`,Ar=`Tag`,jr=`Value`,Mr=`ValidationException`,Nr=`awsQueryError`,Pr=`client`,Fr=`error`,Ir=`extendedKeyUsage`,Lr=`exportOption`,Rr=`httpError`,zr=`keyTypes`,Br=`keyUsage`,Vr=`message`,ute=`managedBy`,dte=`reason`,fte=`resource`,Hr=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,pte=`server`,mte=`throttlingReasons`,d=`com.amazonaws.acm`,Ur=dt.for(Hr),hte=[-3,Hr,`ACMServiceException`,0,[],[]];Ur.registerError(hte,nn);var Wr=dt.for(d),gte=[-3,d,bn,{[Nr]:[`AccessDenied`,403],[Fr]:Pr,[Rr]:403},[ir],[0]];Wr.registerError(gte,cte);var _te=[-3,d,wn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(_te,dn);var vte=[-3,d,Kn,{[Fr]:pte},[Vr],[0]];Wr.registerError(vte,fn);var yte=[-3,d,Rn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(yte,_n);var bte=[-3,d,zn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(bte,lte);var xte=[-3,d,Wn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(xte,vn);var Ste=[-3,d,Gn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ste,rn);var Cte=[-3,d,qn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Cte,yn);var wte=[-3,d,Jn,{[Fr]:Pr},[Vr],[0]];Wr.registerError(wte,an);var Tte=[-3,d,rr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Tte,gn);var Ete=[-3,d,mr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ete,hn);var Dte=[-3,d,hr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Dte,mn);var Ote=[-3,d,gr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ote,on);var kte=[-3,d,xr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(kte,pn);var Ate=[-3,d,Er,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Ate,sn);var jte=[-3,d,Cr,{[Nr]:[`Throttling`,400],[Fr]:Pr,[Rr]:400},[Vr,mte],[0,()=>Kte]];Wr.registerError(jte,cn);var Mte=[-3,d,Tr,{[Fr]:Pr},[Vr],[0]];Wr.registerError(Mte,ln);var Nte=[-3,d,Mr,{[Nr]:[`ValidationError`,400],[Fr]:Pr,[Rr]:400},[Vr],[0]];Wr.registerError(Nte,un);var Pte=[Ur,Wr],Fte=[0,d,dr,8,21],Ite=[3,d,Dn,0,[Sn,jn,vr,In,_r,Sr,Qn,$n,Nn,Pn,Yn,Mn,pr,cr,sr,xn,Bn,Ln,fr,ar,Tn],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0,0]],Lte=[3,d,Fn,0,[Ir,Br,zr,Lr,ute],[64,64,64,0,0]],Rte=[3,d,Hn,0,[An,ur,Sn,Cn,kr],[21,[()=>Fte,0],0,21,()=>Gte],2],zte=[3,d,Un,0,[Sn],[0]],Bte=[3,d,tr,0,[kn,En,Xn,lr,or,yr,br],[64,64,()=>Lte,0,1,0,0]],Vte=[3,d,nr,0,[lr,On],[0,()=>Wte]],Hte=[3,d,Ar,0,[Zn,jr],[0,0],1],Ute=[3,d,Dr,0,[dte,fte],[0,0]],Wte=[1,d,On,0,()=>Ite],Gte=[1,d,wr,0,()=>Hte],Kte=[1,d,Or,0,()=>Ute],qte=[9,d,Vn,0,()=>Rte,()=>zte],Jte=[9,d,er,0,()=>Bte,()=>Vte],Yte=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ste,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Wt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:Pte,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),Xte=e=>{let t=Je(e),n=()=>t().then(ft),r=Yte(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:nte.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Zte=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Qte=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),$te=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),Zte(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),Qte(n))},ene=class extends fe{config;constructor(...[e]){let t=Xte(e||{});super(t),this.initConfig=t;let n=$te($ee(Qe(Me(be(rt(ge(ete(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:Xee,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},tne=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function nne(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var rne=e=>{let t=[];switch(e.operation){default:t.push(nne(e))}return t},ine=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},ane=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),one={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},sne={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/middleware-sdk-ec2":`^3.972.41`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},Gr=`ref`,Kr=-1,qr=!0,Jr=`isSet`,Yr=`PartitionResult`,Xr=`booleanEquals`,Zr=`getAttr`,Qr={[Gr]:`Endpoint`},$r={[Gr]:Yr},ei={},ti=[{[Gr]:`Region`}],ni={conditions:[[Jr,[Qr]],[Jr,ti],[`aws.partition`,ti,Yr],[Xr,[{[Gr]:`UseFIPS`},qr]],[Xr,[{[Gr]:`UseDualStack`},qr]],[Xr,[{fn:Zr,argv:[$r,`supportsDualStack`]},qr]],[Xr,[{fn:Zr,argv:[$r,`supportsFIPS`]},qr]],[`stringEquals`,[{fn:Zr,argv:[$r,`name`]},`aws-us-gov`]]],results:[[Kr],[Kr,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Kr,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Qr,ei],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,ei],[Kr,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,ei],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,ei],[Kr,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,ei],[Kr,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,ei],[Kr,`Invalid Configuration: Missing Region`]]},cne=2,lne=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),une=nt.from(lne,cne,ni.conditions,ni.results),dne=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),fne=(e,t={})=>dne.get(e,()=>at(une,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var pne=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},ri=`Address`,mne=`AllocateAddressRequest`,hne=`AllocateAddressResult`,gne=`AssociateAddressRequest`,_ne=`AssociateAddressResult`,vne=`AllAvailabilityZones`,yne=`AllocateAddress`,bne=`ApplianceArn`,xne=`AssociateAddress`,Sne=`AttachedAppliances`,Cne=`AttributeBooleanValue`,wne=`AssociateCarrierIpAddress`,Tne=`AdditionalFlexibleNetworkInterfaces`,Ene=`AvailableIpAddressCount`,ii=`AssignIpv6AddressOnCreation`,Dne=`AttachInternetGateway`,One=`AttachInternetGatewayRequest`,kne=`AssociateIamInstanceProfile`,Ane=`AssociateIamInstanceProfileRequest`,jne=`AssociateIamInstanceProfileResult`,Mne=`AllocationIdList`,Nne=`AssociationIdList`,ai=`AdditionalInfo`,oi=`AllocationId`,si=`AllocationIds`,ci=`AssociationId`,Pne=`AssociationIds`,li=`AttachmentId`,Fne=`AmiLaunchIndex`,Ine=`AttachmentLimitType`,Lne=`AddressList`,ui=`AvailabilityMode`,Rne=`AssociatePublicIpAddress`,zne=`AmazonProvidedIpv6CidrBlock`,Bne=`AutoProvisionZones`,Vne=`AutoRecoverySupported`,Hne=`AssociateRouteTableRequest`,Une=`AssociateRouteTableResult`,Wne=`AssociateRouteTable`,Gne=`AllowReassociation`,Kne=`AllRegions`,di=`AssociatedResource`,fi=`AutoRecovery`,pi=`AssociationState`,qne=`AuthorizeSecurityGroupEgress`,Jne=`AuthorizeSecurityGroupEgressRequest`,Yne=`AuthorizeSecurityGroupEgressResult`,Xne=`AuthorizeSecurityGroupIngressRequest`,Zne=`AuthorizeSecurityGroupIngressResult`,Qne=`AuthorizeSecurityGroupIngress`,$ne=`AutoScalingIps`,mi=`AmdSevSnp`,ere=`AttachmentState`,tre=`ArchitectureTypeList`,hi=`AttachTime`,nre=`AttachVolumeRequest`,rre=`AttributeValue`,ire=`AttachVolume`,gi=`AvailabilityZone`,_i=`AvailabilityZoneAddress`,vi=`AvailabilityZoneAddresses`,are=`AvailabilityZoneGeography`,ore=`AvailabilityZoneGeographyList`,yi=`AvailabilityZoneId`,sre=`AvailabilityZoneList`,cre=`AvailabilityZoneMessage`,lre=`AvailabilityZoneMessageList`,ure=`AvailabilityZoneSubGeography`,dre=`AvailabilityZoneSubGeographyList`,fre=`AvailabilityZones`,bi=`Accelerators`,pre=`Addresses`,mre=`Affinity`,xi=`Arn`,Si=`Architecture`,hre=`Associations`,Ci=`Association`,gre=`Attribute`,wi=`Attachment`,Ti=`Attachments`,_re=`BlobAttributeValue`,vre=`BaselineBandwidthInGbps`,Ei=`BaselineBandwidthInMbps`,Di=`BlockDeviceMapping`,yre=`BlockDeviceMappingList`,bre=`BlockDeviceMappingRequestList`,Oi=`BlockDeviceMappings`,xre=`BlockDurationMinutes`,ki=`BaselineIops`,Ai=`BootMode`,Sre=`BootModeTypeList`,Cre=`BareMetal`,ji=`BlockPublicAccessStates`,wre=`BillingProductList`,Tre=`BurstablePerformanceSupported`,Ere=`BillingProducts`,Dre=`BillingProduct`,Mi=`BaselineThroughputInMBps`,Ni=`BandwidthWeighting`,Ore=`BandwidthWeightingTypeList`,kre=`BandwidthWeightings`,Pi=`CidrBlock`,Are=`CidrBlockAssociationSet`,jre=`CapacityBlockId`,Mre=`CidrBlockState`,Nre=`CoreCountList`,Fi=`CoreCount`,Pre=`CpuCredits`,Ii=`CompletionDurationMinutes`,Fre=`CreationDate`,Li=`CarrierGatewayId`,Ire=`CurrentGeneration`,Ri=`CarrierIp`,Lre=`CurrentInstanceBootMode`,Rre=`CreateInternetGateway`,zre=`CreateInternetGatewayRequest`,Bre=`CreateInternetGatewayResult`,Vre=`CreateImageRequest`,Hre=`CreateImageResult`,zi=`CidrIp`,Bi=`CidrIpv6`,Vi=`CidrIpv4`,Ure=`CoreInfo`,Wre=`CreateImage`,Gre=`CreateKeyPair`,Kre=`CreateKeyPairRequest`,Hi=`CoreNetworkArn`,qre=`CreateNatGateway`,Jre=`CreateNatGatewayRequest`,Yre=`CreateNatGatewayResult`,Ui=`CpuOptions`,Wi=`CustomerOwnedIp`,Gi=`CustomerOwnedIpv4Pool`,Xre=`CpuOptionsRequest`,Zre=`CreatePlacementGroup`,Qre=`CreatePlacementGroupRequest`,$re=`CreatePlacementGroupResult`,Ki=`CapacityReservationId`,qi=`CapacityReservationPreference`,eie=`CreateRouteRequest`,Ji=`CapacityReservationResourceGroupArn`,tie=`CreateRouteResult`,nie=`CapacityReservationSpecificationResponse`,Yi=`CapacityReservationSpecification`,Xi=`CapacityReservationTarget`,rie=`CapacityReservationTargetResponse`,Zi=`CreateRouteTableRequest`,Qi=`CreateRouteTableResult`,$i=`CreateRouteTable`,ea=`CreateRoute`,ta=`CreateSecurityGroup`,na=`CreateSecurityGroupRequest`,ra=`CreateSecurityGroupResult`,ia=`CopySnapshotRequest`,aa=`CopySnapshotRequestPSU`,oa=`CopySnapshotResult`,sa=`CreateSnapshotRequest`,ca=`CreateSubnetRequest`,la=`CreateSubnetResult`,ua=`CreditSpecificationRequest`,da=`CopySnapshot`,fa=`CreditSpecification`,pa=`CreateSnapshot`,ma=`CreateSubnet`,ha=`CurrentState`,ga=`ClientToken`,_a=`ConnectionTrackingConfiguration`,va=`ConnectionTrackingSpecification`,ya=`ConnectionTrackingSpecificationRequest`,ba=`ConnectionTrackingSpecificationResponse`,xa=`CompletionTime`,Sa=`ConnectivityType`,Ca=`CreateTime`,wa=`CreateVolumeRequest`,Ta=`CreateVpcRequest`,Ea=`CreateVpcResult`,Da=`CreateVolume`,Oa=`CreateVpc`,ka=`Code`,Aa=`Configured`,ja=`Count`,Ma=`DescribeAddressesRequest`,Na=`DescribeAddressesResult`,Pa=`DisassociateAddressRequest`,Fa=`DeleteAssociatedSnapshots`,Ia=`DisableApiStop`,La=`DisableApiTermination`,Ra=`DestinationAvailabilityZone`,za=`DescribeAvailabilityZonesRequest`,Ba=`DescribeAvailabilityZonesResult`,Va=`DescribeAvailabilityZones`,Ha=`DescribeAddresses`,Ua=`DisassociateAddress`,Wa=`DestinationCidrBlock`,Ga=`DefaultConnectionTrackingConfiguration`,Ka=`DefaultCores`,qa=`DataEncryptionKeyId`,Ja=`DefaultEnaQueueCountPerInterface`,Ya=`DefaultForAz`,Xa=`DedicatedHostsSupported`,Za=`DeviceIndex`,Qa=`DestinationIpv6CidrBlock`,$a=`DeleteInternetGateway`,eo=`DeleteInternetGatewayRequest`,to=`DescribeInternetGatewaysRequest`,no=`DescribeInternetGatewaysResult`,ro=`DetachInternetGatewayRequest`,io=`DescribeInternetGateways`,ao=`DetachInternetGateway`,oo=`DisassociateIamInstanceProfile`,so=`DescribeIamInstanceProfileAssociations`,co=`DescribeIamInstanceProfileAssociationsRequest`,lo=`DescribeIamInstanceProfileAssociationsResult`,uo=`DisassociateIamInstanceProfileRequest`,fo=`DisassociateIamInstanceProfileResult`,po=`DiskInfoList`,mo=`DeregisterImageRequest`,ho=`DeregisterImageResult`,go=`DescribeImagesRequest`,_o=`DescribeImagesResult`,vo=`DescribeInstancesRequest`,yo=`DescribeInstancesResult`,bo=`DescribeInstanceTypesRequest`,xo=`DescribeInstanceTypesResult`,So=`DescribeInstanceTypes`,Co=`DeregisterImage`,wo=`DescribeImages`,To=`DescribeInstances`,Eo=`DiskInfo`,Do=`DeleteKeyPair`,Oo=`DeleteKeyPairRequest`,ko=`DeleteKeyPairResult`,Ao=`DescribeKeyPairsRequest`,jo=`DescribeKeyPairsResult`,Mo=`DescribeKeyPairs`,No=`DisableLniAtDeviceIndex`,Po=`DeviceName`,Fo=`DefaultNetworkCardIndex`,Io=`DeleteNatGateway`,Lo=`DeleteNatGatewayRequest`,Ro=`DeleteNatGatewayResult`,zo=`DescribeNatGatewaysRequest`,Bo=`DescribeNatGatewaysResult`,Vo=`DescribeNatGateways`,Ho=`DestinationOutpostArn`,Uo=`DhcpOptionsId`,Wo=`DeleteOnTermination`,Go=`DeletePlacementGroup`,Ko=`DeletePlacementGroupRequest`,qo=`DescribePlacementGroupsRequest`,Jo=`DescribePlacementGroupsResult`,Yo=`DescribePlacementGroups`,Xo=`DestinationPrefixListId`,Zo=`DeregistrationProtection`,f=`DryRun`,Qo=`DeleteRouteRequest`,$o=`DescribeRegionsRequest`,es=`DescribeRegionsResult`,ts=`DeleteRouteTable`,ns=`DeleteRouteTableRequest`,rs=`DescribeRouteTablesRequest`,is=`DescribeRouteTablesResult`,as=`DisassociateRouteTableRequest`,os=`DescribeRouteTables`,ss=`DisassociateRouteTable`,cs=`DestinationRegion`,ls=`DeleteRoute`,us=`DescribeRegions`,ds=`DeleteSecurityGroup`,fs=`DeleteSecurityGroupRequest`,ps=`DeleteSecurityGroupResult`,ms=`DescribeSecurityGroupsRequest`,hs=`DescribeSecurityGroupsResult`,gs=`DescribeSecurityGroups`,_s=`DeleteSnapshotRequest`,vs=`DeleteSnapshotReturnCode`,ys=`DeleteSnapshotResultSet`,bs=`DeleteSubnetRequest`,xs=`DeleteSnapshotResults`,Ss=`DescribeSnapshotsRequest`,Cs=`DescribeSnapshotsResult`,ws=`DescribeSubnetsRequest`,Ts=`DescribeSubnetsResult`,Es=`DeleteSnapshot`,Ds=`DeleteSubnet`,Os=`DescribeSnapshots`,ks=`DescribeSubnets`,As=`DefaultTcpEstablishedTimeout`,js=`DefaultThreadsPerCore`,Ms=`DeprecationTime`,Ns=`DeleteTime`,Ps=`DefaultUdpStreamTimeout`,Fs=`DefaultUdpTimeout`,Is=`DefaultVCpus`,Ls=`DeleteVolumeRequest`,Rs=`DeleteVpcRequest`,zs=`DescribeVolumesRequest`,Bs=`DescribeVolumesResult`,Vs=`DescribeVpcsRequest`,Hs=`DescribeVpcsResult`,Us=`DetachVolumeRequest`,Ws=`DeleteVolume`,Gs=`DeleteVpc`,Ks=`DescribeVolumes`,qs=`DescribeVpcs`,Js=`DetachVolume`,Ys=`Description`,Xs=`Device`,Zs=`Disks`,Qs=`Domain`,$s=`EbsBlockDevice`,ec=`ExecutableByStringList`,tc=`ExecutableBy`,nc=`EbsCardIndex`,rc=`EbsCardInfoList`,ic=`EbsCardInfo`,ac=`EbsCards`,oc=`EncryptionControl`,sc=`EnableDns64`,cc=`ElasticFileSystem`,lc=`ElasticFileSystemExclusion`,uc=`ElasticGpuAssociation`,dc=`ElasticGpuAssociationId`,fc=`ElasticGpuAssociationList`,pc=`ElasticGpuAssociationState`,mc=`ElasticGpuAssociationTime`,hc=`ElasticGpuAssociations`,gc=`ElasticGpuId`,_c=`ElasticGpuSpecification`,vc=`ElasticGpuSpecifications`,yc=`ElasticInferenceAccelerator`,bc=`ElasticInferenceAcceleratorAssociation`,xc=`ElasticInferenceAcceleratorAssociationId`,Sc=`ElasticInferenceAcceleratorAssociationList`,Cc=`ElasticInferenceAcceleratorAssociationState`,wc=`ElasticInferenceAcceleratorAssociationTime`,Tc=`ElasticInferenceAcceleratorArn`,Ec=`ElasticInferenceAcceleratorAssociations`,Dc=`ElasticInferenceAccelerators`,Oc=`EbsInstanceBlockDevice`,kc=`EbsInstanceBlockDeviceSpecification`,Ac=`EncryptionInTransitSupported`,jc=`EbsInfo`,Mc=`EfaInfo`,Nc=`EnableLniAtDeviceIndex`,Pc=`EbsOptimized`,Fc=`EbsOptimizedInfo`,Ic=`EgressOnlyInternetGateway`,Lc=`EgressOnlyInternetGatewayExclusion`,Rc=`EgressOnlyInternetGatewayId`,zc=`EnclaveOptionsRequest`,Bc=`EbsOptimizedSupport`,Vc=`EnclaveOptions`,Hc=`EnablePrimaryIpv6`,Uc=`EnaQueueCount`,Wc=`EnableResourceNameDnsAAAARecord`,Gc=`EnableResourceNameDnsAAAARecordOnLaunch`,Kc=`EnableResourceNameDnsARecord`,qc=`EnableResourceNameDnsARecordOnLaunch`,Jc=`EnaSrdEnabled`,Yc=`EnaSrdSpecification`,Xc=`EnaSrdSpecificationRequest`,Zc=`EnaSrdSupported`,Qc=`EnaSrdUdpEnabled`,$c=`EnaSrdUdpSpecification`,el=`EnaSrdUdpSpecificationRequest`,tl=`EfaSupported`,nl=`EncryptionSupport`,rl=`EnaSupport`,il=`EndTime`,al=`ExecutableUsers`,ol=`Ebs`,sl=`Enabled`,cl=`Encrypted`,ll=`Endpoint`,ul=`Force`,dl=`FailureCode`,fl=`FpgaDeviceInfo`,pl=`FpgaDeviceInfoList`,ml=`FpgaDeviceMemoryInfo`,hl=`FlexibleEnaQueuesSupport`,gl=`FpgaInfo`,_l=`FilterList`,vl=`FailureMessage`,yl=`FromPort`,bl=`FastRestored`,xl=`FullSnapshotSizeInBytes`,Sl=`FreeTierEligible`,Cl=`Filters`,wl=`Filter`,Tl=`Fpgas`,El=`Groups`,Dl=`GroupArn`,Ol=`GetConsoleOutput`,kl=`GetConsoleOutputRequest`,Al=`GetConsoleOutputResult`,jl=`GroupDescription`,Ml=`GpuDeviceInfo`,Nl=`GpuDeviceInfoList`,Pl=`GpuDeviceMemoryInfo`,Fl=`GatewayId`,Il=`GroupIdentifierList`,Ll=`GroupIdStringList`,Rl=`GpuInfo`,zl=`GroupId`,Bl=`GroupIds`,Vl=`GroupIdentifier`,Hl=`GroupLongName`,Ul=`GroupName`,Wl=`GroupNameStringList`,Gl=`GroupNames`,Kl=`GroupOwnerId`,ql=`GpuPartitionSize`,Jl=`Geography`,Yl=`Gpus`,Xl=`HiddenByDefault`,Zl=`HttpEndpoint`,Ql=`HostId`,$l=`HibernationOptions`,eu=`HibernationOptionsRequest`,tu=`HttpProtocolIpv6`,nu=`HttpPutResponseHopLimit`,ru=`HostResourceGroupArn`,iu=`HibernationSupported`,au=`HttpTokens`,ou=`HostnameType`,su=`Hibernate`,cu=`Hypervisor`,lu=`Id`,uu=`Ipv6Addresses`,du=`Ipv6AddressAttribute`,fu=`Ipv6AddressCount`,pu=`InstanceAttachmentEnaSrdSpecification`,mu=`InstanceAttachmentEnaSrdUdpSpecification`,hu=`InferenceAcceleratorInfo`,gu=`Ipv4AddressesPerInterface`,_u=`Ipv6AddressesPerInterface`,vu=`Ipv4AddressesPerSecondaryInterface`,yu=`ImageAllowed`,bu=`IpAddress`,xu=`Ipv6Address`,Su=`InstanceBlockDeviceMapping`,Cu=`InstanceBlockDeviceMappingList`,wu=`InstanceBlockDeviceMappingSpecification`,Tu=`InstanceBlockDeviceMappingSpecificationList`,Eu=`Ipv6CidrBlock`,Du=`Ipv6CidrBlockAssociationSet`,Ou=`Ipv6CidrBlockNetworkBorderGroup`,ku=`Ipv6CidrBlockState`,Au=`IncludeDeprecated`,ju=`InferenceDeviceInfo`,Mu=`InferenceDeviceInfoList`,Nu=`InferenceDeviceMemoryInfo`,Pu=`IncludeDisabled`,Fu=`IsDefault`,Iu=`IsEgress`,Lu=`InternetGateway`,Ru=`InternetGatewayAttachment`,zu=`InternetGatewayAttachmentList`,Bu=`InternetGatewayBlockMode`,Vu=`InternetGatewayExclusion`,Hu=`InternetGatewayId`,Uu=`InternetGatewayIdList`,Wu=`InternetGatewayIds`,Gu=`InternetGatewayList`,Ku=`InternetGateways`,qu=`InstanceId`,Ju=`InstanceIpv6Address`,Yu=`InstanceIpv6AddressList`,Xu=`InstanceInterruptionBehavior`,Zu=`IamInstanceProfile`,Qu=`IamInstanceProfileAssociation`,$u=`IamInstanceProfileAssociationSet`,ed=`IamInstanceProfileAssociations`,td=`Ipv6IpamPoolId`,nd=`Ipv4IpamPoolId`,rd=`InstanceIpv4PrefixList`,id=`InstanceIpv6PrefixList`,ad=`IamInstanceProfileSpecification`,od=`InstanceIpv4Prefix`,sd=`InstanceIpv6Prefix`,cd=`InstanceInitiatedShutdownBehavior`,ld=`ImageIdStringList`,ud=`InstanceIdStringList`,dd=`ImageId`,fd=`ImageIds`,pd=`InstanceIds`,md=`ImportKeyPair`,hd=`ImportKeyPairRequest`,gd=`ImportKeyPairResult`,_d=`ImageLocation`,vd=`ImageList`,yd=`InstanceLifecycle`,bd=`InstanceList`,xd=`IpList`,Sd=`InstanceMaintenanceOptions`,Cd=`InstanceMaintenanceOptionsRequest`,wd=`InstanceMarketOptionsRequest`,Td=`InstanceMetadataOptionsRequest`,Ed=`InstanceMetadataOptionsResponse`,Dd=`InstanceMarketOptions`,Od=`IncludeManagedResources`,kd=`InstanceMetadataTags`,Ad=`Ipv6Native`,jd=`InstanceNetworkInterface`,Md=`InstanceNetworkInterfaceAssociation`,Nd=`InstanceNetworkInterfaceAttachment`,Pd=`InstanceNetworkInterfaceList`,Fd=`InstanceNetworkInterfaceSpecification`,Id=`InstanceNetworkInterfaceSpecificationList`,Ld=`Ipv6NetmaskLength`,Rd=`Ipv4NetmaskLength`,zd=`InstanceNetworkPerformanceOptions`,Bd=`InstanceNetworkPerformanceOptionsRequest`,Vd=`ImageOwnerAlias`,Hd=`IpOwnerId`,Ud=`InstanceOwnerId`,Wd=`InstanceOwningService`,Gd=`Ipv6PrefixCount`,Kd=`Ipv4PrefixCount`,qd=`IpPermissionsEgress`,Jd=`IpamPoolId`,Yd=`InstancePrivateIpAddress`,Xd=`InstancePrivateIpAddressList`,iie=`IsPrimaryIpv6`,aie=`IncludePublicKey`,oie=`IpPermissionList`,sie=`Ipv4PrefixList`,cie=`Ipv6PrefixList`,lie=`Ipv4PrefixSpecificationRequest`,uie=`Ipv6PrefixSpecificationRequest`,Zd=`Ipv6Prefixes`,Qd=`IpPermissions`,die=`IpPermission`,$d=`IpProtocol`,ef=`Ipv6Prefix`,tf=`Ipv6Pool`,nf=`Ipv4Prefixes`,rf=`Ipv4Prefix`,fie=`IsPrimary`,pie=`IpRangeList`,mie=`Ipv6RangeList`,hie=`IpRanges`,gie=`IpRange`,_ie=`Ipv6Ranges`,vie=`Ipv6Range`,yie=`InstanceStateChange`,bie=`InstanceStateChangeList`,xie=`InstanceSecondaryInterfaceAttachment`,Sie=`InstanceSecondaryInterfaceList`,Cie=`InstanceSecondaryInterfacePrivateIpAddress`,wie=`InstanceSecondaryInterfacePrivateIpAddressList`,Tie=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,Eie=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Die=`InstanceSecondaryInterfaceSpecificationListRequest`,Oie=`InstanceSecondaryInterfaceSpecificationRequest`,kie=`InstanceSecondaryInterface`,af=`InstanceStorageInfo`,Aie=`InstanceStorageSupported`,of=`ImdsSupport`,jie=`InstanceState`,sf=`IpSource`,Mie=`Ipv6Supported`,cf=`InstanceType`,Nie=`InstanceTypeInfoList`,Pie=`InstanceTypeInfo`,Fie=`ImageType`,lf=`InstanceTenancy`,uf=`InstanceTypes`,df=`InterfaceType`,Iie=`IncludeUnsupportedInRegion`,Lie=`ImageWatermarks`,Rie=`ImageWatermarkList`,zie=`ImageWatermark`,Bie=`Images`,Vie=`Image`,Hie=`Instance`,Uie=`Instances`,ff=`Iops`,Wie=`Key`,Gie=`KeyFormat`,pf=`KeyFingerprint`,mf=`KernelId`,hf=`KmsKeyId`,Kie=`KeyMaterial`,gf=`KeyName`,qie=`KeyNameStringList`,Jie=`KeyNames`,Yie=`KeyPairs`,_f=`KeyPairId`,Xie=`KeyPairIdStringList`,Zie=`KeyPairIds`,Qie=`KeyPairInfo`,$ie=`KeyPairList`,eae=`KeyPair`,vf=`KeyType`,tae=`Kernel`,nae=`Lambda`,yf=`LicenseConfigurationArn`,rae=`LicenseConfigurationRequest`,iae=`LicenseConfiguration`,aae=`LambdaExclusion`,oae=`LogicalGpuCount`,bf=`LocalGatewayId`,xf=`LinkedGroupId`,sae=`LicenseList`,cae=`LastLaunchedTime`,lae=`LicenseSpecifications`,uae=`LicenseSpecificationListRequest`,dae=`LicenseSpecification`,fae=`LaunchTemplate`,pae=`LaunchTemplateId`,mae=`LaunchTemplateName`,hae=`LaunchTemplateSpecification`,gae=`LaunchTime`,_ae=`Latest`,vae=`Licenses`,yae=`Location`,Sf=`MultiAttachEnabled`,Cf=`MediaAcceleratorInfo`,wf=`MacAddress`,Tf=`MaximumBandwidthInMbps`,Ef=`MapCustomerOwnedIpOnLaunch`,bae=`MaxCount`,xae=`MinCount`,Sae=`MediaDeviceInfo`,Cae=`MediaDeviceInfoList`,wae=`MediaDeviceMemoryInfo`,Tae=`MaximumEbsAttachments`,Eae=`MaximumEbsCards`,Dae=`MaximumEfaInterfaces`,Oae=`MaximumEnaQueueCount`,kae=`MaximumEnaQueueCountPerInterface`,Df=`MaximumIops`,Aae=`ModifyInstanceAttributeRequest`,jae=`ModifyInstanceAttributeValue`,Mae=`ModifyInstanceAttribute`,Of=`MemoryInfo`,Nae=`MaximumNetworkCards`,kf=`MaximumNetworkInterfaces`,Af=`MetadataOptions`,jf=`MaintenanceOptions`,Mf=`MapPublicIpOnLaunch`,Pae=`MaxPrice`,Nf=`MaxResults`,Fae=`ModifySubnetAttributeRequest`,Iae=`ModifySubnetAttribute`,Lae=`MaximumSecondaryNetworkInterfaces`,Pf=`ModificationState`,Rae=`MarketType`,Ff=`MaximumThroughputInMBps`,zae=`ModifyVolumeRequest`,Bae=`ModifyVolumeResult`,Vae=`ModifyVolume`,Hae=`Main`,If=`Manufacturer`,Uae=`Managed`,Lf=`Message`,Wae=`Messages`,Rf=`Mode`,zf=`Monitoring`,Bf=`Name`,Vf=`NetworkBorderGroup`,Gae=`NetworkCards`,Hf=`NetworkCardIndex`,Kae=`NetworkCardInfoList`,qae=`NetworkCardInfo`,Uf=`NoDevice`,Jae=`NeuronDeviceCoreInfo`,Yae=`NeuronDeviceInfo`,Xae=`NeuronDeviceInfoList`,Zae=`NeuronDeviceMemoryInfo`,Qae=`NeuronDevices`,$ae=`NitroEnclavesSupport`,Wf=`NatGateway`,eoe=`NatGatewayAddresses`,toe=`NatGatewayAttachedAppliance`,noe=`NatGatewayAttachedApplianceList`,roe=`NatGatewayAddressList`,ioe=`NatGatewayAddress`,aoe=`NatGatewayExclusion`,Gf=`NatGatewayId`,ooe=`NatGatewayIdStringList`,soe=`NatGatewayIds`,coe=`NatGatewayList`,loe=`NatGateways`,Kf=`NetworkInterfaceId`,uoe=`NetworkInterfaceOwnerId`,qf=`NetworkInterfaces`,Jf=`NetworkInfo`,Yf=`NeuronInfo`,Xf=`NetworkPerformanceOptions`,Zf=`NetworkPerformance`,doe=`NoReboot`,Qf=`NvmeSupport`,$f=`NitroTpmInfo`,foe=`NitroTpmSupport`,poe=`NitroTpmSupportedVersionsList`,ep=`NextToken`,tp=`NestedVirtualization`,moe=`Origin`,np=`OutpostArn`,hoe=`OwnerAlias`,rp=`OwnerId`,ip=`OptInStatus`,goe=`OriginalIops`,_oe=`OwnerIds`,voe=`OriginalMultiAttachEnabled`,ap=`OdbNetworkArn`,yoe=`OperatorRequest`,boe=`OperatorResponse`,xoe=`OwnerStringList`,Soe=`OriginalSize`,Coe=`OriginalThroughput`,woe=`OriginalVolumeType`,op=`Operator`,Toe=`Output`,Eoe=`Owners`,sp=`Owner`,cp=`Principal`,lp=`ProvisionedBandwidth`,Doe=`PeakBandwidthInGbps`,Ooe=`ProductCodeId`,koe=`ProductCodeList`,Aoe=`ProductCodeType`,up=`PartitionCount`,joe=`ProductCode`,dp=`ProductCodes`,Moe=`PrivateDnsHostnameTypeOnLaunch`,fp=`PrivateDnsName`,pp=`PrivateDnsNameOptions`,mp=`PrivateDnsNameOptionsOnLaunch`,Noe=`PrivateDnsNameOptionsRequest`,Poe=`PrivateDnsNameOptionsResponse`,hp=`PublicDnsName`,gp=`PlatformDetails`,_p=`PlacementGroup`,vp=`ParentGroupId`,Foe=`PlacementGroupIdStringList`,yp=`PlacementGroupInfo`,Ioe=`PlacementGroupList`,Loe=`PlacementGroupStrategyList`,Roe=`PlacementGroups`,bp=`PublicIp`,zoe=`PrivateIpAddressCount`,Boe=`PrivateIpAddressSpecification`,Voe=`PrivateIpAddressSpecificationList`,xp=`PrivateIpAddress`,Sp=`PrivateIpAddresses`,Hoe=`PublicIpAddress`,Cp=`PublicIpv4Pool`,Uoe=`PublicIpStringList`,Woe=`PrimaryIpv6`,Goe=`PrivateIp`,wp=`ProcessorInfo`,Koe=`PublicIps`,qoe=`PublicKey`,Joe=`PublicKeyMaterial`,Tp=`PrefixListId`,Yoe=`PrefixListIdList`,Xoe=`PrefixListIds`,Zoe=`PartitionNumber`,Ep=`PeeringStatus`,Qoe=`PhcSupport`,$oe=`PreviousState`,ese=`ProvisionTime`,tse=`PresignedUrl`,nse=`PropagatingVgw`,rse=`PropagatingVgwList`,ise=`PropagatingVgws`,ase=`ParentZoneId`,ose=`ParentZoneName`,Dp=`Platform`,Op=`Placement`,kp=`Primary`,Ap=`Progress`,sse=`Provisioned`,cse=`Public`,jp=`Return`,lse=`ReleaseAddressRequest`,use=`ReleaseAddress`,dse=`RestorableByUserIds`,fse=`RestorableBy`,pse=`ReturnCode`,Mp=`RootDeviceName`,Np=`RootDeviceType`,mse=`RootDeviceTypeList`,hse=`RestoreExpiryTime`,gse=`ResourceExclusions`,_se=`RegionGeography`,vse=`ReferencedGroupId`,yse=`ReferencedGroupInfo`,bse=`RegionGeographyList`,xse=`RunInstancesMonitoringEnabled`,Sse=`RebootInstancesRequest`,Cse=`RegisterImageRequest`,wse=`RegisterImageResult`,Tse=`RunInstancesRequest`,Ese=`RunInstancesUserData`,Pp=`RamdiskId`,Dse=`ReservationId`,Ose=`RebootInstances`,kse=`RegisterImage`,Ase=`RequesterId`,jse=`RunInstances`,Mse=`RegionList`,Nse=`ReservationList`,Pse=`RouteList`,Fse=`RebootMigrationSupport`,Ise=`RebootMigration`,Fp=`RegionName`,Lse=`RegionNameStringList`,Rse=`RegionNames`,zse=`ReferencedSecurityGroup`,Bse=`RevokeSecurityGroupEgress`,Vse=`RevokeSecurityGroupEgressRequest`,Hse=`RevokeSecurityGroupEgressResult`,Use=`RevokeSecurityGroupIngressRequest`,Wse=`RevokeSecurityGroupIngressResult`,Gse=`RevokeSecurityGroupIngress`,Kse=`RevokedSecurityGroupRule`,qse=`RevokedSecurityGroupRuleList`,Ip=`RevokedSecurityGroupRules`,Jse=`RouteTableAssociation`,Yse=`RouteTableAssociationId`,Xse=`RouteTableAssociationList`,Zse=`RouteTableAssociationState`,Lp=`RouteTableId`,Qse=`RouteTableIdStringList`,$se=`RouteTableIds`,ece=`RouteTableList`,tce=`ResourceType`,nce=`RequestTime`,Rp=`RouteTable`,rce=`RouteTables`,ice=`Ramdisk`,ace=`Regions`,oce=`Region`,sce=`Requested`,cce=`Reservations`,lce=`Reservation`,uce=`Route`,dce=`Routes`,fce=`SecondaryAllocationIds`,pce=`SecondaryAllocationId`,mce=`SupportedAdditionalProcessorFeatureList`,hce=`SubnetArn`,gce=`SupportedArchitectures`,_ce=`SupportedBootModes`,vce=`SubnetCidrBlockState`,yce=`SustainedClockSpeedInGhz`,zp=`SourceDestCheck`,bce=`SpreadDomain`,xce=`SupportedFeatures`,Sce=`SubGeography`,Bp=`SecurityGroupArn`,Vp=`SecurityGroupId`,Cce=`SecurityGroupIdStringList`,wce=`SecurityGroupIds`,Tce=`SecurityGroupList`,Hp=`SecurityGroupRules`,Ece=`SecurityGroupRuleArn`,Up=`SecurityGroupRuleIds`,Dce=`SecurityGroupRuleIdList`,Wp=`SecurityGroupRuleId`,Oce=`SecurityGroupRuleList`,kce=`SecurityGroupRule`,Ace=`SecurityGroupStringList`,Gp=`SecurityGroups`,Kp=`SecurityGroup`,jce=`SubnetIds`,Mce=`SubnetIpv6CidrBlockAssociation`,Nce=`SubnetIpv6CidrBlockAssociationSet`,Pce=`SourceImageCreationTime`,Fce=`SizeInGB`,qp=`SourceImageId`,Ice=`SecondaryInterfaceId`,Lce=`SourceInstanceId`,Jp=`SizeInMiB`,Rce=`SpotInstanceRequestId`,Yp=`SourceImageRegion`,zce=`StartInstancesRequest`,Bce=`StartInstancesResult`,Vce=`StopInstancesRequest`,Hce=`StopInstancesResult`,Uce=`SupportedInRegion`,Wce=`SnapshotIdStringList`,Gce=`SubnetIdStringList`,Kce=`SpotInstanceType`,Xp=`SecondaryInterfaces`,qce=`SecondaryInterface`,Zp=`SnapshotId`,Jce=`SnapshotIds`,Yce=`StartingInstances`,Xce=`StartInstances`,Zce=`StoppingInstances`,Qce=`StopInstances`,Qp=`SubnetId`,$ce=`SnapshotLocation`,ele=`SnapshotList`,$p=`SpreadLevel`,tle=`SubnetList`,nle=`ServiceManaged`,rle=`SpotMarketOptions`,em=`StatusMessage`,tm=`StateMessage`,ile=`SecondaryNetworkId`,nm=`SriovNetSupport`,ale=`SecondaryNetworkSupported`,ole=`SpotOptions`,rm=`SkipOsShutdown`,sle=`SecondaryPrivateIpAddresses`,im=`SecondaryPrivateIpAddressCount`,cle=`SecondaryPrivateIpAddress`,lle=`SupportedRootDeviceTypes`,ule=`SourceRegion`,am=`StateReason`,om=`SourceSecurityGroupName`,sm=`SourceSecurityGroupOwnerId`,dle=`SourceSnapshotId`,cm=`SecondarySubnetId`,fle=`SupportedStrategies`,lm=`StartTime`,ple=`StateTransitionReason`,um=`SseType`,mle=`StorageTier`,hle=`SupportedUsageClasses`,gle=`SensitiveUserData`,_le=`SourceVolumeId`,vle=`SupportedVirtualizationTypes`,yle=`SupportedVersions`,dm=`Size`,ble=`Snapshots`,xle=`Snapshot`,fm=`State`,pm=`Status`,mm=`Strategy`,hm=`Subnet`,Sle=`Subnets`,gm=`Tags`,_m=`TcpEstablishedTimeout`,Cle=`TotalFpgaMemoryInMiB`,vm=`TransitGatewayId`,wle=`TotalGpuMemoryInMiB`,Tle=`TerminateInstances`,Ele=`TotalInferenceMemoryInMiB`,Dle=`TerminateInstancesRequest`,Ole=`TerminateInstancesResult`,kle=`TargetIops`,Ale=`TerminatingInstances`,jle=`TagList`,Mle=`TargetMultiAttachEnabled`,Nle=`TotalMediaMemoryInMiB`,Ple=`TotalNeuronDeviceMemoryInMiB`,ym=`ToPort`,bm=`ThreadsPerCore`,Fle=`ThreadsPerCoreList`,xm=`TagSpecifications`,Ile=`TotalSizeInGB`,Lle=`TagSpecificationList`,Sm=`TagSpecification`,Rle=`TargetSize`,Cm=`TpmSupport`,zle=`TargetThroughput`,Ble=`TransferType`,Vle=`TargetVolumeType`,wm=`Tag`,Hle=`Tenancy`,Tm=`Throughput`,Em=`Timestamp`,Dm=`Type`,Ule=`UsageClassTypeList`,Wle=`UefiData`,Om=`UserData`,km=`UserId`,Gle=`UserIdGroupPairs`,Kle=`UserIdGroupPairList`,qle=`UserIdGroupPair`,Am=`UnknownIpPermissions`,jm=`UsageOperation`,Jle=`UsageOperationUpdateTime`,Mm=`UdpStreamTimeout`,Nm=`UdpTimeout`,Pm=`Value`,Yle=`VolumeAttachmentList`,Xle=`VolumeAttachment`,Zle=`VpcCidrBlockAssociation`,Qle=`VpcCidrBlockAssociationSet`,$le=`VpcCidrBlockState`,Fm=`VCpuInfo`,eue=`ValidCores`,Im=`VpcEncryptionControl`,tue=`VpcEncryptionControlConfiguration`,nue=`VpcEncryptionControlExclusion`,rue=`VpcEncryptionControlExclusions`,iue=`VpcEncryptionControlId`,Lm=`VpcEndpointId`,Rm=`VpcId`,aue=`VpcIpv6CidrBlockAssociation`,oue=`VpcIpv6CidrBlockAssociationSet`,zm=`VolumeInitializationRate`,sue=`VolumeIdStringList`,cue=`VpcIdStringList`,Bm=`VolumeId`,lue=`VolumeIds`,uue=`VpcIds`,due=`VpcLattice`,fue=`VpcLatticeExclusion`,pue=`VolumeList`,mue=`VpcList`,Vm=`VolumeModification`,Hm=`VirtualName`,hue=`VolumeOwnerId`,gue=`VpcPeering`,Um=`VpcPeeringConnectionId`,_ue=`VpcPeeringExclusion`,vue=`VirtualPrivateGateway`,yue=`VirtualPrivateGatewayExclusion`,bue=`ValueStringList`,Wm=`VolumeSize`,Gm=`VolumeType`,xue=`VirtualizationTypeList`,Sue=`ValidThreadsPerCore`,Km=`VirtualizationType`,Cue=`ValidUntil`,wue=`Values`,qm=`Version`,Tue=`Volumes`,Eue=`Volume`,Jm=`Vpc`,Due=`Vpcs`,Oue=`WatermarkCreationTime`,kue=`WatermarkKey`,Aue=`WorkloadsList`,jue=`Workloads`,Ym=`ZoneId`,Mue=`ZoneIdStringList`,Nue=`ZoneIds`,Xm=`ZoneName`,Pue=`ZoneNameStringList`,Fue=`ZoneNames`,Iue=`ZoneType`,Lue=`attachedApplianceSet`,Rue=`applianceArn`,zue=`additionalFlexibleNetworkInterfaces`,Zm=`allocationId`,Bue=`availableIpAddressCount`,Vue=`assignIpv6AddressOnCreation`,Qm=`additionalInfo`,$m=`associationId`,eh=`attachmentId`,Hue=`amiLaunchIndex`,Uue=`attachmentLimitType`,Wue=`availabilityMode`,Gue=`associatePublicIpAddress`,Kue=`amazonProvidedIpv6CidrBlock`,que=`autoProvisionZones`,Jue=`autoRecoverySupported`,Yue=`allowReassociation`,th=`associatedResource`,Xue=`autoRecovery`,nh=`associationState`,Zue=`autoScalingIps`,Que=`amdSevSnp`,$ue=`addressesSet`,ede=`associationSet`,rh=`attachmentSet`,tde=`attachmentState`,ih=`attachTime`,ah=`availabilityZone`,oh=`availabilityZoneId`,nde=`availabilityZoneInfo`,sh=`accelerators`,rde=`affinity`,ch=`arn`,lh=`architecture`,uh=`association`,dh=`attachment`,ide=`attribute`,ade=`baselineBandwidthInGbps`,fh=`baselineBandwidthInMbps`,ph=`blockDeviceMapping`,mh=`baselineIops`,hh=`bootMode`,ode=`bareMetal`,gh=`blockPublicAccessStates`,sde=`burstablePerformanceSupported`,_h=`baselineThroughputInMBps`,cde=`bandwidthWeighting`,lde=`bandwidthWeightings`,vh=`cidrBlock`,ude=`cidrBlockAssociationSet`,dde=`capacityBlockId`,fde=`cidrBlockState`,pde=`coreCount`,mde=`completionDurationMinutes`,hde=`creationDate`,gde=`carrierGatewayId`,_de=`currentGeneration`,yh=`carrierIp`,vde=`currentInstanceBootMode`,bh=`cidrIp`,xh=`cidrIpv6`,Sh=`cidrIpv4`,yde=`coreInfo`,bde=`coreNetworkArn`,xde=`cpuOptions`,Ch=`customerOwnedIp`,wh=`customerOwnedIpv4Pool`,Th=`capacityReservationId`,Sde=`capacityReservationPreference`,Cde=`capacityReservationResourceGroupArn`,wde=`capacityReservationSpecification`,Tde=`capacityReservationTarget`,Ede=`currentState`,Eh=`clientToken`,Dh=`connectionTrackingConfiguration`,Dde=`completionTime`,Ode=`connectivityType`,Oh=`createTime`,kh=`code`,kde=`configured`,Ah=`count`,jh=`disableApiTermination`,Mh=`destinationCidrBlock`,Ade=`defaultCores`,jde=`dataEncryptionKeyId`,Mde=`defaultEnaQueueCountPerInterface`,Nde=`defaultForAz`,Pde=`dedicatedHostsSupported`,Nh=`deviceIndex`,Ph=`destinationIpv6CidrBlock`,Fh=`deviceName`,Fde=`defaultNetworkCardIndex`,Ide=`dnsName`,Lde=`dhcpOptionsId`,Ih=`deleteOnTermination`,Rde=`destinationPrefixListId`,zde=`deregistrationProtection`,p=`dryRun`,Bde=`destinationRegion`,Vde=`deleteSnapshotResultSet`,Hde=`defaultTcpEstablishedTimeout`,Ude=`defaultThreadsPerCore`,Wde=`deprecationTime`,Gde=`deleteTime`,Kde=`defaultUdpStreamTimeout`,qde=`defaultUdpTimeout`,Jde=`defaultVCpus`,Lh=`description`,Yde=`device`,Xde=`disks`,Rh=`domain`,zh=`ebsCardIndex`,Zde=`ebsCardSet`,Qde=`encryptionControl`,$de=`enableDns64`,efe=`elasticFileSystem`,tfe=`elasticGpuAssociationId`,nfe=`elasticGpuAssociationState`,rfe=`elasticGpuAssociationSet`,ife=`elasticGpuAssociationTime`,afe=`elasticGpuId`,ofe=`elasticInferenceAcceleratorArn`,sfe=`elasticInferenceAcceleratorAssociationId`,cfe=`elasticInferenceAcceleratorAssociationState`,lfe=`elasticInferenceAcceleratorAssociationSet`,ufe=`elasticInferenceAcceleratorAssociationTime`,dfe=`encryptionInTransitSupported`,ffe=`ebsInfo`,pfe=`efaInfo`,mfe=`enableLniAtDeviceIndex`,Bh=`ebsOptimized`,hfe=`ebsOptimizedInfo`,gfe=`egressOnlyInternetGateway`,Vh=`egressOnlyInternetGatewayId`,_fe=`ebsOptimizedSupport`,vfe=`enclaveOptions`,yfe=`enaQueueCount`,m=`ec2QueryName`,Hh=`enableResourceNameDnsAAAARecord`,Uh=`enableResourceNameDnsARecord`,bfe=`enaSrdEnabled`,xfe=`enaSrdSpecification`,Sfe=`enaSrdSupported`,Cfe=`enaSrdUdpEnabled`,wfe=`enaSrdUdpSpecification`,Tfe=`efaSupported`,Wh=`encryptionSupport`,Gh=`enaSupport`,Efe=`endTime`,Kh=`ebs`,qh=`enabled`,Jh=`encrypted`,Yh=`failureCode`,Dfe=`flexibleEnaQueuesSupport`,Ofe=`fpgaInfo`,Xh=`failureMessage`,Zh=`fromPort`,kfe=`fastRestored`,Afe=`fullSnapshotSizeInBytes`,Qh=`freeTierEligible`,jfe=`force`,Mfe=`fpgas`,Nfe=`groupArn`,Pfe=`groupDescription`,$h=`gatewayId`,Ffe=`gpuInfo`,eg=`groupId`,tg=`groupLongName`,ng=`groupName`,rg=`groupOwnerId`,ig=`gpuPartitionSize`,ag=`geographySet`,og=`groupSet`,sg=`gpus`,cg=`groups`,lg=`hypervisor`,ug=`hiddenByDefault`,dg=`httpEndpoint`,fg=`hostId`,pg=`hibernationOptions`,mg=`httpProtocolIpv6`,hg=`httpPutResponseHopLimit`,gg=`hostResourceGroupArn`,_g=`hibernationSupported`,vg=`httpTokens`,yg=`hostnameType`,bg=`id`,xg=`ipv6AddressAttribute`,Sg=`ipv6AddressCount`,Cg=`inferenceAcceleratorInfo`,wg=`ipv4AddressesPerInterface`,Tg=`ipv6AddressesPerInterface`,Eg=`ipv4AddressesPerSecondaryInterface`,Dg=`ipv6AddressesSet`,Og=`imageAllowed`,kg=`ipAddress`,Ag=`ipv6Address`,jg=`ipv6CidrBlock`,Mg=`ipv6CidrBlockAssociationSet`,Ng=`ipv6CidrBlockState`,Pg=`isDefault`,Fg=`isEgress`,Ig=`internetGateway`,Lg=`internetGatewayBlockMode`,Rg=`internetGatewayId`,zg=`internetGatewaySet`,Bg=`instanceId`,Vg=`iamInstanceProfile`,Hg=`iamInstanceProfileAssociation`,Ug=`iamInstanceProfileAssociationSet`,Wg=`instanceInitiatedShutdownBehavior`,Gg=`imageId`,Kg=`imageLocation`,qg=`instanceLifecycle`,Jg=`instanceMetadataTags`,Yg=`ipv6Native`,Xg=`imageOwnerAlias`,Zg=`imageOwnerId`,Qg=`instanceOwnerId`,$g=`ipOwnerId`,e_=`instanceOwningService`,t_=`ipPermissionsEgress`,n_=`isPrimaryIpv6`,r_=`ipv4PrefixSet`,i_=`ipv6PrefixSet`,a_=`ipProtocol`,o_=`ipPermissions`,s_=`ipv4Prefix`,c_=`ipv6Pool`,l_=`ipv6Prefix`,u_=`isPublic`,d_=`isPrimary`,f_=`ipRanges`,p_=`ipv6Ranges`,m_=`instanceStorageInfo`,h_=`instanceStorageSupported`,g_=`imagesSet`,__=`imageState`,v_=`imdsSupport`,y_=`instancesSet`,b_=`instanceState`,x_=`ipSource`,S_=`ipv6Supported`,C_=`instanceType`,w_=`instanceTypeSet`,T_=`idempotencyToken`,E_=`imageType`,D_=`instanceTenancy`,O_=`interfaceType`,k_=`imageWatermarkSet`,A_=`iops`,h=`item`,j_=`key`,M_=`keyFingerprint`,N_=`kernelId`,P_=`kmsKeyId`,F_=`keyMaterial`,I_=`keyName`,L_=`keyPairId`,R_=`keySet`,z_=`keyType`,B_=`kernel`,V_=`lambda`,H_=`licenseConfigurationArn`,U_=`logicalGpuCount`,W_=`localGatewayId`,G_=`linkedGroupId`,K_=`lastLaunchedTime`,q_=`licenseSet`,J_=`launchTime`,Y_=`multiAttachEnabled`,X_=`mediaAcceleratorInfo`,Z_=`macAddress`,Q_=`maximumBandwidthInMbps`,$_=`mapCustomerOwnedIpOnLaunch`,ev=`maximumEbsAttachments`,tv=`maximumEbsCards`,nv=`maximumEfaInterfaces`,rv=`maximumEnaQueueCount`,iv=`maximumEnaQueueCountPerInterface`,av=`maximumIops`,ov=`memoryInfo`,sv=`maximumNetworkCards`,cv=`maximumNetworkInterfaces`,lv=`metadataOptions`,uv=`maintenanceOptions`,dv=`mapPublicIpOnLaunch`,fv=`maxResults`,pv=`messageSet`,mv=`maximumSecondaryNetworkInterfaces`,hv=`modificationState`,gv=`maximumThroughputInMBps`,_v=`main`,vv=`manufacturer`,yv=`managed`,bv=`message`,xv=`mode`,Sv=`monitoring`,Cv=`name`,wv=`networkBorderGroup`,Tv=`networkCards`,Ev=`networkCardIndex`,Dv=`noDevice`,Ov=`neuronDevices`,kv=`nitroEnclavesSupport`,Av=`natGateway`,jv=`natGatewayAddressSet`,Mv=`natGatewayId`,Nv=`natGatewaySet`,Pv=`networkInterfaceId`,Fv=`networkInterfaceOwnerId`,Iv=`networkInterfaceSet`,Lv=`networkInterface`,Rv=`networkInfo`,zv=`neuronInfo`,Bv=`networkPerformanceOptions`,Vv=`networkPerformance`,Hv=`noReboot`,Uv=`nvmeSupport`,Wv=`nitroTpmInfo`,Gv=`nitroTpmSupport`,Kv=`nextToken`,qv=`nestedVirtualization`,Jv=`origin`,Yv=`outpostArn`,Xv=`ownerAlias`,Zv=`ownerId`,Qv=`optInStatus`,$v=`originalIops`,ey=`originalMultiAttachEnabled`,ty=`odbNetworkArn`,ny=`originalSize`,ry=`originalThroughput`,iy=`originalVolumeType`,ay=`operator`,oy=`output`,sy=`principal`,cy=`provisionedBandwidth`,ly=`peakBandwidthInGbps`,uy=`productCodes`,dy=`partitionCount`,fy=`productCode`,py=`privateDnsNameOptions`,my=`privateDnsNameOptionsOnLaunch`,hy=`privateDnsName`,gy=`publicDnsName`,_y=`platformDetails`,vy=`placementGroup`,yy=`placementGroupInfo`,by=`parentGroupId`,xy=`placementGroupSet`,Sy=`publicIp`,Cy=`privateIpAddressesSet`,wy=`privateIpAddressSet`,Ty=`privateIpAddress`,Ey=`publicIpv4Pool`,Dy=`processorInfo`,Oy=`privateIp`,ky=`publicKey`,Ay=`publicKeyMaterial`,jy=`prefixListId`,My=`prefixListIds`,Ny=`partitionNumber`,Py=`peeringStatus`,Fy=`phcSupport`,Iy=`previousState`,Ly=`provisionTime`,Ry=`presignedUrl`,zy=`propagatingVgwSet`,By=`parentZoneId`,Vy=`parentZoneName`,Hy=`platform`,Uy=`placement`,Wy=`primary`,Gy=`progress`,Ky=`provisioned`,qy=`return`,Jy=`returnCode`,Yy=`rootDeviceName`,Xy=`rootDeviceType`,Zy=`restoreExpiryTime`,Qy=`regionEndpoint`,$y=`resourceExclusions`,eb=`referencedGroupId`,tb=`referencedGroupInfo`,nb=`reservationId`,rb=`ramdiskId`,ib=`regionInfo`,ab=`requesterId`,ob=`rebootMigrationSupport`,sb=`rebootMigration`,cb=`regionName`,lb=`revokedSecurityGroupRuleSet`,ub=`reservationSet`,db=`routeSet`,fb=`routeTableAssociationId`,pb=`routeTableId`,mb=`routeTableSet`,hb=`resourceType`,gb=`requestTime`,_b=`routeTable`,vb=`ramdisk`,yb=`reason`,bb=`requested`,xb=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,Sb=`supportedArchitectures`,Cb=`subnetArn`,wb=`supportedBootModes`,Tb=`sustainedClockSpeedInGhz`,Eb=`sourceDestCheck`,Db=`spreadDomain`,Ob=`supportedFeatures`,kb=`securityGroupArn`,Ab=`securityGroupInfo`,jb=`securityGroupRuleArn`,Mb=`securityGroupRuleId`,Nb=`securityGroupRuleSet`,Pb=`subGeographySet`,Fb=`sourceImageCreationTime`,Ib=`sizeInGB`,Lb=`sourceInstanceId`,Rb=`secondaryInterfaceId`,zb=`sourceImageId`,Bb=`sizeInMiB`,Vb=`sourceImageRegion`,Hb=`spotInstanceRequestId`,Ub=`supportedInRegion`,Wb=`secondaryInterfaceSet`,Gb=`snapshotId`,Kb=`subnetId`,qb=`spreadLevel`,Jb=`serviceManaged`,Yb=`statusMessage`,Xb=`stateMessage`,Zb=`secondaryNetworkId`,Qb=`secondaryNetworkSupported`,$b=`sriovNetSupport`,ex=`secondaryPrivateIpAddressCount`,tx=`supportedRootDeviceTypes`,nx=`stateReason`,rx=`sourceSecurityGroupName`,ix=`sourceSecurityGroupOwnerId`,ax=`secondarySubnetId`,ox=`snapshotSet`,sx=`subnetSet`,cx=`supportedStrategies`,lx=`startTime`,ux=`sseType`,dx=`storageTier`,fx=`supportedUsageClasses`,px=`sourceVolumeId`,mx=`supportedVirtualizationTypes`,hx=`supportedVersions`,gx=`size`,_x=`state`,vx=`status`,yx=`strategy`,bx=`subnet`,xx=`tenancy`,Sx=`tcpEstablishedTimeout`,Cx=`totalFpgaMemoryInMiB`,wx=`transitGatewayId`,Tx=`totalGpuMemoryInMiB`,Ex=`totalInferenceMemoryInMiB`,Dx=`targetIops`,Ox=`targetMultiAttachEnabled`,kx=`totalMediaMemoryInMiB`,Ax=`totalNeuronDeviceMemoryInMiB`,jx=`toPort`,Mx=`threadsPerCore`,Nx=`tagSet`,Px=`totalSizeInGB`,Fx=`targetSize`,Ix=`tpmSupport`,Lx=`targetThroughput`,Rx=`transferType`,zx=`targetVolumeType`,Bx=`throughput`,Vx=`timestamp`,Hx=`type`,Ux=`userData`,Wx=`userId`,Gx=`unknownIpPermissionSet`,Kx=`usageOperation`,qx=`usageOperationUpdateTime`,Jx=`udpStreamTimeout`,Yx=`udpTimeout`,Xx=`value`,Zx=`vCpuInfo`,Qx=`validCores`,$x=`vpcEncryptionControlId`,eS=`vpcEndpointId`,tS=`vpcId`,nS=`volumeInitializationRate`,rS=`volumeId`,iS=`vpcLattice`,aS=`volumeModification`,oS=`virtualName`,sS=`volumeOwnerId`,cS=`vpcPeering`,lS=`vpcPeeringConnectionId`,uS=`virtualPrivateGateway`,dS=`volumeSet`,fS=`volumeSize`,pS=`vpcSet`,mS=`volumeType`,hS=`validThreadsPerCore`,gS=`virtualizationType`,_S=`version`,vS=`vpc`,yS=`watermarkCreationTime`,bS=`watermarkKey`,xS=`workloadSet`,g=`xmlName`,SS=`zoneId`,CS=`zoneName`,wS=`zoneState`,TS=`zoneType`,_=`com.amazonaws.ec2`,ES=dt.for(xb),DS=[-3,xb,`EC2ServiceException`,0,[],[]];ES.registerError(DS,pne);var OS=[ES],kS=[0,_,aa,8,0],AS=[0,_,jae,8,0],jS=[0,_,Ese,8,0],MS=[0,_,gle,8,0],NS=[3,_,ri,0,[oi,ci,Qs,Kf,uoe,xp,gm,Cp,Vf,Wi,Gi,Ri,Qp,nle,qu,bp],[[0,{[m]:`AllocationId`,[g]:Zm}],[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`Domain`,[g]:Rh}],[0,{[m]:`NetworkInterfaceId`,[g]:Pv}],[0,{[m]:`NetworkInterfaceOwnerId`,[g]:Fv}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`PublicIpv4Pool`,[g]:Ey}],[0,{[m]:`NetworkBorderGroup`,[g]:wv}],[0,{[m]:`CustomerOwnedIp`,[g]:Ch}],[0,{[m]:`CustomerOwnedIpv4Pool`,[g]:wh}],[0,{[m]:`CarrierIp`,[g]:yh}],[0,{[m]:`SubnetId`,[g]:Kb}],[0,{[m]:`ServiceManaged`,[g]:Jb}],[0,{[m]:`InstanceId`,[g]:Bg}],[0,{[m]:`PublicIp`,[g]:Sy}]]],PS=[3,_,mne,0,[Qs,ri,Cp,Vf,Gi,xm,Jd,f],[0,0,0,0,0,[()=>Pk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}]]],FS=[3,_,hne,0,[oi,Cp,Vf,Qs,Wi,Gi,Ri,bp],[[0,{[m]:`AllocationId`,[g]:Zm}],[0,{[m]:`PublicIpv4Pool`,[g]:Ey}],[0,{[m]:`NetworkBorderGroup`,[g]:wv}],[0,{[m]:`Domain`,[g]:Rh}],[0,{[m]:`CustomerOwnedIp`,[g]:Ch}],[0,{[m]:`CustomerOwnedIpv4Pool`,[g]:wh}],[0,{[m]:`CarrierIp`,[g]:yh}],[0,{[m]:`PublicIp`,[g]:Sy}]]],IS=[3,_,gne,0,[oi,qu,bp,f,Kf,xp,Gne],[0,0,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`NetworkInterfaceId`,[g]:Pv}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}],[2,{[m]:`AllowReassociation`,[g]:Yue}]]],LS=[3,_,_ne,0,[ci],[[0,{[m]:`AssociationId`,[g]:$m}]]],RS=[3,_,Ane,0,[Zu,qu],[[()=>gT,0],0],2],zS=[3,_,jne,0,[Qu],[[()=>hT,{[m]:`IamInstanceProfileAssociation`,[g]:Hg}]]],BS=[3,_,Hne,0,[Lp,Fl,Cp,f,Qp],[[0,{[m]:`RouteTableId`,[g]:pb}],0,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`SubnetId`,[g]:Kb}]],1],VS=[3,_,Une,0,[ci,pi],[[0,{[m]:`AssociationId`,[g]:$m}],[()=>oD,{[m]:`AssociationState`,[g]:nh}]]],HS=[3,_,One,0,[Hu,Rm,f],[[0,{[m]:`InternetGatewayId`,[g]:Rg}],[0,{[m]:`VpcId`,[g]:tS}],[2,{[m]:`DryRun`,[g]:p}]],2],US=[3,_,nre,0,[Xs,qu,Bm,nc,f],[0,0,0,1,[2,{[m]:`DryRun`,[g]:p}]],3],WS=[3,_,Cne,0,[Pm],[[2,{[m]:`Value`,[g]:Xx}]]],GS=[3,_,rre,0,[Pm],[[0,{[m]:`Value`,[g]:Xx}]]],KS=[3,_,Jne,0,[zl,xm,f,om,sm,$d,yl,ym,zi,Qd],[[0,{[m]:`GroupId`,[g]:eg}],[()=>Pk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`SourceSecurityGroupName`,[g]:rx}],[0,{[m]:`SourceSecurityGroupOwnerId`,[g]:ix}],[0,{[m]:`IpProtocol`,[g]:a_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:jx}],[0,{[m]:`CidrIp`,[g]:bh}],[()=>zO,{[m]:`IpPermissions`,[g]:o_}]],1],qS=[3,_,Yne,0,[jp,Hp],[[2,{[m]:`Return`,[g]:qy}],[()=>Tk,{[m]:`SecurityGroupRuleSet`,[g]:Nb}]]],JS=[3,_,Xne,0,[zi,yl,zl,Ul,Qd,$d,om,sm,ym,xm,f],[0,1,0,0,[()=>zO,0],0,0,0,1,[()=>Pk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]]],YS=[3,_,Zne,0,[jp,Hp],[[2,{[m]:`Return`,[g]:qy}],[()=>Tk,{[m]:`SecurityGroupRuleSet`,[g]:Nb}]]],XS=[3,_,gi,0,[ip,Wae,Fp,Xm,Ym,Ul,Vf,Iue,ose,ase,Hl,Jl,Sce,fm],[[0,{[m]:`OptInStatus`,[g]:Qv}],[()=>KD,{[m]:`MessageSet`,[g]:pv}],[0,{[m]:`RegionName`,[g]:cb}],[0,{[m]:`ZoneName`,[g]:CS}],[0,{[m]:`ZoneId`,[g]:SS}],[0,{[m]:`GroupName`,[g]:ng}],[0,{[m]:`NetworkBorderGroup`,[g]:wv}],[0,{[m]:`ZoneType`,[g]:TS}],[0,{[m]:`ParentZoneName`,[g]:Vy}],[0,{[m]:`ParentZoneId`,[g]:By}],[0,{[m]:`GroupLongName`,[g]:tg}],[()=>WD,{[m]:`GeographySet`,[g]:ag}],[()=>qD,{[m]:`SubGeographySet`,[g]:Pb}],[0,{[m]:`ZoneState`,[g]:wS}]]],ZS=[3,_,_i,0,[gi,yi,si],[0,0,[()=>BD,{[g]:oi}]]],QS=[3,_,are,0,[Bf],[[0,{[m]:`Name`,[g]:Cv}]]],$S=[3,_,cre,0,[Lf],[[0,{[m]:`Message`,[g]:bv}]]],eC=[3,_,ure,0,[Bf],[[0,{[m]:`Name`,[g]:Cv}]]],tC=[3,_,_re,0,[Pm],[[21,{[m]:`Value`,[g]:Xx}]]],nC=[3,_,Di,0,[ol,Uf,Po,Hm],[[()=>Vw,{[m]:`Ebs`,[g]:Kh}],[0,{[m]:`NoDevice`,[g]:Dv}],[0,{[m]:`DeviceName`,[g]:Fh}],[0,{[m]:`VirtualName`,[g]:oS}]]],rC=[3,_,ji,0,[Bu],[[0,{[m]:`InternetGatewayBlockMode`,[g]:Lg}]]],iC=[3,_,Yi,0,[qi,Xi],[0,()=>oC]],aC=[3,_,nie,0,[qi,Xi],[[0,{[m]:`CapacityReservationPreference`,[g]:Sde}],[()=>sC,{[m]:`CapacityReservationTarget`,[g]:Tde}]]],oC=[3,_,Xi,0,[Ki,Ji],[0,0]],sC=[3,_,rie,0,[Ki,Ji],[[0,{[m]:`CapacityReservationId`,[g]:Th}],[0,{[m]:`CapacityReservationResourceGroupArn`,[g]:Cde}]]],cC=[3,_,ya,0,[_m,Mm,Nm],[1,1,1]],lC=[3,_,ba,0,[_m,Mm,Nm],[[1,{[m]:`TcpEstablishedTimeout`,[g]:Sx}],[1,{[m]:`UdpStreamTimeout`,[g]:Jx}],[1,{[m]:`UdpTimeout`,[g]:Yx}]]],uC=[3,_,ia,0,[ule,dle,Ys,Ho,cs,cl,hf,tse,xm,Ii,Ra,f],[0,0,0,0,[0,{[m]:`DestinationRegion`,[g]:Bde}],[2,{[m]:`Encrypted`,[g]:Jh}],[0,{[m]:`KmsKeyId`,[g]:P_}],[()=>kS,{[m]:`PresignedUrl`,[g]:Ry}],[()=>Pk,{[g]:Sm}],1,0,[2,{[m]:`DryRun`,[g]:p}]],2],dC=[3,_,oa,0,[gm,Zp],[[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`SnapshotId`,[g]:Gb}]]],fC=[3,_,Ui,0,[Fi,bm,mi,tp],[[1,{[m]:`CoreCount`,[g]:pde}],[1,{[m]:`ThreadsPerCore`,[g]:Mx}],[0,{[m]:`AmdSevSnp`,[g]:Que}],[0,{[m]:`NestedVirtualization`,[g]:qv}]]],pC=[3,_,Xre,0,[Fi,bm,mi,tp],[1,1,0,0]],mC=[3,_,Vre,0,[qu,Bf,xm,$ce,f,Ys,doe,Oi],[[0,{[m]:`InstanceId`,[g]:Bg}],[0,{[m]:`Name`,[g]:Cv}],[()=>Pk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`Description`,[g]:Lh}],[2,{[m]:`NoReboot`,[g]:Hv}],[()=>ZD,{[m]:`BlockDeviceMapping`,[g]:ph}]],2],hC=[3,_,Hre,0,[dd],[[0,{[m]:`ImageId`,[g]:Gg}]]],gC=[3,_,zre,0,[xm,f],[[()=>Pk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]]],_C=[3,_,Bre,0,[Lu],[[()=>$T,{[m]:`InternetGateway`,[g]:Ig}]]],vC=[3,_,Kre,0,[gf,vf,xm,Gie,f],[0,0,[()=>Pk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}]],1],yC=[3,_,Jre,0,[ui,oi,ga,f,Qp,Rm,vi,xm,Sa,xp,fce,sle,im],[0,0,[0,4],2,0,0,[()=>UD,{[g]:_i}],[()=>Pk,{[g]:Sm}],0,0,[()=>BD,{[g]:pce}],[()=>RO,{[g]:cle}],1]],bC=[3,_,Yre,0,[ga,Wf],[[0,{[m]:`ClientToken`,[g]:Eh}],[()=>bE,{[m]:`NatGateway`,[g]:Av}]]],xC=[3,_,Qre,0,[up,xm,$p,xf,op,vp,f,Ul,mm],[1,[()=>Pk,{[g]:Sm}],0,0,()=>AE,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`GroupName`,[g]:ng}],[0,{[m]:`Strategy`,[g]:yx}]]],SC=[3,_,$re,0,[_p],[[()=>NE,{[m]:`PlacementGroup`,[g]:vy}]]],CC=[3,_,eie,0,[Lp,Xo,Lm,vm,bf,Li,Hi,ap,f,Wa,Fl,Qa,Rc,qu,Kf,Um,Gf],[[0,{[m]:`RouteTableId`,[g]:pb}],0,0,0,0,0,0,0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`DestinationCidrBlock`,[g]:Mh}],[0,{[m]:`GatewayId`,[g]:$h}],[0,{[m]:`DestinationIpv6CidrBlock`,[g]:Ph}],[0,{[m]:`EgressOnlyInternetGatewayId`,[g]:Vh}],[0,{[m]:`InstanceId`,[g]:Bg}],[0,{[m]:`NetworkInterfaceId`,[g]:Pv}],[0,{[m]:`VpcPeeringConnectionId`,[g]:lS}],[0,{[m]:`NatGatewayId`,[g]:Mv}]],1],wC=[3,_,tie,0,[jp],[[2,{[m]:`Return`,[g]:qy}]]],TC=[3,_,Zi,0,[Rm,xm,ga,f],[[0,{[m]:`VpcId`,[g]:tS}],[()=>Pk,{[g]:Sm}],[0,4],[2,{[m]:`DryRun`,[g]:p}]],1],EC=[3,_,Qi,0,[Rp,ga],[[()=>iD,{[m]:`RouteTable`,[g]:_b}],[0,{[m]:`ClientToken`,[g]:Eh}]]],DC=[3,_,na,0,[Ys,Ul,Rm,xm,f],[[0,{[g]:jl}],0,0,[()=>Pk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]],2],OC=[3,_,ra,0,[zl,gm,Bp],[[0,{[m]:`GroupId`,[g]:eg}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`SecurityGroupArn`,[g]:kb}]]],kC=[3,_,sa,0,[Bm,Ys,np,xm,yae,f],[0,0,0,[()=>Pk,{[g]:Sm}],0,[2,{[m]:`DryRun`,[g]:p}]],1],AC=[3,_,ca,0,[Rm,xm,gi,yi,Pi,Eu,np,Ad,nd,Rd,td,Ld,f],[0,[()=>Pk,{[g]:Sm}],0,0,0,0,0,2,0,1,0,1,[2,{[m]:`DryRun`,[g]:p}]],1],jC=[3,_,la,0,[hm],[[()=>vD,{[m]:`Subnet`,[g]:bx}]]],MC=[3,_,wa,0,[gi,yi,cl,ff,hf,np,dm,Zp,Gm,xm,Sf,Tm,ga,zm,op,f],[0,0,[2,{[m]:`Encrypted`,[g]:Jh}],1,0,0,1,0,0,[()=>Pk,{[g]:Sm}],2,1,[0,4],1,()=>AE,[2,{[m]:`DryRun`,[g]:p}]]],NC=[3,_,Ta,0,[Pi,tf,Eu,nd,Rd,td,Ld,Ou,Im,xm,f,lf,zne],[0,0,0,0,1,0,1,0,()=>PD,[()=>Pk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`InstanceTenancy`,[g]:D_}],[2,{[m]:`AmazonProvidedIpv6CidrBlock`,[g]:Kue}]]],PC=[3,_,Ea,0,[Jm],[[()=>AD,{[m]:`Vpc`,[g]:vS}]]],FC=[3,_,ua,0,[Pre],[0],1],IC=[3,_,Ga,0,[As,Fs,Ps],[[1,{[m]:`DefaultTcpEstablishedTimeout`,[g]:Hde}],[1,{[m]:`DefaultUdpTimeout`,[g]:qde}],[1,{[m]:`DefaultUdpStreamTimeout`,[g]:Kde}]]],LC=[3,_,eo,0,[Hu,f],[[0,{[m]:`InternetGatewayId`,[g]:Rg}],[2,{[m]:`DryRun`,[g]:p}]],1],RC=[3,_,Oo,0,[gf,_f,f],[0,0,[2,{[m]:`DryRun`,[g]:p}]]],zC=[3,_,ko,0,[jp,_f],[[2,{[m]:`Return`,[g]:qy}],[0,{[m]:`KeyPairId`,[g]:L_}]]],BC=[3,_,Lo,0,[Gf,f],[[0,{[g]:Gf}],2],1],VC=[3,_,Ro,0,[Gf],[[0,{[m]:`NatGatewayId`,[g]:Mv}]]],HC=[3,_,Ko,0,[Ul,f],[[0,{[m]:`GroupName`,[g]:ng}],[2,{[m]:`DryRun`,[g]:p}]],1],UC=[3,_,Qo,0,[Lp,Xo,f,Wa,Qa],[[0,{[m]:`RouteTableId`,[g]:pb}],0,[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`DestinationCidrBlock`,[g]:Mh}],[0,{[m]:`DestinationIpv6CidrBlock`,[g]:Ph}]],1],WC=[3,_,ns,0,[Lp,f],[[0,{[m]:`RouteTableId`,[g]:pb}],[2,{[m]:`DryRun`,[g]:p}]],1],GC=[3,_,fs,0,[zl,Ul,f],[0,0,[2,{[m]:`DryRun`,[g]:p}]]],KC=[3,_,ps,0,[jp,zl],[[2,{[m]:`Return`,[g]:qy}],[0,{[m]:`GroupId`,[g]:eg}]]],qC=[3,_,_s,0,[Zp,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],JC=[3,_,vs,0,[Zp,pse],[[0,{[m]:`SnapshotId`,[g]:Gb}],[0,{[m]:`ReturnCode`,[g]:Jy}]]],YC=[3,_,bs,0,[Qp,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],XC=[3,_,Ls,0,[Bm,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],ZC=[3,_,Rs,0,[Rm,f],[0,[2,{[m]:`DryRun`,[g]:p}]],1],QC=[3,_,mo,0,[dd,Fa,f],[0,2,[2,{[m]:`DryRun`,[g]:p}]],1],$C=[3,_,ho,0,[jp,xs],[[2,{[m]:`Return`,[g]:qy}],[()=>eO,{[m]:`DeleteSnapshotResultSet`,[g]:Vde}]]],ew=[3,_,Ma,0,[Koe,f,Cl,si],[[()=>dk,{[g]:bp}],[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}],[()=>BD,{[g]:oi}]]],tw=[3,_,Na,0,[pre],[[()=>zD,{[m]:`AddressesSet`,[g]:$ue}]]],nw=[3,_,za,0,[Fue,Nue,vne,f,Cl],[[()=>Yk,{[g]:Xm}],[()=>Jk,{[g]:Ym}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}]]],rw=[3,_,Ba,0,[fre],[[()=>GD,{[m]:`AvailabilityZoneInfo`,[g]:nde}]]],iw=[3,_,co,0,[Pne,Cl,Nf,ep],[[()=>HD,{[g]:ci}],[()=>cO,{[g]:wl}],1,0]],aw=[3,_,lo,0,[ed,ep],[[()=>mO,{[m]:`IamInstanceProfileAssociationSet`,[g]:Ug}],[0,{[m]:`NextToken`,[g]:Kv}]]],ow=[3,_,go,0,[al,fd,Eoe,Au,Pu,Nf,ep,f,Cl],[[()=>sO,{[g]:tc}],[()=>hO,{[g]:dd}],[()=>rk,{[g]:sp}],2,2,1,0,[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}]]],sw=[3,_,_o,0,[ep,Bie],[[0,{[m]:`NextToken`,[g]:Kv}],[()=>gO,{[m]:`ImagesSet`,[g]:g_}]]],cw=[3,_,vo,0,[pd,Od,f,Cl,ep,Nf],[[()=>xO,{[g]:qu}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}],[0,{[m]:`NextToken`,[g]:Kv}],[1,{[m]:`MaxResults`,[g]:fv}]]],lw=[3,_,yo,0,[ep,cce],[[0,{[m]:`NextToken`,[g]:Kv}],[()=>hk,{[m]:`ReservationSet`,[g]:ub}]]],uw=[3,_,bo,0,[f,uf,Cl,Nf,ep,Iie],[2,[64,{[g]:cf}],[()=>cO,{[g]:wl}],1,0,2]],dw=[3,_,xo,0,[uf,ep],[[()=>PO,{[m]:`InstanceTypeSet`,[g]:w_}],[0,{[m]:`NextToken`,[g]:Kv}]]],fw=[3,_,to,0,[ep,Nf,f,Wu,Cl],[0,1,[2,{[m]:`DryRun`,[g]:p}],[()=>IO,{[m]:`InternetGatewayId`,[g]:Rg}],[()=>cO,{[g]:wl}]]],pw=[3,_,no,0,[Ku,ep],[[()=>LO,{[m]:`InternetGatewaySet`,[g]:zg}],[0,{[m]:`NextToken`,[g]:Kv}]]],mw=[3,_,Ao,0,[Jie,Zie,aie,f,Cl],[[()=>WO,{[g]:gf}],[()=>GO,{[g]:_f}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}]]],hw=[3,_,jo,0,[Yie],[[()=>KO,{[m]:`KeySet`,[g]:R_}]]],gw=[3,_,zo,0,[f,wl,Nf,soe,ep],[2,[()=>cO,0],1,[()=>QO,{[g]:Gf}],0]],_w=[3,_,Bo,0,[loe,ep],[[()=>$O,{[m]:`NatGatewaySet`,[g]:Nv}],[0,{[m]:`NextToken`,[g]:Kv}]]],vw=[3,_,qo,0,[Bl,f,Gl,Cl],[[()=>ik,{[g]:zl}],[2,{[m]:`DryRun`,[g]:p}],[64,{[m]:`GroupName`,[g]:ng}],[()=>cO,{[g]:wl}]]],yw=[3,_,Jo,0,[Roe],[[()=>ak,{[m]:`PlacementGroupSet`,[g]:xy}]]],bw=[3,_,$o,0,[Rse,Kne,f,Cl],[[()=>mk,{[g]:Fp}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}]]],xw=[3,_,es,0,[ace],[[()=>pk,{[m]:`RegionInfo`,[g]:ib}]]],Sw=[3,_,rs,0,[ep,Nf,f,$se,Cl],[0,1,[2,{[m]:`DryRun`,[g]:p}],[()=>bk,{[g]:Lp}],[()=>cO,{[g]:wl}]]],Cw=[3,_,is,0,[rce,ep],[[()=>xk,{[m]:`RouteTableSet`,[g]:mb}],[0,{[m]:`NextToken`,[g]:Kv}]]],ww=[3,_,ms,0,[Bl,Gl,ep,Nf,f,Cl],[[()=>fO,{[g]:zl}],[()=>pO,{[g]:Ul}],0,1,[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}]]],Tw=[3,_,hs,0,[ep,Gp],[[0,{[m]:`NextToken`,[g]:Kv}],[()=>Ck,{[m]:`SecurityGroupInfo`,[g]:Ab}]]],Ew=[3,_,Ss,0,[Nf,ep,_oe,dse,Jce,f,Cl],[1,0,[()=>rk,{[g]:sp}],[64,{[g]:fse}],[()=>Dk,{[g]:Zp}],[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}]]],Dw=[3,_,Cs,0,[ep,ble],[[0,{[m]:`NextToken`,[g]:Kv}],[()=>Ok,{[m]:`SnapshotSet`,[g]:ox}]]],Ow=[3,_,ws,0,[Cl,jce,ep,Nf,f],[[()=>cO,{[g]:wl}],[()=>kk,{[g]:Qp}],0,1,[2,{[m]:`DryRun`,[g]:p}]]],kw=[3,_,Ts,0,[ep,Sle],[[0,{[m]:`NextToken`,[g]:Kv}],[()=>jk,{[m]:`SubnetSet`,[g]:sx}]]],Aw=[3,_,zs,0,[lue,Od,f,Cl,ep,Nf],[[()=>Vk,{[g]:Bm}],2,[2,{[m]:`DryRun`,[g]:p}],[()=>cO,{[g]:wl}],[0,{[m]:`NextToken`,[g]:Kv}],[1,{[m]:`MaxResults`,[g]:fv}]]],jw=[3,_,Bs,0,[ep,Tue],[[0,{[m]:`NextToken`,[g]:Kv}],[()=>Hk,{[m]:`VolumeSet`,[g]:dS}]]],Mw=[3,_,Vs,0,[Cl,uue,ep,Nf,f],[[()=>cO,{[g]:wl}],[()=>Wk,{[g]:Rm}],0,1,[2,{[m]:`DryRun`,[g]:p}]]],Nw=[3,_,Hs,0,[ep,Due],[[0,{[m]:`NextToken`,[g]:Kv}],[()=>Kk,{[m]:`VpcSet`,[g]:pS}]]],Pw=[3,_,ro,0,[Hu,Rm,f],[[0,{[m]:`InternetGatewayId`,[g]:Rg}],[0,{[m]:`VpcId`,[g]:tS}],[2,{[m]:`DryRun`,[g]:p}]],2],Fw=[3,_,Us,0,[Bm,Xs,ul,qu,f],[0,0,2,0,[2,{[m]:`DryRun`,[g]:p}]],1],Iw=[3,_,Pa,0,[ci,bp,f],[0,0,[2,{[m]:`DryRun`,[g]:p}]]],Lw=[3,_,uo,0,[ci],[0],1],Rw=[3,_,fo,0,[Qu],[[()=>hT,{[m]:`IamInstanceProfileAssociation`,[g]:Hg}]]],zw=[3,_,as,0,[ci,f],[[0,{[m]:`AssociationId`,[g]:$m}],[2,{[m]:`DryRun`,[g]:p}]],1],Bw=[3,_,Eo,0,[Fce,ja,Dm],[[1,{[m]:`SizeInGB`,[g]:Ib}],[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Type`,[g]:Hx}]]],Vw=[3,_,$s,0,[Wo,ff,Zp,Wm,Gm,hf,Tm,np,gi,cl,zm,yi,nc],[[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[1,{[m]:`Iops`,[g]:A_}],[0,{[m]:`SnapshotId`,[g]:Gb}],[1,{[m]:`VolumeSize`,[g]:fS}],[0,{[m]:`VolumeType`,[g]:mS}],[0,{[m]:`KmsKeyId`,[g]:P_}],[1,{[m]:`Throughput`,[g]:Bx}],[0,{[m]:`OutpostArn`,[g]:Yv}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[2,{[m]:`Encrypted`,[g]:Jh}],1,0,1]],Hw=[3,_,ic,0,[nc,Ei,Mi,ki,Tf,Ff,Df],[[1,{[m]:`EbsCardIndex`,[g]:zh}],[1,{[m]:`BaselineBandwidthInMbps`,[g]:fh}],[1,{[m]:`BaselineThroughputInMBps`,[g]:_h}],[1,{[m]:`BaselineIops`,[g]:mh}],[1,{[m]:`MaximumBandwidthInMbps`,[g]:Q_}],[1,{[m]:`MaximumThroughputInMBps`,[g]:gv}],[1,{[m]:`MaximumIops`,[g]:av}]]],Uw=[3,_,jc,0,[Bc,nl,Fc,Qf,Tae,Ine,Eae,ac],[[0,{[m]:`EbsOptimizedSupport`,[g]:_fe}],[0,{[m]:`EncryptionSupport`,[g]:Wh}],[()=>Kw,{[m]:`EbsOptimizedInfo`,[g]:hfe}],[0,{[m]:`NvmeSupport`,[g]:Uv}],[1,{[m]:`MaximumEbsAttachments`,[g]:ev}],[0,{[m]:`AttachmentLimitType`,[g]:Uue}],[1,{[m]:`MaximumEbsCards`,[g]:tv}],[()=>nO,{[m]:`EbsCardSet`,[g]:Zde}]]],Ww=[3,_,Oc,0,[hi,Wo,pm,Bm,di,hue,op,nc],[[4,{[m]:`AttachTime`,[g]:ih}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[0,{[m]:`Status`,[g]:vx}],[0,{[m]:`VolumeId`,[g]:rS}],[0,{[m]:`AssociatedResource`,[g]:th}],[0,{[m]:`VolumeOwnerId`,[g]:sS}],[()=>jE,{[m]:`Operator`,[g]:ay}],[1,{[m]:`EbsCardIndex`,[g]:zh}]]],Gw=[3,_,kc,0,[Bm,Wo],[[0,{[m]:`VolumeId`,[g]:rS}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}]]],Kw=[3,_,Fc,0,[Ei,Mi,ki,Tf,Ff,Df],[[1,{[m]:`BaselineBandwidthInMbps`,[g]:fh}],[1,{[m]:`BaselineThroughputInMBps`,[g]:_h}],[1,{[m]:`BaselineIops`,[g]:mh}],[1,{[m]:`MaximumBandwidthInMbps`,[g]:Q_}],[1,{[m]:`MaximumThroughputInMBps`,[g]:gv}],[1,{[m]:`MaximumIops`,[g]:av}]]],qw=[3,_,Mc,0,[Dae],[[1,{[m]:`MaximumEfaInterfaces`,[g]:nv}]]],Jw=[3,_,uc,0,[gc,dc,pc,mc],[[0,{[m]:`ElasticGpuId`,[g]:afe}],[0,{[m]:`ElasticGpuAssociationId`,[g]:tfe}],[0,{[m]:`ElasticGpuAssociationState`,[g]:nfe}],[0,{[m]:`ElasticGpuAssociationTime`,[g]:ife}]]],Yw=[3,_,_c,0,[Dm],[0],1],Xw=[3,_,yc,0,[Dm,ja],[0,1],1],Zw=[3,_,bc,0,[Tc,xc,Cc,wc],[[0,{[m]:`ElasticInferenceAcceleratorArn`,[g]:ofe}],[0,{[m]:`ElasticInferenceAcceleratorAssociationId`,[g]:sfe}],[0,{[m]:`ElasticInferenceAcceleratorAssociationState`,[g]:cfe}],[4,{[m]:`ElasticInferenceAcceleratorAssociationTime`,[g]:ufe}]]],Qw=[3,_,Xc,0,[Jc,$c],[2,()=>$w]],$w=[3,_,el,0,[Qc],[2]],eT=[3,_,Vc,0,[sl],[[2,{[m]:`Enabled`,[g]:qh}]]],tT=[3,_,zc,0,[sl],[2]],nT=[3,_,wl,0,[Bf,wue],[0,[()=>Rk,{[g]:Pm}]]],rT=[3,_,fl,0,[Bf,If,ja,Of],[[0,{[m]:`Name`,[g]:Cv}],[0,{[m]:`Manufacturer`,[g]:vv}],[1,{[m]:`Count`,[g]:Ah}],[()=>iT,{[m]:`MemoryInfo`,[g]:ov}]]],iT=[3,_,ml,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Bb}]]],aT=[3,_,gl,0,[Tl,Cle],[[()=>lO,{[m]:`Fpgas`,[g]:Mfe}],[1,{[m]:`TotalFpgaMemoryInMiB`,[g]:Cx}]]],oT=[3,_,kl,0,[qu,_ae,f],[0,2,[2,{[m]:`DryRun`,[g]:p}]],1],sT=[3,_,Al,0,[qu,Em,Toe],[[0,{[m]:`InstanceId`,[g]:Bg}],[4,{[m]:`Timestamp`,[g]:Vx}],[0,{[m]:`Output`,[g]:oy}]]],cT=[3,_,Ml,0,[Bf,If,ja,oae,ql,jue,Of],[[0,{[m]:`Name`,[g]:Cv}],[0,{[m]:`Manufacturer`,[g]:vv}],[1,{[m]:`Count`,[g]:Ah}],[1,{[m]:`LogicalGpuCount`,[g]:U_}],[1,{[m]:`GpuPartitionSize`,[g]:ig}],[()=>qk,{[m]:`WorkloadSet`,[g]:xS}],[()=>lT,{[m]:`MemoryInfo`,[g]:ov}]]],lT=[3,_,Pl,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Bb}]]],uT=[3,_,Rl,0,[Yl,wle],[[()=>uO,{[m]:`Gpus`,[g]:sg}],[1,{[m]:`TotalGpuMemoryInMiB`,[g]:Tx}]]],dT=[3,_,Vl,0,[zl,Ul],[[0,{[m]:`GroupId`,[g]:eg}],[0,{[m]:`GroupName`,[g]:ng}]]],fT=[3,_,$l,0,[Aa],[[2,{[m]:`Configured`,[g]:kde}]]],pT=[3,_,eu,0,[Aa],[2]],mT=[3,_,Zu,0,[xi,lu],[[0,{[m]:`Arn`,[g]:ch}],[0,{[m]:`Id`,[g]:bg}]]],hT=[3,_,Qu,0,[ci,qu,Zu,fm,Em],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`InstanceId`,[g]:Bg}],[()=>mT,{[m]:`IamInstanceProfile`,[g]:Vg}],[0,{[m]:`State`,[g]:_x}],[4,{[m]:`Timestamp`,[g]:Vx}]]],gT=[3,_,ad,0,[xi,Bf],[[0,{[m]:`Arn`,[g]:ch}],[0,{[m]:`Name`,[g]:Cv}]]],_T=[3,_,Vie,0,[gp,jm,Oi,Ys,rl,cu,Vd,Bf,Mp,Np,nm,am,gm,Km,Ai,Cm,Ms,of,Lce,Zo,cae,yu,qp,Yp,Sl,Lie,dd,_d,fm,rp,Fre,cse,dp,Si,Fie,mf,Pp,Dp],[[0,{[m]:`PlatformDetails`,[g]:_y}],[0,{[m]:`UsageOperation`,[g]:Kx}],[()=>XD,{[m]:`BlockDeviceMapping`,[g]:ph}],[0,{[m]:`Description`,[g]:Lh}],[2,{[m]:`EnaSupport`,[g]:Gh}],[0,{[m]:`Hypervisor`,[g]:lg}],[0,{[m]:`ImageOwnerAlias`,[g]:Xg}],[0,{[m]:`Name`,[g]:Cv}],[0,{[m]:`RootDeviceName`,[g]:Yy}],[0,{[m]:`RootDeviceType`,[g]:Xy}],[0,{[m]:`SriovNetSupport`,[g]:$b}],[()=>hD,{[m]:`StateReason`,[g]:nx}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`VirtualizationType`,[g]:gS}],[0,{[m]:`BootMode`,[g]:hh}],[0,{[m]:`TpmSupport`,[g]:Ix}],[0,{[m]:`DeprecationTime`,[g]:Wde}],[0,{[m]:`ImdsSupport`,[g]:v_}],[0,{[m]:`SourceInstanceId`,[g]:Lb}],[0,{[m]:`DeregistrationProtection`,[g]:zde}],[0,{[m]:`LastLaunchedTime`,[g]:K_}],[2,{[m]:`ImageAllowed`,[g]:Og}],[0,{[m]:`SourceImageId`,[g]:zb}],[0,{[m]:`SourceImageRegion`,[g]:Vb}],[2,{[m]:`FreeTierEligible`,[g]:Qh}],[()=>_O,{[m]:`ImageWatermarkSet`,[g]:k_}],[0,{[m]:`ImageId`,[g]:Gg}],[0,{[m]:`ImageLocation`,[g]:Kg}],[0,{[m]:`ImageState`,[g]:__}],[0,{[m]:`ImageOwnerId`,[g]:Zg}],[0,{[m]:`CreationDate`,[g]:hde}],[2,{[m]:`IsPublic`,[g]:u_}],[()=>lk,{[m]:`ProductCodes`,[g]:uy}],[0,{[m]:`Architecture`,[g]:lh}],[0,{[m]:`ImageType`,[g]:E_}],[0,{[m]:`KernelId`,[g]:N_}],[0,{[m]:`RamdiskId`,[g]:rb}],[0,{[m]:`Platform`,[g]:Hy}]]],vT=[3,_,zie,0,[kue,Yp,qp,Pce,Oue],[[0,{[m]:`WatermarkKey`,[g]:bS}],[0,{[m]:`SourceImageRegion`,[g]:Vb}],[0,{[m]:`SourceImageId`,[g]:zb}],[4,{[m]:`SourceImageCreationTime`,[g]:Fb}],[4,{[m]:`WatermarkCreationTime`,[g]:yS}]]],yT=[3,_,hd,0,[gf,Joe,xm,f],[[0,{[m]:`KeyName`,[g]:I_}],[21,{[m]:`PublicKeyMaterial`,[g]:Ay}],[()=>Pk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}]],2],bT=[3,_,gd,0,[pf,gf,_f,gm],[[0,{[m]:`KeyFingerprint`,[g]:M_}],[0,{[m]:`KeyName`,[g]:I_}],[0,{[m]:`KeyPairId`,[g]:L_}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}]]],xT=[3,_,hu,0,[bi,Ele],[[()=>vO,{[m]:`Accelerators`,[g]:sh}],[1,{[m]:`TotalInferenceMemoryInMiB`,[g]:Ex}]]],ST=[3,_,ju,0,[ja,Bf,If,Of],[[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Name`,[g]:Cv}],[0,{[m]:`Manufacturer`,[g]:vv}],[()=>CT,{[m]:`MemoryInfo`,[g]:ov}]]],CT=[3,_,Nu,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Bb}]]],wT=[3,_,Hie,0,[Si,Oi,ga,Pc,rl,cu,Zu,yd,hc,Ec,qf,np,Mp,Np,Gp,zp,Rce,nm,am,gm,Km,Ui,jre,Ki,Yi,$l,vae,Af,Vc,Ai,gp,jm,Jle,pp,xu,Cm,jf,Lre,Xf,op,Xp,qu,dd,fm,fp,hp,ple,gf,Fne,dp,cf,gae,Op,mf,Pp,Dp,zf,Qp,Rm,xp,Hoe],[[0,{[m]:`Architecture`,[g]:lh}],[()=>yO,{[m]:`BlockDeviceMapping`,[g]:ph}],[0,{[m]:`ClientToken`,[g]:Eh}],[2,{[m]:`EbsOptimized`,[g]:Bh}],[2,{[m]:`EnaSupport`,[g]:Gh}],[0,{[m]:`Hypervisor`,[g]:lg}],[()=>mT,{[m]:`IamInstanceProfile`,[g]:Vg}],[0,{[m]:`InstanceLifecycle`,[g]:qg}],[()=>rO,{[m]:`ElasticGpuAssociationSet`,[g]:rfe}],[()=>aO,{[m]:`ElasticInferenceAcceleratorAssociationSet`,[g]:lfe}],[()=>EO,{[m]:`NetworkInterfaceSet`,[g]:Iv}],[0,{[m]:`OutpostArn`,[g]:Yv}],[0,{[m]:`RootDeviceName`,[g]:Yy}],[0,{[m]:`RootDeviceType`,[g]:Xy}],[()=>dO,{[m]:`GroupSet`,[g]:og}],[2,{[m]:`SourceDestCheck`,[g]:Eb}],[0,{[m]:`SpotInstanceRequestId`,[g]:Hb}],[0,{[m]:`SriovNetSupport`,[g]:$b}],[()=>hD,{[m]:`StateReason`,[g]:nx}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`VirtualizationType`,[g]:gS}],[()=>fC,{[m]:`CpuOptions`,[g]:xde}],[0,{[m]:`CapacityBlockId`,[g]:dde}],[0,{[m]:`CapacityReservationId`,[g]:Th}],[()=>aC,{[m]:`CapacityReservationSpecification`,[g]:wde}],[()=>fT,{[m]:`HibernationOptions`,[g]:pg}],[()=>qO,{[m]:`LicenseSet`,[g]:q_}],[()=>IT,{[m]:`MetadataOptions`,[g]:lv}],[()=>eT,{[m]:`EnclaveOptions`,[g]:vfe}],[0,{[m]:`BootMode`,[g]:hh}],[0,{[m]:`PlatformDetails`,[g]:_y}],[0,{[m]:`UsageOperation`,[g]:Kx}],[4,{[m]:`UsageOperationUpdateTime`,[g]:qx}],[()=>RE,{[m]:`PrivateDnsNameOptions`,[g]:py}],[0,{[m]:`Ipv6Address`,[g]:Ag}],[0,{[m]:`TpmSupport`,[g]:Ix}],[()=>MT,{[m]:`MaintenanceOptions`,[g]:uv}],[0,{[m]:`CurrentInstanceBootMode`,[g]:vde}],[()=>VT,{[m]:`NetworkPerformanceOptions`,[g]:Bv}],[()=>jE,{[m]:`Operator`,[g]:ay}],[()=>kO,{[m]:`SecondaryInterfaceSet`,[g]:Wb}],[0,{[m]:`InstanceId`,[g]:Bg}],[0,{[m]:`ImageId`,[g]:Gg}],[()=>YT,{[m]:`InstanceState`,[g]:b_}],[0,{[m]:`PrivateDnsName`,[g]:hy}],[0,{[m]:`DnsName`,[g]:Ide}],[0,{[m]:`Reason`,[g]:yb}],[0,{[m]:`KeyName`,[g]:I_}],[1,{[m]:`AmiLaunchIndex`,[g]:Hue}],[()=>lk,{[m]:`ProductCodes`,[g]:uy}],[0,{[m]:`InstanceType`,[g]:C_}],[4,{[m]:`LaunchTime`,[g]:J_}],[()=>ME,{[m]:`Placement`,[g]:Uy}],[0,{[m]:`KernelId`,[g]:N_}],[0,{[m]:`RamdiskId`,[g]:rb}],[0,{[m]:`Platform`,[g]:Hy}],[()=>yE,{[m]:`Monitoring`,[g]:Sv}],[0,{[m]:`SubnetId`,[g]:Kb}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}],[0,{[m]:`IpAddress`,[g]:kg}]]],TT=[3,_,pu,0,[Jc,$c],[[2,{[m]:`EnaSrdEnabled`,[g]:bfe}],[()=>ET,{[m]:`EnaSrdUdpSpecification`,[g]:wfe}]]],ET=[3,_,mu,0,[Qc],[[2,{[m]:`EnaSrdUdpEnabled`,[g]:Cfe}]]],DT=[3,_,Su,0,[Po,ol],[[0,{[m]:`DeviceName`,[g]:Fh}],[()=>Ww,{[m]:`Ebs`,[g]:Kh}]]],OT=[3,_,wu,0,[Po,ol,Hm,Uf],[[0,{[m]:`DeviceName`,[g]:Fh}],[()=>Gw,{[m]:`Ebs`,[g]:Kh}],[0,{[m]:`VirtualName`,[g]:oS}],[0,{[m]:`NoDevice`,[g]:Dv}]]],kT=[3,_,od,0,[rf],[[0,{[m]:`Ipv4Prefix`,[g]:s_}]]],AT=[3,_,Ju,0,[xu,iie],[[0,{[m]:`Ipv6Address`,[g]:Ag}],[2,{[m]:`IsPrimaryIpv6`,[g]:n_}]]],jT=[3,_,sd,0,[ef],[[0,{[m]:`Ipv6Prefix`,[g]:l_}]]],MT=[3,_,Sd,0,[fi,Ise],[[0,{[m]:`AutoRecovery`,[g]:Xue}],[0,{[m]:`RebootMigration`,[g]:sb}]]],NT=[3,_,Cd,0,[fi],[0]],PT=[3,_,wd,0,[Rae,ole],[0,()=>fD]],FT=[3,_,Td,0,[au,nu,Zl,tu,kd],[0,1,0,0,0]],IT=[3,_,Ed,0,[fm,au,nu,Zl,tu,kd],[[0,{[m]:`State`,[g]:_x}],[0,{[m]:`HttpTokens`,[g]:vg}],[1,{[m]:`HttpPutResponseHopLimit`,[g]:hg}],[0,{[m]:`HttpEndpoint`,[g]:dg}],[0,{[m]:`HttpProtocolIpv6`,[g]:mg}],[0,{[m]:`InstanceMetadataTags`,[g]:Jg}]]],LT=[3,_,jd,0,[Ci,wi,Ys,El,uu,wf,Kf,rp,fp,xp,Sp,zp,pm,Qp,Rm,df,nf,Zd,_a,op],[[()=>RT,{[m]:`Association`,[g]:uh}],[()=>zT,{[m]:`Attachment`,[g]:dh}],[0,{[m]:`Description`,[g]:Lh}],[()=>dO,{[m]:`GroupSet`,[g]:og}],[()=>CO,{[m]:`Ipv6AddressesSet`,[g]:Dg}],[0,{[m]:`MacAddress`,[g]:Z_}],[0,{[m]:`NetworkInterfaceId`,[g]:Pv}],[0,{[m]:`OwnerId`,[g]:Zv}],[0,{[m]:`PrivateDnsName`,[g]:hy}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}],[()=>OO,{[m]:`PrivateIpAddressesSet`,[g]:Cy}],[2,{[m]:`SourceDestCheck`,[g]:Eb}],[0,{[m]:`Status`,[g]:vx}],[0,{[m]:`SubnetId`,[g]:Kb}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`InterfaceType`,[g]:O_}],[()=>SO,{[m]:`Ipv4PrefixSet`,[g]:r_}],[()=>wO,{[m]:`Ipv6PrefixSet`,[g]:i_}],[()=>lC,{[m]:`ConnectionTrackingConfiguration`,[g]:Dh}],[()=>jE,{[m]:`Operator`,[g]:ay}]]],RT=[3,_,Md,0,[Ri,Wi,Hd,hp,bp],[[0,{[m]:`CarrierIp`,[g]:yh}],[0,{[m]:`CustomerOwnedIp`,[g]:Ch}],[0,{[m]:`IpOwnerId`,[g]:$g}],[0,{[m]:`PublicDnsName`,[g]:gy}],[0,{[m]:`PublicIp`,[g]:Sy}]]],zT=[3,_,Nd,0,[hi,li,Wo,Za,pm,Hf,Yc,Uc],[[4,{[m]:`AttachTime`,[g]:ih}],[0,{[m]:`AttachmentId`,[g]:eh}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[1,{[m]:`DeviceIndex`,[g]:Nh}],[0,{[m]:`Status`,[g]:vx}],[1,{[m]:`NetworkCardIndex`,[g]:Ev}],[()=>TT,{[m]:`EnaSrdSpecification`,[g]:xfe}],[1,{[m]:`EnaQueueCount`,[g]:yfe}]]],BT=[3,_,Fd,0,[Rne,Wo,Ys,Za,El,fu,uu,Kf,xp,Sp,im,Qp,wne,df,Hf,nf,Kd,Zd,Gd,Woe,Yc,va,Uc],[[2,{[m]:`AssociatePublicIpAddress`,[g]:Gue}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[0,{[m]:`Description`,[g]:Lh}],[1,{[m]:`DeviceIndex`,[g]:Nh}],[()=>Sk,{[g]:Vp}],[1,{[m]:`Ipv6AddressCount`,[g]:Sg}],[()=>CO,{[m]:`Ipv6Addresses`,[g]:Dg}],[0,{[m]:`NetworkInterfaceId`,[g]:Pv}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}],[()=>ck,{[m]:`PrivateIpAddresses`,[g]:Cy}],[1,{[m]:`SecondaryPrivateIpAddressCount`,[g]:ex}],[0,{[m]:`SubnetId`,[g]:Kb}],2,0,1,[()=>VO,{[g]:rf}],1,[()=>HO,{[g]:ef}],1,2,()=>Qw,()=>cC,1]],VT=[3,_,zd,0,[Ni],[[0,{[m]:`BandwidthWeighting`,[g]:cde}]]],HT=[3,_,Bd,0,[Ni],[0]],UT=[3,_,Yd,0,[Ci,kp,fp,xp],[[()=>RT,{[m]:`Association`,[g]:uh}],[2,{[m]:`Primary`,[g]:Wy}],[0,{[m]:`PrivateDnsName`,[g]:hy}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}]]],WT=[3,_,kie,0,[wi,wf,Ice,rp,Sp,zp,pm,cm,ile,df],[[()=>GT,{[m]:`Attachment`,[g]:dh}],[0,{[m]:`MacAddress`,[g]:Z_}],[0,{[m]:`SecondaryInterfaceId`,[g]:Rb}],[0,{[m]:`OwnerId`,[g]:Zv}],[()=>AO,{[m]:`PrivateIpAddressSet`,[g]:wy}],[2,{[m]:`SourceDestCheck`,[g]:Eb}],[0,{[m]:`Status`,[g]:vx}],[0,{[m]:`SecondarySubnetId`,[g]:ax}],[0,{[m]:`SecondaryNetworkId`,[g]:Zb}],[0,{[m]:`InterfaceType`,[g]:O_}]]],GT=[3,_,xie,0,[hi,li,Wo,Za,pm,Hf],[[4,{[m]:`AttachTime`,[g]:ih}],[0,{[m]:`AttachmentId`,[g]:eh}],[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[1,{[m]:`DeviceIndex`,[g]:Nh}],[0,{[m]:`Status`,[g]:vx}],[1,{[m]:`NetworkCardIndex`,[g]:Ev}]]],KT=[3,_,Cie,0,[xp],[[0,{[m]:`PrivateIpAddress`,[g]:Ty}]]],qT=[3,_,Eie,0,[xp],[0],1],JT=[3,_,Oie,0,[Wo,Za,Sp,zoe,cm,df,Hf],[2,1,[()=>jO,{[g]:xp}],1,0,0,1]],YT=[3,_,jie,0,[ka,Bf],[[1,{[m]:`Code`,[g]:kh}],[0,{[m]:`Name`,[g]:Cv}]]],XT=[3,_,yie,0,[qu,ha,$oe],[[0,{[m]:`InstanceId`,[g]:Bg}],[()=>YT,{[m]:`CurrentState`,[g]:Ede}],[()=>YT,{[m]:`PreviousState`,[g]:Iy}]]],ZT=[3,_,af,0,[Ile,Zs,Qf,nl],[[1,{[m]:`TotalSizeInGB`,[g]:Px}],[()=>tO,{[m]:`Disks`,[g]:Xde}],[0,{[m]:`NvmeSupport`,[g]:Uv}],[0,{[m]:`EncryptionSupport`,[g]:Wh}]]],QT=[3,_,Pie,0,[cf,Ire,Sl,hle,lle,vle,Cre,cu,wp,Fm,Of,Aie,af,jc,Jf,Rl,gl,yp,hu,iu,Tre,Xa,Vne,_ce,$ae,foe,$f,Cf,Yf,Qoe,Fse,Uce],[[0,{[m]:`InstanceType`,[g]:C_}],[2,{[m]:`CurrentGeneration`,[g]:_de}],[2,{[m]:`FreeTierEligible`,[g]:Qh}],[()=>Ik,{[m]:`SupportedUsageClasses`,[g]:fx}],[()=>_k,{[m]:`SupportedRootDeviceTypes`,[g]:tx}],[()=>zk,{[m]:`SupportedVirtualizationTypes`,[g]:mx}],[2,{[m]:`BareMetal`,[g]:ode}],[0,{[m]:`Hypervisor`,[g]:lg}],[()=>BE,{[m]:`ProcessorInfo`,[g]:Dy}],[()=>ED,{[m]:`VCpuInfo`,[g]:Zx}],[()=>mE,{[m]:`MemoryInfo`,[g]:ov}],[2,{[m]:`InstanceStorageSupported`,[g]:h_}],[()=>ZT,{[m]:`InstanceStorageInfo`,[g]:m_}],[()=>Uw,{[m]:`EbsInfo`,[g]:ffe}],[()=>wE,{[m]:`NetworkInfo`,[g]:Rv}],[()=>uT,{[m]:`GpuInfo`,[g]:Ffe}],[()=>aT,{[m]:`FpgaInfo`,[g]:Ofe}],[()=>PE,{[m]:`PlacementGroupInfo`,[g]:yy}],[()=>xT,{[m]:`InferenceAcceleratorInfo`,[g]:Cg}],[2,{[m]:`HibernationSupported`,[g]:_g}],[2,{[m]:`BurstablePerformanceSupported`,[g]:sde}],[2,{[m]:`DedicatedHostsSupported`,[g]:Pde}],[2,{[m]:`AutoRecoverySupported`,[g]:Jue}],[()=>QD,{[m]:`SupportedBootModes`,[g]:wb}],[0,{[m]:`NitroEnclavesSupport`,[g]:kv}],[0,{[m]:`NitroTpmSupport`,[g]:Gv}],[()=>kE,{[m]:`NitroTpmInfo`,[g]:Wv}],[()=>dE,{[m]:`MediaAcceleratorInfo`,[g]:X_}],[()=>OE,{[m]:`NeuronInfo`,[g]:zv}],[0,{[m]:`PhcSupport`,[g]:Fy}],[0,{[m]:`RebootMigrationSupport`,[g]:ob}],[2,{[m]:`SupportedInRegion`,[g]:Ub}]]],$T=[3,_,Lu,0,[Ti,Hu,rp,gm],[[()=>FO,{[m]:`AttachmentSet`,[g]:rh}],[0,{[m]:`InternetGatewayId`,[g]:Rg}],[0,{[m]:`OwnerId`,[g]:Zv}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}]]],eE=[3,_,Ru,0,[fm,Rm],[[0,{[m]:`State`,[g]:_x}],[0,{[m]:`VpcId`,[g]:tS}]]],tE=[3,_,die,0,[$d,yl,ym,Gle,hie,_ie,Xoe],[[0,{[m]:`IpProtocol`,[g]:a_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:jx}],[()=>Lk,{[m]:`Groups`,[g]:cg}],[()=>BO,{[m]:`IpRanges`,[g]:f_}],[()=>UO,{[m]:`Ipv6Ranges`,[g]:p_}],[()=>sk,{[m]:`PrefixListIds`,[g]:My}]]],nE=[3,_,gie,0,[Ys,zi],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`CidrIp`,[g]:bh}]]],rE=[3,_,lie,0,[rf],[0]],iE=[3,_,uie,0,[ef],[0]],aE=[3,_,vie,0,[Ys,Bi],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`CidrIpv6`,[g]:xh}]]],oE=[3,_,eae,0,[_f,gm,gf,pf,Kie],[[0,{[m]:`KeyPairId`,[g]:L_}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`KeyName`,[g]:I_}],[0,{[m]:`KeyFingerprint`,[g]:M_}],[()=>MS,{[m]:`KeyMaterial`,[g]:F_}]]],sE=[3,_,Qie,0,[_f,vf,gm,qoe,Ca,gf,pf],[[0,{[m]:`KeyPairId`,[g]:L_}],[0,{[m]:`KeyType`,[g]:z_}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`PublicKey`,[g]:ky}],[4,{[m]:`CreateTime`,[g]:Oh}],[0,{[m]:`KeyName`,[g]:I_}],[0,{[m]:`KeyFingerprint`,[g]:M_}]]],cE=[3,_,hae,0,[pae,mae,qm],[0,0,0]],lE=[3,_,iae,0,[yf],[[0,{[m]:`LicenseConfigurationArn`,[g]:H_}]]],uE=[3,_,rae,0,[yf],[0]],dE=[3,_,Cf,0,[bi,Nle],[[()=>YO,{[m]:`Accelerators`,[g]:sh}],[1,{[m]:`TotalMediaMemoryInMiB`,[g]:kx}]]],fE=[3,_,Sae,0,[ja,Bf,If,Of],[[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Name`,[g]:Cv}],[0,{[m]:`Manufacturer`,[g]:vv}],[()=>pE,{[m]:`MemoryInfo`,[g]:ov}]]],pE=[3,_,wae,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Bb}]]],mE=[3,_,Of,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Bb}]]],hE=[3,_,Aae,0,[qu,zp,Vc,Ia,f,gre,Pm,Oi,La,cf,tae,ice,Om,cd,El,Pc,nm,rl],[[0,{[m]:`InstanceId`,[g]:Bg}],[()=>WS,0],()=>tT,[()=>WS,0],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`Attribute`,[g]:ide}],[()=>AS,{[m]:`Value`,[g]:Xx}],[()=>bO,{[m]:`BlockDeviceMapping`,[g]:ph}],[()=>WS,{[m]:`DisableApiTermination`,[g]:jh}],[()=>GS,{[m]:`InstanceType`,[g]:C_}],[()=>GS,{[m]:`Kernel`,[g]:B_}],[()=>GS,{[m]:`Ramdisk`,[g]:vb}],[()=>tC,{[m]:`UserData`,[g]:Ux}],[()=>GS,{[m]:`InstanceInitiatedShutdownBehavior`,[g]:Wg}],[()=>fO,{[g]:zl}],[()=>WS,{[m]:`EbsOptimized`,[g]:Bh}],[()=>GS,{[m]:`SriovNetSupport`,[g]:$b}],[()=>WS,{[m]:`EnaSupport`,[g]:Gh}]],1],gE=[3,_,Fae,0,[Qp,ii,Mf,Ef,Gi,sc,Moe,qc,Gc,Nc,No],[[0,{[m]:`SubnetId`,[g]:Kb}],[()=>WS,0],[()=>WS,0],[()=>WS,0],0,[()=>WS,0],0,[()=>WS,0],[()=>WS,0],1,[()=>WS,0]],1],_E=[3,_,zae,0,[Bm,f,dm,Gm,ff,Tm,Sf],[0,2,1,0,1,1,2],1],vE=[3,_,Bae,0,[Vm],[[()=>kD,{[m]:`VolumeModification`,[g]:aS}]]],yE=[3,_,zf,0,[fm],[[0,{[m]:`State`,[g]:_x}]]],bE=[3,_,Wf,0,[Ca,Ns,dl,vl,eoe,Gf,lp,fm,Qp,Rm,gm,Sa,ui,$ne,Bne,Sne,Lp],[[4,{[m]:`CreateTime`,[g]:Oh}],[4,{[m]:`DeleteTime`,[g]:Gde}],[0,{[m]:`FailureCode`,[g]:Yh}],[0,{[m]:`FailureMessage`,[g]:Xh}],[()=>XO,{[m]:`NatGatewayAddressSet`,[g]:jv}],[0,{[m]:`NatGatewayId`,[g]:Mv}],[()=>UE,{[m]:`ProvisionedBandwidth`,[g]:cy}],[0,{[m]:`State`,[g]:_x}],[0,{[m]:`SubnetId`,[g]:Kb}],[0,{[m]:`VpcId`,[g]:tS}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`ConnectivityType`,[g]:Ode}],[0,{[m]:`AvailabilityMode`,[g]:Wue}],[0,{[m]:`AutoScalingIps`,[g]:Zue}],[0,{[m]:`AutoProvisionZones`,[g]:que}],[()=>ZO,{[m]:`AttachedApplianceSet`,[g]:Lue}],[0,{[m]:`RouteTableId`,[g]:pb}]]],xE=[3,_,ioe,0,[oi,Kf,Goe,bp,ci,fie,vl,pm,gi,yi],[[0,{[m]:`AllocationId`,[g]:Zm}],[0,{[m]:`NetworkInterfaceId`,[g]:Pv}],[0,{[m]:`PrivateIp`,[g]:Oy}],[0,{[m]:`PublicIp`,[g]:Sy}],[0,{[m]:`AssociationId`,[g]:$m}],[2,{[m]:`IsPrimary`,[g]:d_}],[0,{[m]:`FailureMessage`,[g]:Xh}],[0,{[m]:`Status`,[g]:vx}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[0,{[m]:`AvailabilityZoneId`,[g]:oh}]]],SE=[3,_,toe,0,[Dm,bne,Lm,ere,Pf,dl,vl],[[0,{[m]:`Type`,[g]:Hx}],[0,{[m]:`ApplianceArn`,[g]:Rue}],[0,{[m]:`VpcEndpointId`,[g]:eS}],[0,{[m]:`AttachmentState`,[g]:tde}],[0,{[m]:`ModificationState`,[g]:hv}],[0,{[m]:`FailureCode`,[g]:Yh}],[0,{[m]:`FailureMessage`,[g]:Xh}]]],CE=[3,_,qae,0,[Hf,Zf,kf,Tne,vre,Doe,Ja,Oae,kae],[[1,{[m]:`NetworkCardIndex`,[g]:Ev}],[0,{[m]:`NetworkPerformance`,[g]:Vv}],[1,{[m]:`MaximumNetworkInterfaces`,[g]:cv}],[1,{[m]:`AdditionalFlexibleNetworkInterfaces`,[g]:zue}],[1,{[m]:`BaselineBandwidthInGbps`,[g]:ade}],[1,{[m]:`PeakBandwidthInGbps`,[g]:ly}],[1,{[m]:`DefaultEnaQueueCountPerInterface`,[g]:Mde}],[1,{[m]:`MaximumEnaQueueCount`,[g]:rv}],[1,{[m]:`MaximumEnaQueueCountPerInterface`,[g]:iv}]]],wE=[3,_,Jf,0,[Zf,kf,Nae,Fo,Gae,gu,_u,Mie,rl,tl,Mc,Ac,Zc,kre,hl,_a,ale,Lae,vu],[[0,{[m]:`NetworkPerformance`,[g]:Vv}],[1,{[m]:`MaximumNetworkInterfaces`,[g]:cv}],[1,{[m]:`MaximumNetworkCards`,[g]:sv}],[1,{[m]:`DefaultNetworkCardIndex`,[g]:Fde}],[()=>ek,{[m]:`NetworkCards`,[g]:Tv}],[1,{[m]:`Ipv4AddressesPerInterface`,[g]:wg}],[1,{[m]:`Ipv6AddressesPerInterface`,[g]:Tg}],[2,{[m]:`Ipv6Supported`,[g]:S_}],[0,{[m]:`EnaSupport`,[g]:Gh}],[2,{[m]:`EfaSupported`,[g]:Tfe}],[()=>qw,{[m]:`EfaInfo`,[g]:pfe}],[2,{[m]:`EncryptionInTransitSupported`,[g]:dfe}],[2,{[m]:`EnaSrdSupported`,[g]:Sfe}],[()=>JD,{[m]:`BandwidthWeightings`,[g]:lde}],[0,{[m]:`FlexibleEnaQueuesSupport`,[g]:Dfe}],[()=>IC,{[m]:`ConnectionTrackingConfiguration`,[g]:Dh}],[2,{[m]:`SecondaryNetworkSupported`,[g]:Qb}],[1,{[m]:`MaximumSecondaryNetworkInterfaces`,[g]:mv}],[1,{[m]:`Ipv4AddressesPerSecondaryInterface`,[g]:Eg}]]],TE=[3,_,Jae,0,[ja,qm],[[1,{[m]:`Count`,[g]:Ah}],[1,{[m]:`Version`,[g]:_S}]]],EE=[3,_,Yae,0,[ja,Bf,Ure,Of],[[1,{[m]:`Count`,[g]:Ah}],[0,{[m]:`Name`,[g]:Cv}],[()=>TE,{[m]:`CoreInfo`,[g]:yde}],[()=>DE,{[m]:`MemoryInfo`,[g]:ov}]]],DE=[3,_,Zae,0,[Jp],[[1,{[m]:`SizeInMiB`,[g]:Bb}]]],OE=[3,_,Yf,0,[Qae,Ple],[[()=>tk,{[m]:`NeuronDevices`,[g]:Ov}],[1,{[m]:`TotalNeuronDeviceMemoryInMiB`,[g]:Ax}]]],kE=[3,_,$f,0,[yle],[[()=>nk,{[m]:`SupportedVersions`,[g]:hx}]]],AE=[3,_,yoe,0,[cp],[0]],jE=[3,_,boe,0,[Uae,cp,Xl],[[2,{[m]:`Managed`,[g]:yv}],[0,{[m]:`Principal`,[g]:sy}],[2,{[m]:`HiddenByDefault`,[g]:ug}]]],ME=[3,_,Op,0,[yi,mre,Ul,Zoe,Ql,Hle,bce,ru,zl,gi],[[0,{[m]:`AvailabilityZoneId`,[g]:oh}],[0,{[m]:`Affinity`,[g]:rde}],[0,{[m]:`GroupName`,[g]:ng}],[1,{[m]:`PartitionNumber`,[g]:Ny}],[0,{[m]:`HostId`,[g]:fg}],[0,{[m]:`Tenancy`,[g]:xx}],[0,{[m]:`SpreadDomain`,[g]:Db}],[0,{[m]:`HostResourceGroupArn`,[g]:gg}],[0,{[m]:`GroupId`,[g]:eg}],[0,{[m]:`AvailabilityZone`,[g]:ah}]]],NE=[3,_,_p,0,[Ul,fm,mm,up,zl,gm,Dl,$p,xf,op,vp],[[0,{[m]:`GroupName`,[g]:ng}],[0,{[m]:`State`,[g]:_x}],[0,{[m]:`Strategy`,[g]:yx}],[1,{[m]:`PartitionCount`,[g]:dy}],[0,{[m]:`GroupId`,[g]:eg}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`GroupArn`,[g]:Nfe}],[0,{[m]:`SpreadLevel`,[g]:qb}],[0,{[m]:`LinkedGroupId`,[g]:G_}],[()=>jE,{[m]:`Operator`,[g]:ay}],[0,{[m]:`ParentGroupId`,[g]:by}]]],PE=[3,_,yp,0,[fle],[[()=>ok,{[m]:`SupportedStrategies`,[g]:cx}]]],FE=[3,_,Tp,0,[Ys,Tp],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`PrefixListId`,[g]:jy}]]],IE=[3,_,mp,0,[ou,Kc,Wc],[[0,{[m]:`HostnameType`,[g]:yg}],[2,{[m]:`EnableResourceNameDnsARecord`,[g]:Uh}],[2,{[m]:`EnableResourceNameDnsAAAARecord`,[g]:Hh}]]],LE=[3,_,Noe,0,[ou,Kc,Wc],[0,2,2]],RE=[3,_,Poe,0,[ou,Kc,Wc],[[0,{[m]:`HostnameType`,[g]:yg}],[2,{[m]:`EnableResourceNameDnsARecord`,[g]:Uh}],[2,{[m]:`EnableResourceNameDnsAAAARecord`,[g]:Hh}]]],zE=[3,_,Boe,0,[kp,xp],[[2,{[m]:`Primary`,[g]:Wy}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}]]],BE=[3,_,wp,0,[gce,yce,xce,If],[[()=>VD,{[m]:`SupportedArchitectures`,[g]:Sb}],[1,{[m]:`SustainedClockSpeedInGhz`,[g]:Tb}],[()=>Mk,{[m]:`SupportedFeatures`,[g]:Ob}],[0,{[m]:`Manufacturer`,[g]:vv}]]],VE=[3,_,joe,0,[Ooe,Aoe],[[0,{[m]:`ProductCode`,[g]:fy}],[0,{[m]:`Type`,[g]:Hx}]]],HE=[3,_,nse,0,[Fl],[[0,{[m]:`GatewayId`,[g]:$h}]]],UE=[3,_,lp,0,[ese,sse,nce,sce,pm],[[4,{[m]:`ProvisionTime`,[g]:Ly}],[0,{[m]:`Provisioned`,[g]:Ky}],[4,{[m]:`RequestTime`,[g]:gb}],[0,{[m]:`Requested`,[g]:bb}],[0,{[m]:`Status`,[g]:vx}]]],WE=[3,_,Sse,0,[pd,f],[[()=>xO,{[g]:qu}],[2,{[m]:`DryRun`,[g]:p}]],1],GE=[3,_,zse,0,[zl,Ep,km,Rm,Um],[[0,{[m]:`GroupId`,[g]:eg}],[0,{[m]:`PeeringStatus`,[g]:Py}],[0,{[m]:`UserId`,[g]:Wx}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`VpcPeeringConnectionId`,[g]:lS}]]],KE=[3,_,oce,0,[ip,Jl,Fp,ll],[[0,{[m]:`OptInStatus`,[g]:Qv}],[()=>fk,{[m]:`GeographySet`,[g]:ag}],[0,{[m]:`RegionName`,[g]:cb}],[0,{[m]:`RegionEndpoint`,[g]:Qy}]]],qE=[3,_,_se,0,[Bf],[[0,{[m]:`Name`,[g]:Cv}]]],JE=[3,_,Cse,0,[Bf,_d,Ere,Ai,Cm,Wle,of,xm,f,Ys,Si,mf,Pp,Mp,Oi,Km,nm,rl],[[0,{[m]:`Name`,[g]:Cv}],0,[()=>YD,{[g]:Dre}],0,0,0,0,[()=>Pk,{[g]:Sm}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`Architecture`,[g]:lh}],[0,{[m]:`KernelId`,[g]:N_}],[0,{[m]:`RamdiskId`,[g]:rb}],[0,{[m]:`RootDeviceName`,[g]:Yy}],[()=>ZD,{[g]:Di}],[0,{[m]:`VirtualizationType`,[g]:gS}],[0,{[m]:`SriovNetSupport`,[g]:$b}],[2,{[m]:`EnaSupport`,[g]:Gh}]],1],YE=[3,_,wse,0,[dd],[[0,{[m]:`ImageId`,[g]:Gg}]]],XE=[3,_,lse,0,[oi,bp,Vf,f],[0,0,0,[2,{[m]:`DryRun`,[g]:p}]]],ZE=[3,_,lce,0,[Dse,rp,Ase,El,Uie],[[0,{[m]:`ReservationId`,[g]:nb}],[0,{[m]:`OwnerId`,[g]:Zv}],[0,{[m]:`RequesterId`,[g]:ab}],[()=>dO,{[m]:`GroupSet`,[g]:og}],[()=>TO,{[m]:`InstancesSet`,[g]:y_}]]],QE=[3,_,Kse,0,[Wp,zl,Iu,$d,yl,ym,Vi,Bi,Tp,vse,Ys],[[0,{[m]:`SecurityGroupRuleId`,[g]:Mb}],[0,{[m]:`GroupId`,[g]:eg}],[2,{[m]:`IsEgress`,[g]:Fg}],[0,{[m]:`IpProtocol`,[g]:a_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:jx}],[0,{[m]:`CidrIpv4`,[g]:Sh}],[0,{[m]:`CidrIpv6`,[g]:xh}],[0,{[m]:`PrefixListId`,[g]:jy}],[0,{[m]:`ReferencedGroupId`,[g]:eb}],[0,{[m]:`Description`,[g]:Lh}]]],$E=[3,_,Vse,0,[zl,Up,f,om,sm,$d,yl,ym,zi,Qd],[[0,{[m]:`GroupId`,[g]:eg}],[()=>wk,{[g]:Wp}],[2,{[m]:`DryRun`,[g]:p}],[0,{[m]:`SourceSecurityGroupName`,[g]:rx}],[0,{[m]:`SourceSecurityGroupOwnerId`,[g]:ix}],[0,{[m]:`IpProtocol`,[g]:a_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:jx}],[0,{[m]:`CidrIp`,[g]:bh}],[()=>zO,{[m]:`IpPermissions`,[g]:o_}]],1],eD=[3,_,Hse,0,[jp,Am,Ip],[[2,{[m]:`Return`,[g]:qy}],[()=>zO,{[m]:`UnknownIpPermissionSet`,[g]:Gx}],[()=>gk,{[m]:`RevokedSecurityGroupRuleSet`,[g]:lb}]]],tD=[3,_,Use,0,[zi,yl,zl,Ul,Qd,$d,om,sm,ym,Up,f],[0,1,0,0,[()=>zO,0],0,0,0,1,[()=>wk,{[g]:Wp}],[2,{[m]:`DryRun`,[g]:p}]]],nD=[3,_,Wse,0,[jp,Am,Ip],[[2,{[m]:`Return`,[g]:qy}],[()=>zO,{[m]:`UnknownIpPermissionSet`,[g]:Gx}],[()=>gk,{[m]:`RevokedSecurityGroupRuleSet`,[g]:lb}]]],rD=[3,_,uce,0,[Wa,Qa,Xo,Rc,Fl,qu,Ud,Gf,vm,bf,Li,Kf,moe,fm,Um,Hi,ap,bu],[[0,{[m]:`DestinationCidrBlock`,[g]:Mh}],[0,{[m]:`DestinationIpv6CidrBlock`,[g]:Ph}],[0,{[m]:`DestinationPrefixListId`,[g]:Rde}],[0,{[m]:`EgressOnlyInternetGatewayId`,[g]:Vh}],[0,{[m]:`GatewayId`,[g]:$h}],[0,{[m]:`InstanceId`,[g]:Bg}],[0,{[m]:`InstanceOwnerId`,[g]:Qg}],[0,{[m]:`NatGatewayId`,[g]:Mv}],[0,{[m]:`TransitGatewayId`,[g]:wx}],[0,{[m]:`LocalGatewayId`,[g]:W_}],[0,{[m]:`CarrierGatewayId`,[g]:gde}],[0,{[m]:`NetworkInterfaceId`,[g]:Pv}],[0,{[m]:`Origin`,[g]:Jv}],[0,{[m]:`State`,[g]:_x}],[0,{[m]:`VpcPeeringConnectionId`,[g]:lS}],[0,{[m]:`CoreNetworkArn`,[g]:bde}],[0,{[m]:`OdbNetworkArn`,[g]:ty}],[0,{[m]:`IpAddress`,[g]:kg}]]],iD=[3,_,Rp,0,[hre,ise,Lp,dce,gm,Rm,rp],[[()=>yk,{[m]:`AssociationSet`,[g]:ede}],[()=>uk,{[m]:`PropagatingVgwSet`,[g]:zy}],[0,{[m]:`RouteTableId`,[g]:pb}],[()=>vk,{[m]:`RouteSet`,[g]:db}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`OwnerId`,[g]:Zv}]]],aD=[3,_,Jse,0,[Hae,Yse,Lp,Qp,Fl,Cp,pi],[[2,{[m]:`Main`,[g]:_v}],[0,{[m]:`RouteTableAssociationId`,[g]:fb}],[0,{[m]:`RouteTableId`,[g]:pb}],[0,{[m]:`SubnetId`,[g]:Kb}],[0,{[m]:`GatewayId`,[g]:$h}],[0,{[m]:`PublicIpv4Pool`,[g]:Ey}],[()=>oD,{[m]:`AssociationState`,[g]:nh}]]],oD=[3,_,Zse,0,[fm,em],[[0,{[m]:`State`,[g]:_x}],[0,{[m]:`StatusMessage`,[g]:Yb}]]],sD=[3,_,xse,0,[sl],[[2,{[m]:`Enabled`,[g]:qh}]],1],cD=[3,_,Tse,0,[bae,xae,Oi,dd,cf,fu,uu,mf,gf,zf,Op,Pp,wce,Gp,Qp,Om,_c,Dc,xm,fae,Dd,fa,Ui,Yi,$l,lae,Af,Vc,pp,jf,Ia,Hc,Xf,op,Xp,f,La,cd,xp,ga,ai,qf,Zu,Pc],[1,1,[()=>ZD,{[g]:Di}],0,0,1,[()=>CO,{[g]:xu}],0,0,[()=>sD,0],[()=>ME,0],0,[()=>Sk,{[g]:Vp}],[()=>Ek,{[g]:Kp}],0,[()=>jS,0],[()=>iO,0],[()=>oO,{[g]:yc}],[()=>Pk,{[g]:Sm}],()=>cE,()=>PT,()=>FC,()=>pC,()=>iC,()=>pT,[()=>JO,{[g]:dae}],()=>FT,()=>tT,()=>LE,()=>NT,2,2,()=>HT,()=>AE,[()=>MO,{[g]:qce}],[2,{[m]:`DryRun`,[g]:p}],[2,{[m]:`DisableApiTermination`,[g]:jh}],[0,{[m]:`InstanceInitiatedShutdownBehavior`,[g]:Wg}],[0,{[m]:`PrivateIpAddress`,[g]:Ty}],[0,{[m]:`ClientToken`,[T_]:1,[g]:Eh}],[0,{[m]:`AdditionalInfo`,[g]:Qm}],[()=>DO,{[m]:`NetworkInterface`,[g]:Lv}],[()=>gT,{[m]:`IamInstanceProfile`,[g]:Vg}],[2,{[m]:`EbsOptimized`,[g]:Bh}]],2],lD=[3,_,Kp,0,[zl,qd,gm,Rm,Bp,rp,Ul,Ys,Qd],[[0,{[m]:`GroupId`,[g]:eg}],[()=>zO,{[m]:`IpPermissionsEgress`,[g]:t_}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`SecurityGroupArn`,[g]:kb}],[0,{[m]:`OwnerId`,[g]:Zv}],[0,{[m]:`GroupName`,[g]:ng}],[0,{[m]:`GroupDescription`,[g]:Pfe}],[()=>zO,{[m]:`IpPermissions`,[g]:o_}]]],uD=[3,_,kce,0,[Wp,zl,Kl,Iu,$d,yl,ym,Vi,Bi,Tp,yse,Ys,gm,Ece],[[0,{[m]:`SecurityGroupRuleId`,[g]:Mb}],[0,{[m]:`GroupId`,[g]:eg}],[0,{[m]:`GroupOwnerId`,[g]:rg}],[2,{[m]:`IsEgress`,[g]:Fg}],[0,{[m]:`IpProtocol`,[g]:a_}],[1,{[m]:`FromPort`,[g]:Zh}],[1,{[m]:`ToPort`,[g]:jx}],[0,{[m]:`CidrIpv4`,[g]:Sh}],[0,{[m]:`CidrIpv6`,[g]:xh}],[0,{[m]:`PrefixListId`,[g]:jy}],[()=>GE,{[m]:`ReferencedGroupInfo`,[g]:tb}],[0,{[m]:`Description`,[g]:Lh}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`SecurityGroupRuleArn`,[g]:jb}]]],dD=[3,_,xle,0,[hoe,np,gm,mle,hse,um,gi,Ble,Ii,xa,xl,Zp,Bm,fm,tm,lm,Ap,rp,Ys,Wm,cl,hf,qa],[[0,{[m]:`OwnerAlias`,[g]:Xv}],[0,{[m]:`OutpostArn`,[g]:Yv}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`StorageTier`,[g]:dx}],[4,{[m]:`RestoreExpiryTime`,[g]:Zy}],[0,{[m]:`SseType`,[g]:ux}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[0,{[m]:`TransferType`,[g]:Rx}],[1,{[m]:`CompletionDurationMinutes`,[g]:mde}],[4,{[m]:`CompletionTime`,[g]:Dde}],[1,{[m]:`FullSnapshotSizeInBytes`,[g]:Afe}],[0,{[m]:`SnapshotId`,[g]:Gb}],[0,{[m]:`VolumeId`,[g]:rS}],[0,{[m]:`Status`,[g]:vx}],[0,{[m]:`StatusMessage`,[g]:Yb}],[4,{[m]:`StartTime`,[g]:lx}],[0,{[m]:`Progress`,[g]:Gy}],[0,{[m]:`OwnerId`,[g]:Zv}],[0,{[m]:`Description`,[g]:Lh}],[1,{[m]:`VolumeSize`,[g]:fS}],[2,{[m]:`Encrypted`,[g]:Jh}],[0,{[m]:`KmsKeyId`,[g]:P_}],[0,{[m]:`DataEncryptionKeyId`,[g]:jde}]]],fD=[3,_,rle,0,[Pae,Kce,xre,Cue,Xu],[0,0,1,4,0]],pD=[3,_,zce,0,[pd,ai,f],[[()=>xO,{[g]:qu}],[0,{[m]:`AdditionalInfo`,[g]:Qm}],[2,{[m]:`DryRun`,[g]:p}]],1],mD=[3,_,Bce,0,[Yce],[[()=>NO,{[m]:`InstancesSet`,[g]:y_}]]],hD=[3,_,am,0,[ka,Lf],[[0,{[m]:`Code`,[g]:kh}],[0,{[m]:`Message`,[g]:bv}]]],gD=[3,_,Vce,0,[pd,su,rm,f,ul],[[()=>xO,{[g]:qu}],2,2,[2,{[m]:`DryRun`,[g]:p}],[2,{[m]:`Force`,[g]:jfe}]],1],_D=[3,_,Hce,0,[Zce],[[()=>NO,{[m]:`InstancesSet`,[g]:y_}]]],vD=[3,_,hm,0,[yi,Nc,Ef,Gi,rp,ii,Du,gm,hce,np,sc,Ad,mp,ji,Dm,Qp,fm,Rm,Pi,Ene,gi,Ya,Mf],[[0,{[m]:`AvailabilityZoneId`,[g]:oh}],[1,{[m]:`EnableLniAtDeviceIndex`,[g]:mfe}],[2,{[m]:`MapCustomerOwnedIpOnLaunch`,[g]:$_}],[0,{[m]:`CustomerOwnedIpv4Pool`,[g]:wh}],[0,{[m]:`OwnerId`,[g]:Zv}],[2,{[m]:`AssignIpv6AddressOnCreation`,[g]:Vue}],[()=>Ak,{[m]:`Ipv6CidrBlockAssociationSet`,[g]:Mg}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`SubnetArn`,[g]:Cb}],[0,{[m]:`OutpostArn`,[g]:Yv}],[2,{[m]:`EnableDns64`,[g]:$de}],[2,{[m]:`Ipv6Native`,[g]:Yg}],[()=>IE,{[m]:`PrivateDnsNameOptionsOnLaunch`,[g]:my}],[()=>rC,{[m]:`BlockPublicAccessStates`,[g]:gh}],[0,{[m]:`Type`,[g]:Hx}],[0,{[m]:`SubnetId`,[g]:Kb}],[0,{[m]:`State`,[g]:_x}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`CidrBlock`,[g]:vh}],[1,{[m]:`AvailableIpAddressCount`,[g]:Bue}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[2,{[m]:`DefaultForAz`,[g]:Nde}],[2,{[m]:`MapPublicIpOnLaunch`,[g]:dv}]]],yD=[3,_,vce,0,[fm,em],[[0,{[m]:`State`,[g]:_x}],[0,{[m]:`StatusMessage`,[g]:Yb}]]],bD=[3,_,Mce,0,[ci,Eu,ku,du,sf],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`Ipv6CidrBlock`,[g]:jg}],[()=>yD,{[m]:`Ipv6CidrBlockState`,[g]:Ng}],[0,{[m]:`Ipv6AddressAttribute`,[g]:xg}],[0,{[m]:`IpSource`,[g]:x_}]]],xD=[3,_,wm,0,[Wie,Pm],[[0,{[m]:`Key`,[g]:j_}],[0,{[m]:`Value`,[g]:Xx}]]],SD=[3,_,Sm,0,[tce,gm],[[0,{[m]:`ResourceType`,[g]:hb}],[()=>Nk,{[g]:wm}]]],CD=[3,_,Dle,0,[pd,ul,rm,f],[[()=>xO,{[g]:qu}],2,2,[2,{[m]:`DryRun`,[g]:p}]],1],wD=[3,_,Ole,0,[Ale],[[()=>NO,{[m]:`InstancesSet`,[g]:y_}]]],TD=[3,_,qle,0,[Ys,km,Ul,zl,Rm,Um,Ep],[[0,{[m]:`Description`,[g]:Lh}],[0,{[m]:`UserId`,[g]:Wx}],[0,{[m]:`GroupName`,[g]:ng}],[0,{[m]:`GroupId`,[g]:eg}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`VpcPeeringConnectionId`,[g]:lS}],[0,{[m]:`PeeringStatus`,[g]:Py}]]],ED=[3,_,Fm,0,[Is,Ka,js,eue,Sue],[[1,{[m]:`DefaultVCpus`,[g]:Jde}],[1,{[m]:`DefaultCores`,[g]:Ade}],[1,{[m]:`DefaultThreadsPerCore`,[g]:Ude}],[()=>$D,{[m]:`ValidCores`,[g]:Qx}],[()=>Fk,{[m]:`ValidThreadsPerCore`,[g]:hS}]]],DD=[3,_,Eue,0,[yi,np,_le,ff,gm,Gm,bl,Sf,Tm,um,op,zm,Bm,dm,Zp,gi,fm,Ca,Ti,cl,hf],[[0,{[m]:`AvailabilityZoneId`,[g]:oh}],[0,{[m]:`OutpostArn`,[g]:Yv}],[0,{[m]:`SourceVolumeId`,[g]:px}],[1,{[m]:`Iops`,[g]:A_}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[0,{[m]:`VolumeType`,[g]:mS}],[2,{[m]:`FastRestored`,[g]:kfe}],[2,{[m]:`MultiAttachEnabled`,[g]:Y_}],[1,{[m]:`Throughput`,[g]:Bx}],[0,{[m]:`SseType`,[g]:ux}],[()=>jE,{[m]:`Operator`,[g]:ay}],[1,{[m]:`VolumeInitializationRate`,[g]:nS}],[0,{[m]:`VolumeId`,[g]:rS}],[1,{[m]:`Size`,[g]:gx}],[0,{[m]:`SnapshotId`,[g]:Gb}],[0,{[m]:`AvailabilityZone`,[g]:ah}],[0,{[m]:`Status`,[g]:vx}],[4,{[m]:`CreateTime`,[g]:Oh}],[()=>Bk,{[m]:`AttachmentSet`,[g]:rh}],[2,{[m]:`Encrypted`,[g]:Jh}],[0,{[m]:`KmsKeyId`,[g]:P_}]]],OD=[3,_,Xle,0,[Wo,di,Wd,nc,Bm,qu,Xs,fm,hi],[[2,{[m]:`DeleteOnTermination`,[g]:Ih}],[0,{[m]:`AssociatedResource`,[g]:th}],[0,{[m]:`InstanceOwningService`,[g]:e_}],[1,{[m]:`EbsCardIndex`,[g]:zh}],[0,{[m]:`VolumeId`,[g]:rS}],[0,{[m]:`InstanceId`,[g]:Bg}],[0,{[m]:`Device`,[g]:Yde}],[0,{[m]:`Status`,[g]:vx}],[4,{[m]:`AttachTime`,[g]:ih}]]],kD=[3,_,Vm,0,[Bm,Pf,em,Rle,kle,Vle,zle,Mle,Soe,goe,woe,Coe,voe,Ap,lm,il,op],[[0,{[m]:`VolumeId`,[g]:rS}],[0,{[m]:`ModificationState`,[g]:hv}],[0,{[m]:`StatusMessage`,[g]:Yb}],[1,{[m]:`TargetSize`,[g]:Fx}],[1,{[m]:`TargetIops`,[g]:Dx}],[0,{[m]:`TargetVolumeType`,[g]:zx}],[1,{[m]:`TargetThroughput`,[g]:Lx}],[2,{[m]:`TargetMultiAttachEnabled`,[g]:Ox}],[1,{[m]:`OriginalSize`,[g]:ny}],[1,{[m]:`OriginalIops`,[g]:$v}],[0,{[m]:`OriginalVolumeType`,[g]:iy}],[1,{[m]:`OriginalThroughput`,[g]:ry}],[2,{[m]:`OriginalMultiAttachEnabled`,[g]:ey}],[1,{[m]:`Progress`,[g]:Gy}],[4,{[m]:`StartTime`,[g]:lx}],[4,{[m]:`EndTime`,[g]:Efe}],[()=>jE,{[m]:`Operator`,[g]:ay}]]],AD=[3,_,Jm,0,[rp,lf,Du,Are,Fu,oc,gm,ji,Rm,fm,Pi,Uo],[[0,{[m]:`OwnerId`,[g]:Zv}],[0,{[m]:`InstanceTenancy`,[g]:D_}],[()=>Gk,{[m]:`Ipv6CidrBlockAssociationSet`,[g]:Mg}],[()=>Uk,{[m]:`CidrBlockAssociationSet`,[g]:ude}],[2,{[m]:`IsDefault`,[g]:Pg}],[()=>ND,{[m]:`EncryptionControl`,[g]:Qde}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}],[()=>rC,{[m]:`BlockPublicAccessStates`,[g]:gh}],[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`State`,[g]:_x}],[0,{[m]:`CidrBlock`,[g]:vh}],[0,{[m]:`DhcpOptionsId`,[g]:Lde}]]],jD=[3,_,Zle,0,[ci,Pi,Mre],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`CidrBlock`,[g]:vh}],[()=>MD,{[m]:`CidrBlockState`,[g]:fde}]]],MD=[3,_,$le,0,[fm,em],[[0,{[m]:`State`,[g]:_x}],[0,{[m]:`StatusMessage`,[g]:Yb}]]],ND=[3,_,Im,0,[Rm,iue,Rf,fm,tm,gse,gm],[[0,{[m]:`VpcId`,[g]:tS}],[0,{[m]:`VpcEncryptionControlId`,[g]:$x}],[0,{[m]:`Mode`,[g]:xv}],[0,{[m]:`State`,[g]:_x}],[0,{[m]:`StateMessage`,[g]:Xb}],[()=>ID,{[m]:`ResourceExclusions`,[g]:$y}],[()=>Nk,{[m]:`TagSet`,[g]:Nx}]]],PD=[3,_,tue,0,[Rf,Vu,Lc,aoe,yue,_ue,aae,fue,lc],[0,0,0,0,0,0,0,0,0],1],FD=[3,_,nue,0,[fm,tm],[[0,{[m]:`State`,[g]:_x}],[0,{[m]:`StateMessage`,[g]:Xb}]]],ID=[3,_,rue,0,[Lu,Ic,Wf,vue,gue,nae,due,cc],[[()=>FD,{[m]:`InternetGateway`,[g]:Ig}],[()=>FD,{[m]:`EgressOnlyInternetGateway`,[g]:gfe}],[()=>FD,{[m]:`NatGateway`,[g]:Av}],[()=>FD,{[m]:`VirtualPrivateGateway`,[g]:uS}],[()=>FD,{[m]:`VpcPeering`,[g]:cS}],[()=>FD,{[m]:`Lambda`,[g]:V_}],[()=>FD,{[m]:`VpcLattice`,[g]:iS}],[()=>FD,{[m]:`ElasticFileSystem`,[g]:efe}]]],LD=[3,_,aue,0,[ci,Eu,ku,Vf,tf,du,sf],[[0,{[m]:`AssociationId`,[g]:$m}],[0,{[m]:`Ipv6CidrBlock`,[g]:jg}],[()=>MD,{[m]:`Ipv6CidrBlockState`,[g]:Ng}],[0,{[m]:`NetworkBorderGroup`,[g]:wv}],[0,{[m]:`Ipv6Pool`,[g]:c_}],[0,{[m]:`Ipv6AddressAttribute`,[g]:xg}],[0,{[m]:`IpSource`,[g]:x_}]]],RD=`unit`,zD=[1,_,Lne,0,[()=>NS,{[g]:h}]],BD=[1,_,Mne,0,[0,{[g]:oi}]],VD=[1,_,tre,0,[0,{[g]:h}]],HD=[1,_,Nne,0,[0,{[g]:ci}]],UD=[1,_,vi,0,[()=>ZS,{[g]:_i}]],WD=[1,_,ore,0,[()=>QS,{[g]:h}]],GD=[1,_,sre,0,[()=>XS,{[g]:h}]],KD=[1,_,lre,0,[()=>$S,{[g]:h}]],qD=[1,_,dre,0,[()=>eC,{[g]:h}]],JD=[1,_,Ore,0,[0,{[g]:h}]],YD=[1,_,wre,0,[0,{[g]:h}]],XD=[1,_,yre,0,[()=>nC,{[g]:h}]],ZD=[1,_,bre,0,[()=>nC,{[g]:Di}]],QD=[1,_,Sre,0,[0,{[g]:h}]],$D=[1,_,Nre,0,[1,{[g]:h}]],eO=[1,_,ys,0,[()=>JC,{[g]:h}]],tO=[1,_,po,0,[()=>Bw,{[g]:h}]],nO=[1,_,rc,0,[()=>Hw,{[g]:h}]],rO=[1,_,fc,0,[()=>Jw,{[g]:h}]],iO=[1,_,vc,0,[()=>Yw,{[g]:h}]],aO=[1,_,Sc,0,[()=>Zw,{[g]:h}]],oO=[1,_,Dc,0,[()=>Xw,{[g]:h}]],sO=[1,_,ec,0,[0,{[g]:tc}]],cO=[1,_,_l,0,[()=>nT,{[g]:wl}]],lO=[1,_,pl,0,[()=>rT,{[g]:h}]],uO=[1,_,Nl,0,[()=>cT,{[g]:h}]],dO=[1,_,Il,0,[()=>dT,{[g]:h}]],fO=[1,_,Ll,0,[0,{[g]:eg}]],pO=[1,_,Wl,0,[0,{[g]:Ul}]],mO=[1,_,$u,0,[()=>hT,{[g]:h}]],hO=[1,_,ld,0,[0,{[g]:dd}]],gO=[1,_,vd,0,[()=>_T,{[g]:h}]],_O=[1,_,Rie,0,[()=>vT,{[g]:h}]],vO=[1,_,Mu,0,[()=>ST,0]],yO=[1,_,Cu,0,[()=>DT,{[g]:h}]],bO=[1,_,Tu,0,[()=>OT,{[g]:h}]],xO=[1,_,ud,0,[0,{[g]:qu}]],SO=[1,_,rd,0,[()=>kT,{[g]:h}]],CO=[1,_,Yu,0,[()=>AT,{[g]:h}]],wO=[1,_,id,0,[()=>jT,{[g]:h}]],TO=[1,_,bd,0,[()=>wT,{[g]:h}]],EO=[1,_,Pd,0,[()=>LT,{[g]:h}]],DO=[1,_,Id,0,[()=>BT,{[g]:h}]],OO=[1,_,Xd,0,[()=>UT,{[g]:h}]],kO=[1,_,Sie,0,[()=>WT,{[g]:h}]],AO=[1,_,wie,0,[()=>KT,{[g]:h}]],jO=[1,_,Tie,0,[()=>qT,{[g]:h}]],MO=[1,_,Die,0,[()=>JT,{[g]:h}]],NO=[1,_,bie,0,[()=>XT,{[g]:h}]],PO=[1,_,Nie,0,[()=>QT,{[g]:h}]],FO=[1,_,zu,0,[()=>eE,{[g]:h}]],IO=[1,_,Uu,0,[0,{[g]:h}]],LO=[1,_,Gu,0,[()=>$T,{[g]:h}]],RO=[1,_,xd,0,[0,{[g]:h}]],zO=[1,_,oie,0,[()=>tE,{[g]:h}]],BO=[1,_,pie,0,[()=>nE,{[g]:h}]],VO=[1,_,sie,0,[()=>rE,{[g]:h}]],HO=[1,_,cie,0,[()=>iE,{[g]:h}]],UO=[1,_,mie,0,[()=>aE,{[g]:h}]],WO=[1,_,qie,0,[0,{[g]:gf}]],GO=[1,_,Xie,0,[0,{[g]:_f}]],KO=[1,_,$ie,0,[()=>sE,{[g]:h}]],qO=[1,_,sae,0,[()=>lE,{[g]:h}]],JO=[1,_,uae,0,[()=>uE,{[g]:h}]],YO=[1,_,Cae,0,[()=>fE,{[g]:h}]],XO=[1,_,roe,0,[()=>xE,{[g]:h}]],ZO=[1,_,noe,0,[()=>SE,{[g]:h}]],QO=[1,_,ooe,0,[0,{[g]:h}]],$O=[1,_,coe,0,[()=>bE,{[g]:h}]],ek=[1,_,Kae,0,[()=>CE,{[g]:h}]],tk=[1,_,Xae,0,[()=>EE,{[g]:h}]],nk=[1,_,poe,0,[0,{[g]:h}]],rk=[1,_,xoe,0,[0,{[g]:sp}]],ik=[1,_,Foe,0,[0,{[g]:zl}]],ak=[1,_,Ioe,0,[()=>NE,{[g]:h}]],ok=[1,_,Loe,0,[0,{[g]:h}]],sk=[1,_,Yoe,0,[()=>FE,{[g]:h}]],ck=[1,_,Voe,0,[()=>zE,{[g]:h}]],lk=[1,_,koe,0,[()=>VE,{[g]:h}]],uk=[1,_,rse,0,[()=>HE,{[g]:h}]],dk=[1,_,Uoe,0,[0,{[g]:bp}]],fk=[1,_,bse,0,[()=>qE,{[g]:h}]],pk=[1,_,Mse,0,[()=>KE,{[g]:h}]],mk=[1,_,Lse,0,[0,{[g]:Fp}]],hk=[1,_,Nse,0,[()=>ZE,{[g]:h}]],gk=[1,_,qse,0,[()=>QE,{[g]:h}]],_k=[1,_,mse,0,[0,{[g]:h}]],vk=[1,_,Pse,0,[()=>rD,{[g]:h}]],yk=[1,_,Xse,0,[()=>aD,{[g]:h}]],bk=[1,_,Qse,0,[0,{[g]:h}]],xk=[1,_,ece,0,[()=>iD,{[g]:h}]],Sk=[1,_,Cce,0,[0,{[g]:Vp}]],Ck=[1,_,Tce,0,[()=>lD,{[g]:h}]],wk=[1,_,Dce,0,[0,{[g]:h}]],Tk=[1,_,Oce,0,[()=>uD,{[g]:h}]],Ek=[1,_,Ace,0,[0,{[g]:Kp}]],Dk=[1,_,Wce,0,[0,{[g]:Zp}]],Ok=[1,_,ele,0,[()=>dD,{[g]:h}]],kk=[1,_,Gce,0,[0,{[g]:Qp}]],Ak=[1,_,Nce,0,[()=>bD,{[g]:h}]],jk=[1,_,tle,0,[()=>vD,{[g]:h}]],Mk=[1,_,mce,0,[0,{[g]:h}]],Nk=[1,_,jle,0,[()=>xD,{[g]:h}]],Pk=[1,_,Lle,0,[()=>SD,{[g]:h}]],Fk=[1,_,Fle,0,[1,{[g]:h}]],Ik=[1,_,Ule,0,[0,{[g]:h}]],Lk=[1,_,Kle,0,[()=>TD,{[g]:h}]],Rk=[1,_,bue,0,[0,{[g]:h}]],zk=[1,_,xue,0,[0,{[g]:h}]],Bk=[1,_,Yle,0,[()=>OD,{[g]:h}]],Vk=[1,_,sue,0,[0,{[g]:Bm}]],Hk=[1,_,pue,0,[()=>DD,{[g]:h}]],Uk=[1,_,Qle,0,[()=>jD,{[g]:h}]],Wk=[1,_,cue,0,[0,{[g]:Rm}]],Gk=[1,_,oue,0,[()=>LD,{[g]:h}]],Kk=[1,_,mue,0,[()=>AD,{[g]:h}]],qk=[1,_,Aue,0,[0,{[g]:h}]],Jk=[1,_,Mue,0,[0,{[g]:Ym}]],Yk=[1,_,Pue,0,[0,{[g]:Xm}]],Xk=[9,_,yne,0,()=>PS,()=>FS],Zk=[9,_,xne,0,()=>IS,()=>LS],Qk=[9,_,kne,0,()=>RS,()=>zS],$k=[9,_,Wne,0,()=>BS,()=>VS],eA=[9,_,Dne,0,()=>HS,()=>RD],tA=[9,_,ire,0,()=>US,()=>OD],nA=[9,_,qne,0,()=>KS,()=>qS],rA=[9,_,Qne,0,()=>JS,()=>YS],iA=[9,_,da,0,()=>uC,()=>dC],aA=[9,_,Wre,0,()=>mC,()=>hC],oA=[9,_,Rre,0,()=>gC,()=>_C],sA=[9,_,Gre,0,()=>vC,()=>oE],cA=[9,_,qre,0,()=>yC,()=>bC],lA=[9,_,Zre,0,()=>xC,()=>SC],uA=[9,_,ea,0,()=>CC,()=>wC],dA=[9,_,$i,0,()=>TC,()=>EC],fA=[9,_,ta,0,()=>DC,()=>OC],pA=[9,_,pa,0,()=>kC,()=>dD],mA=[9,_,ma,0,()=>AC,()=>jC],hA=[9,_,Da,0,()=>MC,()=>DD],gA=[9,_,Oa,0,()=>NC,()=>PC],_A=[9,_,$a,0,()=>LC,()=>RD],vA=[9,_,Do,0,()=>RC,()=>zC],yA=[9,_,Io,0,()=>BC,()=>VC],bA=[9,_,Go,0,()=>HC,()=>RD],xA=[9,_,ls,0,()=>UC,()=>RD],SA=[9,_,ts,0,()=>WC,()=>RD],CA=[9,_,ds,0,()=>GC,()=>KC],wA=[9,_,Es,0,()=>qC,()=>RD],TA=[9,_,Ds,0,()=>YC,()=>RD],EA=[9,_,Ws,0,()=>XC,()=>RD],DA=[9,_,Gs,0,()=>ZC,()=>RD],OA=[9,_,Co,0,()=>QC,()=>$C],kA=[9,_,Ha,0,()=>ew,()=>tw],AA=[9,_,Va,0,()=>nw,()=>rw],jA=[9,_,so,0,()=>iw,()=>aw],MA=[9,_,wo,0,()=>ow,()=>sw],NA=[9,_,To,0,()=>cw,()=>lw],PA=[9,_,So,0,()=>uw,()=>dw],FA=[9,_,io,0,()=>fw,()=>pw],IA=[9,_,Mo,0,()=>mw,()=>hw],LA=[9,_,Vo,0,()=>gw,()=>_w],RA=[9,_,Yo,0,()=>vw,()=>yw],zA=[9,_,us,0,()=>bw,()=>xw],BA=[9,_,os,0,()=>Sw,()=>Cw],VA=[9,_,gs,0,()=>ww,()=>Tw],HA=[9,_,Os,0,()=>Ew,()=>Dw],UA=[9,_,ks,0,()=>Ow,()=>kw],WA=[9,_,Ks,0,()=>Aw,()=>jw],GA=[9,_,qs,0,()=>Mw,()=>Nw],KA=[9,_,ao,0,()=>Pw,()=>RD],qA=[9,_,Js,0,()=>Fw,()=>OD],JA=[9,_,Ua,0,()=>Iw,()=>RD],YA=[9,_,oo,0,()=>Lw,()=>Rw],XA=[9,_,ss,0,()=>zw,()=>RD],ZA=[9,_,Ol,0,()=>oT,()=>sT],QA=[9,_,md,0,()=>yT,()=>bT],$A=[9,_,Mae,0,()=>hE,()=>RD],ej=[9,_,Iae,0,()=>gE,()=>RD],tj=[9,_,Vae,0,()=>_E,()=>vE],nj=[9,_,Ose,0,()=>WE,()=>RD],rj=[9,_,kse,0,()=>JE,()=>YE],ij=[9,_,use,0,()=>XE,()=>RD],aj=[9,_,Bse,0,()=>$E,()=>eD],oj=[9,_,Gse,0,()=>tD,()=>nD],sj=[9,_,jse,0,()=>cD,()=>ZE],cj=[9,_,Xce,0,()=>pD,()=>mD],lj=[9,_,Qce,0,()=>gD,()=>_D],uj=[9,_,Tle,0,()=>CD,()=>wD],dj=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??fne,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??rne,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Bee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:OS,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),fj=e=>{let t=Je(e),n=()=>t().then(ft),r=dj(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:sne.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},pj=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},mj=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hj=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),pj(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),mj(n))},gj=class extends fe{config;constructor(...[e]){let t=fj(e||{});super(t),this.initConfig=t;let n=hj(ine(Qe(Me(be(rt(ge(ane(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:tne,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},_j=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,vj=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function yj(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecr`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var bj=e=>{let t=[];switch(e.operation){default:t.push(yj(e))}return t},xj=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},Sj=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecr`}),Cj={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},wj={name:`@aws-sdk/client-ecr`,description:`AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecr`}},Tj=`ref`,Ej=-1,Dj=!0,Oj=`isSet`,kj=`PartitionResult`,Aj=`stringEquals`,jj=`booleanEquals`,Mj=`getAttr`,Nj={[Tj]:`Endpoint`},Pj={fn:Mj,argv:[{[Tj]:kj},`name`]},Fj={[Tj]:kj},Ij={},Lj=[{[Tj]:`Region`}],Rj={conditions:[[Oj,[Nj]],[Oj,Lj],[`aws.partition`,Lj,kj],[Aj,[Pj,`aws-eusc`]],[Aj,[Pj,`aws-iso-f`]],[Aj,[Pj,`aws-iso-e`]],[Aj,[Pj,`aws-iso-b`]],[Aj,[Pj,`aws-iso`]],[Aj,[Pj,`aws-cn`]],[Aj,[Pj,`aws-us-gov`]],[Aj,[Pj,`aws`]],[jj,[{[Tj]:`UseFIPS`},Dj]],[jj,[{fn:Mj,argv:[Fj,`supportsFIPS`]},Dj]],[jj,[{[Tj]:`UseDualStack`},Dj]],[jj,[{fn:Mj,argv:[Fj,`supportsDualStack`]},Dj]]],results:[[Ej],[Ej,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Ej,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Nj,Ij],[`https://api.ecr.{Region}.{PartitionResult#dnsSuffix}`,Ij],[`https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ij],[`https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}`,Ij],[`https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ij],[`https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ij],[Ej,`FIPS and DualStack are enabled, but this partition does not support one or both`],[Ej,`FIPS is enabled but this partition does not support FIPS`],[`https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ij],[Ej,`DualStack is enabled but this partition does not support DualStack`],[Ej,`Invalid Configuration: Missing Region`]]},zj=2,Bj=new Int32Array([-1,1,-1,0,23,3,1,4,100000013,2,5,100000013,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,100000004,14,100000011,100000012,12,18,17,13,100000009,100000010,13,19,100000006,14,100000008,100000009,11,22,21,13,100000005,100000004,13,100000007,100000006,11,100000001,24,13,100000002,100000003]),Vj=nt.from(Bj,zj,Rj.conditions,Rj.results),Hj=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Uj=(e,t={})=>Hj.get(e,()=>at(Vj,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var v=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Wj=class e extends v{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gj=class e extends v{name=`RepositoryNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kj=class e extends v{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},qj=class e extends v{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jj=class e extends v{name=`UnableToGetUpstreamImageException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamImageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yj=class e extends v{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Xj=class e extends v{name=`EmptyUploadException`;$fault=`client`;constructor(t){super({name:`EmptyUploadException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zj=class e extends v{name=`InvalidLayerException`;$fault=`client`;constructor(t){super({name:`InvalidLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qj=class e extends v{name=`KmsException`;$fault=`client`;kmsError;constructor(t){super({name:`KmsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.kmsError=t.kmsError}},$j=class e extends v{name=`LayerAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`LayerAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eM=class e extends v{name=`LayerPartTooSmallException`;$fault=`client`;constructor(t){super({name:`LayerPartTooSmallException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tM=class e extends v{name=`UploadNotFoundException`;$fault=`client`;constructor(t){super({name:`UploadNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nM=class e extends v{name=`PullThroughCacheRuleAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rM=class e extends v{name=`SecretNotFoundException`;$fault=`client`;constructor(t){super({name:`SecretNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iM=class e extends v{name=`UnableToAccessSecretException`;$fault=`client`;constructor(t){super({name:`UnableToAccessSecretException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aM=class e extends v{name=`UnableToDecryptSecretValueException`;$fault=`client`;constructor(t){super({name:`UnableToDecryptSecretValueException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oM=class e extends v{name=`UnsupportedUpstreamRegistryException`;$fault=`client`;constructor(t){super({name:`UnsupportedUpstreamRegistryException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sM=class e extends v{name=`InvalidTagParameterException`;$fault=`client`;constructor(t){super({name:`InvalidTagParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cM=class e extends v{name=`RepositoryAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`RepositoryAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lM=class e extends v{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uM=class e extends v{name=`TemplateAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`TemplateAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dM=class e extends v{name=`LifecyclePolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fM=class e extends v{name=`PullThroughCacheRuleNotFoundException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pM=class e extends v{name=`RegistryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RegistryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mM=class e extends v{name=`RepositoryNotEmptyException`;$fault=`client`;constructor(t){super({name:`RepositoryNotEmptyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hM=class e extends v{name=`TemplateNotFoundException`;$fault=`client`;constructor(t){super({name:`TemplateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gM=class e extends v{name=`RepositoryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_M=class e extends v{name=`SigningConfigurationNotFoundException`;$fault=`client`;constructor(t){super({name:`SigningConfigurationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vM=class e extends v{name=`ExclusionNotFoundException`;$fault=`client`;constructor(t){super({name:`ExclusionNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yM=class e extends v{name=`ImageNotFoundException`;$fault=`client`;constructor(t){super({name:`ImageNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bM=class e extends v{name=`ScanNotFoundException`;$fault=`client`;constructor(t){super({name:`ScanNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xM=class e extends v{name=`LayerInaccessibleException`;$fault=`client`;constructor(t){super({name:`LayerInaccessibleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SM=class e extends v{name=`LayersNotFoundException`;$fault=`client`;constructor(t){super({name:`LayersNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CM=class e extends v{name=`UnableToGetUpstreamLayerException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wM=class e extends v{name=`LifecyclePolicyPreviewNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TM=class e extends v{name=`UnableToListUpstreamImageReferrersException`;$fault=`client`;constructor(t){super({name:`UnableToListUpstreamImageReferrersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},EM=class e extends v{name=`ImageAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DM=class e extends v{name=`ImageDigestDoesNotMatchException`;$fault=`client`;constructor(t){super({name:`ImageDigestDoesNotMatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OM=class e extends v{name=`ImageTagAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageTagAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kM=class e extends v{name=`ReferencedImagesNotFoundException`;$fault=`client`;constructor(t){super({name:`ReferencedImagesNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AM=class e extends v{name=`BlockedByOrganizationPolicyException`;$fault=`client`;constructor(t){super({name:`BlockedByOrganizationPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jM=class e extends v{name=`ExclusionAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ExclusionAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MM=class e extends v{name=`ImageArchivedException`;$fault=`client`;constructor(t){super({name:`ImageArchivedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NM=class e extends v{name=`UnsupportedImageTypeException`;$fault=`client`;constructor(t){super({name:`UnsupportedImageTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PM=class e extends v{name=`LifecyclePolicyPreviewInProgressException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FM=class e extends v{name=`ImageStorageClassUpdateNotSupportedException`;$fault=`client`;constructor(t){super({name:`ImageStorageClassUpdateNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IM=class e extends v{name=`InvalidLayerPartException`;$fault=`client`;registryId;repositoryName;uploadId;lastValidByteReceived;constructor(t){super({name:`InvalidLayerPartException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.registryId=t.registryId,this.repositoryName=t.repositoryName,this.uploadId=t.uploadId,this.lastValidByteReceived=t.lastValidByteReceived}},LM=`BlockedByOrganizationPolicyException`,RM=`BatchDeleteImage`,zM=`BatchDeleteImageRequest`,BM=`BatchDeleteImageResponse`,VM=`CreateRepository`,HM=`CreateRepositoryRequest`,UM=`CreateRepositoryResponse`,WM=`DescribeImages`,GM=`DescribeImagesFilter`,KM=`DescribeImagesRequest`,qM=`DescribeImagesResponse`,JM=`DeleteLifecyclePolicy`,YM=`DeleteLifecyclePolicyRequest`,XM=`DeleteLifecyclePolicyResponse`,ZM=`DeleteRepository`,QM=`DeleteRepositoryPolicyRequest`,$M=`DeleteRepositoryPolicyResponse`,eN=`DeleteRepositoryPolicy`,tN=`DeleteRepositoryRequest`,nN=`DeleteRepositoryResponse`,rN=`DescribeRepositoriesRequest`,iN=`DescribeRepositoriesResponse`,aN=`DescribeRepositories`,oN=`ExclusionAlreadyExistsException`,sN=`EncryptionConfiguration`,cN=`ExclusionNotFoundException`,lN=`EmptyUploadException`,uN=`GetLifecyclePolicy`,dN=`GetLifecyclePolicyPreview`,fN=`GetLifecyclePolicyPreviewRequest`,pN=`GetLifecyclePolicyPreviewResponse`,mN=`GetLifecyclePolicyRequest`,hN=`GetLifecyclePolicyResponse`,gN=`GetRepositoryPolicyRequest`,_N=`GetRepositoryPolicyResponse`,vN=`GetRepositoryPolicy`,yN=`ImageArchivedException`,bN=`ImageAlreadyExistsException`,xN=`ImageDetail`,SN=`ImageDigestDoesNotMatchException`,CN=`ImageDetailList`,wN=`ImageFailure`,TN=`ImageFailureList`,EN=`ImageIdentifier`,DN=`ImageIdentifierList`,ON=`InvalidLayerException`,kN=`InvalidLayerPartException`,AN=`ImageNotFoundException`,jN=`InvalidParameterException`,MN=`ImageScanningConfiguration`,NN=`ImageStorageClassUpdateNotSupportedException`,PN=`ImageScanFindingsSummary`,FN=`ImageScanStatus`,IN=`ImageTagAlreadyExistsException`,LN=`ImageTagMutabilityExclusionFilter`,RN=`ImageTagMutabilityExclusionFilters`,zN=`InvalidTagParameterException`,BN=`Key`,VN=`KmsException`,HN=`LayerAlreadyExistsException`,UN=`LimitExceededException`,WN=`LayerInaccessibleException`,GN=`LayersNotFoundException`,KN=`LifecyclePolicyNotFoundException`,qN=`LifecyclePolicyPreviewFilter`,JN=`LifecyclePolicyPreviewInProgressException`,YN=`LifecyclePolicyPreviewNotFoundException`,XN=`LifecyclePolicyPreviewResult`,ZN=`LifecyclePolicyPreviewResultList`,QN=`LifecyclePolicyPreviewSummary`,$N=`LifecyclePolicyRuleAction`,eP=`LayerPartTooSmallException`,tP=`PutImageTagMutability`,nP=`PutImageTagMutabilityRequest`,rP=`PutImageTagMutabilityResponse`,iP=`PutLifecyclePolicy`,aP=`PutLifecyclePolicyRequest`,oP=`PutLifecyclePolicyResponse`,sP=`PullThroughCacheRuleAlreadyExistsException`,cP=`PullThroughCacheRuleNotFoundException`,lP=`RepositoryAlreadyExistsException`,uP=`ReferencedImagesNotFoundException`,dP=`RepositoryList`,fP=`RepositoryNotEmptyException`,pP=`RepositoryNotFoundException`,mP=`RegistryPolicyNotFoundException`,hP=`RepositoryPolicyNotFoundException`,gP=`Repository`,_P=`SigningConfigurationNotFoundException`,vP=`ServerException`,yP=`ScanNotFoundException`,bP=`SecretNotFoundException`,xP=`SetRepositoryPolicy`,SP=`SetRepositoryPolicyRequest`,CP=`SetRepositoryPolicyResponse`,wP=`Tag`,TP=`TemplateAlreadyExistsException`,EP=`TransitioningImageTotalCount`,DP=`TransitioningImageTotalCounts`,OP=`TagList`,kP=`TooManyTagsException`,AP=`TemplateNotFoundException`,jP=`UnsupportedImageTypeException`,MP=`UploadNotFoundException`,NP=`UnableToAccessSecretException`,PP=`UnableToDecryptSecretValueException`,FP=`UnableToGetUpstreamImageException`,IP=`UnableToGetUpstreamLayerException`,LP=`UnableToListUpstreamImageReferrersException`,RP=`UnsupportedUpstreamRegistryException`,zP=`Value`,BP=`ValidationException`,VP=`artifactMediaType`,HP=`appliedRulePriority`,UP=`action`,y=`client`,WP=`createdAt`,GP=`description`,b=`error`,KP=`encryptionConfiguration`,qP=`expiringImageTotalCount`,JP=`encryptionType`,YP=`failures`,XP=`failureCode`,ZP=`failureReason`,QP=`findingSeverityCounts`,$P=`filterType`,eF=`filter`,tF=`force`,nF=`httpError`,rF=`imageDetails`,iF=`imageDigest`,aF=`imageIds`,oF=`imageId`,sF=`imageManifestMediaType`,cF=`imagePushedAt`,lF=`imageStatus`,uF=`imageScanningConfiguration`,dF=`imageScanCompletedAt`,fF=`imageScanFindingsSummary`,pF=`imageSizeInBytes`,mF=`imageScanStatus`,hF=`imageTags`,gF=`imageTotalCount`,_F=`imageTagMutability`,vF=`imageTagMutabilityExclusionFilters`,yF=`imageTag`,bF=`kmsError`,xF=`kmsKey`,SF=`lastArchivedAt`,CF=`lastActivatedAt`,wF=`lastEvaluatedAt`,TF=`lifecyclePolicyText`,EF=`lastRecordedPullTime`,DF=`lastValidByteReceived`,x=`message`,OF=`maxResults`,kF=`nextToken`,AF=`previewResults`,jF=`policyText`,MF=`repositoryArn`,NF=`registryId`,PF=`repositoryName`,FF=`repositoryNames`,IF=`repositoryUri`,LF=`repository`,RF=`repositories`,zF=`smithy.ts.sdk.synthetic.com.amazonaws.ecr`,BF=`storageClass`,VF=`subjectManifestDigest`,HF=`scanOnPush`,UF=`server`,WF=`status`,GF=`summary`,KF=`tags`,qF=`transitioningImageTotalCounts`,JF=`tagStatus`,YF=`targetStorageClass`,XF=`type`,ZF=`uploadId`,QF=`vulnerabilitySourceUpdatedAt`,S=`com.amazonaws.ecr`,$F=dt.for(zF),eI=[-3,zF,`ECRServiceException`,0,[],[]];$F.registerError(eI,v);var C=dt.for(S),tI=[-3,S,LM,{[b]:y},[x],[0]];C.registerError(tI,AM);var nI=[-3,S,lN,{[b]:y},[x],[0]];C.registerError(nI,Xj);var rI=[-3,S,oN,{[b]:y},[x],[0]];C.registerError(rI,jM);var iI=[-3,S,cN,{[b]:y},[x],[0]];C.registerError(iI,vM);var aI=[-3,S,bN,{[b]:y},[x],[0]];C.registerError(aI,EM);var oI=[-3,S,yN,{[b]:y},[x],[0]];C.registerError(oI,MM);var sI=[-3,S,SN,{[b]:y},[x],[0]];C.registerError(sI,DM);var cI=[-3,S,AN,{[b]:y},[x],[0]];C.registerError(cI,yM);var lI=[-3,S,NN,{[b]:y},[x],[0]];C.registerError(lI,FM);var uI=[-3,S,IN,{[b]:y},[x],[0]];C.registerError(uI,OM);var dI=[-3,S,ON,{[b]:y},[x],[0]];C.registerError(dI,Zj);var fI=[-3,S,kN,{[b]:y},[NF,PF,ZF,DF,x],[0,0,0,1,0]];C.registerError(fI,IM);var pI=[-3,S,jN,{[b]:y},[x],[0]];C.registerError(pI,Wj);var mI=[-3,S,zN,{[b]:y},[x],[0]];C.registerError(mI,sM);var hI=[-3,S,VN,{[b]:y},[x,bF],[0,0]];C.registerError(hI,Qj);var gI=[-3,S,HN,{[b]:y},[x],[0]];C.registerError(gI,$j);var _I=[-3,S,WN,{[b]:y},[x],[0]];C.registerError(_I,xM);var vI=[-3,S,eP,{[b]:y},[x],[0]];C.registerError(vI,eM);var yI=[-3,S,GN,{[b]:y},[x],[0]];C.registerError(yI,SM);var bI=[-3,S,KN,{[b]:y},[x],[0]];C.registerError(bI,dM);var xI=[-3,S,JN,{[b]:y},[x],[0]];C.registerError(xI,PM);var SI=[-3,S,YN,{[b]:y},[x],[0]];C.registerError(SI,wM);var CI=[-3,S,UN,{[b]:y},[x],[0]];C.registerError(CI,qj);var wI=[-3,S,sP,{[b]:y},[x],[0]];C.registerError(wI,nM);var TI=[-3,S,cP,{[b]:y},[x],[0]];C.registerError(TI,fM);var EI=[-3,S,uP,{[b]:y},[x],[0]];C.registerError(EI,kM);var DI=[-3,S,mP,{[b]:y},[x],[0]];C.registerError(DI,pM);var OI=[-3,S,lP,{[b]:y},[x],[0]];C.registerError(OI,cM);var kI=[-3,S,fP,{[b]:y},[x],[0]];C.registerError(kI,mM);var AI=[-3,S,pP,{[b]:y},[x],[0]];C.registerError(AI,Gj);var jI=[-3,S,hP,{[b]:y},[x],[0]];C.registerError(jI,gM);var MI=[-3,S,yP,{[b]:y},[x],[0]];C.registerError(MI,bM);var NI=[-3,S,bP,{[b]:y},[x],[0]];C.registerError(NI,rM);var PI=[-3,S,vP,{[b]:UF},[x],[0]];C.registerError(PI,Kj);var FI=[-3,S,_P,{[b]:y},[x],[0]];C.registerError(FI,_M);var II=[-3,S,TP,{[b]:y},[x],[0]];C.registerError(II,uM);var LI=[-3,S,AP,{[b]:y},[x],[0]];C.registerError(LI,hM);var RI=[-3,S,kP,{[b]:y},[x],[0]];C.registerError(RI,lM);var zI=[-3,S,NP,{[b]:y},[x],[0]];C.registerError(zI,iM);var BI=[-3,S,PP,{[b]:y},[x],[0]];C.registerError(BI,aM);var VI=[-3,S,FP,{[b]:y},[x],[0]];C.registerError(VI,Jj);var HI=[-3,S,IP,{[b]:y},[x],[0]];C.registerError(HI,CM);var UI=[-3,S,LP,{[b]:y},[x],[0]];C.registerError(UI,TM);var WI=[-3,S,jP,{[b]:y},[x],[0]];C.registerError(WI,NM);var GI=[-3,S,RP,{[b]:y},[x],[0]];C.registerError(GI,oM);var KI=[-3,S,MP,{[b]:y},[x],[0]];C.registerError(KI,tM);var qI=[-3,S,BP,{[b]:y,[nF]:400},[x],[0]];C.registerError(qI,Yj);var JI=[$F,C],YI=[3,S,zM,0,[PF,aF,NF],[0,()=>zL,0],2],XI=[3,S,BM,0,[aF,YP],[()=>zL,()=>RL]],ZI=[3,S,HM,0,[PF,NF,KF,_F,vF,uF,KP],[0,0,()=>UL,0,()=>BL,()=>xL,()=>uL],1],QI=[3,S,UM,0,[LF],[()=>ML]],$I=[3,S,YM,0,[PF,NF],[0,0],1],eL=[3,S,XM,0,[NF,PF,TF,wF],[0,0,0,4]],tL=[3,S,QM,0,[PF,NF],[0,0],1],nL=[3,S,$M,0,[NF,PF,jF],[0,0,0]],rL=[3,S,tN,0,[PF,NF,tF],[0,0,2],1],iL=[3,S,nN,0,[LF],[()=>ML]],aL=[3,S,GM,0,[JF,lF],[0,0]],oL=[3,S,KM,0,[PF,NF,aF,kF,OF,eF],[0,0,()=>zL,0,1,()=>aL],1],sL=[3,S,qM,0,[rF,kF],[()=>LL,0]],cL=[3,S,rN,0,[NF,FF,kF,OF],[0,64,0,1]],lL=[3,S,iN,0,[RF,kF],[()=>HL,0]],uL=[3,S,sN,0,[JP,xF],[0,0],1],dL=[3,S,fN,0,[PF,NF,aF,kF,OF,eF],[0,0,()=>zL,0,1,()=>wL],1],fL=[3,S,pN,0,[NF,PF,TF,WF,kF,AF,GF],[0,0,0,0,0,()=>VL,()=>EL]],pL=[3,S,mN,0,[PF,NF],[0,0],1],mL=[3,S,hN,0,[NF,PF,TF,wF],[0,0,0,4]],hL=[3,S,gN,0,[PF,NF],[0,0],1],gL=[3,S,_N,0,[NF,PF,jF],[0,0,0]],_L=[3,S,xN,0,[NF,PF,iF,hF,pF,cF,mF,fF,sF,VP,EF,VF,lF,SF,CF],[0,0,0,64,1,4,()=>SL,()=>bL,0,0,4,0,0,4,4]],vL=[3,S,wN,0,[oF,XP,ZP],[()=>yL,0,0]],yL=[3,S,EN,0,[iF,yF],[0,0]],bL=[3,S,PN,0,[dF,QF,QP],[4,4,129]],xL=[3,S,MN,0,[HF],[2]],SL=[3,S,FN,0,[WF,GP],[0,0]],CL=[3,S,LN,0,[$P,eF],[0,0],2],wL=[3,S,qN,0,[JF],[0]],TL=[3,S,XN,0,[hF,iF,cF,UP,HP,BF],[64,0,4,()=>DL,1,0]],EL=[3,S,QN,0,[qP,qF],[1,()=>WL]],DL=[3,S,$N,0,[XF,YF],[0,0]],OL=[3,S,nP,0,[PF,_F,NF,vF],[0,0,0,()=>BL],2],kL=[3,S,rP,0,[NF,PF,_F,vF],[0,0,0,()=>BL]],AL=[3,S,aP,0,[PF,TF,NF],[0,0,0],2],jL=[3,S,oP,0,[NF,PF,TF],[0,0,0]],ML=[3,S,gP,0,[MF,NF,PF,IF,WP,_F,vF,uF,KP],[0,0,0,0,4,0,()=>BL,()=>xL,()=>uL]],NL=[3,S,SP,0,[PF,jF,NF,tF],[0,0,0,2],2],PL=[3,S,CP,0,[NF,PF,jF],[0,0,0]],FL=[3,S,wP,0,[BN,zP],[0,0],2],IL=[3,S,EP,0,[YF,gF],[0,1]],LL=[1,S,CN,0,()=>_L],RL=[1,S,TN,0,()=>vL],zL=[1,S,DN,0,()=>yL],BL=[1,S,RN,0,()=>CL],VL=[1,S,ZN,0,()=>TL],HL=[1,S,dP,0,()=>ML],UL=[1,S,OP,0,()=>FL],WL=[1,S,DP,0,()=>IL],GL=[9,S,RM,0,()=>YI,()=>XI],KL=[9,S,VM,0,()=>ZI,()=>QI],qL=[9,S,JM,0,()=>$I,()=>eL],JL=[9,S,ZM,0,()=>rL,()=>iL],YL=[9,S,eN,0,()=>tL,()=>nL],XL=[9,S,WM,0,()=>oL,()=>sL],ZL=[9,S,aN,0,()=>cL,()=>lL],QL=[9,S,uN,0,()=>pL,()=>mL],$L=[9,S,dN,0,()=>dL,()=>fL],eR=[9,S,vN,0,()=>hL,()=>gL],tR=[9,S,tP,0,()=>OL,()=>kL],nR=[9,S,iP,0,()=>AL,()=>jL],rR=[9,S,xP,0,()=>NL,()=>PL],iR=e=>({apiVersion:`2015-09-21`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Uj,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??bj,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Wt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecr`,errorTypeRegistries:JI,xmlNamespace:`http://ecr.amazonaws.com/doc/2015-09-21/`,version:`2015-09-21`,serviceTarget:`AmazonEC2ContainerRegistry_V20150921`},serviceId:e?.serviceId??`ECR`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),aR=e=>{let t=Je(e),n=()=>t().then(ft),r=iR(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:wj.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},oR=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},sR=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),cR=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),oR(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),sR(n))},lR=class extends fe{config;constructor(...[e]){let t=aR(e||{});super(t),this.initConfig=t;let n=cR(xj(Qe(Me(be(rt(ge(Sj(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:vj,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},uR=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dR(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecs`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var fR=e=>{let t=[];switch(e.operation){default:t.push(dR(e))}return t},pR=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},mR=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecs`}),hR={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},gR={name:`@aws-sdk/client-ecs`,description:`AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecs`}},_R=`ref`,vR=-1,yR=!0,bR=`isSet`,xR=`PartitionResult`,SR=`booleanEquals`,CR=`getAttr`,wR={[_R]:`Endpoint`},TR={[_R]:xR},ER={},DR=[{[_R]:`Region`}],OR={conditions:[[bR,[wR]],[bR,DR],[`aws.partition`,DR,xR],[SR,[{[_R]:`UseFIPS`},yR]],[SR,[{[_R]:`UseDualStack`},yR]],[SR,[{fn:CR,argv:[TR,`supportsDualStack`]},yR]],[SR,[{fn:CR,argv:[TR,`supportsFIPS`]},yR]]],results:[[vR],[vR,`Invalid Configuration: FIPS and custom endpoint are not supported`],[vR,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[wR,ER],[`https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,ER],[vR,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}`,ER],[vR,`FIPS is enabled but this partition does not support FIPS`],[`https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}`,ER],[vR,`DualStack is enabled but this partition does not support DualStack`],[`https://ecs.{Region}.{PartitionResult#dnsSuffix}`,ER],[vR,`Invalid Configuration: Missing Region`]]},kR=2,AR=new Int32Array([-1,1,-1,0,12,3,1,4,100000011,2,5,100000011,3,8,6,4,7,100000010,5,100000008,100000009,4,10,9,6,100000006,100000007,5,11,100000005,6,100000004,100000005,3,100000001,13,4,100000002,100000003]),jR=nt.from(AR,kR,OR.conditions,OR.results),MR=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),NR=(e,t={})=>MR.get(e,()=>at(jR,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var w=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},PR=class e extends w{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FR=class e extends w{name=`ClientException`;$fault=`client`;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IR=class e extends w{name=`ClusterNotFoundException`;$fault=`client`;constructor(t){super({name:`ClusterNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LR=class e extends w{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RR=class e extends w{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zR=class e extends w{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},BR=class e extends w{name=`UnsupportedFeatureException`;$fault=`client`;constructor(t){super({name:`UnsupportedFeatureException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VR=class e extends w{name=`UpdateInProgressException`;$fault=`client`;constructor(t){super({name:`UpdateInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HR=class e extends w{name=`NamespaceNotFoundException`;$fault=`client`;constructor(t){super({name:`NamespaceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UR=class e extends w{name=`ClusterContainsCapacityProviderException`;$fault=`client`;constructor(t){super({name:`ClusterContainsCapacityProviderException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},WR=class e extends w{name=`ClusterContainsContainerInstancesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsContainerInstancesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GR=class e extends w{name=`ClusterContainsServicesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsServicesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KR=class e extends w{name=`ClusterContainsTasksException`;$fault=`client`;constructor(t){super({name:`ClusterContainsTasksException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qR=class e extends w{name=`TargetNotConnectedException`;$fault=`client`;constructor(t){super({name:`TargetNotConnectedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JR=class e extends w{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YR=class e extends w{name=`TargetNotFoundException`;$fault=`client`;constructor(t){super({name:`TargetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XR=class e extends w{name=`ServiceNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZR=class e extends w{name=`AttributeLimitExceededException`;$fault=`client`;constructor(t){super({name:`AttributeLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QR=class e extends w{name=`MissingVersionException`;$fault=`client`;constructor(t){super({name:`MissingVersionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$R=class e extends w{name=`NoUpdateAvailableException`;$fault=`client`;constructor(t){super({name:`NoUpdateAvailableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ez=class e extends w{name=`ServiceDeploymentNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceDeploymentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tz=class e extends w{name=`PlatformUnknownException`;$fault=`client`;constructor(t){super({name:`PlatformUnknownException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nz=class e extends w{name=`DaemonNotActiveException`;$fault=`client`;constructor(t){super({name:`DaemonNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rz=class e extends w{name=`DaemonNotFoundException`;$fault=`client`;constructor(t){super({name:`DaemonNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iz=class e extends w{name=`PlatformTaskDefinitionIncompatibilityException`;$fault=`client`;constructor(t){super({name:`PlatformTaskDefinitionIncompatibilityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},az=class e extends w{name=`ServiceNotActiveException`;$fault=`client`;constructor(t){super({name:`ServiceNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oz=class e extends w{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sz=class e extends w{name=`ConflictException`;$fault=`client`;resourceIds;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.resourceIds=t.resourceIds}},cz=class e extends w{name=`TaskSetNotFoundException`;$fault=`client`;constructor(t){super({name:`TaskSetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lz=class e extends w{name=`BlockedException`;$fault=`client`;constructor(t){super({name:`BlockedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uz=`Attachment`,dz=`AdvancedConfiguration`,fz=`AttachmentDetails`,pz=`AccessDeniedException`,mz=`AttributeLimitExceededException`,hz=`AwsVpcConfiguration`,gz=`Attribute`,_z=`Attachments`,vz=`Attributes`,yz=`BlockedException`,bz=`Cluster`,xz=`CanaryConfiguration`,Sz=`ClusterContainsContainerInstancesException`,Cz=`ClusterContainsCapacityProviderException`,wz=`CreateClusterRequest`,Tz=`CreateClusterResponse`,Ez=`ClusterContainsServicesException`,Dz=`ClusterContainsTasksException`,Oz=`ClusterConfiguration`,kz=`CreateCluster`,Az=`ContainerDefinition`,jz=`ContainerDependency`,Mz=`ContainerDefinitions`,Nz=`ContainerDependencies`,Pz=`ClientException`,Fz=`ConflictException`,Iz=`ContainerInstanceHealthStatus`,Lz=`ContainerInstance`,Rz=`ContainerInstances`,zz=`ClusterNotFoundException`,Bz=`ContainerOverride`,Vz=`ContainerOverrides`,Hz=`CapacityProviderStrategy`,Uz=`CapacityProviderStrategyItem`,Wz=`ContainerRestartPolicy`,Gz=`ClusterSetting`,Kz=`ClusterServiceConnectDefaults`,qz=`ClusterServiceConnectDefaultsRequest`,Jz=`CreateServiceRequest`,Yz=`CreateServiceResponse`,Xz=`ClusterSettings`,Zz=`CreateService`,Qz=`Clusters`,$z=`Container`,eB=`Containers`,tB=`Deployment`,nB=`DeploymentAlarms`,rB=`DeploymentConfiguration`,iB=`DeploymentCircuitBreaker`,aB=`DeregisterContainerInstanceRequest`,oB=`DeregisterContainerInstanceResponse`,sB=`DescribeContainerInstancesRequest`,cB=`DescribeContainerInstancesResponse`,lB=`DeregisterContainerInstance`,uB=`DescribeContainerInstances`,dB=`DeleteClusterRequest`,fB=`DeleteClusterResponse`,pB=`DescribeClustersRequest`,mB=`DescribeClustersResponse`,hB=`DeploymentController`,gB=`DeleteCluster`,_B=`DescribeClusters`,vB=`DeploymentEphemeralStorage`,yB=`DevicesList`,bB=`DeploymentLifecycleHook`,xB=`DeploymentLifecycleHookList`,SB=`DeploymentLifecycleHookTimeoutConfiguration`,CB=`DaemonNotActiveException`,wB=`DaemonNotFoundException`,TB=`DescribeServicesRequest`,EB=`DescribeServicesResponse`,DB=`DescribeServices`,OB=`DescribeTasks`,kB=`DeregisterTaskDefinitionRequest`,AB=`DeregisterTaskDefinitionResponse`,jB=`DescribeTaskDefinitionRequest`,MB=`DescribeTaskDefinitionResponse`,NB=`DeregisterTaskDefinition`,PB=`DescribeTaskDefinition`,FB=`DescribeTasksRequest`,IB=`DescribeTasksResponse`,LB=`DockerVolumeConfiguration`,RB=`Device`,zB=`Deployments`,BB=`EBSTagSpecification`,VB=`EBSTagSpecifications`,HB=`ExecuteCommandConfiguration`,UB=`ExecuteCommandLogConfiguration`,WB=`EnvironmentFile`,GB=`EFSAuthorizationConfig`,KB=`EFSVolumeConfiguration`,qB=`EnvironmentFiles`,JB=`EphemeralStorage`,YB=`EnvironmentVariables`,XB=`Failure`,ZB=`FirelensConfiguration`,QB=`FSxWindowsFileServerAuthorizationConfig`,$B=`FSxWindowsFileServerVolumeConfiguration`,eV=`Failures`,tV=`HealthCheck`,nV=`HostEntry`,rV=`HostEntryList`,iV=`HostVolumeProperties`,aV=`InferenceAccelerator`,oV=`InferenceAcceleratorOverride`,sV=`InferenceAcceleratorOverrides`,cV=`InferenceAccelerators`,lV=`InstanceHealthCheckResult`,uV=`InstanceHealthCheckResultList`,dV=`InvalidParameterException`,fV=`KernelCapabilities`,pV=`KeyValuePair`,mV=`LoadBalancer`,hV=`LoadBalancers`,gV=`LinearConfiguration`,_V=`ListContainerInstances`,vV=`ListContainerInstancesRequest`,yV=`ListContainerInstancesResponse`,bV=`ListClustersRequest`,xV=`ListClustersResponse`,SV=`ListClusters`,CV=`LogConfiguration`,wV=`LimitExceededException`,TV=`LinuxParameters`,EV=`ListServices`,DV=`ListServicesRequest`,OV=`ListServicesResponse`,kV=`ListTasks`,AV=`ListTaskDefinitions`,jV=`ListTaskDefinitionsRequest`,MV=`ListTaskDefinitionsResponse`,NV=`ListTasksRequest`,PV=`ListTasksResponse`,FV=`ManagedAgent`,IV=`ManagedAgents`,LV=`MetricConfigurationList`,RV=`MetricConfiguration`,zV=`MonitoringConfiguration`,BV=`MountPoint`,VV=`MountPointList`,HV=`ManagedStorageConfiguration`,UV=`MissingVersionException`,WV=`NetworkBinding`,GV=`NetworkBindings`,KV=`NetworkConfiguration`,qV=`NetworkInterface`,JV=`NetworkInterfaces`,YV=`NamespaceNotFoundException`,XV=`NoUpdateAvailableException`,ZV=`PlacementConstraint`,QV=`ProxyConfigurationProperties`,$V=`PlacementConstraints`,eH=`ProxyConfiguration`,tH=`PortMapping`,nH=`PortMappingList`,rH=`PlacementStrategy`,iH=`PlacementStrategies`,aH=`PlatformTaskDefinitionIncompatibilityException`,oH=`PlatformUnknownException`,sH=`Resource`,cH=`RequiresAttributes`,lH=`RepositoryCredentials`,uH=`ResourceInUseException`,dH=`ResourceNotFoundException`,fH=`RuntimePlatform`,pH=`ResourceRequirement`,mH=`ResourceRequirements`,hH=`RunTask`,gH=`RegisterTaskDefinition`,_H=`RegisterTaskDefinitionRequest`,vH=`RegisterTaskDefinitionResponse`,yH=`RunTaskRequest`,bH=`RunTaskResponse`,xH=`Resources`,SH=`Scale`,CH=`SystemControl`,wH=`ServiceConnectAccessLogConfiguration`,TH=`ServiceConnectConfiguration`,EH=`ServiceConnectClientAlias`,DH=`ServiceConnectClientAliasList`,OH=`ServiceCurrentRevisionSummary`,kH=`ServiceCurrentRevisionSummaryList`,AH=`ServiceConnectService`,jH=`ServiceConnectServiceList`,MH=`ServiceConnectServiceResource`,NH=`ServiceConnectServiceResourceList`,PH=`ServiceConnectTlsConfiguration`,FH=`ServiceConnectTlsCertificateAuthority`,IH=`ServiceConnectTestTrafficHeaderMatchRules`,LH=`ServiceConnectTestTrafficHeaderRules`,RH=`ServiceConnectTestTrafficRules`,zH=`SystemControls`,BH=`ServiceDeploymentNotFoundException`,VH=`ServerException`,HH=`ServiceEvent`,UH=`ServiceEvents`,WH=`S3FilesVolumeConfiguration`,GH=`SecretList`,KH=`ServiceManagedEBSVolumeConfiguration`,qH=`ServiceNotActiveException`,JH=`ServiceNotFoundException`,YH=`ServiceRegistry`,XH=`ServiceRegistries`,ZH=`StopTaskRequest`,QH=`StopTaskResponse`,$H=`StopTask`,eU=`ServiceVolumeConfiguration`,tU=`ServiceVolumeConfigurations`,nU=`Secret`,rU=`Service`,iU=`Services`,aU=`Statistics`,oU=`Tag`,sU=`ThresholdConfiguration`,cU=`TimeoutConfiguration`,lU=`TaskDefinition`,uU=`TaskDefinitionPlacementConstraint`,dU=`TaskDefinitionPlacementConstraints`,fU=`TaskEphemeralStorage`,pU=`TmpfsList`,mU=`TaskManagedEBSVolumeConfiguration`,hU=`TaskManagedEBSVolumeTerminationPolicy`,gU=`TargetNotConnectedException`,_U=`TargetNotFoundException`,vU=`TaskOverride`,yU=`TaskSet`,bU=`TaskSetNotFoundException`,xU=`TaskSets`,SU=`TaskVolumeConfiguration`,CU=`TaskVolumeConfigurations`,wU=`Task`,TU=`Tags`,EU=`Tasks`,DU=`Tmpfs`,OU=`Ulimit`,kU=`UpdateContainerInstancesState`,AU=`UpdateContainerInstancesStateRequest`,jU=`UpdateContainerInstancesStateResponse`,MU=`UnsupportedFeatureException`,NU=`UpdateInProgressException`,PU=`UlimitList`,FU=`Volume`,IU=`VolumeFrom`,LU=`VolumeFromList`,RU=`VersionInfo`,zU=`VolumeList`,BU=`VpcLatticeConfiguration`,VU=`VpcLatticeConfigurations`,HU=`attachments`,UU=`agentConnected`,WU=`advancedConfiguration`,GU=`authorizationConfig`,KU=`awsvpcConfiguration`,qU=`agentHash`,JU=`attachmentId`,YU=`accessLogConfiguration`,XU=`alarmNames`,ZU=`appProtocol`,QU=`accessPointArn`,$U=`awsPcaAuthorityArn`,eW=`assignPublicIp`,tW=`accessPointId`,nW=`activeServicesCount`,rW=`attachmentsStatus`,iW=`alternateTargetGroupArn`,aW=`agentUpdateStatus`,oW=`agentVersion`,sW=`availabilityZone`,cW=`availabilityZoneRebalancing`,lW=`action`,uW=`add`,dW=`alarms`,fW=`arn`,pW=`attributes`,mW=`autoprovision`,hW=`base`,gW=`bindIP`,_W=`bakeTimeInMinutes`,vW=`client`,yW=`clusterArn`,bW=`configuredAtLaunch`,xW=`clusterArns`,SW=`clientAliases`,CW=`containerArn`,wW=`connectivityAt`,TW=`cpuArchitecture`,EW=`createdAt`,DW=`canaryBakeTimeInMinutes`,OW=`createdBy`,kW=`canaryConfiguration`,AW=`containerDefinitions`,jW=`computedDesiredCount`,MW=`containerInstanceArn`,NW=`containerInstanceArns`,PW=`containerInstance`,FW=`containerInstances`,IW=`clusterName`,LW=`containerName`,RW=`containerOverrides`,zW=`canaryPercent`,BW=`capacityProviderName`,VW=`containerPortRange`,HW=`capacityProviderStrategy`,UW=`capacityProvider`,WW=`capacityProviders`,GW=`containerPath`,KW=`containerPort`,qW=`credentialsParameter`,JW=`credentialSpecs`,YW=`currentServiceDeployment`,XW=`currentServiceRevisions`,ZW=`clientToken`,QW=`cloudWatchEncryptionEnabled`,$W=`cloudWatchLogGroupName`,eG=`capabilities`,tG=`cluster`,nG=`clusters`,rG=`configuration`,iG=`command`,aG=`compatibilities`,oG=`condition`,sG=`connectivity`,cG=`containers`,lG=`count`,uG=`cpu`,dG=`details`,fG=`deregisteredAt`,pG=`discoveryArn`,mG=`deploymentConfiguration`,hG=`deploymentCircuitBreaker`,gG=`defaultCapacityProviderStrategy`,_G=`desiredCount`,vG=`deploymentController`,yG=`dockerLabels`,bG=`disableNetworking`,xG=`daemonName`,SG=`deviceName`,CG=`discoveryName`,wG=`dnsName`,TG=`dependsOn`,EG=`deleteOnTermination`,DG=`driverOpts`,OG=`deleteRequestedAt`,kG=`dnsServers`,AG=`dnsSearchDomains`,jG=`dockerSecurityOptions`,MG=`desiredStatus`,NG=`deviceType`,PG=`doubleValue`,FG=`dockerVolumeConfiguration`,IG=`dockerVersion`,LG=`devices`,RG=`deployments`,zG=`detail`,BG=`domain`,VG=`driver`,HG=`drop`,T=`error`,UG=`exitCode`,WG=`executeCommandConfiguration`,GG=`enableExecuteCommand`,KG=`enableECSManagedTags`,qG=`environmentFiles`,JG=`enableFaultInjection`,YG=`extraHosts`,XG=`externalId`,ZG=`ec2InstanceId`,QG=`entryPoint`,$G=`executionRoleArn`,eK=`executionStoppedAt`,tK=`ephemeralStorage`,nK=`efsVolumeConfiguration`,rK=`environment`,iK=`enabled`,aK=`enable`,oK=`encrypted`,sK=`essential`,cK=`events`,lK=`expression`,uK=`exact`,dK=`family`,fK=`firelensConfiguration`,pK=`fargateEphemeralStorage`,mK=`fargateEphemeralStorageKmsKeyId`,hK=`familyPrefix`,gK=`fileSystemArn`,_K=`fileSystemId`,vK=`failedTasks`,yK=`filesystemType`,bK=`fsxWindowsFileServerVolumeConfiguration`,xK=`failures`,SK=`filter`,CK=`field`,wK=`force`,TK=`format`,EK=`group`,DK=`gpuIds`,OK=`hostname`,kK=`healthCheck`,AK=`healthCheckGracePeriodSeconds`,jK=`hookDetails`,MK=`httpError`,NK=`hardLimit`,PK=`hostPath`,FK=`hostPortRange`,IK=`hostPort`,LK=`healthStatus`,RK=`hookTargetArn`,zK=`header`,BK=`host`,VK=`id`,HK=`ipAddress`,UK=`inferenceAcceleratorOverrides`,WK=`inferenceAccelerators`,GK=`ipv6Address`,KK=`issuerCertificateAuthority`,qK=`imageDigest`,JK=`ignoredExitCodes`,YK=`ipcMode`,XK=`initProcessEnabled`,ZK=`ingressPortOverride`,QK=`includeQueryParameters`,$K=`idleTimeoutSeconds`,eq=`integerValue`,tq=`iam`,nq=`image`,rq=`interactive`,iq=`include`,aq=`interval`,oq=`iops`,sq=`key`,cq=`kmsKey`,lq=`kmsKeyId`,uq=`links`,dq=`loadBalancers`,fq=`loadBalancerName`,pq=`logConfiguration`,mq=`linearConfiguration`,hq=`logDriver`,gq=`lifecycleHooks`,_q=`linuxParameters`,vq=`lastStatus`,yq=`lastStartedAt`,bq=`lastStatusChange`,xq=`lifecycleStages`,Sq=`launchType`,Cq=`lastUpdated`,wq=`longValue`,Tq=`labels`,Eq=`logging`,E=`message`,Dq=`managedAgents`,Oq=`metricConfigurations`,kq=`managedEBSVolume`,Aq=`minimumHealthyPercent`,jq=`metricNames`,Mq=`mountOptions`,Nq=`mountPoints`,Pq=`maximumPercent`,Fq=`memoryReservation`,Iq=`maxResults`,Lq=`managedStorageConfiguration`,Rq=`maxSwap`,zq=`memory`,Bq=`monitoring`,Vq=`name`,Hq=`networkBindings`,Uq=`networkConfiguration`,Wq=`neuronDeviceIds`,Gq=`networkInterfaces`,Kq=`networkMode`,qq=`nextToken`,Jq=`namespace`,Yq=`options`,Xq=`overallStatus`,Zq=`operatingSystemFamily`,Qq=`overrides`,$q=`privileged`,eJ=`pendingCount`,tJ=`placementConstraints`,nJ=`proxyConfiguration`,rJ=`platformFamily`,iJ=`privateIpv4Address`,aJ=`productionListenerRule`,oJ=`portMappings`,sJ=`pidMode`,cJ=`portName`,lJ=`perRequestTimeoutSeconds`,uJ=`placementStrategy`,dJ=`pullStartedAt`,fJ=`pullStoppedAt`,pJ=`pseudoTerminal`,mJ=`pendingTasksCount`,hJ=`pendingTaskCount`,gJ=`propagateTags`,_J=`platformVersion`,vJ=`permissions`,yJ=`port`,bJ=`protocol`,xJ=`properties`,SJ=`reason`,CJ=`roleArn`,wJ=`restartAttemptPeriod`,TJ=`registeredAt`,EJ=`registryArn`,DJ=`requiresAttributes`,OJ=`registeredBy`,kJ=`repositoryCredentials`,AJ=`registeredContainerInstancesCount`,jJ=`requiresCompatibilities`,MJ=`runningCount`,NJ=`rootDirectory`,PJ=`resourceIds`,FJ=`referenceId`,IJ=`runtimeId`,LJ=`resourceManagementType`,RJ=`readOnly`,zJ=`resetOnHealthyTask`,BJ=`restartPolicy`,VJ=`runtimePlatform`,HJ=`resourceRequirements`,UJ=`readonlyRootFilesystem`,WJ=`remainingResources`,GJ=`registeredResources`,KJ=`rolloutState`,qJ=`rolloutStateReason`,JJ=`resolutionSeconds`,YJ=`resourceType`,XJ=`runningTasksCount`,ZJ=`requestedTaskCount`,QJ=`runningTaskCount`,$J=`revision`,eY=`retries`,tY=`role`,nY=`rollback`,rY=`smithy.ts.sdk.synthetic.com.amazonaws.ecs`,iY=`startedAt`,aY=`serviceArn`,oY=`serviceArns`,sY=`stoppedAt`,cY=`stoppingAt`,lY=`startedBy`,uY=`s3BucketName`,dY=`stepBakeTimeInMinutes`,fY=`systemControls`,pY=`serviceConnectConfiguration`,mY=`serviceConnectDefaults`,hY=`serviceConnectResources`,gY=`sourceContainer`,_Y=`stopCode`,vY=`s3EncryptionEnabled`,yY=`securityGroups`,bY=`sizeInGiB`,xY=`snapshotId`,SY=`s3KeyPrefix`,CY=`softLimit`,wY=`sharedMemorySize`,TY=`serviceName`,EY=`secretOptions`,DY=`startPeriod`,OY=`sourcePath`,kY=`stepPercent`,AY=`statusReason`,jY=`serviceRegistries`,MY=`stoppedReason`,NY=`schedulingStrategy`,PY=`stabilityStatusAt`,FY=`stringSetValue`,IY=`stabilityStatus`,LY=`startTimeout`,RY=`stopTimeout`,zY=`sourceVolume`,BY=`s3filesVolumeConfiguration`,VY=`scale`,HY=`scope`,UY=`server`,WY=`secrets`,GY=`service`,KY=`services`,qY=`settings`,JY=`size`,YY=`sort`,XY=`status`,ZY=`statistics`,QY=`strategy`,$Y=`subnets`,eX=`swappiness`,tX=`type`,nX=`taskArn`,rX=`taskArns`,iX=`thresholdConfiguration`,aX=`timeoutConfiguration`,oX=`taskDefinition`,sX=`taskDefinitionArn`,cX=`taskDefinitionArns`,lX=`transitEncryptionPort`,uX=`transitEncryption`,dX=`targetGroupArn`,fX=`targetId`,pX=`timeoutInMinutes`,mX=`testListenerRule`,hX=`terminationPolicy`,gX=`taskRoleArn`,_X=`taskSetArn`,vX=`taskSets`,yX=`tagSpecifications`,bX=`targetType`,xX=`testTrafficRules`,SX=`tags`,CX=`tasks`,wX=`task`,TX=`throughput`,EX=`timeout`,DX=`tls`,OX=`tmpfs`,kX=`user`,AX=`updatedAt`,jX=`ulimits`,MX=`unit`,NX=`value`,PX=`versionConsistency`,FX=`volumeConfigurations`,IX=`volumesFrom`,LX=`valueFrom`,RX=`versionInfo`,zX=`volumeInitializationRate`,BX=`vpcLatticeConfigurations`,VX=`volumeType`,HX=`version`,UX=`volumes`,WX=`weight`,GX=`workingDirectory`,D=`com.amazonaws.ecs`,KX=dt.for(rY),qX=[-3,rY,`ECSServiceException`,0,[],[]];KX.registerError(qX,w);var O=dt.for(D),JX=[-3,D,pz,{[T]:vW,[MK]:403},[E],[0]];O.registerError(JX,PR);var YX=[-3,D,mz,{[T]:vW},[E],[0]];O.registerError(YX,ZR);var XX=[-3,D,yz,{[T]:vW},[E],[0]];O.registerError(XX,lz);var ZX=[-3,D,Pz,{[T]:vW},[E],[0]];O.registerError(ZX,FR);var QX=[-3,D,Cz,{[T]:vW},[E],[0]];O.registerError(QX,UR);var $X=[-3,D,Sz,{[T]:vW},[E],[0]];O.registerError($X,WR);var eZ=[-3,D,Ez,{[T]:vW},[E],[0]];O.registerError(eZ,GR);var tZ=[-3,D,Dz,{[T]:vW},[E],[0]];O.registerError(tZ,KR);var nZ=[-3,D,zz,{[T]:vW},[E],[0]];O.registerError(nZ,IR);var rZ=[-3,D,Fz,{[T]:vW},[PJ,E],[64,0]];O.registerError(rZ,sz);var iZ=[-3,D,CB,{[T]:vW},[E],[0]];O.registerError(iZ,nz);var aZ=[-3,D,wB,{[T]:vW},[E],[0]];O.registerError(aZ,rz);var oZ=[-3,D,dV,{[T]:vW},[E],[0]];O.registerError(oZ,LR);var sZ=[-3,D,wV,{[T]:vW},[E],[0]];O.registerError(sZ,RR);var cZ=[-3,D,UV,{[T]:vW},[E],[0]];O.registerError(cZ,QR);var lZ=[-3,D,YV,{[T]:vW},[E],[0]];O.registerError(lZ,HR);var uZ=[-3,D,XV,{[T]:vW},[E],[0]];O.registerError(uZ,$R);var dZ=[-3,D,aH,{[T]:vW},[E],[0]];O.registerError(dZ,iz);var fZ=[-3,D,oH,{[T]:vW},[E],[0]];O.registerError(fZ,tz);var pZ=[-3,D,uH,{[T]:vW},[E],[0]];O.registerError(pZ,JR);var mZ=[-3,D,dH,{[T]:vW},[E],[0]];O.registerError(mZ,oz);var hZ=[-3,D,VH,{[T]:UY},[E],[0]];O.registerError(hZ,zR);var gZ=[-3,D,BH,{[T]:vW},[E],[0]];O.registerError(gZ,ez);var _Z=[-3,D,qH,{[T]:vW},[E],[0]];O.registerError(_Z,az);var vZ=[-3,D,JH,{[T]:vW},[E],[0]];O.registerError(vZ,XR);var yZ=[-3,D,gU,{[T]:vW},[E],[0]];O.registerError(yZ,qR);var bZ=[-3,D,_U,{[T]:vW},[E],[0]];O.registerError(bZ,YR);var xZ=[-3,D,bU,{[T]:vW},[E],[0]];O.registerError(xZ,cz);var SZ=[-3,D,MU,{[T]:vW},[E],[0]];O.registerError(SZ,BR);var CZ=[-3,D,NU,{[T]:vW},[E],[0]];O.registerError(CZ,VR);var wZ=[KX,O],TZ=[3,D,dz,0,[iW,aJ,mX,CJ],[0,0,0,0]],EZ=[3,D,uz,0,[VK,tX,XY,dG],[0,0,0,()=>Rme]],DZ=[3,D,gz,0,[Vq,NX,bX,fX],[0,0,0,0],1],OZ=[3,D,hz,0,[$Y,yY,eW],[64,64,0],1],kZ=[3,D,xz,0,[zW,DW],[1,1]],AZ=[3,D,Uz,0,[UW,WX,hW],[0,1,1],1],jZ=[3,D,bz,0,[yW,IW,rG,XY,AJ,XJ,mJ,nW,ZY,SX,qY,WW,gG,HU,rW,mY],[0,0,()=>MZ,0,1,1,1,1,()=>lhe,()=>CQ,()=>sQ,64,()=>oQ,()=>iQ,0,()=>NZ]],MZ=[3,D,Oz,0,[WG,Lq],[()=>fpe,()=>zpe]],NZ=[3,D,Kz,0,[Jq],[0]],PZ=[3,D,qz,0,[Jq],[0],1],FZ=[3,D,Gz,0,[Vq,NX],[0,0]],IZ=[3,D,$z,0,[CW,nX,Vq,nq,qK,IJ,vq,UG,SJ,Hq,Gq,LK,Dq,uG,zq,Fq,DK,Wq],[0,0,0,0,0,0,0,1,0,()=>Qme,()=>$me,0,()=>Yme,0,0,0,64,64]],LZ=[3,D,Az,0,[Vq,nq,kJ,uG,zq,Fq,uq,oJ,sK,BJ,QG,iG,rK,qG,Nq,IX,_q,WY,TG,LY,RY,PX,OK,kX,GX,bG,$q,UJ,kG,AG,YG,jG,rq,pJ,yG,jX,pq,kK,fY,HJ,fK,JW],[0,0,[()=>Xpe,0],1,1,1,64,()=>ehe,2,()=>HZ,64,64,[()=>fQ,0],()=>dQ,()=>Zme,()=>hhe,()=>Epe,()=>bQ,()=>Bme,1,1,0,0,0,0,2,2,2,64,64,()=>Kme,64,2,2,128,()=>mhe,()=>YZ,()=>vpe,()=>uhe,()=>vQ,()=>hpe,64]],RZ=[3,D,jz,0,[LW,oG],[0,0],2],zZ=[3,D,Lz,0,[MW,ZG,BW,HX,RX,WJ,GJ,XY,AY,UU,XJ,mJ,aW,pW,TJ,HU,SX,LK],[0,0,0,1,()=>Pme,()=>yQ,()=>yQ,0,0,2,1,1,0,()=>aQ,4,()=>iQ,()=>CQ,()=>BZ]],BZ=[3,D,Iz,0,[Xq,dG],[0,()=>Jme]],VZ=[3,D,Bz,0,[Vq,iG,rK,qG,uG,zq,Fq,HJ],[0,64,[()=>fQ,0],()=>dQ,1,1,1,()=>vQ]],HZ=[3,D,Wz,0,[iK,JK,wJ],[2,65,1],1],UZ=[3,D,wz,0,[IW,SX,qY,rG,WW,gG,mY],[0,()=>CQ,()=>sQ,()=>MZ,64,()=>oQ,()=>PZ]],Ife=[3,D,Tz,0,[tG],[()=>jZ]],Lfe=[3,D,Jz,0,[TY,tG,oX,cW,dq,jY,_G,ZW,Sq,HW,_J,tY,mG,tJ,uJ,Uq,AK,NY,vG,SX,KG,gJ,GG,pY,FX,BX,Bq],[0,0,0,0,()=>hQ,()=>xQ,1,0,0,()=>oQ,0,0,()=>WZ,()=>gQ,()=>_Q,()=>XZ,1,0,()=>GZ,()=>CQ,2,0,2,()=>eQ,()=>SQ,()=>DQ,()=>Vpe],1],Rfe=[3,D,Yz,0,[GY],[()=>$Z]],zfe=[3,D,dB,0,[tG],[0],1],Bfe=[3,D,fB,0,[tG],[()=>jZ]],Vfe=[3,D,tB,0,[VK,XY,oX,_G,eJ,MJ,vK,EW,AX,HW,Sq,_J,rJ,Uq,KJ,qJ,pY,hY,FX,pK,BX],[0,0,0,1,1,1,1,4,4,()=>oQ,0,0,0,()=>XZ,0,0,()=>eQ,()=>ahe,()=>SQ,()=>KZ,()=>DQ]],Hfe=[3,D,nB,0,[XU,nY,aK],[64,2,2],3],Ufe=[3,D,iB,0,[aK,nY,zJ,iX],[2,2,2,()=>Ome],2],WZ=[3,D,rB,0,[hG,Pq,Aq,dW,QY,_W,gq,mq,kW],[()=>Ufe,1,1,()=>Hfe,0,1,()=>Ume,()=>Tpe,()=>kZ]],GZ=[3,D,hB,0,[tX],[0],1],KZ=[3,D,vB,0,[lq],[0]],Wfe=[3,D,bB,0,[bX,RK,CJ,xq,jK,aX],[0,0,0,64,15,()=>Gfe]],Gfe=[3,D,SB,0,[pX,lW],[1,0]],Kfe=[3,D,aB,0,[PW,tG,wK],[0,0,2],1],qfe=[3,D,oB,0,[PW],[()=>zZ]],Jfe=[3,D,kB,0,[oX],[0],1],Yfe=[3,D,AB,0,[oX],[[()=>nQ,0]]],Xfe=[3,D,pB,0,[nG,iq],[64,64]],Zfe=[3,D,mB,0,[nG,xK],[()=>zme,()=>pQ]],Qfe=[3,D,sB,0,[FW,tG,iq],[64,0,64],1],$fe=[3,D,cB,0,[FW,xK],[()=>lQ,()=>pQ]],epe=[3,D,TB,0,[KY,tG,iq],[64,0,64],1],tpe=[3,D,EB,0,[KY,xK],[()=>che,()=>pQ]],npe=[3,D,jB,0,[oX,iq],[0,64],1],rpe=[3,D,MB,0,[oX,SX],[[()=>nQ,0],()=>CQ]],ipe=[3,D,FB,0,[CX,tG,iq],[64,0,64],1],ape=[3,D,IB,0,[CX,xK],[[()=>TQ,0],()=>pQ]],ope=[3,D,RB,0,[PK,GW,vJ],[0,0,64],1],spe=[3,D,LB,0,[HY,mW,VG,DG,Tq],[0,2,0,128,128]],cpe=[3,D,BB,0,[YJ,SX,gJ],[0,()=>CQ,0],1],lpe=[3,D,GB,0,[tW,tq],[0,0]],upe=[3,D,KB,0,[_K,NJ,uX,lX,GU],[0,0,0,1,()=>lpe],1],dpe=[3,D,WB,0,[NX,tX],[0,0],2],qZ=[3,D,JB,0,[bY],[1],1],fpe=[3,D,HB,0,[lq,Eq,pq],[0,0,()=>ppe]],ppe=[3,D,UB,0,[$W,QW,uY,vY,SY],[0,2,0,2,0]],mpe=[3,D,XB,0,[fW,SJ,zG],[0,0,0]],hpe=[3,D,ZB,0,[tX,Yq],[0,128],1],gpe=[3,D,QB,0,[qW,BG],[0,0],2],_pe=[3,D,$B,0,[_K,NJ,GU],[0,0,()=>gpe],3],vpe=[3,D,tV,0,[iG,aq,EX,eY,DY],[64,1,1,1,1],1],ype=[3,D,nV,0,[OK,HK],[0,0],2],bpe=[3,D,iV,0,[OY],[0]],xpe=[3,D,aV,0,[SG,NG],[0,0],2],Spe=[3,D,oV,0,[SG,NG],[0,0]],Cpe=[3,D,lV,0,[tX,XY,AY,Cq,bq],[0,0,0,4,4]],wpe=[3,D,fV,0,[uW,HG],[64,64]],JZ=[3,D,pV,0,[Vq,NX],[0,0]],Tpe=[3,D,gV,0,[kY,dY],[1,1]],Epe=[3,D,TV,0,[eG,LG,XK,wY,OX,Rq,eX],[()=>wpe,()=>Gme,2,1,()=>phe,1,1]],Dpe=[3,D,bV,0,[qq,Iq],[0,1]],Ope=[3,D,xV,0,[xW,qq],[64,0]],kpe=[3,D,vV,0,[tG,SK,qq,Iq,XY],[0,0,0,1,0]],Ape=[3,D,yV,0,[NW,qq],[64,0]],jpe=[3,D,DV,0,[tG,qq,Iq,Sq,NY,LJ],[0,0,1,0,0,0]],Mpe=[3,D,OV,0,[oY,qq],[64,0]],Npe=[3,D,jV,0,[hK,XY,YY,qq,Iq],[0,0,0,0,1]],Ppe=[3,D,MV,0,[cX,qq],[64,0]],Fpe=[3,D,NV,0,[tG,PW,dK,qq,Iq,lY,TY,MG,Sq,xG],[0,0,0,0,1,0,0,0,0,0]],Ipe=[3,D,PV,0,[rX,qq],[64,0]],Lpe=[3,D,mV,0,[dX,fq,LW,KW,WU],[0,0,0,1,()=>TZ]],YZ=[3,D,CV,0,[hq,Yq,EY],[0,128,()=>bQ],1],Rpe=[3,D,FV,0,[yq,Vq,SJ,vq],[4,0,0,0]],zpe=[3,D,HV,0,[lq,mK],[0,0]],Bpe=[3,D,RV,0,[jq,JJ],[64,1],2],Vpe=[3,D,zV,0,[Oq],[()=>Xme]],Hpe=[3,D,BV,0,[zY,GW,RJ],[0,0,2]],Upe=[3,D,WV,0,[gW,KW,IK,bJ,VW,FK],[0,1,1,0,0,0]],XZ=[3,D,KV,0,[KU],[()=>OZ]],Wpe=[3,D,qV,0,[JU,iJ,GK],[0,0,0]],Gpe=[3,D,ZV,0,[tX,lK],[0,0]],Kpe=[3,D,rH,0,[tX,CK],[0,0]],qpe=[3,D,tH,0,[KW,IK,bJ,Vq,ZU,VW],[1,1,0,0,0,0]],ZZ=[3,D,eH,0,[LW,tX,xJ],[0,0,()=>the],1],Jpe=[3,D,_H,0,[dK,AW,gX,$G,Kq,UX,tJ,jJ,uG,zq,SX,sJ,YK,nJ,WK,tK,VJ,JG],[0,[()=>cQ,0],0,0,0,()=>EQ,()=>wQ,64,0,0,()=>CQ,0,0,()=>ZZ,()=>mQ,()=>qZ,()=>QZ,2],2],Ype=[3,D,vH,0,[oX,SX],[[()=>nQ,0],()=>CQ]],Xpe=[3,D,lH,8,[qW],[0],1],Zpe=[3,D,sH,0,[Vq,tX,PG,wq,eq,FY],[0,0,1,1,1,64]],Qpe=[3,D,pH,0,[NX,tX],[0,0],2],$pe=[3,D,yH,0,[oX,HW,tG,lG,KG,GG,EK,Sq,Uq,Qq,tJ,uJ,_J,gJ,FJ,lY,SX,ZW,FX],[0,()=>oQ,0,1,2,2,0,0,()=>XZ,[()=>rQ,0],()=>gQ,()=>_Q,0,0,0,0,()=>CQ,[0,4],()=>fhe],1],eme=[3,D,bH,0,[CX,xK],[[()=>TQ,0],()=>pQ]],QZ=[3,D,fH,0,[TW,Zq],[0,0]],tme=[3,D,WH,0,[gK,NJ,lX,QU],[0,0,1,0],1],nme=[3,D,SH,0,[NX,MX],[1,0]],rme=[3,D,nU,0,[Vq,LX],[0,0],2],$Z=[3,D,rU,0,[aY,TY,yW,dq,jY,XY,_G,MJ,eJ,Sq,HW,_J,rJ,oX,mG,vX,RG,CJ,cK,EW,YW,XW,tJ,uJ,Uq,AK,NY,vG,SX,OW,KG,gJ,GG,cW,LJ],[0,0,0,()=>hQ,()=>xQ,0,1,1,1,0,()=>oQ,0,0,0,()=>WZ,()=>dhe,()=>Wme,0,()=>she,4,0,()=>ohe,()=>gQ,()=>_Q,()=>XZ,1,0,()=>GZ,()=>CQ,0,2,0,2,0,0]],ime=[3,D,wH,0,[TK,QK],[0,0],1],ame=[3,D,EH,0,[yJ,wG,xX],[1,0,()=>ume],1],eQ=[3,D,TH,0,[iK,Jq,KY,pq,YU],[2,0,()=>ihe,()=>YZ,()=>ime],1],ome=[3,D,AH,0,[cJ,CG,SW,ZK,EX,DX],[0,0,()=>rhe,1,()=>kme,()=>fme],1],sme=[3,D,MH,0,[CG,pG],[0,0]],cme=[3,D,IH,0,[uK],[0],1],lme=[3,D,LH,0,[Vq,NX],[0,()=>cme],1],ume=[3,D,RH,0,[zK],[()=>lme],1],dme=[3,D,FH,0,[$U],[0]],fme=[3,D,PH,0,[KK,cq,CJ],[()=>dme,0,0],1],pme=[3,D,OH,0,[fW,ZJ,QJ,hJ],[0,1,1,1]],mme=[3,D,HH,0,[VK,EW,E],[0,4,0]],hme=[3,D,KH,0,[CJ,oK,lq,VX,bY,xY,zX,oq,TX,yX,yK],[0,2,0,0,1,0,1,1,1,()=>uQ,0],1],gme=[3,D,YH,0,[EJ,yJ,LW,KW],[0,1,0,1]],_me=[3,D,eU,0,[Vq,kq],[0,()=>hme],1],vme=[3,D,ZH,0,[wX,tG,SJ],[0,0,0],1],yme=[3,D,QH,0,[wX],[[()=>tQ,0]]],bme=[3,D,CH,0,[Jq,NX],[0,0]],xme=[3,D,oU,0,[sq,NX],[0,0]],tQ=[3,D,wU,0,[HU,pW,sW,BW,yW,sG,wW,MW,cG,uG,EW,MG,GG,eK,EK,LK,WK,vq,Sq,zq,Qq,_J,rJ,dJ,fJ,iY,lY,_Y,sY,MY,cY,SX,nX,sX,HX,tK,pK],[()=>iQ,()=>aQ,0,0,0,0,4,0,()=>Hme,0,4,0,2,4,0,0,()=>mQ,0,0,0,[()=>rQ,0],0,0,4,4,4,0,0,4,0,4,()=>CQ,0,0,1,()=>qZ,()=>Cme]],nQ=[3,D,lU,0,[sX,AW,dK,gX,$G,Kq,$J,UX,XY,DJ,tJ,aG,VJ,jJ,uG,zq,WK,sJ,YK,nJ,TJ,fG,OG,OJ,tK,JG],[0,[()=>cQ,0],0,0,0,0,1,()=>EQ,0,()=>nhe,()=>wQ,64,()=>QZ,64,0,0,()=>mQ,0,0,()=>ZZ,4,4,4,0,()=>qZ,2]],Sme=[3,D,uU,0,[tX,lK],[0,0]],Cme=[3,D,fU,0,[bY,lq],[1,0]],wme=[3,D,mU,0,[CJ,oK,lq,VX,bY,xY,zX,oq,TX,yX,hX,yK],[0,2,0,0,1,0,1,1,1,()=>uQ,()=>Tme,0],1],Tme=[3,D,hU,0,[EG],[2],1],rQ=[3,D,vU,0,[RW,uG,UK,$G,zq,gX,tK],[[()=>Vme,0],0,()=>qme,0,0,0,()=>qZ]],Eme=[3,D,yU,0,[VK,_X,aY,yW,lY,XG,XY,oX,jW,eJ,MJ,EW,AX,Sq,HW,_J,rJ,Uq,dq,jY,VY,IY,PY,SX,pK],[0,0,0,0,0,0,0,0,1,1,1,4,4,0,()=>oQ,0,0,()=>XZ,()=>hQ,()=>xQ,()=>nme,0,4,()=>CQ,()=>KZ]],Dme=[3,D,SU,0,[Vq,kq],[0,()=>wme],1],Ome=[3,D,sU,0,[tX,NX],[0,1],2],kme=[3,D,cU,0,[$K,lJ],[1,1]],Ame=[3,D,DU,0,[GW,JY,Mq],[0,1,64],2],jme=[3,D,OU,0,[Vq,CY,NK],[0,1,1],3],Mme=[3,D,AU,0,[FW,XY,tG],[64,0,0],2],Nme=[3,D,jU,0,[FW,xK],[()=>lQ,()=>pQ]],Pme=[3,D,RU,0,[oW,qU,IG],[0,0,0]],Fme=[3,D,FU,0,[Vq,BK,FG,nK,BY,bK,bW],[0,()=>bpe,()=>spe,()=>upe,()=>tme,()=>_pe,2]],Ime=[3,D,IU,0,[gY,RJ],[0,2]],Lme=[3,D,BU,0,[CJ,dX,cJ],[0,0,0],3],Rme=[1,D,fz,0,()=>JZ],iQ=[1,D,_z,0,()=>EZ],aQ=[1,D,vz,0,()=>DZ],oQ=[1,D,Hz,0,()=>AZ],zme=[1,D,Qz,0,()=>jZ],sQ=[1,D,Xz,0,()=>FZ],cQ=[1,D,Mz,0,[()=>LZ,0]],Bme=[1,D,Nz,0,()=>RZ],lQ=[1,D,Rz,0,()=>zZ],Vme=[1,D,Vz,0,[()=>VZ,0]],Hme=[1,D,eB,0,()=>IZ],Ume=[1,D,xB,0,()=>Wfe],Wme=[1,D,zB,0,()=>Vfe],Gme=[1,D,yB,0,()=>ope],uQ=[1,D,VB,0,()=>cpe],dQ=[1,D,qB,0,()=>dpe],fQ=[1,D,YB,8,()=>JZ],pQ=[1,D,eV,0,()=>mpe],Kme=[1,D,rV,0,()=>ype],qme=[1,D,sV,0,()=>Spe],mQ=[1,D,cV,0,()=>xpe],Jme=[1,D,uV,0,()=>Cpe],hQ=[1,D,hV,0,()=>Lpe],Yme=[1,D,IV,0,()=>Rpe],Xme=[1,D,LV,0,()=>Bpe],Zme=[1,D,VV,0,()=>Hpe],Qme=[1,D,GV,0,()=>Upe],$me=[1,D,JV,0,()=>Wpe],gQ=[1,D,$V,0,()=>Gpe],_Q=[1,D,iH,0,()=>Kpe],ehe=[1,D,nH,0,()=>qpe],the=[1,D,QV,0,()=>JZ],nhe=[1,D,cH,0,()=>DZ],vQ=[1,D,mH,0,()=>Qpe],yQ=[1,D,xH,0,()=>Zpe],bQ=[1,D,GH,0,()=>rme],rhe=[1,D,DH,0,()=>ame],ihe=[1,D,jH,0,()=>ome],ahe=[1,D,NH,0,()=>sme],ohe=[1,D,kH,0,()=>pme],she=[1,D,UH,0,()=>mme],xQ=[1,D,XH,0,()=>gme],che=[1,D,iU,0,()=>$Z],SQ=[1,D,tU,0,()=>_me],lhe=[1,D,aU,0,()=>JZ],uhe=[1,D,zH,0,()=>bme],CQ=[1,D,TU,0,()=>xme],wQ=[1,D,dU,0,()=>Sme],TQ=[1,D,EU,0,[()=>tQ,0]],dhe=[1,D,xU,0,()=>Eme],fhe=[1,D,CU,0,()=>Dme],phe=[1,D,pU,0,()=>Ame],mhe=[1,D,PU,0,()=>jme],hhe=[1,D,LU,0,()=>Ime],EQ=[1,D,zU,0,()=>Fme],DQ=[1,D,VU,0,()=>Lme],ghe=[9,D,kz,0,()=>UZ,()=>Ife],_he=[9,D,Zz,0,()=>Lfe,()=>Rfe],vhe=[9,D,gB,2,()=>zfe,()=>Bfe],yhe=[9,D,lB,0,()=>Kfe,()=>qfe],bhe=[9,D,NB,0,()=>Jfe,()=>Yfe],xhe=[9,D,_B,0,()=>Xfe,()=>Zfe],She=[9,D,uB,0,()=>Qfe,()=>$fe],Che=[9,D,DB,0,()=>epe,()=>tpe],whe=[9,D,PB,0,()=>npe,()=>rpe],The=[9,D,OB,0,()=>ipe,()=>ape],Ehe=[9,D,SV,0,()=>Dpe,()=>Ope],Dhe=[9,D,_V,0,()=>kpe,()=>Ape],Ohe=[9,D,EV,0,()=>jpe,()=>Mpe],khe=[9,D,AV,0,()=>Npe,()=>Ppe],Ahe=[9,D,kV,0,()=>Fpe,()=>Ipe],jhe=[9,D,gH,0,()=>Jpe,()=>Ype],Mhe=[9,D,hH,0,()=>$pe,()=>eme],Nhe=[9,D,$H,0,()=>vme,()=>yme],Phe=[9,D,kU,0,()=>Mme,()=>Nme],Fhe=e=>({apiVersion:`2014-11-13`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??NR,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??fR,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Wt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecs`,errorTypeRegistries:wZ,xmlNamespace:`http://ecs.amazonaws.com/doc/2014-11-13/`,version:`2014-11-13`,serviceTarget:`AmazonEC2ContainerServiceV20141113`},serviceId:e?.serviceId??`ECS`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),Ihe=e=>{let t=Je(e),n=()=>t().then(ft),r=Fhe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:gR.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Lhe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Rhe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),zhe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),Lhe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),Rhe(n))},Bhe=class extends fe{config;constructor(...[e]){let t=Ihe(e||{});super(t),this.initConfig=t;let n=zhe(pR(Qe(Me(be(rt(ge(mR(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:uR,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},Vhe=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Hhe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Uhe=e=>{let t=[];switch(e.operation){default:t.push(Hhe(e))}return t},Whe=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},Ghe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),Khe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},qhe={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},OQ=`ref`,kQ=-1,AQ=!0,jQ=`isSet`,MQ=`PartitionResult`,NQ=`booleanEquals`,PQ=`getAttr`,FQ=`stringEquals`,IQ={[OQ]:`Endpoint`},LQ={[OQ]:MQ},RQ={fn:PQ,argv:[LQ,`name`]},zQ={},BQ=[{[OQ]:`Region`}],VQ={conditions:[[jQ,[IQ]],[jQ,BQ],[`aws.partition`,BQ,MQ],[NQ,[{[OQ]:`UseFIPS`},AQ]],[NQ,[{[OQ]:`UseDualStack`},AQ]],[NQ,[{fn:PQ,argv:[LQ,`supportsDualStack`]},AQ]],[NQ,[{fn:PQ,argv:[LQ,`supportsFIPS`]},AQ]],[FQ,[RQ,`aws`]],[FQ,[RQ,`aws-us-gov`]]],results:[[kQ],[kQ,`Invalid Configuration: FIPS and custom endpoint are not supported`],[kQ,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[IQ,zQ],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,zQ],[kQ,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,zQ],[`https://eks.{Region}.amazonaws.com`,zQ],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,zQ],[kQ,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,zQ],[kQ,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,zQ],[kQ,`Invalid Configuration: Missing Region`]]},Jhe=2,Yhe=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),Xhe=nt.from(Yhe,Jhe,VQ.conditions,VQ.results),Zhe=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Qhe=(e,t={})=>Zhe.get(e,()=>at(Xhe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var HQ=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},$he=class e extends HQ{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ege=class e extends HQ{name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},tge=class e extends HQ{name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},nge=class e extends HQ{name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},rge=class e extends HQ{name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},ige=class e extends HQ{name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},age=class e extends HQ{name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},oge=class e extends HQ{name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},sge=class e extends HQ{name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},cge=class e extends HQ{name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},lge=class e extends HQ{name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},uge=class e extends HQ{name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},dge=class e extends HQ{name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fge=class e extends HQ{name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pge=class e extends HQ{name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mge=`Addon`,hge=`AssociatedAccessPolicy`,gge=`AssociatedAccessPoliciesList`,_ge=`AssociateAccessPolicyRequest`,vge=`AssociateAccessPolicyResponse`,yge=`AssociateAccessPolicy`,bge=`AccessConfigResponse`,xge=`AccessDeniedException`,Sge=`AccessEntry`,Cge=`AddonHealth`,wge=`AddonInfo`,Tge=`AddonIssueList`,Ege=`AddonIssue`,Dge=`AddonNamespaceConfigRequest`,Oge=`AddonNamespaceConfigResponse`,kge=`AccessPolicy`,Age=`AddonPodIdentityAssociations`,jge=`AddonPodIdentityAssociationsList`,Mge=`AccessPoliciesList`,Nge=`AccessScope`,Pge=`AutoScalingGroup`,Fge=`AutoScalingGroupList`,Ige=`AddonVersionInfo`,Lge=`AddonVersionInfoList`,Rge=`Addons`,zge=`BadRequestException`,Bge=`BlockStorage`,Vge=`Cancellation`,Hge=`CreateAddon`,Uge=`CreateAccessConfigRequest`,Wge=`CreateAccessEntry`,Gge=`CreateAccessEntryRequest`,Kge=`CreateAccessEntryResponse`,qge=`CreateAddonRequest`,Jge=`CreateAddonResponse`,Yge=`ComputeConfigRequest`,Xge=`ComputeConfigResponse`,Zge=`ConnectorConfigResponse`,Qge=`CreateClusterRequest`,$ge=`CreateClusterResponse`,e_e=`CreateCluster`,t_e=`ClientException`,n_e=`ClusterHealth`,r_e=`ClusterIssueList`,i_e=`ClusterIssue`,a_e=`CreateNodegroup`,o_e=`CreateNodegroupRequest`,s_e=`CreateNodegroupResponse`,c_e=`ControlPlanePlacementRequest`,l_e=`ControlPlanePlacementResponse`,u_e=`ControlPlaneScalingConfig`,d_e=`Certificate`,f_e=`Cluster`,p_e=`Compatibility`,m_e=`Compatibilities`,h_e=`DeleteAddon`,g_e=`DeleteAccessEntry`,__e=`DeleteAccessEntryRequest`,v_e=`DeleteAccessEntryResponse`,y_e=`DescribeAccessEntryRequest`,b_e=`DescribeAccessEntryResponse`,x_e=`DescribeAccessEntry`,S_e=`DisassociateAccessPolicy`,C_e=`DisassociateAccessPolicyRequest`,w_e=`DisassociateAccessPolicyResponse`,T_e=`DeleteAddonRequest`,E_e=`DeleteAddonResponse`,D_e=`DescribeAddonRequest`,O_e=`DescribeAddonResponse`,k_e=`DescribeAddonVersions`,A_e=`DescribeAddonVersionsRequest`,j_e=`DescribeAddonVersionsResponse`,M_e=`DescribeAddon`,N_e=`DeleteClusterRequest`,P_e=`DeleteClusterResponse`,F_e=`DescribeClusterRequest`,I_e=`DescribeClusterResponse`,L_e=`DeleteCluster`,R_e=`DescribeCluster`,z_e=`DeleteNodegroup`,B_e=`DeleteNodegroupRequest`,V_e=`DeleteNodegroupResponse`,H_e=`DescribeNodegroupRequest`,U_e=`DescribeNodegroupResponse`,W_e=`DescribeNodegroup`,G_e=`EncryptionConfig`,K_e=`EncryptionConfigList`,q_e=`ErrorDetail`,J_e=`ErrorDetails`,Y_e=`ElasticLoadBalancing`,X_e=`EtcdPlacementRequest`,Z_e=`EtcdPlacementResponse`,Q_e=`Identity`,$_e=`IssueList`,eve=`InvalidParameterException`,tve=`InvalidRequestException`,nve=`InvalidStateException`,rve=`Issue`,ive=`KubernetesNetworkConfigRequest`,ave=`KubernetesNetworkConfigResponse`,ove=`ListAddons`,sve=`ListAssociatedAccessPolicies`,cve=`ListAssociatedAccessPoliciesRequest`,lve=`ListAssociatedAccessPoliciesResponse`,uve=`ListAccessEntries`,dve=`ListAccessEntriesRequest`,fve=`ListAccessEntriesResponse`,pve=`ListAccessPolicies`,mve=`ListAccessPoliciesRequest`,hve=`ListAccessPoliciesResponse`,gve=`ListAddonsRequest`,_ve=`ListAddonsResponse`,vve=`ListClustersRequest`,yve=`ListClustersResponse`,bve=`ListClusters`,xve=`ListNodegroups`,Sve=`ListNodegroupsRequest`,Cve=`ListNodegroupsResponse`,wve=`LogSetup`,Tve=`LogSetups`,Eve=`LaunchTemplateSpecification`,Dve=`Logging`,Ove=`MarketplaceInformation`,kve=`Nodegroup`,Ave=`NotFoundException`,jve=`NodegroupHealth`,Mve=`NodegroupResources`,Nve=`NodeRepairConfig`,Pve=`NodeRepairConfigOverrides`,Fve=`NodeRepairConfigOverridesList`,Ive=`NodegroupScalingConfig`,Lve=`NodegroupUpdateConfig`,Rve=`OutpostConfigRequest`,zve=`OutpostConfigResponse`,Bve=`OIDC`,Vve=`Provider`,Hve=`RemoteAccessConfig`,Uve=`ResourceInUseException`,Wve=`ResourceLimitExceededException`,Gve=`RemoteNetworkConfigRequest`,Kve=`RemoteNetworkConfigResponse`,qve=`ResourceNotFoundException`,Jve=`RemoteNodeNetwork`,Yve=`RemoteNodeNetworkList`,Xve=`ResourcePropagationDelayException`,Zve=`RemotePodNetwork`,Qve=`RemotePodNetworkList`,$ve=`StorageConfigRequest`,eye=`StorageConfigResponse`,tye=`ServerException`,nye=`ServiceUnavailableException`,rye=`Taint`,iye=`ThrottlingException`,aye=`Update`,oye=`UpdateAddon`,sye=`UpdateAddonRequest`,cye=`UpdateAddonResponse`,lye=`UnsupportedAvailabilityZoneException`,uye=`UpdateLabelsPayload`,dye=`UpdateNodegroupConfig`,fye=`UpdateNodegroupConfigRequest`,pye=`UpdateNodegroupConfigResponse`,mye=`UpdateNodegroupVersion`,hye=`UpdateNodegroupVersionRequest`,gye=`UpdateNodegroupVersionResponse`,_ye=`UpdateParam`,vye=`UpgradePolicyRequest`,yye=`UpgradePolicyResponse`,bye=`UpdateParams`,xye=`UpdateTaintsPayload`,Sye=`VpcConfigRequest`,Cye=`VpcConfigResponse`,wye=`WarmPoolConfig`,Tye=`ZonalShiftConfigRequest`,Eye=`ZonalShiftConfigResponse`,UQ=`arn`,Dye=`addonArn`,Oye=`associatedAccessPolicy`,kye=`associatedAccessPolicies`,Aye=`associatedAt`,WQ=`accessConfig`,jye=`activationCode`,Mye=`activationExpiry`,Nye=`accessEntryArn`,GQ=`accessEntry`,Pye=`accessEntries`,Fye=`activationId`,KQ=`authenticationMode`,qQ=`addonName`,Iye=`addOrUpdateLabels`,Lye=`addOrUpdateTaints`,Rye=`accessPolicies`,JQ=`associatedPolicyArn`,YQ=`accessScope`,zye=`autoScalingGroups`,XQ=`amiType`,ZQ=`addonVersion`,Bye=`addonVersions`,QQ=`addon`,$Q=`addons`,Vye=`architecture`,e$=`bootstrapClusterCreatorAdminPermissions`,t$=`blockStorage`,Hye=`bootstrapSelfManagedAddons`,n$=`client`,r$=`createdAt`,Uye=`certificateAuthority`,Wye=`connectorConfig`,i$=`computeConfig`,Gye=`clusterLogging`,k=`clusterName`,a$=`controlPlaneEgressMode`,o$=`controlPlaneInstanceType`,s$=`controlPlanePlacement`,c$=`controlPlaneScalingConfig`,l$=`clientRequestToken`,Kye=`clusterSecurityGroupId`,qye=`computeTypes`,u$=`capacityType`,d$=`configurationValues`,Jye=`clusterVersion`,Yye=`cancellation`,f$=`cidrs`,p$=`cluster`,Xye=`clusters`,m$=`code`,Zye=`compatibilities`,Qye=`data`,$ye=`defaultNamespace`,h$=`deletionProtection`,g$=`diskSize`,ebe=`desiredSize`,tbe=`defaultVersion`,_$=`error`,v$=`encryptionConfig`,nbe=`errorCode`,y$=`etcdInstanceType`,b$=`elasticLoadBalancing`,rbe=`errorMessage`,x$=`etcdPlacement`,S$=`endpointPublicAccess`,C$=`endpointPrivateAccess`,ibe=`ec2SshKey`,abe=`effect`,w$=`enabled`,obe=`endpoint`,sbe=`errors`,T$=`fargateProfileName`,cbe=`force`,E$=`groupName`,D$=`health`,O$=`httpError`,k$=`httpQuery`,A$=`http`,j$=`issues`,M$=`ipFamily`,N$=`instanceTypes`,P$=`id`,lbe=`identity`,F$=`include`,ube=`issuer`,dbe=`key`,fbe=`keyArn`,I$=`kubernetesGroups`,L$=`kubernetesNetworkConfig`,R$=`kubernetesVersion`,z$=`logging`,B$=`launchTemplate`,V$=`labels`,H$=`message`,U$=`modifiedAt`,pbe=`maxGroupPreparedCapacity`,W$=`marketplaceInformation`,mbe=`maxParallelNodesRepairedCount`,hbe=`maxParallelNodesRepairedPercentage`,G$=`maxResults`,gbe=`minRepairWaitTimeMins`,K$=`minSize`,_be=`maxSize`,vbe=`maxUnavailable`,ybe=`maxUnhealthyNodeThresholdCount`,bbe=`maxUnhealthyNodeThresholdPercentage`,xbe=`maxUnavailablePercentage`,q$=`name`,Sbe=`nodegroupArn`,J$=`namespaceConfig`,Cbe=`nodeMonitoringCondition`,Y$=`nodegroupName`,X$=`nodePools`,Z$=`nodeRole`,Q$=`nodeRoleArn`,$$=`nodeRepairConfig`,wbe=`nodeRepairConfigOverrides`,e1=`nextToken`,Tbe=`nodeUnhealthyReason`,Ebe=`namespaces`,t1=`namespace`,n1=`nodegroup`,Dbe=`nodegroups`,r1=`owner`,i1=`outpostArns`,a1=`outpostConfig`,Obe=`oidc`,o1=`owners`,s1=`publisher`,c1=`principalArn`,l1=`publicAccessCidrs`,u1=`policyArn`,kbe=`productId`,d1=`podIdentityAssociations`,Abe=`poolState`,jbe=`productUrl`,Mbe=`platformVersion`,Nbe=`platformVersions`,Pbe=`params`,f1=`provider`,p1=`preserve`,m1=`publishers`,h1=`roleArn`,Fbe=`remoteAccessSecurityGroup`,g1=`remoteAccess`,Ibe=`repairAction`,Lbe=`requiresConfiguration`,_1=`resolveConflicts`,v1=`resourceIds`,Rbe=`requiresIamPermissions`,zbe=`removeLabels`,y1=`remoteNetworkConfig`,b1=`remoteNodeNetworks`,Bbe=`reuseOnScaleIn`,x1=`remotePodNetworks`,Vbe=`removeTaints`,S1=`releaseVersion`,C1=`resourcesVpcConfig`,Hbe=`reason`,w1=`resources`,T1=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,Ube=`serviceAccount`,E1=`serviceAccountRoleArn`,D1=`storageConfig`,O1=`scalingConfig`,k1=`securityGroupIds`,A1=`subscriptionId`,j1=`serviceIpv4Cidr`,Wbe=`serviceIpv6Cidr`,M1=`subnetIds`,N1=`spreadLevel`,Gbe=`sourceSecurityGroups`,P1=`supportType`,F1=`server`,I1=`status`,L1=`subnets`,R1=`tags`,Kbe=`taintsList`,z1=`taints`,qbe=`tier`,B1=`type`,V1=`types`,H1=`username`,U1=`updateConfig`,W1=`upgradePolicy`,Jbe=`updateStrategy`,G1=`update`,K1=`version`,Ybe=`vpcId`,Xbe=`validZones`,q1=`value`,J1=`warmPoolConfig`,Y1=`zonalShiftConfig`,A=`com.amazonaws.eks`,X1=dt.for(T1),Zbe=[-3,T1,`EKSServiceException`,0,[],[]];X1.registerError(Zbe,HQ);var Z1=dt.for(A),Qbe=[-3,A,xge,{[_$]:n$,[O$]:403},[H$],[0]];Z1.registerError(Qbe,$he);var $be=[-3,A,zge,{[_$]:n$,[O$]:400},[H$],[0]];Z1.registerError($be,dge);var exe=[-3,A,t_e,{[_$]:n$,[O$]:400},[k,Y$,qQ,A1,H$],[0,0,0,0,0]];Z1.registerError(exe,ige);var txe=[-3,A,eve,{[_$]:n$,[O$]:400},[k,Y$,T$,qQ,A1,H$],[0,0,0,0,0,0]];Z1.registerError(txe,ege);var nxe=[-3,A,tve,{[_$]:n$,[O$]:400},[k,Y$,qQ,A1,H$],[0,0,0,0,0]];Z1.registerError(nxe,tge);var rxe=[-3,A,nve,{[_$]:n$,[O$]:400},[k,H$],[0,0]];Z1.registerError(rxe,sge);var ixe=[-3,A,Ave,{[_$]:n$,[O$]:404},[H$],[0]];Z1.registerError(ixe,fge);var axe=[-3,A,Uve,{[_$]:n$,[O$]:409},[k,Y$,qQ,H$],[0,0,0,0]];Z1.registerError(axe,age);var oxe=[-3,A,Wve,{[_$]:n$,[O$]:400},[k,Y$,A1,H$],[0,0,0,0]];Z1.registerError(oxe,cge);var sxe=[-3,A,qve,{[_$]:n$,[O$]:404},[k,Y$,T$,qQ,A1,H$],[0,0,0,0,0,0]];Z1.registerError(sxe,nge);var cxe=[-3,A,Xve,{[_$]:n$,[O$]:428},[H$],[0]];Z1.registerError(cxe,pge);var lxe=[-3,A,tye,{[_$]:F1,[O$]:500},[k,Y$,qQ,A1,H$],[0,0,0,0,0]];Z1.registerError(lxe,rge);var uxe=[-3,A,nye,{[_$]:F1,[O$]:503},[H$],[0]];Z1.registerError(uxe,lge);var dxe=[-3,A,iye,{[_$]:n$,[O$]:429},[k,H$],[0,0]];Z1.registerError(dxe,oge);var fxe=[-3,A,lye,{[_$]:n$,[O$]:400},[H$,k,Y$,Xbe],[0,0,0,64]];Z1.registerError(fxe,uge);var pxe=[X1,Z1],mxe=[3,A,bge,0,[e$,KQ],[2,0]],Q1=[3,A,Sge,0,[k,c1,I$,Nye,r$,U$,R1,H1,B1],[0,0,64,0,4,4,128,0,0]],hxe=[3,A,kge,0,[q$,UQ],[0,0]],$1=[3,A,Nge,0,[B1,Ebe],[0,64]],e0=[3,A,mge,0,[qQ,k,I1,ZQ,D$,Dye,r$,U$,E1,R1,s1,r1,W$,d$,d1,J$],[0,0,0,0,()=>gxe,0,4,4,0,128,0,0,()=>c0,0,64,()=>bxe]],gxe=[3,A,Cge,0,[j$],[()=>cCe]],_xe=[3,A,wge,0,[qQ,B1,Bye,s1,r1,W$,$ye],[0,0,()=>uCe,0,0,()=>c0,0]],vxe=[3,A,Ege,0,[m$,H$,v1],[0,0,64]],yxe=[3,A,Dge,0,[t1],[0]],bxe=[3,A,Oge,0,[t1],[0]],xxe=[3,A,Age,0,[Ube,h1],[0,0],2],Sxe=[3,A,Ige,0,[ZQ,Vye,qye,Zye,Lbe,Rbe],[0,64,64,()=>mCe,2,2]],Cxe=[3,A,_ge,0,[k,c1,u1,YQ],[[0,1],[0,1],0,()=>$1],4],wxe=[3,A,vge,0,[k,c1,Oye],[0,0,()=>t0]],t0=[3,A,hge,0,[u1,YQ,Aye,U$],[0,()=>$1,4,4]],Txe=[3,A,Pge,0,[q$],[0]],n0=[3,A,Bge,0,[w$],[2]],Exe=[3,A,Vge,0,[I1,Hbe],[0,0]],Dxe=[3,A,d_e,0,[Qye],[0]],r0=[3,A,f_e,0,[q$,UQ,r$,K1,obe,h1,C1,L$,z$,lbe,I1,Uye,l$,Mbe,R1,v$,Wye,P$,D$,a1,WQ,W1,Y1,y1,i$,D1,h$,c$],[0,0,4,0,0,0,()=>iCe,()=>vSe,()=>s0,()=>hSe,0,()=>Dxe,0,0,128,()=>_0,()=>Nxe,0,()=>Oxe,()=>LSe,()=>mxe,()=>nCe,()=>oCe,()=>BSe,()=>Mxe,()=>WSe,2,()=>i0]],Oxe=[3,A,n_e,0,[j$],[()=>pCe]],kxe=[3,A,i_e,0,[m$,H$,v1],[0,0,64]],Axe=[3,A,p_e,0,[Jye,Nbe,tbe],[0,64,2]],jxe=[3,A,Yge,0,[w$,X$,Q$],[2,64,0]],Mxe=[3,A,Xge,0,[w$,X$,Q$],[2,64,0]],Nxe=[3,A,Zge,0,[Fye,jye,Mye,f1,h1],[0,0,4,0,0]],Pxe=[3,A,c_e,0,[E$,N1],[0,0]],Fxe=[3,A,l_e,0,[E$,N1],[0,0]],i0=[3,A,u_e,0,[qbe],[0]],Ixe=[3,A,Uge,0,[e$,KQ],[2,0]],Lxe=[3,A,Gge,0,[k,c1,I$,R1,l$,H1,B1],[[0,1],0,64,128,[0,4],0,0],2],Rxe=[3,A,Kge,0,[GQ],[()=>Q1]],zxe=[3,A,qge,0,[k,qQ,ZQ,E1,_1,l$,R1,d$,d1,J$],[[0,1],0,0,0,0,[0,4],128,0,()=>g0,()=>yxe],2],Bxe=[3,A,Jge,0,[QQ],[()=>e0]],Vxe=[3,A,Qge,0,[q$,h1,C1,K1,L$,z$,l$,R1,v$,a1,WQ,Hye,W1,Y1,y1,i$,D1,h$,c$],[0,0,()=>rCe,0,()=>_Se,()=>s0,[0,4],128,()=>_0,()=>ISe,()=>Ixe,2,()=>tCe,()=>aCe,()=>zSe,()=>jxe,()=>USe,2,()=>i0],3],Hxe=[3,A,$ge,0,[p$],[()=>r0]],Uxe=[3,A,o_e,0,[k,Y$,L1,Z$,O1,g$,N$,XQ,g1,V$,z1,R1,l$,B$,U1,$$,u$,K1,S1,J1],[[0,1],0,64,0,()=>u0,1,64,0,()=>p0,128,()=>b0,128,[0,4],()=>o0,()=>d0,()=>f0,0,0,0,()=>h0],4],Wxe=[3,A,s_e,0,[n1],[()=>l0]],Gxe=[3,A,__e,0,[k,c1],[[0,1],[0,1]],2],Kxe=[3,A,v_e,0,[],[]],qxe=[3,A,T_e,0,[k,qQ,p1],[[0,1],[0,1],[2,{[k$]:p1}]],2],Jxe=[3,A,E_e,0,[QQ],[()=>e0]],Yxe=[3,A,N_e,0,[q$],[[0,1]],1],Xxe=[3,A,P_e,0,[p$],[()=>r0]],Zxe=[3,A,B_e,0,[k,Y$],[[0,1],[0,1]],2],Qxe=[3,A,V_e,0,[n1],[()=>l0]],$xe=[3,A,y_e,0,[k,c1],[[0,1],[0,1]],2],eSe=[3,A,b_e,0,[GQ],[()=>Q1]],tSe=[3,A,D_e,0,[k,qQ],[[0,1],[0,1]],2],nSe=[3,A,O_e,0,[QQ],[()=>e0]],rSe=[3,A,A_e,0,[R$,G$,e1,qQ,V1,m1,o1],[[0,{[k$]:R$}],[1,{[k$]:G$}],[0,{[k$]:e1}],[0,{[k$]:qQ}],[64,{[k$]:V1}],[64,{[k$]:m1}],[64,{[k$]:o1}]]],iSe=[3,A,j_e,0,[$Q,e1],[()=>lCe,0]],aSe=[3,A,F_e,0,[q$],[[0,1]],1],oSe=[3,A,I_e,0,[p$],[()=>r0]],sSe=[3,A,H_e,0,[k,Y$],[[0,1],[0,1]],2],cSe=[3,A,U_e,0,[n1],[()=>l0]],lSe=[3,A,C_e,0,[k,c1,u1],[[0,1],[0,1],[0,1]],3],uSe=[3,A,w_e,0,[],[]],a0=[3,A,Y_e,0,[w$],[2]],dSe=[3,A,G_e,0,[w1,f1],[64,()=>RSe]],fSe=[3,A,q_e,0,[nbe,rbe,v1],[0,0,64]],pSe=[3,A,X_e,0,[N1],[0]],mSe=[3,A,Z_e,0,[N1],[0]],hSe=[3,A,Q_e,0,[Obe],[()=>FSe]],gSe=[3,A,rve,0,[m$,H$,v1],[0,0,64]],_Se=[3,A,ive,0,[j1,M$,b$],[0,0,()=>a0]],vSe=[3,A,ave,0,[j1,Wbe,M$,b$],[0,0,0,()=>a0]],o0=[3,A,Eve,0,[q$,K1,P$],[0,0,0]],ySe=[3,A,dve,0,[k,JQ,G$,e1],[[0,1],[0,{[k$]:JQ}],[1,{[k$]:G$}],[0,{[k$]:e1}]],1],bSe=[3,A,fve,0,[Pye,e1],[64,0]],xSe=[3,A,mve,0,[G$,e1],[[1,{[k$]:G$}],[0,{[k$]:e1}]]],SSe=[3,A,hve,0,[Rye,e1],[()=>sCe,0]],CSe=[3,A,gve,0,[k,G$,e1],[[0,1],[1,{[k$]:G$}],[0,{[k$]:e1}]],1],wSe=[3,A,_ve,0,[$Q,e1],[64,0]],TSe=[3,A,cve,0,[k,c1,G$,e1],[[0,1],[0,1],[1,{[k$]:G$}],[0,{[k$]:e1}]],2],ESe=[3,A,lve,0,[k,c1,e1,kye],[0,0,0,()=>dCe]],DSe=[3,A,vve,0,[G$,e1,F$],[[1,{[k$]:G$}],[0,{[k$]:e1}],[64,{[k$]:F$}]]],OSe=[3,A,yve,0,[Xye,e1],[64,0]],kSe=[3,A,Sve,0,[k,G$,e1],[[0,1],[1,{[k$]:G$}],[0,{[k$]:e1}]],1],ASe=[3,A,Cve,0,[Dbe,e1],[64,0]],s0=[3,A,Dve,0,[Gye],[()=>_Ce]],jSe=[3,A,wve,0,[V1,w$],[64,2]],c0=[3,A,Ove,0,[kbe,jbe],[0,0]],l0=[3,A,kve,0,[Y$,Sbe,k,K1,S1,r$,U$,I1,u$,O1,N$,L1,g1,XQ,Z$,V$,z1,w1,g$,D$,U1,$$,B$,R1,J1],[0,0,0,0,0,4,4,0,0,()=>u0,64,64,()=>p0,0,0,128,()=>b0,()=>NSe,1,()=>MSe,()=>d0,()=>f0,()=>o0,128,()=>h0]],MSe=[3,A,jve,0,[j$],[()=>gCe]],NSe=[3,A,Mve,0,[zye,Fbe],[()=>fCe,0]],u0=[3,A,Ive,0,[K$,_be,ebe],[1,1,1]],d0=[3,A,Lve,0,[vbe,xbe,Jbe],[1,1,0]],f0=[3,A,Nve,0,[w$,ybe,bbe,mbe,hbe,wbe],[2,1,1,1,1,()=>vCe]],PSe=[3,A,Pve,0,[Cbe,Tbe,gbe,Ibe],[0,0,1,0]],FSe=[3,A,Bve,0,[ube],[0]],ISe=[3,A,Rve,0,[i1,o$,s$,y$,x$],[64,0,()=>Pxe,0,()=>pSe],2],LSe=[3,A,zve,0,[i1,o$,s$,y$,x$],[64,0,()=>Fxe,0,()=>mSe],2],RSe=[3,A,Vve,0,[fbe],[0]],p0=[3,A,Hve,0,[ibe,Gbe],[0,64]],zSe=[3,A,Gve,0,[b1,x1],[()=>v0,()=>y0]],BSe=[3,A,Kve,0,[b1,x1],[()=>v0,()=>y0]],VSe=[3,A,Jve,0,[f$],[64]],HSe=[3,A,Zve,0,[f$],[64]],USe=[3,A,$ve,0,[t$],[()=>n0]],WSe=[3,A,eye,0,[t$],[()=>n0]],GSe=[3,A,rye,0,[dbe,q1,abe],[0,0,0]],m0=[3,A,aye,0,[P$,I1,B1,Pbe,r$,sbe,Yye],[0,0,0,()=>yCe,4,()=>hCe,()=>Exe]],KSe=[3,A,sye,0,[k,qQ,ZQ,E1,_1,l$,d$,d1],[[0,1],[0,1],0,0,0,[0,4],0,()=>g0],2],qSe=[3,A,cye,0,[G1],[()=>m0]],JSe=[3,A,uye,0,[Iye,zbe],[128,64]],YSe=[3,A,fye,0,[k,Y$,V$,z1,O1,U1,$$,J1,l$],[[0,1],[0,1],()=>JSe,()=>eCe,()=>u0,()=>d0,()=>f0,()=>h0,[0,4]],2],XSe=[3,A,pye,0,[G1],[()=>m0]],ZSe=[3,A,hye,0,[k,Y$,K1,S1,B$,cbe,l$],[[0,1],[0,1],0,0,()=>o0,2,[0,4]],2],QSe=[3,A,gye,0,[G1],[()=>m0]],$Se=[3,A,_ye,0,[B1,q1],[0,0]],eCe=[3,A,xye,0,[Lye,Vbe],[()=>b0,()=>b0]],tCe=[3,A,vye,0,[P1],[0]],nCe=[3,A,yye,0,[P1],[0]],rCe=[3,A,Sye,0,[M1,k1,S$,C$,l1,a$],[64,64,2,2,64,0]],iCe=[3,A,Cye,0,[M1,k1,Kye,Ybe,S$,C$,l1,a$],[64,64,0,0,2,2,64,0]],h0=[3,A,wye,0,[w$,K$,pbe,Abe,Bbe],[2,1,1,0,2]],aCe=[3,A,Tye,0,[w$],[2]],oCe=[3,A,Eye,0,[w$],[2]],sCe=[1,A,Mge,0,()=>hxe],cCe=[1,A,Tge,0,()=>vxe],g0=[1,A,jge,0,()=>xxe],lCe=[1,A,Rge,0,()=>_xe],uCe=[1,A,Lge,0,()=>Sxe],dCe=[1,A,gge,0,()=>t0],fCe=[1,A,Fge,0,()=>Txe],pCe=[1,A,r_e,0,()=>kxe],mCe=[1,A,m_e,0,()=>Axe],_0=[1,A,K_e,0,()=>dSe],hCe=[1,A,J_e,0,()=>fSe],gCe=[1,A,$_e,0,()=>gSe],_Ce=[1,A,Tve,0,()=>jSe],vCe=[1,A,Fve,0,()=>PSe],v0=[1,A,Yve,0,()=>VSe],y0=[1,A,Qve,0,()=>HSe],b0=[1,A,Kbe,0,()=>GSe],yCe=[1,A,bye,0,()=>$Se],bCe=[9,A,yge,{[A$]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>Cxe,()=>wxe],xCe=[9,A,Wge,{[A$]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>Lxe,()=>Rxe],SCe=[9,A,Hge,{[A$]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>zxe,()=>Bxe],CCe=[9,A,e_e,{[A$]:[`POST`,`/clusters`,200]},()=>Vxe,()=>Hxe],wCe=[9,A,a_e,{[A$]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>Uxe,()=>Wxe],TCe=[9,A,g_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>Gxe,()=>Kxe],ECe=[9,A,h_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>qxe,()=>Jxe],DCe=[9,A,L_e,{[A$]:[`DELETE`,`/clusters/{name}`,200]},()=>Yxe,()=>Xxe],OCe=[9,A,z_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>Zxe,()=>Qxe],kCe=[9,A,x_e,{[A$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>$xe,()=>eSe],ACe=[9,A,M_e,{[A$]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>tSe,()=>nSe],jCe=[9,A,k_e,{[A$]:[`GET`,`/addons/supported-versions`,200]},()=>rSe,()=>iSe],MCe=[9,A,R_e,{[A$]:[`GET`,`/clusters/{name}`,200]},()=>aSe,()=>oSe],NCe=[9,A,W_e,{[A$]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>sSe,()=>cSe],PCe=[9,A,S_e,{[A$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>lSe,()=>uSe],FCe=[9,A,uve,{[A$]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>ySe,()=>bSe],ICe=[9,A,pve,{[A$]:[`GET`,`/access-policies`,200]},()=>xSe,()=>SSe],LCe=[9,A,ove,{[A$]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>CSe,()=>wSe],RCe=[9,A,sve,{[A$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>TSe,()=>ESe],zCe=[9,A,bve,{[A$]:[`GET`,`/clusters`,200]},()=>DSe,()=>OSe],BCe=[9,A,xve,{[A$]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>kSe,()=>ASe],VCe=[9,A,oye,{[A$]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>KSe,()=>qSe],HCe=[9,A,dye,{[A$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>YSe,()=>XSe],UCe=[9,A,mye,{[A$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>ZSe,()=>QSe],WCe=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Qhe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Uhe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Nee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:pxe,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),GCe=e=>{let t=Je(e),n=()=>t().then(ft),r=WCe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:qhe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},KCe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},qCe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),JCe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),KCe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),qCe(n))},YCe=class extends fe{config;constructor(...[e]){let t=GCe(e||{});super(t),this.initConfig=t;let n=JCe(Whe(Qe(Me(be(rt(ge(Ghe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:Vhe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},XCe=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ZCe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var QCe=e=>{let t=[];switch(e.operation){default:t.push(ZCe(e))}return t},$Ce=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},ewe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),twe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},nwe={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},x0=`ref`,S0=-1,C0=!0,w0=`isSet`,T0=`PartitionResult`,E0=`booleanEquals`,D0=`getAttr`,O0={[x0]:`Endpoint`},k0={[x0]:T0},A0={},j0=[{[x0]:`Region`}],M0={conditions:[[w0,[O0]],[w0,j0],[`aws.partition`,j0,T0],[E0,[{[x0]:`UseFIPS`},C0]],[E0,[{[x0]:`UseDualStack`},C0]],[E0,[{fn:D0,argv:[k0,`supportsDualStack`]},C0]],[E0,[{fn:D0,argv:[k0,`supportsFIPS`]},C0]],[`stringEquals`,[{fn:D0,argv:[k0,`name`]},`aws-us-gov`]]],results:[[S0],[S0,`Invalid Configuration: FIPS and custom endpoint are not supported`],[S0,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[O0,A0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,A0],[S0,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,A0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,A0],[S0,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,A0],[S0,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,A0],[S0,`Invalid Configuration: Missing Region`]]},rwe=2,iwe=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),awe=nt.from(iwe,rwe,M0.conditions,M0.results),owe=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),swe=(e,t={})=>owe.get(e,()=>at(awe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var j=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},cwe=class e extends j{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lwe=class e extends j{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uwe=class e extends j{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dwe=class e extends j{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fwe=class e extends j{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pwe=class e extends j{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mwe=class e extends j{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hwe=class e extends j{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gwe=class e extends j{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_we=class e extends j{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vwe=class e extends j{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ywe=class e extends j{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bwe=class e extends j{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xwe=class e extends j{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Swe=class e extends j{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Cwe=class e extends j{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wwe=class e extends j{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Twe=class e extends j{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ewe=class e extends j{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Dwe=class e extends j{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Owe=class e extends j{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kwe=class e extends j{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Awe=class e extends j{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jwe=class e extends j{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Mwe=class e extends j{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Nwe=class e extends j{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Pwe=class e extends j{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Fwe=class e extends j{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Iwe=class e extends j{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Lwe=class e extends j{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Rwe=class e extends j{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zwe=class e extends j{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Bwe=class e extends j{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Vwe=class e extends j{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Hwe=class e extends j{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Uwe=class e extends j{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Wwe=class e extends j{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Gwe=class e extends j{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Kwe=class e extends j{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qwe=class e extends j{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Jwe=class e extends j{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ywe=class e extends j{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Xwe=class e extends j{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Zwe=class e extends j{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Qwe=class e extends j{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$we=class e extends j{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eTe=class e extends j{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tTe=class e extends j{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nTe=class e extends j{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rTe=class e extends j{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iTe=class e extends j{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aTe=class e extends j{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oTe=class e extends j{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sTe=class e extends j{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cTe=class e extends j{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lTe=class e extends j{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uTe=`Action`,dTe=`AdditionalClaims`,fTe=`AuthenticateCognitoActionConfig`,pTe=`AuthenticateCognitoConfig`,N0=`AnomalyDetection`,mTe=`AuthorizationEndpoint`,P0=`AllocationId`,hTe=`AllocationIdNotFoundException`,gTe=`ALPNPolicyNotSupportedException`,F0=`AdministrativeOverride`,_Te=`AuthenticateOidcActionConfig`,vTe=`AuthenticateOidcConfig`,I0=`AlpnPolicy`,L0=`AuthenticationRequestExtraParams`,yTe=`AddTags`,bTe=`AddTagsInput`,xTe=`AddTagsOutput`,STe=`AdvertiseTrustStoreCaNames`,R0=`AvailabilityZone`,CTe=`AvailabilityZoneNotSupportedException`,z0=`AvailabilityZones`,B0=`Actions`,V0=`Attributes`,H0=`Certificates`,wTe=`CertificateArn`,TTe=`CaCertificatesBundleNotFoundException`,ETe=`CapacityDecreaseRequestsLimitExceededException`,DTe=`CanonicalHostedZoneId`,OTe=`ClientId`,kTe=`CertificateList`,ATe=`CreateLoadBalancer`,jTe=`CreateLoadBalancerInput`,MTe=`CreateLoadBalancerOutput`,NTe=`CreateListenerInput`,PTe=`CreateListenerOutput`,FTe=`CreateListener`,ITe=`CertificateNotFoundException`,U0=`CustomerOwnedIpv4Pool`,LTe=`CreateRule`,RTe=`CreateRuleInput`,zTe=`CreateRuleOutput`,BTe=`CapacityReservationPendingException`,VTe=`ClientSecret`,HTe=`ContentType`,UTe=`CreateTargetGroup`,WTe=`CreateTargetGroupInput`,GTe=`CreateTargetGroupOutput`,KTe=`CreatedTime`,qTe=`CapacityUnitsLimitExceededException`,JTe=`Certificate`,YTe=`Cipher`,W0=`Ciphers`,XTe=`Code`,G0=`Conditions`,K0=`Description`,q0=`DefaultActions`,ZTe=`DeleteAssociationSameAccountException`,QTe=`DeleteListener`,$Te=`DeleteLoadBalancer`,eEe=`DescribeLoadBalancerAttributes`,tEe=`DescribeLoadBalancerAttributesInput`,nEe=`DescribeLoadBalancerAttributesOutput`,rEe=`DeleteLoadBalancerInput`,iEe=`DescribeLoadBalancersInput`,aEe=`DuplicateLoadBalancerNameException`,oEe=`DeleteLoadBalancerOutput`,sEe=`DescribeLoadBalancersOutput`,cEe=`DescribeLoadBalancers`,lEe=`DuplicateListenerException`,uEe=`DeleteListenerInput`,dEe=`DescribeListenersInput`,fEe=`DeleteListenerOutput`,pEe=`DescribeListenersOutput`,mEe=`DescribeListeners`,hEe=`DNSName`,gEe=`DeleteRule`,_Ee=`DeleteRuleInput`,vEe=`DescribeRulesInput`,yEe=`DeleteRuleOutput`,bEe=`DescribeRulesOutput`,xEe=`DescribeRules`,SEe=`DurationSeconds`,CEe=`DescribeSSLPolicies`,wEe=`DescribeSSLPoliciesInput`,TEe=`DescribeSSLPoliciesOutput`,EEe=`DeregisterTargets`,DEe=`DeleteTargetGroup`,OEe=`DescribeTargetGroupAttributes`,kEe=`DescribeTargetGroupAttributesInput`,AEe=`DescribeTargetGroupAttributesOutput`,jEe=`DeleteTargetGroupInput`,MEe=`DescribeTargetGroupsInput`,NEe=`DuplicateTargetGroupNameException`,PEe=`DeleteTargetGroupOutput`,FEe=`DescribeTargetGroupsOutput`,IEe=`DescribeTargetGroups`,LEe=`DescribeTargetHealth`,REe=`DescribeTargetHealthInput`,zEe=`DescribeTargetHealthOutput`,BEe=`DeregisterTargetsInput`,VEe=`DescribeTagsInput`,HEe=`DuplicateTagKeysException`,UEe=`DeregisterTargetsOutput`,WEe=`DescribeTagsOutput`,GEe=`DuplicateTrustStoreNameException`,KEe=`DescribeTags`,qEe=`Enabled`,J0=`EnablePrefixForIpv6SourceNat`,Y0=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,JEe=`Format`,YEe=`ForwardActionConfig`,XEe=`ForwardConfig`,ZEe=`FixedResponseActionConfig`,QEe=`FixedResponseConfig`,$Ee=`Field`,eDe=`GrpcCode`,tDe=`Host`,nDe=`HttpCode`,X0=`HealthCheckEnabled`,Z0=`HealthCheckIntervalSeconds`,Q0=`HealthCheckProtocol`,$0=`HealthCheckPort`,e2=`HealthCheckPath`,t2=`HealthCheckTimeoutSeconds`,rDe=`HostHeaderConfig`,iDe=`HostHeaderConditionConfig`,aDe=`HttpHeaderConditionConfig`,oDe=`HttpHeaderConfig`,sDe=`HttpHeaderName`,n2=`HostHeaderRewriteConfig`,cDe=`HttpRequestMethodConfig`,lDe=`HttpRequestMethodConditionConfig`,r2=`HealthyThresholdCount`,uDe=`HealthUnavailableException`,i2=`Issuer`,dDe=`IpAddress`,a2=`IpAddressType`,fDe=`InvalidCaCertificatesBundleException`,pDe=`IgnoreClientCertificateExpiry`,mDe=`InsufficientCapacityException`,hDe=`InvalidConfigurationRequestException`,o2=`IsDefault`,gDe=`Ipv4IpamPoolId`,_De=`InvalidLoadBalancerActionException`,s2=`IpamPools`,c2=`IPv6Address`,vDe=`IncompatibleProtocolsException`,yDe=`InvalidRevocationContentException`,bDe=`InvalidSchemeException`,xDe=`InvalidSubnetException`,SDe=`InvalidSecurityGroupException`,CDe=`InvalidTargetException`,wDe=`Id`,TDe=`Include`,EDe=`JwksEndpoint`,DDe=`JwtValidationActionAdditionalClaim`,ODe=`JwtValidationActionAdditionalClaims`,kDe=`JwtValidationActionConfig`,ADe=`JwtValidationConfig`,l2=`Key`,u2=`Listeners`,d2=`ListenerArn`,jDe=`ListenerArns`,f2=`LoadBalancers`,p2=`LoadBalancerAddresses`,m2=`LoadBalancerArn`,h2=`LoadBalancerArns`,MDe=`LoadBalancerAddress`,NDe=`LoadBalancerAttribute`,PDe=`LoadBalancerAttributes`,FDe=`LoadBalancerName`,IDe=`LoadBalancerNotFoundException`,LDe=`LoadBalancerState`,RDe=`LoadBalancerType`,zDe=`LoadBalancer`,BDe=`ListenerNotFoundException`,VDe=`Listener`,M=`Message`,g2=`MutualAuthentication`,HDe=`MutualAuthenticationAttributes`,UDe=`MessageBody`,WDe=`MitigationInEffect`,GDe=`ModifyListener`,KDe=`ModifyLoadBalancerAttributes`,qDe=`ModifyLoadBalancerAttributesInput`,JDe=`ModifyLoadBalancerAttributesOutput`,YDe=`ModifyListenerInput`,XDe=`ModifyListenerOutput`,ZDe=`ModifyRule`,QDe=`ModifyRuleInput`,$De=`ModifyRuleOutput`,eOe=`ModifyTargetGroupAttributes`,tOe=`ModifyTargetGroupAttributesInput`,nOe=`ModifyTargetGroupAttributesOutput`,_2=`Matcher`,v2=`Marker`,rOe=`Mode`,y2=`Name`,b2=`NextMarker`,x2=`Names`,iOe=`Order`,aOe=`OutpostId`,oOe=`OperationNotPermittedException`,S2=`OnUnauthenticatedRequest`,C2=`Priority`,w2=`PrivateIPv4Address`,sOe=`PriorityInUseException`,cOe=`PathPatternConfig`,lOe=`PathPatternConditionConfig`,uOe=`PriorRequestNotCompleteException`,T2=`PageSize`,E2=`ProtocolVersion`,dOe=`Path`,D2=`Port`,O2=`Protocol`,fOe=`Query`,pOe=`QueryStringConfig`,mOe=`QueryStringConditionConfig`,hOe=`QuicServerId`,gOe=`QueryStringKeyValuePair`,_Oe=`QueryStringKeyValuePairList`,k2=`Reason`,A2=`ResourceArns`,vOe=`RedirectActionConfig`,yOe=`ResourceArn`,j2=`RuleArn`,bOe=`RuleArns`,xOe=`RedirectConfig`,SOe=`RewriteConfigList`,COe=`RuleConditionList`,wOe=`RevocationContentNotFoundException`,TOe=`RewriteConfig`,EOe=`RuleCondition`,DOe=`RevocationIdNotFoundException`,OOe=`ResourceInUseException`,kOe=`ResourceNotFoundException`,AOe=`RuleNotFoundException`,jOe=`RegisterTargetsInput`,MOe=`RemoveTagsInput`,NOe=`RuleTransformList`,POe=`RegisterTargetsOutput`,FOe=`RemoveTagsOutput`,IOe=`ResetTransforms`,LOe=`RegisterTargets`,ROe=`RemoveTags`,zOe=`RuleTransform`,M2=`RegexValues`,BOe=`Result`,VOe=`Regex`,HOe=`Replace`,N2=`Rewrites`,P2=`Rules`,UOe=`Rule`,F2=`State`,I2=`StatusCode`,L2=`SessionCookieName`,R2=`SecurityGroups`,WOe=`SecurityGroupIds`,z2=`SubnetId`,GOe=`SourceIpConfig`,KOe=`SourceIpConditionConfig`,qOe=`SupportedLoadBalancerTypes`,B2=`SubnetMappings`,JOe=`SubnetMapping`,YOe=`SubnetNotFoundException`,XOe=`SourceNatIpv6Prefixes`,ZOe=`SourceNatIpv6Prefix`,V2=`SslPolicy`,H2=`SslPolicies`,QOe=`SslProtocols`,$Oe=`SetSubnets`,eke=`SetSecurityGroups`,tke=`SetSecurityGroupsInput`,nke=`SetSecurityGroupsOutput`,rke=`SetSubnetsInput`,ike=`SSLPolicyNotFoundException`,ake=`SetSubnetsOutput`,U2=`SessionTimeout`,W2=`Scope`,G2=`Scheme`,K2=`Subnets`,q2=`Type`,J2=`TargetControlPort`,Y2=`TagDescriptions`,oke=`TagDescription`,ske=`TargetDescription`,cke=`TargetDescriptions`,lke=`TokenEndpoint`,X2=`TargetGroups`,Z2=`TargetGroupArn`,uke=`TargetGroupAssociationLimitException`,dke=`TargetGroupArns`,fke=`TargetGroupAttribute`,pke=`TargetGroupAttributes`,mke=`TargetGroupList`,hke=`TargetGroupName`,gke=`TargetGroupNotFoundException`,Q2=`TargetGroupStickinessConfig`,_ke=`TargetGroupTuple`,vke=`TargetGroup`,$2=`TargetHealth`,e4=`TargetHealthDescriptions`,yke=`TargetHealthDescription`,bke=`TagKeys`,xke=`TagList`,Ske=`TooManyActionsException`,Cke=`TooManyCertificatesException`,wke=`TooManyLoadBalancersException`,Tke=`TooManyListenersException`,Eke=`TooManyRulesException`,Dke=`TooManyRegistrationsForTargetIdException`,Oke=`TooManyTagsException`,kke=`TooManyTargetsException`,Ake=`TooManyTargetGroupsException`,jke=`TooManyTrustStoresException`,Mke=`TooManyTrustStoreRevocationEntriesException`,Nke=`TooManyUniqueTargetGroupsPerLoadBalancerException`,Pke=`TrustStoreArn`,Fke=`TrustStoreAssociationNotFoundException`,Ike=`TrustStoreAssociationStatus`,Lke=`TrustStoreInUseException`,Rke=`TrustStoreNotFoundException`,zke=`TrustStoreNotReadyException`,t4=`TargetType`,n4=`Tags`,Bke=`Tag`,r4=`Targets`,Vke=`Target`,i4=`Transforms`,Hke=`UseExistingClientSecret`,Uke=`UserInfoEndpoint`,Wke=`UserPoolArn`,Gke=`UserPoolClientId`,Kke=`UserPoolDomain`,qke=`UnsupportedProtocolException`,a4=`UrlRewriteConfig`,o4=`UnhealthyThresholdCount`,s4=`Values`,c4=`VpcId`,l4=`Value`,Jke=`Weight`,Yke=`ZoneName`,N=`awsQueryError`,P=`client`,F=`error`,I=`httpError`,u4=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,d4=`server`,L=`com.amazonaws.elasticloadbalancingv2`,f4=dt.for(u4),Xke=[-3,u4,`ElasticLoadBalancingV2ServiceException`,0,[],[]];f4.registerError(Xke,j);var R=dt.for(L),Zke=[-3,L,hTe,{[N]:[`AllocationIdNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Zke,bwe);var Qke=[-3,L,gTe,{[N]:[`ALPNPolicyNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Qke,xwe);var $ke=[-3,L,CTe,{[N]:[`AvailabilityZoneNotSupported`,400],[F]:P,[I]:400},[M],[0]];R.registerError($ke,Swe);var eAe=[-3,L,TTe,{[N]:[`CaCertificatesBundleNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(eAe,Cwe);var tAe=[-3,L,ETe,{[N]:[`CapacityDecreaseRequestLimitExceeded`,400],[F]:P,[I]:400},[M],[0]];R.registerError(tAe,wwe);var nAe=[-3,L,BTe,{[N]:[`CapacityReservationPending`,400],[F]:P,[I]:400},[M],[0]];R.registerError(nAe,Twe);var rAe=[-3,L,qTe,{[N]:[`CapacityUnitsLimitExceeded`,400],[F]:P,[I]:400},[M],[0]];R.registerError(rAe,Ewe);var iAe=[-3,L,ITe,{[N]:[`CertificateNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(iAe,cwe);var aAe=[-3,L,ZTe,{[N]:[`DeleteAssociationSameAccount`,400],[F]:P,[I]:400},[M],[0]];R.registerError(aAe,tTe);var oAe=[-3,L,lEe,{[N]:[`DuplicateListener`,400],[F]:P,[I]:400},[M],[0]];R.registerError(oAe,Dwe);var sAe=[-3,L,aEe,{[N]:[`DuplicateLoadBalancerName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(sAe,Bwe);var cAe=[-3,L,HEe,{[N]:[`DuplicateTagKeys`,400],[F]:P,[I]:400},[M],[0]];R.registerError(cAe,dwe);var lAe=[-3,L,NEe,{[N]:[`DuplicateTargetGroupName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(lAe,Zwe);var uAe=[-3,L,GEe,{[N]:[`DuplicateTrustStoreName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(uAe,Qwe);var dAe=[-3,L,uDe,{[N]:[`HealthUnavailable`,500],[F]:d4,[I]:500},[M],[0]];R.registerError(dAe,aTe);var fAe=[-3,L,vDe,{[N]:[`IncompatibleProtocols`,400],[F]:P,[I]:400},[M],[0]];R.registerError(fAe,Owe);var pAe=[-3,L,mDe,{[N]:[`InsufficientCapacity`,500],[F]:d4,[I]:500},[M],[0]];R.registerError(pAe,cTe);var mAe=[-3,L,fDe,{[N]:[`InvalidCaCertificatesBundle`,400],[F]:P,[I]:400},[M],[0]];R.registerError(mAe,$we);var hAe=[-3,L,hDe,{[N]:[`InvalidConfigurationRequest`,400],[F]:P,[I]:400},[M],[0]];R.registerError(hAe,kwe);var gAe=[-3,L,_De,{[N]:[`InvalidLoadBalancerAction`,400],[F]:P,[I]:400},[M],[0]];R.registerError(gAe,Awe);var _Ae=[-3,L,yDe,{[N]:[`InvalidRevocationContent`,400],[F]:P,[I]:400},[M],[0]];R.registerError(_Ae,_we);var vAe=[-3,L,bDe,{[N]:[`InvalidScheme`,400],[F]:P,[I]:400},[M],[0]];R.registerError(vAe,Vwe);var yAe=[-3,L,SDe,{[N]:[`InvalidSecurityGroup`,400],[F]:P,[I]:400},[M],[0]];R.registerError(yAe,Hwe);var bAe=[-3,L,xDe,{[N]:[`InvalidSubnet`,400],[F]:P,[I]:400},[M],[0]];R.registerError(bAe,Uwe);var xAe=[-3,L,CDe,{[N]:[`InvalidTarget`,400],[F]:P,[I]:400},[M],[0]];R.registerError(xAe,iTe);var SAe=[-3,L,BDe,{[N]:[`ListenerNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(SAe,lwe);var CAe=[-3,L,IDe,{[N]:[`LoadBalancerNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(CAe,fwe);var wAe=[-3,L,oOe,{[N]:[`OperationNotPermitted`,400],[F]:P,[I]:400},[M],[0]];R.registerError(wAe,Wwe);var TAe=[-3,L,sOe,{[N]:[`PriorityInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(TAe,Jwe);var EAe=[-3,L,uOe,{[N]:[`PriorRequestNotComplete`,429],[F]:P,[I]:429},[M],[0]];R.registerError(EAe,lTe);var DAe=[-3,L,OOe,{[N]:[`ResourceInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(DAe,Gwe);var OAe=[-3,L,kOe,{[N]:[`ResourceNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(OAe,sTe);var kAe=[-3,L,wOe,{[N]:[`RevocationContentNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(kAe,vwe);var AAe=[-3,L,DOe,{[N]:[`RevocationIdNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(AAe,oTe);var jAe=[-3,L,AOe,{[N]:[`RuleNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(jAe,pwe);var MAe=[-3,L,ike,{[N]:[`SSLPolicyNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(MAe,jwe);var NAe=[-3,L,YOe,{[N]:[`SubnetNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(NAe,Kwe);var PAe=[-3,L,uke,{[N]:[`TargetGroupAssociationLimit`,400],[F]:P,[I]:400},[M],[0]];R.registerError(PAe,Mwe);var FAe=[-3,L,gke,{[N]:[`TargetGroupNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(FAe,mwe);var IAe=[-3,L,Ske,{[N]:[`TooManyActions`,400],[F]:P,[I]:400},[M],[0]];R.registerError(IAe,Nwe);var LAe=[-3,L,Cke,{[N]:[`TooManyCertificates`,400],[F]:P,[I]:400},[M],[0]];R.registerError(LAe,uwe);var RAe=[-3,L,Tke,{[N]:[`TooManyListeners`,400],[F]:P,[I]:400},[M],[0]];R.registerError(RAe,Pwe);var zAe=[-3,L,wke,{[N]:[`TooManyLoadBalancers`,400],[F]:P,[I]:400},[M],[0]];R.registerError(zAe,qwe);var BAe=[-3,L,Dke,{[N]:[`TooManyRegistrationsForTargetId`,400],[F]:P,[I]:400},[M],[0]];R.registerError(BAe,Fwe);var VAe=[-3,L,Eke,{[N]:[`TooManyRules`,400],[F]:P,[I]:400},[M],[0]];R.registerError(VAe,Ywe);var HAe=[-3,L,Oke,{[N]:[`TooManyTags`,400],[F]:P,[I]:400},[M],[0]];R.registerError(HAe,hwe);var UAe=[-3,L,Ake,{[N]:[`TooManyTargetGroups`,400],[F]:P,[I]:400},[M],[0]];R.registerError(UAe,Xwe);var WAe=[-3,L,kke,{[N]:[`TooManyTargets`,400],[F]:P,[I]:400},[M],[0]];R.registerError(WAe,Iwe);var GAe=[-3,L,Mke,{[N]:[`TooManyTrustStoreRevocationEntries`,400],[F]:P,[I]:400},[M],[0]];R.registerError(GAe,ywe);var KAe=[-3,L,jke,{[N]:[`TooManyTrustStores`,400],[F]:P,[I]:400},[M],[0]];R.registerError(KAe,eTe);var qAe=[-3,L,Nke,{[N]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[F]:P,[I]:400},[M],[0]];R.registerError(qAe,Lwe);var JAe=[-3,L,Fke,{[N]:[`AssociationNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(JAe,nTe);var YAe=[-3,L,Lke,{[N]:[`TrustStoreInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(YAe,rTe);var XAe=[-3,L,Rke,{[N]:[`TrustStoreNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(XAe,gwe);var ZAe=[-3,L,zke,{[N]:[`TrustStoreNotReady`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ZAe,Rwe);var QAe=[-3,L,qke,{[N]:[`UnsupportedProtocol`,400],[F]:P,[I]:400},[M],[0]];R.registerError(QAe,zwe);var $Ae=[f4,R],eje=[3,L,uTe,0,[q2,Z2,vTe,pTe,iOe,xOe,QEe,XEe,ADe],[0,0,()=>oje,()=>aje,1,()=>gMe,()=>Kje,()=>qje,()=>$je],1],tje=[3,L,bTe,0,[A2,n4],[64,()=>O4],2],nje=[3,L,xTe,0,[],[]],rje=[3,L,F0,0,[F2,k2,K0],[0,0,0]],ije=[3,L,N0,0,[BOe,WDe],[0,0]],aje=[3,L,fTe,0,[Wke,Gke,Kke,L2,W2,U2,L0,S2],[0,0,0,0,0,1,128,0],3],oje=[3,L,_Te,0,[i2,mTe,lke,Uke,OTe,VTe,L2,W2,U2,L0,S2,Hke],[0,0,0,0,0,0,0,0,1,128,0,2],5],sje=[3,L,R0,0,[Yke,z2,aOe,p2,XOe],[0,0,0,()=>UMe,64]],cje=[3,L,JTe,0,[wTe,o2],[0,2]],lje=[3,L,YTe,0,[y2,C2],[0,1]],uje=[3,L,NTe,0,[m2,q0,O2,D2,V2,H0,I0,n4,g2],[0,()=>_4,0,1,0,()=>y4,64,()=>O4,()=>h4],2],dje=[3,L,PTe,0,[u2],[()=>b4]],fje=[3,L,jTe,0,[y2,K2,B2,R2,G2,n4,q2,a2,U0,J0,s2],[0,64,()=>D4,64,0,()=>O4,0,0,0,0,()=>p4],1],pje=[3,L,MTe,0,[f2],[()=>S4]],mje=[3,L,RTe,0,[d2,G0,C2,B0,n4,i4],[0,()=>w4,1,()=>_4,()=>O4,()=>E4],4],hje=[3,L,zTe,0,[P2],[()=>T4]],gje=[3,L,WTe,0,[y2,O2,E2,D2,c4,Q0,$0,X0,e2,Z0,t2,r2,o4,_2,t4,n4,a2,J2],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>m4,0,()=>O4,0,1],1],_je=[3,L,GTe,0,[X2],[()=>j4]],vje=[3,L,uEe,0,[d2],[0],1],yje=[3,L,fEe,0,[],[]],bje=[3,L,rEe,0,[m2],[0],1],xje=[3,L,oEe,0,[],[]],Sje=[3,L,_Ee,0,[j2],[0],1],Cje=[3,L,yEe,0,[],[]],wje=[3,L,jEe,0,[Z2],[0],1],Tje=[3,L,PEe,0,[],[]],Eje=[3,L,BEe,0,[Z2,r4],[0,()=>k4],2],Dje=[3,L,UEe,0,[],[]],Oje=[3,L,dEe,0,[m2,jDe,v2,T2],[0,64,0,1]],kje=[3,L,pEe,0,[u2,b2],[()=>b4,0]],Aje=[3,L,tEe,0,[m2],[0],1],jje=[3,L,nEe,0,[V0],[()=>x4]],Mje=[3,L,iEe,0,[h2,x2,v2,T2],[64,64,0,1]],Nje=[3,L,sEe,0,[f2,b2],[()=>S4,0]],Pje=[3,L,vEe,0,[d2,bOe,v2,T2],[0,64,0,1]],Fje=[3,L,bEe,0,[P2,b2],[()=>T4,0]],Ije=[3,L,wEe,0,[x2,v2,T2,RDe],[64,0,1,0]],Lje=[3,L,TEe,0,[H2,b2],[()=>GMe,0]],Rje=[3,L,VEe,0,[A2],[64],1],zje=[3,L,WEe,0,[Y2],[()=>KMe]],Bje=[3,L,kEe,0,[Z2],[0],1],Vje=[3,L,AEe,0,[V0],[()=>A4]],Hje=[3,L,MEe,0,[m2,dke,x2,v2,T2],[0,64,64,0,1]],Uje=[3,L,FEe,0,[X2,b2],[()=>j4,0]],Wje=[3,L,REe,0,[Z2,r4,TDe],[0,()=>k4,64],1],Gje=[3,L,zEe,0,[e4],[()=>JMe]],Kje=[3,L,ZEe,0,[I2,UDe,HTe],[0,0,0],1],qje=[3,L,YEe,0,[X2,Q2],[()=>qMe,()=>IMe]],Jje=[3,L,iDe,0,[s4,M2],[64,64]],Yje=[3,L,n2,0,[N2],[()=>C4]],Xje=[3,L,aDe,0,[sDe,s4,M2],[0,64,64]],Zje=[3,L,lDe,0,[s4],[64]],p4=[3,L,s2,0,[gDe],[0]],Qje=[3,L,DDe,0,[JEe,y2,s4],[0,0,64],3],$je=[3,L,kDe,0,[EDe,i2,dTe],[0,0,()=>HMe],2],eMe=[3,L,VDe,0,[d2,m2,D2,O2,H0,V2,q0,I0,g2],[0,0,1,0,()=>y4,0,()=>_4,64,()=>h4]],tMe=[3,L,zDe,0,[m2,hEe,DTe,KTe,FDe,G2,c4,F2,q2,z0,R2,a2,U0,Y0,J0,s2],[0,0,0,4,0,0,0,()=>iMe,0,()=>v4,64,0,0,0,0,()=>p4]],nMe=[3,L,MDe,0,[dDe,P0,w2,c2],[0,0,0,0]],rMe=[3,L,NDe,0,[l2,l4],[0,0]],iMe=[3,L,LDe,0,[XTe,k2],[0,0]],m4=[3,L,_2,0,[nDe,eDe],[0,0]],aMe=[3,L,YDe,0,[d2,D2,O2,V2,H0,q0,I0,g2],[0,1,0,0,()=>y4,()=>_4,64,()=>h4],1],oMe=[3,L,XDe,0,[u2],[()=>b4]],sMe=[3,L,qDe,0,[m2,V0],[0,()=>x4],2],cMe=[3,L,JDe,0,[V0],[()=>x4]],lMe=[3,L,QDe,0,[j2,G0,B0,i4,IOe],[0,()=>w4,()=>_4,()=>E4,2],1],uMe=[3,L,$De,0,[P2],[()=>T4]],dMe=[3,L,tOe,0,[Z2,V0],[0,()=>A4],2],fMe=[3,L,nOe,0,[V0],[()=>A4]],h4=[3,L,HDe,0,[rOe,Pke,pDe,Ike,STe],[0,0,2,0,0]],pMe=[3,L,lOe,0,[s4,M2],[64,64]],mMe=[3,L,mOe,0,[s4],[()=>WMe]],hMe=[3,L,gOe,0,[l2,l4],[0,0]],gMe=[3,L,vOe,0,[I2,O2,D2,tDe,dOe,fOe],[0,0,0,0,0,0],1],_Me=[3,L,jOe,0,[Z2,r4],[0,()=>k4],2],vMe=[3,L,POe,0,[],[]],yMe=[3,L,MOe,0,[A2,bke],[64,64],2],bMe=[3,L,FOe,0,[],[]],xMe=[3,L,TOe,0,[VOe,HOe],[0,0],2],SMe=[3,L,UOe,0,[j2,C2,G0,B0,o2,i4],[0,0,()=>w4,()=>_4,2,()=>E4]],CMe=[3,L,EOe,0,[$Ee,s4,rDe,cOe,oDe,pOe,cDe,GOe,M2],[0,64,()=>Jje,()=>pMe,()=>Xje,()=>mMe,()=>Zje,()=>kMe,64]],wMe=[3,L,zOe,0,[q2,n2,a4],[0,()=>Yje,()=>BMe],1],TMe=[3,L,tke,0,[m2,R2,Y0],[0,64,0],2],EMe=[3,L,nke,0,[WOe,Y0],[64,0]],DMe=[3,L,rke,0,[m2,K2,B2,a2,J0],[0,64,()=>D4,0,0],1],OMe=[3,L,ake,0,[z0,a2,J0],[()=>v4,0,0]],kMe=[3,L,KOe,0,[s4],[64]],AMe=[3,L,V2,0,[QOe,W0,y2,qOe],[64,()=>VMe,0,64]],jMe=[3,L,JOe,0,[z2,P0,w2,c2,ZOe],[0,0,0,0,0]],MMe=[3,L,Bke,0,[l2,l4],[0,0],1],NMe=[3,L,oke,0,[yOe,n4],[0,()=>O4]],g4=[3,L,ske,0,[wDe,D2,R0,hOe],[0,1,0,0],1],PMe=[3,L,vke,0,[Z2,hke,O2,D2,c4,Q0,$0,X0,Z0,t2,r2,o4,e2,_2,h2,t4,E2,a2,J2],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>m4,64,0,0,0,1]],FMe=[3,L,fke,0,[l2,l4],[0,0]],IMe=[3,L,Q2,0,[qEe,SEe],[2,1]],LMe=[3,L,_ke,0,[Z2,Jke],[0,1]],RMe=[3,L,$2,0,[F2,k2,K0],[0,0,0]],zMe=[3,L,yke,0,[Vke,$0,$2,N0,F0],[()=>g4,0,()=>RMe,()=>ije,()=>rje]],BMe=[3,L,a4,0,[N2],[()=>C4]],_4=[1,L,B0,0,()=>eje],v4=[1,L,z0,0,()=>sje],y4=[1,L,kTe,0,()=>cje],VMe=[1,L,W0,0,()=>lje],HMe=[1,L,ODe,0,()=>Qje],b4=[1,L,u2,0,()=>eMe],UMe=[1,L,p2,0,()=>nMe],x4=[1,L,PDe,0,()=>rMe],S4=[1,L,f2,0,()=>tMe],WMe=[1,L,_Oe,0,()=>hMe],C4=[1,L,SOe,0,()=>xMe],w4=[1,L,COe,0,()=>CMe],T4=[1,L,P2,0,()=>SMe],E4=[1,L,NOe,0,()=>wMe],GMe=[1,L,H2,0,()=>AMe],D4=[1,L,B2,0,()=>jMe],KMe=[1,L,Y2,0,()=>NMe],O4=[1,L,xke,0,()=>MMe],k4=[1,L,cke,0,()=>g4],A4=[1,L,pke,0,()=>FMe],qMe=[1,L,mke,0,()=>LMe],j4=[1,L,X2,0,()=>PMe],JMe=[1,L,e4,0,()=>zMe],YMe=[9,L,yTe,0,()=>tje,()=>nje],XMe=[9,L,FTe,0,()=>uje,()=>dje],ZMe=[9,L,ATe,0,()=>fje,()=>pje],QMe=[9,L,LTe,0,()=>mje,()=>hje],$Me=[9,L,UTe,0,()=>gje,()=>_je],eNe=[9,L,QTe,0,()=>vje,()=>yje],tNe=[9,L,$Te,0,()=>bje,()=>xje],nNe=[9,L,gEe,0,()=>Sje,()=>Cje],rNe=[9,L,DEe,0,()=>wje,()=>Tje],iNe=[9,L,EEe,0,()=>Eje,()=>Dje],aNe=[9,L,mEe,0,()=>Oje,()=>kje],oNe=[9,L,eEe,0,()=>Aje,()=>jje],sNe=[9,L,cEe,0,()=>Mje,()=>Nje],cNe=[9,L,xEe,0,()=>Pje,()=>Fje],lNe=[9,L,CEe,0,()=>Ije,()=>Lje],uNe=[9,L,KEe,0,()=>Rje,()=>zje],dNe=[9,L,OEe,0,()=>Bje,()=>Vje],fNe=[9,L,IEe,0,()=>Hje,()=>Uje],pNe=[9,L,LEe,0,()=>Wje,()=>Gje],mNe=[9,L,GDe,0,()=>aMe,()=>oMe],hNe=[9,L,KDe,0,()=>sMe,()=>cMe],gNe=[9,L,ZDe,0,()=>lMe,()=>uMe],_Ne=[9,L,eOe,0,()=>dMe,()=>fMe],vNe=[9,L,LOe,0,()=>_Me,()=>vMe],yNe=[9,L,ROe,0,()=>yMe,()=>bMe],bNe=[9,L,eke,0,()=>TMe,()=>EMe],xNe=[9,L,$Oe,0,()=>DMe,()=>OMe],SNe=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??swe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??QCe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Fe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:$Ae,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),CNe=e=>{let t=Je(e),n=()=>t().then(ft),r=SNe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:nwe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},wNe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},TNe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ENe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),wNe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),TNe(n))},DNe=class extends fe{config;constructor(...[e]){let t=CNe(e||{});super(t),this.initConfig=t;let n=ENe($Ce(Qe(Me(be(rt(ge(ewe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:XCe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},ONe=async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function kNe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var ANe=e=>{let t=[];switch(e.operation){default:t.push(kNe(e))}return t},jNe=e=>{let t=ct(e);return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},MNe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),NNe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},PNe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},M4=`ref`,N4=`authSchemes`,P4=`name`,F4=`signingRegion`,I4=-1,L4=!0,R4=`isSet`,z4=`PartitionResult`,B4=`booleanEquals`,V4=`stringEquals`,H4=`getAttr`,U4=`sigv4`,W4={[M4]:`Endpoint`},G4={fn:H4,argv:[{[M4]:z4},`name`]},K4={[M4]:z4},q4={[N4]:[{[P4]:U4,[F4]:`us-east-1`}]},J4={[N4]:[{[P4]:U4,[F4]:`cn-north-1`}]},Y4={[N4]:[{[P4]:U4,[F4]:`us-gov-west-1`}]},X4={[N4]:[{[P4]:U4,[F4]:`us-iso-east-1`}]},Z4={[N4]:[{[P4]:U4,[F4]:`us-isob-east-1`}]},Q4={[N4]:[{[P4]:U4,[F4]:`{PartitionResult#implicitGlobalRegion}`}]},$4=[{[M4]:`Region`}],e3={conditions:[[R4,[W4]],[R4,$4],[`aws.partition`,$4,z4],[B4,[{[M4]:`UseFIPS`},L4]],[B4,[{[M4]:`UseDualStack`},L4]],[V4,[G4,`aws`]],[V4,[G4,`aws-cn`]],[V4,[G4,`aws-us-gov`]],[B4,[{fn:H4,argv:[K4,`supportsDualStack`]},L4]],[V4,[G4,`aws-iso`]],[V4,[G4,`aws-iso-b`]],[B4,[{fn:H4,argv:[K4,`supportsFIPS`]},L4]],[V4,[G4,`aws-iso-e`]],[V4,[G4,`aws-iso-f`]],[V4,[G4,`aws-eusc`]]],results:[[I4],[I4,`Invalid Configuration: FIPS and custom endpoint are not supported`],[I4,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[W4,{}],[`https://iam.global.api.aws`,q4],[`https://iam-fips.global.api.aws`,q4],[`https://iam.global.api.amazonwebservices.com.cn`,J4],[`https://iam.cn-north-1.amazonaws.com.cn`,J4],[`https://iam.us-gov.api.aws`,Y4],[`https://iam.us-gov.amazonaws.com`,Y4],[`https://iam.us-iso-east-1.c2s.ic.gov`,X4],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,X4],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,Z4],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,Z4],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[N4]:[{[P4]:U4,[F4]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[N4]:[{[P4]:U4,[F4]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[N4]:[{[P4]:U4,[F4]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,Q4],[I4,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,Q4],[I4,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,Q4],[I4,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,Q4],[I4,`Invalid Configuration: Missing Region`]]},FNe=2,INe=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),LNe=nt.from(INe,FNe,e3.conditions,e3.results),RNe=new Ue({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),zNe=(e,t={})=>RNe.get(e,()=>at(LNe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var z=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},BNe=class e extends z{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VNe=class e extends z{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HNe=class e extends z{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},UNe=class e extends z{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WNe=class e extends z{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GNe=class e extends z{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KNe=class e extends z{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qNe=class e extends z{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JNe=class e extends z{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YNe=class e extends z{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XNe=class e extends z{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZNe=class e extends z{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QNe=class e extends z{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$Ne=class e extends z{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ePe=class e extends z{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tPe=class e extends z{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nPe=class e extends z{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rPe=class e extends z{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iPe=class e extends z{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aPe=class e extends z{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oPe=class e extends z{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sPe=class e extends z{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cPe=class e extends z{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lPe=class e extends z{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uPe=class e extends z{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dPe=class e extends z{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fPe=class e extends z{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pPe=class e extends z{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mPe=class e extends z{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},hPe=class e extends z{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gPe=class e extends z{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_Pe=class e extends z{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vPe=class e extends z{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yPe=class e extends z{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bPe=class e extends z{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},t3=`Arn`,xPe=`AttachmentCount`,SPe=`AttachGroupPolicy`,CPe=`AttachGroupPolicyRequest`,n3=`AccessKey`,r3=`AccessKeyId`,i3=`AccessKeyMetadata`,wPe=`AccountNotManagementOrDelegatedAdministratorException`,TPe=`AttachedPolicy`,EPe=`AttachedPermissionsBoundary`,a3=`AttachedPolicies`,DPe=`AttachRolePolicy`,o3=`AssumeRolePolicyDocument`,OPe=`AttachRolePolicyRequest`,kPe=`AddRoleToInstanceProfile`,APe=`AddRoleToInstanceProfileRequest`,jPe=`AttachUserPolicy`,MPe=`AttachUserPolicyRequest`,NPe=`AddUserToGroup`,PPe=`AddUserToGroupRequest`,FPe=`CreateAccessKey`,IPe=`CreateAccessKeyRequest`,LPe=`CreateAccessKeyResponse`,s3=`CreateDate`,RPe=`CreateGroup`,zPe=`CreateGroupRequest`,BPe=`CreateGroupResponse`,VPe=`CallerIsNotManagementAccountException`,HPe=`CreateInstanceProfile`,UPe=`CreateInstanceProfileRequest`,WPe=`CreateInstanceProfileResponse`,GPe=`ConcurrentModificationException`,KPe=`CreatePolicyRequest`,qPe=`CreatePolicyResponse`,JPe=`CreatePolicy`,YPe=`CreateRole`,XPe=`CredentialReportExpiredException`,ZPe=`CredentialReportNotPresentException`,QPe=`CredentialReportNotReadyException`,$Pe=`CreateRoleRequest`,eFe=`CreateRoleResponse`,tFe=`CreateUser`,nFe=`CreateUserRequest`,rFe=`CreateUserResponse`,c3=`Description`,iFe=`DeleteAccessKey`,aFe=`DeleteAccessKeyRequest`,oFe=`DeleteConflictException`,sFe=`DuplicateCertificateException`,cFe=`DeleteGroup`,lFe=`DeleteGroupPolicy`,uFe=`DeleteGroupPolicyRequest`,dFe=`DetachGroupPolicyRequest`,fFe=`DetachGroupPolicy`,pFe=`DeleteGroupRequest`,mFe=`DeleteInstanceProfile`,hFe=`DeleteInstanceProfileRequest`,gFe=`DeletePolicyRequest`,_Fe=`DeletePolicy`,vFe=`DeleteRolePolicy`,yFe=`DeleteRolePolicyRequest`,bFe=`DetachRolePolicyRequest`,xFe=`DetachRolePolicy`,SFe=`DeleteRoleRequest`,CFe=`DeleteRole`,wFe=`DuplicateSSHPublicKeyException`,TFe=`DeleteUser`,EFe=`DeleteUserPolicy`,DFe=`DeleteUserPolicyRequest`,OFe=`DetachUserPolicyRequest`,kFe=`DetachUserPolicy`,AFe=`DeleteUserRequest`,jFe=`DefaultVersionId`,MFe=`Document`,NFe=`EntityAlreadyExistsException`,PFe=`EntityTemporarilyUnmodifiableException`,FFe=`FeatureDisabledException`,IFe=`FeatureEnabledException`,l3=`Group`,LFe=`GetGroup`,RFe=`GetGroupPolicy`,zFe=`GetGroupPolicyRequest`,BFe=`GetGroupPolicyResponse`,VFe=`GetGroupRequest`,HFe=`GetGroupResponse`,UFe=`GroupId`,WFe=`GetInstanceProfile`,GFe=`GetInstanceProfileRequest`,KFe=`GetInstanceProfileResponse`,u3=`GroupName`,qFe=`GetPolicy`,JFe=`GetPolicyRequest`,YFe=`GetPolicyResponse`,XFe=`GetPolicyVersion`,ZFe=`GetPolicyVersionRequest`,QFe=`GetPolicyVersionResponse`,$Fe=`GetRole`,eIe=`GetRolePolicy`,tIe=`GetRolePolicyRequest`,nIe=`GetRolePolicyResponse`,rIe=`GetRoleRequest`,iIe=`GetRoleResponse`,aIe=`GetUser`,oIe=`GetUserPolicy`,sIe=`GetUserPolicyRequest`,cIe=`GetUserPolicyResponse`,lIe=`GetUserRequest`,uIe=`GetUserResponse`,d3=`Groups`,dIe=`IsAttachable`,fIe=`InvalidAuthenticationCodeException`,pIe=`InvalidCertificateException`,mIe=`IsDefaultVersion`,hIe=`InvalidInputException`,f3=`InstanceProfile`,gIe=`InstanceProfileId`,_Ie=`InvalidPublicKeyException`,p3=`InstanceProfileName`,m3=`InstanceProfiles`,h3=`IsTruncated`,vIe=`InvalidUserTypeException`,yIe=`Key`,bIe=`KeyPairMismatchException`,xIe=`ListAttachedGroupPolicies`,SIe=`ListAttachedGroupPoliciesRequest`,CIe=`ListAttachedGroupPoliciesResponse`,wIe=`ListAccessKeys`,TIe=`ListAccessKeysRequest`,EIe=`ListAccessKeysResponse`,DIe=`ListAttachedRolePolicies`,OIe=`ListAttachedRolePoliciesRequest`,kIe=`ListAttachedRolePoliciesResponse`,AIe=`ListAttachedUserPolicies`,jIe=`ListAttachedUserPoliciesRequest`,MIe=`ListAttachedUserPoliciesResponse`,NIe=`LimitExceededException`,PIe=`ListGroups`,FIe=`ListGroupsForUser`,IIe=`ListGroupsForUserRequest`,LIe=`ListGroupsForUserResponse`,RIe=`ListGroupPolicies`,zIe=`ListGroupPoliciesRequest`,BIe=`ListGroupPoliciesResponse`,VIe=`ListGroupsRequest`,HIe=`ListGroupsResponse`,UIe=`ListInstanceProfiles`,WIe=`ListInstanceProfilesForRole`,GIe=`ListInstanceProfilesForRoleRequest`,KIe=`ListInstanceProfilesForRoleResponse`,qIe=`ListInstanceProfilesRequest`,JIe=`ListInstanceProfilesResponse`,YIe=`ListPoliciesRequest`,XIe=`ListPoliciesResponse`,ZIe=`ListPolicies`,QIe=`ListRoles`,$Ie=`ListRolePolicies`,eLe=`ListRolePoliciesRequest`,tLe=`ListRolePoliciesResponse`,nLe=`ListRolesRequest`,rLe=`ListRolesResponse`,iLe=`ListUsers`,aLe=`LastUsedDate`,oLe=`ListUserPolicies`,sLe=`ListUserPoliciesRequest`,cLe=`ListUserPoliciesResponse`,lLe=`ListUsersRequest`,uLe=`ListUsersResponse`,g3=`Message`,dLe=`MalformedCertificateException`,_3=`MaxItems`,fLe=`MalformedPolicyDocumentException`,v3=`MaxSessionDuration`,B=`Marker`,pLe=`NoSuchEntityException`,mLe=`OnlyAttached`,hLe=`OpenIdIdpCommunicationErrorException`,gLe=`OrganizationNotFoundException`,_Le=`OrganizationNotInAllFeaturesModeException`,y3=`PolicyArn`,b3=`PermissionsBoundary`,vLe=`PermissionsBoundaryArn`,yLe=`PermissionsBoundaryType`,bLe=`PermissionsBoundaryUsageCount`,x3=`PolicyDocument`,xLe=`PolicyEvaluationException`,SLe=`PutGroupPolicy`,CLe=`PutGroupPolicyRequest`,wLe=`PolicyId`,TLe=`PasswordLastUsed`,S3=`PolicyName`,ELe=`PolicyNotAttachableException`,C3=`PolicyNames`,DLe=`PasswordPolicyViolationException`,w3=`PathPrefix`,OLe=`PutRolePolicyRequest`,kLe=`PutRolePolicy`,ALe=`PolicyUsageFilter`,jLe=`PutUserPolicy`,MLe=`PutUserPolicyRequest`,T3=`PolicyVersion`,E3=`Path`,D3=`Policy`,NLe=`Policies`,PLe=`Region`,FLe=`ReportGenerationLimitExceededException`,ILe=`RoleId`,O3=`RoleLastUsed`,k3=`RoleName`,LLe=`RemoveRoleFromInstanceProfile`,RLe=`RemoveRoleFromInstanceProfileRequest`,zLe=`RemoveUserFromGroup`,BLe=`RemoveUserFromGroupRequest`,A3=`Role`,j3=`Roles`,M3=`Status`,VLe=`SecretAccessKey`,HLe=`ServiceAccessNotEnabledException`,ULe=`ServiceFailureException`,WLe=`ServiceNotSupportedException`,GLe=`Scope`,N3=`Tags`,KLe=`Tag`,qLe=`UpdateAccessKey`,JLe=`UpdateAccessKeyRequest`,YLe=`UpdateDate`,XLe=`UnmodifiableEntityException`,ZLe=`UserId`,P3=`UserName`,QLe=`UnrecognizedPublicKeyEncodingException`,F3=`User`,I3=`Users`,L3=`VersionId`,$Le=`Value`,eRe=`accessKeyMetadataListType`,tRe=`accessKeySecretType`,nRe=`attachedPoliciesListType`,V=`awsQueryError`,H=`client`,U=`error`,rRe=`groupListType`,W=`httpError`,iRe=`instanceProfileListType`,G=`message`,aRe=`policyListType`,oRe=`roleListType`,R3=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,z3=`server`,sRe=`tagListType`,cRe=`userListType`,K=`com.amazonaws.iam`,B3=dt.for(R3),lRe=[-3,R3,`IAMServiceException`,0,[],[]];B3.registerError(lRe,z);var q=dt.for(K),uRe=[-3,K,wPe,{[U]:H,[W]:400},[g3],[0]];q.registerError(uRe,UNe);var dRe=[-3,K,VPe,{[U]:H,[W]:400},[g3],[0]];q.registerError(dRe,sPe);var fRe=[-3,K,GPe,{[V]:[`ConcurrentModification`,409],[U]:H,[W]:409},[G],[0]];q.registerError(fRe,BNe);var pRe=[-3,K,XPe,{[V]:[`ReportExpired`,410],[U]:H,[W]:410},[G],[0]];q.registerError(pRe,uPe);var mRe=[-3,K,ZPe,{[V]:[`ReportNotPresent`,410],[U]:H,[W]:410},[G],[0]];q.registerError(mRe,dPe);var hRe=[-3,K,QPe,{[V]:[`ReportInProgress`,404],[U]:H,[W]:404},[G],[0]];q.registerError(hRe,fPe);var gRe=[-3,K,oFe,{[V]:[`DeleteConflict`,409],[U]:H,[W]:409},[G],[0]];q.registerError(gRe,tPe);var _Re=[-3,K,sFe,{[V]:[`DuplicateCertificate`,409],[U]:H,[W]:409},[G],[0]];q.registerError(_Re,_Pe);var vRe=[-3,K,wFe,{[V]:[`DuplicateSSHPublicKey`,400],[U]:H,[W]:400},[G],[0]];q.registerError(vRe,yPe);var yRe=[-3,K,NFe,{[V]:[`EntityAlreadyExists`,409],[U]:H,[W]:409},[G],[0]];q.registerError(yRe,KNe);var bRe=[-3,K,PFe,{[V]:[`EntityTemporarilyUnmodifiable`,409],[U]:H,[W]:409},[G],[0]];q.registerError(bRe,YNe);var xRe=[-3,K,FFe,{[V]:[`FeatureDisabled`,404],[U]:H,[W]:404},[G],[0]];q.registerError(xRe,aPe);var SRe=[-3,K,IFe,{[V]:[`FeatureEnabled`,409],[U]:H,[W]:409},[G],[0]];q.registerError(SRe,cPe);var CRe=[-3,K,fIe,{[V]:[`InvalidAuthenticationCode`,403],[U]:H,[W]:403},[G],[0]];q.registerError(CRe,oPe);var wRe=[-3,K,pIe,{[V]:[`InvalidCertificate`,400],[U]:H,[W]:400},[G],[0]];q.registerError(wRe,vPe);var TRe=[-3,K,hIe,{[V]:[`InvalidInput`,400],[U]:H,[W]:400},[G],[0]];q.registerError(TRe,WNe);var ERe=[-3,K,_Ie,{[V]:[`InvalidPublicKey`,400],[U]:H,[W]:400},[G],[0]];q.registerError(ERe,bPe);var DRe=[-3,K,vIe,{[V]:[`InvalidUserType`,400],[U]:H,[W]:400},[G],[0]];q.registerError(DRe,XNe);var ORe=[-3,K,bIe,{[V]:[`KeyPairMismatch`,400],[U]:H,[W]:400},[G],[0]];q.registerError(ORe,hPe);var kRe=[-3,K,NIe,{[V]:[`LimitExceeded`,409],[U]:H,[W]:409},[G],[0]];q.registerError(kRe,GNe);var ARe=[-3,K,dLe,{[V]:[`MalformedCertificate`,400],[U]:H,[W]:400},[G],[0]];q.registerError(ARe,gPe);var jRe=[-3,K,fLe,{[V]:[`MalformedPolicyDocument`,400],[U]:H,[W]:400},[G],[0]];q.registerError(jRe,$Ne);var MRe=[-3,K,pLe,{[V]:[`NoSuchEntity`,404],[U]:H,[W]:404},[G],[0]];q.registerError(MRe,VNe);var NRe=[-3,K,hLe,{[V]:[`OpenIdIdpCommunicationError`,400],[U]:H,[W]:400},[G],[0]];q.registerError(NRe,QNe);var PRe=[-3,K,gLe,{[U]:H,[W]:400},[g3],[0]];q.registerError(PRe,nPe);var FRe=[-3,K,_Le,{[U]:H,[W]:400},[g3],[0]];q.registerError(FRe,rPe);var IRe=[-3,K,DLe,{[V]:[`PasswordPolicyViolation`,400],[U]:H,[W]:400},[G],[0]];q.registerError(IRe,ZNe);var LRe=[-3,K,xLe,{[V]:[`PolicyEvaluation`,500],[U]:z3,[W]:500},[G],[0]];q.registerError(LRe,mPe);var RRe=[-3,K,ELe,{[V]:[`PolicyNotAttachable`,400],[U]:H,[W]:400},[G],[0]];q.registerError(RRe,JNe);var zRe=[-3,K,FLe,{[V]:[`ReportGenerationLimitExceeded`,409],[U]:H,[W]:409},[G],[0]];q.registerError(zRe,lPe);var BRe=[-3,K,HLe,{[U]:H,[W]:400},[g3],[0]];q.registerError(BRe,iPe);var VRe=[-3,K,ULe,{[V]:[`ServiceFailure`,500],[U]:z3,[W]:500},[G],[0]];q.registerError(VRe,HNe);var HRe=[-3,K,WLe,{[V]:[`NotSupportedService`,404],[U]:H,[W]:404},[G],[0]];q.registerError(HRe,ePe);var URe=[-3,K,XLe,{[V]:[`UnmodifiableEntity`,400],[U]:H,[W]:400},[G],[0]];q.registerError(URe,qNe);var WRe=[-3,K,QLe,{[V]:[`UnrecognizedPublicKeyEncoding`,400],[U]:H,[W]:400},[G],[0]];q.registerError(WRe,pPe);var GRe=[B3,q],KRe=[0,K,tRe,8,0],qRe=[3,K,n3,0,[P3,r3,M3,VLe,s3],[0,0,0,[()=>KRe,0],4],4],JRe=[3,K,i3,0,[P3,r3,M3,s3],[0,0,0,4]],YRe=[3,K,APe,0,[p3,k3],[0,0],2],XRe=[3,K,PPe,0,[u3,P3],[0,0],2],V3=[3,K,EPe,0,[yLe,vLe],[0,0]],ZRe=[3,K,TPe,0,[S3,y3],[0,0]],QRe=[3,K,CPe,0,[u3,y3],[0,0],2],$Re=[3,K,OPe,0,[k3,y3],[0,0],2],eze=[3,K,MPe,0,[P3,y3],[0,0],2],tze=[3,K,IPe,0,[P3],[0]],nze=[3,K,LPe,0,[n3],[[()=>qRe,0]],1],rze=[3,K,zPe,0,[u3,E3],[0,0],1],ize=[3,K,BPe,0,[l3],[()=>H3],1],aze=[3,K,UPe,0,[p3,E3,N3],[0,0,()=>Q3],1],oze=[3,K,WPe,0,[f3],[()=>U3],1],sze=[3,K,KPe,0,[S3,x3,E3,c3,N3],[0,0,0,0,()=>Q3],2],cze=[3,K,qPe,0,[D3],[()=>W3]],lze=[3,K,$Pe,0,[k3,o3,E3,c3,v3,b3,N3],[0,0,0,0,1,0,()=>Q3],2],uze=[3,K,eFe,0,[A3],[()=>G3],1],dze=[3,K,nFe,0,[P3,E3,b3,N3],[0,0,0,()=>Q3],1],fze=[3,K,rFe,0,[F3],[()=>K3]],pze=[3,K,aFe,0,[r3,P3],[0,0],1],mze=[3,K,uFe,0,[u3,S3],[0,0],2],hze=[3,K,pFe,0,[u3],[0],1],gze=[3,K,hFe,0,[p3],[0],1],_ze=[3,K,gFe,0,[y3],[0],1],vze=[3,K,yFe,0,[k3,S3],[0,0],2],yze=[3,K,SFe,0,[k3],[0],1],bze=[3,K,DFe,0,[P3,S3],[0,0],2],xze=[3,K,AFe,0,[P3],[0],1],Sze=[3,K,dFe,0,[u3,y3],[0,0],2],Cze=[3,K,bFe,0,[k3,y3],[0,0],2],wze=[3,K,OFe,0,[P3,y3],[0,0],2],Tze=[3,K,zFe,0,[u3,S3],[0,0],2],Eze=[3,K,BFe,0,[u3,S3,x3],[0,0,0],3],Dze=[3,K,VFe,0,[u3,B,_3],[0,0,1],1],Oze=[3,K,HFe,0,[l3,I3,h3,B],[()=>H3,()=>$3,2,0],2],kze=[3,K,GFe,0,[p3],[0],1],Aze=[3,K,KFe,0,[f3],[()=>U3],1],jze=[3,K,JFe,0,[y3],[0],1],Mze=[3,K,YFe,0,[D3],[()=>W3]],Nze=[3,K,ZFe,0,[y3,L3],[0,0],2],Pze=[3,K,QFe,0,[T3],[()=>_Be]],Fze=[3,K,tIe,0,[k3,S3],[0,0],2],Ize=[3,K,nIe,0,[k3,S3,x3],[0,0,0],3],Lze=[3,K,rIe,0,[k3],[0],1],Rze=[3,K,iIe,0,[A3],[()=>G3],1],zze=[3,K,sIe,0,[P3,S3],[0,0],2],Bze=[3,K,cIe,0,[P3,S3,x3],[0,0,0],3],Vze=[3,K,lIe,0,[P3],[0]],Hze=[3,K,uIe,0,[F3],[()=>K3],1],H3=[3,K,l3,0,[E3,u3,UFe,t3,s3],[0,0,0,0,4],5],U3=[3,K,f3,0,[E3,p3,gIe,t3,s3,j3,N3],[0,0,0,0,4,()=>Z3,()=>Q3],6],Uze=[3,K,TIe,0,[P3,B,_3],[0,0,1]],Wze=[3,K,EIe,0,[i3,h3,B],[()=>EBe,2,0],1],Gze=[3,K,SIe,0,[u3,w3,B,_3],[0,0,0,1],1],Kze=[3,K,CIe,0,[a3,h3,B],[()=>J3,2,0]],qze=[3,K,OIe,0,[k3,w3,B,_3],[0,0,0,1],1],Jze=[3,K,kIe,0,[a3,h3,B],[()=>J3,2,0]],Yze=[3,K,jIe,0,[P3,w3,B,_3],[0,0,0,1],1],Xze=[3,K,MIe,0,[a3,h3,B],[()=>J3,2,0]],Zze=[3,K,zIe,0,[u3,B,_3],[0,0,1],1],Qze=[3,K,BIe,0,[C3,h3,B],[64,2,0],1],$ze=[3,K,IIe,0,[P3,B,_3],[0,0,1],1],eBe=[3,K,LIe,0,[d3,h3,B],[()=>Y3,2,0],1],tBe=[3,K,VIe,0,[w3,B,_3],[0,0,1]],nBe=[3,K,HIe,0,[d3,h3,B],[()=>Y3,2,0],1],rBe=[3,K,GIe,0,[k3,B,_3],[0,0,1],1],iBe=[3,K,KIe,0,[m3,h3,B],[()=>X3,2,0],1],aBe=[3,K,qIe,0,[w3,B,_3],[0,0,1]],oBe=[3,K,JIe,0,[m3,h3,B],[()=>X3,2,0],1],sBe=[3,K,YIe,0,[GLe,mLe,w3,ALe,B,_3],[0,2,0,0,0,1]],cBe=[3,K,XIe,0,[NLe,h3,B],[()=>DBe,2,0]],lBe=[3,K,eLe,0,[k3,B,_3],[0,0,1],1],uBe=[3,K,tLe,0,[C3,h3,B],[64,2,0],1],dBe=[3,K,nLe,0,[w3,B,_3],[0,0,1]],fBe=[3,K,rLe,0,[j3,h3,B],[()=>Z3,2,0],1],pBe=[3,K,sLe,0,[P3,B,_3],[0,0,1],1],mBe=[3,K,cLe,0,[C3,h3,B],[64,2,0],1],hBe=[3,K,lLe,0,[w3,B,_3],[0,0,1]],gBe=[3,K,uLe,0,[I3,h3,B],[()=>$3,2,0],1],W3=[3,K,D3,0,[S3,wLe,t3,E3,jFe,xPe,bLe,dIe,c3,s3,YLe,N3],[0,0,0,0,0,1,1,2,0,4,4,()=>Q3]],_Be=[3,K,T3,0,[MFe,L3,mIe,s3],[0,0,2,4]],vBe=[3,K,CLe,0,[u3,S3,x3],[0,0,0],3],yBe=[3,K,OLe,0,[k3,S3,x3],[0,0,0],3],bBe=[3,K,MLe,0,[P3,S3,x3],[0,0,0],3],xBe=[3,K,RLe,0,[p3,k3],[0,0],2],SBe=[3,K,BLe,0,[u3,P3],[0,0],2],G3=[3,K,A3,0,[E3,k3,ILe,t3,s3,o3,c3,v3,b3,N3,O3],[0,0,0,0,4,0,0,1,()=>V3,()=>Q3,()=>CBe],5],CBe=[3,K,O3,0,[aLe,PLe],[4,0]],wBe=[3,K,KLe,0,[yIe,$Le],[0,0],2],TBe=[3,K,JLe,0,[r3,M3,P3],[0,0,0],2],K3=[3,K,F3,0,[E3,P3,ZLe,t3,s3,TLe,b3,N3],[0,0,0,0,4,4,()=>V3,()=>Q3],5],q3=`unit`,EBe=[1,K,eRe,0,()=>JRe],J3=[1,K,nRe,0,()=>ZRe],Y3=[1,K,rRe,0,()=>H3],X3=[1,K,iRe,0,()=>U3],DBe=[1,K,aRe,0,()=>W3],Z3=[1,K,oRe,0,()=>G3],Q3=[1,K,sRe,0,()=>wBe],$3=[1,K,cRe,0,()=>K3],OBe=[9,K,kPe,0,()=>YRe,()=>q3],kBe=[9,K,NPe,0,()=>XRe,()=>q3],ABe=[9,K,SPe,0,()=>QRe,()=>q3],jBe=[9,K,DPe,0,()=>$Re,()=>q3],MBe=[9,K,jPe,0,()=>eze,()=>q3],NBe=[9,K,FPe,0,()=>tze,()=>nze],PBe=[9,K,RPe,0,()=>rze,()=>ize],FBe=[9,K,HPe,0,()=>aze,()=>oze],IBe=[9,K,JPe,0,()=>sze,()=>cze],LBe=[9,K,YPe,0,()=>lze,()=>uze],RBe=[9,K,tFe,0,()=>dze,()=>fze],zBe=[9,K,iFe,0,()=>pze,()=>q3],BBe=[9,K,cFe,0,()=>hze,()=>q3],VBe=[9,K,lFe,0,()=>mze,()=>q3],HBe=[9,K,mFe,0,()=>gze,()=>q3],UBe=[9,K,_Fe,0,()=>_ze,()=>q3],WBe=[9,K,CFe,0,()=>yze,()=>q3],GBe=[9,K,vFe,0,()=>vze,()=>q3],KBe=[9,K,TFe,0,()=>xze,()=>q3],qBe=[9,K,EFe,0,()=>bze,()=>q3],JBe=[9,K,fFe,0,()=>Sze,()=>q3],YBe=[9,K,xFe,0,()=>Cze,()=>q3],XBe=[9,K,kFe,0,()=>wze,()=>q3],ZBe=[9,K,LFe,0,()=>Dze,()=>Oze],QBe=[9,K,RFe,0,()=>Tze,()=>Eze],$Be=[9,K,WFe,0,()=>kze,()=>Aze],eVe=[9,K,qFe,0,()=>jze,()=>Mze],tVe=[9,K,XFe,0,()=>Nze,()=>Pze],nVe=[9,K,$Fe,0,()=>Lze,()=>Rze],rVe=[9,K,eIe,0,()=>Fze,()=>Ize],iVe=[9,K,aIe,0,()=>Vze,()=>Hze],aVe=[9,K,oIe,0,()=>zze,()=>Bze],oVe=[9,K,wIe,0,()=>Uze,()=>Wze],sVe=[9,K,xIe,0,()=>Gze,()=>Kze],cVe=[9,K,DIe,0,()=>qze,()=>Jze],lVe=[9,K,AIe,0,()=>Yze,()=>Xze],uVe=[9,K,RIe,0,()=>Zze,()=>Qze],dVe=[9,K,PIe,0,()=>tBe,()=>nBe],fVe=[9,K,FIe,0,()=>$ze,()=>eBe],pVe=[9,K,UIe,0,()=>aBe,()=>oBe],mVe=[9,K,WIe,0,()=>rBe,()=>iBe],hVe=[9,K,ZIe,0,()=>sBe,()=>cBe],gVe=[9,K,$Ie,0,()=>lBe,()=>uBe],_Ve=[9,K,QIe,0,()=>dBe,()=>fBe],vVe=[9,K,oLe,0,()=>pBe,()=>mBe],yVe=[9,K,iLe,0,()=>hBe,()=>gBe],bVe=[9,K,SLe,0,()=>vBe,()=>q3],xVe=[9,K,kLe,0,()=>yBe,()=>q3],SVe=[9,K,jLe,0,()=>bBe,()=>q3],CVe=[9,K,LLe,0,()=>xBe,()=>q3],wVe=[9,K,zLe,0,()=>SBe,()=>q3],TVe=[9,K,qLe,0,()=>TBe,()=>q3],EVe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??zNe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ANe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we}],logger:e?.logger??new Ge,protocol:e?.protocol??Fe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:GRe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,sha256:e?.sha256??We,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),DVe=e=>{let t=Je(e),n=()=>t().then(ft),r=EVe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:PNe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},OVe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},kVe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),AVe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),OVe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),kVe(n))},jVe=class extends fe{config;constructor(...[e]){let t=DVe(e||{});super(t),this.initConfig=t;let n=AVe(jNe(Qe(Me(be(rt(ge(MNe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:ONe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(De(this.config))}destroy(){super.destroy()}},e6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},MVe=e6.WHEN_SUPPORTED,t6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},NVe=e6.WHEN_SUPPORTED,n6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(n6||={});var PVe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(PVe||={});var r6=n6.CRC32,FVe=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===e6.WHEN_SUPPORTED||t?r6:void 0;if(e[n])return e[n]},i6=e=>e===n6.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,IVe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},LVe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},a6=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!cee(e),o6=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let e=0;e<8;++e)t=t&1?2197175160^t>>>1:t>>>1;o6[e]=t>>>0}var RVe=class{digestLength=4;crc=4294967295;update(e){let t=this.crc;for(let n=0;n>>8^o6[(t^e[n])&255];this.crc=t}async digest(){let e=(this.crc^4294967295)>>>0,t=new Uint8Array(4);return t[0]=e>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t}reset(){this.crc=4294967295}},zVe=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},s6,c6,l6,u6,d6,f6,p6,m6,h6,BVe=()=>{s6||(s6=zVe(),[c6,l6,u6,d6,f6,p6,m6,h6]=s6)},VVe=class{c1=0;c2=0;constructor(){BVe(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,ee=((r>>>16^e[n++])&255)<<1,te=((r>>>24^e[n++])&255)<<1;r=h6[t]^m6[a]^p6[o]^f6[s]^d6[c]^u6[l]^l6[ee]^c6[te],i=h6[t+1]^m6[a+1]^p6[o+1]^f6[s+1]^d6[c+1]^u6[l+1]^l6[ee+1]^c6[te+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^c6[t],i^=c6[t+1],++n}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},HVe=[n6.CRC32,n6.CRC32C,n6.CRC64NVME,n6.SHA1,n6.SHA256],g6=[n6.SHA256,n6.SHA1,n6.CRC32,n6.CRC32C,n6.CRC64NVME],_6=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case n6.MD5:return n?.MD5??t.md5;case n6.CRC32:return n?.CRC32??pee;case n6.CRC32C:return n?.CRC32C??RVe;case n6.CRC64NVME:return n?.CRC64NVME??VVe;case n6.SHA1:return n?.SHA1??t.sha1;case n6.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${HVe}, or provide an implementation to the client constructor checksums field.`)}},v6=(e,t)=>{let n=new e;return n.update(bt(t||``)),n.digest()},UVe={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},WVe=(e,t)=>(n,r)=>async i=>{if(!xe.isInstance(i.request)||LVe(`x-amz-checksum-`,i.request.headers))return n(i);let{request:a,input:o}=i,{body:s,headers:c}=a,{base64Encoder:l,streamHasher:ee}=e,{requestChecksumRequired:te,requestAlgorithmMember:ne}=t,re=await e.requestChecksumCalculation(),ie=ne?.name,ae=ne?.httpHeader;ie&&!o[ie]&&(re===e6.WHEN_SUPPORTED||te)&&(o[ie]=r6,ae&&(c[ae]=r6));let u=FVe(o,{requestChecksumRequired:te,requestAlgorithmMember:ne?.name,requestChecksumCalculation:re}),oe=s,se=c;if(u){switch(u){case n6.CRC32:me(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case n6.CRC32C:me(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case n6.CRC64NVME:me(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case n6.SHA1:me(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case n6.SHA256:me(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=i6(u),n=_6(u,e);if(a6(s)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;oe=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?uee(s,e.requestStreamBufferSize,r.logger):s,{base64Encoder:l,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:ee}),se={...c,"content-encoding":c[`content-encoding`]?`${c[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":c[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete se[`content-length`]}else if(!IVe(t,c)){let e=await v6(n,s);se={...c,[t]:l(e)}}}try{return await n({...i,request:{...a,headers:se,body:oe}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},GVe={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},KVe=(e,t)=>(n,r)=>async i=>{let a=i.input,{requestValidationModeMember:o}=t,s=await e.requestChecksumCalculation(),c=await e.responseChecksumValidation();switch(s){case e6.WHEN_REQUIRED:me(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case e6.WHEN_SUPPORTED:me(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(c){case t6.WHEN_REQUIRED:me(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case t6.WHEN_SUPPORTED:me(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return o&&!a[o]&&c===t6.WHEN_SUPPORTED&&(a[o]=`ENABLED`),n(i)},y6=(e=[])=>{let t=[],n=g6.length;for(let r of e){let e=g6.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},qVe=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},JVe=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await v6(t,e)),YVe=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=y6(n),{body:a,headers:o}=e;for(let n of i){let i=i6(n),s=o[i];if(s){let o;try{o=_6(n,t)}catch(e){if(n===n6.CRC64NVME){r?.warn(`Skipping ${n6.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(a6(a)){e.body=oee({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await JVe(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},XVe={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},ZVe=(e,t)=>(n,r)=>async i=>{if(!xe.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=i6(e);return s.headers[t]!==void 0}),a=y6([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=i6(e),n=s.headers[t];return!n||qVe(n)}))return o;await YVe(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},b6=(e,t)=>({applyToStack:n=>{n.add(WVe(e,t),UVe),n.addRelativeTo(KVe(e,t),GVe),n.addRelativeTo(ZVe(e,t),XVe)}}),QVe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:u(t??MVe),responseChecksumValidation:u(n??NVe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},$Ve=`content-length`,eHe=`x-amz-decoded-content-length`;function tHe(){return(e,t)=>async n=>{let{request:r}=n;if(xe.isInstance(r)&&!($Ve in r.headers)&&!(eHe in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof Ge)?t.logger.warn(e):console.warn(e)}return e({...n})}}var nHe={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},rHe=e=>({applyToStack:e=>{e.add(tHe(),nHe)}}),iHe=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},aHe={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function oHe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var sHe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},cHe=e=>({applyToStack:t=>{t.add(oHe(e),sHe),t.addRelativeTo(iHe(e),aHe)}}),lHe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new x6(Promise.resolve(e)))})),t)):i.set(r,new x6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},dHe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new uHe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},fHe=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(Ye.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{gt(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},pHe={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},mHe=e=>({applyToStack:t=>{t.addRelativeTo(fHe(e),pHe)}}),hHe=`sigv4-s3express`,gHe=`x-amz-s3session-token`,_He=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===hHe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(me(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,xe.isInstance(r.request)&&i.sessionToken&&(r.request.headers[gHe]=i.sessionToken)}}}return t(r)},vHe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},yHe=e=>({applyToStack:t=>{t.add(_He(e),vHe)}}),bHe=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},xHe=e=>e=>{throw e},SHe=(e,t)=>{},CHe=e=>(t,n)=>async r=>{if(!xe.isInstance(r.request))return t(r);let i=Ce(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await bHe(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||xHe)(a));return(s.successHandler||SHe)(l.response,a),l},wHe=e=>({applyToStack:t=>{t.addRelativeTo(CHe(e),ree)}});function THe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var EHe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},DHe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Ye.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await OHe(s,e);if(a.body=THe(c),c.length===0&&EHe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},OHe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),kHe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},S6=e=>({applyToStack:t=>{t.addRelativeTo(DHe(e),kHe)}});function AHe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var jHe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function MHe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!_j(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var NHe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},PHe=e=>({applyToStack:t=>{t.add(MHe(e),NHe),t.addRelativeTo(AHe(e),jHe)}}),FHe=class extends Wee{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ke.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function IHe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&xe.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var LHe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},RHe=e=>({applyToStack:t=>{t.add(IHe(e),LHe)}});function zHe(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var BHe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},VHe=e=>({applyToStack:t=>{t.add(zHe(e),BHe)}});function HHe(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?WHe(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var UHe={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},C6=e=>({applyToStack:t=>{t.add(HHe(e),UHe)}});function WHe(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var w6=`ref`,J=`argv`,T6=`backend`,E6=`authSchemes`,D6=`disableDoubleEncoding`,O6=`signingName`,k6=`signingRegion`,A6=`signingRegionSet`,Y=-1,X=!0,j6=!1,M6=`isSet`,N6=`booleanEquals`,Z=`stringEquals`,P6=`coalesce`,F6=`substring`,I6=``,L6=`aws.partition`,R6=`partitionResult`,z6=`accessPointSuffix`,B6=`regionPrefix`,V6=e=>`outpostId_ssa_`+e+I6,H6=`hardwareType`,U6=`ite`,W6=`isValidHostLabel`,G6=`sigv4`,K6=`aws.isVirtualHostableS3Bucket`,q6=`url`,J6=`getAttr`,Y6=`bucketArn`,X6=`--`,Z6=`arnType`,Q6=`accesspoint`,$6=e=>`accessPointName_ssa_`+e+I6,e8=`s3-object-lambda`,t8=`s3-outposts`,n8=`bucketPartition`,r8=`us-east-1`,i8=`outpostType`,a8=`name`,o8=`s3`,s8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,c8=`{url#scheme}://{url#authority}{url#path}`,l8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,u8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,d8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,f8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,p8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",m8=`sigv4a`,h8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,g8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,_8=`https://s3.{partitionResult#dnsSuffix}`,v8={[w6]:`UseFIPS`},y8={[w6]:`UseDualStack`},b8={[w6]:`Bucket`},x8={fn:J6,[J]:[{[w6]:R6},a8]},S8={[w6]:q6},C8={[w6]:`Region`},w8={[w6]:Y6},T8={[w6]:Z6},E8={[w6]:`accessPointName_ssa_1`},D8={fn:J6,[J]:[w8,`region`]},O8={[w6]:H6},k8={fn:J6,[J]:[w8,`service`]},A8={fn:J6,[J]:[w8,`accountId`]},j8={[T6]:`S3Express`,[E6]:[{[D6]:!0,[a8]:`{_s3e_auth}`,[O6]:`s3express`,[k6]:`{Region}`}]},M8={[T6]:`S3Express`,[E6]:[{[D6]:!0,[a8]:G6,[O6]:`s3express`,[k6]:`{Region}`}]},N8={[E6]:[{[D6]:!0,[a8]:m8,[O6]:t8,[A6]:[`*`]},{[D6]:!0,[a8]:G6,[O6]:t8,[k6]:`{Region}`}]},P8={[E6]:[{[D6]:!0,[a8]:G6,[O6]:o8,[k6]:r8}]},F8={[E6]:[{[D6]:!0,[a8]:G6,[O6]:o8,[k6]:`{Region}`}]},I8={[E6]:[{[D6]:!0,[a8]:G6,[O6]:e8,[k6]:`{bucketArn#region}`}]},L8={[E6]:[{[D6]:!0,[a8]:G6,[O6]:o8,[k6]:`{bucketArn#region}`}]},R8={[E6]:[{[D6]:!0,[a8]:m8,[O6]:t8,[A6]:[`*`]},{[D6]:!0,[a8]:G6,[O6]:t8,[k6]:`{bucketArn#region}`}]},z8={[E6]:[{[D6]:!0,[a8]:G6,[O6]:e8,[k6]:`{Region}`}]},B8=[C8],V8=[{[w6]:`Endpoint`}],H8=[b8],U8=[b8,0,7,!0],W8=[w8,`resourceId[1]`],GHe=[`*`],G8={conditions:[[M6,B8],[N6,[{[w6]:`Accelerate`},X]],[N6,[v8,X]],[N6,[y8,X]],[M6,V8],[M6,H8],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,0,6,X]},I6]},`--x-s3`]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:U8},I6]},`--xa-s3`]],[L6,B8,R6],[F6,U8,z6],[Z,[{[w6]:z6},`--op-s3`]],[F6,[b8,8,12,X],B6],[F6,[b8,32,49,X],V6(2)],[F6,[b8,49,50,X],H6],[N6,[{[w6]:`ForcePathStyle`},X]],[Z,[x8,`aws-cn`]],[U6,[y8,`.dualstack`,I6],`_s3e_ds`],[W6,[{[w6]:V6(2)},j6]],[U6,[v8,`-fips`,I6],`_s3e_fips`],[U6,[{fn:P6,[J]:[{[w6]:`DisableS3ExpressSessionAuth`},j6]},G6,`sigv4-s3express`],`_s3e_auth`],[K6,[b8,j6]],[`parseURL`,V8,q6],[N6,[{fn:P6,[J]:[{[w6]:`UseS3ExpressControlEndpoint`},j6]},X]],[K6,[b8,X]],[Z,[{fn:J6,[J]:[S8,`scheme`]},`http`]],[W6,[C8,j6]],[`aws.parseArn`,H8,Y6],[J6,[{fn:`split`,[J]:[b8,X6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,0,4,j6]},I6]},`arn:`]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,16,18,X]},I6]},X6]],[N6,[{fn:J6,[J]:[S8,`isIp`]},X]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,21,23,X]},I6]},X6]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,27,29,X]},I6]},X6]],[Z,[{[w6]:B6},`beta`]],[`uriEncode`,H8,`uri_encoded_bucket`],[W6,[C8,X]],[N6,[{fn:P6,[J]:[{[w6]:`UseObjectLambdaEndpoint`},j6]},X]],[J6,[w8,`resourceId[0]`],Z6],[Z,[T8,I6]],[Z,[T8,Q6]],[J6,W8,$6(1)],[Z,[E8,I6]],[Z,[D8,I6]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,14,16,X]},I6]},X6]],[Z,[O8,`e`]],[Z,[O8,`o`]],[Z,[C8,`aws-global`]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,19,21,X]},I6]},X6]],[Z,[k8,e8]],[N6,[{fn:P6,[J]:[{[w6]:`DisableAccessPoints`},j6]},X]],[Z,[k8,t8]],[L6,[D8],n8],[W6,[E8,X]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,26,28,X]},I6]},X6]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,15,17,X]},I6]},X6]],[J6,[w8,`resourceId[4]`]],[Z,[{fn:P6,[J]:[{fn:F6,[J]:[b8,20,22,X]},I6]},X6]],[N6,[{[w6]:`UseGlobalEndpoint`},X]],[Z,[C8,r8]],[J6,W8,V6(1)],[N6,[{fn:P6,[J]:[{[w6]:`UseArnRegion`},X]},X]],[W6,[{[w6]:V6(1)},j6]],[J6,[w8,`resourceId[2]`],i8],[Z,[C8,D8]],[Z,[{fn:J6,[J]:[{[w6]:n8},a8]},x8]],[N6,[{[w6]:`DisableMultiRegionAccessPoints`},X]],[W6,[D8,X]],[Z,[{fn:J6,[J]:[w8,`partition`]},x8]],[Z,[A8,I6]],[Z,[k8,o8]],[W6,[A8,j6]],[J6,[w8,`resourceId[3]`],$6(2)],[W6,[E8,j6]],[Z,[{[w6]:i8},Q6]],[W6,[{[w6]:$6(2)},j6]]],results:[[Y],[Y,`Accelerate cannot be used with FIPS`],[Y,`Cannot set dual-stack in combination with a custom endpoint.`],[Y,`A custom endpoint cannot be combined with FIPS`],[Y,`A custom endpoint cannot be combined with S3 Accelerate`],[Y,`Partition does not support FIPS`],[Y,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,j8],[s8,j8],[Y,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,M8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,j8],[Y,`Unrecognized S3Express bucket name format.`],[c8,j8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,M8],[Y,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,N8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,N8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,N8],[Y,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[Y,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[Y,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[Y,"Custom endpoint `{Endpoint}` was not a valid URI"],[Y,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,P8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,P8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,P8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,F8],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,P8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,F8],[l8,P8],[s8,P8],[l8,F8],[s8,F8],[u8,P8],[u8,F8],[d8,P8],[d8,F8],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,F8],[Y,`Invalid region: region was not a valid DNS name.`],[Y,`S3 Object Lambda does not support Dual-stack`],[Y,`S3 Object Lambda does not support S3 Accelerate`],[Y,`Access points are not supported for this operation`],[Y,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[Y,`Invalid ARN: Missing account id`],[f8(1),I8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,I8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,I8],[Y,p8(1)],[Y,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[Y,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[Y,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[Y,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[Y,`Invalid ARN: bucket ARN is missing a region`],[Y,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[Y,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[Y,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,L8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,L8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,L8],[f8(1),L8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,L8],[Y,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[Y,`S3 MRAP does not support dual-stack`],[Y,`S3 MRAP does not support FIPS`],[Y,`S3 MRAP does not support S3 Accelerate`],[Y,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[E6]:[{[D6]:X,name:m8,[O6]:o8,[A6]:GHe}]}],[Y,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[Y,`Invalid Access Point Name`],[Y,`S3 Outposts does not support Dual-stack`],[Y,`S3 Outposts does not support FIPS`],[Y,`S3 Outposts does not support S3 Accelerate`],[Y,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,R8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,R8],[Y,p8(2)],[Y,"Expected an outpost type `accesspoint`, found {outpostType}"],[Y,`Invalid ARN: expected an access point name`],[Y,`Invalid ARN: Expected a 4-component resource`],[Y,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[Y,`Invalid ARN: The Outpost Id was not set`],[Y,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[Y,`Invalid ARN: No ARN type specified`],[Y,"Invalid ARN: `{Bucket}` was not a valid ARN"],[Y,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,P8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,F8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,P8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,F8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,P8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,F8],[h8,P8],[h8,F8],[g8,P8],[g8,F8],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,F8],[Y,`Path-style addressing cannot be used with S3 Accelerate`],[c8,z8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,z8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,z8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,P8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,P8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,P8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,F8],[c8,P8],[c8,F8],[_8,P8],[_8,F8],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,F8],[Y,`A region must be set when sending requests to S3.`]]},KHe=2,qHe=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),JHe=nt.from(qHe,KHe,G8.conditions,G8.results),YHe=new Ue({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),K8=(e,t={})=>YHe.get(e,()=>at(JHe,{endpointParams:e,logger:t.logger}));Ve.aws=Se;var XHe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=Ce(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await $e(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:Ce(t).operation,region:await u(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function q8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function J8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var ZHe=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(se.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(K8,e=>{let t=[];switch(e.operation){default:t.push(q8(e)),t.push(J8(e))}return t},{"aws.auth#sigv4":q8,"aws.auth#sigv4a":J8}),QHe=e=>{let t=de(ct(e));return Object.assign(t,{authSchemePreference:u(e.authSchemePreference??[])})},$He=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),Y8=Ke({ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},`AmazonS3`,`S3Client`,Be),eUe={Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}},tUe={UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}},nUe={DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}},rUe={Bucket:{type:`contextParams`,name:`Bucket`}},iUe={},aUe={Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}},X8=(e,t,n,r)=>[S6(n)],oUe=(e,t,n,r)=>[S6(n),C6(n)],sUe=(e,t,n,r)=>[S6(n),VHe(n)],cUe=(e,t,n,r)=>[b6(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),S6(n)],lUe=(e,t,n,r)=>[b6(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),C6(n),mHe(n)],uUe=(e,t,n,r)=>[b6(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),rHe(n),S6(n),C6(n)],dUe=(e,t,n,r)=>[b6(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),S6(n),C6(n)],Z8=class e extends ze{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},fUe=class e extends Z8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pUe=class e extends Z8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mUe=class e extends Z8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hUe=class e extends Z8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gUe=class e extends Z8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_Ue=class e extends Z8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vUe=class e extends Z8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yUe=class e extends Z8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},bUe=class e extends Z8{name=`NoSuchAnnotation`;$fault=`client`;constructor(t){super({name:`NoSuchAnnotation`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xUe=class e extends Z8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SUe=class e extends Z8{name=`InvalidPrefix`;$fault=`client`;constructor(t){super({name:`InvalidPrefix`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CUe=class e extends Z8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wUe=class e extends Z8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TUe=class e extends Z8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},EUe=class e extends Z8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DUe=class e extends Z8{name=`AnnotationLimitExceeded`;$fault=`client`;constructor(t){super({name:`AnnotationLimitExceeded`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OUe=class e extends Z8{name=`AnnotationNameTooLong`;$fault=`client`;constructor(t){super({name:`AnnotationNameTooLong`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kUe=class e extends Z8{name=`InvalidAnnotationName`;$fault=`client`;constructor(t){super({name:`InvalidAnnotationName`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AUe=class e extends Z8{name=`UnsupportedMediaType`;$fault=`client`;constructor(t){super({name:`UnsupportedMediaType`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jUe=class e extends Z8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MUe=class e extends Z8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Q8=`ACL`,NUe=`AccessDenied`,PUe=`AbortDate`,$8=`AccessKeyId`,FUe=`AnnotationLimitExceeded`,IUe=`AbortMultipartUpload`,LUe=`AbortMultipartUploadOutput`,RUe=`AbortMultipartUploadRequest`,zUe=`AnnotationNameTooLong`,BUe=`AcceptRanges`,VUe=`AbortRuleId`,HUe=`AccessTier`,e5=`Bucket`,t5=`BucketArn`,UUe=`BucketAlreadyExists`,WUe=`BucketAlreadyOwnedByYou`,GUe=`BypassGovernanceRetention`,KUe=`BucketInfo`,n5=`BucketKeyEnabled`,qUe=`BucketNamespace`,r5=`BucketRegion`,i5=`Body`,a5=`Buckets`,o5=`ChecksumAlgorithm`,JUe=`CreateBucket`,s5=`CreateBucketConfiguration`,YUe=`CreateBucketOutput`,XUe=`CreateBucketRequest`,c5=`CacheControl`,l5=`ChecksumCRC32`,u5=`ChecksumCRC32C`,d5=`ChecksumCRC64NVME`,f5=`Cache-Control`,ZUe=`CreationDate`,p5=`Content-Disposition`,m5=`ContentDisposition`,h5=`Content-Encoding`,g5=`ContentEncoding`,_5=`ContentLanguage`,v5=`Content-Language`,y5=`Content-Length`,b5=`ContentLength`,x5=`Content-MD5`,S5=`ChecksumMD5`,C5=`ContentMD5`,QUe=`CompletedMultipartUpload`,$Ue=`CompleteMultipartUploadOutput`,eWe=`CreateMultipartUploadOutput`,tWe=`CompleteMultipartUploadResult`,nWe=`CompleteMultipartUploadRequest`,rWe=`CreateMultipartUploadRequest`,w5=`CompleteMultipartUpload`,iWe=`CreateMultipartUpload`,aWe=`ChecksumMode`,oWe=`CommonPrefix`,sWe=`CommonPrefixList`,cWe=`CompletedPartList`,lWe=`CompletedPart`,uWe=`CommonPrefixes`,dWe=`ContentRange`,fWe=`Content-Range`,T5=`ChecksumSHA1`,E5=`ChecksumSHA256`,D5=`ChecksumSHA512`,pWe=`CreateSessionOutput`,mWe=`CreateSessionResult`,hWe=`CreateSessionRequest`,gWe=`CreateSession`,O5=`ChecksumType`,k5=`Content-Type`,A5=`ContentType`,j5=`ContinuationToken`,M5=`ChecksumXXHASH64`,N5=`ChecksumXXHASH3`,P5=`ChecksumXXHASH128`,_We=`Contents`,F5=`Credentials`,I5=`DeleteMarker`,vWe=`DisplayName`,yWe=`DeleteObjectOutput`,bWe=`DeleteObjectRequest`,xWe=`DeleteObject`,SWe=`DataRedundancy`,L5=`Delimiter`,R5=`ExpectedBucketOwner`,z5=`ExpiresString`,B5=`ETag`,CWe=`EncryptionTypeMismatch`,V5=`EncodingType`,H5=`Expiration`,U5=`Expires`,wWe=`FetchOwner`,W5=`GrantFullControl`,TWe=`GetObject`,EWe=`GetObjectOutput`,DWe=`GetObjectRequest`,G5=`GrantRead`,K5=`GrantReadACP`,OWe=`GrantWrite`,q5=`GrantWriteACP`,kWe=`InvalidAnnotationName`,AWe=`ID`,J5=`IfMatch`,jWe=`IfMatchInitiatedTime`,MWe=`IfMatchLastModifiedTime`,NWe=`IfMatchSize`,PWe=`If-Modified-Since`,FWe=`IfModifiedSince`,IWe=`InitiateMultipartUploadResult`,Y5=`If-Match`,X5=`IfNoneMatch`,Z5=`If-None-Match`,LWe=`InvalidObjectState`,RWe=`InvalidPrefix`,zWe=`IdempotencyParameterMismatch`,BWe=`InvalidRequest`,VWe=`IsRestoreInProgress`,HWe=`IsTruncated`,UWe=`IfUnmodifiedSince`,WWe=`If-Unmodified-Since`,GWe=`InvalidWriteOffset`,Q5=`Key`,KWe=`KeyCount`,$5=`Location`,qWe=`ListAllMyBucketsResult`,JWe=`ListBuckets`,YWe=`ListBucketsOutput`,XWe=`ListBucketsRequest`,ZWe=`ListBucketResult`,QWe=`LocationConstraint`,$We=`LocationInfo`,e7=`LastModified`,eGe=`Last-Modified`,tGe=`ListObjectsV2`,nGe=`ListObjectsV2Output`,rGe=`ListObjectsV2Request`,t7=`Metadata`,iGe=`MaxBuckets`,aGe=`MFA`,n7=`MaxKeys`,oGe=`MissingMeta`,sGe=`MpuObjectSize`,cGe=`MultipartUpload`,r7=`Name`,lGe=`NextContinuationToken`,uGe=`NotFound`,dGe=`NoSuchAnnotation`,fGe=`NoSuchBucket`,pGe=`NoSuchKey`,mGe=`NoSuchUpload`,i7=`Owner`,hGe=`ObjectAlreadyInActiveTierError`,gGe=`ObjectLockEnabledForBucket`,a7=`ObjectLockLegalHoldStatus`,o7=`ObjectLockMode`,s7=`ObjectLockRetainUntilDate`,_Ge=`ObjectList`,vGe=`ObjectNotInActiveTierError`,yGe=`ObjectOwnership`,bGe=`OptionalObjectAttributes`,xGe=`Object`,c7=`Prefix`,SGe=`PartsCount`,l7=`PartNumber`,CGe=`PutObject`,wGe=`PutObjectOutput`,TGe=`PutObjectRequest`,EGe=`PutObjectTagging`,DGe=`PutObjectTaggingOutput`,OGe=`PutObjectTaggingRequest`,kGe=`Parts`,AGe=`Part`,u7=`RequestCharged`,jGe=`ResponseCacheControl`,MGe=`ResponseContentDisposition`,NGe=`ResponseContentEncoding`,PGe=`ResponseContentLanguage`,FGe=`ResponseContentType`,IGe=`ResponseExpires`,LGe=`RestoreExpiryDate`,d7=`RequestPayer`,RGe=`ReplicationStatus`,f7=`RestoreStatus`,p7=`Range`,zGe=`Restore`,m7=`StartAfter`,h7=`SecretAccessKey`,BGe=`StreamingBlob`,g7=`StorageClass`,VGe=`SessionCredentialValue`,HGe=`SessionCredentials`,UGe=`SessionMode`,_7=`ServerSideEncryption`,v7=`SSECustomerAlgorithm`,y7=`SSECustomerKey`,b7=`SSECustomerKeyMD5`,x7=`SSEKMSEncryptionContext`,S7=`SSEKMSKeyId`,C7=`SessionToken`,w7=`Size`,WGe=`Tags`,GGe=`TagCount`,KGe=`TooManyParts`,T7=`TagSet`,E7=`Tag`,D7=`Tagging`,O7=`Type`,k7=`UploadId`,qGe=`UnsupportedMediaType`,JGe=`UploadPart`,YGe=`UploadPartOutput`,XGe=`UploadPartRequest`,ZGe=`Value`,A7=`VersionId`,QGe=`WriteOffsetBytes`,j7=`WebsiteRedirectLocation`,$Ge=`accept-ranges`,eKe=`bucket-region`,M7=`client`,N7=`continuation-token`,tKe=`delimiter`,P7=`error`,nKe=`encoding-type`,rKe=`fetch-owner`,F7=`http`,I7=`httpChecksum`,L7=`httpError`,Q=`httpHeader`,R7=`httpPayload`,z7=`httpPrefixHeaders`,B7=`httpQuery`,iKe=`max-buckets`,aKe=`max-keys`,V7=`prefix`,H7=`partNumber`,oKe=`response-cache-control`,sKe=`response-content-disposition`,cKe=`response-content-encoding`,lKe=`response-content-language`,uKe=`response-content-type`,dKe=`response-expires`,U7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,fKe=`start-after`,pKe=`streaming`,W7=`uploadId`,G7=`versionId`,K7=`xmlFlattened`,q7=`xmlName`,J7=`x-amz-acl`,mKe=`x-amz-abort-date`,hKe=`x-amz-abort-rule-id`,gKe=`x-amz-bucket-arn`,_Ke=`x-amz-bypass-governance-retention`,vKe=`x-amz-bucket-namespace`,yKe=`x-amz-bucket-object-lock-enabled`,Y7=`x-amz-checksum-algorithm`,X7=`x-amz-checksum-crc32`,Z7=`x-amz-checksum-crc32c`,Q7=`x-amz-checksum-crc64nvme`,$7=`x-amz-checksum-md5`,bKe=`x-amz-checksum-mode`,e9=`x-amz-checksum-sha1`,t9=`x-amz-checksum-sha256`,n9=`x-amz-checksum-sha512`,xKe=`x-amz-create-session-mode`,r9=`x-amz-checksum-type`,i9=`x-amz-checksum-xxhash64`,a9=`x-amz-checksum-xxhash3`,o9=`x-amz-checksum-xxhash128`,s9=`x-amz-delete-marker`,c9=`x-amz-expiration`,l9=`x-amz-expected-bucket-owner`,u9=`x-amz-grant-full-control`,d9=`x-amz-grant-read`,f9=`x-amz-grant-read-acp`,SKe=`x-amz-grant-write`,p9=`x-amz-grant-write-acp`,CKe=`x-amz-if-match-initiated-time`,wKe=`x-amz-if-match-last-modified-time`,TKe=`x-amz-if-match-size`,m9=`x-amz-meta-`,EKe=`x-amz-mfa`,DKe=`x-amz-missing-meta`,OKe=`x-amz-mp-object-size`,kKe=`x-amz-mp-parts-count`,h9=`x-amz-object-lock-legal-hold`,g9=`x-amz-object-lock-mode`,_9=`x-amz-object-lock-retain-until-date`,AKe=`x-amz-object-ownership`,jKe=`x-amz-optional-object-attributes`,MKe=`x-amz-object-size`,NKe=`x-amz-restore`,v9=`x-amz-request-charged`,y9=`x-amz-request-payer`,PKe=`x-amz-replication-status`,b9=`x-amz-storage-class`,x9=`x-amz-sdk-checksum-algorithm`,S9=`x-amz-server-side-encryption`,C9=`x-amz-server-side-encryption-aws-kms-key-id`,w9=`x-amz-server-side-encryption-bucket-key-enabled`,T9=`x-amz-server-side-encryption-context`,E9=`x-amz-server-side-encryption-customer-algorithm`,D9=`x-amz-server-side-encryption-customer-key`,O9=`x-amz-server-side-encryption-customer-key-MD5`,k9=`x-amz-tagging`,FKe=`x-amz-tagging-count`,A9=`x-amz-version-id`,IKe=`x-amz-write-offset-bytes`,j9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,M9=dt.for(U7),LKe=[-3,U7,`S3ServiceException`,0,[],[]];M9.registerError(LKe,Z8);var N9=dt.for($),RKe=[-3,$,NUe,{[P7]:M7,[L7]:403},[],[]];N9.registerError(RKe,pUe);var zKe=[-3,$,FUe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(zKe,DUe);var BKe=[-3,$,zUe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(BKe,OUe);var VKe=[-3,$,UUe,{[P7]:M7,[L7]:409},[],[]];N9.registerError(VKe,hUe);var HKe=[-3,$,WUe,{[P7]:M7,[L7]:409},[],[]];N9.registerError(HKe,gUe);var UKe=[-3,$,CWe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(UKe,CUe);var WKe=[-3,$,zWe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(WKe,jUe);var GKe=[-3,$,kWe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(GKe,kUe);var KKe=[-3,$,LWe,{[P7]:M7,[L7]:403},[g7,HUe],[0,0]];N9.registerError(KKe,yUe);var qKe=[-3,$,RWe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(qKe,SUe);var JKe=[-3,$,BWe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(JKe,wUe);var YKe=[-3,$,GWe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(YKe,TUe);var XKe=[-3,$,dGe,{[P7]:M7,[L7]:404},[],[]];N9.registerError(XKe,bUe);var ZKe=[-3,$,fGe,{[P7]:M7,[L7]:404},[],[]];N9.registerError(ZKe,_Ue);var QKe=[-3,$,pGe,{[P7]:M7,[L7]:404},[],[]];N9.registerError(QKe,vUe);var $Ke=[-3,$,mGe,{[P7]:M7,[L7]:404},[],[]];N9.registerError($Ke,fUe);var eqe=[-3,$,uGe,{[P7]:M7},[],[]];N9.registerError(eqe,xUe);var tqe=[-3,$,hGe,{[P7]:M7,[L7]:403},[],[]];N9.registerError(tqe,MUe);var nqe=[-3,$,vGe,{[P7]:M7,[L7]:403},[],[]];N9.registerError(nqe,mUe);var rqe=[-3,$,KGe,{[P7]:M7,[L7]:400},[],[]];N9.registerError(rqe,EUe);var iqe=[-3,$,qGe,{[P7]:M7,[L7]:415},[],[]];N9.registerError(iqe,AUe);var aqe=[M9,N9],P9=[0,$,VGe,8,0],F9=[0,$,y7,8,0],I9=[0,$,x7,8,0],L9=[0,$,S7,8,0],R9=[0,$,BGe,{[pKe]:1},42],oqe=[3,$,LUe,0,[u7],[[0,{[Q]:v9}]]],sqe=[3,$,RUe,0,[e5,Q5,k7,d7,R5,jWe],[[0,1],[0,1],[0,{[B7]:W7}],[0,{[Q]:y9}],[0,{[Q]:l9}],[6,{[Q]:CKe}]],3],cqe=[3,$,e5,0,[r7,ZUe,r5,t5],[0,4,0,0]],lqe=[3,$,KUe,0,[SWe,O7],[0,0]],uqe=[3,$,oWe,0,[c7],[0]],dqe=[3,$,QUe,0,[kGe],[[()=>Wqe,{[K7]:1,[q7]:AGe}]]],fqe=[3,$,lWe,0,[B5,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,l7],[0,0,0,0,0,0,0,0,0,0,0,1]],pqe=[3,$,$Ue,{[q7]:tWe},[$5,e5,Q5,H5,B5,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,O5,_7,A7,S7,n5,u7],[0,0,0,[0,{[Q]:c9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Q]:S9}],[0,{[Q]:A9}],[()=>L9,{[Q]:C9}],[2,{[Q]:w9}],[0,{[Q]:v9}]]],mqe=[3,$,nWe,0,[e5,Q5,k7,cGe,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,O5,sGe,d7,R5,J5,X5,v7,y7,b7],[[0,1],[0,1],[0,{[B7]:W7}],[()=>dqe,{[R7]:1,[q7]:w5}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:n9}],[0,{[Q]:$7}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[0,{[Q]:r9}],[1,{[Q]:OKe}],[0,{[Q]:y9}],[0,{[Q]:l9}],[0,{[Q]:Y5}],[0,{[Q]:Z5}],[0,{[Q]:E9}],[()=>F9,{[Q]:D9}],[0,{[Q]:O9}]],3],hqe=[3,$,s5,0,[QWe,$5,e5,WGe],[0,()=>Aqe,()=>lqe,[()=>B9,0]]],gqe=[3,$,YUe,0,[$5,t5],[[0,{[Q]:$5}],[0,{[Q]:gKe}]]],_qe=[3,$,XUe,0,[e5,Q8,s5,W5,G5,K5,OWe,q5,gGe,yGe,qUe],[[0,1],[0,{[Q]:J7}],[()=>hqe,{[R7]:1,[q7]:s5}],[0,{[Q]:u9}],[0,{[Q]:d9}],[0,{[Q]:f9}],[0,{[Q]:SKe}],[0,{[Q]:p9}],[2,{[Q]:yKe}],[0,{[Q]:AKe}],[0,{[Q]:vKe}]],1],vqe=[3,$,eWe,{[q7]:IWe},[PUe,VUe,e5,Q5,k7,_7,v7,b7,S7,x7,n5,u7,o5,O5],[[4,{[Q]:mKe}],[0,{[Q]:hKe}],[0,{[q7]:e5}],0,0,[0,{[Q]:S9}],[0,{[Q]:E9}],[0,{[Q]:O9}],[()=>L9,{[Q]:C9}],[()=>I9,{[Q]:T9}],[2,{[Q]:w9}],[0,{[Q]:v9}],[0,{[Q]:Y7}],[0,{[Q]:r9}]]],yqe=[3,$,rWe,0,[e5,Q5,Q8,c5,m5,g5,_5,A5,U5,W5,G5,K5,q5,t7,_7,g7,j7,v7,y7,b7,S7,x7,n5,d7,D7,o7,s7,a7,R5,o5,O5],[[0,1],[0,1],[0,{[Q]:J7}],[0,{[Q]:f5}],[0,{[Q]:p5}],[0,{[Q]:h5}],[0,{[Q]:v5}],[0,{[Q]:k5}],[4,{[Q]:U5}],[0,{[Q]:u9}],[0,{[Q]:d9}],[0,{[Q]:f9}],[0,{[Q]:p9}],[128,{[z7]:m9}],[0,{[Q]:S9}],[0,{[Q]:b9}],[0,{[Q]:j9}],[0,{[Q]:E9}],[()=>F9,{[Q]:D9}],[0,{[Q]:O9}],[()=>L9,{[Q]:C9}],[()=>I9,{[Q]:T9}],[2,{[Q]:w9}],[0,{[Q]:y9}],[0,{[Q]:k9}],[0,{[Q]:g9}],[5,{[Q]:_9}],[0,{[Q]:h9}],[0,{[Q]:l9}],[0,{[Q]:Y7}],[0,{[Q]:r9}]],2],bqe=[3,$,pWe,{[q7]:mWe},[F5,_7,S7,x7,n5],[[()=>Lqe,{[q7]:F5}],[0,{[Q]:S9}],[()=>L9,{[Q]:C9}],[()=>I9,{[Q]:T9}],[2,{[Q]:w9}]],1],xqe=[3,$,hWe,0,[e5,UGe,_7,S7,x7,n5],[[0,1],[0,{[Q]:xKe}],[0,{[Q]:S9}],[()=>L9,{[Q]:C9}],[()=>I9,{[Q]:T9}],[2,{[Q]:w9}]],1],Sqe=[3,$,yWe,0,[I5,A7,u7],[[2,{[Q]:s9}],[0,{[Q]:A9}],[0,{[Q]:v9}]]],Cqe=[3,$,bWe,0,[e5,Q5,aGe,A7,d7,GUe,R5,J5,MWe,NWe],[[0,1],[0,1],[0,{[Q]:EKe}],[0,{[B7]:G7}],[0,{[Q]:y9}],[2,{[Q]:_Ke}],[0,{[Q]:l9}],[0,{[Q]:Y5}],[6,{[Q]:wKe}],[1,{[Q]:TKe}]],2],wqe=[3,$,EWe,0,[i5,I5,BUe,H5,zGe,e7,b5,B5,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,O5,oGe,A7,c5,m5,g5,_5,dWe,A5,U5,z5,j7,_7,t7,v7,b7,S7,n5,g7,u7,RGe,SGe,GGe,o7,s7,a7],[[()=>R9,16],[2,{[Q]:s9}],[0,{[Q]:$Ge}],[0,{[Q]:c9}],[0,{[Q]:NKe}],[4,{[Q]:eGe}],[1,{[Q]:y5}],[0,{[Q]:B5}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:n9}],[0,{[Q]:$7}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[0,{[Q]:r9}],[1,{[Q]:DKe}],[0,{[Q]:A9}],[0,{[Q]:f5}],[0,{[Q]:p5}],[0,{[Q]:h5}],[0,{[Q]:v5}],[0,{[Q]:fWe}],[0,{[Q]:k5}],[4,{[Q]:U5}],[0,{[Q]:z5}],[0,{[Q]:j9}],[0,{[Q]:S9}],[128,{[z7]:m9}],[0,{[Q]:E9}],[0,{[Q]:O9}],[()=>L9,{[Q]:C9}],[2,{[Q]:w9}],[0,{[Q]:b9}],[0,{[Q]:v9}],[0,{[Q]:PKe}],[1,{[Q]:kKe}],[1,{[Q]:FKe}],[0,{[Q]:g9}],[5,{[Q]:_9}],[0,{[Q]:h9}]]],Tqe=[3,$,DWe,0,[e5,Q5,J5,FWe,X5,UWe,p7,jGe,MGe,NGe,PGe,FGe,IGe,A7,v7,y7,b7,d7,l7,R5,aWe],[[0,1],[0,1],[0,{[Q]:Y5}],[4,{[Q]:PWe}],[0,{[Q]:Z5}],[4,{[Q]:WWe}],[0,{[Q]:p7}],[0,{[B7]:oKe}],[0,{[B7]:sKe}],[0,{[B7]:cKe}],[0,{[B7]:lKe}],[0,{[B7]:uKe}],[6,{[B7]:dKe}],[0,{[B7]:G7}],[0,{[Q]:E9}],[()=>F9,{[Q]:D9}],[0,{[Q]:O9}],[0,{[Q]:y9}],[1,{[B7]:H7}],[0,{[Q]:l9}],[0,{[Q]:bKe}]],2],Eqe=[3,$,YWe,{[q7]:qWe},[a5,i7,j5,c7],[[()=>Hqe,0],()=>z9,0,0]],Dqe=[3,$,XWe,0,[iGe,j5,c7,r5],[[1,{[B7]:iKe}],[0,{[B7]:N7}],[0,{[B7]:V7}],[0,{[B7]:eKe}]]],Oqe=[3,$,nGe,{[q7]:ZWe},[HWe,_We,r7,c7,L5,n7,uWe,V5,KWe,j5,lGe,m7,u7],[2,[()=>Gqe,{[K7]:1}],0,0,0,1,[()=>Uqe,{[K7]:1}],0,1,0,0,0,[0,{[Q]:v9}]]],kqe=[3,$,rGe,0,[e5,L5,V5,n7,c7,j5,wWe,m7,d7,R5,bGe],[[0,1],[0,{[B7]:tKe}],[0,{[B7]:nKe}],[1,{[B7]:aKe}],[0,{[B7]:V7}],[0,{[B7]:N7}],[2,{[B7]:rKe}],[0,{[B7]:fKe}],[0,{[Q]:y9}],[0,{[Q]:l9}],[64,{[Q]:jKe}]],1],Aqe=[3,$,$We,0,[O7,r7],[0,0]],jqe=[3,$,xGe,0,[Q5,e7,B5,o5,O5,w7,g7,i7,f7],[0,4,0,[64,{[K7]:1}],0,1,0,()=>z9,()=>Iqe]],z9=[3,$,i7,0,[vWe,AWe],[0,0]],Mqe=[3,$,wGe,0,[H5,B5,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,O5,_7,A7,v7,b7,S7,x7,n5,w7,u7],[[0,{[Q]:c9}],[0,{[Q]:B5}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:n9}],[0,{[Q]:$7}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[0,{[Q]:r9}],[0,{[Q]:S9}],[0,{[Q]:A9}],[0,{[Q]:E9}],[0,{[Q]:O9}],[()=>L9,{[Q]:C9}],[()=>I9,{[Q]:T9}],[2,{[Q]:w9}],[1,{[Q]:MKe}],[0,{[Q]:v9}]]],Nqe=[3,$,TGe,0,[e5,Q5,Q8,i5,c5,m5,g5,_5,b5,C5,A5,o5,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,U5,J5,X5,W5,G5,K5,q5,QGe,t7,_7,g7,j7,v7,y7,b7,S7,x7,n5,d7,D7,o7,s7,a7,R5],[[0,1],[0,1],[0,{[Q]:J7}],[()=>R9,16],[0,{[Q]:f5}],[0,{[Q]:p5}],[0,{[Q]:h5}],[0,{[Q]:v5}],[1,{[Q]:y5}],[0,{[Q]:x5}],[0,{[Q]:k5}],[0,{[Q]:x9}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:n9}],[0,{[Q]:$7}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[4,{[Q]:U5}],[0,{[Q]:Y5}],[0,{[Q]:Z5}],[0,{[Q]:u9}],[0,{[Q]:d9}],[0,{[Q]:f9}],[0,{[Q]:p9}],[1,{[Q]:IKe}],[128,{[z7]:m9}],[0,{[Q]:S9}],[0,{[Q]:b9}],[0,{[Q]:j9}],[0,{[Q]:E9}],[()=>F9,{[Q]:D9}],[0,{[Q]:O9}],[()=>L9,{[Q]:C9}],[()=>I9,{[Q]:T9}],[2,{[Q]:w9}],[0,{[Q]:y9}],[0,{[Q]:k9}],[0,{[Q]:g9}],[5,{[Q]:_9}],[0,{[Q]:h9}],[0,{[Q]:l9}]],2],Pqe=[3,$,DGe,0,[A7],[[0,{[Q]:A9}]]],Fqe=[3,$,OGe,0,[e5,Q5,D7,A7,C5,o5,R5,d7],[[0,1],[0,1],[()=>zqe,{[R7]:1,[q7]:D7}],[0,{[B7]:G7}],[0,{[Q]:x5}],[0,{[Q]:x9}],[0,{[Q]:l9}],[0,{[Q]:y9}]],3],Iqe=[3,$,f7,0,[VWe,LGe],[2,4]],Lqe=[3,$,HGe,0,[$8,h7,C7,H5],[[0,{[q7]:$8}],[()=>P9,{[q7]:h7}],[()=>P9,{[q7]:C7}],[4,{[q7]:H5}]],4],Rqe=[3,$,E7,0,[Q5,ZGe],[0,0],2],zqe=[3,$,D7,0,[T7],[[()=>B9,0]],1],Bqe=[3,$,YGe,0,[_7,B5,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,v7,b7,S7,n5,u7],[[0,{[Q]:S9}],[0,{[Q]:B5}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:n9}],[0,{[Q]:$7}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[0,{[Q]:E9}],[0,{[Q]:O9}],[()=>L9,{[Q]:C9}],[2,{[Q]:w9}],[0,{[Q]:v9}]]],Vqe=[3,$,XGe,0,[e5,Q5,l7,k7,i5,b5,C5,o5,l5,u5,d5,T5,E5,D5,S5,M5,N5,P5,v7,y7,b7,d7,R5],[[0,1],[0,1],[1,{[B7]:H7}],[0,{[B7]:W7}],[()=>R9,16],[1,{[Q]:y5}],[0,{[Q]:x5}],[0,{[Q]:x9}],[0,{[Q]:X7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:e9}],[0,{[Q]:t9}],[0,{[Q]:n9}],[0,{[Q]:$7}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[0,{[Q]:E9}],[()=>F9,{[Q]:D9}],[0,{[Q]:O9}],[0,{[Q]:y9}],[0,{[Q]:l9}]],4],Hqe=[1,$,a5,0,[()=>cqe,{[q7]:e5}]],Uqe=[1,$,sWe,0,()=>uqe],Wqe=[1,$,cWe,0,()=>fqe],Gqe=[1,$,_Ge,0,[()=>jqe,0]],B9=[1,$,T7,0,[()=>Rqe,{[q7]:E7}]],Kqe=[9,$,IUe,{[F7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>sqe,()=>oqe],qqe=[9,$,w5,{[F7]:[`POST`,`/{Key+}`,200]},()=>mqe,()=>pqe],Jqe=[9,$,JUe,{[F7]:[`PUT`,`/`,200]},()=>_qe,()=>gqe],Yqe=[9,$,iWe,{[F7]:[`POST`,`/{Key+}?uploads`,200]},()=>yqe,()=>vqe],Xqe=[9,$,gWe,{[F7]:[`GET`,`/?session`,200]},()=>xqe,()=>bqe],Zqe=[9,$,xWe,{[F7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>Cqe,()=>Sqe],Qqe=[9,$,TWe,{[I7]:`-`,[F7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>Tqe,()=>wqe],$qe=[9,$,JWe,{[F7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>Dqe,()=>Eqe],eJe=[9,$,tGe,{[F7]:[`GET`,`/?list-type=2`,200]},()=>kqe,()=>Oqe],tJe=[9,$,CGe,{[I7]:`-`,[F7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>Nqe,()=>Mqe],nJe=[9,$,EGe,{[I7]:`-`,[F7]:[`PUT`,`/{Key+}?tagging`,200]},()=>Fqe,()=>Pqe],rJe=[9,$,JGe,{[I7]:`-`,[F7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>Vqe,()=>Bqe],iJe=class extends Y8(nUe,X8,`CreateSession`,Xqe){},aJe={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:browser":`yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`yarn g:vitest watch -c vitest.config.browser.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/checksums":`^3.1000.12`,"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/middleware-sdk-s3":`^3.972.58`,"@aws-sdk/signature-v4-multi-region":`^3.996.38`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1079.0`,"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}},V9=64,H9=20,U9=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),oJe=new Int32Array([1518500249,1859775393,2400959708,3395469782]),sJe=class e{digestLength=H9;state=Int32Array.from(U9);w;buffer=new Uint8Array(V9);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(t){if(t){let n=e.normalizeKey(t);this.inner=new e,this.outer=new e;let r=new Uint8Array(V9*2);for(let e=0;e0){for(;n>0&&this.bufferLength=V9;)this.hashBuffer(e,t),t+=V9,n-=V9;for(;n>0;)this.buffer[this.bufferLength++]=e[t++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw Error(`Attempted to digest an already finished HMAC.`);this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(U9),this.buffer=new Uint8Array(V9),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),t=this.buffer.slice(),n=this.bufferLength,r=this.bytesHashed/536870912|0,i=this.bytesHashed<<3;if(t[n++]=128,n>V9-8){for(let e=n;e>>24&255,o[1]=e[0]>>>16&255,o[2]=e[0]>>>8&255,o[3]=e[0]&255,o[4]=e[1]>>>24&255,o[5]=e[1]>>>16&255,o[6]=e[1]>>>8&255,o[7]=e[1]&255,o[8]=e[2]>>>24&255,o[9]=e[2]>>>16&255,o[10]=e[2]>>>8&255,o[11]=e[2]&255,o[12]=e[3]>>>24&255,o[13]=e[3]>>>16&255,o[14]=e[3]>>>8&255,o[15]=e[3]&255,o[16]=e[4]>>>24&255,o[17]=e[4]>>>16&255,o[18]=e[4]>>>8&255,o[19]=e[4]&255,o}static normalizeKey(t){let n=bt(t);if(n.byteLength>V9){let t=new e;t.update(n);let r=t.digestSync(),i=new Uint8Array(V9);return i.set(r),i}let r=new Uint8Array(V9);return r.set(n),r}hashBuffer(e,t){this.hashBufferWith(this.state,e,t)}hashBufferWith(e,t,n){let r=this.w??=new Int32Array(80),i=e[0],a=e[1],o=e[2],s=e[3],c=e[4];for(let e=0;e<16;++e)r[e]=(t[n+e*4]&255)<<24|(t[n+e*4+1]&255)<<16|(t[n+e*4+2]&255)<<8|t[n+e*4+3]&255;for(let e=16;e<80;++e){let t=r[e-3]^r[e-8]^r[e-14]^r[e-16];r[e]=t<<1|t>>>31}for(let e=0;e<80;++e){let t=e<20?0:e<40?1:e<60?2:3,n=((i<<5|i>>>27)+(t===0?a&o^~a&s:t===2?a&o^a&s^o&s:a^o^s)|0)+(c+(oJe[t]+r[e]|0)|0)|0;c=s,s=o,o=a<<30|a>>>2,a=i,i=n}e[0]=e[0]+i|0,e[1]=e[1]+a|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+c|0}},cJe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??pt,base64Encoder:e?.base64Encoder??_t,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??K8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??lee,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ZHe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new we},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new le}],logger:e?.logger??new Ge,md5:e?.md5??qee,protocol:e?.protocol??FHe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:aqe,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??Ct,serviceId:e?.serviceId??`S3`,sha1:e?.sha1??sJe,sha256:e?.sha256??We,signerConstructor:e?.signerConstructor??se,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Ze,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??wt,utf8Encoder:e?.utf8Encoder??ht}),lJe=e=>{let t=Je(e),n=()=>t().then(ft),r=cJe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??xt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Te({serviceId:r.serviceId,clientVersion:aJe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??hee,maxAttempts:e?.maxAttempts??3,region:e?.region??ue(`Region is missing`),requestHandler:Oe.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||_e),streamCollector:e?.streamCollector??yt,streamHasher:e?.streamHasher??Kee,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},uJe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},dJe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),fJe=(e,t)=>{let n=Object.assign(Xe(e),Ie(e),Pe(e),uJe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ae(n),st(n),Ee(n),dJe(n))},pJe=class extends fe{config;constructor(...[e]){let t=lJe(e||{});super(t),this.initConfig=t;let n=fJe(dHe(QHe(mee(Qe(Me(be(rt(QVe(ge($He(t))))))))),{session:[()=>this,iJe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(lt(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(oe(this.config,{httpAuthSchemeParametersProvider:XHe,identityProviderConfigProvider:async e=>new ye({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(PHe(this.config)),this.middlewareStack.use(RHe(this.config)),this.middlewareStack.use(cHe(this.config)),this.middlewareStack.use(yHe(this.config)),this.middlewareStack.use(wHe(this.config))}destroy(){super.destroy()}},W9=`ap-southeast-2`,G9=`${window.location.protocol}//localhost:9999`,mJe=`${window.location.protocol}//localhost:8443`,K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function hJe(){if(!K9){let e=it();if(!e)throw Error(`AWS credentials not configured`);K9=new gj({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),K9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return K9}function gJe(){if(!q9){let e=it();if(!e)throw Error(`AWS credentials not configured`);q9=new YCe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),q9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return q9}function _Je(){if(!J9){let e=it();if(!e)throw Error(`AWS credentials not configured`);J9=new DNe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function vJe(){if(!Y9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Y9=new ene({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function yJe(){if(!X9){let e=it();if(!e)throw Error(`AWS credentials not configured`);X9=new jVe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function bJe(){if(!Q9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Q9=new lR({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Q9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function xJe(){if(!$9){let e=it();if(!e)throw Error(`AWS credentials not configured`);$9=new Bhe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),$9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function SJe(){if(!Z9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Z9=new pJe({endpoint:mJe,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),Z9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),Z9.middlewareStack.add(e=>async t=>(xe.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function CJe(){K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{qBe as $,KL as $n,FA as $r,hNe as $t,sUe as A,qte as Ai,UCe as An,fA as Ar,wVe as At,PBe as B,whe as Bn,SA as Br,nNe as Bt,rUe as C,aj as Ci,ICe as Cn,aA as Cr,_Ve as Ct,oUe as D,lj as Di,BCe as Dn,lA as Dr,xVe as Dt,X8 as E,cj as Ei,zCe as En,cA as Er,bVe as Et,kBe as F,yhe as Fn,_A as Fr,ZMe as Ft,zBe as G,khe as Gn,DA as Gr,sNe as Gt,IBe as H,Ehe as Hn,wA as Hr,iNe as Ht,ABe as I,bhe as In,vA as Ir,QMe as It,HBe as J,Mhe as Jn,AA as Jr,uNe as Jt,BBe as K,Ahe as Kn,OA as Kr,cNe as Kt,jBe as L,xhe as Ln,yA as Lr,$Me as Lt,lUe as M,tte as Mi,ghe as Mn,mA as Mr,NNe as Mt,Y8 as N,xee as Ni,_he as Nn,hA as Nr,YMe as Nt,uUe as O,uj as Oi,VCe as On,uA as Or,SVe as Ot,OBe as P,Et as Pi,vhe as Pn,gA as Pr,XMe as Pt,KBe as Q,GL as Qn,NA as Qr,mNe as Qt,MBe as R,She as Rn,bA as Rr,eNe as Rt,tUe as S,ij as Si,FCe as Sn,iA as Sr,gVe as St,aUe as T,sj as Ti,RCe as Tn,sA as Tr,yVe as Tt,LBe as U,Dhe as Un,TA as Ur,aNe as Ut,FBe as V,The as Vn,CA as Vr,rNe as Vt,RBe as W,Ohe as Wn,EA as Wr,oNe as Wt,WBe as X,Phe as Xn,MA as Xr,fNe as Xt,UBe as Y,Nhe as Yn,jA as Yr,dNe as Yt,GBe as Z,hR as Zn,PA as Zr,pNe as Zt,eJe as _,$A as _i,ACe as _n,$k as _r,dVe as _t,xJe as a,VA as ai,xNe as an,QL as ar,$Be as at,rJe as b,nj as bi,NCe as bn,nA as br,mVe as bt,yJe as c,WA as ci,xCe as cn,tR as cr,nVe as ct,qqe as d,qA as di,wCe as dn,dM as dr,aVe as dt,IA as ei,gNe as en,qL as er,JBe as et,Jqe as f,JA as fi,TCe as fn,gM as fr,oVe as ft,$qe as g,QA as gi,kCe as gn,Qk as gr,uVe as gt,Qqe as h,ZA as hi,OCe as hn,Zk as hr,lVe as ht,bJe as i,BA as ii,bNe as in,ZL as ir,QBe as it,cUe as j,Jte as ji,Khe as jn,pA as jr,TVe as jt,dUe as k,one as ki,HCe as kn,dA as kr,CVe as kt,SJe as l,GA as li,SCe as ln,nR as lr,rVe as lt,Zqe as m,XA as mi,DCe as mn,Xk as mr,cVe as mt,vJe as n,RA as ni,vNe as nn,YL as nr,XBe as nt,gJe as o,HA as oi,twe as on,$L as or,eVe as ot,Yqe as p,YA as pi,ECe as pn,Cj as pr,sVe as pt,VBe as q,jhe as qn,kA as qr,lNe as qt,hJe as r,zA as ri,yNe as rn,XL as rr,ZBe as rt,_Je as s,UA as si,bCe as sn,eR as sr,tVe as st,CJe as t,LA as ti,_Ne as tn,JL as tr,YBe as tt,Kqe as u,KA as ui,CCe as un,rR as ur,iVe as ut,tJe as v,ej as vi,jCe as vn,eA as vr,fVe as vt,iUe as w,oj as wi,LCe as wn,oA as wr,vVe as wt,eUe as x,rj as xi,PCe as xn,rA as xr,hVe as xt,nJe as y,tj as yi,MCe as yn,tA as yr,pVe as yt,NBe as z,Che as zn,xA as zr,tNe as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js index f1f145ee7..dc541d54a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{xi as n}from"./awsClient.js";import{hi as r}from"./index.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ni as n}from"./awsClient.js";import{wi as r}from"./index.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/badge.js b/spinifex/services/spinifexui/frontend/dist/assets/badge.js index b2fc7fe69..5f5c3fd79 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/badge.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/badge.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{f as t,t as n}from"./dist.js";import{Ft as r}from"./auth.js";import{gi as i}from"./index.js";var a=e(),o=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(e){let n=(0,a.c)(13),s,c,l,u,d;if(n[0]!==e){let{className:a,variant:f,render:p,...m}=e;s=p,d=f===void 0?`default`:f,u=i,c=`span`,l=t({className:r(o({className:a,variant:d}))},m),n[0]=e,n[1]=s,n[2]=c,n[3]=l,n[4]=u,n[5]=d}else s=n[1],c=n[2],l=n[3],u=n[4],d=n[5];let f;n[6]===d?f=n[7]:(f={slot:`badge`,variant:d},n[6]=d,n[7]=f);let p;return n[8]!==s||n[9]!==c||n[10]!==l||n[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},n[8]=s,n[9]=c,n[10]=l,n[11]=f,n[12]=p):p=n[12],u(p)}export{s as t}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{f as t,t as n}from"./dist.js";import{Ft as r}from"./auth.js";import{Ti as i}from"./index.js";var a=e(),o=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(e){let n=(0,a.c)(13),s,c,l,u,d;if(n[0]!==e){let{className:a,variant:f,render:p,...m}=e;s=p,d=f===void 0?`default`:f,u=i,c=`span`,l=t({className:r(o({className:a,variant:d}))},m),n[0]=e,n[1]=s,n[2]=c,n[3]=l,n[4]=u,n[5]=d}else s=n[1],c=n[2],l=n[3],u=n[4],d=n[5];let f;n[6]===d?f=n[7]:(f={slot:`badge`,variant:d},n[6]=d,n[7]=f);let p;return n[8]!==s||n[9]!==c||n[10]!==l||n[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},n[8]=s,n[9]=c,n[10]=l,n[11]=f,n[12]=p):p=n[12],u(p)}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js index bb884f6e7..eb1093298 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{n as a,vi as o}from"./awsClient.js";import{bn as s,vn as c,yi as l,yn as u}from"./index.js";import{t as d}from"./error-banner.js";import{a as f,t as p}from"./field.js";import{a as m,i as ee,l as te,n as h,o as g,r as _,s as v,t as y}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends s(c,u,`ImportCertificate`,o){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=l(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await a().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[a,o]=(0,S.useState)(``),[s,c]=(0,S.useState)(``),[l,u]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{o(``),c(``),u(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==a||t[6]!==s?(A=a.trim().length>0&&s.trim().length>0,t[5]=a,t[6]=s,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==a||t[10]!==l||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==s||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:a,privateKey:s,certificateChain:l});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=a,t[10]=l,t[11]=x,t[12]=i,t[13]=r,t[14]=s,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(v,{children:[(0,D.jsx)(te,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(d,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>o(e.target.value),t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:a})]}),t[23]=a,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>c(e.target.value),t[26]=V):V=t[26];let H;t[27]===s?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:s})]}),t[27]=s,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>u(e.target.value),t[30]=W):W=t[30];let G;t[31]===l?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:l})]}),t[31]=l,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(_,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(h,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(g,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(ee,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(y,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{Ai as a,n as o}from"./awsClient.js";import{Dn as s,Oi as c,On as l,kn as u}from"./index.js";import{t as d}from"./error-banner.js";import{a as f,t as p}from"./field.js";import{a as m,i as ee,l as te,n as h,o as g,r as _,s as v,t as y}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends u(s,l,`ImportCertificate`,a){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=c(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await o().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[a,o]=(0,S.useState)(``),[s,c]=(0,S.useState)(``),[l,u]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{o(``),c(``),u(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==a||t[6]!==s?(A=a.trim().length>0&&s.trim().length>0,t[5]=a,t[6]=s,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==a||t[10]!==l||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==s||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:a,privateKey:s,certificateChain:l});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=a,t[10]=l,t[11]=x,t[12]=i,t[13]=r,t[14]=s,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(v,{children:[(0,D.jsx)(te,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(d,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>o(e.target.value),t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:a})]}),t[23]=a,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>c(e.target.value),t[26]=V):V=t[26];let H;t[27]===s?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:s})]}),t[27]=s,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>u(e.target.value),t[30]=W):W=t[30];let G;t[31]===l?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:l})]}),t[31]=l,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(_,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(h,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(g,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(ee,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(y,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/check.js b/spinifex/services/spinifexui/frontend/dist/assets/check.js index 95781a76d..29c46958c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/check.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/check.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js index 9e4b78672..20522a759 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js index 96f70a4e5..4822b1973 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/circle-arrow-up.js b/spinifex/services/spinifexui/frontend/dist/assets/circle-arrow-up.js index 96c3296c3..8ce16afaf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/circle-arrow-up.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/circle-arrow-up.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js index 2078d7620..7e97a7a87 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js @@ -1,3 +1,3 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{Ft as i}from"./auth.js";import{t as a}from"./check.js";import{t as o}from"./chevron-down.js";import{t as s}from"./copy.js";import{t as c}from"./button.js";import{hi as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=l(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=r(),p=t(n(),1),m=e(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{Ft as i}from"./auth.js";import{t as a}from"./check.js";import{t as o}from"./chevron-down.js";import{t as s}from"./copy.js";import{t as c}from"./button.js";import{wi as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=l(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=r(),p=t(n(),1),m=e(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` `)}function _(e){let t=(0,f.c)(18),{commands:n}=e,[r,l]=(0,p.useState)(!1),{copied:h,copy:_}=u();if(n.length===0)return null;let b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>l(y),t[0]=b):b=t[0];let x,S;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,m.jsx)(d,{className:`size-3.5`}),S=(0,m.jsx)(`span`,{children:`AWS CLI`}),t[1]=x,t[2]=S):(x=t[1],S=t[2]);let C=r&&`rotate-180`,w;t[3]===C?w=t[4]:(w=i(`ml-auto size-3.5 transition-transform`,C),t[3]=C,t[4]=w);let T;t[5]===w?T=t[6]:(T=(0,m.jsx)(o,{className:w}),t[5]=w,t[6]=T);let E;t[7]!==r||t[8]!==T?(E=(0,m.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center gap-2 px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,"aria-expanded":r,children:[x,S,T]}),t[7]=r,t[8]=T,t[9]=E):E=t[9];let D;t[10]!==n||t[11]!==h||t[12]!==_||t[13]!==r?(D=r&&(0,m.jsxs)(`div`,{className:`border-t border-border`,children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-3 py-1.5`,children:[(0,m.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:n.length>1?`${n.length} commands`:`command`}),(0,m.jsxs)(c,{type:`button`,variant:`ghost`,size:`xs`,onClick:async()=>await _(g(n)),children:[h?(0,m.jsx)(a,{className:`size-2.5`}):(0,m.jsx)(s,{className:`size-2.5`}),h?`Copied`:`Copy`]})]}),(0,m.jsx)(`div`,{className:`overflow-x-auto p-3`,children:n.map((e,t)=>(0,m.jsxs)(`div`,{children:[n.length>1&&(0,m.jsx)(`div`,{className:`mb-1 text-[0.625rem] font-medium text-muted-foreground`,children:e.label}),(0,m.jsx)(`pre`,{className:`font-mono text-xs/relaxed`,children:(0,m.jsx)(`code`,{children:e.parts.map(v)})}),t{let t=!a,n=h(m,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return T.useMemo(()=>({disabled:i,handleTrigger:y,mounted:s,open:a,panelId:v,setMounted:c,setOpen:o,setPanelIdState:_,transitionStatus:l}),[i,y,s,a,v,c,o,_,l])}var D=T.createContext(void 0);function O(){let e=T.useContext(D);if(e===void 0)throw Error(s(15));return e}var k=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=_.startingStyle]=`startingStyle`,e[e.endingStyle=_.endingStyle]=`endingStyle`,e}({}),A=function(e){return e.panelOpen=`data-panel-open`,e}({}),j={[k.open]:``},M={[k.closed]:``},N={open(e){return e?{[A.panelOpen]:``}:null}},P={open(e){return e?j:M},...y},F=e(),I=T.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:o=!1,onOpenChange:s,open:c,style:l,...u}=e,f=d(s),p=E({open:c,defaultOpen:i,onOpenChange:f,disabled:o}),m=T.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),h=T.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),g=a(`div`,e,{state:m,ref:t,props:u,stateAttributesMapping:P});return(0,F.jsx)(D.Provider,{value:h,children:g})}),L={...N,...y},R=T.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:o,disabled:s}=O(),{className:c,disabled:l=s,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=u({disabled:l,focusableWhenDisabled:!0,native:f});return a(`button`,e,{state:o,ref:[t,g],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},m,h],stateAttributesMapping:L})}),z={height:void 0,width:void 0};function B(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:a,mounted:o,onOpenChange:s,open:c,setMounted:u,setOpen:f,transitionStatus:m}=e,g=T.useRef(null),_=T.useRef(null),[y,w]=T.useState(z),E=T.useRef(z),D=T.useRef(!1),O=T.useRef(c),A=T.useRef(!1),[j,M]=T.useState(!1),N=T.useRef(null),P=i(t,g),F=x({mounted:o,open:c}),I=v(g,!1,!1),L=!c&&!o,R=j?`idle`:m,B=c&&(O.current||A.current),U=!c&&o&&_.current===`css-animation`&&y.height===void 0&&y.width===void 0?E.current:y,K=n&&L&&_.current!==`css-animation`,q=d((e,t=!0)=>{t&&(E.current=e),w(e)}),J=d(()=>{N.current?.(),N.current=null}),Y=d(e=>{J(),N.current=()=>{N.current=null,e()}}),X=d(()=>{c&&o&&_.current===`css-animation`&&(A.current=!0)});l(()=>{!j||m===`starting`||M(!1)},[j,m]),T.useEffect(()=>()=>{X(),J()},[X,J]),l(()=>{let e=g.current;if(!e)return;!c&&N.current&&J();let t=H(e,B);if(_.current=t,c&&m===`idle`&&O.current&&t===`css-animation`){E.current=V(e);return}if(c&&m===`starting`){let n=D.current;if(D.current=!1,t===`none`){q(V(e)),M(!0);return}if(t===`css-transition`){let t=G(e);if(q(V(e)),!n)return t;let r=W(e,`transition-duration`,`0s`);return Y(r),M(!0),t}if(t===`css-animation`){if(q(V(e)),!n){W(e,`animation-name`,`none`)();return}let t=W(e,`animation-name`,`none`),r=W(e,`animation-duration`,`0s`);t(),Y(r),M(!0);return}}if(!c&&o&&(m===`idle`||m===`starting`)){if(O.current=!1,A.current=!1,t===`none`){q(z,!1),u(!1);return}q(V(e));return}if(m!==`ending`)return;if(t===`none`){u(!1);return}let n=V(e);if(!((n.height??0)>0||(n.width??0)>0)){u(!1);return}q(n),t===`css-animation`&&W(e,`animation-name`,`none`)()},[o,c,J,q,u,Y,B,m]),b({enabled:c&&o&&R===`idle`,open:!0,ref:g,onComplete(){c&&q(z,!1)}}),T.useEffect(()=>{if(c||!o||R!==`ending`||!g.current)return;let e=new AbortController,t=-1;function n(){F.current.open||(u(!1),q(z,!1))}return t=S.request(()=>{e.signal.aborted||I(n,e.signal)}),()=>{S.cancel(t),e.abort()}},[F,o,c,R,I,q,u]),l(()=>{let e=g.current;!e||!n||!L||e.setAttribute(`hidden`,`until-found`)},[L,n]),T.useEffect(function(){let e=g.current;if(!e)return;function t(e){let t=h(p,e);s(!0,t),!t.isCanceled&&(D.current=!0,f(!0))}return C(e,`beforematch`,t)},[s,f]);let Z=a||n||o||c;return{height:U.height,props:{...K?{[k.startingStyle]:``}:void 0,hidden:L,id:r},ref:P,shouldPreventOpenAnimation:B,shouldRender:Z,transitionStatus:R,width:U.width}}function V(e){return{height:e.scrollHeight,width:e.scrollWidth}}function H(e,t=!1){let n=c(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&U(n.animationDuration),i=U(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function U(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function W(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function G(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=S.request(n);return()=>{S.cancel(r),n()}}var K=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),q=T.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:s,id:c,style:u,...d}=e,{mounted:f,onOpenChange:p,open:m,panelId:h,setMounted:g,setPanelIdState:_,setOpen:v,state:y,transitionStatus:b}=O(),x=r??!1,S=i??!1;l(()=>{if(c)return _(c),()=>{_(void 0)}},[c,_]);let{height:C,props:w,ref:T,shouldPreventOpenAnimation:E,shouldRender:D,transitionStatus:k,width:A}=B({externalRef:t,hiddenUntilFound:x,id:h,keepMounted:S,mounted:f,onOpenChange:p,open:m,setMounted:g,setOpen:v,transitionStatus:b}),j={...y,transitionStatus:k},M=o(u,j),N=a(`div`,{...e,style:void 0},{state:j,ref:T,props:[w,{style:{[K.collapsiblePanelHeight]:C===void 0?`auto`:`${C}px`,[K.collapsiblePanelWidth]:A===void 0?`auto`:`${A}px`}},d,M?{style:M}:void 0,E?{style:{animationName:`none`}}:void 0],stateAttributesMapping:P});return D?N:null}),J=r();function Y(e){let t=(0,J.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(I,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function X(e){let t=(0,J.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(R,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function Z(e){let t=(0,J.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(q,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{Z as n,X as r,Y as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{c as i,n as a,r as o,u as s}from"./dist.js";import{_ as c,o as l,r as u,s as d}from"./button.js";import{S as f,f as p,g as m,t as h}from"./createBaseUIEventDetails.js";import{Fr as g,Ir as _,Lr as v,Mr as y,Nr as b,Pr as x,Rr as S,Sr as C,xr as w}from"./index.js";var T=t(n(),1);function E(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,[a,o]=y({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:c,transitionStatus:l}=b(a,!0,!0),u=f(),[p,g]=T.useState(),_=p??u,v=d(e=>{let t=!a,n=h(m,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return T.useMemo(()=>({disabled:i,handleTrigger:v,mounted:s,open:a,panelId:_,setMounted:c,setOpen:o,setPanelIdState:g,transitionStatus:l}),[i,v,s,a,_,c,o,g,l])}var D=T.createContext(void 0);function O(){let e=T.useContext(D);if(e===void 0)throw Error(s(15));return e}var k=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=_.startingStyle]=`startingStyle`,e[e.endingStyle=_.endingStyle]=`endingStyle`,e}({}),A=function(e){return e.panelOpen=`data-panel-open`,e}({}),j={[k.open]:``},M={[k.closed]:``},N={open(e){return e?{[A.panelOpen]:``}:null}},P={open(e){return e?j:M},...v},F=e(),I=T.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:o=!1,onOpenChange:s,open:c,style:l,...u}=e,f=d(s),p=E({open:c,defaultOpen:i,onOpenChange:f,disabled:o}),m=T.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),h=T.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),g=a(`div`,e,{state:m,ref:t,props:u,stateAttributesMapping:P});return(0,F.jsx)(D.Provider,{value:h,children:g})}),L={...N,...v},R=T.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:o,disabled:s}=O(),{className:c,disabled:l=s,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=u({disabled:l,focusableWhenDisabled:!0,native:f});return a(`button`,e,{state:o,ref:[t,g],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},m,h],stateAttributesMapping:L})}),z={height:void 0,width:void 0};function B(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:a,mounted:o,onOpenChange:s,open:c,setMounted:u,setOpen:f,transitionStatus:m}=e,_=T.useRef(null),v=T.useRef(null),[y,b]=T.useState(z),E=T.useRef(z),D=T.useRef(!1),O=T.useRef(c),A=T.useRef(!1),[j,M]=T.useState(!1),N=T.useRef(null),P=i(t,_),F=w({mounted:o,open:c}),I=g(_,!1,!1),L=!c&&!o,R=j?`idle`:m,B=c&&(O.current||A.current),U=!c&&o&&v.current===`css-animation`&&y.height===void 0&&y.width===void 0?E.current:y,K=n&&L&&v.current!==`css-animation`,q=d((e,t=!0)=>{t&&(E.current=e),b(e)}),J=d(()=>{N.current?.(),N.current=null}),Y=d(e=>{J(),N.current=()=>{N.current=null,e()}}),X=d(()=>{c&&o&&v.current===`css-animation`&&(A.current=!0)});l(()=>{!j||m===`starting`||M(!1)},[j,m]),T.useEffect(()=>()=>{X(),J()},[X,J]),l(()=>{let e=_.current;if(!e)return;!c&&N.current&&J();let t=H(e,B);if(v.current=t,c&&m===`idle`&&O.current&&t===`css-animation`){E.current=V(e);return}if(c&&m===`starting`){let n=D.current;if(D.current=!1,t===`none`){q(V(e)),M(!0);return}if(t===`css-transition`){let t=G(e);if(q(V(e)),!n)return t;let r=W(e,`transition-duration`,`0s`);return Y(r),M(!0),t}if(t===`css-animation`){if(q(V(e)),!n){W(e,`animation-name`,`none`)();return}let t=W(e,`animation-name`,`none`),r=W(e,`animation-duration`,`0s`);t(),Y(r),M(!0);return}}if(!c&&o&&(m===`idle`||m===`starting`)){if(O.current=!1,A.current=!1,t===`none`){q(z,!1),u(!1);return}q(V(e));return}if(m!==`ending`)return;if(t===`none`){u(!1);return}let n=V(e);if(!((n.height??0)>0||(n.width??0)>0)){u(!1);return}q(n),t===`css-animation`&&W(e,`animation-name`,`none`)()},[o,c,J,q,u,Y,B,m]),x({enabled:c&&o&&R===`idle`,open:!0,ref:_,onComplete(){c&&q(z,!1)}}),T.useEffect(()=>{if(c||!o||R!==`ending`||!_.current)return;let e=new AbortController,t=-1;function n(){F.current.open||(u(!1),q(z,!1))}return t=S.request(()=>{e.signal.aborted||I(n,e.signal)}),()=>{S.cancel(t),e.abort()}},[F,o,c,R,I,q,u]),l(()=>{let e=_.current;!e||!n||!L||e.setAttribute(`hidden`,`until-found`)},[L,n]),T.useEffect(function(){let e=_.current;if(!e)return;function t(e){let t=h(p,e);s(!0,t),!t.isCanceled&&(D.current=!0,f(!0))}return C(e,`beforematch`,t)},[s,f]);let Z=a||n||o||c;return{height:U.height,props:{...K?{[k.startingStyle]:``}:void 0,hidden:L,id:r},ref:P,shouldPreventOpenAnimation:B,shouldRender:Z,transitionStatus:R,width:U.width}}function V(e){return{height:e.scrollHeight,width:e.scrollWidth}}function H(e,t=!1){let n=c(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&U(n.animationDuration),i=U(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function U(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function W(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function G(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=S.request(n);return()=>{S.cancel(r),n()}}var K=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),q=T.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:s,id:c,style:u,...d}=e,{mounted:f,onOpenChange:p,open:m,panelId:h,setMounted:g,setPanelIdState:_,setOpen:v,state:y,transitionStatus:b}=O(),x=r??!1,S=i??!1;l(()=>{if(c)return _(c),()=>{_(void 0)}},[c,_]);let{height:C,props:w,ref:T,shouldPreventOpenAnimation:E,shouldRender:D,transitionStatus:k,width:A}=B({externalRef:t,hiddenUntilFound:x,id:h,keepMounted:S,mounted:f,onOpenChange:p,open:m,setMounted:g,setOpen:v,transitionStatus:b}),j={...y,transitionStatus:k},M=o(u,j),N=a(`div`,{...e,style:void 0},{state:j,ref:T,props:[w,{style:{[K.collapsiblePanelHeight]:C===void 0?`auto`:`${C}px`,[K.collapsiblePanelWidth]:A===void 0?`auto`:`${A}px`}},d,M?{style:M}:void 0,E?{style:{animationName:`none`}}:void 0],stateAttributesMapping:P});return D?N:null}),J=r();function Y(e){let t=(0,J.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(I,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function X(e){let t=(0,J.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(R,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function Z(e){let t=(0,J.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(q,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{Z as n,X as r,Y as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder.js b/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder.js index 051520821..201c3db41 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder.js @@ -1 +1 @@ -import{yn as e}from"./awsClient.js";import{ct as t,ht as n}from"./auth.js";var r=n(e,`AWSWesleyFrontend`,`EKSClient`,t),i={},a=(e,t,n,r)=>[];export{a as n,r,i as t}; \ No newline at end of file +import{jn as e}from"./awsClient.js";import{ct as t,ht as n}from"./auth.js";var r=n(e,`AWSWesleyFrontend`,`EKSClient`,t),i={},a=(e,t,n,r)=>[];export{a as n,r,i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder2.js b/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder2.js index fe7c9181f..952f5a1bd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder2.js @@ -1 +1 @@ -import{Jt as e}from"./awsClient.js";import{ct as t,ht as n}from"./auth.js";var r=n(e,`ElasticLoadBalancing_v10`,`ElasticLoadBalancingV2Client`,t),i={},a=(e,t,n,r)=>[];export{a as n,r,i as t}; \ No newline at end of file +import{on as e}from"./awsClient.js";import{ct as t,ht as n}from"./auth.js";var r=n(e,`ElasticLoadBalancing_v10`,`ElasticLoadBalancingV2Client`,t),i={},a=(e,t,n,r)=>[];export{a as n,r,i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder3.js b/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder3.js index 4244f8e5b..aeb08850d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/commandBuilder3.js @@ -1 +1 @@ -import{bt as e}from"./awsClient.js";import{ct as t,ht as n}from"./auth.js";var r=n(e,`AWSIdentityManagementV20100508`,`IAMClient`,t),i={},a=(e,t,n,r)=>[];export{a as n,r,i as t}; \ No newline at end of file +import{Mt as e}from"./awsClient.js";import{ct as t,ht as n}from"./auth.js";var r=n(e,`AWSIdentityManagementV20100508`,`IAMClient`,t),i={},a=(e,t,n,r)=>[];export{a as n,r,i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/copy.js b/spinifex/services/spinifexui/frontend/dist/assets/copy.js index ee5a3462c..8fb69d4a3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/copy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/copy.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js index b395c17b9..f479577a0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{f as n,u as r}from"./auth.js";import{t as i}from"./back-link.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./s3.js";import{vi as s,xr as c}from"./index.js";import{a as l,i as u,t as d}from"./zod.js";import{t as f}from"./error-banner.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";var v=t(),y=r({bucketName:n().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),b=e();function x(){let e=(0,v.c)(44),t=s(),n=o(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={resolver:d(y)},e[0]=r):r=e[0];let{handleSubmit:x,register:C,control:w,formState:T}=u(r),{errors:E,isSubmitting:D}=T,O;e[1]===w?O=e[2]:(O={control:w},e[1]=w,e[2]=O);let k=l(O),A;e[3]===k?A=e[4]:(A=e=>e?k[e]:void 0,e[3]=k,e[4]=A);let j=A,M;e[5]!==n||e[6]!==t?(M=async e=>{await n.mutateAsync(e),t({to:`/s3/ls`})},e[5]=n,e[6]=t,e[7]=M):M=e[7];let N=M,P,F;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(i,{to:`/s3/ls`,children:`Back to buckets`}),F=(0,b.jsx)(m,{title:`Create Bucket`}),e[8]=P,e[9]=F):(P=e[8],F=e[9]);let I;e[10]===n.error?I=e[11]:(I=n.error&&(0,b.jsx)(f,{error:n.error,msg:`Failed to create bucket`}),e[10]=n.error,e[11]=I);let L;e[12]!==x||e[13]!==N?(L=x(N),e[12]=x,e[13]=N,e[14]=L):L=e[14];let R;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,b.jsx)(h,{children:(0,b.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),e[15]=R):R=e[15];let z=!!E.bucketName,B;e[16]===C?B=e[17]:(B=C(`bucketName`),e[16]=C,e[17]=B);let V;e[18]!==z||e[19]!==B?(V=(0,b.jsx)(c,{"aria-invalid":z,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...B}),e[18]=z,e[19]=B,e[20]=V):V=e[20];let H;e[21]===E.bucketName?H=e[22]:(H=(0,b.jsx)(g,{errors:[E.bucketName]}),e[21]=E.bucketName,e[22]=H);let U;e[23]!==V||e[24]!==H?(U=(0,b.jsxs)(_,{children:[R,V,H]}),e[23]=V,e[24]=H,e[25]=U):U=e[25];let W;e[26]===j?W=e[27]:(W=S(j),e[26]=j,e[27]=W);let G;e[28]===W?G=e[29]:(G=(0,b.jsx)(a,{commands:W}),e[28]=W,e[29]=G);let K;e[30]===t?K=e[31]:(K=async()=>await t({to:`/s3/ls`}),e[30]=t,e[31]=K);let q;e[32]!==n.isPending||e[33]!==D||e[34]!==K?(q=(0,b.jsx)(p,{isPending:n.isPending,isSubmitting:D,onCancel:K,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),e[32]=n.isPending,e[33]=D,e[34]=K,e[35]=q):q=e[35];let J;e[36]!==U||e[37]!==G||e[38]!==q||e[39]!==L?(J=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:L,children:[U,G,q]}),e[36]=U,e[37]=G,e[38]=q,e[39]=L,e[40]=J):J=e[40];let Y;return e[41]!==J||e[42]!==I?(Y=(0,b.jsxs)(b.Fragment,{children:[P,F,I,J]}),e[41]=J,e[42]=I,e[43]=Y):Y=e[43],Y}function S(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{x as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{f as n,u as r}from"./auth.js";import{t as i}from"./back-link.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./s3.js";import{Ar as s,Di as c}from"./index.js";import{a as l,i as u,t as d}from"./zod.js";import{t as f}from"./error-banner.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";var v=t(),y=r({bucketName:n().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),b=e();function x(){let e=(0,v.c)(44),t=c(),n=o(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={resolver:d(y)},e[0]=r):r=e[0];let{handleSubmit:x,register:C,control:w,formState:T}=u(r),{errors:E,isSubmitting:D}=T,O;e[1]===w?O=e[2]:(O={control:w},e[1]=w,e[2]=O);let k=l(O),A;e[3]===k?A=e[4]:(A=e=>e?k[e]:void 0,e[3]=k,e[4]=A);let j=A,M;e[5]!==n||e[6]!==t?(M=async e=>{await n.mutateAsync(e),t({to:`/s3/ls`})},e[5]=n,e[6]=t,e[7]=M):M=e[7];let N=M,P,F;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(i,{to:`/s3/ls`,children:`Back to buckets`}),F=(0,b.jsx)(m,{title:`Create Bucket`}),e[8]=P,e[9]=F):(P=e[8],F=e[9]);let I;e[10]===n.error?I=e[11]:(I=n.error&&(0,b.jsx)(f,{error:n.error,msg:`Failed to create bucket`}),e[10]=n.error,e[11]=I);let L;e[12]!==x||e[13]!==N?(L=x(N),e[12]=x,e[13]=N,e[14]=L):L=e[14];let R;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,b.jsx)(h,{children:(0,b.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),e[15]=R):R=e[15];let z=!!E.bucketName,B;e[16]===C?B=e[17]:(B=C(`bucketName`),e[16]=C,e[17]=B);let V;e[18]!==z||e[19]!==B?(V=(0,b.jsx)(s,{"aria-invalid":z,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...B}),e[18]=z,e[19]=B,e[20]=V):V=e[20];let H;e[21]===E.bucketName?H=e[22]:(H=(0,b.jsx)(g,{errors:[E.bucketName]}),e[21]=E.bucketName,e[22]=H);let U;e[23]!==V||e[24]!==H?(U=(0,b.jsxs)(_,{children:[R,V,H]}),e[23]=V,e[24]=H,e[25]=U):U=e[25];let W;e[26]===j?W=e[27]:(W=S(j),e[26]=j,e[27]=W);let G;e[28]===W?G=e[29]:(G=(0,b.jsx)(a,{commands:W}),e[28]=W,e[29]=G);let K;e[30]===t?K=e[31]:(K=async()=>await t({to:`/s3/ls`}),e[30]=t,e[31]=K);let q;e[32]!==n.isPending||e[33]!==D||e[34]!==K?(q=(0,b.jsx)(p,{isPending:n.isPending,isSubmitting:D,onCancel:K,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),e[32]=n.isPending,e[33]=D,e[34]=K,e[35]=q):q=e[35];let J;e[36]!==U||e[37]!==G||e[38]!==q||e[39]!==L?(J=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:L,children:[U,G,q]}),e[36]=U,e[37]=G,e[38]=q,e[39]=L,e[40]=J):J=e[40];let Y;return e[41]!==J||e[42]!==I?(Y=(0,b.jsxs)(b.Fragment,{children:[P,F,I,J]}),e[41]=J,e[42]=I,e[43]=Y):Y=e[43],Y}function S(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js b/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js index 273545873..3c21d5588 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./check.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./copy.js";import{t as m}from"./rotate-cw.js";import{t as h}from"./triangle-alert.js";import{t as g}from"./button.js";import{a as _,d as v,g as y,o as b,t as x}from"./eks.js";import{i as S,u as C}from"./iam.js";import{Et as w,It as T,nn as E,on as D,vi as O,xr as k,yi as ee}from"./index.js";import{i as te,n as A,t as ne}from"./zod.js";import{t as j}from"./use-copy-to-clipboard.js";import{t as re}from"./error-banner.js";import{t as ie}from"./form-actions.js";import{t as M}from"./page-heading.js";import{a as N,r as P,t as F}from"./field.js";import{a as I,i as L,l as R,n as z,o as B,r as V,s as H,t as U}from"./alert-dialog.js";import{n as W}from"./system-managed.js";import{t as G}from"./policy-document-viewer.js";var K=t(n(),1),q=e();function J(e){return`${e.trim()||`cluster`}-eks-cluster-role`}function ae({clusterName:e,open:t,onOpenChange:n,onCreated:r}){let i=C(),a=S(),[o,s]=(0,K.useState)(J(e)),[c,l]=(0,K.useState)(null);(0,K.useEffect)(()=>{t&&(s(J(e)),l(null))},[t,e]);let u=i.isPending||a.isPending;function d(e){e||l(null),n(e)}async function f(){l(null);let e=o.trim();try{let t=await i.mutateAsync({roleName:e,assumeRolePolicyDocument:_});await a.mutateAsync({roleName:e,policyArn:x});let o=t.Role?.Arn;if(!o){l(`Role was created but no ARN was returned.`);return}r(o),n(!1)}catch(e){l(e instanceof Error?e.message:`Failed to create role.`)}}return(0,q.jsx)(U,{onOpenChange:d,open:t,children:(0,q.jsxs)(L,{className:`max-w-lg sm:max-w-lg`,children:[(0,q.jsxs)(H,{children:[(0,q.jsx)(R,{children:`Create cluster IAM role`}),(0,q.jsx)(I,{children:`Creates an IAM role trusted by the EKS control plane and attaches the AmazonEKSClusterPolicy managed policy.`})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`eks-role-name`,children:`Role name`})}),(0,q.jsx)(k,{id:`eks-role-name`,onChange:e=>s(e.target.value),placeholder:`my-cluster-eks-cluster-role`,value:o})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Trust policy (JSON)`}),(0,q.jsx)(G,{document:_})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Attached managed policy`}),(0,q.jsx)(`code`,{className:`block rounded-md border bg-muted p-2 font-mono text-sm break-all`,children:x}),(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Grants the EKS control plane the permissions it needs to manage the cluster.`})]}),c&&(0,q.jsx)(`p`,{className:`text-sm text-destructive`,children:c}),(0,q.jsxs)(B,{children:[(0,q.jsx)(V,{children:`Cancel`}),(0,q.jsx)(z,{disabled:u||!o.trim(),onClick:f,children:u?`Creating…`:`Create role`})]})]})})}var Y=r(),X=`spx admin images import --name spinifex-eks-node`;function oe(e){let t=(0,Y.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=j(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(h,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=o):o=t[0];let c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`EKS system image not found`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`EKS clusters boot a Spinifex-managed node image (K3s) that is not shipped with the platform. Import it before creating a cluster.`})]}),t[1]=c):c=t[1];let l,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,q.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),u=(0,q.jsx)(`span`,{className:`flex-1 text-foreground`,children:X}),t[2]=l,t[3]=u):(l=t[2],u=t[3]);let d;t[4]===a?d=t[5]:(d=()=>void a(X),t[4]=a,t[5]=d);let f;t[6]===i?f=t[7]:(f=i?(0,q.jsx)(s,{className:`size-3.5 text-tactical-green`}):(0,q.jsx)(p,{className:`size-3.5`}),t[6]=i,t[7]=f);let _;t[8]!==d||t[9]!==f?(_=(0,q.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[l,u,(0,q.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:d,type:`button`,children:f})]}),t[8]=d,t[9]=f,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=v):v=t[11];let y=n?`size-4 animate-spin`:`size-4`,b;t[12]===y?b=t[13]:(b=(0,q.jsx)(m,{className:y}),t[12]=y,t[13]=b);let x;t[14]!==n||t[15]!==r||t[16]!==b?(x=(0,q.jsxs)(g,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[b,`Recheck`]}),t[14]=n,t[15]=r,t[16]=b,t[17]=x):x=t[17];let S;return t[18]!==x||t[19]!==_?(S=(0,q.jsx)(`div`,{className:`max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[o,(0,q.jsxs)(`div`,{className:`space-y-4`,children:[c,_,v,x]})]})}),t[18]=x,t[19]=_,t[20]=S):S=t[20],S}function se(e){let t=a(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function Z(e){let t=a(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function Q(){let e=O(),t=ee(),[n,r]=(0,K.useState)(!1),[a,s]=(0,K.useState)(!1),{data:p}=i(D),{data:m}=i(E),{data:h}=i(w),{data:_}=i(T),x=y(),S=(_.Images??[]).some(W),C=async()=>{r(!0);try{await t.invalidateQueries({queryKey:T.queryKey})}finally{r(!1)}},j=p.Vpcs??[],I=m.Subnets??[],L=h.Roles??[],{control:R,formState:{errors:z,isSubmitting:B},handleSubmit:V,register:H,setValue:U,watch:G}=te({resolver:ne(v),defaultValues:{name:``,version:b[0],roleArn:``,vpcId:``,subnetIds:[],bootstrapClusterCreatorAdminPermissions:!0,endpointPublicAccess:!0,endpointPrivateAccess:!1,publicAccessCidrs:[`0.0.0.0/0`]}}),J=G(`vpcId`),Y=G(`subnetIds`),X=G(`endpointPublicAccess`),Q=G(`publicAccessCidrs`),$=I.filter(e=>e.VpcId===J),ce=(e=``)=>{U(`vpcId`,e??``,{shouldValidate:!0}),U(`subnetIds`,[])},le=e=>{let t=Y.includes(e)?Y.filter(t=>t!==e):[...Y,e];U(`subnetIds`,t,{shouldValidate:!0})},ue=(e,t)=>{let n=[...Q];n[e]=t,U(`publicAccessCidrs`,n,{shouldValidate:!0})},de=()=>U(`publicAccessCidrs`,[...Q,``],{shouldValidate:!0}),fe=e=>U(`publicAccessCidrs`,Q.filter((t,n)=>n!==e),{shouldValidate:!0}),pe=G(`name`),me=async e=>{await t.invalidateQueries({queryKey:w.queryKey}),U(`roleArn`,e,{shouldValidate:!0})};return S?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(M,{subtitle:`EKS`,title:`Create Cluster`}),x.error&&(0,q.jsx)(re,{error:x.error,msg:`Failed to create cluster`}),(0,q.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V(async t=>{await x.mutateAsync(t),await e({to:`/eks/list-clusters/$clusterName`,params:{clusterName:t.name}})}),children:[(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-name`,children:`Name`})}),(0,q.jsx)(k,{"aria-invalid":!!z.name,id:`cluster-name`,placeholder:`my-cluster`,...H(`name`)}),(0,q.jsx)(P,{errors:[z.name]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-version`,children:`Kubernetes version`})}),(0,q.jsx)(A,{control:R,name:`version`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(d,{className:`w-full`,id:`cluster-version`,children:(0,q.jsx)(c,{placeholder:`Select version`})}),(0,q.jsx)(u,{children:b.map(e=>(0,q.jsx)(l,{value:e,children:e},e))})]})}),(0,q.jsx)(P,{errors:[z.version]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-role`,children:`Cluster IAM role`})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(A,{control:R,name:`roleArn`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(d,{"aria-invalid":!!z.roleArn,className:`w-full`,id:`cluster-role`,children:(0,q.jsx)(c,{placeholder:`Select role`})}),(0,q.jsx)(u,{children:L.map(e=>(0,q.jsx)(l,{value:e.Arn??``,children:e.RoleName},e.Arn))})]})}),(0,q.jsx)(g,{onClick:()=>s(!0),type:`button`,variant:`outline`,children:`Create role`})]}),(0,q.jsx)(P,{errors:[z.roleArn]})]}),(0,q.jsx)(ae,{clusterName:pe,onCreated:me,onOpenChange:s,open:a}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-vpc`,children:`VPC`})}),(0,q.jsx)(A,{control:R,name:`vpcId`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e=>ce(e),value:e.value,children:[(0,q.jsx)(d,{"aria-invalid":!!z.vpcId,className:`w-full`,id:`cluster-vpc`,children:(0,q.jsx)(c,{placeholder:`Select VPC`})}),(0,q.jsx)(u,{children:j.map(e=>(0,q.jsx)(l,{value:e.VpcId??``,children:se(e)},e.VpcId))})]})}),(0,q.jsx)(P,{errors:[z.vpcId]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Subnets (select at least 1)`}),$.length===0?(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,q.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Subnet ${Z(e)}`,checked:Y.includes(e.SubnetId??``),onChange:()=>le(e.SubnetId??``),type:`checkbox`}),(0,q.jsx)(`span`,{className:`font-mono`,children:Z(e)})]},e.SubnetId))}),(0,q.jsx)(P,{errors:[z.subnetIds]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Endpoint access`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Public access exposes the API server on an internet-facing endpoint; private access keeps it reachable only from within the VPC. At least one must be enabled.`}),(0,q.jsx)(A,{control:R,name:`endpointPublicAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable public access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Public`]})}),(0,q.jsx)(A,{control:R,name:`endpointPrivateAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable private access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Private`]})}),(0,q.jsx)(P,{errors:[z.endpointPublicAccess]}),X&&(0,q.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Public access source ranges (CIDR). Defaults to`,` `,(0,q.jsx)(`span`,{className:`font-mono`,children:`0.0.0.0/0`}),`.`]}),Q.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(k,{"aria-label":`Public access CIDR ${t+1}`,className:`font-mono`,onChange:e=>ue(t,e.target.value),placeholder:`203.0.113.0/24`,value:e}),(0,q.jsx)(g,{onClick:()=>fe(t),size:`sm`,type:`button`,variant:`ghost`,children:`Remove`})]},t)),(0,q.jsx)(g,{onClick:de,size:`sm`,type:`button`,variant:`outline`,children:`Add CIDR`}),(0,q.jsx)(P,{errors:[z.publicAccessCidrs]})]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Access`}),(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Authentication mode is `,(0,q.jsx)(`span`,{className:`font-mono`,children:`API`}),` (IAM access entries). The legacy aws-auth ConfigMap is not supported.`]}),(0,q.jsx)(A,{control:R,name:`bootstrapClusterCreatorAdminPermissions`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Grant the cluster creator admin permissions`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Grant the cluster creator admin permissions`]})})]}),(0,q.jsx)(ie,{isPending:x.isPending,isSubmitting:B,onCancel:async()=>await e({to:`/eks/list-clusters`}),pendingLabel:`Creating…`,submitLabel:`Create Cluster`})]})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(M,{subtitle:`EKS`,title:`Create Cluster`}),(0,q.jsx)(oe,{isRechecking:n,onRecheck:C})]})}var $=Q;export{$ as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./check.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./copy.js";import{t as m}from"./rotate-cw.js";import{t as h}from"./triangle-alert.js";import{t as g}from"./button.js";import{a as _,d as v,g as y,o as b,t as x}from"./eks.js";import{i as S,u as C}from"./iam.js";import{Ar as w,At as T,Di as E,Gt as D,Oi as O,dn as k,hn as ee}from"./index.js";import{i as te,n as A,t as ne}from"./zod.js";import{t as j}from"./use-copy-to-clipboard.js";import{t as re}from"./error-banner.js";import{t as ie}from"./form-actions.js";import{t as M}from"./page-heading.js";import{a as N,r as P,t as F}from"./field.js";import{a as I,i as L,l as R,n as z,o as B,r as V,s as H,t as U}from"./alert-dialog.js";import{n as W}from"./system-managed.js";import{t as G}from"./policy-document-viewer.js";var K=t(n(),1),q=e();function J(e){return`${e.trim()||`cluster`}-eks-cluster-role`}function ae({clusterName:e,open:t,onOpenChange:n,onCreated:r}){let i=C(),a=S(),[o,s]=(0,K.useState)(J(e)),[c,l]=(0,K.useState)(null);(0,K.useEffect)(()=>{t&&(s(J(e)),l(null))},[t,e]);let u=i.isPending||a.isPending;function d(e){e||l(null),n(e)}async function f(){l(null);let e=o.trim();try{let t=await i.mutateAsync({roleName:e,assumeRolePolicyDocument:_});await a.mutateAsync({roleName:e,policyArn:x});let o=t.Role?.Arn;if(!o){l(`Role was created but no ARN was returned.`);return}r(o),n(!1)}catch(e){l(e instanceof Error?e.message:`Failed to create role.`)}}return(0,q.jsx)(U,{onOpenChange:d,open:t,children:(0,q.jsxs)(L,{className:`max-w-lg sm:max-w-lg`,children:[(0,q.jsxs)(H,{children:[(0,q.jsx)(R,{children:`Create cluster IAM role`}),(0,q.jsx)(I,{children:`Creates an IAM role trusted by the EKS control plane and attaches the AmazonEKSClusterPolicy managed policy.`})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`eks-role-name`,children:`Role name`})}),(0,q.jsx)(w,{id:`eks-role-name`,onChange:e=>s(e.target.value),placeholder:`my-cluster-eks-cluster-role`,value:o})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Trust policy (JSON)`}),(0,q.jsx)(G,{document:_})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Attached managed policy`}),(0,q.jsx)(`code`,{className:`block rounded-md border bg-muted p-2 font-mono text-sm break-all`,children:x}),(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Grants the EKS control plane the permissions it needs to manage the cluster.`})]}),c&&(0,q.jsx)(`p`,{className:`text-sm text-destructive`,children:c}),(0,q.jsxs)(B,{children:[(0,q.jsx)(V,{children:`Cancel`}),(0,q.jsx)(z,{disabled:u||!o.trim(),onClick:f,children:u?`Creating…`:`Create role`})]})]})})}var Y=r(),X=`spx admin images import --name spinifex-eks-node`;function oe(e){let t=(0,Y.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=j(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(h,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=o):o=t[0];let c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`EKS system image not found`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`EKS clusters boot a Spinifex-managed node image (K3s) that is not shipped with the platform. Import it before creating a cluster.`})]}),t[1]=c):c=t[1];let l,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,q.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),u=(0,q.jsx)(`span`,{className:`flex-1 text-foreground`,children:X}),t[2]=l,t[3]=u):(l=t[2],u=t[3]);let d;t[4]===a?d=t[5]:(d=()=>void a(X),t[4]=a,t[5]=d);let f;t[6]===i?f=t[7]:(f=i?(0,q.jsx)(s,{className:`size-3.5 text-tactical-green`}):(0,q.jsx)(p,{className:`size-3.5`}),t[6]=i,t[7]=f);let _;t[8]!==d||t[9]!==f?(_=(0,q.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[l,u,(0,q.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:d,type:`button`,children:f})]}),t[8]=d,t[9]=f,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=v):v=t[11];let y=n?`size-4 animate-spin`:`size-4`,b;t[12]===y?b=t[13]:(b=(0,q.jsx)(m,{className:y}),t[12]=y,t[13]=b);let x;t[14]!==n||t[15]!==r||t[16]!==b?(x=(0,q.jsxs)(g,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[b,`Recheck`]}),t[14]=n,t[15]=r,t[16]=b,t[17]=x):x=t[17];let S;return t[18]!==x||t[19]!==_?(S=(0,q.jsx)(`div`,{className:`max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[o,(0,q.jsxs)(`div`,{className:`space-y-4`,children:[c,_,v,x]})]})}),t[18]=x,t[19]=_,t[20]=S):S=t[20],S}function se(e){let t=a(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function Z(e){let t=a(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function Q(){let e=E(),t=O(),[n,r]=(0,K.useState)(!1),[a,s]=(0,K.useState)(!1),{data:p}=i(ee),{data:m}=i(k),{data:h}=i(T),{data:_}=i(D),x=y(),S=(_.Images??[]).some(W),C=async()=>{r(!0);try{await t.invalidateQueries({queryKey:D.queryKey})}finally{r(!1)}},j=p.Vpcs??[],I=m.Subnets??[],L=h.Roles??[],{control:R,formState:{errors:z,isSubmitting:B},handleSubmit:V,register:H,setValue:U,watch:G}=te({resolver:ne(v),defaultValues:{name:``,version:b[0],roleArn:``,vpcId:``,subnetIds:[],bootstrapClusterCreatorAdminPermissions:!0,endpointPublicAccess:!0,endpointPrivateAccess:!1,publicAccessCidrs:[`0.0.0.0/0`]}}),J=G(`vpcId`),Y=G(`subnetIds`),X=G(`endpointPublicAccess`),Q=G(`publicAccessCidrs`),$=I.filter(e=>e.VpcId===J),ce=(e=``)=>{U(`vpcId`,e??``,{shouldValidate:!0}),U(`subnetIds`,[])},le=e=>{let t=Y.includes(e)?Y.filter(t=>t!==e):[...Y,e];U(`subnetIds`,t,{shouldValidate:!0})},ue=(e,t)=>{let n=[...Q];n[e]=t,U(`publicAccessCidrs`,n,{shouldValidate:!0})},de=()=>U(`publicAccessCidrs`,[...Q,``],{shouldValidate:!0}),fe=e=>U(`publicAccessCidrs`,Q.filter((t,n)=>n!==e),{shouldValidate:!0}),pe=G(`name`),me=async e=>{await t.invalidateQueries({queryKey:T.queryKey}),U(`roleArn`,e,{shouldValidate:!0})};return S?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(M,{subtitle:`EKS`,title:`Create Cluster`}),x.error&&(0,q.jsx)(re,{error:x.error,msg:`Failed to create cluster`}),(0,q.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V(async t=>{await x.mutateAsync(t),await e({to:`/eks/list-clusters/$clusterName`,params:{clusterName:t.name}})}),children:[(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-name`,children:`Name`})}),(0,q.jsx)(w,{"aria-invalid":!!z.name,id:`cluster-name`,placeholder:`my-cluster`,...H(`name`)}),(0,q.jsx)(P,{errors:[z.name]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-version`,children:`Kubernetes version`})}),(0,q.jsx)(A,{control:R,name:`version`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(d,{className:`w-full`,id:`cluster-version`,children:(0,q.jsx)(c,{placeholder:`Select version`})}),(0,q.jsx)(u,{children:b.map(e=>(0,q.jsx)(l,{value:e,children:e},e))})]})}),(0,q.jsx)(P,{errors:[z.version]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-role`,children:`Cluster IAM role`})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(A,{control:R,name:`roleArn`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(d,{"aria-invalid":!!z.roleArn,className:`w-full`,id:`cluster-role`,children:(0,q.jsx)(c,{placeholder:`Select role`})}),(0,q.jsx)(u,{children:L.map(e=>(0,q.jsx)(l,{value:e.Arn??``,children:e.RoleName},e.Arn))})]})}),(0,q.jsx)(g,{onClick:()=>s(!0),type:`button`,variant:`outline`,children:`Create role`})]}),(0,q.jsx)(P,{errors:[z.roleArn]})]}),(0,q.jsx)(ae,{clusterName:pe,onCreated:me,onOpenChange:s,open:a}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-vpc`,children:`VPC`})}),(0,q.jsx)(A,{control:R,name:`vpcId`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e=>ce(e),value:e.value,children:[(0,q.jsx)(d,{"aria-invalid":!!z.vpcId,className:`w-full`,id:`cluster-vpc`,children:(0,q.jsx)(c,{placeholder:`Select VPC`})}),(0,q.jsx)(u,{children:j.map(e=>(0,q.jsx)(l,{value:e.VpcId??``,children:se(e)},e.VpcId))})]})}),(0,q.jsx)(P,{errors:[z.vpcId]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Subnets (select at least 1)`}),$.length===0?(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,q.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Subnet ${Z(e)}`,checked:Y.includes(e.SubnetId??``),onChange:()=>le(e.SubnetId??``),type:`checkbox`}),(0,q.jsx)(`span`,{className:`font-mono`,children:Z(e)})]},e.SubnetId))}),(0,q.jsx)(P,{errors:[z.subnetIds]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Endpoint access`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Public access exposes the API server on an internet-facing endpoint; private access keeps it reachable only from within the VPC. At least one must be enabled.`}),(0,q.jsx)(A,{control:R,name:`endpointPublicAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable public access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Public`]})}),(0,q.jsx)(A,{control:R,name:`endpointPrivateAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable private access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Private`]})}),(0,q.jsx)(P,{errors:[z.endpointPublicAccess]}),X&&(0,q.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Public access source ranges (CIDR). Defaults to`,` `,(0,q.jsx)(`span`,{className:`font-mono`,children:`0.0.0.0/0`}),`.`]}),Q.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(w,{"aria-label":`Public access CIDR ${t+1}`,className:`font-mono`,onChange:e=>ue(t,e.target.value),placeholder:`203.0.113.0/24`,value:e}),(0,q.jsx)(g,{onClick:()=>fe(t),size:`sm`,type:`button`,variant:`ghost`,children:`Remove`})]},t)),(0,q.jsx)(g,{onClick:de,size:`sm`,type:`button`,variant:`outline`,children:`Add CIDR`}),(0,q.jsx)(P,{errors:[z.publicAccessCidrs]})]})]}),(0,q.jsxs)(F,{children:[(0,q.jsx)(N,{children:`Access`}),(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Authentication mode is `,(0,q.jsx)(`span`,{className:`font-mono`,children:`API`}),` (IAM access entries). The legacy aws-auth ConfigMap is not supported.`]}),(0,q.jsx)(A,{control:R,name:`bootstrapClusterCreatorAdminPermissions`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Grant the cluster creator admin permissions`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Grant the cluster creator admin permissions`]})})]}),(0,q.jsx)(ie,{isPending:x.isPending,isSubmitting:B,onCancel:async()=>await e({to:`/eks/list-clusters`}),pendingLabel:`Creating…`,submitLabel:`Create Cluster`})]})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(M,{subtitle:`EKS`,title:`Create Cluster`}),(0,q.jsx)(oe,{isRechecking:n,onRecheck:C})]})}var $=Q;export{$ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-group.js index d63f7f83a..57fd86dd4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-group.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{s as i}from"./iam.js";import{vi as a,xr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{n as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=a(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-groups`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-groups`,children:`Back to groups`}),P=(0,v.jsx)(f,{title:`Create Group`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create group`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[15]=L):L=e[15];let R=!!T.groupName,z;e[16]===S?z=e[17]:(z=S(`groupName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(o,{"aria-invalid":R,id:`groupName`,placeholder:`my-group...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.groupName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.groupName]}),e[21]=T.groupName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(o,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-groups`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Group`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-group`},{type:`flag`,value:` --group-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Group`,parts:a}]}export{y as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{s as i}from"./iam.js";import{Ar as a,Di as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{n as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=o(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-groups`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-groups`,children:`Back to groups`}),P=(0,v.jsx)(f,{title:`Create Group`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create group`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[15]=L):L=e[15];let R=!!T.groupName,z;e[16]===S?z=e[17]:(z=S(`groupName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(a,{"aria-invalid":R,id:`groupName`,placeholder:`my-group...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.groupName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.groupName]}),e[21]=T.groupName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(a,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-groups`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Group`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-group`},{type:`flag`,value:` --group-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Group`,parts:a}]}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js b/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js index 6c4236105..e67ab71f1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{c as i}from"./iam.js";import{vi as a,xr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{r as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=a(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-instance-profiles`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),P=(0,v.jsx)(f,{title:`Create Instance Profile`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create instance profile`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`instanceProfileName`,children:`Instance Profile Name`})}),e[15]=L):L=e[15];let R=!!T.instanceProfileName,z;e[16]===S?z=e[17]:(z=S(`instanceProfileName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(o,{"aria-invalid":R,id:`instanceProfileName`,placeholder:`my-instance-profile...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.instanceProfileName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.instanceProfileName]}),e[21]=T.instanceProfileName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(o,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-instance-profiles`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Instance Profile`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`instanceProfileName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-instance-profile`},{type:`flag`,value:` --instance-profile-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Instance Profile`,parts:a}]}export{y as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{c as i}from"./iam.js";import{Ar as a,Di as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{r as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=o(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-instance-profiles`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),P=(0,v.jsx)(f,{title:`Create Instance Profile`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create instance profile`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`instanceProfileName`,children:`Instance Profile Name`})}),e[15]=L):L=e[15];let R=!!T.instanceProfileName,z;e[16]===S?z=e[17]:(z=S(`instanceProfileName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(a,{"aria-invalid":R,id:`instanceProfileName`,placeholder:`my-instance-profile...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.instanceProfileName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.instanceProfileName]}),e[21]=T.instanceProfileName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(a,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-instance-profiles`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Instance Profile`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`instanceProfileName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-instance-profile`},{type:`flag`,value:` --instance-profile-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Instance Profile`,parts:a}]}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js index 59aac38db..58e9b1be0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js @@ -1,2 +1,2 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{f as i}from"./ec2.js";import{vi as a,xr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{a as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=a(),v=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).InternetGateway?.InternetGatewayId;t(n?{to:`/ec2/describe-internet-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-internet-gateways`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(n,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(f,{title:`Create Internet Gateway`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(u,{error:v.error,msg:`Failed to create Internet Gateway`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(o,{id:`name`,placeholder:`my-internet-gateway`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(r,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>await t({to:`/ec2/describe-internet-gateways`}),e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Creating…`,submitLabel:`Create`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-internet-gateway`}];return e.trim()&&t.push({type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{f as i}from"./ec2.js";import{Ar as a,Di as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{a as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=o(),v=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).InternetGateway?.InternetGatewayId;t(n?{to:`/ec2/describe-internet-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-internet-gateways`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(n,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(f,{title:`Create Internet Gateway`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(u,{error:v.error,msg:`Failed to create Internet Gateway`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(a,{id:`name`,placeholder:`my-internet-gateway`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(r,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>await t({to:`/ec2/describe-internet-gateways`}),e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(d,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Creating…`,submitLabel:`Create`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-internet-gateway`}];return e.trim()&&t.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=internet-gateway,Tags=[{Key=Name,Value=${e.trim()}}]'`}),[{label:`Create Internet Gateway`,parts:t}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js index 8adc9fd16..6f04c5ca6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./back-link.js";import{t as a}from"./check.js";import{t as o}from"./download.js";import{t as s}from"./cli-command-panel.js";import{t as c}from"./triangle-alert.js";import{t as l}from"./button.js";import{p as u}from"./ec2.js";import{vi as d,xr as f}from"./index.js";import{a as p,i as m,t as h}from"./zod.js";import{t as g}from"./use-copy-to-clipboard.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{o as C}from"./ec22.js";import{a as ee,c as w,i as T,l as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";var j=t(n()),M=r(),N=e();function P(e){let t=(0,M.c)(38),{open:n,keyName:r,keyMaterial:i}=e,s=d(),{copied:u,copy:f}=g(),p;t[0]!==i||t[1]!==r?(p=()=>{let e=new Blob([i],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${r}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=i,t[1]=r,t[2]=p):p=t[2];let m=p,h;t[3]===s?h=t[4]:(h=()=>{s({to:`/ec2/describe-key-pairs`})},t[3]=s,t[4]=h);let _=h,v,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(w,{children:(0,N.jsx)(c,{className:`text-destructive`})}),y=(0,N.jsx)(E,{children:`Save Your Private Key`}),t[5]=v,t[6]=y):(v=t[5],y=t[6]);let b;t[7]===r?b=t[8]:(b=(0,N.jsxs)(k,{children:[v,y,(0,N.jsxs)(ee,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:r}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=r,t[8]=b);let x=`Private key material for ${r}`,S;t[9]!==i||t[10]!==x?(S=(0,N.jsx)(`textarea`,{"aria-label":x,className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:i}),t[9]=i,t[10]=x,t[11]=S):S=t[11];let C;t[12]!==f||t[13]!==i?(C=async()=>await f(i),t[12]=f,t[13]=i,t[14]=C):C=t[14];let j;t[15]===u?j=t[16]:(j=u?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(a,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=u,t[16]=j);let P;t[17]!==C||t[18]!==j?(P=(0,N.jsx)(l,{className:`flex-1`,onClick:C,type:`button`,variant:`outline`,children:j}),t[17]=C,t[18]=j,t[19]=P):P=t[19];let F;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(o,{className:`mr-2 size-4`}),t[20]=F):F=t[20];let I;t[21]===m?I=t[22]:(I=(0,N.jsxs)(l,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[F,`Download .pem File`]}),t[21]=m,t[22]=I);let L;t[23]!==P||t[24]!==I?(L=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[P,I]}),t[23]=P,t[24]=I,t[25]=L):L=t[25];let R;t[26]!==L||t[27]!==S?(R=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[S,L]}),t[26]=L,t[27]=S,t[28]=R):R=t[28];let z;t[29]===_?z=t[30]:(z=(0,N.jsx)(D,{children:(0,N.jsx)(O,{onClick:_,children:`Close and Continue`})}),t[29]=_,t[30]=z);let B;t[31]!==R||t[32]!==z||t[33]!==b?(B=(0,N.jsxs)(T,{className:`max-w-2xl`,children:[b,R,z]}),t[31]=R,t[32]=z,t[33]=b,t[34]=B):B=t[34];let V;return t[35]!==n||t[36]!==B?(V=(0,N.jsx)(A,{open:n,children:B}),t[35]=n,t[36]=B,t[37]=V):V=t[37],V}function F(){let e=(0,M.c)(46),t=d(),n=u(),[r,a]=(0,j.useState)(null),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:h(C)},e[0]=o):o=e[0];let{handleSubmit:c,register:l,control:g,formState:ee}=m(o),{errors:w,isSubmitting:T}=ee,E;e[1]===g?E=e[2]:(E={control:g},e[1]=g,e[2]=E);let D=p(E),O;e[3]===D?O=e[4]:(O=e=>e?D[e]:void 0,e[3]=D,e[4]=O);let k=O,A;e[5]===n?A=e[6]:(A=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&a({keyName:e.keyName,material:t.KeyMaterial})},e[5]=n,e[6]=A);let F=A,L,R;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),R=(0,N.jsx)(y,{title:`Create Key Pair`}),e[7]=L,e[8]=R):(L=e[7],R=e[8]);let z;e[9]===n.error?z=e[10]:(z=n.error&&(0,N.jsx)(_,{error:n.error,msg:`Failed to create key pair`}),e[9]=n.error,e[10]=z);let B;e[11]!==c||e[12]!==F?(B=c(F),e[11]=c,e[12]=F,e[13]=B):B=e[13];let V;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,N.jsx)(b,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[14]=V):V=e[14];let H=!!w.keyName,U;e[15]===l?U=e[16]:(U=l(`keyName`),e[15]=l,e[16]=U);let W;e[17]!==H||e[18]!==U?(W=(0,N.jsx)(f,{"aria-invalid":H,id:`keyName`,placeholder:`my-key-pair…`,...U}),e[17]=H,e[18]=U,e[19]=W):W=e[19];let G;e[20]===w.keyName?G=e[21]:(G=(0,N.jsx)(x,{errors:[w.keyName]}),e[20]=w.keyName,e[21]=G);let K;e[22]!==W||e[23]!==G?(K=(0,N.jsxs)(S,{children:[V,W,G]}),e[22]=W,e[23]=G,e[24]=K):K=e[24];let q;e[25]===k?q=e[26]:(q=I(k),e[25]=k,e[26]=q);let J;e[27]===q?J=e[28]:(J=(0,N.jsx)(s,{commands:q}),e[27]=q,e[28]=J);let Y;e[29]===t?Y=e[30]:(Y=async()=>await t({to:`/ec2/describe-key-pairs`}),e[29]=t,e[30]=Y);let X;e[31]!==n.isPending||e[32]!==T||e[33]!==Y?(X=(0,N.jsx)(v,{isPending:n.isPending,isSubmitting:T,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[31]=n.isPending,e[32]=T,e[33]=Y,e[34]=X):X=e[34];let Z;e[35]!==K||e[36]!==J||e[37]!==X||e[38]!==B?(Z=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[K,J,X]}),e[35]=K,e[36]=J,e[37]=X,e[38]=B,e[39]=Z):Z=e[39];let Q;e[40]===r?Q=e[41]:(Q=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[40]=r,e[41]=Q);let $;return e[42]!==Z||e[43]!==Q||e[44]!==z?($=(0,N.jsxs)(N.Fragment,{children:[L,R,z,Z,Q]}),e[42]=Z,e[43]=Q,e[44]=z,e[45]=$):$=e[45],$}function I(e){let t=e(`keyName`);return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./back-link.js";import{t as a}from"./check.js";import{t as o}from"./download.js";import{t as s}from"./cli-command-panel.js";import{t as c}from"./triangle-alert.js";import{t as l}from"./button.js";import{p as u}from"./ec2.js";import{Ar as d,Di as f}from"./index.js";import{a as p,i as m,t as h}from"./zod.js";import{t as g}from"./use-copy-to-clipboard.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{o as C}from"./ec22.js";import{a as ee,c as w,i as T,l as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";var j=t(n()),M=r(),N=e();function P(e){let t=(0,M.c)(38),{open:n,keyName:r,keyMaterial:i}=e,s=f(),{copied:u,copy:d}=g(),p;t[0]!==i||t[1]!==r?(p=()=>{let e=new Blob([i],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${r}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=i,t[1]=r,t[2]=p):p=t[2];let m=p,h;t[3]===s?h=t[4]:(h=()=>{s({to:`/ec2/describe-key-pairs`})},t[3]=s,t[4]=h);let _=h,v,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(w,{children:(0,N.jsx)(c,{className:`text-destructive`})}),y=(0,N.jsx)(E,{children:`Save Your Private Key`}),t[5]=v,t[6]=y):(v=t[5],y=t[6]);let b;t[7]===r?b=t[8]:(b=(0,N.jsxs)(k,{children:[v,y,(0,N.jsxs)(ee,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:r}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=r,t[8]=b);let x=`Private key material for ${r}`,S;t[9]!==i||t[10]!==x?(S=(0,N.jsx)(`textarea`,{"aria-label":x,className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:i}),t[9]=i,t[10]=x,t[11]=S):S=t[11];let C;t[12]!==d||t[13]!==i?(C=async()=>await d(i),t[12]=d,t[13]=i,t[14]=C):C=t[14];let j;t[15]===u?j=t[16]:(j=u?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(a,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=u,t[16]=j);let P;t[17]!==C||t[18]!==j?(P=(0,N.jsx)(l,{className:`flex-1`,onClick:C,type:`button`,variant:`outline`,children:j}),t[17]=C,t[18]=j,t[19]=P):P=t[19];let F;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(o,{className:`mr-2 size-4`}),t[20]=F):F=t[20];let I;t[21]===m?I=t[22]:(I=(0,N.jsxs)(l,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[F,`Download .pem File`]}),t[21]=m,t[22]=I);let L;t[23]!==P||t[24]!==I?(L=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[P,I]}),t[23]=P,t[24]=I,t[25]=L):L=t[25];let R;t[26]!==L||t[27]!==S?(R=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[S,L]}),t[26]=L,t[27]=S,t[28]=R):R=t[28];let z;t[29]===_?z=t[30]:(z=(0,N.jsx)(D,{children:(0,N.jsx)(O,{onClick:_,children:`Close and Continue`})}),t[29]=_,t[30]=z);let B;t[31]!==R||t[32]!==z||t[33]!==b?(B=(0,N.jsxs)(T,{className:`max-w-2xl`,children:[b,R,z]}),t[31]=R,t[32]=z,t[33]=b,t[34]=B):B=t[34];let V;return t[35]!==n||t[36]!==B?(V=(0,N.jsx)(A,{open:n,children:B}),t[35]=n,t[36]=B,t[37]=V):V=t[37],V}function F(){let e=(0,M.c)(46),t=f(),n=u(),[r,a]=(0,j.useState)(null),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:h(C)},e[0]=o):o=e[0];let{handleSubmit:c,register:l,control:g,formState:ee}=m(o),{errors:w,isSubmitting:T}=ee,E;e[1]===g?E=e[2]:(E={control:g},e[1]=g,e[2]=E);let D=p(E),O;e[3]===D?O=e[4]:(O=e=>e?D[e]:void 0,e[3]=D,e[4]=O);let k=O,A;e[5]===n?A=e[6]:(A=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&a({keyName:e.keyName,material:t.KeyMaterial})},e[5]=n,e[6]=A);let F=A,L,R;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),R=(0,N.jsx)(y,{title:`Create Key Pair`}),e[7]=L,e[8]=R):(L=e[7],R=e[8]);let z;e[9]===n.error?z=e[10]:(z=n.error&&(0,N.jsx)(_,{error:n.error,msg:`Failed to create key pair`}),e[9]=n.error,e[10]=z);let B;e[11]!==c||e[12]!==F?(B=c(F),e[11]=c,e[12]=F,e[13]=B):B=e[13];let V;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,N.jsx)(b,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[14]=V):V=e[14];let H=!!w.keyName,U;e[15]===l?U=e[16]:(U=l(`keyName`),e[15]=l,e[16]=U);let W;e[17]!==H||e[18]!==U?(W=(0,N.jsx)(d,{"aria-invalid":H,id:`keyName`,placeholder:`my-key-pair…`,...U}),e[17]=H,e[18]=U,e[19]=W):W=e[19];let G;e[20]===w.keyName?G=e[21]:(G=(0,N.jsx)(x,{errors:[w.keyName]}),e[20]=w.keyName,e[21]=G);let K;e[22]!==W||e[23]!==G?(K=(0,N.jsxs)(S,{children:[V,W,G]}),e[22]=W,e[23]=G,e[24]=K):K=e[24];let q;e[25]===k?q=e[26]:(q=I(k),e[25]=k,e[26]=q);let J;e[27]===q?J=e[28]:(J=(0,N.jsx)(s,{commands:q}),e[27]=q,e[28]=J);let Y;e[29]===t?Y=e[30]:(Y=async()=>await t({to:`/ec2/describe-key-pairs`}),e[29]=t,e[30]=Y);let X;e[31]!==n.isPending||e[32]!==T||e[33]!==Y?(X=(0,N.jsx)(v,{isPending:n.isPending,isSubmitting:T,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[31]=n.isPending,e[32]=T,e[33]=Y,e[34]=X):X=e[34];let Z;e[35]!==K||e[36]!==J||e[37]!==X||e[38]!==B?(Z=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[K,J,X]}),e[35]=K,e[36]=J,e[37]=X,e[38]=B,e[39]=Z):Z=e[39];let Q;e[40]===r?Q=e[41]:(Q=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[40]=r,e[41]=Q);let $;return e[42]!==Z||e[43]!==Q||e[44]!==z?($=(0,N.jsxs)(N.Fragment,{children:[L,R,z,Z,Q]}),e[42]=Z,e[43]=Q,e[44]=z,e[45]=$):$=e[45],$}function I(e){let t=e(`keyName`);return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js index d015d7dbb..d42347995 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js @@ -1,21 +1,21 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Vt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./cli-command-panel.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{t as h}from"./certificate-import-dialog.js";import{n as g}from"./elbv2.js";import{Qt as _,U as v,Z as y,nn as b,on as x,tt as ee,vi as te,xr as S}from"./index.js";import{i as C,n as w,t as T}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as E,r as D,t as O}from"./field.js";import{t as ae}from"./target-group-form.js";import{a as oe,c as se,o as ce,r as le,s as k,t as ue}from"./elbv22.js";var A=t(n(),1),j=e();function de(e){let t=i(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function M(e){let t=i(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function fe(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function pe(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function N(){let e=te(),{data:t}=r(x),{data:n}=r(b),{data:i}=r(_),{data:N}=r(ee),{data:P}=r(v),{data:he}=r(y),F=g(),[I,L]=(0,A.useState)(null),[ge,R]=(0,A.useState)(!1),z=t.Vpcs??[],_e=n.Subnets??[],ve=i.SecurityGroups??[],ye=N.TargetGroups??[],B=P.CertificateSummaryList??[],be=he.SslPolicies??[],xe=C({resolver:T(le),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:z[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),V=C({resolver:T(oe),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:z[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:Se,register:H,watch:U,control:W,setValue:G,getValues:K,formState:{errors:q,isSubmitting:Ce}}=xe,J=U(`vpcId`),we=U(`subnetIds`),Te=U(`securityGroupIds`),Y=U(`type`),X=U(`listener.protocol`),Z=U(`listener.targetGroupMode`),Ee=U(`tags`),Q=Y===`network`,De=k(X),Oe=se(Y),ke=Q?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],Ae=_e.filter(e=>e.VpcId===J),je=ve.filter(e=>e.VpcId===J),Me=ye.filter(e=>e.VpcId===J),Ne=e=>{let t=fe(e);V.setValue(`protocol`,t),V.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Pe=e=>{G(`type`,e);let t=ce(e);G(`listener.protocol`,t),G(`listener.port`,80),G(`listener.certificateArn`,void 0),G(`listener.sslPolicy`,void 0),e===`network`&&G(`securityGroupIds`,[]),Ne(t)},Fe=e=>{G(`listener.protocol`,e);let t=K(`listener.port`);k(e)?(t===80&&G(`listener.port`,443),e===`HTTPS`&&!K(`listener.sslPolicy`)&&G(`listener.sslPolicy`,ue)):(t===443&&G(`listener.port`,80),G(`listener.certificateArn`,void 0),G(`listener.sslPolicy`,void 0)),Ne(e)},Ie=(e=``)=>{let t=e??``;G(`vpcId`,t,{shouldValidate:!0}),G(`subnetIds`,[],{shouldValidate:!0}),G(`securityGroupIds`,[]),G(`listener.existingTargetGroupArn`,``),V.setValue(`vpcId`,t)},Le=e=>{let t=K(`subnetIds`),n=t.includes(e)?t.filter(t=>t!==e):[...t,e];G(`subnetIds`,n,{shouldValidate:!0})},Re=e=>{let t=K(`securityGroupIds`),n=t.includes(e)?t.filter(t=>t!==e):[...t,e];G(`securityGroupIds`,n)},ze=async t=>{L(null);let n;if(t.listener.targetGroupMode===`new`){if(!await V.trigger())return;n=V.getValues()}let r=await F.mutateAsync({lb:{name:t.name,type:t.type,scheme:t.scheme,vpcId:t.vpcId,subnetIds:t.subnetIds,securityGroupIds:t.securityGroupIds,tags:t.tags},listener:{protocol:t.listener.protocol,port:t.listener.port,targetGroupMode:t.listener.targetGroupMode,existingTargetGroupArn:t.listener.existingTargetGroupArn,certificateArn:t.listener.certificateArn,sslPolicy:t.listener.sslPolicy,newTargetGroup:n}});L(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},$=pe(Ae);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(a,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,j.jsx)(ie,{title:`Create Load Balancer`}),F.error&&(0,j.jsx)(ne,{error:F.error,msg:`Failed to create load balancer`}),I?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,I.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:I.error.message}),I.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:I.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Se(ze),children:[(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,j.jsx)(S,{"aria-invalid":!!q.name,id:`lb-name`,placeholder:`my-load-balancer`,...H(`name`)}),(0,j.jsx)(D,{errors:[q.name]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Type`}),(0,j.jsx)(w,{control:W,name:`type`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Pe(`application`),type:`radio`}),`Application (ALB)`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Pe(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Scheme`}),(0,j.jsx)(w,{control:W,name:`scheme`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,j.jsx)(w,{control:W,name:`vpcId`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e=>Ie(e),value:e.value??``,children:[(0,j.jsx)(l,{"aria-invalid":!!q.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,j.jsx)(o,{placeholder:`Select VPC`})}),(0,j.jsx)(c,{children:z.map(e=>(0,j.jsx)(s,{value:e.VpcId??``,children:de(e)},e.VpcId))})]})}),(0,j.jsx)(D,{errors:[q.vpcId]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Subnets (select at least 1)`}),$.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,j.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,j.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Subnet ${M(e)}`,checked:we.includes(e.SubnetId??``),onChange:()=>Le(e.SubnetId??``),type:`checkbox`}),(0,j.jsx)(`span`,{className:`font-mono`,children:M(e)})]},e.SubnetId))})]},e.az))}),(0,j.jsx)(D,{errors:[q.subnetIds]})]}),!Q&&(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Security groups`}),je.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,j.jsx)(`div`,{className:`space-y-1`,children:je.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Te.includes(e.GroupId??``),onChange:()=>Re(e.GroupId??``),type:`checkbox`}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Tags`}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[Ee.map((e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(S,{placeholder:`Key`,...H(`tags.${t}.key`)}),(0,j.jsx)(S,{placeholder:`Value`,...H(`tags.${t}.value`)}),(0,j.jsx)(m,{onClick:()=>G(`tags`,K(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,j.jsx)(p,{className:`size-3.5`})})]},t)),(0,j.jsxs)(m,{onClick:()=>G(`tags`,[...K(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,j.jsx)(d,{className:`size-3.5`}),`Add tag`]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,j.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,j.jsx)(w,{control:W,name:`listener.protocol`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e=>{e&&Fe(e)},value:e.value,children:[(0,j.jsx)(l,{className:`w-full`,id:`listener-protocol`,children:(0,j.jsx)(o,{})}),(0,j.jsx)(c,{children:Oe.map(e=>(0,j.jsx)(s,{value:e,children:e},e))})]})})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,j.jsx)(S,{"aria-invalid":!!q.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...H(`listener.port`,{valueAsNumber:!0})}),(0,j.jsx)(D,{errors:[q.listener?.port]})]}),De&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,j.jsx)(w,{control:W,name:`listener.certificateArn`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e.onChange,value:e.value??``,children:[(0,j.jsx)(l,{"aria-invalid":!!q.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,j.jsx)(o,{placeholder:`Select certificate`})}),(0,j.jsx)(c,{children:B.map(e=>(0,j.jsx)(s,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,j.jsx)(D,{errors:[q.listener?.certificateArn]}),(0,j.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[B.length===0&&(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,j.jsx)(m,{className:`ml-auto`,onClick:()=>R(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),X===`HTTPS`&&(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,j.jsx)(w,{control:W,name:`listener.sslPolicy`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,j.jsx)(l,{className:`w-full`,id:`listener-ssl-policy`,children:(0,j.jsx)(o,{})}),(0,j.jsx)(c,{children:be.map(e=>(0,j.jsx)(s,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Default target group`}),(0,j.jsx)(w,{control:W,name:`listener.targetGroupMode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),Z===`existing`&&(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,j.jsx)(w,{control:W,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e.onChange,value:e.value??``,children:[(0,j.jsx)(l,{"aria-invalid":!!q.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,j.jsx)(o,{placeholder:`Select target group`})}),(0,j.jsx)(c,{children:Me.map(e=>(0,j.jsxs)(s,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,j.jsx)(D,{errors:[q.listener?.existingTargetGroupArn]}),Me.length===0&&(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),Z===`new`&&(0,j.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,j.jsx)(ae,{allowedProtocols:ke,form:V,vpcs:z})})]}),(0,j.jsx)(h,{onImported:e=>G(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:R,open:ge}),(0,j.jsx)(f,{commands:me(U,V.watch)}),(0,j.jsx)(re,{isPending:F.isPending,isSubmitting:Ce,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function me(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),m=n(`listener.targetGroupMode`),h=n(`listener.existingTargetGroupArn`),g=[],_={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Vt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./cli-command-panel.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{t as ee}from"./certificate-import-dialog.js";import{n as h}from"./elbv2.js";import{Ar as g,Di as _,U as v,Z as y,dn as b,hn as te,sn as ne,tt as re}from"./index.js";import{i as x,n as S,t as C}from"./zod.js";import{t as ie}from"./error-banner.js";import{t as ae}from"./form-actions.js";import{t as oe}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{t as se}from"./target-group-form.js";import{a as ce,c as le,o as ue,r as de,s as D,t as fe}from"./elbv22.js";var O=t(n(),1),k=e();function pe(e){let t=i(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function A(e){let t=i(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function me(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function he(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function j(){let e=_(),{data:t}=r(te),{data:n}=r(b),{data:i}=r(ne),{data:j}=r(re),{data:M}=r(v),{data:_e}=r(y),N=h(),[P,F]=(0,O.useState)(null),[ve,I]=(0,O.useState)(!1),L=t.Vpcs??[],ye=n.Subnets??[],be=i.SecurityGroups??[],xe=j.TargetGroups??[],R=M.CertificateSummaryList??[],Se=_e.SslPolicies??[],Ce=x({resolver:C(de),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:L[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),z=x({resolver:C(ce),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:L[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:we,register:B,watch:V,control:H,setValue:U,getValues:W,formState:{errors:G,isSubmitting:Te}}=Ce,K=V(`vpcId`),Ee=V(`subnetIds`),De=V(`securityGroupIds`),q=V(`type`),J=V(`listener.protocol`),Y=V(`listener.targetGroupMode`),Oe=V(`tags`),X=q===`network`,ke=D(J),Ae=le(q),je=X?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],Me=ye.filter(e=>e.VpcId===K),Z=be.filter(e=>e.VpcId===K),Q=xe.filter(e=>e.VpcId===K),Ne=e=>{let t=me(e);z.setValue(`protocol`,t),z.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Pe=e=>{U(`type`,e);let t=ue(e);U(`listener.protocol`,t),U(`listener.port`,80),U(`listener.certificateArn`,void 0),U(`listener.sslPolicy`,void 0),e===`network`&&U(`securityGroupIds`,[]),Ne(t)},Fe=e=>{U(`listener.protocol`,e);let t=W(`listener.port`);D(e)?(t===80&&U(`listener.port`,443),e===`HTTPS`&&!W(`listener.sslPolicy`)&&U(`listener.sslPolicy`,fe)):(t===443&&U(`listener.port`,80),U(`listener.certificateArn`,void 0),U(`listener.sslPolicy`,void 0)),Ne(e)},Ie=(e=``)=>{let t=e??``;U(`vpcId`,t,{shouldValidate:!0}),U(`subnetIds`,[],{shouldValidate:!0}),U(`securityGroupIds`,[]),U(`listener.existingTargetGroupArn`,``),z.setValue(`vpcId`,t)},Le=e=>{let t=W(`subnetIds`),n=t.includes(e)?t.filter(t=>t!==e):[...t,e];U(`subnetIds`,n,{shouldValidate:!0})},Re=e=>{let t=W(`securityGroupIds`),n=t.includes(e)?t.filter(t=>t!==e):[...t,e];U(`securityGroupIds`,n)},ze=async t=>{F(null);let n;if(t.listener.targetGroupMode===`new`){if(!await z.trigger())return;n=z.getValues()}let r=await N.mutateAsync({lb:{name:t.name,type:t.type,scheme:t.scheme,vpcId:t.vpcId,subnetIds:t.subnetIds,securityGroupIds:t.securityGroupIds,tags:t.tags},listener:{protocol:t.listener.protocol,port:t.listener.port,targetGroupMode:t.listener.targetGroupMode,existingTargetGroupArn:t.listener.existingTargetGroupArn,certificateArn:t.listener.certificateArn,sslPolicy:t.listener.sslPolicy,newTargetGroup:n}});F(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},$=he(Me);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,k.jsx)(oe,{title:`Create Load Balancer`}),N.error&&(0,k.jsx)(ie,{error:N.error,msg:`Failed to create load balancer`}),P?.error&&(0,k.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,k.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,P.failedStep]}),(0,k.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:P.error.message}),P.created.length>0&&(0,k.jsxs)(`div`,{className:`mt-3`,children:[(0,k.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,k.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:P.created.map((e,t)=>(0,k.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,k.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:we(ze),children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,k.jsx)(g,{"aria-invalid":!!G.name,id:`lb-name`,placeholder:`my-load-balancer`,...B(`name`)}),(0,k.jsx)(T,{errors:[G.name]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Type`}),(0,k.jsx)(S,{control:H,name:`type`,render:({field:e})=>(0,k.jsxs)(`div`,{className:`flex gap-4`,children:[(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Pe(`application`),type:`radio`}),`Application (ALB)`]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Pe(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Scheme`}),(0,k.jsx)(S,{control:H,name:`scheme`,render:({field:e})=>(0,k.jsxs)(`div`,{className:`flex gap-4`,children:[(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,k.jsx)(S,{control:H,name:`vpcId`,render:({field:e})=>(0,k.jsxs)(u,{onValueChange:e=>Ie(e),value:e.value??``,children:[(0,k.jsx)(l,{"aria-invalid":!!G.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,k.jsx)(o,{placeholder:`Select VPC`})}),(0,k.jsx)(c,{children:L.map(e=>(0,k.jsx)(s,{value:e.VpcId??``,children:pe(e)},e.VpcId))})]})}),(0,k.jsx)(T,{errors:[G.vpcId]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Subnets (select at least 1)`}),$.length===0?(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,k.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,k.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Subnet ${A(e)}`,checked:Ee.includes(e.SubnetId??``),onChange:()=>Le(e.SubnetId??``),type:`checkbox`}),(0,k.jsx)(`span`,{className:`font-mono`,children:A(e)})]},e.SubnetId))})]},e.az))}),(0,k.jsx)(T,{errors:[G.subnetIds]})]}),!X&&(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Security groups`}),Z.length===0?(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,k.jsx)(`div`,{className:`space-y-1`,children:Z.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:De.includes(e.GroupId??``),onChange:()=>Re(e.GroupId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Tags`}),(0,k.jsxs)(`div`,{className:`space-y-2`,children:[Oe.map((e,t)=>(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,k.jsx)(g,{placeholder:`Key`,...B(`tags.${t}.key`)}),(0,k.jsx)(g,{placeholder:`Value`,...B(`tags.${t}.value`)}),(0,k.jsx)(m,{onClick:()=>U(`tags`,W(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,k.jsx)(p,{className:`size-3.5`})})]},t)),(0,k.jsxs)(m,{onClick:()=>U(`tags`,[...W(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,k.jsx)(d,{className:`size-3.5`}),`Add tag`]})]})]}),(0,k.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,k.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,k.jsx)(S,{control:H,name:`listener.protocol`,render:({field:e})=>(0,k.jsxs)(u,{onValueChange:e=>{e&&Fe(e)},value:e.value,children:[(0,k.jsx)(l,{className:`w-full`,id:`listener-protocol`,children:(0,k.jsx)(o,{})}),(0,k.jsx)(c,{children:Ae.map(e=>(0,k.jsx)(s,{value:e,children:e},e))})]})})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,k.jsx)(g,{"aria-invalid":!!G.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...B(`listener.port`,{valueAsNumber:!0})}),(0,k.jsx)(T,{errors:[G.listener?.port]})]}),ke&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,k.jsx)(S,{control:H,name:`listener.certificateArn`,render:({field:e})=>(0,k.jsxs)(u,{onValueChange:e.onChange,value:e.value??``,children:[(0,k.jsx)(l,{"aria-invalid":!!G.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,k.jsx)(o,{placeholder:`Select certificate`})}),(0,k.jsx)(c,{children:R.map(e=>(0,k.jsx)(s,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,k.jsx)(T,{errors:[G.listener?.certificateArn]}),(0,k.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[R.length===0&&(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,k.jsx)(m,{className:`ml-auto`,onClick:()=>I(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),J===`HTTPS`&&(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,k.jsx)(S,{control:H,name:`listener.sslPolicy`,render:({field:e})=>(0,k.jsxs)(u,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,k.jsx)(l,{className:`w-full`,id:`listener-ssl-policy`,children:(0,k.jsx)(o,{})}),(0,k.jsx)(c,{children:Se.map(e=>(0,k.jsx)(s,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Default target group`}),(0,k.jsx)(S,{control:H,name:`listener.targetGroupMode`,render:({field:e})=>(0,k.jsxs)(`div`,{className:`flex gap-4`,children:[(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),Y===`existing`&&(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,k.jsx)(S,{control:H,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,k.jsxs)(u,{onValueChange:e.onChange,value:e.value??``,children:[(0,k.jsx)(l,{"aria-invalid":!!G.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,k.jsx)(o,{placeholder:`Select target group`})}),(0,k.jsx)(c,{children:Q.map(e=>(0,k.jsxs)(s,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,k.jsx)(T,{errors:[G.listener?.existingTargetGroupArn]}),Q.length===0&&(0,k.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),Y===`new`&&(0,k.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,k.jsx)(se,{allowedProtocols:je,form:z,vpcs:L})})]}),(0,k.jsx)(ee,{onImported:e=>U(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:I,open:ve}),(0,k.jsx)(f,{commands:ge(V,z.watch)}),(0,k.jsx)(ae,{isPending:N.isPending,isSubmitting:Te,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function ge(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),m=n(`listener.targetGroupMode`),ee=n(`listener.existingTargetGroupArn`),h=[],g={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group `:`# Create ALB with listener and default target group -`},v=e=>{let n=t(e);return typeof n==`string`?n:``},y=e=>{let n=t(e);return typeof n==`number`&&Number.isFinite(n)?n:void 0};if(m===`new`){let e=v(`name`)||``,t=y(`port`)??80,n=v(`vpcId`),r=v(`protocol`)||`HTTP`;g.push({label:`Create Target Group`,parts:[_,{type:`variable`,value:`TG_ARN=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ +`},_=e=>{let n=t(e);return typeof n==`string`?n:``},v=e=>{let n=t(e);return typeof n==`number`&&Number.isFinite(n)?n:void 0};if(m===`new`){let e=_(`name`)||``,t=v(`port`)??80,n=_(`vpcId`),r=_(`protocol`)||`HTTP`;h.push({label:`Create Target Group`,parts:[g,{type:`variable`,value:`TG_ARN=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ --name`},{type:`value`,value:` ${e}`},{type:`flag`,value:` \\ --protocol`},{type:`value`,value:` ${r}`},{type:`flag`,value:` --port`},{type:`value`,value:` ${t}`},{type:`flag`,value:` \\ --target-type instance --vpc-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ - --query`},{type:`value`,value:` 'TargetGroups[0].TargetGroupArn'`},{type:`flag`,value:` --output`},{type:`value`,value:` text)`}]})}else g.push({label:`Use Existing Target Group`,parts:[_,{type:`variable`,value:`TG_ARN=`},{type:`value`,value:h||``}]});let b=[{type:`variable`,value:`LB_ARN=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws elbv2 create-load-balancer`},{type:`flag`,value:` \\ + --query`},{type:`value`,value:` 'TargetGroups[0].TargetGroupArn'`},{type:`flag`,value:` --output`},{type:`value`,value:` text)`}]})}else h.push({label:`Use Existing Target Group`,parts:[g,{type:`variable`,value:`TG_ARN=`},{type:`value`,value:ee||``}]});let y=[{type:`variable`,value:`LB_ARN=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws elbv2 create-load-balancer`},{type:`flag`,value:` \\ --name`},{type:`value`,value:` ${a}`},{type:`flag`,value:` \\ --scheme`},{type:`value`,value:` ${s}`},{type:`flag`,value:` \\ - --type`},{type:`value`,value:` ${o}`}];c.length>0&&b.push({type:`flag`,value:` \\ - --subnets`},{type:`value`,value:` ${c.join(` `)}`}),l.length>0&&b.push({type:`flag`,value:` \\ - --security-groups`},{type:`value`,value:` ${l.join(` `)}`}),b.push({type:`flag`,value:` \\ - --query`},{type:`value`,value:` 'LoadBalancers[0].LoadBalancerArn'`},{type:`flag`,value:` --output`},{type:`value`,value:` text)`}),g.push({label:`Create Load Balancer`,parts:b});let x=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-listener`},{type:`flag`,value:` \\ + --type`},{type:`value`,value:` ${o}`}];c.length>0&&y.push({type:`flag`,value:` \\ + --subnets`},{type:`value`,value:` ${c.join(` `)}`}),l.length>0&&y.push({type:`flag`,value:` \\ + --security-groups`},{type:`value`,value:` ${l.join(` `)}`}),y.push({type:`flag`,value:` \\ + --query`},{type:`value`,value:` 'LoadBalancers[0].LoadBalancerArn'`},{type:`flag`,value:` --output`},{type:`value`,value:` text)`}),h.push({label:`Create Load Balancer`,parts:y});let b=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-listener`},{type:`flag`,value:` \\ --load-balancer-arn`},{type:`variable`,value:` "$LB_ARN"`},{type:`flag`,value:` \\ --protocol`},{type:`value`,value:` ${u}`},{type:`flag`,value:` \\ - --port`},{type:`value`,value:` ${d}`}];return(u===`HTTPS`||u===`TLS`)&&f&&(x.push({type:`flag`,value:` \\ - --certificates`},{type:`value`,value:` CertificateArn=${f}`}),u===`HTTPS`&&p&&x.push({type:`flag`,value:` \\ - --ssl-policy`},{type:`value`,value:` ${p}`})),x.push({type:`flag`,value:` \\ - --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}),g.push({label:`Create Listener`,parts:x}),g}var P=N;export{P as component}; \ No newline at end of file + --port`},{type:`value`,value:` ${d}`}];return(u===`HTTPS`||u===`TLS`)&&f&&(b.push({type:`flag`,value:` \\ + --certificates`},{type:`value`,value:` CertificateArn=${f}`}),u===`HTTPS`&&p&&b.push({type:`flag`,value:` \\ + --ssl-policy`},{type:`value`,value:` ${p}`})),b.push({type:`flag`,value:` \\ + --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}),h.push({label:`Create Listener`,parts:b}),h}var M=j;export{M as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js index 6aec30ed5..31764ae80 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as ee,s as c,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{m as re}from"./ec2.js";import{Mt as ie,nn as ae,vi as oe,xr as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=oe(),{data:i}=n(ae),{data:s}=n(ie),f=re(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:de(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=le(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=ce(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(a,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(fe,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(se,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(o,{placeholder:`Select a public subnet`})}),(0,d.jsx)(ee,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(ue,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(ue,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(ee,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(r,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(ne,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),i=typeof r==`string`?r:``,a=e(`name`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as ee,s as c,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{m as re}from"./ec2.js";import{Ar as ie,Di as ae,Vt as oe,dn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=ae(),{data:i}=n(se),{data:s}=n(oe),f=re(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:de(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=le(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=ce(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(a,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(fe,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(ie,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(o,{placeholder:`Select a public subnet`})}),(0,d.jsx)(ee,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(ue,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(ue,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(ee,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(r,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(ne,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),i=typeof r==`string`?r:``,a=e(`name`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --allocation-id`},{type:`value`,value:` ${i||``}`}];return o.trim()&&s.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${o.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:s}]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js index b1f92df47..6ae0f8d9f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as ee,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{h as ne}from"./ec2.js";import{vi as re,xr as s}from"./index.js";import{a as c,i as l,n as u,t as d}from"./zod.js";import{t as f}from"./error-banner.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";import{c as v}from"./ec22.js";var ie=t(),y=e();function b(){let e=(0,ie.c)(56),t=re(),b=ne(),x;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:d(v),defaultValues:{groupName:``,strategy:`spread`}},e[0]=x):x=e[0];let{control:S,handleSubmit:C,register:w,formState:oe}=l(x),{errors:T,isSubmitting:E}=oe,D;e[1]===S?D=e[2]:(D={control:S},e[1]=S,e[2]=D);let O=c(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==b||e[6]!==t?(j=async e=>{let n=await b.mutateAsync(e);t({to:`/ec2/describe-placement-groups/$id`,params:{id:n.PlacementGroup?.GroupId??``}})},e[5]=b,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(n,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,y.jsx)(m,{title:`Create Placement Group`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===b.error?F=e[11]:(F=b.error&&(0,y.jsx)(f,{error:b.error,msg:`Failed to create placement group`}),e[10]=b.error,e[11]=F);let I;e[12]!==C||e[13]!==M?(I=C(M),e[12]=C,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,y.jsx)(h,{children:(0,y.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[15]=L):L=e[15];let R=!!T.groupName,z;e[16]===w?z=e[17]:(z=w(`groupName`),e[16]=w,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,y.jsx)(s,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.groupName?V=e[22]:(V=(0,y.jsx)(g,{errors:[T.groupName]}),e[21]=T.groupName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,y.jsxs)(_,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,y.jsx)(h,{children:(0,y.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),e[26]=U):U=e[26];let W;e[27]===T.strategy?W=e[28]:(W=e=>{let{field:t}=e;return(0,y.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,y.jsx)(ee,{"aria-invalid":!!T.strategy,className:`w-full`,id:`strategy`,children:(0,y.jsx)(r,{})}),(0,y.jsxs)(a,{children:[(0,y.jsx)(i,{value:`spread`,children:`spread`}),(0,y.jsx)(i,{value:`cluster`,children:`cluster`})]})]})},e[27]=T.strategy,e[28]=W);let G;e[29]!==S||e[30]!==W?(G=(0,y.jsx)(u,{control:S,name:`strategy`,render:W}),e[29]=S,e[30]=W,e[31]=G):G=e[31];let K;e[32]===T.strategy?K=e[33]:(K=(0,y.jsx)(g,{errors:[T.strategy]}),e[32]=T.strategy,e[33]=K);let q;e[34]!==G||e[35]!==K?(q=(0,y.jsxs)(_,{children:[U,G,K]}),e[34]=G,e[35]=K,e[36]=q):q=e[36];let J;e[37]===A?J=e[38]:(J=ae(A),e[37]=A,e[38]=J);let Y;e[39]===J?Y=e[40]:(Y=(0,y.jsx)(te,{commands:J}),e[39]=J,e[40]=Y);let X;e[41]===t?X=e[42]:(X=async()=>await t({to:`/ec2/describe-placement-groups`}),e[41]=t,e[42]=X);let Z;e[43]!==b.isPending||e[44]!==E||e[45]!==X?(Z=(0,y.jsx)(p,{isPending:b.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),e[43]=b.isPending,e[44]=E,e[45]=X,e[46]=Z):Z=e[46];let Q;e[47]!==H||e[48]!==q||e[49]!==Y||e[50]!==Z||e[51]!==I?(Q=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[47]=H,e[48]=q,e[49]=Y,e[50]=Z,e[51]=I,e[52]=Q):Q=e[52];let $;return e[53]!==Q||e[54]!==F?($=(0,y.jsxs)(y.Fragment,{children:[N,P,F,Q]}),e[53]=Q,e[54]=F,e[55]=$):$=e[55],$}function x(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ae(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as ee,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{h as ne}from"./ec2.js";import{Ar as re,Di as s}from"./index.js";import{a as c,i as l,n as u,t as d}from"./zod.js";import{t as f}from"./error-banner.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";import{c as v}from"./ec22.js";var ie=t(),y=e();function b(){let e=(0,ie.c)(56),t=s(),b=ne(),x;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:d(v),defaultValues:{groupName:``,strategy:`spread`}},e[0]=x):x=e[0];let{control:S,handleSubmit:C,register:w,formState:oe}=l(x),{errors:T,isSubmitting:E}=oe,D;e[1]===S?D=e[2]:(D={control:S},e[1]=S,e[2]=D);let O=c(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==b||e[6]!==t?(j=async e=>{let n=await b.mutateAsync(e);t({to:`/ec2/describe-placement-groups/$id`,params:{id:n.PlacementGroup?.GroupId??``}})},e[5]=b,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(n,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,y.jsx)(m,{title:`Create Placement Group`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===b.error?F=e[11]:(F=b.error&&(0,y.jsx)(f,{error:b.error,msg:`Failed to create placement group`}),e[10]=b.error,e[11]=F);let I;e[12]!==C||e[13]!==M?(I=C(M),e[12]=C,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,y.jsx)(h,{children:(0,y.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[15]=L):L=e[15];let R=!!T.groupName,z;e[16]===w?z=e[17]:(z=w(`groupName`),e[16]=w,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,y.jsx)(re,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.groupName?V=e[22]:(V=(0,y.jsx)(g,{errors:[T.groupName]}),e[21]=T.groupName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,y.jsxs)(_,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,y.jsx)(h,{children:(0,y.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),e[26]=U):U=e[26];let W;e[27]===T.strategy?W=e[28]:(W=e=>{let{field:t}=e;return(0,y.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,y.jsx)(ee,{"aria-invalid":!!T.strategy,className:`w-full`,id:`strategy`,children:(0,y.jsx)(r,{})}),(0,y.jsxs)(a,{children:[(0,y.jsx)(i,{value:`spread`,children:`spread`}),(0,y.jsx)(i,{value:`cluster`,children:`cluster`})]})]})},e[27]=T.strategy,e[28]=W);let G;e[29]!==S||e[30]!==W?(G=(0,y.jsx)(u,{control:S,name:`strategy`,render:W}),e[29]=S,e[30]=W,e[31]=G):G=e[31];let K;e[32]===T.strategy?K=e[33]:(K=(0,y.jsx)(g,{errors:[T.strategy]}),e[32]=T.strategy,e[33]=K);let q;e[34]!==G||e[35]!==K?(q=(0,y.jsxs)(_,{children:[U,G,K]}),e[34]=G,e[35]=K,e[36]=q):q=e[36];let J;e[37]===A?J=e[38]:(J=ae(A),e[37]=A,e[38]=J);let Y;e[39]===J?Y=e[40]:(Y=(0,y.jsx)(te,{commands:J}),e[39]=J,e[40]=Y);let X;e[41]===t?X=e[42]:(X=async()=>await t({to:`/ec2/describe-placement-groups`}),e[41]=t,e[42]=X);let Z;e[43]!==b.isPending||e[44]!==E||e[45]!==X?(Z=(0,y.jsx)(p,{isPending:b.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),e[43]=b.isPending,e[44]=E,e[45]=X,e[46]=Z):Z=e[46];let Q;e[47]!==H||e[48]!==q||e[49]!==Y||e[50]!==Z||e[51]!==I?(Q=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[47]=H,e[48]=q,e[49]=Y,e[50]=Z,e[51]=I,e[52]=Q):Q=e[52];let $;return e[53]!==Q||e[54]!==F?($=(0,y.jsxs)(y.Fragment,{children:[N,P,F,Q]}),e[53]=Q,e[54]=F,e[55]=$):$=e[55],$}function x(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ae(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${n?x(n):``}`},{type:`flag`,value:` \\ --strategy`},{type:`value`,value:` ${i||`spread`}`}]}]}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js index 51020c7e7..0b87935f9 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{l as i}from"./iam.js";import{vi as a,xr as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{i as oe}from"./iam2.js";var se=t(),f=e(),p=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function m(){let e=(0,se.c)(67),t=a(),m=i(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{policyDocument:p}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-policies`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,f.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),k=(0,f.jsx)(ie,{title:`Create Policy`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,f.jsx)(ne,{error:m.error,msg:`Failed to create policy`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),e[15]=M):M=e[15];let N=!!b.policyName,P;e[16]===v?P=e[17]:(P=v(`policyName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,f.jsx)(o,{"aria-invalid":N,id:`policyName`,placeholder:`my-policy...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.policyName?I=e[22]:(I=(0,f.jsx)(u,{errors:[b.policyName]}),e[21]=b.policyName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,f.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,f.jsx)(o,{id:`description`,placeholder:`A brief description of this policy...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,f.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,f.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.policyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,f.jsx)(ae,{error:!!b.policyDocument,id:`policyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.policyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,f.jsx)(ee,{control:y,name:`policyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.policyDocument?K=e[43]:(K=(0,f.jsx)(u,{errors:[b.policyDocument]}),e[42]=b.policyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,f.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-policies`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,f.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,f.jsxs)(f.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{l as i}from"./iam.js";import{Ar as a,Di as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{i as oe}from"./iam2.js";var se=t(),f=e(),p=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function m(){let e=(0,se.c)(67),t=o(),m=i(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{policyDocument:p}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-policies`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,f.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),k=(0,f.jsx)(ie,{title:`Create Policy`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,f.jsx)(ne,{error:m.error,msg:`Failed to create policy`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),e[15]=M):M=e[15];let N=!!b.policyName,P;e[16]===v?P=e[17]:(P=v(`policyName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,f.jsx)(a,{"aria-invalid":N,id:`policyName`,placeholder:`my-policy...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.policyName?I=e[22]:(I=(0,f.jsx)(u,{errors:[b.policyName]}),e[21]=b.policyName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,f.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,f.jsx)(a,{id:`description`,placeholder:`A brief description of this policy...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,f.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,f.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.policyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,f.jsx)(ae,{error:!!b.policyDocument,id:`policyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.policyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,f.jsx)(ee,{control:y,name:`policyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.policyDocument?K=e[43]:(K=(0,f.jsx)(u,{errors:[b.policyDocument]}),e[42]=b.policyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,f.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-policies`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,f.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,f.jsxs)(f.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ --policy-name`},{type:`value`,value:` ${n||``}`}];return i&&s.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),s.push({type:`flag`,value:` \\ --policy-document`},{type:`value`,value:` '${o||``}'`}),[{label:`Create Policy`,parts:s}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-role.js b/spinifex/services/spinifexui/frontend/dist/assets/create-role.js index 5ecd6731e..692af515e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-role.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-role.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{u as i}from"./iam.js";import{vi as a,xr as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{a as oe,t as se}from"./iam2.js";var f=t(),p=e();function m(){let e=(0,f.c)(67),t=a(),m=i(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{assumeRolePolicyDocument:se}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-roles`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,p.jsx)(n,{to:`/iam/list-roles`,children:`Back to roles`}),k=(0,p.jsx)(ie,{title:`Create Role`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,p.jsx)(ne,{error:m.error,msg:`Failed to create role`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`roleName`,children:`Role Name`})}),e[15]=M):M=e[15];let N=!!b.roleName,P;e[16]===v?P=e[17]:(P=v(`roleName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,p.jsx)(o,{"aria-invalid":N,id:`roleName`,placeholder:`my-role...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.roleName?I=e[22]:(I=(0,p.jsx)(u,{errors:[b.roleName]}),e[21]=b.roleName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,p.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,p.jsx)(o,{id:`description`,placeholder:`A brief description of this role...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,p.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`assumeRolePolicyDocument`,children:`Trust Policy (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.assumeRolePolicyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,p.jsx)(ae,{error:!!b.assumeRolePolicyDocument,id:`assumeRolePolicyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.assumeRolePolicyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,p.jsx)(ee,{control:y,name:`assumeRolePolicyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.assumeRolePolicyDocument?K=e[43]:(K=(0,p.jsx)(u,{errors:[b.assumeRolePolicyDocument]}),e[42]=b.assumeRolePolicyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,p.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,p.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-roles`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,p.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Role`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,p.jsxs)(p.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`roleName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`assumeRolePolicyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-role`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{u as i}from"./iam.js";import{Ar as a,Di as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{a as oe,t as se}from"./iam2.js";var f=t(),p=e();function m(){let e=(0,f.c)(67),t=o(),m=i(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{assumeRolePolicyDocument:se}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-roles`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,p.jsx)(n,{to:`/iam/list-roles`,children:`Back to roles`}),k=(0,p.jsx)(ie,{title:`Create Role`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,p.jsx)(ne,{error:m.error,msg:`Failed to create role`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`roleName`,children:`Role Name`})}),e[15]=M):M=e[15];let N=!!b.roleName,P;e[16]===v?P=e[17]:(P=v(`roleName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,p.jsx)(a,{"aria-invalid":N,id:`roleName`,placeholder:`my-role...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.roleName?I=e[22]:(I=(0,p.jsx)(u,{errors:[b.roleName]}),e[21]=b.roleName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,p.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,p.jsx)(a,{id:`description`,placeholder:`A brief description of this role...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,p.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`assumeRolePolicyDocument`,children:`Trust Policy (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.assumeRolePolicyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,p.jsx)(ae,{error:!!b.assumeRolePolicyDocument,id:`assumeRolePolicyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.assumeRolePolicyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,p.jsx)(ee,{control:y,name:`assumeRolePolicyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.assumeRolePolicyDocument?K=e[43]:(K=(0,p.jsx)(u,{errors:[b.assumeRolePolicyDocument]}),e[42]=b.assumeRolePolicyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,p.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,p.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-roles`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,p.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Role`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,p.jsxs)(p.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`roleName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`assumeRolePolicyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-role`},{type:`flag`,value:` \\ --role-name`},{type:`value`,value:` ${n||``}`}];return i&&s.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),s.push({type:`flag`,value:` \\ --assume-role-policy-document`},{type:`value`,value:` '${o||``}'`}),[{label:`Create Role`,parts:s}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js index 854c9d175..42328b637 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Vt as r}from"./auth.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{_ as u}from"./ec2.js";import{on as d,vi as f,xr as p}from"./index.js";import{i as m,n as h,t as g}from"./zod.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=f(),{data:r}=n(d),o=u(),E;e[0]===r.Vpcs?E=e[1]:(E=r.Vpcs??[],e[0]=r.Vpcs,e[1]=E);let O=E,k;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:g(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=m(k),{errors:P,isSubmitting:F}=N,I;e[3]!==o||e[4]!==t?(I=async e=>{let n=(await o.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;t(n?{to:`/ec2/describe-route-tables/$id`,params:{id:n}}:{to:`/ec2/describe-route-tables`})},e[3]=o,e[4]=t,e[5]=I):I=e[5];let L=I,R,z;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(i,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(y,{title:`Create Route Table`}),e[6]=R,e[7]=z):(R=e[6],z=e[7]);let B;e[8]===o.error?B=e[9]:(B=o.error&&(0,T.jsx)(_,{error:o.error,msg:`Failed to create Route Table`}),e[8]=o.error,e[9]=B);let V;e[10]!==j||e[11]!==L?(V=j(L),e[10]=j,e[11]=L,e[12]=V):V=e[12];let H;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=H):H=e[13];let U;e[14]===M?U=e[15]:(U=M(`name`),e[14]=M,e[15]=U);let W;e[16]===U?W=e[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(p,{id:`name`,placeholder:`my-route-table`,...U})]}),e[16]=U,e[17]=W);let G;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[18]=G):G=e[18];let K;e[19]!==P.vpcId||e[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(l,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,T.jsx)(c,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(a,{placeholder:`Select a VPC`})}),(0,T.jsx)(s,{children:O.map(D)})]})},e[19]=P.vpcId,e[20]=O,e[21]=K):K=e[21];let q;e[22]!==A||e[23]!==K?(q=(0,T.jsx)(h,{control:A,name:`vpcId`,render:K}),e[22]=A,e[23]=K,e[24]=q):q=e[24];let J;e[25]===P.vpcId?J=e[26]:(J=(0,T.jsx)(x,{errors:[P.vpcId]}),e[25]=P.vpcId,e[26]=J);let Y;e[27]!==q||e[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),e[27]=q,e[28]=J,e[29]=Y):Y=e[29];let X;e[30]===t?X=e[31]:(X=async()=>await t({to:`/ec2/describe-route-tables`}),e[30]=t,e[31]=X);let Z;e[32]!==o.isPending||e[33]!==F||e[34]!==X?(Z=(0,T.jsx)(v,{isPending:o.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),e[32]=o.isPending,e[33]=F,e[34]=X,e[35]=Z):Z=e[35];let Q;e[36]!==W||e[37]!==Y||e[38]!==Z||e[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),e[36]=W,e[37]=Y,e[38]=Z,e[39]=V,e[40]=Q):Q=e[40];let $;return e[41]!==Q||e[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),e[41]=Q,e[42]=B,e[43]=$):$=e[43],$}function D(e){let t=r(e.Tags);return(0,T.jsx)(o,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Vt as r}from"./auth.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{_ as u}from"./ec2.js";import{Ar as d,Di as f,hn as p}from"./index.js";import{i as m,n as h,t as g}from"./zod.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=f(),{data:r}=n(p),o=u(),E;e[0]===r.Vpcs?E=e[1]:(E=r.Vpcs??[],e[0]=r.Vpcs,e[1]=E);let O=E,k;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:g(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=m(k),{errors:P,isSubmitting:F}=N,I;e[3]!==o||e[4]!==t?(I=async e=>{let n=(await o.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;t(n?{to:`/ec2/describe-route-tables/$id`,params:{id:n}}:{to:`/ec2/describe-route-tables`})},e[3]=o,e[4]=t,e[5]=I):I=e[5];let L=I,R,z;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(i,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(y,{title:`Create Route Table`}),e[6]=R,e[7]=z):(R=e[6],z=e[7]);let B;e[8]===o.error?B=e[9]:(B=o.error&&(0,T.jsx)(_,{error:o.error,msg:`Failed to create Route Table`}),e[8]=o.error,e[9]=B);let V;e[10]!==j||e[11]!==L?(V=j(L),e[10]=j,e[11]=L,e[12]=V):V=e[12];let H;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=H):H=e[13];let U;e[14]===M?U=e[15]:(U=M(`name`),e[14]=M,e[15]=U);let W;e[16]===U?W=e[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(d,{id:`name`,placeholder:`my-route-table`,...U})]}),e[16]=U,e[17]=W);let G;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[18]=G):G=e[18];let K;e[19]!==P.vpcId||e[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(l,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,T.jsx)(c,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(a,{placeholder:`Select a VPC`})}),(0,T.jsx)(s,{children:O.map(D)})]})},e[19]=P.vpcId,e[20]=O,e[21]=K):K=e[21];let q;e[22]!==A||e[23]!==K?(q=(0,T.jsx)(h,{control:A,name:`vpcId`,render:K}),e[22]=A,e[23]=K,e[24]=q):q=e[24];let J;e[25]===P.vpcId?J=e[26]:(J=(0,T.jsx)(x,{errors:[P.vpcId]}),e[25]=P.vpcId,e[26]=J);let Y;e[27]!==q||e[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),e[27]=q,e[28]=J,e[29]=Y):Y=e[29];let X;e[30]===t?X=e[31]:(X=async()=>await t({to:`/ec2/describe-route-tables`}),e[30]=t,e[31]=X);let Z;e[32]!==o.isPending||e[33]!==F||e[34]!==X?(Z=(0,T.jsx)(v,{isPending:o.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),e[32]=o.isPending,e[33]=F,e[34]=X,e[35]=Z):Z=e[35];let Q;e[36]!==W||e[37]!==Y||e[38]!==Z||e[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),e[36]=W,e[37]=Y,e[38]=Z,e[39]=V,e[40]=Q):Q=e[40];let $;return e[41]!==Q||e[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),e[41]=Q,e[42]=B,e[43]=$):$=e[43],$}function D(e){let t=r(e.Tags);return(0,T.jsx)(o,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js index 6f8df3180..a66cabb92 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Vt as r}from"./auth.js";import{t as ee}from"./back-link.js";import{c as i,i as a,n as o,s as te,t as ne}from"./select.js";import{t as re}from"./cli-command-panel.js";import{v as ie}from"./ec2.js";import{on as ae,vi as oe,xr as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as s,r as c,t as l}from"./field.js";import{d as he}from"./ec22.js";var ge=t(),u=e();function d(){let e=(0,ge.c)(73),t=oe(),{data:r}=n(ae),a=ie(),d;e[0]===r.Vpcs?d=e[1]:(d=r.Vpcs??[],e[0]=r.Vpcs,e[1]=d);let f=d,p;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=de(he),e[2]=p):p=e[2];let m=f[0]?.VpcId??``,h;e[3]===m?h=e[4]:(h={resolver:p,defaultValues:{groupName:``,description:``,vpcId:m}},e[3]=m,e[4]=h);let{control:g,handleSubmit:_,register:v,formState:ye}=le(h),{errors:y,isSubmitting:b}=ye,x;e[5]===g?x=e[6]:(x={control:g},e[5]=g,e[6]=x);let S=ce(x),C;e[7]===S?C=e[8]:(C=e=>e?S[e]:void 0,e[7]=S,e[8]=C);let w=C,T;e[9]!==a||e[10]!==t?(T=async e=>{let n=(await a.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[9]=a,e[10]=t,e[11]=T):T=e[11];let E=T,D,O;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,u.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,u.jsx)(me,{title:`Create Security Group`}),e[12]=D,e[13]=O):(D=e[12],O=e[13]);let k;e[14]===a.error?k=e[15]:(k=a.error&&(0,u.jsx)(fe,{error:a.error,msg:`Failed to create security group`}),e[14]=a.error,e[15]=k);let A;e[16]!==_||e[17]!==E?(A=_(E),e[16]=_,e[17]=E,e[18]=A):A=e[18];let j;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[19]=j):j=e[19];let M=!!y.groupName,N;e[20]===v?N=e[21]:(N=v(`groupName`),e[20]=v,e[21]=N);let P;e[22]!==M||e[23]!==N?(P=(0,u.jsx)(se,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[22]=M,e[23]=N,e[24]=P):P=e[24];let F;e[25]===y.groupName?F=e[26]:(F=(0,u.jsx)(c,{errors:[y.groupName]}),e[25]=y.groupName,e[26]=F);let I;e[27]!==P||e[28]!==F?(I=(0,u.jsxs)(l,{children:[j,P,F]}),e[27]=P,e[28]=F,e[29]=I):I=e[29];let L;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[30]=L):L=e[30];let R=!!y.description,z;e[31]===v?z=e[32]:(z=v(`description`),e[31]=v,e[32]=z);let B;e[33]!==R||e[34]!==z?(B=(0,u.jsx)(se,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[33]=R,e[34]=z,e[35]=B):B=e[35];let V;e[36]===y.description?V=e[37]:(V=(0,u.jsx)(c,{errors:[y.description]}),e[36]=y.description,e[37]=V);let H;e[38]!==B||e[39]!==V?(H=(0,u.jsxs)(l,{children:[L,B,V]}),e[38]=B,e[39]=V,e[40]=H):H=e[40];let U;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[41]=U):U=e[41];let W;e[42]!==y.vpcId||e[43]!==f?(W=e=>{let{field:t}=e;return(0,u.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,u.jsx)(te,{"aria-invalid":!!y.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(i,{})}),(0,u.jsx)(o,{children:f.map(_e)})]})},e[42]=y.vpcId,e[43]=f,e[44]=W):W=e[44];let G;e[45]!==g||e[46]!==W?(G=(0,u.jsx)(ue,{control:g,name:`vpcId`,render:W}),e[45]=g,e[46]=W,e[47]=G):G=e[47];let K;e[48]===y.vpcId?K=e[49]:(K=(0,u.jsx)(c,{errors:[y.vpcId]}),e[48]=y.vpcId,e[49]=K);let q;e[50]!==G||e[51]!==K?(q=(0,u.jsxs)(l,{children:[U,G,K]}),e[50]=G,e[51]=K,e[52]=q):q=e[52];let J;e[53]===w?J=e[54]:(J=ve(w),e[53]=w,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(re,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-security-groups`}),e[57]=t,e[58]=X);let Z;e[59]!==a.isPending||e[60]!==b||e[61]!==X?(Z=(0,u.jsx)(pe,{isPending:a.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[59]=a.isPending,e[60]=b,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==A||e[64]!==I||e[65]!==H||e[66]!==q||e[67]!==Y||e[68]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[63]=A,e[64]=I,e[65]=H,e[66]=q,e[67]=Y,e[68]=Z,e[69]=Q):Q=e[69];let $;return e[70]!==k||e[71]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[D,O,k,Q]}),e[70]=k,e[71]=Q,e[72]=$):$=e[72],$}function _e(e){let t=r(e.Tags);return(0,u.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ve(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),ee=typeof r==`string`?r:``,i=e(`vpcId`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Vt as r}from"./auth.js";import{t as ee}from"./back-link.js";import{c as i,i as a,n as o,s as te,t as ne}from"./select.js";import{t as re}from"./cli-command-panel.js";import{v as ie}from"./ec2.js";import{Ar as ae,Di as oe,hn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as s,r as c,t as l}from"./field.js";import{d as he}from"./ec22.js";var ge=t(),u=e();function d(){let e=(0,ge.c)(73),t=oe(),{data:r}=n(se),a=ie(),d;e[0]===r.Vpcs?d=e[1]:(d=r.Vpcs??[],e[0]=r.Vpcs,e[1]=d);let f=d,p;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=de(he),e[2]=p):p=e[2];let m=f[0]?.VpcId??``,h;e[3]===m?h=e[4]:(h={resolver:p,defaultValues:{groupName:``,description:``,vpcId:m}},e[3]=m,e[4]=h);let{control:g,handleSubmit:_,register:v,formState:ye}=le(h),{errors:y,isSubmitting:b}=ye,x;e[5]===g?x=e[6]:(x={control:g},e[5]=g,e[6]=x);let S=ce(x),C;e[7]===S?C=e[8]:(C=e=>e?S[e]:void 0,e[7]=S,e[8]=C);let w=C,T;e[9]!==a||e[10]!==t?(T=async e=>{let n=(await a.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[9]=a,e[10]=t,e[11]=T):T=e[11];let E=T,D,O;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,u.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,u.jsx)(me,{title:`Create Security Group`}),e[12]=D,e[13]=O):(D=e[12],O=e[13]);let k;e[14]===a.error?k=e[15]:(k=a.error&&(0,u.jsx)(fe,{error:a.error,msg:`Failed to create security group`}),e[14]=a.error,e[15]=k);let A;e[16]!==_||e[17]!==E?(A=_(E),e[16]=_,e[17]=E,e[18]=A):A=e[18];let j;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[19]=j):j=e[19];let M=!!y.groupName,N;e[20]===v?N=e[21]:(N=v(`groupName`),e[20]=v,e[21]=N);let P;e[22]!==M||e[23]!==N?(P=(0,u.jsx)(ae,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[22]=M,e[23]=N,e[24]=P):P=e[24];let F;e[25]===y.groupName?F=e[26]:(F=(0,u.jsx)(c,{errors:[y.groupName]}),e[25]=y.groupName,e[26]=F);let I;e[27]!==P||e[28]!==F?(I=(0,u.jsxs)(l,{children:[j,P,F]}),e[27]=P,e[28]=F,e[29]=I):I=e[29];let L;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[30]=L):L=e[30];let R=!!y.description,z;e[31]===v?z=e[32]:(z=v(`description`),e[31]=v,e[32]=z);let B;e[33]!==R||e[34]!==z?(B=(0,u.jsx)(ae,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[33]=R,e[34]=z,e[35]=B):B=e[35];let V;e[36]===y.description?V=e[37]:(V=(0,u.jsx)(c,{errors:[y.description]}),e[36]=y.description,e[37]=V);let H;e[38]!==B||e[39]!==V?(H=(0,u.jsxs)(l,{children:[L,B,V]}),e[38]=B,e[39]=V,e[40]=H):H=e[40];let U;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[41]=U):U=e[41];let W;e[42]!==y.vpcId||e[43]!==f?(W=e=>{let{field:t}=e;return(0,u.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,u.jsx)(te,{"aria-invalid":!!y.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(i,{})}),(0,u.jsx)(o,{children:f.map(_e)})]})},e[42]=y.vpcId,e[43]=f,e[44]=W):W=e[44];let G;e[45]!==g||e[46]!==W?(G=(0,u.jsx)(ue,{control:g,name:`vpcId`,render:W}),e[45]=g,e[46]=W,e[47]=G):G=e[47];let K;e[48]===y.vpcId?K=e[49]:(K=(0,u.jsx)(c,{errors:[y.vpcId]}),e[48]=y.vpcId,e[49]=K);let q;e[50]!==G||e[51]!==K?(q=(0,u.jsxs)(l,{children:[U,G,K]}),e[50]=G,e[51]=K,e[52]=q):q=e[52];let J;e[53]===w?J=e[54]:(J=ve(w),e[53]=w,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(re,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-security-groups`}),e[57]=t,e[58]=X);let Z;e[59]!==a.isPending||e[60]!==b||e[61]!==X?(Z=(0,u.jsx)(pe,{isPending:a.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[59]=a.isPending,e[60]=b,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==A||e[64]!==I||e[65]!==H||e[66]!==q||e[67]!==Y||e[68]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[63]=A,e[64]=I,e[65]=H,e[66]=q,e[67]=Y,e[68]=Z,e[69]=Q):Q=e[69];let $;return e[70]!==k||e[71]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[D,O,k,Q]}),e[70]=k,e[71]=Q,e[72]=$):$=e[72],$}function _e(e){let t=r(e.Tags);return(0,u.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ve(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),ee=typeof r==`string`?r:``,i=e(`vpcId`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --description`},{type:`value`,value:` "${ee||``}"`}];return a&&o.push({type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${a}`}),[{label:`Create Security Group`,parts:o}]}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-service.js b/spinifex/services/spinifexui/frontend/dist/assets/create-service.js index 76f6142d6..432be8037 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-service.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-service.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{n as u}from"./ecs.js";import{G as d,Qt as f,lt as p,nn as m,tt as h,ut as g,vi as _,xr as v}from"./index.js";import{i as y,n as b,t as x}from"./zod.js";import{t as S}from"./error-banner.js";import{t as C}from"./form-actions.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{n as O}from"./ecs2.js";var k=t(),A=e();function j(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function M({cluster:e}){let t=_(),d=u(),{data:k}=r(g),{data:M}=r(m),{data:N}=r(f),{data:P}=r(h),F=M.Subnets??[],I=N.SecurityGroups??[],L=P.TargetGroups??[],{control:R,handleSubmit:z,register:B,watch:V,setValue:H,getValues:U,formState:{errors:W,isSubmitting:G}}=y({resolver:x(O),defaultValues:{cluster:e,serviceName:``,taskDefinition:``,desiredCount:1,subnets:[],securityGroups:[],assignPublicIp:!1,targetGroupArn:``,loadBalancerContainerName:``,loadBalancerContainerPort:``}}),{data:K}=n(p(V(`taskDefinition`))),q=K?.networkMode===`awsvpc`,J=V(`subnets`),Y=V(`securityGroups`),X=(e,t)=>{let n=U(e);H(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function Z(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}async function Q(e){await d.mutateAsync({...e,awsvpc:q}),Z()}let $=q&&J.length===0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(i,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,A.jsx)(w,{subtitle:`Cluster: ${e}`,title:`Create Service`}),d.isError&&(0,A.jsx)(S,{error:d.error instanceof Error?d.error:void 0,msg:`Failed to create service.`}),(0,A.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:z(Q),children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`serviceName`,children:`Service name`})}),(0,A.jsx)(v,{id:`serviceName`,placeholder:`api`,...B(`serviceName`)}),(0,A.jsx)(E,{errors:[W.serviceName]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,A.jsx)(b,{control:R,name:`taskDefinition`,render:({field:e})=>(0,A.jsxs)(l,{onValueChange:e.onChange,value:e.value,children:[(0,A.jsx)(c,{className:`w-full`,id:`taskDefinition`,children:(0,A.jsx)(a,{placeholder:`Select a task definition`})}),(0,A.jsx)(s,{children:k.map(e=>{let t=j(e);return(0,A.jsx)(o,{value:t,children:t},e)})})]})}),(0,A.jsx)(E,{errors:[W.taskDefinition]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`desiredCount`,children:`Desired count`})}),(0,A.jsx)(v,{id:`desiredCount`,type:`number`,...B(`desiredCount`,{valueAsNumber:!0})}),(0,A.jsx)(E,{errors:[W.desiredCount]})]}),q&&(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:F.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:J.includes(e.SubnetId??``),onChange:()=>X(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:I.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:Y.includes(e.GroupId??``),onChange:()=>X(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,A.jsx)(`input`,{type:`checkbox`,...B(`assignPublicIp`)}),(0,A.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`font-semibold`,children:`Load balancer (optional)`}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`targetGroupArn`,children:`Target group`})}),(0,A.jsx)(b,{control:R,name:`targetGroupArn`,render:({field:e})=>(0,A.jsxs)(l,{onValueChange:t=>e.onChange(t===`none`?``:t),value:e.value===``?`none`:e.value,children:[(0,A.jsx)(c,{className:`w-full`,id:`targetGroupArn`,children:(0,A.jsx)(a,{})}),(0,A.jsxs)(s,{children:[(0,A.jsx)(o,{value:`none`,children:`none`}),L.map(e=>(0,A.jsx)(o,{value:e.TargetGroupArn??``,children:e.TargetGroupName},e.TargetGroupArn))]})]})})]}),(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerName`,children:`Container name`})}),(0,A.jsx)(v,{id:`lbContainerName`,placeholder:`app`,...B(`loadBalancerContainerName`)})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerPort`,children:`Container port`})}),(0,A.jsx)(v,{id:`lbContainerPort`,placeholder:`80`,type:`number`,...B(`loadBalancerContainerPort`)})]})]})]}),(0,A.jsx)(C,{isPending:d.isPending||$,isSubmitting:G,onCancel:Z,pendingLabel:`Creating…`,submitLabel:`Create Service`})]})]})}function N(){let e=(0,k.c)(2),{cluster:t}=d.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,A.jsx)(M,{cluster:t}),e[0]=t,e[1]=n),n}export{N as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{n as u}from"./ecs.js";import{Ar as d,Di as f,G as p,dn as m,lt as h,sn as g,tt as _,ut as v}from"./index.js";import{i as y,n as b,t as x}from"./zod.js";import{t as S}from"./error-banner.js";import{t as C}from"./form-actions.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{n as O}from"./ecs2.js";var k=t(),A=e();function j(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function M({cluster:e}){let t=f(),p=u(),{data:k}=r(v),{data:M}=r(m),{data:N}=r(g),{data:P}=r(_),F=M.Subnets??[],I=N.SecurityGroups??[],L=P.TargetGroups??[],{control:R,handleSubmit:z,register:B,watch:V,setValue:H,getValues:U,formState:{errors:W,isSubmitting:G}}=y({resolver:x(O),defaultValues:{cluster:e,serviceName:``,taskDefinition:``,desiredCount:1,subnets:[],securityGroups:[],assignPublicIp:!1,targetGroupArn:``,loadBalancerContainerName:``,loadBalancerContainerPort:``}}),{data:K}=n(h(V(`taskDefinition`))),q=K?.networkMode===`awsvpc`,J=V(`subnets`),Y=V(`securityGroups`),X=(e,t)=>{let n=U(e);H(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function Z(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}async function Q(e){await p.mutateAsync({...e,awsvpc:q}),Z()}let $=q&&J.length===0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(i,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,A.jsx)(w,{subtitle:`Cluster: ${e}`,title:`Create Service`}),p.isError&&(0,A.jsx)(S,{error:p.error instanceof Error?p.error:void 0,msg:`Failed to create service.`}),(0,A.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:z(Q),children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`serviceName`,children:`Service name`})}),(0,A.jsx)(d,{id:`serviceName`,placeholder:`api`,...B(`serviceName`)}),(0,A.jsx)(E,{errors:[W.serviceName]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,A.jsx)(b,{control:R,name:`taskDefinition`,render:({field:e})=>(0,A.jsxs)(l,{onValueChange:e.onChange,value:e.value,children:[(0,A.jsx)(c,{className:`w-full`,id:`taskDefinition`,children:(0,A.jsx)(a,{placeholder:`Select a task definition`})}),(0,A.jsx)(s,{children:k.map(e=>{let t=j(e);return(0,A.jsx)(o,{value:t,children:t},e)})})]})}),(0,A.jsx)(E,{errors:[W.taskDefinition]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`desiredCount`,children:`Desired count`})}),(0,A.jsx)(d,{id:`desiredCount`,type:`number`,...B(`desiredCount`,{valueAsNumber:!0})}),(0,A.jsx)(E,{errors:[W.desiredCount]})]}),q&&(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:F.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:J.includes(e.SubnetId??``),onChange:()=>X(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:I.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:Y.includes(e.GroupId??``),onChange:()=>X(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,A.jsx)(`input`,{type:`checkbox`,...B(`assignPublicIp`)}),(0,A.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`font-semibold`,children:`Load balancer (optional)`}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`targetGroupArn`,children:`Target group`})}),(0,A.jsx)(b,{control:R,name:`targetGroupArn`,render:({field:e})=>(0,A.jsxs)(l,{onValueChange:t=>e.onChange(t===`none`?``:t),value:e.value===``?`none`:e.value,children:[(0,A.jsx)(c,{className:`w-full`,id:`targetGroupArn`,children:(0,A.jsx)(a,{})}),(0,A.jsxs)(s,{children:[(0,A.jsx)(o,{value:`none`,children:`none`}),L.map(e=>(0,A.jsx)(o,{value:e.TargetGroupArn??``,children:e.TargetGroupName},e.TargetGroupArn))]})]})})]}),(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerName`,children:`Container name`})}),(0,A.jsx)(d,{id:`lbContainerName`,placeholder:`app`,...B(`loadBalancerContainerName`)})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerPort`,children:`Container port`})}),(0,A.jsx)(d,{id:`lbContainerPort`,placeholder:`80`,type:`number`,...B(`loadBalancerContainerPort`)})]})]})]}),(0,A.jsx)(C,{isPending:p.isPending||$,isSubmitting:G,onCancel:Z,pendingLabel:`Creating…`,submitLabel:`Create Service`})]})]})}function N(){let e=(0,k.c)(2),{cluster:t}=p.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,A.jsx)(M,{cluster:t}),e[0]=t,e[1]=n),n}export{N as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js index e3591bec5..af3aa9d52 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{y as ee}from"./ec2.js";import{W as te,in as u,vi as ne}from"./index.js";import{a as re,i as ie,n as ae,t as oe}from"./zod.js";import{t as se}from"./error-banner.js";import{t as ce}from"./form-actions.js";import{t as le}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{f as m}from"./ec22.js";import{t as ue}from"./textarea.js";var h=t(),g=e();function _(){let e=(0,h.c)(55),t=ne(),{data:a}=n(u),_=ee(),v;e[0]===a.Volumes?v=e[1]:(v=a.Volumes??[],e[0]=a.Volumes,e[1]=v);let y=v,{volumeId:b}=te.useSearch(),x=b??y[0]?.VolumeId??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=oe(m),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{volumeId:x,description:``}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,formState:D}=ie(C),{errors:O,isSubmitting:k}=D,A;e[5]===w?A=e[6]:(A={control:w},e[5]=w,e[6]=A);let j=re(A),M;e[7]===j?M=e[8]:(M=e=>e?j[e]:void 0,e[7]=j,e[8]=M);let N=M,P;e[9]!==_||e[10]!==t?(P=async e=>{await _.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[9]=_,e[10]=t,e[11]=P):P=e[11];let F=P,I,L;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,g.jsx)(r,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,g.jsx)(le,{title:`Create Snapshot`}),e[12]=I,e[13]=L):(I=e[12],L=e[13]);let R;e[14]===_.error?R=e[15]:(R=_.error&&(0,g.jsx)(se,{error:_.error,msg:`Failed to create snapshot`}),e[14]=_.error,e[15]=R);let z;e[16]!==T||e[17]!==F?(z=T(F),e[16]=T,e[17]=F,e[18]=z):z=e[18];let B;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[19]=B):B=e[19];let V;e[20]!==O.volumeId||e[21]!==y?(V=e=>{let{field:t}=e;return(0,g.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(s,{"aria-invalid":!!O.volumeId,className:`w-full`,id:`volumeId`,children:(0,g.jsx)(i,{})}),(0,g.jsx)(o,{children:y.map(de)})]})},e[20]=O.volumeId,e[21]=y,e[22]=V):V=e[22];let H;e[23]!==w||e[24]!==V?(H=(0,g.jsx)(ae,{control:w,name:`volumeId`,render:V}),e[23]=w,e[24]=V,e[25]=H):H=e[25];let U;e[26]===O.volumeId?U=e[27]:(U=(0,g.jsx)(f,{errors:[O.volumeId]}),e[26]=O.volumeId,e[27]=U);let W;e[28]!==H||e[29]!==U?(W=(0,g.jsxs)(p,{children:[B,H,U]}),e[28]=H,e[29]=U,e[30]=W):W=e[30];let G;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[31]=G):G=e[31];let K;e[32]===E?K=e[33]:(K=E(`description`),e[32]=E,e[33]=K);let q;e[34]===K?q=e[35]:(q=(0,g.jsxs)(p,{children:[G,(0,g.jsx)(ue,{id:`description`,placeholder:`Snapshot description`,...K})]}),e[34]=K,e[35]=q);let J;e[36]===N?J=e[37]:(J=fe(N),e[36]=N,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,g.jsx)(l,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/ec2/describe-snapshots`}),e[40]=t,e[41]=X);let Z;e[42]!==_.isPending||e[43]!==k||e[44]!==X?(Z=(0,g.jsx)(ce,{isPending:_.isPending,isSubmitting:k,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),e[42]=_.isPending,e[43]=k,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==z||e[47]!==W||e[48]!==q||e[49]!==Y||e[50]!==Z?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),e[46]=z,e[47]=W,e[48]=q,e[49]=Y,e[50]=Z,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==R?($=(0,g.jsxs)(g.Fragment,{children:[I,L,R,Q]}),e[52]=Q,e[53]=R,e[54]=$):$=e[54],$}function de(e){return(0,g.jsxs)(a,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function fe(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{y as ee}from"./ec2.js";import{Di as te,W as u,pn as ne}from"./index.js";import{a as re,i as ie,n as ae,t as oe}from"./zod.js";import{t as se}from"./error-banner.js";import{t as ce}from"./form-actions.js";import{t as le}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{f as m}from"./ec22.js";import{t as ue}from"./textarea.js";var h=t(),g=e();function _(){let e=(0,h.c)(55),t=te(),{data:a}=n(ne),_=ee(),v;e[0]===a.Volumes?v=e[1]:(v=a.Volumes??[],e[0]=a.Volumes,e[1]=v);let y=v,{volumeId:b}=u.useSearch(),x=b??y[0]?.VolumeId??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=oe(m),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{volumeId:x,description:``}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,formState:D}=ie(C),{errors:O,isSubmitting:k}=D,A;e[5]===w?A=e[6]:(A={control:w},e[5]=w,e[6]=A);let j=re(A),M;e[7]===j?M=e[8]:(M=e=>e?j[e]:void 0,e[7]=j,e[8]=M);let N=M,P;e[9]!==_||e[10]!==t?(P=async e=>{await _.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[9]=_,e[10]=t,e[11]=P):P=e[11];let F=P,I,L;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,g.jsx)(r,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,g.jsx)(le,{title:`Create Snapshot`}),e[12]=I,e[13]=L):(I=e[12],L=e[13]);let R;e[14]===_.error?R=e[15]:(R=_.error&&(0,g.jsx)(se,{error:_.error,msg:`Failed to create snapshot`}),e[14]=_.error,e[15]=R);let z;e[16]!==T||e[17]!==F?(z=T(F),e[16]=T,e[17]=F,e[18]=z):z=e[18];let B;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[19]=B):B=e[19];let V;e[20]!==O.volumeId||e[21]!==y?(V=e=>{let{field:t}=e;return(0,g.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(s,{"aria-invalid":!!O.volumeId,className:`w-full`,id:`volumeId`,children:(0,g.jsx)(i,{})}),(0,g.jsx)(o,{children:y.map(de)})]})},e[20]=O.volumeId,e[21]=y,e[22]=V):V=e[22];let H;e[23]!==w||e[24]!==V?(H=(0,g.jsx)(ae,{control:w,name:`volumeId`,render:V}),e[23]=w,e[24]=V,e[25]=H):H=e[25];let U;e[26]===O.volumeId?U=e[27]:(U=(0,g.jsx)(f,{errors:[O.volumeId]}),e[26]=O.volumeId,e[27]=U);let W;e[28]!==H||e[29]!==U?(W=(0,g.jsxs)(p,{children:[B,H,U]}),e[28]=H,e[29]=U,e[30]=W):W=e[30];let G;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[31]=G):G=e[31];let K;e[32]===E?K=e[33]:(K=E(`description`),e[32]=E,e[33]=K);let q;e[34]===K?q=e[35]:(q=(0,g.jsxs)(p,{children:[G,(0,g.jsx)(ue,{id:`description`,placeholder:`Snapshot description`,...K})]}),e[34]=K,e[35]=q);let J;e[36]===N?J=e[37]:(J=fe(N),e[36]=N,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,g.jsx)(l,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/ec2/describe-snapshots`}),e[40]=t,e[41]=X);let Z;e[42]!==_.isPending||e[43]!==k||e[44]!==X?(Z=(0,g.jsx)(ce,{isPending:_.isPending,isSubmitting:k,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),e[42]=_.isPending,e[43]=k,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==z||e[47]!==W||e[48]!==q||e[49]!==Y||e[50]!==Z?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),e[46]=z,e[47]=W,e[48]=q,e[49]=Y,e[50]=Z,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==R?($=(0,g.jsxs)(g.Fragment,{children:[I,L,R,Q]}),e[52]=Q,e[53]=R,e[54]=$):$=e[54],$}function de(e){return(0,g.jsxs)(a,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function fe(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ --volume-id`},{type:`value`,value:` ${n||``}`}];return i&&a.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),[{label:`Create Snapshot`,parts:a}]}export{_ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js index 36b01f488..7690cc2c2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Vt as r}from"./auth.js";import{t as ee}from"./back-link.js";import{c as i,i as a,n as o,s,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{b as re}from"./ec2.js";import{Nt as ie,on as ae,vi as oe,xr as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as c,r as he,t as l}from"./field.js";import{p as ge}from"./ec22.js";var _e=t(),u=e();function d(){let e=(0,_e.c)(74),t=oe(),{data:r}=n(ae),{data:d}=n(ie),f=re(),p;e[0]===r.Vpcs?p=e[1]:(p=r.Vpcs??[],e[0]=r.Vpcs,e[1]=p);let m=p,h;e[2]===d.AvailabilityZones?h=e[3]:(h=d.AvailabilityZones??[],e[2]=d.AvailabilityZones,e[3]=h);let g=h,_;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=de(ge),e[4]=_):_=e[4];let v=m[0]?.VpcId??``,y;e[5]===v?y=e[6]:(y={resolver:_,defaultValues:{vpcId:v,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},e[5]=v,e[6]=y);let{control:b,handleSubmit:x,register:S,formState:Se}=le(y),{errors:C,isSubmitting:w}=Se,T;e[7]===b?T=e[8]:(T={control:b},e[7]=b,e[8]=T);let E=ce(T),D;e[9]===E?D=e[10]:(D=e=>e?E[e]:void 0,e[9]=E,e[10]=D);let Ce=D,O;e[11]!==f||e[12]!==t?(O=async e=>{let n=(await f.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[11]=f,e[12]=t,e[13]=O):O=e[13];let we=O,k,A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,u.jsx)(ee,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,u.jsx)(me,{title:`Create Subnet`}),e[14]=k,e[15]=A):(k=e[14],A=e[15]);let j;e[16]===f.error?j=e[17]:(j=f.error&&(0,u.jsx)(fe,{error:f.error,msg:`Failed to create subnet`}),e[16]=f.error,e[17]=j);let M;e[18]!==x||e[19]!==we?(M=x(we),e[18]=x,e[19]=we,e[20]=M):M=e[20];let N;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[21]=N):N=e[21];let P;e[22]!==C.vpcId||e[23]!==m?(P=e=>{let{field:t}=e;return(0,u.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,u.jsx)(s,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(i,{})}),(0,u.jsx)(o,{children:m.map(be)})]})},e[22]=C.vpcId,e[23]=m,e[24]=P):P=e[24];let F;e[25]!==b||e[26]!==P?(F=(0,u.jsx)(ue,{control:b,name:`vpcId`,render:P}),e[25]=b,e[26]=P,e[27]=F):F=e[27];let I;e[28]===C.vpcId?I=e[29]:(I=(0,u.jsx)(he,{errors:[C.vpcId]}),e[28]=C.vpcId,e[29]=I);let L;e[30]!==F||e[31]!==I?(L=(0,u.jsxs)(l,{children:[N,F,I]}),e[30]=F,e[31]=I,e[32]=L):L=e[32];let R;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[33]=R):R=e[33];let Te=!!C.cidrBlock,z;e[34]===S?z=e[35]:(z=S(`cidrBlock`),e[34]=S,e[35]=z);let B;e[36]!==Te||e[37]!==z?(B=(0,u.jsx)(se,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[36]=Te,e[37]=z,e[38]=B):B=e[38];let V;e[39]===C.cidrBlock?V=e[40]:(V=(0,u.jsx)(he,{errors:[C.cidrBlock]}),e[39]=C.cidrBlock,e[40]=V);let H;e[41]!==B||e[42]!==V?(H=(0,u.jsxs)(l,{children:[R,B,V]}),e[41]=B,e[42]=V,e[43]=H):H=e[43];let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[44]=U):U=e[44];let W;e[45]===g?W=e[46]:(W=e=>{let{field:t}=e;return(0,u.jsxs)(te,{onValueChange:e=>t.onChange(e===`none`?void 0:e),value:t.value??`none`,children:[(0,u.jsx)(s,{className:`w-full`,id:`availabilityZone`,children:(0,u.jsx)(i,{})}),(0,u.jsxs)(o,{children:[(0,u.jsx)(a,{value:`none`,children:`none`}),g.map(ye)]})]})},e[45]=g,e[46]=W);let G;e[47]!==b||e[48]!==W?(G=(0,u.jsxs)(l,{children:[U,(0,u.jsx)(ue,{control:b,name:`availabilityZone`,render:W})]}),e[47]=b,e[48]=W,e[49]=G):G=e[49];let K;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,u.jsx)(c,{children:`Auto-assign public IPv4`}),e[50]=K):K=e[50];let q;e[51]===b?q=e[52]:(q=(0,u.jsxs)(l,{children:[K,(0,u.jsx)(ue,{control:b,name:`mapPublicIpOnLaunch`,render:ve})]}),e[51]=b,e[52]=q);let J;e[53]===Ce?J=e[54]:(J=xe(Ce),e[53]=Ce,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(ne,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-subnets`}),e[57]=t,e[58]=X);let Z;e[59]!==f.isPending||e[60]!==w||e[61]!==X?(Z=(0,u.jsx)(pe,{isPending:f.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[59]=f.isPending,e[60]=w,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==M||e[64]!==L||e[65]!==H||e[66]!==G||e[67]!==q||e[68]!==Y||e[69]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),e[63]=M,e[64]=L,e[65]=H,e[66]=G,e[67]=q,e[68]=Y,e[69]=Z,e[70]=Q):Q=e[70];let $;return e[71]!==j||e[72]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[A,k,j,Q]}),e[71]=j,e[72]=Q,e[73]=$):$=e[73],$}function ve(e){let{field:t}=e;return(0,u.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,u.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>t.onChange(e.target.checked),type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function ye(e){return(0,u.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function be(e){let t=r(e.Tags);return(0,u.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function xe(e){let t=e(`vpcId`),n=typeof t==`string`?t:``,r=e(`cidrBlock`),ee=typeof r==`string`?r:``,i=e(`availabilityZone`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Vt as r}from"./auth.js";import{t as ee}from"./back-link.js";import{c as i,i as a,n as o,s,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{b as re}from"./ec2.js";import{Ar as ie,Di as ae,Ht as oe,hn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as c,r as he,t as l}from"./field.js";import{p as ge}from"./ec22.js";var _e=t(),u=e();function d(){let e=(0,_e.c)(74),t=ae(),{data:r}=n(se),{data:d}=n(oe),f=re(),p;e[0]===r.Vpcs?p=e[1]:(p=r.Vpcs??[],e[0]=r.Vpcs,e[1]=p);let m=p,h;e[2]===d.AvailabilityZones?h=e[3]:(h=d.AvailabilityZones??[],e[2]=d.AvailabilityZones,e[3]=h);let g=h,_;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=de(ge),e[4]=_):_=e[4];let v=m[0]?.VpcId??``,y;e[5]===v?y=e[6]:(y={resolver:_,defaultValues:{vpcId:v,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},e[5]=v,e[6]=y);let{control:b,handleSubmit:x,register:S,formState:Se}=le(y),{errors:C,isSubmitting:w}=Se,T;e[7]===b?T=e[8]:(T={control:b},e[7]=b,e[8]=T);let E=ce(T),D;e[9]===E?D=e[10]:(D=e=>e?E[e]:void 0,e[9]=E,e[10]=D);let Ce=D,O;e[11]!==f||e[12]!==t?(O=async e=>{let n=(await f.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[11]=f,e[12]=t,e[13]=O):O=e[13];let we=O,k,A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,u.jsx)(ee,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,u.jsx)(me,{title:`Create Subnet`}),e[14]=k,e[15]=A):(k=e[14],A=e[15]);let j;e[16]===f.error?j=e[17]:(j=f.error&&(0,u.jsx)(fe,{error:f.error,msg:`Failed to create subnet`}),e[16]=f.error,e[17]=j);let M;e[18]!==x||e[19]!==we?(M=x(we),e[18]=x,e[19]=we,e[20]=M):M=e[20];let N;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[21]=N):N=e[21];let P;e[22]!==C.vpcId||e[23]!==m?(P=e=>{let{field:t}=e;return(0,u.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,u.jsx)(s,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(i,{})}),(0,u.jsx)(o,{children:m.map(be)})]})},e[22]=C.vpcId,e[23]=m,e[24]=P):P=e[24];let F;e[25]!==b||e[26]!==P?(F=(0,u.jsx)(ue,{control:b,name:`vpcId`,render:P}),e[25]=b,e[26]=P,e[27]=F):F=e[27];let I;e[28]===C.vpcId?I=e[29]:(I=(0,u.jsx)(he,{errors:[C.vpcId]}),e[28]=C.vpcId,e[29]=I);let L;e[30]!==F||e[31]!==I?(L=(0,u.jsxs)(l,{children:[N,F,I]}),e[30]=F,e[31]=I,e[32]=L):L=e[32];let R;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[33]=R):R=e[33];let Te=!!C.cidrBlock,z;e[34]===S?z=e[35]:(z=S(`cidrBlock`),e[34]=S,e[35]=z);let B;e[36]!==Te||e[37]!==z?(B=(0,u.jsx)(ie,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[36]=Te,e[37]=z,e[38]=B):B=e[38];let V;e[39]===C.cidrBlock?V=e[40]:(V=(0,u.jsx)(he,{errors:[C.cidrBlock]}),e[39]=C.cidrBlock,e[40]=V);let H;e[41]!==B||e[42]!==V?(H=(0,u.jsxs)(l,{children:[R,B,V]}),e[41]=B,e[42]=V,e[43]=H):H=e[43];let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[44]=U):U=e[44];let W;e[45]===g?W=e[46]:(W=e=>{let{field:t}=e;return(0,u.jsxs)(te,{onValueChange:e=>t.onChange(e===`none`?void 0:e),value:t.value??`none`,children:[(0,u.jsx)(s,{className:`w-full`,id:`availabilityZone`,children:(0,u.jsx)(i,{})}),(0,u.jsxs)(o,{children:[(0,u.jsx)(a,{value:`none`,children:`none`}),g.map(ye)]})]})},e[45]=g,e[46]=W);let G;e[47]!==b||e[48]!==W?(G=(0,u.jsxs)(l,{children:[U,(0,u.jsx)(ue,{control:b,name:`availabilityZone`,render:W})]}),e[47]=b,e[48]=W,e[49]=G):G=e[49];let K;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,u.jsx)(c,{children:`Auto-assign public IPv4`}),e[50]=K):K=e[50];let q;e[51]===b?q=e[52]:(q=(0,u.jsxs)(l,{children:[K,(0,u.jsx)(ue,{control:b,name:`mapPublicIpOnLaunch`,render:ve})]}),e[51]=b,e[52]=q);let J;e[53]===Ce?J=e[54]:(J=xe(Ce),e[53]=Ce,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(ne,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-subnets`}),e[57]=t,e[58]=X);let Z;e[59]!==f.isPending||e[60]!==w||e[61]!==X?(Z=(0,u.jsx)(pe,{isPending:f.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[59]=f.isPending,e[60]=w,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==M||e[64]!==L||e[65]!==H||e[66]!==G||e[67]!==q||e[68]!==Y||e[69]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),e[63]=M,e[64]=L,e[65]=H,e[66]=G,e[67]=q,e[68]=Y,e[69]=Z,e[70]=Q):Q=e[70];let $;return e[71]!==j||e[72]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[A,k,j,Q]}),e[71]=j,e[72]=Q,e[73]=$):$=e[73],$}function ve(e){let{field:t}=e;return(0,u.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,u.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>t.onChange(e.target.checked),type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function ye(e){return(0,u.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function be(e){let t=r(e.Tags);return(0,u.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function xe(e){let t=e(`vpcId`),n=typeof t==`string`?t:``,r=e(`cidrBlock`),ee=typeof r==`string`?r:``,i=e(`availabilityZone`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${ee||``}`}];a&&o.push({type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${a}`});let s=[{label:`Create Subnet`,parts:o}];return e(`mapPublicIpOnLaunch`)===!0&&s.push({label:`Enable auto-assign public IPv4`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 modify-subnet-attribute`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js index 90a977792..10c4b62f8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js @@ -1,4 +1,4 @@ -import{n as e}from"./compiler-runtime.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{i}from"./elbv2.js";import{on as a,vi as o}from"./index.js";import{i as s,t as c}from"./zod.js";import{t as l}from"./error-banner.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{t as f}from"./target-group-form.js";import{a as p}from"./elbv22.js";var m=e();function h(){let e=o(),{data:h}=t(a),_=i(),v=h.Vpcs??[],y=s({resolver:c(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(n,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(d,{title:`Create Target Group`}),_.error&&(0,m.jsx)(l,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async t=>{try{let n=(await _.mutateAsync(t)).TargetGroups?.[0]?.TargetGroupArn;e(n?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(r,{commands:g(x)}),(0,m.jsx)(u,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await e({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create Target Group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ +import{n as e}from"./compiler-runtime.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{i}from"./elbv2.js";import{Di as a,hn as o}from"./index.js";import{i as s,t as c}from"./zod.js";import{t as l}from"./error-banner.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{t as f}from"./target-group-form.js";import{a as p}from"./elbv22.js";var m=e();function h(){let e=a(),{data:h}=t(o),_=i(),v=h.Vpcs??[],y=s({resolver:c(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(n,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(d,{title:`Create Target Group`}),_.error&&(0,m.jsx)(l,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async t=>{try{let n=(await _.mutateAsync(t)).TargetGroups?.[0]?.TargetGroupArn;e(n?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(r,{commands:g(x)}),(0,m.jsx)(u,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await e({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create Target Group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ --name`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --protocol`},{type:`value`,value:` ${i}`},{type:`flag`,value:` \\ --port`},{type:`value`,value:` ${a??80}`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js index c39c4e537..acbcb0c49 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{d as i}from"./iam.js";import{vi as a,xr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{o as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=a(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-users`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),P=(0,v.jsx)(f,{title:`Create User`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create user`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),e[15]=L):L=e[15];let R=!!T.userName,z;e[16]===S?z=e[17]:(z=S(`userName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(o,{"aria-invalid":R,id:`userName`,placeholder:`my-user...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.userName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.userName]}),e[21]=T.userName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(o,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-users`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create User`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{y as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{d as i}from"./iam.js";import{Ar as a,Di as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{o as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=o(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-users`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),P=(0,v.jsx)(f,{title:`Create User`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create user`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),e[15]=L):L=e[15];let R=!!T.userName,z;e[16]===S?z=e[17]:(z=S(`userName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(a,{"aria-invalid":R,id:`userName`,placeholder:`my-user...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.userName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.userName]}),e[21]=T.userName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(a,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-users`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create User`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js index bf77fb970..6030fda57 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{x as u}from"./ec2.js";import{Nt as d,vi as ee,xr as te}from"./index.js";import{i as ne,n as re,t as ie}from"./zod.js";import{t as ae}from"./error-banner.js";import{t as oe}from"./form-actions.js";import{t as se}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{m as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(57),t=ee(),{data:a}=n(d),v=u(),y;e[0]===a.AvailabilityZones?y=e[1]:(y=a.AvailabilityZones??[],e[0]=a.AvailabilityZones,e[1]=y);let b=y,x=b[0]?.ZoneName??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=ie(h),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{size:1,availabilityZone:x}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=ne(C),{errors:k,isSubmitting:A}=O,j;e[5]!==v||e[6]!==t?(j=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=v,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(r,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,_.jsx)(se,{title:`Create Volume`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===v.error?F=e[11]:(F=v.error&&(0,_.jsx)(ae,{error:v.error,msg:`Failed to create volume`}),e[10]=v.error,e[11]=F);let I;e[12]!==T||e[13]!==M?(I=T(M),e[12]=T,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),e[15]=L):L=e[15];let R=!!k.size,z;e[16]===E?z=e[17]:(z=E(`size`,{valueAsNumber:!0}),e[16]=E,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,_.jsx)(te,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===k.size?V=e[22]:(V=(0,_.jsx)(p,{errors:[k.size]}),e[21]=k.size,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,_.jsxs)(m,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),e[26]=U):U=e[26];let W;e[27]!==b||e[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,_.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,_.jsx)(s,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,_.jsx)(i,{})}),(0,_.jsx)(o,{children:b.map(ce)})]})},e[27]=b,e[28]=k.availabilityZone,e[29]=W):W=e[29];let G;e[30]!==w||e[31]!==W?(G=(0,_.jsx)(re,{control:w,name:`availabilityZone`,render:W}),e[30]=w,e[31]=W,e[32]=G):G=e[32];let K;e[33]===k.availabilityZone?K=e[34]:(K=(0,_.jsx)(p,{errors:[k.availabilityZone]}),e[33]=k.availabilityZone,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,_.jsxs)(m,{children:[U,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===D?J=e[39]:(J=le(D),e[38]=D,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,_.jsx)(l,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>await t({to:`/ec2/describe-volumes`}),e[42]=t,e[43]=X);let Z;e[44]!==v.isPending||e[45]!==A||e[46]!==X?(Z=(0,_.jsx)(oe,{isPending:v.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),e[44]=v.isPending,e[45]=A,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==H||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[48]=H,e[49]=q,e[50]=Y,e[51]=Z,e[52]=I,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),e[54]=Q,e[55]=F,e[56]=$):$=e[56],$}function ce(e){return(0,_.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function le(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{x as u}from"./ec2.js";import{Ar as d,Di as ee,Ht as te}from"./index.js";import{i as ne,n as re,t as ie}from"./zod.js";import{t as ae}from"./error-banner.js";import{t as oe}from"./form-actions.js";import{t as se}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{m as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(57),t=ee(),{data:a}=n(te),v=u(),y;e[0]===a.AvailabilityZones?y=e[1]:(y=a.AvailabilityZones??[],e[0]=a.AvailabilityZones,e[1]=y);let b=y,x=b[0]?.ZoneName??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=ie(h),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{size:1,availabilityZone:x}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=ne(C),{errors:k,isSubmitting:A}=O,j;e[5]!==v||e[6]!==t?(j=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=v,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(r,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,_.jsx)(se,{title:`Create Volume`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===v.error?F=e[11]:(F=v.error&&(0,_.jsx)(ae,{error:v.error,msg:`Failed to create volume`}),e[10]=v.error,e[11]=F);let I;e[12]!==T||e[13]!==M?(I=T(M),e[12]=T,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),e[15]=L):L=e[15];let R=!!k.size,z;e[16]===E?z=e[17]:(z=E(`size`,{valueAsNumber:!0}),e[16]=E,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,_.jsx)(d,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===k.size?V=e[22]:(V=(0,_.jsx)(p,{errors:[k.size]}),e[21]=k.size,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,_.jsxs)(m,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),e[26]=U):U=e[26];let W;e[27]!==b||e[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,_.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,_.jsx)(s,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,_.jsx)(i,{})}),(0,_.jsx)(o,{children:b.map(ce)})]})},e[27]=b,e[28]=k.availabilityZone,e[29]=W):W=e[29];let G;e[30]!==w||e[31]!==W?(G=(0,_.jsx)(re,{control:w,name:`availabilityZone`,render:W}),e[30]=w,e[31]=W,e[32]=G):G=e[32];let K;e[33]===k.availabilityZone?K=e[34]:(K=(0,_.jsx)(p,{errors:[k.availabilityZone]}),e[33]=k.availabilityZone,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,_.jsxs)(m,{children:[U,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===D?J=e[39]:(J=le(D),e[38]=D,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,_.jsx)(l,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>await t({to:`/ec2/describe-volumes`}),e[42]=t,e[43]=X);let Z;e[44]!==v.isPending||e[45]!==A||e[46]!==X?(Z=(0,_.jsx)(oe,{isPending:v.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),e[44]=v.isPending,e[45]=A,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==H||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==I?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[48]=H,e[49]=q,e[50]=Y,e[51]=Z,e[52]=I,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==F?($=(0,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),e[54]=Q,e[55]=F,e[56]=$):$=e[56],$}function ce(e){return(0,_.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function le(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ --size`},{type:`value`,value:` ${n||1}`},{type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${i||``}`}]}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js index 25678616a..ad17e0c6d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./back-link.js";import{t as a}from"./chevron-down.js";import{t as o}from"./chevron-right.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./cli-command-panel.js";import{t as p}from"./button.js";import{C as m,S as h}from"./ec2.js";import{vi as g,xr as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{t as D}from"./subnet-calculator.js";import{h as O}from"./ec22.js";var k=r(),A=t(n(),1),j=e();function M(e){let t=(0,k.c)(18),{form:n,type:r,count:i,defaults:s}=e,[c,l]=(0,A.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(i===0)return null;let d;t[0]===c?d=t[1]:(d=()=>l(!c),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=c?(0,j.jsx)(a,{className:`size-3`}):(0,j.jsx)(o,{className:`size-3`}),t[2]=c,t[3]=f);let m;t[4]!==d||t[5]!==f||t[6]!==r?(m=(0,j.jsxs)(p,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,r,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=r,t[7]=m):m=t[7];let h;t[8]!==i||t[9]!==s||t[10]!==c||t[11]!==u||t[12]!==n||t[13]!==r?(h=c&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(_,{defaultValue:s[t],placeholder:s[t],...n.register(`${u}.${t}`)})]},t))}),t[8]=i,t[9]=s,t[10]=c,t[11]=u,t[12]=n,t[13]=r,t[14]=h):h=t[14];let g;return t[15]!==m||t[16]!==h?(g=(0,j.jsxs)(`div`,{className:`mt-2`,children:[m,h]}),t[15]=m,t[16]=h,t[17]=g):g=t[17],g}function N(e){let t=(0,k.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,j.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let e=g(),t=h(),n=m(),[r,a]=(0,A.useState)(null),o=v({resolver:b(O),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=o,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=D(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async r=>{if(a(null),r.mode===`vpc-only`){let n=r.autoGenerateNames&&r.namePrefix?`${r.namePrefix}-vpc`:r.namePrefix,i=(await t.mutateAsync({cidrBlock:r.cidrBlock,name:n||void 0})).Vpc?.VpcId;e(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let i=await n.mutateAsync(r);a(i),!i.error&&i.vpcId&&e({to:`/ec2/describe-vpcs/$id`,params:{id:i.vpcId}}),J(``)},X=t.error??n.error,Z=t.isPending||n.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(i,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(C,{title:`Create VPC`}),X&&(0,j.jsx)(x,{error:X,msg:`Failed to create VPC`}),r?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,r.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:r.error.message}),r.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:r.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Resources to create`}),(0,j.jsx)(y,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC only`,checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC and more`,checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(_,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(y,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(_,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(T,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Tenancy`}),(0,j.jsx)(y,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(u,{id:`tenancy`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(c,{value:`default`,children:`default`}),(0,j.jsx)(c,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of public subnets`}),(0,j.jsx)(y,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(p,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:o,type:`public`})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of private subnets`}),(0,j.jsx)(y,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(p,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:o,type:`private`})]}),W>0&&G>0&&(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`NAT gateways`}),(0,j.jsx)(y,{control:I,name:`natGateway`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:e.onChange,value:e.value??`none`,children:[(0,j.jsx)(u,{id:`natGateway`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(c,{value:`none`,children:`None`}),(0,j.jsx)(c,{value:`single`,children:`In 1 AZ`})]})]})}),(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Creates an Elastic IP + NAT gateway in the public subnet and routes private subnet egress (0.0.0.0/0) through it.`})]})]}),(0,j.jsx)(f,{commands:B(F,K)}),(0,j.jsx)(S,{isPending:Z,isSubmitting:V,onCancel:async()=>await e({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``,c=e(`natGateway`),l=typeof c==`string`?c:``;if(r===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./back-link.js";import{t as a}from"./chevron-down.js";import{t as o}from"./chevron-right.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./cli-command-panel.js";import{t as p}from"./button.js";import{C as m,S as h}from"./ec2.js";import{Ar as g,Di as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{t as D}from"./subnet-calculator.js";import{h as O}from"./ec22.js";var k=r(),A=t(n(),1),j=e();function M(e){let t=(0,k.c)(18),{form:n,type:r,count:i,defaults:s}=e,[c,l]=(0,A.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(i===0)return null;let d;t[0]===c?d=t[1]:(d=()=>l(!c),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=c?(0,j.jsx)(a,{className:`size-3`}):(0,j.jsx)(o,{className:`size-3`}),t[2]=c,t[3]=f);let m;t[4]!==d||t[5]!==f||t[6]!==r?(m=(0,j.jsxs)(p,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,r,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=r,t[7]=m):m=t[7];let h;t[8]!==i||t[9]!==s||t[10]!==c||t[11]!==u||t[12]!==n||t[13]!==r?(h=c&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(g,{defaultValue:s[t],placeholder:s[t],...n.register(`${u}.${t}`)})]},t))}),t[8]=i,t[9]=s,t[10]=c,t[11]=u,t[12]=n,t[13]=r,t[14]=h):h=t[14];let _;return t[15]!==m||t[16]!==h?(_=(0,j.jsxs)(`div`,{className:`mt-2`,children:[m,h]}),t[15]=m,t[16]=h,t[17]=_):_=t[17],_}function N(e){let t=(0,k.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,j.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let e=_(),t=h(),n=m(),[r,a]=(0,A.useState)(null),o=v({resolver:b(O),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=o,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=D(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async r=>{if(a(null),r.mode===`vpc-only`){let n=r.autoGenerateNames&&r.namePrefix?`${r.namePrefix}-vpc`:r.namePrefix,i=(await t.mutateAsync({cidrBlock:r.cidrBlock,name:n||void 0})).Vpc?.VpcId;e(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let i=await n.mutateAsync(r);a(i),!i.error&&i.vpcId&&e({to:`/ec2/describe-vpcs/$id`,params:{id:i.vpcId}}),J(``)},X=t.error??n.error,Z=t.isPending||n.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(i,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(C,{title:`Create VPC`}),X&&(0,j.jsx)(x,{error:X,msg:`Failed to create VPC`}),r?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,r.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:r.error.message}),r.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:r.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Resources to create`}),(0,j.jsx)(y,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC only`,checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC and more`,checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(g,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(y,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(g,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(T,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Tenancy`}),(0,j.jsx)(y,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(u,{id:`tenancy`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(c,{value:`default`,children:`default`}),(0,j.jsx)(c,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of public subnets`}),(0,j.jsx)(y,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(p,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:o,type:`public`})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of private subnets`}),(0,j.jsx)(y,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(p,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:o,type:`private`})]}),W>0&&G>0&&(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`NAT gateways`}),(0,j.jsx)(y,{control:I,name:`natGateway`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:e.onChange,value:e.value??`none`,children:[(0,j.jsx)(u,{id:`natGateway`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(c,{value:`none`,children:`None`}),(0,j.jsx)(c,{value:`single`,children:`In 1 AZ`})]})]})}),(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Creates an Elastic IP + NAT gateway in the public subnet and routes private subnet egress (0.0.0.0/0) through it.`})]})]}),(0,j.jsx)(f,{commands:B(F,K)}),(0,j.jsx)(S,{isPending:Z,isSubmitting:V,onCancel:async()=>await e({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``,c=e(`natGateway`),l=typeof c==`string`?c:``;if(r===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${a||`10.0.0.0/16`}`}];return s&&s!=="default"&&e.push({type:`flag`,value:` \\ --instance-tenancy`},{type:`value`,value:` ${s}`}),[{label:`Create VPC`,parts:e}]}let u=[],d=[...t.publicSubnets.map((e,t)=>({...e,name:`PUBLIC_SUBNET_${t+1}`})),...t.privateSubnets.map((e,t)=>({...e,name:`PRIVATE_SUBNET_${t+1}`}))];u.push({label:`Create VPC`,parts:[{type:`comment`,value:`# Create VPC with subnets, internet gateway, and routing diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js index 63dfeb9cd..f1a776b83 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{Mt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Addresses?i=e[1]:(i=t.Addresses??[],e[0]=t.Addresses,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/allocate-address`,children:(0,u.jsx)(a,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Elastic IPs found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.AllocationId)return null;let t=i(e.Tags),n=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:n,title:t?`${e.AllocationId} (${t})`:e.AllocationId??``,to:`/ec2/describe-addresses/$id`},e.AllocationId)}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{Vt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Addresses?i=e[1]:(i=t.Addresses??[],e[0]=t.Addresses,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/allocate-address`,children:(0,u.jsx)(a,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Elastic IPs found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.AllocationId)return null;let t=i(e.Tags),n=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:n,title:t?`${e.AllocationId} (${t})`:e.AllocationId??``,to:`/ec2/describe-addresses/$id`},e.AllocationId)}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js index fc9aadc29..4d69c0043 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{It as r}from"./index.js";import{t as i}from"./page-heading.js";import{t as a}from"./list-card.js";import{t as o}from"./state-badge.js";import{r as s}from"./system-managed.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(r),a;if(e[0]!==t.Images){let n=(t.Images??[]).filter(f),r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,l.jsx)(i,{title:`Images`}),e[2]=r):r=e[2],a=(0,l.jsxs)(l.Fragment,{children:[r,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No images found.`})]}),e[0]=t.Images,e[1]=a}else a=e[1];return a}function d(e){return e.ImageId?(0,l.jsx)(a,{badge:(0,l.jsx)(o,{state:e.State}),params:{id:e.ImageId},subtitle:e.ImageId??``,title:e.Name??e.ImageId??``,to:`/ec2/describe-images/$id`},e.ImageId):null}function f(e){return!s(e)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Gt as r}from"./index.js";import{t as i}from"./page-heading.js";import{t as a}from"./list-card.js";import{t as o}from"./state-badge.js";import{r as s}from"./system-managed.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(r),a;if(e[0]!==t.Images){let n=(t.Images??[]).filter(f),r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,l.jsx)(i,{title:`Images`}),e[2]=r):r=e[2],a=(0,l.jsxs)(l.Fragment,{children:[r,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No images found.`})]}),e[0]=t.Images,e[1]=a}else a=e[1];return a}function d(e){return e.ImageId?(0,l.jsx)(a,{badge:(0,l.jsx)(o,{state:e.State}),params:{id:e.ImageId},subtitle:e.ImageId??``,title:e.Name??e.ImageId??``,to:`/ec2/describe-images/$id`},e.ImageId):null}function f(e){return!s(e)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js index 58d0c79a6..0d7166658 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{zt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let e=(0,l.c)(3),{data:t}=n(a),s;if(e[0]!==t.Reservations){let n=(t.Reservations?.flatMap(h)??[]).toSorted(m),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/run-instances`,children:(0,u.jsx)(i,{children:`Run Instances`})}),title:`Instances`}),e[2]=a):a=e[2],s=(0,u.jsxs)(u.Fragment,{children:[a,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),e[0]=t.Reservations,e[1]=s}else s=e[1];return s}function p(e){return e.InstanceId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType}`,title:e.InstanceId,to:`/ec2/describe-instances/$id`},e.InstanceId):null}function m(e,t){let n=d[e.State?.Name??``]??6,r=d[t.State?.Name??``]??6;return n===r?(e.InstanceId??``).localeCompare(t.InstanceId??``):n-r}function h(e){return e.Instances??[]}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{Jt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let e=(0,l.c)(3),{data:t}=n(a),s;if(e[0]!==t.Reservations){let n=(t.Reservations?.flatMap(h)??[]).toSorted(m),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/run-instances`,children:(0,u.jsx)(i,{children:`Run Instances`})}),title:`Instances`}),e[2]=a):a=e[2],s=(0,u.jsxs)(u.Fragment,{children:[a,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),e[0]=t.Reservations,e[1]=s}else s=e[1];return s}function p(e){return e.InstanceId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType}`,title:e.InstanceId,to:`/ec2/describe-instances/$id`},e.InstanceId):null}function m(e,t){let n=d[e.State?.Name??``]??6,r=d[t.State?.Name??``]??6;return n===r?(e.InstanceId??``).localeCompare(t.InstanceId??``):n-r}function h(e){return e.Instances??[]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js index 970380f1a..2e3b27eb5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{Vt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.InternetGateways?i=e[1]:(i=t.InternetGateways??[],e[0]=t.InternetGateways,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(a,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Internet Gateways found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let t=i(e.Tags),n=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:n?`attached to ${n}`:`detached`,title:t?`${e.InternetGatewayId} (${t})`:e.InternetGatewayId,to:`/ec2/describe-internet-gateways/$id`},e.InternetGatewayId)}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{Xt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.InternetGateways?i=e[1]:(i=t.InternetGateways??[],e[0]=t.InternetGateways,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(a,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Internet Gateways found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let t=i(e.Tags),n=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:n?`attached to ${n}`:`detached`,title:t?`${e.InternetGatewayId} (${t})`:e.InternetGatewayId,to:`/ec2/describe-internet-gateways/$id`},e.InternetGatewayId)}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js index bcfd6696c..1cd88ef9f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{Ut as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(4),{data:t}=n(a),s;if(e[0]!==t.KeyPairs){let n=(t.KeyPairs??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(i,{variant:`outline`,children:`Import Key Pair`})}),e[2]=a):a=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[a,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(i,{children:`Create Key Pair`})})]}),title:`Key Pairs`}),e[3]=c):c=e[3],s=(0,l.jsxs)(l.Fragment,{children:[c,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),e[0]=t.KeyPairs,e[1]=s}else s=e[1];return s}function d(e){return e.KeyPairId?(0,l.jsx)(s,{params:{id:e.KeyPairId},subtitle:e.KeyPairId??``,title:e.KeyName??``,to:`/ec2/describe-key-pairs/$id`},e.KeyPairId):null}function f(e,t){let n=e.KeyName?.toLowerCase()??``,r=t.KeyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{Qt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(4),{data:t}=n(a),s;if(e[0]!==t.KeyPairs){let n=(t.KeyPairs??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(i,{variant:`outline`,children:`Import Key Pair`})}),e[2]=a):a=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[a,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(i,{children:`Create Key Pair`})})]}),title:`Key Pairs`}),e[3]=c):c=e[3],s=(0,l.jsxs)(l.Fragment,{children:[c,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),e[0]=t.KeyPairs,e[1]=s}else s=e[1];return s}function d(e){return e.KeyPairId?(0,l.jsx)(s,{params:{id:e.KeyPairId},subtitle:e.KeyPairId??``,title:e.KeyName??``,to:`/ec2/describe-key-pairs/$id`},e.KeyPairId):null}function f(e,t){let n=e.KeyName?.toLowerCase()??``,r=t.KeyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js index 322166edb..fae4b946e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Rt as i}from"./auth.js";import{t as a}from"./button.js";import{X as o,vi as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=s(),{data:f}=n(o),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:i(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Rt as i}from"./auth.js";import{t as a}from"./button.js";import{Di as o,X as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=o(),{data:f}=n(s),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:i(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js index aa4b8a10e..dd6e9dcfe 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{Gt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.NatGateways?i=e[1]:(i=t.NatGateways??[],e[0]=t.NatGateways,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(a,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No NAT Gateways found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.NatGatewayId},subtitle:e.SubnetId??``,title:t?`${e.NatGatewayId} (${t})`:e.NatGatewayId,to:`/ec2/describe-nat-gateways/$id`},e.NatGatewayId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{en as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.NatGateways?i=e[1]:(i=t.NatGateways??[],e[0]=t.NatGateways,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(a,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No NAT Gateways found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.NatGatewayId},subtitle:e.SubnetId??``,title:t?`${e.NatGatewayId} (${t})`:e.NatGatewayId,to:`/ec2/describe-nat-gateways/$id`},e.NatGatewayId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js index c8856e3e1..a4fa0dc21 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{qt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.PlacementGroups?s=e[1]:(s=t.PlacementGroups??[],e[0]=t.PlacementGroups,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-placement-group`,children:(0,u.jsx)(i,{children:`Create Placement Group`})}),title:`Placement Groups`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No placement groups found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.GroupId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.GroupId},subtitle:`${e.Strategy} \u2022 ${e.GroupId}`,title:e.GroupName??e.GroupId,to:`/ec2/describe-placement-groups/$id`},e.GroupId):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{nn as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.PlacementGroups?s=e[1]:(s=t.PlacementGroups??[],e[0]=t.PlacementGroups,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-placement-group`,children:(0,u.jsx)(i,{children:`Create Placement Group`})}),title:`Placement Groups`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No placement groups found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.GroupId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.GroupId},subtitle:`${e.Strategy} \u2022 ${e.GroupId}`,title:e.GroupName??e.GroupId,to:`/ec2/describe-placement-groups/$id`},e.GroupId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js index e2e0d0a49..324d76597 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{Xt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.RouteTables?i=e[1]:(i=t.RouteTables??[],e[0]=t.RouteTables,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-route-table`,children:(0,d.jsx)(a,{children:`Create Route Table`})}),title:`Route Tables`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No Route Tables found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.RouteTableId)return null;let t=i(e.Tags),n=e.Associations?.some(h)??!1,r=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:n?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${r} subnet${r===1?``:`s`}`,title:t?`${e.RouteTableId} (${t})`:e.RouteTableId,to:`/ec2/describe-route-tables/$id`},e.RouteTableId)}function m(e){return e.SubnetId}function h(e){return e.Main}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{an as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.RouteTables?i=e[1]:(i=t.RouteTables??[],e[0]=t.RouteTables,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-route-table`,children:(0,d.jsx)(a,{children:`Create Route Table`})}),title:`Route Tables`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No Route Tables found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.RouteTableId)return null;let t=i(e.Tags),n=e.Associations?.some(h)??!1,r=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:n?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${r} subnet${r===1?``:`s`}`,title:t?`${e.RouteTableId} (${t})`:e.RouteTableId,to:`/ec2/describe-route-tables/$id`},e.RouteTableId)}function m(e){return e.SubnetId}function h(e){return e.Main}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js index afbc256fb..dcca16626 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{Qt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(5),{data:t}=n(a),s;e[0]===t.SecurityGroups?s=e[1]:(s=t.SecurityGroups??[],e[0]=t.SecurityGroups,e[1]=s);let u=s,f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/ec2/create-security-group`,children:(0,l.jsx)(i,{children:`Create Security Group`})}),title:`Security Groups`}),e[2]=f):f=e[2];let p;return e[3]===u?p=e[4]:(p=(0,l.jsxs)(l.Fragment,{children:[f,u.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:u.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No security groups found.`})]}),e[3]=u,e[4]=p),p}function d(e){return e.GroupId?(0,l.jsx)(s,{params:{id:e.GroupId},subtitle:e.VpcId??``,title:e.GroupName?`${e.GroupId} (${e.GroupName})`:e.GroupId,to:`/ec2/describe-security-groups/$id`},e.GroupId):null}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{sn as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(5),{data:t}=n(a),s;e[0]===t.SecurityGroups?s=e[1]:(s=t.SecurityGroups??[],e[0]=t.SecurityGroups,e[1]=s);let u=s,f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/ec2/create-security-group`,children:(0,l.jsx)(i,{children:`Create Security Group`})}),title:`Security Groups`}),e[2]=f):f=e[2];let p;return e[3]===u?p=e[4]:(p=(0,l.jsxs)(l.Fragment,{children:[f,u.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:u.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No security groups found.`})]}),e[3]=u,e[4]=p),p}function d(e){return e.GroupId?(0,l.jsx)(s,{params:{id:e.GroupId},subtitle:e.VpcId??``,title:e.GroupName?`${e.GroupId} (${e.GroupName})`:e.GroupId,to:`/ec2/describe-security-groups/$id`},e.GroupId):null}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js index e6fc99526..995bb8d83 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{en as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Snapshots?s=e[1]:(s=t.Snapshots??[],e[0]=t.Snapshots,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(i,{children:`Create Snapshot`})}),title:`Snapshots`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No snapshots found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.SnapshotId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.SnapshotId},subtitle:`${e.VolumeSize} GiB \u2022 ${e.VolumeId}`,title:e.SnapshotId,to:`/ec2/describe-snapshots/$id`},e.SnapshotId):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{ln as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Snapshots?s=e[1]:(s=t.Snapshots??[],e[0]=t.Snapshots,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(i,{children:`Create Snapshot`})}),title:`Snapshots`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No snapshots found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.SnapshotId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.SnapshotId},subtitle:`${e.VolumeSize} GiB \u2022 ${e.VolumeId}`,title:e.SnapshotId,to:`/ec2/describe-snapshots/$id`},e.SnapshotId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js index 9762a3b7a..d9b9125d1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{nn as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets??[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{dn as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets??[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js index 3d7790ba7..81251c19d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{xi as i}from"./awsClient.js";import{t as a}from"./button.js";import{nt as o,tt as s,vi as c}from"./index.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=c(),{data:n}=r(s),o;e[0]===n.TargetGroups?o=e[1]:(o=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=o);let f=o,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(i,{to:`/ec2/create-target-group`,children:(0,d.jsx)(a,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==t||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let n=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(i,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:n})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=t,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(e){let t=(0,u.c)(13),{arn:r}=e,i;t[0]===r?i=t[1]:(i=o(r),t[0]=r,t[1]=i);let{data:a,isLoading:s}=n(i);if(s){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),t[2]=e):e=t[2],e}let c,l;if(t[3]!==a?.TargetHealthDescriptions){c=a?.TargetHealthDescriptions??[];let e={};for(let t of c){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,t[3]=a?.TargetHealthDescriptions,t[4]=c,t[5]=l}else c=t[4],l=t[5];let f=l,p;t[6]===c.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),t[6]=c.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{Ni as i}from"./awsClient.js";import{t as a}from"./button.js";import{Di as o,nt as s,tt as c}from"./index.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=o(),{data:n}=r(c),s;e[0]===n.TargetGroups?s=e[1]:(s=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=s);let f=s,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(i,{to:`/ec2/create-target-group`,children:(0,d.jsx)(a,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==t||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let n=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(i,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:n})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=t,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(e){let t=(0,u.c)(13),{arn:r}=e,i;t[0]===r?i=t[1]:(i=s(r),t[0]=r,t[1]=i);let{data:a,isLoading:o}=n(i);if(o){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),t[2]=e):e=t[2],e}let c,l;if(t[3]!==a?.TargetHealthDescriptions){c=a?.TargetHealthDescriptions??[];let e={};for(let t of c){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,t[3]=a?.TargetHealthDescriptions,t[4]=c,t[5]=l}else c=t[4],l=t[5];let f=l,p;t[6]===c.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),t[6]=c.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js index 4a059feae..0d662e2ea 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{in as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Volumes?s=e[1]:(s=t.Volumes??[],e[0]=t.Volumes,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-volume`,children:(0,u.jsx)(i,{children:`Create Volume`})}),title:`Volumes`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No volumes found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.VolumeId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB`,title:e.VolumeId,to:`/ec2/describe-volumes/$id`},e.VolumeId):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{pn as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Volumes?s=e[1]:(s=t.Volumes??[],e[0]=t.Volumes,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-volume`,children:(0,u.jsx)(i,{children:`Create Volume`})}),title:`Volumes`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No volumes found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.VolumeId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB`,title:e.VolumeId,to:`/ec2/describe-volumes/$id`},e.VolumeId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js index 0afcac28b..75152a9be 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{on as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs??[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{hn as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs??[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/download.js b/spinifex/services/spinifexui/frontend/dist/assets/download.js index ca1d8298c..4d19bc276 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/download.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/download.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js index c423afb08..05f6d93cc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$r as n,Ar as r,Cr as i,Dr as a,Er as o,Mr as s,Nr as c,Or as l,Pr as u,Qr as d,Sr as f,Tr as p,_r as m,ai as ee,ar as te,br as ne,ci as re,cr as ie,di as ae,dr as oe,ei as se,fi as ce,fr as le,gi as ue,gr as de,hi as fe,hr as pe,ii as me,ir as he,jr as ge,kr as _e,li as ve,lr as ye,mi as be,mr as xe,ni as Se,nr as h,oi as g,or as _,pi as v,pr as y,r as b,ri as x,rr as S,si as C,sr as w,ti as T,ui as E,ur as D,vr as O,wr as k,xr as A,yr as j}from"./awsClient.js";import{Ut as M,_n as N,gn as Ce,hn as P,mn as F,yi as I}from"./index.js";import{t as we}from"./subnet-calculator.js";var L=class extends N(F,P,`AllocateAddress`,h){},Te=class extends N(F,P,`AssociateAddress`,S){},Ee=class extends N(F,P,`AssociateIamInstanceProfile`,he){},R=class extends N(F,P,`AssociateRouteTable`,te){},z=class extends N(F,P,`AttachInternetGateway`,_){},De=class extends N(F,P,`AttachVolume`,w){},Oe=class extends N(F,P,`AuthorizeSecurityGroupEgress`,ie){},B=class extends N(F,P,`AuthorizeSecurityGroupIngress`,ye){},ke=class extends N(F,Ce,`CopySnapshot`,D){},Ae=class extends N(F,P,`CreateImage`,oe){},V=class extends N(F,P,`CreateInternetGateway`,le){},je=class extends N(F,P,`CreateKeyPair`,y){},H=class extends N(F,P,`CreateNatGateway`,xe){},Me=class extends N(F,P,`CreatePlacementGroup`,pe){},U=class extends N(F,P,`CreateRoute`,de){},W=class extends N(F,P,`CreateRouteTable`,m){},G=class extends N(F,P,`CreateSecurityGroup`,O){},Ne=class extends N(F,P,`CreateSnapshot`,j){},K=class extends N(F,P,`CreateSubnet`,ne){},Pe=class extends N(F,P,`CreateVolume`,A){},q=class extends N(F,P,`CreateVpc`,f){},Fe=class extends N(F,P,`DeleteInternetGateway`,i){},Ie=class extends N(F,P,`DeleteKeyPair`,k){},Le=class extends N(F,P,`DeleteNatGateway`,p){},Re=class extends N(F,P,`DeletePlacementGroup`,o){},ze=class extends N(F,P,`DeleteRoute`,a){},Be=class extends N(F,P,`DeleteRouteTable`,l){},Ve=class extends N(F,P,`DeleteSecurityGroup`,_e){},He=class extends N(F,P,`DeleteSnapshot`,r){},Ue=class extends N(F,P,`DeleteSubnet`,ge){},We=class extends N(F,P,`DeleteVolume`,s){},Ge=class extends N(F,P,`DeleteVpc`,c){},Ke=class extends N(F,P,`DeregisterImage`,u){},qe=class extends N(F,P,`DetachInternetGateway`,d){},Je=class extends N(F,P,`DetachVolume`,n){},Ye=class extends N(F,P,`DisassociateAddress`,se){},Xe=class extends N(F,P,`DisassociateIamInstanceProfile`,T){},Ze=class extends N(F,P,`DisassociateRouteTable`,Se){},Qe=class extends N(F,P,`GetConsoleOutput`,x){},$e=class extends N(F,P,`ImportKeyPair`,me){},et=class extends N(F,P,`ModifyInstanceAttribute`,ee){},J=class extends N(F,P,`ModifySubnetAttribute`,g){},tt=class extends N(F,P,`ModifyVolume`,C){},nt=class extends N(F,P,`RebootInstances`,re){},rt=class extends N(F,P,`RegisterImage`,ve){},it=class extends N(F,P,`ReleaseAddress`,E){},at=class extends N(F,P,`RevokeSecurityGroupEgress`,ae){},ot=class extends N(F,P,`RevokeSecurityGroupIngress`,ce){},st=class extends N(F,P,`RunInstances`,v){},ct=class extends N(F,P,`StartInstances`,be){},lt=class extends N(F,P,`StopInstances`,fe){},ut=class extends N(F,P,`TerminateInstances`,ue){},Y={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},X=e(),dt=/\s+/;function ft(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:pt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function pt(e){let t=new ct({InstanceIds:[e]});return await b().send(t)}function mt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:ht,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function ht(e){let t=new lt({InstanceIds:[e]});return await b().send(t)}function gt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:_t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function _t(e){let t=new ut({InstanceIds:[e]});return await b().send(t)}function vt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new nt({InstanceIds:[e]});return await b().send(t)}function bt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=b(),n=await St(t,e),r=new st({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:Ct(e)});return await t.send(r)}async function St(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function Ct(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function wt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries(M)}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new je({KeyName:e.keyName,KeyType:`rsa`}),n=await b().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Et(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries(M)}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=e.publicKeyMaterial.trim().split(dt).slice(0,2).join(` `),n=new $e({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await b().send(n)}function Ot(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:kt,onSuccess:()=>{n.invalidateQueries(M)}},e[0]=n,e[1]=r),t(r)}async function kt(e){let t=new Ie({KeyPairId:e});return await b().send(t)}function At(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new Pe({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await b().send(t)}function Mt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=new tt({VolumeId:e.volumeId,Size:e.size});return await b().send(t)}function Pt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({VolumeId:e});return await b().send(t)}function It(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new Ne({VolumeId:e.volumeId,Description:e.description||void 0});return await b().send(t)}function Rt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new He({SnapshotId:e});return await b().send(t)}function Bt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new ke({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await b().send(t)}function Ht(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new De({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await b().send(t)}function Wt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Je({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await b().send(t)}function Kt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let{instanceId:t,...n}=e,r=new et({InstanceId:t,InstanceType:{Value:n.instanceType}});return await b().send(r)}function Jt(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:Yt},e[0]=n):n=e[0],t(n)}async function Yt(e){let t=new Qe({InstanceId:e});return await b().send(t)}function Xt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new Ae({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await b().send(t)}function Qt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let t=new rt({Name:e.name,Description:e.description||void 0,BlockDeviceMappings:[{DeviceName:`/dev/sda1`,Ebs:{SnapshotId:e.snapshotId}}]});return await b().send(t)}function en(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:tn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function tn(e){let t=new Ke({ImageId:e});return await b().send(t)}function nn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await b().send(t)}function an(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new Ge({VpcId:e});return await b().send(t)}function sn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=b(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function ln(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=new Ue({SubnetId:e});return await b().send(t)}function dn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Me({GroupName:e.groupName,Strategy:e.strategy});return await b().send(t)}function pn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Re({GroupName:e});return await b().send(t)}function hn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await b().send(t)}function _n(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new Ve({GroupId:e});return await b().send(t)}function yn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await b().send(t)}function xn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new Oe({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await b().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Cn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new ot({GroupId:e.groupId,IpPermissions:[Z(e)]});return await b().send(t)}function Tn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new at({GroupId:e.groupId,IpPermissions:[Z(e)]});return await b().send(t)}function Dn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await b().send(t)}function kn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new Fe({InternetGatewayId:e});return await b().send(t)}function jn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await b().send(t)}function Nn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new qe({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await b().send(t)}function Fn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await b().send(t)}function Ln(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new it({AllocationId:e});return await b().send(t)}function zn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new Te({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await b().send(t)}function Vn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Ye({AssociationId:e});return await b().send(t)}function Un(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new Ee({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await b().send(t)}function Gn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new Xe({AssociationId:e.associationId});return await b().send(t)}function qn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await b().send(t)}function Q(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new Le({NatGatewayId:e});return await b().send(t)}function Xn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await b().send(t)}function Qn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new Be({RouteTableId:e});return await b().send(t)}function er(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await b().send(t)}function nr(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new ze({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await b().send(t)}function ir(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await b().send(t)}function or(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new Ze({AssociationId:e});return await b().send(t)}function cr(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=cr(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function lr(){let e=I();return t({mutationFn:async e=>{let t=b(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=we(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=await Promise.all(Array.from({length:e.publicSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-public-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:u[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Public subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Public Subnet`,id:s}),await t.send(new J({SubnetId:s,MapPublicIpOnLaunch:{Value:!0}})),s}));a=`creating private subnets`;let p=await Promise.all(Array.from({length:e.privateSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-private-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:d[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Private subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Private Subnet`,id:s}),s}));if(e.publicSubnetCount>0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`,await Promise.all(f.map(async e=>await t.send(new R({RouteTableId:l,SubnetId:e}))))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);if(n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`,await Promise.all(p.map(async e=>await t.send(new R({RouteTableId:s,SubnetId:e})))),e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{_n as A,or as B,lr as C,pn as D,Q as E,en as F,vt as G,Et as H,Nn as I,Tn as J,Qt as K,Wt as L,ln as M,Pt as N,nr as O,an as P,gt as Q,Vn as R,nn as S,Ot as T,Kt as U,Jt as V,Mt as W,ft as X,Cn as Y,mt as Z,Xn as _,jn as a,sn as b,yn as c,bt as d,Dn as f,er as g,dn as h,ir as i,Rt as j,Qn as k,Bt as l,qn as m,zn as n,Ht as o,wt as p,Ln as q,Un as r,xn as s,Fn as t,Xt as u,hn as v,kn as w,At as x,It as y,Gn as z}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Ar as n,Br as r,Ci as i,Cr as a,Di as o,Dr as s,Ei as c,Er as l,Fr as u,Gr as d,Hr as f,Ir as p,Kr as m,Lr as ee,Mr as te,Nr as ne,Oi as re,Or as ie,Pr as ae,Rr as oe,Si as se,Sr as ce,Ti as le,Tr as ue,Ur as de,Vr as fe,Wr as pe,_i as me,_r as he,bi as ge,br as _e,di as ve,fi as ye,gi as be,gr as xe,hi as Se,hr as h,jr as g,kr as _,mi as v,mr as y,pi as b,r as x,ui as S,vi as C,vr as w,wi as T,wr as E,xi as D,xr as O,yi as k,yr as A,zr as j}from"./awsClient.js";import{Cn as M,En as N,Oi as P,Qt as F,Tn as Ce,wn as I}from"./index.js";import{t as we}from"./subnet-calculator.js";var L=class extends N(M,I,`AllocateAddress`,y){},Te=class extends N(M,I,`AssociateAddress`,h){},Ee=class extends N(M,I,`AssociateIamInstanceProfile`,xe){},R=class extends N(M,I,`AssociateRouteTable`,he){},z=class extends N(M,I,`AttachInternetGateway`,w){},De=class extends N(M,I,`AttachVolume`,A){},Oe=class extends N(M,I,`AuthorizeSecurityGroupEgress`,_e){},B=class extends N(M,I,`AuthorizeSecurityGroupIngress`,O){},ke=class extends N(M,Ce,`CopySnapshot`,ce){},Ae=class extends N(M,I,`CreateImage`,a){},V=class extends N(M,I,`CreateInternetGateway`,E){},je=class extends N(M,I,`CreateKeyPair`,ue){},H=class extends N(M,I,`CreateNatGateway`,l){},Me=class extends N(M,I,`CreatePlacementGroup`,s){},U=class extends N(M,I,`CreateRoute`,ie){},W=class extends N(M,I,`CreateRouteTable`,_){},G=class extends N(M,I,`CreateSecurityGroup`,n){},Ne=class extends N(M,I,`CreateSnapshot`,g){},K=class extends N(M,I,`CreateSubnet`,te){},Pe=class extends N(M,I,`CreateVolume`,ne){},q=class extends N(M,I,`CreateVpc`,ae){},Fe=class extends N(M,I,`DeleteInternetGateway`,u){},Ie=class extends N(M,I,`DeleteKeyPair`,p){},Le=class extends N(M,I,`DeleteNatGateway`,ee){},Re=class extends N(M,I,`DeletePlacementGroup`,oe){},ze=class extends N(M,I,`DeleteRoute`,j){},Be=class extends N(M,I,`DeleteRouteTable`,r){},Ve=class extends N(M,I,`DeleteSecurityGroup`,fe){},He=class extends N(M,I,`DeleteSnapshot`,f){},Ue=class extends N(M,I,`DeleteSubnet`,de){},We=class extends N(M,I,`DeleteVolume`,pe){},Ge=class extends N(M,I,`DeleteVpc`,d){},Ke=class extends N(M,I,`DeregisterImage`,m){},qe=class extends N(M,I,`DetachInternetGateway`,S){},Je=class extends N(M,I,`DetachVolume`,ve){},Ye=class extends N(M,I,`DisassociateAddress`,ye){},Xe=class extends N(M,I,`DisassociateIamInstanceProfile`,b){},Ze=class extends N(M,I,`DisassociateRouteTable`,v){},Qe=class extends N(M,I,`GetConsoleOutput`,Se){},$e=class extends N(M,I,`ImportKeyPair`,be){},et=class extends N(M,I,`ModifyInstanceAttribute`,me){},J=class extends N(M,I,`ModifySubnetAttribute`,C){},tt=class extends N(M,I,`ModifyVolume`,k){},nt=class extends N(M,I,`RebootInstances`,ge){},rt=class extends N(M,I,`RegisterImage`,D){},it=class extends N(M,I,`ReleaseAddress`,se){},at=class extends N(M,I,`RevokeSecurityGroupEgress`,i){},ot=class extends N(M,I,`RevokeSecurityGroupIngress`,T){},st=class extends N(M,I,`RunInstances`,le){},ct=class extends N(M,I,`StartInstances`,c){},lt=class extends N(M,I,`StopInstances`,o){},ut=class extends N(M,I,`TerminateInstances`,re){},Y={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},X=e(),dt=/\s+/;function ft(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:pt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function pt(e){let t=new ct({InstanceIds:[e]});return await x().send(t)}function mt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:ht,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function ht(e){let t=new lt({InstanceIds:[e]});return await x().send(t)}function gt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:_t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function _t(e){let t=new ut({InstanceIds:[e]});return await x().send(t)}function vt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new nt({InstanceIds:[e]});return await x().send(t)}function bt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=x(),n=await St(t,e),r=new st({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:Ct(e)});return await t.send(r)}async function St(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function Ct(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function wt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries(F)}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new je({KeyName:e.keyName,KeyType:`rsa`}),n=await x().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Et(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries(F)}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=e.publicKeyMaterial.trim().split(dt).slice(0,2).join(` `),n=new $e({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await x().send(n)}function Ot(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:kt,onSuccess:()=>{n.invalidateQueries(F)}},e[0]=n,e[1]=r),t(r)}async function kt(e){let t=new Ie({KeyPairId:e});return await x().send(t)}function At(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new Pe({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await x().send(t)}function Mt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=new tt({VolumeId:e.volumeId,Size:e.size});return await x().send(t)}function Pt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({VolumeId:e});return await x().send(t)}function It(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new Ne({VolumeId:e.volumeId,Description:e.description||void 0});return await x().send(t)}function Rt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new He({SnapshotId:e});return await x().send(t)}function Bt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new ke({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await x().send(t)}function Ht(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new De({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await x().send(t)}function Wt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Je({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await x().send(t)}function Kt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let{instanceId:t,...n}=e,r=new et({InstanceId:t,InstanceType:{Value:n.instanceType}});return await x().send(r)}function Jt(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:Yt},e[0]=n):n=e[0],t(n)}async function Yt(e){let t=new Qe({InstanceId:e});return await x().send(t)}function Xt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new Ae({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await x().send(t)}function Qt(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let t=new rt({Name:e.name,Description:e.description||void 0,BlockDeviceMappings:[{DeviceName:`/dev/sda1`,Ebs:{SnapshotId:e.snapshotId}}]});return await x().send(t)}function en(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:tn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function tn(e){let t=new Ke({ImageId:e});return await x().send(t)}function nn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await x().send(t)}function an(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new Ge({VpcId:e});return await x().send(t)}function sn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=x(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function ln(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=new Ue({SubnetId:e});return await x().send(t)}function dn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Me({GroupName:e.groupName,Strategy:e.strategy});return await x().send(t)}function pn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Re({GroupName:e});return await x().send(t)}function hn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await x().send(t)}function _n(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new Ve({GroupId:e});return await x().send(t)}function yn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function xn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new Oe({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Cn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new ot({GroupId:e.groupId,IpPermissions:[Z(e)]});return await x().send(t)}function Tn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new at({GroupId:e.groupId,IpPermissions:[Z(e)]});return await x().send(t)}function Dn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await x().send(t)}function kn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new Fe({InternetGatewayId:e});return await x().send(t)}function jn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await x().send(t)}function Nn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new qe({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await x().send(t)}function Fn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await x().send(t)}function Ln(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new it({AllocationId:e});return await x().send(t)}function zn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new Te({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await x().send(t)}function Vn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Ye({AssociationId:e});return await x().send(t)}function Un(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new Ee({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await x().send(t)}function Gn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new Xe({AssociationId:e.associationId});return await x().send(t)}function qn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await x().send(t)}function Q(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new Le({NatGatewayId:e});return await x().send(t)}function Xn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await x().send(t)}function Qn(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new Be({RouteTableId:e});return await x().send(t)}function er(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await x().send(t)}function nr(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new ze({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await x().send(t)}function ir(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await x().send(t)}function or(){let e=(0,X.c)(2),n=P(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new Ze({AssociationId:e});return await x().send(t)}function cr(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=cr(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function lr(){let e=P();return t({mutationFn:async e=>{let t=x(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=we(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=await Promise.all(Array.from({length:e.publicSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-public-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:u[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Public subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Public Subnet`,id:s}),await t.send(new J({SubnetId:s,MapPublicIpOnLaunch:{Value:!0}})),s}));a=`creating private subnets`;let p=await Promise.all(Array.from({length:e.privateSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-private-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:d[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Private subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Private Subnet`,id:s}),s}));if(e.publicSubnetCount>0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`,await Promise.all(f.map(async e=>await t.send(new R({RouteTableId:l,SubnetId:e}))))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);if(n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`,await Promise.all(p.map(async e=>await t.send(new R({RouteTableId:s,SubnetId:e})))),e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{_n as A,or as B,lr as C,pn as D,Q as E,en as F,vt as G,Et as H,Nn as I,Tn as J,Qt as K,Wt as L,ln as M,Pt as N,nr as O,an as P,gt as Q,Vn as R,nn as S,Ot as T,Kt as U,Jt as V,Mt as W,ft as X,Cn as Y,mt as Z,Xn as _,jn as a,sn as b,yn as c,bt as d,Dn as f,er as g,dn as h,ir as i,Rt as j,Qn as k,Bt as l,qn as m,zn as n,Ht as o,wt as p,Ln as q,Un as r,xn as s,Fn as t,Xt as u,hn as v,kn as w,At as x,It as y,Gn as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ecr.js b/spinifex/services/spinifexui/frontend/dist/assets/ecr.js index 04aa9be3d..fc2289d33 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ecr.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ecr.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Bn as n,Hn as r,Jn as i,Qn as a,Un as o,Vn as s,Wn as c,Xn as l,Zn as u,i as d}from"./awsClient.js";import{dn as f,fn as p,pn as m,yi as h}from"./index.js";var g=class extends m(f,p,`BatchDeleteImage`,n){},_=class extends m(f,p,`CreateRepository`,s){},v=class extends m(f,p,`DeleteLifecyclePolicy`,r){},y=class extends m(f,p,`DeleteRepository`,o){},b=class extends m(f,p,`DeleteRepositoryPolicy`,c){},x=class extends m(f,p,`GetLifecyclePolicyPreview`,i){},S=class extends m(f,p,`PutImageTagMutability`,l){},C=class extends m(f,p,`PutLifecyclePolicy`,u){},w=class extends m(f,p,`SetRepositoryPolicy`,a){},T=e();function E(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:D,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function D(e){let t=new _({repositoryName:e});return await d().send(t)}function O(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function k(e){let t=new y({repositoryName:e,force:!0});return await d().send(t)}function A(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:j,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`images`]})}},e[0]=n,e[1]=r),t(r)}async function j(e){let t=new g({repositoryName:e.repositoryName,imageIds:e.imageIds});return await d().send(t)}function M(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:N,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function N(e){let t=new w({repositoryName:e.repositoryName,policyText:e.policyText});return await d().send(t)}function P(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:F,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function F(e){let t=new S({repositoryName:e.repositoryName,imageTagMutability:e.imageTagMutability});return await d().send(t)}function I(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:L,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function L(e){let t=new b({repositoryName:e});return await d().send(t)}function R(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new C({repositoryName:e.repositoryName,lifecyclePolicyText:e.lifecyclePolicyText});return await d().send(t)}function B(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new v({repositoryName:e});return await d().send(t)}function H(){let e=(0,T.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:U},e[0]=n):n=e[0],t(n)}async function U(e){let t=new x({repositoryName:e});return await d().send(t)}export{I as a,R as c,O as i,M as l,E as n,H as o,B as r,P as s,A as t}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$n as n,Qn as r,cr as i,er as a,i as o,lr as s,nr as c,or as l,tr as u,ur as d}from"./awsClient.js";import{Oi as f,Sn as p,bn as m,xn as h}from"./index.js";var g=class extends p(m,h,`BatchDeleteImage`,r){},_=class extends p(m,h,`CreateRepository`,n){},v=class extends p(m,h,`DeleteLifecyclePolicy`,a){},y=class extends p(m,h,`DeleteRepository`,u){},b=class extends p(m,h,`DeleteRepositoryPolicy`,c){},x=class extends p(m,h,`GetLifecyclePolicyPreview`,l){},S=class extends p(m,h,`PutImageTagMutability`,i){},C=class extends p(m,h,`PutLifecyclePolicy`,s){},w=class extends p(m,h,`SetRepositoryPolicy`,d){},T=e();function E(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:D,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function D(e){let t=new _({repositoryName:e});return await o().send(t)}function O(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function k(e){let t=new y({repositoryName:e,force:!0});return await o().send(t)}function A(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:j,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`images`]})}},e[0]=n,e[1]=r),t(r)}async function j(e){let t=new g({repositoryName:e.repositoryName,imageIds:e.imageIds});return await o().send(t)}function M(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:N,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function N(e){let t=new w({repositoryName:e.repositoryName,policyText:e.policyText});return await o().send(t)}function P(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:F,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function F(e){let t=new S({repositoryName:e.repositoryName,imageTagMutability:e.imageTagMutability});return await o().send(t)}function I(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:L,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function L(e){let t=new b({repositoryName:e});return await o().send(t)}function R(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new C({repositoryName:e.repositoryName,lifecyclePolicyText:e.lifecyclePolicyText});return await o().send(t)}function B(){let e=(0,T.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new v({repositoryName:e});return await o().send(t)}function H(){let e=(0,T.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:U},e[0]=n):n=e[0],t(n)}async function U(e){let t=new x({repositoryName:e});return await o().send(t)}export{I as a,R as c,O as i,M as l,E as n,H as o,B as r,P as s,A as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ecs-section-nav.js b/spinifex/services/spinifexui/frontend/dist/assets/ecs-section-nav.js index 476f3ff84..6a9f5a0f9 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ecs-section-nav.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ecs-section-nav.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{xi as n}from"./awsClient.js";var r=t(),i=e(),a=`-mb-px border-b-2 px-3 py-2 text-sm font-medium transition-colors`,o={className:`border-primary text-foreground`},s={className:`border-transparent text-muted-foreground hover:text-foreground`};function c(){let e=(0,r.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{activeOptions:{exact:!1},activeProps:o,className:a,inactiveProps:s,to:`/ecs/list-clusters`,children:`Clusters`}),e[0]=t):t=e[0];let c;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,i.jsxs)(`nav`,{className:`mb-6 flex gap-1 border-b`,children:[t,(0,i.jsx)(n,{activeOptions:{exact:!1},activeProps:o,className:a,inactiveProps:s,to:`/ecs/task-definitions`,children:`Task definitions`})]}),e[1]=c):c=e[1],c}export{c as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ni as n}from"./awsClient.js";var r=t(),i=e(),a=`-mb-px border-b-2 px-3 py-2 text-sm font-medium transition-colors`,o={className:`border-primary text-foreground`},s={className:`border-transparent text-muted-foreground hover:text-foreground`};function c(){let e=(0,r.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{activeOptions:{exact:!1},activeProps:o,className:a,inactiveProps:s,to:`/ecs/list-clusters`,children:`Clusters`}),e[0]=t):t=e[0];let c;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,i.jsxs)(`nav`,{className:`mb-6 flex gap-1 border-b`,children:[t,(0,i.jsx)(n,{activeOptions:{exact:!1},activeProps:o,className:a,inactiveProps:s,to:`/ecs/task-definitions`,children:`Task definitions`})]}),e[1]=c):c=e[1],c}export{c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ecs.js b/spinifex/services/spinifexui/frontend/dist/assets/ecs.js index cd3118a01..a823b3ecd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ecs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ecs.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Cn as n,Fn as r,In as i,Ln as a,Rn as o,Sn as s,a as c,bn as l,wn as u,xn as d}from"./awsClient.js";import{Mt as f,T as p,r as m}from"./auth.js";import{cn as h,ln as g,st as _,un as v,wn as y,yi as b}from"./index.js";var x=class extends v(h,g,`CreateCluster`,l){},S=class extends v(h,g,`CreateService`,d){},C=class extends v(h,g,`DeleteCluster`,s){},w=class extends v(h,g,`DeregisterContainerInstance`,n){},T=class extends v(h,g,`DeregisterTaskDefinition`,u){},E=class extends v(h,g,`RegisterTaskDefinition`,r){},D=class extends v(h,g,`RunTask`,i){},O=class extends v(h,g,`StopTask`,a){},k=class extends v(h,g,`UpdateContainerInstancesState`,o){},A=e(),j=`ap-southeast-2`,M=9999,N=`AmazonEC2ContainerServiceV20141113.ProvisionCapacity`;function P(e){try{let t=JSON.parse(e);if(t&&typeof t==`object`){if(`message`in t&&typeof t.message==`string`)return t.message;if(`Message`in t&&typeof t.Message==`string`)return t.Message}}catch{}return null}async function F(e){let t=m();if(!t)throw Error(`Not authenticated`);let n=window.location.protocol.replace(`:`,``),r=JSON.stringify(e),i=new f({method:`POST`,protocol:n,hostname:`localhost`,port:M,path:`/`,headers:{host:`localhost:${M}`,"content-type":`application/x-amz-json-1.1`,"x-amz-target":N},body:r}),a=await new p({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:j,service:`ecs`,sha256:y}).sign(i),o={};for(let[e,t]of Object.entries(a.headers))typeof t==`string`&&(o[e]=t);let s=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,c=await fetch(s,{method:`POST`,headers:o,body:r});if(!c.ok){let e=await c.text().catch(()=>``),t=P(e)??e;throw Error(`ProvisionCapacity failed: ${c.status}${t?` - ${t}`:``}`)}return await c.json()}function ee(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:I,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function I(e){let t=new x({clusterName:e});return await c().send(t)}function L(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:R,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function R(e){let t=new C({cluster:e});return await c().send(t)}function z(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new O({cluster:e.cluster,task:e.task});return await c().send(t)}function V(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new T({taskDefinition:e});return await c().send(t)}function U(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new k({cluster:e.cluster,containerInstances:[e.containerInstance],status:e.status});return await c().send(t)}function G(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new w({cluster:e.cluster,containerInstance:e.containerInstance,force:!0});return await c().send(t)}function q(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t={name:e.containerName,image:e.image,essential:e.essential,cpu:e.containerCpu?Number(e.containerCpu):void 0,memory:e.containerMemory?Number(e.containerMemory):void 0,portMappings:e.portMappings.length>0?e.portMappings.map(Y):void 0},n=new E({family:e.family,networkMode:e.networkMode,cpu:e.cpu||void 0,memory:e.memory||void 0,containerDefinitions:[t]});return await c().send(n)}function Y(e){return{containerPort:e.containerPort,hostPort:e.containerPort,protocol:e.protocol}}function X(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:_(t.Cluster).queryKey})}},e[0]=n,e[1]=r),t(r)}async function Z(e){return await F(e)}function Q(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let t=new D({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0}),n=await c().send(t);if((n.tasks?.length??0)===0&&n.failures?.length){let e=n.failures[0];throw Error(`Task not placed: ${e?.reason??`unknown`}${e?.detail?` (${e.detail})`:``}`)}return n}function te(){let e=(0,A.c)(2),n=b(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`services`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new S({cluster:e.cluster,serviceName:e.serviceName,taskDefinition:e.taskDefinition,desiredCount:e.desiredCount,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0,loadBalancers:e.targetGroupArn?[{targetGroupArn:e.targetGroupArn,containerName:e.loadBalancerContainerName||void 0,containerPort:e.loadBalancerContainerPort?Number(e.loadBalancerContainerPort):void 0}]:void 0});return await c().send(t)}export{V as a,Q as c,G as i,z as l,te as n,X as o,L as r,q as s,ee as t,U as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Fn as n,In as r,Jn as i,Mn as a,Nn as o,Pn as s,Xn as c,Yn as l,a as u,qn as d}from"./awsClient.js";import{Mt as f,T as p,r as m}from"./auth.js";import{Nn as h,Oi as g,_n as _,st as v,vn as y,yn as b}from"./index.js";var x=class extends b(_,y,`CreateCluster`,a){},S=class extends b(_,y,`CreateService`,o){},C=class extends b(_,y,`DeleteCluster`,s){},w=class extends b(_,y,`DeregisterContainerInstance`,n){},T=class extends b(_,y,`DeregisterTaskDefinition`,r){},E=class extends b(_,y,`RegisterTaskDefinition`,d){},D=class extends b(_,y,`RunTask`,i){},O=class extends b(_,y,`StopTask`,l){},k=class extends b(_,y,`UpdateContainerInstancesState`,c){},A=e(),j=`ap-southeast-2`,M=9999,N=`AmazonEC2ContainerServiceV20141113.ProvisionCapacity`;function P(e){try{let t=JSON.parse(e);if(t&&typeof t==`object`){if(`message`in t&&typeof t.message==`string`)return t.message;if(`Message`in t&&typeof t.Message==`string`)return t.Message}}catch{}return null}async function F(e){let t=m();if(!t)throw Error(`Not authenticated`);let n=window.location.protocol.replace(`:`,``),r=JSON.stringify(e),i=new f({method:`POST`,protocol:n,hostname:`localhost`,port:M,path:`/`,headers:{host:`localhost:${M}`,"content-type":`application/x-amz-json-1.1`,"x-amz-target":N},body:r}),a=await new p({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:j,service:`ecs`,sha256:h}).sign(i),o={};for(let[e,t]of Object.entries(a.headers))typeof t==`string`&&(o[e]=t);let s=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,c=await fetch(s,{method:`POST`,headers:o,body:r});if(!c.ok){let e=await c.text().catch(()=>``),t=P(e)??e;throw Error(`ProvisionCapacity failed: ${c.status}${t?` - ${t}`:``}`)}return await c.json()}function I(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:ee,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function ee(e){let t=new x({clusterName:e});return await u().send(t)}function L(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:R,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function R(e){let t=new C({cluster:e});return await u().send(t)}function z(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new O({cluster:e.cluster,task:e.task});return await u().send(t)}function V(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new T({taskDefinition:e});return await u().send(t)}function U(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new k({cluster:e.cluster,containerInstances:[e.containerInstance],status:e.status});return await u().send(t)}function G(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new w({cluster:e.cluster,containerInstance:e.containerInstance,force:!0});return await u().send(t)}function q(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t={name:e.containerName,image:e.image,essential:e.essential,cpu:e.containerCpu?Number(e.containerCpu):void 0,memory:e.containerMemory?Number(e.containerMemory):void 0,portMappings:e.portMappings.length>0?e.portMappings.map(Y):void 0},n=new E({family:e.family,networkMode:e.networkMode,cpu:e.cpu||void 0,memory:e.memory||void 0,containerDefinitions:[t]});return await u().send(n)}function Y(e){return{containerPort:e.containerPort,hostPort:e.containerPort,protocol:e.protocol}}function X(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:v(t.Cluster).queryKey})}},e[0]=n,e[1]=r),t(r)}async function Z(e){return await F(e)}function Q(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let t=new D({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0}),n=await u().send(t);if((n.tasks?.length??0)===0&&n.failures?.length){let e=n.failures[0];throw Error(`Task not placed: ${e?.reason??`unknown`}${e?.detail?` (${e.detail})`:``}`)}return n}function te(){let e=(0,A.c)(2),n=g(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`services`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new S({cluster:e.cluster,serviceName:e.serviceName,taskDefinition:e.taskDefinition,desiredCount:e.desiredCount,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0,loadBalancers:e.targetGroupArn?[{targetGroupArn:e.targetGroupArn,containerName:e.loadBalancerContainerName||void 0,containerPort:e.loadBalancerContainerPort?Number(e.loadBalancerContainerPort):void 0}]:void 0});return await u().send(t)}export{V as a,Q as c,G as i,z as l,te as n,X as o,L as r,q as s,I as t,U as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/eks.js b/spinifex/services/spinifexui/frontend/dist/assets/eks.js index 6c39403ed..f2e15b13f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/eks.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/eks.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$t as n,Qt as r,Xt as i,Yt as a,Zt as ee,_n as te,en as ne,gn as re,ln as o,nn as s,o as c,rn as l,tn as u,vn as d}from"./awsClient.js";import{a as f,f as p,l as m,o as h,s as g,u as _}from"./auth.js";import{n as v,r as y,t as b}from"./commandBuilder.js";import{yi as x}from"./index.js";import{i as S}from"./subnet-calculator.js";import{r as C}from"./json.js";var w=class extends y(b,v,`AssociateAccessPolicy`,a){},T=class extends y(b,v,`CreateAccessEntry`,i){},E=class extends y(b,v,`CreateAddon`,ee){},D=class extends y(b,v,`CreateCluster`,r){},O=class extends y(b,v,`CreateNodegroup`,n){},k=class extends y(b,v,`DeleteAccessEntry`,ne){},A=class extends y(b,v,`DeleteAddon`,u){},j=class extends y(b,v,`DeleteCluster`,s){},M=class extends y(b,v,`DeleteNodegroup`,l){},N=class extends y(b,v,`DisassociateAccessPolicy`,o){},P=class extends y(b,v,`UpdateAddon`,re){},F=class extends y(b,v,`UpdateNodegroupConfig`,te){},I=class extends y(b,v,`UpdateNodegroupVersion`,d){},L=e();function R(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new D({name:e.name,version:e.version,roleArn:e.roleArn,resourcesVpcConfig:{subnetIds:e.subnetIds,endpointPublicAccess:e.endpointPublicAccess,endpointPrivateAccess:e.endpointPrivateAccess,publicAccessCidrs:e.endpointPublicAccess?e.publicAccessCidrs:void 0},accessConfig:{authenticationMode:`API`,bootstrapClusterCreatorAdminPermissions:e.bootstrapClusterCreatorAdminPermissions}});return await c().send(t)}function B(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new j({name:e});return await c().send(t)}function H(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function U(e){let t=new O({clusterName:e.clusterName,nodegroupName:e.nodegroupName,nodeRole:e.nodeRole,subnets:e.subnetIds,instanceTypes:e.instanceTypes,amiType:e.amiType,capacityType:e.capacityType,diskSize:e.diskSize,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await c().send(t)}function W(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let t=new F({clusterName:e.clusterName,nodegroupName:e.nodegroupName,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await c().send(t)}function G(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new I({clusterName:e.clusterName,nodegroupName:e.nodegroupName,version:e.version});return await c().send(t)}function q(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t=new M({clusterName:e.clusterName,nodegroupName:e.nodegroupName});return await c().send(t)}function Y(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:ae,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function ae(e){let t=new E({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await c().send(t)}function oe(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:se,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function se(e){let t=new P({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await c().send(t)}function ce(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:le,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function le(e){let t=new A({clusterName:e.clusterName,addonName:e.addonName});return await c().send(t)}function ue(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:de,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function de(e){let t=new T({clusterName:e.clusterName,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups,type:e.type});return await c().send(t)}function fe(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function pe(e){let t=new k({clusterName:e.clusterName,principalArn:e.principalArn});return await c().send(t)}function me(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new w({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn,accessScope:{type:e.accessScopeType,namespaces:e.namespaces}});return await c().send(t)}function ge(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new N({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn});return await c().send(t)}var ve=[`1.32`,`1.31`,`1.30`],ye=[{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy`,name:`AmazonEKSClusterAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy`,name:`AmazonEKSAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSEditPolicy`,name:`AmazonEKSEditPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy`,name:`AmazonEKSViewPolicy`}],X=[`AL2_x86_64`,`AL2_ARM_64`],Z=[`ON_DEMAND`,`SPOT`],be=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`eks.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),xe=`arn:aws:iam::aws:policy/AmazonEKSClusterPolicy`,Q=p().min(1,`Name is required`).max(100,`Name must be 100 characters or fewer`).regex(/^[0-9A-Za-z][A-Za-z0-9\-_]*$/,`Must start with a letter or digit and contain only letters, digits, hyphens, or underscores`),Se=_({name:Q,version:p().min(1,`Version is required`),roleArn:p().min(1,`Cluster IAM role is required`),vpcId:p().min(1,`VPC is required`),subnetIds:h(p()).min(1,`At least 1 subnet is required`),bootstrapClusterCreatorAdminPermissions:g(),endpointPublicAccess:g(),endpointPrivateAccess:g(),publicAccessCidrs:h(p())}).refine(e=>e.endpointPublicAccess||e.endpointPrivateAccess,{message:`Enable public access, private access, or both`,path:[`endpointPublicAccess`]}).refine(e=>!e.endpointPublicAccess||e.publicAccessCidrs.every(e=>S(e,0,32)),{message:`Each public access CIDR must be valid (e.g. 203.0.113.0/24)`,path:[`publicAccessCidrs`]}),Ce=_({nodegroupName:Q,nodeRole:p().min(1,`Node IAM role is required`),subnetIds:h(p()).min(1,`At least 1 subnet is required`),instanceTypes:p().min(1,`At least 1 instance type is required`),amiType:f(X),capacityType:f(Z),diskSize:m().int().min(1),minSize:m().int().min(0),desiredSize:m().int().min(0),maxSize:m().int().min(1)}).refine(e=>e.minSize<=e.desiredSize&&e.desiredSize<=e.maxSize,{message:`Sizes must satisfy min ≤ desired ≤ max`,path:[`desiredSize`]}),$=C({label:`Configuration`,allowEmpty:!0}),we=_({addonName:p().min(1,`Add-on is required`),addonVersion:p().min(1,`Version is required`),serviceAccountRoleArn:p(),configurationValues:$});function Te(e){switch(e??``){case`ACTIVE`:return`default`;case`CREATE_FAILED`:case`DELETE_FAILED`:case`UPDATE_FAILED`:case`DEGRADED`:return`destructive`;default:return`secondary`}}var Ee=_({principalArn:p().min(1,`Principal ARN is required`),kubernetesGroups:p()});export{W as C,ge as S,G as T,H as _,be as a,B as b,Te as c,Se as d,Ce as f,R as g,Y as h,Z as i,Ee as l,ue as m,ye as n,ve as o,me as p,X as r,$ as s,xe as t,we as u,fe as v,oe as w,q as x,ce as y}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{An as n,On as r,cn as i,dn as a,fn as ee,hn as te,kn as ne,ln as re,mn as o,o as s,pn as c,sn as l,un as u,xn as d}from"./awsClient.js";import{a as f,f as p,l as m,o as h,s as g,u as _}from"./auth.js";import{n as v,r as y,t as b}from"./commandBuilder.js";import{Lt as x,Oi as S}from"./index.js";import{i as C}from"./subnet-calculator.js";var w=class extends y(b,v,`AssociateAccessPolicy`,l){},T=class extends y(b,v,`CreateAccessEntry`,i){},E=class extends y(b,v,`CreateAddon`,re){},D=class extends y(b,v,`CreateCluster`,u){},O=class extends y(b,v,`CreateNodegroup`,a){},k=class extends y(b,v,`DeleteAccessEntry`,ee){},A=class extends y(b,v,`DeleteAddon`,c){},j=class extends y(b,v,`DeleteCluster`,o){},M=class extends y(b,v,`DeleteNodegroup`,te){},N=class extends y(b,v,`DisassociateAccessPolicy`,d){},P=class extends y(b,v,`UpdateAddon`,r){},F=class extends y(b,v,`UpdateNodegroupConfig`,ne){},I=class extends y(b,v,`UpdateNodegroupVersion`,n){},L=e();function R(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new D({name:e.name,version:e.version,roleArn:e.roleArn,resourcesVpcConfig:{subnetIds:e.subnetIds,endpointPublicAccess:e.endpointPublicAccess,endpointPrivateAccess:e.endpointPrivateAccess,publicAccessCidrs:e.endpointPublicAccess?e.publicAccessCidrs:void 0},accessConfig:{authenticationMode:`API`,bootstrapClusterCreatorAdminPermissions:e.bootstrapClusterCreatorAdminPermissions}});return await s().send(t)}function B(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new j({name:e});return await s().send(t)}function H(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function U(e){let t=new O({clusterName:e.clusterName,nodegroupName:e.nodegroupName,nodeRole:e.nodeRole,subnets:e.subnetIds,instanceTypes:e.instanceTypes,amiType:e.amiType,capacityType:e.capacityType,diskSize:e.diskSize,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await s().send(t)}function W(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let t=new F({clusterName:e.clusterName,nodegroupName:e.nodegroupName,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await s().send(t)}function G(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new I({clusterName:e.clusterName,nodegroupName:e.nodegroupName,version:e.version});return await s().send(t)}function q(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t=new M({clusterName:e.clusterName,nodegroupName:e.nodegroupName});return await s().send(t)}function Y(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ae,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function ae(e){let t=new E({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await s().send(t)}function oe(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:se,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function se(e){let t=new P({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await s().send(t)}function ce(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:le,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function le(e){let t=new A({clusterName:e.clusterName,addonName:e.addonName});return await s().send(t)}function ue(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:de,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function de(e){let t=new T({clusterName:e.clusterName,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups,type:e.type});return await s().send(t)}function fe(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function pe(e){let t=new k({clusterName:e.clusterName,principalArn:e.principalArn});return await s().send(t)}function me(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new w({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn,accessScope:{type:e.accessScopeType,namespaces:e.namespaces}});return await s().send(t)}function ge(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new N({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn});return await s().send(t)}var ve=[`1.32`,`1.31`,`1.30`],ye=[{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy`,name:`AmazonEKSClusterAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy`,name:`AmazonEKSAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSEditPolicy`,name:`AmazonEKSEditPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy`,name:`AmazonEKSViewPolicy`}],X=[`AL2_x86_64`,`AL2_ARM_64`],Z=[`ON_DEMAND`,`SPOT`],be=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`eks.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),xe=`arn:aws:iam::aws:policy/AmazonEKSClusterPolicy`,Q=p().min(1,`Name is required`).max(100,`Name must be 100 characters or fewer`).regex(/^[0-9A-Za-z][A-Za-z0-9\-_]*$/,`Must start with a letter or digit and contain only letters, digits, hyphens, or underscores`),Se=_({name:Q,version:p().min(1,`Version is required`),roleArn:p().min(1,`Cluster IAM role is required`),vpcId:p().min(1,`VPC is required`),subnetIds:h(p()).min(1,`At least 1 subnet is required`),bootstrapClusterCreatorAdminPermissions:g(),endpointPublicAccess:g(),endpointPrivateAccess:g(),publicAccessCidrs:h(p())}).refine(e=>e.endpointPublicAccess||e.endpointPrivateAccess,{message:`Enable public access, private access, or both`,path:[`endpointPublicAccess`]}).refine(e=>!e.endpointPublicAccess||e.publicAccessCidrs.every(e=>C(e,0,32)),{message:`Each public access CIDR must be valid (e.g. 203.0.113.0/24)`,path:[`publicAccessCidrs`]}),Ce=_({nodegroupName:Q,nodeRole:p().min(1,`Node IAM role is required`),subnetIds:h(p()).min(1,`At least 1 subnet is required`),instanceTypes:p().min(1,`At least 1 instance type is required`),amiType:f(X),capacityType:f(Z),diskSize:m().int().min(1),minSize:m().int().min(0),desiredSize:m().int().min(0),maxSize:m().int().min(1)}).refine(e=>e.minSize<=e.desiredSize&&e.desiredSize<=e.maxSize,{message:`Sizes must satisfy min ≤ desired ≤ max`,path:[`desiredSize`]}),$=x({label:`Configuration`,allowEmpty:!0}),we=_({addonName:p().min(1,`Add-on is required`),addonVersion:p().min(1,`Version is required`),serviceAccountRoleArn:p(),configurationValues:$});function Te(e){switch(e??``){case`ACTIVE`:return`default`;case`CREATE_FAILED`:case`DELETE_FAILED`:case`UPDATE_FAILED`:case`DEGRADED`:return`destructive`;default:return`secondary`}}var Ee=_({principalArn:p().min(1,`Principal ARN is required`),kubernetesGroups:p()});export{W as C,ge as S,G as T,H as _,be as a,B as b,Te as c,Se as d,Ce as f,R as g,Y as h,Z as i,Ee as l,ue as m,ye as n,ve as o,me as p,X as r,$ as s,xe as t,we as u,fe as v,oe as w,q as x,ce as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js index 8c99db131..82184e870 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{At as n,Bt as r,Ct as i,Dt as a,Et as o,Gt as s,Ht as ee,Kt as c,Ot as l,St as u,Tt as d,Ut as f,Vt as p,Wt as m,kt as te,qt as ne,s as h,wt as re,xt as ie}from"./awsClient.js";import{n as g,r as _,t as v}from"./commandBuilder2.js";import{yi as y}from"./index.js";var b=class extends _(v,g,`AddTags`,ie){},x=class extends _(v,g,`CreateListener`,u){},S=class extends _(v,g,`CreateLoadBalancer`,i){},C=class extends _(v,g,`CreateRule`,re){},w=class extends _(v,g,`CreateTargetGroup`,d){},T=class extends _(v,g,`DeleteListener`,o){},E=class extends _(v,g,`DeleteLoadBalancer`,a){},D=class extends _(v,g,`DeleteRule`,l){},O=class extends _(v,g,`DeleteTargetGroup`,te){},k=class extends _(v,g,`DeregisterTargets`,n){},A=class extends _(v,g,`ModifyListener`,r){},j=class extends _(v,g,`ModifyLoadBalancerAttributes`,p){},M=class extends _(v,g,`ModifyRule`,ee){},N=class extends _(v,g,`ModifyTargetGroupAttributes`,f){},P=class extends _(v,g,`RegisterTargets`,m){},F=class extends _(v,g,`RemoveTags`,s){},I=class extends _(v,g,`SetSecurityGroups`,c){},L=class extends _(v,g,`SetSubnets`,ne){},R=e();function z(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new E({LoadBalancerArn:e});return await h().send(t)}function V(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new j({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(U)});return await h().send(t)}function U(e){return{Key:e.key,Value:e.value}}function W(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},e[0]=n,e[1]=r),t(r)}async function G(e){let t=new Set(e.tags.map(q)),n=e.initialKeys.filter(e=>!t.has(e)),r=h();e.tags.length>0&&await r.send(new b({ResourceArns:[e.resourceArn],Tags:e.tags.map(K)})),n.length>0&&await r.send(new F({ResourceArns:[e.resourceArn],TagKeys:n}))}function K(e){return{Key:e.key,Value:e.value}}function q(e){return e.key}function J(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let t=new I({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await h().send(t)}function ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let t=new L({LoadBalancerArn:e.loadBalancerArn,Subnets:e.subnetIds});return await h().send(t)}function se(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=e.tags.filter(ue).map(le),n=e.healthCheck.protocol===`HTTP`,r=new w({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await h().send(r)}function le(e){return{Key:e.key,Value:e.value}}function ue(e){return e.key.length>0}function de(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let t=new O({TargetGroupArn:e});return await h().send(t)}function pe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new N({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(he)});return await h().send(t)}function he(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function ge(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new x({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function ve(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let t=new T({ListenerArn:e});return await h().send(t)}function be(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new A({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function Se(){let e=y();return t({mutationFn:async e=>{let t=h(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new w({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new S({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new x({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{e.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function Ce(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let t=new P({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function Q(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function Te(e){let t=new k({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function $(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ee(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function De(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new C({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:$(e.conditions),Actions:t});return await h().send(n)}function Oe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function ke(e){let t=new M({RuleArn:e.ruleArn,Conditions:e.conditions?$(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await h().send(t)}function Ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:je,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function je(e){let t=new D({RuleArn:e.ruleArn});return await h().send(t)}export{W as _,ve as a,de as c,V as d,Oe as f,ae as g,J as h,se as i,Q as l,Ce as m,Se as n,z as o,pe as p,Ee as r,Ae as s,ge as t,be as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$t as n,Bt as r,Ft as i,Ht as a,It as o,Lt as s,Nt as ee,Pt as c,Qt as l,Rt as u,Vt as d,an as f,en as p,in as m,nn as te,rn as ne,s as h,tn as re,zt as ie}from"./awsClient.js";import{n as g,r as _,t as v}from"./commandBuilder2.js";import{Oi as y}from"./index.js";var b=class extends _(v,g,`AddTags`,ee){},x=class extends _(v,g,`CreateListener`,c){},S=class extends _(v,g,`CreateLoadBalancer`,i){},C=class extends _(v,g,`CreateRule`,o){},w=class extends _(v,g,`CreateTargetGroup`,s){},T=class extends _(v,g,`DeleteListener`,u){},E=class extends _(v,g,`DeleteLoadBalancer`,ie){},D=class extends _(v,g,`DeleteRule`,r){},O=class extends _(v,g,`DeleteTargetGroup`,d){},k=class extends _(v,g,`DeregisterTargets`,a){},A=class extends _(v,g,`ModifyListener`,l){},j=class extends _(v,g,`ModifyLoadBalancerAttributes`,n){},M=class extends _(v,g,`ModifyRule`,p){},N=class extends _(v,g,`ModifyTargetGroupAttributes`,re){},P=class extends _(v,g,`RegisterTargets`,te){},F=class extends _(v,g,`RemoveTags`,ne){},I=class extends _(v,g,`SetSecurityGroups`,m){},L=class extends _(v,g,`SetSubnets`,f){},R=e();function z(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new E({LoadBalancerArn:e});return await h().send(t)}function V(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new j({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(U)});return await h().send(t)}function U(e){return{Key:e.key,Value:e.value}}function W(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},e[0]=n,e[1]=r),t(r)}async function G(e){let t=new Set(e.tags.map(q)),n=e.initialKeys.filter(e=>!t.has(e)),r=h();e.tags.length>0&&await r.send(new b({ResourceArns:[e.resourceArn],Tags:e.tags.map(K)})),n.length>0&&await r.send(new F({ResourceArns:[e.resourceArn],TagKeys:n}))}function K(e){return{Key:e.key,Value:e.value}}function q(e){return e.key}function J(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let t=new I({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await h().send(t)}function ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let t=new L({LoadBalancerArn:e.loadBalancerArn,Subnets:e.subnetIds});return await h().send(t)}function se(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=e.tags.filter(ue).map(le),n=e.healthCheck.protocol===`HTTP`,r=new w({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await h().send(r)}function le(e){return{Key:e.key,Value:e.value}}function ue(e){return e.key.length>0}function de(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let t=new O({TargetGroupArn:e});return await h().send(t)}function pe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new N({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(he)});return await h().send(t)}function he(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function ge(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new x({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function ve(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let t=new T({ListenerArn:e});return await h().send(t)}function be(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new A({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function Se(){let e=y();return t({mutationFn:async e=>{let t=h(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new w({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new S({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new x({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{e.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function Ce(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let t=new P({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function Q(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function Te(e){let t=new k({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function $(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ee(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function De(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new C({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:$(e.conditions),Actions:t});return await h().send(n)}function Oe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function ke(e){let t=new M({RuleArn:e.ruleArn,Conditions:e.conditions?$(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await h().send(t)}function Ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:je,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function je(e){let t=new D({RuleArn:e.ruleArn});return await h().send(t)}export{W as _,ve as a,de as c,V as d,Oe as f,ae as g,J as h,se as i,Q as l,Ce as m,Se as n,z as o,pe as p,Ee as r,Ae as s,ge as t,be as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam.js b/spinifex/services/spinifexui/frontend/dist/assets/iam.js index 83be25404..faa818015 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$ as n,B as r,F as i,G as a,H as o,I as s,J as c,K as l,L as u,P as ee,Q as te,R as d,U as f,V as p,W as m,X as h,Y as g,Z as _,_t as v,c as y,q as b,vt as x,yt as S,z as C}from"./awsClient.js";import{n as w,r as T,t as E}from"./commandBuilder3.js";import{yi as D}from"./index.js";var O=class extends T(E,w,`AddRoleToInstanceProfile`,ee){},k=class extends T(E,w,`AddUserToGroup`,i){},A=class extends T(E,w,`AttachGroupPolicy`,s){},j=class extends T(E,w,`AttachRolePolicy`,u){},M=class extends T(E,w,`AttachUserPolicy`,d){},N=class extends T(E,w,`CreateAccessKey`,C){},P=class extends T(E,w,`CreateGroup`,r){},F=class extends T(E,w,`CreateInstanceProfile`,p){},I=class extends T(E,w,`CreatePolicy`,o){},L=class extends T(E,w,`CreateRole`,f){},R=class extends T(E,w,`CreateUser`,m){},z=class extends T(E,w,`DeleteAccessKey`,a){},B=class extends T(E,w,`DeleteGroup`,l){},V=class extends T(E,w,`DeleteInstanceProfile`,b){},H=class extends T(E,w,`DeletePolicy`,c){},U=class extends T(E,w,`DeleteRole`,g){},W=class extends T(E,w,`DeleteUser`,h){},G=class extends T(E,w,`DetachGroupPolicy`,_){},K=class extends T(E,w,`DetachRolePolicy`,te){},q=class extends T(E,w,`DetachUserPolicy`,n){},J=class extends T(E,w,`RemoveRoleFromInstanceProfile`,v){},Y=class extends T(E,w,`RemoveUserFromGroup`,x){},X=class extends T(E,w,`UpdateAccessKey`,S){},Z=e();function Q(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new R({UserName:e.userName,Path:e.path||void 0});return await y().send(t)}function re(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let t=new W({UserName:e});return await y().send(t)}function ae(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let t=new N({UserName:e});return await y().send(t)}function se(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let{userName:t,accessKeyId:n}=e,r=new z({UserName:t,AccessKeyId:n});return await y().send(r)}function le(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function ue(e){let{userName:t,accessKeyId:n,status:r}=e,i=new X({UserName:t,AccessKeyId:n,Status:r});return await y().send(i)}function de(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let t=new I({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await y().send(t)}function pe(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new H({PolicyArn:e});return await y().send(t)}function he(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:ge,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function ge(e){let{userName:t,policyArn:n}=e,r=new M({UserName:t,PolicyArn:n});return await y().send(r)}function _e(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:ve,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function ve(e){let{userName:t,policyArn:n}=e,r=new q({UserName:t,PolicyArn:n});return await y().send(r)}function ye(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:be,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function be(e){let t=new L({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await y().send(t)}function xe(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Se,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function Se(e){let t=new U({RoleName:e});return await y().send(t)}function Ce(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let{roleName:t,policyArn:n}=e,r=new j({RoleName:t,PolicyArn:n});return await y().send(r)}function Te(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ee,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function Ee(e){let{roleName:t,policyArn:n}=e,r=new K({RoleName:t,PolicyArn:n});return await y().send(r)}function De(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function Oe(e){let t=new F({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await y().send(t)}function ke(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ae,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function Ae(e){let t=new V({InstanceProfileName:e});return await y().send(t)}function je(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Me,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function Me(e){let{instanceProfileName:t,roleName:n}=e,r=new O({InstanceProfileName:t,RoleName:n});return await y().send(r)}function Ne(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function Pe(e){let{instanceProfileName:t,roleName:n}=e,r=new J({InstanceProfileName:t,RoleName:n});return await y().send(r)}function $(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]})}},e[0]=n,e[1]=r),t(r)}async function Fe(e){let t=new P({GroupName:e.groupName,Path:e.path||void 0});return await y().send(t)}function Ie(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Le,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]})}},e[0]=n,e[1]=r),t(r)}async function Le(e){let t=new B({GroupName:e});return await y().send(t)}function Re(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:ze,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-group-policies`]})}},e[0]=n,e[1]=r),t(r)}async function ze(e){let{groupName:t,policyArn:n}=e,r=new A({GroupName:t,PolicyArn:n});return await y().send(r)}function Be(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ve,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-group-policies`]})}},e[0]=n,e[1]=r),t(r)}async function Ve(e){let{groupName:t,policyArn:n}=e,r=new G({GroupName:t,PolicyArn:n});return await y().send(r)}function He(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]}),n.invalidateQueries({queryKey:[`iam`,`groups-for-user`]})}},e[0]=n,e[1]=r),t(r)}async function Ue(e){let{groupName:t,userName:n}=e,r=new k({GroupName:t,UserName:n});return await y().send(r)}function We(){let e=(0,Z.c)(2),n=D(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ge,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]}),n.invalidateQueries({queryKey:[`iam`,`groups-for-user`]})}},e[0]=n,e[1]=r),t(r)}async function Ge(e){let{groupName:t,userName:n}=e,r=new Y({GroupName:t,UserName:n});return await y().send(r)}export{le as C,We as S,re as _,he as a,_e as b,De as c,Q as d,se as f,xe as g,pe as h,Ce as i,de as l,ke as m,He as n,ae as o,Ie as p,Re as r,$ as s,je as t,ye as u,Be as v,Ne as x,Te as y}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$ as n,At as r,B as i,Dt as a,Et as o,F as s,G as c,H as l,I as ee,J as te,K as ne,L as u,Ot as d,P as f,Q as p,R as m,U as h,V as g,W as _,X as v,Y as y,Z as b,c as x,et as S,jt as C,kt as w,nt as T,q as E,tt as D,z as O}from"./awsClient.js";import{n as k,r as A,t as j}from"./commandBuilder3.js";import{Oi as M}from"./index.js";var N=class extends A(j,k,`AddRoleToInstanceProfile`,f){},P=class extends A(j,k,`AddUserToGroup`,s){},F=class extends A(j,k,`AttachGroupPolicy`,ee){},I=class extends A(j,k,`AttachRolePolicy`,u){},L=class extends A(j,k,`AttachUserPolicy`,m){},R=class extends A(j,k,`CreateAccessKey`,O){},z=class extends A(j,k,`CreateGroup`,i){},B=class extends A(j,k,`CreateInstanceProfile`,g){},V=class extends A(j,k,`CreatePolicy`,l){},H=class extends A(j,k,`CreateRole`,h){},U=class extends A(j,k,`CreateUser`,_){},W=class extends A(j,k,`DeleteAccessKey`,c){},G=class extends A(j,k,`DeleteGroup`,ne){},K=class extends A(j,k,`DeleteGroupPolicy`,E){},q=class extends A(j,k,`DeleteInstanceProfile`,te){},J=class extends A(j,k,`DeletePolicy`,y){},Y=class extends A(j,k,`DeleteRole`,v){},X=class extends A(j,k,`DeleteRolePolicy`,b){},Z=class extends A(j,k,`DeleteUser`,p){},re=class extends A(j,k,`DeleteUserPolicy`,n){},ie=class extends A(j,k,`DetachGroupPolicy`,S){},ae=class extends A(j,k,`DetachRolePolicy`,D){},oe=class extends A(j,k,`DetachUserPolicy`,T){},se=class extends A(j,k,`PutGroupPolicy`,o){},ce=class extends A(j,k,`PutRolePolicy`,a){},le=class extends A(j,k,`PutUserPolicy`,d){},ue=class extends A(j,k,`RemoveRoleFromInstanceProfile`,w){},de=class extends A(j,k,`RemoveUserFromGroup`,r){},fe=class extends A(j,k,`UpdateAccessKey`,C){},Q=e();function pe(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new U({UserName:e.userName,Path:e.path||void 0});return await x().send(t)}function he(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:ge,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function ge(e){let t=new Z({UserName:e});return await x().send(t)}function _e(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:ve,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function ve(e){let t=new R({UserName:e});return await x().send(t)}function ye(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:be,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function be(e){let{userName:t,accessKeyId:n}=e,r=new W({UserName:t,AccessKeyId:n});return await x().send(r)}function xe(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Se,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function Se(e){let{userName:t,accessKeyId:n,status:r}=e,i=new fe({UserName:t,AccessKeyId:n,Status:r});return await x().send(i)}function Ce(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let t=new V({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await x().send(t)}function Te(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ee,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function Ee(e){let t=new J({PolicyArn:e});return await x().send(t)}function De(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function Oe(e){let{userName:t,policyArn:n}=e,r=new L({UserName:t,PolicyArn:n});return await x().send(r)}function ke(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ae,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function Ae(e){let{userName:t,policyArn:n}=e,r=new oe({UserName:t,PolicyArn:n});return await x().send(r)}function je(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`iam`,`user-inline-policies`,t.name]})}},e[0]=n,e[1]=r),t(r)}async function Me(e){let{name:t,policyName:n,policyDocument:r}=e,i=new le({UserName:t,PolicyName:n,PolicyDocument:r});return await x().send(i)}function Ne(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`iam`,`user-inline-policies`,t.name]})}},e[0]=n,e[1]=r),t(r)}async function Pe(e){let{name:t,policyName:n}=e,r=new re({UserName:t,PolicyName:n});return await x().send(r)}function Fe(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function Ie(e){let t=new H({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await x().send(t)}function Le(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Re,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function Re(e){let t=new Y({RoleName:e});return await x().send(t)}function ze(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Be,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function Be(e){let{roleName:t,policyArn:n}=e,r=new I({RoleName:t,PolicyArn:n});return await x().send(r)}function Ve(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:He,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function He(e){let{roleName:t,policyArn:n}=e,r=new ae({RoleName:t,PolicyArn:n});return await x().send(r)}function Ue(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:We,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`iam`,`role-inline-policies`,t.name]})}},e[0]=n,e[1]=r),t(r)}async function We(e){let{name:t,policyName:n,policyDocument:r}=e,i=new ce({RoleName:t,PolicyName:n,PolicyDocument:r});return await x().send(i)}function Ge(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`iam`,`role-inline-policies`,t.name]})}},e[0]=n,e[1]=r),t(r)}async function Ke(e){let{name:t,policyName:n}=e,r=new X({RoleName:t,PolicyName:n});return await x().send(r)}function qe(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Je,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function Je(e){let t=new B({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await x().send(t)}function Ye(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Xe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function Xe(e){let t=new q({InstanceProfileName:e});return await x().send(t)}function Ze(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:Qe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function Qe(e){let{instanceProfileName:t,roleName:n}=e,r=new N({InstanceProfileName:t,RoleName:n});return await x().send(r)}function $e(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:et,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function et(e){let{instanceProfileName:t,roleName:n}=e,r=new ue({InstanceProfileName:t,RoleName:n});return await x().send(r)}function tt(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let t=new z({GroupName:e.groupName,Path:e.path||void 0});return await x().send(t)}function nt(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:rt,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]})}},e[0]=n,e[1]=r),t(r)}async function rt(e){let t=new G({GroupName:e});return await x().send(t)}function it(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:at,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-group-policies`]})}},e[0]=n,e[1]=r),t(r)}async function at(e){let{groupName:t,policyArn:n}=e,r=new F({GroupName:t,PolicyArn:n});return await x().send(r)}function ot(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:st,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-group-policies`]})}},e[0]=n,e[1]=r),t(r)}async function st(e){let{groupName:t,policyArn:n}=e,r=new ie({GroupName:t,PolicyArn:n});return await x().send(r)}function ct(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:lt,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`iam`,`group-inline-policies`,t.name]})}},e[0]=n,e[1]=r),t(r)}async function lt(e){let{name:t,policyName:n,policyDocument:r}=e,i=new se({GroupName:t,PolicyName:n,PolicyDocument:r});return await x().send(i)}function ut(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:dt,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`iam`,`group-inline-policies`,t.name]})}},e[0]=n,e[1]=r),t(r)}async function dt(e){let{name:t,policyName:n}=e,r=new K({GroupName:t,PolicyName:n});return await x().send(r)}function ft(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:pt,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]}),n.invalidateQueries({queryKey:[`iam`,`groups-for-user`]})}},e[0]=n,e[1]=r),t(r)}async function pt(e){let{groupName:t,userName:n}=e,r=new P({GroupName:t,UserName:n});return await x().send(r)}function mt(){let e=(0,Q.c)(2),n=M(),r;return e[0]===n?r=e[1]:(r={mutationFn:ht,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`groups`]}),n.invalidateQueries({queryKey:[`iam`,`groups-for-user`]})}},e[0]=n,e[1]=r),t(r)}async function ht(e){let{groupName:t,userName:n}=e,r=new de({GroupName:t,UserName:n});return await x().send(r)}export{ke as C,$e as D,je as E,mt as O,Ve as S,Ue as T,Le as _,De as a,Ne as b,qe as c,pe as d,ye as f,Te as g,Ye as h,ze as i,xe as k,Ce as l,ut as m,ft as n,_e as o,nt as p,it as r,tt as s,Ze as t,Fe as u,Ge as v,ct as w,ot as x,he as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js index c58701c28..bcf3afe2e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js @@ -1 +1 @@ -import{f as e,u as t}from"./auth.js";import{r as n}from"./json.js";var r=t({userName:e().min(1,`User name is required`).max(64,`User name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`User name contains invalid characters`),path:e().optional()}),i=t({policyName:e().min(1,`Policy name is required`).max(128,`Policy name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Policy name contains invalid characters`),description:e().optional(),policyDocument:n({label:`Policy document`})}),a=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`ec2.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),o=t({roleName:e().min(1,`Role name is required`).max(64,`Role name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`Role name contains invalid characters`),path:e().optional(),description:e().optional(),assumeRolePolicyDocument:n({label:`Trust policy`})}),s=t({instanceProfileName:e().min(1,`Instance profile name is required`).max(128,`Instance profile name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Instance profile name contains invalid characters`),path:e().optional()}),c=t({groupName:e().min(1,`Group name is required`).max(128,`Group name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Group name contains invalid characters`),path:e().optional()});export{o as a,i,c as n,r as o,s as r,a as t}; \ No newline at end of file +import{f as e,u as t}from"./auth.js";import{Lt as n}from"./index.js";var r=t({userName:e().min(1,`User name is required`).max(64,`User name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`User name contains invalid characters`),path:e().optional()}),i=t({policyName:e().min(1,`Policy name is required`).max(128,`Policy name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Policy name contains invalid characters`),description:e().optional(),policyDocument:n({label:`Policy document`})}),a=t({policyName:e().min(1,`Policy name is required`).max(128,`Policy name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Policy name contains invalid characters`),policyDocument:n({label:`Policy document`})}),o=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`ec2.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),s=t({roleName:e().min(1,`Role name is required`).max(64,`Role name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`Role name contains invalid characters`),path:e().optional(),description:e().optional(),assumeRolePolicyDocument:n({label:`Trust policy`})}),c=t({instanceProfileName:e().min(1,`Instance profile name is required`).max(128,`Instance profile name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Instance profile name contains invalid characters`),path:e().optional()}),l=t({groupName:e().min(1,`Group name is required`).max(128,`Group name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Group name contains invalid characters`),path:e().optional()});export{s as a,i,l as n,r as o,c as r,a as s,o as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js index 14a6d4213..094605d4d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{H as ee}from"./ec2.js";import{vi as i,xr as te}from"./index.js";import{a,i as o,t as s}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{g as f}from"./ec22.js";import{t as p}from"./textarea.js";var m=t(),h=e();function g(){let e=(0,m.c)(57),t=i(),g=ee(),v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:s(f)},e[0]=v):v=e[0];let{handleSubmit:y,register:b,control:x,formState:S}=o(v),{errors:C,isSubmitting:w}=S,T;e[1]===x?T=e[2]:(T={control:x},e[1]=x,e[2]=T);let E=a(T),D;e[3]===E?D=e[4]:(D=e=>e?E[e]:void 0,e[3]=E,e[4]=D);let O=D,k;e[5]!==g||e[6]!==t?(k=async e=>{await g.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[5]=g,e[6]=t,e[7]=k):k=e[7];let A=k,j,M;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,h.jsx)(c,{title:`Import Key Pair`}),e[8]=j,e[9]=M):(j=e[8],M=e[9]);let N;e[10]===g.error?N=e[11]:(N=g.error&&(0,h.jsx)(ne,{error:g.error,msg:`Failed to import key pair`}),e[10]=g.error,e[11]=N);let P;e[12]!==y||e[13]!==A?(P=y(A),e[12]=y,e[13]=A,e[14]=P):P=e[14];let F;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[15]=F):F=e[15];let I=!!C.keyName,L;e[16]===b?L=e[17]:(L=b(`keyName`),e[16]=b,e[17]=L);let R;e[18]!==I||e[19]!==L?(R=(0,h.jsx)(te,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),e[18]=I,e[19]=L,e[20]=R):R=e[20];let z;e[21]===C.keyName?z=e[22]:(z=(0,h.jsx)(u,{errors:[C.keyName]}),e[21]=C.keyName,e[22]=z);let B;e[23]!==R||e[24]!==z?(B=(0,h.jsxs)(d,{children:[F,R,z]}),e[23]=R,e[24]=z,e[25]=B):B=e[25];let V,H;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),e[26]=V,e[27]=H):(V=e[26],H=e[27]);let U=!!C.publicKeyMaterial,W;e[28]===b?W=e[29]:(W=b(`publicKeyMaterial`),e[28]=b,e[29]=W);let G;e[30]!==U||e[31]!==W?(G=(0,h.jsx)(p,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),e[30]=U,e[31]=W,e[32]=G):G=e[32];let K;e[33]===C.publicKeyMaterial?K=e[34]:(K=(0,h.jsx)(u,{errors:[C.publicKeyMaterial]}),e[33]=C.publicKeyMaterial,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,h.jsxs)(d,{children:[V,H,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===O?J=e[39]:(J=_(O),e[38]=O,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,h.jsx)(r,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>await t({to:`/ec2/describe-key-pairs`}),e[42]=t,e[43]=X);let Z;e[44]!==g.isPending||e[45]!==w||e[46]!==X?(Z=(0,h.jsx)(re,{isPending:g.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[44]=g.isPending,e[45]=w,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==B||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==P?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),e[48]=B,e[49]=q,e[50]=Y,e[51]=Z,e[52]=P,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==N?($=(0,h.jsxs)(h.Fragment,{children:[j,M,N,Q]}),e[54]=Q,e[55]=N,e[56]=$):$=e[56],$}function _(e){let t=e(`keyName`);return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{H as ee}from"./ec2.js";import{Ar as i,Di as te}from"./index.js";import{a,i as o,t as s}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{g as f}from"./ec22.js";import{t as p}from"./textarea.js";var m=t(),h=e();function g(){let e=(0,m.c)(57),t=te(),g=ee(),v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:s(f)},e[0]=v):v=e[0];let{handleSubmit:y,register:b,control:x,formState:S}=o(v),{errors:C,isSubmitting:w}=S,T;e[1]===x?T=e[2]:(T={control:x},e[1]=x,e[2]=T);let E=a(T),D;e[3]===E?D=e[4]:(D=e=>e?E[e]:void 0,e[3]=E,e[4]=D);let O=D,k;e[5]!==g||e[6]!==t?(k=async e=>{await g.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[5]=g,e[6]=t,e[7]=k):k=e[7];let A=k,j,M;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,h.jsx)(c,{title:`Import Key Pair`}),e[8]=j,e[9]=M):(j=e[8],M=e[9]);let N;e[10]===g.error?N=e[11]:(N=g.error&&(0,h.jsx)(ne,{error:g.error,msg:`Failed to import key pair`}),e[10]=g.error,e[11]=N);let P;e[12]!==y||e[13]!==A?(P=y(A),e[12]=y,e[13]=A,e[14]=P):P=e[14];let F;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[15]=F):F=e[15];let I=!!C.keyName,L;e[16]===b?L=e[17]:(L=b(`keyName`),e[16]=b,e[17]=L);let R;e[18]!==I||e[19]!==L?(R=(0,h.jsx)(i,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),e[18]=I,e[19]=L,e[20]=R):R=e[20];let z;e[21]===C.keyName?z=e[22]:(z=(0,h.jsx)(u,{errors:[C.keyName]}),e[21]=C.keyName,e[22]=z);let B;e[23]!==R||e[24]!==z?(B=(0,h.jsxs)(d,{children:[F,R,z]}),e[23]=R,e[24]=z,e[25]=B):B=e[25];let V,H;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),e[26]=V,e[27]=H):(V=e[26],H=e[27]);let U=!!C.publicKeyMaterial,W;e[28]===b?W=e[29]:(W=b(`publicKeyMaterial`),e[28]=b,e[29]=W);let G;e[30]!==U||e[31]!==W?(G=(0,h.jsx)(p,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),e[30]=U,e[31]=W,e[32]=G):G=e[32];let K;e[33]===C.publicKeyMaterial?K=e[34]:(K=(0,h.jsx)(u,{errors:[C.publicKeyMaterial]}),e[33]=C.publicKeyMaterial,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,h.jsxs)(d,{children:[V,H,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===O?J=e[39]:(J=_(O),e[38]=O,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,h.jsx)(r,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>await t({to:`/ec2/describe-key-pairs`}),e[42]=t,e[43]=X);let Z;e[44]!==g.isPending||e[45]!==w||e[46]!==X?(Z=(0,h.jsx)(re,{isPending:g.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[44]=g.isPending,e[45]=w,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==B||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==P?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),e[48]=B,e[49]=q,e[50]=Y,e[51]=Z,e[52]=P,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==N?($=(0,h.jsxs)(h.Fragment,{children:[j,M,N,Q]}),e[54]=Q,e[55]=N,e[56]=$):$=e[56],$}function _(e){let t=e(`keyName`);return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`},{type:`flag`,value:` \\ --public-key-material`},{type:`value`,value:` fileb://path/to/key.pub`}]}]}export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.js b/spinifex/services/spinifexui/frontend/dist/assets/index.js index 3222ccf9a..1babbad01 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.js @@ -1,10 +1,10 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/compiler-runtime.js","assets/awsClient.js","assets/useStore.js","assets/auth.js","assets/index.browser.js","assets/index2.browser.js","assets/button.js","assets/dist.js","assets/zod.js","assets/field.js","assets/collapsible.js","assets/createBaseUIEventDetails.js","assets/card.js","assets/route.js","assets/_auth.js","assets/useQuery.js","assets/useBaseQuery.js","assets/chevron-down.js","assets/chevron-right.js","assets/page-heading.js","assets/state-badge.js","assets/admin.js","assets/queryOptions.js","assets/badge.js","assets/nodes.js","assets/redirect.js","assets/service-metrics.js","assets/ls.js","assets/useSuspenseQuery.js","assets/list-card.js","assets/create-bucket.js","assets/back-link.js","assets/cli-command-panel.js","assets/check.js","assets/copy.js","assets/use-copy-to-clipboard.js","assets/s3.js","assets/useMutation.js","assets/error-banner.js","assets/form-actions.js","assets/create-user.js","assets/iam.js","assets/commandBuilder3.js","assets/iam2.js","assets/json.js","assets/create-role.js","assets/json-editor.js","assets/textarea.js","assets/create-policy.js","assets/create-instance-profile.js","assets/create-group.js","assets/create-cluster.js","assets/select.js","assets/useCompositeListItem.js","assets/rotate-cw.js","assets/triangle-alert.js","assets/eks.js","assets/commandBuilder.js","assets/subnet-calculator.js","assets/alert-dialog.js","assets/system-managed.js","assets/policy-document-viewer.js","assets/task-definitions.js","assets/ecs.js","assets/delete-confirmation-dialog.js","assets/ecs-section-nav.js","assets/run-task.js","assets/ecs2.js","assets/register-task-definition.js","assets/plus.js","assets/trash-2.js","assets/create-service.js","assets/create-vpc.js","assets/ec2.js","assets/ec22.js","assets/create-volume.js","assets/create-target-group.js","assets/elbv2.js","assets/commandBuilder2.js","assets/target-group-form.js","assets/elbv22.js","assets/create-subnet.js","assets/create-snapshot.js","assets/create-security-group.js","assets/create-route-table.js","assets/create-placement-group.js","assets/create-nat-gateway.js","assets/create-load-balancer.js","assets/certificate-import-dialog.js","assets/import-key-pair.js","assets/create-key-pair.js","assets/download.js","assets/create-internet-gateway.js","assets/run-instances.js","assets/allocate-address.js","assets/route2.js","assets/_bucket.js","assets/upload-button.js","assets/list-users.js","assets/list-roles.js","assets/list-policies.js","assets/list-instance-profiles.js","assets/list-groups.js","assets/list-clusters2.js","assets/list-clusters.js","assets/list-repositories.js","assets/ecr.js","assets/describe-vpcs.js","assets/describe-volumes.js","assets/describe-target-groups.js","assets/describe-subnets.js","assets/describe-snapshots.js","assets/describe-security-groups.js","assets/describe-route-tables.js","assets/describe-placement-groups.js","assets/describe-nat-gateways.js","assets/describe-load-balancers.js","assets/describe-key-pairs.js","assets/describe-internet-gateways.js","assets/describe-instances.js","assets/describe-images.js","assets/describe-addresses.js","assets/_.js","assets/_userName.js","assets/detail-row.js","assets/_roleName.js","assets/_policyArn.js","assets/_instanceProfileName.js","assets/_groupName.js","assets/_clusterName2.js","assets/circle-arrow-up.js","assets/tabs.js","assets/_clusterName.js","assets/_id17.js","assets/_id16.js","assets/_id15.js","assets/_id14.js","assets/_id13.js","assets/tags-editor.js","assets/_id12.js","assets/_id11.js","assets/_id10.js","assets/_id9.js","assets/_id8.js","assets/_id7.js","assets/_id6.js","assets/_id5.js","assets/_id4.js","assets/_id3.js","assets/ami-details.js","assets/_id2.js","assets/_id.js","assets/_taskId.js","assets/_serviceName.js"])))=>i.map(i=>d[i]); -import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime.js";import{t as a}from"./queryOptions.js";import{A as o,B as s,C as c,D as l,E as u,F as d,G as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,V as S,W as C,_ as w,a as T,b as E,c as D,d as O,f as k,g as A,h as j,i as M,j as ee,k as N,l as P,m as te,n as ne,o as re,r as ie,s as ae,t as F,v as oe,w as se,x as I,y as ce,z as le}from"./useStore.js";import{i as ue,n as de,r as fe,t as pe}from"./matchContext.js";import{n as me,t as he}from"./redirect.js";import{$n as ge,An as _e,Br as ve,Dn as ye,E as be,En as xe,Fr as Se,Ft as Ce,Gn as we,Gr as Te,Hr as Ee,Ir as De,It as Oe,Jr as ke,Kn as Ae,Kr as je,Lr as Me,Lt as Ne,Mn as Pe,Mt as Fe,N as Ie,Nn as Le,Nt as Re,On as ze,Pn as Be,Pt as Ve,Rr as He,Rt as Ue,Si as We,T as Ge,Tn as Ke,Ur as qe,Vr as Je,Wr as Ye,Xr as Xe,Yn as Ze,Yr as Qe,Zr as $e,_ as et,_i as tt,a as nt,an as rt,at as it,bi as at,c as ot,cn as st,ct,dn as lt,dt as ut,er as dt,et as ft,fn as pt,ft as mt,g as ht,gt,hn as _t,ht as vt,i as yt,in as bt,it as xt,jn as St,jt as Ct,kn as wt,l as Tt,lt as Et,mn as Dt,mt as Ot,n as kt,nt as At,o as jt,on as Mt,ot as Nt,pn as Pt,pt as Ft,qn as It,qr as Lt,r as Rt,rt as zt,s as Bt,sn as Vt,st as Ht,t as Ut,tr as Wt,tt as Gt,un as Kt,ut as qt,w as Jt,xi as Yt,yi as Xt,zn as Zt,zr as Qt,zt as $t}from"./awsClient.js";import{a as en,c as tn,f as nn,l as rn,n as an,o as on,s as sn,t as cn,u as ln}from"./dist.js";import{A as un,At as dn,B as fn,C as pn,D as mn,Dt as hn,E as gn,Et as _n,F as vn,Ft as yn,H as bn,I as xn,It as Sn,J as Cn,K as wn,L as Tn,M as En,Mt as Dn,N as On,Nt as kn,O as An,Ot as jn,P as Mn,Pt as Nn,Q as Pn,R as Fn,S as In,T as Ln,U as Rn,V as zn,W as Bn,X as Vn,Y as Hn,Z as Un,_ as Wn,_t as Gn,at as Kn,bt as qn,ct as Jn,dt as Yn,ft as Xn,g as Zn,gt as Qn,ht as $n,j as er,k as tr,kt as nr,lt as rr,mt as ir,n as ar,pt as or,q as sr,r as cr,rt as L,st as lr,ut as ur,vt as dr,w as fr,wt as pr,xt as mr,yt as hr}from"./auth.js";import{C as gr,D as _r,E as vr,S as yr,T as br,_ as xr,b as Sr,d as Cr,f as wr,g as Tr,h as Er,l as Dr,m as Or,n as kr,o as R,p as Ar,r as jr,s as z,t as Mr,u as Nr,v as Pr,w as Fr,x as Ir,y as B}from"./button.js";import{C as Lr,S as Rr,a as zr,b as Br,f as Vr,g as Hr,h as Ur,i as Wr,m as Gr,o as Kr,p as qr,r as Jr,s as Yr,t as Xr,v as Zr,x as Qr,y as V}from"./createBaseUIEventDetails.js";import{A as $r,D as ei,O as ti,a as ni,f as ri,k as ii}from"./index.browser.js";import{n as ai,r as oi,t as si}from"./commandBuilder.js";import{n as ci,r as li,t as ui}from"./commandBuilder2.js";import{n as di,r as fi,t as pi}from"./commandBuilder3.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var mi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hi=new class extends mi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},gi={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_i=new class{#e=gi;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function vi(e){setTimeout(e,0)}var yi=typeof window>`u`||`Deno`in globalThis;function bi(){}function xi(e,t){return typeof e==`function`?e(t):e}function Si(e){return typeof e==`number`&&e>=0&&e!==1/0}function Ci(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wi(e,t){return typeof e==`function`?e(t):e}function Ti(e,t){return typeof e==`function`?e(t):e}function Ei(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Oi(o,t.options))return!1}else if(!Ai(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Di(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ki(t.options.mutationKey)!==ki(a))return!1}else if(!Ai(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Oi(e,t){return(t?.queryKeyHashFn||ki)(e)}function ki(e){return JSON.stringify(e,(e,t)=>Fi(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Ai(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Ai(e[n],t[n])):!1}var ji=Object.prototype.hasOwnProperty;function Mi(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Pi(e)&&Pi(t);if(!r&&!(Fi(e)&&Fi(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{_i.setTimeout(t,e)})}function Ri(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Mi(e,t)}function zi(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Bi(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vi=Symbol();function Hi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Vi?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ui(e,t){return typeof e==`function`?e(...t):!!e}function Wi(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Gi=(()=>{let e=()=>yi;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ki(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var qi=vi;function Ji(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=qi,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Yi=Ji(),Xi=new class extends mi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Zi(e){return Math.min(1e3*2**e,3e4)}function Qi(e){return(e??`online`)===`online`?Xi.isOnline():!0}var $i=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ea(e){let t=!1,n=0,r,i=Ki(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new $i(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>hi.isFocused()&&(e.networkMode===`always`||Xi.isOnline())&&e.canRun(),u=()=>Qi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Gi.isServer()?0:3),o=e.retryDelay??Zi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var ta=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Si(this.gcTime)&&(this.#e=_i.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(_i.clearTimeout(this.#e),this.#e=void 0)}};function na(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Wi(e,()=>t.signal,()=>n=!0)},u=Hi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Bi:zi;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ia:ra,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ra(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function ra(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ia(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var aa=class extends ta{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ca(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ca(this.options);e.data!==void 0&&(this.setState(sa(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Ri(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(bi).catch(bi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Ti(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vi||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>wi(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Ci(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Hi(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?na(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ea({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof $i&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof $i){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...oa(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...sa(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Yi.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function oa(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function sa(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ca(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var la=class extends ta{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||ua(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ea({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Yi.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function ua(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var da=class extends mi{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new la({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=fa(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=fa(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=fa(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=fa(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Yi.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Di(t,e))}findAll(e={}){return this.getAll().filter(t=>Di(e,t))}notify(e){Yi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Yi.batch(()=>Promise.all(e.map(e=>e.continue().catch(bi))))}};function fa(e){return e.options.scope?.id}var pa=class extends mi{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Oi(r,t),a=this.get(i);return a||(a=new aa({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Yi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ei(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ei(e,t)):t}notify(e){Yi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Yi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Yi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ma=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new pa,this.#t=e.mutationCache||new da,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=hi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Xi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(wi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=xi(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Yi.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Yi.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Yi.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Yi.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(bi).catch(bi)}invalidateQueries(e,t={}){return Yi.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Yi.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(bi)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(bi)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(wi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bi).catch(bi)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bi).catch(bi)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Xi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Ai(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Ai(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Oi(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Vi&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},H=n(r(),1),U=t(),ha=H.createContext(void 0),ga=e=>{let t=H.useContext(ha);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},_a=({client:e,children:t})=>(H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,U.jsx)(ha.Provider,{value:e,children:t}));function va(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function ya(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ba(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=ya(r):Array.isArray(t)?t.push(ya(r)):n[e]=[t,ya(r)]}return n}var xa=Ca(JSON.parse),Sa=wa(JSON.stringify,JSON.parse);function Ca(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=ba(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function wa(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=va(e,r);return t?`?${t}`:``}}var Ta=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ea=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Da=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Oa=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ka=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Aa=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Oa(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},ja=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Ma=(e,t,n)=>{let r=Oa(e,n);e.updateMatch(t,e=>({...e,context:r}))},Na=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Aa(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Aa(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},Pa=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Da(e,t)&&(n.options.loader||n.options.beforeLoad||Ga(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Ta(e)},i);r._nonReactive.pendingTimeout=t}},Fa=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Pa(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Aa(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Ia=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=_(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Na(e,n,o),s&&Na(e,n,s),Pa(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=_();let f={...Oa(e,n,!1),...i.__routeContext},{search:p,params:h,cause:g}=i,v=Da(e,t),y={search:p,abortController:c,params:h,preload:v,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),Na(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),m(x))return u(),x.catch(t=>{Na(e,n,t)}).then(b)}catch(t){u(),Na(e,n,t)}b(x)},La=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Ia(e,n,t,i),s=()=>{if(ja(e,n))return;let t=Fa(e,n,i);return m(t)?t.then(o):o()};return a()},Ra=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},za=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Oa(e,r),d=Da(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ba=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Wa(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(za(e,t,n,r,i)),l=!!s&&m(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Aa(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Oa(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Oa(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),Aa(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Aa(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await Wa(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Oa(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Aa(e,r,t)}},Va=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(za(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Ba(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Ba(e,t,i,n,d):Ma(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(ja(e,i)){if(!e.router.getMatch(i))return e.matches[n];Ma(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Da(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Aa(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=_(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Ha(e){let t=e,n=[];Ea(t.router)&&Ta(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Wa(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Wa(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Ra(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Ta(t);if(m(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Ua(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Wa(e,t=Ka){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Ka?(()=>{if(e._componentsPromise===void 0){let t=Ua(e,Ka);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Ua(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Ga(e){for(let t of Ka)if(e.options[t]?.preload)return!0;return!1}var Ka=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function qa(e){return{input:({url:t})=>{for(let n of e)t=Ya(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Xa(e[n],t);return t}}}function Ja(e){let t=j(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=k([`/`,t,e.pathname]),e)}}function Ya(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Xa(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Za(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Qa(o,_.get())),x=r(()=>Qa(s,v.get())),S=r(()=>Qa(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=se(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){$a(e,o,_,n,i)}function j(e){$a(e,s,v,n,i)}function M(e){$a(e,c,y,n,i)}return k}function Qa(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function $a(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}l(n.get(),a)||n.set(a)})}var eo=`__TSR_index`,to=`popstate`,no=`beforeunload`;function ro(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=so(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[eo];i=io(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[eo];i=io(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[eo]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function io(e,t){t||={};let n=W();return{...t,key:n,__TSR_key:n,[eo]:e}}function ao(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>so(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=W();t.history.replaceState({[eo]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=so(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[eo]-l.state[eo],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=ro({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(no,S,{capture:!0}),t.removeEventListener(to,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(no,S,{capture:!0}),t.addEventListener(to,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function oo(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function so(e,t){let n=oo(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=W();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[eo]:0,key:a,__TSR_key:a}}}function W(){return(Math.random()+1).toString(36).substring(7)}function co(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var lo=new WeakMap,uo=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=ao()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=se(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Za(mo(this.latestLocation),e),Po(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=j(o);t&&t!==`/`&&e.push(Ja({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:qa(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:N(e).path,external:!1,searchStr:o,search:le(t?.search,i),hash:N(r.slice(1)).path,state:s(t?.state,a)}}let o=new URL(i,this.origin),c=Ya(this.rewrite,o),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:N(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:le(t?.search,l),hash:N(c.hash.slice(1)).path,state:s(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?D(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>go({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,c=Object.assign(Object.create(null),r.params),l=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=a?this.resolvePathWithBase(l,a):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,g(t.params,c)),f=this.routesByPath[w(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&v(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:N(O({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,ho(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=_o({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=le(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?g(t.hash,n.hash):void 0,b=y?`#${y}`:``,x=t.state===!0?n.state:t.state?g(t.state,n.state):{};x=s(n.state,x);let S=`${m}${_}${b}`,C,T,E=!1;if(this.rewrite){let e=new URL(S,this.origin),t=Xa(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else C=ee(S),T=C;return{publicHref:T,href:C,pathname:m,search:h,searchStr:_,state:x,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,g(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=o(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=w(this.latestLocation.href)===w(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=_(()=>{s?.resolve(),s=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=so(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Ya(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(d(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?lo.set(this.latestLocation,t):lo.delete(this.latestLocation);let n=this.latestLocation,r=co(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Ha({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(co(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&d(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Wa,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Ha({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=I(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!o(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?o(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Sa,parseSearch:e.parseSearch??xa,protocolAllowlist:e.protocolAllowlist??u}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:w(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?yo(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let t=y(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=y(r),o={...e.search};for(let e of r)try{Object.assign(o,ho(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{bo(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},fo=class extends Error{},po=class extends Error{};function mo(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function ho(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new fo(`Async validation not supported`);if(n.issues)throw new fo(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function go({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=w(e),a,o=E(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function _o({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return vo(n)(e,t,r??!1)}function vo(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=ho(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=g(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function yo(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function bo(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function xo(){try{return sessionStorage}catch{return}}var So=`tsr-scroll-restoration-v1_3`,Co=xo();function wo(){try{return JSON.parse(Co?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function To(){try{Co?.setItem(So,JSON.stringify(Eo))}catch{}}var Eo=wo(),Do=`data-scroll-restoration-id`,Oo=e=>e.state.__TSR_key||e.href;function ko(e){let t=e.getAttribute(Do);if(t)return`[${Do}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Ao=!1,jo=`window`;function Mo(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function No(e){let t=[];for(let n of e){if(n===jo)continue;let e=Mo(n);e&&t.push(e)}return t}function Po(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Oo,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(Ao||!r.restoring))if(e.target===document)o(jo,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Eo[e]||={};for(let[e,n]of a)e===jo?t[jo]=n:e.isConnected&&(t[ko(e)]=n)};n&&!r.restoration&&(r.restoration=!0,Ao=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),To()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Eo[u];if(e){let t=Eo[l];for(let n in e){if(n===jo){if(s)continue}else{let e=Mo(n);if(!e||s&&o&&(c??=No(o),c.includes(e)))continue}t||=Eo[l]={},t[n]??=e[n]}}}Ao=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=lo.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Eo[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===jo){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Mo(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=No(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Ao=!1}}))}function Fo(e,t){if(e)return typeof e==`string`?e:e[t]}function Io(e){return e?.scriptFormat??`module`}function Lo(e,t,n){let r=Ro(t),i=Fo(n,`script`)??r.crossOrigin;return{...Io(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Ro(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function zo(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Bo(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var Vo=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||x();let r=n?fe:t?.path;r&&r!==`/`&&(r=A(r));let i=t?.id||r,a=n?fe:k([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=k([`/`,a]));let o=a===`__root__`?`/`:k([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Ho=class extends Vo{constructor(e){super(e)}};function Uo(e){let t=e.errorComponent??Go;return(0,U.jsx)(Wo,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?H.createElement(t,{error:n,reset:r}):e.children})}var Wo=class extends H.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Go({error:e}){let[t,n]=H.useState(!1);return(0,U.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,U.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,U.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,U.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,U.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,U.jsx)(`div`,{children:(0,U.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,U.jsx)(`code`,{children:e.message}):null})}):null]})}var Ko=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Ko||{});function qo({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Jo(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Yo=[],Xo=0,{link:Zo,unlink:Qo,propagate:$o,checkDirty:es,shallowPropagate:ts}=qo({update(e){return e._update()},notify(e){Yo[rs++]=e,e.flags&=~Ko.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ko.Mutable|Ko.Dirty,ss(e))}}),ns=0,rs=0,is,as=0;function os(e){try{++as,e()}finally{--as||cs()}}function ss(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Qo(n,e)}function cs(){if(!(as>0)){for(;ns{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=is,o=t?.compare??Object.is;if(n)is=i,++Xo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Ko.Mutable|Ko.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{is=a,n&&(i.flags&=~Ko.RecursedCheck),ss(i)}}};return n?(i.flags=Ko.Mutable|Ko.Dirty,i.get=function(){let e=i.flags;if(e&Ko.Dirty||e&Ko.Pending&&es(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&ts(e)}}else e&Ko.Pending&&(i.flags=e&~Ko.Pending);return is!==void 0&&Zo(i,is,Xo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&($o(e),ts(e),cs())}},i}function us(e){let t=()=>{let t=is;is=n,++Xo,n.depsTail=void 0,n.flags=Ko.Watching|Ko.RecursedCheck;try{return e()}finally{is=t,n.flags&=~Ko.RecursedCheck,ss(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ko.Watching|Ko.RecursedCheck,notify(){let e=this.flags;e&Ko.Dirty||e&Ko.Pending&&es(this.deps,this)?t():this.flags=Ko.Watching},stop(){this.flags=Ko.None,this.depsTail=void 0,ss(this)}};return t(),n}var ds={get(){},subscribe(){return{unsubscribe(){}}}};function fs(e,t){let n=H.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=s(n.current,i):i}}function ps(e){let t=M(),n=H.useContext(e.from?pe:de),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=fs(e,t),a=F(r??ds,e=>e?i(e):ds);if(a!==ds)return a;(e.shouldThrow??!0)&&x()}function ms(e){return ps({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function hs(e){let{select:t,...n}=e;return ps({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function gs(e){return ps({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function _s(e){return ps({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function vs(e){let t=M();return H.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function ys(e){return ps({...e,select:t=>e.select?e.select(t.context):t.context})}var bs=class extends Vo{constructor(e){super(e),this.useMatch=e=>ps({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ys({...e,from:this.id}),this.useSearch=e=>_s({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>gs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>hs({...e,from:this.id}),this.useLoaderData=e=>ms({...e,from:this.id}),this.useNavigate=()=>vs({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(Yt,{ref:t,from:this.fullPath,...e}))}};function xs(e){return new bs(e)}function Ss(){return e=>ws(e)}var Cs=class extends Ho{constructor(e){super(e),this.useMatch=e=>ps({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ys({...e,from:this.id}),this.useSearch=e=>_s({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>gs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>hs({...e,from:this.id}),this.useLoaderData=e=>ms({...e,from:this.id}),this.useNavigate=()=>vs({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(Yt,{ref:t,from:this.fullPath,...e}))}};function ws(e){return new Cs(e)}function G(e){return new Ts(e,{silent:!0}).createRoute}var Ts=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=xs(e);return t.isRoot=!1,t},this.silent=t?.silent}};function K(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(S)S(o());else throw o();return H.createElement(r,e)};return s.preload=o,s}function Es(e){let t=M(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,U.jsx)(Uo,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function Ds(){return(0,U.jsx)(`p`,{children:`Not Found`})}function Os(e){return(0,U.jsx)(U.Fragment,{children:e.children})}function ks(e,t,n){return t.options.notFoundComponent?(0,U.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,U.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,U.jsx)(Ds,{})}var As=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,js=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ms=H.memo(function({matchId:e}){let t=M(),n=t.stores.matchStores.get(e);n||x();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e,As);return(0,U.jsx)(Ns,{router:t,matchId:e,resetKey:r,matchState:H.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Ns({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,U.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?H.Suspense:Os,f=s?Uo:Os,p=l?Es:Os;return(0,U.jsxs)(i.isRoot?i.options.shellComponent??Os:Os,{children:[(0,U.jsx)(de.Provider,{value:t,children:(0,U.jsx)(d,{fallback:o,children:(0,U.jsx)(f,{getResetKey:()=>n,errorComponent:s||Go,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,U.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return H.createElement(l,e)},children:u||r._displayPending?(0,U.jsx)(re,{fallback:o,children:(0,U.jsx)(Fs,{matchId:t})}):(0,U.jsx)(Fs,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps,{}),(e.options.scrollRestoration,null)]}):null]})}function Ps(){let e=M(),t=H.useRef();return C(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...co(e.stores.location.get(),r??n)}),t.current=n},[F(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Fs=H.memo(function({matchId:e}){let t=M(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||x();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=H.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=H.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,U.jsx)(e,{},s):(0,U.jsx)(Is,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=_();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||x(),ks(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||x(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Is=H.memo(function(){let e=M(),t=H.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1],js),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,U.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||x(),ks(e,a,void 0);if(!i)return null;let s=(0,U.jsx)(Ms,{matchId:i});return n===`__root__`?(0,U.jsx)(H.Suspense,{fallback:o,children:s}):s});function Ls(){let e=M(),t=H.useRef({router:e,mounted:!1}),[n,r]=H.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=f(i),s=i||n||a,c=f(s),l=i||a,u=f(l);return e.startTransition=e=>{r(!0),H.startTransition(()=>{e(),r(!1)})},H.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return w(e.latestLocation.publicHref)!==w(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...co(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...co(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>{if(c&&!s){let t=co(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),os(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Rs(){let e=M(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,U.jsx)(t,{}):null,r=(0,U.jsxs)(typeof document<`u`&&e.ssr?Os:H.Suspense,{fallback:n,children:[(0,U.jsx)(Ls,{}),(0,U.jsx)(zs,{})]});return e.options.InnerWrap?(0,U.jsx)(e.options.InnerWrap,{children:r}):r}function zs(){let e=M(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,U.jsx)(Ms,{matchId:t}):null;return(0,U.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,U.jsx)(Uo,{getResetKey:()=>n,errorComponent:Go,onCatch:void 0,children:r})})}var Bs=e=>({createMutableStore:ls,createReadonlyStore:ls,batch:os}),Vs=e=>new Hs(e),Hs=class extends uo{constructor(e){super(e,Bs)}};function Us({router:e,children:t,...n}){v(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,U.jsx)(T.Provider,{value:e,children:t});return e.options.Wrap?(0,U.jsx)(e.options.Wrap,{children:r}):r}function Ws({router:e,...t}){return(0,U.jsx)(Us,{router:e,...t,children:(0,U.jsx)(Rs,{})})}function Gs(e){let t=M();return F(t.stores.location,fs(e,t))}function Ks(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function qs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,U.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,U.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,U.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,U.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,U.jsx)(Js,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Js({attrs:e,children:t,preventScriptHoist:n}){M();let r=ae(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(H.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Ks(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Ks(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,U.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Ys=e=>{let t=M(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),o),i=H.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:h(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),o),s=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Bo(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Fo(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},o),c=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...Lo(a,t,e),nonce:n}})})}),i},o),l=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),o),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),o),d=[];return zo(d,i),d.push(...c),zo(d,a),d.push(...s),zo(d,l),zo(d,u),d};function Xs(e){let t=Ys(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,U.jsx)(U.Fragment,{children:t.map(e=>(0,H.createElement)(qs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Zs=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Qs=e(((e,t)=>{t.exports=Zs()})),$s=e((e=>{var t=Qs(),n=r(),i=We();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),I=ie(null),ce=ie(null);function le(e,t){switch(F(I,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),F(oe,e)}function ue(){ae(oe),ae(se),ae(I)}function de(e){e.memoizedState!==null&&F(ce,e);var t=oe.current,n=Wd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function fe(e){se.current===e&&(ae(oe),ae(se)),ce.current===e&&(ae(ce),ep._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1i.map(i=>d[i]); +import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime.js";import{t as a}from"./queryOptions.js";import{A as o,B as s,C as c,D as l,E as u,F as d,G as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,V as S,W as C,_ as w,a as T,b as E,c as D,d as O,f as k,g as A,h as j,i as M,j as ee,k as N,l as P,m as te,n as ne,o as re,r as ie,s as ae,t as F,v as oe,w as se,x as I,y as ce,z as le}from"./useStore.js";import{i as ue,n as de,r as fe,t as pe}from"./matchContext.js";import{n as me,t as he}from"./redirect.js";import{$r as ge,Bn as _e,Cn as ve,Ct as ye,Dn as be,E as xe,En as Se,Gn as Ce,Gt as we,Hn as Te,Jr as Ee,Jt as De,Kn as Oe,Kt as ke,Ln as Ae,Mi as je,N as Me,Ni as Ne,Pi as Pe,Qr as Fe,Rn as Ie,Sn as Le,St as Re,T as ze,Tn as Be,Tt as Ve,Un as He,Ut as Ue,Vn as We,Wn as Ge,Wt as Ke,Xr as qe,Xt as Je,Yr as Ye,Yt as Xe,Zn as Ze,Zr as Qe,Zt as $e,_ as et,_n as tt,_t as nt,a as rt,ai as it,ar as at,at as ot,bn as st,bt as ct,c as lt,ci as ut,ct as dt,dr as ft,dt as pt,ei as mt,fr as ht,ft as gt,g as _t,gn as vt,gt as yt,ht as bt,i as xt,ii as St,ir as Ct,it as wt,ji as Tt,ki as Et,l as Dt,li as Ot,lt as kt,mt as At,n as jt,ni as Mt,o as Nt,oi as Pt,ot as Ft,pr as It,pt as Lt,qr as Rt,qt as zt,r as L,ri as Bt,rr as Vt,rt as Ht,s as Ut,si as Wt,sr as Gt,st as Kt,t as qt,ti as Jt,ut as Yt,vn as Xt,vt as Zt,w as Qt,wn as $t,wt as en,xt as tn,yn as nn,yt as rn,zn as an}from"./awsClient.js";import{a as on,c as sn,f as cn,l as ln,n as un,o as dn,s as fn,t as pn,u as mn}from"./dist.js";import{A as hn,At as gn,B as _n,C as vn,D as yn,Dt as bn,E as xn,Et as Sn,F as Cn,Ft as wn,H as Tn,I as En,It as Dn,J as On,K as kn,L as An,M as jn,Mt as Mn,N as Nn,Nt as Pn,O as Fn,Ot as In,P as Ln,Pt as Rn,Q as zn,R as Bn,S as Vn,T as Hn,U as Un,V as Wn,W as Gn,X as Kn,Y as qn,Z as Jn,_ as Yn,_t as Xn,at as Zn,bt as Qn,ct as $n,dt as er,f as tr,ft as nr,g as rr,gt as ir,ht as ar,j as or,k as sr,kt as cr,lt as lr,mt as ur,n as dr,pt as fr,q as pr,r as mr,rt as R,st as hr,ut as gr,vt as _r,w as vr,wt as yr,xt as br,yt as xr}from"./auth.js";import{C as Sr,D as Cr,E as wr,S as Tr,T as Er,_ as Dr,b as Or,d as kr,f as Ar,g as jr,h as Mr,l as Nr,m as Pr,n as Fr,o as z,p as Ir,r as Lr,s as Rr,t as zr,u as Br,v as Vr,w as Hr,x as Ur,y as B}from"./button.js";import{C as Wr,S as Gr,a as Kr,b as qr,f as Jr,g as Yr,h as Xr,i as Zr,m as Qr,o as $r,p as ei,r as ti,s as ni,t as ri,v as ii,x as V,y as H}from"./createBaseUIEventDetails.js";import{A as ai,D as oi,O as si,a as ci,f as li,k as ui}from"./index.browser.js";import{n as di,r as fi,t as pi}from"./commandBuilder.js";import{n as mi,r as hi,t as gi}from"./commandBuilder2.js";import{n as _i,r as vi,t as yi}from"./commandBuilder3.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xi=new class extends bi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Si={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ci=new class{#e=Si;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function wi(e){setTimeout(e,0)}var Ti=typeof window>`u`||`Deno`in globalThis;function Ei(){}function Di(e,t){return typeof e==`function`?e(t):e}function Oi(e){return typeof e==`number`&&e>=0&&e!==1/0}function ki(e,t){return Math.max(e+(t||0)-Date.now(),0)}function U(e,t){return typeof e==`function`?e(t):e}function Ai(e,t){return typeof e==`function`?e(t):e}function ji(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ni(o,t.options))return!1}else if(!Fi(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Mi(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Pi(t.options.mutationKey)!==Pi(a))return!1}else if(!Fi(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ni(e,t){return(t?.queryKeyHashFn||Pi)(e)}function Pi(e){return JSON.stringify(e,(e,t)=>Bi(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Fi(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Fi(e[n],t[n])):!1}var Ii=Object.prototype.hasOwnProperty;function Li(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=zi(e)&&zi(t);if(!r&&!(Bi(e)&&Bi(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{Ci.setTimeout(t,e)})}function Ui(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Li(e,t)}function Wi(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Gi(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ki=Symbol();function qi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ki?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ji(e,t){return typeof e==`function`?e(...t):!!e}function Yi(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Xi=(()=>{let e=()=>Ti;return{isServer(){return e()},setIsServer(t){e=t}}})();function Zi(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Qi=wi;function $i(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Qi,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ea=$i(),ta=new class extends bi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function na(e){return Math.min(1e3*2**e,3e4)}function ra(e){return(e??`online`)===`online`?ta.isOnline():!0}var ia=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function aa(e){let t=!1,n=0,r,i=Zi(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new ia(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>xi.isFocused()&&(e.networkMode===`always`||ta.isOnline())&&e.canRun(),u=()=>ra(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Xi.isServer()?0:3),o=e.retryDelay??na,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var oa=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oi(this.gcTime)&&(this.#e=Ci.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Ci.clearTimeout(this.#e),this.#e=void 0)}};function sa(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Yi(e,()=>t.signal,()=>n=!0)},u=qi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Gi:Wi;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?la:ca,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ca(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function ca(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function la(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ua=class extends oa{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=pa(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=pa(this.options);e.data!==void 0&&(this.setState(fa(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Ui(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Ei).catch(Ei):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Ai(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ki||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>U(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ki(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=qi(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?sa(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=aa({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ia&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof ia){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...da(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...fa(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),ea.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function da(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ra(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function fa(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function pa(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ma=class extends oa{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||ha(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=aa({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ea.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function ha(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ga=class extends bi{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new ma({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=_a(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=_a(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=_a(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=_a(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ea.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Mi(t,e))}findAll(e={}){return this.getAll().filter(t=>Mi(e,t))}notify(e){ea.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ea.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ei))))}};function _a(e){return e.options.scope?.id}var va=class extends bi{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Ni(r,t),a=this.get(i);return a||(a=new ua({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ea.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ji(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ji(e,t)):t}notify(e){ea.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ea.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ea.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ya=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new va,this.#t=e.mutationCache||new ga,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=xi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ta.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(U(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Di(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ea.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;ea.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ea.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=ea.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ei).catch(Ei)}invalidateQueries(e,t={}){return ea.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=ea.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ei)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Ei)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(U(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ei).catch(Ei)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ei).catch(Ei)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ta.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Pi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Fi(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Pi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Fi(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Ni(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Ki&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},W=n(r(),1),G=t(),ba=W.createContext(void 0),xa=e=>{let t=W.useContext(ba);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Sa=({client:e,children:t})=>(W.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,G.jsx)(ba.Provider,{value:e,children:t}));function Ca(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function wa(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Ta(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=wa(r):Array.isArray(t)?t.push(wa(r)):n[e]=[t,wa(r)]}return n}var Ea=Oa(JSON.parse),Da=ka(JSON.stringify,JSON.parse);function Oa(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ta(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function ka(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Ca(e,r);return t?`?${t}`:``}}var Aa=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},ja=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ma=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Na=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Pa=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Fa=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Na(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Ia=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},La=(e,t,n)=>{let r=Na(e,n);e.updateMatch(t,e=>({...e,context:r}))},Ra=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Fa(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Fa(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},za=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ma(e,t)&&(n.options.loader||n.options.beforeLoad||Xa(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Aa(e)},i);r._nonReactive.pendingTimeout=t}},Ba=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;za(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Fa(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Va=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=_(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Ra(e,n,o),s&&Ra(e,n,s),za(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=_();let f={...Na(e,n,!1),...i.__routeContext},{search:p,params:h,cause:g}=i,v=Ma(e,t),y={search:p,abortController:c,params:h,preload:v,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),Ra(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),m(x))return u(),x.catch(t=>{Ra(e,n,t)}).then(b)}catch(t){u(),Ra(e,n,t)}b(x)},Ha=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Va(e,n,t,i),s=()=>{if(Ia(e,n))return;let t=Ba(e,n,i);return m(t)?t.then(o):o()};return a()},Ua=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Wa=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Na(e,r),d=Ma(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ga=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Ya(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Wa(e,t,n,r,i)),l=!!s&&m(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Fa(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Na(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Na(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),Fa(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Fa(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await Ya(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Na(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Fa(e,r,t)}},Ka=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Wa(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Ga(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Ga(e,t,i,n,d):La(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Ia(e,i)){if(!e.router.getMatch(i))return e.matches[n];La(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Ma(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Fa(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=_(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function qa(e){let t=e,n=[];ja(t.router)&&Aa(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Ya(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ya(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Ua(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Aa(t);if(m(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Ja(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Ya(e,t=Za){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Za?(()=>{if(e._componentsPromise===void 0){let t=Ja(e,Za);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Ja(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Xa(e){for(let t of Za)if(e.options[t]?.preload)return!0;return!1}var Za=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Qa(e){return{input:({url:t})=>{for(let n of e)t=eo(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=to(e[n],t);return t}}}function $a(e){let t=j(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=k([`/`,t,e.pathname]),e)}}function eo(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function to(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function no(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>ro(o,_.get())),x=r(()=>ro(s,v.get())),S=r(()=>ro(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=se(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){io(e,o,_,n,i)}function j(e){io(e,s,v,n,i)}function M(e){io(e,c,y,n,i)}return k}function ro(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function io(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}l(n.get(),a)||n.set(a)})}var ao=`__TSR_index`,K=`popstate`,oo=`beforeunload`;function so(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=fo(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[ao];i=co(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[ao];i=co(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[ao]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function co(e,t){t||={};let n=po();return{...t,key:n,__TSR_key:n,[ao]:e}}function lo(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>fo(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=po();t.history.replaceState({[ao]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=fo(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[ao]-l.state[ao],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=so({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(oo,S,{capture:!0}),t.removeEventListener(K,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(oo,S,{capture:!0}),t.addEventListener(K,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function uo(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function fo(e,t){let n=uo(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=po();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[ao]:0,key:a,__TSR_key:a}}}function po(){return(Math.random()+1).toString(36).substring(7)}function mo(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var ho=new WeakMap,go=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=lo()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=se(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=no(yo(this.latestLocation),e),zo(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=j(o);t&&t!==`/`&&e.push($a({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Qa(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:N(e).path,external:!1,searchStr:o,search:le(t?.search,i),hash:N(r.slice(1)).path,state:s(t?.state,a)}}let o=new URL(i,this.origin),c=eo(this.rewrite,o),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:N(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:le(t?.search,l),hash:N(c.hash.slice(1)).path,state:s(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?D(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>xo({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,c=Object.assign(Object.create(null),r.params),l=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=a?this.resolvePathWithBase(l,a):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,g(t.params,c)),f=this.routesByPath[w(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&v(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:N(O({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,bo(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=So({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=le(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?g(t.hash,n.hash):void 0,b=y?`#${y}`:``,x=t.state===!0?n.state:t.state?g(t.state,n.state):{};x=s(n.state,x);let S=`${m}${_}${b}`,C,T,E=!1;if(this.rewrite){let e=new URL(S,this.origin),t=to(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else C=ee(S),T=C;return{publicHref:T,href:C,pathname:m,search:h,searchStr:_,state:x,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,g(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=o(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=w(this.latestLocation.href)===w(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=_(()=>{s?.resolve(),s=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=fo(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=eo(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(d(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?ho.set(this.latestLocation,t):ho.delete(this.latestLocation);let n=this.latestLocation,r=mo(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await qa({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(mo(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&d(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Ya,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await qa({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=I(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!o(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?o(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Da,parseSearch:e.parseSearch??Ea,protocolAllowlist:e.protocolAllowlist??u}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:w(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?wo(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let t=y(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=y(r),o={...e.search};for(let e of r)try{Object.assign(o,bo(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{To(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},_o=class extends Error{},vo=class extends Error{};function yo(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function bo(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new _o(`Async validation not supported`);if(n.issues)throw new _o(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function xo({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=w(e),a,o=E(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function So({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Co(n)(e,t,r??!1)}function Co(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=bo(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=g(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function wo(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function To(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Eo(){try{return sessionStorage}catch{return}}var Do=`tsr-scroll-restoration-v1_3`,Oo=Eo();function ko(){try{return JSON.parse(Oo?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ao(){try{Oo?.setItem(Do,JSON.stringify(jo))}catch{}}var jo=ko(),Mo=`data-scroll-restoration-id`,No=e=>e.state.__TSR_key||e.href;function Po(e){let t=e.getAttribute(Mo);if(t)return`[${Mo}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Fo=!1,Io=`window`;function Lo(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ro(e){let t=[];for(let n of e){if(n===Io)continue;let e=Lo(n);e&&t.push(e)}return t}function zo(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||No,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(Fo||!r.restoring))if(e.target===document)o(Io,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=jo[e]||={};for(let[e,n]of a)e===Io?t[Io]=n:e.isConnected&&(t[Po(e)]=n)};n&&!r.restoration&&(r.restoration=!0,Fo=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Ao()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=jo[u];if(e){let t=jo[l];for(let n in e){if(n===Io){if(s)continue}else{let e=Lo(n);if(!e||s&&o&&(c??=Ro(o),c.includes(e)))continue}t||=jo[l]={},t[n]??=e[n]}}}Fo=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=ho.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?jo[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Io){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Lo(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=Ro(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Fo=!1}}))}function Bo(e,t){if(e)return typeof e==`string`?e:e[t]}function Vo(e){return e?.scriptFormat??`module`}function Ho(e,t,n){let r=Uo(t),i=Bo(n,`script`)??r.crossOrigin;return{...Vo(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Uo(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Wo(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Go(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var Ko=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||x();let r=n?fe:t?.path;r&&r!==`/`&&(r=A(r));let i=t?.id||r,a=n?fe:k([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=k([`/`,a]));let o=a===`__root__`?`/`:k([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},qo=class extends Ko{constructor(e){super(e)}};function Jo(e){let t=e.errorComponent??Xo;return(0,G.jsx)(Yo,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?W.createElement(t,{error:n,reset:r}):e.children})}var Yo=class extends W.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Xo({error:e}){let[t,n]=W.useState(!1);return(0,G.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,G.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,G.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,G.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,G.jsx)(`div`,{children:(0,G.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,G.jsx)(`code`,{children:e.message}):null})}):null]})}var Zo=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Zo||{});function Qo({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function $o(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var es=[],ts=0,{link:ns,unlink:rs,propagate:is,checkDirty:as,shallowPropagate:os}=Qo({update(e){return e._update()},notify(e){es[cs++]=e,e.flags&=~Zo.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Zo.Mutable|Zo.Dirty,fs(e))}}),ss=0,cs=0,ls,us=0;function ds(e){try{++us,e()}finally{--us||ps()}}function fs(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=rs(n,e)}function ps(){if(!(us>0)){for(;ss{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=ls,o=t?.compare??Object.is;if(n)ls=i,++ts,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Zo.Mutable|Zo.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{ls=a,n&&(i.flags&=~Zo.RecursedCheck),fs(i)}}};return n?(i.flags=Zo.Mutable|Zo.Dirty,i.get=function(){let e=i.flags;if(e&Zo.Dirty||e&Zo.Pending&&as(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&os(e)}}else e&Zo.Pending&&(i.flags=e&~Zo.Pending);return ls!==void 0&&ns(i,ls,ts),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(is(e),os(e),ps())}},i}function hs(e){let t=()=>{let t=ls;ls=n,++ts,n.depsTail=void 0,n.flags=Zo.Watching|Zo.RecursedCheck;try{return e()}finally{ls=t,n.flags&=~Zo.RecursedCheck,fs(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Zo.Watching|Zo.RecursedCheck,notify(){let e=this.flags;e&Zo.Dirty||e&Zo.Pending&&as(this.deps,this)?t():this.flags=Zo.Watching},stop(){this.flags=Zo.None,this.depsTail=void 0,fs(this)}};return t(),n}var gs={get(){},subscribe(){return{unsubscribe(){}}}};function _s(e,t){let n=W.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=s(n.current,i):i}}function vs(e){let t=M(),n=W.useContext(e.from?pe:de),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=_s(e,t),a=F(r??gs,e=>e?i(e):gs);if(a!==gs)return a;(e.shouldThrow??!0)&&x()}function ys(e){return vs({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function bs(e){let{select:t,...n}=e;return vs({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function xs(e){return vs({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Ss(e){return vs({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Cs(e){let t=M();return W.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function ws(e){return vs({...e,select:t=>e.select?e.select(t.context):t.context})}var Ts=class extends Ko{constructor(e){super(e),this.useMatch=e=>vs({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ws({...e,from:this.id}),this.useSearch=e=>Ss({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>xs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>bs({...e,from:this.id}),this.useLoaderData=e=>ys({...e,from:this.id}),this.useNavigate=()=>Cs({from:this.fullPath}),this.Link=W.forwardRef((e,t)=>(0,G.jsx)(Ne,{ref:t,from:this.fullPath,...e}))}};function Es(e){return new Ts(e)}function Ds(){return e=>ks(e)}var Os=class extends qo{constructor(e){super(e),this.useMatch=e=>vs({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ws({...e,from:this.id}),this.useSearch=e=>Ss({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>xs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>bs({...e,from:this.id}),this.useLoaderData=e=>ys({...e,from:this.id}),this.useNavigate=()=>Cs({from:this.fullPath}),this.Link=W.forwardRef((e,t)=>(0,G.jsx)(Ne,{ref:t,from:this.fullPath,...e}))}};function ks(e){return new Os(e)}function q(e){return new As(e,{silent:!0}).createRoute}var As=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Es(e);return t.isRoot=!1,t},this.silent=t?.silent}};function J(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(S)S(o());else throw o();return W.createElement(r,e)};return s.preload=o,s}function js(e){let t=M(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,G.jsx)(Jo,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function Ms(){return(0,G.jsx)(`p`,{children:`Not Found`})}function Ns(e){return(0,G.jsx)(G.Fragment,{children:e.children})}function Ps(e,t,n){return t.options.notFoundComponent?(0,G.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,G.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,G.jsx)(Ms,{})}var Fs=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Is=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ls=W.memo(function({matchId:e}){let t=M(),n=t.stores.matchStores.get(e);n||x();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e,Fs);return(0,G.jsx)(Rs,{router:t,matchId:e,resetKey:r,matchState:W.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Rs({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,G.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?W.Suspense:Ns,f=s?Jo:Ns,p=l?js:Ns;return(0,G.jsxs)(i.isRoot?i.options.shellComponent??Ns:Ns,{children:[(0,G.jsx)(de.Provider,{value:t,children:(0,G.jsx)(d,{fallback:o,children:(0,G.jsx)(f,{getResetKey:()=>n,errorComponent:s||Xo,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,G.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return W.createElement(l,e)},children:u||r._displayPending?(0,G.jsx)(re,{fallback:o,children:(0,G.jsx)(Bs,{matchId:t})}):(0,G.jsx)(Bs,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(zs,{}),(e.options.scrollRestoration,null)]}):null]})}function zs(){let e=M(),t=W.useRef();return C(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...mo(e.stores.location.get(),r??n)}),t.current=n},[F(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Bs=W.memo(function({matchId:e}){let t=M(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||x();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=W.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=W.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,G.jsx)(e,{},s):(0,G.jsx)(Vs,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=_();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||x(),Ps(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||x(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Vs=W.memo(function(){let e=M(),t=W.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1],Is),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,G.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||x(),Ps(e,a,void 0);if(!i)return null;let s=(0,G.jsx)(Ls,{matchId:i});return n===`__root__`?(0,G.jsx)(W.Suspense,{fallback:o,children:s}):s});function Hs(){let e=M(),t=W.useRef({router:e,mounted:!1}),[n,r]=W.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=f(i),s=i||n||a,c=f(s),l=i||a,u=f(l);return e.startTransition=e=>{r(!0),W.startTransition(()=>{e(),r(!1)})},W.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return w(e.latestLocation.publicHref)!==w(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...mo(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...mo(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>{if(c&&!s){let t=mo(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),ds(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Us(){let e=M(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,G.jsx)(t,{}):null,r=(0,G.jsxs)(typeof document<`u`&&e.ssr?Ns:W.Suspense,{fallback:n,children:[(0,G.jsx)(Hs,{}),(0,G.jsx)(Ws,{})]});return e.options.InnerWrap?(0,G.jsx)(e.options.InnerWrap,{children:r}):r}function Ws(){let e=M(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,G.jsx)(Ls,{matchId:t}):null;return(0,G.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,G.jsx)(Jo,{getResetKey:()=>n,errorComponent:Xo,onCatch:void 0,children:r})})}var Gs=e=>({createMutableStore:ms,createReadonlyStore:ms,batch:ds}),Ks=e=>new qs(e),qs=class extends go{constructor(e){super(e,Gs)}};function Js({router:e,children:t,...n}){v(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,G.jsx)(T.Provider,{value:e,children:t});return e.options.Wrap?(0,G.jsx)(e.options.Wrap,{children:r}):r}function Ys({router:e,...t}){return(0,G.jsx)(Js,{router:e,...t,children:(0,G.jsx)(Us,{})})}function Xs(e){let t=M();return F(t.stores.location,_s(e,t))}function Zs(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Qs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,G.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,G.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,G.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,G.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,G.jsx)($s,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function $s({attrs:e,children:t,preventScriptHoist:n}){M();let r=ae(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(W.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Zs(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Zs(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,G.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var ec=e=>{let t=M(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),o),i=W.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:h(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),o),s=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Go(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Bo(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},o),c=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...Ho(a,t,e),nonce:n}})})}),i},o),l=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),o),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),o),d=[];return Wo(d,i),d.push(...c),Wo(d,a),d.push(...s),Wo(d,l),Wo(d,u),d};function tc(e){let t=ec(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,G.jsx)(G.Fragment,{children:t.map(e=>(0,W.createElement)(Qs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var nc=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),rc=e(((e,t)=>{t.exports=nc()})),ic=e((e=>{var t=rc(),n=r(),i=Pe();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),I=ie(null),ce=ie(null);function le(e,t){switch(F(I,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Gd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),F(oe,e)}function ue(){ae(oe),ae(se),ae(I)}function de(e){e.memoizedState!==null&&F(ce,e);var t=oe.current,n=Gd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function fe(e){se.current===e&&(ae(oe),ae(se)),ce.current===e&&(ae(ce),ep._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=un&&`documentMode`in document&&11>=document.documentMode,R=null,Ar=null,jr=null,z=!1;function Mr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;z||R==null||R!==Lt(r)||(r=R,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Cr(jr,r)||(jr=r,r=Od(Ar,`onSelect`),0>=o,i-=o,Si=1<<32-Le(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),ji&&wi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),ji&&wi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return ji&&wi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),ji&&wi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Ca(l)===r.type){n(e,r.sibling),c=i(r,o.props),Aa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=li(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ci(o.type,o.key,o.props,null,e.mode,c),Aa(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=fi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Ca(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ka(o),c);if(o.$$typeof===x)return b(e,r,$i(e,o),c);ja(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=ui(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=b(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ll&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Qr(e,r,t,n),ti(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ha=!1;function Ua(){if(Ha){var e=ua;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Y&f)===f:(r&f)===f){f!==0&&f===la&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Fa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,As(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,pa(c,r),mu(e)):ks(e,t,r,mu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Cs(e).queue;bs(e,i,t,te,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},mu())}function G(){return Qi(ep)}function Ts(){return Oo().memoizedState}function K(){return Oo().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ra(n);var r=za(t,e,n);r!==null&&(gu(r,t,n),Ba(r,t,n)),t={cache:aa()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?Ms(t,n):(n=V(e,t,n,r),n!==null&&(gu(n,e,r),Ns(n,t,r)))}function Os(e,t,n){ks(e,t,n,mu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))Ms(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return Qr(e,t,i,0),Rl===null&&Zr(),!1}catch{}if(n=V(e,t,i,r),n!==null)return gu(n,e,r),Ns(n,t,r),!0}return!1}function As(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(a(479))}else t=V(e,n,r,2),t!==null&&gu(t,e,2)}function js(e){var t=e.alternate;return e===W||t!==null&&t===W}function Ms(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Ps={readContext:Qi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Ps.useEffectEvent=vo;var Fs={readContext:Qi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ds.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=Os.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,W,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,i=Do();if(ji){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Rl===null)throw Error(a(349));Y&127||Ro(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Rl.identifierPrefix;if(ji){var n=Ci,r=Si;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[st]=t,o[ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ld(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=I.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ki,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Pd(e.nodeValue,n)),e||Fi(t,!0)}else e=Hd(e).createTextNode(r),e[st]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[st]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(a(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[st]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),i=!1}else i=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(io(t),t):(io(t),null)}return io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mc(t,t.updateQueue),Pc(t),null);case 4:return ue(),e===null&&wd(t.stateNode.containerInfo),Pc(t),null;case 10:return Ki(t.type),Pc(t),null;case 19:if(ae(ao),r=t.memoizedState,r===null)return Pc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Nc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,Nc(r,!1),e=o.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)si(n,e),n=n.sibling;return F(ao,ao.current&1|2),ji&&wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>nu&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304)}else{if(!i)if(e=oo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ji)return Pc(t),null}else 2*Te()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=ao.current,F(ao,i?n&1|2:n&1),ji&&wi(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(H),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(ia),Pc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Ic(e,t){switch(Di(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(ia),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(a(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(ao),null;case 4:return ue(),null;case 10:return Ki(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&ae(H),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(ia),null;case 25:return null;default:return null}}function Lc(e,t){switch(Di(t),t.tag){case 3:Ki(ia),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:ae(ao);break;case 10:Ki(t.type);break;case 22:case 23:io(t),Za(),e!==null&&ae(H);break;case 24:Ki(ia)}}function Rc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function zc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Bc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Ku(e,e.return,t)}}}function Vc(e,t,n){n.props=Hs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Hc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Uc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Wc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Gc(e,t,n){try{var r=e.stateNode;Rd(r,e.type,n,t),r[ct]=t}catch(t){Ku(e,e.return,t)}}function Kc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ld(t,r,n),t[st]=e,t[ct]=n}catch(t){Ku(e,e.return,t)}}var Zc=!1,Qc=!1,$c=!1,el=typeof WeakSet==`function`?WeakSet:Set,tl=null;function nl(e,t){if(e=e.containerInfo,Bd=lp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,tl=t;tl!==null;)if(t=tl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,tl=e;else for(;tl!==null;){switch(t=tl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Ld(o,r,n),o[st]=e,bt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Ll&6)throw Error(a(331));var c=Ll;if(Ll|=4,Ml(o.current),wl(o,o.current,s,n),Ll=c,od(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{P.p=i,N.T=r,Hu(e,t)}}function Gu(e,t,n){t=mi(n,t),t=Js(e.stateNode,t,2),e=za(e,t,2),e!==null&&(Ze(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=mi(n,e),n=Ys(2),r=za(t,n,2),r!==null&&(Xs(n,r,t,e),Ze(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Rl===e&&(Y&n)===n&&(Gl===4||Gl===3&&(Y&62914560)===Y&&300>Te()-eu?!(Ll&2)&&Cu(e,0):Jl|=n,Xl===Y&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Ye()),e=$r(e,t),e!==null&&(Ze(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return xe(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=Y,a=Ke(r,r===Rl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&qd()&&(e=id);for(var t=Te(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),bt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Ld(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=yt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);bt(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=I.current)?vf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=yt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=yt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=yt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+zt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),bt(t),e.head.appendChild(t))}function If(e){return`[src="`+zt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Ld(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,bt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),bt(i),Ld(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=$s()}))(),1),q=i(),tc=(0,H.createContext)(void 0);function nc(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function rc(e){let t=(0,q.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>nc(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,H.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,H.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,U.jsx)(tc.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function ic(){let e=(0,H.useContext)(tc);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function ac(e){return an(e.defaultTagName??`div`,e,e)}var oc=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),sc=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),cc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),lc=e=>{let t=cc(e);return t.charAt(0).toUpperCase()+t.slice(1)},uc={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},dc=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},fc=(0,H.createContext)({}),pc=()=>(0,H.useContext)(fc),mc=(0,H.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=pc()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,H.createElement)(`svg`,{ref:c,...uc,width:t??l??uc.width,height:t??l??uc.height,stroke:e??f,strokeWidth:m,className:oc(`lucide`,p,i),...!a&&!dc(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),hc=(e,t)=>{let n=(0,H.forwardRef)(({className:n,...r},i)=>(0,H.createElement)(mc,{ref:i,iconNode:t,className:oc(`lucide-${sc(lc(e))}`,`lucide-${e}`,n),...r}));return n.displayName=lc(e),n},gc=hc(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),_c=hc(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),vc=hc(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),yc=hc(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),bc=hc(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),xc=hc(`container`,[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]),Sc=hc(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Cc=hc(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),wc=hc(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Tc=hc(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Ec=hc(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),Dc=hc(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Oc=hc(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),kc=hc(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Ac=hc(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),jc=hc(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Mc=hc(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),Nc=hc(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Pc=hc(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Fc=hc(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),Ic=hc(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Lc=hc(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),Rc=hc(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),zc=hc(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Bc=hc(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Vc=hc(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Hc=hc(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Uc=hc(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Wc=hc(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),Gc=hc(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Kc=hc(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),qc=hc(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Jc=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Yc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Xc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Zc={disabled:!1,...Xc},Qc={valid(e){return e===null?null:e?{[Jc.valid]:``}:{[Jc.invalid]:``}}},$c={invalid:void 0,name:void 0,validityData:{state:Yc,errors:[],error:``,value:``,initialValue:null},setValidityData:on,disabled:void 0,touched:Xc.touched,setTouched:on,dirty:Xc.dirty,setDirty:on,filled:Xc.filled,setFilled:on,focused:Xc.focused,setFocused:on,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Zc,markedDirtyRef:{current:!1},registerFieldControl:on,validation:{getValidationProps:(e,t=en)=>t,inputRef:{current:null},registerInput:on,commit:async()=>{},change:on}},el=H.createContext($c);function tl(e=!0){let t=H.useContext(el);if(t.setValidityData===on&&!e)throw Error(ln(28));return t}var nl=H.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:on,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function rl(){return H.useContext(nl)}var il=H.createContext({controlId:void 0,registerControlId:on,labelId:void 0,setLabelId:on,messageIds:[],setMessageIds:on,getDescriptionProps:e=>e});function al(){return H.useContext(il)}function ol(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=al(),o=Rr(t),s=n?i:void 0,c=rn(()=>Symbol(`labelable-control`)),l=H.useRef(!1),u=H.useRef(t!=null),d=z(()=>{!l.current||a===on||(l.current=!1,a(c.current,void 0))});return R(()=>{if(a===on)return;let e;if(n){let n=r?.current;e=B(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),H.useEffect(()=>d,[d]),i??o}function sl(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:cl,platform:ll,maxTouchPoints:ul}=sl(),dl=cl.toLowerCase(),fl=ll.toLowerCase(),pl=/^i(os$|p)/.test(fl)||fl===`macintel`&&ul>1,ml=`android`,hl=fl===ml||dl.includes(ml),gl=!pl&&fl.startsWith(`mac`);fl.startsWith(`win`),!hl&&/^(linux|chrome os)/.test(fl);var _l=gl||pl,vl=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!vl&&dl.includes(`firefox`),!vl&&dl.includes(`chrom`);var yl=_l,bl=/jsdom|happydom/.test(dl),xl=`data-base-ui-focusable`,Sl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Cl=`ArrowLeft`,wl=`ArrowRight`,Tl=`ArrowUp`,El=`ArrowDown`;function Dl(e,t){if(!B(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(V(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Ol(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function kl(e){return e.matches(`html,body`)}function Al(e){return Sr(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function jl(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Sl}`)!=null}function Ml(e){return e?e.getAttribute(`role`)===`combobox`&&Al(e):!1}function Nl(e){if(!e||bl)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Pl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Fl(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Fl(e,t.id,n)])}function Il(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Ll(e){e.preventDefault(),e.stopPropagation()}function Rl(e){return`nativeEvent`in e}function J(e){return e.pointerType===``&&e.isTrusted?!0:hl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Y(e){return bl?!1:!hl&&e.width===0&&e.height===0||hl&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function zl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Bl(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Vl=[`top`,`right`,`bottom`,`left`],Hl=Math.min,Ul=Math.max,Wl=Math.round,Gl=Math.floor,Kl=e=>({x:e,y:e}),ql={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Jl(e,t,n){return Ul(e,Hl(t,n))}function Yl(e,t){return typeof e==`function`?e(t):e}function Xl(e){return e.split(`-`)[0]}function Zl(e){return e.split(`-`)[1]}function Ql(e){return e===`x`?`y`:`x`}function $l(e){return e===`y`?`height`:`width`}function eu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function tu(e){return Ql(eu(e))}function nu(e,t,n){n===void 0&&(n=!1);let r=Zl(e),i=tu(e),a=$l(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=du(o)),[o,du(o)]}function ru(e){let t=du(e);return[iu(e),t,iu(t)]}function iu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var au=[`left`,`right`],ou=[`right`,`left`],su=[`top`,`bottom`],cu=[`bottom`,`top`];function lu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ou:au:t?au:ou;case`left`:case`right`:return t?su:cu;default:return[]}}function uu(e,t,n,r){let i=Zl(e),a=lu(Xl(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(iu)))),a}function du(e){let t=Xl(e);return ql[t]+e.slice(t.length)}function fu(e){return{top:0,right:0,bottom:0,left:0,...e}}function pu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:fu(e)}function mu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hu(e,t){return t<0||t>=e.length}function gu(e,t){return vu(e.current,{disabledIndices:t})}function _u(e,t){return vu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function vu(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&yu(e,a,r));return a}function yu(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?xu(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function bu(e){return e.visibility===`hidden`||e.visibility===`collapse`}function xu(e,t=e?Dr(e):null){return!e||!e.isConnected||!t||bu(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Su=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Cu(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Fr(n)?n.host:null}function wu(e){for(let t of Array.from(e.children))if(Ar(t)===`summary`)return t;return null}function Tu(e,t){let n=wu(t);return!!n&&(e===n||V(n,e))}function Eu(e){let t=e?Ar(e):``;return e!=null&&e.matches(Su)&&(t!==`summary`||e.parentElement!=null&&Ar(e.parentElement)===`details`&&wu(e.parentElement)===e)&&(t!==`details`||wu(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Du(e){if(!Eu(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Cu(t)){let n=t!==e,r=Ar(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Ar(t)===`details`&&!t.open&&!Tu(e,t)||t.hasAttribute(`hidden`)||!r&&!Ou(t,n))return!1}return!0}function Ou(e,t){let n=Dr(e);return t?n.display!==`none`:xu(e,n)}function ku(e){let t=e.tabIndex;if(t<0){let t=Ar(e);if(t===`details`||t===`audio`||t===`video`||Sr(e)&&e.isContentEditable)return 0}return t}function Au(e){if(Ar(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function ju(e,t){let n=Au(e);if(!n)return!0;let r=t.find(e=>{let t=Au(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Au(e);return t?.name===n.name&&t.form===n.form})===n}function Mu(e){if(Sr(e)&&Ar(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Sr(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Nu(e,t){Mu(e).forEach(e=>{Eu(e)&&t.push(e),Nu(e,t)})}function Pu(e,t,n){Mu(e).forEach(e=>{Sr(e)&&e.matches(t)&&n.push(e),Pu(e,t,n)})}function Fu(e){return Du(e)&&ku(e)>=0}function Iu(e){let t=[];return Nu(e,t),t.filter(Du)}function Lu(e){let t=Iu(e);return t.filter(e=>ku(e)>=0&&ju(e,t))}function Ru(e,t){let n=Lu(e),r=n.length;if(r===0)return;let i=Zr(Qr(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function zu(e){return Ru(Qr(e).body,1)||e}function Bu(e){return Ru(Qr(e).body,-1)||e}function Vu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!V(n,r)}function Hu(e){Lu(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Uu(e){let t=[];Pu(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Wu=[];function Gu(e){H.useEffect(e,Wu)}var Ku=0,qu=class e{static create(){return new e}currentId=Ku;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ku,t()},e)}isStarted(){return this.currentId!==Ku}clear=()=>{this.currentId!==Ku&&(clearTimeout(this.currentId),this.currentId=Ku)};disposeEffect=()=>this.clear};function Ju(){let e=rn(qu.create).current;return Gu(e.disposeEffect),e}var Yu=null;globalThis.requestAnimationFrame;var Xu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Zu=class e{static create(){return new e}static request(e){return Xu.request(e)}static cancel(e){return Xu.cancel(e)}currentId=Yu;request(e){this.cancel(),this.currentId=Xu.request(()=>{this.currentId=Yu,e()})}cancel=()=>{this.currentId!==Yu&&(Xu.cancel(this.currentId),this.currentId=Yu)};disposeEffect=()=>this.cancel};function Qu(){let e=rn(Zu.create).current;return Gu(e.disposeEffect),e}function $u(e){return e==null?e:`current`in e?e.current:e}var ed=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),td={[ed.startingStyle]:``},nd={[ed.endingStyle]:``},rd={transitionStatus(e){return e===`starting`?td:e===`ending`?nd:null}},id=n(We(),1);function ad(e,t=!1,n=!0){let r=Qu();return z((i,a=null)=>{r.cancel();let o=$u(e);if(o==null)return;let s=o,c=()=>{id.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=ed.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function od(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=z(i),o=ad(r,n,!1);H.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function sd(e,t=!1,n=!1){let[r,i]=H.useState(e&&t?`idle`:void 0),[a,o]=H.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),R(()=>{if(!e&&a&&r!==`ending`&&n){let e=Zu.request(()=>{i(`ending`)});return()=>{Zu.cancel(e)}}},[e,a,r,n]),R(()=>{if(!e||t)return;let n=Zu.request(()=>{i(void 0)});return()=>{Zu.cancel(n)}},[t,e]),R(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Zu.request(()=>{i(`idle`)});return()=>{Zu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function cd({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=H.useRef(e!==void 0),[a,o]=H.useState(t);return[i?e:a,H.useCallback(e=>{i||o(e)},[])]}function ld(e,t,n,r,i=!0,a){let{registerFieldControl:o}=tl(),s=H.useRef(null);s.current||=Symbol(),R(()=>{let c=s.current;if(!(!c||!i))return o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}),()=>{o(c,void 0)}},[e,i,r,t,a,o,n])}var ud=H.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=tl(),{clearErrors:C}=rl(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=al(),O=ol({id:i});R(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let k=H.useRef(null);R(()=>{u&&k.current===Zr(Qr(k.current))&&y(!0)},[u,y]);let[A]=cd({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,ee=z(()=>S.inputRef.current?.value);return ld(S.inputRef,O,M,ee,!w,a),an(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:S.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Xr(Vr,e.nativeEvent)),_(t!==v.initialValue),b(t!==``),e.nativeEvent.defaultPrevented||(C(T),S.change(t))},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},f,e=>S.getValidationProps(w,e)],stateAttributesMapping:Qc})}),dd=H.forwardRef(function(e,t){return(0,U.jsx)(ud,{ref:t,...e})});function fd(e){let t=(0,q.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=yn(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,U.jsx)(dd,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var pd=H.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return an(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function md(e){let t=(0,q.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=yn(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,U.jsx)(pd,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var hd=H.createContext(!1),gd=H.createContext(void 0);function _d(e){let t=H.useContext(gd);if(e===!1&&t===void 0)throw Error(ln(27));return t}var vd=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=ed.startingStyle]=`startingStyle`,e[e.endingStyle=ed.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),yd=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),bd={[yd.popupOpen]:``},xd={[yd.popupOpen]:``,[yd.pressed]:``},X={[vd.open]:``},Sd={[vd.closed]:``},Cd={[vd.anchorHidden]:``},wd={open(e){return e?bd:null}},Td={open(e){return e?xd:null}},Ed={open(e){return e?X:Sd},anchorHidden(e){return e?Cd:null}},Dd={...Ed,...rd},Od=H.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=_d(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return an(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Dd,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),kd=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=_d(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=jr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Xr(Jr,e.nativeEvent))}return an(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Ad=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=_d(),c=Rr(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),an(`p`,e,{ref:t,props:[{id:c},o]})});function jd(e,t){return t!=null&&!zl(t)?0:typeof e==`function`?e():e}function Md(e,t,n){let r=jd(e,n);return typeof r==`number`?r:r?.[t]}function Nd(e){return typeof e==`function`?e():e}function Pd(e,t){return t||e===`click`||e===`mousedown`}function Fd(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Id=H.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qu,currentIdRef:{current:null},currentContextRef:{current:null}});function Ld(e,t){e.current=t.current}function Rd(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=H.useRef(n),a=H.useRef(n),o=H.useRef(null),s=H.useRef(null),c=Ju();return R(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:Md(i.current,`open`),close:Md(n,`close`)}},[n,o,i,a]),(0,U.jsx)(Id.Provider,{value:H.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function zd(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=H.useContext(Id),[f,p]=H.useState(!1),m=H.useRef(n),h=H.useRef(!1);return R(()=>{m.current=n},[n]),R(()=>()=>{h.current=!0},[]),R(()=>{function e(){h.current||p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),R(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:Md(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Xr(Vr))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),R(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,Ld(o,c),d.clear()}},[l,a,o,i,c,d]),H.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Z(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Bd(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Ud={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Wd={...Ud,position:`fixed`,top:0,left:0},Gd={...Ud,position:`absolute`},Kd=H.forwardRef(function(e,t){let[n,r]=H.useState();R(()=>{yl&&vl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,U.jsx)(`span`,{...e,ref:t,style:Wd,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function qd(e){return`data-base-ui-${e}`}var Jd=0;function Yd(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Jd);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),on;let o=requestAnimationFrame(a);return Jd=o,()=>{Jd===o&&(cancelAnimationFrame(o),Jd=0)}}var Xd={inert:new WeakMap,"aria-hidden":new WeakMap},Zd=`data-base-ui-inert`,Qd={inert:new WeakSet,"aria-hidden":new WeakSet},$d=new WeakMap,ef=0;function tf(e){return Qd[e]}function nf(e){return e?Fr(e)?e.host:nf(e.parentNode):null}var rf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=nf(t);return e.contains(n)?n:null}).filter(e=>e!=null),af=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},of=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Ar(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function sf(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=rf(t,e),l=i?of(t,af(c),new Set(c)):[],u=[],d=[];if(a){let e=Xd[a],n=tf(a);s=n,o=e;let r=rf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);of(t,af(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=($d.get(e)||0)+1;$d.set(e,t),d.push(e),t===1&&e.setAttribute(Zd,``)}),ef+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=($d.get(e)||0)-1;$d.set(e,t),t||e.removeAttribute(Zd)}),--ef,ef||(Xd.inert=new WeakMap,Xd[`aria-hidden`]=new WeakMap,Qd.inert=new WeakSet,Qd[`aria-hidden`]=new WeakSet,$d=new WeakMap)}}function cf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=Qr(e[0]).body;return sf(e,a,n,r,{mark:i})}var lf={style:{transition:`none`}},uf={fallbackAxisSide:`none`},df={fallbackAxisSide:`end`},ff={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},pf=H.createContext(null),mf=()=>H.useContext(pf),hf=qd(`portal`);function gf(e={}){let{ref:t,container:n,componentProps:r=en,elementProps:i}=e,a=Lr(),o=mf()?.portalNode,[s,c]=H.useState(null),[l,u]=H.useState(null),d=z(e=>{e!==null&&u(e)}),f=H.useRef(null);R(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(yr(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=an(`div`,r,{ref:[t,d],props:[{id:a,[hf]:``},i]});return{portalNode:l,portalSubtree:s&&p?id.createPortal(p,s):null}}var _f=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=gf({container:o,ref:t,componentProps:e,elementProps:c}),d=H.useRef(null),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),[h,g]=H.useState(null),_=H.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;H.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Vu(e)&&(e.type===`focusin`?_.current&&=(Uu(l),!1):(Hu(l),_.current=!0))}return Bd(Z(l,`focusin`,e,!0),Z(l,`focusout`,e,!0))},[l,v]),R(()=>{!l||y!==!0||!_.current||(Uu(l),_.current=!1)},[y,l]);let x=H.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,U.jsxs)(H.Fragment,{children:[u,(0,U.jsxs)(pf.Provider,{value:x,children:[b&&l&&(0,U.jsx)(Kd,{"data-type":`outside`,ref:d,onFocus:e=>{Vu(e,l)?p.current?.focus():Bu(h?h.domReference:null)?.focus()}}),b&&l&&(0,U.jsx)(`span`,{"aria-owns":l.id,style:ff}),l&&id.createPortal(a,l),b&&l&&(0,U.jsx)(Kd,{"data-type":`outside`,ref:f,onFocus:e=>{Vu(e,l)?m.current?.focus():(zu(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Xr(`focus-out`,e.nativeEvent)))}})]})]})});function vf(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var yf=H.createContext(null),bf=H.createContext(null),xf=()=>H.useContext(yf)?.id||null,Sf=e=>{let t=H.useContext(bf);return e??t};function Cf(e,t){let n=xr(Br(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var wf=20,Tf=[];function Ef(){Tf=Tf.filter(e=>e.deref()?.isConnected)}function Df(e){Ef(),e&&Ar(e)!==`body`&&(Tf.push(new WeakRef(e)),Tf.length>wf&&(Tf=Tf.slice(-20)))}function Of(){return Ef(),Tf[Tf.length-1]?.deref()}function kf(e){return e?Fu(e)?e:Lu(e)[0]||e:null}function Af(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Iu(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Fu(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function jf(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=z(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Ml(_)&&S,w=Vd(i),T=Vd(a),E=Vd(l),D=Vd(g),O=Sf(p),k=mf(),A=H.useRef(!1),j=H.useRef(!1),M=H.useRef(!1),ee=H.useRef(null),N=H.useRef(``),P=H.useRef(``),te=H.useRef(null),ne=H.useRef(null),re=tn(te,f,k?.beforeInsideRef),ie=tn(ne,k?.afterInsideRef),ae=Ju(),F=Ju(),oe=Qu(),se=k!=null,I=Pl(v),ce=z((e=I)=>e?Lu(e):[]),le=z(()=>m?.().filter(e=>e!=null)??[]);H.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&V(I,Zr(Qr(I)))&&ce().length===0&&!C&&Ll(e)}return Z(Qr(I),`keydown`,e)},[r,I,s,C,ce]),H.useEffect(()=>{if(r||!g)return;let e=Qr(I);function t(){M.current=!1}function n(e){let t=Br(e),n=le(),r=V(v,t)||V(_,t)||V(k?.portalNode,t)||n.some(e=>e===t||V(e,t));M.current=!r,P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0,F.start(0,()=>{j.current=!1}))}function i(){P.current=`keyboard`}return Bd(Z(e,`pointerdown`,n,!0),Z(e,`pointerup`,t,!0),Z(e,`pointercancel`,t,!0),Z(e,`keydown`,i,!0),t)},[r,v,_,I,g,k,F,le]),H.useEffect(()=>{if(r||!c)return;let e=Qr(I);function t(){j.current=!0,F.start(0,()=>{j.current=!1})}function n(e){let t=Br(e);Fu(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Br(t);s&&n==null&&i!=null&&V(v,i)&&Df(i),queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=le(),f=n?.hasAttribute(qd(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,$u(d),$u(u)].includes(n),p=!(V(_,n)||V(v,n)||V(n,v)||V(k?.portalNode,n)||l.some(e=>e===n||V(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>V(e,n))||f||O&&(Fl(O.nodesRef.current,a).find(e=>V(e.context?.elements.floating,n)||V(e.context?.elements.domReference,n))||Il(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,Pl(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&I&&Af(I),o&&r!==_&&!xu(i)&&Zr(e)===e.body){if(Sr(I)&&(I.focus(),o===`popup`)){oe.request(()=>{I.focus()});return}let e=ce(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;Sr(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==Of())&&(A.current=!0,h.setOpen(!1,Xr(Kr,t)))})}function a(){M.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=Sr(_)?_:null;if(!(!v&&!l))return Bd(l&&Z(l,`focusout`,i),l&&Z(l,`pointerdown`,t),v&&Z(v,`focusin`,n),v&&Z(v,`focusout`,i),v&&k&&Z(v,`focusout`,a,!0))},[r,_,v,I,s,O,k,h,c,o,ce,C,x,b,ae,F,oe,u,d,le]),H.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${qd(`portal`)}]`)||[]),t=(O?Il(O.nodesRef.current,x()):[]).find(e=>Ml(e.context?.elements.domReference||null))?.context?.elements.domReference,n=cf([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...le(),t,$u(d),$u(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=cf([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,le]),R(()=>{if(!g||r||!Sr(I))return;let e=Qr(I),t=Zr(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(E.current||``):n;if(r===void 0||r===!1||V(I,t))return;let i=null,a=()=>(i??=ce(I),i[0]||I),o;o=r===!0||r===null?a():$u(r),o||=a();let s=V(I,Zr(e));Yd(o,{preventScroll:o===I,shouldFocus(){if(!D.current)return!1;if(s)return!0;let t=Zr(e);return!(t!==o&&V(I,t))}})})},[r,g,I,ce,w,E,D]),R(()=>{if(r||!I)return;let e=Qr(I),t=Zr(e),n=E.current==null;Df(t);function i(e){if(e.open||(N.current=Cf(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(J(e.nativeEvent)||Y(e.nativeEvent))A.current=!1;else{let e=!1;Qr(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,i);function a(){let e=T.current,r=typeof e==`function`?e(N.current):e;if(r===void 0||r===!1)return null;r===null&&(r=!0);let i=_?.isConnected?_:null,a=t?.isConnected&&Ar(t)!==`body`?t:null,o=n?a||i:i||a;return o||=Of()||null,typeof r==`boolean`?o:$u(r)||o||null}return()=>{y.off(`openchange`,i);let t=Zr(e),n=le(),r=V(v,t)||n.some(e=>e===t||V(e,t))||O&&Fl(O.nodesRef.current,x(),!1).some(e=>V(e.context?.elements.floating,t)),o=T.current,s=a();queueMicrotask(()=>{let n=kf(s),i=typeof o!=`boolean`;o&&!A.current&&Sr(n)&&(!(!i&&n!==t&&t!==e.body)||r)&&n.focus({preventScroll:!0}),A.current=!1})}},[r,v,I,T,E,y,O,_,x,le]),R(()=>{if(!vl||g||!v)return;let e=Zr(Qr(v));!Sr(e)||!Al(e)||V(v,e)&&e.blur()},[g,v]),R(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),R(()=>{if(!(r||!I))return Af(I),()=>{queueMicrotask(Ef)}},[r,I]);let ue=!r&&(s?!C:!0)&&(se||s);return(0,U.jsxs)(H.Fragment,{children:[ue&&(0,U.jsx)(Kd,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=ce();Yd(e[e.length-1])}else k?.portalNode&&(A.current=!1,Vu(e,k.portalNode)?zu(_)?.focus():$u(d??k.beforeOutsideRef)?.focus())}}),n,ue&&(0,U.jsx)(Kd,{"data-type":`inside`,ref:ie,onFocus:e=>{s?Yd(ce()[0]):k?.portalNode&&(c&&(A.current=!0),Vu(e,k.portalNode)?Bu(_)?.focus():$u(u??k.afterOutsideRef)?.focus())}})]})}function Mf(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Nf(e){return e!=null&&e.clientX!=null}function Pf(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=H.useRef(!1),u=H.useRef(null),[d,f]=H.useState(),[p,m]=H.useState([]),h=z(e=>{i.set(`positionReference`,e)}),g=z((e,t,n)=>{l.current||c.current.openEvent&&!Nf(c.current.openEvent)||i.set(`positionReference`,Mf(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=z(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=zl(d)?o:a;H.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=xr(o);function r(t){let n=Br(t);V(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Nf(c.current.openEvent)?u.current=Z(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),H.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),H.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),H.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=H.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return H.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function Ff(){return!1}function If(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Lf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Ff,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=Sf(c),m=z(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=z(()=>a),{escapeKey:v,outsidePress:y}=If(s),b=H.useRef(!1),x=H.useRef(!1),S=H.useRef(!1),C=H.useRef(!1),w=H.useRef(``),T=H.useRef(null),E=Ju(),D=Ju(),O=z(()=>{D.clear(),f.current.insideReactTree=!1}),k=z(e=>{let t=f.current.floatingContext?.nodeId;return(p?Fl(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),A=z(e=>Ol(e,l.select(`floatingElement`))||Ol(e,l.select(`domReferenceElement`))),j=z(e=>{o()&&l.setOpen(!1,Xr(Hr,e.nativeEvent))}),M=z(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&k(`__escapeKeyBubbles`))return;let t=Xr(zr,Rl(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),ee=z(()=>{f.current.insideReactTree=!0,D.start(0,O)}),N=z(e=>{if(!u||!n||e.button!==0)return;let t=Br(e.nativeEvent);V(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),P=z(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});H.useEffect(()=>{if(!u||!n)return;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new qu,t=new qu;function i(){e.clear(),C.current=!0}function a(){e.start(vl?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=w.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function D(e){let t=f.current.floatingContext?.nodeId,n=p&&Fl(p.nodesRef.current,t).some(t=>Ol(e,t.context?.elements.floating));return A(e)||n}function j(e){if(m(e)){e.type!==`click`&&!A(e)&&(t.clear(),S.current=!1),O();return}if(f.current.insideReactTree){O();return}let n=Br(e),r=`[${qd(`inert`)}]`,i=B(n)?n.getRootNode():null,a=Array.from((Fr(i)?i:Qr(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>V(e,n))))return;let s=B(n)?n:null;for(;s&&!Ir(s);){let e=Tr(s);if(Ir(e)||!B(e))break;s=e}if(!(a.length&&B(n)&&!kl(n)&&!V(n,l.select(`floatingElement`))&&a.every(e=>!V(s,e)))){if(Sr(n)&&!(`touches`in e)){let t=Ir(n),r=Dr(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!D(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||k(`__outsidePressBubbles`)||(l.setOpen(!1,Xr(qr,e)),O())}}}function ee(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||A(e)||j(e)}function N(e){if(c()!==`sloppy`||!l.select(`open`)||!n||A(e))return;let t=e.touches[0];t&&(T.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=Br(e);if(!n)return;let r=Z(n,e.type,()=>{t(e),r()})}function te(e){w.current=`touch`,P(e,N)}function ne(e){E.clear(),e.type===`pointerdown`&&(w.current=e.pointerType),!(e.type===`mousedown`&&T.current&&!T.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?ee(e):j(e)})}function re(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!D(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,O())}}}function ie(e){if(c()!==`sloppy`||!T.current||A(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-T.current.startX),r=Math.abs(t.clientY-T.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(T.current.dismissOnTouchEnd=!0),i>10&&(j(e),E.clear(),T.current=null)}function ae(e){P(e,ie)}function F(e){c()!==`sloppy`||!T.current||A(e)||(T.current.dismissOnTouchEnd&&j(e),E.clear(),T.current=null)}function oe(e){P(e,F)}let se=Qr(d),I=Bd(r&&Bd(Z(se,`keydown`,M),Z(se,`compositionstart`,i),Z(se,`compositionend`,a)),g&&Bd(Z(se,`click`,ne,!0),Z(se,`pointerdown`,ne,!0),Z(se,`pointerup`,re,!0),Z(se,`pointercancel`,re,!0),Z(se,`mousedown`,ne,!0),Z(se,`mouseup`,re,!0),Z(se,`touchstart`,te,!0),Z(se,`touchmove`,ae,!0),Z(se,`touchend`,oe,!0)));return()=>{I(),e.clear(),t.clear(),s(),S.current=!1}},[f,d,r,g,h,u,n,v,y,M,O,_,k,A,p,l,E]),H.useEffect(O,[h,O]);let te=H.useMemo(()=>({onKeyDown:M,onPointerDown:j,onClick:j}),[M,j]),ne=H.useMemo(()=>({onKeyDown:M,onPointerDown:P,onMouseDown:P,onClickCapture:ee,onMouseDownCapture(e){ee(),N(e)},onPointerDownCapture(e){ee(),N(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[M,ee,N,P]);return H.useMemo(()=>n?{reference:te,floating:ne,trigger:te}:{},[n,te,ne])}function Rf(e,t,n){let{reference:r,floating:i}=e,a=eu(t),o=tu(t),s=$l(o),c=Xl(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Zl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function zf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Yl(t,e),p=pu(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=mu(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=mu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Bf=50,Vf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:zf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Rf(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==eu(t))||T.every(e=>eu(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=eu(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Uf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wf(e){return Vl.some(t=>e[t]>=0)}var Gf=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Yl(e,t);switch(i){case`referenceHidden`:{let e=Uf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Wf(e)}}}case`escaped`:{let e=Uf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Wf(e)}}}default:return{}}}}},Kf=new Set([`left`,`top`]);async function qf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xl(n),s=Zl(n),c=eu(n)===`y`,l=Kf.has(o)?-1:1,u=a&&c?-1:1,d=Yl(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Jf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await qf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Yf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Yl(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=eu(Xl(i)),p=Ql(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Jl(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Jl(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Xf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Yl(e,t),u={x:n,y:r},d=eu(i),f=Ql(d),p=u[f],m=u[d],h=Yl(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Kf.has(Xl(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Zf=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Yl(e,t),u=await o.detectOverflow(t,l),d=Xl(i),f=Zl(i),p=eu(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Hl(h-u[g],v),x=Hl(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ul(u.left,0),t=Ul(u.right,0),n=Ul(u.top,0),r=Ul(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ul(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ul(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Qf(e){let t=Dr(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Sr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Wl(n)!==a||Wl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $f(e){return B(e)?e:e.contextElement}function ep(e){let t=$f(e);if(!Sr(t))return Kl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qf(t),o=(a?Wl(n.width):n.width)/r,s=(a?Wl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tp=Kl(0);function np(e){let t=xr(e);return!_r()||!t.visualViewport?tp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xr(e)?!1:t}function ip(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$f(e),o=Kl(1);t&&(r?B(r)&&(o=ep(r)):o=ep(e));let s=rp(a,n,r)?np(a):Kl(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=xr(a),t=r&&B(r)?xr(r):r,n=e,i=wr(n);for(;i&&r&&t!==n;){let e=ep(i),t=i.getBoundingClientRect(),r=Dr(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=xr(i),i=wr(n)}}return mu({width:u,height:d,x:c,y:l})}function ap(e,t){let n=Or(e).scrollLeft;return t?t.left+n:ip(Cr(e)).left+n}function op(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ap(e,n),y:n.top+t.scrollTop}}function sp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Cr(r),s=t?vr(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Kl(1),u=Kl(0),d=Sr(r);if((d||!d&&!a)&&((Ar(r)!==`body`||gr(o))&&(c=Or(r)),d)){let e=ip(r);l=ep(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?op(o,c):Kl(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cp(e){return Array.from(e.getClientRects())}function lp(e){let t=Cr(e),n=Or(e),r=e.ownerDocument.body,i=Ul(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ul(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ap(e),s=-n.scrollTop;return Dr(r).direction===`rtl`&&(o+=Ul(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var up=25;function dp(e,t){let n=xr(e),r=Cr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=_r();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ap(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=up&&(a-=o)}else l<=up&&(a+=l);return{width:a,height:o,x:s,y:c}}function fp(e,t){let n=ip(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Sr(e)?ep(e):Kl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pp(e,t,n){let r;if(t===`viewport`)r=dp(e,n);else if(t===`document`)r=lp(Cr(e));else if(B(t))r=fp(t,n);else{let n=np(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return mu(r)}function mp(e,t){let n=Tr(e);return n===t||!B(n)||Ir(n)?!1:Dr(n).position===`fixed`||mp(n,t)}function hp(e,t){let n=t.get(e);if(n)return n;let r=Er(e,[],!1).filter(e=>B(e)&&Ar(e)!==`body`),i=null,a=Dr(e).position===`fixed`,o=a?Tr(e):e;for(;B(o)&&!Ir(o);){let t=Dr(o),n=Pr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||gr(o)&&!n&&mp(e,o))?r=r.filter(e=>e!==o):i=t,o=Tr(o)}return t.set(e,r),r}function gp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?vr(t)?[]:hp(t,this._c):[].concat(n),r],o=pp(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!Tp(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Dp(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$f(e),u=i||a?[...l?Er(l):[],...t?Er(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ep(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?ip(e):null;c&&g();function g(){let t=ip(e);h&&!Tp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Op=Jf,kp=Yf,Ap=Hf,jp=Zf,Mp=Gf,Np=Xf,Pp=(e,t,n)=>{let r=new Map,i={platform:wp,...n},a={...i.platform,_c:r};return Vf(e,t,{...i,platform:a})},Fp=typeof document<`u`?H.useLayoutEffect:function(){};function Ip(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ip(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ip(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Lp(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rp(e,t){let n=Lp(e);return Math.round(t*n)/n}function zp(e){let t=H.useRef(e);return Fp(()=>{t.current=e}),t}function Bp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Ip(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=zp(c),D=zp(i),O=zp(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Pp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Ip(w.current,t)&&(w.current=t,id.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Fp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=H.useRef(!1);Fp(()=>(A.current=!0,()=>{A.current=!1}),[]),Fp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=H.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Rp(M.floating,u.x),r=Rp(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Lp(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var Vp=(e,t)=>{let n=Op(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hp=(e,t)=>{let n=kp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Up=(e,t)=>({fn:Np(e).fn,options:[e,t]}),Wp=(e,t)=>{let n=Ap(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gp=(e,t)=>{let n=jp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kp=(e,t)=>{let n=Mp(e);return{name:n.name,fn:n.fn,options:[e,t]}};function qp(e){let t=H.useRef(!0);t.current&&(t.current=!1,e())}var Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(ln(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Jp=[],Yp=void 0;function Xp(){return Yp}function Zp(e){Jp.push(e)}function Qp(e){let t=(t,n)=>{let r=rn(em).current,i;try{Yp=r;for(let e of Jp)e.before(r);i=e(t,n);for(let e of Jp)e.after(r);r.didInitialize=!0}finally{Yp=void 0}return i};return t.displayName=e.displayName||e.name,t}function $p(e){return H.forwardRef(Qp(e))}function em(){return{didInitialize:!1}}var tm=ie(),nm=ne(),rm=sn(19)?om:sm;function im(e,t,n,r,i){return rm(e,t,n,r,i)}function am(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,tm.useSyncExternalStore)(e.subscribe,a,a)}Zp({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,tm.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function om(e,t,n,r,i){let a=Xp();if(!a)return am(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function sm(e,t,n,r,i){return(0,nm.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var cm=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return im(this,e,t,n,r)}},lm=class extends cm{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e);let n=this;R(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;R(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;R(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=this,r=t!==void 0;R(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),im(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=z(t??on);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},um={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},dm=class extends lm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:vf(),nested:n,triggerElements:i},um),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Bl(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function fm(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=H.useRef(null);r===void 0&&f.current===null&&(f.current=new dm({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),R(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};B(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var pm={tabIndex:-1,[xl]:``};function mm(e){return t=>t===`touch`?e.current:!0}function hm(e,t,n=!1){let r=Lr(),i=xf()!=null,a=H.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return fm({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function gm(e,t){let n=H.useRef(null),r=H.useRef(null);return H.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function _m(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function vm(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function ym(e,t,n,r={}){let i=n.reason,a=i===Ur,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=vm(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),_m(i,t,n.trigger,c()),e.update(i)};a?id.flushSync(l):l()}function bm(e,t,n,r){qp(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function xm(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=gm(e,n),o=z(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return R(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Sm(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);R(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=Xr(Vr);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function Cm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=sd(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=z(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return od({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function wm(e,t){e.useSyncedValues(t),R(()=>()=>{e.update({activeTriggerProps:en,inactiveTriggerProps:en,popupProps:en})},[e])}function Tm(e,t){R(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),R(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Em=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Dm(){return new dm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Em,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Om(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Dm(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:en,inactiveTriggerProps:en,popupProps:en}}function km(e,t,n=!1){return new dm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Am=Q(e=>e.triggerIdProp??e.activeTriggerId),jm=Q(e=>e.openProp??e.open),Mm=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function Nm(e,t){return t!==void 0&&jm(e)&&Am(e)===t}function Pm(e,t){return Nm(e,t)?!0:t!==void 0&&jm(e)&&Am(e)==null&&e.triggerCount===1}var Fm={open:jm,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:Am,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:Mm,isTriggerActive:Q((e,t)=>t!==void 0&&Am(e)===t),isOpenedByTrigger:Q((e,t)=>Nm(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&Am(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>Pm(e,t)?Mm(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function Im(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Lr(),a=xf()!=null,o=rn(()=>new dm({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Em,floatingId:i,syncOnly:!1,nested:a})).current;return R(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=B(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Lm(e={}){let{nodeId:t,externalTree:n}=e,r=Im(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=H.useState(null),[f,p]=H.useState(void 0),[m,h]=H.useState(void 0),g=H.useRef(null),_=Sf(n),v=H.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=Bp({...e,elements:{...v,...u&&{reference:u}}}),b=B(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=H.useCallback(e=>{let t=B(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=H.useCallback(e=>{(B(e)||e===null)&&(g.current=e,p(e)),(B(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!B(e))&&y.refs.setReference(e)},[y.refs,p]),w=H.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=H.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=H.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=H.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return R(()=>{s&&(g.current=s)},[s]),R(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),H.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var Rm=gl&&vl;function zm(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=H.useRef(!1),c=H.useRef(null),l=H.useRef(!0),u=Ju();H.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=xr(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&Sr(e)&&e===Zr(Qr(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Bd(Z(t,`blur`,r),Rm&&Z(t,`keydown`,a,!0),Rm&&Z(t,`pointerdown`,o,!0))},[i,n]),H.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);B(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=H.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=Br(t.nativeEvent);if(B(a)){if(Rm&&!t.relatedTarget){if(!l.current&&!Al(a))return}else if(!Nl(a))return}let o=Dl(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Xr(Gr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Xr(Gr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=B(n)&&n.hasAttribute(qd(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Zr(Qr(e));!n&&t===e||V(o.current.floatingContext?.refs.floating.current,t)||V(e,t)||a||Dl(n??t,i.context.triggerElements)||i.setOpen(!1,Xr(Gr,r))})}}},[o,r,i,u]);return H.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Bm=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new qu,this.restTimeout=new qu,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Vm=new WeakMap;function Hm(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Vm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Vm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Um(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Vm.get(n);a&&a!==e&&Hm(a),Hm(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Vm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Wm(e){let t=e.context.dataRef.current,n=rn(()=>t.hoverInteractionState??Bm.create()).current;return t.hoverInteractionState||=n,Gu(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Gm(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Sf(),d=xf(),f=Wm(a),p=Ju(),m=z(()=>Pd(l.current.openEvent?.type,f.interactedInside)),h=z(()=>Fd(l.current.openEvent?.type)),g=z(()=>{Hm(f)});R(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),H.useEffect(()=>g,[g]),R(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&B(c)&&s){let e=c,t=s,n=Qr(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Um(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),H.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Fl(u.nodesRef.current,d).length>0)}function t(e){let t=Md(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Xr(Ur,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=Br(e);if(!jl(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(Dl(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&B(o)&&Fl(u.nodesRef.current,r,!1).some(e=>V(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,Xr(Ur,t)),u.events.emit(`floating.closed`,t)})}let y=s;return Bd(y&&Z(y,`mouseenter`,c),y&&Z(y,`mouseleave`,_),y&&Z(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Km={current:null};function qm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Km,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Sf(l),v=Wm(m),y=H.useRef(!1),b=Vd(i),x=Vd(r),S=Vd(o),C=Vd(n),w=Vd(p),T=Vd(f),E=z(()=>Pd(h.current.openEvent?.type,v.interactedInside)),D=z(()=>w.current?.()!==!1),O=z((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!V(e,t);if(!B(n))return!1;let i=n;return r.hasMatchingElement(e=>V(e,i))&&(!e||!V(e,i))}),k=z(()=>{v.handler&&=(Qr(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=z(()=>{Hm(v)});return u&&(v.handleCloseOptions=b.current?.__options),H.useEffect(()=>k,[k]),H.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Ur,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),H.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=Md(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,Xr(Ur,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,Xr(Ur,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!B(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!zl(v.pointerType))return;let t=Nd(S.current),n=Md(x.current,`open`,v.pointerType),r=Br(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(B(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(V(e,r)){s=e;break}}B(i)&&B(o)&&!m.context.triggerElements.hasElement(i)&&V(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&B(s)&&B(o)&&V(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,Xr(Ur,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,Xr(Ur,e,s))}):g&&D()&&m.setOpen(!0,Xr(Ur,e,s)))}function i(t){if(E()){A();return}k();let n=Qr(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Dl(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!V(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?Bd(Z(t,`mousemove`,r,{once:!0}),Z(t,`mouseenter`,r),Z(t,`mouseleave`,i)):Bd(Z(t,`mouseenter`,r),Z(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),H.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!zl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);if(e){let t=v.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Um(v,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=Nd(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,Xr(Ur,t,n))}v.pointerType===`touch`?id.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var Jm=.1,Ym=Jm*Jm,Xm=.5;function Zm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Qm(e,t,n,r,i,a,o,s,c,l){let u=!1;return Zm(e,t,n,r,i,a)&&(u=!u),Zm(e,t,i,a,o,s)&&(u=!u),Zm(e,t,o,s,c,l)&&(u=!u),Zm(e,t,c,l,n,r)&&(u=!u),u}function $m(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function eh(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function th(e={}){let{blockPointerEvents:t=!1}=e,n=new qu,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Ym;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=eh(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=eh(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=eh(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=eh(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!$m(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?Xm/2:Xm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Xm+1,o=C||T?S.bottom-Xm:S.top,s=C?T?S.bottom-Xm:S.top:S.bottom-Xm;M=Qm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Xm/2:Xm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Xm,o=C||T?S.top+Xm:S.bottom,s=C?T?S.top+Xm:S.bottom:S.top+Xm;M=Qm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Xm/2:Xm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Xm+1,o=w||E?S.right-Xm:S.left,s=w?E?S.right-Xm:S.left:S.right-Xm;M=Qm(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Xm/2:Xm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Xm,o=w||E?S.left+Xm:S.right,s=w?E?S.left+Xm:S.right:S.left+Xm;M=Qm(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var nh=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),rh=function(e){return e[e.open=vd.open]=`open`,e[e.closed=vd.closed]=`closed`,e[e.startingStyle=vd.startingStyle]=`startingStyle`,e[e.endingStyle=vd.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),ih=H.createContext(void 0);function ah(){let e=H.useContext(ih);if(e===void 0)throw Error(ln(26));return e}var oh=`ArrowUp`,sh=`ArrowDown`,ch=`ArrowLeft`,lh=`ArrowRight`,uh=`Home`,dh=new Set([ch,lh]),fh=new Set([ch,lh,uh,`End`]),ph=new Set([oh,sh]),mh=new Set([oh,sh,uh,`End`]),hh=new Set([...dh,...ph]),gh=new Set([...hh,uh,`End`]),_h=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function vh(e){return Sr(e)&&e.tagName===`INPUT`}function yh(e){return!!(vh(e)&&e.selectionStart!=null||Sr(e)&&e.tagName===`TEXTAREA`)}function bh(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=xh(e,t,`top`),r=Sh(e),i=Sh(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function xh(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Sh(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Ch={...Ed,...rd,nestedDialogOpen(e){return e?{[rh.nestedDialogOpen]:``}:null}},wh=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=_d(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;ah(),od({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?mm(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=an(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...pm,hidden:!m,onKeyDown(e){gh.has(e.key)&&e.stopPropagation()},style:{[nh.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:Ch});return(0,U.jsx)(jf,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})});function Th(e){return sn(19)?e:e?`true`:void 0}var Eh=H.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,U.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Dh=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=_d(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,U.jsx)(ih.Provider,{value:n,children:(0,U.jsxs)(_f,{ref:t,...r,children:[a&&o===!0&&(0,U.jsx)(Eh,{ref:i.context.internalBackdropRef,inert:Th(!s)}),e.children]})}):null}),Oh={},kh={},Ah=``;function jh(e){if(typeof document>`u`)return!1;let t=Qr(e);return xr(t).innerWidth-t.documentElement.clientWidth>0}function Mh(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Qr(e),n=t.documentElement,r=t.body,i=gr(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Nh(e){let t=Qr(e),n=t.documentElement,r=t.body,i=gr(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Ph(e){let t=Qr(e),n=t.documentElement,r=t.body,i=xr(n),a=0,o=0,s=!1,c=Zu.create();if(vl&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Oh={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Ah=n.style.scrollBehavior,kh={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=gr(n)?n:r;if(s=Mh(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Oh),Object.assign(r.style,kh),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Ah)}function d(){u(),c.request(l)}l();let f=Z(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Fh=new class{lockCount=0;restore=null;timeoutLock=qu.create();timeoutUnlock=qu.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Qr(e).documentElement,n=xr(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=on;return}let r=pl||!jh(e);this.restore=r?Nh(e):Ph(e)}};function Ih(e=!0,t=null){R(()=>{if(e)return Fh.acquire(t)},[e,t])}function Lh(e){let{store:t,actionsRef:n}=e,r=t.useState(`open`);Tm(t,r),Sm(t);let{forceUnmount:i}=Cm(r,t),a=H.useCallback(()=>{t.setOpen(!1,Xr(Yr))},[t]);H.useImperativeHandle(n,()=>({unmount:i,close:a}),[i,a])}function Rh({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=H.useState(0),[u,d]=H.useState(0),f=c===0,p=Lf(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=Br(t);return f&&!i?a&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||V(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0:!1},escapeKey:f});return Ih(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),d(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{l(0),d(0)}),H.useEffect(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(c+1,u+ +!!n),t?.onNestedDialogClose&&!r&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&r&&t.onNestedDialogClose()}),[n,r,c,u,t]),wm(e,{activeTriggerProps:p.reference??en,inactiveTriggerProps:p.trigger??en,popupProps:p.floating??en,nestedOpenDialogCount:c,nestedOpenDrawerCount:u}),null}var zh={...Fm,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},Bh=class e extends lm{constructor(e,t,n=!1){let r=new Em,i=Vh(e);i.floatingRootContext=km(r,t,n),super(i,{popupRef:H.createRef(),backdropRef:H.createRef(),internalBackdropRef:H.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},zh)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};_m(n,e,t.trigger),this.update(n)};static useStore(t,n){return hm(t,(t,r)=>new e(n,t,r),!0).store}};function Vh(e={}){return{...Om(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Hh(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=_d(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=Bh.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});qp(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);Lh({store:b,actionsRef:l});let w=x||S,T=H.useMemo(()=>({store:b}),[b]);return(0,U.jsx)(hd.Provider,{value:!1,children:(0,U.jsxs)(gd.Provider,{value:T,children:[w&&(0,U.jsx)(Rh,{store:b,parentContext:v?.store.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})})}function Uh(e){return Hh(e,H.useContext(hd)?`drawer`:`dialog`)}var Wh=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=_d(),c=Rr(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),an(`h2`,e,{ref:t,props:[{id:c},o]})});function Gh(e){let t=(0,q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,U.jsx)(Uh,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Kh(e){let t=(0,q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,U.jsx)(Dh,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function qh(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(Od,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Jh(e){let t=(0,q.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,U.jsx)(qh,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=yn(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,U.jsxs)(kd,{"data-slot":`sheet-close`,render:(0,U.jsx)(Mr,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,U.jsx)(qc,{}),(0,U.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,U.jsxs)(Kh,{children:[l,(0,U.jsxs)(wh,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function Yh(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Xh(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(Wh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Zh(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(Ad,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Qh=H.createContext(void 0);function $h(e){let t=H.useContext(Qh);if(t===void 0&&!e)throw Error(ln(72));return t}var eg={...Fm,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},tg=class e extends lm{constructor(e,t,n=!1){let r=new Em,i={...ng(),...e};i.floatingRootContext=km(r,t,n),super(i,{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},eg)}setOpen=(e,t)=>{ym(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Xr(Hr,e))}static useStore(t,n){return hm(t,(t,r)=>new e(n,t,r)).store}};function ng(){return{...Om(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var rg=Qp(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=tg.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});bm(p,r,n,d),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),Sm(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Cm(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=H.useRef(null);R(()=>{m&&t&&p.setOpen(!1,Xr(Wr))},[m,t,p]),R(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),R(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=H.useCallback(()=>{p.setOpen(!1,Xr(Yr))},[p]);H.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,U.jsxs)(Qh.Provider,{value:p,children:[E&&(0,U.jsx)(ig,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function ig({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Lf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Pf(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return wm(e,{activeTriggerProps:H.useMemo(()=>nn(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:H.useMemo(()=>nn(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:H.useMemo(()=>nn(pm,a.floating,i.floating),[a.floating,i.floating])}),null}var ag=H.createContext(void 0);function og(){return H.useContext(ag)}var sg=function(e){return e[e.popupOpen=yd.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),cg=`data-base-ui-tooltip-trigger`;function lg(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),F=zm(v,{enabled:!A}).reference,oe=e=>{let t=N.current,n=lg(e),r=ie(n),i=y.current,a=i&&n&&V(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Xr(Ur,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&zl(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,Xr(Ur,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},se=m.useState(`triggerProps`,C);return an(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,F,C||M!==`none`?se:void 0,{onMouseOver(e){oe(e.nativeEvent)},onFocus(e){re(lg(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[sg.triggerDisabled]:A?``:void 0,[cg]:A?void 0:``},f],stateAttributesMapping:wd})}),fg=H.createContext(void 0);function pg(){let e=H.useContext(fg);if(e===void 0)throw Error(ln(70));return e}var mg=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=gf({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,U.jsxs)(H.Fragment,{children:[l,c&&id.createPortal(n,c)]})}),hg=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return $h().useState(`mounted`)||n?(0,U.jsx)(fg.Provider,{value:n,children:(0,U.jsx)(mg,{ref:t,...r})}):null}),gg=H.createContext(void 0);function _g(){let e=H.useContext(gg);if(e===void 0)throw Error(ln(71));return e}var vg=H.createContext(void 0);function yg(){return H.useContext(vg)?.direction??`ltr`}var bg=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Yl(e,t)||{};if(l==null)return{};let f=pu(u),p={x:n,y:r},m=tu(i),h=$l(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Jl(k,j,A),ee=!c.arrow&&Zl(i)!=null&&j!==M&&a.reference[h]/2-(j({...bg(e),options:[e,t]}),Sg=Kp().fn,Cg={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Sg(e)).data?.referenceHidden||a}}}},wg={sideX:`left`,sideY:`top`},Tg={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=xr(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:wg};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Qr(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Xl(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:wg.sideX,g=f===`top`?`bottom`:wg.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Eg(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Dg(e,t,n){let{rects:r,placement:i}=e;return{side:Eg(t,Xl(i),n),align:Zl(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Og(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=H.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=z(D),k=D?O:t,A=Vd(t),j=Vd(h),M=yg()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=H.useRef(null),oe=Vd(i),se=Vd(o),I=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(Vp(e=>{let t=Dg(e,r,M),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[I,ce,M,r]));let ue=T===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:Wp({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),pe=ue?null:Hp(e=>{let t=Qr(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:de,limiter:l||_?void 0:Up(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=eu(Xl(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(Gp({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=xr(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),xg(e=>({element:F.current||Qr(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Xl(a),l=eu(c),u=F.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Dg(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},Cg,y),R(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=H.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Lm({rootContext:m,open:p?h:void 0,placement:N,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Dp(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||wg,De=Ce?n:`fixed`,Oe=H.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=H.useRef(null);R(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(kg(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,k,A]),H.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&kg(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,k,A]),H.useEffect(()=>{if(p&&h&&ge.reference&&ge.floating)return Dp(ge.reference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=Xl(xe),je=Eg(r,Ae,M),Me=Zl(xe)||`center`,Ne=!!ye.hide?.referenceHidden;R(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=H.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return H.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:F,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,F,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function kg(e){return e!=null&&`current`in e}function Ag(e){return e===`starting`?lf:en}function jg(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),an(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Ag(r),i],stateAttributesMapping:Ed})}var Mg=H.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=df,style:g,..._}=e,v=$h(),y=pg(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=Og({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Tg:void 0}),O=jg(e,H.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,U.jsx)(gg.Provider,{value:D,children:O})}),Ng={...Ed,...rd},Pg=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=$h(),{side:s,align:c}=_g(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);od({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Gm(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return an(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,Ag(d),a],stateAttributesMapping:Ng})}),Fg=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=$h(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=_g();return an(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Ed})}),Ig=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=H.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=H.useMemo(()=>({open:t,close:n}),[t,n]);return(0,U.jsx)(ag.Provider,{value:i,children:(0,U.jsx)(Rd,{delay:a,timeoutMs:r,children:e.children})})};function Lg(e){let t=(0,q.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,U.jsx)(Ig,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Rg(e){let t=(0,q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,U.jsx)(Lg,{children:(0,U.jsx)(rg,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function zg(e){let t=(0,q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,U.jsx)(dg,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Bg(e){let t=(0,q.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=yn(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,U.jsx)(Fg,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,U.jsxs)(Pg,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,U.jsx)(hg,{children:(0,U.jsx)(Mg,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var Vg=window.matchMedia(`(max-width: 767px)`);function Hg(e){return Vg.addEventListener(`change`,e),()=>Vg.removeEventListener(`change`,e)}function Ug(){return Vg.matches}function Wg(){return(0,H.useSyncExternalStore)(Hg,Ug)}var Gg=`sidebar_state`,Kg=3600*24*7,qg=`12rem`,Jg=`16rem`,Yg=`3rem`,Xg=`b`,Zg=H.createContext(null);function Qg(){let e=H.useContext(Zg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function $g(e){let t=(0,q.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=Wg(),[d,f]=H.useState(!1),[p,m]=H.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${Gg}=${t}; path=/; max-age=${Kg}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(t_):_(e_),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===Xg&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),H.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=yn(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":qg,"--sidebar-width-icon":Yg,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,U.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,U.jsx)(Zg.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function e_(e){return!e}function t_(e){return!e}function n_(e){let t=(0,q.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=Qg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=yn(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,U.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":Jg},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsxs)(Yh,{className:`sr-only`,children:[(0,U.jsx)(Xh,{children:`Sidebar`}),(0,U.jsx)(Zh,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,U.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,U.jsxs)(Jh,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,U.jsx)(Gh,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=yn(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,U.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=yn(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,U.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,U.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,U.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function r_(e){let t=(0,q.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=Qg(),o;t[4]===n?o=t[5]:(o=yn(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(Ic,{}),l=(0,U.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,U.jsxs)(Mr,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function i_(e){let t=(0,q.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=Qg(),a;t[3]===n?a=t[4]:(a=yn(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,U.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function a_(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function o_(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function s_(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(md,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function c_(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function l_(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function u_(e){let t=(0,q.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=ac,r=`div`,i=nn({className:yn(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function d_(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function f_(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=yn(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var p_=cn(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function m_(e){let t=(0,q.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=Qg(),m=nn({className:yn(p_({variant:u,size:d}),s)},c),h=o?zg:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=ac(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,U.jsx)(Bg,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,U.jsxs)(Rg,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var h_=class{async sign(e,t,n){return e}},g_=`ref`,__=-1,v_=!0,y_=`isSet`,b_=`PartitionResult`,x_=`booleanEquals`,S_=`stringEquals`,C_=`getAttr`,w_=`us-east-1`,T_=`sigv4`,E_=`sts`,D_=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,O_={[g_]:`Endpoint`},k_={[g_]:`Region`},A_={[g_]:b_},j_={},M_=[k_],N_={conditions:[[y_,[O_]],[y_,M_],[`aws.partition`,M_,b_],[x_,[{[g_]:`UseFIPS`},v_]],[x_,[{[g_]:`UseDualStack`},v_]],[S_,[k_,`aws-global`]],[x_,[{[g_]:`UseGlobalEndpoint`},v_]],[S_,[k_,`eu-central-1`]],[x_,[{fn:C_,argv:[A_,`supportsDualStack`]},v_]],[x_,[{fn:C_,argv:[A_,`supportsFIPS`]},v_]],[S_,[k_,`ap-south-1`]],[S_,[k_,`eu-north-1`]],[S_,[k_,`eu-west-1`]],[S_,[k_,`eu-west-2`]],[S_,[k_,`eu-west-3`]],[S_,[k_,`sa-east-1`]],[S_,[k_,w_]],[S_,[k_,`us-east-2`]],[S_,[k_,`us-west-2`]],[S_,[k_,`us-west-1`]],[S_,[k_,`ca-central-1`]],[S_,[k_,`ap-southeast-1`]],[S_,[k_,`ap-northeast-1`]],[S_,[k_,`ap-southeast-2`]],[S_,[{fn:C_,argv:[A_,`name`]},`aws-us-gov`]]],results:[[__],[`https://sts.amazonaws.com`,{authSchemes:[{name:T_,signingName:E_,signingRegion:w_}]}],[D_,{authSchemes:[{name:T_,signingName:E_,signingRegion:`{Region}`}]}],[__,`Invalid Configuration: FIPS and custom endpoint are not supported`],[__,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[O_,j_],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,j_],[__,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,j_],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,j_],[__,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,j_],[__,`DualStack is enabled but this partition does not support DualStack`],[D_,j_],[__,`Invalid Configuration: Missing Region`]]},P_=2,F_=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),I_=or.from(F_,P_,N_.conditions,N_.results),L_=new Xn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),R_=(e,t={})=>L_.get(e,()=>ur(I_,{endpointParams:e,logger:t.logger}));Yn.aws=On;var z_=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=kn(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await ir(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:kn(t).operation,region:await dn(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function B_(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function V_(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function H_(e){return{schemeId:`smithy.api#noAuth`}}var U_=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(pn.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(R_,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(H_(e)),t.push(V_(e));break;case`AssumeRoleWithWebIdentity`:t.push(H_(e)),t.push(V_(e));break;default:t.push(B_(e)),t.push(V_(e))}return t},{"aws.auth#sigv4":B_,"aws.auth#sigv4a":V_,"smithy.api#noAuth":H_}),W_=e=>{let t=gn(fr(e));return Object.assign(t,{authSchemePreference:dn(e.authSchemePreference??[])})},G_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),K_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},q_={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/signature-v4-multi-region":`^3.996.38`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},J_=class e extends qn{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Y_=class e extends J_{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},X_=class e extends J_{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Z_=class e extends J_{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Q_=class e extends J_{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$_=class e extends J_{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ev=class e extends J_{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tv=class e extends J_{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nv=class e extends J_{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rv=class e extends J_{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iv=class e extends J_{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},av=class e extends J_{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ov=class e extends J_{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sv=`Arn`,cv=`AccessKeyId`,lv=`Account`,uv=`Credentials`,dv=`DurationSeconds`,fv=`Expiration`,pv=`ExpiredTokenException`,mv=`ExpiredTradeInTokenException`,hv=`GetCallerIdentity`,gv=`GetCallerIdentityRequest`,_v=`GetCallerIdentityResponse`,vv=`GetSessionToken`,yv=`GetSessionTokenRequest`,bv=`GetSessionTokenResponse`,xv=`InvalidAuthorizationMessageException`,Sv=`IDPCommunicationErrorException`,Cv=`IDPRejectedClaimException`,wv=`InvalidIdentityTokenException`,Tv=`JWTPayloadSizeExceededException`,Ev=`MalformedPolicyDocumentException`,Dv=`OutboundWebIdentityFederationDisabledException`,Ov=`PackedPolicyTooLargeException`,kv=`RegionDisabledException`,Av=`SecretAccessKey`,jv=`SessionDurationEscalationException`,Mv=`SerialNumber`,Nv=`SessionToken`,Pv=`TokenCode`,Fv=`UserId`,Iv=`accessKeySecretType`,Lv=`awsQueryError`,Rv=`client`,zv=`error`,Bv=`httpError`,Vv=`message`,Hv=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,Uv=`com.amazonaws.sts`,Wv=mr.for(Hv),Gv=[-3,Hv,`STSServiceException`,0,[],[]];Wv.registerError(Gv,J_);var Kv=mr.for(Uv),qv=[-3,Uv,pv,{[Lv]:[`ExpiredTokenException`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError(qv,Y_);var Jv=[-3,Uv,mv,{[Lv]:[`ExpiredTradeInTokenException`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError(Jv,rv);var Yv=[-3,Uv,Sv,{[Lv]:[`IDPCommunicationError`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError(Yv,tv);var Xv=[-3,Uv,Cv,{[Lv]:[`IDPRejectedClaim`,403],[zv]:Rv,[Bv]:403},[Vv],[0]];Kv.registerError(Xv,$_);var Zv=[-3,Uv,xv,{[Lv]:[`InvalidAuthorizationMessageException`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError(Zv,nv);var Qv=[-3,Uv,wv,{[Lv]:[`InvalidIdentityToken`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError(Qv,ev);var $v=[-3,Uv,Tv,{[Lv]:[`JWTPayloadSizeExceededException`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError($v,iv);var ey=[-3,Uv,Ev,{[Lv]:[`MalformedPolicyDocument`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError(ey,X_);var ty=[-3,Uv,Dv,{[Lv]:[`OutboundWebIdentityFederationDisabledException`,403],[zv]:Rv,[Bv]:403},[Vv],[0]];Kv.registerError(ty,av);var ny=[-3,Uv,Ov,{[Lv]:[`PackedPolicyTooLarge`,400],[zv]:Rv,[Bv]:400},[Vv],[0]];Kv.registerError(ny,Z_);var ry=[-3,Uv,kv,{[Lv]:[`RegionDisabledException`,403],[zv]:Rv,[Bv]:403},[Vv],[0]];Kv.registerError(ry,Q_);var iy=[-3,Uv,jv,{[Lv]:[`SessionDurationEscalationException`,403],[zv]:Rv,[Bv]:403},[Vv],[0]];Kv.registerError(iy,ov);var ay=[Wv,Kv],oy=[0,Uv,Iv,8,0],sy=[3,Uv,uv,0,[cv,Av,Nv,fv],[0,[()=>oy,0],0,4],4],cy=[3,Uv,gv,0,[],[]],ly=[3,Uv,_v,0,[Fv,lv,sv],[0,0,0]],uy=[3,Uv,yv,0,[dv,Mv,Pv],[1,0,0]],dy=[3,Uv,bv,0,[uv],[[()=>sy,0]]],fy=[9,Uv,hv,0,()=>cy,()=>ly],py=[9,Uv,vv,0,()=>uy,()=>dy],my=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??$r,base64Encoder:e?.base64Encoder??ti,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??R_,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??U_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new An},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new mn},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new h_}],logger:e?.logger??new Qn,protocol:e?.protocol??Wn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:ay,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,sha256:e?.sha256??Zn,signerConstructor:e?.signerConstructor??pn,urlParser:e?.urlParser??nr,utf8Decoder:e?.utf8Decoder??ii,utf8Encoder:e?.utf8Encoder??ei}),hy=e=>{let t=er(e),n=()=>t().then(hr),r=my(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ri,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Mn({serviceId:r.serviceId,clientVersion:q_.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??hn(`Region is missing`),requestHandler:In.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Cn),streamCollector:e?.streamCollector??ni,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},gy=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},_y=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),vy=(e,t)=>{let n=Object.assign(tr(e),Gn(e),Un(e),gy(e));return t.forEach(e=>e.configure(n)),Object.assign(e,un(n),dr(n),Pn(n),_y(n))},yy=class extends _n{config;constructor(...[e]){let t=hy(e||{});super(t),this.initConfig=t;let n=vy(W_(rr(Bn(En(sr(xn(G_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(pr(this.config)),this.middlewareStack.use(vn(this.config)),this.middlewareStack.use(wn(this.config)),this.middlewareStack.use(Vn(this.config)),this.middlewareStack.use(Rn(this.config)),this.middlewareStack.use(bn(this.config)),this.middlewareStack.use(zn(this.config)),this.middlewareStack.use(fn(this.config,{httpAuthSchemeParametersProvider:z_,identityProviderConfigProvider:async e=>new Tn({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Fn(this.config))}destroy(){super.destroy()}},by=$n(K_,`AWSSecurityTokenServiceV20110615`,`STSClient`,Jn),xy={},Sy=(e,t,n,r)=>[],Cy=class extends by(xy,Sy,`GetCallerIdentity`,fy){},wy=class extends by(xy,Sy,`GetSessionToken`,py){},Ty=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:e=>new TextEncoder().encode(e);function Ey(e){return e instanceof Uint8Array?e:typeof e==`string`?Ty(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Dy(e){return typeof e==`string`?e.length===0:e.byteLength===0}var Oy={name:`SHA-256`},ky={name:`HMAC`,hash:Oy},Ay=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),jy={};function My(){return typeof window<`u`?window:typeof self<`u`?self:jy}var Ny=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!Dy(e)){var t=Ey(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return My().crypto.subtle.sign(ky,t,e.toHash).then(function(e){return new Uint8Array(e)})}):Dy(this.toHash)?Promise.resolve(Ay):Promise.resolve().then(function(){return My().crypto.subtle.digest(Oy,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array,this.secret&&this.secret!==void 0&&(this.key=new Promise(function(t,n){My().crypto.subtle.importKey(`raw`,Ey(e.secret),ky,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}();function Py(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Fy(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]Ry)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Iy[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),By=function(){function e(e){this.secret=e,this.hash=new zy,this.reset()}return e.prototype.update=function(e){if(!(Dy(e)||this.error))try{this.hash.update(Ey(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Py(this,void 0,void 0,function(){return Fy(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new zy,this.secret){this.outer=new zy;var e=Vy(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new zy;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Hy=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Uy(e){if(Wy(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return Gy(t)}return!1}function Wy(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function Gy(e){return e&&Hy.every(function(t){return typeof e[t]==`function`})}var Ky=function(){function e(e){Uy(My())?this.hash=new Ny(e):this.hash=new By(e)}return e.prototype.update=function(e,t){this.hash.update(Ey(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),qy=`ap-southeast-2`,Jy=9999,Yy=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function Xy(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function Zy({action:e,credentials:t,service:n=`spinifex`,params:r}){let i=window.location.protocol.replace(`:`,``),a=`Action=${e}${r?`&${new URLSearchParams(r).toString()}`:``}`,o=new Dn({method:`POST`,protocol:i,hostname:`localhost`,port:Jy,path:`/`,headers:{host:`localhost:${Jy}`,"content-type":`application/x-www-form-urlencoded`},body:a}),s=await new Ln({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:qy,service:n,sha256:Ky}).sign(o),c={};for(let[e,t]of Object.entries(s.headers))typeof t==`string`&&(c[e]=t);let l=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,u=await fetch(l,{method:`POST`,headers:c,body:a});if(!u.ok){let t=await u.text().catch(()=>``),n=Xy(t,`Code`),r=Xy(t,`Message`)??t;throw new Yy(`${e} failed: ${u.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,u.status)}return await u.json()}var Qy=`ap-southeast-2`,$y=`${window.location.protocol}//localhost:9999`,eb=43200;function tb(e){e.middlewareStack.add(e=>async t=>(Dn.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function nb(e){let t=new yy({endpoint:$y,region:Qy,credentials:e});return tb(t),t}function rb(){let e=cr();if(!e)throw Error(`AWS credentials not configured`);return nb({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function ib(e){let t=(await nb(e).send(new wy({DurationSeconds:eb}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var ab=`000000000001`;function ob(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var sb=(0,H.createContext)(void 0);function cb({children:e}){let[t,n]=(0,H.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,H.useEffect)(()=>{async function e(){let e=cr();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await rb().send(new Cy({})),r=t.Account??null,i=r===ab,a=null;if(i)try{a=await Zy({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:ob(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,U.jsx)(sb,{value:t,children:e})}function lb(){let e=(0,H.useContext)(sb);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var ub=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function db(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&ub.has(t)}var fb=$n(at,`CertificateManager`,`ACMClient`,Jn),pb={ServiceType:{type:`staticContextParams`,value:`ACM`}},mb=(e,t,n,r)=>[],hb=class extends fb(pb,mb,`ListCertificates`,Xt){};function gb(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?Hn(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var _b=`2016-11-15`;function vb(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await lr(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():jn(i),o=new Dn({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:_b,DestinationRegion:t}}),s=await new Ln({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:gb(s)}},Dn.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${Kn(n.input.PresignedUrl)}`)}}return t(n)}}var yb={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},bb=e=>({applyToStack:t=>{t.add(vb(e),yb)}}),xb=$n(tt,`AmazonEC2`,`EC2Client`,Jn),Sb={},Cb=(e,t,n,r)=>[],wb=(e,t,n,r)=>[bb(n)],Tb=class extends xb(Sb,Cb,`DescribeAddresses`,Se){},Eb=class extends xb(Sb,Cb,`DescribeAvailabilityZones`,De){},Db=class extends xb(Sb,Cb,`DescribeIamInstanceProfileAssociations`,Me){},Ob=class extends xb(Sb,Cb,`DescribeImages`,He){},kb=class extends xb(Sb,Cb,`DescribeInstances`,ve){},Ab=class extends xb(Sb,Cb,`DescribeInstanceTypes`,Qt){},jb=class extends xb(Sb,Cb,`DescribeInternetGateways`,Je){},Mb=class extends xb(Sb,Cb,`DescribeKeyPairs`,Ee){},Nb=class extends xb(Sb,Cb,`DescribeNatGateways`,qe){},Pb=class extends xb(Sb,Cb,`DescribePlacementGroups`,Ye){},Fb=class extends xb(Sb,Cb,`DescribeRegions`,Te){},Ib=class extends xb(Sb,Cb,`DescribeRouteTables`,je){},Lb=class extends xb(Sb,Cb,`DescribeSecurityGroups`,Lt){},Rb=class extends xb(Sb,Cb,`DescribeSnapshots`,ke){},zb=class extends xb(Sb,Cb,`DescribeSubnets`,Qe){},Bb=class extends xb(Sb,Cb,`DescribeVolumes`,Xe){},Vb=class extends xb(Sb,Cb,`DescribeVpcs`,$e){},Hb=$n(Wt,`AmazonEC2ContainerRegistry_V20150921`,`ECRClient`,Jn),Ub={},Wb=(e,t,n,r)=>[],Gb=class extends Hb(Ub,Wb,`DescribeImages`,we){},Kb=class extends Hb(Ub,Wb,`DescribeRepositories`,Ae){},qb=class extends Hb(Ub,Wb,`GetLifecyclePolicy`,It){},Jb=class extends Hb(Ub,Wb,`GetRepositoryPolicy`,Ze){},Yb=$n(Zt,`AmazonEC2ContainerServiceV20141113`,`ECSClient`,Jn),Xb={},Zb=(e,t,n,r)=>[],Qb=class extends Yb(Xb,Zb,`DescribeClusters`,Ke){},$b=class extends Yb(Xb,Zb,`DescribeContainerInstances`,xe){},ex=class extends Yb(Xb,Zb,`DescribeServices`,ye){},tx=class extends Yb(Xb,Zb,`DescribeTaskDefinition`,ze){},nx=class extends Yb(Xb,Zb,`DescribeTasks`,wt){},rx=class extends Yb(Xb,Zb,`ListClusters`,_e){},ix=class extends Yb(Xb,Zb,`ListContainerInstances`,St){},ax=class extends Yb(Xb,Zb,`ListServices`,Pe){},ox=class extends Yb(Xb,Zb,`ListTaskDefinitions`,Le){},sx=class extends Yb(Xb,Zb,`ListTasks`,Be){},cx=class extends oi(si,ai,`DescribeAccessEntry`,bt){},lx=class extends oi(si,ai,`DescribeAddon`,rt){},ux=class extends oi(si,ai,`DescribeAddonVersions`,Mt){},dx=class extends oi(si,ai,`DescribeCluster`,Vt){},fx=class extends oi(si,ai,`DescribeNodegroup`,st){},px=class extends oi(si,ai,`ListAccessEntries`,Kt){},mx=class extends oi(si,ai,`ListAccessPolicies`,lt){},hx=class extends oi(si,ai,`ListAddons`,pt){},gx=class extends oi(si,ai,`ListAssociatedAccessPolicies`,Pt){},_x=class extends oi(si,ai,`ListClusters`,Dt){},vx=class extends oi(si,ai,`ListNodegroups`,_t){},yx=class extends li(ui,ci,`DescribeListeners`,Ct){},bx=class extends li(ui,ci,`DescribeLoadBalancerAttributes`,Fe){},xx=class extends li(ui,ci,`DescribeLoadBalancers`,Re){},Sx=class extends li(ui,ci,`DescribeRules`,Ve){},Cx=class extends li(ui,ci,`DescribeSSLPolicies`,Ce){},wx=class extends li(ui,ci,`DescribeTags`,Oe){},Tx=class extends li(ui,ci,`DescribeTargetGroupAttributes`,Ne){},Ex=class extends li(ui,ci,`DescribeTargetGroups`,Ue){},Dx=class extends li(ui,ci,`DescribeTargetHealth`,$t){},Ox=class extends fi(pi,di,`GetGroup`,ft){},kx=class extends fi(pi,di,`GetInstanceProfile`,Gt){},Ax=class extends fi(pi,di,`GetPolicy`,At){},jx=class extends fi(pi,di,`GetPolicyVersion`,zt){},Mx=class extends fi(pi,di,`GetRole`,xt){},Nx=class extends fi(pi,di,`GetUser`,it){},Px=class extends fi(pi,di,`ListAccessKeys`,Nt){},Fx=class extends fi(pi,di,`ListAttachedGroupPolicies`,Ht){},Ix=class extends fi(pi,di,`ListAttachedRolePolicies`,ct){},Lx=class extends fi(pi,di,`ListAttachedUserPolicies`,Et){},Rx=class extends fi(pi,di,`ListGroups`,qt){},zx=class extends fi(pi,di,`ListGroupsForUser`,ut){},Bx=class extends fi(pi,di,`ListInstanceProfiles`,mt){},Vx=class extends fi(pi,di,`ListInstanceProfilesForRole`,Ft){},Hx=class extends fi(pi,di,`ListPolicies`,Ot){},Ux=class extends fi(pi,di,`ListRoles`,vt){},Wx=class extends fi(pi,di,`ListUsers`,gt){},Gx=class extends Ie(Jt,be,`ListBuckets`,ht){},Kx=class extends Ie(Ge,be,`ListObjectsV2`,et){},qx=!1;function Jx(e,t){qx||!db(e)||(qx=!0,ar(),Ut(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Yx(){let e=new ma({queryCache:new pa({onError:t=>Jx(t,e)}),mutationCache:new da({onError:t=>Jx(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Xx(){let e=(0,q.c)(8),{theme:t,setTheme:n}=ic(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(Hc,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,U.jsx)(Nc,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,U.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,U.jsxs)(Mr,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function Zx(){let e=(0,q.c)(7),{isAdmin:t,license:n}=lb(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=yn(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,U.jsx)(r_,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,U.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:yn(kr({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,U.jsx)(Xx,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,U.jsxs)(`header`,{className:i,children:[a,(0,U.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function Qx(){let e=(0,q.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,U.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,U.jsx)(Yt,{to:`/`,children:(0,U.jsx)(Mr,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function $x(){let e=(0,q.c)(217),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:eS},e[0]=t):t=e[0];let n=Gs(t),r=vs(),i=ga(),{isAdmin:a}=lb(),o;e[1]!==r||e[2]!==i?(o=function(){ar(),Ut(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsxs)(a_,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,U.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,U.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,U.jsx)(u_,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,U.jsx)(Tc,{className:`size-4`}),f=(0,U.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/`,children:(0,U.jsxs)(m_,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/nodes`,children:(0,U.jsxs)(m_,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,U.jsx)(zc,{className:`size-4`}),(0,U.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,U.jsxs)(l_,{children:[l,(0,U.jsxs)(d_,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,U.jsx)(u_,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,U.jsx)(zc,{className:`size-4`}),y=(0,U.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-instances`,children:(0,U.jsxs)(m_,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,U.jsx)(Dc,{className:`size-4`}),C=(0,U.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-images`,children:(0,U.jsxs)(m_,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,U.jsx)(Oc,{className:`size-4`}),D=(0,U.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-key-pairs`,children:(0,U.jsxs)(m_,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,U.jsx)(Mc,{className:`size-4`}),j=(0,U.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-addresses`,children:(0,U.jsxs)(m_,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,U.jsx)(wc,{className:`size-4`}),P=(0,U.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-volumes`,children:(0,U.jsxs)(m_,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,U.jsx)(yc,{className:`size-4`}),ie=(0,U.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-snapshots`,children:(0,U.jsxs)(m_,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let F;e[53]===n?F=e[54]:(F=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=F);let oe,se;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,U.jsx)(kc,{className:`size-4`}),se=(0,U.jsx)(`span`,{children:`Placement Groups`}),e[55]=oe,e[56]=se):(oe=e[55],se=e[56]);let I;e[57]===F?I=e[58]:(I=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-placement-groups`,children:(0,U.jsxs)(m_,{isActive:F,tooltip:`Placement Groups`,children:[oe,se]})})}),e[57]=F,e[58]=I);let ce;e[59]===n?ce=e[60]:(ce=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=ce);let le,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,U.jsx)(Kc,{className:`size-4`}),ue=(0,U.jsx)(`span`,{children:`Load Balancers`}),e[61]=le,e[62]=ue):(le=e[61],ue=e[62]);let de;e[63]===ce?de=e[64]:(de=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-load-balancers`,children:(0,U.jsxs)(m_,{isActive:ce,tooltip:`Load Balancers`,children:[le,ue]})})}),e[63]=ce,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,U.jsx)(Sc,{className:`size-4`}),me=(0,U.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-target-groups`,children:(0,U.jsxs)(m_,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==ae||e[77]!==I||e[78]!==de||e[79]!==he?(ge=(0,U.jsxs)(l_,{children:[g,(0,U.jsxs)(d_,{children:[b,w,O,M,te,ae,I,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=ae,e[77]=I,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,U.jsx)(u_,{children:`Networking`}),e[81]=_e):_e=e[81];let ve;e[82]===n?ve=e[83]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ve);let ye,be;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,U.jsx)(Pc,{className:`size-4`}),be=(0,U.jsx)(`span`,{children:`VPCs`}),e[84]=ye,e[85]=be):(ye=e[84],be=e[85]);let xe;e[86]===ve?xe=e[87]:(xe=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-vpcs`,children:(0,U.jsxs)(m_,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[86]=ve,e[87]=xe);let Se;e[88]===n?Se=e[89]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Se);let Ce,we;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,U.jsx)(Ac,{className:`size-4`}),we=(0,U.jsx)(`span`,{children:`Subnets`}),e[90]=Ce,e[91]=we):(Ce=e[90],we=e[91]);let Te;e[92]===Se?Te=e[93]:(Te=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-subnets`,children:(0,U.jsxs)(m_,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[92]=Se,e[93]=Te);let Ee;e[94]===n?Ee=e[95]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=Ee);let De,Oe;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,U.jsx)(Bc,{className:`size-4`}),Oe=(0,U.jsx)(`span`,{children:`Security Groups`}),e[96]=De,e[97]=Oe):(De=e[96],Oe=e[97]);let ke;e[98]===Ee?ke=e[99]:(ke=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-security-groups`,children:(0,U.jsxs)(m_,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[98]=Ee,e[99]=ke);let Ae;e[100]===n?Ae=e[101]:(Ae=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ae);let je,Me;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,U.jsx)(Lc,{className:`size-4`}),Me=(0,U.jsx)(`span`,{children:`Route Tables`}),e[102]=je,e[103]=Me):(je=e[102],Me=e[103]);let Ne;e[104]===Ae?Ne=e[105]:(Ne=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-route-tables`,children:(0,U.jsxs)(m_,{isActive:Ae,tooltip:`Route Tables`,children:[je,Me]})})}),e[104]=Ae,e[105]=Ne);let Pe;e[106]===n?Pe=e[107]:(Pe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Pe);let Fe,Ie;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,U.jsx)(Cc,{className:`size-4`}),Ie=(0,U.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Fe,e[109]=Ie):(Fe=e[108],Ie=e[109]);let Le;e[110]===Pe?Le=e[111]:(Le=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-internet-gateways`,children:(0,U.jsxs)(m_,{isActive:Pe,tooltip:`Internet Gateways`,children:[Fe,Ie]})})}),e[110]=Pe,e[111]=Le);let Re;e[112]===n?Re=e[113]:(Re=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Re);let ze,Be;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,U.jsx)(Rc,{className:`size-4`}),Be=(0,U.jsx)(`span`,{children:`NAT Gateways`}),e[114]=ze,e[115]=Be):(ze=e[114],Be=e[115]);let Ve;e[116]===Re?Ve=e[117]:(Ve=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ec2/describe-nat-gateways`,children:(0,U.jsxs)(m_,{isActive:Re,tooltip:`NAT Gateways`,children:[ze,Be]})})}),e[116]=Re,e[117]=Ve);let He;e[118]!==xe||e[119]!==Te||e[120]!==ke||e[121]!==Ne||e[122]!==Le||e[123]!==Ve?(He=(0,U.jsxs)(l_,{children:[_e,(0,U.jsxs)(d_,{children:[xe,Te,ke,Ne,Le,Ve]})]}),e[118]=xe,e[119]=Te,e[120]=ke,e[121]=Ne,e[122]=Le,e[123]=Ve,e[124]=He):He=e[124];let Ue;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,U.jsx)(u_,{children:`Containers`}),e[125]=Ue):Ue=e[125];let We;e[126]===n?We=e[127]:(We=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=We);let Ge,Ke;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,U.jsx)(vc,{className:`size-4`}),Ke=(0,U.jsx)(`span`,{children:`EKS`}),e[128]=Ge,e[129]=Ke):(Ge=e[128],Ke=e[129]);let qe;e[130]===We?qe=e[131]:(qe=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/eks/list-clusters`,children:(0,U.jsxs)(m_,{isActive:We,tooltip:`EKS clusters`,children:[Ge,Ke]})})}),e[130]=We,e[131]=qe);let Je;e[132]===n?Je=e[133]:(Je=n.startsWith(`/ecr/list-repositories`),e[132]=n,e[133]=Je);let Ye,Xe;e[134]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,U.jsx)(Fc,{className:`size-4`}),Xe=(0,U.jsx)(`span`,{children:`ECR`}),e[134]=Ye,e[135]=Xe):(Ye=e[134],Xe=e[135]);let Ze;e[136]===Je?Ze=e[137]:(Ze=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ecr/list-repositories`,children:(0,U.jsxs)(m_,{isActive:Je,tooltip:`ECR repositories`,children:[Ye,Xe]})})}),e[136]=Je,e[137]=Ze);let Qe;e[138]===n?Qe=e[139]:(Qe=n.startsWith(`/ecs/`),e[138]=n,e[139]=Qe);let $e,et;e[140]===Symbol.for(`react.memo_cache_sentinel`)?($e=(0,U.jsx)(xc,{className:`size-4`}),et=(0,U.jsx)(`span`,{children:`ECS`}),e[140]=$e,e[141]=et):($e=e[140],et=e[141]);let tt;e[142]===Qe?tt=e[143]:(tt=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/ecs/list-clusters`,children:(0,U.jsxs)(m_,{isActive:Qe,tooltip:`ECS clusters`,children:[$e,et]})})}),e[142]=Qe,e[143]=tt);let nt;e[144]!==qe||e[145]!==Ze||e[146]!==tt?(nt=(0,U.jsxs)(l_,{children:[Ue,(0,U.jsxs)(d_,{children:[qe,Ze,tt]})]}),e[144]=qe,e[145]=Ze,e[146]=tt,e[147]=nt):nt=e[147];let rt;e[148]===Symbol.for(`react.memo_cache_sentinel`)?(rt=(0,U.jsx)(u_,{children:`IAM`}),e[148]=rt):rt=e[148];let it;e[149]===n?it=e[150]:(it=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[149]=n,e[150]=it);let at,ot;e[151]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,U.jsx)(Gc,{className:`size-4`}),ot=(0,U.jsx)(`span`,{children:`Users`}),e[151]=at,e[152]=ot):(at=e[151],ot=e[152]);let st;e[153]===it?st=e[154]:(st=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/iam/list-users`,children:(0,U.jsxs)(m_,{isActive:it,tooltip:`Users`,children:[at,ot]})})}),e[153]=it,e[154]=st);let ct;e[155]===n?ct=e[156]:(ct=n.startsWith(`/iam/list-groups`)||n.startsWith(`/iam/create-group`),e[155]=n,e[156]=ct);let lt,ut;e[157]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,U.jsx)(Wc,{className:`size-4`}),ut=(0,U.jsx)(`span`,{children:`Groups`}),e[157]=lt,e[158]=ut):(lt=e[157],ut=e[158]);let dt;e[159]===ct?dt=e[160]:(dt=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/iam/list-groups`,children:(0,U.jsxs)(m_,{isActive:ct,tooltip:`Groups`,children:[lt,ut]})})}),e[159]=ct,e[160]=dt);let ft;e[161]===n?ft=e[162]:(ft=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[161]=n,e[162]=ft);let pt,mt;e[163]===Symbol.for(`react.memo_cache_sentinel`)?(pt=(0,U.jsx)(Vc,{className:`size-4`}),mt=(0,U.jsx)(`span`,{children:`Policies`}),e[163]=pt,e[164]=mt):(pt=e[163],mt=e[164]);let ht;e[165]===ft?ht=e[166]:(ht=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/iam/list-policies`,children:(0,U.jsxs)(m_,{isActive:ft,tooltip:`Policies`,children:[pt,mt]})})}),e[165]=ft,e[166]=ht);let gt;e[167]===n?gt=e[168]:(gt=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[167]=n,e[168]=gt);let _t,vt;e[169]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,U.jsx)(Uc,{className:`size-4`}),vt=(0,U.jsx)(`span`,{children:`Roles`}),e[169]=_t,e[170]=vt):(_t=e[169],vt=e[170]);let yt;e[171]===gt?yt=e[172]:(yt=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/iam/list-roles`,children:(0,U.jsxs)(m_,{isActive:gt,tooltip:`Roles`,children:[_t,vt]})})}),e[171]=gt,e[172]=yt);let bt;e[173]===n?bt=e[174]:(bt=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[173]=n,e[174]=bt);let xt,St;e[175]===Symbol.for(`react.memo_cache_sentinel`)?(xt=(0,U.jsx)(Ec,{className:`size-4`}),St=(0,U.jsx)(`span`,{children:`Instance Profiles`}),e[175]=xt,e[176]=St):(xt=e[175],St=e[176]);let Ct;e[177]===bt?Ct=e[178]:(Ct=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/iam/list-instance-profiles`,children:(0,U.jsxs)(m_,{isActive:bt,tooltip:`Instance Profiles`,children:[xt,St]})})}),e[177]=bt,e[178]=Ct);let wt;e[179]!==ht||e[180]!==yt||e[181]!==Ct||e[182]!==st||e[183]!==dt?(wt=(0,U.jsxs)(l_,{children:[rt,(0,U.jsxs)(d_,{children:[st,dt,ht,yt,Ct]})]}),e[179]=ht,e[180]=yt,e[181]=Ct,e[182]=st,e[183]=dt,e[184]=wt):wt=e[184];let Tt;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,U.jsx)(u_,{children:`S3`}),e[185]=Tt):Tt=e[185];let Et;e[186]===n?Et=e[187]:(Et=n.startsWith(`/s3/ls`),e[186]=n,e[187]=Et);let Dt,Ot;e[188]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,U.jsx)(zc,{className:`size-4`}),Ot=(0,U.jsx)(`span`,{children:`Buckets`}),e[188]=Dt,e[189]=Ot):(Dt=e[188],Ot=e[189]);let kt;e[190]===Et?kt=e[191]:(kt=(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/s3/ls`,children:(0,U.jsxs)(m_,{isActive:Et,tooltip:`Buckets`,children:[Dt,Ot]})})}),e[190]=Et,e[191]=kt);let At;e[192]!==a||e[193]!==n?(At=a&&(0,U.jsx)(f_,{children:(0,U.jsx)(Yt,{to:`/s3/service-metrics`,children:(0,U.jsxs)(m_,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,U.jsx)(gc,{className:`size-4`}),(0,U.jsx)(`span`,{children:`Service Metrics`})]})})}),e[192]=a,e[193]=n,e[194]=At):At=e[194];let jt;e[195]!==kt||e[196]!==At?(jt=(0,U.jsxs)(l_,{children:[Tt,(0,U.jsxs)(d_,{children:[kt,At]})]}),e[195]=kt,e[196]=At,e[197]=jt):jt=e[197];let Mt;e[198]===a?Mt=e[199]:(Mt=a&&(0,U.jsxs)(l_,{children:[(0,U.jsx)(u_,{children:`Documentation`}),(0,U.jsx)(d_,{children:(0,U.jsx)(f_,{children:(0,U.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,U.jsxs)(m_,{tooltip:`Documentation`,children:[(0,U.jsx)(_c,{className:`size-4`}),(0,U.jsx)(`span`,{children:`Docs`})]})})})})]}),e[198]=a,e[199]=Mt);let Nt;e[200]!==wt||e[201]!==jt||e[202]!==Mt||e[203]!==ge||e[204]!==He||e[205]!==nt||e[206]!==h?(Nt=(0,U.jsxs)(c_,{children:[h,ge,He,nt,wt,jt,Mt]}),e[200]=wt,e[201]=jt,e[202]=Mt,e[203]=ge,e[204]=He,e[205]=nt,e[206]=h,e[207]=Nt):Nt=e[207];let Pt;e[208]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,U.jsx)(s_,{className:`mx-0 w-full`}),e[208]=Pt):Pt=e[208];let Ft,It;e[209]===Symbol.for(`react.memo_cache_sentinel`)?(Ft=(0,U.jsx)(jc,{className:`size-4`}),It=(0,U.jsx)(`span`,{children:`Sign out`}),e[209]=Ft,e[210]=It):(Ft=e[209],It=e[210]);let Lt;e[211]===s?Lt=e[212]:(Lt=(0,U.jsxs)(o_,{children:[Pt,(0,U.jsx)(d_,{children:(0,U.jsx)(f_,{children:(0,U.jsxs)(m_,{onClick:s,tooltip:`Sign out`,children:[Ft,It]})})})]}),e[211]=s,e[212]=Lt);let Rt;e[213]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,U.jsx)(i_,{}),e[213]=Rt):Rt=e[213];let zt;return e[214]!==Nt||e[215]!==Lt?(zt=(0,U.jsxs)(n_,{collapsible:`icon`,children:[c,Nt,Lt,Rt]}),e[214]=Nt,e[215]=Lt,e[216]=zt):zt=e[216],zt}function eS(e){return e.pathname}function tS(e){let t=(0,q.c)(18),{error:n,reset:r}=e,i=M(),a=ga(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)($x,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,U.jsx)(Zx,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,U.jsx)(`div`,{className:`flex justify-center`,children:(0,U.jsx)(bc,{className:`size-12 text-destructive`})}),d=(0,U.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,U.jsx)(Mr,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,U.jsx)(Yt,{to:`/`,children:(0,U.jsx)(Mr,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,U.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,U.jsxs)(U.Fragment,{children:[c,(0,U.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,U.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,U.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var nS=Ss()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Xs,{}),(0,U.jsx)($x,{}),(0,U.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,U.jsx)(Zx,{}),(0,U.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,U.jsx)(Is,{})})]})]}),errorComponent:tS,notFoundComponent:Qx}),rS=G(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(cr())throw me({to:`/`})},component:K(()=>L(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`)}),iS=G(`/_auth`)({beforeLoad:()=>{if(!cr())throw me({to:`/login`})},component:K(()=>L(()=>import(`./route.js`),__vite__mapDeps([14,1])),`component`)}),aS=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new Eb({});return await Rt().send(e)},staleTime:3e5}),oS=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new kb({});return await Rt().send(e)},refetchInterval:5e3}),sS=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new kb({InstanceIds:[e]});return await Rt().send(t)},refetchInterval:5e3}),cS=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new Db({Filters:[{Name:`instance-id`,Values:[e]}]});return await Rt().send(t)},refetchInterval:5e3}),lS=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new Ab({Filters:[{Name:`capacity`,Values:[`true`]}]});return await Rt().send(e)},refetchInterval:5e3}),uS=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new Ob({});return await Rt().send(e)}}),dS=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new Ob({ImageIds:[e]});return await Rt().send(t)}}),fS=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new Mb({});return await Rt().send(e)}}),pS=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new Mb({KeyPairIds:[e]});return await Rt().send(t)}}),mS=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new Fb({});return await Rt().send(e)},staleTime:3e5}),hS=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new zb({});return await Rt().send(e)}}),gS=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new zb({SubnetIds:[e]});return await Rt().send(t)}}),_S=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new Rb({});return await Rt().send(e)},refetchInterval:5e3}),vS=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new Rb({SnapshotIds:[e]});return await Rt().send(t)},refetchInterval:5e3}),yS=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new jb({});return await Rt().send(e)},refetchInterval:5e3}),bS=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new jb({InternetGatewayIds:[e]});return await Rt().send(t)},refetchInterval:5e3}),xS=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new Ib({});return await Rt().send(e)},refetchInterval:5e3}),SS=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new Ib({RouteTableIds:[e]});return await Rt().send(t)},refetchInterval:5e3}),CS=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new Vb({});return await Rt().send(e)}}),wS=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new Vb({VpcIds:[e]});return await Rt().send(t)}}),TS=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new Pb({});return await Rt().send(e)}}),ES=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new Pb({GroupIds:[e]});return await Rt().send(t)}}),DS=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new Lb({});return await Rt().send(e)}}),OS=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new Lb({GroupIds:[e]});return await Rt().send(t)}}),kS=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new Tb({});return await Rt().send(e)},refetchInterval:5e3}),AS=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new Tb({AllocationIds:[e]});return await Rt().send(t)},refetchInterval:5e3}),jS=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new Nb({});return await Rt().send(e)},refetchInterval:5e3}),MS=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new Nb({NatGatewayIds:[e]});return await Rt().send(t)},refetchInterval:5e3}),NS=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new Bb({});return await Rt().send(e)},refetchInterval:5e3}),PS=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new Bb({VolumeIds:[e]});return await Rt().send(t)},refetchInterval:5e3}),FS=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new Gx({});return await Tt().send(e)}}),IS=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new Kx({Bucket:e,Prefix:t,Delimiter:`/`});return await Tt().send(n)}}),LS=G(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(oS),e.queryClient.ensureQueryData(NS),e.queryClient.ensureQueryData(CS),e.queryClient.ensureQueryData(fS),e.queryClient.ensureQueryData(FS),e.queryClient.ensureQueryData(DS),e.queryClient.ensureQueryData(jS),e.queryClient.ensureQueryData(kS),e.queryClient.ensureQueryData(yS)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:K(()=>L(()=>import(`./_auth.js`),__vite__mapDeps([15,1,16,17,2,3,4,5,6,18,19,20,21,22,23,24,8,13])),`component`)}),RS=G(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:K(()=>L(()=>import(`./nodes.js`),__vite__mapDeps([25,1,16,17,26,4,5,20,22,23,24,8,13])),`component`)}),zS=G(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:K(()=>L(()=>import(`./service-metrics.js`),__vite__mapDeps([27,1,16,17,26,20,22,23,4,5,24,8,13])),`component`)}),BS=G(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(FS)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:K(()=>L(()=>import(`./ls.js`),__vite__mapDeps([28,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),VS=G(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:K(()=>L(()=>import(`./create-bucket.js`),__vite__mapDeps([31,1,4,5,32,2,3,6,33,34,18,35,7,8,36,37,38,9,39,40,20,10])),`component`)}),HS=G(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./create-user.js`),__vite__mapDeps([41,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,44,45])),`component`)}),US=G(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./create-role.js`),__vite__mapDeps([46,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,47,48,45,44])),`component`)}),WS=G(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./create-policy.js`),__vite__mapDeps([49,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,47,48,45,44])),`component`)}),GS=G(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./create-instance-profile.js`),__vite__mapDeps([50,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,44,45])),`component`)}),KS=G(`/_auth/iam/(groups)/create-group`)({head:()=>({meta:[{title:`Create Group | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./create-group.js`),__vite__mapDeps([51,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,44,45])),`component`)}),qS=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new Wx({});return await ot().send(e)},staleTime:3e5}),JS=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new Nx({UserName:e});return await ot().send(t)},staleTime:3e5}),YS=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new Px({UserName:e});return await ot().send(t)},staleTime:3e5}),XS=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new Hx({Scope:`Local`});return await ot().send(e)},staleTime:3e5}),ZS=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new Ax({PolicyArn:e});return await ot().send(t)},staleTime:3e5}),QS=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new jx({PolicyArn:e,VersionId:t});return await ot().send(n)},staleTime:3e5}),$S=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new Lx({UserName:e});return await ot().send(t)},staleTime:3e5}),eC=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new Ux({});return await ot().send(e)},staleTime:3e5}),tC=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new Mx({RoleName:e});return await ot().send(t)},staleTime:3e5}),nC=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new Ix({RoleName:e});return await ot().send(t)},staleTime:3e5}),rC=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Bx({});return await ot().send(e)},staleTime:3e5}),iC=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new kx({InstanceProfileName:e});return await ot().send(t)},staleTime:3e5}),aC=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new Vx({RoleName:e});return await ot().send(t)},staleTime:3e5}),oC=a({queryKey:[`iam`,`groups`],queryFn:async()=>{let e=new Rx({});return await ot().send(e)},staleTime:3e5}),sC=e=>a({queryKey:[`iam`,`groups`,e],queryFn:async()=>{let t=new Ox({GroupName:e});return await ot().send(t)},staleTime:3e5}),cC=e=>a({queryKey:[`iam`,`attached-group-policies`,e],queryFn:async()=>{let t=new Fx({GroupName:e});return await ot().send(t)},staleTime:3e5}),lC=e=>a({queryKey:[`iam`,`groups-for-user`,e],queryFn:async()=>{let t=new zx({UserName:e});return await ot().send(t)},staleTime:3e5}),uC=G(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(CS),e.queryClient.ensureQueryData(hS),e.queryClient.ensureQueryData(eC),e.queryClient.ensureQueryData(uS)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:K(()=>L(()=>import(`./create-cluster.js`),__vite__mapDeps([52,1,29,17,4,5,32,2,3,6,34,53,8,18,7,12,54,35,55,56,57,38,58,59,45,42,43,9,36,39,40,20,10,60,61,62])),`component`)}),dC=3e4,fC=15e3,pC=a({queryKey:[`ecs`,`clusters`],queryFn:async()=>{let e=nt(),t=(await e.send(new rx({}))).clusterArns??[];return t.length===0?[]:(await e.send(new Qb({clusters:t}))).clusters??[]},staleTime:dC}),mC=e=>a({queryKey:[`ecs`,`clusters`,e],queryFn:async()=>(await nt().send(new Qb({clusters:[e]}))).clusters?.[0]??null,staleTime:dC}),hC=e=>a({queryKey:[`ecs`,`clusters`,e,`services`],queryFn:async()=>{let t=nt(),n=(await t.send(new ax({cluster:e}))).serviceArns??[];return n.length===0?[]:(await t.send(new ex({cluster:e,services:n}))).services??[]},staleTime:dC}),gC=e=>a({queryKey:[`ecs`,`clusters`,e,`tasks`],queryFn:async()=>{let t=nt(),n=(await t.send(new sx({cluster:e}))).taskArns??[];return n.length===0?[]:(await t.send(new nx({cluster:e,tasks:n}))).tasks??[]},staleTime:fC}),_C=e=>a({queryKey:[`ecs`,`clusters`,e,`container-instances`],queryFn:async()=>{let t=nt(),n=(await t.send(new ix({cluster:e}))).containerInstanceArns??[];return n.length===0?[]:(await t.send(new $b({cluster:e,containerInstances:n}))).containerInstances??[]},staleTime:dC}),vC=a({queryKey:[`ecs`,`task-definitions`],queryFn:async()=>(await nt().send(new ox({}))).taskDefinitionArns??[],staleTime:dC}),yC=e=>a({queryKey:[`ecs`,`task-definitions`,e],queryFn:async()=>(await nt().send(new tx({taskDefinition:e}))).taskDefinition,enabled:e!==``,staleTime:dC}),bC=G(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vC)},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./task-definitions.js`),__vite__mapDeps([63,1,29,17,2,3,4,5,6,7,8,64,38,39,20,65,60,66])),`component`)}),xC=G(`/_auth/ecs/(clusters)/run-task`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(vC),e.queryClient.ensureQueryData(hS),e.queryClient.ensureQueryData(DS)])},head:()=>({meta:[{title:`Run Task | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./run-task.js`),__vite__mapDeps([67,1,16,17,29,32,2,3,4,5,6,53,8,34,18,7,12,54,64,38,9,39,40,20,10,68])),`component`)}),SC=G(`/_auth/ecs/(clusters)/register-task-definition`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),head:()=>({meta:[{title:`Register Task Definition | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./register-task-definition.js`),__vite__mapDeps([69,1,32,2,3,4,5,6,53,8,34,18,7,12,54,70,71,64,38,9,39,40,20,10,68])),`component`)}),CC=5e3,wC=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new xx({});return await Bt().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?CC:!1}),TC=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new xx({LoadBalancerArns:[e]});return await Bt().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?CC:!1}),EC=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new bx({LoadBalancerArn:e});return await Bt().send(t)}}),DC=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new Ex({});return await Bt().send(e)}}),OC=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new Ex({TargetGroupArns:[e]});return await Bt().send(t)}}),kC=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new Tx({TargetGroupArn:e});return await Bt().send(t)}}),AC=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new yx({LoadBalancerArn:e});return await Bt().send(t)}}),jC=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new Sx({ListenerArn:e});return await Bt().send(t)}}),MC=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new Dx({TargetGroupArn:e});return await Bt().send(t)}}),NC=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new Cx({});return await Bt().send(e)},staleTime:1/0}),PC=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new wx({ResourceArns:e});return await Bt().send(t)},enabled:e.length>0}),FC=G(`/_auth/ecs/(clusters)/create-service`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(vC),e.queryClient.ensureQueryData(hS),e.queryClient.ensureQueryData(DS),e.queryClient.ensureQueryData(DC)])},head:()=>({meta:[{title:`Create Service | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./create-service.js`),__vite__mapDeps([72,1,16,17,29,32,2,3,4,5,6,53,8,34,18,7,12,54,64,38,9,39,40,20,10,68])),`component`)}),IC=G(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-vpc.js`),__vite__mapDeps([73,1,32,2,3,4,5,6,18,19,53,8,34,7,12,54,33,35,36,74,38,59,9,39,40,20,10,75])),`component`)}),LC=G(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(aS)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-volume.js`),__vite__mapDeps([76,1,29,17,32,2,3,4,5,6,53,8,34,18,7,12,54,33,35,36,74,38,59,9,39,40,20,10,75])),`component`)}),RC=G(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(CS)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-target-group.js`),__vite__mapDeps([77,1,29,17,32,2,3,4,5,6,33,34,18,35,7,8,36,78,38,79,9,39,40,20,80,53,12,54,70,71,10,11,81])),`component`)}),zC=G(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(CS),e.queryClient.ensureQueryData(aS)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-subnet.js`),__vite__mapDeps([82,1,29,17,4,5,32,2,3,6,53,8,34,18,7,12,54,33,35,36,74,38,59,9,39,40,20,10,75])),`component`)}),BC=G(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(NS)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-snapshot.js`),__vite__mapDeps([83,1,29,17,32,2,3,4,5,6,53,8,34,18,7,12,54,33,35,36,74,38,59,9,39,40,20,10,75,48])),`component`)}),VC=G(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(CS)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-security-group.js`),__vite__mapDeps([84,1,29,17,4,5,32,2,3,6,53,8,34,18,7,12,54,33,35,36,74,38,59,9,39,40,20,10,75])),`component`)}),HC=G(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(CS)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-route-table.js`),__vite__mapDeps([85,1,29,17,4,5,32,2,3,6,53,8,34,18,7,12,54,74,38,59,9,39,40,20,10,75])),`component`)}),UC=G(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-placement-group.js`),__vite__mapDeps([86,1,32,2,3,4,5,6,53,8,34,18,7,12,54,33,35,36,74,38,59,9,39,40,20,10,75])),`component`)}),WC=G(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(hS),e.queryClient.ensureQueryData(kS)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([87,1,29,17,2,3,4,5,6,32,53,8,34,18,7,12,54,33,35,36,74,38,59,9,39,40,20,10,75])),`component`)}),GC=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new hb({});return await kt().send(e)}}),KC=G(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(CS),e.queryClient.ensureQueryData(hS),e.queryClient.ensureQueryData(DS),e.queryClient.ensureQueryData(DC),e.queryClient.ensureQueryData(GC),e.queryClient.ensureQueryData(NC)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-load-balancer.js`),__vite__mapDeps([88,1,29,17,4,5,32,2,3,6,53,8,34,18,7,12,54,70,33,35,36,71,89,38,39,10,60,48,78,79,9,40,20,80,11,81])),`component`)}),qC=G(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./import-key-pair.js`),__vite__mapDeps([90,1,32,2,3,4,5,6,33,34,18,35,7,8,36,74,38,59,9,39,40,20,10,75,48])),`component`)}),JC=G(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-key-pair.js`),__vite__mapDeps([91,1,32,2,3,4,5,6,34,92,33,18,35,7,8,36,56,74,38,59,9,39,40,20,10,75,60])),`component`)}),YC=G(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([93,1,32,2,3,4,5,6,33,34,18,35,7,8,36,74,38,59,9,39,40,20,10,75])),`component`)}),XC=G(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(uS),e.queryClient.ensureQueryData(fS),e.queryClient.ensureQueryData(lS),e.queryClient.ensureQueryData(hS),e.queryClient.ensureQueryData(TS),e.queryClient.ensureQueryData(CS),e.queryClient.ensureQueryData(DS)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./run-instances.js`),__vite__mapDeps([94,1,29,17,4,5,32,2,3,6,18,53,8,34,7,12,54,33,35,36,74,38,59,9,39,20,10,75,11])),`component`)}),ZC=G(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./allocate-address.js`),__vite__mapDeps([95,1,32,2,3,4,5,6,33,34,18,35,7,8,36,74,38,59,9,39,40,20,10,75])),`component`)}),QC=G(`/_auth/s3/ls/$bucket`)({component:K(()=>L(()=>import(`./route2.js`),__vite__mapDeps([96,1])),`component`)}),$C=G(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(IS(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:K(()=>L(()=>import(`./_bucket.js`),__vite__mapDeps([97,1,29,17,4,5,32,2,3,6,98,92,71,7,8,37,38,39,65,60,20])),`component`)}),ew=G(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qS)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./list-users.js`),__vite__mapDeps([99,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),tw=G(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(eC)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./list-roles.js`),__vite__mapDeps([100,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),nw=G(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(XS)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./list-policies.js`),__vite__mapDeps([101,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),rw=G(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(rC)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([102,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),iw=G(`/_auth/iam/(groups)/list-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(oC)},head:()=>({meta:[{title:`Groups | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./list-groups.js`),__vite__mapDeps([103,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),aw=3e4,ow=3e5,sw=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new _x({});return await jt().send(e)},staleTime:aw}),cw=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new dx({name:e});return await jt().send(t)},staleTime:aw}),lw=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new vx({clusterName:e});return await jt().send(t)},staleTime:aw}),uw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new fx({clusterName:e,nodegroupName:t});return await jt().send(n)},staleTime:aw}),dw=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new px({clusterName:e});return await jt().send(t)},staleTime:aw}),fw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new cx({clusterName:e,principalArn:t});return await jt().send(n)},staleTime:aw}),pw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new gx({clusterName:e,principalArn:t});return await jt().send(n)},staleTime:aw});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new mx({});return await jt().send(e)},staleTime:ow});var mw=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new ux({});return await jt().send(e)},staleTime:ow}),hw=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new hx({clusterName:e});return await jt().send(t)},staleTime:aw}),gw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new lx({clusterName:e,addonName:t});return await jt().send(n)},staleTime:aw}),_w=G(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sw)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:K(()=>L(()=>import(`./list-clusters2.js`),__vite__mapDeps([104,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),vw=G(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(pC),e.queryClient.ensureQueryData(uS)])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./list-clusters.js`),__vite__mapDeps([105,1,29,17,2,3,4,5,6,34,35,55,56,7,8,64,38,36,39,20,10,60,65,21,61,66])),`component`)}),yw=a({queryKey:[`ecr`,`repositories`],queryFn:async()=>{let e=new Kb({});return await yt().send(e)}}),bw=e=>a({queryKey:[`ecr`,`repositories`,e,`images`],queryFn:async()=>{let t=new Gb({repositoryName:e});return await yt().send(t)}}),xw=e=>a({queryKey:[`ecr`,`repositories`,e,`policy`],queryFn:async()=>{try{let t=new Jb({repositoryName:e});return(await yt().send(t)).policyText??null}catch(e){if(e instanceof dt)return null;throw e}}}),Sw=e=>a({queryKey:[`ecr`,`repositories`,e,`lifecycle`],queryFn:async()=>{try{let t=new qb({repositoryName:e});return(await yt().send(t)).lifecyclePolicyText??null}catch(e){if(e instanceof ge)return null;throw e}}}),Cw=G(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yw)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:K(()=>L(()=>import(`./list-repositories.js`),__vite__mapDeps([106,1,29,17,2,3,4,5,6,7,8,107,38,20,10,60])),`component`)}),ww=G(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(CS)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-vpcs.js`),__vite__mapDeps([108,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Tw=G(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(NS)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-volumes.js`),__vite__mapDeps([109,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Ew=G(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(DC)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-target-groups.js`),__vite__mapDeps([110,1,16,17,29,2,3,4,5,6,7,8,20])),`component`)}),Dw=G(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(hS)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-subnets.js`),__vite__mapDeps([111,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Ow=G(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_S)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-snapshots.js`),__vite__mapDeps([112,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),kw=G(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(DS)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-security-groups.js`),__vite__mapDeps([113,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Aw=G(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(xS)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-route-tables.js`),__vite__mapDeps([114,1,29,17,2,3,4,5,6,7,8,20,30,24])),`component`)}),jw=G(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(TS)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([115,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Mw=G(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jS)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([116,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Nw=G(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(wC)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([117,1,29,17,2,3,4,5,6,7,8,20,21])),`component`)}),Pw=G(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(fS)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([118,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Fw=G(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yS)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([119,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Iw=G(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(oS)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-instances.js`),__vite__mapDeps([120,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Lw=G(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(uS)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-images.js`),__vite__mapDeps([121,1,29,17,20,30,2,3,4,5,6,21,61])),`component`)}),Rw=G(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kS)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./describe-addresses.js`),__vite__mapDeps([122,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),zw=G(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=Sn(t._splat??``);await e.queryClient.ensureQueryData(IS(t.bucket,n))},head:({params:e})=>({meta:[{title:`${Nn(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:K(()=>L(()=>import(`./_.js`),__vite__mapDeps([123,1,29,17,2,3,4,5,6,32,98,92,71,7,8,37,38,39,65,60])),`component`)}),Bw=G(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(JS(t.userName)),e.queryClient.ensureQueryData(YS(t.userName)),e.queryClient.ensureQueryData($S(t.userName)),e.queryClient.ensureQueryData(XS),e.queryClient.ensureQueryData(lC(t.userName))])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./_userName.js`),__vite__mapDeps([124,1,29,17,2,3,4,5,6,32,34,71,56,7,8,42,38,43,36,39,20,60,65,125,21])),`component`)}),Vw=G(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(tC(t.roleName)),e.queryClient.ensureQueryData(nC(t.roleName)),e.queryClient.ensureQueryData(aC(t.roleName)),e.queryClient.ensureQueryData(XS)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./_roleName.js`),__vite__mapDeps([126,1,29,17,2,3,4,5,6,32,71,7,8,42,38,43,39,20,65,60,125,62])),`component`)}),Hw=G(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(ZS(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(QS(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./_policyArn.js`),__vite__mapDeps([127,1,29,17,4,5,32,2,3,6,71,7,8,42,38,43,39,20,65,60,125,62])),`component`)}),Uw=G(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(iC(t.instanceProfileName)),e.queryClient.ensureQueryData(eC)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([128,1,29,17,2,3,4,5,6,32,71,7,8,42,38,43,39,20,65,60,125])),`component`)}),Ww=G(`/_auth/iam/(groups)/list-groups/$groupName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(sC(t.groupName)),e.queryClient.ensureQueryData(cC(t.groupName)),e.queryClient.ensureQueryData(XS),e.queryClient.ensureQueryData(qS)])},head:({params:e})=>({meta:[{title:`${e.groupName} | IAM | Mulga`}]}),component:K(()=>L(()=>import(`./_groupName.js`),__vite__mapDeps([129,1,29,17,2,3,4,5,6,32,71,7,8,42,38,43,39,20,65,60,125])),`component`)}),Gw=G(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(cw(t.clusterName)),e.queryClient.ensureQueryData(lw(t.clusterName)),e.queryClient.ensureQueryData(dw(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:K(()=>L(()=>import(`./_clusterName2.js`),__vite__mapDeps([130,1,16,17,29,2,3,4,5,6,32,131,33,34,18,35,7,8,36,71,56,57,38,58,59,45,9,39,20,10,60,65,125,132,12,54,24,47,48])),`component`)}),Kw=G(`/_auth/ecs/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(mC(t.clusterName)),e.queryClient.ensureQueryData(hC(t.clusterName)),e.queryClient.ensureQueryData(gC(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./_clusterName.js`),__vite__mapDeps([133,1,16,17,29,2,3,4,5,6,32,71,7,8,64,38,39,20,10,60,65,125,21,132,12,54])),`component`)}),qw=G(`/_auth/ecr/(repositories)/list-repositories/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(yw),e.queryClient.ensureQueryData(bw(n)),e.queryClient.ensureQueryData(xw(n))])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Repository | Mulga`}]}),component:K(()=>L(()=>import(`./_id17.js`),__vite__mapDeps([134,1,29,17,2,3,4,5,6,7,8,107,38,20,60,132,12,54,24,45,47,48])),`component`)}),Jw=G(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(wS(t.id)),e.queryClient.ensureQueryData(hS)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:K(()=>L(()=>import(`./_id16.js`),__vite__mapDeps([135,1,29,17,2,3,4,5,6,32,71,7,8,74,38,59,39,20,65,60,125,21])),`component`)}),Yw=G(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(PS(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./_id15.js`),__vite__mapDeps([136,1,29,17,32,2,3,4,5,6,74,38,59,9,39,40,7,8,20,10,75])),`component`)}),Xw=G(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(PS(t.id)),e.queryClient.ensureQueryData(oS)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./_id14.js`),__vite__mapDeps([137,1,29,17,2,3,4,5,6,32,53,8,34,18,7,12,54,71,74,38,59,39,20,10,60,65,125,21])),`component`)}),Zw=G(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(OC(n)),e.queryClient.ensureQueryData(kC(n)),e.queryClient.ensureQueryData(PC([n])),e.queryClient.ensureQueryData(oS)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:K(()=>L(()=>import(`./_id13.js`),__vite__mapDeps([138,1,16,17,29,4,5,32,2,3,6,71,7,8,78,38,79,39,20,60,65,125,139,53,34,18,12,54,70,10,132])),`component`)}),Qw=G(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(gS(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:K(()=>L(()=>import(`./_id12.js`),__vite__mapDeps([140,1,29,17,2,3,4,5,6,32,71,7,8,74,38,59,39,20,65,60,125,21])),`component`)}),$w=G(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(vS(t.id)),e.queryClient.ensureQueryData(mS)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./_id11.js`),__vite__mapDeps([141,1,29,17,2,3,4,5,6,32,35,71,7,8,74,38,59,39,20,10,60,65,125,21,48])),`component`)}),eT=G(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(OS(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:K(()=>L(()=>import(`./_id10.js`),__vite__mapDeps([142,1,29,17,2,3,4,5,6,32,53,8,34,18,7,12,54,70,71,74,38,59,9,39,20,10,75,60,65,125])),`component`)}),tT=G(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(SS(t.id)),e.queryClient.ensureQueryData(yS),e.queryClient.ensureQueryData(jS),e.queryClient.ensureQueryData(hS)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:K(()=>L(()=>import(`./_id9.js`),__vite__mapDeps([143,1,29,17,2,3,4,5,6,32,53,8,34,18,7,12,54,71,74,38,59,9,39,20,10,75,65,60,125,24])),`component`)}),nT=G(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(ES(t.id)),e.queryClient.ensureQueryData(oS)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./_id8.js`),__vite__mapDeps([144,1,29,17,2,3,4,5,6,32,71,7,8,74,38,59,39,20,65,60,125,21])),`component`)}),rT=G(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(MS(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:K(()=>L(()=>import(`./_id7.js`),__vite__mapDeps([145,1,29,17,2,3,4,5,6,32,71,7,8,74,38,59,39,20,65,60,125,21])),`component`)}),iT=G(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(TC(n)),e.queryClient.ensureQueryData(AC(n)),e.queryClient.ensureQueryData(EC(n)),e.queryClient.ensureQueryData(PC([n])),e.queryClient.ensureQueryData(DC),e.queryClient.ensureQueryData(hS)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:K(()=>L(()=>import(`./_id6.js`),__vite__mapDeps([146,1,29,17,4,5,32,2,3,6,53,8,34,18,7,12,54,71,89,38,39,10,60,48,78,79,9,20,65,125,21,81,139,70,132])),`component`)}),aT=G(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(pS(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./_id5.js`),__vite__mapDeps([147,1,29,17,4,5,32,2,3,6,71,7,8,74,38,59,39,20,65,60,125])),`component`)}),oT=G(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(bS(t.id)),e.queryClient.ensureQueryData(CS)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:K(()=>L(()=>import(`./_id4.js`),__vite__mapDeps([148,1,29,17,2,3,4,5,6,32,53,8,34,18,7,12,54,71,74,38,59,39,20,65,60,125])),`component`)}),sT=G(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(sS(t.id)),e.queryClient.ensureQueryData(lS)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(dS(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./_id3.js`),__vite__mapDeps([149,1,16,17,29,2,3,4,5,6,32,53,8,34,18,7,12,54,55,71,74,38,59,39,20,10,60,65,125,21,150,22,23,48])),`component`)}),cT=G(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(dS(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:K(()=>L(()=>import(`./_id2.js`),__vite__mapDeps([151,1,38,29,17,4,5,32,2,3,6,131,71,7,8,74,59,39,20,60,65,21,61,150,125])),`component`)}),lT=G(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(AS(t.id)),e.queryClient.ensureQueryData(oS)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:K(()=>L(()=>import(`./_id.js`),__vite__mapDeps([152,1,29,17,4,5,32,2,3,6,53,8,34,18,7,12,54,71,74,38,59,39,20,65,60,125])),`component`)}),uT=G(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(gC(t.clusterName))},head:({params:e})=>({meta:[{title:`${e.taskId} | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./_taskId.js`),__vite__mapDeps([153,1,29,17,32,2,3,4,5,6,20,125,21])),`component`)}),dT=G(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(hC(t.clusterName)),e.queryClient.ensureQueryData(gC(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.serviceName} | ECS | Mulga`}]}),component:K(()=>L(()=>import(`./_serviceName.js`),__vite__mapDeps([154,1,29,17,2,3,4,5,6,32,20,125,21])),`component`)}),fT=rS.update({id:`/login`,path:`/login`,getParentRoute:()=>nS}),$=iS.update({id:`/_auth`,getParentRoute:()=>nS}),pT=LS.update({id:`/`,path:`/`,getParentRoute:()=>$}),mT=RS.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),hT=zS.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),gT=BS.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),_T=VS.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),vT=HS.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),yT=US.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),bT=WS.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),xT=GS.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),ST=KS.update({id:`/iam/(groups)/create-group`,path:`/iam/create-group`,getParentRoute:()=>$}),CT=uC.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),wT=bC.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>$}),TT=xC.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>$}),ET=SC.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>$}),DT=FC.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>$}),OT=IC.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),kT=LC.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),AT=RC.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),jT=zC.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),MT=BC.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),NT=VC.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),PT=HC.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),FT=UC.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),IT=WC.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),LT=KC.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),RT=qC.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),zT=JC.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),BT=YC.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),VT=XC.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),HT=ZC.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),UT=QC.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),WT=$C.update({id:`/`,path:`/`,getParentRoute:()=>UT}),GT=ew.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),KT=tw.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),qT=nw.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),JT=rw.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),YT=iw.update({id:`/iam/(groups)/list-groups/`,path:`/iam/list-groups/`,getParentRoute:()=>$}),XT=_w.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),ZT=vw.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>$}),QT=Cw.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>$}),$T=ww.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),eE=Tw.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),tE=Ew.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),nE=Dw.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),rE=Ow.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),iE=kw.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),aE=Aw.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),oE=jw.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),sE=Mw.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),cE=Nw.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),lE=Pw.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),uE=Fw.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),dE=Iw.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),fE=Lw.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),pE=Rw.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),mE=zw.update({id:`/$`,path:`/$`,getParentRoute:()=>UT}),hE=Bw.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),gE=Vw.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),_E=Hw.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),vE=Uw.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),yE=Ww.update({id:`/iam/(groups)/list-groups/$groupName`,path:`/iam/list-groups/$groupName`,getParentRoute:()=>$}),bE=Gw.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),xE=Kw.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>$}),SE=qw.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>$}),CE=Jw.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),wE=Yw.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),TE=Xw.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),EE=Zw.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),DE=Qw.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),OE=$w.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),kE=eT.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),AE=tT.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),jE=nT.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),ME=rT.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),NE=iT.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),PE=aT.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),FE=oT.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),IE=sT.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),LE=cT.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),RE=lT.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),zE=uT.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>$}),BE=dT.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>$}),VE={AuthS3LsBucketSplatRoute:mE,AuthS3LsBucketIndexRoute:WT},HE={AuthNodesRoute:mT,AuthIndexRoute:pT,AuthS3ServiceMetricsRoute:hT,AuthS3LsBucketRouteRoute:UT._addFileChildren(VE),AuthEc2elasticIpsAllocateAddressRoute:HT,AuthEc2instancesRunInstancesRoute:VT,AuthEc2internetGatewaysCreateInternetGatewayRoute:BT,AuthEc2keyCreateKeyPairRoute:zT,AuthEc2keyImportKeyPairRoute:RT,AuthEc2loadBalancersCreateLoadBalancerRoute:LT,AuthEc2natGatewaysCreateNatGatewayRoute:IT,AuthEc2placementGroupsCreatePlacementGroupRoute:FT,AuthEc2routeTablesCreateRouteTableRoute:PT,AuthEc2securityGroupsCreateSecurityGroupRoute:NT,AuthEc2snapshotsCreateSnapshotRoute:MT,AuthEc2subnetCreateSubnetRoute:jT,AuthEc2targetGroupsCreateTargetGroupRoute:AT,AuthEc2volumesCreateVolumeRoute:kT,AuthEc2vpcCreateVpcRoute:OT,AuthEcsclustersCreateServiceRoute:DT,AuthEcsclustersRegisterTaskDefinitionRoute:ET,AuthEcsclustersRunTaskRoute:TT,AuthEcsclustersTaskDefinitionsRoute:wT,AuthEksclustersCreateClusterRoute:CT,AuthIamgroupsCreateGroupRoute:ST,AuthIaminstanceProfilesCreateInstanceProfileRoute:xT,AuthIampoliciesCreatePolicyRoute:bT,AuthIamrolesCreateRoleRoute:yT,AuthIamusersCreateUserRoute:vT,AuthS3bucketsCreateBucketRoute:_T,AuthS3LsIndexRoute:gT,AuthEc2elasticIpsDescribeAddressesIdRoute:RE,AuthEc2imagesDescribeImagesIdRoute:LE,AuthEc2instancesDescribeInstancesIdRoute:IE,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:FE,AuthEc2keyDescribeKeyPairsIdRoute:PE,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:NE,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:ME,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:jE,AuthEc2routeTablesDescribeRouteTablesIdRoute:AE,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:kE,AuthEc2snapshotsDescribeSnapshotsIdRoute:OE,AuthEc2subnetDescribeSubnetsIdRoute:DE,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:EE,AuthEc2volumesDescribeVolumesIdRoute:TE,AuthEc2volumesModifyVolumeIdRoute:wE,AuthEc2vpcDescribeVpcsIdRoute:CE,AuthEcrrepositoriesListRepositoriesIdRoute:SE,AuthEcsclustersListClustersClusterNameRoute:xE,AuthEksclustersListClustersClusterNameRoute:bE,AuthIamgroupsListGroupsGroupNameRoute:yE,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:vE,AuthIampoliciesListPoliciesPolicyArnRoute:_E,AuthIamrolesListRolesRoleNameRoute:gE,AuthIamusersListUsersUserNameRoute:hE,AuthEc2elasticIpsDescribeAddressesIndexRoute:pE,AuthEc2imagesDescribeImagesIndexRoute:fE,AuthEc2instancesDescribeInstancesIndexRoute:dE,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:uE,AuthEc2keyDescribeKeyPairsIndexRoute:lE,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:cE,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:sE,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:oE,AuthEc2routeTablesDescribeRouteTablesIndexRoute:aE,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:iE,AuthEc2snapshotsDescribeSnapshotsIndexRoute:rE,AuthEc2subnetDescribeSubnetsIndexRoute:nE,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:tE,AuthEc2volumesDescribeVolumesIndexRoute:eE,AuthEc2vpcDescribeVpcsIndexRoute:$T,AuthEcrrepositoriesListRepositoriesIndexRoute:QT,AuthEcsclustersListClustersIndexRoute:ZT,AuthEksclustersListClustersIndexRoute:XT,AuthIamgroupsListGroupsIndexRoute:YT,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:JT,AuthIampoliciesListPoliciesIndexRoute:qT,AuthIamrolesListRolesIndexRoute:KT,AuthIamusersListUsersIndexRoute:GT,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:BE,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:zE},UE={AuthRouteRoute:$._addFileChildren(HE),LoginRoute:fT},WE=nS._addFileChildren(UE)._addFileTypes(),GE=Yx(),KE=Vs({routeTree:WE,context:{queryClient:GE},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),qE=document.querySelector(`#app`);qE&&!qE.innerHTML&&ec.createRoot(qE).render((0,U.jsx)(H.StrictMode,{children:(0,U.jsx)(rc,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,U.jsx)(_a,{client:GE,children:(0,U.jsx)(cb,{children:(0,U.jsx)($g,{children:(0,U.jsx)(Ws,{router:KE})})})})})}));export{kC as $,im as $n,ol as $r,vS as $t,bw as A,wi as Ai,Hh as An,Qu as Ar,FS as At,uw as B,oh as Bn,J as Br,bS as Bt,Uw as C,Ki as Ci,Zy as Cn,cd as Cr,ZS as Ct,zw as D,bi as Di,Og as Dn,ed as Dr,JS as Dt,Bw as E,Si as Ei,Ag as En,ad as Er,eC as Et,mw as F,hi as Fi,wh as Fn,xu as Fr,dS as Ft,FC as G,_h as Gn,Al as Gr,jS as Gt,$C as H,uh as Hn,Ll as Hr,pS as Ht,hw as I,mi as Ii,sh as In,hu as Ir,uS as It,EC as J,yh as Jn,wl as Jr,mS as Jt,jC as K,ph as Kn,El as Kr,ES as Kt,pw as L,hh as Ln,yu as Lr,sS as Lt,dw as M,Ui as Mi,Dh as Mn,vu as Mr,kS as Mt,fw as N,Ci as Ni,Eh as Nn,_u as Nr,aS as Nt,Sw as O,Ri as Oi,yg as On,rd as Or,qS as Ot,gw as P,_i as Pi,Th as Pn,gu as Pr,cS as Pt,PC as Q,cm as Qn,pl as Qr,DS as Qt,cw as R,ch as Rn,mu as Rr,lS as Rt,Ww as S,Yi as Si,ib as Sn,ld as Sr,XS as St,Vw as T,ki as Ti,jg as Tn,od as Tr,tC as Tt,GC as U,dh as Un,Pl as Ur,fS as Ut,lw as V,gh as Vn,Y as Vr,yS as Vt,BC as W,fh as Wn,Ml as Wr,MS as Wt,wC as X,Im as Xn,bl as Xr,xS as Xt,TC as Y,bh as Yn,Tl as Yr,SS as Yt,NC as Z,pm as Zn,vl as Zr,OS as Zt,Yw as _,Is as _i,xb as _n,Ed as _r,lC as _t,sT as a,Kc as ai,wS as an,xf as ar,mC as at,Kw as b,ua as bi,fb as bn,pd as br,aC as bt,iT as c,Rc as ci,Xb as cn,uf as cr,hC as ct,tT as d,Dc as di,Ub as dn,Gd as dr,gC as dt,al as ei,_S as en,Q as er,OC as et,eT as f,wc as fi,Wb as fn,Vd as fr,YS as ft,Xw as g,ac as gi,wb as gn,Od as gr,sC as gt,Zw as h,hc as hi,Cb as hn,kd as hr,$S as ht,cT as i,qc as ii,NS as in,jf as ir,xC as it,xw as j,Ni as ji,Ih as jn,Ju as jr,AS as jt,yw as k,Ti as ki,Wh as kn,Zu as kr,IS as kt,rT as l,Pc as li,Zb as ln,Yd as lr,yC as lt,Qw as m,yc as mi,Sb as mn,Ad as mr,nC as mt,uT as n,tl as ni,hS as nn,wp as nr,MC as nt,oT as o,Vc as oi,CS as on,Sf as or,pC as ot,$w as p,Cc as pi,Hb as pn,Z as pr,cC as pt,AC as q,mh as qn,Cl as qr,TS as qt,lT as r,Qc as ri,PS as rn,Lf as rr,SC as rt,aT as s,zc as si,rS as sn,_f as sr,_C as st,dT as t,rl as ti,gS as tn,qp as tr,DC as tt,nT as u,Oc as ui,Yb as un,Wd as ur,vC as ut,Jw as v,vs as vi,pb as vn,Td as vr,oC as vt,Hw as w,Gi as wi,Ky as wn,sd as wr,QS as wt,Gw as x,oa as xi,lb as xn,fd as xr,rC as xt,qw as y,ga as yi,mb as yn,wd as yr,iC as yt,sw as z,lh as zn,zl as zr,oS as zt}; \ No newline at end of file +`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof Me==`function`&&Ne(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,er=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Or=ln&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==Lt(r)||(r=kr,`selectionStart`in r&&Dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Sr(jr,r)||(jr=r,r=Od(Ar,`onSelect`),0>=o,i-=o,xi=1<<32-Re(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),U&&Ci(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),U&&Ci(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return U&&Ci(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),U&&Ci(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&xa(l)===r.type){n(e,r.sibling),c=i(r,o.props),Oa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),Oa(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=xa(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Da(o),c);if(o.$$typeof===x)return b(e,r,Zi(e,o),c);ka(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ea=0;var i=b(e,t,n,r);return Ta=null,i}catch(t){if(t===_a||t===ya)throw t;var a=V(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=Aa(!0),Ma=Aa(!1),Na=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Il&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function Ra(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ba=!1;function Va(){if(Ba){var e=ca;if(e!==null)throw e}}function Ha(e,t,n,r){Ba=!1;var i=e.updateQueue;Na=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Rl&f)===f:(r&f)===f){f!==0&&f===sa&&(Ba=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Na=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Wa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,q(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,da(c,r),mu(e)):ks(e,t,r,mu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function ys(){}function bs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=xs(e).queue;vs(e,i,t,te,n===null?ys:function(){return Ss(e),n(r)})}function xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ss(e){var t=xs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},mu())}function Cs(){return Xi(ep)}function ws(){return Eo().memoizedState}function Ts(){return Eo().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ia(n);var r=La(t,e,n);r!==null&&(gu(r,t,n),Ra(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?J(t,n):(n=$r(e,t,n,r),n!==null&&(gu(n,e,r),js(n,t,r)))}function Os(e,t,n){ks(e,t,n,mu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))J(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,xr(s,o))return Qr(e,t,i,0),Ll===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return gu(n,e,r),js(n,t,r),!0}return!1}function q(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(a(479))}else t=$r(e,n,r,2),t!==null&&gu(t,e,2)}function As(e){var t=e.alternate;return e===K||t!==null&&t===K}function J(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Ms={readContext:Xi,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ms.useEffectEvent=go;var Ns={readContext:Xi,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:as,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),rs(4194308,4,ds.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){rs(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){Le(!0);try{n(t)}finally{Le(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ds.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Vo(e);var t=e.queue,n=Os.bind(null,K,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ps,useDeferredValue:function(e,t){return gs(To(),e,t)},useTransition:function(){var e=Vo(!1);return e=vs.bind(null,K,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=K,i=To();if(U){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ll===null)throw Error(a(349));Rl&127||Io(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,as(Ro.bind(null,r,o,e),[e]),r.flags|=2048,ts(9,{destroy:void 0},Lo.bind(null,r,o,n,t),null),n},useId:function(){var e=To(),t=Ll.identifierPrefix;if(U){var n=Si,r=xi;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[st]=t,o[ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ld(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Oc(t)}}return Nc(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Oc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=I.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Oi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Pd(e.nodeValue,n)),e||Ni(t,!0)}else e=Ud(e).createTextNode(r),e[st]=t,t.stateNode=e}return Nc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[st]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(no(t),t):(no(t),null);if(t.flags&128)throw Error(a(558))}return Nc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[st]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),i=!1}else i=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(no(t),t):(no(t),null)}return no(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jc(t,t.updateQueue),Nc(t),null);case 4:return ue(),e===null&&wd(t.stateNode.containerInfo),Nc(t),null;case 10:return Wi(t.type),Nc(t),null;case 19:if(ae(ro),r=t.memoizedState,r===null)return Nc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Mc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=io(e),o!==null){for(t.flags|=128,Mc(r,!1),e=o.updateQueue,t.updateQueue=e,jc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return F(ro,ro.current&1|2),U&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>nu&&(t.flags|=128,i=!0,Mc(r,!1),t.lanes=4194304)}else{if(!i)if(e=io(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,jc(t,e),Mc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!U)return Nc(t),null}else 2*Te()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Mc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Nc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=ro.current,F(ro,i?n&1|2:n&1),U&&Ci(t,r.treeForkCount),e);case 22:case 23:return no(t),Ya(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Nc(t),t.subtreeFlags&6&&(t.flags|=8192)):Nc(t),n=t.updateQueue,n!==null&&jc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Nc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Fc(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(no(t),t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(no(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(ro),null;case 4:return ue(),null;case 10:return Wi(t.type),null;case 22:case 23:return no(t),Ya(),e!==null&&ae(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function Ic(e,t){switch(Ei(t),t.tag){case 3:Wi(na),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&no(t);break;case 13:no(t);break;case 19:ae(ro);break;case 10:Wi(t.type);break;case 22:case 23:no(t),Ya(),e!==null&&ae(pa);break;case 24:Wi(na)}}function Lc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Rc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wa(t,n)}catch(t){Ku(e,e.return,t)}}}function Bc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Vc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Hc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Uc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Wc(e,t,n){try{var r=e.stateNode;Rd(r,e.type,n,t),r[ct]=t}catch(t){Ku(e,e.return,t)}}function Gc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Kc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ld(t,r,n),t[st]=e,t[ct]=n}catch(t){Ku(e,e.return,t)}}var Xc=!1,Zc=!1,Qc=!1,$c=typeof WeakSet==`function`?WeakSet:Set,el=null;function tl(e,t){if(e=e.containerInfo,Vd=lp,e=Er(e),Dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Hd={focusedElem:e,selectionRange:n},lp=!1,el=t;el!==null;)if(t=el,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,el=e;else for(;el!==null;){switch(t=el,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Ld(o,r,n),o[st]=e,bt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Il&6)throw Error(a(331));var c=Il;if(Il|=4,jl(o.current),Cl(o,o.current,s,n),Il=c,od(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{P.p=i,N.T=r,Hu(e,t)}}function Gu(e,t,n){t=pi(n,t),t=Ks(e.stateNode,t,2),e=La(e,t,2),e!==null&&(Ze(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=pi(n,e),n=qs(2),r=La(t,n,2),r!==null&&(Js(n,r,t,e),Ze(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>Te()-eu?!(Il&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Ye()),e=ei(e,t),e!==null&&(Ze(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return xe(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Re(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=Rl,a=Ke(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&qd()&&(e=id);for(var t=Te(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),bt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Ld(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=yt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);bt(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=I.current)?vf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=yt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=yt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=yt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+zt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),bt(t),e.head.appendChild(t))}function If(e){return`[src="`+zt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Ld(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,bt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),bt(i),Ld(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ic()}))(),1),oc=i(),sc=(0,W.createContext)(void 0);function cc(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function lc(e){let t=(0,oc.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>cc(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,W.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,W.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,G.jsx)(sc.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function uc(){let e=(0,W.useContext)(sc);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function dc(e){return un(e.defaultTagName??`div`,e,e)}var fc=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),pc=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),mc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),hc=e=>{let t=mc(e);return t.charAt(0).toUpperCase()+t.slice(1)},gc={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},_c=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},vc=(0,W.createContext)({}),yc=()=>(0,W.useContext)(vc),bc=(0,W.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=yc()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,W.createElement)(`svg`,{ref:c,...gc,width:t??l??gc.width,height:t??l??gc.height,stroke:e??f,strokeWidth:m,className:fc(`lucide`,p,i),...!a&&!_c(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,W.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),xc=(e,t)=>{let n=(0,W.forwardRef)(({className:n,...r},i)=>(0,W.createElement)(bc,{ref:i,iconNode:t,className:fc(`lucide-${pc(hc(e))}`,`lucide-${e}`,n),...r}));return n.displayName=hc(e),n},Sc=xc(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Cc=xc(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),wc=xc(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Tc=xc(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),Ec=xc(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Dc=xc(`container`,[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]),Oc=xc(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),kc=xc(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ac=xc(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),jc=xc(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Mc=xc(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),Nc=xc(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Pc=xc(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Fc=xc(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Ic=xc(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Lc=xc(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Rc=xc(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),zc=xc(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Bc=xc(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Vc=xc(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),Hc=xc(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Uc=xc(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),Wc=xc(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),Gc=xc(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Kc=xc(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),qc=xc(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Jc=xc(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Yc=xc(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Xc=xc(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),Zc=xc(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Qc=xc(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),$c=xc(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),el=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),tl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},nl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},rl={disabled:!1,...nl},il={valid(e){return e===null?null:e?{[el.valid]:``}:{[el.invalid]:``}}},al={invalid:void 0,name:void 0,validityData:{state:tl,errors:[],error:``,value:``,initialValue:null},setValidityData:dn,disabled:void 0,touched:nl.touched,setTouched:dn,dirty:nl.dirty,setDirty:dn,filled:nl.filled,setFilled:dn,focused:nl.focused,setFocused:dn,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:rl,markedDirtyRef:{current:!1},registerFieldControl:dn,validation:{getValidationProps:(e,t=on)=>t,inputRef:{current:null},registerInput:dn,commit:async()=>{},change:dn}},ol=W.createContext(al);function sl(e=!0){let t=W.useContext(ol);if(t.setValidityData===dn&&!e)throw Error(mn(28));return t}var cl=W.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:dn,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function ll(){return W.useContext(cl)}var ul=W.createContext({controlId:void 0,registerControlId:dn,labelId:void 0,setLabelId:dn,messageIds:[],setMessageIds:dn,getDescriptionProps:e=>e});function dl(){return W.useContext(ul)}function fl(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=dl(),o=Gr(t),s=n?i:void 0,c=ln(()=>Symbol(`labelable-control`)),l=W.useRef(!1),u=W.useRef(t!=null),d=Rr(()=>{!l.current||a===dn||(l.current=!1,a(c.current,void 0))});return z(()=>{if(a===dn)return;let e;if(n){let n=r?.current;e=B(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),W.useEffect(()=>d,[d]),i??o}function pl(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:ml,platform:hl,maxTouchPoints:gl}=pl(),_l=ml.toLowerCase(),vl=hl.toLowerCase(),yl=/^i(os$|p)/.test(vl)||vl===`macintel`&&gl>1,bl=`android`,xl=vl===bl||_l.includes(bl),Sl=!yl&&vl.startsWith(`mac`);vl.startsWith(`win`),!xl&&/^(linux|chrome os)/.test(vl);var Cl=Sl||yl,wl=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!wl&&_l.includes(`firefox`),!wl&&_l.includes(`chrom`);var Tl=Cl,El=/jsdom|happydom/.test(_l),Dl=`data-base-ui-focusable`,Ol=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,kl=`ArrowLeft`,Al=`ArrowRight`,jl=`ArrowUp`,Ml=`ArrowDown`;function Nl(e,t){if(!B(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Pl(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Fl(e){return e.matches(`html,body`)}function Il(e){return Or(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ll(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ol}`)!=null}function Y(e){return e?e.getAttribute(`role`)===`combobox`&&Il(e):!1}function Rl(e){if(!e||El)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function zl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Bl(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Bl(e,t.id,n)])}function Vl(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Hl(e){e.preventDefault(),e.stopPropagation()}function Ul(e){return`nativeEvent`in e}function Wl(e){return e.pointerType===``&&e.isTrusted?!0:xl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Gl(e){return El?!1:!xl&&e.width===0&&e.height===0||xl&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Kl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function ql(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Jl=[`top`,`right`,`bottom`,`left`],Yl=Math.min,Xl=Math.max,Zl=Math.round,Ql=Math.floor,$l=e=>({x:e,y:e}),eu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function tu(e,t,n){return Xl(e,Yl(t,n))}function nu(e,t){return typeof e==`function`?e(t):e}function ru(e){return e.split(`-`)[0]}function iu(e){return e.split(`-`)[1]}function au(e){return e===`x`?`y`:`x`}function ou(e){return e===`y`?`height`:`width`}function su(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function cu(e){return au(su(e))}function lu(e,t,n){n===void 0&&(n=!1);let r=iu(e),i=cu(e),a=ou(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=vu(o)),[o,vu(o)]}function uu(e){let t=vu(e);return[du(e),t,du(t)]}function du(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var fu=[`left`,`right`],pu=[`right`,`left`],mu=[`top`,`bottom`],hu=[`bottom`,`top`];function gu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?pu:fu:t?fu:pu;case`left`:case`right`:return t?mu:hu;default:return[]}}function _u(e,t,n,r){let i=iu(e),a=gu(ru(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(du)))),a}function vu(e){let t=ru(e);return eu[t]+e.slice(t.length)}function yu(e){return{top:0,right:0,bottom:0,left:0,...e}}function bu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:yu(e)}function xu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Su(e,t){return t<0||t>=e.length}function Cu(e,t){return Tu(e.current,{disabledIndices:t})}function wu(e,t){return Tu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Tu(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Eu(e,a,r));return a}function Eu(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Ou(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Du(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Ou(e,t=e?Nr(e):null){return!e||!e.isConnected||!t||Du(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ku=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Au(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Hr(n)?n.host:null}function ju(e){for(let t of Array.from(e.children))if(Ir(t)===`summary`)return t;return null}function Mu(e,t){let n=ju(t);return!!n&&(e===n||H(n,e))}function Nu(e){let t=e?Ir(e):``;return e!=null&&e.matches(ku)&&(t!==`summary`||e.parentElement!=null&&Ir(e.parentElement)===`details`&&ju(e.parentElement)===e)&&(t!==`details`||ju(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Pu(e){if(!Nu(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Au(t)){let n=t!==e,r=Ir(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Ir(t)===`details`&&!t.open&&!Mu(e,t)||t.hasAttribute(`hidden`)||!r&&!Fu(t,n))return!1}return!0}function Fu(e,t){let n=Nr(e);return t?n.display!==`none`:Ou(e,n)}function Iu(e){let t=e.tabIndex;if(t<0){let t=Ir(e);if(t===`details`||t===`audio`||t===`video`||Or(e)&&e.isContentEditable)return 0}return t}function Lu(e){if(Ir(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ru(e,t){let n=Lu(e);if(!n)return!0;let r=t.find(e=>{let t=Lu(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Lu(e);return t?.name===n.name&&t.form===n.form})===n}function zu(e){if(Or(e)&&Ir(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Or(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Bu(e,t){zu(e).forEach(e=>{Nu(e)&&t.push(e),Bu(e,t)})}function Vu(e,t,n){zu(e).forEach(e=>{Or(e)&&e.matches(t)&&n.push(e),Vu(e,t,n)})}function Hu(e){return Pu(e)&&Iu(e)>=0}function Uu(e){let t=[];return Bu(e,t),t.filter(Pu)}function Wu(e){let t=Uu(e);return t.filter(e=>Iu(e)>=0&&Ru(e,t))}function Gu(e,t){let n=Wu(e),r=n.length;if(r===0)return;let i=ii(V(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Ku(e){return Gu(V(e).body,1)||e}function qu(e){return Gu(V(e).body,-1)||e}function Ju(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}function Yu(e){Wu(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Xu(e){let t=[];Vu(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Zu=[];function Qu(e){W.useEffect(e,Zu)}var $u=0,ed=class e{static create(){return new e}currentId=$u;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=$u,t()},e)}isStarted(){return this.currentId!==$u}clear=()=>{this.currentId!==$u&&(clearTimeout(this.currentId),this.currentId=$u)};disposeEffect=()=>this.clear};function td(){let e=ln(ed.create).current;return Qu(e.disposeEffect),e}var nd=null;globalThis.requestAnimationFrame;var rd=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},id=class e{static create(){return new e}static request(e){return rd.request(e)}static cancel(e){return rd.cancel(e)}currentId=nd;request(e){this.cancel(),this.currentId=rd.request(()=>{this.currentId=nd,e()})}cancel=()=>{this.currentId!==nd&&(rd.cancel(this.currentId),this.currentId=nd)};disposeEffect=()=>this.cancel};function ad(){let e=ln(id.create).current;return Qu(e.disposeEffect),e}function od(e){return e==null?e:`current`in e?e.current:e}var sd=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),cd={[sd.startingStyle]:``},ld={[sd.endingStyle]:``},ud={transitionStatus(e){return e===`starting`?cd:e===`ending`?ld:null}},dd=n(Pe(),1);function fd(e,t=!1,n=!0){let r=ad();return Rr((i,a=null)=>{r.cancel();let o=od(e);if(o==null)return;let s=o,c=()=>{dd.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=sd.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function pd(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=Rr(i),o=fd(r,n,!1);W.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function md(e,t=!1,n=!1){let[r,i]=W.useState(e&&t?`idle`:void 0),[a,o]=W.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),z(()=>{if(!e&&a&&r!==`ending`&&n){let e=id.request(()=>{i(`ending`)});return()=>{id.cancel(e)}}},[e,a,r,n]),z(()=>{if(!e||t)return;let n=id.request(()=>{i(void 0)});return()=>{id.cancel(n)}},[t,e]),z(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=id.request(()=>{i(`idle`)});return()=>{id.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function hd({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=W.useRef(e!==void 0),[a,o]=W.useState(t);return[i?e:a,W.useCallback(e=>{i||o(e)},[])]}function gd(e,t,n,r,i=!0,a){let{registerFieldControl:o}=sl(),s=W.useRef(null);s.current||=Symbol(),z(()=>{let c=s.current;if(!(!c||!i))return o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}),()=>{o(c,void 0)}},[e,i,r,t,a,o,n])}var _d=W.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=sl(),{clearErrors:C}=ll(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=dl(),O=fl({id:i});z(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let k=W.useRef(null);z(()=>{u&&k.current===ii(V(k.current))&&y(!0)},[u,y]);let[A]=hd({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,ee=Rr(()=>S.inputRef.current?.value);return gd(S.inputRef,O,M,ee,!w,a),un(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:S.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,ri(Jr,e.nativeEvent)),_(t!==v.initialValue),b(t!==``),e.nativeEvent.defaultPrevented||(C(T),S.change(t))},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},f,e=>S.getValidationProps(w,e)],stateAttributesMapping:il})}),vd=W.forwardRef(function(e,t){return(0,G.jsx)(_d,{ref:t,...e})});function yd(e){let t=(0,oc.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=wn(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,G.jsx)(vd,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var bd=W.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return un(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function xd(e){let t=(0,oc.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=wn(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,G.jsx)(bd,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var X=W.createContext(!1),Sd=W.createContext(void 0);function Cd(e){let t=W.useContext(Sd);if(e===!1&&t===void 0)throw Error(mn(27));return t}var wd=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=sd.startingStyle]=`startingStyle`,e[e.endingStyle=sd.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Td=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Ed={[Td.popupOpen]:``},Dd={[Td.popupOpen]:``,[Td.pressed]:``},Od={[wd.open]:``},kd={[wd.closed]:``},Ad={[wd.anchorHidden]:``},jd={open(e){return e?Ed:null}},Md={open(e){return e?Dd:null}},Nd={open(e){return e?Od:kd},anchorHidden(e){return e?Ad:null}},Pd={...Nd,...ud},Fd=W.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=Cd(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return un(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Pd,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Id=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=Cd(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Lr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,ri(ti,e.nativeEvent))}return un(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Ld=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Cd(),c=Gr(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),un(`p`,e,{ref:t,props:[{id:c},o]})});function Rd(e,t){return t!=null&&!Kl(t)?0:typeof e==`function`?e():e}function zd(e,t,n){let r=Rd(e,n);return typeof r==`number`?r:r?.[t]}function Bd(e){return typeof e==`function`?e():e}function Vd(e,t){return t||e===`click`||e===`mousedown`}function Hd(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Ud=W.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ed,currentIdRef:{current:null},currentContextRef:{current:null}});function Wd(e,t){e.current=t.current}function Gd(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=W.useRef(n),a=W.useRef(n),o=W.useRef(null),s=W.useRef(null),c=td();return z(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:zd(i.current,`open`),close:zd(n,`close`)}},[n,o,i,a]),(0,G.jsx)(Ud.Provider,{value:W.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Kd(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=W.useContext(Ud),[f,p]=W.useState(!1),m=W.useRef(n),h=W.useRef(!1);return z(()=>{m.current=n},[n]),z(()=>()=>{h.current=!0},[]),z(()=>{function e(){h.current||p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),z(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:zd(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,ri(Jr))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),z(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,Wd(o,c),d.clear()}},[l,a,o,i,c,d]),W.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Z(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qd(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Xd={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Zd={...Xd,position:`fixed`,top:0,left:0},Qd={...Xd,position:`absolute`},$d=W.forwardRef(function(e,t){let[n,r]=W.useState();z(()=>{Tl&&wl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:Zd,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function ef(e){return`data-base-ui-${e}`}var tf=0;function nf(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(tf);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),dn;let o=requestAnimationFrame(a);return tf=o,()=>{tf===o&&(cancelAnimationFrame(o),tf=0)}}var rf={inert:new WeakMap,"aria-hidden":new WeakMap},af=`data-base-ui-inert`,of={inert:new WeakSet,"aria-hidden":new WeakSet},sf=new WeakMap,cf=0;function lf(e){return of[e]}function uf(e){return e?Hr(e)?e.host:uf(e.parentNode):null}var df=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=uf(t);return e.contains(n)?n:null}).filter(e=>e!=null),ff=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},pf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Ir(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function mf(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=df(t,e),l=i?pf(t,ff(c),new Set(c)):[],u=[],d=[];if(a){let e=rf[a],n=lf(a);s=n,o=e;let r=df(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);pf(t,ff(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(sf.get(e)||0)+1;sf.set(e,t),d.push(e),t===1&&e.setAttribute(af,``)}),cf+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(sf.get(e)||0)-1;sf.set(e,t),t||e.removeAttribute(af)}),--cf,cf||(rf.inert=new WeakMap,rf[`aria-hidden`]=new WeakMap,of.inert=new WeakSet,of[`aria-hidden`]=new WeakSet,sf=new WeakMap)}}function hf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=V(e[0]).body;return mf(e,a,n,r,{mark:i})}var gf={style:{transition:`none`}},_f={fallbackAxisSide:`none`},vf={fallbackAxisSide:`end`},yf={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},bf=W.createContext(null),xf=()=>W.useContext(bf),Sf=ef(`portal`);function Cf(e={}){let{ref:t,container:n,componentProps:r=on,elementProps:i}=e,a=Wr(),o=xf()?.portalNode,[s,c]=W.useState(null),[l,u]=W.useState(null),d=Rr(e=>{e!==null&&u(e)}),f=W.useRef(null);z(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Tr(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=un(`div`,r,{ref:[t,d],props:[{id:a,[Sf]:``},i]});return{portalNode:l,portalSubtree:s&&p?dd.createPortal(p,s):null}}var wf=W.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Cf({container:o,ref:t,componentProps:e,elementProps:c}),d=W.useRef(null),f=W.useRef(null),p=W.useRef(null),m=W.useRef(null),[h,g]=W.useState(null),_=W.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;W.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Ju(e)&&(e.type===`focusin`?_.current&&=(Xu(l),!1):(Yu(l),_.current=!0))}return qd(Z(l,`focusin`,e,!0),Z(l,`focusout`,e,!0))},[l,v]),z(()=>{!l||y!==!0||!_.current||(Xu(l),_.current=!1)},[y,l]);let x=W.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,G.jsxs)(W.Fragment,{children:[u,(0,G.jsxs)(bf.Provider,{value:x,children:[b&&l&&(0,G.jsx)($d,{"data-type":`outside`,ref:d,onFocus:e=>{Ju(e,l)?p.current?.focus():qu(h?h.domReference:null)?.focus()}}),b&&l&&(0,G.jsx)(`span`,{"aria-owns":l.id,style:yf}),l&&dd.createPortal(a,l),b&&l&&(0,G.jsx)($d,{"data-type":`outside`,ref:f,onFocus:e=>{Ju(e,l)?m.current?.focus():(Ku(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,ri(`focus-out`,e.nativeEvent)))}})]})]})});function Tf(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Ef=W.createContext(null),Df=W.createContext(null),Of=()=>W.useContext(Ef)?.id||null,kf=e=>{let t=W.useContext(Df);return e??t};function Af(e,t){let n=Dr(qr(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var jf=20,Mf=[];function Nf(){Mf=Mf.filter(e=>e.deref()?.isConnected)}function Pf(e){Nf(),e&&Ir(e)!==`body`&&(Mf.push(new WeakRef(e)),Mf.length>jf&&(Mf=Mf.slice(-20)))}function Ff(){return Nf(),Mf[Mf.length-1]?.deref()}function If(e){return e?Hu(e)?e:Wu(e)[0]||e:null}function Lf(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Uu(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Hu(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Rf(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=Rr(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Y(_)&&S,w=Jd(i),T=Jd(a),E=Jd(l),D=Jd(g),O=kf(p),k=xf(),A=W.useRef(!1),j=W.useRef(!1),M=W.useRef(!1),ee=W.useRef(null),N=W.useRef(``),P=W.useRef(``),te=W.useRef(null),ne=W.useRef(null),re=sn(te,f,k?.beforeInsideRef),ie=sn(ne,k?.afterInsideRef),ae=td(),F=td(),oe=ad(),se=k!=null,I=zl(v),ce=Rr((e=I)=>e?Wu(e):[]),le=Rr(()=>m?.().filter(e=>e!=null)??[]);W.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&H(I,ii(V(I)))&&ce().length===0&&!C&&Hl(e)}return Z(V(I),`keydown`,e)},[r,I,s,C,ce]),W.useEffect(()=>{if(r||!g)return;let e=V(I);function t(){M.current=!1}function n(e){let t=qr(e),n=le(),r=H(v,t)||H(_,t)||H(k?.portalNode,t)||n.some(e=>e===t||H(e,t));M.current=!r,P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0,F.start(0,()=>{j.current=!1}))}function i(){P.current=`keyboard`}return qd(Z(e,`pointerdown`,n,!0),Z(e,`pointerup`,t,!0),Z(e,`pointercancel`,t,!0),Z(e,`keydown`,i,!0),t)},[r,v,_,I,g,k,F,le]),W.useEffect(()=>{if(r||!c)return;let e=V(I);function t(){j.current=!0,F.start(0,()=>{j.current=!1})}function n(e){let t=qr(e);Hu(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=qr(t);s&&n==null&&i!=null&&H(v,i)&&Pf(i),queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=le(),f=n?.hasAttribute(ef(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,od(d),od(u)].includes(n),p=!(H(_,n)||H(v,n)||H(n,v)||H(k?.portalNode,n)||l.some(e=>e===n||H(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>H(e,n))||f||O&&(Bl(O.nodesRef.current,a).find(e=>H(e.context?.elements.floating,n)||H(e.context?.elements.domReference,n))||Vl(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,zl(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&I&&Lf(I),o&&r!==_&&!Ou(i)&&ii(e)===e.body){if(Or(I)&&(I.focus(),o===`popup`)){oe.request(()=>{I.focus()});return}let e=ce(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;Or(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==Ff())&&(A.current=!0,h.setOpen(!1,ri($r,t)))})}function a(){M.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=Or(_)?_:null;if(!(!v&&!l))return qd(l&&Z(l,`focusout`,i),l&&Z(l,`pointerdown`,t),v&&Z(v,`focusin`,n),v&&Z(v,`focusout`,i),v&&k&&Z(v,`focusout`,a,!0))},[r,_,v,I,s,O,k,h,c,o,ce,C,x,b,ae,F,oe,u,d,le]),W.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${ef(`portal`)}]`)||[]),t=(O?Vl(O.nodesRef.current,x()):[]).find(e=>Y(e.context?.elements.domReference||null))?.context?.elements.domReference,n=hf([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...le(),t,od(d),od(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=hf([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,le]),z(()=>{if(!g||r||!Or(I))return;let e=V(I),t=ii(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(E.current||``):n;if(r===void 0||r===!1||H(I,t))return;let i=null,a=()=>(i??=ce(I),i[0]||I),o;o=r===!0||r===null?a():od(r),o||=a();let s=H(I,ii(e));nf(o,{preventScroll:o===I,shouldFocus(){if(!D.current)return!1;if(s)return!0;let t=ii(e);return!(t!==o&&H(I,t))}})})},[r,g,I,ce,w,E,D]),z(()=>{if(r||!I)return;let e=V(I),t=ii(e),n=E.current==null;Pf(t);function i(e){if(e.open||(N.current=Af(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(Wl(e.nativeEvent)||Gl(e.nativeEvent))A.current=!1;else{let e=!1;V(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,i);function a(){let e=T.current,r=typeof e==`function`?e(N.current):e;if(r===void 0||r===!1)return null;r===null&&(r=!0);let i=_?.isConnected?_:null,a=t?.isConnected&&Ir(t)!==`body`?t:null,o=n?a||i:i||a;return o||=Ff()||null,typeof r==`boolean`?o:od(r)||o||null}return()=>{y.off(`openchange`,i);let t=ii(e),n=le(),r=H(v,t)||n.some(e=>e===t||H(e,t))||O&&Bl(O.nodesRef.current,x(),!1).some(e=>H(e.context?.elements.floating,t)),o=T.current,s=a();queueMicrotask(()=>{let n=If(s),i=typeof o!=`boolean`;o&&!A.current&&Or(n)&&(!(!i&&n!==t&&t!==e.body)||r)&&n.focus({preventScroll:!0}),A.current=!1})}},[r,v,I,T,E,y,O,_,x,le]),z(()=>{if(!wl||g||!v)return;let e=ii(V(v));!Or(e)||!Il(e)||H(v,e)&&e.blur()},[g,v]),z(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),z(()=>{if(!(r||!I))return Lf(I),()=>{queueMicrotask(Nf)}},[r,I]);let ue=!r&&(s?!C:!0)&&(se||s);return(0,G.jsxs)(W.Fragment,{children:[ue&&(0,G.jsx)($d,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=ce();nf(e[e.length-1])}else k?.portalNode&&(A.current=!1,Ju(e,k.portalNode)?Ku(_)?.focus():od(d??k.beforeOutsideRef)?.focus())}}),n,ue&&(0,G.jsx)($d,{"data-type":`inside`,ref:ie,onFocus:e=>{s?nf(ce()[0]):k?.portalNode&&(c&&(A.current=!0),Ju(e,k.portalNode)?qu(_)?.focus():od(u??k.afterOutsideRef)?.focus())}})]})}function zf(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Bf(e){return e!=null&&e.clientX!=null}function Vf(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=W.useRef(!1),u=W.useRef(null),[d,f]=W.useState(),[p,m]=W.useState([]),h=Rr(e=>{i.set(`positionReference`,e)}),g=Rr((e,t,n)=>{l.current||c.current.openEvent&&!Bf(c.current.openEvent)||i.set(`positionReference`,zf(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=Rr(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Kl(d)?o:a;W.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=Dr(o);function r(t){let n=qr(t);H(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Bf(c.current.openEvent)?u.current=Z(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),W.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),W.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),W.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=W.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return W.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function Hf(){return!1}function Uf(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Wf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Hf,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=kf(c),m=Rr(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=Rr(()=>a),{escapeKey:v,outsidePress:y}=Uf(s),b=W.useRef(!1),x=W.useRef(!1),S=W.useRef(!1),C=W.useRef(!1),w=W.useRef(``),T=W.useRef(null),E=td(),D=td(),O=Rr(()=>{D.clear(),f.current.insideReactTree=!1}),k=Rr(e=>{let t=f.current.floatingContext?.nodeId;return(p?Bl(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),A=Rr(e=>Pl(e,l.select(`floatingElement`))||Pl(e,l.select(`domReferenceElement`))),j=Rr(e=>{o()&&l.setOpen(!1,ri(Yr,e.nativeEvent))}),M=Rr(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&k(`__escapeKeyBubbles`))return;let t=ri(Kr,Ul(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),ee=Rr(()=>{f.current.insideReactTree=!0,D.start(0,O)}),N=Rr(e=>{if(!u||!n||e.button!==0)return;let t=qr(e.nativeEvent);H(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),P=Rr(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});W.useEffect(()=>{if(!u||!n)return;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new ed,t=new ed;function i(){e.clear(),C.current=!0}function a(){e.start(wl?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=w.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function D(e){let t=f.current.floatingContext?.nodeId,n=p&&Bl(p.nodesRef.current,t).some(t=>Pl(e,t.context?.elements.floating));return A(e)||n}function j(e){if(m(e)){e.type!==`click`&&!A(e)&&(t.clear(),S.current=!1),O();return}if(f.current.insideReactTree){O();return}let n=qr(e),r=`[${ef(`inert`)}]`,i=B(n)?n.getRootNode():null,a=Array.from((Hr(i)?i:V(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>H(e,n))))return;let s=B(n)?n:null;for(;s&&!Ur(s);){let e=jr(s);if(Ur(e)||!B(e))break;s=e}if(!(a.length&&B(n)&&!Fl(n)&&!H(n,l.select(`floatingElement`))&&a.every(e=>!H(s,e)))){if(Or(n)&&!(`touches`in e)){let t=Ur(n),r=Nr(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!D(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||k(`__outsidePressBubbles`)||(l.setOpen(!1,ri(ei,e)),O())}}}function ee(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||A(e)||j(e)}function N(e){if(c()!==`sloppy`||!l.select(`open`)||!n||A(e))return;let t=e.touches[0];t&&(T.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=qr(e);if(!n)return;let r=Z(n,e.type,()=>{t(e),r()})}function te(e){w.current=`touch`,P(e,N)}function ne(e){E.clear(),e.type===`pointerdown`&&(w.current=e.pointerType),!(e.type===`mousedown`&&T.current&&!T.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?ee(e):j(e)})}function re(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!D(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,O())}}}function ie(e){if(c()!==`sloppy`||!T.current||A(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-T.current.startX),r=Math.abs(t.clientY-T.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(T.current.dismissOnTouchEnd=!0),i>10&&(j(e),E.clear(),T.current=null)}function ae(e){P(e,ie)}function F(e){c()!==`sloppy`||!T.current||A(e)||(T.current.dismissOnTouchEnd&&j(e),E.clear(),T.current=null)}function oe(e){P(e,F)}let se=V(d),I=qd(r&&qd(Z(se,`keydown`,M),Z(se,`compositionstart`,i),Z(se,`compositionend`,a)),g&&qd(Z(se,`click`,ne,!0),Z(se,`pointerdown`,ne,!0),Z(se,`pointerup`,re,!0),Z(se,`pointercancel`,re,!0),Z(se,`mousedown`,ne,!0),Z(se,`mouseup`,re,!0),Z(se,`touchstart`,te,!0),Z(se,`touchmove`,ae,!0),Z(se,`touchend`,oe,!0)));return()=>{I(),e.clear(),t.clear(),s(),S.current=!1}},[f,d,r,g,h,u,n,v,y,M,O,_,k,A,p,l,E]),W.useEffect(O,[h,O]);let te=W.useMemo(()=>({onKeyDown:M,onPointerDown:j,onClick:j}),[M,j]),ne=W.useMemo(()=>({onKeyDown:M,onPointerDown:P,onMouseDown:P,onClickCapture:ee,onMouseDownCapture(e){ee(),N(e)},onPointerDownCapture(e){ee(),N(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[M,ee,N,P]);return W.useMemo(()=>n?{reference:te,floating:ne,trigger:te}:{},[n,te,ne])}function Gf(e,t,n){let{reference:r,floating:i}=e,a=su(t),o=cu(t),s=ou(o),c=ru(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(iu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Kf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=nu(t,e),p=bu(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=xu(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=xu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var qf=50,Jf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Kf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Gf(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==su(t))||T.every(e=>su(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=su(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Xf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zf(e){return Jl.some(t=>e[t]>=0)}var Qf=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=nu(e,t);switch(i){case`referenceHidden`:{let e=Xf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Zf(e)}}}case`escaped`:{let e=Xf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Zf(e)}}}default:return{}}}}},$f=new Set([`left`,`top`]);async function ep(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ru(n),s=iu(n),c=su(n)===`y`,l=$f.has(o)?-1:1,u=a&&c?-1:1,d=nu(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var tp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ep(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},np=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=nu(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=su(ru(i)),p=au(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=tu(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=tu(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},rp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=nu(e,t),u={x:n,y:r},d=su(i),f=au(d),p=u[f],m=u[d],h=nu(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=$f.has(ru(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},ip=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=nu(e,t),u=await o.detectOverflow(t,l),d=ru(i),f=iu(i),p=su(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Yl(h-u[g],v),x=Yl(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Xl(u.left,0),t=Xl(u.right,0),n=Xl(u.top,0),r=Xl(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Xl(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Xl(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ap(e){let t=Nr(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Or(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Zl(n)!==a||Zl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function op(e){return B(e)?e:e.contextElement}function sp(e){let t=op(e);if(!Or(t))return $l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ap(t),o=(a?Zl(n.width):n.width)/r,s=(a?Zl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var cp=$l(0);function lp(e){let t=Dr(e);return!Cr()||!t.visualViewport?cp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function up(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Dr(e)?!1:t}function dp(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=op(e),o=$l(1);t&&(r?B(r)&&(o=sp(r)):o=sp(e));let s=up(a,n,r)?lp(a):$l(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Dr(a),t=r&&B(r)?Dr(r):r,n=e,i=Ar(n);for(;i&&r&&t!==n;){let e=sp(i),t=i.getBoundingClientRect(),r=Nr(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Dr(i),i=Ar(n)}}return xu({width:u,height:d,x:c,y:l})}function fp(e,t){let n=Pr(e).scrollLeft;return t?t.left+n:dp(kr(e)).left+n}function pp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-fp(e,n),y:n.top+t.scrollTop}}function mp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=kr(r),s=t?wr(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=$l(1),u=$l(0),d=Or(r);if((d||!d&&!a)&&((Ir(r)!==`body`||Sr(o))&&(c=Pr(r)),d)){let e=dp(r);l=sp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?pp(o,c):$l(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function hp(e){return Array.from(e.getClientRects())}function gp(e){let t=kr(e),n=Pr(e),r=e.ownerDocument.body,i=Xl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Xl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+fp(e),s=-n.scrollTop;return Nr(r).direction===`rtl`&&(o+=Xl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var _p=25;function vp(e,t){let n=Dr(e),r=kr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Cr();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=fp(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=_p&&(a-=o)}else l<=_p&&(a+=l);return{width:a,height:o,x:s,y:c}}function yp(e,t){let n=dp(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Or(e)?sp(e):$l(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function bp(e,t,n){let r;if(t===`viewport`)r=vp(e,n);else if(t===`document`)r=gp(kr(e));else if(B(t))r=yp(t,n);else{let n=lp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return xu(r)}function xp(e,t){let n=jr(e);return n===t||!B(n)||Ur(n)?!1:Nr(n).position===`fixed`||xp(n,t)}function Sp(e,t){let n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(e=>B(e)&&Ir(e)!==`body`),i=null,a=Nr(e).position===`fixed`,o=a?jr(e):e;for(;B(o)&&!Ur(o);){let t=Nr(o),n=Vr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Sr(o)&&!n&&xp(e,o))?r=r.filter(e=>e!==o):i=t,o=jr(o)}return t.set(e,r),r}function Cp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?wr(t)?[]:Sp(t,this._c):[].concat(n),r],o=bp(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!Mp(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Pp(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=op(e),u=i||a?[...l?Mr(l):[],...t?Mr(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Np(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?dp(e):null;c&&g();function g(){let t=dp(e);h&&!Mp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Fp=tp,Ip=np,Lp=Yf,Rp=ip,zp=Qf,Bp=rp,Vp=(e,t,n)=>{let r=new Map,i={platform:jp,...n},a={...i.platform,_c:r};return Jf(e,t,{...i,platform:a})},Hp=typeof document<`u`?W.useLayoutEffect:function(){};function Up(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Up(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Up(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Wp(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gp(e,t){let n=Wp(e);return Math.round(t*n)/n}function Kp(e){let t=W.useRef(e);return Hp(()=>{t.current=e}),t}function qp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=W.useState(r);Up(f,r)||p(r);let[m,h]=W.useState(null),[g,_]=W.useState(null),v=W.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=W.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=W.useRef(null),C=W.useRef(null),w=W.useRef(u),T=c!=null,E=Kp(c),D=Kp(i),O=Kp(l),k=W.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Vp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Up(w.current,t)&&(w.current=t,dd.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Hp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=W.useRef(!1);Hp(()=>(A.current=!0,()=>{A.current=!1}),[]),Hp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=W.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=W.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=W.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Gp(M.floating,u.x),r=Gp(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Wp(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return W.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var Jp=(e,t)=>{let n=Fp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yp=(e,t)=>{let n=Ip(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xp=(e,t)=>({fn:Bp(e).fn,options:[e,t]}),Zp=(e,t)=>{let n=Lp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qp=(e,t)=>{let n=Rp(e);return{name:n.name,fn:n.fn,options:[e,t]}},$p=(e,t)=>{let n=zp(e);return{name:n.name,fn:n.fn,options:[e,t]}};function em(e){let t=W.useRef(!0);t.current&&(t.current=!1,e())}var Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(mn(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},tm=[],nm=void 0;function rm(){return nm}function im(e){tm.push(e)}function am(e){let t=(t,n)=>{let r=ln(sm).current,i;try{nm=r;for(let e of tm)e.before(r);i=e(t,n);for(let e of tm)e.after(r);r.didInitialize=!0}finally{nm=void 0}return i};return t.displayName=e.displayName||e.name,t}function om(e){return W.forwardRef(am(e))}function sm(){return{didInitialize:!1}}var cm=ie(),lm=ne(),um=fn(19)?pm:mm;function dm(e,t,n,r,i){return um(e,t,n,r,i)}function fm(e,t,n,r,i){let a=W.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,cm.useSyncExternalStore)(e.subscribe,a,a)}im({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,cm.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function pm(e,t,n,r,i){let a=rm();if(!a)return fm(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function mm(e,t,n,r,i){return(0,lm.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var hm=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return dm(this,e,t,n,r)}},gm=class extends hm{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){W.useDebugValue(e);let n=this;z(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;z(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;z(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){W.useDebugValue(e);let n=this,r=t!==void 0;z(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return W.useDebugValue(e),dm(this,this.selectors[e],t,n,r)}useContextCallback(e,t){W.useDebugValue(e);let n=Rr(t??dn);this.context[e]=n}useStateSetter(e){let t=W.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},_m={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},vm=class extends gm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Tf(),nested:n,triggerElements:i},_m),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&ql(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function ym(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=W.useRef(null);r===void 0&&f.current===null&&(f.current=new vm({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),z(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};B(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var bm={tabIndex:-1,[Dl]:``};function xm(e){return t=>t===`touch`?e.current:!0}function Sm(e,t,n=!1){let r=Wr(),i=Of()!=null,a=W.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return ym({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Cm(e,t){let n=W.useRef(null),r=W.useRef(null);return W.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function wm(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function Tm(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Em(e,t,n,r={}){let i=n.reason,a=i===Xr,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=Tm(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),wm(i,t,n.trigger,c()),e.update(i)};a?dd.flushSync(l):l()}function Dm(e,t,n,r){em(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Om(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Cm(e,n),o=Rr(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return z(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function km(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);z(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=ri(Jr);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function Am(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=md(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=Rr(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return pd({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function jm(e,t){e.useSyncedValues(t),z(()=>()=>{e.update({activeTriggerProps:on,inactiveTriggerProps:on,popupProps:on})},[e])}function Mm(e,t){z(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),z(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Nm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Pm(){return new vm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Nm,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Fm(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Pm(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:on,inactiveTriggerProps:on,popupProps:on}}function Im(e,t,n=!1){return new vm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Lm=Q(e=>e.triggerIdProp??e.activeTriggerId),Rm=Q(e=>e.openProp??e.open),zm=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function Bm(e,t){return t!==void 0&&Rm(e)&&Lm(e)===t}function Vm(e,t){return Bm(e,t)?!0:t!==void 0&&Rm(e)&&Lm(e)==null&&e.triggerCount===1}var Hm={open:Rm,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:Lm,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:zm,isTriggerActive:Q((e,t)=>t!==void 0&&Lm(e)===t),isOpenedByTrigger:Q((e,t)=>Bm(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&Lm(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>Vm(e,t)?zm(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function Um(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Wr(),a=Of()!=null,o=ln(()=>new vm({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Nm,floatingId:i,syncOnly:!1,nested:a})).current;return z(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=B(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Wm(e={}){let{nodeId:t,externalTree:n}=e,r=Um(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=W.useState(null),[f,p]=W.useState(void 0),[m,h]=W.useState(void 0),g=W.useRef(null),_=kf(n),v=W.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=qp({...e,elements:{...v,...u&&{reference:u}}}),b=B(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=W.useCallback(e=>{let t=B(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=W.useCallback(e=>{(B(e)||e===null)&&(g.current=e,p(e)),(B(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!B(e))&&y.refs.setReference(e)},[y.refs,p]),w=W.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=W.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=W.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=W.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return z(()=>{s&&(g.current=s)},[s]),z(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),W.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var Gm=Sl&&wl;function Km(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=W.useRef(!1),c=W.useRef(null),l=W.useRef(!0),u=td();W.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=Dr(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&Or(e)&&e===ii(V(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return qd(Z(t,`blur`,r),Gm&&Z(t,`keydown`,a,!0),Gm&&Z(t,`pointerdown`,o,!0))},[i,n]),W.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);B(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=W.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=qr(t.nativeEvent);if(B(a)){if(Gm&&!t.relatedTarget){if(!l.current&&!Il(a))return}else if(!Rl(a))return}let o=Nl(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,ri(Qr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,ri(Qr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=B(n)&&n.hasAttribute(ef(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=ii(V(e));!n&&t===e||H(o.current.floatingContext?.refs.floating.current,t)||H(e,t)||a||Nl(n??t,i.context.triggerElements)||i.setOpen(!1,ri(Qr,r))})}}},[o,r,i,u]);return W.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var qm=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new ed,this.restTimeout=new ed,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Jm=new WeakMap;function Ym(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Jm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Jm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Xm(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Jm.get(n);a&&a!==e&&Ym(a),Ym(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Jm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Zm(e){let t=e.context.dataRef.current,n=ln(()=>t.hoverInteractionState??qm.create()).current;return t.hoverInteractionState||=n,Qu(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Qm(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=kf(),d=Of(),f=Zm(a),p=td(),m=Rr(()=>Vd(l.current.openEvent?.type,f.interactedInside)),h=Rr(()=>Hd(l.current.openEvent?.type)),g=Rr(()=>{Ym(f)});z(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),W.useEffect(()=>g,[g]),z(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&B(c)&&s){let e=c,t=s,n=V(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Xm(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),W.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Bl(u.nodesRef.current,d).length>0)}function t(e){let t=zd(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,ri(Xr,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=qr(e);if(!Ll(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(Nl(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&B(o)&&Bl(u.nodesRef.current,r,!1).some(e=>H(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,ri(Xr,t)),u.events.emit(`floating.closed`,t)})}let y=s;return qd(y&&Z(y,`mouseenter`,c),y&&Z(y,`mouseleave`,_),y&&Z(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var $m={current:null};function eh(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=$m,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=kf(l),v=Zm(m),y=W.useRef(!1),b=Jd(i),x=Jd(r),S=Jd(o),C=Jd(n),w=Jd(p),T=Jd(f),E=Rr(()=>Vd(h.current.openEvent?.type,v.interactedInside)),D=Rr(()=>w.current?.()!==!1),O=Rr((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!H(e,t);if(!B(n))return!1;let i=n;return r.hasMatchingElement(e=>H(e,i))&&(!e||!H(e,i))}),k=Rr(()=>{v.handler&&=(V(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=Rr(()=>{Ym(v)});return u&&(v.handleCloseOptions=b.current?.__options),W.useEffect(()=>k,[k]),W.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Xr,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),W.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=zd(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,ri(Xr,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,ri(Xr,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!B(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Kl(v.pointerType))return;let t=Bd(S.current),n=zd(x.current,`open`,v.pointerType),r=qr(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(B(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(H(e,r)){s=e;break}}B(i)&&B(o)&&!m.context.triggerElements.hasElement(i)&&H(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&B(s)&&B(o)&&H(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,ri(Xr,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,ri(Xr,e,s))}):g&&D()&&m.setOpen(!0,ri(Xr,e,s)))}function i(t){if(E()){A();return}k();let n=V(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Nl(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!H(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?qd(Z(t,`mousemove`,r,{once:!0}),Z(t,`mouseenter`,r),Z(t,`mouseleave`,i)):qd(Z(t,`mouseenter`,r),Z(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),W.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!Kl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);if(e){let t=v.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Xm(v,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=Bd(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,ri(Xr,t,n))}v.pointerType===`touch`?dd.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var th=.1,nh=th*th,rh=.5;function ih(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function ah(e,t,n,r,i,a,o,s,c,l){let u=!1;return ih(e,t,n,r,i,a)&&(u=!u),ih(e,t,i,a,o,s)&&(u=!u),ih(e,t,o,s,c,l)&&(u=!u),ih(e,t,c,l,n,r)&&(u=!u),u}function oh(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function sh(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function ch(e={}){let{blockPointerEvents:t=!1}=e,n=new ed,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*nh;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=sh(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=sh(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=sh(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=sh(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!oh(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?rh/2:rh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+rh+1,o=C||T?S.bottom-rh:S.top,s=C?T?S.bottom-rh:S.top:S.bottom-rh;M=ah(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?rh/2:rh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-rh,o=C||T?S.top+rh:S.bottom,s=C?T?S.top+rh:S.bottom:S.top+rh;M=ah(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?rh/2:rh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+rh+1,o=w||E?S.right-rh:S.left,s=w?E?S.right-rh:S.left:S.right-rh;M=ah(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?rh/2:rh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-rh,o=w||E?S.left+rh:S.right,s=w?E?S.left+rh:S.right:S.left+rh;M=ah(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var lh=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),uh=function(e){return e[e.open=wd.open]=`open`,e[e.closed=wd.closed]=`closed`,e[e.startingStyle=wd.startingStyle]=`startingStyle`,e[e.endingStyle=wd.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),dh=W.createContext(void 0);function fh(){let e=W.useContext(dh);if(e===void 0)throw Error(mn(26));return e}var ph=`ArrowUp`,mh=`ArrowDown`,hh=`ArrowLeft`,gh=`ArrowRight`,_h=`Home`,vh=new Set([hh,gh]),yh=new Set([hh,gh,_h,`End`]),bh=new Set([ph,mh]),xh=new Set([ph,mh,_h,`End`]),Sh=new Set([...vh,...bh]),Ch=new Set([...Sh,_h,`End`]),wh=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Th(e){return Or(e)&&e.tagName===`INPUT`}function Eh(e){return!!(Th(e)&&e.selectionStart!=null||Or(e)&&e.tagName===`TEXTAREA`)}function Dh(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Oh(e,t,`top`),r=kh(e),i=kh(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Oh(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function kh(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Ah={...Nd,...ud,nestedDialogOpen(e){return e?{[uh.nestedDialogOpen]:``}:null}},jh=W.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=Cd(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;fh(),pd({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?xm(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=un(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...bm,hidden:!m,onKeyDown(e){Ch.has(e.key)&&e.stopPropagation()},style:{[lh.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:Ah});return(0,G.jsx)(Rf,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})});function Mh(e){return fn(19)?e:e?`true`:void 0}var Nh=W.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,G.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Ph=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Cd(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,G.jsx)(dh.Provider,{value:n,children:(0,G.jsxs)(wf,{ref:t,...r,children:[a&&o===!0&&(0,G.jsx)(Nh,{ref:i.context.internalBackdropRef,inert:Mh(!s)}),e.children]})}):null}),Fh={},Ih={},Lh=``;function Rh(e){if(typeof document>`u`)return!1;let t=V(e);return Dr(t).innerWidth-t.documentElement.clientWidth>0}function zh(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=V(e),n=t.documentElement,r=t.body,i=Sr(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Bh(e){let t=V(e),n=t.documentElement,r=t.body,i=Sr(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Vh(e){let t=V(e),n=t.documentElement,r=t.body,i=Dr(n),a=0,o=0,s=!1,c=id.create();if(wl&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Fh={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Lh=n.style.scrollBehavior,Ih={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Sr(n)?n:r;if(s=zh(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Fh),Object.assign(r.style,Ih),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Lh)}function d(){u(),c.request(l)}l();let f=Z(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Hh=new class{lockCount=0;restore=null;timeoutLock=ed.create();timeoutUnlock=ed.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=V(e).documentElement,n=Dr(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=dn;return}let r=yl||!Rh(e);this.restore=r?Bh(e):Vh(e)}};function Uh(e=!0,t=null){z(()=>{if(e)return Hh.acquire(t)},[e,t])}function Wh(e){let{store:t,actionsRef:n}=e,r=t.useState(`open`);Mm(t,r),km(t);let{forceUnmount:i}=Am(r,t),a=W.useCallback(()=>{t.setOpen(!1,ri(ni))},[t]);W.useImperativeHandle(n,()=>({unmount:i,close:a}),[i,a])}function Gh({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=W.useState(0),[u,d]=W.useState(0),f=c===0,p=Wf(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=qr(t);return f&&!i?a&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||H(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0:!1},escapeKey:f});return Uh(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),d(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{l(0),d(0)}),W.useEffect(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(c+1,u+ +!!n),t?.onNestedDialogClose&&!r&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&r&&t.onNestedDialogClose()}),[n,r,c,u,t]),jm(e,{activeTriggerProps:p.reference??on,inactiveTriggerProps:p.trigger??on,popupProps:p.floating??on,nestedOpenDialogCount:c,nestedOpenDrawerCount:u}),null}var Kh={...Hm,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},qh=class e extends gm{constructor(e,t,n=!1){let r=new Nm,i=Jh(e);i.floatingRootContext=Im(r,t,n),super(i,{popupRef:W.createRef(),backdropRef:W.createRef(),internalBackdropRef:W.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},Kh)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};wm(n,e,t.trigger),this.update(n)};static useStore(t,n){return Sm(t,(t,r)=>new e(n,t,r),!0).store}};function Jh(e={}){return{...Fm(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Yh(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Cd(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=qh.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});em(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);Wh({store:b,actionsRef:l});let w=x||S,T=W.useMemo(()=>({store:b}),[b]);return(0,G.jsx)(X.Provider,{value:!1,children:(0,G.jsxs)(Sd.Provider,{value:T,children:[w&&(0,G.jsx)(Gh,{store:b,parentContext:v?.store.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})})}function Xh(e){return Yh(e,W.useContext(X)?`drawer`:`dialog`)}var Zh=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Cd(),c=Gr(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),un(`h2`,e,{ref:t,props:[{id:c},o]})});function Qh(e){let t=(0,oc.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Xh,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function $h(e){let t=(0,oc.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Ph,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function eg(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Fd,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function tg(e){let t=(0,oc.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(eg,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=wn(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,G.jsxs)(Id,{"data-slot":`sheet-close`,render:(0,G.jsx)(zr,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,G.jsx)($c,{}),(0,G.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,G.jsxs)($h,{children:[l,(0,G.jsxs)(jh,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function ng(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function rg(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Zh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ig(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Ld,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ag=W.createContext(void 0);function og(e){let t=W.useContext(ag);if(t===void 0&&!e)throw Error(mn(72));return t}var sg={...Hm,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},cg=class e extends gm{constructor(e,t,n=!1){let r=new Nm,i={...lg(),...e};i.floatingRootContext=Im(r,t,n),super(i,{popupRef:W.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},sg)}setOpen=(e,t)=>{Em(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,ri(Yr,e))}static useStore(t,n){return Sm(t,(t,r)=>new e(n,t,r)).store}};function lg(){return{...Fm(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var ug=am(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=cg.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Dm(p,r,n,d),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),km(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Am(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=W.useRef(null);z(()=>{m&&t&&p.setOpen(!1,ri(Zr))},[m,t,p]),z(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),z(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=W.useCallback(()=>{p.setOpen(!1,ri(ni))},[p]);W.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,G.jsxs)(ag.Provider,{value:p,children:[E&&(0,G.jsx)(dg,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function dg({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Wf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Vf(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return jm(e,{activeTriggerProps:W.useMemo(()=>cn(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:W.useMemo(()=>cn(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:W.useMemo(()=>cn(bm,a.floating,i.floating),[a.floating,i.floating])}),null}var fg=W.createContext(void 0);function pg(){return W.useContext(fg)}var mg=function(e){return e[e.popupOpen=Td.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),hg=`data-base-ui-tooltip-trigger`;function gg(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),F=Km(v,{enabled:!A}).reference,oe=e=>{let t=N.current,n=gg(e),r=ie(n),i=y.current,a=i&&n&&H(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,ri(Xr,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Kl(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,ri(Xr,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},se=m.useState(`triggerProps`,C);return un(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,F,C||M!==`none`?se:void 0,{onMouseOver(e){oe(e.nativeEvent)},onFocus(e){re(gg(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[mg.triggerDisabled]:A?``:void 0,[hg]:A?void 0:``},f],stateAttributesMapping:jd})}),yg=W.createContext(void 0);function bg(){let e=W.useContext(yg);if(e===void 0)throw Error(mn(70));return e}var xg=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Cf({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(W.Fragment,{children:[l,c&&dd.createPortal(n,c)]})}),Sg=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return og().useState(`mounted`)||n?(0,G.jsx)(yg.Provider,{value:n,children:(0,G.jsx)(xg,{ref:t,...r})}):null}),Cg=W.createContext(void 0);function wg(){let e=W.useContext(Cg);if(e===void 0)throw Error(mn(71));return e}var Tg=W.createContext(void 0);function Eg(){return W.useContext(Tg)?.direction??`ltr`}var Dg=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=nu(e,t)||{};if(l==null)return{};let f=bu(u),p={x:n,y:r},m=cu(i),h=ou(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=tu(k,j,A),ee=!c.arrow&&iu(i)!=null&&j!==M&&a.reference[h]/2-(j({...Dg(e),options:[e,t]}),kg=$p().fn,Ag={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await kg(e)).data?.referenceHidden||a}}}},jg={sideX:`left`,sideY:`top`},Mg={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Dr(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:jg};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=V(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=ru(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:jg.sideX,g=f===`top`?`bottom`:jg.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Ng(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Pg(e,t,n){let{rects:r,placement:i}=e;return{side:Ng(t,ru(i),n),align:iu(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Fg(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=W.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=Rr(D),k=D?O:t,A=Jd(t),j=Jd(h),M=Eg()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=W.useRef(null),oe=Jd(i),se=Jd(o),I=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(Jp(e=>{let t=Pg(e,r,M),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[I,ce,M,r]));let ue=T===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:Zp({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),pe=ue?null:Yp(e=>{let t=V(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:de,limiter:l||_?void 0:Xp(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=su(ru(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(Qp({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=Dr(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Og(e=>({element:F.current||V(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=ru(a),l=su(c),u=F.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Pg(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},Ag,y),z(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=W.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Wm({rootContext:m,open:p?h:void 0,placement:N,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Pp(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||jg,De=Ce?n:`fixed`,Oe=W.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=W.useRef(null);z(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(Ig(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,k,A]),W.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&Ig(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,k,A]),W.useEffect(()=>{if(p&&h&&ge.reference&&ge.floating)return Pp(ge.reference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=ru(xe),je=Ng(r,Ae,M),Me=iu(xe)||`center`,Ne=!!ye.hide?.referenceHidden;z(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=W.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return W.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:F,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,F,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Ig(e){return e!=null&&`current`in e}function Lg(e){return e===`starting`?gf:on}function Rg(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),un(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Lg(r),i],stateAttributesMapping:Nd})}var zg=W.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=vf,style:g,..._}=e,v=og(),y=bg(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=Fg({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Mg:void 0}),O=Rg(e,W.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,G.jsx)(Cg.Provider,{value:D,children:O})}),Bg={...Nd,...ud},Vg=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=og(),{side:s,align:c}=wg(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);pd({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Qm(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return un(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,Lg(d),a],stateAttributesMapping:Bg})}),Hg=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=og(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=wg();return un(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Nd})}),Ug=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=W.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=W.useMemo(()=>({open:t,close:n}),[t,n]);return(0,G.jsx)(fg.Provider,{value:i,children:(0,G.jsx)(Gd,{delay:a,timeoutMs:r,children:e.children})})};function Wg(e){let t=(0,oc.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,G.jsx)(Ug,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Gg(e){let t=(0,oc.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Wg,{children:(0,G.jsx)(ug,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Kg(e){let t=(0,oc.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(vg,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function qg(e){let t=(0,oc.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=wn(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,G.jsx)(Hg,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,G.jsxs)(Vg,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,G.jsx)(Sg,{children:(0,G.jsx)(zg,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var Jg=window.matchMedia(`(max-width: 767px)`);function Yg(e){return Jg.addEventListener(`change`,e),()=>Jg.removeEventListener(`change`,e)}function Xg(){return Jg.matches}function Zg(){return(0,W.useSyncExternalStore)(Yg,Xg)}var Qg=`sidebar_state`,$g=3600*24*7,e_=`12rem`,t_=`16rem`,n_=`3rem`,r_=`b`,i_=W.createContext(null);function a_(){let e=W.useContext(i_);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function o_(e){let t=(0,oc.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=Zg(),[d,f]=W.useState(!1),[p,m]=W.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${Qg}=${t}; path=/; max-age=${$g}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(c_):_(s_),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===r_&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),W.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=wn(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":e_,"--sidebar-width-icon":n_,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,G.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,G.jsx)(i_.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function s_(e){return!e}function c_(e){return!e}function l_(e){let t=(0,oc.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=a_();if(u===`none`){let e;t[7]===r?e=t[8]:(e=wn(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,G.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":t_},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsxs)(ng,{className:`sr-only`,children:[(0,G.jsx)(rg,{children:`Sidebar`}),(0,G.jsx)(ig,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,G.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,G.jsxs)(tg,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,G.jsx)(Qh,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=wn(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,G.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=wn(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,G.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,G.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,G.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function u_(e){let t=(0,oc.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=a_(),o;t[4]===n?o=t[5]:(o=wn(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsx)(Hc,{}),l=(0,G.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,G.jsxs)(zr,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function d_(e){let t=(0,oc.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=a_(),a;t[3]===n?a=t[4]:(a=wn(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,G.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function f_(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function p_(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function m_(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(xd,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function h_(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function g_(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function __(e){let t=(0,oc.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=dc,r=`div`,i=cn({className:wn(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function v_(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function y_(e){let t=(0,oc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=wn(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var b_=pn(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function x_(e){let t=(0,oc.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=a_(),m=cn({className:wn(b_({variant:u,size:d}),s)},c),h=o?Kg:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=dc(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,G.jsx)(qg,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,G.jsxs)(Gg,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var S_=class{async sign(e,t,n){return e}},C_=`ref`,w_=-1,T_=!0,E_=`isSet`,D_=`PartitionResult`,O_=`booleanEquals`,k_=`stringEquals`,A_=`getAttr`,j_=`us-east-1`,M_=`sigv4`,N_=`sts`,P_=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,F_={[C_]:`Endpoint`},I_={[C_]:`Region`},L_={[C_]:D_},R_={},z_=[I_],B_={conditions:[[E_,[F_]],[E_,z_],[`aws.partition`,z_,D_],[O_,[{[C_]:`UseFIPS`},T_]],[O_,[{[C_]:`UseDualStack`},T_]],[k_,[I_,`aws-global`]],[O_,[{[C_]:`UseGlobalEndpoint`},T_]],[k_,[I_,`eu-central-1`]],[O_,[{fn:A_,argv:[L_,`supportsDualStack`]},T_]],[O_,[{fn:A_,argv:[L_,`supportsFIPS`]},T_]],[k_,[I_,`ap-south-1`]],[k_,[I_,`eu-north-1`]],[k_,[I_,`eu-west-1`]],[k_,[I_,`eu-west-2`]],[k_,[I_,`eu-west-3`]],[k_,[I_,`sa-east-1`]],[k_,[I_,j_]],[k_,[I_,`us-east-2`]],[k_,[I_,`us-west-2`]],[k_,[I_,`us-west-1`]],[k_,[I_,`ca-central-1`]],[k_,[I_,`ap-southeast-1`]],[k_,[I_,`ap-northeast-1`]],[k_,[I_,`ap-southeast-2`]],[k_,[{fn:A_,argv:[L_,`name`]},`aws-us-gov`]]],results:[[w_],[`https://sts.amazonaws.com`,{authSchemes:[{name:M_,signingName:N_,signingRegion:j_}]}],[P_,{authSchemes:[{name:M_,signingName:N_,signingRegion:`{Region}`}]}],[w_,`Invalid Configuration: FIPS and custom endpoint are not supported`],[w_,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[F_,R_],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,R_],[w_,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,R_],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,R_],[w_,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,R_],[w_,`DualStack is enabled but this partition does not support DualStack`],[P_,R_],[w_,`Invalid Configuration: Missing Region`]]},V_=2,H_=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),U_=fr.from(H_,V_,B_.conditions,B_.results),W_=new nr({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),G_=(e,t={})=>W_.get(e,()=>gr(U_,{endpointParams:e,logger:t.logger}));er.aws=Nn;var K_=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=Pn(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await ur(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:Pn(t).operation,region:await gn(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function q_(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function J_(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Y_(e){return{schemeId:`smithy.api#noAuth`}}var X_=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(vn.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(G_,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(Y_(e)),t.push(J_(e));break;case`AssumeRoleWithWebIdentity`:t.push(Y_(e)),t.push(J_(e));break;default:t.push(q_(e)),t.push(J_(e))}return t},{"aws.auth#sigv4":q_,"aws.auth#sigv4a":J_,"smithy.api#noAuth":Y_}),Z_=e=>{let t=xn(vr(e));return Object.assign(t,{authSchemePreference:gn(e.authSchemePreference??[])})},Q_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),$_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},ev={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1079.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-sdk/core":`^3.974.27`,"@aws-sdk/credential-provider-node":`^3.972.62`,"@aws-sdk/signature-v4-multi-region":`^3.996.38`,"@aws-sdk/types":`^3.973.15`,"@smithy/core":`^3.29.0`,"@smithy/fetch-http-handler":`^5.6.2`,"@smithy/node-http-handler":`^4.9.2`,"@smithy/types":`^4.15.1`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.2.5`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},tv=class e extends Qn{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},nv=class e extends tv{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rv=class e extends tv{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iv=class e extends tv{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},av=class e extends tv{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ov=class e extends tv{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sv=class e extends tv{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cv=class e extends tv{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lv=class e extends tv{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uv=class e extends tv{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dv=class e extends tv{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fv=class e extends tv{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pv=class e extends tv{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mv=`Arn`,hv=`AccessKeyId`,gv=`Account`,_v=`Credentials`,vv=`DurationSeconds`,yv=`Expiration`,bv=`ExpiredTokenException`,xv=`ExpiredTradeInTokenException`,Sv=`GetCallerIdentity`,Cv=`GetCallerIdentityRequest`,wv=`GetCallerIdentityResponse`,Tv=`GetSessionToken`,Ev=`GetSessionTokenRequest`,Dv=`GetSessionTokenResponse`,Ov=`InvalidAuthorizationMessageException`,kv=`IDPCommunicationErrorException`,Av=`IDPRejectedClaimException`,jv=`InvalidIdentityTokenException`,Mv=`JWTPayloadSizeExceededException`,Nv=`MalformedPolicyDocumentException`,Pv=`OutboundWebIdentityFederationDisabledException`,Fv=`PackedPolicyTooLargeException`,Iv=`RegionDisabledException`,Lv=`SecretAccessKey`,Rv=`SessionDurationEscalationException`,zv=`SerialNumber`,Bv=`SessionToken`,Vv=`TokenCode`,Hv=`UserId`,Uv=`accessKeySecretType`,Wv=`awsQueryError`,Gv=`client`,Kv=`error`,qv=`httpError`,Jv=`message`,Yv=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,Xv=`com.amazonaws.sts`,Zv=br.for(Yv),Qv=[-3,Yv,`STSServiceException`,0,[],[]];Zv.registerError(Qv,tv);var $v=br.for(Xv),ey=[-3,Xv,bv,{[Wv]:[`ExpiredTokenException`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(ey,nv);var ty=[-3,Xv,xv,{[Wv]:[`ExpiredTradeInTokenException`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(ty,uv);var ny=[-3,Xv,kv,{[Wv]:[`IDPCommunicationError`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(ny,cv);var ry=[-3,Xv,Av,{[Wv]:[`IDPRejectedClaim`,403],[Kv]:Gv,[qv]:403},[Jv],[0]];$v.registerError(ry,ov);var iy=[-3,Xv,Ov,{[Wv]:[`InvalidAuthorizationMessageException`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(iy,lv);var ay=[-3,Xv,jv,{[Wv]:[`InvalidIdentityToken`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(ay,sv);var oy=[-3,Xv,Mv,{[Wv]:[`JWTPayloadSizeExceededException`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(oy,dv);var sy=[-3,Xv,Nv,{[Wv]:[`MalformedPolicyDocument`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(sy,rv);var cy=[-3,Xv,Pv,{[Wv]:[`OutboundWebIdentityFederationDisabledException`,403],[Kv]:Gv,[qv]:403},[Jv],[0]];$v.registerError(cy,fv);var ly=[-3,Xv,Fv,{[Wv]:[`PackedPolicyTooLarge`,400],[Kv]:Gv,[qv]:400},[Jv],[0]];$v.registerError(ly,iv);var uy=[-3,Xv,Iv,{[Wv]:[`RegionDisabledException`,403],[Kv]:Gv,[qv]:403},[Jv],[0]];$v.registerError(uy,av);var dy=[-3,Xv,Rv,{[Wv]:[`SessionDurationEscalationException`,403],[Kv]:Gv,[qv]:403},[Jv],[0]];$v.registerError(dy,pv);var fy=[Zv,$v],py=[0,Xv,Uv,8,0],my=[3,Xv,_v,0,[hv,Lv,Bv,yv],[0,[()=>py,0],0,4],4],hy=[3,Xv,Cv,0,[],[]],gy=[3,Xv,wv,0,[Hv,gv,mv],[0,0,0]],_y=[3,Xv,Ev,0,[vv,zv,Vv],[1,0,0]],vy=[3,Xv,Dv,0,[_v],[[()=>my,0]]],yy=[9,Xv,Sv,0,()=>hy,()=>gy],by=[9,Xv,Tv,0,()=>_y,()=>vy],xy=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??ai,base64Encoder:e?.base64Encoder??si,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??G_,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??X_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Fn},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new yn},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new S_}],logger:e?.logger??new ir,protocol:e?.protocol??Yn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:fy,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,sha256:e?.sha256??rr,signerConstructor:e?.signerConstructor??vn,urlParser:e?.urlParser??cr,utf8Decoder:e?.utf8Decoder??ui,utf8Encoder:e?.utf8Encoder??oi}),Sy=e=>{let t=or(e),n=()=>t().then(xr),r=xy(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??li,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ln({serviceId:r.serviceId,clientVersion:ev.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??bn(`Region is missing`),requestHandler:Vn.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||On),streamCollector:e?.streamCollector??ci,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Cy=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wy=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ty=(e,t)=>{let n=Object.assign(sr(e),Xn(e),Jn(e),Cy(e));return t.forEach(e=>e.configure(n)),Object.assign(e,hn(n),_r(n),zn(n),wy(n))},Ey=class extends Sn{config;constructor(...[e]){let t=Sy(e||{});super(t),this.initConfig=t;let n=Ty(Z_(lr(Gn(jn(pr(En(Q_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(yr(this.config)),this.middlewareStack.use(Cn(this.config)),this.middlewareStack.use(kn(this.config)),this.middlewareStack.use(Kn(this.config)),this.middlewareStack.use(Un(this.config)),this.middlewareStack.use(Tn(this.config)),this.middlewareStack.use(Wn(this.config)),this.middlewareStack.use(_n(this.config,{httpAuthSchemeParametersProvider:K_,identityProviderConfigProvider:async e=>new An({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Bn(this.config))}destroy(){super.destroy()}},Dy=ar($_,`AWSSecurityTokenServiceV20110615`,`STSClient`,$n),Oy={},ky=(e,t,n,r)=>[],Ay=class extends Dy(Oy,ky,`GetCallerIdentity`,yy){},jy=class extends Dy(Oy,ky,`GetSessionToken`,by){},My=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:e=>new TextEncoder().encode(e);function Ny(e){return e instanceof Uint8Array?e:typeof e==`string`?My(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Py(e){return typeof e==`string`?e.length===0:e.byteLength===0}var Fy={name:`SHA-256`},Iy={name:`HMAC`,hash:Fy},Ly=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),Ry={};function zy(){return typeof window<`u`?window:typeof self<`u`?self:Ry}var By=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!Py(e)){var t=Ny(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return zy().crypto.subtle.sign(Iy,t,e.toHash).then(function(e){return new Uint8Array(e)})}):Py(this.toHash)?Promise.resolve(Ly):Promise.resolve().then(function(){return zy().crypto.subtle.digest(Fy,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array,this.secret&&this.secret!==void 0&&(this.key=new Promise(function(t,n){zy().crypto.subtle.importKey(`raw`,Ny(e.secret),Iy,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}();function Vy(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Hy(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]Gy)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Uy[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),qy=function(){function e(e){this.secret=e,this.hash=new Ky,this.reset()}return e.prototype.update=function(e){if(!(Py(e)||this.error))try{this.hash.update(Ny(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Vy(this,void 0,void 0,function(){return Hy(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Ky,this.secret){this.outer=new Ky;var e=Jy(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new Ky;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Yy=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Xy(e){if(Zy(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return Qy(t)}return!1}function Zy(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function Qy(e){return e&&Yy.every(function(t){return typeof e[t]==`function`})}var $y=function(){function e(e){Xy(zy())?this.hash=new By(e):this.hash=new qy(e)}return e.prototype.update=function(e,t){this.hash.update(Ny(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),eb=`ap-southeast-2`,tb=9999,nb=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function rb(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function ib({action:e,credentials:t,service:n=`spinifex`,params:r}){let i=window.location.protocol.replace(`:`,``),a=`Action=${e}${r?`&${new URLSearchParams(r).toString()}`:``}`,o=new Mn({method:`POST`,protocol:i,hostname:`localhost`,port:tb,path:`/`,headers:{host:`localhost:${tb}`,"content-type":`application/x-www-form-urlencoded`},body:a}),s=await new Hn({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:eb,service:n,sha256:$y}).sign(o),c={};for(let[e,t]of Object.entries(s.headers))typeof t==`string`&&(c[e]=t);let l=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,u=await fetch(l,{method:`POST`,headers:c,body:a});if(!u.ok){let t=await u.text().catch(()=>``),n=rb(t,`Code`),r=rb(t,`Message`)??t;throw new nb(`${e} failed: ${u.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,u.status)}return await u.json()}var ab=`ap-southeast-2`,ob=`${window.location.protocol}//localhost:9999`,sb=43200;function cb(e){e.middlewareStack.add(e=>async t=>(Mn.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function lb(e){let t=new Ey({endpoint:ob,region:ab,credentials:e});return cb(t),t}function ub(){let e=mr();if(!e)throw Error(`AWS credentials not configured`);return lb({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function db(e){let t=(await lb(e).send(new jy({DurationSeconds:sb}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var fb=`000000000001`;function pb(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var mb=(0,W.createContext)(void 0);function hb({children:e}){let[t,n]=(0,W.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,W.useEffect)(()=>{async function e(){let e=mr();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await ub().send(new Ay({})),r=t.Account??null,i=r===fb,a=null;if(i)try{a=await ib({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:pb(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,G.jsx)(mb,{value:t,children:e})}function gb(){let e=(0,W.useContext)(mb);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var _b=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function vb(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&_b.has(t)}var yb=ar(je,`CertificateManager`,`ACMClient`,$n),bb={ServiceType:{type:`staticContextParams`,value:`ACM`}},xb=(e,t,n,r)=>[],Sb=class extends yb(bb,xb,`ListCertificates`,Tt){};function Cb(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?qn(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var wb=`2016-11-15`;function Tb(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await hr(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():In(i),o=new Mn({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:wb,DestinationRegion:t}}),s=await new Hn({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:Cb(s)}},Mn.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${Zn(n.input.PresignedUrl)}`)}}return t(n)}}var Eb={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},Db=e=>({applyToStack:t=>{t.add(Tb(e),Eb)}}),Ob=ar(Et,`AmazonEC2`,`EC2Client`,$n),kb={},Ab=(e,t,n,r)=>[],jb=(e,t,n,r)=>[Db(n)],Mb=class extends Ob(kb,Ab,`DescribeAddresses`,Rt){},Nb=class extends Ob(kb,Ab,`DescribeAvailabilityZones`,Ee){},Pb=class extends Ob(kb,Ab,`DescribeIamInstanceProfileAssociations`,Ye){},Fb=class extends Ob(kb,Ab,`DescribeImages`,qe){},Ib=class extends Ob(kb,Ab,`DescribeInstances`,Fe){},Lb=class extends Ob(kb,Ab,`DescribeInstanceTypes`,Qe){},Rb=class extends Ob(kb,Ab,`DescribeInternetGateways`,ge){},zb=class extends Ob(kb,Ab,`DescribeKeyPairs`,mt){},Bb=class extends Ob(kb,Ab,`DescribeNatGateways`,Jt){},Vb=class extends Ob(kb,Ab,`DescribePlacementGroups`,Mt){},Hb=class extends Ob(kb,Ab,`DescribeRegions`,Bt){},Ub=class extends Ob(kb,Ab,`DescribeRouteTables`,St){},Wb=class extends Ob(kb,Ab,`DescribeSecurityGroups`,it){},Gb=class extends Ob(kb,Ab,`DescribeSnapshots`,Pt){},Kb=class extends Ob(kb,Ab,`DescribeSubnets`,Wt){},qb=class extends Ob(kb,Ab,`DescribeVolumes`,ut){},Jb=class extends Ob(kb,Ab,`DescribeVpcs`,Ot){},Yb=ar(It,`AmazonEC2ContainerRegistry_V20150921`,`ECRClient`,$n),Xb={},Zb=(e,t,n,r)=>[],Qb=class extends Yb(Xb,Zb,`DescribeImages`,Vt){},$b=class extends Yb(Xb,Zb,`DescribeRepositories`,Ct){},ex=class extends Yb(Xb,Zb,`GetLifecyclePolicy`,at){},tx=class extends Yb(Xb,Zb,`GetRepositoryPolicy`,Gt){},nx=ar(Ze,`AmazonEC2ContainerServiceV20141113`,`ECSClient`,$n),rx={},ix=(e,t,n,r)=>[],ax=class extends nx(rx,ix,`DescribeClusters`,Ae){},ox=class extends nx(rx,ix,`DescribeContainerInstances`,Ie){},sx=class extends nx(rx,ix,`DescribeServices`,an){},cx=class extends nx(rx,ix,`DescribeTaskDefinition`,_e){},lx=class extends nx(rx,ix,`DescribeTasks`,We){},ux=class extends nx(rx,ix,`ListClusters`,Te){},dx=class extends nx(rx,ix,`ListContainerInstances`,He){},fx=class extends nx(rx,ix,`ListServices`,Ge){},px=class extends nx(rx,ix,`ListTaskDefinitions`,Ce){},mx=class extends nx(rx,ix,`ListTasks`,Oe){},hx=class extends fi(pi,di,`DescribeAccessEntry`,vt){},gx=class extends fi(pi,di,`DescribeAddon`,tt){},_x=class extends fi(pi,di,`DescribeAddonVersions`,Xt){},vx=class extends fi(pi,di,`DescribeCluster`,nn){},yx=class extends fi(pi,di,`DescribeNodegroup`,st){},bx=class extends fi(pi,di,`ListAccessEntries`,Le){},xx=class extends fi(pi,di,`ListAccessPolicies`,ve){},Sx=class extends fi(pi,di,`ListAddons`,$t){},Cx=class extends fi(pi,di,`ListAssociatedAccessPolicies`,Be){},wx=class extends fi(pi,di,`ListClusters`,Se){},Tx=class extends fi(pi,di,`ListNodegroups`,be){},Ex=class extends hi(gi,mi,`DescribeListeners`,Ue){},Dx=class extends hi(gi,mi,`DescribeLoadBalancerAttributes`,Ke){},Ox=class extends hi(gi,mi,`DescribeLoadBalancers`,we){},kx=class extends hi(gi,mi,`DescribeRules`,ke){},Ax=class extends hi(gi,mi,`DescribeSSLPolicies`,zt){},jx=class extends hi(gi,mi,`DescribeTags`,De){},Mx=class extends hi(gi,mi,`DescribeTargetGroupAttributes`,Xe){},Nx=class extends hi(gi,mi,`DescribeTargetGroups`,Je){},Px=class extends hi(gi,mi,`DescribeTargetHealth`,$e){},Fx=class extends vi(yi,_i,`GetGroup`,Ht){},Ix=class extends vi(yi,_i,`GetGroupPolicy`,wt){},Lx=class extends vi(yi,_i,`GetInstanceProfile`,ot){},Rx=class extends vi(yi,_i,`GetPolicy`,Ft){},zx=class extends vi(yi,_i,`GetPolicyVersion`,Kt){},Bx=class extends vi(yi,_i,`GetRole`,dt){},Vx=class extends vi(yi,_i,`GetRolePolicy`,kt){},Hx=class extends vi(yi,_i,`GetUser`,Yt){},Ux=class extends vi(yi,_i,`GetUserPolicy`,pt){},Wx=class extends vi(yi,_i,`ListAccessKeys`,gt){},Gx=class extends vi(yi,_i,`ListAttachedGroupPolicies`,Lt){},Kx=class extends vi(yi,_i,`ListAttachedRolePolicies`,At){},qx=class extends vi(yi,_i,`ListAttachedUserPolicies`,bt){},Jx=class extends vi(yi,_i,`ListGroupPolicies`,yt){},Yx=class extends vi(yi,_i,`ListGroups`,nt){},Xx=class extends vi(yi,_i,`ListGroupsForUser`,Zt){},Zx=class extends vi(yi,_i,`ListInstanceProfiles`,rn){},Qx=class extends vi(yi,_i,`ListInstanceProfilesForRole`,ct){},$x=class extends vi(yi,_i,`ListPolicies`,tn){},eS=class extends vi(yi,_i,`ListRolePolicies`,Re){},tS=class extends vi(yi,_i,`ListRoles`,ye){},nS=class extends vi(yi,_i,`ListUserPolicies`,en){},rS=class extends vi(yi,_i,`ListUsers`,Ve){},iS=class extends Me(Qt,xe,`ListBuckets`,_t){},aS=class extends Me(ze,xe,`ListObjectsV2`,et){},oS=!1;function sS(e,t){oS||!vb(e)||(oS=!0,dr(),qt(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function cS(){let e=new ya({queryCache:new va({onError:t=>sS(t,e)}),mutationCache:new ga({onError:t=>sS(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function lS(){let e=(0,oc.c)(8),{theme:t,setTheme:n}=uc(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsx)(Jc,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,G.jsx)(zc,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,G.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,G.jsxs)(zr,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function uS(){let e=(0,oc.c)(7),{isAdmin:t,license:n}=gb(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=wn(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,G.jsx)(u_,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,G.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:wn(Fr({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,G.jsx)(lS,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,G.jsxs)(`header`,{className:i,children:[a,(0,G.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function dS(){let e=(0,oc.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,G.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,G.jsx)(Ne,{to:`/`,children:(0,G.jsx)(zr,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function fS(){let e=(0,oc.c)(217),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:pS},e[0]=t):t=e[0];let n=Xs(t),r=Cs(),i=xa(),{isAdmin:a}=gb(),o;e[1]!==r||e[2]!==i?(o=function(){dr(),qt(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsxs)(f_,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,G.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,G.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(__,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(jc,{className:`size-4`}),f=(0,G.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/`,children:(0,G.jsxs)(x_,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/nodes`,children:(0,G.jsxs)(x_,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,G.jsx)(Gc,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,G.jsxs)(g_,{children:[l,(0,G.jsxs)(v_,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,G.jsx)(__,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,G.jsx)(Gc,{className:`size-4`}),y=(0,G.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-instances`,children:(0,G.jsxs)(x_,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,G.jsx)(Nc,{className:`size-4`}),C=(0,G.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-images`,children:(0,G.jsxs)(x_,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,G.jsx)(Pc,{className:`size-4`}),D=(0,G.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-key-pairs`,children:(0,G.jsxs)(x_,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,G.jsx)(Rc,{className:`size-4`}),j=(0,G.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-addresses`,children:(0,G.jsxs)(x_,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,G.jsx)(Ac,{className:`size-4`}),P=(0,G.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-volumes`,children:(0,G.jsxs)(x_,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,G.jsx)(Tc,{className:`size-4`}),ie=(0,G.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-snapshots`,children:(0,G.jsxs)(x_,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let F;e[53]===n?F=e[54]:(F=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=F);let oe,se;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,G.jsx)(Fc,{className:`size-4`}),se=(0,G.jsx)(`span`,{children:`Placement Groups`}),e[55]=oe,e[56]=se):(oe=e[55],se=e[56]);let I;e[57]===F?I=e[58]:(I=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-placement-groups`,children:(0,G.jsxs)(x_,{isActive:F,tooltip:`Placement Groups`,children:[oe,se]})})}),e[57]=F,e[58]=I);let ce;e[59]===n?ce=e[60]:(ce=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=ce);let le,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,G.jsx)(Qc,{className:`size-4`}),ue=(0,G.jsx)(`span`,{children:`Load Balancers`}),e[61]=le,e[62]=ue):(le=e[61],ue=e[62]);let de;e[63]===ce?de=e[64]:(de=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-load-balancers`,children:(0,G.jsxs)(x_,{isActive:ce,tooltip:`Load Balancers`,children:[le,ue]})})}),e[63]=ce,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,G.jsx)(Oc,{className:`size-4`}),me=(0,G.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-target-groups`,children:(0,G.jsxs)(x_,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==ae||e[77]!==I||e[78]!==de||e[79]!==he?(ge=(0,G.jsxs)(g_,{children:[g,(0,G.jsxs)(v_,{children:[b,w,O,M,te,ae,I,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=ae,e[77]=I,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,G.jsx)(__,{children:`Networking`}),e[81]=_e):_e=e[81];let ve;e[82]===n?ve=e[83]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ve);let ye,be;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,G.jsx)(Bc,{className:`size-4`}),be=(0,G.jsx)(`span`,{children:`VPCs`}),e[84]=ye,e[85]=be):(ye=e[84],be=e[85]);let xe;e[86]===ve?xe=e[87]:(xe=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-vpcs`,children:(0,G.jsxs)(x_,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[86]=ve,e[87]=xe);let Se;e[88]===n?Se=e[89]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Se);let Ce,we;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,G.jsx)(Ic,{className:`size-4`}),we=(0,G.jsx)(`span`,{children:`Subnets`}),e[90]=Ce,e[91]=we):(Ce=e[90],we=e[91]);let Te;e[92]===Se?Te=e[93]:(Te=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-subnets`,children:(0,G.jsxs)(x_,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[92]=Se,e[93]=Te);let Ee;e[94]===n?Ee=e[95]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=Ee);let De,Oe;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,G.jsx)(Kc,{className:`size-4`}),Oe=(0,G.jsx)(`span`,{children:`Security Groups`}),e[96]=De,e[97]=Oe):(De=e[96],Oe=e[97]);let ke;e[98]===Ee?ke=e[99]:(ke=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-security-groups`,children:(0,G.jsxs)(x_,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[98]=Ee,e[99]=ke);let Ae;e[100]===n?Ae=e[101]:(Ae=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ae);let je,Me;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,G.jsx)(Uc,{className:`size-4`}),Me=(0,G.jsx)(`span`,{children:`Route Tables`}),e[102]=je,e[103]=Me):(je=e[102],Me=e[103]);let Pe;e[104]===Ae?Pe=e[105]:(Pe=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-route-tables`,children:(0,G.jsxs)(x_,{isActive:Ae,tooltip:`Route Tables`,children:[je,Me]})})}),e[104]=Ae,e[105]=Pe);let Fe;e[106]===n?Fe=e[107]:(Fe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Fe);let Ie,Le;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,G.jsx)(kc,{className:`size-4`}),Le=(0,G.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Ie,e[109]=Le):(Ie=e[108],Le=e[109]);let Re;e[110]===Fe?Re=e[111]:(Re=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-internet-gateways`,children:(0,G.jsxs)(x_,{isActive:Fe,tooltip:`Internet Gateways`,children:[Ie,Le]})})}),e[110]=Fe,e[111]=Re);let ze;e[112]===n?ze=e[113]:(ze=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=ze);let Be,Ve;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,G.jsx)(Wc,{className:`size-4`}),Ve=(0,G.jsx)(`span`,{children:`NAT Gateways`}),e[114]=Be,e[115]=Ve):(Be=e[114],Ve=e[115]);let He;e[116]===ze?He=e[117]:(He=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ec2/describe-nat-gateways`,children:(0,G.jsxs)(x_,{isActive:ze,tooltip:`NAT Gateways`,children:[Be,Ve]})})}),e[116]=ze,e[117]=He);let Ue;e[118]!==xe||e[119]!==Te||e[120]!==ke||e[121]!==Pe||e[122]!==Re||e[123]!==He?(Ue=(0,G.jsxs)(g_,{children:[_e,(0,G.jsxs)(v_,{children:[xe,Te,ke,Pe,Re,He]})]}),e[118]=xe,e[119]=Te,e[120]=ke,e[121]=Pe,e[122]=Re,e[123]=He,e[124]=Ue):Ue=e[124];let We;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(We=(0,G.jsx)(__,{children:`Containers`}),e[125]=We):We=e[125];let Ge;e[126]===n?Ge=e[127]:(Ge=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=Ge);let Ke,qe;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,G.jsx)(wc,{className:`size-4`}),qe=(0,G.jsx)(`span`,{children:`EKS`}),e[128]=Ke,e[129]=qe):(Ke=e[128],qe=e[129]);let Je;e[130]===Ge?Je=e[131]:(Je=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/eks/list-clusters`,children:(0,G.jsxs)(x_,{isActive:Ge,tooltip:`EKS clusters`,children:[Ke,qe]})})}),e[130]=Ge,e[131]=Je);let Ye;e[132]===n?Ye=e[133]:(Ye=n.startsWith(`/ecr/list-repositories`),e[132]=n,e[133]=Ye);let Xe,Ze;e[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,G.jsx)(Vc,{className:`size-4`}),Ze=(0,G.jsx)(`span`,{children:`ECR`}),e[134]=Xe,e[135]=Ze):(Xe=e[134],Ze=e[135]);let Qe;e[136]===Ye?Qe=e[137]:(Qe=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ecr/list-repositories`,children:(0,G.jsxs)(x_,{isActive:Ye,tooltip:`ECR repositories`,children:[Xe,Ze]})})}),e[136]=Ye,e[137]=Qe);let $e;e[138]===n?$e=e[139]:($e=n.startsWith(`/ecs/`),e[138]=n,e[139]=$e);let et,tt;e[140]===Symbol.for(`react.memo_cache_sentinel`)?(et=(0,G.jsx)(Dc,{className:`size-4`}),tt=(0,G.jsx)(`span`,{children:`ECS`}),e[140]=et,e[141]=tt):(et=e[140],tt=e[141]);let nt;e[142]===$e?nt=e[143]:(nt=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/ecs/list-clusters`,children:(0,G.jsxs)(x_,{isActive:$e,tooltip:`ECS clusters`,children:[et,tt]})})}),e[142]=$e,e[143]=nt);let rt;e[144]!==Je||e[145]!==Qe||e[146]!==nt?(rt=(0,G.jsxs)(g_,{children:[We,(0,G.jsxs)(v_,{children:[Je,Qe,nt]})]}),e[144]=Je,e[145]=Qe,e[146]=nt,e[147]=rt):rt=e[147];let it;e[148]===Symbol.for(`react.memo_cache_sentinel`)?(it=(0,G.jsx)(__,{children:`IAM`}),e[148]=it):it=e[148];let at;e[149]===n?at=e[150]:(at=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[149]=n,e[150]=at);let ot,st;e[151]===Symbol.for(`react.memo_cache_sentinel`)?(ot=(0,G.jsx)(Zc,{className:`size-4`}),st=(0,G.jsx)(`span`,{children:`Users`}),e[151]=ot,e[152]=st):(ot=e[151],st=e[152]);let ct;e[153]===at?ct=e[154]:(ct=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/iam/list-users`,children:(0,G.jsxs)(x_,{isActive:at,tooltip:`Users`,children:[ot,st]})})}),e[153]=at,e[154]=ct);let lt;e[155]===n?lt=e[156]:(lt=n.startsWith(`/iam/list-groups`)||n.startsWith(`/iam/create-group`),e[155]=n,e[156]=lt);let ut,dt;e[157]===Symbol.for(`react.memo_cache_sentinel`)?(ut=(0,G.jsx)(Xc,{className:`size-4`}),dt=(0,G.jsx)(`span`,{children:`Groups`}),e[157]=ut,e[158]=dt):(ut=e[157],dt=e[158]);let ft;e[159]===lt?ft=e[160]:(ft=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/iam/list-groups`,children:(0,G.jsxs)(x_,{isActive:lt,tooltip:`Groups`,children:[ut,dt]})})}),e[159]=lt,e[160]=ft);let pt;e[161]===n?pt=e[162]:(pt=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[161]=n,e[162]=pt);let mt,ht;e[163]===Symbol.for(`react.memo_cache_sentinel`)?(mt=(0,G.jsx)(qc,{className:`size-4`}),ht=(0,G.jsx)(`span`,{children:`Policies`}),e[163]=mt,e[164]=ht):(mt=e[163],ht=e[164]);let gt;e[165]===pt?gt=e[166]:(gt=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/iam/list-policies`,children:(0,G.jsxs)(x_,{isActive:pt,tooltip:`Policies`,children:[mt,ht]})})}),e[165]=pt,e[166]=gt);let _t;e[167]===n?_t=e[168]:(_t=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[167]=n,e[168]=_t);let vt,yt;e[169]===Symbol.for(`react.memo_cache_sentinel`)?(vt=(0,G.jsx)(Yc,{className:`size-4`}),yt=(0,G.jsx)(`span`,{children:`Roles`}),e[169]=vt,e[170]=yt):(vt=e[169],yt=e[170]);let bt;e[171]===_t?bt=e[172]:(bt=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/iam/list-roles`,children:(0,G.jsxs)(x_,{isActive:_t,tooltip:`Roles`,children:[vt,yt]})})}),e[171]=_t,e[172]=bt);let xt;e[173]===n?xt=e[174]:(xt=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[173]=n,e[174]=xt);let St,Ct;e[175]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,G.jsx)(Mc,{className:`size-4`}),Ct=(0,G.jsx)(`span`,{children:`Instance Profiles`}),e[175]=St,e[176]=Ct):(St=e[175],Ct=e[176]);let wt;e[177]===xt?wt=e[178]:(wt=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/iam/list-instance-profiles`,children:(0,G.jsxs)(x_,{isActive:xt,tooltip:`Instance Profiles`,children:[St,Ct]})})}),e[177]=xt,e[178]=wt);let Tt;e[179]!==gt||e[180]!==bt||e[181]!==wt||e[182]!==ct||e[183]!==ft?(Tt=(0,G.jsxs)(g_,{children:[it,(0,G.jsxs)(v_,{children:[ct,ft,gt,bt,wt]})]}),e[179]=gt,e[180]=bt,e[181]=wt,e[182]=ct,e[183]=ft,e[184]=Tt):Tt=e[184];let Et;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(Et=(0,G.jsx)(__,{children:`S3`}),e[185]=Et):Et=e[185];let Dt;e[186]===n?Dt=e[187]:(Dt=n.startsWith(`/s3/ls`),e[186]=n,e[187]=Dt);let Ot,kt;e[188]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,G.jsx)(Gc,{className:`size-4`}),kt=(0,G.jsx)(`span`,{children:`Buckets`}),e[188]=Ot,e[189]=kt):(Ot=e[188],kt=e[189]);let At;e[190]===Dt?At=e[191]:(At=(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/s3/ls`,children:(0,G.jsxs)(x_,{isActive:Dt,tooltip:`Buckets`,children:[Ot,kt]})})}),e[190]=Dt,e[191]=At);let jt;e[192]!==a||e[193]!==n?(jt=a&&(0,G.jsx)(y_,{children:(0,G.jsx)(Ne,{to:`/s3/service-metrics`,children:(0,G.jsxs)(x_,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,G.jsx)(Sc,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Service Metrics`})]})})}),e[192]=a,e[193]=n,e[194]=jt):jt=e[194];let Mt;e[195]!==At||e[196]!==jt?(Mt=(0,G.jsxs)(g_,{children:[Et,(0,G.jsxs)(v_,{children:[At,jt]})]}),e[195]=At,e[196]=jt,e[197]=Mt):Mt=e[197];let Nt;e[198]===a?Nt=e[199]:(Nt=a&&(0,G.jsxs)(g_,{children:[(0,G.jsx)(__,{children:`Documentation`}),(0,G.jsx)(v_,{children:(0,G.jsx)(y_,{children:(0,G.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,G.jsxs)(x_,{tooltip:`Documentation`,children:[(0,G.jsx)(Cc,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Docs`})]})})})})]}),e[198]=a,e[199]=Nt);let Pt;e[200]!==Tt||e[201]!==Mt||e[202]!==Nt||e[203]!==ge||e[204]!==Ue||e[205]!==rt||e[206]!==h?(Pt=(0,G.jsxs)(h_,{children:[h,ge,Ue,rt,Tt,Mt,Nt]}),e[200]=Tt,e[201]=Mt,e[202]=Nt,e[203]=ge,e[204]=Ue,e[205]=rt,e[206]=h,e[207]=Pt):Pt=e[207];let Ft;e[208]===Symbol.for(`react.memo_cache_sentinel`)?(Ft=(0,G.jsx)(m_,{className:`mx-0 w-full`}),e[208]=Ft):Ft=e[208];let It,Lt;e[209]===Symbol.for(`react.memo_cache_sentinel`)?(It=(0,G.jsx)(Lc,{className:`size-4`}),Lt=(0,G.jsx)(`span`,{children:`Sign out`}),e[209]=It,e[210]=Lt):(It=e[209],Lt=e[210]);let Rt;e[211]===s?Rt=e[212]:(Rt=(0,G.jsxs)(p_,{children:[Ft,(0,G.jsx)(v_,{children:(0,G.jsx)(y_,{children:(0,G.jsxs)(x_,{onClick:s,tooltip:`Sign out`,children:[It,Lt]})})})]}),e[211]=s,e[212]=Rt);let zt;e[213]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,G.jsx)(d_,{}),e[213]=zt):zt=e[213];let L;return e[214]!==Pt||e[215]!==Rt?(L=(0,G.jsxs)(l_,{collapsible:`icon`,children:[c,Pt,Rt,zt]}),e[214]=Pt,e[215]=Rt,e[216]=L):L=e[216],L}function pS(e){return e.pathname}function mS(e){let t=(0,oc.c)(18),{error:n,reset:r}=e,i=M(),a=xa(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsx)(fS,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(uS,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,G.jsx)(`div`,{className:`flex justify-center`,children:(0,G.jsx)(Ec,{className:`size-12 text-destructive`})}),d=(0,G.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,G.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,G.jsx)(zr,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,G.jsx)(Ne,{to:`/`,children:(0,G.jsx)(zr,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,G.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,G.jsxs)(G.Fragment,{children:[c,(0,G.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,G.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,G.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var hS=Ds()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(tc,{}),(0,G.jsx)(fS,{}),(0,G.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,G.jsx)(uS,{}),(0,G.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,G.jsx)(Vs,{})})]})]}),errorComponent:mS,notFoundComponent:dS}),gS=q(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(mr())throw me({to:`/`})},component:J(()=>R(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`)}),_S=q(`/_auth`)({beforeLoad:()=>{if(!mr())throw me({to:`/login`})},component:J(()=>R(()=>import(`./route.js`),__vite__mapDeps([14,1])),`component`)}),vS=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new Nb({});return await L().send(e)},staleTime:3e5}),yS=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new Ib({});return await L().send(e)},refetchInterval:5e3}),bS=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new Ib({InstanceIds:[e]});return await L().send(t)},refetchInterval:5e3}),xS=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new Pb({Filters:[{Name:`instance-id`,Values:[e]}]});return await L().send(t)},refetchInterval:5e3}),SS=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new Lb({Filters:[{Name:`capacity`,Values:[`true`]}]});return await L().send(e)},refetchInterval:5e3}),CS=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new Fb({});return await L().send(e)}}),wS=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new Fb({ImageIds:[e]});return await L().send(t)}}),TS=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new zb({});return await L().send(e)}}),ES=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new zb({KeyPairIds:[e]});return await L().send(t)}}),DS=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new Hb({});return await L().send(e)},staleTime:3e5}),OS=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new Kb({});return await L().send(e)}}),kS=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new Kb({SubnetIds:[e]});return await L().send(t)}}),AS=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new Gb({});return await L().send(e)},refetchInterval:5e3}),jS=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new Gb({SnapshotIds:[e]});return await L().send(t)},refetchInterval:5e3}),MS=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new Rb({});return await L().send(e)},refetchInterval:5e3}),NS=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new Rb({InternetGatewayIds:[e]});return await L().send(t)},refetchInterval:5e3}),PS=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new Ub({});return await L().send(e)},refetchInterval:5e3}),FS=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new Ub({RouteTableIds:[e]});return await L().send(t)},refetchInterval:5e3}),IS=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new Jb({});return await L().send(e)}}),LS=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new Jb({VpcIds:[e]});return await L().send(t)}}),RS=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new Vb({});return await L().send(e)}}),zS=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new Vb({GroupIds:[e]});return await L().send(t)}}),BS=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new Wb({});return await L().send(e)}}),VS=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new Wb({GroupIds:[e]});return await L().send(t)}}),HS=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new Mb({});return await L().send(e)},refetchInterval:5e3}),US=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new Mb({AllocationIds:[e]});return await L().send(t)},refetchInterval:5e3}),WS=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new Bb({});return await L().send(e)},refetchInterval:5e3}),GS=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new Bb({NatGatewayIds:[e]});return await L().send(t)},refetchInterval:5e3}),KS=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new qb({});return await L().send(e)},refetchInterval:5e3}),qS=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new qb({VolumeIds:[e]});return await L().send(t)},refetchInterval:5e3}),JS=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new iS({});return await Dt().send(e)}}),YS=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new aS({Bucket:e,Prefix:t,Delimiter:`/`});return await Dt().send(n)}}),XS=q(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(yS),e.queryClient.ensureQueryData(KS),e.queryClient.ensureQueryData(IS),e.queryClient.ensureQueryData(TS),e.queryClient.ensureQueryData(JS),e.queryClient.ensureQueryData(BS),e.queryClient.ensureQueryData(WS),e.queryClient.ensureQueryData(HS),e.queryClient.ensureQueryData(MS)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:J(()=>R(()=>import(`./_auth.js`),__vite__mapDeps([15,1,16,17,2,3,4,5,6,18,19,20,21,22,23,24,8,13])),`component`)}),ZS=q(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:J(()=>R(()=>import(`./nodes.js`),__vite__mapDeps([25,1,16,17,26,4,5,20,22,23,24,8,13])),`component`)}),QS=q(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./service-metrics.js`),__vite__mapDeps([27,1,16,17,26,20,22,23,4,5,24,8,13])),`component`)}),$S=q(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(JS)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./ls.js`),__vite__mapDeps([28,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),eC=q(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./create-bucket.js`),__vite__mapDeps([31,1,4,5,32,2,3,6,33,34,18,35,7,8,36,37,38,9,39,40,20,10])),`component`)}),tC=q(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-user.js`),__vite__mapDeps([41,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,44])),`component`)}),nC=q(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-role.js`),__vite__mapDeps([45,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,46,47,44])),`component`)}),rC=q(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-policy.js`),__vite__mapDeps([48,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,46,47,44])),`component`)}),iC=q(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-instance-profile.js`),__vite__mapDeps([49,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,44])),`component`)}),aC=q(`/_auth/iam/(groups)/create-group`)({head:()=>({meta:[{title:`Create Group | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-group.js`),__vite__mapDeps([50,1,32,2,3,4,5,6,33,34,18,35,7,8,36,42,38,43,9,39,40,20,10,44])),`component`)});function oC(e){try{return JSON.parse(e),!0}catch{return!1}}function sC(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return null}}function cC(e){let t;try{t=decodeURIComponent(e)}catch{t=e}return sC(t)??t}function lC(e){let{label:t,allowEmpty:n=!1}=e;return(n?tr():tr().min(1,`${t} is required`)).refine(e=>n&&e.trim()===``?!0:oC(e),{message:`${t} must be valid JSON`})}var uC=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new rS({});return await lt().send(e)},staleTime:3e5}),dC=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new Hx({UserName:e});return await lt().send(t)},staleTime:3e5}),fC=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new Wx({UserName:e});return await lt().send(t)},staleTime:3e5}),pC=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new $x({Scope:`Local`});return await lt().send(e)},staleTime:3e5}),mC=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new Rx({PolicyArn:e});return await lt().send(t)},staleTime:3e5}),hC=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new zx({PolicyArn:e,VersionId:t});return await lt().send(n)},staleTime:3e5}),gC=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new qx({UserName:e});return await lt().send(t)},staleTime:3e5}),_C=e=>a({queryKey:[`iam`,`user-inline-policies`,e],queryFn:async()=>{let t=new nS({UserName:e});return await lt().send(t)},staleTime:3e5}),vC=(e,t)=>a({queryKey:[`iam`,`user-inline-policies`,e,t],queryFn:async()=>{let n=new Ux({UserName:e,PolicyName:t}),r=await lt().send(n);return r.PolicyDocument?cC(r.PolicyDocument):``},staleTime:3e5}),yC=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new tS({});return await lt().send(e)},staleTime:3e5}),bC=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new Bx({RoleName:e});return await lt().send(t)},staleTime:3e5}),xC=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new Kx({RoleName:e});return await lt().send(t)},staleTime:3e5}),SC=e=>a({queryKey:[`iam`,`role-inline-policies`,e],queryFn:async()=>{let t=new eS({RoleName:e});return await lt().send(t)},staleTime:3e5}),CC=(e,t)=>a({queryKey:[`iam`,`role-inline-policies`,e,t],queryFn:async()=>{let n=new Vx({RoleName:e,PolicyName:t}),r=await lt().send(n);return r.PolicyDocument?cC(r.PolicyDocument):``},staleTime:3e5}),wC=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Zx({});return await lt().send(e)},staleTime:3e5}),TC=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new Lx({InstanceProfileName:e});return await lt().send(t)},staleTime:3e5}),EC=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new Qx({RoleName:e});return await lt().send(t)},staleTime:3e5}),DC=a({queryKey:[`iam`,`groups`],queryFn:async()=>{let e=new Yx({});return await lt().send(e)},staleTime:3e5}),OC=e=>a({queryKey:[`iam`,`groups`,e],queryFn:async()=>{let t=new Fx({GroupName:e});return await lt().send(t)},staleTime:3e5}),kC=e=>a({queryKey:[`iam`,`attached-group-policies`,e],queryFn:async()=>{let t=new Gx({GroupName:e});return await lt().send(t)},staleTime:3e5}),AC=e=>a({queryKey:[`iam`,`group-inline-policies`,e],queryFn:async()=>{let t=new Jx({GroupName:e});return await lt().send(t)},staleTime:3e5}),jC=(e,t)=>a({queryKey:[`iam`,`group-inline-policies`,e,t],queryFn:async()=>{let n=new Ix({GroupName:e,PolicyName:t}),r=await lt().send(n);return r.PolicyDocument?cC(r.PolicyDocument):``},staleTime:3e5}),MC=e=>a({queryKey:[`iam`,`groups-for-user`,e],queryFn:async()=>{let t=new Xx({UserName:e});return await lt().send(t)},staleTime:3e5}),NC=q(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(IS),e.queryClient.ensureQueryData(OS),e.queryClient.ensureQueryData(yC),e.queryClient.ensureQueryData(CS)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:J(()=>R(()=>import(`./create-cluster.js`),__vite__mapDeps([51,1,29,17,4,5,32,2,3,6,34,52,8,18,7,12,53,35,54,55,56,38,57,58,42,43,9,36,39,40,20,10,59,60,61])),`component`)}),PC=3e4,FC=15e3,IC=a({queryKey:[`ecs`,`clusters`],queryFn:async()=>{let e=rt(),t=(await e.send(new ux({}))).clusterArns??[];return t.length===0?[]:(await e.send(new ax({clusters:t}))).clusters??[]},staleTime:PC}),LC=e=>a({queryKey:[`ecs`,`clusters`,e],queryFn:async()=>(await rt().send(new ax({clusters:[e]}))).clusters?.[0]??null,staleTime:PC}),RC=e=>a({queryKey:[`ecs`,`clusters`,e,`services`],queryFn:async()=>{let t=rt(),n=(await t.send(new fx({cluster:e}))).serviceArns??[];return n.length===0?[]:(await t.send(new sx({cluster:e,services:n}))).services??[]},staleTime:PC}),zC=e=>a({queryKey:[`ecs`,`clusters`,e,`tasks`],queryFn:async()=>{let t=rt(),n=(await t.send(new mx({cluster:e}))).taskArns??[];return n.length===0?[]:(await t.send(new lx({cluster:e,tasks:n}))).tasks??[]},staleTime:FC}),BC=e=>a({queryKey:[`ecs`,`clusters`,e,`container-instances`],queryFn:async()=>{let t=rt(),n=(await t.send(new dx({cluster:e}))).containerInstanceArns??[];return n.length===0?[]:(await t.send(new ox({cluster:e,containerInstances:n}))).containerInstances??[]},staleTime:PC}),VC=a({queryKey:[`ecs`,`task-definitions`],queryFn:async()=>(await rt().send(new px({}))).taskDefinitionArns??[],staleTime:PC}),HC=e=>a({queryKey:[`ecs`,`task-definitions`,e],queryFn:async()=>(await rt().send(new cx({taskDefinition:e}))).taskDefinition,enabled:e!==``,staleTime:PC}),UC=q(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(VC)},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./task-definitions.js`),__vite__mapDeps([62,1,29,17,2,3,4,5,6,7,8,63,38,39,20,64,59,65])),`component`)}),WC=q(`/_auth/ecs/(clusters)/run-task`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(VC),e.queryClient.ensureQueryData(OS),e.queryClient.ensureQueryData(BS)])},head:()=>({meta:[{title:`Run Task | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./run-task.js`),__vite__mapDeps([66,1,16,17,29,32,2,3,4,5,6,52,8,34,18,7,12,53,63,38,9,39,40,20,10,67])),`component`)}),GC=q(`/_auth/ecs/(clusters)/register-task-definition`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),head:()=>({meta:[{title:`Register Task Definition | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./register-task-definition.js`),__vite__mapDeps([68,1,32,2,3,4,5,6,52,8,34,18,7,12,53,69,70,63,38,9,39,40,20,10,67])),`component`)}),KC=5e3,qC=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new Ox({});return await Ut().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?KC:!1}),JC=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new Ox({LoadBalancerArns:[e]});return await Ut().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?KC:!1}),YC=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new Dx({LoadBalancerArn:e});return await Ut().send(t)}}),XC=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new Nx({});return await Ut().send(e)}}),ZC=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new Nx({TargetGroupArns:[e]});return await Ut().send(t)}}),QC=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new Mx({TargetGroupArn:e});return await Ut().send(t)}}),$C=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new Ex({LoadBalancerArn:e});return await Ut().send(t)}}),ew=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new kx({ListenerArn:e});return await Ut().send(t)}}),tw=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new Px({TargetGroupArn:e});return await Ut().send(t)}}),nw=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new Ax({});return await Ut().send(e)},staleTime:1/0}),rw=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new jx({ResourceArns:e});return await Ut().send(t)},enabled:e.length>0}),iw=q(`/_auth/ecs/(clusters)/create-service`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(VC),e.queryClient.ensureQueryData(OS),e.queryClient.ensureQueryData(BS),e.queryClient.ensureQueryData(XC)])},head:()=>({meta:[{title:`Create Service | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./create-service.js`),__vite__mapDeps([71,1,16,17,29,32,2,3,4,5,6,52,8,34,18,7,12,53,63,38,9,39,40,20,10,67])),`component`)}),aw=q(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-vpc.js`),__vite__mapDeps([72,1,32,2,3,4,5,6,18,19,52,8,34,7,12,53,33,35,36,73,38,58,9,39,40,20,10,74])),`component`)}),ow=q(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vS)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-volume.js`),__vite__mapDeps([75,1,29,17,32,2,3,4,5,6,52,8,34,18,7,12,53,33,35,36,73,38,58,9,39,40,20,10,74])),`component`)}),sw=q(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(IS)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-target-group.js`),__vite__mapDeps([76,1,29,17,32,2,3,4,5,6,33,34,18,35,7,8,36,77,38,78,9,39,40,20,79,52,12,53,69,70,10,11,80])),`component`)}),cw=q(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(IS),e.queryClient.ensureQueryData(vS)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-subnet.js`),__vite__mapDeps([81,1,29,17,4,5,32,2,3,6,52,8,34,18,7,12,53,33,35,36,73,38,58,9,39,40,20,10,74])),`component`)}),lw=q(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(KS)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-snapshot.js`),__vite__mapDeps([82,1,29,17,32,2,3,4,5,6,52,8,34,18,7,12,53,33,35,36,73,38,58,9,39,40,20,10,74,47])),`component`)}),uw=q(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(IS)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-security-group.js`),__vite__mapDeps([83,1,29,17,4,5,32,2,3,6,52,8,34,18,7,12,53,33,35,36,73,38,58,9,39,40,20,10,74])),`component`)}),dw=q(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(IS)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-route-table.js`),__vite__mapDeps([84,1,29,17,4,5,32,2,3,6,52,8,34,18,7,12,53,73,38,58,9,39,40,20,10,74])),`component`)}),fw=q(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-placement-group.js`),__vite__mapDeps([85,1,32,2,3,4,5,6,52,8,34,18,7,12,53,33,35,36,73,38,58,9,39,40,20,10,74])),`component`)}),pw=q(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(OS),e.queryClient.ensureQueryData(HS)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([86,1,29,17,2,3,4,5,6,32,52,8,34,18,7,12,53,33,35,36,73,38,58,9,39,40,20,10,74])),`component`)}),mw=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new Sb({});return await jt().send(e)}}),hw=q(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(IS),e.queryClient.ensureQueryData(OS),e.queryClient.ensureQueryData(BS),e.queryClient.ensureQueryData(XC),e.queryClient.ensureQueryData(mw),e.queryClient.ensureQueryData(nw)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-load-balancer.js`),__vite__mapDeps([87,1,29,17,4,5,32,2,3,6,52,8,34,18,7,12,53,69,33,35,36,70,88,38,39,10,59,47,77,78,9,40,20,79,11,80])),`component`)}),gw=q(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./import-key-pair.js`),__vite__mapDeps([89,1,32,2,3,4,5,6,33,34,18,35,7,8,36,73,38,58,9,39,40,20,10,74,47])),`component`)}),_w=q(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-key-pair.js`),__vite__mapDeps([90,1,32,2,3,4,5,6,34,91,33,18,35,7,8,36,55,73,38,58,9,39,40,20,10,74,59])),`component`)}),vw=q(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([92,1,32,2,3,4,5,6,33,34,18,35,7,8,36,73,38,58,9,39,40,20,10,74])),`component`)}),yw=q(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(CS),e.queryClient.ensureQueryData(TS),e.queryClient.ensureQueryData(SS),e.queryClient.ensureQueryData(OS),e.queryClient.ensureQueryData(RS),e.queryClient.ensureQueryData(IS),e.queryClient.ensureQueryData(BS)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./run-instances.js`),__vite__mapDeps([93,1,29,17,4,5,32,2,3,6,18,52,8,34,7,12,53,33,35,36,73,38,58,9,39,20,10,74,11])),`component`)}),bw=q(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./allocate-address.js`),__vite__mapDeps([94,1,32,2,3,4,5,6,33,34,18,35,7,8,36,73,38,58,9,39,40,20,10,74])),`component`)}),xw=q(`/_auth/s3/ls/$bucket`)({component:J(()=>R(()=>import(`./route2.js`),__vite__mapDeps([95,1])),`component`)}),Sw=q(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(YS(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./_bucket.js`),__vite__mapDeps([96,1,29,17,4,5,32,2,3,6,97,91,70,7,8,37,38,39,64,59,20])),`component`)}),Cw=q(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(uC)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-users.js`),__vite__mapDeps([98,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),ww=q(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yC)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-roles.js`),__vite__mapDeps([99,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Tw=q(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(pC)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-policies.js`),__vite__mapDeps([100,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Ew=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(wC)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([101,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Dw=q(`/_auth/iam/(groups)/list-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(DC)},head:()=>({meta:[{title:`Groups | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-groups.js`),__vite__mapDeps([102,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Ow=3e4,kw=3e5,Aw=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new wx({});return await Nt().send(e)},staleTime:Ow}),jw=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new vx({name:e});return await Nt().send(t)},staleTime:Ow}),Mw=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new Tx({clusterName:e});return await Nt().send(t)},staleTime:Ow}),Nw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new yx({clusterName:e,nodegroupName:t});return await Nt().send(n)},staleTime:Ow}),Pw=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new bx({clusterName:e});return await Nt().send(t)},staleTime:Ow}),Fw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new hx({clusterName:e,principalArn:t});return await Nt().send(n)},staleTime:Ow}),Iw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new Cx({clusterName:e,principalArn:t});return await Nt().send(n)},staleTime:Ow});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new xx({});return await Nt().send(e)},staleTime:kw});var Lw=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new _x({});return await Nt().send(e)},staleTime:kw}),Rw=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new Sx({clusterName:e});return await Nt().send(t)},staleTime:Ow}),zw=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new gx({clusterName:e,addonName:t});return await Nt().send(n)},staleTime:Ow}),Bw=q(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Aw)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:J(()=>R(()=>import(`./list-clusters2.js`),__vite__mapDeps([103,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),Vw=q(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(IC),e.queryClient.ensureQueryData(CS)])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./list-clusters.js`),__vite__mapDeps([104,1,29,17,2,3,4,5,6,34,35,54,55,7,8,63,38,36,39,20,10,59,64,21,60,65])),`component`)}),Hw=a({queryKey:[`ecr`,`repositories`],queryFn:async()=>{let e=new $b({});return await xt().send(e)}}),Uw=e=>a({queryKey:[`ecr`,`repositories`,e,`images`],queryFn:async()=>{let t=new Qb({repositoryName:e});return await xt().send(t)}}),Ww=e=>a({queryKey:[`ecr`,`repositories`,e,`policy`],queryFn:async()=>{try{let t=new tx({repositoryName:e});return(await xt().send(t)).policyText??null}catch(e){if(e instanceof ht)return null;throw e}}}),Gw=e=>a({queryKey:[`ecr`,`repositories`,e,`lifecycle`],queryFn:async()=>{try{let t=new ex({repositoryName:e});return(await xt().send(t)).lifecyclePolicyText??null}catch(e){if(e instanceof ft)return null;throw e}}}),Kw=q(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Hw)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:J(()=>R(()=>import(`./list-repositories.js`),__vite__mapDeps([105,1,29,17,2,3,4,5,6,7,8,106,38,20,10,59])),`component`)}),qw=q(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(IS)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-vpcs.js`),__vite__mapDeps([107,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Jw=q(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(KS)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-volumes.js`),__vite__mapDeps([108,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Yw=q(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(XC)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-target-groups.js`),__vite__mapDeps([109,1,16,17,29,2,3,4,5,6,7,8,20])),`component`)}),Xw=q(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(OS)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-subnets.js`),__vite__mapDeps([110,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Zw=q(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(AS)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-snapshots.js`),__vite__mapDeps([111,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),Qw=q(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(BS)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-security-groups.js`),__vite__mapDeps([112,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),$w=q(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(PS)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-route-tables.js`),__vite__mapDeps([113,1,29,17,2,3,4,5,6,7,8,20,30,24])),`component`)}),eT=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(RS)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([114,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),tT=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(WS)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([115,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),nT=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qC)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([116,1,29,17,2,3,4,5,6,7,8,20,21])),`component`)}),rT=q(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(TS)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([117,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),iT=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(MS)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([118,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),aT=q(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yS)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-instances.js`),__vite__mapDeps([119,1,29,17,2,3,4,5,6,7,8,20,30,21])),`component`)}),oT=q(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(CS)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-images.js`),__vite__mapDeps([120,1,29,17,20,30,2,3,4,5,6,21,60])),`component`)}),sT=q(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(HS)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-addresses.js`),__vite__mapDeps([121,1,29,17,2,3,4,5,6,7,8,20,30])),`component`)}),cT=q(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=Dn(t._splat??``);await e.queryClient.ensureQueryData(YS(t.bucket,n))},head:({params:e})=>({meta:[{title:`${Rn(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./_.js`),__vite__mapDeps([122,1,29,17,2,3,4,5,6,32,97,91,70,7,8,37,38,39,64,59])),`component`)}),lT=q(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(dC(t.userName)),e.queryClient.ensureQueryData(fC(t.userName)),e.queryClient.ensureQueryData(gC(t.userName)),e.queryClient.ensureQueryData(pC),e.queryClient.ensureQueryData(MC(t.userName)),e.queryClient.ensureQueryData(_C(t.userName))])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_userName.js`),__vite__mapDeps([123,1,29,17,2,3,4,5,6,32,34,70,55,7,8,42,38,43,36,39,20,59,64,124,21,125,16,10,46,47,44])),`component`)}),uT=q(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(bC(t.roleName)),e.queryClient.ensureQueryData(xC(t.roleName)),e.queryClient.ensureQueryData(EC(t.roleName)),e.queryClient.ensureQueryData(pC),e.queryClient.ensureQueryData(SC(t.roleName))])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_roleName.js`),__vite__mapDeps([126,1,29,17,2,3,4,5,6,32,70,7,8,42,38,43,39,20,64,59,124,61,125,16,10,46,47,44])),`component`)}),dT=q(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(mC(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(hC(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_policyArn.js`),__vite__mapDeps([127,1,29,17,4,5,32,2,3,6,70,7,8,42,38,43,39,20,64,59,124,61])),`component`)}),fT=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(TC(t.instanceProfileName)),e.queryClient.ensureQueryData(yC)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([128,1,29,17,2,3,4,5,6,32,70,7,8,42,38,43,39,20,64,59,124])),`component`)}),pT=q(`/_auth/iam/(groups)/list-groups/$groupName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(OC(t.groupName)),e.queryClient.ensureQueryData(kC(t.groupName)),e.queryClient.ensureQueryData(pC),e.queryClient.ensureQueryData(uC),e.queryClient.ensureQueryData(AC(t.groupName))])},head:({params:e})=>({meta:[{title:`${e.groupName} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_groupName.js`),__vite__mapDeps([129,1,29,17,2,3,4,5,6,32,70,7,8,42,38,43,39,20,64,59,124,125,16,10,46,47,44])),`component`)}),mT=q(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(jw(t.clusterName)),e.queryClient.ensureQueryData(Mw(t.clusterName)),e.queryClient.ensureQueryData(Pw(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:J(()=>R(()=>import(`./_clusterName2.js`),__vite__mapDeps([130,1,16,17,29,2,3,4,5,6,32,131,33,34,18,35,7,8,36,70,55,56,38,57,58,9,39,20,10,59,64,124,132,12,53,24,46,47])),`component`)}),hT=q(`/_auth/ecs/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(LC(t.clusterName)),e.queryClient.ensureQueryData(RC(t.clusterName)),e.queryClient.ensureQueryData(zC(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./_clusterName.js`),__vite__mapDeps([133,1,16,17,29,2,3,4,5,6,32,70,7,8,63,38,39,20,10,59,64,124,21,132,12,53])),`component`)}),gT=q(`/_auth/ecr/(repositories)/list-repositories/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Hw),e.queryClient.ensureQueryData(Uw(n)),e.queryClient.ensureQueryData(Ww(n))])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Repository | Mulga`}]}),component:J(()=>R(()=>import(`./_id17.js`),__vite__mapDeps([134,1,29,17,2,3,4,5,6,7,8,106,38,20,59,132,12,53,24,46,47])),`component`)}),_T=q(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(LS(t.id)),e.queryClient.ensureQueryData(OS)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:J(()=>R(()=>import(`./_id16.js`),__vite__mapDeps([135,1,29,17,2,3,4,5,6,32,70,7,8,73,38,58,39,20,64,59,124,21])),`component`)}),vT=q(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(qS(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id15.js`),__vite__mapDeps([136,1,29,17,32,2,3,4,5,6,73,38,58,9,39,40,7,8,20,10,74])),`component`)}),yT=q(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(qS(t.id)),e.queryClient.ensureQueryData(yS)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id14.js`),__vite__mapDeps([137,1,29,17,2,3,4,5,6,32,52,8,34,18,7,12,53,70,73,38,58,39,20,10,59,64,124,21])),`component`)}),bT=q(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(ZC(n)),e.queryClient.ensureQueryData(QC(n)),e.queryClient.ensureQueryData(rw([n])),e.queryClient.ensureQueryData(yS)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:J(()=>R(()=>import(`./_id13.js`),__vite__mapDeps([138,1,16,17,29,4,5,32,2,3,6,70,7,8,77,38,78,39,20,59,64,124,139,52,34,18,12,53,69,10,132])),`component`)}),xT=q(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(kS(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:J(()=>R(()=>import(`./_id12.js`),__vite__mapDeps([140,1,29,17,2,3,4,5,6,32,70,7,8,73,38,58,39,20,64,59,124,21])),`component`)}),ST=q(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(jS(t.id)),e.queryClient.ensureQueryData(DS)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id11.js`),__vite__mapDeps([141,1,29,17,2,3,4,5,6,32,35,70,7,8,73,38,58,39,20,10,59,64,124,21,47])),`component`)}),CT=q(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(VS(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:J(()=>R(()=>import(`./_id10.js`),__vite__mapDeps([142,1,29,17,2,3,4,5,6,32,52,8,34,18,7,12,53,69,70,73,38,58,9,39,20,10,74,59,64,124])),`component`)}),wT=q(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(FS(t.id)),e.queryClient.ensureQueryData(MS),e.queryClient.ensureQueryData(WS),e.queryClient.ensureQueryData(OS)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:J(()=>R(()=>import(`./_id9.js`),__vite__mapDeps([143,1,29,17,2,3,4,5,6,32,52,8,34,18,7,12,53,70,73,38,58,9,39,20,10,74,64,59,124,24])),`component`)}),TT=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(zS(t.id)),e.queryClient.ensureQueryData(yS)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id8.js`),__vite__mapDeps([144,1,29,17,2,3,4,5,6,32,70,7,8,73,38,58,39,20,64,59,124,21])),`component`)}),ET=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(GS(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:J(()=>R(()=>import(`./_id7.js`),__vite__mapDeps([145,1,29,17,2,3,4,5,6,32,70,7,8,73,38,58,39,20,64,59,124,21])),`component`)}),DT=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(JC(n)),e.queryClient.ensureQueryData($C(n)),e.queryClient.ensureQueryData(YC(n)),e.queryClient.ensureQueryData(rw([n])),e.queryClient.ensureQueryData(XC),e.queryClient.ensureQueryData(OS)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:J(()=>R(()=>import(`./_id6.js`),__vite__mapDeps([146,1,29,17,4,5,32,2,3,6,52,8,34,18,7,12,53,70,88,38,39,10,59,47,77,78,9,20,64,124,21,80,139,69,132])),`component`)}),OT=q(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(ES(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id5.js`),__vite__mapDeps([147,1,29,17,4,5,32,2,3,6,70,7,8,73,38,58,39,20,64,59,124])),`component`)}),kT=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(NS(t.id)),e.queryClient.ensureQueryData(IS)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:J(()=>R(()=>import(`./_id4.js`),__vite__mapDeps([148,1,29,17,2,3,4,5,6,32,52,8,34,18,7,12,53,70,73,38,58,39,20,64,59,124])),`component`)}),AT=q(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(bS(t.id)),e.queryClient.ensureQueryData(SS)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(wS(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id3.js`),__vite__mapDeps([149,1,16,17,29,2,3,4,5,6,32,52,8,34,18,7,12,53,54,70,73,38,58,39,20,10,59,64,124,21,150,22,23,47])),`component`)}),jT=q(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(wS(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id2.js`),__vite__mapDeps([151,1,38,29,17,4,5,32,2,3,6,131,70,7,8,73,58,39,20,59,64,21,60,150,124])),`component`)}),MT=q(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(US(t.id)),e.queryClient.ensureQueryData(yS)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:J(()=>R(()=>import(`./_id.js`),__vite__mapDeps([152,1,29,17,4,5,32,2,3,6,52,8,34,18,7,12,53,70,73,38,58,39,20,64,59,124])),`component`)}),NT=q(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(zC(t.clusterName))},head:({params:e})=>({meta:[{title:`${e.taskId} | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./_taskId.js`),__vite__mapDeps([153,1,29,17,32,2,3,4,5,6,20,124,21])),`component`)}),PT=q(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(RC(t.clusterName)),e.queryClient.ensureQueryData(zC(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.serviceName} | ECS | Mulga`}]}),component:J(()=>R(()=>import(`./_serviceName.js`),__vite__mapDeps([154,1,29,17,2,3,4,5,6,32,20,124,21])),`component`)}),FT=gS.update({id:`/login`,path:`/login`,getParentRoute:()=>hS}),$=_S.update({id:`/_auth`,getParentRoute:()=>hS}),IT=XS.update({id:`/`,path:`/`,getParentRoute:()=>$}),LT=ZS.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),RT=QS.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),zT=$S.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),BT=eC.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),VT=tC.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),HT=nC.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),UT=rC.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),WT=iC.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),GT=aC.update({id:`/iam/(groups)/create-group`,path:`/iam/create-group`,getParentRoute:()=>$}),KT=NC.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),qT=UC.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>$}),JT=WC.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>$}),YT=GC.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>$}),XT=iw.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>$}),ZT=aw.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),QT=ow.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),$T=sw.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),eE=cw.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),tE=lw.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),nE=uw.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),rE=dw.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),iE=fw.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),aE=pw.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),oE=hw.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),sE=gw.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),cE=_w.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),lE=vw.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),uE=yw.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),dE=bw.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),fE=xw.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),pE=Sw.update({id:`/`,path:`/`,getParentRoute:()=>fE}),mE=Cw.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),hE=ww.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),gE=Tw.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),_E=Ew.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),vE=Dw.update({id:`/iam/(groups)/list-groups/`,path:`/iam/list-groups/`,getParentRoute:()=>$}),yE=Bw.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),bE=Vw.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>$}),xE=Kw.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>$}),SE=qw.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),CE=Jw.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),wE=Yw.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),TE=Xw.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),EE=Zw.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),DE=Qw.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),OE=$w.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),kE=eT.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),AE=tT.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),jE=nT.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),ME=rT.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),NE=iT.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),PE=aT.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),FE=oT.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),IE=sT.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),LE=cT.update({id:`/$`,path:`/$`,getParentRoute:()=>fE}),RE=lT.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),zE=uT.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),BE=dT.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),VE=fT.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),HE=pT.update({id:`/iam/(groups)/list-groups/$groupName`,path:`/iam/list-groups/$groupName`,getParentRoute:()=>$}),UE=mT.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),WE=hT.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>$}),GE=gT.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>$}),KE=_T.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),qE=vT.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),JE=yT.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),YE=bT.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),XE=xT.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),ZE=ST.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),QE=CT.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),$E=wT.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),eD=TT.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),tD=ET.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),nD=DT.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),rD=OT.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),iD=kT.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),aD=AT.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),oD=jT.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),sD=MT.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),cD=NT.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>$}),lD=PT.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>$}),uD={AuthS3LsBucketSplatRoute:LE,AuthS3LsBucketIndexRoute:pE},dD={AuthNodesRoute:LT,AuthIndexRoute:IT,AuthS3ServiceMetricsRoute:RT,AuthS3LsBucketRouteRoute:fE._addFileChildren(uD),AuthEc2elasticIpsAllocateAddressRoute:dE,AuthEc2instancesRunInstancesRoute:uE,AuthEc2internetGatewaysCreateInternetGatewayRoute:lE,AuthEc2keyCreateKeyPairRoute:cE,AuthEc2keyImportKeyPairRoute:sE,AuthEc2loadBalancersCreateLoadBalancerRoute:oE,AuthEc2natGatewaysCreateNatGatewayRoute:aE,AuthEc2placementGroupsCreatePlacementGroupRoute:iE,AuthEc2routeTablesCreateRouteTableRoute:rE,AuthEc2securityGroupsCreateSecurityGroupRoute:nE,AuthEc2snapshotsCreateSnapshotRoute:tE,AuthEc2subnetCreateSubnetRoute:eE,AuthEc2targetGroupsCreateTargetGroupRoute:$T,AuthEc2volumesCreateVolumeRoute:QT,AuthEc2vpcCreateVpcRoute:ZT,AuthEcsclustersCreateServiceRoute:XT,AuthEcsclustersRegisterTaskDefinitionRoute:YT,AuthEcsclustersRunTaskRoute:JT,AuthEcsclustersTaskDefinitionsRoute:qT,AuthEksclustersCreateClusterRoute:KT,AuthIamgroupsCreateGroupRoute:GT,AuthIaminstanceProfilesCreateInstanceProfileRoute:WT,AuthIampoliciesCreatePolicyRoute:UT,AuthIamrolesCreateRoleRoute:HT,AuthIamusersCreateUserRoute:VT,AuthS3bucketsCreateBucketRoute:BT,AuthS3LsIndexRoute:zT,AuthEc2elasticIpsDescribeAddressesIdRoute:sD,AuthEc2imagesDescribeImagesIdRoute:oD,AuthEc2instancesDescribeInstancesIdRoute:aD,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:iD,AuthEc2keyDescribeKeyPairsIdRoute:rD,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:nD,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:tD,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:eD,AuthEc2routeTablesDescribeRouteTablesIdRoute:$E,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:QE,AuthEc2snapshotsDescribeSnapshotsIdRoute:ZE,AuthEc2subnetDescribeSubnetsIdRoute:XE,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:YE,AuthEc2volumesDescribeVolumesIdRoute:JE,AuthEc2volumesModifyVolumeIdRoute:qE,AuthEc2vpcDescribeVpcsIdRoute:KE,AuthEcrrepositoriesListRepositoriesIdRoute:GE,AuthEcsclustersListClustersClusterNameRoute:WE,AuthEksclustersListClustersClusterNameRoute:UE,AuthIamgroupsListGroupsGroupNameRoute:HE,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:VE,AuthIampoliciesListPoliciesPolicyArnRoute:BE,AuthIamrolesListRolesRoleNameRoute:zE,AuthIamusersListUsersUserNameRoute:RE,AuthEc2elasticIpsDescribeAddressesIndexRoute:IE,AuthEc2imagesDescribeImagesIndexRoute:FE,AuthEc2instancesDescribeInstancesIndexRoute:PE,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:NE,AuthEc2keyDescribeKeyPairsIndexRoute:ME,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:jE,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:AE,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:kE,AuthEc2routeTablesDescribeRouteTablesIndexRoute:OE,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:DE,AuthEc2snapshotsDescribeSnapshotsIndexRoute:EE,AuthEc2subnetDescribeSubnetsIndexRoute:TE,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:wE,AuthEc2volumesDescribeVolumesIndexRoute:CE,AuthEc2vpcDescribeVpcsIndexRoute:SE,AuthEcrrepositoriesListRepositoriesIndexRoute:xE,AuthEcsclustersListClustersIndexRoute:bE,AuthEksclustersListClustersIndexRoute:yE,AuthIamgroupsListGroupsIndexRoute:vE,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:_E,AuthIampoliciesListPoliciesIndexRoute:gE,AuthIamrolesListRolesIndexRoute:hE,AuthIamusersListUsersIndexRoute:mE,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:lD,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:cD},fD={AuthRouteRoute:$._addFileChildren(dD),LoginRoute:FT},pD=hS._addFileChildren(fD)._addFileTypes(),mD=cS(),hD=Ks({routeTree:pD,context:{queryClient:mD},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),gD=document.querySelector(`#app`);gD&&!gD.innerHTML&&ac.createRoot(gD).render((0,G.jsx)(W.StrictMode,{children:(0,G.jsx)(lc,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,G.jsx)(Sa,{client:mD,children:(0,G.jsx)(hb,{children:(0,G.jsx)(o_,{children:(0,G.jsx)(Ys,{router:hD})})})})})}));export{QC as $,yh as $n,Y as $r,GS as $t,Uw as A,da as Ai,gb as An,yd as Ar,yC as At,Nw as B,Ri as Bi,Uh as Bn,td as Br,US as Bt,fT as C,Tc as Ci,kb as Cn,Ld as Cr,wC as Ct,cT as D,Cs as Di,bb as Dn,Md as Dr,SC as Dt,lT as E,Vs as Ei,Ob as En,Nd as Er,hC as Et,Lw as F,Oi as Fi,Lg as Fn,fd as Fr,sC as Ft,iw as G,bi as Gi,mh as Gn,Su as Gr,CS as Gt,Sw as H,ki as Hi,Nh as Hn,wu as Hr,vS as Ht,Rw as I,Ei as Ii,Fg as In,sd as Ir,oC as It,YC as J,gh as Jn,Kl as Jr,yS as Jt,ew as K,Sh as Kn,Eu as Kr,bS as Kt,Iw as L,Ui as Li,Eg as Ln,ud as Lr,lC as Lt,Pw as M,Zi as Mi,ib as Mn,hd as Mr,vC as Mt,Fw as N,Xi as Ni,$y as Nn,md as Nr,dC as Nt,Gw as O,xa as Oi,xb as On,jd as Or,CC as Ot,zw as P,Pi,Rg as Pn,pd as Pr,uC as Pt,rw as Q,vh as Qn,zl as Qr,TS as Qt,jw as R,Ai as Ri,Zh as Rn,id as Rr,YS as Rt,pT as S,kc as Si,Yb as Sn,Z as Sr,EC as St,uT as T,dc as Ti,jb as Tn,Fd as Tr,mC as Tt,mw as U,Ci as Ui,Mh as Un,Cu as Ur,xS as Ut,Mw as V,Ji as Vi,Ph as Vn,Tu as Vr,HS as Vt,lw as W,xi as Wi,jh as Wn,Ou as Wr,wS as Wt,qC as X,Ch as Xn,Gl as Xr,MS as Xt,JC as Y,ph as Yn,Wl as Yr,NS as Yt,nw as Z,_h as Zn,Hl as Zr,ES as Zt,vT as _,Wc as _i,rx as _n,_f as _r,jC as _t,AT as a,El as ai,PS as an,Um as ar,LC as at,hT as b,Nc as bi,Xb as bn,Qd as br,DC as bt,DT as c,fl as ci,jS as cn,dm as cr,RC as ct,wT as d,sl as di,OS as dn,jp as dr,zC as dt,Il as ei,WS as en,wh as er,ZC as et,CT as f,il as fi,qS as fn,Wf as fr,fC as ft,yT as g,Gc as gi,gS as gn,wf as gr,AC as gt,bT as h,qc as hi,IS as hn,kf as hr,gC as ht,jT as i,jl as ii,FS as in,Dh as ir,WC as it,Ww as j,ea as ji,db as jn,gd as jr,_C as jt,Hw as k,ha as ki,yb as kn,bd as kr,bC as kt,ET as l,dl as li,AS as ln,Q as lr,HC as lt,xT as m,Qc as mi,LS as mn,Of as mr,xC as mt,NT as n,kl as ni,RS as nn,xh as nr,tw as nt,kT as o,wl as oi,VS as on,bm as or,IC as ot,ST as p,$c as pi,KS as pn,Rf as pr,kC as pt,$C as q,hh as qn,xu as qr,SS as qt,MT as r,Al as ri,DS as rn,Eh as rr,GC as rt,OT as s,yl as si,BS as sn,hm as sr,BC as st,PT as t,Ml as ti,zS as tn,bh as tr,XC as tt,TT as u,ll as ui,kS as un,em as ur,VC as ut,_T as v,Bc as vi,ix as vn,nf as vr,OC as vt,dT as w,xc as wi,Ab as wn,Id as wr,pC as wt,mT as x,Ac as xi,Zb as xn,Jd as xr,TC as xt,gT as y,Pc as yi,nx as yn,Zd as yr,MC as yt,Aw as z,U as zi,Yh as zn,ad as zr,JS as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/inline-policies-panel.js b/spinifex/services/spinifexui/frontend/dist/assets/inline-policies-panel.js new file mode 100644 index 000000000..a03ba4ad7 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/inline-policies-panel.js @@ -0,0 +1 @@ +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./button.js";import{E as s,T as c,b as l,m as u,v as d,w as f}from"./iam.js";import{Ar as p,Dt as m,It as h,Mt as g,Ot as _,_t as v,gt as y,jt as b}from"./index.js";import{t as x}from"./error-banner.js";import{a as S,r as C,t as w}from"./field.js";import{n as T}from"./detail-row.js";import{t as E}from"./json-editor.js";import{s as D}from"./iam2.js";var O=r(),k=t(n(),1),A=e(),j=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function M({kind:e,name:t}){let n=s(),r=c(),i=f(),p=l(),h=d(),S=u(),{listQuery:C,policyQuery:w,put:E,remove:D}={user:{listQuery:b,policyQuery:g,put:n,remove:p},role:{listQuery:m,policyQuery:_,put:r,remove:h},group:{listQuery:y,policyQuery:v,put:i,remove:S}}[e],{data:O}=a(C(t)),j=O.PolicyNames??[],[M,P]=(0,k.useState)(!1),[I,L]=(0,k.useState)(null),[R,z]=(0,k.useState)(null),B=async e=>{z(e);try{await D.mutateAsync({name:t,policyName:e}),I===e&&L(null)}finally{z(null)}};return(0,A.jsxs)(T,{children:[(0,A.jsx)(T.Header,{children:(0,A.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,A.jsx)(`span`,{children:`Inline Policies`}),(0,A.jsx)(o,{onClick:()=>{P(e=>!e),L(null)},size:`sm`,children:`Add inline policy`})]})}),(0,A.jsxs)(T.Content,{children:[D.error&&(0,A.jsx)(`div`,{className:`col-span-2`,children:(0,A.jsx)(x,{error:D.error,msg:`Failed to delete inline policy`})}),M&&(0,A.jsx)(`div`,{className:`col-span-2`,children:(0,A.jsx)(N,{name:t,onClose:()=>P(!1),put:E})}),j.length>0?(0,A.jsx)(`div`,{className:`col-span-2 space-y-3`,children:j.map(e=>(0,A.jsxs)(`div`,{className:`rounded-md border`,children:[(0,A.jsxs)(`div`,{className:`flex items-center justify-between p-3`,children:[(0,A.jsx)(`p`,{className:`text-sm font-medium`,children:e}),(0,A.jsxs)(`div`,{className:`flex gap-2`,children:[(0,A.jsx)(o,{onClick:()=>L(t=>t===e?null:e),size:`sm`,variant:`outline`,children:I===e?`Close`:`Edit`}),(0,A.jsx)(o,{disabled:R===e,onClick:()=>void B(e),size:`sm`,variant:`destructive`,children:`Delete`})]})]}),I===e&&(0,A.jsx)(`div`,{className:`border-t p-3`,children:(0,A.jsx)(F,{name:t,onClose:()=>L(null),policyName:e,put:E,queryOptions:w(t,e)})})]},e))}):!M&&(0,A.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No inline policies.`})]})]})}function N(e){let t=(0,O.c)(50),{name:n,put:r,onClose:i}=e,[a,s]=(0,k.useState)(``),[c,l]=(0,k.useState)(j),u,d;t[0]!==c||t[1]!==a?(u=D.safeParse({policyName:a,policyDocument:c}),d=u.success?void 0:u.error.issues.find(P),t[0]=c,t[1]=a,t[2]=u,t[3]=d):(u=t[2],d=t[3]);let f=d,m;t[4]!==f||t[5]!==a?(m=a.trim().length>0&&!!f,t[4]=f,t[5]=a,t[6]=m):m=t[6];let g=m,_;t[7]===c?_=t[8]:(_=c.trim().length>0&&!h(c),t[7]=c,t[8]=_);let v=_,y;t[9]!==c||t[10]!==n||t[11]!==i||t[12]!==a||t[13]!==r?(y=async()=>{try{await r.mutateAsync({name:n,policyName:a,policyDocument:c}),i()}catch{}},t[9]=c,t[10]=n,t[11]=i,t[12]=a,t[13]=r,t[14]=y):y=t[14];let b=y,T;t[15]===r.error?T=t[16]:(T=r.error&&(0,A.jsx)(x,{error:r.error,msg:`Failed to add inline policy`}),t[15]=r.error,t[16]=T);let M;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,A.jsx)(S,{children:(0,A.jsx)(`label`,{htmlFor:`inline-policy-name`,children:`Policy name`})}),t[17]=M):M=t[17];let N;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>s(e.target.value),t[18]=N):N=t[18];let F;t[19]!==a||t[20]!==g?(F=(0,A.jsx)(p,{"aria-invalid":g,id:`inline-policy-name`,onChange:N,placeholder:`my-inline-policy`,value:a}),t[19]=a,t[20]=g,t[21]=F):F=t[21];let I;t[22]!==f?.message||t[23]!==g?(I=g&&(0,A.jsx)(C,{errors:[{message:f?.message}]}),t[22]=f?.message,t[23]=g,t[24]=I):I=t[24];let L;t[25]!==F||t[26]!==I?(L=(0,A.jsxs)(w,{children:[M,F,I]}),t[25]=F,t[26]=I,t[27]=L):L=t[27];let R;t[28]!==c||t[29]!==v?(R=(0,A.jsx)(E,{className:`text-xs`,error:v,onChange:l,rows:12,value:c}),t[28]=c,t[29]=v,t[30]=R):R=t[30];let z;t[31]===v?z=t[32]:(z=v&&(0,A.jsx)(`p`,{className:`text-sm text-destructive`,children:`Policy must be valid JSON.`}),t[31]=v,t[32]=z);let B;t[33]===i?B=t[34]:(B=(0,A.jsx)(o,{onClick:i,size:`sm`,variant:`outline`,children:`Cancel`}),t[33]=i,t[34]=B);let V=!u.success||r.isPending,H;t[35]===b?H=t[36]:(H=()=>void b(),t[35]=b,t[36]=H);let U=r.isPending?`Saving…`:`Save`,W;t[37]!==V||t[38]!==H||t[39]!==U?(W=(0,A.jsx)(o,{disabled:V,onClick:H,size:`sm`,children:U}),t[37]=V,t[38]=H,t[39]=U,t[40]=W):W=t[40];let G;t[41]!==B||t[42]!==W?(G=(0,A.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[B,W]}),t[41]=B,t[42]=W,t[43]=G):G=t[43];let K;return t[44]!==L||t[45]!==R||t[46]!==z||t[47]!==G||t[48]!==T?(K=(0,A.jsxs)(`div`,{className:`space-y-3 rounded-md border p-3`,children:[T,L,R,z,G]}),t[44]=L,t[45]=R,t[46]=z,t[47]=G,t[48]=T,t[49]=K):K=t[49],K}function P(e){return e.path[0]===`policyName`}function F(e){let t=(0,O.c)(38),{name:n,policyName:r,queryOptions:a,put:s,onClose:c}=e,{data:l,isLoading:u}=i(a),[d,f]=(0,k.useState)(``),p,m;t[0]===l?(p=t[1],m=t[2]):(p=()=>{f(l??``)},m=[l],t[0]=l,t[1]=p,t[2]=m),(0,k.useEffect)(p,m);let g;t[3]===d?g=t[4]:(g=d.trim(),t[3]=d,t[4]=g);let _=g,v;t[5]!==d||t[6]!==_.length?(v=_.length>0&&!h(d),t[5]=d,t[6]=_.length,t[7]=v):v=t[7];let y=v,b;t[8]!==d||t[9]!==n||t[10]!==c||t[11]!==r||t[12]!==s?(b=async()=>{try{await s.mutateAsync({name:n,policyName:r,policyDocument:d}),c()}catch{}},t[8]=d,t[9]=n,t[10]=c,t[11]=r,t[12]=s,t[13]=b):b=t[13];let S=b;if(u){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,A.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading…`}),t[14]=e):e=t[14],e}let C;t[15]===s.error?C=t[16]:(C=s.error&&(0,A.jsx)(x,{error:s.error,msg:`Failed to update inline policy`}),t[15]=s.error,t[16]=C);let w;t[17]!==d||t[18]!==y?(w=(0,A.jsx)(E,{className:`text-xs`,error:y,onChange:f,rows:12,value:d}),t[17]=d,t[18]=y,t[19]=w):w=t[19];let T;t[20]===y?T=t[21]:(T=y&&(0,A.jsx)(`p`,{className:`text-sm text-destructive`,children:`Policy must be valid JSON.`}),t[20]=y,t[21]=T);let D;t[22]===c?D=t[23]:(D=(0,A.jsx)(o,{onClick:c,size:`sm`,variant:`outline`,children:`Cancel`}),t[22]=c,t[23]=D);let j=s.isPending||_.length===0||y,M;t[24]===S?M=t[25]:(M=()=>void S(),t[24]=S,t[25]=M);let N=s.isPending?`Saving…`:`Save`,P;t[26]!==j||t[27]!==M||t[28]!==N?(P=(0,A.jsx)(o,{disabled:j,onClick:M,size:`sm`,children:N}),t[26]=j,t[27]=M,t[28]=N,t[29]=P):P=t[29];let F;t[30]!==P||t[31]!==D?(F=(0,A.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[D,P]}),t[30]=P,t[31]=D,t[32]=F):F=t[32];let I;return t[33]!==F||t[34]!==C||t[35]!==w||t[36]!==T?(I=(0,A.jsxs)(`div`,{className:`space-y-3`,children:[C,w,T,F]}),t[33]=F,t[34]=C,t[35]=w,t[36]=T,t[37]=I):I=t[37],I}export{M as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/json-editor.js b/spinifex/services/spinifexui/frontend/dist/assets/json-editor.js index d973a09da..82b0f72ec 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/json-editor.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/json-editor.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Ft as n}from"./auth.js";import{t as r}from"./textarea.js";import{t as i}from"./json.js";var a=t(),o=e();function s(e){let t=(0,a.c)(22),s,c,l,u,d,f;t[0]===e?(s=t[1],c=t[2],l=t[3],u=t[4],d=t[5],f=t[6]):({value:f,onChange:u,error:c,onBlur:l,className:s,...d}=e,t[0]=e,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=d,t[6]=f);let p;t[7]!==l||t[8]!==u||t[9]!==f?(p=e=>{let t=i(f);t!==null&&t!==f&&u(t),l?.(e)},t[7]=l,t[8]=u,t[9]=f,t[10]=p):p=t[10];let m=p,h;t[11]===s?h=t[12]:(h=n(`font-mono text-sm`,s),t[11]=s,t[12]=h);let g;t[13]===u?g=t[14]:(g=e=>u(e.target.value),t[13]=u,t[14]=g);let _;return t[15]!==c||t[16]!==m||t[17]!==d||t[18]!==h||t[19]!==g||t[20]!==f?(_=(0,o.jsx)(r,{"aria-invalid":c,className:h,onBlur:m,onChange:g,value:f,...d}),t[15]=c,t[16]=m,t[17]=d,t[18]=h,t[19]=g,t[20]=f,t[21]=_):_=t[21],_}export{s as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ft as n}from"./auth.js";import{Ft as r}from"./index.js";import{t as i}from"./textarea.js";var a=t(),o=e();function s(e){let t=(0,a.c)(22),s,c,l,u,d,f;t[0]===e?(s=t[1],c=t[2],l=t[3],u=t[4],d=t[5],f=t[6]):({value:f,onChange:u,error:c,onBlur:l,className:s,...d}=e,t[0]=e,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=d,t[6]=f);let p;t[7]!==l||t[8]!==u||t[9]!==f?(p=e=>{let t=r(f);t!==null&&t!==f&&u(t),l?.(e)},t[7]=l,t[8]=u,t[9]=f,t[10]=p):p=t[10];let m=p,h;t[11]===s?h=t[12]:(h=n(`font-mono text-sm`,s),t[11]=s,t[12]=h);let g;t[13]===u?g=t[14]:(g=e=>u(e.target.value),t[13]=u,t[14]=g);let _;return t[15]!==c||t[16]!==m||t[17]!==d||t[18]!==h||t[19]!==g||t[20]!==f?(_=(0,o.jsx)(i,{"aria-invalid":c,className:h,onBlur:m,onChange:g,value:f,...d}),t[15]=c,t[16]=m,t[17]=d,t[18]=h,t[19]=g,t[20]=f,t[21]=_):_=t[21],_}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/json.js b/spinifex/services/spinifexui/frontend/dist/assets/json.js deleted file mode 100644 index d7e6936fd..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/json.js +++ /dev/null @@ -1 +0,0 @@ -import{f as e}from"./auth.js";function t(e){try{return JSON.parse(e),!0}catch{return!1}}function n(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return null}}function r(n){let{label:r,allowEmpty:i=!1}=n;return(i?e():e().min(1,`${r} is required`)).refine(e=>i&&e.trim()===``?!0:t(e),{message:`${r} must be valid JSON`})}export{t as n,r,n as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-card.js b/spinifex/services/spinifexui/frontend/dist/assets/list-card.js index e5e916a28..ac79055ce 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-card.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-card.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{xi as n}from"./awsClient.js";var r=t(),i=e();function a(e){let t=(0,r.c)(22),a,o,s,c,l;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),t[6]=l,t[7]=u);let d;t[8]===c?d=t[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),t[8]=c,t[9]=d);let f;t[10]!==o||t[11]!==u||t[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),t[10]=o,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===a?p=t[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),t[14]=a,t[15]=p);let m;t[16]!==f||t[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==m?(h=(0,i.jsx)(n,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),t[19]=s,t[20]=m,t[21]=h):h=t[21],h}export{a as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ni as n}from"./awsClient.js";var r=t(),i=e();function a(e){let t=(0,r.c)(22),a,o,s,c,l;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),t[6]=l,t[7]=u);let d;t[8]===c?d=t[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),t[8]=c,t[9]=d);let f;t[10]!==o||t[11]!==u||t[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),t[10]=o,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===a?p=t[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),t[14]=a,t[15]=p);let m;t[16]!==f||t[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==m?(h=(0,i.jsx)(n,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),t[19]=s,t[20]=m,t[21]=h):h=t[21],h}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js index ef1f8db55..277e776db 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{xi as a}from"./awsClient.js";import{t as o}from"./check.js";import{t as s}from"./copy.js";import{t as c}from"./rotate-cw.js";import{t as l}from"./triangle-alert.js";import{t as u}from"./button.js";import{r as d,t as f}from"./ecs.js";import{It as p,ot as m,vi as h,xr as g,yi as _}from"./index.js";import{t as v}from"./use-copy-to-clipboard.js";import{t as y}from"./error-banner.js";import{t as b}from"./page-heading.js";import{a as x,t as S}from"./field.js";import{a as C,i as w,l as T,n as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";import{t as j}from"./delete-confirmation-dialog.js";import{t as M}from"./state-badge.js";import{t as N}from"./system-managed.js";import{t as P}from"./ecs-section-nav.js";var F=r(),I=t(n(),1),L=e();function R(e){let t=(0,F.c)(32),{open:n,onOpenChange:r}=e,i=f(),[a,o]=(0,I.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,l;t[3]!==i||t[4]!==c||t[5]!==a?(l=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=l):l=t[6];let u=l,d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsxs)(k,{children:[(0,L.jsx)(T,{children:`Create Cluster`}),(0,L.jsx)(C,{children:`A cluster groups the services, tasks, and container instances that run on it.`})]}),t[7]=d):d=t[7];let p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsx)(x,{children:(0,L.jsx)(`label`,{htmlFor:`clusterName`,children:`Name`})}),t[8]=p):p=t[8];let m;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>o(e.target.value),t[9]=m):m=t[9];let h;t[10]===a?h=t[11]:(h=(0,L.jsxs)(S,{children:[p,(0,L.jsx)(g,{id:`clusterName`,onChange:m,placeholder:`my-cluster`,value:a})]}),t[10]=a,t[11]=h);let _;t[12]===i.error?_=t[13]:(_=i.error&&(0,L.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=_);let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,L.jsx)(O,{children:`Cancel`}),t[14]=v):v=t[14];let y;t[15]!==i.isPending||t[16]!==a?(y=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=y):y=t[17];let b;t[18]===u?b=t[19]:(b=e=>{e.preventDefault(),u()},t[18]=u,t[19]=b);let j=i.isPending?`Creating…`:`Create Cluster`,M;t[20]!==b||t[21]!==j||t[22]!==y?(M=(0,L.jsxs)(D,{children:[v,(0,L.jsx)(E,{disabled:y,onClick:b,children:j})]}),t[20]=b,t[21]=j,t[22]=y,t[23]=M):M=t[23];let N;t[24]!==M||t[25]!==h||t[26]!==_?(N=(0,L.jsxs)(w,{children:[d,h,_,M]}),t[24]=M,t[25]=h,t[26]=_,t[27]=N):N=t[27];let P;return t[28]!==c||t[29]!==n||t[30]!==N?(P=(0,L.jsx)(A,{onOpenChange:c,open:n,children:N}),t[28]=c,t[29]=n,t[30]=N,t[31]=P):P=t[31],P}var z=`spx admin images import --name spinifex-ecs-node`;function B(e){let t=(0,F.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=v(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsx)(l,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=d):d=t[0];let f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,L.jsxs)(`div`,{className:`space-y-1`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`ECS system image not found`}),(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`ECS clusters need a Spinifex-managed node image (containerd + ecs-agent) to launch container instances. Import it before creating a cluster.`})]}),t[1]=f):f=t[1];let p,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),m=(0,L.jsx)(`span`,{className:`flex-1 text-foreground`,children:z}),t[2]=p,t[3]=m):(p=t[2],m=t[3]);let h;t[4]===a?h=t[5]:(h=()=>void a(z),t[4]=a,t[5]=h);let g;t[6]===i?g=t[7]:(g=i?(0,L.jsx)(o,{className:`size-3.5 text-tactical-green`}):(0,L.jsx)(s,{className:`size-3.5`}),t[6]=i,t[7]=g);let _;t[8]!==h||t[9]!==g?(_=(0,L.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[p,m,(0,L.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:h,type:`button`,children:g})]}),t[8]=h,t[9]=g,t[10]=_):_=t[10];let y;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=y):y=t[11];let b=n?`size-4 animate-spin`:`size-4`,x;t[12]===b?x=t[13]:(x=(0,L.jsx)(c,{className:b}),t[12]=b,t[13]=x);let S;t[14]!==n||t[15]!==r||t[16]!==x?(S=(0,L.jsxs)(u,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[x,`Recheck`]}),t[14]=n,t[15]=r,t[16]=x,t[17]=S):S=t[17];let C;return t[18]!==S||t[19]!==_?(C=(0,L.jsx)(`div`,{className:`mb-6 max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,L.jsxs)(`div`,{className:`flex items-start gap-3`,children:[d,(0,L.jsxs)(`div`,{className:`space-y-4`,children:[f,_,y,S]})]})}),t[18]=S,t[19]=_,t[20]=C):C=t[20],C}function V(){let e=h(),t=_(),{data:n}=i(m),{data:r}=i(p),o=d(),[s,c]=(0,I.useState)(!1),[l,f]=(0,I.useState)(null),[g,v]=(0,I.useState)(!1),x=(r.Images??[]).some(N);async function S(){v(!0);try{await t.invalidateQueries({queryKey:p.queryKey})}finally{v(!1)}}function C(){l&&o.mutate(l,{onSuccess:()=>f(null)})}return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(b,{actions:(0,L.jsx)(u,{disabled:!x,onClick:()=>c(!0),children:`Create Cluster`}),title:`Clusters`}),(0,L.jsx)(P,{}),!x&&(0,L.jsx)(B,{isRechecking:g,onRecheck:S}),o.isError&&(0,L.jsx)(y,{error:o.error instanceof Error?o.error:void 0,msg:`Failed to delete cluster.`}),n.length>0?(0,L.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,L.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,L.jsx)(`thead`,{children:(0,L.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Services`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running Tasks`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Instances`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,L.jsx)(`tbody`,{children:n.map(t=>{if(!t.clusterName)return null;let n=t.clusterName;return(0,L.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await e({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:n}}),children:[(0,L.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(a,{className:`text-primary hover:underline`,onClick:e=>e.stopPropagation(),params:{clusterName:n},to:`/ecs/list-clusters/$clusterName`,children:n})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:(0,L.jsx)(M,{state:t.status})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.activeServicesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.runningTasksCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.registeredContainerInstancesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,L.jsx)(u,{onClick:e=>{e.stopPropagation(),f(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,L.jsx)(`p`,{className:`text-muted-foreground`,children:`No ECS clusters found.`}),(0,L.jsx)(R,{onOpenChange:c,open:s}),(0,L.jsx)(j,{description:`This permanently deletes cluster "${l}" and force-stops every task it holds. This cannot be undone.`,isPending:o.isPending,onConfirm:C,onOpenChange:e=>!e&&f(null),open:l!==null,title:`Delete cluster`})]})}var H=V;export{H as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ni as a}from"./awsClient.js";import{t as o}from"./check.js";import{t as s}from"./copy.js";import{t as c}from"./rotate-cw.js";import{t as l}from"./triangle-alert.js";import{t as u}from"./button.js";import{r as d,t as f}from"./ecs.js";import{Ar as p,Di as m,Gt as h,Oi as g,ot as _}from"./index.js";import{t as v}from"./use-copy-to-clipboard.js";import{t as y}from"./error-banner.js";import{t as b}from"./page-heading.js";import{a as x,t as S}from"./field.js";import{a as C,i as w,l as T,n as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";import{t as j}from"./delete-confirmation-dialog.js";import{t as M}from"./state-badge.js";import{t as N}from"./system-managed.js";import{t as P}from"./ecs-section-nav.js";var F=r(),I=t(n(),1),L=e();function R(e){let t=(0,F.c)(32),{open:n,onOpenChange:r}=e,i=f(),[a,o]=(0,I.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,l;t[3]!==i||t[4]!==c||t[5]!==a?(l=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=l):l=t[6];let u=l,d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsxs)(k,{children:[(0,L.jsx)(T,{children:`Create Cluster`}),(0,L.jsx)(C,{children:`A cluster groups the services, tasks, and container instances that run on it.`})]}),t[7]=d):d=t[7];let m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,L.jsx)(x,{children:(0,L.jsx)(`label`,{htmlFor:`clusterName`,children:`Name`})}),t[8]=m):m=t[8];let h;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>o(e.target.value),t[9]=h):h=t[9];let g;t[10]===a?g=t[11]:(g=(0,L.jsxs)(S,{children:[m,(0,L.jsx)(p,{id:`clusterName`,onChange:h,placeholder:`my-cluster`,value:a})]}),t[10]=a,t[11]=g);let _;t[12]===i.error?_=t[13]:(_=i.error&&(0,L.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=_);let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,L.jsx)(O,{children:`Cancel`}),t[14]=v):v=t[14];let y;t[15]!==i.isPending||t[16]!==a?(y=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=y):y=t[17];let b;t[18]===u?b=t[19]:(b=e=>{e.preventDefault(),u()},t[18]=u,t[19]=b);let j=i.isPending?`Creating…`:`Create Cluster`,M;t[20]!==b||t[21]!==j||t[22]!==y?(M=(0,L.jsxs)(D,{children:[v,(0,L.jsx)(E,{disabled:y,onClick:b,children:j})]}),t[20]=b,t[21]=j,t[22]=y,t[23]=M):M=t[23];let N;t[24]!==M||t[25]!==g||t[26]!==_?(N=(0,L.jsxs)(w,{children:[d,g,_,M]}),t[24]=M,t[25]=g,t[26]=_,t[27]=N):N=t[27];let P;return t[28]!==c||t[29]!==n||t[30]!==N?(P=(0,L.jsx)(A,{onOpenChange:c,open:n,children:N}),t[28]=c,t[29]=n,t[30]=N,t[31]=P):P=t[31],P}var z=`spx admin images import --name spinifex-ecs-node`;function B(e){let t=(0,F.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=v(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsx)(l,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=d):d=t[0];let f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,L.jsxs)(`div`,{className:`space-y-1`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`ECS system image not found`}),(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`ECS clusters need a Spinifex-managed node image (containerd + ecs-agent) to launch container instances. Import it before creating a cluster.`})]}),t[1]=f):f=t[1];let p,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),m=(0,L.jsx)(`span`,{className:`flex-1 text-foreground`,children:z}),t[2]=p,t[3]=m):(p=t[2],m=t[3]);let h;t[4]===a?h=t[5]:(h=()=>void a(z),t[4]=a,t[5]=h);let g;t[6]===i?g=t[7]:(g=i?(0,L.jsx)(o,{className:`size-3.5 text-tactical-green`}):(0,L.jsx)(s,{className:`size-3.5`}),t[6]=i,t[7]=g);let _;t[8]!==h||t[9]!==g?(_=(0,L.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[p,m,(0,L.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:h,type:`button`,children:g})]}),t[8]=h,t[9]=g,t[10]=_):_=t[10];let y;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=y):y=t[11];let b=n?`size-4 animate-spin`:`size-4`,x;t[12]===b?x=t[13]:(x=(0,L.jsx)(c,{className:b}),t[12]=b,t[13]=x);let S;t[14]!==n||t[15]!==r||t[16]!==x?(S=(0,L.jsxs)(u,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[x,`Recheck`]}),t[14]=n,t[15]=r,t[16]=x,t[17]=S):S=t[17];let C;return t[18]!==S||t[19]!==_?(C=(0,L.jsx)(`div`,{className:`mb-6 max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,L.jsxs)(`div`,{className:`flex items-start gap-3`,children:[d,(0,L.jsxs)(`div`,{className:`space-y-4`,children:[f,_,y,S]})]})}),t[18]=S,t[19]=_,t[20]=C):C=t[20],C}function V(){let e=m(),t=g(),{data:n}=i(_),{data:r}=i(h),o=d(),[s,c]=(0,I.useState)(!1),[l,f]=(0,I.useState)(null),[p,v]=(0,I.useState)(!1),x=(r.Images??[]).some(N);async function S(){v(!0);try{await t.invalidateQueries({queryKey:h.queryKey})}finally{v(!1)}}function C(){l&&o.mutate(l,{onSuccess:()=>f(null)})}return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(b,{actions:(0,L.jsx)(u,{disabled:!x,onClick:()=>c(!0),children:`Create Cluster`}),title:`Clusters`}),(0,L.jsx)(P,{}),!x&&(0,L.jsx)(B,{isRechecking:p,onRecheck:S}),o.isError&&(0,L.jsx)(y,{error:o.error instanceof Error?o.error:void 0,msg:`Failed to delete cluster.`}),n.length>0?(0,L.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,L.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,L.jsx)(`thead`,{children:(0,L.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Services`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running Tasks`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Instances`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,L.jsx)(`tbody`,{children:n.map(t=>{if(!t.clusterName)return null;let n=t.clusterName;return(0,L.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await e({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:n}}),children:[(0,L.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(a,{className:`text-primary hover:underline`,onClick:e=>e.stopPropagation(),params:{clusterName:n},to:`/ecs/list-clusters/$clusterName`,children:n})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:(0,L.jsx)(M,{state:t.status})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.activeServicesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.runningTasksCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.registeredContainerInstancesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,L.jsx)(u,{onClick:e=>{e.stopPropagation(),f(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,L.jsx)(`p`,{className:`text-muted-foreground`,children:`No ECS clusters found.`}),(0,L.jsx)(R,{onOpenChange:c,open:s}),(0,L.jsx)(j,{description:`This permanently deletes cluster "${l}" and force-stops every task it holds. This cannot be undone.`,isPending:o.isPending,onConfirm:C,onOpenChange:e=>!e&&f(null),open:l!==null,title:`Delete cluster`})]})}var H=V;export{H as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters2.js b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters2.js index 7cc875e7d..8168017f4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters2.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{z as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.clusters){let n=(t.clusters??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/eks/create-cluster`,children:(0,l.jsx)(i,{children:`Create Cluster`})}),title:`Clusters`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No EKS clusters found.`})]}),e[0]=t.clusters,e[1]=s}else s=e[1];return s}function d(e){return(0,l.jsx)(s,{params:{clusterName:e},title:e,to:`/eks/list-clusters/$clusterName`},e)}function f(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}var p=u;export{p as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{z as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.clusters){let n=(t.clusters??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/eks/create-cluster`,children:(0,l.jsx)(i,{children:`Create Cluster`})}),title:`Clusters`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No EKS clusters found.`})]}),e[0]=t.clusters,e[1]=s}else s=e[1];return s}function d(e){return(0,l.jsx)(s,{params:{clusterName:e},title:e,to:`/eks/list-clusters/$clusterName`},e)}function f(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}var p=u;export{p as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/list-groups.js index 7fcaaeaeb..b195aced1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{vt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Groups){let n=(t.Groups??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-group`,children:(0,l.jsx)(i,{children:`Create Group`})}),title:`Groups`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM groups found.`})]}),e[0]=t.Groups,e[1]=s}else s=e[1];return s}function d(e){return e.GroupName?(0,l.jsx)(s,{params:{groupName:e.GroupName},subtitle:e.Arn??``,title:e.GroupName,to:`/iam/list-groups/$groupName`},e.GroupName):null}function f(e,t){let n=e.GroupName?.toLowerCase()??``,r=t.GroupName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{bt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Groups){let n=(t.Groups??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-group`,children:(0,l.jsx)(i,{children:`Create Group`})}),title:`Groups`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM groups found.`})]}),e[0]=t.Groups,e[1]=s}else s=e[1];return s}function d(e){return e.GroupName?(0,l.jsx)(s,{params:{groupName:e.GroupName},subtitle:e.Arn??``,title:e.GroupName,to:`/iam/list-groups/$groupName`},e.GroupName):null}function f(e,t){let n=e.GroupName?.toLowerCase()??``,r=t.GroupName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js b/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js index f1a77bf0a..b88b2b25e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{xt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.InstanceProfiles){let n=(t.InstanceProfiles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-instance-profile`,children:(0,l.jsx)(i,{children:`Create Instance Profile`})}),title:`Instance Profiles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No instance profiles found.`})]}),e[0]=t.InstanceProfiles,e[1]=s}else s=e[1];return s}function d(e){return e.InstanceProfileName?(0,l.jsx)(s,{params:{instanceProfileName:e.InstanceProfileName},subtitle:e.Arn??``,title:e.InstanceProfileName,to:`/iam/list-instance-profiles/$instanceProfileName`},e.InstanceProfileName):null}function f(e,t){let n=e.InstanceProfileName?.toLowerCase()??``,r=t.InstanceProfileName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{Ct as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.InstanceProfiles){let n=(t.InstanceProfiles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-instance-profile`,children:(0,l.jsx)(i,{children:`Create Instance Profile`})}),title:`Instance Profiles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No instance profiles found.`})]}),e[0]=t.InstanceProfiles,e[1]=s}else s=e[1];return s}function d(e){return e.InstanceProfileName?(0,l.jsx)(s,{params:{instanceProfileName:e.InstanceProfileName},subtitle:e.Arn??``,title:e.InstanceProfileName,to:`/iam/list-instance-profiles/$instanceProfileName`},e.InstanceProfileName):null}function f(e,t){let n=e.InstanceProfileName?.toLowerCase()??``,r=t.InstanceProfileName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js index ecce7fb2f..29b535743 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{St as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Policies){let n=(t.Policies??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-policy`,children:(0,l.jsx)(i,{children:`Create Policy`})}),title:`Policies`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),e[0]=t.Policies,e[1]=s}else s=e[1];return s}function d(e){return e.Arn?(0,l.jsx)(s,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:e.Arn??``,title:e.PolicyName??``,to:`/iam/list-policies/$policyArn`},e.Arn):null}function f(e,t){let n=e.PolicyName?.toLowerCase()??``,r=t.PolicyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{wt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Policies){let n=(t.Policies??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-policy`,children:(0,l.jsx)(i,{children:`Create Policy`})}),title:`Policies`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),e[0]=t.Policies,e[1]=s}else s=e[1];return s}function d(e){return e.Arn?(0,l.jsx)(s,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:e.Arn??``,title:e.PolicyName??``,to:`/iam/list-policies/$policyArn`},e.Arn):null}function f(e,t){let n=e.PolicyName?.toLowerCase()??``,r=t.PolicyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js b/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js index 6f362b1c3..8d1ec9d9b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{xi as a}from"./awsClient.js";import{Rt as o}from"./auth.js";import{t as s}from"./button.js";import{i as c,n as l}from"./ecr.js";import{k as u,vi as d,xr as f}from"./index.js";import{t as p}from"./page-heading.js";import{a as m,t as h}from"./field.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./alert-dialog.js";var w=r(),T=t(n(),1),E=e();function D(e){let t=(0,w.c)(32),{open:n,onOpenChange:r}=e,i=l(),[a,o]=(0,T.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,u;t[3]!==i||t[4]!==c||t[5]!==a?(u=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=u):u=t[6];let d=u,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,E.jsxs)(S,{children:[(0,E.jsx)(v,{children:`Create Repository`}),(0,E.jsxs)(g,{children:[`Repository names may include namespaces, e.g. `,`team/app`,`.`]})]}),t[7]=p):p=t[7];let D;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,E.jsx)(m,{children:(0,E.jsx)(`label`,{htmlFor:`repositoryName`,children:`Name`})}),t[8]=D):D=t[8];let O;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>o(e.target.value),t[9]=O):O=t[9];let k;t[10]===a?k=t[11]:(k=(0,E.jsxs)(h,{children:[D,(0,E.jsx)(f,{id:`repositoryName`,onChange:O,placeholder:`team/app`,value:a})]}),t[10]=a,t[11]=k);let A;t[12]===i.error?A=t[13]:(A=i.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=A);let j;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,E.jsx)(x,{children:`Cancel`}),t[14]=j):j=t[14];let M;t[15]!==i.isPending||t[16]!==a?(M=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=M):M=t[17];let N;t[18]===d?N=t[19]:(N=e=>{e.preventDefault(),d()},t[18]=d,t[19]=N);let P=i.isPending?`Creating…`:`Create Repository`,F;t[20]!==N||t[21]!==P||t[22]!==M?(F=(0,E.jsxs)(b,{children:[j,(0,E.jsx)(y,{disabled:M,onClick:N,children:P})]}),t[20]=N,t[21]=P,t[22]=M,t[23]=F):F=t[23];let I;t[24]!==F||t[25]!==k||t[26]!==A?(I=(0,E.jsxs)(_,{children:[p,k,A,F]}),t[24]=F,t[25]=k,t[26]=A,t[27]=I):I=t[27];let L;return t[28]!==c||t[29]!==n||t[30]!==I?(L=(0,E.jsx)(C,{onOpenChange:c,open:n,children:I}),t[28]=c,t[29]=n,t[30]=I,t[31]=L):L=t[31],L}function O(){let e=(0,w.c)(35),t=d(),{data:n}=i(u),r=c(),[l,f]=(0,T.useState)(!1),[m,h]=(0,T.useState)(null),O;e[0]===n.repositories?O=e[1]:(O=n.repositories??[],e[0]=n.repositories,e[1]=O);let A=O,j;e[2]!==r||e[3]!==m?(j=async function(){if(m)try{await r.mutateAsync(m),h(null)}catch{}},e[2]=r,e[3]=m,e[4]=j):j=e[4];let M=j,N;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,E.jsx)(p,{actions:(0,E.jsx)(s,{onClick:()=>f(!0),children:`Create Repository`}),title:`Repositories`}),e[5]=N):N=e[5];let P;e[6]!==t||e[7]!==A?(P=A.length>0?(0,E.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,E.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`URI`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tag Mutability`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,E.jsx)(`tbody`,{children:A.map(e=>{if(!e.repositoryName)return null;let n=e.repositoryName;return(0,E.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ecr/list-repositories/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,E.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(a,{className:`text-primary hover:underline`,onClick:k,params:{id:encodeURIComponent(n)},to:`/ecr/list-repositories/$id`,children:n})}),(0,E.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.repositoryUri??``}),(0,E.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTagMutability??``}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.createdAt)}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,E.jsx)(s,{onClick:e=>{e.stopPropagation(),h(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`No repositories found.`}),e[6]=t,e[7]=A,e[8]=P):P=e[8];let F;e[9]===l?F=e[10]:(F=(0,E.jsx)(D,{onOpenChange:f,open:l}),e[9]=l,e[10]=F);let I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>!e&&h(null),e[11]=I):I=e[11];let L=m!==null,R;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,E.jsx)(v,{children:`Delete repository?`}),e[12]=R):R=e[12];let z;e[13]===m?z=e[14]:(z=(0,E.jsxs)(S,{children:[R,(0,E.jsxs)(g,{children:[`This permanently deletes `,m,` and every image it holds. This cannot be undone.`]})]}),e[13]=m,e[14]=z);let B;e[15]===r.error?B=e[16]:(B=r.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:r.error.message}),e[15]=r.error,e[16]=B);let V;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,E.jsx)(x,{children:`Cancel`}),e[17]=V):V=e[17];let H;e[18]===M?H=e[19]:(H=e=>{e.preventDefault(),M()},e[18]=M,e[19]=H);let U=r.isPending?`Deleting…`:`Delete`,W;e[20]!==r.isPending||e[21]!==H||e[22]!==U?(W=(0,E.jsxs)(b,{children:[V,(0,E.jsx)(y,{disabled:r.isPending,onClick:H,children:U})]}),e[20]=r.isPending,e[21]=H,e[22]=U,e[23]=W):W=e[23];let G;e[24]!==W||e[25]!==z||e[26]!==B?(G=(0,E.jsxs)(_,{children:[z,B,W]}),e[24]=W,e[25]=z,e[26]=B,e[27]=G):G=e[27];let K;e[28]!==G||e[29]!==L?(K=(0,E.jsx)(C,{onOpenChange:I,open:L,children:G}),e[28]=G,e[29]=L,e[30]=K):K=e[30];let q;return e[31]!==K||e[32]!==P||e[33]!==F?(q=(0,E.jsxs)(E.Fragment,{children:[N,P,F,K]}),e[31]=K,e[32]=P,e[33]=F,e[34]=q):q=e[34],q}function k(e){return e.stopPropagation()}var A=O;export{A as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ni as a}from"./awsClient.js";import{Rt as o}from"./auth.js";import{t as s}from"./button.js";import{i as c,n as l}from"./ecr.js";import{Ar as u,Di as d,k as f}from"./index.js";import{t as p}from"./page-heading.js";import{a as m,t as h}from"./field.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./alert-dialog.js";var w=r(),T=t(n(),1),E=e();function D(e){let t=(0,w.c)(32),{open:n,onOpenChange:r}=e,i=l(),[a,o]=(0,T.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,d;t[3]!==i||t[4]!==c||t[5]!==a?(d=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=d):d=t[6];let f=d,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,E.jsxs)(S,{children:[(0,E.jsx)(v,{children:`Create Repository`}),(0,E.jsxs)(g,{children:[`Repository names may include namespaces, e.g. `,`team/app`,`.`]})]}),t[7]=p):p=t[7];let D;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,E.jsx)(m,{children:(0,E.jsx)(`label`,{htmlFor:`repositoryName`,children:`Name`})}),t[8]=D):D=t[8];let O;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>o(e.target.value),t[9]=O):O=t[9];let k;t[10]===a?k=t[11]:(k=(0,E.jsxs)(h,{children:[D,(0,E.jsx)(u,{id:`repositoryName`,onChange:O,placeholder:`team/app`,value:a})]}),t[10]=a,t[11]=k);let A;t[12]===i.error?A=t[13]:(A=i.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=A);let j;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,E.jsx)(x,{children:`Cancel`}),t[14]=j):j=t[14];let M;t[15]!==i.isPending||t[16]!==a?(M=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=M):M=t[17];let N;t[18]===f?N=t[19]:(N=e=>{e.preventDefault(),f()},t[18]=f,t[19]=N);let P=i.isPending?`Creating…`:`Create Repository`,F;t[20]!==N||t[21]!==P||t[22]!==M?(F=(0,E.jsxs)(b,{children:[j,(0,E.jsx)(y,{disabled:M,onClick:N,children:P})]}),t[20]=N,t[21]=P,t[22]=M,t[23]=F):F=t[23];let I;t[24]!==F||t[25]!==k||t[26]!==A?(I=(0,E.jsxs)(_,{children:[p,k,A,F]}),t[24]=F,t[25]=k,t[26]=A,t[27]=I):I=t[27];let L;return t[28]!==c||t[29]!==n||t[30]!==I?(L=(0,E.jsx)(C,{onOpenChange:c,open:n,children:I}),t[28]=c,t[29]=n,t[30]=I,t[31]=L):L=t[31],L}function O(){let e=(0,w.c)(35),t=d(),{data:n}=i(f),r=c(),[l,u]=(0,T.useState)(!1),[m,h]=(0,T.useState)(null),O;e[0]===n.repositories?O=e[1]:(O=n.repositories??[],e[0]=n.repositories,e[1]=O);let A=O,j;e[2]!==r||e[3]!==m?(j=async function(){if(m)try{await r.mutateAsync(m),h(null)}catch{}},e[2]=r,e[3]=m,e[4]=j):j=e[4];let M=j,N;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,E.jsx)(p,{actions:(0,E.jsx)(s,{onClick:()=>u(!0),children:`Create Repository`}),title:`Repositories`}),e[5]=N):N=e[5];let P;e[6]!==t||e[7]!==A?(P=A.length>0?(0,E.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,E.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`URI`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tag Mutability`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,E.jsx)(`tbody`,{children:A.map(e=>{if(!e.repositoryName)return null;let n=e.repositoryName;return(0,E.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ecr/list-repositories/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,E.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(a,{className:`text-primary hover:underline`,onClick:k,params:{id:encodeURIComponent(n)},to:`/ecr/list-repositories/$id`,children:n})}),(0,E.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.repositoryUri??``}),(0,E.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTagMutability??``}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.createdAt)}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,E.jsx)(s,{onClick:e=>{e.stopPropagation(),h(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`No repositories found.`}),e[6]=t,e[7]=A,e[8]=P):P=e[8];let F;e[9]===l?F=e[10]:(F=(0,E.jsx)(D,{onOpenChange:u,open:l}),e[9]=l,e[10]=F);let I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>!e&&h(null),e[11]=I):I=e[11];let L=m!==null,R;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,E.jsx)(v,{children:`Delete repository?`}),e[12]=R):R=e[12];let z;e[13]===m?z=e[14]:(z=(0,E.jsxs)(S,{children:[R,(0,E.jsxs)(g,{children:[`This permanently deletes `,m,` and every image it holds. This cannot be undone.`]})]}),e[13]=m,e[14]=z);let B;e[15]===r.error?B=e[16]:(B=r.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:r.error.message}),e[15]=r.error,e[16]=B);let V;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,E.jsx)(x,{children:`Cancel`}),e[17]=V):V=e[17];let H;e[18]===M?H=e[19]:(H=e=>{e.preventDefault(),M()},e[18]=M,e[19]=H);let U=r.isPending?`Deleting…`:`Delete`,W;e[20]!==r.isPending||e[21]!==H||e[22]!==U?(W=(0,E.jsxs)(b,{children:[V,(0,E.jsx)(y,{disabled:r.isPending,onClick:H,children:U})]}),e[20]=r.isPending,e[21]=H,e[22]=U,e[23]=W):W=e[23];let G;e[24]!==W||e[25]!==z||e[26]!==B?(G=(0,E.jsxs)(_,{children:[z,B,W]}),e[24]=W,e[25]=z,e[26]=B,e[27]=G):G=e[27];let K;e[28]!==G||e[29]!==L?(K=(0,E.jsx)(C,{onOpenChange:I,open:L,children:G}),e[28]=G,e[29]=L,e[30]=K):K=e[30];let q;return e[31]!==K||e[32]!==P||e[33]!==F?(q=(0,E.jsxs)(E.Fragment,{children:[N,P,F,K]}),e[31]=K,e[32]=P,e[33]=F,e[34]=q):q=e[34],q}function k(e){return e.stopPropagation()}var A=O;export{A as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js b/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js index 69d98f5d0..aa8e7d24d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{Et as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Roles){let n=(t.Roles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-role`,children:(0,l.jsx)(i,{children:`Create Role`})}),title:`Roles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM roles found.`})]}),e[0]=t.Roles,e[1]=s}else s=e[1];return s}function d(e){return e.RoleName?(0,l.jsx)(s,{params:{roleName:e.RoleName},subtitle:e.Arn??``,title:e.RoleName,to:`/iam/list-roles/$roleName`},e.RoleName):null}function f(e,t){let n=e.RoleName?.toLowerCase()??``,r=t.RoleName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{At as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Roles){let n=(t.Roles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-role`,children:(0,l.jsx)(i,{children:`Create Role`})}),title:`Roles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM roles found.`})]}),e[0]=t.Roles,e[1]=s}else s=e[1];return s}function d(e){return e.RoleName?(0,l.jsx)(s,{params:{roleName:e.RoleName},subtitle:e.Arn??``,title:e.RoleName,to:`/iam/list-roles/$roleName`},e.RoleName):null}function f(e,t){let n=e.RoleName?.toLowerCase()??``,r=t.RoleName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js index 8c21ac3b3..69ccb5486 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{t as i}from"./button.js";import{Ot as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Users){let n=(t.Users??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-user`,children:(0,l.jsx)(i,{children:`Create User`})}),title:`Users`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),e[0]=t.Users,e[1]=s}else s=e[1];return s}function d(e){return e.UserName?(0,l.jsx)(s,{params:{userName:e.UserName},subtitle:e.UserId??``,title:e.UserName,to:`/iam/list-users/$userName`},e.UserName):null}function f(e,t){let n=e.UserName?.toLowerCase()??``,r=t.UserName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{t as i}from"./button.js";import{Pt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Users){let n=(t.Users??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-user`,children:(0,l.jsx)(i,{children:`Create User`})}),title:`Users`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),e[0]=t.Users,e[1]=s}else s=e[1];return s}function d(e){return e.UserName?(0,l.jsx)(s,{params:{userName:e.UserName},subtitle:e.UserId??``,title:e.UserName,to:`/iam/list-users/$userName`},e.UserName):null}function f(e,t){let n=e.UserName?.toLowerCase()??``,r=t.UserName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/login.js b/spinifex/services/spinifexui/frontend/dist/assets/login.js index 6b64c5fbe..dabc41dc0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/login.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/login.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./awsClient.js";import{i as a,t as o}from"./auth.js";import{t as s}from"./button.js";import{Sn as c,sn as l,xr as u}from"./index.js";import{i as d,t as f}from"./zod.js";import{a as p,i as m,r as h,t as g}from"./field.js";import{n as _,r as v,t as y}from"./collapsible.js";import{a as b,o as x,r as S,t as C}from"./card.js";var w=r(),T=t(n()),E=e();function D(){let{reason:e}=l.useSearch(),[t,n]=(0,T.useState)(null),{register:r,handleSubmit:_,formState:{errors:v,isSubmitting:y}}=d({resolver:f(o)});async function w(e){n(null);try{a(await c(e)),i(),window.location.href=`/`}catch{n(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,E.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,E.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,E.jsxs)(C,{children:[(0,E.jsx)(b,{children:(0,E.jsx)(x,{children:`AWS Credentials`})}),(0,E.jsxs)(S,{children:[e===`expired`&&!t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-muted p-3 text-sm text-muted-foreground`,children:`Your session is no longer valid — please sign in again.`}),t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:t}),(0,E.jsx)(`form`,{onSubmit:_(w),children:(0,E.jsxs)(m,{children:[(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,E.jsx)(u,{"aria-invalid":!!v.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...r(`accessKeyId`)}),(0,E.jsx)(h,{errors:[v.accessKeyId]})]}),(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,E.jsx)(u,{"aria-invalid":!!v.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...r(`secretAccessKey`)}),(0,E.jsx)(h,{errors:[v.secretAccessKey]})]}),(0,E.jsx)(s,{className:`w-full`,disabled:y,type:`submit`,children:y?`Signing in...`:`Sign In`})]})})]})]}),(0,E.jsx)(O,{})]})})}function O(){let e=(0,w.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,E.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(v,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsx)(C,{className:`border-muted bg-muted/30`,children:(0,E.jsx)(S,{className:`pt-4 pb-4`,children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,E.jsxs)(y,{children:[r,(0,E.jsx)(_,{children:(0,E.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,E.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{D as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./awsClient.js";import{i as a,t as o}from"./auth.js";import{t as s}from"./button.js";import{Ar as c,gn as l,jn as u}from"./index.js";import{i as d,t as f}from"./zod.js";import{a as p,i as m,r as h,t as g}from"./field.js";import{n as _,r as v,t as y}from"./collapsible.js";import{a as b,o as x,r as S,t as C}from"./card.js";var w=r(),T=t(n()),E=e();function D(){let{reason:e}=l.useSearch(),[t,n]=(0,T.useState)(null),{register:r,handleSubmit:_,formState:{errors:v,isSubmitting:y}}=d({resolver:f(o)});async function w(e){n(null);try{a(await u(e)),i(),window.location.href=`/`}catch{n(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,E.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,E.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,E.jsxs)(C,{children:[(0,E.jsx)(b,{children:(0,E.jsx)(x,{children:`AWS Credentials`})}),(0,E.jsxs)(S,{children:[e===`expired`&&!t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-muted p-3 text-sm text-muted-foreground`,children:`Your session is no longer valid — please sign in again.`}),t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:t}),(0,E.jsx)(`form`,{onSubmit:_(w),children:(0,E.jsxs)(m,{children:[(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,E.jsx)(c,{"aria-invalid":!!v.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...r(`accessKeyId`)}),(0,E.jsx)(h,{errors:[v.accessKeyId]})]}),(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,E.jsx)(c,{"aria-invalid":!!v.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...r(`secretAccessKey`)}),(0,E.jsx)(h,{errors:[v.secretAccessKey]})]}),(0,E.jsx)(s,{className:`w-full`,disabled:y,type:`submit`,children:y?`Signing in...`:`Sign In`})]})})]})]}),(0,E.jsx)(O,{})]})})}function O(){let e=(0,w.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,E.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(v,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsx)(C,{className:`border-muted bg-muted/30`,children:(0,E.jsx)(S,{className:`pt-4 pb-4`,children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,E.jsxs)(y,{children:[r,(0,E.jsx)(_,{children:(0,E.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,E.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{D as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ls.js b/spinifex/services/spinifexui/frontend/dist/assets/ls.js index 46027f5e8..dde08e854 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ls.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ls.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{xi as r}from"./awsClient.js";import{Rt as i}from"./auth.js";import{t as a}from"./button.js";import{At as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets??[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ni as r}from"./awsClient.js";import{Rt as i}from"./auth.js";import{t as a}from"./button.js";import{zt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets??[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js index 7eb8f82d5..500938335 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{Bt as i}from"./auth.js";import{xn as a}from"./index.js";import{t as o}from"./page-heading.js";import{r as s,t as c}from"./admin.js";import{t as l}from"./badge.js";import{a as u,o as d,r as f,t as p}from"./card.js";var m=t(),h=e();function g(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function _(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function v(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function y(){let e=(0,m.c)(31),{isAdmin:t}=a(),i;e[0]===t?i=e[1]:(i={...c,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=i);let{data:l}=n(i),g;e[2]===t?g=e[3]:(g={...s,enabled:t,refetchInterval:5e3},e[2]=t,e[3]=g);let{data:_}=n(g);if(!t)throw r({to:`/`});let v,y,T;if(e[4]!==l?.nodes||e[5]!==_?.vms){v=l?.nodes??[];let t;e[9]===_?.vms?t=e[10]:(t=_?.vms??[],e[9]=_?.vms,e[10]=t);let n;e[11]===t?n=e[12]:(n=t.filter(C),e[11]=t,e[12]=n),T=n;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}y=[...r.entries()].map(S).toSorted(x),e[4]=l?.nodes,e[5]=_?.vms,e[6]=v,e[7]=y,e[8]=T}else v=e[6],y=e[7],T=e[8];let E=y,O;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(o,{title:`Nodes`}),e[13]=O):O=e[13];let A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Cluster Nodes`})}),e[14]=A):A=e[14];let M;e[15]===v?M=e[16]:(M=(0,h.jsxs)(p,{children:[A,(0,h.jsx)(f,{children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,h.jsx)(w,{nodes:v})})]}),e[15]=v,e[16]=M);let N;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),e[17]=N):N=e[17];let P;e[18]===T?P=e[19]:(P=(0,h.jsxs)(p,{children:[N,(0,h.jsx)(f,{children:T.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,h.jsx)(D,{vms:T})})]}),e[18]=T,e[19]=P);let I;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Resource Usage`})}),e[20]=I):I=e[20];let L;e[21]!==E||e[22]!==v?(L=(0,h.jsxs)(p,{children:[I,(0,h.jsx)(f,{className:`space-y-4`,children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k,{nodes:v}),E.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,h.jsx)(j,{instanceTypes:E})]})]})})]}),e[21]=E,e[22]=v,e[23]=L):L=e[23];let R;e[24]===v?R=e[25]:(R=v.some(b)&&(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`GPU Inventory`})}),(0,h.jsx)(f,{children:(0,h.jsx)(F,{nodes:v})})]}),e[24]=v,e[25]=R);let z;return e[26]!==R||e[27]!==M||e[28]!==P||e[29]!==L?(z=(0,h.jsxs)(h.Fragment,{children:[O,(0,h.jsxs)(`div`,{className:`space-y-6`,children:[M,P,L,R]})]}),e[26]=R,e[27]=M,e[28]=P,e[29]=L,e[30]=z):z=e[30],z}function b(e){return(e.gpus?.length??0)>0}function x(e,t){return e.name.localeCompare(t.name)}function S(e){let[t,n]=e;return{name:t,...n}}function C(e){return!e.managed_by}function w(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.uptime)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,h.jsx)(`td`,{className:`py-1.5`,children:(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function E(e){return e?e.profile?`${i(e.vram_mib)} (${e.profile})`:`${e.model} ${i(e.vram_mib)}`:`-`}function D(e){let t=(0,m.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(O),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function O(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:_(e.memory_gb)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:E(e.gpu)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?v(e.launch_time):`-`})]},e.instance_id)}function k(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(A),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function A(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[_(e.alloc_mem_gb),`/`,_(e.total_mem_gb)]}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function j(e){let t=(0,m.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(M),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function M(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5`,children:_(e.memory_gb)})]},e.name)}function N(e){let t=(0,m.c)(22),{gpu:n}=e,r;t[0]===n.model?r=t[1]:(r=(0,h.jsx)(`span`,{className:`font-medium`,children:n.model}),t[0]=n.model,t[1]=r);let a;t[2]===n.vram_mib?a=t[3]:(a=i(n.vram_mib),t[2]=n.vram_mib,t[3]=a);let o;t[4]===a?o=t[5]:(o=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:a}),t[4]=a,t[5]=o);let s;t[6]===n.pci_address?s=t[7]:(s=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:n.pci_address}),t[6]=n.pci_address,t[7]=s);let c;t[8]!==n.instance_id||t[9]!==n.mig_enabled?(c=n.mig_enabled?(0,h.jsx)(l,{className:`text-[0.625rem]`,variant:`secondary`,children:`MIG`}):(0,h.jsx)(`span`,{className:n.instance_id?`text-amber-500`:`text-green-600`,children:n.instance_id?`in-use: ${n.instance_id}`:`free`}),t[8]=n.instance_id,t[9]=n.mig_enabled,t[10]=c):c=t[10];let u;t[11]!==r||t[12]!==o||t[13]!==s||t[14]!==c?(u=(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono`,children:[r,o,s,c]}),t[11]=r,t[12]=o,t[13]=s,t[14]=c,t[15]=u):u=t[15];let d;t[16]!==n.mig_enabled||t[17]!==n.slices?(d=n.mig_enabled&&n.slices&&n.slices.length>0&&(0,h.jsxs)(`table`,{className:`mt-2 w-full`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`GI`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`Profile`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`VRAM`}),(0,h.jsx)(`th`,{className:`pb-0.5 font-normal`,children:`Instance`})]})}),(0,h.jsx)(`tbody`,{children:n.slices.map(P)})]}),t[16]=n.mig_enabled,t[17]=n.slices,t[18]=d):d=t[18];let f;return t[19]!==u||t[20]!==d?(f=(0,h.jsxs)(`div`,{className:`rounded border p-2 text-xs`,children:[u,d]}),t[19]=u,t[20]=d,t[21]=f):f=t[21],f}function P(e){return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.gi_id}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.profile}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4`,children:i(e.vram_mib)}),(0,h.jsx)(`td`,{className:e.instance_id?`py-0.5 font-mono text-amber-500`:`py-0.5 text-green-600`,children:e.instance_id??`free`})]},e.gi_id)}function F(e){let t=(0,m.c)(6),{nodes:n}=e,r,i;if(t[0]!==n){let e=n.filter(R);r=`space-y-4`,i=e.map(I),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a;return t[3]!==r||t[4]!==i?(a=(0,h.jsx)(`div`,{className:r,children:i}),t[3]=r,t[4]=i,t[5]=a):a=t[5],a}function I(e){return(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h4`,{className:`mb-1.5 text-xs font-medium text-muted-foreground`,children:e.node}),(0,h.jsx)(`div`,{className:`space-y-2`,children:e.gpus?.map(L)})]},e.node)}function L(e){return(0,h.jsx)(N,{gpu:e},e.pci_address)}function R(e){return(e.gpus?.length??0)>0}export{y as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{Bt as i}from"./auth.js";import{An as a}from"./index.js";import{t as o}from"./page-heading.js";import{r as s,t as c}from"./admin.js";import{t as l}from"./badge.js";import{a as u,o as d,r as f,t as p}from"./card.js";var m=t(),h=e();function g(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function _(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function v(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function y(){let e=(0,m.c)(31),{isAdmin:t}=a(),i;e[0]===t?i=e[1]:(i={...c,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=i);let{data:l}=n(i),g;e[2]===t?g=e[3]:(g={...s,enabled:t,refetchInterval:5e3},e[2]=t,e[3]=g);let{data:_}=n(g);if(!t)throw r({to:`/`});let v,y,T;if(e[4]!==l?.nodes||e[5]!==_?.vms){v=l?.nodes??[];let t;e[9]===_?.vms?t=e[10]:(t=_?.vms??[],e[9]=_?.vms,e[10]=t);let n;e[11]===t?n=e[12]:(n=t.filter(C),e[11]=t,e[12]=n),T=n;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}y=[...r.entries()].map(S).toSorted(x),e[4]=l?.nodes,e[5]=_?.vms,e[6]=v,e[7]=y,e[8]=T}else v=e[6],y=e[7],T=e[8];let E=y,O;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(o,{title:`Nodes`}),e[13]=O):O=e[13];let A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Cluster Nodes`})}),e[14]=A):A=e[14];let M;e[15]===v?M=e[16]:(M=(0,h.jsxs)(p,{children:[A,(0,h.jsx)(f,{children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,h.jsx)(w,{nodes:v})})]}),e[15]=v,e[16]=M);let N;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),e[17]=N):N=e[17];let P;e[18]===T?P=e[19]:(P=(0,h.jsxs)(p,{children:[N,(0,h.jsx)(f,{children:T.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,h.jsx)(D,{vms:T})})]}),e[18]=T,e[19]=P);let I;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Resource Usage`})}),e[20]=I):I=e[20];let L;e[21]!==E||e[22]!==v?(L=(0,h.jsxs)(p,{children:[I,(0,h.jsx)(f,{className:`space-y-4`,children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k,{nodes:v}),E.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,h.jsx)(j,{instanceTypes:E})]})]})})]}),e[21]=E,e[22]=v,e[23]=L):L=e[23];let R;e[24]===v?R=e[25]:(R=v.some(b)&&(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`GPU Inventory`})}),(0,h.jsx)(f,{children:(0,h.jsx)(F,{nodes:v})})]}),e[24]=v,e[25]=R);let z;return e[26]!==R||e[27]!==M||e[28]!==P||e[29]!==L?(z=(0,h.jsxs)(h.Fragment,{children:[O,(0,h.jsxs)(`div`,{className:`space-y-6`,children:[M,P,L,R]})]}),e[26]=R,e[27]=M,e[28]=P,e[29]=L,e[30]=z):z=e[30],z}function b(e){return(e.gpus?.length??0)>0}function x(e,t){return e.name.localeCompare(t.name)}function S(e){let[t,n]=e;return{name:t,...n}}function C(e){return!e.managed_by}function w(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.uptime)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,h.jsx)(`td`,{className:`py-1.5`,children:(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function E(e){return e?e.profile?`${i(e.vram_mib)} (${e.profile})`:`${e.model} ${i(e.vram_mib)}`:`-`}function D(e){let t=(0,m.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(O),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function O(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:_(e.memory_gb)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:E(e.gpu)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?v(e.launch_time):`-`})]},e.instance_id)}function k(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(A),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function A(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[_(e.alloc_mem_gb),`/`,_(e.total_mem_gb)]}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function j(e){let t=(0,m.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(M),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function M(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5`,children:_(e.memory_gb)})]},e.name)}function N(e){let t=(0,m.c)(22),{gpu:n}=e,r;t[0]===n.model?r=t[1]:(r=(0,h.jsx)(`span`,{className:`font-medium`,children:n.model}),t[0]=n.model,t[1]=r);let a;t[2]===n.vram_mib?a=t[3]:(a=i(n.vram_mib),t[2]=n.vram_mib,t[3]=a);let o;t[4]===a?o=t[5]:(o=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:a}),t[4]=a,t[5]=o);let s;t[6]===n.pci_address?s=t[7]:(s=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:n.pci_address}),t[6]=n.pci_address,t[7]=s);let c;t[8]!==n.instance_id||t[9]!==n.mig_enabled?(c=n.mig_enabled?(0,h.jsx)(l,{className:`text-[0.625rem]`,variant:`secondary`,children:`MIG`}):(0,h.jsx)(`span`,{className:n.instance_id?`text-amber-500`:`text-green-600`,children:n.instance_id?`in-use: ${n.instance_id}`:`free`}),t[8]=n.instance_id,t[9]=n.mig_enabled,t[10]=c):c=t[10];let u;t[11]!==r||t[12]!==o||t[13]!==s||t[14]!==c?(u=(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono`,children:[r,o,s,c]}),t[11]=r,t[12]=o,t[13]=s,t[14]=c,t[15]=u):u=t[15];let d;t[16]!==n.mig_enabled||t[17]!==n.slices?(d=n.mig_enabled&&n.slices&&n.slices.length>0&&(0,h.jsxs)(`table`,{className:`mt-2 w-full`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`GI`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`Profile`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`VRAM`}),(0,h.jsx)(`th`,{className:`pb-0.5 font-normal`,children:`Instance`})]})}),(0,h.jsx)(`tbody`,{children:n.slices.map(P)})]}),t[16]=n.mig_enabled,t[17]=n.slices,t[18]=d):d=t[18];let f;return t[19]!==u||t[20]!==d?(f=(0,h.jsxs)(`div`,{className:`rounded border p-2 text-xs`,children:[u,d]}),t[19]=u,t[20]=d,t[21]=f):f=t[21],f}function P(e){return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.gi_id}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.profile}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4`,children:i(e.vram_mib)}),(0,h.jsx)(`td`,{className:e.instance_id?`py-0.5 font-mono text-amber-500`:`py-0.5 text-green-600`,children:e.instance_id??`free`})]},e.gi_id)}function F(e){let t=(0,m.c)(6),{nodes:n}=e,r,i;if(t[0]!==n){let e=n.filter(R);r=`space-y-4`,i=e.map(I),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a;return t[3]!==r||t[4]!==i?(a=(0,h.jsx)(`div`,{className:r,children:i}),t[3]=r,t[4]=i,t[5]=a):a=t[5],a}function I(e){return(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h4`,{className:`mb-1.5 text-xs font-medium text-muted-foreground`,children:e.node}),(0,h.jsx)(`div`,{className:`space-y-2`,children:e.gpus?.map(L)})]},e.node)}function L(e){return(0,h.jsx)(N,{gpu:e},e.pci_address)}function R(e){return(e.gpus?.length??0)>0}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/plus.js b/spinifex/services/spinifexui/frontend/dist/assets/plus.js index 0a77a0008..2238b5259 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/plus.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/plus.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js b/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js index e3bf9704e..f3fb4a293 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as ee}from"./plus.js";import{t as te}from"./trash-2.js";import{t as ne}from"./button.js";import{s as re}from"./ecs.js";import{rt as c,vi as ie,xr as l}from"./index.js";import{i as ae,n as oe,r as se,t as ce}from"./zod.js";import{t as le}from"./error-banner.js";import{t as ue}from"./form-actions.js";import{t as de}from"./page-heading.js";import{a as u,r as fe,t as d}from"./field.js";import{r as pe,t as me}from"./ecs2.js";var he=t(),f=e();function p(e){let t=(0,he.c)(118),{cluster:r}=e,i=ie(),a=re(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=ce(pe),t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:o,defaultValues:{family:``,networkMode:`bridge`,cpu:``,memory:``,containerName:``,image:``,containerCpu:``,containerMemory:``,essential:!0,portMappings:[]}},t[1]=s):s=t[1];let{control:c,handleSubmit:me,register:p,formState:ve}=ae(s),{errors:m,isSubmitting:ye}=ve,be;t[2]===c?be=t[3]:(be={control:c,name:`portMappings`},t[2]=c,t[3]=be);let h=se(be),xe;t[4]!==r||t[5]!==i?(xe=function(){i(r?{to:`/ecs/list-clusters/$clusterName`,params:{clusterName:r}}:{to:`/ecs/list-clusters`})},t[4]=r,t[5]=i,t[6]=xe):xe=t[6];let g=xe,Se;t[7]!==g||t[8]!==a?(Se=async function(e){await a.mutateAsync(e),g()},t[7]=g,t[8]=a,t[9]=Se):Se=t[9];let Ce=Se,we,Te;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,f.jsx)(n,{to:`/ecs/list-clusters`,children:`Clusters`}),Te=(0,f.jsx)(de,{subtitle:`Register a single-container task definition`,title:`Register Task Definition`}),t[10]=we,t[11]=Te):(we=t[10],Te=t[11]);let _;t[12]!==a.error||t[13]!==a.isError?(_=a.isError&&(0,f.jsx)(le,{error:a.error instanceof Error?a.error:void 0,msg:`Failed to register task definition.`}),t[12]=a.error,t[13]=a.isError,t[14]=_):_=t[14];let v;t[15]!==me||t[16]!==Ce?(v=me(Ce),t[15]=me,t[16]=Ce,t[17]=v):v=t[17];let Ee;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`family`,children:`Family`})}),t[18]=Ee):Ee=t[18];let y;t[19]===p?y=t[20]:(y=p(`family`),t[19]=p,t[20]=y);let b;t[21]===y?b=t[22]:(b=(0,f.jsx)(l,{id:`family`,placeholder:`my-app`,...y}),t[21]=y,t[22]=b);let x;t[23]===m.family?x=t[24]:(x=(0,f.jsx)(fe,{errors:[m.family]}),t[23]=m.family,t[24]=x);let S;t[25]!==b||t[26]!==x?(S=(0,f.jsxs)(d,{children:[Ee,b,x]}),t[25]=b,t[26]=x,t[27]=S):S=t[27];let De;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`networkMode`,children:`Network mode`})}),t[28]=De):De=t[28];let C;t[29]===c?C=t[30]:(C=(0,f.jsxs)(d,{children:[De,(0,f.jsx)(oe,{control:c,name:`networkMode`,render:_e})]}),t[29]=c,t[30]=C);let w;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`cpu`,children:`Task CPU (units)`})}),t[31]=w):w=t[31];let T;t[32]===p?T=t[33]:(T=p(`cpu`),t[32]=p,t[33]=T);let E;t[34]===T?E=t[35]:(E=(0,f.jsxs)(d,{children:[w,(0,f.jsx)(l,{id:`cpu`,placeholder:`optional`,...T})]}),t[34]=T,t[35]=E);let D;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`memory`,children:`Task memory (MiB)`})}),t[36]=D):D=t[36];let O;t[37]===p?O=t[38]:(O=p(`memory`),t[37]=p,t[38]=O);let k;t[39]===O?k=t[40]:(k=(0,f.jsxs)(d,{children:[D,(0,f.jsx)(l,{id:`memory`,placeholder:`optional`,...O})]}),t[39]=O,t[40]=k);let A;t[41]!==E||t[42]!==k?(A=(0,f.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[E,k]}),t[41]=E,t[42]=k,t[43]=A):A=t[43];let Oe;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,f.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Container`}),t[44]=Oe):Oe=t[44];let ke;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerName`,children:`Name`})}),t[45]=ke):ke=t[45];let j;t[46]===p?j=t[47]:(j=p(`containerName`),t[46]=p,t[47]=j);let M;t[48]===j?M=t[49]:(M=(0,f.jsx)(l,{id:`containerName`,placeholder:`app`,...j}),t[48]=j,t[49]=M);let N;t[50]===m.containerName?N=t[51]:(N=(0,f.jsx)(fe,{errors:[m.containerName]}),t[50]=m.containerName,t[51]=N);let P;t[52]!==M||t[53]!==N?(P=(0,f.jsxs)(d,{children:[ke,M,N]}),t[52]=M,t[53]=N,t[54]=P):P=t[54];let Ae;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`image`,children:`Image`})}),t[55]=Ae):Ae=t[55];let F;t[56]===p?F=t[57]:(F=p(`image`),t[56]=p,t[57]=F);let I;t[58]===F?I=t[59]:(I=(0,f.jsx)(l,{id:`image`,placeholder:`public.ecr.aws/nginx/nginx:latest`,...F}),t[58]=F,t[59]=I);let L;t[60]===m.image?L=t[61]:(L=(0,f.jsx)(fe,{errors:[m.image]}),t[60]=m.image,t[61]=L);let R;t[62]!==I||t[63]!==L?(R=(0,f.jsxs)(d,{children:[Ae,I,L]}),t[62]=I,t[63]=L,t[64]=R):R=t[64];let je;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerCpu`,children:`CPU (units)`})}),t[65]=je):je=t[65];let z;t[66]===p?z=t[67]:(z=p(`containerCpu`),t[66]=p,t[67]=z);let B;t[68]===z?B=t[69]:(B=(0,f.jsxs)(d,{children:[je,(0,f.jsx)(l,{id:`containerCpu`,placeholder:`optional`,...z})]}),t[68]=z,t[69]=B);let Me;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerMemory`,children:`Memory (MiB)`})}),t[70]=Me):Me=t[70];let V;t[71]===p?V=t[72]:(V=p(`containerMemory`),t[71]=p,t[72]=V);let H;t[73]===V?H=t[74]:(H=(0,f.jsxs)(d,{children:[Me,(0,f.jsx)(l,{id:`containerMemory`,placeholder:`optional`,...V})]}),t[73]=V,t[74]=H);let U;t[75]!==B||t[76]!==H?(U=(0,f.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[B,H]}),t[75]=B,t[76]=H,t[77]=U):U=t[77];let W;t[78]===p?W=t[79]:(W=p(`essential`),t[78]=p,t[79]=W);let G;t[80]===W?G=t[81]:(G=(0,f.jsx)(`input`,{type:`checkbox`,...W}),t[80]=W,t[81]=G);let Ne;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,f.jsx)(`span`,{children:`Essential`}),t[82]=Ne):Ne=t[82];let K;t[83]===G?K=t[84]:(K=(0,f.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[G,Ne]}),t[83]=G,t[84]=K);let Pe;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,f.jsx)(`span`,{className:`text-sm font-medium`,children:`Port mappings`}),t[85]=Pe):Pe=t[85];let q;t[86]===h?q=t[87]:(q=()=>h.append({containerPort:80,protocol:`tcp`}),t[86]=h,t[87]=q);let Fe;t[88]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,f.jsx)(ee,{className:`size-4`}),t[88]=Fe):Fe=t[88];let J;t[89]===q?J=t[90]:(J=(0,f.jsxs)(`div`,{className:`flex items-center justify-between`,children:[Pe,(0,f.jsxs)(ne,{onClick:q,size:`sm`,type:`button`,variant:`outline`,children:[Fe,`Add port`]})]}),t[89]=q,t[90]=J);let Y;t[91]!==c||t[92]!==p||t[93]!==h?(Y=h.fields.map((e,t)=>(0,f.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,f.jsxs)(d,{className:`flex-1`,children:[(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`port-${t}`,children:`Container port`})}),(0,f.jsx)(l,{id:`port-${t}`,type:`number`,...p(`portMappings.${t}.containerPort`,{valueAsNumber:!0})})]}),(0,f.jsx)(oe,{control:c,name:`portMappings.${t}.protocol`,render:ge}),(0,f.jsx)(ne,{"aria-label":`Remove port mapping`,onClick:()=>h.remove(t),size:`icon`,type:`button`,variant:`ghost`,children:(0,f.jsx)(te,{className:`size-4`})})]},e.id)),t[91]=c,t[92]=p,t[93]=h,t[94]=Y):Y=t[94];let X;t[95]!==J||t[96]!==Y?(X=(0,f.jsxs)(`div`,{className:`space-y-2`,children:[J,Y]}),t[95]=J,t[96]=Y,t[97]=X):X=t[97];let Z;t[98]!==P||t[99]!==R||t[100]!==U||t[101]!==K||t[102]!==X?(Z=(0,f.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[Oe,(0,f.jsxs)(`div`,{className:`space-y-4`,children:[P,R,U,K,X]})]}),t[98]=P,t[99]=R,t[100]=U,t[101]=K,t[102]=X,t[103]=Z):Z=t[103];let Q;t[104]!==g||t[105]!==ye||t[106]!==a.isPending?(Q=(0,f.jsx)(ue,{isPending:a.isPending,isSubmitting:ye,onCancel:g,pendingLabel:`Registering…`,submitLabel:`Register Task Definition`}),t[104]=g,t[105]=ye,t[106]=a.isPending,t[107]=Q):Q=t[107];let $;t[108]!==v||t[109]!==S||t[110]!==C||t[111]!==A||t[112]!==Z||t[113]!==Q?($=(0,f.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:v,children:[S,C,A,Z,Q]}),t[108]=v,t[109]=S,t[110]=C,t[111]=A,t[112]=Z,t[113]=Q,t[114]=$):$=t[114];let Ie;return t[115]!==$||t[116]!==_?(Ie=(0,f.jsxs)(f.Fragment,{children:[we,Te,_,$]}),t[115]=$,t[116]=_,t[117]=Ie):Ie=t[117],Ie}function ge(e){let{field:t}=e;return(0,f.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,f.jsx)(o,{className:`w-28`,children:(0,f.jsx)(r,{})}),(0,f.jsxs)(a,{children:[(0,f.jsx)(i,{value:`tcp`,children:`tcp`}),(0,f.jsx)(i,{value:`udp`,children:`udp`})]})]})}function _e(e){let{field:t}=e;return(0,f.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,f.jsx)(o,{className:`w-full`,id:`networkMode`,children:(0,f.jsx)(r,{})}),(0,f.jsx)(a,{children:me.map(ve)})]})}function ve(e){return(0,f.jsx)(i,{value:e,children:e},e)}function m(){let e=(0,he.c)(2),{cluster:t}=c.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,f.jsx)(p,{cluster:t}),e[0]=t,e[1]=n),n}export{m as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as ee}from"./plus.js";import{t as te}from"./trash-2.js";import{t as ne}from"./button.js";import{s as re}from"./ecs.js";import{Ar as c,Di as ie,rt as l}from"./index.js";import{i as ae,n as oe,r as se,t as ce}from"./zod.js";import{t as le}from"./error-banner.js";import{t as ue}from"./form-actions.js";import{t as de}from"./page-heading.js";import{a as u,r as fe,t as d}from"./field.js";import{r as pe,t as me}from"./ecs2.js";var he=t(),f=e();function p(e){let t=(0,he.c)(118),{cluster:r}=e,i=ie(),a=re(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=ce(pe),t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:o,defaultValues:{family:``,networkMode:`bridge`,cpu:``,memory:``,containerName:``,image:``,containerCpu:``,containerMemory:``,essential:!0,portMappings:[]}},t[1]=s):s=t[1];let{control:l,handleSubmit:me,register:p,formState:ve}=ae(s),{errors:m,isSubmitting:ye}=ve,be;t[2]===l?be=t[3]:(be={control:l,name:`portMappings`},t[2]=l,t[3]=be);let h=se(be),xe;t[4]!==r||t[5]!==i?(xe=function(){i(r?{to:`/ecs/list-clusters/$clusterName`,params:{clusterName:r}}:{to:`/ecs/list-clusters`})},t[4]=r,t[5]=i,t[6]=xe):xe=t[6];let g=xe,Se;t[7]!==g||t[8]!==a?(Se=async function(e){await a.mutateAsync(e),g()},t[7]=g,t[8]=a,t[9]=Se):Se=t[9];let Ce=Se,we,Te;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,f.jsx)(n,{to:`/ecs/list-clusters`,children:`Clusters`}),Te=(0,f.jsx)(de,{subtitle:`Register a single-container task definition`,title:`Register Task Definition`}),t[10]=we,t[11]=Te):(we=t[10],Te=t[11]);let _;t[12]!==a.error||t[13]!==a.isError?(_=a.isError&&(0,f.jsx)(le,{error:a.error instanceof Error?a.error:void 0,msg:`Failed to register task definition.`}),t[12]=a.error,t[13]=a.isError,t[14]=_):_=t[14];let v;t[15]!==me||t[16]!==Ce?(v=me(Ce),t[15]=me,t[16]=Ce,t[17]=v):v=t[17];let Ee;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`family`,children:`Family`})}),t[18]=Ee):Ee=t[18];let y;t[19]===p?y=t[20]:(y=p(`family`),t[19]=p,t[20]=y);let b;t[21]===y?b=t[22]:(b=(0,f.jsx)(c,{id:`family`,placeholder:`my-app`,...y}),t[21]=y,t[22]=b);let x;t[23]===m.family?x=t[24]:(x=(0,f.jsx)(fe,{errors:[m.family]}),t[23]=m.family,t[24]=x);let S;t[25]!==b||t[26]!==x?(S=(0,f.jsxs)(d,{children:[Ee,b,x]}),t[25]=b,t[26]=x,t[27]=S):S=t[27];let De;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`networkMode`,children:`Network mode`})}),t[28]=De):De=t[28];let C;t[29]===l?C=t[30]:(C=(0,f.jsxs)(d,{children:[De,(0,f.jsx)(oe,{control:l,name:`networkMode`,render:_e})]}),t[29]=l,t[30]=C);let w;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`cpu`,children:`Task CPU (units)`})}),t[31]=w):w=t[31];let T;t[32]===p?T=t[33]:(T=p(`cpu`),t[32]=p,t[33]=T);let E;t[34]===T?E=t[35]:(E=(0,f.jsxs)(d,{children:[w,(0,f.jsx)(c,{id:`cpu`,placeholder:`optional`,...T})]}),t[34]=T,t[35]=E);let D;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`memory`,children:`Task memory (MiB)`})}),t[36]=D):D=t[36];let O;t[37]===p?O=t[38]:(O=p(`memory`),t[37]=p,t[38]=O);let k;t[39]===O?k=t[40]:(k=(0,f.jsxs)(d,{children:[D,(0,f.jsx)(c,{id:`memory`,placeholder:`optional`,...O})]}),t[39]=O,t[40]=k);let A;t[41]!==E||t[42]!==k?(A=(0,f.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[E,k]}),t[41]=E,t[42]=k,t[43]=A):A=t[43];let Oe;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,f.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Container`}),t[44]=Oe):Oe=t[44];let ke;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerName`,children:`Name`})}),t[45]=ke):ke=t[45];let j;t[46]===p?j=t[47]:(j=p(`containerName`),t[46]=p,t[47]=j);let M;t[48]===j?M=t[49]:(M=(0,f.jsx)(c,{id:`containerName`,placeholder:`app`,...j}),t[48]=j,t[49]=M);let N;t[50]===m.containerName?N=t[51]:(N=(0,f.jsx)(fe,{errors:[m.containerName]}),t[50]=m.containerName,t[51]=N);let P;t[52]!==M||t[53]!==N?(P=(0,f.jsxs)(d,{children:[ke,M,N]}),t[52]=M,t[53]=N,t[54]=P):P=t[54];let Ae;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`image`,children:`Image`})}),t[55]=Ae):Ae=t[55];let F;t[56]===p?F=t[57]:(F=p(`image`),t[56]=p,t[57]=F);let I;t[58]===F?I=t[59]:(I=(0,f.jsx)(c,{id:`image`,placeholder:`public.ecr.aws/nginx/nginx:latest`,...F}),t[58]=F,t[59]=I);let L;t[60]===m.image?L=t[61]:(L=(0,f.jsx)(fe,{errors:[m.image]}),t[60]=m.image,t[61]=L);let R;t[62]!==I||t[63]!==L?(R=(0,f.jsxs)(d,{children:[Ae,I,L]}),t[62]=I,t[63]=L,t[64]=R):R=t[64];let je;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerCpu`,children:`CPU (units)`})}),t[65]=je):je=t[65];let z;t[66]===p?z=t[67]:(z=p(`containerCpu`),t[66]=p,t[67]=z);let B;t[68]===z?B=t[69]:(B=(0,f.jsxs)(d,{children:[je,(0,f.jsx)(c,{id:`containerCpu`,placeholder:`optional`,...z})]}),t[68]=z,t[69]=B);let Me;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerMemory`,children:`Memory (MiB)`})}),t[70]=Me):Me=t[70];let V;t[71]===p?V=t[72]:(V=p(`containerMemory`),t[71]=p,t[72]=V);let H;t[73]===V?H=t[74]:(H=(0,f.jsxs)(d,{children:[Me,(0,f.jsx)(c,{id:`containerMemory`,placeholder:`optional`,...V})]}),t[73]=V,t[74]=H);let U;t[75]!==B||t[76]!==H?(U=(0,f.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[B,H]}),t[75]=B,t[76]=H,t[77]=U):U=t[77];let W;t[78]===p?W=t[79]:(W=p(`essential`),t[78]=p,t[79]=W);let G;t[80]===W?G=t[81]:(G=(0,f.jsx)(`input`,{type:`checkbox`,...W}),t[80]=W,t[81]=G);let Ne;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,f.jsx)(`span`,{children:`Essential`}),t[82]=Ne):Ne=t[82];let K;t[83]===G?K=t[84]:(K=(0,f.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[G,Ne]}),t[83]=G,t[84]=K);let Pe;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,f.jsx)(`span`,{className:`text-sm font-medium`,children:`Port mappings`}),t[85]=Pe):Pe=t[85];let q;t[86]===h?q=t[87]:(q=()=>h.append({containerPort:80,protocol:`tcp`}),t[86]=h,t[87]=q);let Fe;t[88]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,f.jsx)(ee,{className:`size-4`}),t[88]=Fe):Fe=t[88];let J;t[89]===q?J=t[90]:(J=(0,f.jsxs)(`div`,{className:`flex items-center justify-between`,children:[Pe,(0,f.jsxs)(ne,{onClick:q,size:`sm`,type:`button`,variant:`outline`,children:[Fe,`Add port`]})]}),t[89]=q,t[90]=J);let Y;t[91]!==l||t[92]!==p||t[93]!==h?(Y=h.fields.map((e,t)=>(0,f.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,f.jsxs)(d,{className:`flex-1`,children:[(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`port-${t}`,children:`Container port`})}),(0,f.jsx)(c,{id:`port-${t}`,type:`number`,...p(`portMappings.${t}.containerPort`,{valueAsNumber:!0})})]}),(0,f.jsx)(oe,{control:l,name:`portMappings.${t}.protocol`,render:ge}),(0,f.jsx)(ne,{"aria-label":`Remove port mapping`,onClick:()=>h.remove(t),size:`icon`,type:`button`,variant:`ghost`,children:(0,f.jsx)(te,{className:`size-4`})})]},e.id)),t[91]=l,t[92]=p,t[93]=h,t[94]=Y):Y=t[94];let X;t[95]!==J||t[96]!==Y?(X=(0,f.jsxs)(`div`,{className:`space-y-2`,children:[J,Y]}),t[95]=J,t[96]=Y,t[97]=X):X=t[97];let Z;t[98]!==P||t[99]!==R||t[100]!==U||t[101]!==K||t[102]!==X?(Z=(0,f.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[Oe,(0,f.jsxs)(`div`,{className:`space-y-4`,children:[P,R,U,K,X]})]}),t[98]=P,t[99]=R,t[100]=U,t[101]=K,t[102]=X,t[103]=Z):Z=t[103];let Q;t[104]!==g||t[105]!==ye||t[106]!==a.isPending?(Q=(0,f.jsx)(ue,{isPending:a.isPending,isSubmitting:ye,onCancel:g,pendingLabel:`Registering…`,submitLabel:`Register Task Definition`}),t[104]=g,t[105]=ye,t[106]=a.isPending,t[107]=Q):Q=t[107];let $;t[108]!==v||t[109]!==S||t[110]!==C||t[111]!==A||t[112]!==Z||t[113]!==Q?($=(0,f.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:v,children:[S,C,A,Z,Q]}),t[108]=v,t[109]=S,t[110]=C,t[111]=A,t[112]=Z,t[113]=Q,t[114]=$):$=t[114];let Ie;return t[115]!==$||t[116]!==_?(Ie=(0,f.jsxs)(f.Fragment,{children:[we,Te,_,$]}),t[115]=$,t[116]=_,t[117]=Ie):Ie=t[117],Ie}function ge(e){let{field:t}=e;return(0,f.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,f.jsx)(o,{className:`w-28`,children:(0,f.jsx)(r,{})}),(0,f.jsxs)(a,{children:[(0,f.jsx)(i,{value:`tcp`,children:`tcp`}),(0,f.jsx)(i,{value:`udp`,children:`udp`})]})]})}function _e(e){let{field:t}=e;return(0,f.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,f.jsx)(o,{className:`w-full`,id:`networkMode`,children:(0,f.jsx)(r,{})}),(0,f.jsx)(a,{children:me.map(ve)})]})}function ve(e){return(0,f.jsx)(i,{value:e,children:e},e)}function m(){let e=(0,he.c)(2),{cluster:t}=l.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,f.jsx)(p,{cluster:t}),e[0]=t,e[1]=n),n}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js b/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js index 7370cd2c4..bc79cdb85 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route.js b/spinifex/services/spinifexui/frontend/dist/assets/route.js index 03db300af..ece1ea261 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{_i as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ei as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route2.js b/spinifex/services/spinifexui/frontend/dist/assets/route2.js index 03db300af..ece1ea261 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route2.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{_i as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ei as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js index 48f74c226..b8047e2f9 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js @@ -1,16 +1,16 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Bt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./chevron-down.js";import{a as s,c,i as l,n as u,o as d,r as f,s as p,t as m}from"./select.js";import{t as ee}from"./cli-command-panel.js";import{t as h}from"./button.js";import{d as g}from"./ec2.js";import{It as _,Qt as v,Rt as y,Ut as te,nn as b,on as x,qt as ne,vi as S,xr as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,n as A,r as j,t as M}from"./field.js";import{i as re,t as ie,v as ae}from"./ec22.js";import{n as oe,r as se,t as ce}from"./collapsible.js";var le=t(n()),N=e(),P=`/dev/sda1`,ue=`gp3`,de=1,fe=16384;function pe(){let e=S(),{data:t}=r(_),{data:n}=r(te),{data:P}=r(y),{data:pe}=r(b),{data:he}=r(ne),{data:ge}=r(x),{data:_e}=r(v),I=g(),L=t.Images??[],ve=n.KeyPairs??[],ye=pe.Subnets??[],be=he.PlacementGroups??[],xe=ge.Vpcs??[],R=_e.SecurityGroups??[],Se=(xe.find(e=>e.IsDefault)??xe[0])?.VpcId,Ce=ae(R.map(e=>e.GroupName??``)),z={},B=new Map;for(let e of P.InstanceTypes??[]){let t=e.InstanceType;if(t&&(z[t]=(z[t]??0)+1,!B.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&B.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let V=Object.keys(z).toSorted(),H=V.filter(e=>B.has(e)),U=V.filter(e=>!B.has(e)),we=L[0]?.ImageId,Te=ve[0]?.KeyName,Ee=V.find(e=>e.endsWith(`.nano`))??V[0],De=F(L.find(e=>e.ImageId===we)),{control:W,handleSubmit:Oe,register:G,setValue:K,getValues:ke,watch:q,formState:{errors:J,isSubmitting:Y}}=w({resolver:E(re.refine(e=>e.count<=(z[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=F(L.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===je)),Me=q(`subnetId`),Ne=q(`securityGroupMode`),Pe=q(`ruleSource`),Fe=q(`securityGroupIds`)??[],$=ye.find(e=>e.SubnetId===Me)?.VpcId??Se,Ie=$?R.filter(e=>e.VpcId===$):R,Le=e=>{let t=ke(`securityGroupIds`)??[],n=t.includes(e)?t.filter(t=>t!==e):[...t,e];K(`securityGroupIds`,n,{shouldValidate:!0})};return(0,le.useEffect)(()=>{K(`rootDeviceName`,Q.deviceName)},[je,Q.deviceName,K]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(a,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,N.jsx)(O,{title:`Run Instances`}),V.length===0&&(0,N.jsx)(D,{msg:`No compute available. No new instances can be created until compute is available.`}),I.error&&(0,N.jsx)(D,{error:I.error,msg:`Failed to create instance`}),(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Oe(async t=>{await I.mutateAsync({...t,resolvedVpcId:$}),e({to:`/ec2/describe-instances`})}),children:[(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,N.jsx)(T,{control:W,name:`imageId`,render:({field:e})=>{let t=L.find(t=>t.ImageId===e.value);return(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,N.jsx)(p,{"aria-invalid":!!J.imageId,className:`w-full`,id:`imageId`,children:(0,N.jsx)(c,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,N.jsx)(u,{children:L.map(e=>(0,N.jsxs)(l,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,N.jsx)(j,{errors:[J.imageId]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,N.jsx)(T,{control:W,name:`instanceType`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,N.jsx)(p,{"aria-invalid":!!J.instanceType,className:`w-full`,id:`instanceType`,children:(0,N.jsx)(c,{})}),(0,N.jsxs)(u,{children:[U.length>0&&(0,N.jsxs)(f,{children:[H.length>0&&(0,N.jsx)(s,{children:`Standard`}),U.map(e=>(0,N.jsxs)(l,{value:e,children:[e,` (`,z[e],` available)`]},e))]}),H.length>0&&U.length>0&&(0,N.jsx)(d,{}),H.length>0&&(0,N.jsxs)(f,{children:[(0,N.jsx)(s,{children:`GPU-Accelerated`}),H.map(e=>{let t=B.get(e);return(0,N.jsxs)(l,{value:e,children:[e,t?` — ${i(t.totalMiB)}`:``,` (`,z[e],` available)`]},e)})]})]})]})}),Z&&(0,N.jsxs)(A,{children:[`GPU: `,Z.gpuName,` ·`,` `,i(Z.totalMiB),` VRAM`]}),(0,N.jsx)(j,{errors:[J.instanceType]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,N.jsx)(T,{control:W,name:`keyName`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,N.jsx)(p,{"aria-invalid":!!J.keyName,className:`w-full`,id:`keyName`,children:(0,N.jsx)(c,{})}),(0,N.jsx)(u,{children:ve.map(e=>(0,N.jsx)(l,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,N.jsx)(j,{errors:[J.keyName]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,N.jsx)(T,{control:W,name:`subnetId`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,N.jsx)(p,{className:`w-full`,id:`subnetId`,children:(0,N.jsx)(c,{})}),(0,N.jsxs)(u,{children:[(0,N.jsx)(l,{value:`none`,children:`none`}),ye.map(e=>(0,N.jsx)(l,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:`Security Group`}),(0,N.jsx)(A,{children:$?`Applies to VPC ${$}`:`No VPC resolved — select a subnet`}),(0,N.jsx)(T,{control:W,name:`securityGroupMode`,render:({field:e})=>(0,N.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Ne===`create`?(0,N.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,N.jsx)(C,{"aria-invalid":!!J.newSgName,id:`newSgName`,type:`text`,...G(`newSgName`)}),(0,N.jsx)(j,{errors:[J.newSgName]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,N.jsx)(C,{id:`newSgDescription`,type:`text`,...G(`newSgDescription`)})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:`Inbound rules`}),(0,N.jsxs)(`div`,{className:`space-y-1`,children:[(0,N.jsx)(T,{control:W,name:`allowSsh`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,N.jsx)(T,{control:W,name:`allowHttp`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,N.jsx)(T,{control:W,name:`allowHttps`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:`Source`}),(0,N.jsx)(T,{control:W,name:`ruleSource`,render:({field:e})=>(0,N.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Pe===`custom`&&(0,N.jsxs)(`div`,{className:`mt-2`,children:[(0,N.jsx)(C,{"aria-invalid":!!J.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...G(`customCidr`)}),(0,N.jsx)(j,{errors:[J.customCidr]})]})]})]}):(0,N.jsxs)(`div`,{className:`mt-3`,children:[Ie.length===0?(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,N.jsx)(`div`,{className:`space-y-1`,children:Ie.map(e=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,N.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Fe.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,N.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,N.jsx)(j,{errors:[J.securityGroupIds]})]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,N.jsx)(T,{control:W,name:`placementGroupName`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,N.jsx)(p,{className:`w-full`,id:`placementGroupName`,children:(0,N.jsx)(c,{})}),(0,N.jsxs)(u,{children:[(0,N.jsx)(l,{value:`none`,children:`none`}),be.map(e=>(0,N.jsxs)(l,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,N.jsx)(C,{"aria-describedby":`count-description`,"aria-invalid":!!J.count,id:`count`,type:`number`,...G(`count`,{valueAsNumber:!0})}),(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:X&&`Available capacity for ${X}: ${Ae}`}),(0,N.jsx)(j,{errors:[J.count]})]}),(0,N.jsxs)(ce,{children:[(0,N.jsxs)(se,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,N.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,N.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,N.jsx)(o,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,N.jsxs)(oe,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,N.jsx)(C,{"aria-invalid":!!J.rootDeviceName,id:`rootDeviceName`,type:`text`,...G(`rootDeviceName`)}),(0,N.jsx)(j,{errors:[J.rootDeviceName]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,N.jsx)(C,{"aria-invalid":!!J.rootVolumeSize,id:`rootVolumeSize`,max:fe,min:Q.snapshotSize??de,placeholder:Q.snapshotSize?`${Q.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...G(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Q.snapshotSize!==void 0&&(0,N.jsxs)(A,{children:[`AMI snapshot size: `,Q.snapshotSize,` GiB`]}),(0,N.jsx)(j,{errors:[J.rootVolumeSize]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,N.jsx)(T,{control:W,name:`rootVolumeType`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??ue,children:[(0,N.jsx)(p,{"aria-invalid":!!J.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,N.jsx)(c,{})}),(0,N.jsx)(u,{children:ie.map(e=>(0,N.jsx)(l,{value:e,children:e},e))})]})}),(0,N.jsx)(j,{errors:[J.rootVolumeType]})]}),(0,N.jsx)(M,{children:(0,N.jsx)(T,{control:W,name:`rootDeleteOnTermination`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,N.jsx)(ee,{commands:me(q,$)}),(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[(0,N.jsx)(h,{disabled:Y||I.isPending,onClick:async()=>await e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,N.jsx)(h,{disabled:Y||I.isPending||V.length===0,type:`submit`,children:Y||I.isPending?`Creating…`:`Create Instance`})]})]})]})}function F(e){let t=e?.RootDeviceName??P,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function me(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),s=typeof o==`string`?o:``,c=e(`subnetId`),l=typeof c==`string`?c:``,u=e(`placementGroupName`),d=typeof u==`string`?u:``,f=e(`count`),p=typeof f==`number`?f:0,m=e(`rootDeviceName`),ee=typeof m==`string`?m:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),te=typeof y==`boolean`?y:!0,b=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Bt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./chevron-down.js";import{a as s,c,i as l,n as u,o as d,r as f,s as p,t as m}from"./select.js";import{t as ee}from"./cli-command-panel.js";import{t as h}from"./button.js";import{d as g}from"./ec2.js";import{Ar as _,Di as v,Gt as y,Qt as te,dn as b,hn as x,nn as ne,qt as S,sn as re}from"./index.js";import{i as C,n as w,t as T}from"./zod.js";import{t as E}from"./error-banner.js";import{t as D}from"./page-heading.js";import{a as O,n as k,r as A,t as j}from"./field.js";import{i as ie,t as ae,v as oe}from"./ec22.js";import{n as se,r as ce,t as le}from"./collapsible.js";var ue=t(n()),M=e(),N=`/dev/sda1`,de=`gp3`,fe=1,pe=16384;function me(){let e=v(),{data:t}=r(y),{data:n}=r(te),{data:N}=r(S),{data:me}=r(b),{data:ge}=r(ne),{data:_e}=r(x),{data:ve}=r(re),F=g(),I=t.Images??[],ye=n.KeyPairs??[],be=me.Subnets??[],xe=ge.PlacementGroups??[],Se=_e.Vpcs??[],L=ve.SecurityGroups??[],Ce=(Se.find(e=>e.IsDefault)??Se[0])?.VpcId,we=oe(L.map(e=>e.GroupName??``)),R={},z=new Map;for(let e of N.InstanceTypes??[]){let t=e.InstanceType;if(t&&(R[t]=(R[t]??0)+1,!z.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&z.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let B=Object.keys(R).toSorted(),V=B.filter(e=>z.has(e)),H=B.filter(e=>!z.has(e)),Te=I[0]?.ImageId,Ee=ye[0]?.KeyName,De=B.find(e=>e.endsWith(`.nano`))??B[0],Oe=P(I.find(e=>e.ImageId===Te)),{control:U,handleSubmit:ke,register:W,setValue:G,getValues:Ae,watch:K,formState:{errors:q,isSubmitting:J}}=C({resolver:T(ie.refine(e=>e.count<=(R[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=P(I.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===Me)),Ne=K(`subnetId`),Pe=K(`securityGroupMode`),Fe=K(`ruleSource`),Ie=K(`securityGroupIds`)??[],Q=be.find(e=>e.SubnetId===Ne)?.VpcId??Ce,$=Q?L.filter(e=>e.VpcId===Q):L,Le=e=>{let t=Ae(`securityGroupIds`)??[],n=t.includes(e)?t.filter(t=>t!==e):[...t,e];G(`securityGroupIds`,n,{shouldValidate:!0})};return(0,ue.useEffect)(()=>{G(`rootDeviceName`,Z.deviceName)},[Me,Z.deviceName,G]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(a,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,M.jsx)(D,{title:`Run Instances`}),B.length===0&&(0,M.jsx)(E,{msg:`No compute available. No new instances can be created until compute is available.`}),F.error&&(0,M.jsx)(E,{error:F.error,msg:`Failed to create instance`}),(0,M.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:ke(async t=>{await F.mutateAsync({...t,resolvedVpcId:Q}),e({to:`/ec2/describe-instances`})}),children:[(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,M.jsx)(w,{control:U,name:`imageId`,render:({field:e})=>{let t=I.find(t=>t.ImageId===e.value);return(0,M.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,M.jsx)(p,{"aria-invalid":!!q.imageId,className:`w-full`,id:`imageId`,children:(0,M.jsx)(c,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,M.jsx)(u,{children:I.map(e=>(0,M.jsxs)(l,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,M.jsx)(A,{errors:[q.imageId]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,M.jsx)(w,{control:U,name:`instanceType`,render:({field:e})=>(0,M.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,M.jsx)(p,{"aria-invalid":!!q.instanceType,className:`w-full`,id:`instanceType`,children:(0,M.jsx)(c,{})}),(0,M.jsxs)(u,{children:[H.length>0&&(0,M.jsxs)(f,{children:[V.length>0&&(0,M.jsx)(s,{children:`Standard`}),H.map(e=>(0,M.jsxs)(l,{value:e,children:[e,` (`,R[e],` available)`]},e))]}),V.length>0&&H.length>0&&(0,M.jsx)(d,{}),V.length>0&&(0,M.jsxs)(f,{children:[(0,M.jsx)(s,{children:`GPU-Accelerated`}),V.map(e=>{let t=z.get(e);return(0,M.jsxs)(l,{value:e,children:[e,t?` — ${i(t.totalMiB)}`:``,` (`,R[e],` available)`]},e)})]})]})]})}),X&&(0,M.jsxs)(k,{children:[`GPU: `,X.gpuName,` ·`,` `,i(X.totalMiB),` VRAM`]}),(0,M.jsx)(A,{errors:[q.instanceType]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,M.jsx)(w,{control:U,name:`keyName`,render:({field:e})=>(0,M.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,M.jsx)(p,{"aria-invalid":!!q.keyName,className:`w-full`,id:`keyName`,children:(0,M.jsx)(c,{})}),(0,M.jsx)(u,{children:ye.map(e=>(0,M.jsx)(l,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,M.jsx)(A,{errors:[q.keyName]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,M.jsx)(w,{control:U,name:`subnetId`,render:({field:e})=>(0,M.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,M.jsx)(p,{className:`w-full`,id:`subnetId`,children:(0,M.jsx)(c,{})}),(0,M.jsxs)(u,{children:[(0,M.jsx)(l,{value:`none`,children:`none`}),be.map(e=>(0,M.jsx)(l,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:`Security Group`}),(0,M.jsx)(k,{children:Q?`Applies to VPC ${Q}`:`No VPC resolved — select a subnet`}),(0,M.jsx)(w,{control:U,name:`securityGroupMode`,render:({field:e})=>(0,M.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Pe===`create`?(0,M.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,M.jsx)(_,{"aria-invalid":!!q.newSgName,id:`newSgName`,type:`text`,...W(`newSgName`)}),(0,M.jsx)(A,{errors:[q.newSgName]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,M.jsx)(_,{id:`newSgDescription`,type:`text`,...W(`newSgDescription`)})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:`Inbound rules`}),(0,M.jsxs)(`div`,{className:`space-y-1`,children:[(0,M.jsx)(w,{control:U,name:`allowSsh`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,M.jsx)(w,{control:U,name:`allowHttp`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,M.jsx)(w,{control:U,name:`allowHttps`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:`Source`}),(0,M.jsx)(w,{control:U,name:`ruleSource`,render:({field:e})=>(0,M.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,M.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Fe===`custom`&&(0,M.jsxs)(`div`,{className:`mt-2`,children:[(0,M.jsx)(_,{"aria-invalid":!!q.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...W(`customCidr`)}),(0,M.jsx)(A,{errors:[q.customCidr]})]})]})]}):(0,M.jsxs)(`div`,{className:`mt-3`,children:[$.length===0?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,M.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,M.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ie.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,M.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,M.jsx)(A,{errors:[q.securityGroupIds]})]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,M.jsx)(w,{control:U,name:`placementGroupName`,render:({field:e})=>(0,M.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,M.jsx)(p,{className:`w-full`,id:`placementGroupName`,children:(0,M.jsx)(c,{})}),(0,M.jsxs)(u,{children:[(0,M.jsx)(l,{value:`none`,children:`none`}),xe.map(e=>(0,M.jsxs)(l,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,M.jsx)(_,{"aria-describedby":`count-description`,"aria-invalid":!!q.count,id:`count`,type:`number`,...W(`count`,{valueAsNumber:!0})}),(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:Y&&`Available capacity for ${Y}: ${je}`}),(0,M.jsx)(A,{errors:[q.count]})]}),(0,M.jsxs)(le,{children:[(0,M.jsxs)(ce,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,M.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,M.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,M.jsx)(o,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,M.jsxs)(se,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,M.jsx)(_,{"aria-invalid":!!q.rootDeviceName,id:`rootDeviceName`,type:`text`,...W(`rootDeviceName`)}),(0,M.jsx)(A,{errors:[q.rootDeviceName]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,M.jsx)(_,{"aria-invalid":!!q.rootVolumeSize,id:`rootVolumeSize`,max:pe,min:Z.snapshotSize??fe,placeholder:Z.snapshotSize?`${Z.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...W(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Z.snapshotSize!==void 0&&(0,M.jsxs)(k,{children:[`AMI snapshot size: `,Z.snapshotSize,` GiB`]}),(0,M.jsx)(A,{errors:[q.rootVolumeSize]})]}),(0,M.jsxs)(j,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,M.jsx)(w,{control:U,name:`rootVolumeType`,render:({field:e})=>(0,M.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??de,children:[(0,M.jsx)(p,{"aria-invalid":!!q.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,M.jsx)(c,{})}),(0,M.jsx)(u,{children:ae.map(e=>(0,M.jsx)(l,{value:e,children:e},e))})]})}),(0,M.jsx)(A,{errors:[q.rootVolumeType]})]}),(0,M.jsx)(j,{children:(0,M.jsx)(w,{control:U,name:`rootDeleteOnTermination`,render:({field:e})=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,M.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,M.jsx)(ee,{commands:he(K,Q)}),(0,M.jsxs)(`div`,{className:`flex gap-2`,children:[(0,M.jsx)(h,{disabled:J||F.isPending,onClick:async()=>await e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,M.jsx)(h,{disabled:J||F.isPending||B.length===0,type:`submit`,children:J||F.isPending?`Creating…`:`Create Instance`})]})]})]})}function P(e){let t=e?.RootDeviceName??N,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function he(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),s=typeof o==`string`?o:``,c=e(`subnetId`),l=typeof c==`string`?c:``,u=e(`placementGroupName`),d=typeof u==`string`?u:``,f=e(`count`),p=typeof f==`number`?f:0,m=e(`rootDeviceName`),ee=typeof m==`string`?m:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),te=typeof y==`boolean`?y:!0,b=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ --image-id`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --instance-type`},{type:`value`,value:` ${a||``}`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${s||``}`}];l&&b.push({type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${l}`}),d&&b.push({type:`flag`,value:` \\ --placement`},{type:`value`,value:` GroupName=${d}`}),b.push({type:`flag`,value:` \\ - --count`},{type:`value`,value:` ${p||1}`});let x=e(`securityGroupMode`),ne=typeof x==`string`?x:`create`,S=e(`newSgName`),C=typeof S==`string`?S:``,w=e(`newSgDescription`),T=typeof w==`string`?w:``,E=e(`ruleSource`),D=typeof E==`string`?E:`anywhere`,O=e(`customCidr`),k=typeof O==`string`?O:``,A=[];if(ne===`create`){A.push({label:`Create security group`,parts:[{type:`bin`,value:`SG_ID=$(AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ - --group-name`},{type:`value`,value:` ${C||``}`},{type:`flag`,value:` \\ - --description`},{type:`value`,value:` '${T||`Created by launch wizard`}'`},{type:`flag`,value:` \\ + --count`},{type:`value`,value:` ${p||1}`});let x=e(`securityGroupMode`),ne=typeof x==`string`?x:`create`,S=e(`newSgName`),re=typeof S==`string`?S:``,C=e(`newSgDescription`),w=typeof C==`string`?C:``,T=e(`ruleSource`),E=typeof T==`string`?T:`anywhere`,D=e(`customCidr`),O=typeof D==`string`?D:``,k=[];if(ne===`create`){k.push({label:`Create security group`,parts:[{type:`bin`,value:`SG_ID=$(AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ + --group-name`},{type:`value`,value:` ${re||``}`},{type:`flag`,value:` \\ + --description`},{type:`value`,value:` '${w||`Created by launch wizard`}'`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${t??``}`},{type:`flag`,value:` \\ - --query`},{type:`value`,value:` 'GroupId' --output text)`}]});let n=D===`custom`&&k?k:`0.0.0.0/0`,r=[...e(`allowSsh`)===!0?[22]:[],...e(`allowHttp`)===!0?[80]:[],...e(`allowHttps`)===!0?[443]:[]];if(r.length>0){let e=JSON.stringify(r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:n}]})));A.push({label:`Authorize inbound rules`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 authorize-security-group-ingress`},{type:`flag`,value:` \\ + --query`},{type:`value`,value:` 'GroupId' --output text)`}]});let n=E===`custom`&&O?O:`0.0.0.0/0`,r=[...e(`allowSsh`)===!0?[22]:[],...e(`allowHttp`)===!0?[80]:[],...e(`allowHttps`)===!0?[443]:[]];if(r.length>0){let e=JSON.stringify(r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:n}]})));k.push({label:`Authorize inbound rules`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 authorize-security-group-ingress`},{type:`flag`,value:` \\ --group-id`},{type:`value`,value:` $SG_ID`},{type:`flag`,value:` \\ --ip-permissions`},{type:`value`,value:` '${e}'`}]})}b.push({type:`flag`,value:` \\ --security-group-ids`},{type:`value`,value:` $SG_ID`})}else{let t=e(`securityGroupIds`),n=Array.isArray(t)?t.filter(e=>typeof e==`string`):[];n.length>0&&b.push({type:`flag`,value:` \\ - --security-group-ids`},{type:`value`,value:` ${n.join(` `)}`})}if(g!==void 0||_!==void 0||y!==void 0){let e={};g!==void 0&&(e.VolumeSize=g),v&&(e.VolumeType=v),y!==void 0&&(e.DeleteOnTermination=te);let t=JSON.stringify([{DeviceName:ee||P,Ebs:e}]);b.push({type:`flag`,value:` \\ - --block-device-mappings`},{type:`value`,value:` '${t}'`})}return[...A,{label:`Run Instances`,parts:b}]}export{pe as component}; \ No newline at end of file + --security-group-ids`},{type:`value`,value:` ${n.join(` `)}`})}if(g!==void 0||_!==void 0||y!==void 0){let e={};g!==void 0&&(e.VolumeSize=g),v&&(e.VolumeType=v),y!==void 0&&(e.DeleteOnTermination=te);let t=JSON.stringify([{DeviceName:ee||N,Ebs:e}]);b.push({type:`flag`,value:` \\ + --block-device-mappings`},{type:`value`,value:` '${t}'`})}return[...k,{label:`Run Instances`,parts:b}]}export{me as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-task.js b/spinifex/services/spinifexui/frontend/dist/assets/run-task.js index ecf1c993f..ebaee7d96 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-task.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-task.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{c as u}from"./ecs.js";import{Qt as d,it as f,lt as p,nn as m,ut as h,vi as g,xr as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{i as D}from"./ecs2.js";var O=t(),k=e();function A(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function j({cluster:e}){let t=g(),f=u(),{data:O}=r(h),{data:j}=r(m),{data:M}=r(d),N=j.Subnets??[],P=M.SecurityGroups??[],{control:F,handleSubmit:I,register:L,watch:R,setValue:z,getValues:B,formState:{errors:V,isSubmitting:H}}=v({resolver:b(D),defaultValues:{cluster:e,taskDefinition:``,count:1,subnets:[],securityGroups:[],assignPublicIp:!1}}),{data:U}=n(p(R(`taskDefinition`))),W=U?.networkMode===`awsvpc`,G=R(`subnets`),K=R(`securityGroups`),q=(e,t)=>{let n=B(e);z(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function J(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}function Y(e){f.mutate({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,awsvpc:W,subnets:e.subnets,securityGroups:e.securityGroups,assignPublicIp:e.assignPublicIp},{onSuccess:J})}let X=W&&G.length===0;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(i,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,k.jsx)(C,{subtitle:`Cluster: ${e}`,title:`Run Task`}),f.isError&&(0,k.jsx)(x,{error:f.error instanceof Error?f.error:void 0,msg:`Failed to run task.`}),(0,k.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:I(Y),children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,k.jsx)(y,{control:F,name:`taskDefinition`,render:({field:e})=>(0,k.jsxs)(l,{onValueChange:e.onChange,value:e.value,children:[(0,k.jsx)(c,{className:`w-full`,id:`taskDefinition`,children:(0,k.jsx)(a,{placeholder:`Select a task definition`})}),(0,k.jsx)(s,{children:O.map(e=>{let t=A(e);return(0,k.jsx)(o,{value:t,children:t},e)})})]})}),(0,k.jsx)(T,{errors:[V.taskDefinition]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`count`,children:`Count`})}),(0,k.jsx)(_,{id:`count`,type:`number`,...L(`count`,{valueAsNumber:!0})}),(0,k.jsx)(T,{errors:[V.count]})]}),W&&(0,k.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,k.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:N.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:G.includes(e.SubnetId??``),onChange:()=>q(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:P.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:K.includes(e.GroupId??``),onChange:()=>q(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,k.jsx)(`input`,{type:`checkbox`,...L(`assignPublicIp`)}),(0,k.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,k.jsx)(S,{isPending:f.isPending||X,isSubmitting:H,onCancel:J,pendingLabel:`Running…`,submitLabel:`Run Task`})]})]})}function M(){let e=(0,O.c)(2),{cluster:t}=f.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,k.jsx)(j,{cluster:t}),e[0]=t,e[1]=n),n}export{M as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{c as u}from"./ecs.js";import{Ar as d,Di as f,dn as p,it as m,lt as h,sn as g,ut as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{i as D}from"./ecs2.js";var O=t(),k=e();function A(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function j({cluster:e}){let t=f(),m=u(),{data:O}=r(_),{data:j}=r(p),{data:M}=r(g),N=j.Subnets??[],P=M.SecurityGroups??[],{control:F,handleSubmit:I,register:L,watch:R,setValue:z,getValues:B,formState:{errors:V,isSubmitting:H}}=v({resolver:b(D),defaultValues:{cluster:e,taskDefinition:``,count:1,subnets:[],securityGroups:[],assignPublicIp:!1}}),{data:U}=n(h(R(`taskDefinition`))),W=U?.networkMode===`awsvpc`,G=R(`subnets`),K=R(`securityGroups`),q=(e,t)=>{let n=B(e);z(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function J(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}function Y(e){m.mutate({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,awsvpc:W,subnets:e.subnets,securityGroups:e.securityGroups,assignPublicIp:e.assignPublicIp},{onSuccess:J})}let X=W&&G.length===0;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(i,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,k.jsx)(C,{subtitle:`Cluster: ${e}`,title:`Run Task`}),m.isError&&(0,k.jsx)(x,{error:m.error instanceof Error?m.error:void 0,msg:`Failed to run task.`}),(0,k.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:I(Y),children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,k.jsx)(y,{control:F,name:`taskDefinition`,render:({field:e})=>(0,k.jsxs)(l,{onValueChange:e.onChange,value:e.value,children:[(0,k.jsx)(c,{className:`w-full`,id:`taskDefinition`,children:(0,k.jsx)(a,{placeholder:`Select a task definition`})}),(0,k.jsx)(s,{children:O.map(e=>{let t=A(e);return(0,k.jsx)(o,{value:t,children:t},e)})})]})}),(0,k.jsx)(T,{errors:[V.taskDefinition]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`count`,children:`Count`})}),(0,k.jsx)(d,{id:`count`,type:`number`,...L(`count`,{valueAsNumber:!0})}),(0,k.jsx)(T,{errors:[V.count]})]}),W&&(0,k.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,k.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:N.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:G.includes(e.SubnetId??``),onChange:()=>q(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:P.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:K.includes(e.GroupId??``),onChange:()=>q(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,k.jsx)(`input`,{type:`checkbox`,...L(`assignPublicIp`)}),(0,k.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,k.jsx)(S,{isPending:m.isPending||X,isSubmitting:H,onCancel:J,pendingLabel:`Running…`,submitLabel:`Run Task`})]})]})}function M(){let e=(0,O.c)(2),{cluster:t}=m.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,k.jsx)(j,{cluster:t}),e[0]=t,e[1]=n),n}export{M as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/s3.js b/spinifex/services/spinifexui/frontend/dist/assets/s3.js index 23e065e79..707e01a99 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/s3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/s3.js @@ -1,4 +1,4 @@ -import{i as e,t}from"./compiler-runtime.js";import{t as n}from"./useMutation.js";import{A as r,C as i,D as a,E as o,N as s,O as c,S as l,b as u,d,f,j as p,k as m,l as h,m as g,p as _,u as v,v as y,x as b,y as x}from"./awsClient.js";import{Ot as S,at as C,st as w}from"./auth.js";import{yi as T}from"./index.js";var E=class extends s(b,o,`AbortMultipartUpload`,v){},D=class extends s(b,a,`CompleteMultipartUpload`,d){},O=class extends s(l,r,`CreateBucket`,f){},k=class extends s(b,a,`CreateMultipartUpload`,_){},A=class extends s(b,o,`DeleteObject`,g){},j=class extends s(b,c,`PutObject`,y){},M=class extends s(i,p,`PutObjectTagging`,x){},N=class extends s(b,m,`UploadPart`,u){},P={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},F=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),L=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),R=e((e=>{var t=I(),n=L(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return K(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ne(e).length;default:if(i)return r?-1:K(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return R(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Y(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return M(r)}var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!1,52,8)};function B(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;B(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;B(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);B(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);B(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function V(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function H(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)};function U(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function ee(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function ne(e){return t.toByteArray(G(e))}function q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Y(e){return e!==e}var X=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),z=t(),B=F(),V=R(),H={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},U=e=>{if(e==null)return 0;if(typeof e==`string`)return V.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(H.isFileReadStream(e))try{return H.lstatSync(e.path).size}catch{return}},W;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(W||={});var G=(e,t)=>{if(t!=null)return W.CONTENT_LENGTH;if(e==null)return W.EMPTY_INPUT;if(typeof e==`string`)return W.STRING_LENGTH;if(typeof e.byteLength==`number`)return W.TYPED_ARRAY;if(typeof e.length==`number`)return W.LENGTH;if(typeof e.size==`number`)return W.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return W.START_END_DIFF;if(H.isFileReadStream(e))try{return H.lstatSync(e.path).size,W.LSTAT}catch{return}},K=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),ee=e(((e,t)=>{t.exports=F().EventEmitter})),te=e(((e,t)=>{t.exports={}})),ne=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),q=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),J=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),Y=e(((e,t)=>{var n=J().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),X=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),Z=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){U(t,e)}}var r;T.WritableState=C;var i={deprecate:X()},a=ee(),o=R().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=q(),d=Y().getHighWaterMark,f=J().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;K()(T,a);function S(){}function C(e,t,i){r||=Q(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=Q();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=k(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&I(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=se(),i=Z();K()(c,r);for(var a=n(i.prototype),o=0;o{var n=R(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),ie=e((e=>{var t=re().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),$=e(((e,t)=>{var n=J().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),ae=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=$(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),oe=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),se=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,F().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=ee(),a=R().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=te(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=ne(),f=q(),p=Y().getHighWaterMark,m=J().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;K()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=Q(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=ie().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=Q(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,N(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):L(e,o)):O(e,o,t,!1);else r||(o.reading=!1,L(e,o))}return!o.ended&&(o.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?Z(this):P(this),null;if(e=M(e,t),e===0&&t.ended)return t.length===0&&Z(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?X(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Z(this)),i!==null&&this.emit(`data`,i),i};function N(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}function P(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(I,e))}function I(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function L(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(z,e,t))}function z(e,t){for(;!t.reading&&!t.ended&&(t.length1&&$(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function B(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,G(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?P(this):r.reading||process.nextTick(H,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(V,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(V,this),t};function V(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function H(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this};function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(W,e,t))}function W(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),G(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function G(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function Z(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(re,t,e))}function re(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=oe()),x(E,e,t)});function $(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=J().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=Q();K()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=ce();K()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),ue=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=J().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=$()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),de=e(((e,t)=>{t.exports=r;var n=F().EventEmitter;K()(r,n),r.Readable=se(),r.Writable=Z(),r.Duplex=Q(),r.Transform=ce(),r.PassThrough=le(),r.finished=$(),r.pipeline=ue(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*fe(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?V.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:V.Buffer.concat(i.chunks),lastPart:!0}}async function*pe(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return pe(e,t);if(e instanceof de.Readable)return fe(e,t,me);if(e instanceof String||typeof e==`string`)return pe(V.Buffer.from(e),t);if(typeof e.stream==`function`)return fe(e.stream(),t,he);if(e instanceof ReadableStream)return fe(e,t,he);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},_e=class e extends B.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??U(this.params.Body),this.totalBytesSource=G(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof B.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new j(t)),n?.endpoint?.()]),s=o[0],c=o[1];if(c||=S(await w(t,j,{...n})),!c)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let l=this.params.Key.split(`/`).map(e=>C(e)).join(`/`),u=C(this.params.Bucket),d=(()=>{let e=c.hostname.startsWith(`${u}.`),t=this.client.config.forcePathStyle,n=c.port?`:${c.port}`:``;return t?`${c.protocol}//${c.hostname}${n}/${u}/${l}`:e?`${c.protocol}//${c.hostname}${n}/${l}`:`${c.protocol}//${u}.${c.hostname}${n}/${l}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:d};let f=U(e.data);this.__notifyProgress({loaded:f,total:f,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||P.CRC32),this.createMultiPartPromise=this.client.send(new k(t)).then(e=>(this.abortMultipartUploadCommand=new E({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=U(t.data)||0,n=this.client.config.requestHandler,r=n instanceof B.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new N({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=ge(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). +import{i as e,t}from"./compiler-runtime.js";import{t as n}from"./useMutation.js";import{A as r,C as i,D as a,E as o,N as s,O as c,S as l,b as u,d,f,j as p,k as m,l as h,m as g,p as _,u as v,v as y,x as b,y as x}from"./awsClient.js";import{Ot as S,at as C,st as w}from"./auth.js";import{Oi as T}from"./index.js";var E=class extends s(b,o,`AbortMultipartUpload`,v){},D=class extends s(b,a,`CompleteMultipartUpload`,d){},O=class extends s(l,r,`CreateBucket`,f){},k=class extends s(b,a,`CreateMultipartUpload`,_){},A=class extends s(b,o,`DeleteObject`,g){},j=class extends s(b,c,`PutObject`,y){},M=class extends s(i,p,`PutObjectTagging`,x){},N=class extends s(b,m,`UploadPart`,u){},P={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},F=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),L=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),R=e((e=>{var t=I(),n=L(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return K(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ne(e).length;default:if(i)return r?-1:K(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return R(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Y(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return M(r)}var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!1,52,8)};function B(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;B(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;B(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);B(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);B(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function V(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function H(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)};function U(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function ee(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function ne(e){return t.toByteArray(G(e))}function q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Y(e){return e!==e}var X=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),z=t(),B=F(),V=R(),H={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},U=e=>{if(e==null)return 0;if(typeof e==`string`)return V.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(H.isFileReadStream(e))try{return H.lstatSync(e.path).size}catch{return}},W;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(W||={});var G=(e,t)=>{if(t!=null)return W.CONTENT_LENGTH;if(e==null)return W.EMPTY_INPUT;if(typeof e==`string`)return W.STRING_LENGTH;if(typeof e.byteLength==`number`)return W.TYPED_ARRAY;if(typeof e.length==`number`)return W.LENGTH;if(typeof e.size==`number`)return W.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return W.START_END_DIFF;if(H.isFileReadStream(e))try{return H.lstatSync(e.path).size,W.LSTAT}catch{return}},K=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),ee=e(((e,t)=>{t.exports=F().EventEmitter})),te=e(((e,t)=>{t.exports={}})),ne=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),q=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),J=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),Y=e(((e,t)=>{var n=J().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),X=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),Z=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){U(t,e)}}var r;T.WritableState=C;var i={deprecate:X()},a=ee(),o=R().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=q(),d=Y().getHighWaterMark,f=J().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;K()(T,a);function S(){}function C(e,t,i){r||=Q(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=Q();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=k(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&I(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=se(),i=Z();K()(c,r);for(var a=n(i.prototype),o=0;o{var n=R(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),ie=e((e=>{var t=re().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),$=e(((e,t)=>{var n=J().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),ae=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=$(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),oe=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),se=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,F().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=ee(),a=R().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=te(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=ne(),f=q(),p=Y().getHighWaterMark,m=J().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;K()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=Q(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=ie().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=Q(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,N(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):L(e,o)):O(e,o,t,!1);else r||(o.reading=!1,L(e,o))}return!o.ended&&(o.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?Z(this):P(this),null;if(e=M(e,t),e===0&&t.ended)return t.length===0&&Z(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?X(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Z(this)),i!==null&&this.emit(`data`,i),i};function N(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}function P(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(I,e))}function I(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function L(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(z,e,t))}function z(e,t){for(;!t.reading&&!t.ended&&(t.length1&&$(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function B(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,G(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?P(this):r.reading||process.nextTick(H,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(V,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(V,this),t};function V(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function H(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this};function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(W,e,t))}function W(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),G(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function G(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function Z(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(re,t,e))}function re(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=oe()),x(E,e,t)});function $(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=J().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=Q();K()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=ce();K()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),ue=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=J().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=$()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),de=e(((e,t)=>{t.exports=r;var n=F().EventEmitter;K()(r,n),r.Readable=se(),r.Writable=Z(),r.Duplex=Q(),r.Transform=ce(),r.PassThrough=le(),r.finished=$(),r.pipeline=ue(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*fe(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?V.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:V.Buffer.concat(i.chunks),lastPart:!0}}async function*pe(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return pe(e,t);if(e instanceof de.Readable)return fe(e,t,me);if(e instanceof String||typeof e==`string`)return pe(V.Buffer.from(e),t);if(typeof e.stream==`function`)return fe(e.stream(),t,he);if(e instanceof ReadableStream)return fe(e,t,he);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},_e=class e extends B.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??U(this.params.Body),this.totalBytesSource=G(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof B.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new j(t)),n?.endpoint?.()]),s=o[0],c=o[1];if(c||=S(await w(t,j,{...n})),!c)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let l=this.params.Key.split(`/`).map(e=>C(e)).join(`/`),u=C(this.params.Bucket),d=(()=>{let e=c.hostname.startsWith(`${u}.`),t=this.client.config.forcePathStyle,n=c.port?`:${c.port}`:``;return t?`${c.protocol}//${c.hostname}${n}/${u}/${l}`:e?`${c.protocol}//${c.hostname}${n}/${l}`:`${c.protocol}//${u}.${c.hostname}${n}/${l}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:d};let f=U(e.data);this.__notifyProgress({loaded:f,total:f,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||P.CRC32),this.createMultiPartPromise=this.client.send(new k(t)).then(e=>(this.abortMultipartUploadCommand=new E({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=U(t.data)||0,n=this.client.config.requestHandler,r=n instanceof B.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new N({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=ge(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). The expected part count is based on the byte-count of the input.params.Body, which was read from ${i} and is ${r}. If this is not correct, provide an override value by setting a number diff --git a/spinifex/services/spinifexui/frontend/dist/assets/select.js b/spinifex/services/spinifexui/frontend/dist/assets/select.js index 76a074a0b..bad7b1ec3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/select.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/select.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,f as o,i as s,l as c,n as l,u}from"./dist.js";import{Ft as d}from"./auth.js";import{t as f}from"./check.js";import{t as p}from"./chevron-down.js";import{_ as m,b as h,o as g,r as _,s as v}from"./button.js";import{S as y,_ as b,b as x,f as S,g as C,l as ee,n as te,o as w,t as T,u as E,v as ne,x as D,y as O}from"./createBaseUIEventDetails.js";import{$n as k,$r as A,Ar as j,Br as M,Cr as N,Dn as P,En as F,Fr as I,Gr as L,Hr as R,Ir as re,Jr as ie,Kr as ae,Lr as z,Mr as B,Nn as V,Nr as H,On as U,Or as W,Pn as G,Pr as K,Qn as oe,Qr as q,Rr as se,Sr as ce,Tn as J,Tr as le,Ur as ue,Vn as de,Vr as fe,Wr as pe,Xn as me,Xr as he,Yr as ge,Zn as _e,Zr as ve,_r as ye,ar as be,br as xe,cr as Se,dr as Ce,ei as we,er as Y,fr as Te,hi as Ee,ir as De,jn as X,jr as Oe,lr as ke,ni as Ae,nr as je,or as Me,pr as Ne,qr as Pe,ri as Fe,rr as Ie,sr as Le,ti as Re,tr as ze,ur as Be,vr as Ve,wr as He,yr as Ue,zr as We}from"./index.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./useCompositeListItem.js";var Ye=Ee(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=t(n(),1);function Xe(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=C}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=Z.useRef(void 0),p=j(),m=Oe(),h=Z.useMemo(()=>{function e(e,t,n,r){let i=T(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||We(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=x(a);if(L(l)){e(c,a,l,i);return}let d=n.currentTarget;p.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}We(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,o,l,u,s,a,p,m,c]);return Z.useMemo(()=>n?{reference:h}:i,[n,h])}var Ze=`Escape`;function Qe(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function $e(e,t){return Qe(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function et(e,t,n){return Qe(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function tt(e,t,n){return Qe(t,n?e===Pe:e===ie,e===ae)}function nt(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Ze:Qe(t,n?e===ie:e===Pe,e===ge)}function rt(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:_=void 0,orientation:y=`vertical`,parentOrientation:b,id:S,resetOnPointerLeave:C=!0,externalTree:ee,grid:te}=t,k=te!=null,A=`rootStore`in e?e.rootStore:e,N=A.useState(`open`),P=A.useState(`floatingElement`),F=A.useState(`domReferenceElement`),I=A.context.dataRef,L=ue(P),ie=pe(F),ae=Te(L),z=be(),V=Me(ee),U=Z.useRef(f),W=Z.useRef(o??-1),G=Z.useRef(null),oe=Z.useRef(!0),q=v(e=>{i(W.current===-1?null:W.current,e)}),se=Z.useRef(!!P),ce=Z.useRef(N),J=Z.useRef(!1),le=Z.useRef(!1),de=Z.useRef(null),me=Te(_),he=Te(N),ge=Te(o),_e=Te(C),ve=j(),ye=j(),xe=v(()=>{function e(e){d?V?.events.emit(`virtualfocus`,e):de.current=ke(e,{sync:J.current,preventScroll:!0})}let t=n.current[W.current],r=le.current;t&&e(t),(J.current?e=>e():e=>ve.request(e))(()=>{let i=n.current[W.current]||t;i&&(t||e(i),De&&(r||!oe.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});g(()=>{I.current.orientation=y},[I,y]),g(()=>{a&&(N&&P?(W.current=o??-1,U.current&&o!=null&&(le.current=!0,q())):se.current&&(W.current=-1,q()))},[a,N,P,o,q]),g(()=>{if(a){if(!N){J.current=!1;return}if(P)if(r==null){if(J.current=!1,ge.current!=null)return;if(se.current&&(W.current=-1,xe()),(!ce.current||!se.current)&&U.current&&(G.current!=null||U.current===!0&&G.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ye.request(e):queueMicrotask)(t),e+=1):(W.current=G.current==null||et(G.current,y,u)||l?K(n):H(n),G.current=null,q())};t()}}else re(n.current,r)||(W.current=r,xe(),le.current=!1)}},[a,N,P,r,ge,l,n,y,u,q,xe,ye]),g(()=>{if(!a||P||!V||d||!se.current)return;let e=V.nodesRef.current,t=e.find(e=>e.id===z)?.context?.elements.floating,n=ne(D(F??t??null)),r=e.some(e=>e.context&&O(e.context.elements.floating,n));t&&!r&&oe.current&&t.focus({preventScroll:!0})},[a,P,F,V,z,d]),g(()=>{ce.current=N,se.current=!!P}),g(()=>{N||(G.current=null,U.current=f)},[N,f]);let Se=r!=null,Ce=v(e=>{if(!he.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(W.current!==t||r!==t)&&(W.current=t,q(e))}),we=v(()=>b??V?.nodesRef.current.find(e=>e.id===z)?.context?.dataRef?.current.orientation),Y=v(()=>K(n,me.current)),Ee=v(e=>{if(oe.current=!1,J.current=!0,e.which===229||!he.current&&e.currentTarget===ae.current)return;if(l&&nt(e.key,y,u,k)){$e(e.key,we())||R(e),A.setOpen(!1,T(E,e.nativeEvent)),h(F)&&(d?V?.events.emit(`virtualfocus`,F):F.focus());return}let t=W.current,r=K(n,_),i=H(n,_);if(ie||(e.key===`Home`&&(R(e),W.current=r,q(e)),e.key===`End`&&(R(e),W.current=i,q(e))),te!=null){let t=te(e,W.current,n,y,c,u,_,r,i);if(t!=null&&(W.current=t,q(e)),y===`both`)return}if($e(e.key,y)){if(R(e),N&&!d&&ne(e.currentTarget.ownerDocument)===e.currentTarget){W.current=et(e.key,y,u)?r:i,q(e);return}et(e.key,y,u)?c?t>=i?s&&t!==n.current.length?W.current=-1:(J.current=!1,W.current=r):W.current=B(n.current,{startingIndex:t,disabledIndices:_}):W.current=Math.min(i,B(n.current,{startingIndex:t,disabledIndices:_})):c?t<=r?s&&t!==-1?W.current=n.current.length:(J.current=!1,W.current=i):W.current=B(n.current,{startingIndex:t,decrement:!0,disabledIndices:_}):W.current=Math.max(r,B(n.current,{startingIndex:t,decrement:!0,disabledIndices:_})),re(n.current,W.current)&&(W.current=-1),q(e)}}),De=Z.useMemo(()=>({onFocus(e){J.current=!0,Ce(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){J.current=!0,le.current=!1,p&&Ce(e)},onPointerLeave(e){if(!he.current||!oe.current||e.pointerType===`touch`)return;J.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&_e.current&&(de.current?.(),de.current=null,W.current=-1,q(e),!d)){let e=ae.current,t=ne(D(e));e&&O(e,t)&&e.focus({preventScroll:!0})}}}),[Ce,he,ae,p,n,q,_e,d]),X=Z.useMemo(()=>d&&N&&Se&&{"aria-activedescendant":`${S}-${r}`},[d,N,Se,S,r]),Oe=Z.useMemo(()=>({"aria-orientation":y===`both`?void 0:y,...ie?{}:X,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&N&&!d){let t=x(e.nativeEvent);if(t&&!O(ae.current,t))return;R(e),A.setOpen(!1,T(w,e.nativeEvent)),h(F)&&F.focus();return}Ee(e)},onPointerMove(){oe.current=!0}}),[X,Ee,ae,y,ie,A,N,d,F]),Ae=Z.useMemo(()=>{function e(e){A.setOpen(!0,T(E,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&M(e.nativeEvent)&&(U.current=!d)}function n(e){U.current=f,f===`auto`&&fe(e.nativeEvent)&&(U.current=!0)}return{onKeyDown(t){let n=A.select(`open`);oe.current=!1;let r=t.key.startsWith(`Arrow`),i=tt(t.key,we(),u),a=$e(t.key,y),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return Ee(t);if(!(!n&&!m&&r)){if(o){let e=$e(t.key,we());G.current=l&&e?null:t.key}if(l){i&&(R(t),n?(W.current=Y(),q(t)):e(t));return}a&&(ge.current!=null&&(W.current=ge.current),R(t),!n&&m?e(t):Ee(t),n&&q(t))}},onFocus(e){A.select(`open`)&&!d&&(W.current=-1,q(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[Ee,f,Y,l,q,A,m,y,we,u,ge,d]),je=Z.useMemo(()=>({...X,...Ae}),[X,Ae]);return Z.useMemo(()=>a?{reference:je,floating:Oe,item:De,trigger:Ae}:{},[a,je,Oe,Ae,De])}function it(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f=`rootStore`in e?e.rootStore:e,p=f.useState(`open`),m=Oe(),h=Z.useRef(``),_=Z.useRef(d??i??-1),y=Z.useRef(null),b=v(e=>{function t(e){let t=r?.current[e];return!t||I(t)}function l(e){return t(e)?o==null||!z(s,e,o):!1}function f(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t0&&e.key===` `&&(R(e),c?.(!0)),h.current.length>0&&h.current[0]!==` `&&f(g,h.current)===-1&&e.key!==` `&&c?.(!1),g==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;p&&e.key!==` `&&(R(e),c?.(!0));let v=h.current===``;v&&(_.current=d??i??-1),g.every((e,t)=>e&&l(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&h.current===e.key&&(h.current=``,_.current=y.current),h.current+=e.key,m.start(u,()=>{h.current=``,_.current=y.current,c?.(!1)});let b=((v?d??i??-1:_.current)??0)+1,x=f(g,h.current,b);x===-1?e.key!==` `&&(h.current=``,c?.(!1)):(a?.(x),y.current=x)}),x=v(e=>{let t=e.relatedTarget,n=f.select(`domReferenceElement`),r=f.select(`floatingElement`);O(n,t)||O(r,t)||(m.clear(),h.current=``,_.current=y.current,c?.(!1))});g(()=>{!p&&d!==null||(m.clear(),y.current=null,h.current!==``&&(h.current=``))},[p,d,m]),g(()=>{p&&h.current===``&&(_.current=d??i??-1)},[p,d,i]);let S=Z.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Z.useMemo(()=>l?{reference:S,floating:S}:{},[l,S])}var Q=e();function at(e){let t=Z.useRef(``),n=Z.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Z.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ot(e,t){let n=Z.useRef(e),r=v(t);g(()=>{n.current!==e&&r(n.current)},[e,r]),g(()=>{n.current=e},[e])}function st(e,t){let{onClick:n,onPointerDown:r}=at(v((n,r)=>{(typeof e==`function`?e():e)||t(r||(q?`touch`:``))}));return Z.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ct(e){let[t,n]=Z.useState(null),r=st(e,n);return ot(e,t=>{t&&!e&&n(null)}),Z.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function lt(e){let[t,n]=Z.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var ut=Z.createContext(null),dt=Z.createContext(null);function ft(){let e=Z.useContext(ut);if(e===null)throw Error(u(60));return e}function pt(){let e=Z.useContext(dt);if(e===null)throw Error(u(61));return e}var mt=(e,t)=>Object.is(e,t);function ht(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function gt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:ht(t,e,n))}function _t(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:ht(e,t,n))}function vt(e,t,n){return e.filter(e=>!ht(t,e,n))}function yt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function bt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function xt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(bt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function St(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return yt(e)}function Ct(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?yt(e.value):yt(e)}function wt(e,t,n){function r(){return St(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=bt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function Tt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(Z.Fragment,{children:wt(r,t,n)},i)),e),[])}var $={id:Y(e=>e.id),labelId:Y(e=>e.labelId),modal:Y(e=>e.modal),multiple:Y(e=>e.multiple),items:Y(e=>e.items),itemToStringLabel:Y(e=>e.itemToStringLabel),itemToStringValue:Y(e=>e.itemToStringValue),isItemEqualToValue:Y(e=>e.isItemEqualToValue),value:Y(e=>e.value),hasSelectedValue:Y(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Ct(t,r)!==``}),hasNullItemLabel:Y((e,t)=>t?xt(e.items):!1),open:Y(e=>e.open),mounted:Y(e=>e.mounted),forceMount:Y(e=>e.forceMount),transitionStatus:Y(e=>e.transitionStatus),openMethod:Y(e=>e.openMethod),activeIndex:Y(e=>e.activeIndex),selectedIndex:Y(e=>e.selectedIndex),isActive:Y((e,t)=>e.activeIndex===t),isSelected:Y((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>ht(t,e,n)):ht(t,r,n)}),isSelectedByFocus:Y((e,t)=>e.selectedIndex===t),popupProps:Y(e=>e.popupProps),triggerProps:Y(e=>e.triggerProps),triggerElement:Y(e=>e.triggerElement),positionerElement:Y(e=>e.positionerElement),listElement:Y(e=>e.listElement),popupSide:Y(e=>e.popupSide),scrollUpArrowVisible:Y(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:Y(e=>e.scrollDownArrowVisible),hasScrollArrows:Y(e=>e.hasScrollArrows)};function Et(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Dt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Ot(e,t){return Math.max(0,e-t)}function kt(e,t){if(t<=0)return 0;let n=Dt(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function At(e){let{id:t,value:n,defaultValue:r=null,onValueChange:l,open:u,defaultOpen:d=!1,onOpenChange:f,name:p,form:m,autoComplete:h,disabled:_=!1,readOnly:y=!1,required:b=!1,modal:x=!0,actionsRef:C,inputRef:ee,onOpenChangeComplete:te,items:w,multiple:E=!1,itemToStringLabel:ne,itemToStringValue:D,isItemEqualToValue:O=mt,highlightItemOnHover:j=!0,children:M}=e,{clearErrors:P}=Re(),{setDirty:F,setTouched:I,setFocused:L,validityData:R,setFilled:re,name:ie,disabled:ae,validation:z,validationMode:B}=Ae(),V=A({id:t}),H=ae||_,U=ie??p,[W,G]=N({controlled:n,default:E?r??s:r,name:`Select`,state:`value`}),[K,q]=N({controlled:u,default:d,name:`Select`,state:`open`}),se=Z.useRef([]),J=Z.useRef([]),ue=Z.useRef(null),de=Z.useRef(null),fe=Z.useRef(0),pe=Z.useRef(null),he=Z.useRef([]),ge=Z.useRef(!1),ve=Z.useRef(null),ye=Z.useRef(null),be=Z.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),xe=Z.useRef(!1),{mounted:Se,setMounted:we,transitionStatus:Y}=He(K),{openMethod:Ee,triggerProps:De}=ct(K),X=c(()=>new oe({id:V,labelId:void 0,modal:x,multiple:E,itemToStringLabel:ne,itemToStringValue:D,isItemEqualToValue:O,value:W,open:K,mounted:Se,transitionStatus:Y,items:w,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Oe=k(X,$.activeIndex),ke=k(X,$.selectedIndex),je=k(X,$.triggerElement),Me=k(X,$.positionerElement),Ne=lt(Ee),Pe=Ee??Ne??null,Fe=Z.useMemo(()=>E?``:Ct(W,D),[E,W,D]),Le=Z.useMemo(()=>E&&Array.isArray(W)?W.map(e=>Ct(e,D)):Ct(W,D),[E,W,D]);ce(Te(X.state.triggerElement),V,W,v(()=>Le),!H,p);let Ve=Z.useRef(W),Ue=E?Array.isArray(W)&&W.length>0:W!=null&&Ct(W,D)!==``;g(()=>{W!==Ve.current&&X.set(`forceMount`,!0)},[X,W]),g(()=>{re(Ue)},[Ue,re]),g(function(){let e=he.current,t;if(E){let n=Array.isArray(W)?W:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=_t(e,r,O);t=i===-1?null:i}}else{let n=_t(e,W,O);t=n===-1?null:n}t===null&&(ye.current=null),!K&&X.set(`selectedIndex`,t)},[Ue,E,K,W,he,O,X,ye]);function We(e){let t=R.initialValue;return Array.isArray(e)&&Array.isArray(t)?!Et(e,t,(e,t)=>ht(e,t,O)):e!==t}ot(W,()=>{P(U),F(We(W)),z.change(W)});let Ke=v((e,t)=>{f?.(e,t),!t.isCanceled&&(q(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(I(!0),L(!1),B===`onBlur`&&z.commit(W)))}),qe=v(()=>{we(!1),X.update({activeIndex:null,openMethod:null}),te?.(!1)});le({enabled:!C,open:K,ref:ue,onComplete(){K||qe()}}),Z.useImperativeHandle(C,()=>({unmount:qe}),[qe]);let Je=v((e,t)=>{l?.(e,t),!t.isCanceled&&G(e)}),Ye=v(()=>{let e=X.state.listElement||ue.current;if(!e)return;let t=Ot(e.scrollHeight,e.clientHeight),n=kt(e.scrollTop,t),r=n>0,i=nGe(se.current[e]),onMatch(e){K?X.set(`activeIndex`,e):Je(he.current[e],T(`none`))},onTyping(e){ge.current=e}}),nt=Z.useMemo(()=>{let e=o(tt.reference,et.reference,$e.reference,Qe.reference,De);return V&&(e.id=V),e},[Qe.reference,tt.reference,et.reference,$e.reference,De,V]),at=Z.useMemo(()=>o(_e,tt.floating,et.floating,$e.floating),[tt.floating,et.floating,$e.floating]),st=et.item??i;ze(()=>{X.update({popupProps:at,triggerProps:nt})}),g(()=>{X.update({id:V,modal:x,multiple:E,value:W,open:K,mounted:Se,transitionStatus:Y,popupProps:at,triggerProps:nt,items:w,itemToStringLabel:ne,itemToStringValue:D,isItemEqualToValue:O,openMethod:Pe})},[X,V,x,E,W,K,Se,Y,at,nt,w,ne,D,O,Pe]);let ft=Z.useMemo(()=>({store:X,name:U,required:b,disabled:H,readOnly:y,multiple:E,highlightItemOnHover:j,setValue:Je,setOpen:Ke,listRef:se,popupRef:ue,scrollHandlerRef:de,handleScrollArrowVisibility:Ye,scrollArrowsMountedCountRef:fe,itemProps:st,valueRef:pe,valuesRef:he,labelsRef:J,typingRef:ge,selectionRef:be,firstItemTextRef:ve,selectedItemTextRef:ye,validation:z,onOpenChangeComplete:te,alignItemWithTriggerActiveRef:xe,initialValueRef:Ve}),[X,U,b,H,y,E,j,Je,Ke,st,z,te,Ye]),pt=a(ee,z.inputRef),gt=E&&Array.isArray(W)&&W.length>0,vt=E?void 0:U,yt=Z.useMemo(()=>!E||!Array.isArray(W)||!U?null:W.map(e=>{let t=Ct(e,D);return(0,Q.jsx)(`input`,{type:`hidden`,form:m,name:U,value:t,disabled:H},t)}),[E,W,m,U,D,H]);return(0,Q.jsx)(ut.Provider,{value:ft,children:(0,Q.jsxs)(dt.Provider,{value:Ze,children:[M,(0,Q.jsx)(`input`,{...z.getValidationProps(H,{onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||H||y)return;let t=e.currentTarget.value,n=T(S,e.nativeEvent);function r(){if(E)return;let e=t.toLowerCase(),r=he.current.findIndex(t=>Ct(t,D).toLowerCase()===e||St(t,ne).toLowerCase()===e);r===-1&&(r=he.current.findIndex((t,n)=>{let r=J.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:he.current[r];i!=null&&Je(i,n)}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:V&&vt==null?`${V}-hidden-input`:void 0,form:m,name:vt,autoComplete:h,value:Fe,disabled:H,required:b&&!gt,readOnly:y,ref:pt,style:U?Ce:Be,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),yt]})})}function jt(e,t){return e??t}function Mt(e){let t=e.getBoundingClientRect(),n=m(e);if(he)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var Nt=2,Pt=400,Ft={...Ve,...Fe,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},It=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:s=!0,style:c,...u}=e,{setTouched:d,setFocused:f,validationMode:p,state:m,disabled:h}=Ae(),{labelId:g}=we(),{store:y,setOpen:b,selectionRef:x,validation:C,readOnly:ee,required:w,alignItemWithTriggerActiveRef:E,disabled:ne}=ft(),j=h||ne||a,M=k(y,$.open),N=k(y,$.mounted),P=k(y,$.value),F=k(y,$.triggerProps),I=k(y,$.positionerElement),L=k(y,$.listElement),R=k(y,$.popupSide),re=k(y,$.id),ie=k(y,$.labelId),ae=k(y,$.hasSelectedValue),z=N&&I?R:null,B=i??re,V=jt(g,ie);A({id:B});let H=Te(I),U=Z.useRef(null),{getButtonProps:W,buttonRef:G}=_({disabled:j,native:s}),K=v(e=>{y.set(`triggerElement`,e)}),oe=Oe(),q=Oe(),se=Oe();Z.useEffect(()=>{if(M)return se.start(Pt,()=>{x.current.allowUnselectedMouseUp=!0,x.current.allowSelectedMouseUp=!0}),()=>{se.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},q.clear()},[M,x,q,se]);let ce=o(F,{id:B,role:`combobox`,"aria-expanded":M?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":M?L?.id??ue(I)?.id:void 0,"aria-labelledby":V,"aria-readonly":ee||void 0,"aria-required":w||void 0,tabIndex:j?-1:0,onFocus(e){f(!0),M&&E.current&&b(!1,T(S,e.nativeEvent)),oe.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){O(I,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&C.commit(P))},onMouseDown(e){if(M)return;let t=D(e.currentTarget);function n(e){if(!U.current)return;let t=e.target;if(O(U.current,t)||O(H.current,t))return;let n=Mt(U.current);e.clientX>=n.left-Nt&&e.clientX<=n.right+Nt&&e.clientY>=n.top-Nt&&e.clientY<=n.bottom+Nt||b(!1,T(te,e))}q.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},u,W),J=C.getValidationProps(j,ce);J.role=`combobox`;let le={...m,open:M,disabled:j,value:P,readOnly:ee,popupSide:z,placeholder:!ae};return l(`button`,e,{ref:[t,U,G,K],state:le,stateAttributesMapping:Ft,props:J})}),Lt={value:()=>null},Rt=Z.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:u}=ft(),d=k(c,$.value),f=k(c,$.items),p=k(c,$.itemToStringLabel),m=k(c,$.hasSelectedValue),h=!m&&a!=null&&i==null,g=k(c,$.hasNullItemLabel,h),_={value:d,placeholder:!m},v=null;return v=typeof i==`function`?i(d):i??(!m&&a!=null&&!g?a:Array.isArray(d)?Tt(d,f,p):wt(d,f,p)),l(`span`,e,{state:_,ref:[t,u],props:[{children:v},s],stateAttributesMapping:Lt})}),zt=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=ft();return l(`span`,e,{state:{open:k(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:Ue})}),Bt=Z.createContext(void 0),Vt=Z.forwardRef(function(e,t){let{store:n}=ft(),r=k(n,$.mounted),i=k(n,$.forceMount);return r||i?(0,Q.jsx)(Bt.Provider,{value:!0,children:(0,Q.jsx)(Le,{ref:t,...e})}):null}),Ht=Z.createContext(void 0);function Ut(){let e=Z.useContext(Ht);if(!e)throw Error(u(59));return e}function Wt(e,t){e&&Object.assign(e.style,t)}var Gt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Kt=20;function qt(e,t,n,r){let[i,a]=Z.useState(!1);g(()=>{if(!e||!t||n==null){a(!1);return}let r=D(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Kt)},[e,t,n]),X(e&&(!t||i),r)}var Jt={position:`fixed`},Yt=Z.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:_=Se,style:y,...b}=e,{store:x,listRef:C,labelsRef:ee,alignItemWithTriggerActiveRef:te,selectedItemTextRef:w,valuesRef:E,initialValueRef:ne,popupRef:D,setValue:O}=ft(),A=pt(),j=k(x,$.open),M=k(x,$.mounted),N=k(x,$.modal),F=k(x,$.value),I=k(x,$.openMethod),L=k(x,$.positionerElement),R=k(x,$.triggerElement),re=k(x,$.isItemEqualToValue),ie=k(x,$.transitionStatus),ae=Z.useRef(null),z=Z.useRef(null),[B,H]=Z.useState(h),U=M&&B&&I!==`touch`;!M&&B!==h&&H(h),g(()=>{M||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,M]),Z.useImperativeHandle(te,()=>U),qt((U||N)&&j,I===`touch`,L,R);let W=P({anchor:n,floatingRootContext:A,positionMethod:r,mounted:M,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??U,collisionAvoidance:_,keepMounted:!0}),K=U?`none`:W.side,oe=U?Jt:W.positionerStyles,q={open:j,side:K,align:W.align,anchorHidden:W.anchorHidden};g(()=>{x.set(`popupSide`,W.side)},[x,W.side]);let se=J(e,q,{styles:oe,transitionStatus:ie,props:b,refs:[t,v(e=>{x.set(`positionerElement`,e)})],hidden:!M,inert:!j}),ce=Z.useRef(0),le=v(e=>{if(e.size===0&&ce.current===0||E.current.length===0)return;let t=ce.current;if(ce.current=e.size,e.size===t)return;let n=T(S);if(t!==0&&!x.state.multiple&&F!==null&&_t(E.current,F,re)===-1){let e=ne.current,t=e!=null&&_t(E.current,e,re)!==-1?e:null;O(t,n),t===null&&(x.set(`selectedIndex`,null),w.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(F)){let e=e=>_t(E.current,e,re)!==-1,t=F.filter(t=>e(t));(t.length!==F.length||t.some(e=>!gt(F,e,re)))&&(O(t,n),t.length===0&&(x.set(`selectedIndex`,null),w.current=null))}if(j&&U){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Wt(L,e),Wt(D.current,e)}}),ue=Z.useMemo(()=>({...W,side:K,alignItemWithTriggerActive:U,setControlledAlignItemWithTrigger:H,scrollUpArrowRef:ae,scrollDownArrowRef:z}),[W,K,U,H]);return(0,Q.jsx)(qe,{elementsRef:C,labelsRef:ee,onMapChange:le,children:(0,Q.jsxs)(Ht.Provider,{value:ue,children:[M&&N&&(0,Q.jsx)(V,{inert:G(!j),cutout:R}),se]})})}),Xt=`base-ui-disable-scrollbar`,Zt={className:Xt,getElement(e){return(0,Q.jsx)(`style`,{nonce:e,href:Xt,precedence:`base-ui:low`,children:`.${Xt}{scrollbar-width:none}.${Xt}::-webkit-scrollbar{display:none}`})}},Qt=Z.createContext(void 0);function $t(e){let t=Z.useContext(Qt);if(t===void 0&&!e)throw Error(u(69));return t}var en=Z.createContext(void 0),tn={disableStyleElements:!1};function nn(){return Z.useContext(en)??tn}var rn={...ye,...W},an=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:h,multiple:_,handleScrollArrowVisibility:y,scrollHandlerRef:x,listRef:S,highlightItemOnHover:C}=ft(),{side:ee,align:te,alignItemWithTriggerActive:w,isPositioned:E,setControlledAlignItemWithTrigger:ne}=Ut(),O=$t(!0)!=null,A=pt(),M=U(),{nonce:N,disableStyleElements:P}=nn(),I=k(s,$.id),L=k(s,$.open),R=k(s,$.openMethod),re=k(s,$.mounted),ie=k(s,$.popupProps),ae=k(s,$.transitionStatus),z=k(s,$.triggerElement),B=k(s,$.positionerElement),V=k(s,$.listElement),H=Z.useRef(!1),W=Z.useRef(!1),G=Z.useRef({}),K=j(),oe=v(e=>{if(!B||!c.current||!W.current)return;if(H.current||!w){y();return}let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n){y();return}let r=cn(B),i=ln(B.getBoundingClientRect().height,`y`,r),a=D(B),o=m(B),s=o.getComputedStyle(B),l=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=on(o.getComputedStyle(c.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=sn(e),g=0,_=null,v=!1,b=!1,x=e=>{B.style.height=`${e}px`},S=(t,n)=>{let r=Dt(t,0,f-i);r>0&&x(i+r),e.scrollTop=n,f-(i+r)<=1&&(H.current=!0),y()},C=t?h-p:p,ee=Math.min(i+C,f);if(g=ee,C<=1){S(C,t?h:0);return}if(f-ee>1?t?b=!0:_=0:(v=!0,n&&p1&&(e.scrollTop=n)}(v||g>=f-1)&&(H.current=!0),y()});Z.useImperativeHandle(x,()=>oe,[oe]),le({open:L,ref:c,onComplete(){L&&u?.(!0)}});let q={open:L,transitionStatus:ae,side:ee,align:te};g(()=>{!B||!c.current||Object.keys(G.current).length||(G.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[c,B]),g(()=>{L||w||(W.current=!1,H.current=!1,Wt(B,G.current))},[L,w,B,c]),g(()=>{let e=c.current;if(!L||!z||!B||!e||w&&!E||s.state.transitionStatus===`ending`)return;if(!w){W.current=!0,K.request(y),e.style.removeProperty(`--transform-origin`);return}let t=fn(e);e.style.removeProperty(`--transform-origin`);try{let t=h.current;t?.isConnected||(t=!$.hasSelectedValue(s.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=m(B),i=r.getComputedStyle(B),a=r.getComputedStyle(e),o=D(z),c=cn(z),l=un(z.getBoundingClientRect(),c),u=un(B.getBoundingClientRect(),c),d=l.height,g=V||e,_=g.scrollHeight,v=parseFloat(a.borderBottomWidth),b=parseFloat(i.marginTop)||10,x=parseFloat(i.marginBottom)||10,ee=parseFloat(i.minHeight)||100,te=on(a),w=o.documentElement.clientHeight-b-x,T=o.documentElement.clientWidth,E=w-l.bottom+d,O,k=M===`rtl`?l.right-u.width:l.left,A=0;if(t&&n){let e=un(n.getBoundingClientRect(),c);O=un(t.getBoundingClientRect(),c),k=u.left+(M===`rtl`?e.right-O.right:e.left-O.left);let r=e.top-l.top+e.height/2;A=O.top-u.top+O.height/2-r}let j=E+A+x+v,N=Math.min(w,j),P=w-b-x,F=j-N,I=T-5;B.style.left=`${Dt(k,5,I-u.width)}px`,B.style.height=`${N}px`,B.style.maxHeight=`none`,B.style.marginTop=`${b}px`,B.style.marginBottom=`${x}px`,e.style.height=`100%`;let L=sn(g),R=F>=L-1;R&&(N=Math.min(w,u.height)-(F-L));let re=l.top<20||l.bottom>w-20||Math.ceil(N)+1=P?`0`:`${e}px`,B.style.height=`${N}px`,g.scrollTop=sn(g)}else B.style.bottom=`0`,g.scrollTop=F;if(O){let t=u.top,n=u.height,r=O.top+O.height/2,i=Dt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(ae===w||N>=te)&&(H.current=!0),y(),C&&s.state.selectedIndex===null&&s.state.activeIndex===null&&S.current[0]!=null&&s.set(`activeIndex`,0),W.current=!0}finally{t()}},[s,L,B,z,f,p,h,c,y,w,ne,K,V,S,C,M,E]),Z.useEffect(()=>{if(!w||!B||!L)return;let e=m(B);function t(e){d(!1,T(b,e))}return Ne(e,`resize`,t)},[d,w,B,L]);let se={...V?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":_||void 0,id:`${I}-list`},onKeyDown(e){O&&de.has(e.key)&&e.stopPropagation()},onScroll(e){V||oe(e.currentTarget)},...w&&{style:V?{height:`100%`}:Gt}},ce=l(`div`,e,{ref:[t,c],state:q,stateAttributesMapping:rn,props:[ie,se,F(ae),{className:!V&&w?Zt.className:void 0},o]});return(0,Q.jsxs)(Z.Fragment,{children:[!P&&Zt.getElement(N),(0,Q.jsx)(De,{context:A,modal:!1,disabled:!re,openInteractionType:R,returnFocus:a,restoreFocus:!0,children:ce})]})});function on(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function sn(e){return Ot(e.scrollHeight,e.clientHeight)}function cn(e){return je.getScale(e)}function ln(e,t,n){return e/n[t]}function un(e,t){return se({x:ln(e.x,`x`,t),y:ln(e.y,`y`,t),width:ln(e.width,`x`,t),height:ln(e.height,`y`,t)})}var dn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function fn(e){let{style:t}=e,n={};for(let[e,r]of dn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of dn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var pn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=ft(),{alignItemWithTriggerActive:c}=Ut(),u=k(o,$.hasScrollArrows),d=k(o,$.openMethod),f=k(o,$.multiple),p={id:`${k(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Gt},className:u&&d!==`touch`?Zt.className:void 0};return l(`div`,e,{ref:[t,v(e=>{o.set(`listElement`,e)})],props:[p,a]})}),mn=Z.createContext(void 0);function hn(){let e=Z.useContext(mn);if(!e)throw Error(u(57));return e}var gn=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...u}=e,d=Z.useRef(null),f=Ke({label:o,textRef:d,indexGuessBehavior:Je.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:v,selectionRef:y,typingRef:b,valuesRef:x,multiple:S,selectedItemTextRef:C,disabled:te,readOnly:w}=ft(),E=k(p,$.isActive,f.index),ne=k(p,$.open),D=k(p,$.isSelected,a),O=k(p,$.isSelectedByFocus,f.index),A=k(p,$.isItemEqualToValue),j=f.index,N=j!==-1,P=Z.useRef(null);g(()=>{if(!N)return;let e=x.current;return e[j]=a,()=>{delete e[j]}},[N,j,a,x]),g(()=>{if(!N)return;let e=p.state.value,t=e;S&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&ht(a,t,A)&&(p.set(`selectedIndex`,j),d.current&&(C.current=d.current))},[N,j,S,A,p,a,C]);let F=Z.useRef(null),I=Z.useRef(`mouse`),L=Z.useRef(!1),{getButtonProps:R,buttonRef:re}=_({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),ie={disabled:s,selected:D,highlighted:E};function ae(e){if(te||w)return;let t=p.state.value;if(S){let n=Array.isArray(t)?t:[],r=D?vt(n,a,A):[...n,a];v(r,T(ee,e))}else v(a,T(ee,e)),h(!1,T(ee,e))}function z(){y.current.dragY=0}let B={role:`option`,"aria-selected":D,tabIndex:ne&&E?0:-1,onKeyDown(e){F.current=e.key,p.set(`activeIndex`,j),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&I.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&M(e.nativeEvent)&&(n!==void 0||E),i=t&&!r&&!L.current;L.current=!1,!(e.type===`keydown`&&F.current===null)&&(s||e.type===`keydown`&&F.current===` `&&b.current||i||(F.current=null,ae(e.nativeEvent)))},onPointerEnter(e){I.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=y.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){I.current=e.pointerType,L.current=!0,z()},onMouseUp(){if(z(),s||I.current===`touch`||L.current)return;let e=!y.current.allowSelectedMouseUp&&D,t=!y.current.allowUnselectedMouseUp&&!D;e||t||(L.current=!0,P.current?.click(),L.current=!1)}},V=l(`div`,e,{ref:[re,t,f.ref,P],state:ie,props:[m,B,u,R]}),H=Z.useMemo(()=>({selected:D,index:j,textRef:d,selectedByFocus:O,hasRegistered:N}),[D,j,d,O,N]);return(0,Q.jsx)(mn.Provider,{value:H,children:V})})),_n=Z.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=hn();return n||r?(0,Q.jsx)(vn,{...e,ref:t}):null}),vn=Z.memo(Z.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=hn(),c=Z.useRef(null),{transitionStatus:u,setMounted:d}=He(s),f=l(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:W});return le({open:s,ref:c,onComplete(){s||d(!1)}}),f})),yn=Z.memo(Z.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=hn(),{firstItemTextRef:o,selectedItemTextRef:s}=ft(),{render:c,className:u,style:d,...f}=e;return l(`div`,e,{ref:[Z.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:f})})),bn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=ft(),{side:h,scrollDownArrowRef:_,scrollUpArrowRef:v}=Ut(),y=k(u,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=k(u,$.openMethod),x=y&&b!==`touch`,S=Oe(),C=c?v:_,{mounted:ee,transitionStatus:te,setMounted:w}=He(x);g(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),le({open:x,ref:C,onComplete(){x||w(!1)}});let T=l(`div`,e,{ref:[t,C],state:{direction:a,visible:x,side:h,transitionStatus:te},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=Ot(e.scrollHeight,e.clientHeight),r=kt(e.scrollTop,n),i=r===(c?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=xn(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s],stateAttributesMapping:W});return ee||o?T:null});function xn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?kt(l.offsetTop+l.offsetHeight-r+i,a):a}var Sn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`down`})}),Cn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`up`})}),wn=Z.createContext(void 0);function Tn(){let e=Z.useContext(wn);if(e===void 0)throw Error(u(56));return e}var En=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Z.useState(),c=Z.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),u=l(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Q.jsx)(wn.Provider,{value:c,children:u})}),Dn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Tn(),c=y(a);return g(()=>{s(c)},[c,s]),l(`div`,e,{ref:t,props:[{id:c},o]})}),On=r(),kn=At;function An(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`scroll-my-1 p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(En,{className:i,"data-slot":`select-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function jn(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Rt,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Mn(e){let t=(0,On.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,size:o,id:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`default`:o,c;t[6]===r?c=t[7]:(c=d(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Q.jsx)(zt,{render:(0,Q.jsx)(p,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==s||t[13]!==c?(u=(0,Q.jsxs)(It,{className:c,"data-size":s,"data-slot":`select-trigger`,id:i,...a,children:[n,l]}),t[9]=n,t[10]=i,t[11]=a,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function Nn(e){let t=(0,On.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=a===void 0?`bottom`:a,f=o===void 0?4:o,p=s===void 0?`center`:s,m=c===void 0?0:c,h=l===void 0?!0:l,g;t[9]===r?g=t[10]:(g=d(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Q.jsx)(Ln,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Q.jsx)(pn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(Rn,{}),t[14]=y):y=t[14];let b;t[15]!==i||t[16]!==g||t[17]!==v?(b=(0,Q.jsxs)(an,{className:g,"data-slot":`select-content`,...i,children:[_,v,y]}),t[15]=i,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==u||t[23]!==f||t[24]!==b?(x=(0,Q.jsx)(Vt,{children:(0,Q.jsx)(Yt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:u,sideOffset:f,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=u,t[23]=f,t[24]=b,t[25]=x):x=t[25],x}function Pn(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Dn,{className:i,"data-slot":`select-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fn(e){let t=(0,On.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=d(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=(0,Q.jsx)(yn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=o);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(_n,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Q.jsx)(f,{className:`pointer-events-none`})}),t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Q.jsxs)(gn,{className:a,"data-slot":`select-item`,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function In(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(xe,{className:i,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ln(e){let t=(0,On.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(Ye,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Cn,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Rn(e){let t=(0,On.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(p,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Sn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{Pn as a,jn as c,Fn as i,Nn as n,In as o,An as r,Mn as s,kn as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,f as o,i as s,l as c,n as l,u}from"./dist.js";import{Ft as d}from"./auth.js";import{t as f}from"./check.js";import{t as p}from"./chevron-down.js";import{_ as m,b as h,o as g,r as _,s as v}from"./button.js";import{S as y,_ as b,b as x,f as S,g as C,l as w,n as ee,o as T,t as E,u as D,v as te,x as O,y as k}from"./createBaseUIEventDetails.js";import{$r as A,Bn as j,Br as M,Dr as N,Er as P,Fn as F,Gr as I,Hn as ne,Hr as re,In as ie,Jr as L,Kr as R,Ln as z,Lr as B,Mr as V,Nr as H,Or as U,Pn as W,Pr as G,Qr as ae,Sr as K,Un as oe,Ur as se,Vr as ce,Wr as q,Xn as le,Xr as ue,Yr as de,Zr as J,_r as fe,ai as pe,ar as me,br as he,ci as ge,cr as Y,di as _e,dr as ve,ei as ye,fi as be,fr as xe,gr as Se,hr as Ce,ii as we,jr as Te,kr as Ee,li as De,lr as X,mr as Oe,ni as ke,oi as Ae,or as je,pr as Me,qr as Ne,ri as Pe,si as Fe,sr as Ie,ti as Le,ui as Re,ur as ze,vr as Be,wi as Ve,xr as He,yr as Ue,zr as We}from"./index.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./useCompositeListItem.js";var Ye=Ve(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=t(n(),1);function Xe(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=C}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=Z.useRef(void 0),p=We(),m=M(),h=Z.useMemo(()=>{function e(e,t,n,r){let i=E(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||L(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=x(a);if(ye(l)){e(c,a,l,i);return}let d=n.currentTarget;p.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}L(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,o,l,u,s,a,p,m,c]);return Z.useMemo(()=>n?{reference:h}:i,[n,h])}var Ze=`Escape`;function Qe(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function $e(e,t){return Qe(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function et(e,t,n){return Qe(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function tt(e,t,n){return Qe(t,n?e===ke:e===Pe,e===Le)}function nt(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Ze:Qe(t,n?e===Pe:e===ke,e===we)}function rt(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:_=void 0,orientation:y=`vertical`,parentOrientation:b,id:S,resetOnPointerLeave:C=!0,externalTree:w,grid:ee}=t,j=ee!=null,M=`rootStore`in e?e.rootStore:e,N=M.useState(`open`),P=M.useState(`floatingElement`),F=M.useState(`domReferenceElement`),ne=M.context.dataRef,ie=ae(P),L=A(F),R=He(ie),z=Oe(),B=Ce(w),V=Z.useRef(f),H=Z.useRef(o??-1),U=Z.useRef(null),W=Z.useRef(!0),G=v(e=>{i(H.current===-1?null:H.current,e)}),K=Z.useRef(!!P),oe=Z.useRef(N),q=Z.useRef(!1),le=Z.useRef(!1),fe=Z.useRef(null),pe=He(_),me=He(N),he=He(o),ge=He(C),Y=We(),_e=We(),ve=v(()=>{function e(e){d?B?.events.emit(`virtualfocus`,e):fe.current=Be(e,{sync:q.current,preventScroll:!0})}let t=n.current[H.current],r=le.current;t&&e(t),(q.current?e=>e():e=>Y.request(e))(()=>{let i=n.current[H.current]||t;i&&(t||e(i),Te&&(r||!W.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});g(()=>{ne.current.orientation=y},[ne,y]),g(()=>{a&&(N&&P?(H.current=o??-1,V.current&&o!=null&&(le.current=!0,G())):K.current&&(H.current=-1,G()))},[a,N,P,o,G]),g(()=>{if(a){if(!N){q.current=!1;return}if(P)if(r==null){if(q.current=!1,he.current!=null)return;if(K.current&&(H.current=-1,ve()),(!oe.current||!K.current)&&V.current&&(U.current!=null||V.current===!0&&U.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>_e.request(e):queueMicrotask)(t),e+=1):(H.current=U.current==null||et(U.current,y,u)||l?se(n):re(n),U.current=null,G())};t()}}else I(n.current,r)||(H.current=r,ve(),le.current=!1)}},[a,N,P,r,he,l,n,y,u,G,ve,_e]),g(()=>{if(!a||P||!B||d||!K.current)return;let e=B.nodesRef.current,t=e.find(e=>e.id===z)?.context?.elements.floating,n=te(O(F??t??null)),r=e.some(e=>e.context&&k(e.context.elements.floating,n));t&&!r&&W.current&&t.focus({preventScroll:!0})},[a,P,F,B,z,d]),g(()=>{oe.current=N,K.current=!!P}),g(()=>{N||(U.current=null,V.current=f)},[N,f]);let ye=r!=null,be=v(e=>{if(!me.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(H.current!==t||r!==t)&&(H.current=t,G(e))}),xe=v(()=>b??B?.nodesRef.current.find(e=>e.id===z)?.context?.dataRef?.current.orientation),Se=v(()=>se(n,pe.current)),we=v(e=>{if(W.current=!1,q.current=!0,e.which===229||!me.current&&e.currentTarget===R.current)return;if(l&&nt(e.key,y,u,j)){$e(e.key,xe())||J(e),M.setOpen(!1,E(D,e.nativeEvent)),h(F)&&(d?B?.events.emit(`virtualfocus`,F):F.focus());return}let t=H.current,r=se(n,_),i=re(n,_);if(L||(e.key===`Home`&&(J(e),H.current=r,G(e)),e.key===`End`&&(J(e),H.current=i,G(e))),ee!=null){let t=ee(e,H.current,n,y,c,u,_,r,i);if(t!=null&&(H.current=t,G(e)),y===`both`)return}if($e(e.key,y)){if(J(e),N&&!d&&te(e.currentTarget.ownerDocument)===e.currentTarget){H.current=et(e.key,y,u)?r:i,G(e);return}et(e.key,y,u)?c?t>=i?s&&t!==n.current.length?H.current=-1:(q.current=!1,H.current=r):H.current=ce(n.current,{startingIndex:t,disabledIndices:_}):H.current=Math.min(i,ce(n.current,{startingIndex:t,disabledIndices:_})):c?t<=r?s&&t!==-1?H.current=n.current.length:(q.current=!1,H.current=i):H.current=ce(n.current,{startingIndex:t,decrement:!0,disabledIndices:_}):H.current=Math.max(r,ce(n.current,{startingIndex:t,decrement:!0,disabledIndices:_})),I(n.current,H.current)&&(H.current=-1),G(e)}}),Te=Z.useMemo(()=>({onFocus(e){q.current=!0,be(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){q.current=!0,le.current=!1,p&&be(e)},onPointerLeave(e){if(!me.current||!W.current||e.pointerType===`touch`)return;q.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&ge.current&&(fe.current?.(),fe.current=null,H.current=-1,G(e),!d)){let e=R.current,t=te(O(e));e&&k(e,t)&&e.focus({preventScroll:!0})}}}),[be,me,R,p,n,G,ge,d]),Ee=Z.useMemo(()=>d&&N&&ye&&{"aria-activedescendant":`${S}-${r}`},[d,N,ye,S,r]),De=Z.useMemo(()=>({"aria-orientation":y===`both`?void 0:y,...L?{}:Ee,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&N&&!d){let t=x(e.nativeEvent);if(t&&!k(R.current,t))return;J(e),M.setOpen(!1,E(T,e.nativeEvent)),h(F)&&F.focus();return}we(e)},onPointerMove(){W.current=!0}}),[Ee,we,R,y,L,M,N,d,F]),X=Z.useMemo(()=>{function e(e){M.setOpen(!0,E(D,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&de(e.nativeEvent)&&(V.current=!d)}function n(e){V.current=f,f===`auto`&&ue(e.nativeEvent)&&(V.current=!0)}return{onKeyDown(t){let n=M.select(`open`);W.current=!1;let r=t.key.startsWith(`Arrow`),i=tt(t.key,xe(),u),a=$e(t.key,y),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return we(t);if(!(!n&&!m&&r)){if(o){let e=$e(t.key,xe());U.current=l&&e?null:t.key}if(l){i&&(J(t),n?(H.current=Se(),G(t)):e(t));return}a&&(he.current!=null&&(H.current=he.current),J(t),!n&&m?e(t):we(t),n&&G(t))}},onFocus(e){M.select(`open`)&&!d&&(H.current=-1,G(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[we,f,Se,l,G,M,m,y,xe,u,he,d]),ke=Z.useMemo(()=>({...Ee,...X}),[Ee,X]);return Z.useMemo(()=>a?{reference:ke,floating:De,item:Te,trigger:X}:{},[a,ke,De,X,Te])}function it(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f=`rootStore`in e?e.rootStore:e,p=f.useState(`open`),m=M(),h=Z.useRef(``),_=Z.useRef(d??i??-1),y=Z.useRef(null),b=v(e=>{function t(e){let t=r?.current[e];return!t||q(t)}function l(e){return t(e)?o==null||!R(s,e,o):!1}function f(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t0&&e.key===` `&&(J(e),c?.(!0)),h.current.length>0&&h.current[0]!==` `&&f(g,h.current)===-1&&e.key!==` `&&c?.(!1),g==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;p&&e.key!==` `&&(J(e),c?.(!0));let v=h.current===``;v&&(_.current=d??i??-1),g.every((e,t)=>e&&l(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&h.current===e.key&&(h.current=``,_.current=y.current),h.current+=e.key,m.start(u,()=>{h.current=``,_.current=y.current,c?.(!1)});let b=((v?d??i??-1:_.current)??0)+1,x=f(g,h.current,b);x===-1?e.key!==` `&&(h.current=``,c?.(!1)):(a?.(x),y.current=x)}),x=v(e=>{let t=e.relatedTarget,n=f.select(`domReferenceElement`),r=f.select(`floatingElement`);k(n,t)||k(r,t)||(m.clear(),h.current=``,_.current=y.current,c?.(!1))});g(()=>{!p&&d!==null||(m.clear(),y.current=null,h.current!==``&&(h.current=``))},[p,d,m]),g(()=>{p&&h.current===``&&(_.current=d??i??-1)},[p,d,i]);let S=Z.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Z.useMemo(()=>l?{reference:S,floating:S}:{},[l,S])}var Q=e();function at(e){let t=Z.useRef(``),n=Z.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Z.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ot(e,t){let n=Z.useRef(e),r=v(t);g(()=>{n.current!==e&&r(n.current)},[e,r]),g(()=>{n.current=e},[e])}function st(e,t){let{onClick:n,onPointerDown:r}=at(v((n,r)=>{(typeof e==`function`?e():e)||t(r||(Fe?`touch`:``))}));return Z.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ct(e){let[t,n]=Z.useState(null),r=st(e,n);return ot(e,t=>{t&&!e&&n(null)}),Z.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function lt(e){let[t,n]=Z.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var ut=Z.createContext(null),dt=Z.createContext(null);function ft(){let e=Z.useContext(ut);if(e===null)throw Error(u(60));return e}function pt(){let e=Z.useContext(dt);if(e===null)throw Error(u(61));return e}var mt=(e,t)=>Object.is(e,t);function ht(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function gt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:ht(t,e,n))}function _t(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:ht(e,t,n))}function vt(e,t,n){return e.filter(e=>!ht(t,e,n))}function yt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function bt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function xt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(bt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function St(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return yt(e)}function Ct(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?yt(e.value):yt(e)}function wt(e,t,n){function r(){return St(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=bt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function Tt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(Z.Fragment,{children:wt(r,t,n)},i)),e),[])}var $={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Ct(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?xt(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>ht(t,e,n)):ht(t,r,n)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),popupSide:X(e=>e.popupSide),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)};function Et(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Dt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Ot(e,t){return Math.max(0,e-t)}function kt(e,t){if(t<=0)return 0;let n=Dt(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function At(e){let{id:t,value:n,defaultValue:r=null,onValueChange:l,open:u,defaultOpen:d=!1,onOpenChange:f,name:p,form:m,autoComplete:h,disabled:_=!1,readOnly:y=!1,required:b=!1,modal:x=!0,actionsRef:C,inputRef:w,onOpenChangeComplete:ee,items:T,multiple:D=!1,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k=mt,highlightItemOnHover:A=!0,children:j}=e,{clearErrors:M}=Re(),{setDirty:N,setTouched:P,setFocused:F,validityData:I,setFilled:ne,name:re,disabled:ie,validation:L,validationMode:R}=_e(),z=ge({id:t}),B=ie||_,U=re??p,[W,ae]=V({controlled:n,default:D?r??s:r,name:`Select`,state:`value`}),[K,oe]=V({controlled:u,default:d,name:`Select`,state:`open`}),se=Z.useRef([]),ce=Z.useRef([]),q=Z.useRef(null),le=Z.useRef(null),ue=Z.useRef(0),de=Z.useRef(null),J=Z.useRef([]),fe=Z.useRef(!1),pe=Z.useRef(null),ve=Z.useRef(null),ye=Z.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),be=Z.useRef(!1),{mounted:Se,setMounted:Ce,transitionStatus:we}=H(K),{openMethod:Ee,triggerProps:De}=ct(K),X=c(()=>new Ie({id:z,labelId:void 0,modal:x,multiple:D,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k,value:W,open:K,mounted:Se,transitionStatus:we,items:T,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Oe=Y(X,$.activeIndex),ke=Y(X,$.selectedIndex),Ae=Y(X,$.triggerElement),Me=Y(X,$.positionerElement),Ne=lt(Ee),Pe=Ee??Ne??null,Fe=Z.useMemo(()=>D?``:Ct(W,O),[D,W,O]),Le=Z.useMemo(()=>D&&Array.isArray(W)?W.map(e=>Ct(e,O)):Ct(W,O),[D,W,O]);Te(He(X.state.triggerElement),z,W,v(()=>Le),!B,p);let Be=Z.useRef(W),Ve=D?Array.isArray(W)&&W.length>0:W!=null&&Ct(W,O)!==``;g(()=>{W!==Be.current&&X.set(`forceMount`,!0)},[X,W]),g(()=>{ne(Ve)},[Ve,ne]),g(function(){let e=J.current,t;if(D){let n=Array.isArray(W)?W:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=_t(e,r,k);t=i===-1?null:i}}else{let n=_t(e,W,k);t=n===-1?null:n}t===null&&(ve.current=null),!K&&X.set(`selectedIndex`,t)},[Ve,D,K,W,J,k,X,ve]);function We(e){let t=I.initialValue;return Array.isArray(e)&&Array.isArray(t)?!Et(e,t,(e,t)=>ht(e,t,k)):e!==t}ot(W,()=>{M(U),N(We(W)),L.change(W)});let Ke=v((e,t)=>{f?.(e,t),!t.isCanceled&&(oe(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(P(!0),F(!1),R===`onBlur`&&L.commit(W)))}),qe=v(()=>{Ce(!1),X.update({activeIndex:null,openMethod:null}),ee?.(!1)});G({enabled:!C,open:K,ref:q,onComplete(){K||qe()}}),Z.useImperativeHandle(C,()=>({unmount:qe}),[qe]);let Je=v((e,t)=>{l?.(e,t),!t.isCanceled&&ae(e)}),Ye=v(()=>{let e=X.state.listElement||q.current;if(!e)return;let t=Ot(e.scrollHeight,e.clientHeight),n=kt(e.scrollTop,t),r=n>0,i=nGe(se.current[e]),onMatch(e){K?X.set(`activeIndex`,e):Je(J.current[e],E(`none`))},onTyping(e){fe.current=e}}),nt=Z.useMemo(()=>{let e=o(tt.reference,et.reference,$e.reference,Qe.reference,De);return z&&(e.id=z),e},[Qe.reference,tt.reference,et.reference,$e.reference,De,z]),at=Z.useMemo(()=>o(je,tt.floating,et.floating,$e.floating),[tt.floating,et.floating,$e.floating]),st=et.item??i;ze(()=>{X.update({popupProps:at,triggerProps:nt})}),g(()=>{X.update({id:z,modal:x,multiple:D,value:W,open:K,mounted:Se,transitionStatus:we,popupProps:at,triggerProps:nt,items:T,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k,openMethod:Pe})},[X,z,x,D,W,K,Se,we,at,nt,T,te,O,k,Pe]);let ft=Z.useMemo(()=>({store:X,name:U,required:b,disabled:B,readOnly:y,multiple:D,highlightItemOnHover:A,setValue:Je,setOpen:Ke,listRef:se,popupRef:q,scrollHandlerRef:le,handleScrollArrowVisibility:Ye,scrollArrowsMountedCountRef:ue,itemProps:st,valueRef:de,valuesRef:J,labelsRef:ce,typingRef:fe,selectionRef:ye,firstItemTextRef:pe,selectedItemTextRef:ve,validation:L,onOpenChangeComplete:ee,alignItemWithTriggerActiveRef:be,initialValueRef:Be}),[X,U,b,B,y,D,A,Je,Ke,st,L,ee,Ye]),pt=a(w,L.inputRef),gt=D&&Array.isArray(W)&&W.length>0,vt=D?void 0:U,yt=Z.useMemo(()=>!D||!Array.isArray(W)||!U?null:W.map(e=>{let t=Ct(e,O);return(0,Q.jsx)(`input`,{type:`hidden`,form:m,name:U,value:t,disabled:B},t)}),[D,W,m,U,O,B]);return(0,Q.jsx)(ut.Provider,{value:ft,children:(0,Q.jsxs)(dt.Provider,{value:Ze,children:[j,(0,Q.jsx)(`input`,{...L.getValidationProps(B,{onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||B||y)return;let t=e.currentTarget.value,n=E(S,e.nativeEvent);function r(){if(D)return;let e=t.toLowerCase(),r=J.current.findIndex(t=>Ct(t,O).toLowerCase()===e||St(t,te).toLowerCase()===e);r===-1&&(r=J.current.findIndex((t,n)=>{let r=ce.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:J.current[r];i!=null&&Je(i,n)}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:z&&vt==null?`${z}-hidden-input`:void 0,form:m,name:vt,autoComplete:h,value:Fe,disabled:B,required:b&&!gt,readOnly:y,ref:pt,style:U?he:Ue,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),yt]})})}function jt(e,t){return e??t}function Mt(e){let t=e.getBoundingClientRect(),n=m(e);if(pe)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var Nt=2,Pt=400,Ft={...N,...be,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},It=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:s=!0,style:c,...u}=e,{setTouched:d,setFocused:f,validationMode:p,state:m,disabled:h}=_e(),{labelId:g}=De(),{store:y,setOpen:b,selectionRef:x,validation:C,readOnly:w,required:T,alignItemWithTriggerActiveRef:D,disabled:te}=ft(),A=h||te||a,j=Y(y,$.open),N=Y(y,$.mounted),P=Y(y,$.value),F=Y(y,$.triggerProps),I=Y(y,$.positionerElement),ne=Y(y,$.listElement),re=Y(y,$.popupSide),ie=Y(y,$.id),L=Y(y,$.labelId),R=Y(y,$.hasSelectedValue),z=N&&I?re:null,B=i??ie,V=jt(g,L);ge({id:B});let H=He(I),U=Z.useRef(null),{getButtonProps:W,buttonRef:G}=_({disabled:A,native:s}),K=v(e=>{y.set(`triggerElement`,e)}),oe=M(),se=M(),ce=M();Z.useEffect(()=>{if(j)return ce.start(Pt,()=>{x.current.allowUnselectedMouseUp=!0,x.current.allowSelectedMouseUp=!0}),()=>{ce.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},se.clear()},[j,x,se,ce]);let q=o(F,{id:B,role:`combobox`,"aria-expanded":j?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":j?ne?.id??ae(I)?.id:void 0,"aria-labelledby":V,"aria-readonly":w||void 0,"aria-required":T||void 0,tabIndex:A?-1:0,onFocus(e){f(!0),j&&D.current&&b(!1,E(S,e.nativeEvent)),oe.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){k(I,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&C.commit(P))},onMouseDown(e){if(j)return;let t=O(e.currentTarget);function n(e){if(!U.current)return;let t=e.target;if(k(U.current,t)||k(H.current,t))return;let n=Mt(U.current);e.clientX>=n.left-Nt&&e.clientX<=n.right+Nt&&e.clientY>=n.top-Nt&&e.clientY<=n.bottom+Nt||b(!1,E(ee,e))}se.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},u,W),le=C.getValidationProps(A,q);le.role=`combobox`;let ue={...m,open:j,disabled:A,value:P,readOnly:w,popupSide:z,placeholder:!R};return l(`button`,e,{ref:[t,U,G,K],state:ue,stateAttributesMapping:Ft,props:le})}),Lt={value:()=>null},Rt=Z.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:u}=ft(),d=Y(c,$.value),f=Y(c,$.items),p=Y(c,$.itemToStringLabel),m=Y(c,$.hasSelectedValue),h=!m&&a!=null&&i==null,g=Y(c,$.hasNullItemLabel,h),_={value:d,placeholder:!m},v=null;return v=typeof i==`function`?i(d):i??(!m&&a!=null&&!g?a:Array.isArray(d)?Tt(d,f,p):wt(d,f,p)),l(`span`,e,{state:_,ref:[t,u],props:[{children:v},s],stateAttributesMapping:Lt})}),zt=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=ft();return l(`span`,e,{state:{open:Y(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:U})}),Bt=Z.createContext(void 0),Vt=Z.forwardRef(function(e,t){let{store:n}=ft(),r=Y(n,$.mounted),i=Y(n,$.forceMount);return r||i?(0,Q.jsx)(Bt.Provider,{value:!0,children:(0,Q.jsx)(Se,{ref:t,...e})}):null}),Ht=Z.createContext(void 0);function Ut(){let e=Z.useContext(Ht);if(!e)throw Error(u(59));return e}function Wt(e,t){e&&Object.assign(e.style,t)}var Gt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Kt=20;function qt(e,t,n,r){let[i,a]=Z.useState(!1);g(()=>{if(!e||!t||n==null){a(!1);return}let r=O(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Kt)},[e,t,n]),j(e&&(!t||i),r)}var Jt={position:`fixed`},Yt=Z.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:_=fe,style:y,...b}=e,{store:x,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:ee,selectedItemTextRef:T,valuesRef:D,initialValueRef:te,popupRef:O,setValue:k}=ft(),A=pt(),j=Y(x,$.open),M=Y(x,$.mounted),N=Y(x,$.modal),P=Y(x,$.value),F=Y(x,$.openMethod),I=Y(x,$.positionerElement),re=Y(x,$.triggerElement),L=Y(x,$.isItemEqualToValue),R=Y(x,$.transitionStatus),z=Z.useRef(null),B=Z.useRef(null),[V,H]=Z.useState(h),U=M&&V&&F!==`touch`;!M&&V!==h&&H(h),g(()=>{M||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,M]),Z.useImperativeHandle(ee,()=>U),qt((U||N)&&j,F===`touch`,I,re);let G=ie({anchor:n,floatingRootContext:A,positionMethod:r,mounted:M,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??U,collisionAvoidance:_,keepMounted:!0}),ae=U?`none`:G.side,K=U?Jt:G.positionerStyles,se={open:j,side:ae,align:G.align,anchorHidden:G.anchorHidden};g(()=>{x.set(`popupSide`,G.side)},[x,G.side]);let ce=W(e,se,{styles:K,transitionStatus:R,props:b,refs:[t,v(e=>{x.set(`positionerElement`,e)})],hidden:!M,inert:!j}),q=Z.useRef(0),le=v(e=>{if(e.size===0&&q.current===0||D.current.length===0)return;let t=q.current;if(q.current=e.size,e.size===t)return;let n=E(S);if(t!==0&&!x.state.multiple&&P!==null&&_t(D.current,P,L)===-1){let e=te.current,t=e!=null&&_t(D.current,e,L)!==-1?e:null;k(t,n),t===null&&(x.set(`selectedIndex`,null),T.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(P)){let e=e=>_t(D.current,e,L)!==-1,t=P.filter(t=>e(t));(t.length!==P.length||t.some(e=>!gt(P,e,L)))&&(k(t,n),t.length===0&&(x.set(`selectedIndex`,null),T.current=null))}if(j&&U){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Wt(I,e),Wt(O.current,e)}}),ue=Z.useMemo(()=>({...G,side:ae,alignItemWithTriggerActive:U,setControlledAlignItemWithTrigger:H,scrollUpArrowRef:z,scrollDownArrowRef:B}),[G,ae,U,H]);return(0,Q.jsx)(qe,{elementsRef:C,labelsRef:w,onMapChange:le,children:(0,Q.jsxs)(Ht.Provider,{value:ue,children:[M&&N&&(0,Q.jsx)(ne,{inert:oe(!j),cutout:re}),ce]})})}),Xt=`base-ui-disable-scrollbar`,Zt={className:Xt,getElement(e){return(0,Q.jsx)(`style`,{nonce:e,href:Xt,precedence:`base-ui:low`,children:`.${Xt}{scrollbar-width:none}.${Xt}::-webkit-scrollbar{display:none}`})}},Qt=Z.createContext(void 0);function $t(e){let t=Z.useContext(Qt);if(t===void 0&&!e)throw Error(u(69));return t}var en=Z.createContext(void 0),tn={disableStyleElements:!1};function nn(){return Z.useContext(en)??tn}var rn={...P,...B},an=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:h,multiple:_,handleScrollArrowVisibility:y,scrollHandlerRef:x,listRef:S,highlightItemOnHover:C}=ft(),{side:w,align:ee,alignItemWithTriggerActive:T,isPositioned:D,setControlledAlignItemWithTrigger:te}=Ut(),k=$t(!0)!=null,A=pt(),j=z(),{nonce:M,disableStyleElements:N}=nn(),P=Y(s,$.id),I=Y(s,$.open),ne=Y(s,$.openMethod),re=Y(s,$.mounted),ie=Y(s,$.popupProps),L=Y(s,$.transitionStatus),R=Y(s,$.triggerElement),B=Y(s,$.positionerElement),V=Y(s,$.listElement),H=Z.useRef(!1),U=Z.useRef(!1),W=Z.useRef({}),ae=We(),oe=v(e=>{if(!B||!c.current||!U.current)return;if(H.current||!T){y();return}let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n){y();return}let r=cn(B),i=ln(B.getBoundingClientRect().height,`y`,r),a=O(B),o=m(B),s=o.getComputedStyle(B),l=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=on(o.getComputedStyle(c.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=sn(e),g=0,_=null,v=!1,b=!1,x=e=>{B.style.height=`${e}px`},S=(t,n)=>{let r=Dt(t,0,f-i);r>0&&x(i+r),e.scrollTop=n,f-(i+r)<=1&&(H.current=!0),y()},C=t?h-p:p,w=Math.min(i+C,f);if(g=w,C<=1){S(C,t?h:0);return}if(f-w>1?t?b=!0:_=0:(v=!0,n&&p1&&(e.scrollTop=n)}(v||g>=f-1)&&(H.current=!0),y()});Z.useImperativeHandle(x,()=>oe,[oe]),G({open:I,ref:c,onComplete(){I&&u?.(!0)}});let se={open:I,transitionStatus:L,side:w,align:ee};g(()=>{!B||!c.current||Object.keys(W.current).length||(W.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[c,B]),g(()=>{I||T||(U.current=!1,H.current=!1,Wt(B,W.current))},[I,T,B,c]),g(()=>{let e=c.current;if(!I||!R||!B||!e||T&&!D||s.state.transitionStatus===`ending`)return;if(!T){U.current=!0,ae.request(y),e.style.removeProperty(`--transform-origin`);return}let t=fn(e);e.style.removeProperty(`--transform-origin`);try{let t=h.current;t?.isConnected||(t=!$.hasSelectedValue(s.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=m(B),i=r.getComputedStyle(B),a=r.getComputedStyle(e),o=O(R),c=cn(R),l=un(R.getBoundingClientRect(),c),u=un(B.getBoundingClientRect(),c),d=l.height,g=V||e,_=g.scrollHeight,v=parseFloat(a.borderBottomWidth),b=parseFloat(i.marginTop)||10,x=parseFloat(i.marginBottom)||10,w=parseFloat(i.minHeight)||100,ee=on(a),T=o.documentElement.clientHeight-b-x,E=o.documentElement.clientWidth,D=T-l.bottom+d,k,A=j===`rtl`?l.right-u.width:l.left,M=0;if(t&&n){let e=un(n.getBoundingClientRect(),c);k=un(t.getBoundingClientRect(),c),A=u.left+(j===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-l.top+e.height/2;M=k.top-u.top+k.height/2-r}let N=D+M+x+v,P=Math.min(T,N),F=T-b-x,I=N-P,ne=E-5;B.style.left=`${Dt(A,5,ne-u.width)}px`,B.style.height=`${P}px`,B.style.maxHeight=`none`,B.style.marginTop=`${b}px`,B.style.marginBottom=`${x}px`,e.style.height=`100%`;let re=sn(g),ie=I>=re-1;ie&&(P=Math.min(T,u.height)-(I-re));let L=l.top<20||l.bottom>T-20||Math.ceil(P)+1=F?`0`:`${e}px`,B.style.height=`${P}px`,g.scrollTop=sn(g)}else B.style.bottom=`0`,g.scrollTop=I;if(k){let t=u.top,n=u.height,r=k.top+k.height/2,i=Dt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(G===T||P>=ee)&&(H.current=!0),y(),C&&s.state.selectedIndex===null&&s.state.activeIndex===null&&S.current[0]!=null&&s.set(`activeIndex`,0),U.current=!0}finally{t()}},[s,I,B,R,f,p,h,c,y,T,te,ae,V,S,C,j,D]),Z.useEffect(()=>{if(!T||!B||!I)return;let e=m(B);function t(e){d(!1,E(b,e))}return K(e,`resize`,t)},[d,T,B,I]);let ce={...V?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":_||void 0,id:`${P}-list`},onKeyDown(e){k&&le.has(e.key)&&e.stopPropagation()},onScroll(e){V||oe(e.currentTarget)},...T&&{style:V?{height:`100%`}:Gt}},q=l(`div`,e,{ref:[t,c],state:se,stateAttributesMapping:rn,props:[ie,ce,F(L),{className:!V&&T?Zt.className:void 0},o]});return(0,Q.jsxs)(Z.Fragment,{children:[!N&&Zt.getElement(M),(0,Q.jsx)(Me,{context:A,modal:!1,disabled:!re,openInteractionType:ne,returnFocus:a,restoreFocus:!0,children:q})]})});function on(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function sn(e){return Ot(e.scrollHeight,e.clientHeight)}function cn(e){return ve.getScale(e)}function ln(e,t,n){return e/n[t]}function un(e,t){return Ne({x:ln(e.x,`x`,t),y:ln(e.y,`y`,t),width:ln(e.width,`x`,t),height:ln(e.height,`y`,t)})}var dn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function fn(e){let{style:t}=e,n={};for(let[e,r]of dn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of dn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var pn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=ft(),{alignItemWithTriggerActive:c}=Ut(),u=Y(o,$.hasScrollArrows),d=Y(o,$.openMethod),f=Y(o,$.multiple),p={id:`${Y(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Gt},className:u&&d!==`touch`?Zt.className:void 0};return l(`div`,e,{ref:[t,v(e=>{o.set(`listElement`,e)})],props:[p,a]})}),mn=Z.createContext(void 0);function hn(){let e=Z.useContext(mn);if(!e)throw Error(u(57));return e}var gn=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...u}=e,d=Z.useRef(null),f=Ke({label:o,textRef:d,indexGuessBehavior:Je.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:v,selectionRef:y,typingRef:b,valuesRef:x,multiple:S,selectedItemTextRef:C,disabled:ee,readOnly:T}=ft(),D=Y(p,$.isActive,f.index),te=Y(p,$.open),O=Y(p,$.isSelected,a),k=Y(p,$.isSelectedByFocus,f.index),A=Y(p,$.isItemEqualToValue),j=f.index,M=j!==-1,N=Z.useRef(null);g(()=>{if(!M)return;let e=x.current;return e[j]=a,()=>{delete e[j]}},[M,j,a,x]),g(()=>{if(!M)return;let e=p.state.value,t=e;S&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&ht(a,t,A)&&(p.set(`selectedIndex`,j),d.current&&(C.current=d.current))},[M,j,S,A,p,a,C]);let P=Z.useRef(null),F=Z.useRef(`mouse`),I=Z.useRef(!1),{getButtonProps:ne,buttonRef:re}=_({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),ie={disabled:s,selected:O,highlighted:D};function L(e){if(ee||T)return;let t=p.state.value;if(S){let n=Array.isArray(t)?t:[],r=O?vt(n,a,A):[...n,a];v(r,E(w,e))}else v(a,E(w,e)),h(!1,E(w,e))}function R(){y.current.dragY=0}let z={role:`option`,"aria-selected":O,tabIndex:te&&D?0:-1,onKeyDown(e){P.current=e.key,p.set(`activeIndex`,j),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&F.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&de(e.nativeEvent)&&(n!==void 0||D),i=t&&!r&&!I.current;I.current=!1,!(e.type===`keydown`&&P.current===null)&&(s||e.type===`keydown`&&P.current===` `&&b.current||i||(P.current=null,L(e.nativeEvent)))},onPointerEnter(e){F.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=y.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){F.current=e.pointerType,I.current=!0,R()},onMouseUp(){if(R(),s||F.current===`touch`||I.current)return;let e=!y.current.allowSelectedMouseUp&&O,t=!y.current.allowUnselectedMouseUp&&!O;e||t||(I.current=!0,N.current?.click(),I.current=!1)}},B=l(`div`,e,{ref:[re,t,f.ref,N],state:ie,props:[m,z,u,ne]}),V=Z.useMemo(()=>({selected:O,index:j,textRef:d,selectedByFocus:k,hasRegistered:M}),[O,j,d,k,M]);return(0,Q.jsx)(mn.Provider,{value:V,children:B})})),_n=Z.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=hn();return n||r?(0,Q.jsx)(vn,{...e,ref:t}):null}),vn=Z.memo(Z.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=hn(),c=Z.useRef(null),{transitionStatus:u,setMounted:d}=H(s),f=l(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:B});return G({open:s,ref:c,onComplete(){s||d(!1)}}),f})),yn=Z.memo(Z.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=hn(),{firstItemTextRef:o,selectedItemTextRef:s}=ft(),{render:c,className:u,style:d,...f}=e;return l(`div`,e,{ref:[Z.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:f})})),bn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=ft(),{side:h,scrollDownArrowRef:_,scrollUpArrowRef:v}=Ut(),y=Y(u,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=Y(u,$.openMethod),x=y&&b!==`touch`,S=M(),C=c?v:_,{mounted:w,transitionStatus:ee,setMounted:T}=H(x);g(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),G({open:x,ref:C,onComplete(){x||T(!1)}});let E=l(`div`,e,{ref:[t,C],state:{direction:a,visible:x,side:h,transitionStatus:ee},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=Ot(e.scrollHeight,e.clientHeight),r=kt(e.scrollTop,n),i=r===(c?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=xn(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s],stateAttributesMapping:B});return w||o?E:null});function xn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?kt(l.offsetTop+l.offsetHeight-r+i,a):a}var Sn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`down`})}),Cn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`up`})}),wn=Z.createContext(void 0);function Tn(){let e=Z.useContext(wn);if(e===void 0)throw Error(u(56));return e}var En=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Z.useState(),c=Z.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),u=l(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Q.jsx)(wn.Provider,{value:c,children:u})}),Dn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Tn(),c=y(a);return g(()=>{s(c)},[c,s]),l(`div`,e,{ref:t,props:[{id:c},o]})}),On=r(),kn=At;function An(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`scroll-my-1 p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(En,{className:i,"data-slot":`select-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function jn(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Rt,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Mn(e){let t=(0,On.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,size:o,id:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`default`:o,c;t[6]===r?c=t[7]:(c=d(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Q.jsx)(zt,{render:(0,Q.jsx)(p,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==s||t[13]!==c?(u=(0,Q.jsxs)(It,{className:c,"data-size":s,"data-slot":`select-trigger`,id:i,...a,children:[n,l]}),t[9]=n,t[10]=i,t[11]=a,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function Nn(e){let t=(0,On.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=a===void 0?`bottom`:a,f=o===void 0?4:o,p=s===void 0?`center`:s,m=c===void 0?0:c,h=l===void 0?!0:l,g;t[9]===r?g=t[10]:(g=d(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Q.jsx)(Ln,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Q.jsx)(pn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(Rn,{}),t[14]=y):y=t[14];let b;t[15]!==i||t[16]!==g||t[17]!==v?(b=(0,Q.jsxs)(an,{className:g,"data-slot":`select-content`,...i,children:[_,v,y]}),t[15]=i,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==u||t[23]!==f||t[24]!==b?(x=(0,Q.jsx)(Vt,{children:(0,Q.jsx)(Yt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:u,sideOffset:f,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=u,t[23]=f,t[24]=b,t[25]=x):x=t[25],x}function Pn(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Dn,{className:i,"data-slot":`select-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fn(e){let t=(0,On.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=d(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=(0,Q.jsx)(yn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=o);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(_n,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Q.jsx)(f,{className:`pointer-events-none`})}),t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Q.jsxs)(gn,{className:a,"data-slot":`select-item`,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function In(e){let t=(0,On.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Ee,{className:i,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ln(e){let t=(0,On.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(Ye,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Cn,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Rn(e){let t=(0,On.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(p,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Sn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{Pn as a,jn as c,Fn as i,Nn as n,In as o,An as r,Mn as s,kn as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js index 360826acb..9b8aa509a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{xn as i}from"./index.js";import{t as a}from"./page-heading.js";import{n as o}from"./admin.js";import{t as s}from"./badge.js";import{a as c,o as l,r as u,t as d}from"./card.js";var f=t(),p=e();function m(){let e=(0,f.c)(46),{isAdmin:t}=i(),m;e[0]===t?m=e[1]:(m={...o,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=m);let{data:y}=n(m);if(!t)throw r({to:`/`});let x=y?.encoding,S;e[2]===y?.db_nodes?S=e[3]:(S=y?.db_nodes??[],e[2]=y?.db_nodes,e[3]=S);let C=S,w;e[4]===y?.shard_nodes?w=e[5]:(w=y?.shard_nodes??[],e[4]=y?.shard_nodes,e[5]=w);let T=w,E;e[6]===C?E=e[7]:(E=C.length>0&&C.every(g),e[6]=C,e[7]=E);let D=E,O;e[8]===C?O=e[9]:(O=C.some(h),e[8]=C,e[9]=O);let k=O,A;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`Service Metrics`}),e[10]=A):A=e[10];let j;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),e[11]=j):j=e[11];let M;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),e[12]=M):M=e[12];let N;e[13]===x?N=e[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(s,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),e[13]=x,e[14]=N);let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`DB Nodes`}),e[15]=P):P=e[15];let F;e[16]===C.length?F=e[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),e[16]=C.length,e[17]=F);let I;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Shard Nodes`}),e[18]=I):I=e[18];let L;e[19]===T.length?L=e[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),e[19]=T.length,e[20]=L);let R;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),e[21]=R):R=e[21];let z;e[22]!==D||e[23]!==k||e[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),e[22]=D,e[23]=k,e[24]=C.length,e[25]=z):z=e[25];let B;e[26]!==F||e[27]!==L||e[28]!==z||e[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),e[26]=F,e[27]=L,e[28]=z,e[29]=N,e[30]=B):B=e[30];let V;e[31]===x?V=e[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),e[31]=x,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(d,{children:[j,(0,p.jsxs)(u,{children:[B,V]})]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`DB Consensus Nodes (Raft)`})}),e[36]=U):U=e[36];let W;e[37]===C?W=e[38]:(W=(0,p.jsxs)(d,{children:[U,(0,p.jsx)(u,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),e[37]=C,e[38]=W);let G;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Shard Nodes`})}),e[39]=G):G=e[39];let K;e[40]===T?K=e[41]:(K=(0,p.jsxs)(d,{children:[G,(0,p.jsx)(u,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),e[40]=T,e[41]=K);let q;return e[42]!==H||e[43]!==W||e[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),e[42]=H,e[43]=W,e[44]=K,e[45]=q):q=e[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(s,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(s,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}export{m as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{An as i}from"./index.js";import{t as a}from"./page-heading.js";import{n as o}from"./admin.js";import{t as s}from"./badge.js";import{a as c,o as l,r as u,t as d}from"./card.js";var f=t(),p=e();function m(){let e=(0,f.c)(46),{isAdmin:t}=i(),m;e[0]===t?m=e[1]:(m={...o,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=m);let{data:y}=n(m);if(!t)throw r({to:`/`});let x=y?.encoding,S;e[2]===y?.db_nodes?S=e[3]:(S=y?.db_nodes??[],e[2]=y?.db_nodes,e[3]=S);let C=S,w;e[4]===y?.shard_nodes?w=e[5]:(w=y?.shard_nodes??[],e[4]=y?.shard_nodes,e[5]=w);let T=w,E;e[6]===C?E=e[7]:(E=C.length>0&&C.every(g),e[6]=C,e[7]=E);let D=E,O;e[8]===C?O=e[9]:(O=C.some(h),e[8]=C,e[9]=O);let k=O,A;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`Service Metrics`}),e[10]=A):A=e[10];let j;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),e[11]=j):j=e[11];let M;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),e[12]=M):M=e[12];let N;e[13]===x?N=e[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(s,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),e[13]=x,e[14]=N);let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`DB Nodes`}),e[15]=P):P=e[15];let F;e[16]===C.length?F=e[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),e[16]=C.length,e[17]=F);let I;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Shard Nodes`}),e[18]=I):I=e[18];let L;e[19]===T.length?L=e[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),e[19]=T.length,e[20]=L);let R;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),e[21]=R):R=e[21];let z;e[22]!==D||e[23]!==k||e[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),e[22]=D,e[23]=k,e[24]=C.length,e[25]=z):z=e[25];let B;e[26]!==F||e[27]!==L||e[28]!==z||e[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),e[26]=F,e[27]=L,e[28]=z,e[29]=N,e[30]=B):B=e[30];let V;e[31]===x?V=e[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),e[31]=x,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(d,{children:[j,(0,p.jsxs)(u,{children:[B,V]})]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`DB Consensus Nodes (Raft)`})}),e[36]=U):U=e[36];let W;e[37]===C?W=e[38]:(W=(0,p.jsxs)(d,{children:[U,(0,p.jsx)(u,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),e[37]=C,e[38]=W);let G;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Shard Nodes`})}),e[39]=G):G=e[39];let K;e[40]===T?K=e[41]:(K=(0,p.jsxs)(d,{children:[G,(0,p.jsx)(u,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),e[40]=T,e[41]=K);let q;return e[42]!==H||e[43]!==W||e[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),e[42]=H,e[43]=W,e[44]=K,e[45]=q):q=e[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(s,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(s,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(s,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(s,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js index 7a9949552..cba490d62 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,i as o,n as s,u as c}from"./dist.js";import{Ft as l}from"./auth.js";import{a as u,i as d,o as f,r as p,s as m}from"./button.js";import{S as h,b as g,c as _,d as v,f as y,i as b,t as x,v as S,x as C,y as w}from"./createBaseUIEventDetails.js";import{Bn as T,Cr as E,Dr as D,Gn as O,In as k,Ir as A,Jn as j,Kn as M,Ln as N,Lr as P,Mr as F,Nr as I,On as L,Or as R,Pn as z,Pr as B,Rn as V,Tr as H,Un as U,Vn as W,Wn as ee,Yn as G,qn as K,wr as q,zn as J}from"./index.js";import{i as te,n as ne,r as re}from"./useCompositeListItem.js";var Y=t(n(),1),ie=Y.createContext(void 0);function X(){let e=Y.useContext(ie);if(e===void 0)throw Error(c(64));return e}var ae=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),Z={tabActivationDirection:e=>({[ae.activationDirection]:e})},Q=e(),oe=Y.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,p=Y.useRef([]),[h,g]=Y.useState(()=>new Map),[y,S]=E({controlled:c,default:r,name:`Tabs`,state:`value`}),C=c!==void 0,[w,T]=Y.useState(()=>new Map),D=Y.useRef(void 0),O=Y.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of w.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[w]),[k,A]=Y.useState(()=>({previousValue:y,tabActivationDirection:`none`})),{previousValue:j,tabActivationDirection:M}=k,N=M,P=!1;j!==y&&(N=se(j,y,a,w),P=j!=null&&y!=null&&O(y)==null);let F=P?j:y,I=j!==F||M!==N;f(()=>{I&&A({previousValue:F,tabActivationDirection:N})},[F,I,N]);let L=m((e,t)=>{t.activationDirection=se(y,e,a,w),i?.(e,t),!t.isCanceled&&S(e)}),R=m((e,t)=>{i?.(e,x(t,void 0,void 0,{activationDirection:`none`}))}),z=m((e,t)=>{g(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),B=m((e,t)=>{g(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),V=Y.useCallback(e=>h.get(e),[h]),H=Y.useCallback(e=>{for(let t of w.values())if(e===t?.value)return t?.id},[w]),U=Y.useMemo(()=>({getTabElementBySelectedValue:O,getTabIdByPanelValue:H,getTabPanelIdByValue:V,onValueChange:L,orientation:a,registerMountedTabPanel:z,setTabMap:T,unregisterMountedTabPanel:B,tabActivationDirection:N,value:y}),[O,H,V,L,a,z,T,B,N,y]),W=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&e.value===y)return e},[w,y]),ee=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&!e.disabled)return e.value},[w]),G=Y.useRef(!d),K=Y.useRef(r),q=Y.useRef(d),J=Y.useRef(!1);f(()=>{if(C)return;function e(e,t){S(e),A(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),R(e,t),G.current=!1}if(w.size===0){J.current&&y!==null&&!D.current?.isConnected&&e(null,v);return}J.current=!0,D.current=w.keys().next().value;let t=W?.disabled,n=W==null&&y!==null;if(!t&&y===K.current&&(q.current=!1),q.current&&t&&y===K.current)return;let r=G.current;if(t||n){let n=ee??null;if(y===n){G.current=!1;return}let i=v;r?i=_:t&&(i=b),e(n,i);return}r&&W!=null&&(R(y,_),G.current=!1)},[ee,C,R,W,S,w,y]);let te=s(`div`,e,{state:{orientation:a,tabActivationDirection:N},ref:t,props:u,stateAttributesMapping:Z});return(0,Q.jsx)(ie.Provider,{value:U,children:(0,Q.jsx)(re,{elementsRef:p,children:te})})});function se(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var ce=`data-composite-item-active`;function le(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=u(),{ref:i,index:o}=ne(e),s=n===o,c=Y.useRef(null),l=a(i,c);return{compositeProps:{tabIndex:s?0:-1,onFocus(){r(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}},compositeRef:l,index:o}}var ue=Y.createContext(void 0);function de(){let e=Y.useContext(ue);if(e===void 0)throw Error(c(65));return e}var fe=Y.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:c=!0,style:l,...u}=e,{value:d,getTabPanelIdByValue:m,orientation:g,tabActivationDirection:_}=X(),{activateOnFocus:v,highlightedTabIndex:b,onTabActivation:T,registerTabResizeObserverElement:E,setHighlightedTabIndex:D,tabsListElement:O}=de(),k=h(o),{compositeProps:A,compositeRef:j,index:M}=le({metadata:Y.useMemo(()=>({disabled:r,id:k,value:a}),[r,k,a])}),N=a===d,P=Y.useRef(!1),F=Y.useRef(null);f(()=>{let e=F.current;if(e)return E(e)},[E]),f(()=>{if(P.current){P.current=!1;return}if(!(N&&M>-1&&b!==M))return;let e=O;if(e!=null){let t=S(C(e));if(t&&w(e,t))return}r||D(M)},[N,M,b,D,r,O]);let{getButtonProps:I,buttonRef:L}=p({disabled:r,native:c,focusableWhenDisabled:!0}),R=m(a),z=Y.useRef(!1),B=Y.useRef(!1);function V(e){N||r||T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`}))}function H(e){N||(M>-1&&!r&&D(M),!r&&v&&(!z.current||z.current&&B.current)&&T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`})))}function U(e){if(N||r)return;z.current=!0;function t(){z.current=!1,B.current=!1}(!e.button||e.button===0)&&(B.current=!0,C(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return s(`button`,e,{state:{disabled:r,active:N,orientation:g,tabActivationDirection:_},ref:[t,L,j,F],props:[A,{role:`tab`,"aria-controls":R,"aria-selected":N,id:k,onClick:V,onFocus:H,onPointerDown:U,[ce]:N?``:void 0,onKeyDownCapture(){P.current=!0}},u,I],stateAttributesMapping:Z})}),pe=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=D.startingStyle]=`startingStyle`,e[e.endingStyle=D.endingStyle]=`endingStyle`,e}({}),me={...Z,...R},he=Y.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:g}=X(),_=h(),{ref:v,index:y}=ne({metadata:Y.useMemo(()=>({id:_,value:r}),[_,r])}),b=r===l,{mounted:x,transitionStatus:S,setMounted:C}=q(b),w=!x,T=u(r),E={hidden:w,orientation:d,tabActivationDirection:p,transitionStatus:S},D=Y.useRef(null),O=s(`div`,e,{state:E,ref:[t,v,D],props:[{"aria-labelledby":T,hidden:w,id:_,role:`tabpanel`,tabIndex:b?0:-1,inert:z(!b),[pe.index]:y},c],stateAttributesMapping:me});return H({open:b,ref:D,onComplete(){b||C(!1)}}),f(()=>{if(!(w&&!a)&&_!=null)return m(r,_),()=>{g(r,_)}},[w,a,r,_,m,g]),a||x?O:null}),ge=[];function _e(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:o,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d=!1,disabledIndices:p,modifierKeys:h=ge}=e,[_,v]=Y.useState(0),y=r!=null,b=Y.useRef(null),x=a(b,l),S=Y.useRef([]),C=Y.useRef(!1),w=s??_,E=m((e,t=!1)=>{if((c??v)(e),t){let t=S.current[e];G(b.current,t,o,n)}}),D=m(e=>{if(e.size===0||C.current)return;C.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?t.indexOf(r):-1;if(i!==-1)E(i);else if(P(t,w,p)){let e=F(t,{disabledIndices:p});A(t,e)||E(e)}G(b.current,r,o,n)});f(()=>{if(p==null||s!=null||!C.current)return;let e=S.current;if(P(e,w,p)){let t=F(e,{disabledIndices:p});A(e,t)||E(t)}},[p,s,w,S,E]);let O=m((e,t,n)=>i?i(e,t,n,S):n),L=m(e=>{let a=u?W:N;if(!a.has(e.key)||ve(e,h)||!b.current)return;let s=o===`rtl`,c=s?V:J,l={horizontal:c,vertical:k,both:c}[n],f=s?J:V,m={horizontal:f,vertical:T,both:f}[n],_=g(e.nativeEvent);if(_!=null&&j(_)&&!te(_)){let t=_.selectionStart,n=_.selectionEnd,r=_.value??``;if(t==null||e.shiftKey||t!==n||e.key!==m&&t0)return}let v=w,x=B(S,p),C=I(S,p);r!=null&&(v=r({disabledIndices:p,elementsRef:S,event:e,highlightedIndex:w,loopFocus:t,maxIndex:C,minIndex:x,onLoop:O,orientation:n,rtl:s}));let D={horizontal:[c],vertical:[k],both:[c,k]}[n],P={horizontal:[f],vertical:[T],both:[f,T]}[n],L=y?a:{horizontal:u?ee:U,vertical:u?K:M,both:a}[n];u&&(e.key===`Home`?v=x:e.key===`End`&&(v=C)),v===w&&(D.includes(e.key)||P.includes(e.key))&&(t&&v===C&&D.includes(e.key)?(v=x,i&&(v=i(e,w,v,S))):t&&v===x&&P.includes(e.key)?(v=C,i&&(v=i(e,w,v,S))):v=F(S.current,{startingIndex:v,decrement:P.includes(e.key),disabledIndices:p})),v!==w&&!A(S.current,v)&&(d&&e.stopPropagation(),L.has(e.key)&&e.preventDefault(),E(v,!0),queueMicrotask(()=>{S.current[v]?.focus()}))});return{props:{ref:x,onFocus(e){let t=b.current,n=g(e.nativeEvent);!t||n==null||!j(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown:L},highlightedIndex:w,onHighlightedIndexChange:E,elementsRef:S,disabledIndices:p,onMapChange:D,relayKeyboardEvent:L}}function ve(e,t){for(let n of O.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function ye(e){let{render:t,className:n,style:r,refs:a=o,props:c=o,state:l=i,stateAttributesMapping:u,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,grid:h,loopFocus:g,onLoop:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:x,disabledIndices:S,modifierKeys:C,highlightItemOnHover:w=!1,tag:T=`div`,...E}=e,{props:D,highlightedIndex:O,onHighlightedIndexChange:k,elementsRef:A,onMapChange:j,relayKeyboardEvent:M}=_e({grid:h,loopFocus:g,onLoop:_,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:L(),disabledIndices:S,modifierKeys:C}),N=s(T,e,{state:l,ref:a,props:[D,...c,E],stateAttributesMapping:u}),P=Y.useMemo(()=>({highlightedIndex:O,onHighlightedIndexChange:k,highlightItemOnHover:w,relayKeyboardEvent:M}),[O,k,w,M]);return(0,Q.jsx)(d.Provider,{value:P,children:(0,Q.jsx)(re,{elementsRef:A,onMapChange:e=>{y?.(e),j(e)},children:N})})}var be=Y.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:s,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:p,tabActivationDirection:h}=X(),[g,_]=Y.useState(0),[v,y]=Y.useState(null),b=Y.useRef(new Set),x=Y.useRef(new Set),S=Y.useRef(null);f(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{b.current.forEach(e=>{e()})});return S.current=e,v&&e.observe(v),x.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),S.current=null}},[v]);let C=m(e=>(b.current.add(e),()=>{b.current.delete(e)})),w=m(e=>(x.current.add(e),S.current?.observe(e),()=>{x.current.delete(e),S.current?.unobserve(e)})),T=m((e,t)=>{e!==d&&l(e,t)}),E={orientation:u,tabActivationDirection:h},D={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},O=Y.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:g,registerIndicatorUpdateListener:C,registerTabResizeObserverElement:w,onTabActivation:T,setHighlightedTabIndex:_,tabsListElement:v}),[n,g,C,w,T,_,v]);return(0,Q.jsx)(ue.Provider,{value:O,children:(0,Q.jsx)(ye,{render:a,className:r,style:s,state:E,refs:[t,y],props:[D,c],stateAttributesMapping:Z,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:_,onMapChange:p,disabledIndices:o})})}),$=r();function xe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(oe,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Se(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(be,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ce(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(fe,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function we(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Ce as i,Se as n,we as r,xe as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,i as o,n as s,u as c}from"./dist.js";import{Ft as l}from"./auth.js";import{a as u,i as d,o as f,r as p,s as m}from"./button.js";import{S as h,b as g,c as _,d as v,f as y,i as b,t as x,v as S,x as C,y as w}from"./createBaseUIEventDetails.js";import{$n as T,Gn as E,Gr as D,Hr as O,Ir as k,Jn as A,Kn as j,Kr as M,Ln as N,Lr as P,Mr as F,Nr as I,Pr as L,Qn as R,Un as z,Ur as B,Vr as V,Xn as H,Yn as U,er as W,ir as G,nr as K,qn as q,rr as J,tr as Y}from"./index.js";import{i as ee,n as te,r as ne}from"./useCompositeListItem.js";var X=t(n(),1),re=X.createContext(void 0);function ie(){let e=X.useContext(re);if(e===void 0)throw Error(c(64));return e}var ae=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),Z={tabActivationDirection:e=>({[ae.activationDirection]:e})},Q=e(),oe=X.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,p=X.useRef([]),[h,g]=X.useState(()=>new Map),[y,S]=F({controlled:c,default:r,name:`Tabs`,state:`value`}),C=c!==void 0,[w,T]=X.useState(()=>new Map),E=X.useRef(void 0),D=X.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of w.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[w]),[O,k]=X.useState(()=>({previousValue:y,tabActivationDirection:`none`})),{previousValue:A,tabActivationDirection:j}=O,M=j,N=!1;A!==y&&(M=se(A,y,a,w),N=A!=null&&y!=null&&D(y)==null);let P=N?A:y,I=A!==P||j!==M;f(()=>{I&&k({previousValue:P,tabActivationDirection:M})},[P,I,M]);let L=m((e,t)=>{t.activationDirection=se(y,e,a,w),i?.(e,t),!t.isCanceled&&S(e)}),R=m((e,t)=>{i?.(e,x(t,void 0,void 0,{activationDirection:`none`}))}),z=m((e,t)=>{g(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),B=m((e,t)=>{g(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),V=X.useCallback(e=>h.get(e),[h]),H=X.useCallback(e=>{for(let t of w.values())if(e===t?.value)return t?.id},[w]),U=X.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:H,getTabPanelIdByValue:V,onValueChange:L,orientation:a,registerMountedTabPanel:z,setTabMap:T,unregisterMountedTabPanel:B,tabActivationDirection:M,value:y}),[D,H,V,L,a,z,T,B,M,y]),W=X.useMemo(()=>{for(let e of w.values())if(e!=null&&e.value===y)return e},[w,y]),G=X.useMemo(()=>{for(let e of w.values())if(e!=null&&!e.disabled)return e.value},[w]),K=X.useRef(!d),q=X.useRef(r),J=X.useRef(d),Y=X.useRef(!1);f(()=>{if(C)return;function e(e,t){S(e),k(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),R(e,t),K.current=!1}if(w.size===0){Y.current&&y!==null&&!E.current?.isConnected&&e(null,v);return}Y.current=!0,E.current=w.keys().next().value;let t=W?.disabled,n=W==null&&y!==null;if(!t&&y===q.current&&(J.current=!1),J.current&&t&&y===q.current)return;let r=K.current;if(t||n){let n=G??null;if(y===n){K.current=!1;return}let i=v;r?i=_:t&&(i=b),e(n,i);return}r&&W!=null&&(R(y,_),K.current=!1)},[G,C,R,W,S,w,y]);let ee=s(`div`,e,{state:{orientation:a,tabActivationDirection:M},ref:t,props:u,stateAttributesMapping:Z});return(0,Q.jsx)(re.Provider,{value:U,children:(0,Q.jsx)(ne,{elementsRef:p,children:ee})})});function se(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var ce=`data-composite-item-active`;function le(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=u(),{ref:i,index:o}=te(e),s=n===o,c=X.useRef(null),l=a(i,c);return{compositeProps:{tabIndex:s?0:-1,onFocus(){r(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}},compositeRef:l,index:o}}var ue=X.createContext(void 0);function de(){let e=X.useContext(ue);if(e===void 0)throw Error(c(65));return e}var fe=X.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:c=!0,style:l,...u}=e,{value:d,getTabPanelIdByValue:m,orientation:g,tabActivationDirection:_}=ie(),{activateOnFocus:v,highlightedTabIndex:b,onTabActivation:T,registerTabResizeObserverElement:E,setHighlightedTabIndex:D,tabsListElement:O}=de(),k=h(o),{compositeProps:A,compositeRef:j,index:M}=le({metadata:X.useMemo(()=>({disabled:r,id:k,value:a}),[r,k,a])}),N=a===d,P=X.useRef(!1),F=X.useRef(null);f(()=>{let e=F.current;if(e)return E(e)},[E]),f(()=>{if(P.current){P.current=!1;return}if(!(N&&M>-1&&b!==M))return;let e=O;if(e!=null){let t=S(C(e));if(t&&w(e,t))return}r||D(M)},[N,M,b,D,r,O]);let{getButtonProps:I,buttonRef:L}=p({disabled:r,native:c,focusableWhenDisabled:!0}),R=m(a),z=X.useRef(!1),B=X.useRef(!1);function V(e){N||r||T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`}))}function H(e){N||(M>-1&&!r&&D(M),!r&&v&&(!z.current||z.current&&B.current)&&T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`})))}function U(e){if(N||r)return;z.current=!0;function t(){z.current=!1,B.current=!1}(!e.button||e.button===0)&&(B.current=!0,C(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return s(`button`,e,{state:{disabled:r,active:N,orientation:g,tabActivationDirection:_},ref:[t,L,j,F],props:[A,{role:`tab`,"aria-controls":R,"aria-selected":N,id:k,onClick:V,onFocus:H,onPointerDown:U,[ce]:N?``:void 0,onKeyDownCapture(){P.current=!0}},u,I],stateAttributesMapping:Z})}),pe=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=k.startingStyle]=`startingStyle`,e[e.endingStyle=k.endingStyle]=`endingStyle`,e}({}),me={...Z,...P},he=X.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:g}=ie(),_=h(),{ref:v,index:y}=te({metadata:X.useMemo(()=>({id:_,value:r}),[_,r])}),b=r===l,{mounted:x,transitionStatus:S,setMounted:C}=I(b),w=!x,T=u(r),E={hidden:w,orientation:d,tabActivationDirection:p,transitionStatus:S},D=X.useRef(null),O=s(`div`,e,{state:E,ref:[t,v,D],props:[{"aria-labelledby":T,hidden:w,id:_,role:`tabpanel`,tabIndex:b?0:-1,inert:z(!b),[pe.index]:y},c],stateAttributesMapping:me});return L({open:b,ref:D,onComplete(){b||C(!1)}}),f(()=>{if(!(w&&!a)&&_!=null)return m(r,_),()=>{g(r,_)}},[w,a,r,_,m,g]),a||x?O:null}),ge=[];function _e(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:o,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d=!1,disabledIndices:p,modifierKeys:h=ge}=e,[_,v]=X.useState(0),y=r!=null,b=X.useRef(null),x=a(b,l),S=X.useRef([]),C=X.useRef(!1),w=s??_,k=m((e,t=!1)=>{if((c??v)(e),t){let t=S.current[e];G(b.current,t,o,n)}}),N=m(e=>{if(e.size===0||C.current)return;C.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?t.indexOf(r):-1;if(i!==-1)k(i);else if(M(t,w,p)){let e=V(t,{disabledIndices:p});D(t,e)||k(e)}G(b.current,r,o,n)});f(()=>{if(p==null||s!=null||!C.current)return;let e=S.current;if(M(e,w,p)){let t=V(e,{disabledIndices:p});D(e,t)||k(t)}},[p,s,w,S,k]);let P=m((e,t,n)=>i?i(e,t,n,S):n),F=m(e=>{let a=u?H:j;if(!a.has(e.key)||ve(e,h)||!b.current)return;let s=o===`rtl`,c=s?q:A,l={horizontal:c,vertical:E,both:c}[n],f=s?A:q,m={horizontal:f,vertical:U,both:f}[n],_=g(e.nativeEvent);if(_!=null&&J(_)&&!ee(_)){let t=_.selectionStart,n=_.selectionEnd,r=_.value??``;if(t==null||e.shiftKey||t!==n||e.key!==m&&t0)return}let v=w,x=B(S,p),C=O(S,p);r!=null&&(v=r({disabledIndices:p,elementsRef:S,event:e,highlightedIndex:w,loopFocus:t,maxIndex:C,minIndex:x,onLoop:P,orientation:n,rtl:s}));let M={horizontal:[c],vertical:[E],both:[c,E]}[n],N={horizontal:[f],vertical:[U],both:[f,U]}[n],F=y?a:{horizontal:u?T:R,vertical:u?K:Y,both:a}[n];u&&(e.key===`Home`?v=x:e.key===`End`&&(v=C)),v===w&&(M.includes(e.key)||N.includes(e.key))&&(t&&v===C&&M.includes(e.key)?(v=x,i&&(v=i(e,w,v,S))):t&&v===x&&N.includes(e.key)?(v=C,i&&(v=i(e,w,v,S))):v=V(S.current,{startingIndex:v,decrement:N.includes(e.key),disabledIndices:p})),v!==w&&!D(S.current,v)&&(d&&e.stopPropagation(),F.has(e.key)&&e.preventDefault(),k(v,!0),queueMicrotask(()=>{S.current[v]?.focus()}))});return{props:{ref:x,onFocus(e){let t=b.current,n=g(e.nativeEvent);!t||n==null||!J(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown:F},highlightedIndex:w,onHighlightedIndexChange:k,elementsRef:S,disabledIndices:p,onMapChange:N,relayKeyboardEvent:F}}function ve(e,t){for(let n of W.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function ye(e){let{render:t,className:n,style:r,refs:a=o,props:c=o,state:l=i,stateAttributesMapping:u,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,grid:h,loopFocus:g,onLoop:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:x,disabledIndices:S,modifierKeys:C,highlightItemOnHover:w=!1,tag:T=`div`,...E}=e,{props:D,highlightedIndex:O,onHighlightedIndexChange:k,elementsRef:A,onMapChange:j,relayKeyboardEvent:M}=_e({grid:h,loopFocus:g,onLoop:_,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:N(),disabledIndices:S,modifierKeys:C}),P=s(T,e,{state:l,ref:a,props:[D,...c,E],stateAttributesMapping:u}),F=X.useMemo(()=>({highlightedIndex:O,onHighlightedIndexChange:k,highlightItemOnHover:w,relayKeyboardEvent:M}),[O,k,w,M]);return(0,Q.jsx)(d.Provider,{value:F,children:(0,Q.jsx)(ne,{elementsRef:A,onMapChange:e=>{y?.(e),j(e)},children:P})})}var be=X.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:s,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:p,tabActivationDirection:h}=ie(),[g,_]=X.useState(0),[v,y]=X.useState(null),b=X.useRef(new Set),x=X.useRef(new Set),S=X.useRef(null);f(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{b.current.forEach(e=>{e()})});return S.current=e,v&&e.observe(v),x.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),S.current=null}},[v]);let C=m(e=>(b.current.add(e),()=>{b.current.delete(e)})),w=m(e=>(x.current.add(e),S.current?.observe(e),()=>{x.current.delete(e),S.current?.unobserve(e)})),T=m((e,t)=>{e!==d&&l(e,t)}),E={orientation:u,tabActivationDirection:h},D={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},O=X.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:g,registerIndicatorUpdateListener:C,registerTabResizeObserverElement:w,onTabActivation:T,setHighlightedTabIndex:_,tabsListElement:v}),[n,g,C,w,T,_,v]);return(0,Q.jsx)(ue.Provider,{value:O,children:(0,Q.jsx)(ye,{render:a,className:r,style:s,state:E,refs:[t,y],props:[D,c],stateAttributesMapping:Z,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:_,onMapChange:p,disabledIndices:o})})}),$=r();function xe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(oe,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Se(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(be,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ce(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(fe,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function we(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Ce as i,Se as n,we as r,xe as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js b/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js index de9e3b75e..30bb51e35 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./plus.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{xr as f}from"./index.js";import{a as p,r as m,t as h}from"./field.js";var ee=r(),te=t(n(),1),g=e();function ne(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function _(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function v(e){let t=(0,ee.c)(56),{specs:n,attributes:r,onSubmit:a,isPending:l,error:u,isSuccess:v}=e,b;t[0]!==r||t[1]!==n?(b=ne(n,r),t[0]=r,t[1]=n,t[2]=b):b=t[2];let x=b,[S,C]=(0,te.useState)(x),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=(e,t)=>{C(n=>({...n,[e]:t}))},t[3]=w):w=t[3];let T=w,E;if(t[4]!==n||t[5]!==S){E={};for(let e of n)E[e.key]=_(e,S[e.key]??``);t[4]=n,t[5]=S,t[6]=E}else E=t[6];let D=Object.values(E).some(Boolean),O;if(t[7]!==x||t[8]!==n||t[9]!==S){let e;t[11]!==x||t[12]!==S?(e=e=>(S[e.key]??``)!==(x[e.key]??``),t[11]=x,t[12]=S,t[13]=e):e=t[13];let r;t[14]===S?r=t[15]:(r=e=>({key:e.key,value:S[e.key]??``}),t[14]=S,t[15]=r),O=n.filter(e).map(r),t[7]=x,t[8]=n,t[9]=S,t[10]=O}else O=t[10];let k=O,A;t[16]===x?A=t[17]:(A=()=>{C(x)},t[16]=x,t[17]=A);let j=A,M;t[18]!==k||t[19]!==D||t[20]!==a?(M=e=>{e.preventDefault(),!(D||k.length===0)&&a(k)},t[18]=k,t[19]=D,t[20]=a,t[21]=M):M=t[21];let N;t[22]===u?N=t[23]:(N=u&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:u.message||`Failed to save attributes`}),t[22]=u,t[23]=N);let P;t[24]!==k.length||t[25]!==v?(P=v&&k.length===0&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),t[24]=k.length,t[25]=v,t[26]=P):P=t[26];let F;if(t[27]!==E||t[28]!==n||t[29]!==S){let e;t[31]!==E||t[32]!==S?(e=e=>{let t=`attr-${e.key}`,n=S[e.key]??``,r=E[e.key];return(0,g.jsxs)(h,{children:[(0,g.jsx)(p,{children:(0,g.jsx)(`label`,{htmlFor:t,children:e.label})}),e.type===`bool`&&(0,g.jsx)(`input`,{"aria-label":e.label,checked:n===`true`,id:t,onChange:t=>T(e.key,t.target.checked?`true`:`false`),type:`checkbox`}),e.type===`int`&&(0,g.jsx)(f,{"aria-invalid":!!r,id:t,inputMode:`numeric`,onChange:t=>T(e.key,t.target.value),value:n}),e.type===`text`&&(0,g.jsx)(f,{id:t,onChange:t=>T(e.key,t.target.value),placeholder:e.placeholder,value:n}),e.type===`select`&&(0,g.jsxs)(c,{onValueChange:t=>T(e.key,t??``),value:n,children:[(0,g.jsx)(s,{className:`w-full`,id:t,children:(0,g.jsx)(i,{})}),(0,g.jsx)(o,{children:e.options.map(y)})]}),e.description&&(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description}),(0,g.jsx)(m,{errors:[r?{message:r}:void 0]})]},e.key)},t[31]=E,t[32]=S,t[33]=e):e=t[33],F=n.map(e),t[27]=E,t[28]=n,t[29]=S,t[30]=F}else F=t[30];let I;t[34]===F?I=t[35]:(I=(0,g.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:F}),t[34]=F,t[35]=I);let L=k.length===0?`No changes`:`${k.length} change${k.length===1?``:`s`} pending`,R;t[36]===L?R=t[37]:(R=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:L}),t[36]=L,t[37]=R);let z=l||k.length===0,B;t[38]!==j||t[39]!==z?(B=(0,g.jsx)(d,{disabled:z,onClick:j,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[38]=j,t[39]=z,t[40]=B):B=t[40];let V=l||D||k.length===0,H=l?`Saving…`:`Save changes`,U;t[41]!==V||t[42]!==H?(U=(0,g.jsx)(d,{disabled:V,size:`sm`,type:`submit`,children:H}),t[41]=V,t[42]=H,t[43]=U):U=t[43];let W;t[44]!==R||t[45]!==B||t[46]!==U?(W=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[R,B,U]}),t[44]=R,t[45]=B,t[46]=U,t[47]=W):W=t[47];let G;t[48]!==W||t[49]!==I?(G=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[I,W]}),t[48]=W,t[49]=I,t[50]=G):G=t[50];let K;return t[51]!==G||t[52]!==M||t[53]!==N||t[54]!==P?(K=(0,g.jsxs)(`form`,{onSubmit:M,children:[N,P,G]}),t[51]=G,t[52]=M,t[53]=N,t[54]=P,t[55]=K):K=t[55],K}function y(e){return(0,g.jsx)(a,{value:e,children:e},e)}var b=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],x=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}];function S(e){return e.map((e,t)=>({id:t,key:e.Key??``,value:e.Value??``}))}function C(e){return e.map(e=>({key:e.key.trim(),value:e.value})).filter(e=>e.key.length>0)}function w(e){let t=(0,ee.c)(66),{tags:n,onSubmit:r,isPending:i,error:a,isSuccess:o}=e,s;t[0]===n?s=t[1]:(s=S(n),t[0]=n,t[1]=s);let c=s,[p,m]=(0,te.useState)(c),[h,ne]=(0,te.useState)(c.length),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=(e,t)=>{m(n=>n.map(n=>n.id===e?{...n,...t}:n))},t[2]=_):_=t[2];let v=_,y;t[3]===h?y=t[4]:(y=()=>{m(e=>[...e,{id:h,key:``,value:``}]),ne(D)},t[3]=h,t[4]=y);let b=y,x;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>{m(t=>t.filter(t=>t.id!==e))},t[5]=x):x=t[5];let w=x,O;t[6]===c?O=t[7]:(O=()=>{m(c)},t[6]=c,t[7]=O);let k=O,A;t[8]===p?A=t[9]:(A=p.some(E),t[8]=p,t[9]=A);let j=A,M,N,P,F;if(t[10]!==j||t[11]!==p){P=C(p);let e=P.map(T);M=new Set(e).size!==e.length,N=j||M,F=JSON.stringify(P),t[10]=j,t[11]=p,t[12]=M,t[13]=N,t[14]=P,t[15]=F}else M=t[12],N=t[13],P=t[14],F=t[15];let I;t[16]===c?I=t[17]:(I=JSON.stringify(C(c)),t[16]=c,t[17]=I);let L=F!==I,R;t[18]!==L||t[19]!==N||t[20]!==P||t[21]!==r?(R=e=>{e.preventDefault(),!(N||!L)&&r(P)},t[18]=L,t[19]=N,t[20]=P,t[21]=r,t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=a&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:a.message||`Failed to save tags`}),t[23]=a,t[24]=z);let B;t[25]!==L||t[26]!==o?(B=o&&!L&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Tags saved.`}),t[25]=L,t[26]=o,t[27]=B):B=t[27];let V;t[28]===p.length?V=t[29]:(V=p.length===0&&(0,g.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No tags.`}),t[28]=p.length,t[29]=V);let H;if(t[30]!==p){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(f,{"aria-label":`Tag key`,onChange:t=>v(e.id,{key:t.target.value}),placeholder:`Key`,value:e.key}),(0,g.jsx)(f,{"aria-label":`Tag value`,onChange:t=>v(e.id,{value:t.target.value}),placeholder:`Value`,value:e.value}),(0,g.jsx)(d,{"aria-label":`Remove tag`,onClick:()=>w(e.id),size:`icon`,type:`button`,variant:`ghost`,children:(0,g.jsx)(u,{className:`size-4`})})]},e.id),t[32]=e):e=t[32],H=p.map(e),t[30]=p,t[31]=H}else H=t[31];let U;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,g.jsx)(l,{className:`size-4`}),t[33]=U):U=t[33];let W;t[34]===b?W=t[35]:(W=(0,g.jsx)(`div`,{children:(0,g.jsxs)(d,{onClick:b,size:`sm`,type:`button`,variant:`secondary`,children:[U,` Add tag`]})}),t[34]=b,t[35]=W);let G;t[36]===j?G=t[37]:(G=j&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Every tag with a value needs a key.`}),t[36]=j,t[37]=G);let K;t[38]===M?K=t[39]:(K=M&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Tag keys must be unique.`}),t[38]=M,t[39]=K);let q;t[40]!==V||t[41]!==H||t[42]!==W||t[43]!==G||t[44]!==K?(q=(0,g.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[V,H,W,G,K]}),t[40]=V,t[41]=H,t[42]=W,t[43]=G,t[44]=K,t[45]=q):q=t[45];let re=L?`Unsaved changes`:`No changes`,J;t[46]===re?J=t[47]:(J=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:re}),t[46]=re,t[47]=J);let ie=i||!L,Y;t[48]!==k||t[49]!==ie?(Y=(0,g.jsx)(d,{disabled:ie,onClick:k,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[48]=k,t[49]=ie,t[50]=Y):Y=t[50];let ae=i||N||!L,oe=i?`Saving…`:`Save changes`,X;t[51]!==ae||t[52]!==oe?(X=(0,g.jsx)(d,{disabled:ae,size:`sm`,type:`submit`,children:oe}),t[51]=ae,t[52]=oe,t[53]=X):X=t[53];let Z;t[54]!==J||t[55]!==Y||t[56]!==X?(Z=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[J,Y,X]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z):Z=t[57];let Q;t[58]!==q||t[59]!==Z?(Q=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[q,Z]}),t[58]=q,t[59]=Z,t[60]=Q):Q=t[60];let $;return t[61]!==z||t[62]!==B||t[63]!==Q||t[64]!==R?($=(0,g.jsxs)(`form`,{onSubmit:R,children:[z,B,Q]}),t[61]=z,t[62]=B,t[63]=Q,t[64]=R,t[65]=$):$=t[65],$}function T(e){return e.key}function E(e){return e.key.trim().length===0&&e.value.length>0}function D(e){return e+1}export{x as i,v as n,b as r,w as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./plus.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{Ar as f}from"./index.js";import{a as p,r as m,t as h}from"./field.js";var ee=r(),te=t(n(),1),g=e();function ne(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function _(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function v(e){let t=(0,ee.c)(56),{specs:n,attributes:r,onSubmit:a,isPending:l,error:u,isSuccess:v}=e,b;t[0]!==r||t[1]!==n?(b=ne(n,r),t[0]=r,t[1]=n,t[2]=b):b=t[2];let x=b,[S,C]=(0,te.useState)(x),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=(e,t)=>{C(n=>({...n,[e]:t}))},t[3]=w):w=t[3];let T=w,E;if(t[4]!==n||t[5]!==S){E={};for(let e of n)E[e.key]=_(e,S[e.key]??``);t[4]=n,t[5]=S,t[6]=E}else E=t[6];let D=Object.values(E).some(Boolean),O;if(t[7]!==x||t[8]!==n||t[9]!==S){let e;t[11]!==x||t[12]!==S?(e=e=>(S[e.key]??``)!==(x[e.key]??``),t[11]=x,t[12]=S,t[13]=e):e=t[13];let r;t[14]===S?r=t[15]:(r=e=>({key:e.key,value:S[e.key]??``}),t[14]=S,t[15]=r),O=n.filter(e).map(r),t[7]=x,t[8]=n,t[9]=S,t[10]=O}else O=t[10];let k=O,A;t[16]===x?A=t[17]:(A=()=>{C(x)},t[16]=x,t[17]=A);let j=A,M;t[18]!==k||t[19]!==D||t[20]!==a?(M=e=>{e.preventDefault(),!(D||k.length===0)&&a(k)},t[18]=k,t[19]=D,t[20]=a,t[21]=M):M=t[21];let N;t[22]===u?N=t[23]:(N=u&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:u.message||`Failed to save attributes`}),t[22]=u,t[23]=N);let P;t[24]!==k.length||t[25]!==v?(P=v&&k.length===0&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),t[24]=k.length,t[25]=v,t[26]=P):P=t[26];let F;if(t[27]!==E||t[28]!==n||t[29]!==S){let e;t[31]!==E||t[32]!==S?(e=e=>{let t=`attr-${e.key}`,n=S[e.key]??``,r=E[e.key];return(0,g.jsxs)(h,{children:[(0,g.jsx)(p,{children:(0,g.jsx)(`label`,{htmlFor:t,children:e.label})}),e.type===`bool`&&(0,g.jsx)(`input`,{"aria-label":e.label,checked:n===`true`,id:t,onChange:t=>T(e.key,t.target.checked?`true`:`false`),type:`checkbox`}),e.type===`int`&&(0,g.jsx)(f,{"aria-invalid":!!r,id:t,inputMode:`numeric`,onChange:t=>T(e.key,t.target.value),value:n}),e.type===`text`&&(0,g.jsx)(f,{id:t,onChange:t=>T(e.key,t.target.value),placeholder:e.placeholder,value:n}),e.type===`select`&&(0,g.jsxs)(c,{onValueChange:t=>T(e.key,t??``),value:n,children:[(0,g.jsx)(s,{className:`w-full`,id:t,children:(0,g.jsx)(i,{})}),(0,g.jsx)(o,{children:e.options.map(y)})]}),e.description&&(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description}),(0,g.jsx)(m,{errors:[r?{message:r}:void 0]})]},e.key)},t[31]=E,t[32]=S,t[33]=e):e=t[33],F=n.map(e),t[27]=E,t[28]=n,t[29]=S,t[30]=F}else F=t[30];let I;t[34]===F?I=t[35]:(I=(0,g.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:F}),t[34]=F,t[35]=I);let L=k.length===0?`No changes`:`${k.length} change${k.length===1?``:`s`} pending`,R;t[36]===L?R=t[37]:(R=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:L}),t[36]=L,t[37]=R);let z=l||k.length===0,B;t[38]!==j||t[39]!==z?(B=(0,g.jsx)(d,{disabled:z,onClick:j,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[38]=j,t[39]=z,t[40]=B):B=t[40];let V=l||D||k.length===0,H=l?`Saving…`:`Save changes`,U;t[41]!==V||t[42]!==H?(U=(0,g.jsx)(d,{disabled:V,size:`sm`,type:`submit`,children:H}),t[41]=V,t[42]=H,t[43]=U):U=t[43];let W;t[44]!==R||t[45]!==B||t[46]!==U?(W=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[R,B,U]}),t[44]=R,t[45]=B,t[46]=U,t[47]=W):W=t[47];let G;t[48]!==W||t[49]!==I?(G=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[I,W]}),t[48]=W,t[49]=I,t[50]=G):G=t[50];let K;return t[51]!==G||t[52]!==M||t[53]!==N||t[54]!==P?(K=(0,g.jsxs)(`form`,{onSubmit:M,children:[N,P,G]}),t[51]=G,t[52]=M,t[53]=N,t[54]=P,t[55]=K):K=t[55],K}function y(e){return(0,g.jsx)(a,{value:e,children:e},e)}var b=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],x=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}];function S(e){return e.map((e,t)=>({id:t,key:e.Key??``,value:e.Value??``}))}function C(e){return e.map(e=>({key:e.key.trim(),value:e.value})).filter(e=>e.key.length>0)}function w(e){let t=(0,ee.c)(66),{tags:n,onSubmit:r,isPending:i,error:a,isSuccess:o}=e,s;t[0]===n?s=t[1]:(s=S(n),t[0]=n,t[1]=s);let c=s,[p,m]=(0,te.useState)(c),[h,ne]=(0,te.useState)(c.length),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=(e,t)=>{m(n=>n.map(n=>n.id===e?{...n,...t}:n))},t[2]=_):_=t[2];let v=_,y;t[3]===h?y=t[4]:(y=()=>{m(e=>[...e,{id:h,key:``,value:``}]),ne(D)},t[3]=h,t[4]=y);let b=y,x;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>{m(t=>t.filter(t=>t.id!==e))},t[5]=x):x=t[5];let w=x,O;t[6]===c?O=t[7]:(O=()=>{m(c)},t[6]=c,t[7]=O);let k=O,A;t[8]===p?A=t[9]:(A=p.some(E),t[8]=p,t[9]=A);let j=A,M,N,P,F;if(t[10]!==j||t[11]!==p){P=C(p);let e=P.map(T);M=new Set(e).size!==e.length,N=j||M,F=JSON.stringify(P),t[10]=j,t[11]=p,t[12]=M,t[13]=N,t[14]=P,t[15]=F}else M=t[12],N=t[13],P=t[14],F=t[15];let I;t[16]===c?I=t[17]:(I=JSON.stringify(C(c)),t[16]=c,t[17]=I);let L=F!==I,R;t[18]!==L||t[19]!==N||t[20]!==P||t[21]!==r?(R=e=>{e.preventDefault(),!(N||!L)&&r(P)},t[18]=L,t[19]=N,t[20]=P,t[21]=r,t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=a&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:a.message||`Failed to save tags`}),t[23]=a,t[24]=z);let B;t[25]!==L||t[26]!==o?(B=o&&!L&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Tags saved.`}),t[25]=L,t[26]=o,t[27]=B):B=t[27];let V;t[28]===p.length?V=t[29]:(V=p.length===0&&(0,g.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No tags.`}),t[28]=p.length,t[29]=V);let H;if(t[30]!==p){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(f,{"aria-label":`Tag key`,onChange:t=>v(e.id,{key:t.target.value}),placeholder:`Key`,value:e.key}),(0,g.jsx)(f,{"aria-label":`Tag value`,onChange:t=>v(e.id,{value:t.target.value}),placeholder:`Value`,value:e.value}),(0,g.jsx)(d,{"aria-label":`Remove tag`,onClick:()=>w(e.id),size:`icon`,type:`button`,variant:`ghost`,children:(0,g.jsx)(u,{className:`size-4`})})]},e.id),t[32]=e):e=t[32],H=p.map(e),t[30]=p,t[31]=H}else H=t[31];let U;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,g.jsx)(l,{className:`size-4`}),t[33]=U):U=t[33];let W;t[34]===b?W=t[35]:(W=(0,g.jsx)(`div`,{children:(0,g.jsxs)(d,{onClick:b,size:`sm`,type:`button`,variant:`secondary`,children:[U,` Add tag`]})}),t[34]=b,t[35]=W);let G;t[36]===j?G=t[37]:(G=j&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Every tag with a value needs a key.`}),t[36]=j,t[37]=G);let K;t[38]===M?K=t[39]:(K=M&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Tag keys must be unique.`}),t[38]=M,t[39]=K);let q;t[40]!==V||t[41]!==H||t[42]!==W||t[43]!==G||t[44]!==K?(q=(0,g.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[V,H,W,G,K]}),t[40]=V,t[41]=H,t[42]=W,t[43]=G,t[44]=K,t[45]=q):q=t[45];let re=L?`Unsaved changes`:`No changes`,J;t[46]===re?J=t[47]:(J=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:re}),t[46]=re,t[47]=J);let ie=i||!L,Y;t[48]!==k||t[49]!==ie?(Y=(0,g.jsx)(d,{disabled:ie,onClick:k,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[48]=k,t[49]=ie,t[50]=Y):Y=t[50];let ae=i||N||!L,oe=i?`Saving…`:`Save changes`,X;t[51]!==ae||t[52]!==oe?(X=(0,g.jsx)(d,{disabled:ae,size:`sm`,type:`submit`,children:oe}),t[51]=ae,t[52]=oe,t[53]=X):X=t[53];let Z;t[54]!==J||t[55]!==Y||t[56]!==X?(Z=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[J,Y,X]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z):Z=t[57];let Q;t[58]!==q||t[59]!==Z?(Q=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[q,Z]}),t[58]=q,t[59]=Z,t[60]=Q):Q=t[60];let $;return t[61]!==z||t[62]!==B||t[63]!==Q||t[64]!==R?($=(0,g.jsxs)(`form`,{onSubmit:R,children:[z,B,Q]}),t[61]=z,t[62]=B,t[63]=Q,t[64]=R,t[65]=$):$=t[65],$}function T(e){return e.key}function E(e){return e.key.trim().length===0&&e.value.length>0}function D(e){return e+1}export{x as i,v as n,b as r,w as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js index d007fe4db..6924a599c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Vt as ee}from"./auth.js";import{c as te,i as ne,n as re,s as ie,t as ae}from"./select.js";import{t as oe}from"./plus.js";import{t as se}from"./trash-2.js";import{t as ce}from"./button.js";import{xr as n}from"./index.js";import{a as le,n as ue}from"./zod.js";import{a as r,r as i,t as a}from"./field.js";import{n as de,r as fe,t as pe}from"./collapsible.js";var me=t(),o=e();function he(e){let t=(0,me.c)(147),{form:ee,vpcs:ne,allowedProtocols:he}=e,ve;t[0]===he?ve=t[1]:(ve=he===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:he,t[0]=he,t[1]=ve);let ye=ve,{control:s,register:c,setValue:l,getValues:u,formState:be}=ee,{errors:d}=be,xe;t[2]===s?xe=t[3]:(xe={control:s,name:`tags`},t[2]=s,t[3]=xe);let Se=le(xe),Ce;t[4]===s?Ce=t[5]:(Ce={control:s,name:`protocol`},t[4]=s,t[5]=Ce);let we=le(Ce),f=we===`HTTP`||we===`HTTPS`,Te;t[6]===l?Te=t[7]:(Te=e=>{e&&(l(`protocol`,e),l(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},t[6]=l,t[7]=Te);let Ee=Te,De;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),t[8]=De):De=t[8];let Oe=!!d.name,p;t[9]===c?p=t[10]:(p=c(`name`),t[9]=c,t[10]=p);let m;t[11]!==Oe||t[12]!==p?(m=(0,o.jsx)(n,{"aria-invalid":Oe,id:`tg-name`,placeholder:`my-target-group`,...p}),t[11]=Oe,t[12]=p,t[13]=m):m=t[13];let h;t[14]===d.name?h=t[15]:(h=(0,o.jsx)(i,{errors:[d.name]}),t[14]=d.name,t[15]=h);let g;t[16]!==m||t[17]!==h?(g=(0,o.jsxs)(a,{children:[De,m,h]}),t[16]=m,t[17]=h,t[18]=g):g=t[18];let ke;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),t[19]=ke):ke=t[19];let _;t[20]!==ye||t[21]!==Ee?(_=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:Ee,value:t.value,children:[(0,o.jsx)(ie,{className:`w-full`,id:`tg-protocol`,children:(0,o.jsx)(te,{})}),(0,o.jsx)(re,{children:ye.map(_e)})]})},t[20]=ye,t[21]=Ee,t[22]=_):_=t[22];let v;t[23]!==s||t[24]!==_?(v=(0,o.jsxs)(a,{children:[ke,(0,o.jsx)(ue,{control:s,name:`protocol`,render:_})]}),t[23]=s,t[24]=_,t[25]=v):v=t[25];let Ae;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),t[26]=Ae):Ae=t[26];let je=!!d.port,y;t[27]===c?y=t[28]:(y=c(`port`,{valueAsNumber:!0}),t[27]=c,t[28]=y);let b;t[29]!==je||t[30]!==y?(b=(0,o.jsx)(n,{"aria-invalid":je,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...y}),t[29]=je,t[30]=y,t[31]=b):b=t[31];let x;t[32]===d.port?x=t[33]:(x=(0,o.jsx)(i,{errors:[d.port]}),t[32]=d.port,t[33]=x);let S;t[34]!==b||t[35]!==x?(S=(0,o.jsxs)(a,{children:[Ae,b,x]}),t[34]=b,t[35]=x,t[36]=S):S=t[36];let Me;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),t[37]=Me):Me=t[37];let C;t[38]!==d.vpcId||t[39]!==ne?(C=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,o.jsx)(ie,{"aria-invalid":!!d.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,o.jsx)(te,{placeholder:`Select VPC`})}),(0,o.jsx)(re,{children:ne.map(ge)})]})},t[38]=d.vpcId,t[39]=ne,t[40]=C):C=t[40];let w;t[41]!==s||t[42]!==C?(w=(0,o.jsx)(ue,{control:s,name:`vpcId`,render:C}),t[41]=s,t[42]=C,t[43]=w):w=t[43];let T;t[44]===d.vpcId?T=t[45]:(T=(0,o.jsx)(i,{errors:[d.vpcId]}),t[44]=d.vpcId,t[45]=T);let E;t[46]!==w||t[47]!==T?(E=(0,o.jsxs)(a,{children:[Me,w,T]}),t[46]=w,t[47]=T,t[48]=E):E=t[48];let Ne;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,o.jsx)(fe,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,o.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),t[49]=Ne):Ne=t[49];let D;t[50]!==d.healthCheck?.path||t[51]!==f||t[52]!==c?(D=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.path,id:`hc-path`,placeholder:`/`,...c(`healthCheck.path`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.path]})]}),t[50]=d.healthCheck?.path,t[51]=f,t[52]=c,t[53]=D):D=t[53];let Pe;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),t[54]=Pe):Pe=t[54];let Fe=!!d.healthCheck?.port,O;t[55]===c?O=t[56]:(O=c(`healthCheck.port`),t[55]=c,t[56]=O);let k;t[57]!==Fe||t[58]!==O?(k=(0,o.jsx)(n,{"aria-invalid":Fe,id:`hc-port`,placeholder:`traffic-port or numeric`,...O}),t[57]=Fe,t[58]=O,t[59]=k):k=t[59];let Ie=d.healthCheck?.port,A;t[60]===Ie?A=t[61]:(A=(0,o.jsx)(i,{errors:[Ie]}),t[60]=Ie,t[61]=A);let j;t[62]!==k||t[63]!==A?(j=(0,o.jsxs)(a,{children:[Pe,k,A]}),t[62]=k,t[63]=A,t[64]=j):j=t[64];let Le;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),t[65]=Le):Le=t[65];let Re=!!d.healthCheck?.intervalSeconds,M;t[66]===c?M=t[67]:(M=c(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[66]=c,t[67]=M);let N;t[68]!==Re||t[69]!==M?(N=(0,o.jsx)(n,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),t[68]=Re,t[69]=M,t[70]=N):N=t[70];let ze=d.healthCheck?.intervalSeconds,P;t[71]===ze?P=t[72]:(P=(0,o.jsx)(i,{errors:[ze]}),t[71]=ze,t[72]=P);let F;t[73]!==N||t[74]!==P?(F=(0,o.jsxs)(a,{children:[Le,N,P]}),t[73]=N,t[74]=P,t[75]=F):F=t[75];let Be;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),t[76]=Be):Be=t[76];let Ve=!!d.healthCheck?.timeoutSeconds,I;t[77]===c?I=t[78]:(I=c(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),t[77]=c,t[78]=I);let L;t[79]!==Ve||t[80]!==I?(L=(0,o.jsx)(n,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),t[79]=Ve,t[80]=I,t[81]=L):L=t[81];let He=d.healthCheck?.timeoutSeconds,R;t[82]===He?R=t[83]:(R=(0,o.jsx)(i,{errors:[He]}),t[82]=He,t[83]=R);let z;t[84]!==L||t[85]!==R?(z=(0,o.jsxs)(a,{children:[Be,L,R]}),t[84]=L,t[85]=R,t[86]=z):z=t[86];let Ue;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),t[87]=Ue):Ue=t[87];let We=!!d.healthCheck?.healthyThresholdCount,B;t[88]===c?B=t[89]:(B=c(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),t[88]=c,t[89]=B);let V;t[90]!==We||t[91]!==B?(V=(0,o.jsx)(n,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),t[90]=We,t[91]=B,t[92]=V):V=t[92];let Ge=d.healthCheck?.healthyThresholdCount,H;t[93]===Ge?H=t[94]:(H=(0,o.jsx)(i,{errors:[Ge]}),t[93]=Ge,t[94]=H);let U;t[95]!==V||t[96]!==H?(U=(0,o.jsxs)(a,{children:[Ue,V,H]}),t[95]=V,t[96]=H,t[97]=U):U=t[97];let Ke;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),t[98]=Ke):Ke=t[98];let qe=!!d.healthCheck?.unhealthyThresholdCount,W;t[99]===c?W=t[100]:(W=c(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),t[99]=c,t[100]=W);let G;t[101]!==qe||t[102]!==W?(G=(0,o.jsx)(n,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),t[101]=qe,t[102]=W,t[103]=G):G=t[103];let Je=d.healthCheck?.unhealthyThresholdCount,K;t[104]===Je?K=t[105]:(K=(0,o.jsx)(i,{errors:[Je]}),t[104]=Je,t[105]=K);let q;t[106]!==G||t[107]!==K?(q=(0,o.jsxs)(a,{children:[Ke,G,K]}),t[106]=G,t[107]=K,t[108]=q):q=t[108];let J;t[109]!==d.healthCheck?.matcher||t[110]!==f||t[111]!==c?(J=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...c(`healthCheck.matcher`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.matcher]})]}),t[109]=d.healthCheck?.matcher,t[110]=f,t[111]=c,t[112]=J):J=t[112];let Y;t[113]!==D||t[114]!==j||t[115]!==F||t[116]!==z||t[117]!==U||t[118]!==q||t[119]!==J?(Y=(0,o.jsxs)(pe,{children:[Ne,(0,o.jsxs)(de,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[D,j,F,z,U,q,J]})]}),t[113]=D,t[114]=j,t[115]=F,t[116]=z,t[117]=U,t[118]=q,t[119]=J,t[120]=Y):Y=t[120];let Ye;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,o.jsx)(r,{children:`Tags`}),t[121]=Ye):Ye=t[121];let X;if(t[122]!==u||t[123]!==c||t[124]!==l||t[125]!==Se){let e;t[127]!==u||t[128]!==c||t[129]!==l?(e=(e,t)=>(0,o.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,o.jsx)(n,{placeholder:`Key`,...c(`tags.${t}.key`)}),(0,o.jsx)(n,{placeholder:`Value`,...c(`tags.${t}.value`)}),(0,o.jsx)(ce,{onClick:()=>l(`tags`,u(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,o.jsx)(se,{className:`size-3.5`})})]},t),t[127]=u,t[128]=c,t[129]=l,t[130]=e):e=t[130],X=Se.map(e),t[122]=u,t[123]=c,t[124]=l,t[125]=Se,t[126]=X}else X=t[126];let Z;t[131]!==u||t[132]!==l?(Z=()=>l(`tags`,[...u(`tags`),{key:``,value:``}]),t[131]=u,t[132]=l,t[133]=Z):Z=t[133];let Xe;t[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,o.jsx)(oe,{className:`size-3.5`}),t[134]=Xe):Xe=t[134];let Q;t[135]===Z?Q=t[136]:(Q=(0,o.jsxs)(ce,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),t[135]=Z,t[136]=Q);let $;t[137]!==X||t[138]!==Q?($=(0,o.jsxs)(a,{children:[Ye,(0,o.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),t[137]=X,t[138]=Q,t[139]=$):$=t[139];let Ze;return t[140]!==g||t[141]!==v||t[142]!==S||t[143]!==E||t[144]!==Y||t[145]!==$?(Ze=(0,o.jsxs)(o.Fragment,{children:[g,v,S,E,Y,$]}),t[140]=g,t[141]=v,t[142]=S,t[143]=E,t[144]=Y,t[145]=$,t[146]=Ze):Ze=t[146],Ze}function ge(e){let t=ee(e.Tags);return(0,o.jsx)(ne,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){return(0,o.jsx)(ne,{value:e,children:e},e)}export{he as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Vt as ee}from"./auth.js";import{c as te,i as ne,n as re,s as ie,t as ae}from"./select.js";import{t as oe}from"./plus.js";import{t as se}from"./trash-2.js";import{t as ce}from"./button.js";import{Ar as n}from"./index.js";import{a as le,n as ue}from"./zod.js";import{a as r,r as i,t as a}from"./field.js";import{n as de,r as fe,t as pe}from"./collapsible.js";var me=t(),o=e();function he(e){let t=(0,me.c)(147),{form:ee,vpcs:ne,allowedProtocols:he}=e,ve;t[0]===he?ve=t[1]:(ve=he===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:he,t[0]=he,t[1]=ve);let ye=ve,{control:s,register:c,setValue:l,getValues:u,formState:be}=ee,{errors:d}=be,xe;t[2]===s?xe=t[3]:(xe={control:s,name:`tags`},t[2]=s,t[3]=xe);let Se=le(xe),Ce;t[4]===s?Ce=t[5]:(Ce={control:s,name:`protocol`},t[4]=s,t[5]=Ce);let we=le(Ce),f=we===`HTTP`||we===`HTTPS`,Te;t[6]===l?Te=t[7]:(Te=e=>{e&&(l(`protocol`,e),l(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},t[6]=l,t[7]=Te);let Ee=Te,De;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),t[8]=De):De=t[8];let Oe=!!d.name,p;t[9]===c?p=t[10]:(p=c(`name`),t[9]=c,t[10]=p);let m;t[11]!==Oe||t[12]!==p?(m=(0,o.jsx)(n,{"aria-invalid":Oe,id:`tg-name`,placeholder:`my-target-group`,...p}),t[11]=Oe,t[12]=p,t[13]=m):m=t[13];let h;t[14]===d.name?h=t[15]:(h=(0,o.jsx)(i,{errors:[d.name]}),t[14]=d.name,t[15]=h);let g;t[16]!==m||t[17]!==h?(g=(0,o.jsxs)(a,{children:[De,m,h]}),t[16]=m,t[17]=h,t[18]=g):g=t[18];let ke;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),t[19]=ke):ke=t[19];let _;t[20]!==ye||t[21]!==Ee?(_=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:Ee,value:t.value,children:[(0,o.jsx)(ie,{className:`w-full`,id:`tg-protocol`,children:(0,o.jsx)(te,{})}),(0,o.jsx)(re,{children:ye.map(_e)})]})},t[20]=ye,t[21]=Ee,t[22]=_):_=t[22];let v;t[23]!==s||t[24]!==_?(v=(0,o.jsxs)(a,{children:[ke,(0,o.jsx)(ue,{control:s,name:`protocol`,render:_})]}),t[23]=s,t[24]=_,t[25]=v):v=t[25];let Ae;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),t[26]=Ae):Ae=t[26];let je=!!d.port,y;t[27]===c?y=t[28]:(y=c(`port`,{valueAsNumber:!0}),t[27]=c,t[28]=y);let b;t[29]!==je||t[30]!==y?(b=(0,o.jsx)(n,{"aria-invalid":je,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...y}),t[29]=je,t[30]=y,t[31]=b):b=t[31];let x;t[32]===d.port?x=t[33]:(x=(0,o.jsx)(i,{errors:[d.port]}),t[32]=d.port,t[33]=x);let S;t[34]!==b||t[35]!==x?(S=(0,o.jsxs)(a,{children:[Ae,b,x]}),t[34]=b,t[35]=x,t[36]=S):S=t[36];let Me;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),t[37]=Me):Me=t[37];let C;t[38]!==d.vpcId||t[39]!==ne?(C=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,o.jsx)(ie,{"aria-invalid":!!d.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,o.jsx)(te,{placeholder:`Select VPC`})}),(0,o.jsx)(re,{children:ne.map(ge)})]})},t[38]=d.vpcId,t[39]=ne,t[40]=C):C=t[40];let w;t[41]!==s||t[42]!==C?(w=(0,o.jsx)(ue,{control:s,name:`vpcId`,render:C}),t[41]=s,t[42]=C,t[43]=w):w=t[43];let T;t[44]===d.vpcId?T=t[45]:(T=(0,o.jsx)(i,{errors:[d.vpcId]}),t[44]=d.vpcId,t[45]=T);let E;t[46]!==w||t[47]!==T?(E=(0,o.jsxs)(a,{children:[Me,w,T]}),t[46]=w,t[47]=T,t[48]=E):E=t[48];let Ne;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,o.jsx)(fe,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,o.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),t[49]=Ne):Ne=t[49];let D;t[50]!==d.healthCheck?.path||t[51]!==f||t[52]!==c?(D=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.path,id:`hc-path`,placeholder:`/`,...c(`healthCheck.path`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.path]})]}),t[50]=d.healthCheck?.path,t[51]=f,t[52]=c,t[53]=D):D=t[53];let Pe;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),t[54]=Pe):Pe=t[54];let Fe=!!d.healthCheck?.port,O;t[55]===c?O=t[56]:(O=c(`healthCheck.port`),t[55]=c,t[56]=O);let k;t[57]!==Fe||t[58]!==O?(k=(0,o.jsx)(n,{"aria-invalid":Fe,id:`hc-port`,placeholder:`traffic-port or numeric`,...O}),t[57]=Fe,t[58]=O,t[59]=k):k=t[59];let Ie=d.healthCheck?.port,A;t[60]===Ie?A=t[61]:(A=(0,o.jsx)(i,{errors:[Ie]}),t[60]=Ie,t[61]=A);let j;t[62]!==k||t[63]!==A?(j=(0,o.jsxs)(a,{children:[Pe,k,A]}),t[62]=k,t[63]=A,t[64]=j):j=t[64];let Le;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),t[65]=Le):Le=t[65];let Re=!!d.healthCheck?.intervalSeconds,M;t[66]===c?M=t[67]:(M=c(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[66]=c,t[67]=M);let N;t[68]!==Re||t[69]!==M?(N=(0,o.jsx)(n,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),t[68]=Re,t[69]=M,t[70]=N):N=t[70];let ze=d.healthCheck?.intervalSeconds,P;t[71]===ze?P=t[72]:(P=(0,o.jsx)(i,{errors:[ze]}),t[71]=ze,t[72]=P);let F;t[73]!==N||t[74]!==P?(F=(0,o.jsxs)(a,{children:[Le,N,P]}),t[73]=N,t[74]=P,t[75]=F):F=t[75];let Be;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),t[76]=Be):Be=t[76];let Ve=!!d.healthCheck?.timeoutSeconds,I;t[77]===c?I=t[78]:(I=c(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),t[77]=c,t[78]=I);let L;t[79]!==Ve||t[80]!==I?(L=(0,o.jsx)(n,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),t[79]=Ve,t[80]=I,t[81]=L):L=t[81];let He=d.healthCheck?.timeoutSeconds,R;t[82]===He?R=t[83]:(R=(0,o.jsx)(i,{errors:[He]}),t[82]=He,t[83]=R);let z;t[84]!==L||t[85]!==R?(z=(0,o.jsxs)(a,{children:[Be,L,R]}),t[84]=L,t[85]=R,t[86]=z):z=t[86];let Ue;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),t[87]=Ue):Ue=t[87];let We=!!d.healthCheck?.healthyThresholdCount,B;t[88]===c?B=t[89]:(B=c(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),t[88]=c,t[89]=B);let V;t[90]!==We||t[91]!==B?(V=(0,o.jsx)(n,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),t[90]=We,t[91]=B,t[92]=V):V=t[92];let Ge=d.healthCheck?.healthyThresholdCount,H;t[93]===Ge?H=t[94]:(H=(0,o.jsx)(i,{errors:[Ge]}),t[93]=Ge,t[94]=H);let U;t[95]!==V||t[96]!==H?(U=(0,o.jsxs)(a,{children:[Ue,V,H]}),t[95]=V,t[96]=H,t[97]=U):U=t[97];let Ke;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),t[98]=Ke):Ke=t[98];let qe=!!d.healthCheck?.unhealthyThresholdCount,W;t[99]===c?W=t[100]:(W=c(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),t[99]=c,t[100]=W);let G;t[101]!==qe||t[102]!==W?(G=(0,o.jsx)(n,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),t[101]=qe,t[102]=W,t[103]=G):G=t[103];let Je=d.healthCheck?.unhealthyThresholdCount,K;t[104]===Je?K=t[105]:(K=(0,o.jsx)(i,{errors:[Je]}),t[104]=Je,t[105]=K);let q;t[106]!==G||t[107]!==K?(q=(0,o.jsxs)(a,{children:[Ke,G,K]}),t[106]=G,t[107]=K,t[108]=q):q=t[108];let J;t[109]!==d.healthCheck?.matcher||t[110]!==f||t[111]!==c?(J=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...c(`healthCheck.matcher`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.matcher]})]}),t[109]=d.healthCheck?.matcher,t[110]=f,t[111]=c,t[112]=J):J=t[112];let Y;t[113]!==D||t[114]!==j||t[115]!==F||t[116]!==z||t[117]!==U||t[118]!==q||t[119]!==J?(Y=(0,o.jsxs)(pe,{children:[Ne,(0,o.jsxs)(de,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[D,j,F,z,U,q,J]})]}),t[113]=D,t[114]=j,t[115]=F,t[116]=z,t[117]=U,t[118]=q,t[119]=J,t[120]=Y):Y=t[120];let Ye;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,o.jsx)(r,{children:`Tags`}),t[121]=Ye):Ye=t[121];let X;if(t[122]!==u||t[123]!==c||t[124]!==l||t[125]!==Se){let e;t[127]!==u||t[128]!==c||t[129]!==l?(e=(e,t)=>(0,o.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,o.jsx)(n,{placeholder:`Key`,...c(`tags.${t}.key`)}),(0,o.jsx)(n,{placeholder:`Value`,...c(`tags.${t}.value`)}),(0,o.jsx)(ce,{onClick:()=>l(`tags`,u(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,o.jsx)(se,{className:`size-3.5`})})]},t),t[127]=u,t[128]=c,t[129]=l,t[130]=e):e=t[130],X=Se.map(e),t[122]=u,t[123]=c,t[124]=l,t[125]=Se,t[126]=X}else X=t[126];let Z;t[131]!==u||t[132]!==l?(Z=()=>l(`tags`,[...u(`tags`),{key:``,value:``}]),t[131]=u,t[132]=l,t[133]=Z):Z=t[133];let Xe;t[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,o.jsx)(oe,{className:`size-3.5`}),t[134]=Xe):Xe=t[134];let Q;t[135]===Z?Q=t[136]:(Q=(0,o.jsxs)(ce,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),t[135]=Z,t[136]=Q);let $;t[137]!==X||t[138]!==Q?($=(0,o.jsxs)(a,{children:[Ye,(0,o.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),t[137]=X,t[138]=Q,t[139]=$):$=t[139];let Ze;return t[140]!==g||t[141]!==v||t[142]!==S||t[143]!==E||t[144]!==Y||t[145]!==$?(Ze=(0,o.jsxs)(o.Fragment,{children:[g,v,S,E,Y,$]}),t[140]=g,t[141]=v,t[142]=S,t[143]=E,t[144]=Y,t[145]=$,t[146]=Ze):Ze=t[146],Ze}function ge(e){let t=ee(e.Tags);return(0,o.jsx)(ne,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){return(0,o.jsx)(ne,{value:e,children:e},e)}export{he as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/task-definitions.js b/spinifex/services/spinifexui/frontend/dist/assets/task-definitions.js index 923fdd60e..f9803e817 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/task-definitions.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/task-definitions.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{xi as a}from"./awsClient.js";import{t as o}from"./button.js";import{a as s}from"./ecs.js";import{ut as c}from"./index.js";import{t as l}from"./error-banner.js";import{t as u}from"./page-heading.js";import{t as d}from"./delete-confirmation-dialog.js";import{t as f}from"./ecs-section-nav.js";var p=r(),m=t(n(),1),h=e();function g(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function _(e){let t=(0,p.c)(24),{clusterName:n}=e,{data:r}=i(c),u=s(),[f,_]=(0,m.useState)(null),v;t[0]!==u||t[1]!==f?(v=function(){f&&u.mutate(f,{onSuccess:()=>_(null)})},t[0]=u,t[1]=f,t[2]=v):v=t[2];let y=v,b=n??``,x;t[3]===b?x=t[4]:(x={cluster:b},t[3]=b,t[4]=x);let S;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,h.jsx)(o,{size:`sm`,children:`Register task definition`}),t[5]=S):S=t[5];let C;t[6]===x?C=t[7]:(C=(0,h.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,h.jsx)(a,{search:x,to:`/ecs/register-task-definition`,children:S})}),t[6]=x,t[7]=C);let w;t[8]!==u.error||t[9]!==u.isError?(w=u.isError&&(0,h.jsx)(l,{error:u.error instanceof Error?u.error:void 0,msg:`Failed to deregister task definition.`}),t[8]=u.error,t[9]=u.isError,t[10]=w):w=t[10];let T;t[11]===r?T=t[12]:(T=r.length===0?(0,h.jsx)(`p`,{className:`text-muted-foreground`,children:`No task definitions found.`}):(0,h.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,h.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Family : Revision`}),(0,h.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,h.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,h.jsx)(`tbody`,{children:r.map(e=>{let t=g(e);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,h.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,h.jsx)(o,{onClick:()=>_(t),size:`sm`,variant:`destructive`,children:`Deregister`})})]},e)})})]})}),t[11]=r,t[12]=T);let E=`This marks task definition "${f}" INACTIVE. Existing tasks keep running; no new tasks can use it.`,D;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>!e&&_(null),t[13]=D):D=t[13];let O=f!==null,k;t[14]!==u.isPending||t[15]!==y||t[16]!==O||t[17]!==E?(k=(0,h.jsx)(d,{confirmLabel:`Deregister`,description:E,isPending:u.isPending,onConfirm:y,onOpenChange:D,open:O,pendingLabel:`Deregistering…`,title:`Deregister task definition`}),t[14]=u.isPending,t[15]=y,t[16]=O,t[17]=E,t[18]=k):k=t[18];let A;return t[19]!==k||t[20]!==C||t[21]!==w||t[22]!==T?(A=(0,h.jsxs)(h.Fragment,{children:[C,w,T,k]}),t[19]=k,t[20]=C,t[21]=w,t[22]=T,t[23]=A):A=t[23],A}function v(){let e=(0,p.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u,{title:`Task definitions`}),(0,h.jsx)(f,{}),(0,h.jsx)(_,{})]}),e[0]=t):t=e[0],t}var y=v;export{y as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ni as a}from"./awsClient.js";import{t as o}from"./button.js";import{a as s}from"./ecs.js";import{ut as c}from"./index.js";import{t as l}from"./error-banner.js";import{t as u}from"./page-heading.js";import{t as d}from"./delete-confirmation-dialog.js";import{t as f}from"./ecs-section-nav.js";var p=r(),m=t(n(),1),h=e();function g(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function _(e){let t=(0,p.c)(24),{clusterName:n}=e,{data:r}=i(c),u=s(),[f,_]=(0,m.useState)(null),v;t[0]!==u||t[1]!==f?(v=function(){f&&u.mutate(f,{onSuccess:()=>_(null)})},t[0]=u,t[1]=f,t[2]=v):v=t[2];let y=v,b=n??``,x;t[3]===b?x=t[4]:(x={cluster:b},t[3]=b,t[4]=x);let S;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,h.jsx)(o,{size:`sm`,children:`Register task definition`}),t[5]=S):S=t[5];let C;t[6]===x?C=t[7]:(C=(0,h.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,h.jsx)(a,{search:x,to:`/ecs/register-task-definition`,children:S})}),t[6]=x,t[7]=C);let w;t[8]!==u.error||t[9]!==u.isError?(w=u.isError&&(0,h.jsx)(l,{error:u.error instanceof Error?u.error:void 0,msg:`Failed to deregister task definition.`}),t[8]=u.error,t[9]=u.isError,t[10]=w):w=t[10];let T;t[11]===r?T=t[12]:(T=r.length===0?(0,h.jsx)(`p`,{className:`text-muted-foreground`,children:`No task definitions found.`}):(0,h.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,h.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Family : Revision`}),(0,h.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,h.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,h.jsx)(`tbody`,{children:r.map(e=>{let t=g(e);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,h.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,h.jsx)(o,{onClick:()=>_(t),size:`sm`,variant:`destructive`,children:`Deregister`})})]},e)})})]})}),t[11]=r,t[12]=T);let E=`This marks task definition "${f}" INACTIVE. Existing tasks keep running; no new tasks can use it.`,D;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>!e&&_(null),t[13]=D):D=t[13];let O=f!==null,k;t[14]!==u.isPending||t[15]!==y||t[16]!==O||t[17]!==E?(k=(0,h.jsx)(d,{confirmLabel:`Deregister`,description:E,isPending:u.isPending,onConfirm:y,onOpenChange:D,open:O,pendingLabel:`Deregistering…`,title:`Deregister task definition`}),t[14]=u.isPending,t[15]=y,t[16]=O,t[17]=E,t[18]=k):k=t[18];let A;return t[19]!==k||t[20]!==C||t[21]!==w||t[22]!==T?(A=(0,h.jsxs)(h.Fragment,{children:[C,w,T,k]}),t[19]=k,t[20]=C,t[21]=w,t[22]=T,t[23]=A):A=t[23],A}function v(){let e=(0,p.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u,{title:`Task definitions`}),(0,h.jsx)(f,{}),(0,h.jsx)(_,{})]}),e[0]=t):t=e[0],t}var y=v;export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js index 59533addd..a6d00eda5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js index 6717c8925..8a7551cea 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js @@ -1 +1 @@ -import{hi as e}from"./index.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ No newline at end of file +import{wi as e}from"./index.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js index 14872e57e..38dbfe8c6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{M as i,N as a,h as o,l as s,x as c,xi as l}from"./awsClient.js";import{Rt as u,zt as d}from"./auth.js";import{t as f}from"./download.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{n as h}from"./s3.js";import{hi as g}from"./index.js";import{t as _}from"./error-banner.js";import{t as v}from"./delete-confirmation-dialog.js";var y=g(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),b=g(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),x=g(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),S=class extends a(c,i,`GetObject`,o){},C=r(),w=e();function T(e){let t=(0,C.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,w.jsx)(b,{className:`size-5 text-muted-foreground`}),t[3]=o):o=t[3];let s;t[4]===n?s=t[5]:(s=(0,w.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=s);let c;return t[6]!==a||t[7]!==s?(c=(0,w.jsxs)(l,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:a,to:`/s3/ls/$bucket/$`,children:[o,s]}),t[6]=a,t[7]=s,t[8]=c):c=t[8],c}var E=t(n(),1);function D({object:e,bucketName:t,displayName:n,fullKey:r}){let[i,a]=(0,E.useState)(!1),[o,c]=(0,E.useState)(null),l=h();async function m(){c(null);try{let e=new S({Bucket:t,Key:r}),i=await s().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){c(Error(`Failed to download object`,{cause:e}))}}async function g(){try{await l.mutateAsync({bucket:t,key:r})}finally{a(!1)}}return(0,w.jsxs)(`div`,{children:[l.error&&(0,w.jsx)(_,{error:l.error,msg:`Failed to delete object`}),o&&(0,w.jsx)(_,{error:o,msg:`Failed to download object`}),(0,w.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(y,{className:`size-5 text-muted-foreground`}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,w.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,u(e.LastModified)]})]})]}),(0,w.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:d(e.Size??0)}),(0,w.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:m,type:`button`,children:(0,w.jsx)(f,{className:`size-4`})}),(0,w.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>a(!0),type:`button`,children:(0,w.jsx)(p,{className:`size-4`})})]}),(0,w.jsx)(v,{description:(0,w.jsxs)(w.Fragment,{children:[`Are you sure you want to delete `,(0,w.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:l.isPending,onConfirm:g,onOpenChange:a,open:i,title:`Delete Object`})]})]},e.Key)}function O({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,E.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,w.jsxs)(m,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,w.jsx)(x,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{D as n,T as r,O as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{M as i,N as a,Ni as o,h as s,l as c,x as l}from"./awsClient.js";import{Rt as u,zt as d}from"./auth.js";import{t as f}from"./download.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{n as h}from"./s3.js";import{wi as g}from"./index.js";import{t as _}from"./error-banner.js";import{t as v}from"./delete-confirmation-dialog.js";var y=g(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),b=g(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),x=g(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),S=class extends a(l,i,`GetObject`,s){},C=r(),w=e();function T(e){let t=(0,C.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(b,{className:`size-5 text-muted-foreground`}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=(0,w.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==a||t[7]!==c?(l=(0,w.jsxs)(o,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:a,to:`/s3/ls/$bucket/$`,children:[s,c]}),t[6]=a,t[7]=c,t[8]=l):l=t[8],l}var E=t(n(),1);function D({object:e,bucketName:t,displayName:n,fullKey:r}){let[i,a]=(0,E.useState)(!1),[o,s]=(0,E.useState)(null),l=h();async function m(){s(null);try{let e=new S({Bucket:t,Key:r}),i=await c().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){s(Error(`Failed to download object`,{cause:e}))}}async function g(){try{await l.mutateAsync({bucket:t,key:r})}finally{a(!1)}}return(0,w.jsxs)(`div`,{children:[l.error&&(0,w.jsx)(_,{error:l.error,msg:`Failed to delete object`}),o&&(0,w.jsx)(_,{error:o,msg:`Failed to download object`}),(0,w.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(y,{className:`size-5 text-muted-foreground`}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,w.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,u(e.LastModified)]})]})]}),(0,w.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:d(e.Size??0)}),(0,w.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:m,type:`button`,children:(0,w.jsx)(f,{className:`size-4`})}),(0,w.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>a(!0),type:`button`,children:(0,w.jsx)(p,{className:`size-4`})})]}),(0,w.jsx)(v,{description:(0,w.jsxs)(w.Fragment,{children:[`Are you sure you want to delete `,(0,w.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:l.isPending,onConfirm:g,onOpenChange:a,open:i,title:`Delete Object`})]})]},e.Key)}function O({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,E.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,w.jsxs)(m,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,w.jsx)(x,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{D as n,T as r,O as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js index feef951bd..56ba6e828 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{Ai as r,Ci as i,Di as a,Ei as o,Fi as s,Ii as c,Mi as l,Ni as u,Oi as d,Pi as f,Si as p,ji as m,ki as h,wi as g,xi as _,yi as v}from"./index.js";var y=class extends c{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=i(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof h(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!m(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let i=this.hasListeners();i&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),i&&(this.#t!==n||h(this.options.enabled,this.#t)!==h(t.enabled,this.#t)||r(this.options.staleTime,this.#t)!==r(t.staleTime,this.#t))&&this.#g();let a=this.#_();i&&(this.#t!==n||h(this.options.enabled,this.#t)!==h(t.enabled,this.#t)||a!==this.#p)&&this.#v(a)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(a)),t}#g(){this.#b();let e=r(this.options.staleTime,this.#t);if(g.isServer()||this.#r.isStale||!o(e))return;let t=u(this.#r.dataUpdatedAt,e)+1;this.#d=f.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(g.isServer()||h(this.options.enabled,this.#t)===!1||!o(this.#p)||this.#p===0)&&(this.#f=f.setInterval(()=>{(this.options.refetchIntervalInBackground||s.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(f.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(f.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,a=this.#r,o=this.#i,s=this.#a,c=e===n?this.#n:e.state,{state:l}=e,u={...l},f=!1,p;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&x(e,t),o=i&&C(e,n,t,r);(a||o)&&(u={...u,..._(l.data,e.options)}),t._optimisticResults===`isRestoring`&&(u.fetchStatus=`idle`)}let{error:m,errorUpdatedAt:g,status:v}=u;p=u.data;let y=!1;if(t.placeholderData!==void 0&&p===void 0&&v===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,y=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(v=`success`,p=d(a?.data,e,t),f=!0)}if(t.select&&p!==void 0&&!y)if(a&&p===o?.data&&t.select===this.#c)p=this.#l;else try{this.#c=t.select,p=t.select(p),p=d(a?.data,p,t),this.#l=p,this.#s=null}catch(e){this.#s=e}this.#s&&(m=this.#s,p=this.#l,g=Date.now(),v=`error`);let b=u.fetchStatus===`fetching`,S=v===`pending`,T=v===`error`,E=S&&b,D=p!==void 0,O={status:v,fetchStatus:u.fetchStatus,isPending:S,isSuccess:v===`success`,isError:T,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:u.fetchStatus===`paused`,isPlaceholderData:f,isRefetchError:T&&D,isStale:w(e,t),refetch:this.refetch,promise:this.#o,isEnabled:h(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,a=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},o=()=>{let e=this.#o=O.promise=i();a(e)},s=this.#o;switch(s.status){case`pending`:e.queryHash===n.queryHash&&a(s);break;case`fulfilled`:(r||O.data!==s.value)&&o();break;case`rejected`:(!r||O.error!==s.reason)&&o();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!m(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){p.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return h(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&h(t.retryOnMount,e)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(h(t.enabled,e)!==!1&&r(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||h(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return h(t.enabled,e)!==!1&&e.isStaleByTime(r(t.staleTime,e))}function T(e,t){return!m(e.getCurrentResult(),t)}e();var E=t(n(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider;function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?l(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||l(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let r=O(),i=j(),o=v(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s);let c=o.getQueryCache().get(s.queryHash),l=e.subscribed!==!1;s._optimisticResults=r?`isRestoring`:l?`optimistic`:void 0,I(s),M(s,i,c),N(i);let u=!o.getQueryCache().get(s.queryHash),[d]=E.useState(()=>new t(o,s)),f=d.getOptimisticResult(s),m=!r&&l;if(E.useSyncExternalStore(E.useCallback(e=>{let t=m?d.subscribe(p.batchCalls(e)):a;return d.updateResult(),t},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(s)},[s,d]),R(s,f))throw z(s,d,i);if(P({result:f,errorResetBoundary:i,throwOnError:s.throwOnError,query:c,suspense:s.suspense}))throw f.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,f),s.experimental_prefetchInRender&&!g.isServer()&&L(f,r)&&(u?z(s,d,i):c?.promise)?.catch(a).finally(()=>{d.updateResult()}),s.notifyOnChangeProps?f:d.trackResult(f)}export{F as n,y as r,B as t}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{Ai as r,Bi as i,Fi as a,Gi as o,Hi as s,Ii as c,Li as l,Mi as u,Ni as d,Oi as f,Ri as p,Ui as m,Vi as h,Wi as g,ji as _,zi as v}from"./index.js";var y=class extends o{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=u(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof p(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!i(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||p(this.options.enabled,this.#t)!==p(t.enabled,this.#t)||v(this.options.staleTime,this.#t)!==v(t.staleTime,this.#t))&&this.#g();let a=this.#_();r&&(this.#t!==n||p(this.options.enabled,this.#t)!==p(t.enabled,this.#t)||a!==this.#p)&&this.#v(a)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c)),t}#g(){this.#b();let e=v(this.options.staleTime,this.#t);if(d.isServer()||this.#r.isStale||!a(e))return;let t=s(this.#r.dataUpdatedAt,e)+1;this.#d=m.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(d.isServer()||p(this.options.enabled,this.#t)===!1||!a(this.#p)||this.#p===0)&&(this.#f=m.setInterval(()=>{(this.options.refetchIntervalInBackground||g.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(m.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(m.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,i=this.options,a=this.#r,o=this.#i,s=this.#a,c=e===n?this.#n:e.state,{state:d}=e,f={...d},m=!1,h;if(t._optimisticResults){let a=this.hasListeners(),o=!a&&x(e,t),s=a&&C(e,n,t,i);(o||s)&&(f={...f,...r(d.data,e.options)}),t._optimisticResults===`isRestoring`&&(f.fetchStatus=`idle`)}let{error:g,errorUpdatedAt:_,status:v}=f;h=f.data;let y=!1;if(t.placeholderData!==void 0&&h===void 0&&v===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,y=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(v=`success`,h=l(a?.data,e,t),m=!0)}if(t.select&&h!==void 0&&!y)if(a&&h===o?.data&&t.select===this.#c)h=this.#l;else try{this.#c=t.select,h=t.select(h),h=l(a?.data,h,t),this.#l=h,this.#s=null}catch(e){this.#s=e}this.#s&&(g=this.#s,h=this.#l,_=Date.now(),v=`error`);let b=f.fetchStatus===`fetching`,S=v===`pending`,T=v===`error`,E=S&&b,D=h!==void 0,O={status:v,fetchStatus:f.fetchStatus,isPending:S,isSuccess:v===`success`,isError:T,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:_,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:f.fetchStatus===`paused`,isPlaceholderData:m,isRefetchError:T&&D,isStale:w(e,t),refetch:this.refetch,promise:this.#o,isEnabled:p(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,i=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},a=()=>{let e=this.#o=O.promise=u();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||O.data!==o.value)&&a();break;case`rejected`:(!r||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!i(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){_.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return p(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&p(t.retryOnMount,e)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(p(t.enabled,e)!==!1&&v(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||p(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return p(t.enabled,e)!==!1&&e.isStaleByTime(v(t.staleTime,e))}function T(e,t){return!i(e.getCurrentResult(),t)}e();var E=t(n(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider;function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?h(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||h(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let r=O(),i=j(),a=f(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),l=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:l?`optimistic`:void 0,I(o),M(o,i,s),N(i);let u=!a.getQueryCache().get(o.queryHash),[p]=E.useState(()=>new t(a,o)),m=p.getOptimisticResult(o),h=!r&&l;if(E.useSyncExternalStore(E.useCallback(e=>{let t=h?p.subscribe(_.batchCalls(e)):c;return p.updateResult(),t},[p,h]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),E.useEffect(()=>{p.setOptions(o)},[o,p]),R(o,m))throw z(o,p,i);if(P({result:m,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw m.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,m),o.experimental_prefetchInRender&&!d.isServer()&&L(m,r)&&(u?z(o,p,i):s?.promise)?.catch(c).finally(()=>{p.updateResult()}),o.notifyOnChangeProps?m:p.trackResult(m)}export{F as n,y as r,B as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js b/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js index 9f8d5527a..970a60d25 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js @@ -1 +1 @@ -import{o as e,r as t}from"./compiler-runtime.js";import{Di as n,Ii as r,Mi as i,Si as a,Ti as o,bi as s,ji as c,yi as l}from"./index.js";var u=class extends r{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),c(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&o(t.mutationKey)!==o(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??s();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){a.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},d=e(t(),1);function f(e,t){let r=l(t),[o]=d.useState(()=>new u(r,e));d.useEffect(()=>{o.setOptions(e)},[o,e]);let s=d.useSyncExternalStore(d.useCallback(e=>o.subscribe(a.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=d.useCallback((e,t)=>{o.mutate(e,t).catch(n)},[o]);if(s.error&&i(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}export{f as t}; \ No newline at end of file +import{o as e,r as t}from"./compiler-runtime.js";import{Bi as n,Gi as r,Ii as i,Oi as a,Pi as o,Vi as s,ji as c,ki as l}from"./index.js";var u=class extends r{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),n(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&o(t.mutationKey)!==o(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??l();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){c.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},d=e(t(),1);function f(e,t){let n=a(t),[r]=d.useState(()=>new u(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);let o=d.useSyncExternalStore(d.useCallback(e=>r.subscribe(c.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=d.useCallback((e,t)=>{r.mutate(e,t).catch(i)},[r]);if(o.error&&s(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}export{f as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/src/lib/json.test.ts b/spinifex/services/spinifexui/frontend/src/lib/json.test.ts index a114686a0..705275769 100644 --- a/spinifex/services/spinifexui/frontend/src/lib/json.test.ts +++ b/spinifex/services/spinifexui/frontend/src/lib/json.test.ts @@ -1,6 +1,11 @@ import { describe, expect, it } from "vitest" -import { formatJson, isValidJson, jsonStringSchema } from "./json" +import { + decodePolicyDocument, + formatJson, + isValidJson, + jsonStringSchema, +} from "./json" type JsonSchema = ReturnType @@ -34,6 +39,30 @@ describe("formatJson", () => { }) }) +describe("decodePolicyDocument", () => { + it("decodes and pretty-prints a URL-encoded document", () => { + const encoded = encodeURIComponent('{"Version":"2012-10-17"}') + expect(decodePolicyDocument(encoded, true)).toBe( + '{\n "Version": "2012-10-17"\n}', + ) + }) + + it("pretty-prints a raw JSON document without decoding", () => { + expect(decodePolicyDocument('{"a":1}', false)).toBe('{\n "a": 1\n}') + }) + + it("leaves literal percent sequences intact for raw documents", () => { + const raw = '{"Resource":"arn:aws:s3:::bucket/logs%2Fpath"}' + expect(decodePolicyDocument(raw, false)).toBe( + '{\n "Resource": "arn:aws:s3:::bucket/logs%2Fpath"\n}', + ) + }) + + it("returns the original text when it is not JSON", () => { + expect(decodePolicyDocument("not json", true)).toBe("not json") + }) +}) + describe("jsonStringSchema", () => { const required = jsonStringSchema({ label: "Policy document" }) const optional = jsonStringSchema({ diff --git a/spinifex/services/spinifexui/frontend/src/lib/json.ts b/spinifex/services/spinifexui/frontend/src/lib/json.ts index 786a06974..310a1da51 100644 --- a/spinifex/services/spinifexui/frontend/src/lib/json.ts +++ b/spinifex/services/spinifexui/frontend/src/lib/json.ts @@ -19,6 +19,25 @@ export function formatJson(value: string): string | null { } } +// Normalise an AWS policy document for display in an editor. Most principals +// return the document URL-encoded, but roles return raw JSON, so callers pass +// `encoded` to control decoding — decoding raw JSON could corrupt literal +// percent sequences. The result is pretty-printed when it parses. +export function decodePolicyDocument( + document: string, + encoded: boolean, +): string { + let text = document + if (encoded) { + try { + text = decodeURIComponent(document) + } catch { + text = document + } + } + return formatJson(text) ?? text +} + // Zod field for a JSON document entered as a string. Messages derive from // `label` so they read naturally per field. When `allowEmpty` is true an // empty/whitespace value passes (optional field); otherwise it is required. diff --git a/spinifex/services/spinifexui/frontend/src/mutations/iam.test.tsx b/spinifex/services/spinifexui/frontend/src/mutations/iam.test.tsx index 3b6b4dbb4..7a1599f1f 100644 --- a/spinifex/services/spinifexui/frontend/src/mutations/iam.test.tsx +++ b/spinifex/services/spinifexui/frontend/src/mutations/iam.test.tsx @@ -23,13 +23,19 @@ import { useCreateUser, useDeleteAccessKey, useDeleteGroup, + useDeleteGroupPolicy, useDeleteInstanceProfile, useDeletePolicy, useDeleteRole, + useDeleteRolePolicy, useDeleteUser, + useDeleteUserPolicy, useDetachGroupPolicy, useDetachRolePolicy, useDetachUserPolicy, + usePutGroupPolicy, + usePutRolePolicy, + usePutUserPolicy, useRemoveRoleFromInstanceProfile, useRemoveUserFromGroup, useUpdateAccessKey, @@ -282,6 +288,175 @@ describe("useDetachUserPolicy", () => { }) }) +describe("usePutUserPolicy", () => { + it("sends PutUserPolicyCommand with mapped fields", async () => { + createQueryClient() + const { result } = renderHook(() => usePutUserPolicy(), { wrapper }) + + result.current.mutate({ + name: "admin", + policyName: "s3-read", + policyDocument: "{}", + }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + UserName: "admin", + PolicyName: "s3-read", + PolicyDocument: "{}", + }) + }) + + it("invalidates the user inline-policies query on success", async () => { + createQueryClient() + const spy = vi.spyOn(queryClient, "invalidateQueries") + const { result } = renderHook(() => usePutUserPolicy(), { wrapper }) + + result.current.mutate({ + name: "admin", + policyName: "s3-read", + policyDocument: "{}", + }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(spy).toHaveBeenCalledWith({ + queryKey: ["iam", "user-inline-policies", "admin"], + }) + }) +}) + +describe("useDeleteUserPolicy", () => { + it("sends DeleteUserPolicyCommand with mapped fields", async () => { + createQueryClient() + const { result } = renderHook(() => useDeleteUserPolicy(), { wrapper }) + + result.current.mutate({ name: "admin", policyName: "s3-read" }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + UserName: "admin", + PolicyName: "s3-read", + }) + }) + + it("invalidates the user inline-policies query on success", async () => { + createQueryClient() + const spy = vi.spyOn(queryClient, "invalidateQueries") + const { result } = renderHook(() => useDeleteUserPolicy(), { wrapper }) + + result.current.mutate({ name: "admin", policyName: "s3-read" }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(spy).toHaveBeenCalledWith({ + queryKey: ["iam", "user-inline-policies", "admin"], + }) + }) +}) + +describe("usePutRolePolicy", () => { + it("sends PutRolePolicyCommand with mapped fields", async () => { + createQueryClient() + const { result } = renderHook(() => usePutRolePolicy(), { wrapper }) + + result.current.mutate({ + name: "my-role", + policyName: "s3-read", + policyDocument: "{}", + }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + RoleName: "my-role", + PolicyName: "s3-read", + PolicyDocument: "{}", + }) + }) + + it("invalidates the role inline-policies query on success", async () => { + createQueryClient() + const spy = vi.spyOn(queryClient, "invalidateQueries") + const { result } = renderHook(() => usePutRolePolicy(), { wrapper }) + + result.current.mutate({ + name: "my-role", + policyName: "s3-read", + policyDocument: "{}", + }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(spy).toHaveBeenCalledWith({ + queryKey: ["iam", "role-inline-policies", "my-role"], + }) + }) +}) + +describe("useDeleteRolePolicy", () => { + it("sends DeleteRolePolicyCommand with mapped fields", async () => { + createQueryClient() + const { result } = renderHook(() => useDeleteRolePolicy(), { wrapper }) + + result.current.mutate({ name: "my-role", policyName: "s3-read" }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + RoleName: "my-role", + PolicyName: "s3-read", + }) + }) +}) + +describe("usePutGroupPolicy", () => { + it("sends PutGroupPolicyCommand with mapped fields", async () => { + createQueryClient() + const { result } = renderHook(() => usePutGroupPolicy(), { wrapper }) + + result.current.mutate({ + name: "my-group", + policyName: "s3-read", + policyDocument: "{}", + }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + GroupName: "my-group", + PolicyName: "s3-read", + PolicyDocument: "{}", + }) + }) + + it("invalidates the group inline-policies query on success", async () => { + createQueryClient() + const spy = vi.spyOn(queryClient, "invalidateQueries") + const { result } = renderHook(() => usePutGroupPolicy(), { wrapper }) + + result.current.mutate({ + name: "my-group", + policyName: "s3-read", + policyDocument: "{}", + }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(spy).toHaveBeenCalledWith({ + queryKey: ["iam", "group-inline-policies", "my-group"], + }) + }) +}) + +describe("useDeleteGroupPolicy", () => { + it("sends DeleteGroupPolicyCommand with mapped fields", async () => { + createQueryClient() + const { result } = renderHook(() => useDeleteGroupPolicy(), { wrapper }) + + result.current.mutate({ name: "my-group", policyName: "s3-read" }) + + await waitFor(() => expect(result.current.isSuccess).toBeTruthy()) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + GroupName: "my-group", + PolicyName: "s3-read", + }) + }) +}) + describe("useCreateRole", () => { it("sends CreateRoleCommand with role data", async () => { createQueryClient() diff --git a/spinifex/services/spinifexui/frontend/src/mutations/iam.ts b/spinifex/services/spinifexui/frontend/src/mutations/iam.ts index b4abf2afe..8c7aa8e87 100644 --- a/spinifex/services/spinifexui/frontend/src/mutations/iam.ts +++ b/spinifex/services/spinifexui/frontend/src/mutations/iam.ts @@ -12,13 +12,19 @@ import { CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, + DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeletePolicyCommand, DeleteRoleCommand, + DeleteRolePolicyCommand, DeleteUserCommand, + DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, + PutGroupPolicyCommand, + PutRolePolicyCommand, + PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, UpdateAccessKeyCommand, @@ -34,8 +40,10 @@ import type { CreateRoleFormData, CreateUserFormData, DeleteAccessKeyParams, + DeleteInlinePolicyParams, GroupMembershipParams, GroupPolicyParams, + PutInlinePolicyParams, RolePolicyParams, UpdateAccessKeyParams, UserPolicyParams, @@ -188,6 +196,47 @@ export function useDetachUserPolicy() { }) } +export function usePutUserPolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async ({ + name, + policyName, + policyDocument, + }: PutInlinePolicyParams) => { + const command = new PutUserPolicyCommand({ + UserName: name, + PolicyName: policyName, + PolicyDocument: policyDocument, + }) + return await getIamClient().send(command) + }, + onSuccess: (_data, variables) => { + void queryClient.invalidateQueries({ + queryKey: ["iam", "user-inline-policies", variables.name], + }) + }, + }) +} + +export function useDeleteUserPolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async ({ name, policyName }: DeleteInlinePolicyParams) => { + const command = new DeleteUserPolicyCommand({ + UserName: name, + PolicyName: policyName, + }) + return await getIamClient().send(command) + }, + onSuccess: (_data, variables) => { + void queryClient.invalidateQueries({ + queryKey: ["iam", "user-inline-policies", variables.name], + }) + }, + }) +} + export function useCreateRole() { const queryClient = useQueryClient() return useMutation({ @@ -257,6 +306,47 @@ export function useDetachRolePolicy() { }) } +export function usePutRolePolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async ({ + name, + policyName, + policyDocument, + }: PutInlinePolicyParams) => { + const command = new PutRolePolicyCommand({ + RoleName: name, + PolicyName: policyName, + PolicyDocument: policyDocument, + }) + return await getIamClient().send(command) + }, + onSuccess: (_data, variables) => { + void queryClient.invalidateQueries({ + queryKey: ["iam", "role-inline-policies", variables.name], + }) + }, + }) +} + +export function useDeleteRolePolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async ({ name, policyName }: DeleteInlinePolicyParams) => { + const command = new DeleteRolePolicyCommand({ + RoleName: name, + PolicyName: policyName, + }) + return await getIamClient().send(command) + }, + onSuccess: (_data, variables) => { + void queryClient.invalidateQueries({ + queryKey: ["iam", "role-inline-policies", variables.name], + }) + }, + }) +} + export function useCreateInstanceProfile() { const queryClient = useQueryClient() return useMutation({ @@ -401,6 +491,47 @@ export function useDetachGroupPolicy() { }) } +export function usePutGroupPolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async ({ + name, + policyName, + policyDocument, + }: PutInlinePolicyParams) => { + const command = new PutGroupPolicyCommand({ + GroupName: name, + PolicyName: policyName, + PolicyDocument: policyDocument, + }) + return await getIamClient().send(command) + }, + onSuccess: (_data, variables) => { + void queryClient.invalidateQueries({ + queryKey: ["iam", "group-inline-policies", variables.name], + }) + }, + }) +} + +export function useDeleteGroupPolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async ({ name, policyName }: DeleteInlinePolicyParams) => { + const command = new DeleteGroupPolicyCommand({ + GroupName: name, + PolicyName: policyName, + }) + return await getIamClient().send(command) + }, + onSuccess: (_data, variables) => { + void queryClient.invalidateQueries({ + queryKey: ["iam", "group-inline-policies", variables.name], + }) + }, + }) +} + export function useAddUserToGroup() { const queryClient = useQueryClient() return useMutation({ diff --git a/spinifex/services/spinifexui/frontend/src/queries/iam.test.ts b/spinifex/services/spinifexui/frontend/src/queries/iam.test.ts index 2b674c4da..311437bfe 100644 --- a/spinifex/services/spinifexui/frontend/src/queries/iam.test.ts +++ b/spinifex/services/spinifexui/frontend/src/queries/iam.test.ts @@ -11,6 +11,8 @@ import { iamAttachedGroupPoliciesQueryOptions, iamAttachedRolePoliciesQueryOptions, iamAttachedUserPoliciesQueryOptions, + iamGroupPoliciesQueryOptions, + iamGroupPolicyQueryOptions, iamGroupQueryOptions, iamGroupsForUserQueryOptions, iamGroupsQueryOptions, @@ -20,8 +22,12 @@ import { iamPoliciesQueryOptions, iamPolicyQueryOptions, iamPolicyVersionQueryOptions, + iamRolePoliciesQueryOptions, + iamRolePolicyQueryOptions, iamRoleQueryOptions, iamRolesQueryOptions, + iamUserPoliciesQueryOptions, + iamUserPolicyQueryOptions, iamUserQueryOptions, iamUsersQueryOptions, } from "./iam" @@ -137,6 +143,48 @@ describe("query keys", () => { "admin", ]) }) + + it("iamUserPoliciesQueryOptions includes userName in key", () => { + expect(iamUserPoliciesQueryOptions("admin").queryKey).toStrictEqual([ + "iam", + "user-inline-policies", + "admin", + ]) + }) + + it("iamUserPolicyQueryOptions includes userName and policyName in key", () => { + expect( + iamUserPolicyQueryOptions("admin", "s3-read").queryKey, + ).toStrictEqual(["iam", "user-inline-policies", "admin", "s3-read"]) + }) + + it("iamRolePoliciesQueryOptions includes roleName in key", () => { + expect(iamRolePoliciesQueryOptions("my-role").queryKey).toStrictEqual([ + "iam", + "role-inline-policies", + "my-role", + ]) + }) + + it("iamRolePolicyQueryOptions includes roleName and policyName in key", () => { + expect( + iamRolePolicyQueryOptions("my-role", "s3-read").queryKey, + ).toStrictEqual(["iam", "role-inline-policies", "my-role", "s3-read"]) + }) + + it("iamGroupPoliciesQueryOptions includes groupName in key", () => { + expect(iamGroupPoliciesQueryOptions("my-group").queryKey).toStrictEqual([ + "iam", + "group-inline-policies", + "my-group", + ]) + }) + + it("iamGroupPolicyQueryOptions includes groupName and policyName in key", () => { + expect( + iamGroupPolicyQueryOptions("my-group", "s3-read").queryKey, + ).toStrictEqual(["iam", "group-inline-policies", "my-group", "s3-read"]) + }) }) describe("staleTime", () => { @@ -335,4 +383,74 @@ describe("queryFn", () => { UserName: "admin", }) }) + + it("iamUserPoliciesQueryOptions sends ListUserPoliciesCommand", async () => { + const queryFn = iamUserPoliciesQueryOptions("admin").queryFn as ( + ctx: never, + ) => Promise + await queryFn({} as never) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + UserName: "admin", + }) + }) + + it("iamUserPolicyQueryOptions sends GetUserPolicyCommand and decodes document", async () => { + mockSend.mockResolvedValueOnce({ + PolicyDocument: encodeURIComponent('{"Version":"2012-10-17"}'), + }) + const queryFn = iamUserPolicyQueryOptions("admin", "s3-read").queryFn as ( + ctx: never, + ) => Promise + const document = await queryFn({} as never) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + UserName: "admin", + PolicyName: "s3-read", + }) + expect(document).toBe('{\n "Version": "2012-10-17"\n}') + }) + + it("iamRolePoliciesQueryOptions sends ListRolePoliciesCommand", async () => { + const queryFn = iamRolePoliciesQueryOptions("my-role").queryFn as ( + ctx: never, + ) => Promise + await queryFn({} as never) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + RoleName: "my-role", + }) + }) + + it("iamRolePolicyQueryOptions sends GetRolePolicyCommand and formats raw JSON", async () => { + mockSend.mockResolvedValueOnce({ + PolicyDocument: '{"Version":"2012-10-17"}', + }) + const queryFn = iamRolePolicyQueryOptions("my-role", "s3-read").queryFn as ( + ctx: never, + ) => Promise + const document = await queryFn({} as never) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + RoleName: "my-role", + PolicyName: "s3-read", + }) + expect(document).toBe('{\n "Version": "2012-10-17"\n}') + }) + + it("iamGroupPoliciesQueryOptions sends ListGroupPoliciesCommand", async () => { + const queryFn = iamGroupPoliciesQueryOptions("my-group").queryFn as ( + ctx: never, + ) => Promise + await queryFn({} as never) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + GroupName: "my-group", + }) + }) + + it("iamGroupPolicyQueryOptions sends GetGroupPolicyCommand with names", async () => { + const queryFn = iamGroupPolicyQueryOptions("my-group", "s3-read") + .queryFn as (ctx: never) => Promise + await queryFn({} as never) + expect(mockSend.mock.calls[0]?.[0].input).toStrictEqual({ + GroupName: "my-group", + PolicyName: "s3-read", + }) + }) }) diff --git a/spinifex/services/spinifexui/frontend/src/queries/iam.ts b/spinifex/services/spinifexui/frontend/src/queries/iam.ts index 98b492afc..19244dbd2 100644 --- a/spinifex/services/spinifexui/frontend/src/queries/iam.ts +++ b/spinifex/services/spinifexui/frontend/src/queries/iam.ts @@ -1,25 +1,32 @@ import { GetGroupCommand, + GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRoleCommand, + GetRolePolicyCommand, GetUserCommand, + GetUserPolicyCommand, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedRolePoliciesCommand, ListAttachedUserPoliciesCommand, + ListGroupPoliciesCommand, ListGroupsCommand, ListGroupsForUserCommand, ListInstanceProfilesCommand, ListInstanceProfilesForRoleCommand, ListPoliciesCommand, + ListRolePoliciesCommand, ListRolesCommand, + ListUserPoliciesCommand, ListUsersCommand, } from "@aws-sdk/client-iam" import { queryOptions } from "@tanstack/react-query" import { getIamClient } from "@/lib/awsClient" +import { decodePolicyDocument } from "@/lib/json" export const iamUsersQueryOptions = queryOptions({ queryKey: ["iam", "users"], @@ -97,6 +104,35 @@ export const iamAttachedUserPoliciesQueryOptions = (userName: string) => staleTime: 300_000, }) +export const iamUserPoliciesQueryOptions = (userName: string) => + queryOptions({ + queryKey: ["iam", "user-inline-policies", userName], + queryFn: async () => { + const command = new ListUserPoliciesCommand({ UserName: userName }) + return await getIamClient().send(command) + }, + staleTime: 300_000, + }) + +export const iamUserPolicyQueryOptions = ( + userName: string, + policyName: string, +) => + queryOptions({ + queryKey: ["iam", "user-inline-policies", userName, policyName], + queryFn: async () => { + const command = new GetUserPolicyCommand({ + UserName: userName, + PolicyName: policyName, + }) + const result = await getIamClient().send(command) + return result.PolicyDocument + ? decodePolicyDocument(result.PolicyDocument, true) + : "" + }, + staleTime: 300_000, + }) + export const iamRolesQueryOptions = queryOptions({ queryKey: ["iam", "roles"], queryFn: async () => { @@ -128,6 +164,35 @@ export const iamAttachedRolePoliciesQueryOptions = (roleName: string) => staleTime: 300_000, }) +export const iamRolePoliciesQueryOptions = (roleName: string) => + queryOptions({ + queryKey: ["iam", "role-inline-policies", roleName], + queryFn: async () => { + const command = new ListRolePoliciesCommand({ RoleName: roleName }) + return await getIamClient().send(command) + }, + staleTime: 300_000, + }) + +export const iamRolePolicyQueryOptions = ( + roleName: string, + policyName: string, +) => + queryOptions({ + queryKey: ["iam", "role-inline-policies", roleName, policyName], + queryFn: async () => { + const command = new GetRolePolicyCommand({ + RoleName: roleName, + PolicyName: policyName, + }) + const result = await getIamClient().send(command) + return result.PolicyDocument + ? decodePolicyDocument(result.PolicyDocument, false) + : "" + }, + staleTime: 300_000, + }) + export const iamInstanceProfilesQueryOptions = queryOptions({ queryKey: ["iam", "instance-profiles"], queryFn: async () => { @@ -192,6 +257,35 @@ export const iamAttachedGroupPoliciesQueryOptions = (groupName: string) => staleTime: 300_000, }) +export const iamGroupPoliciesQueryOptions = (groupName: string) => + queryOptions({ + queryKey: ["iam", "group-inline-policies", groupName], + queryFn: async () => { + const command = new ListGroupPoliciesCommand({ GroupName: groupName }) + return await getIamClient().send(command) + }, + staleTime: 300_000, + }) + +export const iamGroupPolicyQueryOptions = ( + groupName: string, + policyName: string, +) => + queryOptions({ + queryKey: ["iam", "group-inline-policies", groupName, policyName], + queryFn: async () => { + const command = new GetGroupPolicyCommand({ + GroupName: groupName, + PolicyName: policyName, + }) + const result = await getIamClient().send(command) + return result.PolicyDocument + ? decodePolicyDocument(result.PolicyDocument, true) + : "" + }, + staleTime: 300_000, + }) + export const iamGroupsForUserQueryOptions = (userName: string) => queryOptions({ queryKey: ["iam", "groups-for-user", userName], diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(groups)/list-groups/$groupName.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(groups)/list-groups/$groupName.tsx index 415c728cf..91efabe78 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(groups)/list-groups/$groupName.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(groups)/list-groups/$groupName.tsx @@ -21,11 +21,14 @@ import { } from "@/mutations/iam" import { iamAttachedGroupPoliciesQueryOptions, + iamGroupPoliciesQueryOptions, iamGroupQueryOptions, iamPoliciesQueryOptions, iamUsersQueryOptions, } from "@/queries/iam" +import { InlinePoliciesPanel } from "../../-components/inline-policies-panel" + export const Route = createFileRoute( "/_auth/iam/(groups)/list-groups/$groupName", )({ @@ -39,6 +42,9 @@ export const Route = createFileRoute( ), context.queryClient.ensureQueryData(iamPoliciesQueryOptions), context.queryClient.ensureQueryData(iamUsersQueryOptions), + context.queryClient.ensureQueryData( + iamGroupPoliciesQueryOptions(params.groupName), + ), ]) }, head: ({ params }) => ({ @@ -359,6 +365,8 @@ function GroupDetail() { )} + + ({ @@ -259,6 +264,8 @@ function RoleDetail() { + + {/* Instance Profiles */} Instance Profiles diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(users)/list-users/$userName.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(users)/list-users/$userName.tsx index 5933434e0..3fdb576ca 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(users)/list-users/$userName.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/(users)/list-users/$userName.tsx @@ -31,10 +31,12 @@ import { iamAttachedUserPoliciesQueryOptions, iamGroupsForUserQueryOptions, iamPoliciesQueryOptions, + iamUserPoliciesQueryOptions, iamUserQueryOptions, } from "@/queries/iam" import { AccessKeyModal } from "../../-components/access-key-modal" +import { InlinePoliciesPanel } from "../../-components/inline-policies-panel" export const Route = createFileRoute("/_auth/iam/(users)/list-users/$userName")( { @@ -53,6 +55,9 @@ export const Route = createFileRoute("/_auth/iam/(users)/list-users/$userName")( context.queryClient.ensureQueryData( iamGroupsForUserQueryOptions(params.userName), ), + context.queryClient.ensureQueryData( + iamUserPoliciesQueryOptions(params.userName), + ), ]) }, head: ({ params }) => ({ @@ -400,6 +405,8 @@ function UserDetail() { + + {/* Groups */} Groups diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/-components/inline-policies-panel.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/-components/inline-policies-panel.test.tsx new file mode 100644 index 000000000..f6d1f3699 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/iam/-components/inline-policies-panel.test.tsx @@ -0,0 +1,162 @@ +import { fireEvent, screen, waitFor, within } from "@testing-library/react" +import { describe, expect, it, vi } from "vitest" + +import { + createTestQueryClient, + renderWithClient, +} from "@/test/elbv2-integration" + +const { send } = vi.hoisted(() => ({ send: vi.fn() })) + +vi.mock("@/lib/awsClient", () => ({ + getIamClient: () => ({ send }), +})) + +import { InlinePoliciesPanel } from "./inline-policies-panel" + +const USER = "alice" +const POLICY = "s3-read" +const DOCUMENT = '{"Version":"2012-10-17"}' + +function seed(policyNames: string[], document?: string) { + const qc = createTestQueryClient() + qc.setQueryData(["iam", "user-inline-policies", USER], { + PolicyNames: policyNames, + }) + if (document !== undefined) { + qc.setQueryData(["iam", "user-inline-policies", USER, POLICY], document) + } + return qc +} + +// The add form renders a name and a JSON