From 6eac4d6598ee2ee3743c689a24fb1136fce20b42 Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Fri, 6 Mar 2026 14:14:50 +1000 Subject: [PATCH] feat: IAM Frontend (#65) --- .../services/hiveui/frontend/dist/assets/_.js | 2 +- .../hiveui/frontend/dist/assets/_id.js | 2 +- .../hiveui/frontend/dist/assets/_id2.js | 2 +- .../hiveui/frontend/dist/assets/_id3.js | 2 +- .../hiveui/frontend/dist/assets/_id4.js | 2 +- .../hiveui/frontend/dist/assets/_id5.js | 2 +- .../hiveui/frontend/dist/assets/_id6.js | 2 +- .../hiveui/frontend/dist/assets/_id7.js | 2 +- .../hiveui/frontend/dist/assets/_id8.js | 2 +- .../hiveui/frontend/dist/assets/_policyArn.js | 1 + .../hiveui/frontend/dist/assets/_userName.js | 2 + .../frontend/dist/assets/alert-dialog.js | 2 +- .../frontend/dist/assets/ami-details.js | 2 +- .../hiveui/frontend/dist/assets/back-link.js | 2 +- .../hiveui/frontend/dist/assets/check.js | 2 +- .../frontend/dist/assets/create-bucket.js | 2 +- .../frontend/dist/assets/create-key-pair.js | 2 +- .../frontend/dist/assets/create-policy.js | 1 + .../frontend/dist/assets/create-snapshot.js | 2 +- .../frontend/dist/assets/create-subnet.js | 2 +- .../frontend/dist/assets/create-user.js | 1 + .../frontend/dist/assets/create-volume.js | 2 +- .../hiveui/frontend/dist/assets/download.js | 2 +- .../hiveui/frontend/dist/assets/ec2.js | 2 +- .../hiveui/frontend/dist/assets/ec22.js | 2 +- .../frontend/dist/assets/error-banner.js | 2 +- .../hiveui/frontend/dist/assets/field.js | 2 +- .../hiveui/frontend/dist/assets/iam.js | 1 + .../hiveui/frontend/dist/assets/iam2.js | 1 + .../hiveui/frontend/dist/assets/index.css | 2 +- .../hiveui/frontend/dist/assets/index.js | 80 ++-- .../hiveui/frontend/dist/assets/index10.js | 2 +- .../hiveui/frontend/dist/assets/index11.js | 2 +- .../hiveui/frontend/dist/assets/index12.js | 2 +- .../hiveui/frontend/dist/assets/index13.js | 1 + .../hiveui/frontend/dist/assets/index14.js | 1 + .../hiveui/frontend/dist/assets/index2.js | 2 +- .../hiveui/frontend/dist/assets/index3.js | 2 +- .../hiveui/frontend/dist/assets/index4.js | 2 +- .../hiveui/frontend/dist/assets/index5.js | 2 +- .../hiveui/frontend/dist/assets/index6.js | 2 +- .../hiveui/frontend/dist/assets/index7.js | 2 +- .../hiveui/frontend/dist/assets/index8.js | 2 +- .../hiveui/frontend/dist/assets/index9.js | 2 +- .../hiveui/frontend/dist/assets/input.js | 2 +- .../hiveui/frontend/dist/assets/login.js | 2 +- .../frontend/dist/assets/run-instances.js | 2 +- .../hiveui/frontend/dist/assets/s3.js | 2 +- .../hiveui/frontend/dist/assets/select.js | 2 +- .../frontend/dist/assets/state-badge.js | 2 +- .../hiveui/frontend/dist/assets/trash-2.js | 2 +- .../frontend/dist/assets/triangle-alert.js | 1 + .../frontend/dist/assets/upload-button.js | 2 +- .../frontend/dist/assets/useSuspenseQuery.js | 2 +- .../hiveui/frontend/dist/assets/zod.js | 2 +- hive/services/hiveui/frontend/package.json | 1 + hive/services/hiveui/frontend/pnpm-lock.yaml | 52 +++ .../frontend/src/components/state-badge.tsx | 7 +- .../frontend/src/layouts/sidebar-layout.tsx | 37 ++ .../hiveui/frontend/src/lib/awsClient.ts | 21 + .../hiveui/frontend/src/mutations/iam.ts | 162 +++++++ .../hiveui/frontend/src/queries/iam.ts | 88 ++++ .../hiveui/frontend/src/routeTree.gen.ts | 132 ++++++ .../_auth/iam/(policies)/create-policy.tsx | 130 ++++++ .../(policies)/list-policies/$policyArn.tsx | 168 ++++++++ .../iam/(policies)/list-policies/index.tsx | 63 +++ .../routes/_auth/iam/(users)/create-user.tsx | 90 ++++ .../iam/(users)/list-users/$userName.tsx | 408 ++++++++++++++++++ .../_auth/iam/(users)/list-users/index.tsx | 63 +++ .../iam/-components/access-key-modal.tsx | 104 +++++ .../-components/policy-document-viewer.tsx | 18 + .../hiveui/frontend/src/routes/login.tsx | 28 +- .../services/hiveui/frontend/src/types/iam.ts | 52 +++ 73 files changed, 1715 insertions(+), 89 deletions(-) create mode 100644 hive/services/hiveui/frontend/dist/assets/_policyArn.js create mode 100644 hive/services/hiveui/frontend/dist/assets/_userName.js create mode 100644 hive/services/hiveui/frontend/dist/assets/create-policy.js create mode 100644 hive/services/hiveui/frontend/dist/assets/create-user.js create mode 100644 hive/services/hiveui/frontend/dist/assets/iam.js create mode 100644 hive/services/hiveui/frontend/dist/assets/iam2.js create mode 100644 hive/services/hiveui/frontend/dist/assets/index13.js create mode 100644 hive/services/hiveui/frontend/dist/assets/index14.js create mode 100644 hive/services/hiveui/frontend/dist/assets/triangle-alert.js create mode 100644 hive/services/hiveui/frontend/src/mutations/iam.ts create mode 100644 hive/services/hiveui/frontend/src/queries/iam.ts create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/(policies)/create-policy.tsx create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/(policies)/list-policies/$policyArn.tsx create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/(policies)/list-policies/index.tsx create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/(users)/create-user.tsx create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/(users)/list-users/$userName.tsx create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/(users)/list-users/index.tsx create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/-components/access-key-modal.tsx create mode 100644 hive/services/hiveui/frontend/src/routes/_auth/iam/-components/policy-document-viewer.tsx create mode 100644 hive/services/hiveui/frontend/src/types/iam.ts diff --git a/hive/services/hiveui/frontend/dist/assets/_.js b/hive/services/hiveui/frontend/dist/assets/_.js index 5a56b77d5..cf6b40fe7 100644 --- a/hive/services/hiveui/frontend/dist/assets/_.js +++ b/hive/services/hiveui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{c as B,y as $,z as C,v as F,j as s,t as K,A as b,C as v,L}from"./index.js";import{u as A}from"./useSuspenseQuery.js";import{B as E}from"./back-link.js";import{E as O}from"./error-banner.js";import{a as S}from"./s3.js";import{U,F as R,O as I}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function J(){const e=B.c(24),{bucket:n,_splat:k}=$.useParams(),r=C(k||""),{data:m}=A(F(n,r)),a=S();let d;e[0]!==m.Contents?(d=m.Contents||[],e[0]=m.Contents,e[1]=d):d=e[1];const o=d;let p;e[2]!==m.CommonPrefixes?(p=m.CommonPrefixes||[],e[2]=m.CommonPrefixes,e[3]=p):p=e[3];const i=p,u=r.split("/").filter(Boolean),y=[{name:n,path:`/s3/ls/${n}`},...u.map((t,l)=>{const c=`${u.slice(0,l+1).join("/")}/`;return{name:t,path:`/s3/ls/${n}/${c}`}})],P=u.length>1?`/s3/ls/${n}/${u.slice(0,-1).join("/")}/`:`/s3/ls/${n}`;let f;e[4]!==P?(f=s.jsx(E,{to:P,children:"Back"}),e[4]=P,e[5]=f):f=e[5];let x;e[6]!==n||e[7]!==r||e[8]!==a.isPending||e[9]!==a.mutateAsync?(x=s.jsx(U,{bucket:n,isPending:a.isPending,onUpload:a.mutateAsync,prefix:r}),e[6]=n,e[7]=r,e[8]=a.isPending,e[9]=a.mutateAsync,e[10]=x):x=e[10];let h;e[11]!==a.error?(h=a.error&&s.jsx(O,{error:a.error,msg:"Failed to upload object"}),e[11]=a.error,e[12]=h):h=e[12];let g;e[13]!==n||e[14]!==i||e[15]!==r?(g=i.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:i.map(t=>{if(!t.Prefix)return null;const l=K(b(t.Prefix,r)),c=v(t.Prefix,r);return s.jsx(R,{bucketName:n,folderName:l,fullPrefix:c},t.Prefix)})})]}),e[13]=n,e[14]=i,e[15]=r,e[16]=g):g=e[16];let j;e[17]!==n||e[18]!==o||e[19]!==r?(j=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(t=>{if(!t.Key)return null;const l=b(t.Key,r),c=v(t.Key,r);return s.jsx(I,{bucketName:n,displayName:l,fullKey:c,object:t},t.Key)})]}),e[17]=n,e[18]=o,e[19]=r,e[20]=j):j=e[20];let N;return e[21]!==i.length||e[22]!==o.length?(N=o.length===0&&i.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this folder."}),e[21]=i.length,e[22]=o.length,e[23]=N):N=e[23],s.jsxs(s.Fragment,{children:[f,s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:y.map((t,l)=>s.jsxs("div",{className:"flex items-center gap-2",children:[l>0&&s.jsx("span",{children:"/"}),l===y.length-1?s.jsx("span",{className:"text-foreground",children:t.name}):s.jsx(L,{className:"hover:text-foreground",to:t.path,children:t.name})]},t.path))}),x]})}),h,g,j,N]})}export{J as component}; +import{c as B,F as $,G as F,x as C,j as s,w as K,H as b,I as k,L}from"./index.js";import{u as E}from"./useSuspenseQuery.js";import{B as O}from"./back-link.js";import{E as S}from"./error-banner.js";import{a as U}from"./s3.js";import{U as A,F as I,O as R}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function J(){const e=B.c(24),{bucket:n,_splat:v}=$.useParams(),r=F(v||""),{data:m}=E(C(n,r)),a=U();let d;e[0]!==m.Contents?(d=m.Contents||[],e[0]=m.Contents,e[1]=d):d=e[1];const o=d;let p;e[2]!==m.CommonPrefixes?(p=m.CommonPrefixes||[],e[2]=m.CommonPrefixes,e[3]=p):p=e[3];const i=p,u=r.split("/").filter(Boolean),y=[{name:n,path:`/s3/ls/${n}`},...u.map((t,l)=>{const c=`${u.slice(0,l+1).join("/")}/`;return{name:t,path:`/s3/ls/${n}/${c}`}})],P=u.length>1?`/s3/ls/${n}/${u.slice(0,-1).join("/")}/`:`/s3/ls/${n}`;let x;e[4]!==P?(x=s.jsx(O,{to:P,children:"Back"}),e[4]=P,e[5]=x):x=e[5];let f;e[6]!==n||e[7]!==r||e[8]!==a.isPending||e[9]!==a.mutateAsync?(f=s.jsx(A,{bucket:n,isPending:a.isPending,onUpload:a.mutateAsync,prefix:r}),e[6]=n,e[7]=r,e[8]=a.isPending,e[9]=a.mutateAsync,e[10]=f):f=e[10];let h;e[11]!==a.error?(h=a.error&&s.jsx(S,{error:a.error,msg:"Failed to upload object"}),e[11]=a.error,e[12]=h):h=e[12];let g;e[13]!==n||e[14]!==i||e[15]!==r?(g=i.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:i.map(t=>{if(!t.Prefix)return null;const l=K(b(t.Prefix,r)),c=k(t.Prefix,r);return s.jsx(I,{bucketName:n,folderName:l,fullPrefix:c},t.Prefix)})})]}),e[13]=n,e[14]=i,e[15]=r,e[16]=g):g=e[16];let j;e[17]!==n||e[18]!==o||e[19]!==r?(j=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(t=>{if(!t.Key)return null;const l=b(t.Key,r),c=k(t.Key,r);return s.jsx(R,{bucketName:n,displayName:l,fullKey:c,object:t},t.Key)})]}),e[17]=n,e[18]=o,e[19]=r,e[20]=j):j=e[20];let N;return e[21]!==i.length||e[22]!==o.length?(N=o.length===0&&i.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this folder."}),e[21]=i.length,e[22]=o.length,e[23]=N):N=e[23],s.jsxs(s.Fragment,{children:[x,s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:y.map((t,l)=>s.jsxs("div",{className:"flex items-center gap-2",children:[l>0&&s.jsx("span",{children:"/"}),l===y.length-1?s.jsx("span",{className:"text-foreground",children:t.name}):s.jsx(L,{className:"hover:text-foreground",to:t.path,children:t.name})]},t.path))}),f]})}),h,g,j,N]})}export{J as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id.js b/hive/services/hiveui/frontend/dist/assets/_id.js index e240ba3e8..0c0f5f2f7 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id.js +++ b/hive/services/hiveui/frontend/dist/assets/_id.js @@ -1 +1 @@ -import{ak as D,u as g,al as b,p as f,r as v,j as e,B as C,L as I}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{B as u}from"./back-link.js";import{D as l,a as t}from"./detail-row.js";import{E as V}from"./error-banner.js";import{P as S}from"./page-heading.js";import{S as y}from"./state-badge.js";import{g as P,f as A,b as k,a as B,c as w,d as N,e as T,h as O}from"./alert-dialog.js";import{g as H}from"./ec2.js";import{T as R}from"./trash-2.js";function q(){const{id:r}=D.useParams(),x=g(),{data:p}=d(b(r)),{data:m}=d(f),s=p.Vpcs?.[0],n=H(),[j,i]=v.useState(!1),o=m.Subnets?.filter(a=>a.VpcId===r)??[],h=async()=>{try{await n.mutateAsync(r),x({to:"/ec2/describe-vpcs"})}finally{i(!1)}};if(!s?.VpcId)return e.jsxs(e.Fragment,{children:[e.jsx(u,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),e.jsx("p",{className:"text-muted-foreground",children:"VPC not found."})]});const c=s.Tags?.find(a=>a.Key==="Name")?.Value;return e.jsxs(e.Fragment,{children:[e.jsx(u,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),n.error&&e.jsx(V,{error:n.error,msg:"Failed to delete VPC"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(S,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(C,{onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(R,{className:"size-4"}),"Delete"]}),e.jsx(y,{state:s.State})]}),subtitle:"VPC Details",title:c?`${s.VpcId} (${c})`:s.VpcId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"VPC Information"}),e.jsxs(l.Content,{children:[e.jsx(t,{label:"VPC ID",value:s.VpcId}),e.jsx(t,{label:"State",value:s.State}),e.jsx(t,{label:"CIDR Block",value:s.CidrBlock}),e.jsx(t,{label:"Is Default",value:s.IsDefault?"Yes":"No"}),e.jsx(t,{label:"DHCP Options ID",value:s.DhcpOptionsId}),e.jsx(t,{label:"Instance Tenancy",value:s.InstanceTenancy}),e.jsx(t,{label:"Owner ID",value:s.OwnerId})]})]}),o.length>0&&e.jsxs(l,{children:[e.jsxs(l.Header,{children:["Subnets (",o.length,")"]}),o.map(a=>a.SubnetId?e.jsxs(l.Content,{children:[e.jsx(t,{label:"Subnet ID",value:e.jsx(I,{className:"text-primary hover:underline",params:{id:a.SubnetId},to:"/ec2/describe-subnets/$id",children:a.SubnetId})}),e.jsx(t,{label:"CIDR Block",value:a.CidrBlock}),e.jsx(t,{label:"Availability Zone",value:a.AvailabilityZone}),e.jsx(t,{label:"State",value:a.State})]},a.SubnetId):null)]})]}),e.jsx(P,{onOpenChange:i,open:j,children:e.jsxs(A,{children:[e.jsxs(k,{children:[e.jsx(B,{children:"Delete VPC"}),e.jsxs(w,{children:['Are you sure you want to delete the VPC "',s.VpcId,'"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.']})]}),e.jsxs(N,{children:[e.jsx(T,{children:"Cancel"}),e.jsx(O,{disabled:n.isPending,onClick:h,children:n.isPending?"Deleting…":"Delete"})]})]})})]})}export{q as component}; +import{aJ as D,u as g,aK as b,t as f,r as v,j as e,B as C,L as I}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{B as u}from"./back-link.js";import{D as l,a as t}from"./detail-row.js";import{E as V}from"./error-banner.js";import{P as S}from"./page-heading.js";import{S as y}from"./state-badge.js";import{g as P,f as A,b as B,a as k,c as w,d as N,e as T,h as O}from"./alert-dialog.js";import{g as H}from"./ec2.js";import{T as R}from"./trash-2.js";function Y(){const{id:r}=D.useParams(),x=g(),{data:p}=d(b(r)),{data:m}=d(f),s=p.Vpcs?.[0],n=H(),[j,i]=v.useState(!1),o=m.Subnets?.filter(a=>a.VpcId===r)??[],h=async()=>{try{await n.mutateAsync(r),x({to:"/ec2/describe-vpcs"})}finally{i(!1)}};if(!s?.VpcId)return e.jsxs(e.Fragment,{children:[e.jsx(u,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),e.jsx("p",{className:"text-muted-foreground",children:"VPC not found."})]});const c=s.Tags?.find(a=>a.Key==="Name")?.Value;return e.jsxs(e.Fragment,{children:[e.jsx(u,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),n.error&&e.jsx(V,{error:n.error,msg:"Failed to delete VPC"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(S,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(C,{onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(R,{className:"size-4"}),"Delete"]}),e.jsx(y,{state:s.State})]}),subtitle:"VPC Details",title:c?`${s.VpcId} (${c})`:s.VpcId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"VPC Information"}),e.jsxs(l.Content,{children:[e.jsx(t,{label:"VPC ID",value:s.VpcId}),e.jsx(t,{label:"State",value:s.State}),e.jsx(t,{label:"CIDR Block",value:s.CidrBlock}),e.jsx(t,{label:"Is Default",value:s.IsDefault?"Yes":"No"}),e.jsx(t,{label:"DHCP Options ID",value:s.DhcpOptionsId}),e.jsx(t,{label:"Instance Tenancy",value:s.InstanceTenancy}),e.jsx(t,{label:"Owner ID",value:s.OwnerId})]})]}),o.length>0&&e.jsxs(l,{children:[e.jsxs(l.Header,{children:["Subnets (",o.length,")"]}),o.map(a=>a.SubnetId?e.jsxs(l.Content,{children:[e.jsx(t,{label:"Subnet ID",value:e.jsx(I,{className:"text-primary hover:underline",params:{id:a.SubnetId},to:"/ec2/describe-subnets/$id",children:a.SubnetId})}),e.jsx(t,{label:"CIDR Block",value:a.CidrBlock}),e.jsx(t,{label:"Availability Zone",value:a.AvailabilityZone}),e.jsx(t,{label:"State",value:a.State})]},a.SubnetId):null)]})]}),e.jsx(P,{onOpenChange:i,open:j,children:e.jsxs(A,{children:[e.jsxs(B,{children:[e.jsx(k,{children:"Delete VPC"}),e.jsxs(w,{children:['Are you sure you want to delete the VPC "',s.VpcId,'"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.']})]}),e.jsxs(N,{children:[e.jsx(T,{children:"Cancel"}),e.jsx(O,{disabled:n.isPending,onClick:h,children:n.isPending?"Deleting…":"Delete"})]})]})})]})}export{Y as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id2.js b/hive/services/hiveui/frontend/dist/assets/_id2.js index 468abc630..0612aa266 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id2.js +++ b/hive/services/hiveui/frontend/dist/assets/_id2.js @@ -1 +1 @@ -import{c as T,am as q,u as D,j as s,an as J,B as Q}from"./index.js";import{a as K,u as U}from"./zod.js";import{u as W}from"./useSuspenseQuery.js";import{B as H}from"./back-link.js";import{E as X}from"./error-banner.js";import{P as Y}from"./page-heading.js";import{F as Z,a as ee,b as se}from"./field.js";import{I as te}from"./input.js";import{h as ie}from"./ec2.js";import{m as re}from"./ec22.js";function xe(){const e=T.c(58),{id:R}=q.useParams(),o=D();let S;e[0]!==R?(S=J(R),e[0]=R,e[1]=S):S=e[1];const{data:L}=W(S),A=L.Volumes?.[0],t=A?.VolumeId,r=ie(),i=A?.Size??1;let a;e[2]!==i?(a=K(re.refine(l=>l.size>i,{message:`New size must be greater than current size (${i} GiB)`,path:["size"]})),e[2]=i,e[3]=a):a=e[3];let n;e[4]!==i?(n={size:i},e[4]=i,e[5]=n):n=e[5];let B;e[6]!==a||e[7]!==n?(B={resolver:a,defaultValues:n},e[6]=a,e[7]=n,e[8]=B):B=e[8];const{handleSubmit:k,register:E,formState:O}=U(B),{errors:V,isSubmitting:$}=O;if(!t){let l;return e[9]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(s.Fragment,{children:[s.jsx(H,{to:"/ec2/describe-volumes",children:"Back to volumes"}),s.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]}),e[9]=l):l=e[9],l}let F;e[10]!==r||e[11]!==o||e[12]!==t?(F=async l=>{await r.mutateAsync({...l,volumeId:t}),o({to:"/ec2/describe-volumes/$id",params:{id:t}})},e[10]=r,e[11]=o,e[12]=t,e[13]=F):F=e[13];const w=F;let m,c;e[14]!==t?(m=s.jsx(H,{params:{id:t},to:"/ec2/describe-volumes/$id",children:"Back to volume"}),c=s.jsx(Y,{subtitle:t,title:"Resize Volume"}),e[14]=t,e[15]=m,e[16]=c):(m=e[15],c=e[16]);let u;e[17]!==r.error?(u=r.error&&s.jsx(X,{error:r.error,msg:"Failed to resize volume"}),e[17]=r.error,e[18]=u):u=e[18];let d;e[19]!==k||e[20]!==w?(d=k(w),e[19]=k,e[20]=w,e[21]=d):d=e[21];let f;e[22]!==i?(f=s.jsx("div",{className:"space-y-2",children:s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Current size: ",i," GiB"]})}),e[22]=i,e[23]=f):f=e[23];let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ee,{children:s.jsx("label",{htmlFor:"size",children:"New size (GiB)"})}),e[24]=N):N=e[24];const I=!!V.size,_=i+1;let p;e[25]!==E?(p=E("size",{valueAsNumber:!0}),e[25]=E,e[26]=p):p=e[26];let x;e[27]!==I||e[28]!==_||e[29]!==p?(x=s.jsx(te,{"aria-invalid":I,id:"size",min:_,type:"number",...p}),e[27]=I,e[28]=_,e[29]=p,e[30]=x):x=e[30];let h;e[31]!==V.size?(h=s.jsx(Z,{errors:[V.size]}),e[31]=V.size,e[32]=h):h=e[32];let b;e[33]!==x||e[34]!==h?(b=s.jsxs(se,{children:[N,x,h]}),e[33]=x,e[34]=h,e[35]=b):b=e[35];const C=$||r.isPending;let j;e[36]!==o||e[37]!==t?(j=()=>o({to:"/ec2/describe-volumes/$id",params:{id:t}}),e[36]=o,e[37]=t,e[38]=j):j=e[38];let z;e[39]!==C||e[40]!==j?(z=s.jsx(Q,{disabled:C,onClick:j,type:"button",variant:"outline",children:"Cancel"}),e[39]=C,e[40]=j,e[41]=z):z=e[41];const G=$||r.isPending,M=$||r.isPending?"Resizing…":"Resize Volume";let g;e[42]!==G||e[43]!==M?(g=s.jsx(Q,{disabled:G,type:"submit",children:M}),e[42]=G,e[43]=M,e[44]=g):g=e[44];let v;e[45]!==z||e[46]!==g?(v=s.jsxs("div",{className:"flex gap-2",children:[z,g]}),e[45]=z,e[46]=g,e[47]=v):v=e[47];let y;e[48]!==f||e[49]!==b||e[50]!==v||e[51]!==d?(y=s.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:d,children:[f,b,v]}),e[48]=f,e[49]=b,e[50]=v,e[51]=d,e[52]=y):y=e[52];let P;return e[53]!==y||e[54]!==m||e[55]!==c||e[56]!==u?(P=s.jsxs(s.Fragment,{children:[m,c,u,y]}),e[53]=y,e[54]=m,e[55]=c,e[56]=u,e[57]=P):P=e[57],P}export{xe as component}; +import{c as T,aL as q,u as D,j as s,aM as J,B as L}from"./index.js";import{a as K,u as U}from"./zod.js";import{u as W}from"./useSuspenseQuery.js";import{B as Q}from"./back-link.js";import{E as X}from"./error-banner.js";import{P as Y}from"./page-heading.js";import{F as Z,a as ee,b as se}from"./field.js";import{I as te}from"./input.js";import{h as ie}from"./ec2.js";import{m as re}from"./ec22.js";function xe(){const e=T.c(58),{id:R}=q.useParams(),o=D();let S;e[0]!==R?(S=J(R),e[0]=R,e[1]=S):S=e[1];const{data:H}=W(S),A=H.Volumes?.[0],t=A?.VolumeId,r=ie(),i=A?.Size??1;let a;e[2]!==i?(a=K(re.refine(l=>l.size>i,{message:`New size must be greater than current size (${i} GiB)`,path:["size"]})),e[2]=i,e[3]=a):a=e[3];let n;e[4]!==i?(n={size:i},e[4]=i,e[5]=n):n=e[5];let B;e[6]!==a||e[7]!==n?(B={resolver:a,defaultValues:n},e[6]=a,e[7]=n,e[8]=B):B=e[8];const{handleSubmit:k,register:E,formState:O}=U(B),{errors:V,isSubmitting:$}=O;if(!t){let l;return e[9]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(s.Fragment,{children:[s.jsx(Q,{to:"/ec2/describe-volumes",children:"Back to volumes"}),s.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]}),e[9]=l):l=e[9],l}let F;e[10]!==r||e[11]!==o||e[12]!==t?(F=async l=>{await r.mutateAsync({...l,volumeId:t}),o({to:"/ec2/describe-volumes/$id",params:{id:t}})},e[10]=r,e[11]=o,e[12]=t,e[13]=F):F=e[13];const w=F;let m,c;e[14]!==t?(m=s.jsx(Q,{params:{id:t},to:"/ec2/describe-volumes/$id",children:"Back to volume"}),c=s.jsx(Y,{subtitle:t,title:"Resize Volume"}),e[14]=t,e[15]=m,e[16]=c):(m=e[15],c=e[16]);let u;e[17]!==r.error?(u=r.error&&s.jsx(X,{error:r.error,msg:"Failed to resize volume"}),e[17]=r.error,e[18]=u):u=e[18];let d;e[19]!==k||e[20]!==w?(d=k(w),e[19]=k,e[20]=w,e[21]=d):d=e[21];let f;e[22]!==i?(f=s.jsx("div",{className:"space-y-2",children:s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Current size: ",i," GiB"]})}),e[22]=i,e[23]=f):f=e[23];let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ee,{children:s.jsx("label",{htmlFor:"size",children:"New size (GiB)"})}),e[24]=N):N=e[24];const I=!!V.size,M=i+1;let p;e[25]!==E?(p=E("size",{valueAsNumber:!0}),e[25]=E,e[26]=p):p=e[26];let x;e[27]!==I||e[28]!==M||e[29]!==p?(x=s.jsx(te,{"aria-invalid":I,id:"size",min:M,type:"number",...p}),e[27]=I,e[28]=M,e[29]=p,e[30]=x):x=e[30];let h;e[31]!==V.size?(h=s.jsx(Z,{errors:[V.size]}),e[31]=V.size,e[32]=h):h=e[32];let b;e[33]!==x||e[34]!==h?(b=s.jsxs(se,{children:[N,x,h]}),e[33]=x,e[34]=h,e[35]=b):b=e[35];const _=$||r.isPending;let j;e[36]!==o||e[37]!==t?(j=()=>o({to:"/ec2/describe-volumes/$id",params:{id:t}}),e[36]=o,e[37]=t,e[38]=j):j=e[38];let z;e[39]!==_||e[40]!==j?(z=s.jsx(L,{disabled:_,onClick:j,type:"button",variant:"outline",children:"Cancel"}),e[39]=_,e[40]=j,e[41]=z):z=e[41];const C=$||r.isPending,G=$||r.isPending?"Resizing…":"Resize Volume";let g;e[42]!==C||e[43]!==G?(g=s.jsx(L,{disabled:C,type:"submit",children:G}),e[42]=C,e[43]=G,e[44]=g):g=e[44];let v;e[45]!==z||e[46]!==g?(v=s.jsxs("div",{className:"flex gap-2",children:[z,g]}),e[45]=z,e[46]=g,e[47]=v):v=e[47];let y;e[48]!==f||e[49]!==b||e[50]!==v||e[51]!==d?(y=s.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:d,children:[f,b,v]}),e[48]=f,e[49]=b,e[50]=v,e[51]=d,e[52]=y):y=e[52];let P;return e[53]!==y||e[54]!==m||e[55]!==c||e[56]!==u?(P=s.jsxs(s.Fragment,{children:[m,c,u,y]}),e[53]=y,e[54]=m,e[55]=c,e[56]=u,e[57]=P):P=e[57],P}export{xe as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id3.js b/hive/services/hiveui/frontend/dist/assets/_id3.js index 23ec55cd9..e0b369cf3 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id3.js +++ b/hive/services/hiveui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{k as O,av as Z,u as q,an as G,x as J,r as m,j as e,B as u,L as y,aw as z,ax as U,ay as w}from"./index.js";import{u as B}from"./useSuspenseQuery.js";import{B as M}from"./back-link.js";import{D as l,a as s}from"./detail-row.js";import{E as D}from"./error-banner.js";import{P as W}from"./page-heading.js";import{S as X}from"./state-badge.js";import{g as f,f as A,b,a as V,c as k,d as C,e as S,h as N}from"./alert-dialog.js";import{b as P,a as E}from"./field.js";import{I as ee}from"./input.js";import{S as ae,a as te,b as se,c as ne,d as le}from"./select.js";import{i as ie,j as ce,k as oe}from"./ec2.js";import{T as re}from"./trash-2.js";import"./check.js";const de=[["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"}]],he=O("link-2-off",de);const me=[["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"}]],ue=O("link-2",me);function Se(){const{id:r}=Z.useParams(),H=q(),{data:L}=B(G(r)),{data:R}=B(J),t=L.Volumes?.[0],i=ie(),c=ce(),o=oe(),[x,d]=m.useState(null),[j,v]=m.useState(""),[T,p]=m.useState(""),[F,g]=m.useState(!1),K=R.Reservations?.flatMap(a=>a.Instances?.filter(h=>h.State?.Name==="running")??[])??[],I=t?.State==="available"&&(!t.Attachments||t.Attachments.length===0),n=()=>d(null),$=async()=>{try{await i.mutateAsync(r),H({to:"/ec2/describe-volumes"})}finally{n()}},_=async()=>{try{await c.mutateAsync({volumeId:r,instanceId:j,device:T||void 0}),n(),v(""),p("")}catch{}},Q=async()=>{const a=t?.Attachments?.[0]?.InstanceId;try{await o.mutateAsync({volumeId:r,instanceId:a||void 0,force:F||void 0}),n(),g(!1)}catch{}};return t?.VolumeId?e.jsxs(e.Fragment,{children:[e.jsx(M,{to:"/ec2/describe-volumes",children:"Back to volumes"}),i.error&&e.jsx(D,{error:i.error,msg:"Failed to delete volume"}),c.error&&e.jsx(D,{error:c.error,msg:"Failed to attach volume"}),o.error&&e.jsx(D,{error:o.error,msg:"Failed to detach volume"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(W,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(u,{disabled:!I,onClick:()=>d("delete"),size:"sm",variant:"destructive",children:[e.jsx(re,{className:"size-4"}),"Delete"]}),I?e.jsx(y,{className:z({variant:"outline"}),params:{id:t.VolumeId},to:"/ec2/modify-volume/$id",children:"Resize Volume"}):e.jsx(u,{disabled:!0,variant:"outline",children:"Resize Volume"}),I?e.jsxs(u,{onClick:()=>d("attach"),size:"sm",variant:"outline",children:[e.jsx(ue,{className:"size-4"}),"Attach"]}):null,t.Attachments&&t.Attachments.length>0?e.jsxs(u,{onClick:()=>d("detach"),size:"sm",variant:"outline",children:[e.jsx(he,{className:"size-4"}),"Detach"]}):null,e.jsxs(y,{className:z({variant:"outline",size:"sm"}),search:{volumeId:t.VolumeId},to:"/ec2/create-snapshot",children:[e.jsx(U,{className:"size-4"}),"Create Snapshot"]}),e.jsx(X,{state:t.State})]}),subtitle:"EC2 Volume Details",title:t.VolumeId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"Volume Information"}),e.jsxs(l.Content,{children:[e.jsx(s,{label:"Volume ID",value:t.VolumeId}),e.jsx(s,{label:"Size",value:`${t.Size} GiB`}),e.jsx(s,{label:"Volume Type",value:t.VolumeType}),e.jsx(s,{label:"State",value:t.State}),e.jsx(s,{label:"Availability Zone",value:t.AvailabilityZone}),e.jsx(s,{label:"Create Time",value:w(t.CreateTime)}),e.jsx(s,{label:"Encrypted",value:t.Encrypted?"Yes":"No"}),e.jsx(s,{label:"KMS Key ID",value:t.KmsKeyId})]})]}),t.Attachments&&t.Attachments.length>0&&e.jsxs(l,{children:[e.jsx(l.Header,{children:"Attachments"}),t.Attachments.map(a=>e.jsxs(l.Content,{children:[e.jsx(s,{label:"Instance ID",value:a.InstanceId?e.jsx(y,{className:"text-primary hover:underline",params:{id:a.InstanceId},to:"/ec2/describe-instances/$id",children:a.InstanceId}):void 0}),e.jsx(s,{label:"Device",value:a.Device}),e.jsx(s,{label:"Status",value:a.State}),e.jsx(s,{label:"Attach Time",value:w(a.AttachTime)}),e.jsx(s,{label:"Delete on Termination",value:a.DeleteOnTermination?"Yes":"No"})]},a.InstanceId))]})]}),e.jsx(f,{onOpenChange:a=>{a||n()},open:x==="delete",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Delete Volume"}),e.jsxs(k,{children:['Are you sure you want to delete the volume "',t.VolumeId,'"? This action cannot be undone.']})]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:i.isPending,onClick:$,children:i.isPending?"Deleting…":"Delete"})]})]})}),e.jsx(f,{onOpenChange:a=>{a||(n(),v(""),p(""))},open:x==="attach",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Attach Volume"}),e.jsx(k,{children:"Attach this volume to a running instance."})]}),e.jsxs(P,{children:[e.jsx(E,{children:e.jsx("label",{htmlFor:"attachInstance",children:"Instance"})}),e.jsxs(ae,{onValueChange:a=>v(a??""),value:j,children:[e.jsx(te,{className:"w-full",id:"attachInstance",children:e.jsx(se,{placeholder:"Select an instance"})}),e.jsx(ne,{children:K.map(a=>{const h=a.Tags?.find(Y=>Y.Key==="Name")?.Value;return e.jsxs(le,{value:a.InstanceId??"",children:[a.InstanceId,h?` (${h})`:""]},a.InstanceId)})})]})]}),e.jsxs(P,{children:[e.jsx(E,{children:e.jsx("label",{htmlFor:"attachDevice",children:"Device (optional)"})}),e.jsx(ee,{id:"attachDevice",onChange:a=>p(a.target.value),placeholder:"/dev/sdf",value:T})]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:c.isPending||!j,onClick:_,children:c.isPending?"Attaching…":"Attach"})]})]})}),e.jsx(f,{onOpenChange:a=>{a||(n(),g(!1))},open:x==="detach",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Detach Volume"}),e.jsxs(k,{children:['Are you sure you want to detach the volume "',t.VolumeId,'" from instance "',t.Attachments?.[0]?.InstanceId,'"?']})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{checked:F,onChange:a=>g(a.target.checked),type:"checkbox"}),"Force detach"]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:o.isPending,onClick:Q,children:o.isPending?"Detaching…":"Detach"})]})]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(M,{to:"/ec2/describe-volumes",children:"Back to volumes"}),e.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]})}export{Se as component}; +import{J as O,aU as Z,u as q,aM as G,E as J,r as m,j as e,B as u,L as D,aV as F,aW as U,z as M}from"./index.js";import{u as B}from"./useSuspenseQuery.js";import{B as P}from"./back-link.js";import{D as l,a as s}from"./detail-row.js";import{E as y}from"./error-banner.js";import{P as W}from"./page-heading.js";import{S as X}from"./state-badge.js";import{g as f,f as A,b,a as V,c as k,d as C,e as S,h as N}from"./alert-dialog.js";import{b as w,a as E}from"./field.js";import{I as ee}from"./input.js";import{S as ae,a as te,b as se,c as ne,d as le}from"./select.js";import{i as ie,j as ce,k as oe}from"./ec2.js";import{T as re}from"./trash-2.js";import"./check.js";const de=[["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"}]],he=O("link-2-off",de);const me=[["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"}]],ue=O("link-2",me);function Se(){const{id:r}=Z.useParams(),H=q(),{data:L}=B(G(r)),{data:R}=B(J),t=L.Volumes?.[0],i=ie(),c=ce(),o=oe(),[x,d]=m.useState(null),[j,v]=m.useState(""),[T,p]=m.useState(""),[z,g]=m.useState(!1),K=R.Reservations?.flatMap(a=>a.Instances?.filter(h=>h.State?.Name==="running")??[])??[],I=t?.State==="available"&&(!t.Attachments||t.Attachments.length===0),n=()=>d(null),$=async()=>{try{await i.mutateAsync(r),H({to:"/ec2/describe-volumes"})}finally{n()}},_=async()=>{try{await c.mutateAsync({volumeId:r,instanceId:j,device:T||void 0}),n(),v(""),p("")}catch{}},Q=async()=>{const a=t?.Attachments?.[0]?.InstanceId;try{await o.mutateAsync({volumeId:r,instanceId:a||void 0,force:z||void 0}),n(),g(!1)}catch{}};return t?.VolumeId?e.jsxs(e.Fragment,{children:[e.jsx(P,{to:"/ec2/describe-volumes",children:"Back to volumes"}),i.error&&e.jsx(y,{error:i.error,msg:"Failed to delete volume"}),c.error&&e.jsx(y,{error:c.error,msg:"Failed to attach volume"}),o.error&&e.jsx(y,{error:o.error,msg:"Failed to detach volume"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(W,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(u,{disabled:!I,onClick:()=>d("delete"),size:"sm",variant:"destructive",children:[e.jsx(re,{className:"size-4"}),"Delete"]}),I?e.jsx(D,{className:F({variant:"outline"}),params:{id:t.VolumeId},to:"/ec2/modify-volume/$id",children:"Resize Volume"}):e.jsx(u,{disabled:!0,variant:"outline",children:"Resize Volume"}),I?e.jsxs(u,{onClick:()=>d("attach"),size:"sm",variant:"outline",children:[e.jsx(ue,{className:"size-4"}),"Attach"]}):null,t.Attachments&&t.Attachments.length>0?e.jsxs(u,{onClick:()=>d("detach"),size:"sm",variant:"outline",children:[e.jsx(he,{className:"size-4"}),"Detach"]}):null,e.jsxs(D,{className:F({variant:"outline",size:"sm"}),search:{volumeId:t.VolumeId},to:"/ec2/create-snapshot",children:[e.jsx(U,{className:"size-4"}),"Create Snapshot"]}),e.jsx(X,{state:t.State})]}),subtitle:"EC2 Volume Details",title:t.VolumeId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"Volume Information"}),e.jsxs(l.Content,{children:[e.jsx(s,{label:"Volume ID",value:t.VolumeId}),e.jsx(s,{label:"Size",value:`${t.Size} GiB`}),e.jsx(s,{label:"Volume Type",value:t.VolumeType}),e.jsx(s,{label:"State",value:t.State}),e.jsx(s,{label:"Availability Zone",value:t.AvailabilityZone}),e.jsx(s,{label:"Create Time",value:M(t.CreateTime)}),e.jsx(s,{label:"Encrypted",value:t.Encrypted?"Yes":"No"}),e.jsx(s,{label:"KMS Key ID",value:t.KmsKeyId})]})]}),t.Attachments&&t.Attachments.length>0&&e.jsxs(l,{children:[e.jsx(l.Header,{children:"Attachments"}),t.Attachments.map(a=>e.jsxs(l.Content,{children:[e.jsx(s,{label:"Instance ID",value:a.InstanceId?e.jsx(D,{className:"text-primary hover:underline",params:{id:a.InstanceId},to:"/ec2/describe-instances/$id",children:a.InstanceId}):void 0}),e.jsx(s,{label:"Device",value:a.Device}),e.jsx(s,{label:"Status",value:a.State}),e.jsx(s,{label:"Attach Time",value:M(a.AttachTime)}),e.jsx(s,{label:"Delete on Termination",value:a.DeleteOnTermination?"Yes":"No"})]},a.InstanceId))]})]}),e.jsx(f,{onOpenChange:a=>{a||n()},open:x==="delete",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Delete Volume"}),e.jsxs(k,{children:['Are you sure you want to delete the volume "',t.VolumeId,'"? This action cannot be undone.']})]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:i.isPending,onClick:$,children:i.isPending?"Deleting…":"Delete"})]})]})}),e.jsx(f,{onOpenChange:a=>{a||(n(),v(""),p(""))},open:x==="attach",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Attach Volume"}),e.jsx(k,{children:"Attach this volume to a running instance."})]}),e.jsxs(w,{children:[e.jsx(E,{children:e.jsx("label",{htmlFor:"attachInstance",children:"Instance"})}),e.jsxs(ae,{onValueChange:a=>v(a??""),value:j,children:[e.jsx(te,{className:"w-full",id:"attachInstance",children:e.jsx(se,{placeholder:"Select an instance"})}),e.jsx(ne,{children:K.map(a=>{const h=a.Tags?.find(Y=>Y.Key==="Name")?.Value;return e.jsxs(le,{value:a.InstanceId??"",children:[a.InstanceId,h?` (${h})`:""]},a.InstanceId)})})]})]}),e.jsxs(w,{children:[e.jsx(E,{children:e.jsx("label",{htmlFor:"attachDevice",children:"Device (optional)"})}),e.jsx(ee,{id:"attachDevice",onChange:a=>p(a.target.value),placeholder:"/dev/sdf",value:T})]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:c.isPending||!j,onClick:_,children:c.isPending?"Attaching…":"Attach"})]})]})}),e.jsx(f,{onOpenChange:a=>{a||(n(),g(!1))},open:x==="detach",children:e.jsxs(A,{children:[e.jsxs(b,{children:[e.jsx(V,{children:"Detach Volume"}),e.jsxs(k,{children:['Are you sure you want to detach the volume "',t.VolumeId,'" from instance "',t.Attachments?.[0]?.InstanceId,'"?']})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{checked:z,onChange:a=>g(a.target.checked),type:"checkbox"}),"Force detach"]}),e.jsxs(C,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(N,{disabled:o.isPending,onClick:Q,children:o.isPending?"Detaching…":"Detach"})]})]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(P,{to:"/ec2/describe-volumes",children:"Back to volumes"}),e.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]})}export{Se as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id4.js b/hive/services/hiveui/frontend/dist/assets/_id4.js index 6754c4eb0..d7cae9bf8 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id4.js +++ b/hive/services/hiveui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{az as x,u as j,aA as p,r as h,j as e,B as D,L as g}from"./index.js";import{u as S}from"./useSuspenseQuery.js";import{B as o}from"./back-link.js";import{D as l,a as s}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as v}from"./page-heading.js";import{S as A}from"./state-badge.js";import{g as I,f as y,b as C,a as B,c as P,d as k,e as N,h as w}from"./alert-dialog.js";import{l as F}from"./ec2.js";import{T as L}from"./trash-2.js";function Q(){const{id:r}=x.useParams(),c=j(),{data:u}=S(p(r)),t=u.Subnets?.[0],a=F(),[d,n]=h.useState(!1),b=async()=>{try{await a.mutateAsync(r),c({to:"/ec2/describe-subnets"})}finally{n(!1)}};if(!t?.SubnetId)return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),e.jsx("p",{className:"text-muted-foreground",children:"Subnet not found."})]});const i=t.Tags?.find(m=>m.Key==="Name")?.Value;return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),a.error&&e.jsx(f,{error:a.error,msg:"Failed to delete subnet"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(v,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(D,{onClick:()=>n(!0),size:"sm",variant:"destructive",children:[e.jsx(L,{className:"size-4"}),"Delete"]}),e.jsx(A,{state:t.State})]}),subtitle:"Subnet Details",title:i?`${t.SubnetId} (${i})`:t.SubnetId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"Subnet Information"}),e.jsxs(l.Content,{children:[e.jsx(s,{label:"Subnet ID",value:t.SubnetId}),e.jsx(s,{label:"VPC ID",value:t.VpcId?e.jsx(g,{className:"text-primary hover:underline",params:{id:t.VpcId},to:"/ec2/describe-vpcs/$id",children:t.VpcId}):"—"}),e.jsx(s,{label:"State",value:t.State}),e.jsx(s,{label:"CIDR Block",value:t.CidrBlock}),e.jsx(s,{label:"Availability Zone",value:t.AvailabilityZone}),e.jsx(s,{label:"Available IP Count",value:t.AvailableIpAddressCount?.toString()}),e.jsx(s,{label:"Map Public IP on Launch",value:t.MapPublicIpOnLaunch?"Yes":"No"}),e.jsx(s,{label:"Default for AZ",value:t.DefaultForAz?"Yes":"No"})]})]})]}),e.jsx(I,{onOpenChange:n,open:d,children:e.jsxs(y,{children:[e.jsxs(C,{children:[e.jsx(B,{children:"Delete Subnet"}),e.jsxs(P,{children:['Are you sure you want to delete the subnet "',t.SubnetId,'"? This action cannot be undone.']})]}),e.jsxs(k,{children:[e.jsx(N,{children:"Cancel"}),e.jsx(w,{disabled:a.isPending,onClick:b,children:a.isPending?"Deleting…":"Delete"})]})]})})]})}export{Q as component}; +import{cX as x,u as j,cY as p,r as h,j as e,B as D,L as g}from"./index.js";import{u as S}from"./useSuspenseQuery.js";import{B as o}from"./back-link.js";import{D as l,a as s}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as v}from"./page-heading.js";import{S as A}from"./state-badge.js";import{g as I,f as y,b as C,a as B,c as P,d as k,e as N,h as w}from"./alert-dialog.js";import{l as F}from"./ec2.js";import{T as L}from"./trash-2.js";function $(){const{id:r}=x.useParams(),c=j(),{data:u}=S(p(r)),t=u.Subnets?.[0],a=F(),[d,n]=h.useState(!1),b=async()=>{try{await a.mutateAsync(r),c({to:"/ec2/describe-subnets"})}finally{n(!1)}};if(!t?.SubnetId)return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),e.jsx("p",{className:"text-muted-foreground",children:"Subnet not found."})]});const i=t.Tags?.find(m=>m.Key==="Name")?.Value;return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),a.error&&e.jsx(f,{error:a.error,msg:"Failed to delete subnet"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(v,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(D,{onClick:()=>n(!0),size:"sm",variant:"destructive",children:[e.jsx(L,{className:"size-4"}),"Delete"]}),e.jsx(A,{state:t.State})]}),subtitle:"Subnet Details",title:i?`${t.SubnetId} (${i})`:t.SubnetId}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"Subnet Information"}),e.jsxs(l.Content,{children:[e.jsx(s,{label:"Subnet ID",value:t.SubnetId}),e.jsx(s,{label:"VPC ID",value:t.VpcId?e.jsx(g,{className:"text-primary hover:underline",params:{id:t.VpcId},to:"/ec2/describe-vpcs/$id",children:t.VpcId}):"—"}),e.jsx(s,{label:"State",value:t.State}),e.jsx(s,{label:"CIDR Block",value:t.CidrBlock}),e.jsx(s,{label:"Availability Zone",value:t.AvailabilityZone}),e.jsx(s,{label:"Available IP Count",value:t.AvailableIpAddressCount?.toString()}),e.jsx(s,{label:"Map Public IP on Launch",value:t.MapPublicIpOnLaunch?"Yes":"No"}),e.jsx(s,{label:"Default for AZ",value:t.DefaultForAz?"Yes":"No"})]})]})]}),e.jsx(I,{onOpenChange:n,open:d,children:e.jsxs(y,{children:[e.jsxs(C,{children:[e.jsx(B,{children:"Delete Subnet"}),e.jsxs(P,{children:['Are you sure you want to delete the subnet "',t.SubnetId,'"? This action cannot be undone.']})]}),e.jsxs(k,{children:[e.jsx(N,{children:"Cancel"}),e.jsx(w,{disabled:a.isPending,onClick:b,children:a.isPending?"Deleting…":"Delete"})]})]})})]})}export{$ as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id5.js b/hive/services/hiveui/frontend/dist/assets/_id5.js index f6d6acf22..6f9c03829 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id5.js +++ b/hive/services/hiveui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{k as z,aB as E,u as V,aC as O,e as L,r as l,j as e,ay as H,B as u,L as M}from"./index.js";import{u as m}from"./useSuspenseQuery.js";import{B as x}from"./back-link.js";import{D as c,a as t}from"./detail-row.js";import{E as j}from"./error-banner.js";import{P as Q}from"./page-heading.js";import{S as _}from"./state-badge.js";import{g,f as y,b as D,a as S,c as f,d as C,e as b,h as v}from"./alert-dialog.js";import{b as $,a as G}from"./field.js";import{I as Y}from"./input.js";import{m as q,n as J}from"./ec2.js";import{T as K}from"./trash-2.js";const U=[["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"}]],W=z("copy",U);function de(){const{id:n}=E.useParams(),I=V(),{data:k}=m(O(n)),{data:A}=m(L),s=k.Snapshots?.[0],a=q(),o=J(),[w,i]=l.useState(!1),[B,r]=l.useState(!1),[d,p]=l.useState(""),N=A.Regions?.[0]?.RegionName??"ap-southeast-2",h=s?.State==="completed",P=async()=>{try{await a.mutateAsync(n),I({to:"/ec2/describe-snapshots"})}finally{i(!1)}},T=async()=>{try{await o.mutateAsync({sourceSnapshotId:n,sourceRegion:N,description:d||void 0}),r(!1),p("")}catch{}};if(!s?.SnapshotId)return e.jsxs(e.Fragment,{children:[e.jsx(x,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),e.jsx("p",{className:"text-muted-foreground",children:"Snapshot not found."})]});const F=H(s.StartTime);return e.jsxs(e.Fragment,{children:[e.jsx(x,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),a.error&&e.jsx(j,{error:a.error,msg:"Failed to delete snapshot"}),o.error&&e.jsx(j,{error:o.error,msg:"Failed to copy snapshot"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(Q,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(u,{disabled:!h,onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(K,{className:"size-4"}),"Delete"]}),e.jsxs(u,{disabled:!h,onClick:()=>r(!0),size:"sm",variant:"outline",children:[e.jsx(W,{className:"size-4"}),"Copy Snapshot"]}),e.jsx(_,{state:s.State})]}),subtitle:"EC2 Snapshot Details",title:s.SnapshotId}),e.jsxs(c,{children:[e.jsx(c.Header,{children:"Snapshot Information"}),e.jsxs(c.Content,{children:[e.jsx(t,{label:"Snapshot ID",value:s.SnapshotId}),e.jsx(t,{label:"Volume ID",value:s.VolumeId?e.jsx(M,{className:"text-primary hover:underline",params:{id:s.VolumeId},to:"/ec2/describe-volumes/$id",children:s.VolumeId}):void 0}),e.jsx(t,{label:"Volume Size",value:`${s.VolumeSize} GiB`}),e.jsx(t,{label:"State",value:s.State}),e.jsx(t,{label:"Description",value:s.Description}),e.jsx(t,{label:"Progress",value:s.Progress}),e.jsx(t,{label:"Start Time",value:F}),e.jsx(t,{label:"Owner ID",value:s.OwnerId}),e.jsx(t,{label:"Encrypted",value:s.Encrypted?"Yes":"No"})]})]})]}),e.jsx(g,{onOpenChange:i,open:w,children:e.jsxs(y,{children:[e.jsxs(D,{children:[e.jsx(S,{children:"Delete Snapshot"}),e.jsxs(f,{children:['Are you sure you want to delete the snapshot "',s.SnapshotId,'"? This action cannot be undone.']})]}),e.jsxs(C,{children:[e.jsx(b,{children:"Cancel"}),e.jsx(v,{disabled:a.isPending,onClick:P,children:a.isPending?"Deleting…":"Delete"})]})]})}),e.jsx(g,{onOpenChange:r,open:B,children:e.jsxs(y,{children:[e.jsxs(D,{children:[e.jsx(S,{children:"Copy Snapshot"}),e.jsx(f,{children:"Create a copy of this snapshot in the current region."})]}),e.jsxs($,{children:[e.jsx(G,{children:e.jsx("label",{htmlFor:"copyDescription",children:"Description (optional)"})}),e.jsx(Y,{id:"copyDescription",onChange:R=>p(R.target.value),placeholder:"Description for the snapshot copy",value:d})]}),e.jsxs(C,{children:[e.jsx(b,{children:"Cancel"}),e.jsx(v,{disabled:o.isPending,onClick:T,children:o.isPending?"Copying…":"Copy Snapshot"})]})]})})]})}export{de as component}; +import{J as R,cZ as E,u as V,c_ as O,f as L,r as l,j as e,z as H,B as u,L as M}from"./index.js";import{u as m}from"./useSuspenseQuery.js";import{B as x}from"./back-link.js";import{D as c,a as t}from"./detail-row.js";import{E as j}from"./error-banner.js";import{P as Q}from"./page-heading.js";import{S as _}from"./state-badge.js";import{g,f as D,b as y,a as S,c as f,d as C,e as b,h as v}from"./alert-dialog.js";import{b as $,a as G}from"./field.js";import{I as J}from"./input.js";import{m as Y,n as Z}from"./ec2.js";import{T as q}from"./trash-2.js";const K=[["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"}]],U=R("copy",K);function de(){const{id:n}=E.useParams(),I=V(),{data:A}=m(O(n)),{data:k}=m(L),s=A.Snapshots?.[0],a=Y(),o=Z(),[w,i]=l.useState(!1),[N,r]=l.useState(!1),[d,p]=l.useState(""),B=k.Regions?.[0]?.RegionName??"ap-southeast-2",h=s?.State==="completed",P=async()=>{try{await a.mutateAsync(n),I({to:"/ec2/describe-snapshots"})}finally{i(!1)}},T=async()=>{try{await o.mutateAsync({sourceSnapshotId:n,sourceRegion:B,description:d||void 0}),r(!1),p("")}catch{}};if(!s?.SnapshotId)return e.jsxs(e.Fragment,{children:[e.jsx(x,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),e.jsx("p",{className:"text-muted-foreground",children:"Snapshot not found."})]});const z=H(s.StartTime);return e.jsxs(e.Fragment,{children:[e.jsx(x,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),a.error&&e.jsx(j,{error:a.error,msg:"Failed to delete snapshot"}),o.error&&e.jsx(j,{error:o.error,msg:"Failed to copy snapshot"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(Q,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(u,{disabled:!h,onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(q,{className:"size-4"}),"Delete"]}),e.jsxs(u,{disabled:!h,onClick:()=>r(!0),size:"sm",variant:"outline",children:[e.jsx(U,{className:"size-4"}),"Copy Snapshot"]}),e.jsx(_,{state:s.State})]}),subtitle:"EC2 Snapshot Details",title:s.SnapshotId}),e.jsxs(c,{children:[e.jsx(c.Header,{children:"Snapshot Information"}),e.jsxs(c.Content,{children:[e.jsx(t,{label:"Snapshot ID",value:s.SnapshotId}),e.jsx(t,{label:"Volume ID",value:s.VolumeId?e.jsx(M,{className:"text-primary hover:underline",params:{id:s.VolumeId},to:"/ec2/describe-volumes/$id",children:s.VolumeId}):void 0}),e.jsx(t,{label:"Volume Size",value:`${s.VolumeSize} GiB`}),e.jsx(t,{label:"State",value:s.State}),e.jsx(t,{label:"Description",value:s.Description}),e.jsx(t,{label:"Progress",value:s.Progress}),e.jsx(t,{label:"Start Time",value:z}),e.jsx(t,{label:"Owner ID",value:s.OwnerId}),e.jsx(t,{label:"Encrypted",value:s.Encrypted?"Yes":"No"})]})]})]}),e.jsx(g,{onOpenChange:i,open:w,children:e.jsxs(D,{children:[e.jsxs(y,{children:[e.jsx(S,{children:"Delete Snapshot"}),e.jsxs(f,{children:['Are you sure you want to delete the snapshot "',s.SnapshotId,'"? This action cannot be undone.']})]}),e.jsxs(C,{children:[e.jsx(b,{children:"Cancel"}),e.jsx(v,{disabled:a.isPending,onClick:P,children:a.isPending?"Deleting…":"Delete"})]})]})}),e.jsx(g,{onOpenChange:r,open:N,children:e.jsxs(D,{children:[e.jsxs(y,{children:[e.jsx(S,{children:"Copy Snapshot"}),e.jsx(f,{children:"Create a copy of this snapshot in the current region."})]}),e.jsxs($,{children:[e.jsx(G,{children:e.jsx("label",{htmlFor:"copyDescription",children:"Description (optional)"})}),e.jsx(J,{id:"copyDescription",onChange:F=>p(F.target.value),placeholder:"Description for the snapshot copy",value:d})]}),e.jsxs(C,{children:[e.jsx(b,{children:"Cancel"}),e.jsx(v,{disabled:o.isPending,onClick:T,children:o.isPending?"Copying…":"Copy Snapshot"})]})]})})]})}export{de as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id6.js b/hive/services/hiveui/frontend/dist/assets/_id6.js index eb070e443..0352bf3aa 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id6.js +++ b/hive/services/hiveui/frontend/dist/assets/_id6.js @@ -1 +1 @@ -import{aD as x,u as p,aE as h,r as j,j as e,ay as g,B as D}from"./index.js";import{u as K}from"./useSuspenseQuery.js";import{B as o}from"./back-link.js";import{D as s,a as r}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as b}from"./page-heading.js";import{g as P,f as k,b as T,a as A,c as C,d as v,e as N,h as w}from"./alert-dialog.js";import{o as B}from"./ec2.js";import{T as E}from"./trash-2.js";function M(){const{id:l}=x.useParams(),c=p(),{data:d}=K(h(l)),a=d.KeyPairs?.[0],i=B(),[y,t]=j.useState(!1),m=async()=>{try{await i.mutateAsync(l),c({to:"/ec2/describe-key-pairs"})}finally{t(!1)}};if(!a?.KeyPairId)return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),e.jsx("p",{className:"text-muted-foreground",children:"Key pair not found."})]});const u=g(a.CreateTime);return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),i.error&&e.jsx(f,{error:i.error,msg:"Failed to delete key pair"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{actions:e.jsxs(D,{onClick:()=>t(!0),size:"sm",variant:"destructive",children:[e.jsx(E,{className:"size-4"}),"Delete"]}),subtitle:"EC2 Key Pair Details",title:a.KeyName??""}),e.jsxs(s,{children:[e.jsx(s.Header,{children:"Key Pair Information"}),e.jsxs(s.Content,{children:[e.jsx(r,{label:"Key Name",value:a.KeyName}),e.jsx(r,{label:"Key Pair ID",value:a.KeyPairId}),e.jsx(r,{label:"Key Type",value:a.KeyType}),e.jsx(r,{label:"Key Fingerprint",value:a.KeyFingerprint}),e.jsx(r,{label:"Creation Date",value:u})]})]}),a.Tags&&a.Tags.length>0&&e.jsxs(s,{children:[e.jsx(s.Header,{children:"Tags"}),e.jsx(s.Content,{children:a.Tags.map(n=>e.jsx(r,{label:n.Key||"",value:n.Value},n.Key))})]})]}),e.jsx(P,{onOpenChange:t,open:y,children:e.jsxs(k,{children:[e.jsxs(T,{children:[e.jsx(A,{children:"Delete Key Pair"}),e.jsxs(C,{children:['Are you sure you want to delete the key pair "',a.KeyName,'"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.']})]}),e.jsxs(v,{children:[e.jsx(N,{children:"Cancel"}),e.jsx(w,{disabled:i.isPending,onClick:m,children:i.isPending?"Deleting…":"Delete"})]})]})})]})}export{M as component}; +import{c$ as x,u as p,d0 as h,r as j,j as e,z as g,B as D}from"./index.js";import{u as K}from"./useSuspenseQuery.js";import{B as o}from"./back-link.js";import{D as s,a as r}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as b}from"./page-heading.js";import{g as P,f as k,b as T,a as A,c as C,d as v,e as N,h as w}from"./alert-dialog.js";import{o as B}from"./ec2.js";import{T as F}from"./trash-2.js";function M(){const{id:l}=x.useParams(),c=p(),{data:d}=K(h(l)),a=d.KeyPairs?.[0],i=B(),[y,t]=j.useState(!1),m=async()=>{try{await i.mutateAsync(l),c({to:"/ec2/describe-key-pairs"})}finally{t(!1)}};if(!a?.KeyPairId)return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),e.jsx("p",{className:"text-muted-foreground",children:"Key pair not found."})]});const u=g(a.CreateTime);return e.jsxs(e.Fragment,{children:[e.jsx(o,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),i.error&&e.jsx(f,{error:i.error,msg:"Failed to delete key pair"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{actions:e.jsxs(D,{onClick:()=>t(!0),size:"sm",variant:"destructive",children:[e.jsx(F,{className:"size-4"}),"Delete"]}),subtitle:"EC2 Key Pair Details",title:a.KeyName??""}),e.jsxs(s,{children:[e.jsx(s.Header,{children:"Key Pair Information"}),e.jsxs(s.Content,{children:[e.jsx(r,{label:"Key Name",value:a.KeyName}),e.jsx(r,{label:"Key Pair ID",value:a.KeyPairId}),e.jsx(r,{label:"Key Type",value:a.KeyType}),e.jsx(r,{label:"Key Fingerprint",value:a.KeyFingerprint}),e.jsx(r,{label:"Creation Date",value:u})]})]}),a.Tags&&a.Tags.length>0&&e.jsxs(s,{children:[e.jsx(s.Header,{children:"Tags"}),e.jsx(s.Content,{children:a.Tags.map(n=>e.jsx(r,{label:n.Key||"",value:n.Value},n.Key))})]})]}),e.jsx(P,{onOpenChange:t,open:y,children:e.jsxs(k,{children:[e.jsxs(T,{children:[e.jsx(A,{children:"Delete Key Pair"}),e.jsxs(C,{children:['Are you sure you want to delete the key pair "',a.KeyName,'"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.']})]}),e.jsxs(v,{children:[e.jsx(N,{children:"Cancel"}),e.jsx(w,{disabled:i.isPending,onClick:m,children:i.isPending?"Deleting…":"Delete"})]})]})})]})}export{M as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id7.js b/hive/services/hiveui/frontend/dist/assets/_id7.js index f63fce450..0df8dc135 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id7.js +++ b/hive/services/hiveui/frontend/dist/assets/_id7.js @@ -1 +1 @@ -import{k as D,r as S,j as e,c as K,B as C,aF as Z,aG as Y,aH as J,n as U,ay as _,L as k}from"./index.js";import{u as P}from"./useSuspenseQuery.js";import{B as z}from"./back-link.js";import{D as x,a as r}from"./detail-row.js";import{E as T}from"./error-banner.js";import{P as W}from"./page-heading.js";import{S as X}from"./state-badge.js";import{g as O,f as V,b as E,a as B,c as R,d as $,e as H,h as G}from"./alert-dialog.js";import{b as A,a as w}from"./field.js";import{S as ee,a as se,b as te,c as ae,d as ne}from"./select.js";import{p as ie,q as re,r as le,s as oe,t as ce,v as de,w as me}from"./ec2.js";import{A as ue}from"./ami-details.js";import{I as pe}from"./input.js";import{T as he}from"./textarea.js";import{T as xe}from"./trash-2.js";import"./check.js";const ge=[["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"}]],je=D("image-plus",ge);const Ie=[["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"}]],ye=D("pause",Ie);const fe=[["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"}]],be=D("play",fe);const ve=[["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"}]],Se=D("rotate-cw",ve);const Ce=[["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"}]],Ne=D("settings-2",Ce);const Te=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],De=D("terminal",Te);function ke({instanceId:b,open:s,onOpenChange:t}){const n=ie(),[c,d]=S.useState(""),[l,i]=S.useState(""),[g,p]=S.useState(null);function m(o){o||(d(""),i(""),p(null)),t(o)}async function u(){try{const o=await n.mutateAsync({instanceId:b,name:c,description:l||void 0});p(o.ImageId??null),d(""),i("")}catch{}}return e.jsx(O,{onOpenChange:m,open:s,children:e.jsxs(V,{children:[e.jsxs(E,{children:[e.jsx(B,{children:g?"Image Created":"Create Image (AMI)"}),e.jsx(R,{children:g?`Image "${g}" was created successfully.`:`Create an AMI from instance "${b}".`})]}),!g&&e.jsxs(e.Fragment,{children:[e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"imageName",children:"Name"})}),e.jsx(pe,{id:"imageName",onChange:o=>d(o.target.value),placeholder:"my-image",value:c})]}),e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"imageDescription",children:"Description"})}),e.jsx(he,{id:"imageDescription",onChange:o=>i(o.target.value),placeholder:"Optional description",rows:2,value:l})]})]}),e.jsxs($,{children:[e.jsx(H,{children:g?"Close":"Cancel"}),!g&&e.jsx(G,{disabled:n.isPending||!c.trim(),onClick:u,children:n.isPending?"Creating…":"Create Image"})]})]})})}const Pe=["pending","stopping","shutting-down","terminated"];function Ae(b){const s=K.c(35),{instanceId:t,state:n}=b,c=re(),d=le(),l=oe(),i=ce();if(Pe.includes(n||"")&&n!=="terminated"){let h;return s[0]!==n?(h=e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:e.jsxs("p",{className:"text-center text-muted-foreground text-sm",children:["Instance is ",n,". Actions will be available once the operation completes."]})}),s[0]=n,s[1]=h):h=s[1],h}if(n==="terminated"){let h;return s[2]===Symbol.for("react.memo_cache_sentinel")?(h=e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:e.jsx("p",{className:"text-center text-muted-foreground text-sm",children:"This instance has been terminated and cannot be managed."})}),s[2]=h):h=s[2],h}let p;s[3]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx("h2",{className:"mb-4 font-semibold",children:"Instance Actions"}),s[3]=p):p=s[3];let m;s[4]!==c.error?(m=c.error&&e.jsx(T,{error:c.error,msg:"Failed to start instance"}),s[4]=c.error,s[5]=m):m=s[5];let u;s[6]!==d.error?(u=d.error&&e.jsx(T,{error:d.error,msg:"Failed to stop instance"}),s[6]=d.error,s[7]=u):u=s[7];let o;s[8]!==l.error?(o=l.error&&e.jsx(T,{error:l.error,msg:"Failed to reboot instance"}),s[8]=l.error,s[9]=o):o=s[9];let j;s[10]!==i.error?(j=i.error&&e.jsx(T,{error:i.error,msg:"Failed to terminate instance"}),s[10]=i.error,s[11]=j):j=s[11];let I;s[12]!==t||s[13]!==c||s[14]!==n?(I=n==="stopped"&&e.jsxs(C,{disabled:c.isPending,onClick:()=>c.mutate(t),size:"sm",variant:"default",children:[e.jsx(be,{className:"size-4"}),c.isPending?"Starting":"Start"]}),s[12]=t,s[13]=c,s[14]=n,s[15]=I):I=s[15];let y;s[16]!==t||s[17]!==l||s[18]!==n||s[19]!==d?(y=n==="running"&&e.jsxs(e.Fragment,{children:[e.jsxs(C,{disabled:d.isPending,onClick:()=>d.mutate(t),size:"sm",variant:"outline",children:[e.jsx(ye,{className:"size-4"}),d.isPending?"Stopping":"Stop"]}),e.jsxs(C,{disabled:l.isPending,onClick:()=>l.mutate(t),size:"sm",variant:"outline",children:[e.jsx(Se,{className:"size-4"}),l.isPending?"Rebooting":"Reboot"]})]}),s[16]=t,s[17]=l,s[18]=n,s[19]=d,s[20]=y):y=s[20];let v;s[21]!==t||s[22]!==n||s[23]!==i?(v=(n==="stopped"||n==="running")&&e.jsxs(C,{disabled:i.isPending,onClick:()=>i.mutate(t),size:"sm",variant:"destructive",children:[e.jsx(xe,{className:"size-4"}),i.isPending?"Terminating":"Terminate"]}),s[21]=t,s[22]=n,s[23]=i,s[24]=v):v=s[24];let f;s[25]!==I||s[26]!==y||s[27]!==v?(f=e.jsxs("div",{className:"flex flex-wrap gap-2",children:[I,y,v]}),s[25]=I,s[26]=y,s[27]=v,s[28]=f):f=s[28];let N;return s[29]!==m||s[30]!==u||s[31]!==o||s[32]!==j||s[33]!==f?(N=e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[p,m,u,o,j,f]}),s[29]=m,s[30]=u,s[31]=o,s[32]=j,s[33]=f,s[34]=N):N=s[34],N}function Ke(){const{id:b}=Z.useParams(),{data:s}=P(Y(b)),t=s.Reservations?.[0]?.Instances?.[0],{data:n}=P(J(t?.ImageId)),c=n?.Images?.[0],{data:d}=P(U),l=de(),i=me(),[g,p]=S.useState(!1),[m,u]=S.useState(""),[o,j]=S.useState(!1),[I,y]=S.useState(null),[v,f]=S.useState(!1),N=[...new Set(d.InstanceTypes?.flatMap(a=>a.InstanceType?[a.InstanceType]:[]))].toSorted();if(!t?.InstanceId)return e.jsxs(e.Fragment,{children:[e.jsx(z,{to:"/ec2/describe-instances",children:"Back to instances"}),e.jsx("p",{className:"text-muted-foreground",children:"Instance not found."})]});const h=_(t.LaunchTime),M=t.State?.Name==="running",F=t.State?.Name==="stopped";async function L(){try{await l.mutateAsync({instanceId:b,instanceType:m}),p(!1),u("")}catch{}}async function Q(){try{const a=await i.mutateAsync(b),q=a.Output?atob(a.Output):"(no output)";y(q),j(!0)}catch{}}return e.jsxs(e.Fragment,{children:[e.jsx(z,{to:"/ec2/describe-instances",children:"Back to instances"}),l.error&&e.jsx(T,{error:l.error,msg:"Failed to modify instance"}),i.error&&e.jsx(T,{error:i.error,msg:"Failed to get console output"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(W,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[M&&e.jsxs(C,{disabled:i.isPending,onClick:Q,size:"sm",variant:"outline",children:[e.jsx(De,{className:"size-4"}),i.isPending?"Fetching…":"View Console"]}),(M||F)&&e.jsxs(C,{onClick:()=>f(!0),size:"sm",variant:"outline",children:[e.jsx(je,{className:"size-4"}),"Create Image"]}),F&&e.jsxs(C,{onClick:()=>{u(t.InstanceType??""),p(!0)},size:"sm",variant:"outline",children:[e.jsx(Ne,{className:"size-4"}),"Modify Instance"]}),e.jsx(X,{state:t.State?.Name})]}),subtitle:"EC2 Instance Details",title:t.InstanceId}),e.jsx(Ae,{instanceId:t.InstanceId,state:t.State?.Name}),o&&I!==null&&e.jsxs(x,{children:[e.jsx(x.Header,{children:e.jsxs("div",{className:"flex items-center justify-between",children:["Console Output",e.jsx(C,{onClick:()=>{j(!1),y(null)},size:"sm",variant:"ghost",children:"Hide"})]})}),e.jsx("div",{className:"p-4",children:e.jsx("pre",{className:"max-h-96 overflow-y-auto whitespace-pre-wrap rounded bg-muted p-3 font-mono text-xs",children:I})})]}),e.jsxs(x,{children:[e.jsx(x.Header,{children:"Instance Information"}),e.jsxs(x.Content,{children:[e.jsx(r,{label:"Instance ID",value:t.InstanceId}),e.jsx(r,{label:"Instance Type",value:t.InstanceType}),e.jsx(r,{label:"Instance State",value:t.State?.Name}),e.jsx(r,{label:"State Code",value:t.State?.Code?.toString()}),e.jsx(r,{label:"Launch Time",value:h}),e.jsx(r,{label:"Availability Zone",value:t.Placement?.AvailabilityZone})]})]}),(t.PrivateIpAddress||t.PublicIpAddress||t.VpcId||t.SubnetId||t.SecurityGroups&&t.SecurityGroups.length>0)&&e.jsxs(x,{children:[e.jsx(x.Header,{children:"Network & Security"}),e.jsxs(x.Content,{children:[e.jsx(r,{label:"Private IP Address",value:t.PrivateIpAddress}),e.jsx(r,{label:"Public IP Address",value:t.PublicIpAddress}),e.jsx(r,{label:"Private DNS",value:t.PrivateDnsName}),e.jsx(r,{label:"Public DNS",value:t.PublicDnsName}),e.jsx(r,{label:"VPC ID",value:t.VpcId?e.jsx(k,{className:"text-primary hover:underline",params:{id:t.VpcId},to:"/ec2/describe-vpcs/$id",children:t.VpcId}):void 0}),e.jsx(r,{label:"Subnet ID",value:t.SubnetId?e.jsx(k,{className:"text-primary hover:underline",params:{id:t.SubnetId},to:"/ec2/describe-subnets/$id",children:t.SubnetId}):void 0}),e.jsx(r,{label:"Key Name",value:t.KeyName}),e.jsx(r,{label:"Security Groups",value:t.SecurityGroups?.map(a=>a.GroupName).join(", ")})]})]}),t.BlockDeviceMappings&&t.BlockDeviceMappings.length>0&&e.jsxs(x,{children:[e.jsx(x.Header,{children:"Block Device Mappings"}),t.BlockDeviceMappings.map(a=>e.jsxs(x.Content,{children:[e.jsx(r,{label:"Device Name",value:a.DeviceName}),e.jsx(r,{label:"Volume ID",value:a.Ebs?.VolumeId?e.jsx(k,{className:"text-primary hover:underline",params:{id:a.Ebs.VolumeId},to:"/ec2/describe-volumes/$id",children:a.Ebs.VolumeId}):void 0}),e.jsx(r,{label:"Status",value:a.Ebs?.Status}),e.jsx(r,{label:"Attach Time",value:_(a.Ebs?.AttachTime)}),e.jsx(r,{label:"Delete on Termination",value:a.Ebs?.DeleteOnTermination?"Yes":"No"})]},a.DeviceName))]}),c&&e.jsx(ue,{image:c})]}),e.jsx(O,{onOpenChange:a=>{a||(p(!1),u(""))},open:g,children:e.jsxs(V,{children:[e.jsxs(E,{children:[e.jsx(B,{children:"Modify Instance"}),e.jsxs(R,{children:['Select a new instance type for "',t.InstanceId,'". The instance must be stopped to modify its attributes.']})]}),e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"instanceType",children:"Instance Type"})}),e.jsxs(ee,{onValueChange:a=>u(a??""),value:m,children:[e.jsx(se,{className:"w-full",id:"instanceType",children:e.jsx(te,{})}),e.jsx(ae,{children:N.map(a=>e.jsx(ne,{value:a,children:a},a))})]})]}),e.jsxs($,{children:[e.jsx(H,{children:"Cancel"}),e.jsx(G,{disabled:l.isPending||!m||m===t.InstanceType,onClick:L,children:l.isPending?"Saving…":"Save Changes"})]})]})}),e.jsx(ke,{instanceId:t.InstanceId,onOpenChange:f,open:v})]})}export{Ke as component}; +import{J as D,r as S,j as e,c as K,B as C,d1 as Z,d2 as J,d3 as Y,q as U,z as F,L as k}from"./index.js";import{u as P}from"./useSuspenseQuery.js";import{B as _}from"./back-link.js";import{D as x,a as r}from"./detail-row.js";import{E as T}from"./error-banner.js";import{P as W}from"./page-heading.js";import{S as X}from"./state-badge.js";import{g as O,f as V,b as E,a as B,c as R,d as $,e as H,h as G}from"./alert-dialog.js";import{b as A,a as w}from"./field.js";import{S as ee,a as se,b as te,c as ae,d as ne}from"./select.js";import{p as ie,q as re,r as le,s as oe,t as ce,v as de,w as me}from"./ec2.js";import{A as ue}from"./ami-details.js";import{I as pe}from"./input.js";import{T as he}from"./textarea.js";import{T as xe}from"./trash-2.js";import"./check.js";const ge=[["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"}]],je=D("image-plus",ge);const Ie=[["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"}]],ye=D("pause",Ie);const fe=[["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"}]],be=D("play",fe);const ve=[["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"}]],Se=D("rotate-cw",ve);const Ce=[["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"}]],Ne=D("settings-2",Ce);const Te=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],De=D("terminal",Te);function ke({instanceId:b,open:s,onOpenChange:t}){const n=ie(),[c,d]=S.useState(""),[l,i]=S.useState(""),[g,p]=S.useState(null);function m(o){o||(d(""),i(""),p(null)),t(o)}async function u(){try{const o=await n.mutateAsync({instanceId:b,name:c,description:l||void 0});p(o.ImageId??null),d(""),i("")}catch{}}return e.jsx(O,{onOpenChange:m,open:s,children:e.jsxs(V,{children:[e.jsxs(E,{children:[e.jsx(B,{children:g?"Image Created":"Create Image (AMI)"}),e.jsx(R,{children:g?`Image "${g}" was created successfully.`:`Create an AMI from instance "${b}".`})]}),!g&&e.jsxs(e.Fragment,{children:[e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"imageName",children:"Name"})}),e.jsx(pe,{id:"imageName",onChange:o=>d(o.target.value),placeholder:"my-image",value:c})]}),e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"imageDescription",children:"Description"})}),e.jsx(he,{id:"imageDescription",onChange:o=>i(o.target.value),placeholder:"Optional description",rows:2,value:l})]})]}),e.jsxs($,{children:[e.jsx(H,{children:g?"Close":"Cancel"}),!g&&e.jsx(G,{disabled:n.isPending||!c.trim(),onClick:u,children:n.isPending?"Creating…":"Create Image"})]})]})})}const Pe=["pending","stopping","shutting-down","terminated"];function Ae(b){const s=K.c(35),{instanceId:t,state:n}=b,c=re(),d=le(),l=oe(),i=ce();if(Pe.includes(n||"")&&n!=="terminated"){let h;return s[0]!==n?(h=e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:e.jsxs("p",{className:"text-center text-muted-foreground text-sm",children:["Instance is ",n,". Actions will be available once the operation completes."]})}),s[0]=n,s[1]=h):h=s[1],h}if(n==="terminated"){let h;return s[2]===Symbol.for("react.memo_cache_sentinel")?(h=e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:e.jsx("p",{className:"text-center text-muted-foreground text-sm",children:"This instance has been terminated and cannot be managed."})}),s[2]=h):h=s[2],h}let p;s[3]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx("h2",{className:"mb-4 font-semibold",children:"Instance Actions"}),s[3]=p):p=s[3];let m;s[4]!==c.error?(m=c.error&&e.jsx(T,{error:c.error,msg:"Failed to start instance"}),s[4]=c.error,s[5]=m):m=s[5];let u;s[6]!==d.error?(u=d.error&&e.jsx(T,{error:d.error,msg:"Failed to stop instance"}),s[6]=d.error,s[7]=u):u=s[7];let o;s[8]!==l.error?(o=l.error&&e.jsx(T,{error:l.error,msg:"Failed to reboot instance"}),s[8]=l.error,s[9]=o):o=s[9];let j;s[10]!==i.error?(j=i.error&&e.jsx(T,{error:i.error,msg:"Failed to terminate instance"}),s[10]=i.error,s[11]=j):j=s[11];let I;s[12]!==t||s[13]!==c||s[14]!==n?(I=n==="stopped"&&e.jsxs(C,{disabled:c.isPending,onClick:()=>c.mutate(t),size:"sm",variant:"default",children:[e.jsx(be,{className:"size-4"}),c.isPending?"Starting":"Start"]}),s[12]=t,s[13]=c,s[14]=n,s[15]=I):I=s[15];let y;s[16]!==t||s[17]!==l||s[18]!==n||s[19]!==d?(y=n==="running"&&e.jsxs(e.Fragment,{children:[e.jsxs(C,{disabled:d.isPending,onClick:()=>d.mutate(t),size:"sm",variant:"outline",children:[e.jsx(ye,{className:"size-4"}),d.isPending?"Stopping":"Stop"]}),e.jsxs(C,{disabled:l.isPending,onClick:()=>l.mutate(t),size:"sm",variant:"outline",children:[e.jsx(Se,{className:"size-4"}),l.isPending?"Rebooting":"Reboot"]})]}),s[16]=t,s[17]=l,s[18]=n,s[19]=d,s[20]=y):y=s[20];let v;s[21]!==t||s[22]!==n||s[23]!==i?(v=(n==="stopped"||n==="running")&&e.jsxs(C,{disabled:i.isPending,onClick:()=>i.mutate(t),size:"sm",variant:"destructive",children:[e.jsx(xe,{className:"size-4"}),i.isPending?"Terminating":"Terminate"]}),s[21]=t,s[22]=n,s[23]=i,s[24]=v):v=s[24];let f;s[25]!==I||s[26]!==y||s[27]!==v?(f=e.jsxs("div",{className:"flex flex-wrap gap-2",children:[I,y,v]}),s[25]=I,s[26]=y,s[27]=v,s[28]=f):f=s[28];let N;return s[29]!==m||s[30]!==u||s[31]!==o||s[32]!==j||s[33]!==f?(N=e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[p,m,u,o,j,f]}),s[29]=m,s[30]=u,s[31]=o,s[32]=j,s[33]=f,s[34]=N):N=s[34],N}function Ke(){const{id:b}=Z.useParams(),{data:s}=P(J(b)),t=s.Reservations?.[0]?.Instances?.[0],{data:n}=P(Y(t?.ImageId)),c=n?.Images?.[0],{data:d}=P(U),l=de(),i=me(),[g,p]=S.useState(!1),[m,u]=S.useState(""),[o,j]=S.useState(!1),[I,y]=S.useState(null),[v,f]=S.useState(!1),N=[...new Set(d.InstanceTypes?.flatMap(a=>a.InstanceType?[a.InstanceType]:[]))].toSorted();if(!t?.InstanceId)return e.jsxs(e.Fragment,{children:[e.jsx(_,{to:"/ec2/describe-instances",children:"Back to instances"}),e.jsx("p",{className:"text-muted-foreground",children:"Instance not found."})]});const h=F(t.LaunchTime),M=t.State?.Name==="running",z=t.State?.Name==="stopped";async function L(){try{await l.mutateAsync({instanceId:b,instanceType:m}),p(!1),u("")}catch{}}async function Q(){try{const a=await i.mutateAsync(b),q=a.Output?atob(a.Output):"(no output)";y(q),j(!0)}catch{}}return e.jsxs(e.Fragment,{children:[e.jsx(_,{to:"/ec2/describe-instances",children:"Back to instances"}),l.error&&e.jsx(T,{error:l.error,msg:"Failed to modify instance"}),i.error&&e.jsx(T,{error:i.error,msg:"Failed to get console output"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(W,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[M&&e.jsxs(C,{disabled:i.isPending,onClick:Q,size:"sm",variant:"outline",children:[e.jsx(De,{className:"size-4"}),i.isPending?"Fetching…":"View Console"]}),(M||z)&&e.jsxs(C,{onClick:()=>f(!0),size:"sm",variant:"outline",children:[e.jsx(je,{className:"size-4"}),"Create Image"]}),z&&e.jsxs(C,{onClick:()=>{u(t.InstanceType??""),p(!0)},size:"sm",variant:"outline",children:[e.jsx(Ne,{className:"size-4"}),"Modify Instance"]}),e.jsx(X,{state:t.State?.Name})]}),subtitle:"EC2 Instance Details",title:t.InstanceId}),e.jsx(Ae,{instanceId:t.InstanceId,state:t.State?.Name}),o&&I!==null&&e.jsxs(x,{children:[e.jsx(x.Header,{children:e.jsxs("div",{className:"flex items-center justify-between",children:["Console Output",e.jsx(C,{onClick:()=>{j(!1),y(null)},size:"sm",variant:"ghost",children:"Hide"})]})}),e.jsx("div",{className:"p-4",children:e.jsx("pre",{className:"max-h-96 overflow-y-auto whitespace-pre-wrap rounded bg-muted p-3 font-mono text-xs",children:I})})]}),e.jsxs(x,{children:[e.jsx(x.Header,{children:"Instance Information"}),e.jsxs(x.Content,{children:[e.jsx(r,{label:"Instance ID",value:t.InstanceId}),e.jsx(r,{label:"Instance Type",value:t.InstanceType}),e.jsx(r,{label:"Instance State",value:t.State?.Name}),e.jsx(r,{label:"State Code",value:t.State?.Code?.toString()}),e.jsx(r,{label:"Launch Time",value:h}),e.jsx(r,{label:"Availability Zone",value:t.Placement?.AvailabilityZone})]})]}),(t.PrivateIpAddress||t.PublicIpAddress||t.VpcId||t.SubnetId||t.SecurityGroups&&t.SecurityGroups.length>0)&&e.jsxs(x,{children:[e.jsx(x.Header,{children:"Network & Security"}),e.jsxs(x.Content,{children:[e.jsx(r,{label:"Private IP Address",value:t.PrivateIpAddress}),e.jsx(r,{label:"Public IP Address",value:t.PublicIpAddress}),e.jsx(r,{label:"Private DNS",value:t.PrivateDnsName}),e.jsx(r,{label:"Public DNS",value:t.PublicDnsName}),e.jsx(r,{label:"VPC ID",value:t.VpcId?e.jsx(k,{className:"text-primary hover:underline",params:{id:t.VpcId},to:"/ec2/describe-vpcs/$id",children:t.VpcId}):void 0}),e.jsx(r,{label:"Subnet ID",value:t.SubnetId?e.jsx(k,{className:"text-primary hover:underline",params:{id:t.SubnetId},to:"/ec2/describe-subnets/$id",children:t.SubnetId}):void 0}),e.jsx(r,{label:"Key Name",value:t.KeyName}),e.jsx(r,{label:"Security Groups",value:t.SecurityGroups?.map(a=>a.GroupName).join(", ")})]})]}),t.BlockDeviceMappings&&t.BlockDeviceMappings.length>0&&e.jsxs(x,{children:[e.jsx(x.Header,{children:"Block Device Mappings"}),t.BlockDeviceMappings.map(a=>e.jsxs(x.Content,{children:[e.jsx(r,{label:"Device Name",value:a.DeviceName}),e.jsx(r,{label:"Volume ID",value:a.Ebs?.VolumeId?e.jsx(k,{className:"text-primary hover:underline",params:{id:a.Ebs.VolumeId},to:"/ec2/describe-volumes/$id",children:a.Ebs.VolumeId}):void 0}),e.jsx(r,{label:"Status",value:a.Ebs?.Status}),e.jsx(r,{label:"Attach Time",value:F(a.Ebs?.AttachTime)}),e.jsx(r,{label:"Delete on Termination",value:a.Ebs?.DeleteOnTermination?"Yes":"No"})]},a.DeviceName))]}),c&&e.jsx(ue,{image:c})]}),e.jsx(O,{onOpenChange:a=>{a||(p(!1),u(""))},open:g,children:e.jsxs(V,{children:[e.jsxs(E,{children:[e.jsx(B,{children:"Modify Instance"}),e.jsxs(R,{children:['Select a new instance type for "',t.InstanceId,'". The instance must be stopped to modify its attributes.']})]}),e.jsxs(A,{children:[e.jsx(w,{children:e.jsx("label",{htmlFor:"instanceType",children:"Instance Type"})}),e.jsxs(ee,{onValueChange:a=>u(a??""),value:m,children:[e.jsx(se,{className:"w-full",id:"instanceType",children:e.jsx(te,{})}),e.jsx(ae,{children:N.map(a=>e.jsx(ne,{value:a,children:a},a))})]})]}),e.jsxs($,{children:[e.jsx(H,{children:"Cancel"}),e.jsx(G,{disabled:l.isPending||!m||m===t.InstanceType,onClick:L,children:l.isPending?"Saving…":"Save Changes"})]})]})}),e.jsx(ke,{instanceId:t.InstanceId,onOpenChange:f,open:v})]})}export{Ke as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id8.js b/hive/services/hiveui/frontend/dist/assets/_id8.js index 06501acd2..1cadb2b47 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id8.js +++ b/hive/services/hiveui/frontend/dist/assets/_id8.js @@ -1 +1 @@ -import{c as f,cz as u,j as t,aH as p}from"./index.js";import{u as x}from"./useSuspenseQuery.js";import{B as d}from"./back-link.js";import{P as I}from"./page-heading.js";import{S as j}from"./state-badge.js";import{A as h}from"./ami-details.js";import"./detail-row.js";function _(){const e=f.c(14),{id:n}=u.useParams();let o;e[0]!==n?(o=p(n),e[0]=n,e[1]=o):o=e[1];const{data:g}=x(o),s=g?.Images?.[0];if(!s?.ImageId){let l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsxs(t.Fragment,{children:[t.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),t.jsx("p",{className:"text-muted-foreground",children:"Image not found."})]}),e[2]=l):l=e[2],l}let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),e[3]=r):r=e[3];let a;e[4]!==s.State?(a=t.jsx(j,{state:s.State}),e[4]=s.State,e[5]=a):a=e[5];let i;e[6]!==s.ImageId||e[7]!==a?(i=t.jsx(I,{actions:a,subtitle:"EC2 Image Details",title:s.ImageId}),e[6]=s.ImageId,e[7]=a,e[8]=i):i=e[8];let m;e[9]!==s?(m=t.jsx(h,{image:s,showExtendedDetails:!0}),e[9]=s,e[10]=m):m=e[10];let c;return e[11]!==i||e[12]!==m?(c=t.jsxs(t.Fragment,{children:[r,t.jsxs("div",{className:"space-y-6",children:[i,m]})]}),e[11]=i,e[12]=m,e[13]=c):c=e[13],c}export{_ as component}; +import{c as f,d4 as u,j as t,d3 as p}from"./index.js";import{u as x}from"./useSuspenseQuery.js";import{B as d}from"./back-link.js";import{P as I}from"./page-heading.js";import{S as j}from"./state-badge.js";import{A as h}from"./ami-details.js";import"./detail-row.js";function _(){const e=f.c(14),{id:n}=u.useParams();let o;e[0]!==n?(o=p(n),e[0]=n,e[1]=o):o=e[1];const{data:g}=x(o),s=g?.Images?.[0];if(!s?.ImageId){let l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsxs(t.Fragment,{children:[t.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),t.jsx("p",{className:"text-muted-foreground",children:"Image not found."})]}),e[2]=l):l=e[2],l}let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),e[3]=r):r=e[3];let a;e[4]!==s.State?(a=t.jsx(j,{state:s.State}),e[4]=s.State,e[5]=a):a=e[5];let i;e[6]!==s.ImageId||e[7]!==a?(i=t.jsx(I,{actions:a,subtitle:"EC2 Image Details",title:s.ImageId}),e[6]=s.ImageId,e[7]=a,e[8]=i):i=e[8];let m;e[9]!==s?(m=t.jsx(h,{image:s,showExtendedDetails:!0}),e[9]=s,e[10]=m):m=e[10];let c;return e[11]!==i||e[12]!==m?(c=t.jsxs(t.Fragment,{children:[r,t.jsxs("div",{className:"space-y-6",children:[i,m]})]}),e[11]=i,e[12]=m,e[13]=c):c=e[13],c}export{_ as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_policyArn.js b/hive/services/hiveui/frontend/dist/assets/_policyArn.js new file mode 100644 index 000000000..7ebd57e81 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_policyArn.js @@ -0,0 +1 @@ +import{c as h,j as e,av as j,u as f,aw as P,r as g,ax as v,B as A,z as N}from"./index.js";import{u}from"./useSuspenseQuery.js";import{B as p}from"./back-link.js";import{D as n,a as l}from"./detail-row.js";import{E as b}from"./error-banner.js";import{P as C}from"./page-heading.js";import{g as w,f as I,b as B,a as R,c as k,d as E,e as O,h as S}from"./alert-dialog.js";import{h as T}from"./iam.js";import{T as V}from"./trash-2.js";function F(r){const t=h.c(4),{document:a}=r;let i;try{let s;t[0]!==a?(s=JSON.stringify(JSON.parse(a),null,2),t[0]=a,t[1]=s):s=t[1],i=s}catch{i=a}let o;return t[2]!==i?(o=e.jsx("pre",{className:"overflow-auto rounded-md border bg-muted p-4 font-mono text-sm",children:i}),t[2]=i,t[3]=o):o=t[3],o}function G(){const{policyArn:r}=j.useParams(),t=decodeURIComponent(r),a=f(),{data:i}=u(P(t)),o=i.Policy,s=T(),[x,c]=g.useState(!1),y=o?.DefaultVersionId??"v1",{data:d}=u(v(t,y)),m=d?.PolicyVersion?.Document?decodeURIComponent(d.PolicyVersion.Document):null,D=async()=>{try{await s.mutateAsync(t),a({to:"/iam/list-policies"})}finally{c(!1)}};return o?e.jsxs(e.Fragment,{children:[e.jsx(p,{to:"/iam/list-policies",children:"Back to policies"}),s.error&&e.jsx(b,{error:s.error,msg:"Failed to delete policy"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(C,{actions:e.jsxs(A,{onClick:()=>c(!0),size:"sm",variant:"destructive",children:[e.jsx(V,{className:"size-4"}),"Delete"]}),subtitle:"IAM Policy Details",title:o.PolicyName??""}),e.jsxs(n,{children:[e.jsx(n.Header,{children:"Policy Information"}),e.jsxs(n.Content,{children:[e.jsx(l,{label:"Policy Name",value:o.PolicyName}),e.jsx(l,{label:"Policy ID",value:o.PolicyId}),e.jsx(l,{label:"ARN",value:o.Arn}),e.jsx(l,{label:"Path",value:o.Path}),e.jsx(l,{label:"Description",value:o.Description||"-"}),e.jsx(l,{label:"Created",value:N(o.CreateDate)})]})]}),m&&e.jsxs(n,{children:[e.jsx(n.Header,{children:"Policy Document"}),e.jsx("div",{className:"p-4",children:e.jsx(F,{document:m})})]})]}),e.jsx(w,{onOpenChange:c,open:x,children:e.jsxs(I,{children:[e.jsxs(B,{children:[e.jsx(R,{children:"Delete Policy"}),e.jsxs(k,{children:['Are you sure you want to delete the policy "',o.PolicyName,'"? This action cannot be undone.']})]}),e.jsxs(E,{children:[e.jsx(O,{children:"Cancel"}),e.jsx(S,{disabled:s.isPending,onClick:D,children:s.isPending?"Deleting...":"Delete"})]})]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(p,{to:"/iam/list-policies",children:"Back to policies"}),e.jsx("p",{className:"text-muted-foreground",children:"Policy not found."})]})}export{G as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_userName.js b/hive/services/hiveui/frontend/dist/assets/_userName.js new file mode 100644 index 000000000..817883cc6 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_userName.js @@ -0,0 +1,2 @@ +import{c as X,r as g,j as e,B as v,ar as Z,u as _,as as ee,at as se,au as te,A as ae,z as F}from"./index.js";import{u as U}from"./useSuspenseQuery.js";import{B as z}from"./back-link.js";import{D as x,a as w}from"./detail-row.js";import{E as S}from"./error-banner.js";import{P as ce}from"./page-heading.js";import{S as le}from"./state-badge.js";import{b as B,A as ne,a as k,c as E,d as R,e as O,g as H,f as Q,h as re}from"./alert-dialog.js";import{b as ie,c as oe,d as de,e as me,f as ue,g as xe}from"./iam.js";import{T as he}from"./triangle-alert.js";import{C as ye}from"./check.js";import{T as Ae}from"./trash-2.js";const je=2e3;function fe(a){const s=X.c(28),{onClose:C,accessKeyId:h,secretAccessKey:y}=a,[b,A]=g.useState(!1),l=g.useRef(null);let j,D;s[0]===Symbol.for("react.memo_cache_sentinel")?(j=()=>()=>{l.current&&clearTimeout(l.current)},D=[],s[0]=j,s[1]=D):(j=s[0],D=s[1]),g.useEffect(j,D);let o;s[2]!==h||s[3]!==y?(o=async()=>{const I=`Access Key ID: ${h} +Secret Access Key: ${y}`;await navigator.clipboard.writeText(I),A(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>A(!1),je)},s[2]=h,s[3]=y,s[4]=o):o=s[4];const K=o;let P;s[5]===Symbol.for("react.memo_cache_sentinel")?(P=e.jsxs(B,{children:[e.jsx(ne,{children:e.jsx(he,{className:"text-destructive"})}),e.jsx(k,{children:"Save Your Access Key"}),e.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."})]}),s[5]=P):P=s[5];let f;s[6]===Symbol.for("react.memo_cache_sentinel")?(f=e.jsx("span",{className:"text-muted-foreground",children:"Access Key ID: "}),s[6]=f):f=s[6];let r;s[7]!==h?(r=e.jsxs("div",{children:[f,h]}),s[7]=h,s[8]=r):r=s[8];let N;s[9]===Symbol.for("react.memo_cache_sentinel")?(N=e.jsx("span",{className:"text-muted-foreground",children:"Secret Access Key: "}),s[9]=N):N=s[9];let i;s[10]!==y?(i=e.jsxs("div",{children:[N,y]}),s[10]=y,s[11]=i):i=s[11];let d;s[12]!==r||s[13]!==i?(d=e.jsxs("div",{className:"space-y-2 rounded-md border p-4 font-mono text-sm",children:[r,i]}),s[12]=r,s[13]=i,s[14]=d):d=s[14];let m;s[15]!==b?(m=b?e.jsxs(e.Fragment,{children:[e.jsx(ye,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",s[15]=b,s[16]=m):m=s[16];let n;s[17]!==K||s[18]!==m?(n=e.jsx(v,{className:"w-full",onClick:K,type:"button",variant:"outline",children:m}),s[17]=K,s[18]=m,s[19]=n):n=s[19];let p;s[20]!==n||s[21]!==d?(p=e.jsxs("div",{className:"space-y-3",children:[d,n]}),s[20]=n,s[21]=d,s[22]=p):p=s[22];let u;s[23]!==C?(u=e.jsx(R,{children:e.jsx(O,{onClick:C,children:"Close and Continue"})}),s[23]=C,s[24]=u):u=s[24];let c;return s[25]!==p||s[26]!==u?(c=e.jsx(H,{open:!0,children:e.jsxs(Q,{className:"max-w-2xl",children:[P,p,u]})}),s[25]=p,s[26]=u,s[27]=c):c=s[27],c}function Ue(){const{userName:a}=Z.useParams(),s=_(),{data:C}=U(ee(a)),{data:h}=U(se(a)),{data:y}=U(te(a)),{data:b}=U(ae),A=ie(),l=oe(),j=de(),D=me(),o=ue(),K=xe(),[P,f]=g.useState(!1),[r,N]=g.useState(null),[i,d]=g.useState(!1),[m,n]=g.useState(null),[p,u]=g.useState(null),c=C.User,I=h.AccessKeyMetadata||[],T=y.AttachedPolicies||[],Y=b.Policies||[],$=new Set(T.map(t=>t.PolicyArn)),M=Y.filter(t=>t.Arn&&!$.has(t.Arn)),L=async()=>{try{await A.mutateAsync(a),s({to:"/iam/list-users"})}finally{f(!1)}},q=async()=>{const t=await l.mutateAsync(a);t.AccessKey&&N({accessKeyId:t.AccessKey.AccessKeyId??"",secretAccessKey:t.AccessKey.SecretAccessKey??""})},G=async t=>{if(t.AccessKeyId){n(t.AccessKeyId);try{await D.mutateAsync({userName:a,accessKeyId:t.AccessKeyId,status:t.Status==="Active"?"Inactive":"Active"})}finally{n(null)}}},J=async t=>{n(t);try{await j.mutateAsync({userName:a,accessKeyId:t})}finally{n(null)}},V=async t=>{await o.mutateAsync({userName:a,policyArn:t}),d(!1)},W=async t=>{u(t);try{await K.mutateAsync({userName:a,policyArn:t})}finally{u(null)}};return c?e.jsxs(e.Fragment,{children:[e.jsx(z,{to:"/iam/list-users",children:"Back to users"}),A.error&&e.jsx(S,{error:A.error,msg:"Failed to delete user"}),l.error&&e.jsx(S,{error:l.error,msg:"Failed to create access key"}),j.error&&e.jsx(S,{error:j.error,msg:"Failed to delete access key"}),o.error&&e.jsx(S,{error:o.error,msg:"Failed to attach policy"}),K.error&&e.jsx(S,{error:K.error,msg:"Failed to detach policy"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(ce,{actions:e.jsxs(v,{onClick:()=>f(!0),size:"sm",variant:"destructive",children:[e.jsx(Ae,{className:"size-4"}),"Delete"]}),subtitle:"IAM User Details",title:c.UserName??""}),e.jsxs(x,{children:[e.jsx(x.Header,{children:"User Information"}),e.jsxs(x.Content,{children:[e.jsx(w,{label:"User Name",value:c.UserName}),e.jsx(w,{label:"User ID",value:c.UserId}),e.jsx(w,{label:"ARN",value:c.Arn}),e.jsx(w,{label:"Path",value:c.Path}),e.jsx(w,{label:"Created",value:F(c.CreateDate)})]})]}),e.jsxs(x,{children:[e.jsx(x.Header,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{children:"Access Keys"}),e.jsx(v,{disabled:l.isPending,onClick:q,size:"sm",children:l.isPending?"Creating...":"Create Access Key"})]})}),e.jsx(x.Content,{children:I.length>0?e.jsx("div",{className:"col-span-2 space-y-3",children:I.map(t=>e.jsxs("div",{className:"flex items-center justify-between rounded-md border p-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-mono text-sm",children:t.AccessKeyId}),e.jsxs("p",{className:"text-muted-foreground text-xs",children:["Created ",F(t.CreateDate)]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(le,{state:t.Status}),e.jsx(v,{disabled:m===t.AccessKeyId,onClick:()=>G(t),size:"sm",variant:"outline",children:t.Status==="Active"?"Deactivate":"Activate"}),e.jsx(v,{disabled:m===t.AccessKeyId,onClick:()=>t.AccessKeyId&&J(t.AccessKeyId),size:"sm",variant:"destructive",children:"Delete"})]})]},t.AccessKeyId))}):e.jsx("p",{className:"col-span-2 text-muted-foreground text-sm",children:"No access keys."})})]}),e.jsxs(x,{children:[e.jsx(x.Header,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{children:"Attached Policies"}),e.jsx(v,{onClick:()=>d(!i),size:"sm",children:"Attach Policy"})]})}),e.jsxs(x.Content,{children:[i&&M.length>0&&e.jsxs("div",{className:"col-span-2 space-y-2 rounded-md border p-3",children:[e.jsx("p",{className:"font-medium text-sm",children:"Select a policy to attach:"}),e.jsx("div",{className:"space-y-1",children:M.map(t=>e.jsxs("button",{className:"flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent",disabled:o.isPending,onClick:()=>t.Arn&&V(t.Arn),type:"button",children:[e.jsx("span",{children:t.PolicyName}),e.jsx("span",{className:"text-muted-foreground text-xs",children:t.Arn})]},t.Arn))})]}),i&&M.length===0&&e.jsx("p",{className:"col-span-2 text-muted-foreground text-sm",children:"No policies available to attach."}),T.length>0?e.jsx("div",{className:"col-span-2 space-y-3",children:T.map(t=>e.jsxs("div",{className:"flex items-center justify-between rounded-md border p-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium text-sm",children:t.PolicyName}),e.jsx("p",{className:"text-muted-foreground text-xs",children:t.PolicyArn})]}),e.jsx(v,{disabled:p===t.PolicyArn,onClick:()=>t.PolicyArn&&W(t.PolicyArn),size:"sm",variant:"outline",children:"Detach"})]},t.PolicyArn))}):e.jsx("p",{className:"col-span-2 text-muted-foreground text-sm",children:"No attached policies."})]})]})]}),e.jsx(H,{onOpenChange:f,open:P,children:e.jsxs(Q,{children:[e.jsxs(B,{children:[e.jsx(k,{children:"Delete User"}),e.jsxs(E,{children:['Are you sure you want to delete the user "',a,'"? This action cannot be undone. You must detach all policies and delete all access keys first.']})]}),e.jsxs(R,{children:[e.jsx(O,{children:"Cancel"}),e.jsx(re,{disabled:A.isPending,onClick:L,children:A.isPending?"Deleting...":"Delete"})]})]})}),r&&e.jsx(fe,{accessKeyId:r.accessKeyId,onClose:()=>N(null),secretAccessKey:r.secretAccessKey})]}):e.jsxs(e.Fragment,{children:[e.jsx(z,{to:"/iam/list-users",children:"Back to users"}),e.jsx("p",{className:"text-muted-foreground",children:"User not found."})]})}export{Ue as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/alert-dialog.js b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js index e990a27a0..6c21a10b9 100644 --- a/hive/services/hiveui/frontend/dist/assets/alert-dialog.js +++ b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{bT as z,bg as j,bU as C,bV as N,r as h,j as i,bW as v,c as d,a as g,bX as A,bY as P,bZ as $,b_ as y,B as x,b$ as w,c0 as R}from"./index.js";function k(s){const{children:e,open:t,defaultOpen:a=!1,onOpenChange:l,onOpenChangeComplete:o,actionsRef:c,handle:n,triggerId:r,defaultTriggerId:f=null}=s,p=z(),m=!!p,u=j(()=>n?.store??new C({open:a,openProp:t,activeTriggerId:f,triggerIdProp:r,modal:!0,disablePointerDismissal:!0,nested:m,role:"alertdialog"})).current;u.useControlledProp("openProp",t),u.useControlledProp("triggerIdProp",r),u.useSyncedValue("nested",m),u.useContextCallback("onOpenChange",l),u.useContextCallback("onOpenChangeComplete",o);const D=u.useState("payload");N({store:u,actionsRef:c,parentContext:p?.store.context});const b=h.useMemo(()=>({store:u}),[u]);return i.jsx(v.Provider,{value:b,children:typeof e=="function"?e({payload:D}):e})}function T(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(k,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function I(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(w,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function _(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(R,{className:l,"data-slot":"alert-dialog-overlay",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function B(s){const e=d.c(11);let t,a,l;e[0]!==s?({className:t,size:l,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l):(t=e[1],a=e[2],l=e[3]);const o=l===void 0?"default":l;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(_,{}),e[4]=c):c=e[4];let n;e[5]!==t?(n=g("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content 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 outline-none ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-closed:animate-out data-open:animate-in data-[size=default]:sm:max-w-sm",t),e[5]=t,e[6]=n):n=e[6];let r;return e[7]!==a||e[8]!==o||e[9]!==n?(r=i.jsxs(I,{children:[c,i.jsx(A,{className:n,"data-size":o,"data-slot":"alert-dialog-content",...a})]}),e[7]=a,e[8]=o,e[9]=n,e[10]=r):r=e[10],r}function S(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("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]",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-header",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function E(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("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",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-footer",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function V(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("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",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-media",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function M(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("font-medium text-sm sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(P,{className:l,"data-slot":"alert-dialog-title",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function W(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("text-balance text-muted-foreground text-xs/relaxed md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx($,{className:l,"data-slot":"alert-dialog-description",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function F(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g(t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(x,{className:l,"data-slot":"alert-dialog-action",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function H(s){const e=d.c(14);let t,a,l,o;e[0]!==s?({className:t,variant:l,size:o,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l,e[4]=o):(t=e[1],a=e[2],l=e[3],o=e[4]);const c=l===void 0?"outline":l,n=o===void 0?"default":o;let r;e[5]!==t?(r=g(t),e[5]=t,e[6]=r):r=e[6];let f;e[7]!==n||e[8]!==c?(f=i.jsx(x,{size:n,variant:c}),e[7]=n,e[8]=c,e[9]=f):f=e[9];let p;return e[10]!==a||e[11]!==r||e[12]!==f?(p=i.jsx(y,{className:r,"data-slot":"alert-dialog-cancel",render:f,...a}),e[10]=a,e[11]=r,e[12]=f,e[13]=p):p=e[13],p}export{V as A,M as a,S as b,W as c,E as d,H as e,B as f,T as g,F as h}; +import{cN as j,a$ as C,cO as N,cP as h,r as v,j as i,cQ as b,c as d,a as g,cR as A,cS as P,cT as $,cU as y,B as x,cV as w,cW as R}from"./index.js";function k(s){const{children:e,open:t,defaultOpen:a=!1,onOpenChange:l,onOpenChangeComplete:o,actionsRef:c,handle:n,triggerId:r,defaultTriggerId:f=null}=s,p=j(),m=!!p,u=C(()=>n?.store??new N({open:a,openProp:t,activeTriggerId:f,triggerIdProp:r,modal:!0,disablePointerDismissal:!0,nested:m,role:"alertdialog"})).current;u.useControlledProp("openProp",t),u.useControlledProp("triggerIdProp",r),u.useSyncedValue("nested",m),u.useContextCallback("onOpenChange",l),u.useContextCallback("onOpenChangeComplete",o);const D=u.useState("payload");h({store:u,actionsRef:c,parentContext:p?.store.context});const z=v.useMemo(()=>({store:u}),[u]);return i.jsx(b.Provider,{value:z,children:typeof e=="function"?e({payload:D}):e})}function _(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(k,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function I(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=i.jsx(w,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function O(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(R,{className:l,"data-slot":"alert-dialog-overlay",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function S(s){const e=d.c(11);let t,a,l;e[0]!==s?({className:t,size:l,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l):(t=e[1],a=e[2],l=e[3]);const o=l===void 0?"default":l;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(O,{}),e[4]=c):c=e[4];let n;e[5]!==t?(n=g("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content 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 outline-none ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-closed:animate-out data-open:animate-in data-[size=default]:sm:max-w-sm",t),e[5]=t,e[6]=n):n=e[6];let r;return e[7]!==a||e[8]!==o||e[9]!==n?(r=i.jsxs(I,{children:[c,i.jsx(A,{className:n,"data-size":o,"data-slot":"alert-dialog-content",...a})]}),e[7]=a,e[8]=o,e[9]=n,e[10]=r):r=e[10],r}function B(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("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]",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-header",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function E(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("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",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-footer",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function V(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("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",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx("div",{className:l,"data-slot":"alert-dialog-media",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function M(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("font-medium text-sm sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(P,{className:l,"data-slot":"alert-dialog-title",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function W(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g("text-balance text-muted-foreground text-xs/relaxed md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx($,{className:l,"data-slot":"alert-dialog-description",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function F(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=g(t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsx(x,{className:l,"data-slot":"alert-dialog-action",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function H(s){const e=d.c(14);let t,a,l,o;e[0]!==s?({className:t,variant:l,size:o,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l,e[4]=o):(t=e[1],a=e[2],l=e[3],o=e[4]);const c=l===void 0?"outline":l,n=o===void 0?"default":o;let r;e[5]!==t?(r=g(t),e[5]=t,e[6]=r):r=e[6];let f;e[7]!==n||e[8]!==c?(f=i.jsx(x,{size:n,variant:c}),e[7]=n,e[8]=c,e[9]=f):f=e[9];let p;return e[10]!==a||e[11]!==r||e[12]!==f?(p=i.jsx(y,{className:r,"data-slot":"alert-dialog-cancel",render:f,...a}),e[10]=a,e[11]=r,e[12]=f,e[13]=p):p=e[13],p}export{V as A,M as a,B as b,W as c,E as d,H as e,S as f,_ as g,F as h}; diff --git a/hive/services/hiveui/frontend/dist/assets/ami-details.js b/hive/services/hiveui/frontend/dist/assets/ami-details.js index 2c39afa1e..0169f3a1e 100644 --- a/hive/services/hiveui/frontend/dist/assets/ami-details.js +++ b/hive/services/hiveui/frontend/dist/assets/ami-details.js @@ -1 +1 @@ -import{c as g,ay as k,j as t,L as M}from"./index.js";import{D as T,a}from"./detail-row.js";function C(s){const e=g.c(58),{image:l,showExtendedDetails:P}=s,i=P===void 0?!1:P;let E;e[0]!==l.CreationDate?(E=k(l.CreationDate),e[0]=l.CreationDate,e[1]=E):E=e[1];const R=E,S=i?"AMI Information":"AMI Details";let o;e[2]!==S?(o=t.jsx(T.Header,{children:S}),e[2]=S,e[3]=o):o=e[3];let r;e[4]!==l.ImageId||e[5]!==i?(r=l.ImageId&&!i?t.jsx(M,{className:"text-primary hover:underline",params:{id:l.ImageId},to:"/ec2/describe-images/$id",children:l.ImageId}):l.ImageId,e[4]=l.ImageId,e[5]=i,e[6]=r):r=e[6];let c;e[7]!==r?(c=t.jsx(a,{label:"AMI ID",value:r}),e[7]=r,e[8]=c):c=e[8];let n;e[9]!==l.Name?(n=t.jsx(a,{label:"AMI Name",value:l.Name}),e[9]=l.Name,e[10]=n):n=e[10];let u;e[11]!==l.Description?(u=t.jsx(a,{label:"Description",value:l.Description}),e[11]=l.Description,e[12]=u):u=e[12];let m;e[13]!==l.Architecture?(m=t.jsx(a,{label:"Architecture",value:l.Architecture}),e[13]=l.Architecture,e[14]=m):m=e[14];let v;e[15]!==l.VirtualizationType?(v=t.jsx(a,{label:"Virtualization Type",value:l.VirtualizationType}),e[15]=l.VirtualizationType,e[16]=v):v=e[16];const A=l.Platform||"Linux";let D;e[17]!==A?(D=t.jsx(a,{label:"Platform",value:A}),e[17]=A,e[18]=D):D=e[18];let d;e[19]!==l.PlatformDetails?(d=t.jsx(a,{label:"Platform Details",value:l.PlatformDetails}),e[19]=l.PlatformDetails,e[20]=d):d=e[20];let x;e[21]!==l.ImageType?(x=t.jsx(a,{label:"Image Type",value:l.ImageType}),e[21]=l.ImageType,e[22]=x):x=e[22];let b;e[23]!==l.RootDeviceType?(b=t.jsx(a,{label:"Root Device Type",value:l.RootDeviceType}),e[23]=l.RootDeviceType,e[24]=b):b=e[24];let j;e[25]!==l.RootDeviceName?(j=t.jsx(a,{label:"Root Device Name",value:l.RootDeviceName}),e[25]=l.RootDeviceName,e[26]=j):j=e[26];let f;e[27]!==l.OwnerId?(f=t.jsx(a,{label:"Owner",value:l.OwnerId}),e[27]=l.OwnerId,e[28]=f):f=e[28];let I;e[29]!==l.State?(I=t.jsx(a,{label:"State",value:l.State}),e[29]=l.State,e[30]=I):I=e[30];let h;e[31]!==R||e[32]!==l.Public||e[33]!==i?(h=i&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Creation Date",value:R}),t.jsx(a,{label:"Public",value:l.Public?"Yes":"No"})]}),e[31]=R,e[32]=l.Public,e[33]=i,e[34]=h):h=e[34];let p;e[35]!==v||e[36]!==D||e[37]!==d||e[38]!==x||e[39]!==b||e[40]!==j||e[41]!==f||e[42]!==I||e[43]!==h||e[44]!==c||e[45]!==n||e[46]!==u||e[47]!==m?(p=t.jsxs(T.Content,{children:[c,n,u,m,v,D,d,x,b,j,f,I,h]}),e[35]=v,e[36]=D,e[37]=d,e[38]=x,e[39]=b,e[40]=j,e[41]=f,e[42]=I,e[43]=h,e[44]=c,e[45]=n,e[46]=u,e[47]=m,e[48]=p):p=e[48];let N;e[49]!==p||e[50]!==o?(N=t.jsxs(T,{children:[o,p]}),e[49]=p,e[50]=o,e[51]=N):N=e[51];let y;e[52]!==l.BlockDeviceMappings||e[53]!==i?(y=i&&l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&l.BlockDeviceMappings.map(w),e[52]=l.BlockDeviceMappings,e[53]=i,e[54]=y):y=e[54];let V;return e[55]!==N||e[56]!==y?(V=t.jsxs(t.Fragment,{children:[N,y]}),e[55]=N,e[56]=y,e[57]=V):V=e[57],V}function w(s){return t.jsxs(T,{children:[t.jsxs(T.Header,{children:["Block Device: ",s.DeviceName]}),t.jsxs(T.Content,{children:[t.jsx(a,{label:"Device Name",value:s.DeviceName}),s.Ebs&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Volume Size",value:s.Ebs.VolumeSize?`${s.Ebs.VolumeSize} GB`:void 0}),t.jsx(a,{label:"Volume Type",value:s.Ebs.VolumeType}),t.jsx(a,{label:"Delete On Termination",value:s.Ebs.DeleteOnTermination?"Yes":"No"}),t.jsx(a,{label:"Encrypted",value:s.Ebs.Encrypted?"Yes":"No"}),s.Ebs.SnapshotId&&t.jsx(a,{label:"Snapshot ID",value:t.jsx(M,{className:"text-primary hover:underline",params:{id:s.Ebs.SnapshotId},to:"/ec2/describe-snapshots/$id",children:s.Ebs.SnapshotId})})]}),s.VirtualName&&t.jsx(a,{label:"Virtual Name",value:s.VirtualName})]})]},s.DeviceName)}export{C as A}; +import{c as g,z,j as t,L as M}from"./index.js";import{D as T,a}from"./detail-row.js";function C(s){const e=g.c(58),{image:l,showExtendedDetails:P}=s,i=P===void 0?!1:P;let E;e[0]!==l.CreationDate?(E=z(l.CreationDate),e[0]=l.CreationDate,e[1]=E):E=e[1];const R=E,S=i?"AMI Information":"AMI Details";let o;e[2]!==S?(o=t.jsx(T.Header,{children:S}),e[2]=S,e[3]=o):o=e[3];let r;e[4]!==l.ImageId||e[5]!==i?(r=l.ImageId&&!i?t.jsx(M,{className:"text-primary hover:underline",params:{id:l.ImageId},to:"/ec2/describe-images/$id",children:l.ImageId}):l.ImageId,e[4]=l.ImageId,e[5]=i,e[6]=r):r=e[6];let c;e[7]!==r?(c=t.jsx(a,{label:"AMI ID",value:r}),e[7]=r,e[8]=c):c=e[8];let n;e[9]!==l.Name?(n=t.jsx(a,{label:"AMI Name",value:l.Name}),e[9]=l.Name,e[10]=n):n=e[10];let u;e[11]!==l.Description?(u=t.jsx(a,{label:"Description",value:l.Description}),e[11]=l.Description,e[12]=u):u=e[12];let m;e[13]!==l.Architecture?(m=t.jsx(a,{label:"Architecture",value:l.Architecture}),e[13]=l.Architecture,e[14]=m):m=e[14];let v;e[15]!==l.VirtualizationType?(v=t.jsx(a,{label:"Virtualization Type",value:l.VirtualizationType}),e[15]=l.VirtualizationType,e[16]=v):v=e[16];const A=l.Platform||"Linux";let D;e[17]!==A?(D=t.jsx(a,{label:"Platform",value:A}),e[17]=A,e[18]=D):D=e[18];let d;e[19]!==l.PlatformDetails?(d=t.jsx(a,{label:"Platform Details",value:l.PlatformDetails}),e[19]=l.PlatformDetails,e[20]=d):d=e[20];let x;e[21]!==l.ImageType?(x=t.jsx(a,{label:"Image Type",value:l.ImageType}),e[21]=l.ImageType,e[22]=x):x=e[22];let b;e[23]!==l.RootDeviceType?(b=t.jsx(a,{label:"Root Device Type",value:l.RootDeviceType}),e[23]=l.RootDeviceType,e[24]=b):b=e[24];let j;e[25]!==l.RootDeviceName?(j=t.jsx(a,{label:"Root Device Name",value:l.RootDeviceName}),e[25]=l.RootDeviceName,e[26]=j):j=e[26];let f;e[27]!==l.OwnerId?(f=t.jsx(a,{label:"Owner",value:l.OwnerId}),e[27]=l.OwnerId,e[28]=f):f=e[28];let I;e[29]!==l.State?(I=t.jsx(a,{label:"State",value:l.State}),e[29]=l.State,e[30]=I):I=e[30];let h;e[31]!==R||e[32]!==l.Public||e[33]!==i?(h=i&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Creation Date",value:R}),t.jsx(a,{label:"Public",value:l.Public?"Yes":"No"})]}),e[31]=R,e[32]=l.Public,e[33]=i,e[34]=h):h=e[34];let p;e[35]!==v||e[36]!==D||e[37]!==d||e[38]!==x||e[39]!==b||e[40]!==j||e[41]!==f||e[42]!==I||e[43]!==h||e[44]!==c||e[45]!==n||e[46]!==u||e[47]!==m?(p=t.jsxs(T.Content,{children:[c,n,u,m,v,D,d,x,b,j,f,I,h]}),e[35]=v,e[36]=D,e[37]=d,e[38]=x,e[39]=b,e[40]=j,e[41]=f,e[42]=I,e[43]=h,e[44]=c,e[45]=n,e[46]=u,e[47]=m,e[48]=p):p=e[48];let N;e[49]!==p||e[50]!==o?(N=t.jsxs(T,{children:[o,p]}),e[49]=p,e[50]=o,e[51]=N):N=e[51];let y;e[52]!==l.BlockDeviceMappings||e[53]!==i?(y=i&&l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&l.BlockDeviceMappings.map(k),e[52]=l.BlockDeviceMappings,e[53]=i,e[54]=y):y=e[54];let V;return e[55]!==N||e[56]!==y?(V=t.jsxs(t.Fragment,{children:[N,y]}),e[55]=N,e[56]=y,e[57]=V):V=e[57],V}function k(s){return t.jsxs(T,{children:[t.jsxs(T.Header,{children:["Block Device: ",s.DeviceName]}),t.jsxs(T.Content,{children:[t.jsx(a,{label:"Device Name",value:s.DeviceName}),s.Ebs&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Volume Size",value:s.Ebs.VolumeSize?`${s.Ebs.VolumeSize} GB`:void 0}),t.jsx(a,{label:"Volume Type",value:s.Ebs.VolumeType}),t.jsx(a,{label:"Delete On Termination",value:s.Ebs.DeleteOnTermination?"Yes":"No"}),t.jsx(a,{label:"Encrypted",value:s.Ebs.Encrypted?"Yes":"No"}),s.Ebs.SnapshotId&&t.jsx(a,{label:"Snapshot ID",value:t.jsx(M,{className:"text-primary hover:underline",params:{id:s.Ebs.SnapshotId},to:"/ec2/describe-snapshots/$id",children:s.Ebs.SnapshotId})})]}),s.VirtualName&&t.jsx(a,{label:"Virtual Name",value:s.VirtualName})]})]},s.DeviceName)}export{C as A}; diff --git a/hive/services/hiveui/frontend/dist/assets/back-link.js b/hive/services/hiveui/frontend/dist/assets/back-link.js index 221bb2065..2ff9d1a09 100644 --- a/hive/services/hiveui/frontend/dist/assets/back-link.js +++ b/hive/services/hiveui/frontend/dist/assets/back-link.js @@ -1 +1 @@ -import{k as o,c as r,j as l,L as a}from"./index.js";const m=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],x=o("arrow-left",m);function p(i){const e=r.c(7);let s,t;e[0]!==i?({children:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(x,{className:"size-4"}),e[3]=n):n=e[3];let c;return e[4]!==s||e[5]!==t?(c=l.jsxs(a,{className:"mb-6 inline-flex items-center gap-2 text-sm",...t,children:[n,s]}),e[4]=s,e[5]=t,e[6]=c):c=e[6],c}export{p as B}; +import{J as o,c as r,j as l,L as a}from"./index.js";const m=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],x=o("arrow-left",m);function p(i){const e=r.c(7);let s,t;e[0]!==i?({children:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(x,{className:"size-4"}),e[3]=n):n=e[3];let c;return e[4]!==s||e[5]!==t?(c=l.jsxs(a,{className:"mb-6 inline-flex items-center gap-2 text-sm",...t,children:[n,s]}),e[4]=s,e[5]=t,e[6]=c):c=e[6],c}export{p as B}; diff --git a/hive/services/hiveui/frontend/dist/assets/check.js b/hive/services/hiveui/frontend/dist/assets/check.js index 96372f83c..910593fe0 100644 --- a/hive/services/hiveui/frontend/dist/assets/check.js +++ b/hive/services/hiveui/frontend/dist/assets/check.js @@ -1 +1 @@ -import{k as c}from"./index.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C}; +import{J as c}from"./index.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-bucket.js b/hive/services/hiveui/frontend/dist/assets/create-bucket.js index 7c3f0cea9..9a870fc42 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-bucket.js +++ b/hive/services/hiveui/frontend/dist/assets/create-bucket.js @@ -1 +1 @@ -import{o as M,f as $,c as I,u as R,j as t,B as E}from"./index.js";import{a as A,u as H}from"./zod.js";import{B as L}from"./back-link.js";import{E as O}from"./error-banner.js";import{P as T}from"./page-heading.js";import{F as q,a as D,b as G}from"./field.js";import{I as J}from"./input.js";import{u as K}from"./s3.js";const Q=M({bucketName:$().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")});function se(){const e=I.c(40),r=R(),s=K();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={resolver:A(Q)},e[0]=p):p=e[0];const{handleSubmit:y,register:N,formState:P}=H(p),{errors:x,isSubmitting:S}=P;let h;e[1]!==s||e[2]!==r?(h=async z=>{await s.mutateAsync(z),r({to:"/s3/ls"})},e[1]=s,e[2]=r,e[3]=h):h=e[3];const F=h;let k,j;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(L,{to:"/s3/ls",children:"Back to buckets"}),j=t.jsx(T,{title:"Create Bucket"}),e[4]=k,e[5]=j):(k=e[4],j=e[5]);let a;e[6]!==s.error?(a=s.error&&t.jsx(O,{error:s.error,msg:"Failed to create bucket"}),e[6]=s.error,e[7]=a):a=e[7];let i;e[8]!==y||e[9]!==F?(i=y(F),e[8]=y,e[9]=F,e[10]=i):i=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(D,{children:t.jsx("label",{htmlFor:"bucketName",children:"Bucket Name"})}),e[11]=g):g=e[11];const v=!!x.bucketName;let l;e[12]!==N?(l=N("bucketName"),e[12]=N,e[13]=l):l=e[13];let n;e[14]!==v||e[15]!==l?(n=t.jsx(J,{"aria-invalid":v,id:"bucketName",placeholder:"my-bucket",type:"text",...l}),e[14]=v,e[15]=l,e[16]=n):n=e[16];let o;e[17]!==x.bucketName?(o=t.jsx(q,{errors:[x.bucketName]}),e[17]=x.bucketName,e[18]=o):o=e[18];let c;e[19]!==n||e[20]!==o?(c=t.jsxs(G,{children:[g,n,o]}),e[19]=n,e[20]=o,e[21]=c):c=e[21];const C=S||s.isPending;let m;e[22]!==r?(m=()=>r({to:"/s3/ls"}),e[22]=r,e[23]=m):m=e[23];let u;e[24]!==C||e[25]!==m?(u=t.jsx(E,{disabled:C,onClick:m,type:"button",variant:"outline",children:"Cancel"}),e[24]=C,e[25]=m,e[26]=u):u=e[26];const w=S||s.isPending,_=S||s.isPending?"Creating…":"Create Bucket";let d;e[27]!==w||e[28]!==_?(d=t.jsx(E,{disabled:w,type:"submit",children:_}),e[27]=w,e[28]=_,e[29]=d):d=e[29];let f;e[30]!==u||e[31]!==d?(f=t.jsxs("div",{className:"flex gap-2",children:[u,d]}),e[30]=u,e[31]=d,e[32]=f):f=e[32];let b;e[33]!==c||e[34]!==f||e[35]!==i?(b=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[c,f]}),e[33]=c,e[34]=f,e[35]=i,e[36]=b):b=e[36];let B;return e[37]!==b||e[38]!==a?(B=t.jsxs(t.Fragment,{children:[k,j,a,b]}),e[37]=b,e[38]=a,e[39]=B):B=e[39],B}export{se as component}; +import{o as M,i as $,c as I,u as R,j as t,B as E}from"./index.js";import{a as A,u as H}from"./zod.js";import{B as L}from"./back-link.js";import{E as O}from"./error-banner.js";import{P as T}from"./page-heading.js";import{F as q,a as D,b as G}from"./field.js";import{I as J}from"./input.js";import{u as K}from"./s3.js";const Q=M({bucketName:$().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")});function se(){const e=I.c(40),r=R(),s=K();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={resolver:A(Q)},e[0]=p):p=e[0];const{handleSubmit:y,register:N,formState:P}=H(p),{errors:x,isSubmitting:S}=P;let h;e[1]!==s||e[2]!==r?(h=async z=>{await s.mutateAsync(z),r({to:"/s3/ls"})},e[1]=s,e[2]=r,e[3]=h):h=e[3];const F=h;let k,j;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(L,{to:"/s3/ls",children:"Back to buckets"}),j=t.jsx(T,{title:"Create Bucket"}),e[4]=k,e[5]=j):(k=e[4],j=e[5]);let a;e[6]!==s.error?(a=s.error&&t.jsx(O,{error:s.error,msg:"Failed to create bucket"}),e[6]=s.error,e[7]=a):a=e[7];let i;e[8]!==y||e[9]!==F?(i=y(F),e[8]=y,e[9]=F,e[10]=i):i=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(D,{children:t.jsx("label",{htmlFor:"bucketName",children:"Bucket Name"})}),e[11]=g):g=e[11];const v=!!x.bucketName;let l;e[12]!==N?(l=N("bucketName"),e[12]=N,e[13]=l):l=e[13];let n;e[14]!==v||e[15]!==l?(n=t.jsx(J,{"aria-invalid":v,id:"bucketName",placeholder:"my-bucket",type:"text",...l}),e[14]=v,e[15]=l,e[16]=n):n=e[16];let o;e[17]!==x.bucketName?(o=t.jsx(q,{errors:[x.bucketName]}),e[17]=x.bucketName,e[18]=o):o=e[18];let c;e[19]!==n||e[20]!==o?(c=t.jsxs(G,{children:[g,n,o]}),e[19]=n,e[20]=o,e[21]=c):c=e[21];const C=S||s.isPending;let m;e[22]!==r?(m=()=>r({to:"/s3/ls"}),e[22]=r,e[23]=m):m=e[23];let u;e[24]!==C||e[25]!==m?(u=t.jsx(E,{disabled:C,onClick:m,type:"button",variant:"outline",children:"Cancel"}),e[24]=C,e[25]=m,e[26]=u):u=e[26];const w=S||s.isPending,_=S||s.isPending?"Creating…":"Create Bucket";let d;e[27]!==w||e[28]!==_?(d=t.jsx(E,{disabled:w,type:"submit",children:_}),e[27]=w,e[28]=_,e[29]=d):d=e[29];let f;e[30]!==u||e[31]!==d?(f=t.jsxs("div",{className:"flex gap-2",children:[u,d]}),e[30]=u,e[31]=d,e[32]=f):f=e[32];let b;e[33]!==c||e[34]!==f||e[35]!==i?(b=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[c,f]}),e[33]=c,e[34]=f,e[35]=i,e[36]=b):b=e[36];let B;return e[37]!==b||e[38]!==a?(B=t.jsxs(t.Fragment,{children:[k,j,a,b]}),e[37]=b,e[38]=a,e[39]=B):B=e[39],B}export{se as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-key-pair.js b/hive/services/hiveui/frontend/dist/assets/create-key-pair.js index e14248068..55da0d459 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-key-pair.js +++ b/hive/services/hiveui/frontend/dist/assets/create-key-pair.js @@ -1 +1 @@ -import{k as U,c as R,u as L,r as O,j as a,B as E}from"./index.js";import{a as I,u as z}from"./zod.js";import{B as Y}from"./back-link.js";import{E as $}from"./error-banner.js";import{P as H}from"./page-heading.js";import{F as q,a as G,b as J}from"./field.js";import{I as Q}from"./input.js";import{e as V}from"./ec2.js";import{e as W}from"./ec22.js";import{A as X,a as Z,b as ee,c as te,d as ae,e as se,f as le,g as ie}from"./alert-dialog.js";import{T as re}from"./textarea.js";import{C as oe}from"./check.js";import{D as ne}from"./download.js";const ce=[["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"}]],me=U("triangle-alert",ce),de=2e3;function fe(e){const t=R.c(36),{open:s,keyName:l,keyMaterial:d}=e,b=L(),[P,S]=O.useState(!1);let _;t[0]!==d?(_=async()=>{await navigator.clipboard.writeText(d),S(!0),setTimeout(()=>S(!1),de)},t[0]=d,t[1]=_):_=t[1];const g=_;let N;t[2]!==d||t[3]!==l?(N=()=>{const K=new Blob([d],{type:"text/plain"}),k=URL.createObjectURL(K),u=document.createElement("a");u.href=k,u.download=`${l}.pem`,u.click(),URL.revokeObjectURL(k)},t[2]=d,t[3]=l,t[4]=N):N=t[4];const C=N;let v;t[5]!==b?(v=()=>{b({to:"/ec2/describe-key-pairs"})},t[5]=b,t[6]=v):v=t[6];const w=v;let j,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(X,{children:a.jsx(me,{className:"text-destructive"})}),f=a.jsx(Z,{children:"Save Your Private Key"}),t[7]=j,t[8]=f):(j=t[7],f=t[8]);let i;t[9]!==l?(i=a.jsxs(ee,{children:[j,f,a.jsxs(te,{children:["This is your only chance to save the private key file for"," ",a.jsx("strong",{children:l}),". Please download or copy it now. You won't be able to retrieve it again."]})]}),t[9]=l,t[10]=i):i=t[10];let p;t[11]!==d?(p=a.jsx(re,{className:"font-mono text-xs",readOnly:!0,rows:12,value:d}),t[11]=d,t[12]=p):p=t[12];let x;t[13]!==P?(x=P?a.jsxs(a.Fragment,{children:[a.jsx(oe,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",t[13]=P,t[14]=x):x=t[14];let r;t[15]!==g||t[16]!==x?(r=a.jsx(E,{className:"flex-1",onClick:g,type:"button",variant:"outline",children:x}),t[15]=g,t[16]=x,t[17]=r):r=t[17];let y;t[18]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(ne,{className:"mr-2 size-4"}),t[18]=y):y=t[18];let o;t[19]!==C?(o=a.jsxs(E,{className:"flex-1",onClick:C,type:"button",variant:"outline",children:[y,"Download .pem File"]}),t[19]=C,t[20]=o):o=t[20];let n;t[21]!==o||t[22]!==r?(n=a.jsxs("div",{className:"flex gap-2",children:[r,o]}),t[21]=o,t[22]=r,t[23]=n):n=t[23];let h;t[24]!==n||t[25]!==p?(h=a.jsxs("div",{className:"space-y-3",children:[p,n]}),t[24]=n,t[25]=p,t[26]=h):h=t[26];let c;t[27]!==w?(c=a.jsx(ae,{children:a.jsx(se,{onClick:w,children:"Close and Continue"})}),t[27]=w,t[28]=c):c=t[28];let m;t[29]!==h||t[30]!==c||t[31]!==i?(m=a.jsxs(le,{className:"max-w-2xl",children:[i,h,c]}),t[29]=h,t[30]=c,t[31]=i,t[32]=m):m=t[32];let D;return t[33]!==s||t[34]!==m?(D=a.jsx(ie,{open:s,children:m}),t[33]=s,t[34]=m,t[35]=D):D=t[35],D}function De(){const e=R.c(42),t=L(),s=V(),[l,d]=O.useState(null);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={resolver:I(W)},e[0]=b):b=e[0];const{handleSubmit:P,register:S,formState:_}=z(b),{errors:g,isSubmitting:N}=_;let C;e[1]!==s?(C=async T=>{const B=await s.mutateAsync(T);B.KeyMaterial&&d({keyName:T.keyName,material:B.KeyMaterial})},e[1]=s,e[2]=C):C=e[2];const v=C;let w,j;e[3]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Y,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),j=a.jsx(H,{title:"Create Key Pair"}),e[3]=w,e[4]=j):(w=e[3],j=e[4]);let f;e[5]!==s.error?(f=s.error&&a.jsx($,{error:s.error,msg:"Failed to create key pair"}),e[5]=s.error,e[6]=f):f=e[6];let i;e[7]!==P||e[8]!==v?(i=P(v),e[7]=P,e[8]=v,e[9]=i):i=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(G,{children:a.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),e[10]=p):p=e[10];const x=!!g.keyName;let r;e[11]!==S?(r=S("keyName"),e[11]=S,e[12]=r):r=e[12];let y;e[13]!==x||e[14]!==r?(y=a.jsx(Q,{"aria-invalid":x,id:"keyName",placeholder:"my-key-pair…",...r}),e[13]=x,e[14]=r,e[15]=y):y=e[15];let o;e[16]!==g.keyName?(o=a.jsx(q,{errors:[g.keyName]}),e[16]=g.keyName,e[17]=o):o=e[17];let n;e[18]!==y||e[19]!==o?(n=a.jsxs(J,{children:[p,y,o]}),e[18]=y,e[19]=o,e[20]=n):n=e[20];const h=N||s.isPending;let c;e[21]!==t?(c=()=>t({to:"/ec2/describe-key-pairs"}),e[21]=t,e[22]=c):c=e[22];let m;e[23]!==h||e[24]!==c?(m=a.jsx(E,{disabled:h,onClick:c,type:"button",variant:"outline",children:"Cancel"}),e[23]=h,e[24]=c,e[25]=m):m=e[25];const D=N||s.isPending,K=N||s.isPending?"Creating…":"Create Key Pair";let k;e[26]!==D||e[27]!==K?(k=a.jsx(E,{disabled:D,type:"submit",children:K}),e[26]=D,e[27]=K,e[28]=k):k=e[28];let u;e[29]!==m||e[30]!==k?(u=a.jsxs("div",{className:"flex gap-2",children:[m,k]}),e[29]=m,e[30]=k,e[31]=u):u=e[31];let A;e[32]!==n||e[33]!==u||e[34]!==i?(A=a.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[n,u]}),e[32]=n,e[33]=u,e[34]=i,e[35]=A):A=e[35];let F;e[36]!==l?(F=l&&a.jsx(fe,{keyMaterial:l.material,keyName:l.keyName,open:!!l}),e[36]=l,e[37]=F):F=e[37];let M;return e[38]!==A||e[39]!==F||e[40]!==f?(M=a.jsxs(a.Fragment,{children:[w,j,f,A,F]}),e[38]=A,e[39]=F,e[40]=f,e[41]=M):M=e[41],M}export{De as component}; +import{c as R,u as L,r as O,j as s,B as T}from"./index.js";import{a as U,u as I}from"./zod.js";import{B as Y}from"./back-link.js";import{E as $}from"./error-banner.js";import{P as z}from"./page-heading.js";import{F as H,a as q,b as G}from"./field.js";import{I as J}from"./input.js";import{e as Q}from"./ec2.js";import{e as V}from"./ec22.js";import{A as W,a as X,b as Z,c as ee,d as te,e as se,f as ae,g as le}from"./alert-dialog.js";import{T as ie}from"./textarea.js";import{T as re}from"./triangle-alert.js";import{C as oe}from"./check.js";import{D as ne}from"./download.js";const ce=2e3;function me(e){const t=R.c(36),{open:a,keyName:l,keyMaterial:d}=e,b=L(),[S,w]=O.useState(!1);let A;t[0]!==d?(A=async()=>{await navigator.clipboard.writeText(d),w(!0),setTimeout(()=>w(!1),ce)},t[0]=d,t[1]=A):A=t[1];const g=A;let N;t[2]!==d||t[3]!==l?(N=()=>{const K=new Blob([d],{type:"text/plain"}),k=URL.createObjectURL(K),u=document.createElement("a");u.href=k,u.download=`${l}.pem`,u.click(),URL.revokeObjectURL(k)},t[2]=d,t[3]=l,t[4]=N):N=t[4];const C=N;let v;t[5]!==b?(v=()=>{b({to:"/ec2/describe-key-pairs"})},t[5]=b,t[6]=v):v=t[6];const D=v;let j,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(W,{children:s.jsx(re,{className:"text-destructive"})}),f=s.jsx(X,{children:"Save Your Private Key"}),t[7]=j,t[8]=f):(j=t[7],f=t[8]);let i;t[9]!==l?(i=s.jsxs(Z,{children:[j,f,s.jsxs(ee,{children:["This is your only chance to save the private key file for"," ",s.jsx("strong",{children:l}),". Please download or copy it now. You won't be able to retrieve it again."]})]}),t[9]=l,t[10]=i):i=t[10];let y;t[11]!==d?(y=s.jsx(ie,{className:"font-mono text-xs",readOnly:!0,rows:12,value:d}),t[11]=d,t[12]=y):y=t[12];let x;t[13]!==S?(x=S?s.jsxs(s.Fragment,{children:[s.jsx(oe,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",t[13]=S,t[14]=x):x=t[14];let r;t[15]!==g||t[16]!==x?(r=s.jsx(T,{className:"flex-1",onClick:g,type:"button",variant:"outline",children:x}),t[15]=g,t[16]=x,t[17]=r):r=t[17];let p;t[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ne,{className:"mr-2 size-4"}),t[18]=p):p=t[18];let o;t[19]!==C?(o=s.jsxs(T,{className:"flex-1",onClick:C,type:"button",variant:"outline",children:[p,"Download .pem File"]}),t[19]=C,t[20]=o):o=t[20];let n;t[21]!==o||t[22]!==r?(n=s.jsxs("div",{className:"flex gap-2",children:[r,o]}),t[21]=o,t[22]=r,t[23]=n):n=t[23];let h;t[24]!==n||t[25]!==y?(h=s.jsxs("div",{className:"space-y-3",children:[y,n]}),t[24]=n,t[25]=y,t[26]=h):h=t[26];let c;t[27]!==D?(c=s.jsx(te,{children:s.jsx(se,{onClick:D,children:"Close and Continue"})}),t[27]=D,t[28]=c):c=t[28];let m;t[29]!==h||t[30]!==c||t[31]!==i?(m=s.jsxs(ae,{className:"max-w-2xl",children:[i,h,c]}),t[29]=h,t[30]=c,t[31]=i,t[32]=m):m=t[32];let P;return t[33]!==a||t[34]!==m?(P=s.jsx(le,{open:a,children:m}),t[33]=a,t[34]=m,t[35]=P):P=t[35],P}function De(){const e=R.c(42),t=L(),a=Q(),[l,d]=O.useState(null);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={resolver:U(V)},e[0]=b):b=e[0];const{handleSubmit:S,register:w,formState:A}=I(b),{errors:g,isSubmitting:N}=A;let C;e[1]!==a?(C=async E=>{const B=await a.mutateAsync(E);B.KeyMaterial&&d({keyName:E.keyName,material:B.KeyMaterial})},e[1]=a,e[2]=C):C=e[2];const v=C;let D,j;e[3]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Y,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),j=s.jsx(z,{title:"Create Key Pair"}),e[3]=D,e[4]=j):(D=e[3],j=e[4]);let f;e[5]!==a.error?(f=a.error&&s.jsx($,{error:a.error,msg:"Failed to create key pair"}),e[5]=a.error,e[6]=f):f=e[6];let i;e[7]!==S||e[8]!==v?(i=S(v),e[7]=S,e[8]=v,e[9]=i):i=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(q,{children:s.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),e[10]=y):y=e[10];const x=!!g.keyName;let r;e[11]!==w?(r=w("keyName"),e[11]=w,e[12]=r):r=e[12];let p;e[13]!==x||e[14]!==r?(p=s.jsx(J,{"aria-invalid":x,id:"keyName",placeholder:"my-key-pair…",...r}),e[13]=x,e[14]=r,e[15]=p):p=e[15];let o;e[16]!==g.keyName?(o=s.jsx(H,{errors:[g.keyName]}),e[16]=g.keyName,e[17]=o):o=e[17];let n;e[18]!==p||e[19]!==o?(n=s.jsxs(G,{children:[y,p,o]}),e[18]=p,e[19]=o,e[20]=n):n=e[20];const h=N||a.isPending;let c;e[21]!==t?(c=()=>t({to:"/ec2/describe-key-pairs"}),e[21]=t,e[22]=c):c=e[22];let m;e[23]!==h||e[24]!==c?(m=s.jsx(T,{disabled:h,onClick:c,type:"button",variant:"outline",children:"Cancel"}),e[23]=h,e[24]=c,e[25]=m):m=e[25];const P=N||a.isPending,K=N||a.isPending?"Creating…":"Create Key Pair";let k;e[26]!==P||e[27]!==K?(k=s.jsx(T,{disabled:P,type:"submit",children:K}),e[26]=P,e[27]=K,e[28]=k):k=e[28];let u;e[29]!==m||e[30]!==k?(u=s.jsxs("div",{className:"flex gap-2",children:[m,k]}),e[29]=m,e[30]=k,e[31]=u):u=e[31];let _;e[32]!==n||e[33]!==u||e[34]!==i?(_=s.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[n,u]}),e[32]=n,e[33]=u,e[34]=i,e[35]=_):_=e[35];let F;e[36]!==l?(F=l&&s.jsx(me,{keyMaterial:l.material,keyName:l.keyName,open:!!l}),e[36]=l,e[37]=F):F=e[37];let M;return e[38]!==_||e[39]!==F||e[40]!==f?(M=s.jsxs(s.Fragment,{children:[D,j,f,_,F]}),e[38]=_,e[39]=F,e[40]=f,e[41]=M):M=e[41],M}export{De as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-policy.js b/hive/services/hiveui/frontend/dist/assets/create-policy.js new file mode 100644 index 000000000..83d475103 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/create-policy.js @@ -0,0 +1 @@ +import{c as G,u as K,j as t,B as Y}from"./index.js";import{a as Q,u as W}from"./zod.js";import{B as X}from"./back-link.js";import{E as Z}from"./error-banner.js";import{P as ee}from"./page-heading.js";import{F as U,a as V,b as H}from"./field.js";import{I as $}from"./input.js";import{T as te}from"./textarea.js";import{a as ie}from"./iam.js";import{a as le}from"./iam2.js";const oe=JSON.stringify({Version:"2012-10-17",Statement:[{Effect:"Allow",Action:"*",Resource:"*"}]},null,2);function ue(){const e=G.c(63),s=K(),l=ie();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={resolver:Q(le),defaultValues:{policyDocument:oe}},e[0]=_):_=e[0];const{handleSubmit:k,register:o,formState:q}=W(_),{errors:i,isSubmitting:w}=q;let F;e[1]!==l||e[2]!==s?(F=async z=>{await l.mutateAsync(z),s({to:"/iam/list-policies"})},e[1]=l,e[2]=s,e[3]=F):F=e[3];const O=F;let C,E;e[4]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(X,{to:"/iam/list-policies",children:"Back to policies"}),E=t.jsx(ee,{title:"Create Policy"}),e[4]=C,e[5]=E):(C=e[4],E=e[5]);let r;e[6]!==l.error?(r=l.error&&t.jsx(Z,{error:l.error,msg:"Failed to create policy"}),e[6]=l.error,e[7]=r):r=e[7];let c;e[8]!==k||e[9]!==O?(c=k(O),e[8]=k,e[9]=O,e[10]=c):c=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(V,{children:t.jsx("label",{htmlFor:"policyName",children:"Policy Name"})}),e[11]=v):v=e[11];const I=!!i.policyName;let a;e[12]!==o?(a=o("policyName"),e[12]=o,e[13]=a):a=e[13];let n;e[14]!==I||e[15]!==a?(n=t.jsx($,{"aria-invalid":I,id:"policyName",placeholder:"my-policy...",...a}),e[14]=I,e[15]=a,e[16]=n):n=e[16];let m;e[17]!==i.policyName?(m=t.jsx(U,{errors:[i.policyName]}),e[17]=i.policyName,e[18]=m):m=e[18];let p;e[19]!==n||e[20]!==m?(p=t.jsxs(H,{children:[v,n,m]}),e[19]=n,e[20]=m,e[21]=p):p=e[21];let B;e[22]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(V,{children:t.jsx("label",{htmlFor:"description",children:"Description (optional)"})}),e[22]=B):B=e[22];let f;e[23]!==o?(f=o("description"),e[23]=o,e[24]=f):f=e[24];let d;e[25]!==f?(d=t.jsx($,{id:"description",placeholder:"A brief description of this policy...",...f}),e[25]=f,e[26]=d):d=e[26];let y;e[27]!==i.description?(y=t.jsx(U,{errors:[i.description]}),e[27]=i.description,e[28]=y):y=e[28];let u;e[29]!==d||e[30]!==y?(u=t.jsxs(H,{children:[B,d,y]}),e[29]=d,e[30]=y,e[31]=u):u=e[31];let A;e[32]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(V,{children:t.jsx("label",{htmlFor:"policyDocument",children:"Policy Document (JSON)"})}),e[32]=A):A=e[32];const L=!!i.policyDocument;let x;e[33]!==o?(x=o("policyDocument"),e[33]=o,e[34]=x):x=e[34];let h;e[35]!==L||e[36]!==x?(h=t.jsx(te,{"aria-invalid":L,className:"font-mono text-sm",id:"policyDocument",rows:15,...x}),e[35]=L,e[36]=x,e[37]=h):h=e[37];let j;e[38]!==i.policyDocument?(j=t.jsx(U,{errors:[i.policyDocument]}),e[38]=i.policyDocument,e[39]=j):j=e[39];let b;e[40]!==h||e[41]!==j?(b=t.jsxs(H,{children:[A,h,j]}),e[40]=h,e[41]=j,e[42]=b):b=e[42];const R=w||l.isPending;let N;e[43]!==s?(N=()=>s({to:"/iam/list-policies"}),e[43]=s,e[44]=N):N=e[44];let g;e[45]!==R||e[46]!==N?(g=t.jsx(Y,{disabled:R,onClick:N,type:"button",variant:"outline",children:"Cancel"}),e[45]=R,e[46]=N,e[47]=g):g=e[47];const J=w||l.isPending,M=w||l.isPending?"Creating...":"Create Policy";let S;e[48]!==J||e[49]!==M?(S=t.jsx(Y,{disabled:J,type:"submit",children:M}),e[48]=J,e[49]=M,e[50]=S):S=e[50];let P;e[51]!==g||e[52]!==S?(P=t.jsxs("div",{className:"flex gap-2",children:[g,S]}),e[51]=g,e[52]=S,e[53]=P):P=e[53];let D;e[54]!==p||e[55]!==u||e[56]!==b||e[57]!==P||e[58]!==c?(D=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:c,children:[p,u,b,P]}),e[54]=p,e[55]=u,e[56]=b,e[57]=P,e[58]=c,e[59]=D):D=e[59];let T;return e[60]!==D||e[61]!==r?(T=t.jsxs(t.Fragment,{children:[C,E,r,D]}),e[60]=D,e[61]=r,e[62]=T):T=e[62],T}export{ue as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-snapshot.js b/hive/services/hiveui/frontend/dist/assets/create-snapshot.js index e67dfe583..447aa7539 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-snapshot.js +++ b/hive/services/hiveui/frontend/dist/assets/create-snapshot.js @@ -1 +1 @@ -import{c as q,u as J,i as K,R as U,j as t,B as G}from"./index.js";import{a as W,u as X,C as Y}from"./zod.js";import{u as Z}from"./useSuspenseQuery.js";import{B as ee}from"./back-link.js";import{E as te}from"./error-banner.js";import{P as se}from"./page-heading.js";import{F as le,b as H,a as L}from"./field.js";import{S as oe,a as re,b as ie,c as ae,d as ne}from"./select.js";import{T as ce}from"./textarea.js";import{c as me}from"./ec2.js";import{d as de}from"./ec22.js";import"./check.js";function ye(){const e=q.c(51),l=J(),{data:B}=Z(K),s=me();let j;e[0]!==B.Volumes?(j=B.Volumes??[],e[0]=B.Volumes,e[1]=j):j=e[1];const b=j,{volumeId:M}=U.useSearch(),E=M??b[0]?.VolumeId??"";let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=W(de),e[2]=v):v=e[2];let I;e[3]!==E?(I={resolver:v,defaultValues:{volumeId:E,description:""}},e[3]=E,e[4]=I):I=e[4];const{control:P,handleSubmit:k,register:N,formState:O}=X(I),{errors:o,isSubmitting:R}=O;let g;e[5]!==s||e[6]!==l?(g=async z=>{await s.mutateAsync(z),l({to:"/ec2/describe-snapshots"})},e[5]=s,e[6]=l,e[7]=g):g=e[7];const T=g;let V,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ee,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),C=t.jsx(se,{title:"Create Snapshot"}),e[8]=V,e[9]=C):(V=e[8],C=e[9]);let r;e[10]!==s.error?(r=s.error&&t.jsx(te,{error:s.error,msg:"Failed to create snapshot"}),e[10]=s.error,e[11]=r):r=e[11];let i;e[12]!==k||e[13]!==T?(i=k(T),e[12]=k,e[13]=T,e[14]=i):i=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(L,{children:t.jsx("label",{htmlFor:"volumeId",children:"Volume"})}),e[15]=y):y=e[15];let a;e[16]!==o.volumeId||e[17]!==b?(a=z=>{const{field:A}=z;return t.jsxs(oe,{onValueChange:$=>A.onChange($),value:A.value??"",children:[t.jsx(re,{"aria-invalid":!!o.volumeId,className:"w-full",id:"volumeId",children:t.jsx(ie,{})}),t.jsx(ae,{children:b.map(ue)})]})},e[16]=o.volumeId,e[17]=b,e[18]=a):a=e[18];let n;e[19]!==P||e[20]!==a?(n=t.jsx(Y,{control:P,name:"volumeId",render:a}),e[19]=P,e[20]=a,e[21]=n):n=e[21];let c;e[22]!==o.volumeId?(c=t.jsx(le,{errors:[o.volumeId]}),e[22]=o.volumeId,e[23]=c):c=e[23];let m;e[24]!==n||e[25]!==c?(m=t.jsxs(H,{children:[y,n,c]}),e[24]=n,e[25]=c,e[26]=m):m=e[26];let F;e[27]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(L,{children:t.jsx("label",{htmlFor:"description",children:"Description (optional)"})}),e[27]=F):F=e[27];let d;e[28]!==N?(d=N("description"),e[28]=N,e[29]=d):d=e[29];let u;e[30]!==d?(u=t.jsxs(H,{children:[F,t.jsx(ce,{id:"description",placeholder:"Snapshot description",...d})]}),e[30]=d,e[31]=u):u=e[31];const w=R||s.isPending;let f;e[32]!==l?(f=()=>l({to:"/ec2/describe-snapshots"}),e[32]=l,e[33]=f):f=e[33];let p;e[34]!==w||e[35]!==f?(p=t.jsx(G,{disabled:w,onClick:f,type:"button",variant:"outline",children:"Cancel"}),e[34]=w,e[35]=f,e[36]=p):p=e[36];const D=R||s.isPending,Q=R||s.isPending?"Creating…":"Create Snapshot";let h;e[37]!==D||e[38]!==Q?(h=t.jsx(G,{disabled:D,type:"submit",children:Q}),e[37]=D,e[38]=Q,e[39]=h):h=e[39];let x;e[40]!==p||e[41]!==h?(x=t.jsxs("div",{className:"flex gap-2",children:[p,h]}),e[40]=p,e[41]=h,e[42]=x):x=e[42];let S;e[43]!==m||e[44]!==u||e[45]!==x||e[46]!==i?(S=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[m,u,x]}),e[43]=m,e[44]=u,e[45]=x,e[46]=i,e[47]=S):S=e[47];let _;return e[48]!==S||e[49]!==r?(_=t.jsxs(t.Fragment,{children:[V,C,r,S]}),e[48]=S,e[49]=r,e[50]=_):_=e[50],_}function ue(e){return t.jsxs(ne,{value:e.VolumeId??"",children:[e.VolumeId," (",e.Size," GiB)"]},e.VolumeId)}export{ye as component}; +import{c as q,u as J,m as K,R as U,j as t,B as G}from"./index.js";import{a as W,u as X,C as Y}from"./zod.js";import{u as Z}from"./useSuspenseQuery.js";import{B as ee}from"./back-link.js";import{E as te}from"./error-banner.js";import{P as se}from"./page-heading.js";import{F as le,b as H,a as L}from"./field.js";import{S as oe,a as re,b as ie,c as ae,d as ne}from"./select.js";import{T as ce}from"./textarea.js";import{c as me}from"./ec2.js";import{d as de}from"./ec22.js";import"./check.js";function ye(){const e=q.c(51),l=J(),{data:B}=Z(K),s=me();let j;e[0]!==B.Volumes?(j=B.Volumes??[],e[0]=B.Volumes,e[1]=j):j=e[1];const b=j,{volumeId:M}=U.useSearch(),E=M??b[0]?.VolumeId??"";let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=W(de),e[2]=v):v=e[2];let I;e[3]!==E?(I={resolver:v,defaultValues:{volumeId:E,description:""}},e[3]=E,e[4]=I):I=e[4];const{control:P,handleSubmit:k,register:N,formState:O}=X(I),{errors:o,isSubmitting:R}=O;let g;e[5]!==s||e[6]!==l?(g=async z=>{await s.mutateAsync(z),l({to:"/ec2/describe-snapshots"})},e[5]=s,e[6]=l,e[7]=g):g=e[7];const T=g;let V,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ee,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),C=t.jsx(se,{title:"Create Snapshot"}),e[8]=V,e[9]=C):(V=e[8],C=e[9]);let r;e[10]!==s.error?(r=s.error&&t.jsx(te,{error:s.error,msg:"Failed to create snapshot"}),e[10]=s.error,e[11]=r):r=e[11];let i;e[12]!==k||e[13]!==T?(i=k(T),e[12]=k,e[13]=T,e[14]=i):i=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(L,{children:t.jsx("label",{htmlFor:"volumeId",children:"Volume"})}),e[15]=y):y=e[15];let a;e[16]!==o.volumeId||e[17]!==b?(a=z=>{const{field:A}=z;return t.jsxs(oe,{onValueChange:$=>A.onChange($),value:A.value??"",children:[t.jsx(re,{"aria-invalid":!!o.volumeId,className:"w-full",id:"volumeId",children:t.jsx(ie,{})}),t.jsx(ae,{children:b.map(ue)})]})},e[16]=o.volumeId,e[17]=b,e[18]=a):a=e[18];let n;e[19]!==P||e[20]!==a?(n=t.jsx(Y,{control:P,name:"volumeId",render:a}),e[19]=P,e[20]=a,e[21]=n):n=e[21];let c;e[22]!==o.volumeId?(c=t.jsx(le,{errors:[o.volumeId]}),e[22]=o.volumeId,e[23]=c):c=e[23];let m;e[24]!==n||e[25]!==c?(m=t.jsxs(H,{children:[y,n,c]}),e[24]=n,e[25]=c,e[26]=m):m=e[26];let F;e[27]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(L,{children:t.jsx("label",{htmlFor:"description",children:"Description (optional)"})}),e[27]=F):F=e[27];let d;e[28]!==N?(d=N("description"),e[28]=N,e[29]=d):d=e[29];let u;e[30]!==d?(u=t.jsxs(H,{children:[F,t.jsx(ce,{id:"description",placeholder:"Snapshot description",...d})]}),e[30]=d,e[31]=u):u=e[31];const w=R||s.isPending;let f;e[32]!==l?(f=()=>l({to:"/ec2/describe-snapshots"}),e[32]=l,e[33]=f):f=e[33];let p;e[34]!==w||e[35]!==f?(p=t.jsx(G,{disabled:w,onClick:f,type:"button",variant:"outline",children:"Cancel"}),e[34]=w,e[35]=f,e[36]=p):p=e[36];const D=R||s.isPending,Q=R||s.isPending?"Creating…":"Create Snapshot";let h;e[37]!==D||e[38]!==Q?(h=t.jsx(G,{disabled:D,type:"submit",children:Q}),e[37]=D,e[38]=Q,e[39]=h):h=e[39];let x;e[40]!==p||e[41]!==h?(x=t.jsxs("div",{className:"flex gap-2",children:[p,h]}),e[40]=p,e[41]=h,e[42]=x):x=e[42];let S;e[43]!==m||e[44]!==u||e[45]!==x||e[46]!==i?(S=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[m,u,x]}),e[43]=m,e[44]=u,e[45]=x,e[46]=i,e[47]=S):S=e[47];let _;return e[48]!==S||e[49]!==r?(_=t.jsxs(t.Fragment,{children:[V,C,r,S]}),e[48]=S,e[49]=r,e[50]=_):_=e[50],_}function ue(e){return t.jsxs(ne,{value:e.VolumeId??"",children:[e.VolumeId," (",e.Size," GiB)"]},e.VolumeId)}export{ye as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-subnet.js b/hive/services/hiveui/frontend/dist/assets/create-subnet.js index 6c8cd6e12..6884e19b7 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-subnet.js +++ b/hive/services/hiveui/frontend/dist/assets/create-subnet.js @@ -1 +1 @@ -import{c as oe,u as ce,h as de,g as me,j as t,B as Y}from"./index.js";import{a as ue,u as fe,C as ee}from"./zod.js";import{u as te}from"./useSuspenseQuery.js";import{B as pe}from"./back-link.js";import{E as be}from"./error-banner.js";import{P as he}from"./page-heading.js";import{F as se,a as U,b as W}from"./field.js";import{I as xe}from"./input.js";import{S as le,a as ie,b as ne,c as re,d as X}from"./select.js";import{b as je}from"./ec2.js";import{b as ve}from"./ec22.js";import"./check.js";function Ee(){const e=oe.c(66),s=ce(),{data:Q}=te(de),{data:R}=te(me),l=je();let V;e[0]!==Q.Vpcs?(V=Q.Vpcs??[],e[0]=Q.Vpcs,e[1]=V):V=e[1];const k=V;let _;e[2]!==R.AvailabilityZones?(_=R.AvailabilityZones??[],e[2]=R.AvailabilityZones,e[3]=_):_=e[3];const T=_;let Z;e[4]===Symbol.for("react.memo_cache_sentinel")?(Z=ue(ve),e[4]=Z):Z=e[4];const O=k[0]?.VpcId??"";let F;e[5]!==O?(F={resolver:Z,defaultValues:{vpcId:O,cidrBlock:"10.0.1.0/24",availabilityZone:""}},e[5]=O,e[6]=F):F=e[6];const{control:r,handleSubmit:H,register:K,formState:ae}=fe(F),{errors:i,isSubmitting:L}=ae;let N;e[7]!==l||e[8]!==s?(N=async B=>{const n=(await l.mutateAsync(B)).Subnet?.SubnetId;s(n?{to:"/ec2/describe-subnets/$id",params:{id:n}}:{to:"/ec2/describe-subnets"})},e[7]=l,e[8]=s,e[9]=N):N=e[9];const M=N;let A,P;e[10]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(pe,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),P=t.jsx(he,{title:"Create Subnet"}),e[10]=A,e[11]=P):(A=e[10],P=e[11]);let a;e[12]!==l.error?(a=l.error&&t.jsx(be,{error:l.error,msg:"Failed to create subnet"}),e[12]=l.error,e[13]=a):a=e[13];let o;e[14]!==H||e[15]!==M?(o=H(M),e[14]=H,e[15]=M,e[16]=o):o=e[16];let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(U,{children:t.jsx("label",{htmlFor:"vpcId",children:"VPC"})}),e[17]=$):$=e[17];let c;e[18]!==i.vpcId||e[19]!==k?(c=B=>{const{field:C}=B;return t.jsxs(le,{onValueChange:n=>C.onChange(n),value:C.value??"",children:[t.jsx(ie,{"aria-invalid":!!i.vpcId,className:"w-full",id:"vpcId",children:t.jsx(ne,{})}),t.jsx(re,{children:k.map(ye)})]})},e[18]=i.vpcId,e[19]=k,e[20]=c):c=e[20];let d;e[21]!==r||e[22]!==c?(d=t.jsx(ee,{control:r,name:"vpcId",render:c}),e[21]=r,e[22]=c,e[23]=d):d=e[23];let m;e[24]!==i.vpcId?(m=t.jsx(se,{errors:[i.vpcId]}),e[24]=i.vpcId,e[25]=m):m=e[25];let u;e[26]!==d||e[27]!==m?(u=t.jsxs(W,{children:[$,d,m]}),e[26]=d,e[27]=m,e[28]=u):u=e[28];let E;e[29]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(U,{children:t.jsx("label",{htmlFor:"cidrBlock",children:"CIDR Block"})}),e[29]=E):E=e[29];const q=!!i.cidrBlock;let f;e[30]!==K?(f=K("cidrBlock"),e[30]=K,e[31]=f):f=e[31];let p;e[32]!==q||e[33]!==f?(p=t.jsx(xe,{"aria-invalid":q,id:"cidrBlock",placeholder:"10.0.1.0/24",...f}),e[32]=q,e[33]=f,e[34]=p):p=e[34];let b;e[35]!==i.cidrBlock?(b=t.jsx(se,{errors:[i.cidrBlock]}),e[35]=i.cidrBlock,e[36]=b):b=e[36];let h;e[37]!==p||e[38]!==b?(h=t.jsxs(W,{children:[E,p,b]}),e[37]=p,e[38]=b,e[39]=h):h=e[39];let w;e[40]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(U,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone (optional)"})}),e[40]=w):w=e[40];let x;e[41]!==T?(x=B=>{const{field:C}=B;return t.jsxs(le,{onValueChange:n=>C.onChange(n==="none"?"":n),value:C.value||"none",children:[t.jsx(ie,{className:"w-full",id:"availabilityZone",children:t.jsx(ne,{})}),t.jsxs(re,{children:[t.jsx(X,{value:"none",children:"none"}),T.map(Se)]})]})},e[41]=T,e[42]=x):x=e[42];let j;e[43]!==r||e[44]!==x?(j=t.jsxs(W,{children:[w,t.jsx(ee,{control:r,name:"availabilityZone",render:x})]}),e[43]=r,e[44]=x,e[45]=j):j=e[45];const z=L||l.isPending;let v;e[46]!==s?(v=()=>s({to:"/ec2/describe-subnets"}),e[46]=s,e[47]=v):v=e[47];let S;e[48]!==z||e[49]!==v?(S=t.jsx(Y,{disabled:z,onClick:v,type:"button",variant:"outline",children:"Cancel"}),e[48]=z,e[49]=v,e[50]=S):S=e[50];const G=L||l.isPending,J=L||l.isPending?"Creating…":"Create Subnet";let y;e[51]!==G||e[52]!==J?(y=t.jsx(Y,{disabled:G,type:"submit",children:J}),e[51]=G,e[52]=J,e[53]=y):y=e[53];let g;e[54]!==S||e[55]!==y?(g=t.jsxs("div",{className:"flex gap-2",children:[S,y]}),e[54]=S,e[55]=y,e[56]=g):g=e[56];let I;e[57]!==o||e[58]!==u||e[59]!==h||e[60]!==j||e[61]!==g?(I=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[u,h,j,g]}),e[57]=o,e[58]=u,e[59]=h,e[60]=j,e[61]=g,e[62]=I):I=e[62];let D;return e[63]!==I||e[64]!==a?(D=t.jsxs(t.Fragment,{children:[A,P,a,I]}),e[63]=I,e[64]=a,e[65]=D):D=e[65],D}function Se(e){return t.jsx(X,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}function ye(e){const s=e.Tags?.find(ge)?.Value;return t.jsx(X,{value:e.VpcId??"",children:s?`${e.VpcId} (${s})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){return e.Key==="Name"}export{Ee as component}; +import{c as oe,u as ce,l as de,k as me,j as t,B as Y}from"./index.js";import{a as ue,u as fe,C as ee}from"./zod.js";import{u as te}from"./useSuspenseQuery.js";import{B as pe}from"./back-link.js";import{E as be}from"./error-banner.js";import{P as xe}from"./page-heading.js";import{F as se,a as U,b as W}from"./field.js";import{I as he}from"./input.js";import{S as le,a as ie,b as ne,c as re,d as X}from"./select.js";import{b as je}from"./ec2.js";import{b as ve}from"./ec22.js";import"./check.js";function Ee(){const e=oe.c(66),s=ce(),{data:Q}=te(de),{data:R}=te(me),l=je();let k;e[0]!==Q.Vpcs?(k=Q.Vpcs??[],e[0]=Q.Vpcs,e[1]=k):k=e[1];const V=k;let _;e[2]!==R.AvailabilityZones?(_=R.AvailabilityZones??[],e[2]=R.AvailabilityZones,e[3]=_):_=e[3];const T=_;let Z;e[4]===Symbol.for("react.memo_cache_sentinel")?(Z=ue(ve),e[4]=Z):Z=e[4];const O=V[0]?.VpcId??"";let F;e[5]!==O?(F={resolver:Z,defaultValues:{vpcId:O,cidrBlock:"10.0.1.0/24",availabilityZone:""}},e[5]=O,e[6]=F):F=e[6];const{control:r,handleSubmit:H,register:K,formState:ae}=fe(F),{errors:i,isSubmitting:L}=ae;let N;e[7]!==l||e[8]!==s?(N=async B=>{const n=(await l.mutateAsync(B)).Subnet?.SubnetId;s(n?{to:"/ec2/describe-subnets/$id",params:{id:n}}:{to:"/ec2/describe-subnets"})},e[7]=l,e[8]=s,e[9]=N):N=e[9];const M=N;let A,P;e[10]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(pe,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),P=t.jsx(xe,{title:"Create Subnet"}),e[10]=A,e[11]=P):(A=e[10],P=e[11]);let a;e[12]!==l.error?(a=l.error&&t.jsx(be,{error:l.error,msg:"Failed to create subnet"}),e[12]=l.error,e[13]=a):a=e[13];let o;e[14]!==H||e[15]!==M?(o=H(M),e[14]=H,e[15]=M,e[16]=o):o=e[16];let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(U,{children:t.jsx("label",{htmlFor:"vpcId",children:"VPC"})}),e[17]=$):$=e[17];let c;e[18]!==i.vpcId||e[19]!==V?(c=B=>{const{field:C}=B;return t.jsxs(le,{onValueChange:n=>C.onChange(n),value:C.value??"",children:[t.jsx(ie,{"aria-invalid":!!i.vpcId,className:"w-full",id:"vpcId",children:t.jsx(ne,{})}),t.jsx(re,{children:V.map(ye)})]})},e[18]=i.vpcId,e[19]=V,e[20]=c):c=e[20];let d;e[21]!==r||e[22]!==c?(d=t.jsx(ee,{control:r,name:"vpcId",render:c}),e[21]=r,e[22]=c,e[23]=d):d=e[23];let m;e[24]!==i.vpcId?(m=t.jsx(se,{errors:[i.vpcId]}),e[24]=i.vpcId,e[25]=m):m=e[25];let u;e[26]!==d||e[27]!==m?(u=t.jsxs(W,{children:[$,d,m]}),e[26]=d,e[27]=m,e[28]=u):u=e[28];let E;e[29]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(U,{children:t.jsx("label",{htmlFor:"cidrBlock",children:"CIDR Block"})}),e[29]=E):E=e[29];const q=!!i.cidrBlock;let f;e[30]!==K?(f=K("cidrBlock"),e[30]=K,e[31]=f):f=e[31];let p;e[32]!==q||e[33]!==f?(p=t.jsx(he,{"aria-invalid":q,id:"cidrBlock",placeholder:"10.0.1.0/24",...f}),e[32]=q,e[33]=f,e[34]=p):p=e[34];let b;e[35]!==i.cidrBlock?(b=t.jsx(se,{errors:[i.cidrBlock]}),e[35]=i.cidrBlock,e[36]=b):b=e[36];let x;e[37]!==p||e[38]!==b?(x=t.jsxs(W,{children:[E,p,b]}),e[37]=p,e[38]=b,e[39]=x):x=e[39];let w;e[40]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(U,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone (optional)"})}),e[40]=w):w=e[40];let h;e[41]!==T?(h=B=>{const{field:C}=B;return t.jsxs(le,{onValueChange:n=>C.onChange(n==="none"?"":n),value:C.value||"none",children:[t.jsx(ie,{className:"w-full",id:"availabilityZone",children:t.jsx(ne,{})}),t.jsxs(re,{children:[t.jsx(X,{value:"none",children:"none"}),T.map(Se)]})]})},e[41]=T,e[42]=h):h=e[42];let j;e[43]!==r||e[44]!==h?(j=t.jsxs(W,{children:[w,t.jsx(ee,{control:r,name:"availabilityZone",render:h})]}),e[43]=r,e[44]=h,e[45]=j):j=e[45];const z=L||l.isPending;let v;e[46]!==s?(v=()=>s({to:"/ec2/describe-subnets"}),e[46]=s,e[47]=v):v=e[47];let S;e[48]!==z||e[49]!==v?(S=t.jsx(Y,{disabled:z,onClick:v,type:"button",variant:"outline",children:"Cancel"}),e[48]=z,e[49]=v,e[50]=S):S=e[50];const G=L||l.isPending,J=L||l.isPending?"Creating…":"Create Subnet";let y;e[51]!==G||e[52]!==J?(y=t.jsx(Y,{disabled:G,type:"submit",children:J}),e[51]=G,e[52]=J,e[53]=y):y=e[53];let I;e[54]!==S||e[55]!==y?(I=t.jsxs("div",{className:"flex gap-2",children:[S,y]}),e[54]=S,e[55]=y,e[56]=I):I=e[56];let g;e[57]!==o||e[58]!==u||e[59]!==x||e[60]!==j||e[61]!==I?(g=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[u,x,j,I]}),e[57]=o,e[58]=u,e[59]=x,e[60]=j,e[61]=I,e[62]=g):g=e[62];let D;return e[63]!==g||e[64]!==a?(D=t.jsxs(t.Fragment,{children:[A,P,a,g]}),e[63]=g,e[64]=a,e[65]=D):D=e[65],D}function Se(e){return t.jsx(X,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}function ye(e){const s=e.Tags?.find(Ie)?.Value;return t.jsx(X,{value:e.VpcId??"",children:s?`${e.VpcId} (${s})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function Ie(e){return e.Key==="Name"}export{Ee as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-user.js b/hive/services/hiveui/frontend/dist/assets/create-user.js new file mode 100644 index 000000000..d6ef31cfc --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/create-user.js @@ -0,0 +1 @@ +import{c as z,u as D,j as t,B as A}from"./index.js";import{a as G,u as J}from"./zod.js";import{B as K}from"./back-link.js";import{E as O}from"./error-banner.js";import{P as Q}from"./page-heading.js";import{F as H,a as L,b as M}from"./field.js";import{I as T}from"./input.js";import{u as V}from"./iam.js";import{c as W}from"./iam2.js";function ae(){const e=z.c(51),l=D(),s=V();let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y={resolver:G(W)},e[0]=y):y=e[0];const{handleSubmit:P,register:i,formState:$}=J(y),{errors:r,isSubmitting:U}=$;let S;e[1]!==s||e[2]!==l?(S=async q=>{await s.mutateAsync(q),l({to:"/iam/list-users"})},e[1]=s,e[2]=l,e[3]=S):S=e[3];const E=S;let F,_;e[4]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(K,{to:"/iam/list-users",children:"Back to users"}),_=t.jsx(Q,{title:"Create User"}),e[4]=F,e[5]=_):(F=e[4],_=e[5]);let a;e[6]!==s.error?(a=s.error&&t.jsx(O,{error:s.error,msg:"Failed to create user"}),e[6]=s.error,e[7]=a):a=e[7];let o;e[8]!==P||e[9]!==E?(o=P(E),e[8]=P,e[9]=E,e[10]=o):o=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(L,{children:t.jsx("label",{htmlFor:"userName",children:"User Name"})}),e[11]=C):C=e[11];const k=!!r.userName;let n;e[12]!==i?(n=i("userName"),e[12]=i,e[13]=n):n=e[13];let m;e[14]!==k||e[15]!==n?(m=t.jsx(T,{"aria-invalid":k,id:"userName",placeholder:"my-user...",...n}),e[14]=k,e[15]=n,e[16]=m):m=e[16];let c;e[17]!==r.userName?(c=t.jsx(H,{errors:[r.userName]}),e[17]=r.userName,e[18]=c):c=e[18];let f;e[19]!==m||e[20]!==c?(f=t.jsxs(M,{children:[C,m,c]}),e[19]=m,e[20]=c,e[21]=f):f=e[21];let v;e[22]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(L,{children:t.jsx("label",{htmlFor:"path",children:"Path (optional)"})}),e[22]=v):v=e[22];let u;e[23]!==i?(u=i("path"),e[23]=i,e[24]=u):u=e[24];let d;e[25]!==u?(d=t.jsx(T,{id:"path",placeholder:"/",...u}),e[25]=u,e[26]=d):d=e[26];let h;e[27]!==r.path?(h=t.jsx(H,{errors:[r.path]}),e[27]=r.path,e[28]=h):h=e[28];let p;e[29]!==d||e[30]!==h?(p=t.jsxs(M,{children:[v,d,h]}),e[29]=d,e[30]=h,e[31]=p):p=e[31];const w=U||s.isPending;let x;e[32]!==l?(x=()=>l({to:"/iam/list-users"}),e[32]=l,e[33]=x):x=e[33];let j;e[34]!==w||e[35]!==x?(j=t.jsx(A,{disabled:w,onClick:x,type:"button",variant:"outline",children:"Cancel"}),e[34]=w,e[35]=x,e[36]=j):j=e[36];const I=U||s.isPending,R=U||s.isPending?"Creating...":"Create User";let b;e[37]!==I||e[38]!==R?(b=t.jsx(A,{disabled:I,type:"submit",children:R}),e[37]=I,e[38]=R,e[39]=b):b=e[39];let g;e[40]!==j||e[41]!==b?(g=t.jsxs("div",{className:"flex gap-2",children:[j,b]}),e[40]=j,e[41]=b,e[42]=g):g=e[42];let N;e[43]!==f||e[44]!==p||e[45]!==g||e[46]!==o?(N=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[f,p,g]}),e[43]=f,e[44]=p,e[45]=g,e[46]=o,e[47]=N):N=e[47];let B;return e[48]!==N||e[49]!==a?(B=t.jsxs(t.Fragment,{children:[F,_,a,N]}),e[48]=N,e[49]=a,e[50]=B):B=e[50],B}export{ae as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-volume.js b/hive/services/hiveui/frontend/dist/assets/create-volume.js index 25e340a2a..8461e16d6 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-volume.js +++ b/hive/services/hiveui/frontend/dist/assets/create-volume.js @@ -1 +1 @@ -import{c as K,u as U,g as W,j as t,B as L}from"./index.js";import{a as X,u as Y,C as ee}from"./zod.js";import{u as te}from"./useSuspenseQuery.js";import{B as ie}from"./back-link.js";import{E as le}from"./error-banner.js";import{P as ae}from"./page-heading.js";import{F as M,a as O,b as $}from"./field.js";import{I as se}from"./input.js";import{S as re,a as oe,b as ne,c as me,d as ce}from"./select.js";import{a as ue}from"./ec2.js";import{a as fe}from"./ec22.js";import"./check.js";function Fe(){const e=K.c(57),a=U(),{data:V}=te(W),i=ue();let j;e[0]!==V.AvailabilityZones?(j=V.AvailabilityZones??[],e[0]=V.AvailabilityZones,e[1]=j):j=e[1];const Z=j,B=Z[0]?.ZoneName??"";let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=X(fe),e[2]=g):g=e[2];let S;e[3]!==B?(S={resolver:g,defaultValues:{size:1,availabilityZone:B}},e[3]=B,e[4]=S):S=e[4];const{control:E,handleSubmit:P,register:k,formState:q}=Y(S),{errors:l,isSubmitting:w}=q;let C;e[5]!==i||e[6]!==a?(C=async G=>{await i.mutateAsync(G),a({to:"/ec2/describe-volumes"})},e[5]=i,e[6]=a,e[7]=C):C=e[7];const I=C;let z,F;e[8]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(ie,{to:"/ec2/describe-volumes",children:"Back to volumes"}),F=t.jsx(ae,{title:"Create Volume"}),e[8]=z,e[9]=F):(z=e[8],F=e[9]);let s;e[10]!==i.error?(s=i.error&&t.jsx(le,{error:i.error,msg:"Failed to create volume"}),e[10]=i.error,e[11]=s):s=e[11];let r;e[12]!==P||e[13]!==I?(r=P(I),e[12]=P,e[13]=I,e[14]=r):r=e[14];let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(O,{children:t.jsx("label",{htmlFor:"size",children:"Size (GiB)"})}),e[15]=N):N=e[15];const Q=!!l.size;let o;e[16]!==k?(o=k("size",{valueAsNumber:!0}),e[16]=k,e[17]=o):o=e[17];let n;e[18]!==Q||e[19]!==o?(n=t.jsx(se,{"aria-invalid":Q,id:"size",max:16384,min:1,type:"number",...o}),e[18]=Q,e[19]=o,e[20]=n):n=e[20];let m;e[21]!==l.size?(m=t.jsx(M,{errors:[l.size]}),e[21]=l.size,e[22]=m):m=e[22];let c;e[23]!==n||e[24]!==m?(c=t.jsxs($,{children:[N,n,m]}),e[23]=n,e[24]=m,e[25]=c):c=e[25];let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(O,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone"})}),e[26]=_):_=e[26];let u;e[27]!==Z||e[28]!==l.availabilityZone?(u=G=>{const{field:H}=G;return t.jsxs(re,{onValueChange:J=>H.onChange(J),value:H.value??"",children:[t.jsx(oe,{"aria-invalid":!!l.availabilityZone,className:"w-full",id:"availabilityZone",children:t.jsx(ne,{})}),t.jsx(me,{children:Z.map(de)})]})},e[27]=Z,e[28]=l.availabilityZone,e[29]=u):u=e[29];let f;e[30]!==E||e[31]!==u?(f=t.jsx(ee,{control:E,name:"availabilityZone",render:u}),e[30]=E,e[31]=u,e[32]=f):f=e[32];let d;e[33]!==l.availabilityZone?(d=t.jsx(M,{errors:[l.availabilityZone]}),e[33]=l.availabilityZone,e[34]=d):d=e[34];let b;e[35]!==f||e[36]!==d?(b=t.jsxs($,{children:[_,f,d]}),e[35]=f,e[36]=d,e[37]=b):b=e[37];const R=w||i.isPending;let v;e[38]!==a?(v=()=>a({to:"/ec2/describe-volumes"}),e[38]=a,e[39]=v):v=e[39];let x;e[40]!==R||e[41]!==v?(x=t.jsx(L,{disabled:R,onClick:v,type:"button",variant:"outline",children:"Cancel"}),e[40]=R,e[41]=v,e[42]=x):x=e[42];const T=w||i.isPending,D=w||i.isPending?"Creating…":"Create Volume";let y;e[43]!==T||e[44]!==D?(y=t.jsx(L,{disabled:T,type:"submit",children:D}),e[43]=T,e[44]=D,e[45]=y):y=e[45];let p;e[46]!==x||e[47]!==y?(p=t.jsxs("div",{className:"flex gap-2",children:[x,y]}),e[46]=x,e[47]=y,e[48]=p):p=e[48];let h;e[49]!==c||e[50]!==b||e[51]!==p||e[52]!==r?(h=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:r,children:[c,b,p]}),e[49]=c,e[50]=b,e[51]=p,e[52]=r,e[53]=h):h=e[53];let A;return e[54]!==h||e[55]!==s?(A=t.jsxs(t.Fragment,{children:[z,F,s,h]}),e[54]=h,e[55]=s,e[56]=A):A=e[56],A}function de(e){return t.jsx(ce,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}export{Fe as component}; +import{c as K,u as U,k as W,j as t,B as L}from"./index.js";import{a as X,u as Y,C as ee}from"./zod.js";import{u as te}from"./useSuspenseQuery.js";import{B as ie}from"./back-link.js";import{E as le}from"./error-banner.js";import{P as ae}from"./page-heading.js";import{F as M,a as O,b as $}from"./field.js";import{I as se}from"./input.js";import{S as re,a as oe,b as ne,c as me,d as ce}from"./select.js";import{a as ue}from"./ec2.js";import{a as fe}from"./ec22.js";import"./check.js";function Fe(){const e=K.c(57),a=U(),{data:V}=te(W),i=ue();let j;e[0]!==V.AvailabilityZones?(j=V.AvailabilityZones??[],e[0]=V.AvailabilityZones,e[1]=j):j=e[1];const Z=j,B=Z[0]?.ZoneName??"";let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=X(fe),e[2]=S):S=e[2];let g;e[3]!==B?(g={resolver:S,defaultValues:{size:1,availabilityZone:B}},e[3]=B,e[4]=g):g=e[4];const{control:k,handleSubmit:E,register:P,formState:q}=Y(g),{errors:l,isSubmitting:w}=q;let C;e[5]!==i||e[6]!==a?(C=async G=>{await i.mutateAsync(G),a({to:"/ec2/describe-volumes"})},e[5]=i,e[6]=a,e[7]=C):C=e[7];const I=C;let z,F;e[8]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(ie,{to:"/ec2/describe-volumes",children:"Back to volumes"}),F=t.jsx(ae,{title:"Create Volume"}),e[8]=z,e[9]=F):(z=e[8],F=e[9]);let s;e[10]!==i.error?(s=i.error&&t.jsx(le,{error:i.error,msg:"Failed to create volume"}),e[10]=i.error,e[11]=s):s=e[11];let r;e[12]!==E||e[13]!==I?(r=E(I),e[12]=E,e[13]=I,e[14]=r):r=e[14];let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(O,{children:t.jsx("label",{htmlFor:"size",children:"Size (GiB)"})}),e[15]=N):N=e[15];const Q=!!l.size;let o;e[16]!==P?(o=P("size",{valueAsNumber:!0}),e[16]=P,e[17]=o):o=e[17];let n;e[18]!==Q||e[19]!==o?(n=t.jsx(se,{"aria-invalid":Q,id:"size",max:16384,min:1,type:"number",...o}),e[18]=Q,e[19]=o,e[20]=n):n=e[20];let m;e[21]!==l.size?(m=t.jsx(M,{errors:[l.size]}),e[21]=l.size,e[22]=m):m=e[22];let c;e[23]!==n||e[24]!==m?(c=t.jsxs($,{children:[N,n,m]}),e[23]=n,e[24]=m,e[25]=c):c=e[25];let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(O,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone"})}),e[26]=_):_=e[26];let u;e[27]!==Z||e[28]!==l.availabilityZone?(u=G=>{const{field:H}=G;return t.jsxs(re,{onValueChange:J=>H.onChange(J),value:H.value??"",children:[t.jsx(oe,{"aria-invalid":!!l.availabilityZone,className:"w-full",id:"availabilityZone",children:t.jsx(ne,{})}),t.jsx(me,{children:Z.map(de)})]})},e[27]=Z,e[28]=l.availabilityZone,e[29]=u):u=e[29];let f;e[30]!==k||e[31]!==u?(f=t.jsx(ee,{control:k,name:"availabilityZone",render:u}),e[30]=k,e[31]=u,e[32]=f):f=e[32];let d;e[33]!==l.availabilityZone?(d=t.jsx(M,{errors:[l.availabilityZone]}),e[33]=l.availabilityZone,e[34]=d):d=e[34];let b;e[35]!==f||e[36]!==d?(b=t.jsxs($,{children:[_,f,d]}),e[35]=f,e[36]=d,e[37]=b):b=e[37];const R=w||i.isPending;let v;e[38]!==a?(v=()=>a({to:"/ec2/describe-volumes"}),e[38]=a,e[39]=v):v=e[39];let x;e[40]!==R||e[41]!==v?(x=t.jsx(L,{disabled:R,onClick:v,type:"button",variant:"outline",children:"Cancel"}),e[40]=R,e[41]=v,e[42]=x):x=e[42];const T=w||i.isPending,D=w||i.isPending?"Creating…":"Create Volume";let y;e[43]!==T||e[44]!==D?(y=t.jsx(L,{disabled:T,type:"submit",children:D}),e[43]=T,e[44]=D,e[45]=y):y=e[45];let p;e[46]!==x||e[47]!==y?(p=t.jsxs("div",{className:"flex gap-2",children:[x,y]}),e[46]=x,e[47]=y,e[48]=p):p=e[48];let h;e[49]!==c||e[50]!==b||e[51]!==p||e[52]!==r?(h=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:r,children:[c,b,p]}),e[49]=c,e[50]=b,e[51]=p,e[52]=r,e[53]=h):h=e[53];let A;return e[54]!==h||e[55]!==s?(A=t.jsxs(t.Fragment,{children:[z,F,s,h]}),e[54]=h,e[55]=s,e[56]=A):A=e[56],A}function de(e){return t.jsx(ce,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}export{Fe as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/download.js b/hive/services/hiveui/frontend/dist/assets/download.js index ce7522ea2..0a90a1664 100644 --- a/hive/services/hiveui/frontend/dist/assets/download.js +++ b/hive/services/hiveui/frontend/dist/assets/download.js @@ -1 +1 @@ -import{k as o}from"./index.js";const a=[["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"}]],e=o("download",a);export{e as D}; +import{J as o}from"./index.js";const a=[["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"}]],e=o("download",a);export{e as D}; diff --git a/hive/services/hiveui/frontend/dist/assets/ec2.js b/hive/services/hiveui/frontend/dist/assets/ec2.js index 519defaaa..7b2fac3ff 100644 --- a/hive/services/hiveui/frontend/dist/assets/ec2.js +++ b/hive/services/hiveui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{E as c,c1 as i,G as a,c2 as $,c3 as v,ah as h,ag as V,a1 as g,c4 as q,ai as K,c5 as D,c6 as w,c7 as A,c8 as x,c9 as R,ca as _,cb as z,cc as B,cd as F,ce as Q,cf as M,cg as T,ch as k,ci as U,cj as N,ck as O,cl as G,cm as j,cn as Z,co as H,cp as L,cq as W,c as u,aj as m,cr as r,m as E}from"./index.js";import{u as l}from"./error-banner.js";class X extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","AttachVolume",{}).n("EC2Client","AttachVolumeCommand").sc($).build(){}function J(e){const{port:n,query:t}=e;let{protocol:s,path:o,hostname:p}=e;s&&s.slice(-1)!==":"&&(s+=":"),n&&(p+=`:${n}`),o&&o.charAt(0)!=="/"&&(o=`/${o}`);let d=t?v(t):"";d&&d[0]!=="?"&&(d=`?${d}`);let y="";if(e.username!=null||e.password!=null){const S=e.username??"",I=e.password??"";y=`${S}:${I}@`}let f="";return e.fragment&&(f=`#${e.fragment}`),`${s}//${y}${p}${o}${d}${f}`}const Y="2016-11-15";function ee(e){return(n,t)=>async s=>{const{input:o}=s;if(!o.PresignedUrl){const p=await e.region(),d=await h(o,{getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}},{...e,region:o.SourceRegion}),y=typeof e.endpoint=="function"?await e.endpoint():V(d),f=new g({...y,protocol:"https",headers:{host:y.hostname},query:{...Object.entries(o).reduce((C,[b,P])=>(C[b]=String(P??""),C),{}),Action:"CopySnapshot",Version:Y,DestinationRegion:p}}),I=await new q({credentials:e.credentials,region:o.SourceRegion,service:"ec2",sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(f,{expiresIn:3600});if(s={...s,input:{...s.input,DestinationRegion:p,PresignedUrl:J(I)}},g.isInstance(s.request)){const{request:C}=s;(C.body??"").includes("DestinationRegion=")||(C.body+=`&DestinationRegion=${p}`),(C.body??"").includes("PresignedUrl=")||(C.body+=`&PresignedUrl=${K(s.input.PresignedUrl)}`)}}return n(s)}}const ne={step:"serialize",tags:["CROSS_REGION_PRESIGNED_URL"],name:"crossRegionPresignedUrlMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"},te=e=>({applyToStack:n=>{n.add(ee(e),ne)}});class se extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions()),te(s)]}).s("AmazonEC2","CopySnapshot",{}).n("EC2Client","CopySnapshotCommand").sc(D).build(){}class oe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateImage",{}).n("EC2Client","CreateImageCommand").sc(w).build(){}class ce extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateKeyPair",{}).n("EC2Client","CreateKeyPairCommand").sc(A).build(){}class ie extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateSnapshot",{}).n("EC2Client","CreateSnapshotCommand").sc(x).build(){}class ae extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateSubnet",{}).n("EC2Client","CreateSubnetCommand").sc(R).build(){}class ue extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateVolume",{}).n("EC2Client","CreateVolumeCommand").sc(_).build(){}class re extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateVpc",{}).n("EC2Client","CreateVpcCommand").sc(z).build(){}class le extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteKeyPair",{}).n("EC2Client","DeleteKeyPairCommand").sc(B).build(){}class me extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteSnapshot",{}).n("EC2Client","DeleteSnapshotCommand").sc(F).build(){}class de extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteSubnet",{}).n("EC2Client","DeleteSubnetCommand").sc(Q).build(){}class Ce extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteVolume",{}).n("EC2Client","DeleteVolumeCommand").sc(M).build(){}class pe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteVpc",{}).n("EC2Client","DeleteVpcCommand").sc(T).build(){}class ye extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DetachVolume",{}).n("EC2Client","DetachVolumeCommand").sc(k).build(){}class fe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","GetConsoleOutput",{}).n("EC2Client","GetConsoleOutputCommand").sc(U).build(){}class Ie extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ImportKeyPair",{}).n("EC2Client","ImportKeyPairCommand").sc(N).build(){}class Ee extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ModifyInstanceAttribute",{}).n("EC2Client","ModifyInstanceAttributeCommand").sc(O).build(){}class Se extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ModifyVolume",{}).n("EC2Client","ModifyVolumeCommand").sc(G).build(){}class ge extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RebootInstances",{}).n("EC2Client","RebootInstancesCommand").sc(j).build(){}class be extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RunInstances",{}).n("EC2Client","RunInstancesCommand").sc(Z).build(){}class Pe extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StartInstances",{}).n("EC2Client","StartInstancesCommand").sc(H).build(){}class $e extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StopInstances",{}).n("EC2Client","StopInstancesCommand").sc(L).build(){}class ve extends c.classBuilder().ep(i).m(function(n,t,s,o){return[a(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","TerminateInstances",{}).n("EC2Client","TerminateInstancesCommand").sc(W).build(){}const he=/\s+/;function Xe(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ve,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ve(e){const n=new Pe({InstanceIds:[e]});return r().send(n)}function Je(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:qe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function qe(e){const n=new $e({InstanceIds:[e]});return r().send(n)}function Ye(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ke,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ke(e){const n=new ve({InstanceIds:[e]});return r().send(n)}function en(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:De,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function De(e){const n=new ge({InstanceIds:[e]});return r().send(n)}function nn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:we,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function we(e){const n=new be({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0});return r().send(n)}function tn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ae,onSuccess:()=>{n.invalidateQueries(E)}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ae(e){const n=new ce({KeyName:e.keyName,KeyType:"rsa"});return r().send(n)}function sn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:xe,onSuccess:()=>{n.invalidateQueries(E)}},e[0]=n,e[1]=t):t=e[1],l(t)}function xe(e){const t=e.publicKeyMaterial.trim().split(he).slice(0,2).join(" "),s=new Ie({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return r().send(s)}function on(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Re,onSuccess:()=>{n.invalidateQueries(E)}},e[0]=n,e[1]=t):t=e[1],l(t)}function Re(e){const n=new le({KeyPairId:e});return r().send(n)}function cn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function _e(e){const n=new ue({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:"gp3"});return r().send(n)}function an(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:ze,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function ze(e){const n=new Se({VolumeId:e.volumeId,Size:e.size});return r().send(n)}function un(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Be,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Be(e){const n=new Ce({VolumeId:e});return r().send(n)}function rn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Fe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Fe(e){const n=new ie({VolumeId:e.volumeId,Description:e.description||void 0});return r().send(n)}function ln(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Qe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Qe(e){const n=new me({SnapshotId:e});return r().send(n)}function mn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Me,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Me(e){const n=new se({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return r().send(n)}function dn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Te,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]}),n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Te(e){const n=new X({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return r().send(n)}function Cn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:ke,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]}),n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function ke(e){const n=new ye({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return r().send(n)}function pn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ue,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ue(e){const{instanceId:n,...t}=e,s=new Ee({InstanceId:n,InstanceType:{Value:t.instanceType}});return r().send(s)}function yn(){const e=u.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={mutationFn:Ne},e[0]=n):n=e[0],l(n)}function Ne(e){const n=new fe({InstanceId:e});return r().send(n)}function fn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Oe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","images"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Oe(e){const n=new oe({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return r().send(n)}function In(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ge,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","vpcs"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ge(e){const n=new re({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:"vpc",Tags:[{Key:"Name",Value:e.name}]}]:void 0});return r().send(n)}function En(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:je,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","vpcs"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function je(e){const n=new pe({VpcId:e});return r().send(n)}function Sn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ze,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","subnets"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ze(e){const n=new ae({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0});return r().send(n)}function gn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:He,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","subnets"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function He(e){const n=new de({SubnetId:e});return r().send(n)}export{cn as a,Sn as b,rn as c,sn as d,tn as e,nn as f,En as g,an as h,un as i,dn as j,Cn as k,gn as l,ln as m,mn as n,on as o,fn as p,Xe as q,Je as r,en as s,Ye as t,In as u,pn as v,yn as w}; +import{N as i,br as a,Q as c,bs as $,bt as v,ao as h,an as V,a8 as S,bu as K,ap as q,bv as D,bw as w,bx as A,by as x,bz as R,bA as z,bB as Q,bC as _,bD as B,bE as F,bF as M,bG as T,bH as U,bI as k,bJ as N,bK as O,bL as G,bM as Z,bN as j,bO as H,bP as L,bQ as J,c as u,aq as m,g as r,p as b}from"./index.js";import{u as l}from"./error-banner.js";class W extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","AttachVolume",{}).n("EC2Client","AttachVolumeCommand").sc($).build(){}function X(e){const{port:n,query:t}=e;let{protocol:s,path:o,hostname:p}=e;s&&s.slice(-1)!==":"&&(s+=":"),n&&(p+=`:${n}`),o&&o.charAt(0)!=="/"&&(o=`/${o}`);let d=t?v(t):"";d&&d[0]!=="?"&&(d=`?${d}`);let y="";if(e.username!=null||e.password!=null){const E=e.username??"",I=e.password??"";y=`${E}:${I}@`}let f="";return e.fragment&&(f=`#${e.fragment}`),`${s}//${y}${p}${o}${d}${f}`}const Y="2016-11-15";function ee(e){return(n,t)=>async s=>{const{input:o}=s;if(!o.PresignedUrl){const p=await e.region(),d=await h(o,{getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}},{...e,region:o.SourceRegion}),y=typeof e.endpoint=="function"?await e.endpoint():V(d),f=new S({...y,protocol:"https",headers:{host:y.hostname},query:{...Object.entries(o).reduce((C,[g,P])=>(C[g]=String(P??""),C),{}),Action:"CopySnapshot",Version:Y,DestinationRegion:p}}),I=await new K({credentials:e.credentials,region:o.SourceRegion,service:"ec2",sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(f,{expiresIn:3600});if(s={...s,input:{...s.input,DestinationRegion:p,PresignedUrl:X(I)}},S.isInstance(s.request)){const{request:C}=s;(C.body??"").includes("DestinationRegion=")||(C.body+=`&DestinationRegion=${p}`),(C.body??"").includes("PresignedUrl=")||(C.body+=`&PresignedUrl=${q(s.input.PresignedUrl)}`)}}return n(s)}}const ne={step:"serialize",tags:["CROSS_REGION_PRESIGNED_URL"],name:"crossRegionPresignedUrlMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"},te=e=>({applyToStack:n=>{n.add(ee(e),ne)}});class se extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions()),te(s)]}).s("AmazonEC2","CopySnapshot",{}).n("EC2Client","CopySnapshotCommand").sc(D).build(){}class oe extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateImage",{}).n("EC2Client","CreateImageCommand").sc(w).build(){}class ie extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateKeyPair",{}).n("EC2Client","CreateKeyPairCommand").sc(A).build(){}class ae extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateSnapshot",{}).n("EC2Client","CreateSnapshotCommand").sc(x).build(){}class ce extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateSubnet",{}).n("EC2Client","CreateSubnetCommand").sc(R).build(){}class ue extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateVolume",{}).n("EC2Client","CreateVolumeCommand").sc(z).build(){}class re extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateVpc",{}).n("EC2Client","CreateVpcCommand").sc(Q).build(){}class le extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteKeyPair",{}).n("EC2Client","DeleteKeyPairCommand").sc(_).build(){}class me extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteSnapshot",{}).n("EC2Client","DeleteSnapshotCommand").sc(B).build(){}class de extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteSubnet",{}).n("EC2Client","DeleteSubnetCommand").sc(F).build(){}class Ce extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteVolume",{}).n("EC2Client","DeleteVolumeCommand").sc(M).build(){}class pe extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteVpc",{}).n("EC2Client","DeleteVpcCommand").sc(T).build(){}class ye extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DetachVolume",{}).n("EC2Client","DetachVolumeCommand").sc(U).build(){}class fe extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","GetConsoleOutput",{}).n("EC2Client","GetConsoleOutputCommand").sc(k).build(){}class Ie extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ImportKeyPair",{}).n("EC2Client","ImportKeyPairCommand").sc(N).build(){}class be extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ModifyInstanceAttribute",{}).n("EC2Client","ModifyInstanceAttributeCommand").sc(O).build(){}class Ee extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ModifyVolume",{}).n("EC2Client","ModifyVolumeCommand").sc(G).build(){}class Se extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RebootInstances",{}).n("EC2Client","RebootInstancesCommand").sc(Z).build(){}class ge extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RunInstances",{}).n("EC2Client","RunInstancesCommand").sc(j).build(){}class Pe extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StartInstances",{}).n("EC2Client","StartInstancesCommand").sc(H).build(){}class $e extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StopInstances",{}).n("EC2Client","StopInstancesCommand").sc(L).build(){}class ve extends i.classBuilder().ep(a).m(function(n,t,s,o){return[c(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","TerminateInstances",{}).n("EC2Client","TerminateInstancesCommand").sc(J).build(){}const he=/\s+/;function We(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ve,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ve(e){const n=new Pe({InstanceIds:[e]});return r().send(n)}function Xe(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ke,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ke(e){const n=new $e({InstanceIds:[e]});return r().send(n)}function Ye(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:qe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function qe(e){const n=new ve({InstanceIds:[e]});return r().send(n)}function en(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:De,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function De(e){const n=new Se({InstanceIds:[e]});return r().send(n)}function nn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:we,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function we(e){const n=new ge({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0});return r().send(n)}function tn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ae,onSuccess:()=>{n.invalidateQueries(b)}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ae(e){const n=new ie({KeyName:e.keyName,KeyType:"rsa"});return r().send(n)}function sn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:xe,onSuccess:()=>{n.invalidateQueries(b)}},e[0]=n,e[1]=t):t=e[1],l(t)}function xe(e){const t=e.publicKeyMaterial.trim().split(he).slice(0,2).join(" "),s=new Ie({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return r().send(s)}function on(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Re,onSuccess:()=>{n.invalidateQueries(b)}},e[0]=n,e[1]=t):t=e[1],l(t)}function Re(e){const n=new le({KeyPairId:e});return r().send(n)}function an(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:ze,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function ze(e){const n=new ue({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:"gp3"});return r().send(n)}function cn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Qe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Qe(e){const n=new Ee({VolumeId:e.volumeId,Size:e.size});return r().send(n)}function un(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function _e(e){const n=new Ce({VolumeId:e});return r().send(n)}function rn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Be,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Be(e){const n=new ae({VolumeId:e.volumeId,Description:e.description||void 0});return r().send(n)}function ln(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Fe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Fe(e){const n=new me({SnapshotId:e});return r().send(n)}function mn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Me,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","snapshots"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Me(e){const n=new se({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return r().send(n)}function dn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Te,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]}),n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Te(e){const n=new W({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return r().send(n)}function Cn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ue,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]}),n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ue(e){const n=new ye({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return r().send(n)}function pn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:ke,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function ke(e){const{instanceId:n,...t}=e,s=new be({InstanceId:n,InstanceType:{Value:t.instanceType}});return r().send(s)}function yn(){const e=u.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={mutationFn:Ne},e[0]=n):n=e[0],l(n)}function Ne(e){const n=new fe({InstanceId:e});return r().send(n)}function fn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Oe,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","images"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Oe(e){const n=new oe({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return r().send(n)}function In(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ge,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","vpcs"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ge(e){const n=new re({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:"vpc",Tags:[{Key:"Name",Value:e.name}]}]:void 0});return r().send(n)}function bn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:Ze,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","vpcs"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function Ze(e){const n=new pe({VpcId:e});return r().send(n)}function En(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:je,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","subnets"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function je(e){const n=new ce({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0});return r().send(n)}function Sn(){const e=u.c(2),n=m();let t;return e[0]!==n?(t={mutationFn:He,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","subnets"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function He(e){const n=new de({SubnetId:e});return r().send(n)}export{an as a,En as b,rn as c,sn as d,tn as e,nn as f,bn as g,cn as h,un as i,dn as j,Cn as k,Sn as l,ln as m,mn as n,on as o,fn as p,We as q,Xe as r,en as s,Ye as t,In as u,pn as v,yn as w}; diff --git a/hive/services/hiveui/frontend/dist/assets/ec22.js b/hive/services/hiveui/frontend/dist/assets/ec22.js index 35e29af6b..d51d05bb1 100644 --- a/hive/services/hiveui/frontend/dist/assets/ec22.js +++ b/hive/services/hiveui/frontend/dist/assets/ec22.js @@ -1 +1 @@ -import{o as i,f as e,ao as a,ap as s,aq as t}from"./index.js";const r=i({imageId:e("Please select an Image"),instanceType:e("Please select an instance type"),keyName:e("Please select a key pair"),subnetId:e().optional(),count:s("Instance count must be a whole number").min(1,"Instance count must be at least 1")}),c=i({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters")}),m=i({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters"),publicKeyMaterial:e().min(1,"Public key is required").refine(n=>n.trim().length>0,"Public key cannot be empty")}),l=i({size:a().int("Size must be a whole number").min(1,"Size must be at least 1 GiB").max(16384,"Size must be at most 16384 GiB"),availabilityZone:e().min(1,"Availability zone is required")}),u=i({size:a().int("Size must be a whole number").min(1,"Size must be at least 1 GiB")}),d=i({volumeId:e().min(1,"Volume is required"),description:e().optional()});i({sourceSnapshotId:e().min(1,"Source snapshot is required"),sourceRegion:e().min(1,"Source region is required"),description:e().optional()});i({volumeId:e().min(1,"Volume is required"),instanceId:e().min(1,"Instance is required"),device:e().optional()});i({volumeId:e().min(1,"Volume is required"),instanceId:e().optional(),force:t().optional()});i({instanceType:e().min(1,"Instance type is required")});i({name:e().min(1,"Name is required"),description:e().optional()});const b=i({vpcId:e().min(1,"VPC is required"),cidrBlock:e().min(1,"CIDR block is required").regex(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,"Must be a valid CIDR block (e.g. 10.0.1.0/24)"),availabilityZone:e().optional()}),p=i({cidrBlock:e().min(1,"CIDR block is required").regex(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,"Must be a valid CIDR block (e.g. 10.0.0.0/16)"),name:e().optional()});export{l as a,b,p as c,d,c as e,r as f,m as i,u as m}; +import{o as i,i as e,aN as a,aO as s,aP as t}from"./index.js";const r=i({imageId:e("Please select an Image"),instanceType:e("Please select an instance type"),keyName:e("Please select a key pair"),subnetId:e().optional(),count:s("Instance count must be a whole number").min(1,"Instance count must be at least 1")}),c=i({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters")}),m=i({keyName:e().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters"),publicKeyMaterial:e().min(1,"Public key is required").refine(n=>n.trim().length>0,"Public key cannot be empty")}),l=i({size:a().int("Size must be a whole number").min(1,"Size must be at least 1 GiB").max(16384,"Size must be at most 16384 GiB"),availabilityZone:e().min(1,"Availability zone is required")}),u=i({size:a().int("Size must be a whole number").min(1,"Size must be at least 1 GiB")}),d=i({volumeId:e().min(1,"Volume is required"),description:e().optional()});i({sourceSnapshotId:e().min(1,"Source snapshot is required"),sourceRegion:e().min(1,"Source region is required"),description:e().optional()});i({volumeId:e().min(1,"Volume is required"),instanceId:e().min(1,"Instance is required"),device:e().optional()});i({volumeId:e().min(1,"Volume is required"),instanceId:e().optional(),force:t().optional()});i({instanceType:e().min(1,"Instance type is required")});i({name:e().min(1,"Name is required"),description:e().optional()});const b=i({vpcId:e().min(1,"VPC is required"),cidrBlock:e().min(1,"CIDR block is required").regex(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,"Must be a valid CIDR block (e.g. 10.0.1.0/24)"),availabilityZone:e().optional()}),p=i({cidrBlock:e().min(1,"CIDR block is required").regex(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,"Must be a valid CIDR block (e.g. 10.0.0.0/16)"),name:e().optional()});export{l as a,b,p as c,d,c as e,r as f,m as i,u as m}; diff --git a/hive/services/hiveui/frontend/dist/assets/error-banner.js b/hive/services/hiveui/frontend/dist/assets/error-banner.js index 46ac5cfea..68d9ca462 100644 --- a/hive/services/hiveui/frontend/dist/assets/error-banner.js +++ b/hive/services/hiveui/frontend/dist/assets/error-banner.js @@ -1 +1 @@ -import{cs as d,ct as m,cu as c,cv as p,cw as l,aj as b,r as h,cx as v,cy as f,c as y,j as u}from"./index.js";var x=class extends d{#e;#i=void 0;#t;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),m(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&c(t.mutationKey)!==c(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#o(e)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(e,t){return this.#s=t,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){const e=this.#t?.state??p();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#o(e){l.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,r=this.#i.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function E(e,t){const r=b(),[s]=h.useState(()=>new x(r,e));h.useEffect(()=>{s.setOptions(e)},[s,e]);const i=h.useSyncExternalStore(h.useCallback(o=>s.subscribe(l.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),n=h.useCallback((o,a)=>{s.mutate(o,a).catch(v)},[s]);if(i.error&&f(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}function g(e){const t=y.c(7),{msg:r,error:s}=e;let i;s&&(i=s.name!=="Error"?s.name:s.message);let n;t[0]!==r?(n=r&&u.jsx("h2",{className:"text-destructive text-sm",children:r}),t[0]=r,t[1]=n):n=t[1];let o;t[2]!==i?(o=i&&u.jsx("p",{className:"text-destructive text-sm",children:i}),t[2]=i,t[3]=o):o=t[3];let a;return t[4]!==n||t[5]!==o?(a=u.jsxs("div",{className:"mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4",children:[n,o]}),t[4]=n,t[5]=o,t[6]=a):a=t[6],a}export{g as E,E as u}; +import{ba as d,bd as m,bp as c,bq as b,bn as l,aq as p,r as h,bf as v,bo as f,c as y,j as u}from"./index.js";var x=class extends d{#e;#i=void 0;#t;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),m(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&c(t.mutationKey)!==c(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#o(e)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(e,t){return this.#s=t,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){const e=this.#t?.state??b();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#o(e){l.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,r=this.#i.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function E(e,t){const r=p(),[s]=h.useState(()=>new x(r,e));h.useEffect(()=>{s.setOptions(e)},[s,e]);const i=h.useSyncExternalStore(h.useCallback(o=>s.subscribe(l.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),n=h.useCallback((o,a)=>{s.mutate(o,a).catch(v)},[s]);if(i.error&&f(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}function g(e){const t=y.c(7),{msg:r,error:s}=e;let i;s&&(i=s.name!=="Error"?s.name:s.message);let n;t[0]!==r?(n=r&&u.jsx("h2",{className:"text-destructive text-sm",children:r}),t[0]=r,t[1]=n):n=t[1];let o;t[2]!==i?(o=i&&u.jsx("p",{className:"text-destructive text-sm",children:i}),t[2]=i,t[3]=o):o=t[3];let a;return t[4]!==n||t[5]!==o?(a=u.jsxs("div",{className:"mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4",children:[n,o]}),t[4]=n,t[5]=o,t[6]=a):a=t[6],a}export{g as E,E as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/field.js b/hive/services/hiveui/frontend/dist/assets/field.js index f46456975..a100b71d0 100644 --- a/hive/services/hiveui/frontend/dist/assets/field.js +++ b/hive/services/hiveui/frontend/dist/assets/field.js @@ -1 +1 @@ -import{r as p,bP as m,bb as E,aV as y,bQ as w,bg as C,b0 as V,a_ as b,bR as M,bJ as S,c as h,j as v,a as I,bS as k}from"./index.js";let R=(function(t){return t.disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t})({});const N={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},J={valid(t){return t===null?null:t?{[R.valid]:""}:{[R.invalid]:""}}},F=p.createContext({invalid:void 0,name:void 0,validityData:{state:N,errors:[],error:"",value:"",initialValue:null},setValidityData:m,disabled:void 0,touched:!1,setTouched:m,dirty:!1,setDirty:m,filled:!1,setFilled:m,focused:!1,setFocused:m,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(t=y)=>t,getInputValidationProps:(t=y)=>t,inputRef:{current:null},commit:async()=>{}}});function T(t=!0){const e=p.useContext(F);if(e.setValidityData===m&&!t)throw new Error(E(28));return e}const j=p.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:m,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function L(){return p.useContext(j)}const D=p.createContext({controlId:void 0,registerControlId:m,labelId:void 0,setLabelId:m,messageIds:[],setMessageIds:m,getDescriptionProps:t=>t});function P(){return p.useContext(D)}function O(t,e){return{...t,state:{...t.state,valid:!e&&t.state.valid}}}function Y({controlled:t,default:e,name:a,state:l="value"}){const{current:s}=p.useRef(t!==void 0),[n,i]=p.useState(e),o=s?t:n,d=p.useCallback(f=>{s||i(f)},[]);return[o,d]}function q(t={}){const{id:e,implicit:a=!1,controlRef:l}=t,{controlId:s,registerControlId:n}=P(),i=w(e),o=a?s:void 0,d=C(()=>Symbol("labelable-control")),f=p.useRef(!1),c=p.useRef(e!=null),u=V(()=>{!f.current||n===m||(f.current=!1,n(d.current,void 0))});return b(()=>{if(n===m)return;let r;if(a){const x=l?.current;M(x)&&x.closest("label")!=null?r=e??null:r=o??i}else if(e!=null)c.current=!0,r=e;else if(c.current)r=i;else{u();return}if(r===void 0){u();return}f.current=!0,n(d.current,r)},[e,l,o,n,a,i,d,u]),p.useEffect(()=>u,[u]),s??i}function z(t){const{enabled:e=!0,value:a,id:l,name:s,controlRef:n,commit:i}=t,{formRef:o}=L(),{invalid:d,markedDirtyRef:f,validityData:c,setValidityData:u}=T(),r=V(t.getValue);b(()=>{if(!e)return;let x=a;x===void 0&&(x=r()),c.initialValue===null&&x!==null&&u(g=>({...g,initialValue:x}))},[e,u,a,c.initialValue,r]),b(()=>{!e||!l||o.current.fields.set(l,{getValue:r,name:s,controlRef:n,validityData:O(c,d),validate(x=!0){let g=a;g===void 0&&(g=r()),f.current=!0,x?S.flushSync(()=>i(g)):i(g)}})},[i,n,e,o,r,l,d,f,s,c,a]),b(()=>{const x=o.current.fields;return()=>{l&&x.delete(l)}},[o,l])}function G(t){const e=h.c(8);let a,l;e[0]!==t?({className:a,...l}=t,e[0]=t,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let s;e[3]!==a?(s=I("group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",a),e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=v.jsx("div",{className:s,"data-slot":"field-group",...l}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}const U=k("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"@md/field-group:flex-row flex-col @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:[&>*]:w-auto [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function Q(t){const e=h.c(11);let a,l,s;e[0]!==t?({className:a,orientation:s,...l}=t,e[0]=t,e[1]=a,e[2]=l,e[3]=s):(a=e[1],l=e[2],s=e[3]);const n=s===void 0?"vertical":s;let i;e[4]!==a||e[5]!==n?(i=I(U({orientation:n}),a),e[4]=a,e[5]=n,e[6]=i):i=e[6];let o;return e[7]!==n||e[8]!==l||e[9]!==i?(o=v.jsx("div",{className:i,"data-orientation":n,"data-slot":"field",role:"group",...l}),e[7]=n,e[8]=l,e[9]=i,e[10]=o):o=e[10],o}function W(t){const e=h.c(8);let a,l;e[0]!==t?({className:a,...l}=t,e[0]=t,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let s;e[3]!==a?(s=I("flex w-fit items-center gap-2 font-medium text-xs/relaxed leading-snug group-data-[disabled=true]/field:opacity-50",a),e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=v.jsx("div",{className:s,"data-slot":"field-label",...l}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function H(t){const e=h.c(15);let a,l,s,n;e[0]!==t?({className:l,children:a,errors:s,...n}=t,e[0]=t,e[1]=a,e[2]=l,e[3]=s,e[4]=n):(a=e[1],l=e[2],s=e[3],n=e[4]);let i;e:{if(a){i=a;break e}if(!s?.length){i=null;break e}let c;e[5]!==s?(c=[...new Map(s.map($)).values()],e[5]=s,e[6]=c):c=e[6];const u=c;if(u?.length===1){i=u[0]?.message;break e}let r;e[7]!==u?(r=v.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:u.map(_)}),e[7]=u,e[8]=r):r=e[8],i=r}const o=i;if(!o)return null;let d;e[9]!==l?(d=I("font-normal text-destructive text-xs/relaxed",l),e[9]=l,e[10]=d):d=e[10];let f;return e[11]!==o||e[12]!==n||e[13]!==d?(f=v.jsx("div",{className:d,"data-slot":"field-error",role:"alert",...n,children:o}),e[11]=o,e[12]=n,e[13]=d,e[14]=f):f=e[14],f}function _(t){return t?.message&&v.jsx("li",{children:t.message},t.message)}function $(t){return[t?.message,t]}export{H as F,W as a,Q as b,G as c,T as d,q as e,Y as f,z as g,P as h,J as i,L as u}; +import{r as p,aX as m,aY as E,aZ as y,a_ as w,a$ as C,b0 as V,b1 as b,b2 as M,b3 as k,c as h,j as v,a as I,b4 as N}from"./index.js";let R=(function(t){return t.disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t})({});const S={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},B={valid(t){return t===null?null:t?{[R.valid]:""}:{[R.invalid]:""}}},F=p.createContext({invalid:void 0,name:void 0,validityData:{state:S,errors:[],error:"",value:"",initialValue:null},setValidityData:m,disabled:void 0,touched:!1,setTouched:m,dirty:!1,setDirty:m,filled:!1,setFilled:m,focused:!1,setFocused:m,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(t=y)=>t,getInputValidationProps:(t=y)=>t,inputRef:{current:null},commit:async()=>{}}});function T(t=!0){const e=p.useContext(F);if(e.setValidityData===m&&!t)throw new Error(E(28));return e}const j=p.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:m,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function L(){return p.useContext(j)}const D=p.createContext({controlId:void 0,registerControlId:m,labelId:void 0,setLabelId:m,messageIds:[],setMessageIds:m,getDescriptionProps:t=>t});function O(){return p.useContext(D)}function P(t,e){return{...t,state:{...t.state,valid:!e&&t.state.valid}}}function q({controlled:t,default:e,name:a,state:l="value"}){const{current:s}=p.useRef(t!==void 0),[n,i]=p.useState(e),o=s?t:n,d=p.useCallback(f=>{s||i(f)},[]);return[o,d]}function z(t={}){const{id:e,implicit:a=!1,controlRef:l}=t,{controlId:s,registerControlId:n}=O(),i=w(e),o=a?s:void 0,d=C(()=>Symbol("labelable-control")),f=p.useRef(!1),c=p.useRef(e!=null),u=V(()=>{!f.current||n===m||(f.current=!1,n(d.current,void 0))});return b(()=>{if(n===m)return;let r;if(a){const x=l?.current;M(x)&&x.closest("label")!=null?r=e??null:r=o??i}else if(e!=null)c.current=!0,r=e;else if(c.current)r=i;else{u();return}if(r===void 0){u();return}f.current=!0,n(d.current,r)},[e,l,o,n,a,i,d,u]),p.useEffect(()=>u,[u]),s??i}function G(t){const{enabled:e=!0,value:a,id:l,name:s,controlRef:n,commit:i}=t,{formRef:o}=L(),{invalid:d,markedDirtyRef:f,validityData:c,setValidityData:u}=T(),r=V(t.getValue);b(()=>{if(!e)return;let x=a;x===void 0&&(x=r()),c.initialValue===null&&x!==null&&u(g=>({...g,initialValue:x}))},[e,u,a,c.initialValue,r]),b(()=>{!e||!l||o.current.fields.set(l,{getValue:r,name:s,controlRef:n,validityData:P(c,d),validate(x=!0){let g=a;g===void 0&&(g=r()),f.current=!0,x?k.flushSync(()=>i(g)):i(g)}})},[i,n,e,o,r,l,d,f,s,c,a]),b(()=>{const x=o.current.fields;return()=>{l&&x.delete(l)}},[o,l])}function J(t){const e=h.c(8);let a,l;e[0]!==t?({className:a,...l}=t,e[0]=t,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let s;e[3]!==a?(s=I("group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",a),e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=v.jsx("div",{className:s,"data-slot":"field-group",...l}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}const $=N("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"@md/field-group:flex-row flex-col @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:[&>*]:w-auto [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function W(t){const e=h.c(11);let a,l,s;e[0]!==t?({className:a,orientation:s,...l}=t,e[0]=t,e[1]=a,e[2]=l,e[3]=s):(a=e[1],l=e[2],s=e[3]);const n=s===void 0?"vertical":s;let i;e[4]!==a||e[5]!==n?(i=I($({orientation:n}),a),e[4]=a,e[5]=n,e[6]=i):i=e[6];let o;return e[7]!==n||e[8]!==l||e[9]!==i?(o=v.jsx("div",{className:i,"data-orientation":n,"data-slot":"field",role:"group",...l}),e[7]=n,e[8]=l,e[9]=i,e[10]=o):o=e[10],o}function X(t){const e=h.c(8);let a,l;e[0]!==t?({className:a,...l}=t,e[0]=t,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let s;e[3]!==a?(s=I("flex w-fit items-center gap-2 font-medium text-xs/relaxed leading-snug group-data-[disabled=true]/field:opacity-50",a),e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=v.jsx("div",{className:s,"data-slot":"field-label",...l}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function Z(t){const e=h.c(15);let a,l,s,n;e[0]!==t?({className:l,children:a,errors:s,...n}=t,e[0]=t,e[1]=a,e[2]=l,e[3]=s,e[4]=n):(a=e[1],l=e[2],s=e[3],n=e[4]);let i;e:{if(a){i=a;break e}if(!s?.length){i=null;break e}let c;e[5]!==s?(c=[...new Map(s.map(_)).values()],e[5]=s,e[6]=c):c=e[6];const u=c;if(u?.length===1){i=u[0]?.message;break e}let r;e[7]!==u?(r=v.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:u.map(U)}),e[7]=u,e[8]=r):r=e[8],i=r}const o=i;if(!o)return null;let d;e[9]!==l?(d=I("font-normal text-destructive text-xs/relaxed",l),e[9]=l,e[10]=d):d=e[10];let f;return e[11]!==o||e[12]!==n||e[13]!==d?(f=v.jsx("div",{className:d,"data-slot":"field-error",role:"alert",...n,children:o}),e[11]=o,e[12]=n,e[13]=d,e[14]=f):f=e[14],f}function U(t){return t?.message&&v.jsx("li",{children:t.message},t.message)}function _(t){return[t?.message,t]}export{Z as F,X as a,W as b,J as c,O as d,z as e,q as f,G as g,B as h,L as i,T as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/iam.js b/hive/services/hiveui/frontend/dist/assets/iam.js new file mode 100644 index 000000000..c4f76279a --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/iam.js @@ -0,0 +1 @@ +import{N as a,ay as i,Q as o,az as d,aA as y,aB as C,aC as p,aD as A,aE as f,aF as P,aG as I,aH as U,c as r,aq as u,aI as l}from"./index.js";import{u as m}from"./error-banner.js";class K extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","AttachUserPolicy",{}).n("IAMClient","AttachUserPolicyCommand").sc(d).build(){}class D extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","CreateAccessKey",{}).n("IAMClient","CreateAccessKeyCommand").sc(y).build(){}class g extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","CreatePolicy",{}).n("IAMClient","CreatePolicyCommand").sc(C).build(){}class q extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","CreateUser",{}).n("IAMClient","CreateUserCommand").sc(p).build(){}class M extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","DeleteAccessKey",{}).n("IAMClient","DeleteAccessKeyCommand").sc(A).build(){}class S extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","DeletePolicy",{}).n("IAMClient","DeletePolicyCommand").sc(f).build(){}class $ extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","DeleteUser",{}).n("IAMClient","DeleteUserCommand").sc(P).build(){}class h extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","DetachUserPolicy",{}).n("IAMClient","DetachUserPolicyCommand").sc(I).build(){}class N extends a.classBuilder().ep(i).m(function(t,n,s,c){return[o(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","UpdateAccessKey",{}).n("IAMClient","UpdateAccessKeyCommand").sc(U).build(){}function k(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","users"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function E(e){const t=new q({UserName:e.userName,Path:e.path||void 0});return l().send(t)}function z(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:v,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","users"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function v(e){const t=new $({UserName:e});return l().send(t)}function G(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:x,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","access-keys"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function x(e){const t=new D({UserName:e});return l().send(t)}function H(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:Q,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","access-keys"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function Q(e){const{userName:t,accessKeyId:n}=e,s=new M({UserName:t,AccessKeyId:n});return l().send(s)}function R(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:b,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","access-keys"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function b(e){const{userName:t,accessKeyId:n,status:s}=e,c=new N({UserName:t,AccessKeyId:n,Status:s});return l().send(c)}function j(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:B,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","policies"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function B(e){const t=new g({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return l().send(t)}function J(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:F,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","policies"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function F(e){const t=new S({PolicyArn:e});return l().send(t)}function L(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:w,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","attached-user-policies"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function w(e){const{userName:t,policyArn:n}=e,s=new K({UserName:t,PolicyArn:n});return l().send(s)}function O(){const e=r.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:V,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","attached-user-policies"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function V(e){const{userName:t,policyArn:n}=e,s=new h({UserName:t,PolicyArn:n});return l().send(s)}export{j as a,z as b,G as c,H as d,R as e,L as f,O as g,J as h,k as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/iam2.js b/hive/services/hiveui/frontend/dist/assets/iam2.js new file mode 100644 index 000000000..64f2f500d --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/iam2.js @@ -0,0 +1 @@ +import{o as r,i as e}from"./index.js";const c=r({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=r({policyName:e().min(1,"Policy name is required").max(128,"Policy name must be 128 characters or less"),description:e().optional(),policyDocument:e().min(1,"Policy document is required").refine(a=>{try{return JSON.parse(a),!0}catch{return!1}},{message:"Policy document must be valid JSON"})});export{i as a,c}; diff --git a/hive/services/hiveui/frontend/dist/assets/index.css b/hive/services/hiveui/frontend/dist/assets/index.css index 11e5aafd0..cffc3d7a3 100644 --- a/hive/services/hiveui/frontend/dist/assets/index.css +++ b/hive/services/hiveui/frontend/dist/assets/index.css @@ -1 +1 @@ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-800:oklch(27.8% .033 256.848);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-800:oklch(27.4% .006 286.033);--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 2px);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{overscroll-behavior:none;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}*{scrollbar-width:thin}body{background-color:var(--background);width:100%;min-height:100svh;color:var(--foreground);font-family:var(--font-sans),sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-mono{font-family:var(--font-mono),monospace}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.end\!{inset-inline-end:var(--spacing)!important}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-1{bottom:calc(var(--spacing) * 1)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.order-first{order:-9999}.order-last{order:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing) * -2)}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-\[1\.2rem\]{width:1.2rem;height:1.2rem}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[calc\(--spacing\(4\.75\)\)\]{height:calc(calc(var(--spacing) * 4.75))}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 72) - calc(var(--spacing) * 9)),calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-px{gap:1px}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[calc\(var\(--radius-sm\)\+2px\)\]{border-radius:calc(var(--radius-sm) + 2px)}.rounded-\[calc\(var\(--radius-sm\)-2px\)\]{border-radius:calc(var(--radius-sm) - 2px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:calc(var(--radius) + 2px)}.rounded-md{border-radius:var(--radius)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-border,.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border\/50{background-color:color-mix(in oklab,var(--border) 50%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-input\/20{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.bg-input\/20{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted) 20%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.text-\[0\.625rem\]{font-size:.625rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground) 70%,transparent)}}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.bg-blend-color{background-blend-mode:color}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[orientation\=horizontal\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.group\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.group\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2)}.group-has-\[\>input\]\/input-group\:pb-2:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offExamples\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:w-0:is(:where(.group)[data-collapsible=offExamples] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offExamples\]\:translate-x-0:is(:where(.group)[data-collapsible=offExamples] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.group\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.group\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/alert-dialog-content\:grid:is(:where(.group\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\[size\=sm\]\/alert-dialog-content\:grid-cols-2:is(:where(.group\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.group\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.group\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:calc(var(--radius) + 2px)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing) * -2)}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-xs\/relaxed::file-selector-button{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-border:after{content:var(--tw-content);border-color:var(--border)}.after\:mix-blend-darken:after{content:var(--tw-content);mix-blend-mode:darken}.group-data-\[collapsible\=offExamples\]\:after\:left-full:is(:where(.group)[data-collapsible=offExamples] *):after{content:var(--tw-content);left:100%}.last\:mt-0:last-child{margin-top:calc(var(--spacing) * 0)}.focus-within\:border-ring:focus-within{border-color:var(--ring)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offExamples\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offExamples] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible,.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:border-inherit:focus-within{border-color:inherit}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:ring-0:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--destructive)}.has-aria-invalid\:ring-2:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 5%,transparent)}}.has-data-\[align\=block-end\]\:rounded-md:has([data-align=block-end]),.has-data-\[align\=block-start\]\:rounded-md:has([data-align=block-start]){border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_auto_1fr\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\[slot\=alert-dialog-media\]\:gap-x-4:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 4)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=combobox-chip\]\:px-1:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-2:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-2:has([data-slot][aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-\[textarea\]\:rounded-md:has(:is(textarea)){border-radius:var(--radius)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing) * 3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:var(--radius)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing) * 3)}.has-\[\>button\]\:mr-\[-0\.275rem\]:has(>button){margin-right:-.275rem}.has-\[\>button\]\:ml-\[-0\.275rem\]:has(>button){margin-left:-.275rem}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.has-\[\>kbd\]\:mr-\[-0\.275rem\]:has(>kbd){margin-right:-.275rem}.has-\[\>kbd\]\:ml-\[-0\.275rem\]:has(>kbd){margin-left:-.275rem}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-0[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-2[aria-invalid=true],.aria-invalid\:ring-\[2px\][aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-active\:bg-sidebar-accent[data-active]{background-color:var(--sidebar-accent)}.data-active\:font-medium[data-active]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-sidebar-accent-foreground[data-active]{color:var(--sidebar-accent-foreground)}.data-closed\:overflow-hidden[data-closed]{overflow:hidden}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted],:is(.not-data-\[variant\=destructive\]\:data-highlighted\:\*\*\:text-accent-foreground:not([data-variant=destructive])[data-highlighted] *){color:var(--accent-foreground)}.data-inset\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-open\:bg-accent[data-open]{background-color:var(--accent)}.data-open\:text-accent-foreground[data-open]{color:var(--accent-foreground)}.data-open\:opacity-100[data-open]{opacity:1}@media(hover:hover){.data-open\:hover\:bg-sidebar-accent[data-open]:hover{background-color:var(--sidebar-accent)}.data-open\:hover\:text-sidebar-accent-foreground[data-open]:hover{color:var(--sidebar-accent-foreground)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]{align-self:stretch}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing) * 1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing) * 0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing) * 0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:border-l[data-side=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing) * 0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[size\=default\]\:h-7[data-size=default]{height:calc(var(--spacing) * 7)}.data-\[size\=default\]\:max-w-xs[data-size=default]{max-width:var(--container-xs)}.data-\[size\=lg\]\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\[size\=md\]\:text-xs[data-size=md]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:h-6[data-size=sm]{height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:max-w-64[data-size=sm]{max-width:calc(var(--spacing) * 64)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}:is(.\*\:data-\[slot\=avatar\]\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing) * 3)}:is(.\*\:data-\[slot\=field\]\:p-2>*)[data-slot=field]{padding:calc(var(--spacing) * 2)}:is(.\*\:data-\[slot\=field-group\]\:gap-4>*)[data-slot=field-group]{gap:calc(var(--spacing) * 4)}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-7>*)[data-slot=input-group]{height:calc(var(--spacing) * 7)}:is(.\*\:data-\[slot\=input-group\]\:border-none>*)[data-slot=input-group]{--tw-border-style:none;border-style:none}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-\[calc\(var\(--radius-sm\)-2px\)\] *)[data-slot=kbd]{border-radius:calc(var(--radius-sm) - 2px)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-md *)[data-slot=kbd]{border-radius:var(--radius)}:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}:is(.\*\*\:data-\[slot\=kbd\]\:px-1 *)[data-slot=kbd]{padding-inline:calc(var(--spacing) * 1)}:is(.\*\*\:data-\[slot\=kbd\]\:text-\[0\.625rem\] *)[data-slot=kbd]{font-size:.625rem}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing) * 1.5)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:text-sidebar-accent-foreground[data-state=open]{color:var(--sidebar-accent-foreground)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-xs\/relaxed[data-variant=label]{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.data-\[variant\=legend\]\:text-sm[data-variant=legend]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing) * -1)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media(min-width:40rem){.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:row-span-2:is(:where(.group\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:place-items-start:is(:where(.group\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:text-left:is(:where(.group\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:group-has-data-\[slot\=alert-dialog-media\]\/alert-dialog-content\:col-start-2:is(:where(.group\/alert-dialog-content)[data-size=default] *):is(:where(.group\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_1fr\]:is(:where(.group\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right],.data-\[size\=default\]\:sm\:max-w-sm[data-size=default]{max-width:var(--container-sm)}}@media(min-width:48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.md\:text-pretty{text-wrap:pretty}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@container field-group (min-width:28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}@media(prefers-color-scheme:dark){.dark\:scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90{rotate:-90deg}.dark\:rotate-0{rotate:none}.dark\:bg-destructive\/20{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/20{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:bg-green-900{background-color:var(--color-green-900)}.dark\:bg-input\/30{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30{background-color:color-mix(in oklab,var(--input) 30%,transparent)}}.dark\:bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-muted\/30{background-color:color-mix(in oklab,var(--muted) 30%,transparent)}}.dark\:bg-popover{background-color:var(--popover)}.dark\:bg-red-900{background-color:var(--color-red-900)}.dark\:bg-transparent{background-color:#0000}.dark\:bg-yellow-900{background-color:var(--color-yellow-900)}.dark\:bg-zinc-800{background-color:var(--color-zinc-800)}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-green-100{color:var(--color-green-100)}.dark\:text-red-100{color:var(--color-red-100)}.dark\:text-yellow-100{color:var(--color-yellow-100)}.dark\:text-zinc-400{color:var(--color-zinc-400)}.dark\:after\:mix-blend-lighten:after{content:var(--tw-content);mix-blend-mode:lighten}@media(hover:hover){.dark\:hover\:bg-destructive\/30:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/30:hover{background-color:color-mix(in oklab,var(--destructive) 30%,transparent)}}.dark\:hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.dark\:hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing) * 2)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-2.border-t{padding-top:calc(var(--spacing) * 2)}.\[\.border-t\]\:pt-4.border-t{padding-top:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-3:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media(hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-lg>*):is(img:first-child){border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}:is(.\*\:\[img\:last-child\]\:rounded-b-lg>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>\*\]\:w-full>*{width:100%}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}@container field-group (min-width:28rem){.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-1\.5:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 1.5)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-1\.5:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 1.5)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-2\.5\!>svg{width:calc(var(--spacing) * 2.5)!important;height:calc(var(--spacing) * 2.5)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.group\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.group\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=default] *)>svg,.group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.group\/avatar)[data-size=sm] *)>svg{display:none}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3>svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}[data-side=left][data-collapsible=offExamples] .\[\[data-side\=left\]\[data-collapsible\=offExamples\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offExamples] .\[\[data-side\=right\]\[data-collapsible\=offExamples\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing) * -1.5)}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable", sans-serif;--font-mono:"JetBrains Mono Variable", monospace;--background:#f4f1ec;--foreground:#1d2930;--card:#f9f8f6;--card-foreground:#1d2930;--popover:#fbfaf9;--popover-foreground:#1d2930;--primary:#305030;--primary-foreground:#f5f3ef;--secondary:#eae5d7;--secondary-foreground:#263740;--muted:#e9e7e2;--muted-foreground:#576b75;--accent:#e7e2da;--accent-foreground:#1d2930;--destructive:#c32222;--destructive-foreground:#fff;--border:#b6c9b6;--input:#dedbd3;--ring:#3e743e;--chart-1:#2e6b2e;--chart-2:#cfa117;--chart-3:#297aa3;--chart-4:#cc8c33;--chart-5:#b82e2e;--radius:.25rem;--sidebar:#f5f3f0;--sidebar-background:#f5f3f0;--sidebar-foreground:#263740;--sidebar-primary:#305030;--sidebar-primary-foreground:#f5f3ef;--sidebar-accent:#e7e2da;--sidebar-accent-foreground:#1d2930;--sidebar-border:#c4d4c4;--sidebar-ring:#3e743e;--tactical-amber:#c2940a;--tactical-amber-dim:#d6b85c;--tactical-green:#267326;--tactical-green-dim:#7ab87a;--tactical-cyan:#24868f;--tactical-cyan-dim:#5eb2ba;--tactical-red:#bd2828;--tactical-olive:#64783a;--scanline-opacity:.015}.dark{--background:#0d1012;--foreground:#e0ddd1;--card:#14181a;--card-foreground:#e0ddd1;--popover:#111517;--popover-foreground:#e0ddd1;--primary:#fa0;--primary-foreground:#0d1012;--secondary:#323922;--secondary-foreground:#c6d2ac;--muted:#202527;--muted-foreground:#819098;--accent:#292f32;--accent-foreground:#ebe8e0;--destructive:#c32222;--destructive-foreground:#fff;--border:#203c32;--input:#292f32;--ring:#ffbf00;--chart-1:#ffbf00;--chart-2:#22c38e;--chart-3:#1aa1e6;--chart-4:#86ac39;--chart-5:#d92626;--sidebar:#111517;--sidebar-background:#111517;--sidebar-foreground:#e0ddd1;--sidebar-primary:#ffbf00;--sidebar-primary-foreground:#0d1012;--sidebar-accent:#292f32;--sidebar-accent-foreground:#ebe8e0;--sidebar-border:#203c32;--sidebar-ring:#ffbf00;--tactical-amber:#ffbf00;--tactical-amber-dim:#a17d12;--tactical-green:#22c38e;--tactical-green-dim:#20604a;--tactical-cyan:#17bfcf;--tactical-cyan-dim:#196066;--tactical-red:#d92626;--tactical-olive:#576b2e;--scanline-opacity:.03}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}} +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-800:oklch(27.8% .033 256.848);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-800:oklch(27.4% .006 286.033);--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 2px);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{overscroll-behavior:none;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}*{scrollbar-width:thin}body{background-color:var(--background);width:100%;min-height:100svh;color:var(--foreground);font-family:var(--font-sans),sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-mono{font-family:var(--font-mono),monospace}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.end\!{inset-inline-end:var(--spacing)!important}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-1{bottom:calc(var(--spacing) * 1)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.order-first{order:-9999}.order-last{order:9999}.col-span-2{grid-column:span 2/span 2}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing) * -2)}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-\[1\.2rem\]{width:1.2rem;height:1.2rem}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[calc\(--spacing\(4\.75\)\)\]{height:calc(calc(var(--spacing) * 4.75))}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 72) - calc(var(--spacing) * 9)),calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-px{gap:1px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[calc\(var\(--radius-sm\)\+2px\)\]{border-radius:calc(var(--radius-sm) + 2px)}.rounded-\[calc\(var\(--radius-sm\)-2px\)\]{border-radius:calc(var(--radius-sm) - 2px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:calc(var(--radius) + 2px)}.rounded-md{border-radius:var(--radius)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-border,.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border\/50{background-color:color-mix(in oklab,var(--border) 50%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-input\/20{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.bg-input\/20{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted) 20%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.text-\[0\.625rem\]{font-size:.625rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground) 70%,transparent)}}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.bg-blend-color{background-blend-mode:color}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[orientation\=horizontal\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.group\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.group\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2)}.group-has-\[\>input\]\/input-group\:pb-2:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offExamples\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offExamples\]\:w-0:is(:where(.group)[data-collapsible=offExamples] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offExamples\]\:translate-x-0:is(:where(.group)[data-collapsible=offExamples] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.group\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.group\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/alert-dialog-content\:grid:is(:where(.group\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\[size\=sm\]\/alert-dialog-content\:grid-cols-2:is(:where(.group\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.group\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.group\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:calc(var(--radius) + 2px)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing) * -2)}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-xs\/relaxed::file-selector-button{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-border:after{content:var(--tw-content);border-color:var(--border)}.after\:mix-blend-darken:after{content:var(--tw-content);mix-blend-mode:darken}.group-data-\[collapsible\=offExamples\]\:after\:left-full:is(:where(.group)[data-collapsible=offExamples] *):after{content:var(--tw-content);left:100%}.last\:mt-0:last-child{margin-top:calc(var(--spacing) * 0)}.focus-within\:border-ring:focus-within{border-color:var(--ring)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offExamples\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offExamples] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible,.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:border-inherit:focus-within{border-color:inherit}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:ring-0:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--destructive)}.has-aria-invalid\:ring-2:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 5%,transparent)}}.has-data-\[align\=block-end\]\:rounded-md:has([data-align=block-end]),.has-data-\[align\=block-start\]\:rounded-md:has([data-align=block-start]){border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_auto_1fr\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\[slot\=alert-dialog-media\]\:gap-x-4:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 4)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=combobox-chip\]\:px-1:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-2:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-2:has([data-slot][aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.has-\[textarea\]\:rounded-md:has(:is(textarea)){border-radius:var(--radius)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing) * 3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:var(--radius)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing) * 3)}.has-\[\>button\]\:mr-\[-0\.275rem\]:has(>button){margin-right:-.275rem}.has-\[\>button\]\:ml-\[-0\.275rem\]:has(>button){margin-left:-.275rem}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.has-\[\>kbd\]\:mr-\[-0\.275rem\]:has(>kbd){margin-right:-.275rem}.has-\[\>kbd\]\:ml-\[-0\.275rem\]:has(>kbd){margin-left:-.275rem}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-0[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-2[aria-invalid=true],.aria-invalid\:ring-\[2px\][aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-active\:bg-sidebar-accent[data-active]{background-color:var(--sidebar-accent)}.data-active\:font-medium[data-active]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-sidebar-accent-foreground[data-active]{color:var(--sidebar-accent-foreground)}.data-closed\:overflow-hidden[data-closed]{overflow:hidden}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted],:is(.not-data-\[variant\=destructive\]\:data-highlighted\:\*\*\:text-accent-foreground:not([data-variant=destructive])[data-highlighted] *){color:var(--accent-foreground)}.data-inset\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-open\:bg-accent[data-open]{background-color:var(--accent)}.data-open\:text-accent-foreground[data-open]{color:var(--accent-foreground)}.data-open\:opacity-100[data-open]{opacity:1}@media(hover:hover){.data-open\:hover\:bg-sidebar-accent[data-open]:hover{background-color:var(--sidebar-accent)}.data-open\:hover\:text-sidebar-accent-foreground[data-open]:hover{color:var(--sidebar-accent-foreground)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]{align-self:stretch}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing) * 1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing) * 0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing) * 0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:border-l[data-side=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing) * 0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[size\=default\]\:h-7[data-size=default]{height:calc(var(--spacing) * 7)}.data-\[size\=default\]\:max-w-xs[data-size=default]{max-width:var(--container-xs)}.data-\[size\=lg\]\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\[size\=md\]\:text-xs[data-size=md]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:h-6[data-size=sm]{height:calc(var(--spacing) * 6)}.data-\[size\=sm\]\:max-w-64[data-size=sm]{max-width:calc(var(--spacing) * 64)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}:is(.\*\:data-\[slot\=avatar\]\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing) * 3)}:is(.\*\:data-\[slot\=field\]\:p-2>*)[data-slot=field]{padding:calc(var(--spacing) * 2)}:is(.\*\:data-\[slot\=field-group\]\:gap-4>*)[data-slot=field-group]{gap:calc(var(--spacing) * 4)}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-7>*)[data-slot=input-group]{height:calc(var(--spacing) * 7)}:is(.\*\:data-\[slot\=input-group\]\:border-none>*)[data-slot=input-group]{--tw-border-style:none;border-style:none}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:color-mix(in oklab,var(--input) 20%,transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-\[calc\(var\(--radius-sm\)-2px\)\] *)[data-slot=kbd]{border-radius:calc(var(--radius-sm) - 2px)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-md *)[data-slot=kbd]{border-radius:var(--radius)}:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}:is(.\*\*\:data-\[slot\=kbd\]\:px-1 *)[data-slot=kbd]{padding-inline:calc(var(--spacing) * 1)}:is(.\*\*\:data-\[slot\=kbd\]\:text-\[0\.625rem\] *)[data-slot=kbd]{font-size:.625rem}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing) * 1.5)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:text-sidebar-accent-foreground[data-state=open]{color:var(--sidebar-accent-foreground)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-xs\/relaxed[data-variant=label]{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.data-\[variant\=legend\]\:text-sm[data-variant=legend]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing) * -1)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media(min-width:40rem){.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:row-span-2:is(:where(.group\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:place-items-start:is(:where(.group\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:text-left:is(:where(.group\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:group-has-data-\[slot\=alert-dialog-media\]\/alert-dialog-content\:col-start-2:is(:where(.group\/alert-dialog-content)[data-size=default] *):is(:where(.group\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_1fr\]:is(:where(.group\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right],.data-\[size\=default\]\:sm\:max-w-sm[data-size=default]{max-width:var(--container-sm)}}@media(min-width:48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.md\:text-pretty{text-wrap:pretty}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@container field-group (min-width:28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}@media(prefers-color-scheme:dark){.dark\:scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90{rotate:-90deg}.dark\:rotate-0{rotate:none}.dark\:bg-destructive\/20{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/20{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:bg-green-900{background-color:var(--color-green-900)}.dark\:bg-input\/30{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30{background-color:color-mix(in oklab,var(--input) 30%,transparent)}}.dark\:bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-muted\/30{background-color:color-mix(in oklab,var(--muted) 30%,transparent)}}.dark\:bg-popover{background-color:var(--popover)}.dark\:bg-red-900{background-color:var(--color-red-900)}.dark\:bg-transparent{background-color:#0000}.dark\:bg-yellow-900{background-color:var(--color-yellow-900)}.dark\:bg-zinc-800{background-color:var(--color-zinc-800)}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-green-100{color:var(--color-green-100)}.dark\:text-red-100{color:var(--color-red-100)}.dark\:text-yellow-100{color:var(--color-yellow-100)}.dark\:text-zinc-400{color:var(--color-zinc-400)}.dark\:after\:mix-blend-lighten:after{content:var(--tw-content);mix-blend-mode:lighten}@media(hover:hover){.dark\:hover\:bg-destructive\/30:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/30:hover{background-color:color-mix(in oklab,var(--destructive) 30%,transparent)}}.dark\:hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.dark\:hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing) * 2)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-2.border-t{padding-top:calc(var(--spacing) * 2)}.\[\.border-t\]\:pt-4.border-t{padding-top:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-3:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media(hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-lg>*):is(img:first-child){border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}:is(.\*\:\[img\:last-child\]\:rounded-b-lg>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>\*\]\:w-full>*{width:100%}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}@container field-group (min-width:28rem){.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-1\.5:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 1.5)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-1\.5:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 1.5)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-2\.5\!>svg{width:calc(var(--spacing) * 2.5)!important;height:calc(var(--spacing) * 2.5)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.group\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.group\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=default] *)>svg,.group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.group\/avatar)[data-size=sm] *)>svg{display:none}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3>svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}[data-side=left][data-collapsible=offExamples] .\[\[data-side\=left\]\[data-collapsible\=offExamples\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offExamples] .\[\[data-side\=right\]\[data-collapsible\=offExamples\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing) * -1.5)}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable", sans-serif;--font-mono:"JetBrains Mono Variable", monospace;--background:#f4f1ec;--foreground:#1d2930;--card:#f9f8f6;--card-foreground:#1d2930;--popover:#fbfaf9;--popover-foreground:#1d2930;--primary:#305030;--primary-foreground:#f5f3ef;--secondary:#eae5d7;--secondary-foreground:#263740;--muted:#e9e7e2;--muted-foreground:#576b75;--accent:#e7e2da;--accent-foreground:#1d2930;--destructive:#c32222;--destructive-foreground:#fff;--border:#b6c9b6;--input:#dedbd3;--ring:#3e743e;--chart-1:#2e6b2e;--chart-2:#cfa117;--chart-3:#297aa3;--chart-4:#cc8c33;--chart-5:#b82e2e;--radius:.25rem;--sidebar:#f5f3f0;--sidebar-background:#f5f3f0;--sidebar-foreground:#263740;--sidebar-primary:#305030;--sidebar-primary-foreground:#f5f3ef;--sidebar-accent:#e7e2da;--sidebar-accent-foreground:#1d2930;--sidebar-border:#c4d4c4;--sidebar-ring:#3e743e;--tactical-amber:#c2940a;--tactical-amber-dim:#d6b85c;--tactical-green:#267326;--tactical-green-dim:#7ab87a;--tactical-cyan:#24868f;--tactical-cyan-dim:#5eb2ba;--tactical-red:#bd2828;--tactical-olive:#64783a;--scanline-opacity:.015}.dark{--background:#0d1012;--foreground:#e0ddd1;--card:#14181a;--card-foreground:#e0ddd1;--popover:#111517;--popover-foreground:#e0ddd1;--primary:#fa0;--primary-foreground:#0d1012;--secondary:#323922;--secondary-foreground:#c6d2ac;--muted:#202527;--muted-foreground:#819098;--accent:#292f32;--accent-foreground:#ebe8e0;--destructive:#c32222;--destructive-foreground:#fff;--border:#203c32;--input:#292f32;--ring:#ffbf00;--chart-1:#ffbf00;--chart-2:#22c38e;--chart-3:#1aa1e6;--chart-4:#86ac39;--chart-5:#d92626;--sidebar:#111517;--sidebar-background:#111517;--sidebar-foreground:#e0ddd1;--sidebar-primary:#ffbf00;--sidebar-primary-foreground:#0d1012;--sidebar-accent:#292f32;--sidebar-accent-foreground:#ebe8e0;--sidebar-border:#203c32;--sidebar-ring:#ffbf00;--tactical-amber:#ffbf00;--tactical-amber-dim:#a17d12;--tactical-green:#22c38e;--tactical-green-dim:#20604a;--tactical-cyan:#17bfcf;--tactical-cyan-dim:#196066;--tactical-red:#d92626;--tactical-olive:#576b2e;--scanline-opacity:.03}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}} diff --git a/hive/services/hiveui/frontend/dist/assets/index.js b/hive/services/hiveui/frontend/dist/assets/index.js index 4579a2225..6bbf7a2ed 100644 --- a/hive/services/hiveui/frontend/dist/assets/index.js +++ b/hive/services/hiveui/frontend/dist/assets/index.js @@ -1,13 +1,13 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/zod.js","assets/field.js","assets/input.js","assets/index3.js","assets/useSuspenseQuery.js","assets/page-heading.js","assets/index4.js","assets/list-card.js","assets/create-bucket.js","assets/back-link.js","assets/error-banner.js","assets/s3.js","assets/create-vpc.js","assets/ec2.js","assets/ec22.js","assets/create-volume.js","assets/select.js","assets/check.js","assets/create-subnet.js","assets/create-snapshot.js","assets/textarea.js","assets/import-key-pair.js","assets/create-key-pair.js","assets/alert-dialog.js","assets/download.js","assets/run-instances.js","assets/index5.js","assets/upload-button.js","assets/trash-2.js","assets/index6.js","assets/state-badge.js","assets/index7.js","assets/index8.js","assets/index9.js","assets/index10.js","assets/index11.js","assets/index12.js","assets/_.js","assets/_id.js","assets/detail-row.js","assets/_id2.js","assets/_id3.js","assets/_id4.js","assets/_id5.js","assets/_id6.js","assets/_id7.js","assets/ami-details.js","assets/_id8.js"])))=>i.map(i=>d[i]); -function I$(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const l of c.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(i){if(i.ep)return;i.ep=!0;const c=n(i);fetch(i.href,c)}})();var gRe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yRe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var O0={exports:{}},ef={};var hC;function O$(){if(hC)return ef;hC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,c){var l=null;if(c!==void 0&&(l=""+c),i.key!==void 0&&(l=""+i.key),"key"in i){c={};for(var f in i)f!=="key"&&(c[f]=i[f])}else c=i;return i=c.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:c}}return ef.Fragment=t,ef.jsx=n,ef.jsxs=n,ef}var pC;function M$(){return pC||(pC=1,O0.exports=O$()),O0.exports}var N=M$(),dm=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(){}},D$={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},k$=class{#e=D$;#n=!1;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)}},Gb=new k$;function P$(e){setTimeout(e,0)}var hm=typeof window>"u"||"Deno"in globalThis;function Nr(){}function N$(e,t){return typeof e=="function"?e(t):e}function L$(e){return typeof e=="number"&&e>=0&&e!==1/0}function z$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zb(e,t){return typeof e=="function"?e(t):e}function B$(e,t){return typeof e=="function"?e(t):e}function mC(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:c,queryKey:l,stale:f}=e;if(l){if(r){if(t.queryHash!==Pv(l,t.options))return!1}else if(!Of(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||c&&!c(t))}function gC(e,t){const{exact:n,status:r,predicate:i,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(n){if(If(t.options.mutationKey)!==If(c))return!1}else if(!Of(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Pv(e,t){return(t?.queryKeyHashFn||If)(e)}function If(e){return JSON.stringify(e,(t,n)=>Kb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Of(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Of(e[n],t[n])):!1}var $$=Object.prototype.hasOwnProperty;function I2(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=yC(e)&&yC(t);if(!r&&!(Kb(e)&&Kb(t)))return t;const c=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),f=l.length,d=r?new Array(f):{};let h=0;for(let b=0;b{Gb.setTimeout(t,e)})}function j$(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?I2(e,t):t}function H$(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function V$(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Nv=Symbol();function O2(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Nv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vRe(e,t){return typeof e=="function"?e(...t):!!e}function q$(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var F$=class extends dm{#e;#n;#t;constructor(){super(),this.#t=e=>{if(!hm&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},M2=new F$;function G$(){let e,t;const n=new Promise((i,c)=>{e=i,t=c});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Z$=P$;function K$(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=Z$;const c=f=>{t?e.push(f):i(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||l()}return d},batchCalls:f=>(...d)=>{c(()=>{f(...d)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{i=f}}}var cs=K$(),Q$=class extends dm{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(!hm&&window.addEventListener){const 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.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Cp=new Q$;function Y$(e){return Math.min(1e3*2**e,3e4)}function D2(e){return(e??"online")==="online"?Cp.isOnline():!0}var Qb=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function k2(e){let t=!1,n=0,r;const i=G$(),c=()=>i.status!=="pending",l=E=>{if(!c()){const R=new Qb(E);v(R),e.onCancel?.(R)}},f=()=>{t=!0},d=()=>{t=!1},h=()=>M2.isFocused()&&(e.networkMode==="always"||Cp.isOnline())&&e.canRun(),b=()=>D2(e.networkMode)&&e.canRun(),g=E=>{c()||(r?.(),i.resolve(E))},v=E=>{c()||(r?.(),i.reject(E))},_=()=>new Promise(E=>{r=R=>{(c()||h())&&E(R)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),w=()=>{if(c())return;let E;const R=n===0?e.initialPromise:void 0;try{E=R??e.fn()}catch(C){E=Promise.reject(C)}Promise.resolve(E).then(g).catch(C=>{if(c())return;const I=e.retry??(hm?0:3),k=e.retryDelay??Y$,T=typeof k=="function"?k(n,C):k,$=I===!0||typeof I=="number"&&nh()?void 0:_()).then(()=>{t?v(C):w()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r?.(),i),cancelRetry:f,continueRetry:d,canStart:b,start:()=>(b()?w():_().then(w),i)}}var P2=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),L$(this.gcTime)&&(this.#e=Gb.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hm?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Gb.clearTimeout(this.#e),this.#e=void 0)}},X$=class extends P2{#e;#n;#t;#r;#s;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#t=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=SC(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=SC(this.options);t.data!==void 0&&(this.setState(vC(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=j$(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(Nr).catch(Nr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>B$(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Zb(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:!z$(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.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.#s&&(this.#a?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const f=O2(this.options,t),h=(()=>{const b={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(b),b})();return this.#a=!1,this.options.persister?this.options.persister(f,h,this):f(h)},l=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(f),f})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=k2({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof Qb&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,d)=>{this.#o({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#t.config.onSuccess?.(f,this),this.#t.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Qb){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#t.config.onError?.(f,this),this.#t.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...W$(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...vC(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),cs.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function W$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:D2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vC(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function SC(e){const 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"}}function _C(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let b=!1;const g=w=>{q$(w,()=>t.signal,()=>b=!0)},v=O2(t.options,t.fetchOptions),_=async(w,E,R)=>{if(b)return Promise.reject();if(E==null&&w.pages.length)return Promise.resolve(w);const I=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:E,direction:R?"backward":"forward",meta:t.options.meta};return g(j),j})(),k=await v(I),{maxPages:T}=t.options,$=R?V$:H$;return{pages:$(w.pages,k,T),pageParams:$(w.pageParams,E,T)}};if(i&&c.length){const w=i==="backward",E=w?J$:wC,R={pages:c,pageParams:l},C=E(r,R);f=await _(R,C,w)}else{const w=e??c.length;do{const E=d===0?l[0]??r.initialPageParam:wC(r,f);if(d>0&&E==null)break;f=await _(f,E),d++}while(dt.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function wC(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function J$(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var e6=class extends P2{#e;#n;#t;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||t6(),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.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=k2({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(c,l)=>{this.#s({type:"failed",failureCount:c,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:i}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#s({type:"pending",context:l,variables:e,isPaused:i})}const c=await this.#r.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,n),await this.options.onSuccess?.(c,e,this.state.context,n),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(c,null,e,this.state.context,n),this.#s({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(c,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#s({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),cs.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function t6(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var n6=class extends dm{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const r=new e6({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Vh(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Vh(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Vh(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Vh(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){cs.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>gC(t,n))}findAll(e={}){return this.getAll().filter(t=>gC(e,t))}notify(e){cs.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return cs.batch(()=>Promise.all(e.map(t=>t.continue().catch(Nr))))}};function Vh(e){return e.options.scope?.id}var s6=class extends dm{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??Pv(r,t);let c=this.get(i);return c||(c=new X$({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){cs.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>mC(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>mC(e,n)):t}notify(e){cs.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){cs.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){cs.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},r6=class{#e;#n;#t;#r;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new s6,this.#n=e.mutationCache||new n6,this.#t=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=M2.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Cp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const 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(Zb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,l=N$(t,c);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return cs.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;cs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return cs.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=cs.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Nr).catch(Nr)}invalidateQueries(e,t={}){return cs.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=cs.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let c=i.fetch(void 0,n);return n.throwOnError||(c=c.catch(Nr)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(Nr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Zb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nr).catch(Nr)}fetchInfiniteQuery(e){return e.behavior=_C(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nr).catch(Nr)}ensureInfiniteQueryData(e){return e.behavior=_C(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cp.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#r.set(If(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Of(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(If(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{Of(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pv(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===Nv&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},M0={exports:{}},Ze={};var EC;function o6(){if(EC)return Ze;EC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function _(z){return z===null||typeof z!="object"?null:(z=v&&z[v]||z["@@iterator"],typeof z=="function"?z:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function C(z,ee,ye){this.props=z,this.context=ee,this.refs=R,this.updater=ye||w}C.prototype.isReactComponent={},C.prototype.setState=function(z,ee){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,ee,"setState")},C.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function I(){}I.prototype=C.prototype;function k(z,ee,ye){this.props=z,this.context=ee,this.refs=R,this.updater=ye||w}var T=k.prototype=new I;T.constructor=k,E(T,C.prototype),T.isPureReactComponent=!0;var $=Array.isArray;function j(){}var H={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Q(z,ee,ye){var we=ye.ref;return{$$typeof:e,type:z,key:ee,ref:we!==void 0?we:null,props:ye}}function ne(z,ee){return Q(z.type,ee,z.props)}function te(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function F(z){var ee={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ye){return ee[ye]})}var oe=/\/+/g;function me(z,ee){return typeof z=="object"&&z!==null&&z.key!=null?F(""+z.key):ee.toString(36)}function ge(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(j,j):(z.status="pending",z.then(function(ee){z.status==="pending"&&(z.status="fulfilled",z.value=ee)},function(ee){z.status==="pending"&&(z.status="rejected",z.reason=ee)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function V(z,ee,ye,we,Ee){var Se=typeof z;(Se==="undefined"||Se==="boolean")&&(z=null);var Ie=!1;if(z===null)Ie=!0;else switch(Se){case"bigint":case"string":case"number":Ie=!0;break;case"object":switch(z.$$typeof){case e:case t:Ie=!0;break;case b:return Ie=z._init,V(Ie(z._payload),ee,ye,we,Ee)}}if(Ie)return Ee=Ee(z),Ie=we===""?"."+me(z,0):we,$(Ee)?(ye="",Ie!=null&&(ye=Ie.replace(oe,"$&/")+"/"),V(Ee,ee,ye,"",function(Je){return Je})):Ee!=null&&(te(Ee)&&(Ee=ne(Ee,ye+(Ee.key==null||z&&z.key===Ee.key?"":(""+Ee.key).replace(oe,"$&/")+"/")+Ie)),ee.push(Ee)),1;Ie=0;var qe=we===""?".":we+":";if($(z))for(var ve=0;ve{const t=M.useContext(N2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i6=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(N2.Provider,{value:e,children:t}));var Yt=(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))(Yt||{});function z2({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:c,checkDirty:l,shallowPropagate:f};function r(h,b,g){const v=b.depsTail;if(v!==void 0&&v.dep===h)return;const _=v!==void 0?v.nextDep:b.deps;if(_!==void 0&&_.dep===h){_.version=g,b.depsTail=_;return}const w=h.subsTail;if(w!==void 0&&w.version===g&&w.sub===b)return;const E=b.depsTail=h.subsTail={version:g,dep:h,sub:b,prevDep:v,nextDep:_,prevSub:w,nextSub:void 0};_!==void 0&&(_.prevDep=E),v!==void 0?v.nextDep=E:b.deps=E,w!==void 0?w.nextSub=E:h.subs=E}function i(h,b=h.sub){const g=h.dep,v=h.prevDep,_=h.nextDep,w=h.nextSub,E=h.prevSub;return _!==void 0?_.prevDep=v:b.depsTail=v,v!==void 0?v.nextDep=_:b.deps=_,w!==void 0?w.prevSub=E:g.subsTail=E,E!==void 0?E.nextSub=w:(g.subs=w)===void 0&&n(g),_}function c(h){let b=h.nextSub,g;e:do{const v=h.sub;let _=v.flags;if(_&60?_&12?_&4?!(_&48)&&d(h,v)?(v.flags=_|40,_&=1):_=0:v.flags=_&-9|32:_=0:v.flags=_|32,_&2&&t(v),_&1){const w=v.subs;if(w!==void 0){const E=(h=w).nextSub;E!==void 0&&(g={value:b,prev:g},b=E);continue}}if((h=b)!==void 0){b=h.nextSub;continue}for(;g!==void 0;)if(h=g.value,g=g.prev,h!==void 0){b=h.nextSub;continue e}break}while(!0)}function l(h,b){let g,v=0,_=!1;e:do{const w=h.dep,E=w.flags;if(b.flags&16)_=!0;else if((E&17)===17){if(e(w)){const R=w.subs;R.nextSub!==void 0&&f(R),_=!0}}else if((E&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(g={value:h,prev:g}),h=w.deps,b=w,++v;continue}if(!_){const R=h.nextDep;if(R!==void 0){h=R;continue}}for(;v--;){const R=b.subs,C=R.nextSub!==void 0;if(C?(h=g.value,g=g.prev):h=R,_){if(e(b)){C&&f(R),b=h.sub;continue}_=!1}else b.flags&=-33;b=h.sub;const I=h.nextDep;if(I!==void 0){h=I;continue e}}return _}while(!0)}function f(h){do{const b=h.sub,g=b.flags;(g&48)===32&&(b.flags=g|16,(g&6)===2&&t(b))}while((h=h.nextSub)!==void 0)}function d(h,b){let g=b.depsTail;for(;g!==void 0;){if(g===h)return!0;g=g.prevDep}return!1}}let zv=0,Va=0,bf=0;const Po=[],{link:SRe,unlink:B2,propagate:_Re,checkDirty:a6,shallowPropagate:wRe}=z2({update(e){return e.depsTail!==void 0?f6(e):d6(e)},notify(e){let t=bf,n=t;do if(Po[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(bf=t;n<--t;){const r=Po[n];Po[n++]=Po[t],Po[t]=r}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,pm(e)):m6.call(e)}});function c6(){return zv}function l6(){++zv}function u6(){--zv||p6()}function f6(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,pm(e)}}function d6(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function h6(e){const t=e.flags;if(t&16||t&32&&a6(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,pm(e)}}else e.flags=2}function p6(){try{for(;Va0)){for(;qh{i.get(),f.current?l.next?.(i._snapshot):f.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(c){const l=Zr,f=Object.is;Zr=i,++pp,i.depsTail=void 0,n&&(i.flags=Yt.Mutable|Yt.RecursedCheck);try{const d=i._snapshot,h=typeof c=="function"?c(d):c===void 0&&n?r(d):c;return d===void 0||!f(d,h)?(i._snapshot=h,!0):!1}finally{Zr=l,n&&(i.flags&=~Yt.RecursedCheck),Ap(i)}}};return n?(i.flags=Yt.Mutable|Yt.Dirty,i.get=function(){const c=i.flags;if(c&Yt.Dirty||c&Yt.Pending&&$2(i.deps,i)){if(i._update()){const l=i.subs;l!==void 0&&CC(l)}}else c&Yt.Pending&&(i.flags=c&~Yt.Pending);return Zr!==void 0&&RC(i,Zr,pp),i._snapshot}):i.set=function(c){if(i._update(c)){const l=i.subs;l!==void 0&&(y6(l),CC(l),U2())}},i}function b6(e){const t=()=>{const r=Zr;Zr=n,++pp,n.depsTail=void 0,n.flags=Yt.Watching|Yt.RecursedCheck;try{return e()}finally{Zr=r,n.flags&=~Yt.RecursedCheck,Ap(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Yt.Watching|Yt.RecursedCheck,notify(){const r=this.flags;r&Yt.Dirty||r&Yt.Pending&&$2(this.deps,this)?t():this.flags=Yt.Watching},stop(){this.flags=Yt.None,this.depsTail=void 0,Ap(this)}};return t(),n}let v6=class{constructor(t){this.atom=j2(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Bv(t))}};class S6{constructor(t){this.atom=j2(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Bv(t))}}function _6(e){return typeof e=="function"?new S6(e):new v6(e)}function w6(e){try{l6(),e()}finally{u6(),U2()}}const Yi="__TSR_index",AC="popstate",TC="beforeunload";function E6(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},i=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},c=async({task:l,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){l();return}const b=e.getBlockers?.()??[],g=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&b.length&&g)for(const v of b){const _=Tp(d.path,d.state);if(await v.blockerFn({currentLocation:t,nextLocation:_,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,d)=>{const h=t.state[Yi];f=IC(h+1,f),c({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:f})},replace:(l,f,d)=>{const h=t.state[Yi];f=IC(h,f),c({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:f})},go:(l,f)=>{c({task:()=>{e.go(l),i({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{c({task:()=>{e.back(l?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{c({task:()=>{e.forward(l?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[Yi]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function IC(e,t){t||(t={});const n=$v();return{...t,key:n,__TSR_key:n,[Yi]:e}}function x6(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let i=[];const c=()=>i,l=P=>i=P,f=(P=>P),d=(()=>Tp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=$v();t.history.replaceState({[Yi]:0,key:P,__TSR_key:P},"")}let h=d(),b,g=!1,v=!1,_=!1,w=!1;const E=()=>h;let R,C;const I=()=>{R&&(H._ignoreSubscribers=!0,(R.isPush?t.history.pushState:t.history.replaceState)(R.state,"",R.href),H._ignoreSubscribers=!1,R=void 0,C=void 0,b=void 0)},k=(P,Q,ne)=>{const te=f(Q);C||(b=h),h=Tp(Q,ne),R={href:te,state:ne,isPush:R?.isPush||P==="push"},C||(C=Promise.resolve().then(()=>I()))},T=P=>{h=d(),H.notify({type:P})},$=async()=>{if(v){v=!1;return}const P=d(),Q=P.state[Yi]-h.state[Yi],ne=Q===1,te=Q===-1,F=!ne&&!te||g;g=!1;const oe=F?"GO":te?"BACK":"FORWARD",me=F?{type:"GO",index:Q}:{type:te?"BACK":"FORWARD"};if(_)_=!1;else{const ge=c();if(typeof document<"u"&&ge.length){for(const V of ge)if(await V.blockerFn({currentLocation:h,nextLocation:P,action:oe})){v=!0,t.history.go(1),H.notify(me);return}}}h=d(),H.notify(me)},j=P=>{if(w){w=!1;return}let Q=!1;const ne=c();if(typeof document<"u"&&ne.length)for(const te of ne){const F=te.enableBeforeUnload??!0;if(F===!0){Q=!0;break}if(typeof F=="function"&&F()===!0){Q=!0;break}}if(Q)return P.preventDefault(),P.returnValue=""},H=E6({getLocation:E,getLength:()=>t.history.length,pushState:(P,Q)=>k("push",P,Q),replaceState:(P,Q)=>k("replace",P,Q),back:P=>(P&&(_=!0),w=!0,t.history.back()),forward:P=>{P&&(_=!0),w=!0,t.history.forward()},go:P=>{g=!0,t.history.go(P)},createHref:P=>f(P),flush:I,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(TC,j,{capture:!0}),t.removeEventListener(AC,$)},onBlocked:()=>{b&&h!==b&&(h=b)},getBlockers:c,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(TC,j,{capture:!0}),t.addEventListener(AC,$),t.history.pushState=function(...P){const Q=n.apply(t.history,P);return H._ignoreSubscribers||T("PUSH"),Q},t.history.replaceState=function(...P){const Q=r.apply(t.history,P);return H._ignoreSubscribers||T("REPLACE"),Q},H}function R6(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Tp(e,t){const n=R6(e),r=n.indexOf("#"),i=n.indexOf("?"),c=$v();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||{[Yi]:0,key:c,__TSR_key:c}}}function $v(){return(Math.random()+1).toString(36).substring(7)}const C6=!1;function vf(e){let t;return w6(()=>{t=e()}),t}function Mf(e){return e[e.length-1]}function A6(e){return typeof e=="function"}function Fi(e,t){return A6(e)?e(t):e}const T6=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable;function Bs(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=t,i=kC(e)&&kC(r);if(!i&&!(Ip(e)&&Ip(r)))return r;const c=i?e:MC(e);if(!c)return r;const l=i?r:MC(r);if(!l)return r;const f=c.length,d=l.length,h=i?new Array(d):{};let b=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!DC(n)||!n.hasOwnProperty("isPrototypeOf"))}function DC(e){return Object.prototype.toString.call(e)==="[object Object]"}function kC(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xa(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;ri||!Xa(e[l],t[l],n)))return!1;return i===c}return!1}function Al(e){let t,n;const r=new Promise((i,c)=>{t=i,n=c});return r.status="pending",r.resolve=i=>{r.status="resolved",r.value=i,t(i),e?.(i)},r.reject=i=>{r.status="rejected",n(i)},r}function I6(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function bl(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function O6(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function PC(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return O6(t)}const M6=["http:","https:","mailto:","tel:"];function Op(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const D6={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},k6=/[&><\u2028\u2029]/g;function P6(e){return e.replace(k6,t=>D6[t])}function tf(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",i;for(;(i=t.exec(e))!==null;)r+=PC(e.slice(n,i.index))+i[0],n=t.lastIndex;r=r+PC(n?e.slice(n):e);let c=!1;return r.startsWith("//")&&(c=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:c}}function N6(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var L6="Invariant failed";function Bo(e,t){if(!e)throw new Error(L6)}function Mp(e){const t=new Map;let n,r;const i=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,r&&(r.next=c,c.prev=r)):(c.next.prev=void 0,n=c.next,c.next=void 0,r&&(c.prev=r,r.next=c)),r=c)};return{get(c){const l=t.get(c);if(l)return i(l),l.value},set(c,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const f=t.get(c);if(f)f.value=l,i(f);else{const d={key:c,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(c,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const Tl=0,nc=1,sc=2,Df=3,Za=4,H2=5;function z6(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function Uv(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),i=r===-1?e.length:r,c=e.substring(t,i);if(!c||!c.includes("$"))return n[0]=Tl,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(c==="$"){const f=e.length;return n[0]=sc,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(c.charCodeAt(0)===36)return n[0]=nc,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=z6(c);if(l){const[f,d]=l,h=c.charCodeAt(f+1);if(h===45){if(f+2!P.skipOnParamError&&P.caseSensitive===T&&P.prefix===$&&P.suffix===j);if(H)w=H;else{const P=k0(nc,n.fullPath??n.from,T,$,j);w=P,P.depth=c,P.parent=i,i.dynamic??=[],i.dynamic.push(P)}break}case Df:{const I=d.substring(E,_[1]),k=d.substring(_[4],R),T=b&&!!(I||k),$=I?T?I:I.toLowerCase():void 0,j=k?T?k:k.toLowerCase():void 0,H=!g&&i.optional?.find(P=>!P.skipOnParamError&&P.caseSensitive===T&&P.prefix===$&&P.suffix===j);if(H)w=H;else{const P=k0(Df,n.fullPath??n.from,T,$,j);w=P,P.parent=i,P.depth=c,i.optional??=[],i.optional.push(P)}break}case sc:{const I=d.substring(E,_[1]),k=d.substring(_[4],R),T=b&&!!(I||k),$=I?T?I:I.toLowerCase():void 0,j=k?T?k:k.toLowerCase():void 0,H=k0(sc,n.fullPath??n.from,T,$,j);w=H,H.parent=i,H.depth=c,i.wildcard??=[],i.wildcard.push(H)}}i=w}if(g&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const _=Ka(n.fullPath??n.from);_.kind=H2,_.parent=i,c++,_.depth=c,i.pathless??=[],i.pathless.push(_),i=_}const v=(n.path||!n.children)&&!n.isRoot;if(v&&d.endsWith("/")){const _=Ka(n.fullPath??n.from);_.kind=Za,_.parent=i,c++,_.depth=c,i.index=_,i=_}i.parse=n.options?.params?.parse??null,i.skipOnParamError=g,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,v&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)mm(e,t,d,f,i,c,l)}function D0(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function qi(e){if(e.pathless)for(const t of e.pathless)qi(t);if(e.static)for(const t of e.static.values())qi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())qi(t);if(e.dynamic?.length){e.dynamic.sort(D0);for(const t of e.dynamic)qi(t)}if(e.optional?.length){e.optional.sort(D0);for(const t of e.optional)qi(t)}if(e.wildcard?.length){e.wildcard.sort(D0);for(const t of e.wildcard)qi(t)}}function Ka(e){return{kind:Tl,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function k0(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function B6(e,t){const n=Ka("/"),r=new Uint16Array(6);for(const i of e)mm(!1,r,i,1,n,0);qi(n),t.masksTree=n,t.flatCache=Mp(1e3)}function $6(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=jv(e,t.masksTree);return t.flatCache.set(e,r),r}function U6(e,t,n,r,i){e||="/",r||="/";const c=t?`case\0${e}`:e;let l=i.singleCache.get(c);if(!l){l=Ka("/");const f=new Uint16Array(6);mm(t,f,{from:e},1,l,0),i.singleCache.set(c,l)}return jv(r,l,n)}function j6(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||="/";let c;try{c=jv(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)c=null;else throw l}return c&&(c.branch=q6(c.route)),t.matchCache.set(r,c),c}function H6(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function V6(e,t=!1,n){const r=Ka(e.fullPath),i=new Uint16Array(6),c={},l={};let f=0;return mm(t,i,e,1,r,0,h=>{if(n?.(h,f),Bo(!(h.id in c),`Duplicate routes found with id: ${String(h.id)}`),c[h.id]=h,f!==0&&h.path){const b=H6(h.fullPath);(!l[b]||h.fullPath.endsWith("/"))&&(l[b]=h)}f++}),qi(r),{processedTree:{segmentTree:r,singleCache:Mp(1e3),matchCache:Mp(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:l}}function jv(e,t,n=!1){const r=e.split("/"),i=G6(e,r,t,n);if(!i)return null;const[c]=V2(e,r,i);return{route:i.node.route,rawParams:c,parsedParams:i.parsedParams}}function V2(e,t,n){const r=F6(n.node);let i=null;const c={};let l=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,h=n.extract?.segment??0;for(;f=0;te--){const F=v.optional[te];f.push({node:F,index:_,skipped:Q,depth:ne,statics:R,dynamics:C,optionals:I,extract:k,rawParams:T,parsedParams:$})}if(!j)for(let te=v.optional.length-1;te>=0;te--){const F=v.optional[te],{prefix:oe,suffix:me}=F;if(oe||me){const ge=F.caseSensitive?H:P??=H.toLowerCase();if(oe&&!ge.startsWith(oe)||me&&!ge.endsWith(me))continue}f.push({node:F,index:_+1,skipped:w,depth:ne,statics:R,dynamics:C,optionals:I+1,extract:k,rawParams:T,parsedParams:$})}}if(!j&&v.dynamic&&H)for(let Q=v.dynamic.length-1;Q>=0;Q--){const ne=v.dynamic[Q],{prefix:te,suffix:F}=ne;if(te||F){const oe=ne.caseSensitive?H:P??=H.toLowerCase();if(te&&!oe.startsWith(te)||F&&!oe.endsWith(F))continue}f.push({node:ne,index:_+1,skipped:w,depth:E+1,statics:R,dynamics:C+1,optionals:I,extract:k,rawParams:T,parsedParams:$})}if(!j&&v.staticInsensitive){const Q=v.staticInsensitive.get(P??=H.toLowerCase());Q&&f.push({node:Q,index:_+1,skipped:w,depth:E+1,statics:R+1,dynamics:C,optionals:I,extract:k,rawParams:T,parsedParams:$})}if(!j&&v.static){const Q=v.static.get(H);Q&&f.push({node:Q,index:_+1,skipped:w,depth:E+1,statics:R+1,dynamics:C,optionals:I,extract:k,rawParams:T,parsedParams:$})}if(v.pathless){const Q=E+1;for(let ne=v.pathless.length-1;ne>=0;ne--){const te=v.pathless[ne];f.push({node:te,index:_,skipped:w,depth:Q,statics:R,dynamics:C,optionals:I,extract:k,rawParams:T,parsedParams:$})}}}if(b&&d)return nf(d,b)?b:d;if(b)return b;if(d)return d;if(r&&h){let g=h.index;for(let _=0;_e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Za)>(e.node.kind===Za)||t.node.kind===Za==(e.node.kind===Za)&&t.depth>e.depth))):!0}function mp(e){return Hv(e.filter(t=>t!==void 0).join("/"))}function Hv(e){return e.replace(/\/{2,}/g,"/")}function q2(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Xi(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function F2(e){return Xi(q2(e))}function Dp(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Z6(e,t,n){return Dp(e,n)===Dp(t,n)}function K6({base:e,to:t,trailingSlash:n="never",cache:r}){const i=t.startsWith("/"),c=!i&&t===".";let l;if(r){l=i?t:c?e:e+"\0"+t;const g=r.get(l);if(g)return g}let f;if(c)f=e.split("/");else if(i)f=t.split("/");else{for(f=e.split("/");f.length>1&&Mf(f)==="";)f.pop();const g=t.split("/");for(let v=0,_=g.length;v<_;v++){const w=g[v];w===""?v?v===_-1&&f.push(w):f=[w]:w===".."?f.pop():w==="."||f.push(w)}}f.length>1&&(Mf(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let d,h="";for(let g=0;g0&&(h+="/");const v=f[g];if(!v)continue;d=Uv(v,0,d);const _=d[0];if(_===Tl){h+=v;continue}const w=d[5],E=v.substring(0,d[1]),R=v.substring(d[4],w),C=v.substring(d[2],d[3]);_===nc?h+=E||R?`${E}{$${C}}${R}`:`$${C}`:_===sc?h+=E||R?`${E}{$}${R}`:"$":h+=`${E}{-$${C}}${R}`}h=Hv(h);const b=h||"/";return l&&r&&r.set(l,b),b}function Q6(e){const t=new Map(e.map(i=>[encodeURIComponent(i),i])),n=Array.from(t.keys()).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return i=>i.replace(r,c=>t.get(c)??c)}function N0(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(i=>LC(i,n)).join("/"):LC(r,n)}function NC({path:e,params:t,decoder:n,...r}){let i=!1;const c={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:c,isMissingParams:i};const l=e.length;let f=0,d,h="";for(;f{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function W6(){const e=Y6();if(!e)return null;const t=e.getItem(Wb);let n=t?JSON.parse(t):{};return{state:n,set:r=>{n=Fi(r,n)||n;try{e.setItem(Wb,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Fh=W6(),J6=e=>e.state.__TSR_key||e.href;function eU(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let kp=!1;function tU({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:c}){let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(h){console.error(h);return}const f=t||window.history.state?.__TSR_key,d=l[f];kp=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const g in d){const v=d[g];if(g==="window")window.scrollTo({top:v.scrollY,left:v.scrollX,behavior:n});else if(g){const _=document.querySelector(g);_&&(_.scrollLeft=v.scrollX,_.scrollTop=v.scrollY)}}break e}const h=(c??window.location).hash.split("#",2)[1];if(h){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const v=document.getElementById(h);v&&v.scrollIntoView(g)}break e}const b={top:0,left:0,behavior:n};if(window.scrollTo(b),i)for(const g of i){if(g==="window")continue;const v=typeof g=="function"?g():document.querySelector(g);v&&v.scrollTo(b)}}kp=!1}function nU(e,t){if(!Fh||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!Fh))return;e.isScrollRestorationSetup=!0,kp=!1;const r=e.options.getScrollRestorationKey||J6;window.history.scrollRestoration="manual";const i=c=>{if(kp||!e.isScrollRestoring)return;let l="";if(c.target===document||c.target===window)l="window";else{const d=c.target.getAttribute("data-scroll-restoration-id");d?l=`[data-scroll-restoration-id="${d}"]`:l=eU(c.target)}const f=r(e.state.location);Fh.set(d=>{const h=d[f]||={},b=h[l]||={};if(l==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(b.scrollX=g.scrollLeft||0,b.scrollY=g.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",X6(i,100),!0),e.subscribe("onRendered",c=>{const l=r(c.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(tU({storageKey:Wb,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Fh.set(f=>(f[l]||={},f)))})}function sU(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function rU(e,t=String){const n=new URLSearchParams;for(const r in e){const i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function L0(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function oU(e){const t=new URLSearchParams(e),n={};for(const[r,i]of t.entries()){const c=n[r];c==null?n[r]=L0(i):Array.isArray(c)?c.push(L0(i)):n[r]=[c,L0(i)]}return n}const iU=cU(JSON.parse),aU=lU(JSON.stringify,JSON.parse);function cU(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=oU(t);for(const r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch{}}return n}}function lU(e,t){const n=typeof t=="function";function r(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(n&&typeof i=="string")try{return t(i),e(i)}catch{}return i}return i=>{const c=rU(i,r);return c?`?${c}`:""}}const mr="__root__";function Vv(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function br(e){return e instanceof Response&&!!e.options}const gp=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},gm=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),vl=(e,t,n=!0)=>{const r={...e.router.options.context??{}},i=n?t:t-1;for(let c=0;c<=i;c++){const l=e.matches[c];if(!l)continue;const f=e.router.getMatch(l.id);f&&Object.assign(r,f.__routeContext,f.__beforeLoadContext)}return r},G2=(e,t,n)=>{const r=e.router.routesById[t.routeId??""]??e.router.routeTree;!r.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(r.options.notFoundComponent=e.router.options.defaultNotFoundComponent);const i=n==="BEFORE_LOAD"&&r.parentRoute;i||Bo(r.options.notFoundComponent);const c=e.matches.find(l=>l.routeId===r.id);Bo(c,"Could not find match for route: "+r.id),e.updateMatch(c.id,l=>({...l,status:"notFound",error:t,isFetching:!1})),i&&(t.routeId=r.parentRoute.id,G2(e,t,n))},Gi=(e,t,n,r)=>{if(!(!br(n)&&!qs(n))){if(br(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const i=br(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,c=>({...c,status:i,context:vl(e,t.index),isFetching:!1,error:n})),qs(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw br(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(G2(e,n,r),n)}},Z2=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,sf=(e,t,n,r)=>{const{id:i,routeId:c}=e.matches[t],l=e.router.looseRoutesById[c];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,Gi(e,e.router.getMatch(i),n,r);try{l.options.onError?.(n)}catch(f){n=f,Gi(e,e.router.getMatch(i),n,r)}e.updateMatch(i,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},K2=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!gm(e,t)&&(n.options.loader||n.options.beforeLoad||X2(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{gp(e)},i);r._nonReactive.pendingTimeout=l}},uU=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;K2(e,t,n,r);const i=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&Gi(e,c,c.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},fU=(e,t,n,r)=>{const i=e.router.getMatch(t),c=i._nonReactive.loadPromise;i._nonReactive.loadPromise=Al(()=>{c?.resolve()});const{paramsError:l,searchError:f}=i;l&&sf(e,n,l,"PARSE_PARAMS"),f&&sf(e,n,f,"VALIDATE_SEARCH"),K2(e,t,r,i);const d=new AbortController;let h=!1;const b=()=>{h||(h=!0,e.updateMatch(t,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:d})))},g=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,T=>({...T,isFetching:!1}))};if(!r.options.beforeLoad){vf(()=>{b(),g()});return}i._nonReactive.beforeLoadPromise=Al();const v={...vl(e,n,!1),...i.__routeContext},{search:_,params:w,cause:E}=i,R=gm(e,t),C={search:_,abortController:d,params:w,preload:R,context:v,location:e.location,navigate:T=>e.router.navigate({...T,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":E,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},I=T=>{if(T===void 0){vf(()=>{b(),g()});return}(br(T)||qs(T))&&(b(),sf(e,n,T,"BEFORE_LOAD")),vf(()=>{b(),e.updateMatch(t,$=>({...$,__beforeLoadContext:T})),g()})};let k;try{if(k=r.options.beforeLoad(C),bl(k))return b(),k.catch(T=>{sf(e,n,T,"BEFORE_LOAD")}).then(I)}catch(T){b(),sf(e,n,T,"BEFORE_LOAD")}I(k)},dU=(e,t)=>{const{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],c=()=>f(),l=()=>fU(e,n,t,i),f=()=>{if(Z2(e,n))return;const d=uU(e,n,i);return bl(d)?d.then(l):l()};return c()},hU=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const 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(([c,l,f])=>{const d=c?.meta,h=c?.links,b=c?.scripts,g=c?.styles;return{meta:d,links:h,headScripts:b,headers:f,scripts:l,styles:g}})},Q2=(e,t,n,r)=>{const i=e.matchPromises[n-1],{params:c,loaderDeps:l,abortController:f,cause:d}=e.router.getMatch(t),h=vl(e,n),b=gm(e,t);return{params:c,deps:l,preload:!!b,parentMatchPromise:i,abortController:f,context:h,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:b?"preload":d,route:r,...e.router.options.additionalContext}},zC=async(e,t,n,r)=>{try{const i=e.router.getMatch(t);try{(!(C6??e.router.isServer)||i.ssr===!0)&&Y2(r);const c=r.options.loader?.(Q2(e,t,n,r)),l=r.options.loader&&bl(c);if((l||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,h=>({...h,isFetching:"loader"})),r.options.loader){const h=l?await c:c;Gi(e,e.router.getMatch(t),h),h!==void 0&&e.updateMatch(t,b=>({...b,loaderData:h}))}r._lazyPromise&&await r._lazyPromise;const d=i._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,h=>({...h,error:void 0,context:vl(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let l=c;if(l?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(t,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:vl(e,n)}));return}const f=i._nonReactive.minPendingPromise;f&&await f,qs(c)&&await r.options.notFoundComponent?.preload?.(),Gi(e,e.router.getMatch(t),c);try{r.options.onError?.(c)}catch(d){l=d,Gi(e,e.router.getMatch(t),d)}e.updateMatch(t,d=>({...d,error:l,context:vl(e,n),status:"error",isFetching:!1}))}}catch(i){const c=e.router.getMatch(t);c&&(c._nonReactive.loaderPromise=void 0),Gi(e,c,i)}},pU=async(e,t)=>{async function n(b,g,v,_){const w=Date.now()-g.updatedAt,E=b?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,R=_.options.shouldReload,C=typeof R=="function"?R(Q2(e,r,t,_)):R,{status:I,invalid:k}=v;c=I==="success"&&(k||(C??w>E)),b&&_.options.preload===!1||(c&&!e.sync?(l=!0,(async()=>{try{await zC(e,r,t,_);const T=e.router.getMatch(r);T._nonReactive.loaderPromise?.resolve(),T._nonReactive.loadPromise?.resolve(),T._nonReactive.loaderPromise=void 0}catch(T){br(T)&&await e.router.navigate(T.options)}})()):(I!=="success"||c&&e.sync)&&await zC(e,r,t,_))}const{id:r,routeId:i}=e.matches[t];let c=!1,l=!1;const f=e.router.looseRoutesById[i];if(!Z2(e,r)){const b=e.router.getMatch(r),g=gm(e,r);if(b._nonReactive.loaderPromise){if(b.status==="success"&&!e.sync&&!b.preload)return b;await b._nonReactive.loaderPromise;const v=e.router.getMatch(r),_=v._nonReactive.error||v.error;_&&Gi(e,v,_),v.status==="pending"&&await n(g,b,v,f)}else{const v=g&&!e.router.state.matches.some(w=>w.id===r),_=e.router.getMatch(r);_._nonReactive.loaderPromise=Al(),v!==_.preload&&e.updateMatch(r,w=>({...w,preload:v})),await n(g,b,_,f)}}const d=e.router.getMatch(r);l||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,l||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const h=l?d.isFetching:!1;return h!==d.isFetching||d.invalid!==!1?(e.updateMatch(r,b=>({...b,isFetching:h,invalid:!1})),e.router.getMatch(r)):d};async function BC(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&gp(t);try{for(let f=0;ff.status==="rejected").map(f=>f.reason);let c;for(const f of i){if(br(f))throw f;!c&&qs(f)&&(c=f)}for(const f of t.matches){const{id:d,routeId:h}=f,b=t.router.looseRoutesById[h];try{const g=hU(t,d,b);if(g){const v=await g;t.updateMatch(d,_=>({..._,...v}))}}catch(g){console.error(`Error executing head for route ${h}:`,g)}}if(c)throw c;const l=gp(t);bl(l)&&await l}catch(n){if(qs(n)&&!t.preload){const r=gp(t);throw bl(r)&&await r,n}if(br(n))throw n}return t.matches}async function Y2(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of W2){const i=e.options[r]?.preload;i&&n.push(i())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function X2(e){for(const t of W2)if(e.options[t]?.preload)return!0;return!1}const W2=["component","errorComponent","pendingComponent","notFoundComponent"];function mU(e){return{input:({url:t})=>{for(const n of e)t=Jb(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=J2(e[n],t);return t}}}function gU(e){const t=F2(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),c=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const f=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return f===i?l.pathname="/":f.startsWith(c)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=mp(["/",t,l.pathname]),l)}}function Jb(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function J2(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Wa(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,i=t?.href!==n.href,c=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:i,hashChanged:c}}function yU(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class bU{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{const r=this.options,i=this.basepath??r?.basepath??"/",c=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Q6(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=x6()),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 v;this.resolvePathCache=Mp(1e3),v=this.buildRouteTree(),this.setRoutes(v)}!this.__store&&this.latestLocation&&(this.__store=_6(SU(this.latestLocation)),nU(this));let f=!1;const d=this.options.basepath??"/",h=this.options.rewrite;if(c||i!==d||l!==h){this.basepath=d;const v=[],_=F2(d);_&&_!=="/"&&v.push(gU({basepath:d})),h&&v.push(h),this.rewrite=v.length===0?void 0:v.length===1?v[0]:mU(v),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&this.__store.setState(v=>({...v,location: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=()=>{const n=V6(this.routeTree,this.options.caseSensitive,(r,i)=>{r.init({originalIndex:i})});return this.options.routeMasks&&B6(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const i={eventType:n,fn:r};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const i=({pathname:d,search:h,hash:b,href:g,state:v})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const I=this.options.parseSearch(h),k=this.options.stringifySearch(I);return{href:d+k+b,publicHref:g,pathname:tf(d).path,external:!1,searchStr:k,search:Bs(r?.search,I),hash:tf(b.slice(1)).path,state:Bs(r?.state,v)}}const _=new URL(g,this.origin),w=Jb(this.rewrite,_),E=this.options.parseSearch(w.search),R=this.options.stringifySearch(E);return w.search=R,{href:w.href.replace(w.origin,""),publicHref:g,pathname:tf(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:R,search:Bs(r?.search,E),hash:tf(w.hash.slice(1)).path,state:Bs(r?.state,v)}},c=i(n),{__tempLocation:l,__tempKey:f}=c.state;if(l&&(!f||f===this.tempLocationKey)){const d=i(l);return d.state.key=c.state.key,d.state.__TSR_key=c.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:c}}return c},this.resolvePathWithBase=(n,r)=>K6({base:n,to:Hv(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,i)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},i):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>_U({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(c=>c.status==="pending"),r=this.state.matches.filter(c=>c.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(c=>{this.cancelMatch(c.id)})},this.buildLocation=n=>{const r=(c={})=>{const l=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(l);c.from;const d=c.unsafeRelative==="path"?l.pathname:c.from??f.fullPath,h=this.resolvePathWithBase(d,"."),b=f.search,g={...f.params},v=c.to?this.resolvePathWithBase(h,`${c.to}`):this.resolvePathWithBase(h,"."),_=c.params===!1||c.params===null?{}:(c.params??!0)===!0?g:Object.assign(g,Fi(c.params,g)),w=this.getMatchedRoutes(v);let E=w.matchedRoutes;if((!w.foundRoute||w.foundRoute.path!=="/"&&w.routeParams["**"])&&this.options.notFoundRoute&&(E=[...E,this.options.notFoundRoute]),Object.keys(_).length>0)for(const te of E){const F=te.options.params?.stringify??te.options.stringifyParams;if(F)try{Object.assign(_,F(_))}catch{}}const C=n.leaveParams?v:tf(NC({path:v,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let I=b;if(n._includeValidateSearch&&this.options.search?.strict){const te={};E.forEach(F=>{if(F.options.validateSearch)try{Object.assign(te,yp(F.options.validateSearch,{...te,...I}))}catch{}}),I=te}I=wU({search:I,dest:c,destRoutes:E,_includeValidateSearch:n._includeValidateSearch}),I=Bs(b,I);const k=this.options.stringifySearch(I),T=c.hash===!0?l.hash:c.hash?Fi(c.hash,l.hash):void 0,$=T?`#${T}`:"";let j=c.state===!0?l.state:c.state?Fi(c.state,l.state):{};j=Bs(l.state,j);const H=`${C}${k}${$}`;let P,Q,ne=!1;if(this.rewrite){const te=new URL(H,this.origin),F=J2(this.rewrite,te);P=te.href.replace(te.origin,""),F.origin!==this.origin?(Q=F.href,ne=!0):Q=F.pathname+F.search+F.hash}else P=N6(H),Q=P;return{publicHref:Q,href:P,pathname:C,search:I,searchStr:k,state:j,hash:T??"",external:ne,unmaskOnReload:c.unmaskOnReload}},i=(c={},l)=>{const f=r(c);let d=l?r(l):void 0;if(!d){const h={};if(this.options.routeMasks){const b=$6(f.pathname,this.processedTree);if(b){Object.assign(h,b.rawParams);const{from:g,params:v,..._}=b.route,w=v===!1||v===null?{}:(v??!0)===!0?h:Object.assign(h,Fi(v,h));l={from:n.from,..._,params:w},d=r(l)}}}return d&&(f.maskedLocation=d),f};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...i})=>{const c=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(b=>{i.state[b]=this.latestLocation.state[b]});const h=Xa(i.state,this.latestLocation.state);return d.forEach(b=>{delete i.state[b]}),h},l=Xi(this.latestLocation.href)===Xi(i.href),f=this.commitLocationPromise;if(this.commitLocationPromise=Al(()=>{f?.resolve()}),l&&c())this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...b}=i;d&&(b={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[i.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:r})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:i,viewTransition:c,ignoreBlocker:l,href:f,...d}={})=>{if(f){const g=this.history.location.state.__TSR_index,v=Tp(f,{__TSR_index:n?g:g+1}),_=new URL(v.pathname,this.origin),w=Jb(this.rewrite,_);d.to=w.pathname,d.search=this.options.parseSearch(v.search),d.hash=v.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const b=this.commitLocation({...h,viewTransition:c,replace:n,resetScroll:r,hashScrollIntoView:i,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:n,reloadDocument:r,href:i,publicHref:c,...l})=>{let f=!1;if(i)try{new URL(`${i}`),f=!0}catch{}if(f&&!r&&(r=!0),r){if(n!==void 0||!i){const h=this.buildLocation({to:n,...l});i=i??h.publicHref,c=c??h.publicHref}const d=!f&&c?c:i;if(Op(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const b=this.history.getBlockers?.()??[];for(const g of b)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:i,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(i=>!n.some(c=>c.id===i.id))}))},this.load=async n=>{let r,i,c;for(c=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Wa({resolvedLocation:h,location:d})}),this.emit({type:"onBeforeLoad",...Wa({resolvedLocation:h,location:d})}),await BC({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],g=[],v=[],_=[];vf(()=>{this.__store.setState(w=>{const E=w.matches,R=w.pendingMatches||w.matches;return b=E.filter(C=>!R.some(I=>I.id===C.id)),g=E.filter(C=>!R.some(I=>I.routeId===C.routeId)),v=R.filter(C=>!E.some(I=>I.routeId===C.routeId)),_=R.filter(C=>E.some(I=>I.routeId===C.routeId)),{...w,isLoading:!1,loadedAt:Date.now(),matches:R,pendingMatches:void 0,cachedMatches:[...w.cachedMatches,...b.filter(C=>C.status!=="error"&&C.status!=="notFound"&&C.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[v,"onEnter"],[_,"onStay"]].forEach(([w,E])=>{w.forEach(R=>{this.looseRoutesById[R.routeId].options[E]?.(R)})})})})}})}catch(d){br(d)?(r=d,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):qs(d)&&(i=d),this.__store.setState(h=>({...h,statusCode:r?r.status:i?404:h.matches.some(b=>b.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(f=>f.status==="error")&&(l=500),l!==void 0&&this.__store.setState(f=>({...f,statusCode:l}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,l=this.state.resolvedLocation,f=typeof r.types=="function"?r.types(Wa({resolvedLocation:l,location:c})):r.types;if(f===!1){n();return}i={update:n,types:f}}else i=n;document.startViewTransition(i)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const i=this.state.pendingMatches?.some(c=>c.id===n)?"pendingMatches":this.state.matches.some(c=>c.id===n)?"matches":this.state.cachedMatches.some(c=>c.id===n)?"cachedMatches":"";i&&(i==="cachedMatches"?this.__store.setState(c=>({...c,cachedMatches:yU(c.cachedMatches.map(l=>l.id===n?r(l):l))})):this.__store.setState(c=>({...c,[i]:c[i]?.map(l=>l.id===n?r(l):l)})))})},this.getMatch=n=>{const r=i=>i.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=i=>n?.filter?.(i)??!0?{...i,invalid:!0,...n?.forcePending||i.status==="error"||i.status==="notFound"?{status:"pending",error:void 0}:void 0}:i;return this.__store.setState(i=>({...i,matches:i.matches.map(r),cachedMatches:i.cachedMatches.map(r),pendingMatches:i.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const i=n.options._builtLocation??this.buildLocation(n.options),c=this.getParsedLocationHref(i);n.options.href=c,n.headers.set("Location",c)}else if(r)try{const i=new URL(r);if(this.origin&&i.origin===this.origin){const c=i.pathname+i.search+i.hash;n.options.href=c,n.headers.set("Location",c)}}catch{}if(n.options.href&&!n.options._builtLocation&&Op(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(c=>!r(c))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const i=this.looseRoutesById[r.routeId];if(!i.options.loader)return!0;const c=(r.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=c};this.clearCache({filter:n})},this.loadRouteChunk=Y2,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let i=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),l=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);vf(()=>{i.forEach(f=>{l.has(f.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,f]}))})});try{return i=await BC({router:this,matches:i,location:r,preload:!0,updateMatch:(f,d)=>{c.has(f)?i=i.map(h=>h.id===f?d(h):h):this.updateMatch(f,d)}}),i}catch(f){if(br(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:r});qs(f)||console.error(f);return}},this.matchRoute=(n,r)=>{const i={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},c=this.buildLocation(i);if(r?.pending&&this.state.status!=="pending")return!1;const f=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=U6(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!d||n.params&&!Xa(d.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Xa(f.search,c.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??aU,parseSearch:t.parseSearch??iU,protocolAllowlist:t.protocolAllowlist??M6}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:r}){this.routesById=t,this.routesByPath=n,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:c,parsedParams:l}=r;let{matchedRoutes:f}=r,d=!1;(i?i.path!=="/"&&c["**"]:Xi(t.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const h=d?xU(this.options.notFoundMode,f):void 0,b=new Array(f.length),g=new Map(this.state.matches.map(v=>[v.routeId,v]));for(let v=0;vthis.navigate({...T,_fromLocation:t}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:b,routeId:w.id};_.__routeContext=w.options.context(k)??void 0}_.context={...I,..._.__routeContext,..._.__beforeLoadContext}}}return b}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:r,parsedParams:i}=this.getMatchedRoutes(t.pathname),c=Mf(n),l={...t.search};for(const b of n)try{Object.assign(l,yp(b.options.validateSearch,l))}catch{}const f=Mf(this.state.matches),d=f&&f.routeId===c.id&&t.pathname===this.state.location.pathname;let h;if(d)h=f.params;else{const b={...r};for(const g of n)try{$C(g,r,i??{},b)}catch{}h=b}return{matchedRoutes:n,fullPath:c.fullPath,search:l,params:h}}}class Pp extends Error{}class vU extends Error{}function SU(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function yp(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Pp("Async validation not supported");if(n.issues)throw new Pp(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 _U({pathname:e,routesById:t,processedTree:n}){const r={},i=Xi(e);let c,l;const f=j6(i,n,!0);return f&&(c=f.route,Object.assign(r,f.rawParams),l=Object.assign({},f.parsedParams)),{matchedRoutes:f?.branch||[t[mr]],routeParams:r,foundRoute:c,parsedParams:l}}function wU({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return EU(n)(e,t,r??!1)}function EU(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const i of e){if("search"in i.options)i.options.search?.middlewares&&t.middlewares.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const c=({search:l,next:f})=>{let d=l;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(d=i.options.preSearchFilters.reduce((b,g)=>g(b),l));const h=f(d);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((b,g)=>g(b),h):h};t.middlewares.push(c)}if(i.options.validateSearch){const c=({search:l,next:f})=>{const d=f(l);if(!t._includeValidateSearch)return d;try{return{...d,...yp(i.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(c)}}const n=({search:i})=>{const c=t.dest;return c.search?c.search===!0?i:Fi(c.search,i):{}};t.middlewares.push(n);const r=(i,c,l)=>{if(i>=l.length)return c;const f=l[i];return f({search:c,next:h=>r(i+1,h,l)})};return function(c,l,f){return t.dest=l,t._includeValidateSearch=f,r(0,c,t.middlewares)}}function xU(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return mr}function $C(e,t,n,r){const i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(const c in t)c in n&&(r[c]=n[c]);else{const c=i(r);Object.assign(r,c)}}const RU="Error preloading route! ☝️";class eO{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,i=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=mr:this.parentRoute||Bo(!1);let c=i?mr:r?.path;c&&c!=="/"&&(c=q2(c));const l=r?.id||c;let f=i?mr:mp([this.parentRoute.id===mr?"":this.parentRoute.id,l]);c===mr&&(c="/"),f!==mr&&(f=mp(["/",f]));const d=f===mr?"/":mp([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=d,this._to=Xi(d)},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.redirect=n=>Vv({from:this.fullPath,...n}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class CU extends eO{constructor(t){super(t)}}const AU="use",UC=Lv[AU],Gh=typeof window<"u"?M.useLayoutEffect:M.useEffect;function z0(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function TU(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([c])=>{t(c)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function IU(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}function qv(e){const t=e.errorComponent??Fv;return N.jsx(OU,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}class OU extends M.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Fv({error:e}){const[t,n]=M.useState(!1);return N.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[N.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[N.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),N.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),N.jsx("div",{style:{height:".25rem"}}),t?N.jsx("div",{children:N.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?N.jsx("code",{children:e.message}):null})}):null]})}function MU({children:e,fallback:t=null}){return Gv()?N.jsx(Cl.Fragment,{children:e}):N.jsx(Cl.Fragment,{children:t})}function Gv(){return Cl.useSyncExternalStore(DU,()=>!0,()=>!1)}function DU(){return()=>{}}var B0={exports:{}},$0={},U0={exports:{}},j0={};var jC;function kU(){if(jC)return j0;jC=1;var e=zl();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,c=e.useLayoutEffect,l=e.useDebugValue;function f(g,v){var _=v(),w=r({inst:{value:_,getSnapshot:v}}),E=w[0].inst,R=w[1];return c(function(){E.value=_,E.getSnapshot=v,d(E)&&R({inst:E})},[g,_,v]),i(function(){return d(E)&&R({inst:E}),g(function(){d(E)&&R({inst:E})})},[g]),l(_),_}function d(g){var v=g.getSnapshot;g=g.value;try{var _=v();return!n(g,_)}catch{return!0}}function h(g,v){return v()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return j0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,j0}var HC;function tO(){return HC||(HC=1,U0.exports=kU()),U0.exports}var VC;function PU(){if(VC)return $0;VC=1;var e=zl(),t=tO();function n(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,c=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;return $0.useSyncExternalStoreWithSelector=function(h,b,g,v,_){var w=c(null);if(w.current===null){var E={hasValue:!1,value:null};w.current=E}else E=w.current;w=f(function(){function C(j){if(!I){if(I=!0,k=j,j=v(j),_!==void 0&&E.hasValue){var H=E.value;if(_(H,j))return T=H}return T=j}if(H=T,r(k,j))return H;var P=v(j);return _!==void 0&&_(H,P)?(k=j,H):(k=j,T=P)}var I=!1,k,T,$=g===void 0?null:g;return[function(){return C(b())},$===null?void 0:function(){return C($())}]},[b,g,v,_]);var R=i(h,w[0],w[1]);return l(function(){E.hasValue=!0,E.value=R},[R]),d(R),R},$0}var qC;function NU(){return qC||(qC=1,B0.exports=PU()),B0.exports}var nO=NU();function LU(e,t){return e===t}function zU(e,t,n=LU){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(l);return f},[e]),i=M.useCallback(()=>e?.get(),[e]);return nO.useSyncExternalStoreWithSelector(r,i,i,t,n)}const sO=M.createContext(null);function ns(e){const t=M.useContext(sO);return e?.warn,t}function Mn(e){const t=ns({warn:e?.router===void 0}),n=e?.router||t,r=M.useRef(void 0);return zU(n.__store,i=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const c=Bs(r.current,e.select(i));return r.current=c,c}return e.select(i)}return i})}const ym=M.createContext(void 0),BU=M.createContext(void 0);function Wr(e){const t=M.useContext(e.from?BU:ym);return Mn({select:r=>{const i=r.matches.find(c=>e.from?e.from===c.routeId:c.id===t);if(Bo(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function Zv(e){return Wr({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Kv(e){const{select:t,...n}=e;return Wr({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function Qv(e){return Wr({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Yv(e){return Wr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function bm(e){const t=ns();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var H0={exports:{}},Qn={};var FC;function $U(){if(FC)return Qn;FC=1;var e=zl();function t(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),H0.exports=$U(),H0.exports}var na=rO();function UU(e,t){const n=ns(),r=IU(t),{activeProps:i,inactiveProps:c,activeOptions:l,to:f,preload:d,preloadDelay:h,hashScrollIntoView:b,replace:g,startTransition:v,resetScroll:_,viewTransition:w,children:E,target:R,disabled:C,style:I,className:k,onClick:T,onBlur:$,onFocus:j,onMouseEnter:H,onMouseLeave:P,onTouchStart:Q,ignoreBlocker:ne,params:te,search:F,hash:oe,state:me,mask:ge,reloadDocument:V,unsafeRelative:re,from:J,_fromLocation:be,...ue}=e,z=Gv(),ee=Mn({select:dt=>{const $t=dt.matches[dt.matches.length-1];return{search:$t?.search,hash:dt.location.hash,path:$t?.pathname}},structuralSharing:!0}),ye=e.from,we=M.useMemo(()=>({...e,from:ye}),[n,ee,ye,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Ee=M.useMemo(()=>n.buildLocation({...we}),[n,we]),Se=Ee.maskedLocation?Ee.maskedLocation.publicHref:Ee.publicHref,Ie=Ee.maskedLocation?Ee.maskedLocation.external:Ee.external,qe=M.useMemo(()=>GU(Se,Ie,n.history,C),[C,Ie,Se,n.history]),ve=M.useMemo(()=>{if(qe?.external)return Op(qe.href,n.protocolAllowlist)?void 0:qe.href;if(!ZU(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),Op(f,n.protocolAllowlist)?void 0:f}catch{}},[f,qe,n.protocolAllowlist]),Je=Mn({select:dt=>{if(ve)return!1;if(l?.exact){if(!Z6(dt.location.pathname,Ee.pathname,n.basepath))return!1}else{const $t=Dp(dt.location.pathname,n.basepath),gt=Dp(Ee.pathname,n.basepath);if(!($t.startsWith(gt)&&($t.length===gt.length||$t[gt.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Xa(dt.location.search,Ee.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?z&&dt.location.hash===Ee.hash:!0}}),wt=Je?Fi(i,{})??jU:V0,pe=Je?V0:Fi(c,{})??V0,xe=[k,wt.className,pe.className].filter(Boolean).join(" "),_e=(I||wt.style||pe.style)&&{...I,...wt.style,...pe.style},[Ge,Oe]=M.useState(!1),He=M.useRef(!1),Me=e.reloadDocument||ve?!1:d??n.options.defaultPreload,ft=h??n.options.defaultPreloadDelay??0,mt=M.useCallback(()=>{n.preloadRoute({...we,_builtLocation:Ee}).catch(dt=>{console.warn(dt),console.warn(RU)})},[n,we,Ee]),Xe=M.useCallback(dt=>{dt?.isIntersecting&&mt()},[mt]);TU(r,Xe,FU,{disabled:!!C||Me!=="viewport"}),M.useEffect(()=>{He.current||!C&&Me==="render"&&(mt(),He.current=!0)},[C,mt,Me]);const Pt=dt=>{const $t=dt.currentTarget.getAttribute("target"),gt=R!==void 0?R:$t;if(!C&&!KU(dt)&&!dt.defaultPrevented&&(!gt||gt==="_self")&&dt.button===0){dt.preventDefault(),na.flushSync(()=>{Oe(!0)});const Os=n.subscribe("onResolved",()=>{Os(),Oe(!1)});n.navigate({...we,replace:g,resetScroll:_,hashScrollIntoView:b,startTransition:v,viewTransition:w,ignoreBlocker:ne})}};if(ve)return{...ue,ref:r,href:ve,...E&&{children:E},...R&&{target:R},...C&&{disabled:C},...I&&{style:I},...k&&{className:k},...T&&{onClick:T},...$&&{onBlur:$},...j&&{onFocus:j},...H&&{onMouseEnter:H},...P&&{onMouseLeave:P},...Q&&{onTouchStart:Q}};const wn=dt=>{if(C||Me!=="intent")return;if(!ft){mt();return}const $t=dt.currentTarget;if(rf.has($t))return;const gt=setTimeout(()=>{rf.delete($t),mt()},ft);rf.set($t,gt)},It=dt=>{C||Me!=="intent"||mt()},Xs=dt=>{if(C||!Me||!ft)return;const $t=dt.currentTarget,gt=rf.get($t);gt&&(clearTimeout(gt),rf.delete($t))};return{...ue,...wt,...pe,href:qe?.href,ref:r,onClick:ll([T,Pt]),onBlur:ll([$,Xs]),onFocus:ll([j,wn]),onMouseEnter:ll([H,wn]),onMouseLeave:ll([P,Xs]),onTouchStart:ll([Q,It]),disabled:!!C,target:R,..._e&&{style:_e},...xe&&{className:xe},...C&&HU,...Je&&VU,...z&&Ge&&qU}}const V0={},jU={className:"active"},HU={role:"link","aria-disabled":!0},VU={"data-status":"active","aria-current":"page"},qU={"data-transitioning":"transitioning"},rf=new WeakMap,FU={rootMargin:"100px"},ll=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function GU(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function ZU(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const $s=M.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:i,...c}=UU(r,t),l=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...d}=c;return M.createElement("a",d,l)}return M.createElement(n,c,l)});function KU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let QU=class extends eO{constructor(t){super(t),this.useMatch=n=>Wr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Wr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Qv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Kv({...n,from:this.id}),this.useLoaderData=n=>Zv({...n,from:this.id}),this.useNavigate=()=>bm({from:this.fullPath}),this.Link=Cl.forwardRef((n,r)=>N.jsx($s,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function YU(e){return new QU(e)}function XU(){return e=>JU(e)}class WU extends CU{constructor(t){super(t),this.useMatch=n=>Wr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Wr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Qv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Kv({...n,from:this.id}),this.useLoaderData=n=>Zv({...n,from:this.id}),this.useNavigate=()=>bm({from:this.fullPath}),this.Link=Cl.forwardRef((n,r)=>N.jsx($s,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function JU(e){return new WU(e)}function _t(e){return typeof e=="object"?new ZC(e,{silent:!0}).createRoute(e):new ZC(e,{silent:!0}).createRoute}class ZC{constructor(t,n){this.path=t,this.createRoute=r=>{const i=YU(r);return i.isRoot=!1,i},this.silent=n?.silent}}class KC{constructor(t){this.useMatch=n=>Wr({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Wr({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Yv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>Qv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Kv({...n,from:this.options.id}),this.useLoaderData=n=>Zv({...n,from:this.options.id}),this.useNavigate=()=>{const n=ns();return bm({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function QC(e){return typeof e=="object"?new KC(e):t=>new KC({id:e,...t})}function Tt(e,t){let n,r,i,c;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t]}).catch(d=>{if(i=d,I6(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),c=!0)}})),n),f=function(h){if(c)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(UC)UC(l());else throw l();return M.createElement(r,h)};return f.preload=l,f}function e5(){const e=ns(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),{hasPendingMatches:i,isLoading:c}=Mn({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),l=z0(c),f=c||n||i,d=z0(f),h=c||i,b=z0(h);return e.startTransition=g=>{r(!0),M.startTransition(()=>{g(),r(!1)})},M.useEffect(()=>{const g=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Xi(e.latestLocation.publicHref)!==Xi(v.publicHref)&&e.commitLocation({...v,replace:!0}),()=>{g()}},[e,e.history]),Gh(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(v){console.error(v)}})()},[e]),Gh(()=>{l&&!c&&e.emit({type:"onLoad",...Wa(e.state)})},[l,e,c]),Gh(()=>{b&&!h&&e.emit({type:"onBeforeRouteMount",...Wa(e.state)})},[h,b,e]),Gh(()=>{if(d&&!f){const g=Wa(e.state);e.emit({type:"onResolved",...g}),e.__store.setState(v=>({...v,status:"idle",resolvedLocation:v.location})),g.hrefChanged&&sU(e)}},[f,d,e]),null}function t5(e){const t=Mn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return N.jsx(qv,{getResetKey:()=>t,onCatch:(n,r)=>{if(qs(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(qs(n))return e.fallback?.(n);throw n},children:e.children})}function n5(){return N.jsx("p",{children:"Not Found"})}function ml(e){return N.jsx(N.Fragment,{children:e.children})}function oO(e,t,n){return t.options.notFoundComponent?N.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?N.jsx(e.options.defaultNotFoundComponent,{...n}):N.jsx(n5,{})}function s5(){return ns().isScrollRestoring,null}const iO=M.memo(function({matchId:t}){const n=ns(),r=Mn({select:E=>{const R=E.matches.findIndex(I=>I.id===t),C=E.matches[R];return Bo(C),{routeId:C.routeId,ssr:C.ssr,_displayPending:C._displayPending,resetKey:E.loadedAt,parentRouteId:E.matches[R-1]?.routeId}},structuralSharing:!0}),i=n.routesById[r.routeId],c=i.options.pendingComponent??n.options.defaultPendingComponent,l=c?N.jsx(c,{}):null,f=i.options.errorComponent??n.options.defaultErrorComponent,d=i.options.onCatch??n.options.defaultOnCatch,h=i.isRoot?i.options.notFoundComponent??n.options.notFoundRoute?.options.component:i.options.notFoundComponent,b=r.ssr===!1||r.ssr==="data-only",g=(!i.isRoot||i.options.wrapInSuspense||b)&&(i.options.wrapInSuspense??c??(i.options.errorComponent?.preload||b))?M.Suspense:ml,v=f?qv:ml,_=h?t5:ml,w=i.isRoot?i.options.shellComponent??ml:ml;return N.jsxs(w,{children:[N.jsx(ym.Provider,{value:t,children:N.jsx(g,{fallback:l,children:N.jsx(v,{getResetKey:()=>r.resetKey,errorComponent:f||Fv,onCatch:(E,R)=>{if(qs(E))throw E;d?.(E,R)},children:N.jsx(_,{fallback:E=>{if(!h||E.routeId&&E.routeId!==r.routeId||!E.routeId&&!i.isRoot)throw E;return M.createElement(h,E)},children:b||r._displayPending?N.jsx(MU,{fallback:l,children:N.jsx(YC,{matchId:t})}):N.jsx(YC,{matchId:t})})})})}),r.parentRouteId===mr&&n.options.scrollRestoration?N.jsxs(N.Fragment,{children:[N.jsx(r5,{}),N.jsx(s5,{})]}):null]})});function r5(){const e=ns(),t=M.useRef(void 0);return N.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Wa(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const YC=M.memo(function({matchId:t}){const n=ns(),{match:r,key:i,routeId:c}=Mn({select:d=>{const h=d.matches.find(w=>w.id===t),b=h.routeId,v=(n.routesById[b].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:b,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return{key:v?JSON.stringify(v):void 0,routeId:b,match:{id:h.id,status:h.status,error:h.error,invalid:h.invalid,_forcePending:h._forcePending,_displayPending:h._displayPending}}},structuralSharing:!0}),l=n.routesById[c],f=M.useMemo(()=>{const d=l.options.component??n.options.defaultComponent;return d?N.jsx(d,{},i):N.jsx(aO,{})},[i,l.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const h=n.getMatch(r.id);if(h&&!h._nonReactive.minPendingPromise){const b=Al();h._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),h._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return Bo(qs(r.error)),oO(n,l,r.error);if(r.status==="redirected")throw Bo(br(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return f}),aO=M.memo(function(){const t=ns(),n=M.useContext(ym),r=Mn({select:h=>h.matches.find(b=>b.id===n)?.routeId}),i=t.routesById[r],c=Mn({select:h=>{const g=h.matches.find(v=>v.id===n);return Bo(g),g.globalNotFound}}),l=Mn({select:h=>{const b=h.matches,g=b.findIndex(v=>v.id===n);return b[g+1]?.id}}),f=t.options.defaultPendingComponent?N.jsx(t.options.defaultPendingComponent,{}):null;if(c)return oO(t,i,void 0);if(!l)return null;const d=N.jsx(iO,{matchId:l});return r===mr?N.jsx(M.Suspense,{fallback:f,children:d}):d});function o5(){const e=ns(),n=e.routesById[mr].options.pendingComponent??e.options.defaultPendingComponent,r=n?N.jsx(n,{}):null,i=typeof document<"u"&&e.ssr?ml:M.Suspense,c=N.jsxs(i,{fallback:r,children:[N.jsx(e5,{}),N.jsx(i5,{})]});return e.options.InnerWrap?N.jsx(e.options.InnerWrap,{children:c}):c}function i5(){const e=ns(),t=Mn({select:i=>i.matches[0]?.id}),n=Mn({select:i=>i.loadedAt}),r=t?N.jsx(iO,{matchId:t}):null;return N.jsx(ym.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:N.jsx(qv,{getResetKey:()=>n,errorComponent:Fv,onCatch:void 0,children:r})})}const a5=e=>new c5(e);class c5 extends bU{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=_t,globalThis.createLazyFileRoute=QC):typeof window<"u"&&(window.createFileRoute=_t,window.createLazyFileRoute=QC);function l5({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=N.jsx(sO.Provider,{value:e,children:t});return e.options.Wrap?N.jsx(e.options.Wrap,{children:r}):r}function u5({router:e,...t}){return N.jsx(l5,{router:e,...t,children:N.jsx(o5,{})})}function f5(e){return Mn({select:t=>e?.select?e.select(t.location):t.location})}function d5({tag:e,attrs:t,children:n,nonce:r}){switch(e){case"title":return N.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return N.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return N.jsx("link",{...t,nonce:r,suppressHydrationWarning:!0});case"style":return N.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case"script":return N.jsx(h5,{attrs:t,children:n});default:return null}}function h5({attrs:e,children:t}){ns();const n=Gv(),r=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(M.useEffect(()=>{if(!r){if(e?.src){const i=(()=>{try{const f=document.baseURI||window.location.href;return new URL(e.src,f).href}catch{return e.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(f=>f.src===i))return;const l=document.createElement("script");for(const[f,d]of Object.entries(e))f!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&l.setAttribute(f,typeof d=="boolean"?"":String(d));return document.head.appendChild(l),()=>{l.parentNode&&l.parentNode.removeChild(l)}}if(typeof t=="string"){const i=typeof e?.type=="string"?e.type:"text/javascript",c=typeof e?.nonce=="string"?e.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(d=>{if(!(d instanceof HTMLScriptElement))return!1;const h=d.getAttribute("type")??"text/javascript",b=d.getAttribute("nonce")??void 0;return d.textContent===t&&h===i&&b===c}))return;const f=document.createElement("script");if(f.textContent=t,e)for(const[d,h]of Object.entries(e))d!=="suppressHydrationWarning"&&h!==void 0&&h!==!1&&f.setAttribute(d,typeof h=="boolean"?"":String(h));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}}},[e,t,r]),r&&typeof t=="string")return N.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return N.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return N.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}const p5=()=>{const e=ns(),t=e.options.ssr?.nonce,n=Mn({select:d=>d.matches.map(h=>h.meta).filter(Boolean)}),r=M.useMemo(()=>{const d=[],h={};let b;for(let g=n.length-1;g>=0;g--){const v=n[g];for(let _=v.length-1;_>=0;_--){const w=v[_];if(w)if(w.title)b||(b={tag:"title",children:w.title});else if("script:ld+json"in w)try{const E=JSON.stringify(w["script:ld+json"]);d.push({tag:"script",attrs:{type:"application/ld+json"},children:P6(E)})}catch{}else{const E=w.name??w.property;if(E){if(h[E])continue;h[E]=!0}d.push({tag:"meta",attrs:{...w,nonce:t}})}}}return b&&d.push(b),t&&d.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),d.reverse(),d},[n,t]),i=Mn({select:d=>{const h=d.matches.map(v=>v.links).filter(Boolean).flat(1).map(v=>({tag:"link",attrs:{...v,nonce:t}})),b=e.ssr?.manifest,g=d.matches.map(v=>b?.routes[v.routeId]?.assets??[]).filter(Boolean).flat(1).filter(v=>v.tag==="link").map(v=>({tag:"link",attrs:{...v.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...h,...g]},structuralSharing:!0}),c=Mn({select:d=>{const h=[];return d.matches.map(b=>e.looseRoutesById[b.routeId]).forEach(b=>e.ssr?.manifest?.routes[b.id]?.preloads?.filter(Boolean).forEach(g=>{h.push({tag:"link",attrs:{rel:"modulepreload",href:g,nonce:t}})})),h},structuralSharing:!0}),l=Mn({select:d=>d.matches.map(h=>h.styles).flat(1).filter(Boolean).map(({children:h,...b})=>({tag:"style",attrs:{...b,nonce:t},children:h})),structuralSharing:!0}),f=Mn({select:d=>d.matches.map(h=>h.headScripts).flat(1).filter(Boolean).map(({children:h,...b})=>({tag:"script",attrs:{...b,nonce:t},children:h})),structuralSharing:!0});return m5([...r,...c,...i,...l,...f],d=>JSON.stringify(d))};function m5(e,t){const n=new Set;return e.filter(r=>{const i=t(r);return n.has(i)?!1:(n.add(i),!0)})}function g5(){const e=p5(),n=ns().options.ssr?.nonce;return N.jsx(N.Fragment,{children:e.map(r=>M.createElement(d5,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var q0={exports:{}},of={},F0={exports:{}},G0={};var XC;function y5(){return XC||(XC=1,(function(e){function t(V,re){var J=V.length;V.push(re);e:for(;0>>1,ue=V[be];if(0>>1;bei(ye,J))wei(Ee,ye)?(V[be]=Ee,V[we]=J,be=we):(V[be]=ye,V[ee]=J,be=ee);else if(wei(Ee,J))V[be]=Ee,V[we]=J,be=we;else break e}}return re}function i(V,re){var J=V.sortIndex-re.sortIndex;return J!==0?J:V.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],h=[],b=1,g=null,v=3,_=!1,w=!1,E=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function T(V){for(var re=n(h);re!==null;){if(re.callback===null)r(h);else if(re.startTime<=V)r(h),re.sortIndex=re.expirationTime,t(d,re);else break;re=n(h)}}function $(V){if(E=!1,T(V),!w)if(n(d)!==null)w=!0,j||(j=!0,F());else{var re=n(h);re!==null&&ge($,re.startTime-V)}}var j=!1,H=-1,P=5,Q=-1;function ne(){return R?!0:!(e.unstable_now()-QV&&ne());){var be=g.callback;if(typeof be=="function"){g.callback=null,v=g.priorityLevel;var ue=be(g.expirationTime<=V);if(V=e.unstable_now(),typeof ue=="function"){g.callback=ue,T(V),re=!0;break t}g===n(d)&&r(d),T(V)}else r(d);g=n(d)}if(g!==null)re=!0;else{var z=n(h);z!==null&&ge($,z.startTime-V),re=!1}}break e}finally{g=null,v=J,_=!1}re=void 0}}finally{re?F():j=!1}}}var F;if(typeof k=="function")F=function(){k(te)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,me=oe.port2;oe.port1.onmessage=te,F=function(){me.postMessage(null)}}else F=function(){C(te,0)};function ge(V,re){H=C(function(){V(e.unstable_now())},re)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125be?(V.sortIndex=J,t(h,V),n(d)===null&&V===n(h)&&(E?(I(H),H=-1):E=!0,ge($,J-be))):(V.sortIndex=ue,t(d,V),w||_||(w=!0,j||(j=!0,F()))),V},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(V){var re=v;return function(){var J=v;v=re;try{return V.apply(this,arguments)}finally{v=J}}}})(G0)),G0}var WC;function b5(){return WC||(WC=1,F0.exports=y5()),F0.exports}var JC;function v5(){if(JC)return of;JC=1;var e=b5(),t=zl(),n=rO();function r(s){var o="https://react.dev/errors/"+s;if(1ue||(s.current=be[ue],be[ue]=null,ue--)}function ye(s,o){ue++,be[ue]=s.current,s.current=o}var we=z(null),Ee=z(null),Se=z(null),Ie=z(null);function qe(s,o){switch(ye(Se,o),ye(Ee,s),ye(we,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?LR(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=LR(o),s=zR(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ee(we),ye(we,s)}function ve(){ee(we),ee(Ee),ee(Se)}function Je(s){s.memoizedState!==null&&ye(Ie,s);var o=we.current,a=zR(o,s.type);o!==a&&(ye(Ee,s),ye(we,a))}function wt(s){Ee.current===s&&(ee(we),ee(Ee)),Ie.current===s&&(ee(Ie),Yu._currentValue=J)}var pe,xe;function _e(s){if(pe===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);pe=o&&o[1]||"",xe=-1i.map(i=>d[i]); +function jU(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const l of c.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(i){if(i.ep)return;i.ep=!0;const c=n(i);fetch(i.href,c)}})();var XOe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WOe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Cv={exports:{}},Bf={};var CI;function VU(){if(CI)return Bf;CI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,c){var l=null;if(c!==void 0&&(l=""+c),i.key!==void 0&&(l=""+i.key),"key"in i){c={};for(var f in i)f!=="key"&&(c[f]=i[f])}else c=i;return i=c.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:c}}return Bf.Fragment=t,Bf.jsx=n,Bf.jsxs=n,Bf}var AI;function HU(){return AI||(AI=1,Cv.exports=VU()),Cv.exports}var k=HU(),eg=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(){}},qU={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},FU=class{#e=qU;#n=!1;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)}},Vb=new FU;function GU(e){setTimeout(e,0)}var tg=typeof window>"u"||"Deno"in globalThis;function to(){}function KU(e,t){return typeof e=="function"?e(t):e}function ZU(e){return typeof e=="number"&&e>=0&&e!==1/0}function QU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Hb(e,t){return typeof e=="function"?e(t):e}function YU(e,t){return typeof e=="function"?e(t):e}function II(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:c,queryKey:l,stale:f}=e;if(l){if(r){if(t.queryHash!==OS(l,t.options))return!1}else if(!md(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||c&&!c(t))}function TI(e,t){const{exact:n,status:r,predicate:i,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(n){if(hd(t.options.mutationKey)!==hd(c))return!1}else if(!md(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function OS(e,t){return(t?.queryKeyHashFn||hd)(e)}function hd(e){return JSON.stringify(e,(t,n)=>qb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function md(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>md(e[n],t[n])):!1}var XU=Object.prototype.hasOwnProperty;function iD(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=OI(e)&&OI(t);if(!r&&!(qb(e)&&qb(t)))return t;const c=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),f=l.length,d=r?new Array(f):{};let p=0;for(let v=0;v{Vb.setTimeout(t,e)})}function JU(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?iD(e,t):t}function e5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function t5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var MS=Symbol();function aD(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===MS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function eMe(e,t){return typeof e=="function"?e(...t):!!e}function n5(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var s5=class extends eg{#e;#n;#t;constructor(){super(),this.#t=e=>{if(!tg&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},cD=new s5;function r5(){let e,t;const n=new Promise((i,c)=>{e=i,t=c});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var o5=GU;function i5(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=o5;const c=f=>{t?e.push(f):i(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||l()}return d},batchCalls:f=>(...d)=>{c(()=>{f(...d)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{i=f}}}var As=i5(),a5=class extends eg{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(!tg&&window.addEventListener){const 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.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},hm=new a5;function c5(e){return Math.min(1e3*2**e,3e4)}function lD(e){return(e??"online")==="online"?hm.isOnline():!0}var Fb=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function uD(e){let t=!1,n=0,r;const i=r5(),c=()=>i.status!=="pending",l=x=>{if(!c()){const R=new Fb(x);b(R),e.onCancel?.(R)}},f=()=>{t=!0},d=()=>{t=!1},p=()=>cD.isFocused()&&(e.networkMode==="always"||hm.isOnline())&&e.canRun(),v=()=>lD(e.networkMode)&&e.canRun(),g=x=>{c()||(r?.(),i.resolve(x))},b=x=>{c()||(r?.(),i.reject(x))},_=()=>new Promise(x=>{r=R=>{(c()||p())&&x(R)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),E=()=>{if(c())return;let x;const R=n===0?e.initialPromise:void 0;try{x=R??e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(g).catch(C=>{if(c())return;const T=e.retry??(tg?0:3),P=e.retryDelay??c5,I=typeof P=="function"?P(n,C):P,B=T===!0||typeof T=="number"&&np()?void 0:_()).then(()=>{t?b(C):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r?.(),i),cancelRetry:f,continueRetry:d,canStart:v,start:()=>(v()?E():_().then(E),i)}}var fD=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ZU(this.gcTime)&&(this.#e=Vb.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tg?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Vb.clearTimeout(this.#e),this.#e=void 0)}},l5=class extends fD{#e;#n;#t;#r;#s;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#t=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=PI(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=PI(this.options);t.data!==void 0&&(this.setState(DI(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=JU(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(to).catch(to):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>YU(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===MS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Hb(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:!QU(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.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.#s&&(this.#a?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const f=aD(this.options,t),p=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(v),v})();return this.#a=!1,this.options.persister?this.options.persister(f,p,this):f(p)},l=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(f),f})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=uD({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof Fb&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,d)=>{this.#o({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#t.config.onSuccess?.(f,this),this.#t.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Fb){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#t.config.onError?.(f,this),this.#t.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...u5(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...DI(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),As.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function u5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lD(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function DI(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function PI(e){const 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"}}function kI(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const p=async()=>{let v=!1;const g=E=>{n5(E,()=>t.signal,()=>v=!0)},b=aD(t.options,t.fetchOptions),_=async(E,x,R)=>{if(v)return Promise.reject();if(x==null&&E.pages.length)return Promise.resolve(E);const T=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:x,direction:R?"backward":"forward",meta:t.options.meta};return g(j),j})(),P=await b(T),{maxPages:I}=t.options,B=R?t5:e5;return{pages:B(E.pages,P,I),pageParams:B(E.pageParams,x,I)}};if(i&&c.length){const E=i==="backward",x=E?f5:NI,R={pages:c,pageParams:l},C=x(r,R);f=await _(R,C,E)}else{const E=e??c.length;do{const x=d===0?l[0]??r.initialPageParam:NI(r,f);if(d>0&&x==null)break;f=await _(f,x),d++}while(dt.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function NI(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function f5(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var d5=class extends fD{#e;#n;#t;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||p5(),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.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=uD({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(c,l)=>{this.#s({type:"failed",failureCount:c,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:i}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#s({type:"pending",context:l,variables:e,isPaused:i})}const c=await this.#r.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,n),await this.options.onSuccess?.(c,e,this.state.context,n),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(c,null,e,this.state.context,n),this.#s({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(c,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#s({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),As.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function p5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var h5=class extends eg{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const r=new d5({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Oh(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Oh(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Oh(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Oh(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){As.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>TI(t,n))}findAll(e={}){return this.getAll().filter(t=>TI(e,t))}notify(e){As.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return As.batch(()=>Promise.all(e.map(t=>t.continue().catch(to))))}};function Oh(e){return e.options.scope?.id}var m5=class extends eg{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??OS(r,t);let c=this.get(i);return c||(c=new l5({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){As.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>II(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>II(e,n)):t}notify(e){As.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){As.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){As.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},g5=class{#e;#n;#t;#r;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new m5,this.#n=e.mutationCache||new h5,this.#t=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=cD.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=hm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const 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(Hb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,l=KU(t,c);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return As.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;As.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return As.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=As.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(to).catch(to)}invalidateQueries(e,t={}){return As.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=As.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let c=i.fetch(void 0,n);return n.throwOnError||(c=c.catch(to)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(to)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Hb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(to).catch(to)}fetchInfiniteQuery(e){return e.behavior=kI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(to).catch(to)}ensureInfiniteQueryData(e){return e.behavior=kI(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hm.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#r.set(hd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{md(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(hd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{md(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=OS(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===MS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},Av={exports:{}},Qe={};var LI;function y5(){if(LI)return Qe;LI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function _($){return $===null||typeof $!="object"?null:($=b&&$[b]||$["@@iterator"],typeof $=="function"?$:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,R={};function C($,ee,ye){this.props=$,this.context=ee,this.refs=R,this.updater=ye||E}C.prototype.isReactComponent={},C.prototype.setState=function($,ee){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,ee,"setState")},C.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function T(){}T.prototype=C.prototype;function P($,ee,ye){this.props=$,this.context=ee,this.refs=R,this.updater=ye||E}var I=P.prototype=new T;I.constructor=P,x(I,C.prototype),I.isPureReactComponent=!0;var B=Array.isArray;function j(){}var V={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function Q($,ee,ye){var Ee=ye.ref;return{$$typeof:e,type:$,key:ee,ref:Ee!==void 0?Ee:null,props:ye}}function ne($,ee){return Q($.type,ee,$.props)}function te($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function F($){var ee={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(ye){return ee[ye]})}var oe=/\/+/g;function me($,ee){return typeof $=="object"&&$!==null&&$.key!=null?F(""+$.key):ee.toString(36)}function ge($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(j,j):($.status="pending",$.then(function(ee){$.status==="pending"&&($.status="fulfilled",$.value=ee)},function(ee){$.status==="pending"&&($.status="rejected",$.reason=ee)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function H($,ee,ye,Ee,xe){var Se=typeof $;(Se==="undefined"||Se==="boolean")&&($=null);var Oe=!1;if($===null)Oe=!0;else switch(Se){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch($.$$typeof){case e:case t:Oe=!0;break;case v:return Oe=$._init,H(Oe($._payload),ee,ye,Ee,xe)}}if(Oe)return xe=xe($),Oe=Ee===""?"."+me($,0):Ee,B(xe)?(ye="",Oe!=null&&(ye=Oe.replace(oe,"$&/")+"/"),H(xe,ee,ye,"",function(tt){return tt})):xe!=null&&(te(xe)&&(xe=ne(xe,ye+(xe.key==null||$&&$.key===xe.key?"":(""+xe.key).replace(oe,"$&/")+"/")+Oe)),ee.push(xe)),1;Oe=0;var Fe=Ee===""?".":Ee+":";if(B($))for(var be=0;be<$.length;be++)Ee=$[be],Se=Fe+me(Ee,be),Oe+=H(Ee,ee,ye,Se,xe);else if(be=_($),typeof be=="function")for($=be.call($),be=0;!(Ee=$.next()).done;)Ee=Ee.value,Se=Fe+me(Ee,be++),Oe+=H(Ee,ee,ye,Se,xe);else if(Se==="object"){if(typeof $.then=="function")return H(ge($),ee,ye,Ee,xe);throw ee=String($),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function re($,ee,ye){if($==null)return $;var Ee=[],xe=0;return H($,Ee,"","",function(Se){return ee.call(ye,Se,xe++)}),Ee}function J($){if($._status===-1){var ee=$._result;ee=ee(),ee.then(function(ye){($._status===0||$._status===-1)&&($._status=1,$._result=ye)},function(ye){($._status===0||$._status===-1)&&($._status=2,$._result=ye)}),$._status===-1&&($._status=0,$._result=ee)}if($._status===1)return $._result.default;throw $._result}var ve=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ue={map:re,forEach:function($,ee,ye){re($,function(){ee.apply(this,arguments)},ye)},count:function($){var ee=0;return re($,function(){ee++}),ee},toArray:function($){return re($,function(ee){return ee})||[]},only:function($){if(!te($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Qe.Activity=g,Qe.Children=ue,Qe.Component=C,Qe.Fragment=n,Qe.Profiler=i,Qe.PureComponent=P,Qe.StrictMode=r,Qe.Suspense=d,Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Qe.__COMPILER_RUNTIME={__proto__:null,c:function($){return V.H.useMemoCache($)}},Qe.cache=function($){return function(){return $.apply(null,arguments)}},Qe.cacheSignal=function(){return null},Qe.cloneElement=function($,ee,ye){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var Ee=x({},$.props),xe=$.key;if(ee!=null)for(Se in ee.key!==void 0&&(xe=""+ee.key),ee)!N.call(ee,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&ee.ref===void 0||(Ee[Se]=ee[Se]);var Se=arguments.length-2;if(Se===1)Ee.children=ye;else if(1{const t=M.useContext(dD);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},v5=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(dD.Provider,{value:e,children:t}));var on=(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))(on||{});function hD({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:c,checkDirty:l,shallowPropagate:f};function r(p,v,g){const b=v.depsTail;if(b!==void 0&&b.dep===p)return;const _=b!==void 0?b.nextDep:v.deps;if(_!==void 0&&_.dep===p){_.version=g,v.depsTail=_;return}const E=p.subsTail;if(E!==void 0&&E.version===g&&E.sub===v)return;const x=v.depsTail=p.subsTail={version:g,dep:p,sub:v,prevDep:b,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=x),b!==void 0?b.nextDep=x:v.deps=x,E!==void 0?E.nextSub=x:p.subs=x}function i(p,v=p.sub){const g=p.dep,b=p.prevDep,_=p.nextDep,E=p.nextSub,x=p.prevSub;return _!==void 0?_.prevDep=b:v.depsTail=b,b!==void 0?b.nextDep=_:v.deps=_,E!==void 0?E.prevSub=x:g.subsTail=x,x!==void 0?x.nextSub=E:(g.subs=E)===void 0&&n(g),_}function c(p){let v=p.nextSub,g;e:do{const b=p.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&d(p,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&t(b),_&1){const E=b.subs;if(E!==void 0){const x=(p=E).nextSub;x!==void 0&&(g={value:v,prev:g},v=x);continue}}if((p=v)!==void 0){v=p.nextSub;continue}for(;g!==void 0;)if(p=g.value,g=g.prev,p!==void 0){v=p.nextSub;continue e}break}while(!0)}function l(p,v){let g,b=0,_=!1;e:do{const E=p.dep,x=E.flags;if(v.flags&16)_=!0;else if((x&17)===17){if(e(E)){const R=E.subs;R.nextSub!==void 0&&f(R),_=!0}}else if((x&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(g={value:p,prev:g}),p=E.deps,v=E,++b;continue}if(!_){const R=p.nextDep;if(R!==void 0){p=R;continue}}for(;b--;){const R=v.subs,C=R.nextSub!==void 0;if(C?(p=g.value,g=g.prev):p=R,_){if(e(v)){C&&f(R),v=p.sub;continue}_=!1}else v.flags&=-33;v=p.sub;const T=p.nextDep;if(T!==void 0){p=T;continue e}}return _}while(!0)}function f(p){do{const v=p.sub,g=v.flags;(g&48)===32&&(v.flags=g|16,(g&6)===2&&t(v))}while((p=p.nextSub)!==void 0)}function d(p,v){let g=v.depsTail;for(;g!==void 0;){if(g===p)return!0;g=g.prevDep}return!1}}let PS=0,bc=0,sd=0;const oi=[],{link:tMe,unlink:mD,propagate:nMe,checkDirty:b5,shallowPropagate:sMe}=hD({update(e){return e.depsTail!==void 0?x5(e):w5(e)},notify(e){let t=sd,n=t;do if(oi[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(sd=t;n<--t;){const r=oi[n];oi[n++]=oi[t],oi[t]=r}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ng(e)):A5.call(e)}});function S5(){return PS}function _5(){++PS}function E5(){--PS||C5()}function x5(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,ng(e)}}function w5(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function R5(e){const t=e.flags;if(t&16||t&32&&b5(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,ng(e)}}else e.flags=2}function C5(){try{for(;bc0)){for(;Mh{i.get(),f.current?l.next?.(i._snapshot):f.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(c){const l=fo,f=Object.is;fo=i,++tm,i.depsTail=void 0,n&&(i.flags=on.Mutable|on.RecursedCheck);try{const d=i._snapshot,p=typeof c=="function"?c(d):c===void 0&&n?r(d):c;return d===void 0||!f(d,p)?(i._snapshot=p,!0):!1}finally{fo=l,n&&(i.flags&=~on.RecursedCheck),mm(i)}}};return n?(i.flags=on.Mutable|on.Dirty,i.get=function(){const c=i.flags;if(c&on.Dirty||c&on.Pending&&gD(i.deps,i)){if(i._update()){const l=i.subs;l!==void 0&&BI(l)}}else c&on.Pending&&(i.flags=c&~on.Pending);return fo!==void 0&&zI(i,fo,tm),i._snapshot}):i.set=function(c){if(i._update(c)){const l=i.subs;l!==void 0&&(T5(l),BI(l),yD())}},i}function O5(e){const t=()=>{const r=fo;fo=n,++tm,n.depsTail=void 0,n.flags=on.Watching|on.RecursedCheck;try{return e()}finally{fo=r,n.flags&=~on.RecursedCheck,mm(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:on.Watching|on.RecursedCheck,notify(){const r=this.flags;r&on.Dirty||r&on.Pending&&gD(this.deps,this)?t():this.flags=on.Watching},stop(){this.flags=on.None,this.depsTail=void 0,mm(this)}};return t(),n}let M5=class{constructor(t){this.atom=vD(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(kS(t))}};class D5{constructor(t){this.atom=vD(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(kS(t))}}function P5(e){return typeof e=="function"?new D5(e):new M5(e)}function k5(e){try{_5(),e()}finally{E5(),yD()}}const xa="__TSR_index",UI="popstate",jI="beforeunload";function N5(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},i=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},c=async({task:l,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){l();return}const v=e.getBlockers?.()??[],g=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&v.length&&g)for(const b of v){const _=gm(d.path,d.state);if(await b.blockerFn({currentLocation:t,nextLocation:_,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,d)=>{const p=t.state[xa];f=VI(p+1,f),c({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:f})},replace:(l,f,d)=>{const p=t.state[xa];f=VI(p,f),c({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:f})},go:(l,f)=>{c({task:()=>{e.go(l),i({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{c({task:()=>{e.back(l?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{c({task:()=>{e.forward(l?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[xa]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(p=>p!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function VI(e,t){t||(t={});const n=NS();return{...t,key:n,__TSR_key:n,[xa]:e}}function L5(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let i=[];const c=()=>i,l=N=>i=N,f=(N=>N),d=(()=>gm(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const N=NS();t.history.replaceState({[xa]:0,key:N,__TSR_key:N},"")}let p=d(),v,g=!1,b=!1,_=!1,E=!1;const x=()=>p;let R,C;const T=()=>{R&&(V._ignoreSubscribers=!0,(R.isPush?t.history.pushState:t.history.replaceState)(R.state,"",R.href),V._ignoreSubscribers=!1,R=void 0,C=void 0,v=void 0)},P=(N,Q,ne)=>{const te=f(Q);C||(v=p),p=gm(Q,ne),R={href:te,state:ne,isPush:R?.isPush||N==="push"},C||(C=Promise.resolve().then(()=>T()))},I=N=>{p=d(),V.notify({type:N})},B=async()=>{if(b){b=!1;return}const N=d(),Q=N.state[xa]-p.state[xa],ne=Q===1,te=Q===-1,F=!ne&&!te||g;g=!1;const oe=F?"GO":te?"BACK":"FORWARD",me=F?{type:"GO",index:Q}:{type:te?"BACK":"FORWARD"};if(_)_=!1;else{const ge=c();if(typeof document<"u"&&ge.length){for(const H of ge)if(await H.blockerFn({currentLocation:p,nextLocation:N,action:oe})){b=!0,t.history.go(1),V.notify(me);return}}}p=d(),V.notify(me)},j=N=>{if(E){E=!1;return}let Q=!1;const ne=c();if(typeof document<"u"&&ne.length)for(const te of ne){const F=te.enableBeforeUnload??!0;if(F===!0){Q=!0;break}if(typeof F=="function"&&F()===!0){Q=!0;break}}if(Q)return N.preventDefault(),N.returnValue=""},V=N5({getLocation:x,getLength:()=>t.history.length,pushState:(N,Q)=>P("push",N,Q),replaceState:(N,Q)=>P("replace",N,Q),back:N=>(N&&(_=!0),E=!0,t.history.back()),forward:N=>{N&&(_=!0),E=!0,t.history.forward()},go:N=>{g=!0,t.history.go(N)},createHref:N=>f(N),flush:T,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(jI,j,{capture:!0}),t.removeEventListener(UI,B)},onBlocked:()=>{v&&p!==v&&(p=v)},getBlockers:c,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(jI,j,{capture:!0}),t.addEventListener(UI,B),t.history.pushState=function(...N){const Q=n.apply(t.history,N);return V._ignoreSubscribers||I("PUSH"),Q},t.history.replaceState=function(...N){const Q=r.apply(t.history,N);return V._ignoreSubscribers||I("REPLACE"),Q},V}function $5(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function gm(e,t){const n=$5(e),r=n.indexOf("#"),i=n.indexOf("?"),c=NS();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||{[xa]:0,key:c,__TSR_key:c}}}function NS(){return(Math.random()+1).toString(36).substring(7)}const z5=!1;function rd(e){let t;return k5(()=>{t=e()}),t}function gd(e){return e[e.length-1]}function B5(e){return typeof e=="function"}function ya(e,t){return B5(e)?e(t):e}const U5=Object.prototype.hasOwnProperty,HI=Object.prototype.propertyIsEnumerable;function nr(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=t,i=GI(e)&&GI(r);if(!i&&!(ym(e)&&ym(r)))return r;const c=i?e:qI(e);if(!c)return r;const l=i?r:qI(r);if(!l)return r;const f=c.length,d=l.length,p=i?new Array(d):{};let v=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!FI(n)||!n.hasOwnProperty("isPrototypeOf"))}function FI(e){return Object.prototype.toString.call(e)==="[object Object]"}function GI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cc(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;ri||!Cc(e[l],t[l],n)))return!1;return i===c}return!1}function iu(e){let t,n;const r=new Promise((i,c)=>{t=i,n=c});return r.status="pending",r.resolve=i=>{r.status="resolved",r.value=i,t(i),e?.(i)},r.reject=i=>{r.status="rejected",n(i)},r}function j5(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Xl(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function V5(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function KI(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return V5(t)}const H5=["http:","https:","mailto:","tel:"];function vm(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const q5={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},F5=/[&><\u2028\u2029]/g;function G5(e){return e.replace(F5,t=>q5[t])}function Uf(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",i;for(;(i=t.exec(e))!==null;)r+=KI(e.slice(n,i.index))+i[0],n=t.lastIndex;r=r+KI(n?e.slice(n):e);let c=!1;return r.startsWith("//")&&(c=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:c}}function K5(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var Z5="Invariant failed";function li(e,t){if(!e)throw new Error(Z5)}function bm(e){const t=new Map;let n,r;const i=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,r&&(r.next=c,c.prev=r)):(c.next.prev=void 0,n=c.next,c.next=void 0,r&&(c.prev=r,r.next=c)),r=c)};return{get(c){const l=t.get(c);if(l)return i(l),l.value},set(c,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const f=t.get(c);if(f)f.value=l,i(f);else{const d={key:c,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(c,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const au=0,Dc=1,Pc=2,yd=3,xc=4,bD=5;function Q5(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function LS(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),i=r===-1?e.length:r,c=e.substring(t,i);if(!c||!c.includes("$"))return n[0]=au,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(c==="$"){const f=e.length;return n[0]=Pc,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(c.charCodeAt(0)===36)return n[0]=Dc,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=Q5(c);if(l){const[f,d]=l,p=c.charCodeAt(f+1);if(p===45){if(f+2!N.skipOnParamError&&N.caseSensitive===I&&N.prefix===B&&N.suffix===j);if(V)E=V;else{const N=Tv(Dc,n.fullPath??n.from,I,B,j);E=N,N.depth=c,N.parent=i,i.dynamic??=[],i.dynamic.push(N)}break}case yd:{const T=d.substring(x,_[1]),P=d.substring(_[4],R),I=v&&!!(T||P),B=T?I?T:T.toLowerCase():void 0,j=P?I?P:P.toLowerCase():void 0,V=!g&&i.optional?.find(N=>!N.skipOnParamError&&N.caseSensitive===I&&N.prefix===B&&N.suffix===j);if(V)E=V;else{const N=Tv(yd,n.fullPath??n.from,I,B,j);E=N,N.parent=i,N.depth=c,i.optional??=[],i.optional.push(N)}break}case Pc:{const T=d.substring(x,_[1]),P=d.substring(_[4],R),I=v&&!!(T||P),B=T?I?T:T.toLowerCase():void 0,j=P?I?P:P.toLowerCase():void 0,V=Tv(Pc,n.fullPath??n.from,I,B,j);E=V,V.parent=i,V.depth=c,i.wildcard??=[],i.wildcard.push(V)}}i=E}if(g&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const _=wc(n.fullPath??n.from);_.kind=bD,_.parent=i,c++,_.depth=c,i.pathless??=[],i.pathless.push(_),i=_}const b=(n.path||!n.children)&&!n.isRoot;if(b&&d.endsWith("/")){const _=wc(n.fullPath??n.from);_.kind=xc,_.parent=i,c++,_.depth=c,i.index=_,i=_}i.parse=n.options?.params?.parse??null,i.skipOnParamError=g,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,b&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)sg(e,t,d,f,i,c,l)}function Iv(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function ga(e){if(e.pathless)for(const t of e.pathless)ga(t);if(e.static)for(const t of e.static.values())ga(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())ga(t);if(e.dynamic?.length){e.dynamic.sort(Iv);for(const t of e.dynamic)ga(t)}if(e.optional?.length){e.optional.sort(Iv);for(const t of e.optional)ga(t)}if(e.wildcard?.length){e.wildcard.sort(Iv);for(const t of e.wildcard)ga(t)}}function wc(e){return{kind:au,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Tv(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function Y5(e,t){const n=wc("/"),r=new Uint16Array(6);for(const i of e)sg(!1,r,i,1,n,0);ga(n),t.masksTree=n,t.flatCache=bm(1e3)}function X5(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=$S(e,t.masksTree);return t.flatCache.set(e,r),r}function W5(e,t,n,r,i){e||="/",r||="/";const c=t?`case\0${e}`:e;let l=i.singleCache.get(c);if(!l){l=wc("/");const f=new Uint16Array(6);sg(t,f,{from:e},1,l,0),i.singleCache.set(c,l)}return $S(r,l,n)}function J5(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||="/";let c;try{c=$S(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)c=null;else throw l}return c&&(c.branch=n8(c.route)),t.matchCache.set(r,c),c}function e8(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function t8(e,t=!1,n){const r=wc(e.fullPath),i=new Uint16Array(6),c={},l={};let f=0;return sg(t,i,e,1,r,0,p=>{if(n?.(p,f),li(!(p.id in c),`Duplicate routes found with id: ${String(p.id)}`),c[p.id]=p,f!==0&&p.path){const v=e8(p.fullPath);(!l[v]||p.fullPath.endsWith("/"))&&(l[v]=p)}f++}),ga(r),{processedTree:{segmentTree:r,singleCache:bm(1e3),matchCache:bm(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:l}}function $S(e,t,n=!1){const r=e.split("/"),i=r8(e,r,t,n);if(!i)return null;const[c]=SD(e,r,i);return{route:i.node.route,rawParams:c,parsedParams:i.parsedParams}}function SD(e,t,n){const r=s8(n.node);let i=null;const c={};let l=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,p=n.extract?.segment??0;for(;f=0;te--){const F=b.optional[te];f.push({node:F,index:_,skipped:Q,depth:ne,statics:R,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(!j)for(let te=b.optional.length-1;te>=0;te--){const F=b.optional[te],{prefix:oe,suffix:me}=F;if(oe||me){const ge=F.caseSensitive?V:N??=V.toLowerCase();if(oe&&!ge.startsWith(oe)||me&&!ge.endsWith(me))continue}f.push({node:F,index:_+1,skipped:E,depth:ne,statics:R,dynamics:C,optionals:T+1,extract:P,rawParams:I,parsedParams:B})}}if(!j&&b.dynamic&&V)for(let Q=b.dynamic.length-1;Q>=0;Q--){const ne=b.dynamic[Q],{prefix:te,suffix:F}=ne;if(te||F){const oe=ne.caseSensitive?V:N??=V.toLowerCase();if(te&&!oe.startsWith(te)||F&&!oe.endsWith(F))continue}f.push({node:ne,index:_+1,skipped:E,depth:x+1,statics:R,dynamics:C+1,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(!j&&b.staticInsensitive){const Q=b.staticInsensitive.get(N??=V.toLowerCase());Q&&f.push({node:Q,index:_+1,skipped:E,depth:x+1,statics:R+1,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(!j&&b.static){const Q=b.static.get(V);Q&&f.push({node:Q,index:_+1,skipped:E,depth:x+1,statics:R+1,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(b.pathless){const Q=x+1;for(let ne=b.pathless.length-1;ne>=0;ne--){const te=b.pathless[ne];f.push({node:te,index:_,skipped:E,depth:Q,statics:R,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}}}if(v&&d)return jf(d,v)?v:d;if(v)return v;if(d)return d;if(r&&p){let g=p.index;for(let _=0;_e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===xc)>(e.node.kind===xc)||t.node.kind===xc==(e.node.kind===xc)&&t.depth>e.depth))):!0}function nm(e){return zS(e.filter(t=>t!==void 0).join("/"))}function zS(e){return e.replace(/\/{2,}/g,"/")}function _D(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function wa(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function ED(e){return wa(_D(e))}function Sm(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function o8(e,t,n){return Sm(e,n)===Sm(t,n)}function i8({base:e,to:t,trailingSlash:n="never",cache:r}){const i=t.startsWith("/"),c=!i&&t===".";let l;if(r){l=i?t:c?e:e+"\0"+t;const g=r.get(l);if(g)return g}let f;if(c)f=e.split("/");else if(i)f=t.split("/");else{for(f=e.split("/");f.length>1&&gd(f)==="";)f.pop();const g=t.split("/");for(let b=0,_=g.length;b<_;b++){const E=g[b];E===""?b?b===_-1&&f.push(E):f=[E]:E===".."?f.pop():E==="."||f.push(E)}}f.length>1&&(gd(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let d,p="";for(let g=0;g0&&(p+="/");const b=f[g];if(!b)continue;d=LS(b,0,d);const _=d[0];if(_===au){p+=b;continue}const E=d[5],x=b.substring(0,d[1]),R=b.substring(d[4],E),C=b.substring(d[2],d[3]);_===Dc?p+=x||R?`${x}{$${C}}${R}`:`$${C}`:_===Pc?p+=x||R?`${x}{$}${R}`:"$":p+=`${x}{-$${C}}${R}`}p=zS(p);const v=p||"/";return l&&r&&r.set(l,v),v}function a8(e){const t=new Map(e.map(i=>[encodeURIComponent(i),i])),n=Array.from(t.keys()).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return i=>i.replace(r,c=>t.get(c)??c)}function Mv(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(i=>QI(i,n)).join("/"):QI(r,n)}function ZI({path:e,params:t,decoder:n,...r}){let i=!1;const c={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:c,isMissingParams:i};const l=e.length;let f=0,d,p="";for(;f{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function u8(){const e=c8();if(!e)return null;const t=e.getItem(Zb);let n=t?JSON.parse(t):{};return{state:n,set:r=>{n=ya(r,n)||n;try{e.setItem(Zb,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Dh=u8(),f8=e=>e.state.__TSR_key||e.href;function d8(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let _m=!1;function p8({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:c}){let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||window.history.state?.__TSR_key,d=l[f];_m=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const g in d){const b=d[g];if(g==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:n});else if(g){const _=document.querySelector(g);_&&(_.scrollLeft=b.scrollX,_.scrollTop=b.scrollY)}}break e}const p=(c??window.location).hash.split("#",2)[1];if(p){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const b=document.getElementById(p);b&&b.scrollIntoView(g)}break e}const v={top:0,left:0,behavior:n};if(window.scrollTo(v),i)for(const g of i){if(g==="window")continue;const b=typeof g=="function"?g():document.querySelector(g);b&&b.scrollTo(v)}}_m=!1}function h8(e,t){if(!Dh||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!Dh))return;e.isScrollRestorationSetup=!0,_m=!1;const r=e.options.getScrollRestorationKey||f8;window.history.scrollRestoration="manual";const i=c=>{if(_m||!e.isScrollRestoring)return;let l="";if(c.target===document||c.target===window)l="window";else{const d=c.target.getAttribute("data-scroll-restoration-id");d?l=`[data-scroll-restoration-id="${d}"]`:l=d8(c.target)}const f=r(e.state.location);Dh.set(d=>{const p=d[f]||={},v=p[l]||={};if(l==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(v.scrollX=g.scrollLeft||0,v.scrollY=g.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",l8(i,100),!0),e.subscribe("onRendered",c=>{const l=r(c.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(p8({storageKey:Zb,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Dh.set(f=>(f[l]||={},f)))})}function m8(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function g8(e,t=String){const n=new URLSearchParams;for(const r in e){const i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Dv(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function y8(e){const t=new URLSearchParams(e),n={};for(const[r,i]of t.entries()){const c=n[r];c==null?n[r]=Dv(i):Array.isArray(c)?c.push(Dv(i)):n[r]=[c,Dv(i)]}return n}const v8=S8(JSON.parse),b8=_8(JSON.stringify,JSON.parse);function S8(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=y8(t);for(const r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch{}}return n}}function _8(e,t){const n=typeof t=="function";function r(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(n&&typeof i=="string")try{return t(i),e(i)}catch{}return i}return i=>{const c=g8(i,r);return c?`?${c}`:""}}const Dr="__root__";function BS(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Nr(e){return e instanceof Response&&!!e.options}const sm=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},rg=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Wl=(e,t,n=!0)=>{const r={...e.router.options.context??{}},i=n?t:t-1;for(let c=0;c<=i;c++){const l=e.matches[c];if(!l)continue;const f=e.router.getMatch(l.id);f&&Object.assign(r,f.__routeContext,f.__beforeLoadContext)}return r},xD=(e,t,n)=>{const r=e.router.routesById[t.routeId??""]??e.router.routeTree;!r.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(r.options.notFoundComponent=e.router.options.defaultNotFoundComponent);const i=n==="BEFORE_LOAD"&&r.parentRoute;i||li(r.options.notFoundComponent);const c=e.matches.find(l=>l.routeId===r.id);li(c,"Could not find match for route: "+r.id),e.updateMatch(c.id,l=>({...l,status:"notFound",error:t,isFetching:!1})),i&&(t.routeId=r.parentRoute.id,xD(e,t,n))},va=(e,t,n,r)=>{if(!(!Nr(n)&&!ar(n))){if(Nr(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const i=Nr(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,c=>({...c,status:i,context:Wl(e,t.index),isFetching:!1,error:n})),ar(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw Nr(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(xD(e,n,r),n)}},wD=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,Vf=(e,t,n,r)=>{const{id:i,routeId:c}=e.matches[t],l=e.router.looseRoutesById[c];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,va(e,e.router.getMatch(i),n,r);try{l.options.onError?.(n)}catch(f){n=f,va(e,e.router.getMatch(i),n,r)}e.updateMatch(i,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},RD=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!rg(e,t)&&(n.options.loader||n.options.beforeLoad||ID(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{sm(e)},i);r._nonReactive.pendingTimeout=l}},E8=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;RD(e,t,n,r);const i=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&va(e,c,c.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},x8=(e,t,n,r)=>{const i=e.router.getMatch(t),c=i._nonReactive.loadPromise;i._nonReactive.loadPromise=iu(()=>{c?.resolve()});const{paramsError:l,searchError:f}=i;l&&Vf(e,n,l,"PARSE_PARAMS"),f&&Vf(e,n,f,"VALIDATE_SEARCH"),RD(e,t,r,i);const d=new AbortController;let p=!1;const v=()=>{p||(p=!0,e.updateMatch(t,I=>({...I,isFetching:"beforeLoad",fetchCount:I.fetchCount+1,abortController:d})))},g=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,I=>({...I,isFetching:!1}))};if(!r.options.beforeLoad){rd(()=>{v(),g()});return}i._nonReactive.beforeLoadPromise=iu();const b={...Wl(e,n,!1),...i.__routeContext},{search:_,params:E,cause:x}=i,R=rg(e,t),C={search:_,abortController:d,params:E,preload:R,context:b,location:e.location,navigate:I=>e.router.navigate({...I,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":x,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},T=I=>{if(I===void 0){rd(()=>{v(),g()});return}(Nr(I)||ar(I))&&(v(),Vf(e,n,I,"BEFORE_LOAD")),rd(()=>{v(),e.updateMatch(t,B=>({...B,__beforeLoadContext:I})),g()})};let P;try{if(P=r.options.beforeLoad(C),Xl(P))return v(),P.catch(I=>{Vf(e,n,I,"BEFORE_LOAD")}).then(T)}catch(I){v(),Vf(e,n,I,"BEFORE_LOAD")}T(P)},w8=(e,t)=>{const{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],c=()=>f(),l=()=>x8(e,n,t,i),f=()=>{if(wD(e,n))return;const d=E8(e,n,i);return Xl(d)?d.then(l):l()};return c()},R8=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const 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(([c,l,f])=>{const d=c?.meta,p=c?.links,v=c?.scripts,g=c?.styles;return{meta:d,links:p,headScripts:v,headers:f,scripts:l,styles:g}})},CD=(e,t,n,r)=>{const i=e.matchPromises[n-1],{params:c,loaderDeps:l,abortController:f,cause:d}=e.router.getMatch(t),p=Wl(e,n),v=rg(e,t);return{params:c,deps:l,preload:!!v,parentMatchPromise:i,abortController:f,context:p,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:v?"preload":d,route:r,...e.router.options.additionalContext}},YI=async(e,t,n,r)=>{try{const i=e.router.getMatch(t);try{(!(z5??e.router.isServer)||i.ssr===!0)&&AD(r);const c=r.options.loader?.(CD(e,t,n,r)),l=r.options.loader&&Xl(c);if((l||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,p=>({...p,isFetching:"loader"})),r.options.loader){const p=l?await c:c;va(e,e.router.getMatch(t),p),p!==void 0&&e.updateMatch(t,v=>({...v,loaderData:p}))}r._lazyPromise&&await r._lazyPromise;const d=i._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,p=>({...p,error:void 0,context:Wl(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let l=c;if(l?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(t,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Wl(e,n)}));return}const f=i._nonReactive.minPendingPromise;f&&await f,ar(c)&&await r.options.notFoundComponent?.preload?.(),va(e,e.router.getMatch(t),c);try{r.options.onError?.(c)}catch(d){l=d,va(e,e.router.getMatch(t),d)}e.updateMatch(t,d=>({...d,error:l,context:Wl(e,n),status:"error",isFetching:!1}))}}catch(i){const c=e.router.getMatch(t);c&&(c._nonReactive.loaderPromise=void 0),va(e,c,i)}},C8=async(e,t)=>{async function n(v,g,b,_){const E=Date.now()-g.updatedAt,x=v?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,R=_.options.shouldReload,C=typeof R=="function"?R(CD(e,r,t,_)):R,{status:T,invalid:P}=b;c=T==="success"&&(P||(C??E>x)),v&&_.options.preload===!1||(c&&!e.sync?(l=!0,(async()=>{try{await YI(e,r,t,_);const I=e.router.getMatch(r);I._nonReactive.loaderPromise?.resolve(),I._nonReactive.loadPromise?.resolve(),I._nonReactive.loaderPromise=void 0}catch(I){Nr(I)&&await e.router.navigate(I.options)}})()):(T!=="success"||c&&e.sync)&&await YI(e,r,t,_))}const{id:r,routeId:i}=e.matches[t];let c=!1,l=!1;const f=e.router.looseRoutesById[i];if(!wD(e,r)){const v=e.router.getMatch(r),g=rg(e,r);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload)return v;await v._nonReactive.loaderPromise;const b=e.router.getMatch(r),_=b._nonReactive.error||b.error;_&&va(e,b,_),b.status==="pending"&&await n(g,v,b,f)}else{const b=g&&!e.router.state.matches.some(E=>E.id===r),_=e.router.getMatch(r);_._nonReactive.loaderPromise=iu(),b!==_.preload&&e.updateMatch(r,E=>({...E,preload:b})),await n(g,v,_,f)}}const d=e.router.getMatch(r);l||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,l||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const p=l?d.isFetching:!1;return p!==d.isFetching||d.invalid!==!1?(e.updateMatch(r,v=>({...v,isFetching:p,invalid:!1})),e.router.getMatch(r)):d};async function XI(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&sm(t);try{for(let f=0;ff.status==="rejected").map(f=>f.reason);let c;for(const f of i){if(Nr(f))throw f;!c&&ar(f)&&(c=f)}for(const f of t.matches){const{id:d,routeId:p}=f,v=t.router.looseRoutesById[p];try{const g=R8(t,d,v);if(g){const b=await g;t.updateMatch(d,_=>({..._,...b}))}}catch(g){console.error(`Error executing head for route ${p}:`,g)}}if(c)throw c;const l=sm(t);Xl(l)&&await l}catch(n){if(ar(n)&&!t.preload){const r=sm(t);throw Xl(r)&&await r,n}if(Nr(n))throw n}return t.matches}async function AD(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of TD){const i=e.options[r]?.preload;i&&n.push(i())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function ID(e){for(const t of TD)if(e.options[t]?.preload)return!0;return!1}const TD=["component","errorComponent","pendingComponent","notFoundComponent"];function A8(e){return{input:({url:t})=>{for(const n of e)t=Qb(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=OD(e[n],t);return t}}}function I8(e){const t=ED(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),c=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const f=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return f===i?l.pathname="/":f.startsWith(c)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=nm(["/",t,l.pathname]),l)}}function Qb(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function OD(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Ac(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,i=t?.href!==n.href,c=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:i,hashChanged:c}}function T8(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class O8{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{const r=this.options,i=this.basepath??r?.basepath??"/",c=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=a8(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=L5()),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 b;this.resolvePathCache=bm(1e3),b=this.buildRouteTree(),this.setRoutes(b)}!this.__store&&this.latestLocation&&(this.__store=P5(D8(this.latestLocation)),h8(this));let f=!1;const d=this.options.basepath??"/",p=this.options.rewrite;if(c||i!==d||l!==p){this.basepath=d;const b=[],_=ED(d);_&&_!=="/"&&b.push(I8({basepath:d})),p&&b.push(p),this.rewrite=b.length===0?void 0:b.length===1?b[0]:A8(b),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&this.__store.setState(b=>({...b,location: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=()=>{const n=t8(this.routeTree,this.options.caseSensitive,(r,i)=>{r.init({originalIndex:i})});return this.options.routeMasks&&Y5(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const i={eventType:n,fn:r};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const i=({pathname:d,search:p,hash:v,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const T=this.options.parseSearch(p),P=this.options.stringifySearch(T);return{href:d+P+v,publicHref:g,pathname:Uf(d).path,external:!1,searchStr:P,search:nr(r?.search,T),hash:Uf(v.slice(1)).path,state:nr(r?.state,b)}}const _=new URL(g,this.origin),E=Qb(this.rewrite,_),x=this.options.parseSearch(E.search),R=this.options.stringifySearch(x);return E.search=R,{href:E.href.replace(E.origin,""),publicHref:g,pathname:Uf(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:R,search:nr(r?.search,x),hash:Uf(E.hash.slice(1)).path,state:nr(r?.state,b)}},c=i(n),{__tempLocation:l,__tempKey:f}=c.state;if(l&&(!f||f===this.tempLocationKey)){const d=i(l);return d.state.key=c.state.key,d.state.__TSR_key=c.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:c}}return c},this.resolvePathWithBase=(n,r)=>i8({base:n,to:zS(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,i)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},i):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>P8({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(c=>c.status==="pending"),r=this.state.matches.filter(c=>c.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(c=>{this.cancelMatch(c.id)})},this.buildLocation=n=>{const r=(c={})=>{const l=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(l);c.from;const d=c.unsafeRelative==="path"?l.pathname:c.from??f.fullPath,p=this.resolvePathWithBase(d,"."),v=f.search,g={...f.params},b=c.to?this.resolvePathWithBase(p,`${c.to}`):this.resolvePathWithBase(p,"."),_=c.params===!1||c.params===null?{}:(c.params??!0)===!0?g:Object.assign(g,ya(c.params,g)),E=this.getMatchedRoutes(b);let x=E.matchedRoutes;if((!E.foundRoute||E.foundRoute.path!=="/"&&E.routeParams["**"])&&this.options.notFoundRoute&&(x=[...x,this.options.notFoundRoute]),Object.keys(_).length>0)for(const te of x){const F=te.options.params?.stringify??te.options.stringifyParams;if(F)try{Object.assign(_,F(_))}catch{}}const C=n.leaveParams?b:Uf(ZI({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let T=v;if(n._includeValidateSearch&&this.options.search?.strict){const te={};x.forEach(F=>{if(F.options.validateSearch)try{Object.assign(te,rm(F.options.validateSearch,{...te,...T}))}catch{}}),T=te}T=k8({search:T,dest:c,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),T=nr(v,T);const P=this.options.stringifySearch(T),I=c.hash===!0?l.hash:c.hash?ya(c.hash,l.hash):void 0,B=I?`#${I}`:"";let j=c.state===!0?l.state:c.state?ya(c.state,l.state):{};j=nr(l.state,j);const V=`${C}${P}${B}`;let N,Q,ne=!1;if(this.rewrite){const te=new URL(V,this.origin),F=OD(this.rewrite,te);N=te.href.replace(te.origin,""),F.origin!==this.origin?(Q=F.href,ne=!0):Q=F.pathname+F.search+F.hash}else N=K5(V),Q=N;return{publicHref:Q,href:N,pathname:C,search:T,searchStr:P,state:j,hash:I??"",external:ne,unmaskOnReload:c.unmaskOnReload}},i=(c={},l)=>{const f=r(c);let d=l?r(l):void 0;if(!d){const p={};if(this.options.routeMasks){const v=X5(f.pathname,this.processedTree);if(v){Object.assign(p,v.rawParams);const{from:g,params:b,..._}=v.route,E=b===!1||b===null?{}:(b??!0)===!0?p:Object.assign(p,ya(b,p));l={from:n.from,..._,params:E},d=r(l)}}}return d&&(f.maskedLocation=d),f};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...i})=>{const c=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(v=>{i.state[v]=this.latestLocation.state[v]});const p=Cc(i.state,this.latestLocation.state);return d.forEach(v=>{delete i.state[v]}),p},l=wa(this.latestLocation.href)===wa(i.href),f=this.commitLocationPromise;if(this.commitLocationPromise=iu(()=>{f?.resolve()}),l&&c())this.load();else{let{maskedLocation:d,hashScrollIntoView:p,...v}=i;d&&(v={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[i.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:r})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:i,viewTransition:c,ignoreBlocker:l,href:f,...d}={})=>{if(f){const g=this.history.location.state.__TSR_index,b=gm(f,{__TSR_index:n?g:g+1}),_=new URL(b.pathname,this.origin),E=Qb(this.rewrite,_);d.to=E.pathname,d.search=this.options.parseSearch(b.search),d.hash=b.hash.slice(1)}const p=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const v=this.commitLocation({...p,viewTransition:c,replace:n,resetScroll:r,hashScrollIntoView:i,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:n,reloadDocument:r,href:i,publicHref:c,...l})=>{let f=!1;if(i)try{new URL(`${i}`),f=!0}catch{}if(f&&!r&&(r=!0),r){if(n!==void 0||!i){const p=this.buildLocation({to:n,...l});i=i??p.publicHref,c=c??p.publicHref}const d=!f&&c?c:i;if(vm(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const v=this.history.getBlockers?.()??[];for(const g of v)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:i,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(i=>!n.some(c=>c.id===i.id))}))},this.load=async n=>{let r,i,c;for(c=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,p=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ac({resolvedLocation:p,location:d})}),this.emit({type:"onBeforeLoad",...Ac({resolvedLocation:p,location:d})}),await XI({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],g=[],b=[],_=[];rd(()=>{this.__store.setState(E=>{const x=E.matches,R=E.pendingMatches||E.matches;return v=x.filter(C=>!R.some(T=>T.id===C.id)),g=x.filter(C=>!R.some(T=>T.routeId===C.routeId)),b=R.filter(C=>!x.some(T=>T.routeId===C.routeId)),_=R.filter(C=>x.some(T=>T.routeId===C.routeId)),{...E,isLoading:!1,loadedAt:Date.now(),matches:R,pendingMatches:void 0,cachedMatches:[...E.cachedMatches,...v.filter(C=>C.status!=="error"&&C.status!=="notFound"&&C.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[b,"onEnter"],[_,"onStay"]].forEach(([E,x])=>{E.forEach(R=>{this.looseRoutesById[R.routeId].options[x]?.(R)})})})})}})}catch(d){Nr(d)?(r=d,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ar(d)&&(i=d),this.__store.setState(p=>({...p,statusCode:r?r.status:i?404:p.matches.some(v=>v.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(f=>f.status==="error")&&(l=500),l!==void 0&&this.__store.setState(f=>({...f,statusCode:l}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,l=this.state.resolvedLocation,f=typeof r.types=="function"?r.types(Ac({resolvedLocation:l,location:c})):r.types;if(f===!1){n();return}i={update:n,types:f}}else i=n;document.startViewTransition(i)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const i=this.state.pendingMatches?.some(c=>c.id===n)?"pendingMatches":this.state.matches.some(c=>c.id===n)?"matches":this.state.cachedMatches.some(c=>c.id===n)?"cachedMatches":"";i&&(i==="cachedMatches"?this.__store.setState(c=>({...c,cachedMatches:T8(c.cachedMatches.map(l=>l.id===n?r(l):l))})):this.__store.setState(c=>({...c,[i]:c[i]?.map(l=>l.id===n?r(l):l)})))})},this.getMatch=n=>{const r=i=>i.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=i=>n?.filter?.(i)??!0?{...i,invalid:!0,...n?.forcePending||i.status==="error"||i.status==="notFound"?{status:"pending",error:void 0}:void 0}:i;return this.__store.setState(i=>({...i,matches:i.matches.map(r),cachedMatches:i.cachedMatches.map(r),pendingMatches:i.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const i=n.options._builtLocation??this.buildLocation(n.options),c=this.getParsedLocationHref(i);n.options.href=c,n.headers.set("Location",c)}else if(r)try{const i=new URL(r);if(this.origin&&i.origin===this.origin){const c=i.pathname+i.search+i.hash;n.options.href=c,n.headers.set("Location",c)}}catch{}if(n.options.href&&!n.options._builtLocation&&vm(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(c=>!r(c))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const i=this.looseRoutesById[r.routeId];if(!i.options.loader)return!0;const c=(r.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=c};this.clearCache({filter:n})},this.loadRouteChunk=AD,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let i=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),l=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);rd(()=>{i.forEach(f=>{l.has(f.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,f]}))})});try{return i=await XI({router:this,matches:i,location:r,preload:!0,updateMatch:(f,d)=>{c.has(f)?i=i.map(p=>p.id===f?d(p):p):this.updateMatch(f,d)}}),i}catch(f){if(Nr(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:r});ar(f)||console.error(f);return}},this.matchRoute=(n,r)=>{const i={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},c=this.buildLocation(i);if(r?.pending&&this.state.status!=="pending")return!1;const f=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=W5(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!d||n.params&&!Cc(d.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Cc(f.search,c.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??b8,parseSearch:t.parseSearch??v8,protocolAllowlist:t.protocolAllowlist??H5}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:r}){this.routesById=t,this.routesByPath=n,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:c,parsedParams:l}=r;let{matchedRoutes:f}=r,d=!1;(i?i.path!=="/"&&c["**"]:wa(t.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const p=d?L8(this.options.notFoundMode,f):void 0,v=new Array(f.length),g=new Map(this.state.matches.map(b=>[b.routeId,b]));for(let b=0;bthis.navigate({...I,_fromLocation:t}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:v,routeId:E.id};_.__routeContext=E.options.context(P)??void 0}_.context={...T,..._.__routeContext,..._.__beforeLoadContext}}}return v}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:r,parsedParams:i}=this.getMatchedRoutes(t.pathname),c=gd(n),l={...t.search};for(const v of n)try{Object.assign(l,rm(v.options.validateSearch,l))}catch{}const f=gd(this.state.matches),d=f&&f.routeId===c.id&&t.pathname===this.state.location.pathname;let p;if(d)p=f.params;else{const v={...r};for(const g of n)try{WI(g,r,i??{},v)}catch{}p=v}return{matchedRoutes:n,fullPath:c.fullPath,search:l,params:p}}}class Em extends Error{}class M8 extends Error{}function D8(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function rm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Em("Async validation not supported");if(n.issues)throw new Em(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 P8({pathname:e,routesById:t,processedTree:n}){const r={},i=wa(e);let c,l;const f=J5(i,n,!0);return f&&(c=f.route,Object.assign(r,f.rawParams),l=Object.assign({},f.parsedParams)),{matchedRoutes:f?.branch||[t[Dr]],routeParams:r,foundRoute:c,parsedParams:l}}function k8({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return N8(n)(e,t,r??!1)}function N8(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const i of e){if("search"in i.options)i.options.search?.middlewares&&t.middlewares.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const c=({search:l,next:f})=>{let d=l;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(d=i.options.preSearchFilters.reduce((v,g)=>g(v),l));const p=f(d);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((v,g)=>g(v),p):p};t.middlewares.push(c)}if(i.options.validateSearch){const c=({search:l,next:f})=>{const d=f(l);if(!t._includeValidateSearch)return d;try{return{...d,...rm(i.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(c)}}const n=({search:i})=>{const c=t.dest;return c.search?c.search===!0?i:ya(c.search,i):{}};t.middlewares.push(n);const r=(i,c,l)=>{if(i>=l.length)return c;const f=l[i];return f({search:c,next:p=>r(i+1,p,l)})};return function(c,l,f){return t.dest=l,t._includeValidateSearch=f,r(0,c,t.middlewares)}}function L8(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return Dr}function WI(e,t,n,r){const i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(const c in t)c in n&&(r[c]=n[c]);else{const c=i(r);Object.assign(r,c)}}const $8="Error preloading route! ☝️";class MD{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,i=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=Dr:this.parentRoute||li(!1);let c=i?Dr:r?.path;c&&c!=="/"&&(c=_D(c));const l=r?.id||c;let f=i?Dr:nm([this.parentRoute.id===Dr?"":this.parentRoute.id,l]);c===Dr&&(c="/"),f!==Dr&&(f=nm(["/",f]));const d=f===Dr?"/":nm([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=d,this._to=wa(d)},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.redirect=n=>BS({from:this.fullPath,...n}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class z8 extends MD{constructor(t){super(t)}}const B8="use",JI=DS[B8],Ph=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Pv(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function U8(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([c])=>{t(c)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function j8(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}function US(e){const t=e.errorComponent??jS;return k.jsx(V8,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}class V8 extends M.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function jS({error:e}){const[t,n]=M.useState(!1);return k.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[k.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),k.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),k.jsx("div",{style:{height:".25rem"}}),t?k.jsx("div",{children:k.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?k.jsx("code",{children:e.message}):null})}):null]})}function H8({children:e,fallback:t=null}){return VS()?k.jsx(ou.Fragment,{children:e}):k.jsx(ou.Fragment,{children:t})}function VS(){return ou.useSyncExternalStore(q8,()=>!0,()=>!1)}function q8(){return()=>{}}var kv={exports:{}},Nv={},Lv={exports:{}},$v={};var eT;function F8(){if(eT)return $v;eT=1;var e=bu();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,c=e.useLayoutEffect,l=e.useDebugValue;function f(g,b){var _=b(),E=r({inst:{value:_,getSnapshot:b}}),x=E[0].inst,R=E[1];return c(function(){x.value=_,x.getSnapshot=b,d(x)&&R({inst:x})},[g,_,b]),i(function(){return d(x)&&R({inst:x}),g(function(){d(x)&&R({inst:x})})},[g]),l(_),_}function d(g){var b=g.getSnapshot;g=g.value;try{var _=b();return!n(g,_)}catch{return!0}}function p(g,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return $v.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,$v}var tT;function DD(){return tT||(tT=1,Lv.exports=F8()),Lv.exports}var nT;function G8(){if(nT)return Nv;nT=1;var e=bu(),t=DD();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,c=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;return Nv.useSyncExternalStoreWithSelector=function(p,v,g,b,_){var E=c(null);if(E.current===null){var x={hasValue:!1,value:null};E.current=x}else x=E.current;E=f(function(){function C(j){if(!T){if(T=!0,P=j,j=b(j),_!==void 0&&x.hasValue){var V=x.value;if(_(V,j))return I=V}return I=j}if(V=I,r(P,j))return V;var N=b(j);return _!==void 0&&_(V,N)?(P=j,V):(P=j,I=N)}var T=!1,P,I,B=g===void 0?null:g;return[function(){return C(v())},B===null?void 0:function(){return C(B())}]},[v,g,b,_]);var R=i(p,E[0],E[1]);return l(function(){x.hasValue=!0,x.value=R},[R]),d(R),R},Nv}var sT;function K8(){return sT||(sT=1,kv.exports=G8()),kv.exports}var PD=K8();function Z8(e,t){return e===t}function Q8(e,t,n=Z8){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(l);return f},[e]),i=M.useCallback(()=>e?.get(),[e]);return PD.useSyncExternalStoreWithSelector(r,i,i,t,n)}const kD=M.createContext(null);function bs(e){const t=M.useContext(kD);return e?.warn,t}function Kn(e){const t=bs({warn:e?.router===void 0}),n=e?.router||t,r=M.useRef(void 0);return Q8(n.__store,i=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const c=nr(r.current,e.select(i));return r.current=c,c}return e.select(i)}return i})}const og=M.createContext(void 0),Y8=M.createContext(void 0);function _o(e){const t=M.useContext(e.from?Y8:og);return Kn({select:r=>{const i=r.matches.find(c=>e.from?e.from===c.routeId:c.id===t);if(li(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function HS(e){return _o({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function qS(e){const{select:t,...n}=e;return _o({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function FS(e){return _o({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function GS(e){return _o({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function ig(e){const t=bs();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var zv={exports:{}},ps={};var rT;function X8(){if(rT)return ps;rT=1;var e=bu();function t(d){var p="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),zv.exports=X8(),zv.exports}var Oa=ND();function W8(e,t){const n=bs(),r=j8(t),{activeProps:i,inactiveProps:c,activeOptions:l,to:f,preload:d,preloadDelay:p,hashScrollIntoView:v,replace:g,startTransition:b,resetScroll:_,viewTransition:E,children:x,target:R,disabled:C,style:T,className:P,onClick:I,onBlur:B,onFocus:j,onMouseEnter:V,onMouseLeave:N,onTouchStart:Q,ignoreBlocker:ne,params:te,search:F,hash:oe,state:me,mask:ge,reloadDocument:H,unsafeRelative:re,from:J,_fromLocation:ve,...ue}=e,$=VS(),ee=Kn({select:Je=>{const Mt=Je.matches[Je.matches.length-1];return{search:Mt?.search,hash:Je.location.hash,path:Mt?.pathname}},structuralSharing:!0}),ye=e.from,Ee=M.useMemo(()=>({...e,from:ye}),[n,ee,ye,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),xe=M.useMemo(()=>n.buildLocation({...Ee}),[n,Ee]),Se=xe.maskedLocation?xe.maskedLocation.publicHref:xe.publicHref,Oe=xe.maskedLocation?xe.maskedLocation.external:xe.external,Fe=M.useMemo(()=>rj(Se,Oe,n.history,C),[C,Oe,Se,n.history]),be=M.useMemo(()=>{if(Fe?.external)return vm(Fe.href,n.protocolAllowlist)?void 0:Fe.href;if(!oj(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),vm(f,n.protocolAllowlist)?void 0:f}catch{}},[f,Fe,n.protocolAllowlist]),tt=Kn({select:Je=>{if(be)return!1;if(l?.exact){if(!o8(Je.location.pathname,xe.pathname,n.basepath))return!1}else{const Mt=Sm(Je.location.pathname,n.basepath),it=Sm(xe.pathname,n.basepath);if(!(Mt.startsWith(it)&&(Mt.length===it.length||Mt[it.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Cc(Je.location.search,xe.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?$&&Je.location.hash===xe.hash:!0}}),kt=tt?ya(i,{})??J8:Bv,he=tt?Bv:ya(c,{})??Bv,Re=[P,kt.className,he.className].filter(Boolean).join(" "),_e=(T||kt.style||he.style)&&{...T,...kt.style,...he.style},[Ze,Me]=M.useState(!1),Ve=M.useRef(!1),De=e.reloadDocument||be?!1:d??n.options.defaultPreload,nt=p??n.options.defaultPreloadDelay??0,ot=M.useCallback(()=>{n.preloadRoute({...Ee,_builtLocation:xe}).catch(Je=>{console.warn(Je),console.warn($8)})},[n,Ee,xe]),Ge=M.useCallback(Je=>{Je?.isIntersecting&&ot()},[ot]);U8(r,Ge,sj,{disabled:!!C||De!=="viewport"}),M.useEffect(()=>{Ve.current||!C&&De==="render"&&(ot(),Ve.current=!0)},[C,ot,De]);const bt=Je=>{const Mt=Je.currentTarget.getAttribute("target"),it=R!==void 0?R:Mt;if(!C&&!ij(Je)&&!Je.defaultPrevented&&(!it||it==="_self")&&Je.button===0){Je.preventDefault(),Oa.flushSync(()=>{Me(!0)});const Ds=n.subscribe("onResolved",()=>{Ds(),Me(!1)});n.navigate({...Ee,replace:g,resetScroll:_,hashScrollIntoView:v,startTransition:b,viewTransition:E,ignoreBlocker:ne})}};if(be)return{...ue,ref:r,href:be,...x&&{children:x},...R&&{target:R},...C&&{disabled:C},...T&&{style:T},...P&&{className:P},...I&&{onClick:I},...B&&{onBlur:B},...j&&{onFocus:j},...V&&{onMouseEnter:V},...N&&{onMouseLeave:N},...Q&&{onTouchStart:Q}};const Xt=Je=>{if(C||De!=="intent")return;if(!nt){ot();return}const Mt=Je.currentTarget;if(Hf.has(Mt))return;const it=setTimeout(()=>{Hf.delete(Mt),ot()},nt);Hf.set(Mt,it)},wt=Je=>{C||De!=="intent"||ot()},Xn=Je=>{if(C||!De||!nt)return;const Mt=Je.currentTarget,it=Hf.get(Mt);it&&(clearTimeout(it),Hf.delete(Mt))};return{...ue,...kt,...he,href:Fe?.href,ref:r,onClick:Ul([I,bt]),onBlur:Ul([B,Xn]),onFocus:Ul([j,Xt]),onMouseEnter:Ul([V,Xt]),onMouseLeave:Ul([N,Xn]),onTouchStart:Ul([Q,wt]),disabled:!!C,target:R,..._e&&{style:_e},...Re&&{className:Re},...C&&ej,...tt&&tj,...$&&Ze&&nj}}const Bv={},J8={className:"active"},ej={role:"link","aria-disabled":!0},tj={"data-status":"active","aria-current":"page"},nj={"data-transitioning":"transitioning"},Hf=new WeakMap,sj={rootMargin:"100px"},Ul=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function rj(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function oj(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const Rs=M.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:i,...c}=W8(r,t),l=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...d}=c;return M.createElement("a",d,l)}return M.createElement(n,c,l)});function ij(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let aj=class extends MD{constructor(t){super(t),this.useMatch=n=>_o({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>_o({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>GS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>FS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>qS({...n,from:this.id}),this.useLoaderData=n=>HS({...n,from:this.id}),this.useNavigate=()=>ig({from:this.fullPath}),this.Link=ou.forwardRef((n,r)=>k.jsx(Rs,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function cj(e){return new aj(e)}function lj(){return e=>fj(e)}class uj extends z8{constructor(t){super(t),this.useMatch=n=>_o({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>_o({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>GS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>FS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>qS({...n,from:this.id}),this.useLoaderData=n=>HS({...n,from:this.id}),this.useNavigate=()=>ig({from:this.fullPath}),this.Link=ou.forwardRef((n,r)=>k.jsx(Rs,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function fj(e){return new uj(e)}function at(e){return typeof e=="object"?new iT(e,{silent:!0}).createRoute(e):new iT(e,{silent:!0}).createRoute}class iT{constructor(t,n){this.path=t,this.createRoute=r=>{const i=cj(r);return i.isRoot=!1,i},this.silent=n?.silent}}class aT{constructor(t){this.useMatch=n=>_o({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>_o({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>GS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>FS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>qS({...n,from:this.options.id}),this.useLoaderData=n=>HS({...n,from:this.options.id}),this.useNavigate=()=>{const n=bs();return ig({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function cT(e){return typeof e=="object"?new aT(e):t=>new aT({id:e,...t})}function yt(e,t){let n,r,i,c;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t]}).catch(d=>{if(i=d,j5(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(p)||(sessionStorage.setItem(p,"1"),c=!0)}})),n),f=function(p){if(c)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(JI)JI(l());else throw l();return M.createElement(r,p)};return f.preload=l,f}function dj(){const e=bs(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),{hasPendingMatches:i,isLoading:c}=Kn({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),l=Pv(c),f=c||n||i,d=Pv(f),p=c||i,v=Pv(p);return e.startTransition=g=>{r(!0),M.startTransition(()=>{g(),r(!1)})},M.useEffect(()=>{const g=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return wa(e.latestLocation.publicHref)!==wa(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),Ph(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),Ph(()=>{l&&!c&&e.emit({type:"onLoad",...Ac(e.state)})},[l,e,c]),Ph(()=>{v&&!p&&e.emit({type:"onBeforeRouteMount",...Ac(e.state)})},[p,v,e]),Ph(()=>{if(d&&!f){const g=Ac(e.state);e.emit({type:"onResolved",...g}),e.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),g.hrefChanged&&m8(e)}},[f,d,e]),null}function pj(e){const t=Kn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return k.jsx(US,{getResetKey:()=>t,onCatch:(n,r)=>{if(ar(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(ar(n))return e.fallback?.(n);throw n},children:e.children})}function hj(){return k.jsx("p",{children:"Not Found"})}function Zl(e){return k.jsx(k.Fragment,{children:e.children})}function LD(e,t,n){return t.options.notFoundComponent?k.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?k.jsx(e.options.defaultNotFoundComponent,{...n}):k.jsx(hj,{})}function mj(){return bs().isScrollRestoring,null}const $D=M.memo(function({matchId:t}){const n=bs(),r=Kn({select:x=>{const R=x.matches.findIndex(T=>T.id===t),C=x.matches[R];return li(C),{routeId:C.routeId,ssr:C.ssr,_displayPending:C._displayPending,resetKey:x.loadedAt,parentRouteId:x.matches[R-1]?.routeId}},structuralSharing:!0}),i=n.routesById[r.routeId],c=i.options.pendingComponent??n.options.defaultPendingComponent,l=c?k.jsx(c,{}):null,f=i.options.errorComponent??n.options.defaultErrorComponent,d=i.options.onCatch??n.options.defaultOnCatch,p=i.isRoot?i.options.notFoundComponent??n.options.notFoundRoute?.options.component:i.options.notFoundComponent,v=r.ssr===!1||r.ssr==="data-only",g=(!i.isRoot||i.options.wrapInSuspense||v)&&(i.options.wrapInSuspense??c??(i.options.errorComponent?.preload||v))?M.Suspense:Zl,b=f?US:Zl,_=p?pj:Zl,E=i.isRoot?i.options.shellComponent??Zl:Zl;return k.jsxs(E,{children:[k.jsx(og.Provider,{value:t,children:k.jsx(g,{fallback:l,children:k.jsx(b,{getResetKey:()=>r.resetKey,errorComponent:f||jS,onCatch:(x,R)=>{if(ar(x))throw x;d?.(x,R)},children:k.jsx(_,{fallback:x=>{if(!p||x.routeId&&x.routeId!==r.routeId||!x.routeId&&!i.isRoot)throw x;return M.createElement(p,x)},children:v||r._displayPending?k.jsx(H8,{fallback:l,children:k.jsx(lT,{matchId:t})}):k.jsx(lT,{matchId:t})})})})}),r.parentRouteId===Dr&&n.options.scrollRestoration?k.jsxs(k.Fragment,{children:[k.jsx(gj,{}),k.jsx(mj,{})]}):null]})});function gj(){const e=bs(),t=M.useRef(void 0);return k.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Ac(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const lT=M.memo(function({matchId:t}){const n=bs(),{match:r,key:i,routeId:c}=Kn({select:d=>{const p=d.matches.find(E=>E.id===t),v=p.routeId,b=(n.routesById[v].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:v,loaderDeps:p.loaderDeps,params:p._strictParams,search:p._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:v,match:{id:p.id,status:p.status,error:p.error,invalid:p.invalid,_forcePending:p._forcePending,_displayPending:p._displayPending}}},structuralSharing:!0}),l=n.routesById[c],f=M.useMemo(()=>{const d=l.options.component??n.options.defaultComponent;return d?k.jsx(d,{},i):k.jsx(zD,{})},[i,l.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const p=n.getMatch(r.id);if(p&&!p._nonReactive.minPendingPromise){const v=iu();p._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),p._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return li(ar(r.error)),LD(n,l,r.error);if(r.status==="redirected")throw li(Nr(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return f}),zD=M.memo(function(){const t=bs(),n=M.useContext(og),r=Kn({select:p=>p.matches.find(v=>v.id===n)?.routeId}),i=t.routesById[r],c=Kn({select:p=>{const g=p.matches.find(b=>b.id===n);return li(g),g.globalNotFound}}),l=Kn({select:p=>{const v=p.matches,g=v.findIndex(b=>b.id===n);return v[g+1]?.id}}),f=t.options.defaultPendingComponent?k.jsx(t.options.defaultPendingComponent,{}):null;if(c)return LD(t,i,void 0);if(!l)return null;const d=k.jsx($D,{matchId:l});return r===Dr?k.jsx(M.Suspense,{fallback:f,children:d}):d});function yj(){const e=bs(),n=e.routesById[Dr].options.pendingComponent??e.options.defaultPendingComponent,r=n?k.jsx(n,{}):null,i=typeof document<"u"&&e.ssr?Zl:M.Suspense,c=k.jsxs(i,{fallback:r,children:[k.jsx(dj,{}),k.jsx(vj,{})]});return e.options.InnerWrap?k.jsx(e.options.InnerWrap,{children:c}):c}function vj(){const e=bs(),t=Kn({select:i=>i.matches[0]?.id}),n=Kn({select:i=>i.loadedAt}),r=t?k.jsx($D,{matchId:t}):null;return k.jsx(og.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:k.jsx(US,{getResetKey:()=>n,errorComponent:jS,onCatch:void 0,children:r})})}const bj=e=>new Sj(e);class Sj extends O8{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=at,globalThis.createLazyFileRoute=cT):typeof window<"u"&&(window.createFileRoute=at,window.createLazyFileRoute=cT);function _j({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=k.jsx(kD.Provider,{value:e,children:t});return e.options.Wrap?k.jsx(e.options.Wrap,{children:r}):r}function Ej({router:e,...t}){return k.jsx(_j,{router:e,...t,children:k.jsx(yj,{})})}function xj(e){return Kn({select:t=>e?.select?e.select(t.location):t.location})}function wj({tag:e,attrs:t,children:n,nonce:r}){switch(e){case"title":return k.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return k.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return k.jsx("link",{...t,nonce:r,suppressHydrationWarning:!0});case"style":return k.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case"script":return k.jsx(Rj,{attrs:t,children:n});default:return null}}function Rj({attrs:e,children:t}){bs();const n=VS(),r=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(M.useEffect(()=>{if(!r){if(e?.src){const i=(()=>{try{const f=document.baseURI||window.location.href;return new URL(e.src,f).href}catch{return e.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(f=>f.src===i))return;const l=document.createElement("script");for(const[f,d]of Object.entries(e))f!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&l.setAttribute(f,typeof d=="boolean"?"":String(d));return document.head.appendChild(l),()=>{l.parentNode&&l.parentNode.removeChild(l)}}if(typeof t=="string"){const i=typeof e?.type=="string"?e.type:"text/javascript",c=typeof e?.nonce=="string"?e.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(d=>{if(!(d instanceof HTMLScriptElement))return!1;const p=d.getAttribute("type")??"text/javascript",v=d.getAttribute("nonce")??void 0;return d.textContent===t&&p===i&&v===c}))return;const f=document.createElement("script");if(f.textContent=t,e)for(const[d,p]of Object.entries(e))d!=="suppressHydrationWarning"&&p!==void 0&&p!==!1&&f.setAttribute(d,typeof p=="boolean"?"":String(p));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}}},[e,t,r]),r&&typeof t=="string")return k.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return k.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return k.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}const Cj=()=>{const e=bs(),t=e.options.ssr?.nonce,n=Kn({select:d=>d.matches.map(p=>p.meta).filter(Boolean)}),r=M.useMemo(()=>{const d=[],p={};let v;for(let g=n.length-1;g>=0;g--){const b=n[g];for(let _=b.length-1;_>=0;_--){const E=b[_];if(E)if(E.title)v||(v={tag:"title",children:E.title});else if("script:ld+json"in E)try{const x=JSON.stringify(E["script:ld+json"]);d.push({tag:"script",attrs:{type:"application/ld+json"},children:G5(x)})}catch{}else{const x=E.name??E.property;if(x){if(p[x])continue;p[x]=!0}d.push({tag:"meta",attrs:{...E,nonce:t}})}}}return v&&d.push(v),t&&d.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),d.reverse(),d},[n,t]),i=Kn({select:d=>{const p=d.matches.map(b=>b.links).filter(Boolean).flat(1).map(b=>({tag:"link",attrs:{...b,nonce:t}})),v=e.ssr?.manifest,g=d.matches.map(b=>v?.routes[b.routeId]?.assets??[]).filter(Boolean).flat(1).filter(b=>b.tag==="link").map(b=>({tag:"link",attrs:{...b.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...p,...g]},structuralSharing:!0}),c=Kn({select:d=>{const p=[];return d.matches.map(v=>e.looseRoutesById[v.routeId]).forEach(v=>e.ssr?.manifest?.routes[v.id]?.preloads?.filter(Boolean).forEach(g=>{p.push({tag:"link",attrs:{rel:"modulepreload",href:g,nonce:t}})})),p},structuralSharing:!0}),l=Kn({select:d=>d.matches.map(p=>p.styles).flat(1).filter(Boolean).map(({children:p,...v})=>({tag:"style",attrs:{...v,nonce:t},children:p})),structuralSharing:!0}),f=Kn({select:d=>d.matches.map(p=>p.headScripts).flat(1).filter(Boolean).map(({children:p,...v})=>({tag:"script",attrs:{...v,nonce:t},children:p})),structuralSharing:!0});return Aj([...r,...c,...i,...l,...f],d=>JSON.stringify(d))};function Aj(e,t){const n=new Set;return e.filter(r=>{const i=t(r);return n.has(i)?!1:(n.add(i),!0)})}function Ij(){const e=Cj(),n=bs().options.ssr?.nonce;return k.jsx(k.Fragment,{children:e.map(r=>M.createElement(wj,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var Uv={exports:{}},qf={},jv={exports:{}},Vv={};var uT;function Tj(){return uT||(uT=1,(function(e){function t(H,re){var J=H.length;H.push(re);e:for(;0>>1,ue=H[ve];if(0>>1;ve<$;){var ee=2*(ve+1)-1,ye=H[ee],Ee=ee+1,xe=H[Ee];if(0>i(ye,J))Eei(xe,ye)?(H[ve]=xe,H[Ee]=J,ve=Ee):(H[ve]=ye,H[ee]=J,ve=ee);else if(Eei(xe,J))H[ve]=xe,H[Ee]=J,ve=Ee;else break e}}return re}function i(H,re){var J=H.sortIndex-re.sortIndex;return J!==0?J:H.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],p=[],v=1,g=null,b=3,_=!1,E=!1,x=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function I(H){for(var re=n(p);re!==null;){if(re.callback===null)r(p);else if(re.startTime<=H)r(p),re.sortIndex=re.expirationTime,t(d,re);else break;re=n(p)}}function B(H){if(x=!1,I(H),!E)if(n(d)!==null)E=!0,j||(j=!0,F());else{var re=n(p);re!==null&&ge(B,re.startTime-H)}}var j=!1,V=-1,N=5,Q=-1;function ne(){return R?!0:!(e.unstable_now()-QH&&ne());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,b=g.priorityLevel;var ue=ve(g.expirationTime<=H);if(H=e.unstable_now(),typeof ue=="function"){g.callback=ue,I(H),re=!0;break t}g===n(d)&&r(d),I(H)}else r(d);g=n(d)}if(g!==null)re=!0;else{var $=n(p);$!==null&&ge(B,$.startTime-H),re=!1}}break e}finally{g=null,b=J,_=!1}re=void 0}}finally{re?F():j=!1}}}var F;if(typeof P=="function")F=function(){P(te)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,me=oe.port2;oe.port1.onmessage=te,F=function(){me.postMessage(null)}}else F=function(){C(te,0)};function ge(H,re){V=C(function(){H(e.unstable_now())},re)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125ve?(H.sortIndex=J,t(p,H),n(d)===null&&H===n(p)&&(x?(T(V),V=-1):x=!0,ge(B,J-ve))):(H.sortIndex=ue,t(d,H),E||_||(E=!0,j||(j=!0,F()))),H},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(H){var re=b;return function(){var J=b;b=re;try{return H.apply(this,arguments)}finally{b=J}}}})(Vv)),Vv}var fT;function Oj(){return fT||(fT=1,jv.exports=Tj()),jv.exports}var dT;function Mj(){if(dT)return qf;dT=1;var e=Oj(),t=bu(),n=ND();function r(s){var o="https://react.dev/errors/"+s;if(1ue||(s.current=ve[ue],ve[ue]=null,ue--)}function ye(s,o){ue++,ve[ue]=s.current,s.current=o}var Ee=$(null),xe=$(null),Se=$(null),Oe=$(null);function Fe(s,o){switch(ye(Se,o),ye(xe,s),ye(Ee,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?QA(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=QA(o),s=YA(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ee(Ee),ye(Ee,s)}function be(){ee(Ee),ee(xe),ee(Se)}function tt(s){s.memoizedState!==null&&ye(Oe,s);var o=Ee.current,a=YA(o,s.type);o!==a&&(ye(xe,s),ye(Ee,a))}function kt(s){xe.current===s&&(ee(Ee),ee(xe)),Oe.current===s&&(ee(Oe),Nf._currentValue=J)}var he,Re;function _e(s){if(he===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);he=o&&o[1]||"",Re=-1)":-1p||B[u]!==K[p]){var ie=` -`+B[u].replace(" at new "," at ");return s.displayName&&ie.includes("")&&(ie=ie.replace("",s.displayName)),ie}while(1<=u&&0<=p);break}}}finally{Ge=!1,Error.prepareStackTrace=a}return(a=s?s.displayName||s.name:"")?_e(a):""}function He(s,o){switch(s.tag){case 26:case 27:case 5:return _e(s.type);case 16:return _e("Lazy");case 13:return s.child!==o&&o!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return Oe(s.type,!1);case 11:return Oe(s.type.render,!1);case 1:return Oe(s.type,!0);case 31:return _e("Activity");default:return""}}function Me(s){try{var o="",a=null;do o+=He(s,a),a=s,s=s.return;while(s);return o}catch(u){return` +`+he+s+Re}var Ze=!1;function Me(s,o){if(!s||Ze)return"";Ze=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(o){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(se){var Y=se}Reflect.construct(s,[],fe)}else{try{fe.call()}catch(se){Y=se}s.call(fe.prototype)}}else{try{throw Error()}catch(se){Y=se}(fe=s())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(se){if(se&&Y&&typeof se.stack=="string")return[se.stack,Y.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),w=m[0],A=m[1];if(w&&A){var z=w.split(` +`),Z=A.split(` +`);for(h=u=0;uh||z[u]!==Z[h]){var ie=` +`+z[u].replace(" at new "," at ");return s.displayName&&ie.includes("")&&(ie=ie.replace("",s.displayName)),ie}while(1<=u&&0<=h);break}}}finally{Ze=!1,Error.prepareStackTrace=a}return(a=s?s.displayName||s.name:"")?_e(a):""}function Ve(s,o){switch(s.tag){case 26:case 27:case 5:return _e(s.type);case 16:return _e("Lazy");case 13:return s.child!==o&&o!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return Me(s.type,!1);case 11:return Me(s.type.render,!1);case 1:return Me(s.type,!0);case 31:return _e("Activity");default:return""}}function De(s){try{var o="",a=null;do o+=Ve(s,a),a=s,s=s.return;while(s);return o}catch(u){return` Error generating stack: `+u.message+` -`+u.stack}}var ft=Object.prototype.hasOwnProperty,mt=e.unstable_scheduleCallback,Xe=e.unstable_cancelCallback,Pt=e.unstable_shouldYield,wn=e.unstable_requestPaint,It=e.unstable_now,Xs=e.unstable_getCurrentPriorityLevel,dt=e.unstable_ImmediatePriority,$t=e.unstable_UserBlockingPriority,gt=e.unstable_NormalPriority,Os=e.unstable_LowPriority,Ws=e.unstable_IdlePriority,ao=e.log,Rd=e.unstable_setDisableYieldValue,ui=null,Gn=null;function Ir(s){if(typeof ao=="function"&&Rd(s),Gn&&typeof Gn.setStrictMode=="function")try{Gn.setStrictMode(ui,s)}catch{}}var Zn=Math.clz32?Math.clz32:Js,qt=Math.log,Kn=Math.LN2;function Js(s){return s>>>=0,s===0?32:31-(qt(s)/Kn|0)|0}var Nn=256,ds=262144,co=4194304;function er(s){var o=s&42;if(o!==0)return o;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function fi(s,o,a){var u=s.pendingLanes;if(u===0)return 0;var p=0,m=s.suspendedLanes,x=s.pingedLanes;s=s.warmLanes;var A=u&134217727;return A!==0?(u=A&~m,u!==0?p=er(u):(x&=A,x!==0?p=er(x):a||(a=A&~s,a!==0&&(p=er(a))))):(A=u&~m,A!==0?p=er(A):x!==0?p=er(x):a||(a=u&~s,a!==0&&(p=er(a)))),p===0?0:o!==0&&o!==p&&(o&m)===0&&(m=p&-p,a=o&-o,m>=a||m===32&&(a&4194048)!==0)?o:p}function di(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function Sg(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 Cd(){var s=co;return co<<=1,(co&62914560)===0&&(co=4194304),s}function au(s){for(var o=[],a=0;31>a;a++)o.push(s);return o}function Ra(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function cu(s,o,a,u,p,m){var x=s.pendingLanes;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=a,s.entangledLanes&=a,s.errorRecoveryDisabledLanes&=a,s.shellSuspendCounter=0;var A=s.entanglements,B=s.expirationTimes,K=s.hiddenUpdates;for(a=x&~a;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var E4=/[\n"\\]/g;function nr(s){return s.replace(E4,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function xg(s,o,a,u,p,m,x,A){s.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?s.type=x:s.removeAttribute("type"),o!=null?x==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+tr(o)):s.value!==""+tr(o)&&(s.value=""+tr(o)):x!=="submit"&&x!=="reset"||s.removeAttribute("value"),o!=null?Rg(s,x,tr(o)):a!=null?Rg(s,x,tr(a)):u!=null&&s.removeAttribute("value"),p==null&&m!=null&&(s.defaultChecked=!!m),p!=null&&(s.checked=p&&typeof p!="function"&&typeof p!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?s.name=""+tr(A):s.removeAttribute("name")}function OE(s,o,a,u,p,m,x,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(s.type=m),o!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||o!=null)){Eg(s);return}a=a!=null?""+tr(a):"",o=o!=null?""+tr(o):a,A||o===s.value||(s.value=o),s.defaultValue=o}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,s.checked=A?s.checked:!!u,s.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(s.name=x),Eg(s)}function Rg(s,o,a){o==="number"&&kd(s.ownerDocument)===s||s.defaultValue===""+a||(s.defaultValue=""+a)}function Oc(s,o,a,u){if(s=s.options,o){o={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Og=!1;if(ho)try{var pu={};Object.defineProperty(pu,"passive",{get:function(){Og=!0}}),window.addEventListener("test",pu,pu),window.removeEventListener("test",pu,pu)}catch{Og=!1}var pi=null,Mg=null,Nd=null;function zE(){if(Nd)return Nd;var s,o=Mg,a=o.length,u,p="value"in pi?pi.value:pi.textContent,m=p.length;for(s=0;s=yu),VE=" ",qE=!1;function FE(s,o){switch(s){case"keyup":return X4.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GE(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Pc=!1;function J4(s,o){switch(s){case"compositionend":return GE(o);case"keypress":return o.which!==32?null:(qE=!0,VE);case"textInput":return s=o.data,s===VE&&qE?null:s;default:return null}}function eB(s,o){if(Pc)return s==="compositionend"||!Lg&&FE(s,o)?(s=zE(),Nd=Mg=pi=null,Pc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:a,offset:o-s};s=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ex(a)}}function nx(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?nx(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function sx(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=kd(s.document);o instanceof s.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)s=o.contentWindow;else break;o=kd(s.document)}return o}function $g(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var cB=ho&&"documentMode"in document&&11>=document.documentMode,Nc=null,Ug=null,_u=null,jg=!1;function rx(s,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;jg||Nc==null||Nc!==kd(u)||(u=Nc,"selectionStart"in u&&$g(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),_u&&Su(_u,u)||(_u=u,u=Th(Ug,"onSelect"),0>=x,p-=x,Br=1<<32-Zn(o)+p|a<We?(at=Be,Be=null):at=Be.sibling;var St=Y(G,Be,Z[We],le);if(St===null){Be===null&&(Be=at);break}s&&Be&&St.alternate===null&&o(G,Be),q=m(St,q,We),vt===null?$e=St:vt.sibling=St,vt=St,Be=at}if(We===Z.length)return a(G,Be),lt&&mo(G,We),$e;if(Be===null){for(;WeWe?(at=Be,Be=null):at=Be.sibling;var Li=Y(G,Be,St.value,le);if(Li===null){Be===null&&(Be=at);break}s&&Be&&Li.alternate===null&&o(G,Be),q=m(Li,q,We),vt===null?$e=Li:vt.sibling=Li,vt=Li,Be=at}if(St.done)return a(G,Be),lt&&mo(G,We),$e;if(Be===null){for(;!St.done;We++,St=Z.next())St=fe(G,St.value,le),St!==null&&(q=m(St,q,We),vt===null?$e=St:vt.sibling=St,vt=St);return lt&&mo(G,We),$e}for(Be=u(Be);!St.done;We++,St=Z.next())St=se(Be,G,We,St.value,le),St!==null&&(s&&St.alternate!==null&&Be.delete(St.key===null?We:St.key),q=m(St,q,We),vt===null?$e=St:vt.sibling=St,vt=St);return s&&Be.forEach(function(T$){return o(G,T$)}),lt&&mo(G,We),$e}function zt(G,q,Z,le){if(typeof Z=="object"&&Z!==null&&Z.type===E&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case _:e:{for(var $e=Z.key;q!==null;){if(q.key===$e){if($e=Z.type,$e===E){if(q.tag===7){a(G,q.sibling),le=p(q,Z.props.children),le.return=G,G=le;break e}}else if(q.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===P&&La($e)===q.type){a(G,q.sibling),le=p(q,Z.props),Au(le,Z),le.return=G,G=le;break e}a(G,q);break}else o(G,q);q=q.sibling}Z.type===E?(le=Ma(Z.props.children,G.mode,le,Z.key),le.return=G,G=le):(le=Fd(Z.type,Z.key,Z.props,null,G.mode,le),Au(le,Z),le.return=G,G=le)}return x(G);case w:e:{for($e=Z.key;q!==null;){if(q.key===$e)if(q.tag===4&&q.stateNode.containerInfo===Z.containerInfo&&q.stateNode.implementation===Z.implementation){a(G,q.sibling),le=p(q,Z.children||[]),le.return=G,G=le;break e}else{a(G,q);break}else o(G,q);q=q.sibling}le=Kg(Z,G.mode,le),le.return=G,G=le}return x(G);case P:return Z=La(Z),zt(G,q,Z,le)}if(ge(Z))return Pe(G,q,Z,le);if(F(Z)){if($e=F(Z),typeof $e!="function")throw Error(r(150));return Z=$e.call(Z),je(G,q,Z,le)}if(typeof Z.then=="function")return zt(G,q,Wd(Z),le);if(Z.$$typeof===k)return zt(G,q,Kd(G,Z),le);Jd(G,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,q!==null&&q.tag===6?(a(G,q.sibling),le=p(q,Z),le.return=G,G=le):(a(G,q),le=Zg(Z,G.mode,le),le.return=G,G=le),x(G)):a(G,q)}return function(G,q,Z,le){try{Cu=0;var $e=zt(G,q,Z,le);return Gc=null,$e}catch(Be){if(Be===Fc||Be===Yd)throw Be;var vt=Ds(29,Be,null,G.mode);return vt.lanes=le,vt.return=G,vt}}}var Ba=Ax(!0),Tx=Ax(!1),vi=!1;function iy(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ay(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Si(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function _i(s,o,a){var u=s.updateQueue;if(u===null)return null;if(u=u.shared,(Et&2)!==0){var p=u.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),u.pending=o,o=qd(s),fx(s,null,a),o}return Vd(s,u,o,a),qd(s)}function Tu(s,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194048)!==0)){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,Ad(s,a)}}function cy(s,o){var a=s.updateQueue,u=s.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?p=m=x:m=m.next=x,a=a.next}while(a!==null);m===null?p=m=o:m=m.next=o}else p=m=o;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},s.updateQueue=a;return}s=a.lastBaseUpdate,s===null?a.firstBaseUpdate=o:s.next=o,a.lastBaseUpdate=o}var ly=!1;function Iu(){if(ly){var s=qc;if(s!==null)throw s}}function Ou(s,o,a,u){ly=!1;var p=s.updateQueue;vi=!1;var m=p.firstBaseUpdate,x=p.lastBaseUpdate,A=p.shared.pending;if(A!==null){p.shared.pending=null;var B=A,K=B.next;B.next=null,x===null?m=K:x.next=K,x=B;var ie=s.alternate;ie!==null&&(ie=ie.updateQueue,A=ie.lastBaseUpdate,A!==x&&(A===null?ie.firstBaseUpdate=K:A.next=K,ie.lastBaseUpdate=B))}if(m!==null){var fe=p.baseState;x=0,ie=K=B=null,A=m;do{var Y=A.lane&-536870913,se=Y!==A.lane;if(se?(it&Y)===Y:(u&Y)===Y){Y!==0&&Y===Vc&&(ly=!0),ie!==null&&(ie=ie.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Pe=s,je=A;Y=o;var zt=a;switch(je.tag){case 1:if(Pe=je.payload,typeof Pe=="function"){fe=Pe.call(zt,fe,Y);break e}fe=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=je.payload,Y=typeof Pe=="function"?Pe.call(zt,fe,Y):Pe,Y==null)break e;fe=g({},fe,Y);break e;case 2:vi=!0}}Y=A.callback,Y!==null&&(s.flags|=64,se&&(s.flags|=8192),se=p.callbacks,se===null?p.callbacks=[Y]:se.push(Y))}else se={lane:Y,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ie===null?(K=ie=se,B=fe):ie=ie.next=se,x|=Y;if(A=A.next,A===null){if(A=p.shared.pending,A===null)break;se=A,A=se.next,se.next=null,p.lastBaseUpdate=se,p.shared.pending=null}}while(!0);ie===null&&(B=fe),p.baseState=B,p.firstBaseUpdate=K,p.lastBaseUpdate=ie,m===null&&(p.shared.lanes=0),Ci|=x,s.lanes=x,s.memoizedState=fe}}function Ix(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function Ox(s,o){var a=s.callbacks;if(a!==null)for(s.callbacks=null,s=0;sm?m:8;var x=V.T,A={};V.T=A,Ty(s,!1,o,a);try{var B=p(),K=V.S;if(K!==null&&K(A,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var ie=yB(B,u);ku(s,o,ie,zs(s))}else ku(s,o,u,zs(s))}catch(fe){ku(s,o,{then:function(){},status:"rejected",reason:fe},zs())}finally{re.p=m,x!==null&&A.types!==null&&(x.types=A.types),V.T=x}}function EB(){}function Cy(s,o,a,u){if(s.tag!==5)throw Error(r(476));var p=c1(s).queue;a1(s,p,o,J,a===null?EB:function(){return l1(s),a(u)})}function c1(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:J},next:null};var a={};return o.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:a},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function l1(s){var o=c1(s);o.next===null&&(o=s.alternate.memoizedState),ku(s,o.next.queue,{},zs())}function Ay(){return Bn(Yu)}function u1(){return on().memoizedState}function f1(){return on().memoizedState}function xB(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var a=zs();s=Si(a);var u=_i(o,s,a);u!==null&&(vs(u,o,a),Tu(u,o,a)),o={cache:ny()},s.payload=o;return}o=o.return}}function RB(s,o,a){var u=zs();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},lh(s)?h1(o,a):(a=Fg(s,o,a,u),a!==null&&(vs(a,s,u),p1(a,o,u)))}function d1(s,o,a){var u=zs();ku(s,o,a,u)}function ku(s,o,a,u){var p={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(lh(s))h1(o,p);else{var m=s.alternate;if(s.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var x=o.lastRenderedState,A=m(x,a);if(p.hasEagerState=!0,p.eagerState=A,Ms(A,x))return Vd(s,o,p,0),Ut===null&&Hd(),!1}catch{}if(a=Fg(s,o,p,u),a!==null)return vs(a,s,u),p1(a,o,u),!0}return!1}function Ty(s,o,a,u){if(u={lane:2,revertLane:i0(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},lh(s)){if(o)throw Error(r(479))}else o=Fg(s,a,u,2),o!==null&&vs(o,s,2)}function lh(s){var o=s.alternate;return s===Qe||o!==null&&o===Qe}function h1(s,o){Kc=nh=!0;var a=s.pending;a===null?o.next=o:(o.next=a.next,a.next=o),s.pending=o}function p1(s,o,a){if((a&4194048)!==0){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,Ad(s,a)}}var Pu={readContext:Bn,use:oh,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useLayoutEffect:nn,useInsertionEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useSyncExternalStore:nn,useId:nn,useHostTransitionStatus:nn,useFormState:nn,useActionState:nn,useOptimistic:nn,useMemoCache:nn,useCacheRefresh:nn};Pu.useEffectEvent=nn;var m1={readContext:Bn,use:oh,useCallback:function(s,o){return rs().memoizedState=[s,o===void 0?null:o],s},useContext:Bn,useEffect:Wx,useImperativeHandle:function(s,o,a){a=a!=null?a.concat([s]):null,ah(4194308,4,n1.bind(null,o,s),a)},useLayoutEffect:function(s,o){return ah(4194308,4,s,o)},useInsertionEffect:function(s,o){ah(4,2,s,o)},useMemo:function(s,o){var a=rs();o=o===void 0?null:o;var u=s();if($a){Ir(!0);try{s()}finally{Ir(!1)}}return a.memoizedState=[u,o],u},useReducer:function(s,o,a){var u=rs();if(a!==void 0){var p=a(o);if($a){Ir(!0);try{a(o)}finally{Ir(!1)}}}else p=o;return u.memoizedState=u.baseState=p,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:p},u.queue=s,s=s.dispatch=RB.bind(null,Qe,s),[u.memoizedState,s]},useRef:function(s){var o=rs();return s={current:s},o.memoizedState=s},useState:function(s){s=_y(s);var o=s.queue,a=d1.bind(null,Qe,o);return o.dispatch=a,[s.memoizedState,a]},useDebugValue:xy,useDeferredValue:function(s,o){var a=rs();return Ry(a,s,o)},useTransition:function(){var s=_y(!1);return s=a1.bind(null,Qe,s.queue,!0,!1),rs().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,a){var u=Qe,p=rs();if(lt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),Ut===null)throw Error(r(349));(it&127)!==0||Lx(u,o,a)}p.memoizedState=a;var m={value:a,getSnapshot:o};return p.queue=m,Wx(Bx.bind(null,u,m,s),[s]),u.flags|=2048,Yc(9,{destroy:void 0},zx.bind(null,u,m,a,o),null),a},useId:function(){var s=rs(),o=Ut.identifierPrefix;if(lt){var a=$r,u=Br;a=(u&~(1<<32-Zn(u)-1)).toString(32)+a,o="_"+o+"R_"+a,a=sh++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?x.createElement(p,{is:u.is}):x.createElement(p)}}m[Ln]=o,m[hs]=u;e:for(x=o.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===o)break e;for(;x.sibling===null;){if(x.return===null||x.return===o)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}o.stateNode=m;e:switch(Un(m,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&_o(o)}}return Gt(o),Hy(o,o.type,s===null?null:s.memoizedProps,o.pendingProps,a),null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==u&&_o(o);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(s=Se.current,jc(o)){if(s=o.stateNode,a=o.memoizedProps,u=null,p=zn,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}s[Ln]=o,s=!!(s.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||PR(s.nodeValue,a)),s||yi(o,!0)}else s=Ih(s).createTextNode(u),s[Ln]=o,o.stateNode=s}return Gt(o),null;case 31:if(a=o.memoizedState,s===null||s.memoizedState!==null){if(u=jc(o),a!==null){if(s===null){if(!u)throw Error(r(318));if(s=o.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Ln]=o}else Da(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Gt(o),s=!1}else a=Wg(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=a),s=!0;if(!s)return o.flags&256?(Ps(o),o):(Ps(o),null);if((o.flags&128)!==0)throw Error(r(558))}return Gt(o),null;case 13:if(u=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(p=jc(o),u!==null&&u.dehydrated!==null){if(s===null){if(!p)throw Error(r(318));if(p=o.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[Ln]=o}else Da(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Gt(o),p=!1}else p=Wg(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=p),p=!0;if(!p)return o.flags&256?(Ps(o),o):(Ps(o),null)}return Ps(o),(o.flags&128)!==0?(o.lanes=a,o):(a=u!==null,s=s!==null&&s.memoizedState!==null,a&&(u=o.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==p&&(u.flags|=2048)),a!==s&&a&&(o.child.flags|=8192),ph(o,o.updateQueue),Gt(o),null);case 4:return ve(),s===null&&u0(o.stateNode.containerInfo),Gt(o),null;case 10:return yo(o.type),Gt(o),null;case 19:if(ee(rn),u=o.memoizedState,u===null)return Gt(o),null;if(p=(o.flags&128)!==0,m=u.rendering,m===null)if(p)Lu(u,!1);else{if(sn!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(m=th(s),m!==null){for(o.flags|=128,Lu(u,!1),s=m.updateQueue,o.updateQueue=s,ph(o,s),o.subtreeFlags=0,s=a,a=o.child;a!==null;)dx(a,s),a=a.sibling;return ye(rn,rn.current&1|2),lt&&mo(o,u.treeForkCount),o.child}s=s.sibling}u.tail!==null&&It()>vh&&(o.flags|=128,p=!0,Lu(u,!1),o.lanes=4194304)}else{if(!p)if(s=th(m),s!==null){if(o.flags|=128,p=!0,s=s.updateQueue,o.updateQueue=s,ph(o,s),Lu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!lt)return Gt(o),null}else 2*It()-u.renderingStartTime>vh&&a!==536870912&&(o.flags|=128,p=!0,Lu(u,!1),o.lanes=4194304);u.isBackwards?(m.sibling=o.child,o.child=m):(s=u.last,s!==null?s.sibling=m:o.child=m,u.last=m)}return u.tail!==null?(s=u.tail,u.rendering=s,u.tail=s.sibling,u.renderingStartTime=It(),s.sibling=null,a=rn.current,ye(rn,p?a&1|2:a&1),lt&&mo(o,u.treeForkCount),s):(Gt(o),null);case 22:case 23:return Ps(o),fy(),u=o.memoizedState!==null,s!==null?s.memoizedState!==null!==u&&(o.flags|=8192):u&&(o.flags|=8192),u?(a&536870912)!==0&&(o.flags&128)===0&&(Gt(o),o.subtreeFlags&6&&(o.flags|=8192)):Gt(o),a=o.updateQueue,a!==null&&ph(o,a.retryQueue),a=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==a&&(o.flags|=2048),s!==null&&ee(Na),null;case 24:return a=null,s!==null&&(a=s.memoizedState.cache),o.memoizedState.cache!==a&&(o.flags|=2048),yo(dn),Gt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function OB(s,o){switch(Yg(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return yo(dn),ve(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return wt(o),null;case 31:if(o.memoizedState!==null){if(Ps(o),o.alternate===null)throw Error(r(340));Da()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(Ps(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Da()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ee(rn),null;case 4:return ve(),null;case 10:return yo(o.type),null;case 22:case 23:return Ps(o),fy(),s!==null&&ee(Na),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return yo(dn),null;case 25:return null;default:return null}}function $1(s,o){switch(Yg(o),o.tag){case 3:yo(dn),ve();break;case 26:case 27:case 5:wt(o);break;case 4:ve();break;case 31:o.memoizedState!==null&&Ps(o);break;case 13:Ps(o);break;case 19:ee(rn);break;case 10:yo(o.type);break;case 22:case 23:Ps(o),fy(),s!==null&&ee(Na);break;case 24:yo(dn)}}function zu(s,o){try{var a=o.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var p=u.next;a=p;do{if((a.tag&s)===s){u=void 0;var m=a.create,x=a.inst;u=m(),x.destroy=u}a=a.next}while(a!==p)}}catch(A){Mt(o,o.return,A)}}function xi(s,o,a){try{var u=o.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var m=p.next;u=m;do{if((u.tag&s)===s){var x=u.inst,A=x.destroy;if(A!==void 0){x.destroy=void 0,p=o;var B=a,K=A;try{K()}catch(ie){Mt(p,B,ie)}}}u=u.next}while(u!==m)}}catch(ie){Mt(o,o.return,ie)}}function U1(s){var o=s.updateQueue;if(o!==null){var a=s.stateNode;try{Ox(o,a)}catch(u){Mt(s,s.return,u)}}}function j1(s,o,a){a.props=Ua(s.type,s.memoizedProps),a.state=s.memoizedState;try{a.componentWillUnmount()}catch(u){Mt(s,o,u)}}function Bu(s,o){try{var a=s.ref;if(a!==null){switch(s.tag){case 26:case 27:case 5:var u=s.stateNode;break;case 30:u=s.stateNode;break;default:u=s.stateNode}typeof a=="function"?s.refCleanup=a(u):a.current=u}}catch(p){Mt(s,o,p)}}function Ur(s,o){var a=s.ref,u=s.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){Mt(s,o,p)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(p){Mt(s,o,p)}else a.current=null}function H1(s){var o=s.type,a=s.memoizedProps,u=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(p){Mt(s,s.return,p)}}function Vy(s,o,a){try{var u=s.stateNode;WB(u,s.type,a,o),u[hs]=o}catch(p){Mt(s,s.return,p)}}function V1(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Mi(s.type)||s.tag===4}function qy(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||V1(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Mi(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Fy(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(s,o):(o=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.appendChild(s),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=fo));else if(u!==4&&(u===27&&Mi(s.type)&&(a=s.stateNode,o=null),s=s.child,s!==null))for(Fy(s,o,a),s=s.sibling;s!==null;)Fy(s,o,a),s=s.sibling}function mh(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?a.insertBefore(s,o):a.appendChild(s);else if(u!==4&&(u===27&&Mi(s.type)&&(a=s.stateNode),s=s.child,s!==null))for(mh(s,o,a),s=s.sibling;s!==null;)mh(s,o,a),s=s.sibling}function q1(s){var o=s.stateNode,a=s.memoizedProps;try{for(var u=s.type,p=o.attributes;p.length;)o.removeAttributeNode(p[0]);Un(o,u,a),o[Ln]=s,o[hs]=a}catch(m){Mt(s,s.return,m)}}var wo=!1,mn=!1,Gy=!1,F1=typeof WeakSet=="function"?WeakSet:Set,An=null;function MB(s,o){if(s=s.containerInfo,h0=Lh,s=sx(s),$g(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var p=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var x=0,A=-1,B=-1,K=0,ie=0,fe=s,Y=null;t:for(;;){for(var se;fe!==a||p!==0&&fe.nodeType!==3||(A=x+p),fe!==m||u!==0&&fe.nodeType!==3||(B=x+u),fe.nodeType===3&&(x+=fe.nodeValue.length),(se=fe.firstChild)!==null;)Y=fe,fe=se;for(;;){if(fe===s)break t;if(Y===a&&++K===p&&(A=x),Y===m&&++ie===u&&(B=x),(se=fe.nextSibling)!==null)break;fe=Y,Y=fe.parentNode}fe=se}a=A===-1||B===-1?null:{start:A,end:B}}else a=null}a=a||{start:0,end:0}}else a=null;for(p0={focusedElem:s,selectionRange:a},Lh=!1,An=o;An!==null;)if(o=An,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,An=s;else for(;An!==null;){switch(o=An,m=o.alternate,s=o.flags,o.tag){case 0:if((s&4)!==0&&(s=o.updateQueue,s=s!==null?s.events:null,s!==null))for(a=0;a title"))),Un(m,u,a),m[Ln]=s,Cn(m),u=m;break e;case"link":var x=XR("link","href",p).get(u+(a.href||""));if(x){for(var A=0;Azt&&(x=zt,zt=je,je=x);var G=tx(A,je),q=tx(A,zt);if(G&&q&&(se.rangeCount!==1||se.anchorNode!==G.node||se.anchorOffset!==G.offset||se.focusNode!==q.node||se.focusOffset!==q.offset)){var Z=fe.createRange();Z.setStart(G.node,G.offset),se.removeAllRanges(),je>zt?(se.addRange(Z),se.extend(q.node,q.offset)):(Z.setEnd(q.node,q.offset),se.addRange(Z))}}}}for(fe=[],se=A;se=se.parentNode;)se.nodeType===1&&fe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;Aa?32:a,V.T=null,a=Jy,Jy=null;var m=Ti,x=Ao;if(En=0,tl=Ti=null,Ao=0,(Et&6)!==0)throw Error(r(331));var A=Et;if(Et|=4,nR(m.current),J1(m,m.current,x,a),Et=A,qu(0,!1),Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot(ui,m)}catch{}return!0}finally{re.p=p,V.T=u,SR(s,o)}}function wR(s,o,a){o=rr(a,o),o=Dy(s.stateNode,o,2),s=_i(s,o,2),s!==null&&(Ra(s,2),jr(s))}function Mt(s,o,a){if(s.tag===3)wR(s,s,a);else for(;o!==null;){if(o.tag===3){wR(o,s,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ai===null||!Ai.has(u))){s=rr(a,s),a=E1(2),u=_i(o,a,2),u!==null&&(x1(a,u,o,s),Ra(u,2),jr(u));break}}o=o.return}}function s0(s,o,a){var u=s.pingCache;if(u===null){u=s.pingCache=new PB;var p=new Set;u.set(o,p)}else p=u.get(o),p===void 0&&(p=new Set,u.set(o,p));p.has(a)||(Qy=!0,p.add(a),s=$B.bind(null,s,o,a),o.then(s,s))}function $B(s,o,a){var u=s.pingCache;u!==null&&u.delete(o),s.pingedLanes|=s.suspendedLanes&a,s.warmLanes&=~a,Ut===s&&(it&a)===a&&(sn===4||sn===3&&(it&62914560)===it&&300>It()-bh?(Et&2)===0&&nl(s,0):Yy|=a,el===it&&(el=0)),jr(s)}function ER(s,o){o===0&&(o=Cd()),s=Oa(s,o),s!==null&&(Ra(s,o),jr(s))}function UB(s){var o=s.memoizedState,a=0;o!==null&&(a=o.retryLane),ER(s,a)}function jB(s,o){var a=0;switch(s.tag){case 31:case 13:var u=s.stateNode,p=s.memoizedState;p!==null&&(a=p.retryLane);break;case 19:u=s.stateNode;break;case 22:u=s.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(o),ER(s,a)}function HB(s,o){return mt(s,o)}var Rh=null,rl=null,r0=!1,Ch=!1,o0=!1,Oi=0;function jr(s){s!==rl&&s.next===null&&(rl===null?Rh=rl=s:rl=rl.next=s),Ch=!0,r0||(r0=!0,qB())}function qu(s,o){if(!o0&&Ch){o0=!0;do for(var a=!1,u=Rh;u!==null;){if(s!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var x=u.suspendedLanes,A=u.pingedLanes;m=(1<<31-Zn(42|s)+1)-1,m&=p&~(x&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,AR(u,m))}else m=it,m=fi(u,u===Ut?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||di(u,m)||(a=!0,AR(u,m));u=u.next}while(a);o0=!1}}function VB(){xR()}function xR(){Ch=r0=!1;var s=0;Oi!==0&&e$()&&(s=Oi);for(var o=It(),a=null,u=Rh;u!==null;){var p=u.next,m=RR(u,o);m===0?(u.next=null,a===null?Rh=p:a.next=p,p===null&&(rl=a)):(a=u,(s!==0||(m&3)!==0)&&(Ch=!0)),u=p}En!==0&&En!==5||qu(s),Oi!==0&&(Oi=0)}function RR(s,o){for(var a=s.suspendedLanes,u=s.pingedLanes,p=s.expirationTimes,m=s.pendingLanes&-62914561;0A)break;var ie=B.transferSize,fe=B.initiatorType;ie&&NR(fe)&&(B=B.responseEnd,x+=ie*(B"u"?null:document;function ZR(s,o,a){var u=ol;if(u&&typeof o=="string"&&o){var p=nr(o);p='link[rel="'+s+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),GR.has(p)||(GR.add(p),s={rel:s,crossOrigin:a,href:o},u.querySelector(p)===null&&(o=u.createElement("link"),Un(o,"link",s),Cn(o),u.head.appendChild(o)))}}function l$(s){To.D(s),ZR("dns-prefetch",s,null)}function u$(s,o){To.C(s,o),ZR("preconnect",s,o)}function f$(s,o,a){To.L(s,o,a);var u=ol;if(u&&s&&o){var p='link[rel="preload"][as="'+nr(o)+'"]';o==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+nr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+nr(a.imageSizes)+'"]')):p+='[href="'+nr(s)+'"]';var m=p;switch(o){case"style":m=il(s);break;case"script":m=al(s)}ur.has(m)||(s=g({rel:"preload",href:o==="image"&&a&&a.imageSrcSet?void 0:s,as:o},a),ur.set(m,s),u.querySelector(p)!==null||o==="style"&&u.querySelector(Ku(m))||o==="script"&&u.querySelector(Qu(m))||(o=u.createElement("link"),Un(o,"link",s),Cn(o),u.head.appendChild(o)))}}function d$(s,o){To.m(s,o);var a=ol;if(a&&s){var u=o&&typeof o.as=="string"?o.as:"script",p='link[rel="modulepreload"][as="'+nr(u)+'"][href="'+nr(s)+'"]',m=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=al(s)}if(!ur.has(m)&&(s=g({rel:"modulepreload",href:s},o),ur.set(m,s),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Qu(m)))return}u=a.createElement("link"),Un(u,"link",s),Cn(u),a.head.appendChild(u)}}}function h$(s,o,a){To.S(s,o,a);var u=ol;if(u&&s){var p=Tc(u).hoistableStyles,m=il(s);o=o||"default";var x=p.get(m);if(!x){var A={loading:0,preload:null};if(x=u.querySelector(Ku(m)))A.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":o},a),(a=ur.get(m))&&_0(s,a);var B=x=u.createElement("link");Cn(B),Un(B,"link",s),B._p=new Promise(function(K,ie){B.onload=K,B.onerror=ie}),B.addEventListener("load",function(){A.loading|=1}),B.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Mh(x,o,u)}x={type:"stylesheet",instance:x,count:1,state:A},p.set(m,x)}}}function p$(s,o){To.X(s,o);var a=ol;if(a&&s){var u=Tc(a).hoistableScripts,p=al(s),m=u.get(p);m||(m=a.querySelector(Qu(p)),m||(s=g({src:s,async:!0},o),(o=ur.get(p))&&w0(s,o),m=a.createElement("script"),Cn(m),Un(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function m$(s,o){To.M(s,o);var a=ol;if(a&&s){var u=Tc(a).hoistableScripts,p=al(s),m=u.get(p);m||(m=a.querySelector(Qu(p)),m||(s=g({src:s,async:!0,type:"module"},o),(o=ur.get(p))&&w0(s,o),m=a.createElement("script"),Cn(m),Un(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function KR(s,o,a,u){var p=(p=Se.current)?Oh(p):null;if(!p)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(o=il(a.href),a=Tc(p).hoistableStyles,u=a.get(o),u||(u={type:"style",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){s=il(a.href);var m=Tc(p).hoistableStyles,x=m.get(s);if(x||(p=p.ownerDocument||p,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(s,x),(m=p.querySelector(Ku(s)))&&!m._p&&(x.instance=m,x.state.loading=5),ur.has(s)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ur.set(s,a),m||g$(p,s,a,x.state))),o&&u===null)throw Error(r(528,""));return x}if(o&&u!==null)throw Error(r(529,""));return null;case"script":return o=a.async,a=a.src,typeof a=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=al(a),a=Tc(p).hoistableScripts,u=a.get(o),u||(u={type:"script",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function il(s){return'href="'+nr(s)+'"'}function Ku(s){return'link[rel="stylesheet"]['+s+"]"}function QR(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function g$(s,o,a,u){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(o=s.createElement("link"),u.preload=o,o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),Un(o,"link",a),Cn(o),s.head.appendChild(o))}function al(s){return'[src="'+nr(s)+'"]'}function Qu(s){return"script[async]"+s}function YR(s,o,a){if(o.count++,o.instance===null)switch(o.type){case"style":var u=s.querySelector('style[data-href~="'+nr(a.href)+'"]');if(u)return o.instance=u,Cn(u),u;var p=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(s.ownerDocument||s).createElement("style"),Cn(u),Un(u,"style",p),Mh(u,a.precedence,s),o.instance=u;case"stylesheet":p=il(a.href);var m=s.querySelector(Ku(p));if(m)return o.state.loading|=4,o.instance=m,Cn(m),m;u=QR(a),(p=ur.get(p))&&_0(u,p),m=(s.ownerDocument||s).createElement("link"),Cn(m);var x=m;return x._p=new Promise(function(A,B){x.onload=A,x.onerror=B}),Un(m,"link",u),o.state.loading|=4,Mh(m,a.precedence,s),o.instance=m;case"script":return m=al(a.src),(p=s.querySelector(Qu(m)))?(o.instance=p,Cn(p),p):(u=a,(p=ur.get(m))&&(u=g({},a),w0(u,p)),s=s.ownerDocument||s,p=s.createElement("script"),Cn(p),Un(p,"link",u),s.head.appendChild(p),o.instance=p);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(u=o.instance,o.state.loading|=4,Mh(u,a.precedence,s));return o.instance}function Mh(s,o,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,x=0;x title"):null)}function y$(s,o,a){if(a===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(s=o.disabled,typeof o.precedence=="string"&&s==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function JR(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function b$(s,o,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=il(u.href),m=o.querySelector(Ku(p));if(m){o=m._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=kh.bind(s),o.then(s,s)),a.state.loading|=4,a.instance=m,Cn(m);return}m=o.ownerDocument||o,u=QR(u),(p=ur.get(p))&&_0(u,p),m=m.createElement("link"),Cn(m);var x=m;x._p=new Promise(function(A,B){x.onload=A,x.onerror=B}),Un(m,"link",u),a.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(a,o),(o=a.state.preload)&&(a.state.loading&3)===0&&(s.count++,a=kh.bind(s),o.addEventListener("load",a),o.addEventListener("error",a))}}var E0=0;function v$(s,o){return s.stylesheets&&s.count===0&&Nh(s,s.stylesheets),0E0?50:800)+o);return s.unsuspend=a,function(){s.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function kh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nh(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Ph=null;function Nh(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Ph=new Map,o.forEach(S$,s),Ph=null,kh.call(s))}function S$(s,o){if(!(o.state.loading&4)){var a=Ph.get(s);if(a)var u=a.get(null);else{a=new Map,Ph.set(s,a);for(var p=s.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),q0.exports=v5(),q0.exports}var _5=S5();const w5=T2(_5);var Z0={exports:{}},K0={};var tA;function E5(){if(tA)return K0;tA=1;var e=zl().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return K0.c=function(t){return e.H.useMemoCache(t)},K0}var nA;function x5(){return nA||(nA=1,Z0.exports=E5()),Z0.exports}var kt=x5();const cO=M.createContext(void 0);function R5(e,t){try{const n=localStorage.getItem(e);if(n==="light"||n==="dark"||n==="system")return n}catch{}return t}function C5(e){const t=kt.c(14),{children:n,defaultTheme:r,storageKey:i}=e,c=r===void 0?"system":r,l=i===void 0?"ui-theme":i;let f;t[0]!==c||t[1]!==l?(f=()=>R5(l,c),t[0]=c,t[1]=l,t[2]=f):f=t[2];const[d,h]=M.useState(f);let b,g;t[3]!==d?(b=()=>{const R=window.document.documentElement;if(R.classList.remove("light","dark"),d==="system"){const C=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";R.classList.add(C);return}R.classList.add(d)},g=[d],t[3]=d,t[4]=b,t[5]=g):(b=t[4],g=t[5]),M.useEffect(b,g);let v;t[6]!==l?(v=R=>{try{localStorage.setItem(l,R)}catch{}h(R)},t[6]=l,t[7]=v):v=t[7];let _;t[8]!==v||t[9]!==d?(_={theme:d,setTheme:v},t[8]=v,t[9]=d,t[10]=_):_=t[10];const w=_;let E;return t[11]!==n||t[12]!==w?(E=N.jsx(cO.Provider,{value:w,children:n}),t[11]=n,t[12]=w,t[13]=E):E=t[13],E}function A5(){const e=M.useContext(cO);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function ev(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Sf={};function vm(e,t,n,r,i){let c={...tv(e,Sf)};return t&&(c=mf(c,t)),n&&(c=mf(c,n)),r&&(c=mf(c,r)),i&&(c=mf(c,i)),c}function T5(e){if(e.length===0)return Sf;if(e.length===1)return tv(e[0],Sf);let t={...tv(e[0],Sf)};for(let n=1;n=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function lO(e){return typeof e=="function"}function tv(e,t){return lO(e)?e(t):e??Sf}function M5(e,t){return t?e?n=>{if(D5(n)){const i=n;nv(i);const c=t(i);return i.baseUIHandlerPrevented||e?.(i),c}const r=t(n);return e?.(n),r}:t:e}function nv(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function uO(e,t){return t?e?t+" "+e:t:e}function D5(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Vo(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const sA={};function Sr(e,t){const n=M.useRef(sA);return n.current===sA&&(n.current=e(t)),n}function Np(e,t,n,r){const i=Sr(fO).current;return P5(i,e,t,n,r)&&dO(i,[e,t,n,r]),i.callback}function k5(e){const t=Sr(fO).current;return N5(t,e)&&dO(t,e),t.callback}function fO(){return{callback:null,cleanup:null,refs:[]}}function P5(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function N5(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function dO(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i{for(let i=0;i=e}function rA(e){if(!M.isValidElement(e))return null;const t=e,n=t.props;return(Xv(19)?n?.ref:t.ref)??null}function z5(e,t){const n={};for(const r in e){const i=e[r];if(t?.hasOwnProperty(r)){const c=t[r](i);c!=null&&Object.assign(n,c);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function B5(e,t){return typeof e=="function"?e(t):e}function $5(e,t){return typeof e=="function"?e(t):e}function hO(){}const RRe=Object.freeze([]),Hs=Object.freeze({}),U5={style:{transition:"none"}},j5="data-base-ui-click-trigger",CRe={fallbackAxisSide:"none"},H5={fallbackAxisSide:"end"},V5={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function _r(e,t,n={}){const r=t.render,i=q5(t,n);if(n.enabled===!1)return null;const c=n.state??Hs;return G5(e,r,i,c)}function q5(e,t={}){const{className:n,style:r,render:i}=e,{state:c=Hs,ref:l,props:f,stateAttributesMapping:d,enabled:h=!0}=t,b=h?B5(n,c):void 0,g=h?$5(r,c):void 0,v=h?z5(c,d):Hs,_=h?ev(v,Array.isArray(f)?T5(f):f)??Hs:Hs;return typeof document<"u"&&(h?Array.isArray(l)?_.ref=k5([_.ref,rA(i),...l]):_.ref=Np(_.ref,rA(i),l):Np(null,null)),h?(b!==void 0&&(_.className=uO(_.className,b)),g!==void 0&&(_.style=ev(_.style,g)),_):Hs}const F5=Symbol.for("react.lazy");function G5(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=vm(n,t.props);i.ref=n.ref;let c=t;return c?.$$typeof===F5&&(c=M.Children.toArray(t)[0]),M.cloneElement(c,i)}if(e&&typeof e=="string")return Z5(e,n);throw new Error(Vo(8))}function Z5(e,t){return e==="button"?M.createElement("button",{type:"button",...t,key:t.key}):e==="img"?M.createElement("img",{alt:"",...t,key:t.key}):M.createElement(e,t)}function pO(e){return _r(e.defaultTagName??"div",e,e)}function mO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,iA=gO,yO=(e,t)=>n=>{var r;if(t?.variants==null)return iA(e,n?.class,n?.className);const{variants:i,defaultVariants:c}=t,l=Object.keys(i).map(h=>{const b=n?.[h],g=c?.[h];if(b===null)return null;const v=oA(b)||oA(g);return i[h][v]}),f=n&&Object.entries(n).reduce((h,b)=>{let[g,v]=b;return v===void 0||(h[g]=v),h},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,b)=>{let{class:g,className:v,..._}=b;return Object.entries(_).every(w=>{let[E,R]=w;return Array.isArray(R)?R.includes({...c,...f}[E]):{...c,...f}[E]===R})?[...h,g,v]:h},[]);return iA(e,l,d,n?.class,n?.className)};const bO=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const K5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Q5=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const aA=e=>{const t=Q5(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Y5={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"};const X5=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const W5=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:l,...f},d)=>M.createElement("svg",{ref:d,...Y5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:bO("lucide",i),...!c&&!X5(f)&&{"aria-hidden":"true"},...f},[...l.map(([h,b])=>M.createElement(h,b)),...Array.isArray(c)?c:[c]]));const xs=(e,t)=>{const n=M.forwardRef(({className:r,...i},c)=>M.createElement(W5,{ref:c,iconNode:t,className:bO(`lucide-${K5(aA(e))}`,`lucide-${e}`,r),...i}));return n.displayName=aA(e),n};const J5=[["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"}]],e8=xs("camera",J5);const t8=[["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"}]],n8=xs("circle-alert",t8);const s8=[["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"}]],r8=xs("hard-drive",s8);const o8=[["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"}]],i8=xs("house",o8);const a8=[["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"}]],c8=xs("image",a8);const l8=[["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"}]],u8=xs("key",l8);const f8=[["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"}]],d8=xs("layout-grid",f8);const h8=[["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"}]],p8=xs("log-out",h8);const m8=[["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"}]],g8=xs("moon",m8);const y8=[["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"}]],b8=xs("network",y8);const v8=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],S8=xs("panel-left",v8);const _8=[["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"}]],cA=xs("server",_8);const w8=[["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"}]],E8=xs("sun",w8);const x8=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],R8=xs("x",x8);function Sm(){return typeof window<"u"}function sa(e){return Wv(e)?(e.nodeName||"").toLowerCase():"#document"}function Sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function eo(e){var t;return(t=(Wv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wv(e){return Sm()?e instanceof Node||e instanceof Sn(e).Node:!1}function xt(e){return Sm()?e instanceof Element||e instanceof Sn(e).Element:!1}function yn(e){return Sm()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}function sv(e){return!Sm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}const C8=new Set(["inline","contents"]);function ra(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Gs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!C8.has(i)}const A8=new Set(["table","td","th"]);function T8(e){return A8.has(sa(e))}const I8=[":popover-open",":modal"];function _m(e){return I8.some(t=>{try{return e.matches(t)}catch{return!1}})}const O8=["transform","translate","scale","rotate","perspective"],M8=["transform","translate","scale","rotate","perspective","filter"],D8=["paint","layout","strict","content"];function Jv(e){const t=wm(),n=xt(e)?Gs(e):e;return O8.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||M8.some(r=>(n.willChange||"").includes(r))||D8.some(r=>(n.contain||"").includes(r))}function k8(e){let t=$o(e);for(;yn(t)&&!zo(t);){if(Jv(t))return t;if(_m(t))return null;t=$o(t)}return null}function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const P8=new Set(["html","body","#document"]);function zo(e){return P8.has(sa(e))}function Gs(e){return Sn(e).getComputedStyle(e)}function Em(e){return xt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $o(e){if(sa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sv(e)&&e.host||eo(e);return sv(t)?t.host:t}function vO(e){const t=$o(e);return zo(t)?e.ownerDocument?e.ownerDocument.body:e.body:yn(t)&&ra(t)?t:vO(t)}function Wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=vO(e),c=i===((r=e.ownerDocument)==null?void 0:r.body),l=Sn(i);if(c){const f=rv(l);return t.concat(l,l.visualViewport||[],ra(i)?i:[],f&&n?Wi(f):[])}return t.concat(i,Wi(i,[],n))}function rv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Q0=Lv[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],N8=Q0&&Q0!==M.useLayoutEffect?Q0:e=>e();function Fe(e){const t=Sr(L8).current;return t.next=e,N8(t.effect),t.trampoline}function L8(){const e={next:void 0,callback:z8,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function z8(){}const B8={...Lv},$8=()=>{},pt=typeof document<"u"?M.useLayoutEffect:$8,U8=M.createContext(void 0);function j8(e=!1){const t=M.useContext(U8);if(t===void 0&&!e)throw new Error(Vo(16));return t}function H8(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:c}=e,l=r&&t!==!1,f=r&&t===!1;return{props:M.useMemo(()=>{const h={onKeyDown(b){n&&t&&b.key!=="Tab"&&b.preventDefault()}};return r||(h.tabIndex=i,!c&&n&&(h.tabIndex=t?i:-1)),(c&&(t||l)||!c&&n)&&(h["aria-disabled"]=n),c&&(!t||f)&&(h.disabled=n),h},[r,n,t,l,f,c,i])}}function SO(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,c=M.useRef(null),l=j8(!0)!==void 0,f=Fe(()=>{const v=c.current;return!!(v?.tagName==="A"&&v?.href)}),{props:d}=H8({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),h=M.useCallback(()=>{const v=c.current;V8(v)&&l&&t&&d.disabled===void 0&&v.disabled&&(v.disabled=!1)},[t,d.disabled,l]);pt(h,[h]);const b=M.useCallback((v={})=>{const{onClick:_,onMouseDown:w,onKeyUp:E,onKeyDown:R,onPointerDown:C,...I}=v;return vm({type:i?"button":void 0,onClick(T){if(t){T.preventDefault();return}_?.(T)},onMouseDown(T){t||w?.(T)},onKeyDown(T){if(t||(nv(T),R?.(T)),T.baseUIHandlerPrevented)return;const $=T.target===T.currentTarget&&!i&&!f()&&!t,j=T.key==="Enter",H=T.key===" ";$&&((H||j)&&T.preventDefault(),j&&_?.(T))},onKeyUp(T){t||(nv(T),E?.(T)),!T.baseUIHandlerPrevented&&T.target===T.currentTarget&&!i&&!t&&T.key===" "&&_?.(T)},onPointerDown(T){if(t){T.preventDefault();return}C?.(T)}},i?void 0:{role:"button"},d,I)},[t,d,i,f]),g=Fe(v=>{c.current=v,h()});return{getButtonProps:b,buttonRef:g}}function V8(e){return yn(e)&&e.tagName==="BUTTON"}const q8=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,...d}=t,{getButtonProps:h,buttonRef:b}=SO({disabled:c,focusableWhenDisabled:l,native:f});return _r("button",t,{state:{disabled:c},ref:[n,b],props:[d,h]})}),F8=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),_O=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Lp="-",lA=[],Z8="arbitrary..",K8=e=>{const t=Y8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Q8(l);const f=l.split(Lp),d=f[0]===""&&f.length>1?1:0;return wO(f,d,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const d=r[l],h=n[l];return d?h?F8(h,d):d:h||lA}return n[l]||lA}}},wO=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],c=n.nextPart.get(i);if(c){const h=wO(e,t+1,c);if(h)return h}const l=n.validators;if(l===null)return;const f=t===0?e.join(Lp):e.slice(t).join(Lp),d=l.length;for(let h=0;he.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Z8+r:void 0})(),Y8=e=>{const{theme:t,classGroups:n}=e;return X8(n,t)},X8=(e,t)=>{const n=_O();for(const r in e){const i=e[r];eS(i,n,r,t)}return n},eS=(e,t,n,r)=>{const i=e.length;for(let c=0;c{if(typeof e=="string"){J8(e,t,n);return}if(typeof e=="function"){ej(e,t,n,r);return}tj(e,t,n,r)},J8=(e,t,n)=>{const r=e===""?t:EO(t,e);r.classGroupId=n},ej=(e,t,n,r)=>{if(nj(e)){eS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(G8(n,e))},tj=(e,t,n,r)=>{const i=Object.entries(e),c=i.length;for(let l=0;l{let n=e;const r=t.split(Lp),i=r.length;for(let c=0;c"isThemeGetter"in e&&e.isThemeGetter===!0,sj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(c,l)=>{n[c]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(c){let l=n[c];if(l!==void 0)return l;if((l=r[c])!==void 0)return i(c,l),l},set(c,l){c in n?n[c]=l:i(c,l)}}},ov="!",uA=":",rj=[],fA=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),oj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const c=[];let l=0,f=0,d=0,h;const b=i.length;for(let E=0;Ed?h-d:void 0;return fA(c,_,v,w)};if(t){const i=t+uA,c=r;r=l=>l.startsWith(i)?c(l.slice(i.length)):fA(rj,!1,l,void 0,!0)}if(n){const i=r;r=c=>n({className:c,parseClassName:i})}return r},ij=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let c=0;c0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},aj=e=>({cache:sj(e.cacheSize),parseClassName:oj(e),sortModifiers:ij(e),...K8(e)}),cj=/\s+/,lj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:c}=t,l=[],f=e.trim().split(cj);let d="";for(let h=f.length-1;h>=0;h-=1){const b=f[h],{isExternal:g,modifiers:v,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:E}=n(b);if(g){d=b+(d.length>0?" "+d:d);continue}let R=!!E,C=r(R?w.substring(0,E):w);if(!C){if(!R){d=b+(d.length>0?" "+d:d);continue}if(C=r(w),!C){d=b+(d.length>0?" "+d:d);continue}R=!1}const I=v.length===0?"":v.length===1?v[0]:c(v).join(":"),k=_?I+ov:I,T=k+C;if(l.indexOf(T)>-1)continue;l.push(T);const $=i(C,R);for(let j=0;j<$.length;++j){const H=$[j];l.push(k+H)}d=b+(d.length>0?" "+d:d)}return d},uj=(...e)=>{let t=0,n,r,i="";for(;t{if(typeof e=="string")return e;let t,n="";for(let r=0;r{let n,r,i,c;const l=d=>{const h=t.reduce((b,g)=>g(b),e());return n=aj(h),r=n.cache.get,i=n.cache.set,c=f,f(d)},f=d=>{const h=r(d);if(h)return h;const b=lj(d,n);return i(d,b),b};return c=l,(...d)=>c(uj(...d))},dj=[],xn=e=>{const t=n=>n[e]||dj;return t.isThemeGetter=!0,t},RO=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,CO=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,pj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=e=>hj.test(e),tt=e=>!!e&&!Number.isNaN(Number(e)),Bi=e=>!!e&&Number.isInteger(Number(e)),Y0=e=>e.endsWith("%")&&tt(e.slice(0,-1)),Io=e=>pj.test(e),AO=()=>!0,vj=e=>mj.test(e)&&!gj.test(e),tS=()=>!1,Sj=e=>yj.test(e),_j=e=>bj.test(e),wj=e=>!Ne(e)&&!Le(e),Ej=e=>oa(e,OO,tS),Ne=e=>RO.test(e),qa=e=>oa(e,MO,vj),dA=e=>oa(e,Mj,tt),xj=e=>oa(e,kO,AO),Rj=e=>oa(e,DO,tS),hA=e=>oa(e,TO,tS),Cj=e=>oa(e,IO,_j),Zh=e=>oa(e,PO,Sj),Le=e=>CO.test(e),af=e=>uc(e,MO),Aj=e=>uc(e,DO),pA=e=>uc(e,TO),Tj=e=>uc(e,OO),Ij=e=>uc(e,IO),Kh=e=>uc(e,PO,!0),Oj=e=>uc(e,kO,!0),oa=(e,t,n)=>{const r=RO.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},uc=(e,t,n=!1)=>{const r=CO.exec(e);return r?r[1]?t(r[1]):n:!1},TO=e=>e==="position"||e==="percentage",IO=e=>e==="image"||e==="url",OO=e=>e==="length"||e==="size"||e==="bg-size",MO=e=>e==="length",Mj=e=>e==="number",DO=e=>e==="family-name",kO=e=>e==="number"||e==="weight",PO=e=>e==="shadow",Dj=()=>{const e=xn("color"),t=xn("font"),n=xn("text"),r=xn("font-weight"),i=xn("tracking"),c=xn("leading"),l=xn("breakpoint"),f=xn("container"),d=xn("spacing"),h=xn("radius"),b=xn("shadow"),g=xn("inset-shadow"),v=xn("text-shadow"),_=xn("drop-shadow"),w=xn("blur"),E=xn("perspective"),R=xn("aspect"),C=xn("ease"),I=xn("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...T(),Le,Ne],j=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],P=()=>[Le,Ne,d],Q=()=>[zi,"full","auto",...P()],ne=()=>[Bi,"none","subgrid",Le,Ne],te=()=>["auto",{span:["full",Bi,Le,Ne]},Bi,Le,Ne],F=()=>[Bi,"auto",Le,Ne],oe=()=>["auto","min","max","fr",Le,Ne],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...P()],re=()=>[zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],J=()=>[zi,"screen","full","dvw","lvw","svw","min","max","fit",...P()],be=()=>[zi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],ue=()=>[e,Le,Ne],z=()=>[...T(),pA,hA,{position:[Le,Ne]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",Tj,Ej,{size:[Le,Ne]}],we=()=>[Y0,af,qa],Ee=()=>["","none","full",h,Le,Ne],Se=()=>["",tt,af,qa],Ie=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[tt,Y0,pA,hA],Je=()=>["","none",w,Le,Ne],wt=()=>["none",tt,Le,Ne],pe=()=>["none",tt,Le,Ne],xe=()=>[tt,Le,Ne],_e=()=>[zi,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Io],breakpoint:[Io],color:[AO],container:[Io],"drop-shadow":[Io],ease:["in","out","in-out"],font:[wj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Io],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Io],shadow:[Io],spacing:["px",tt],text:[Io],"text-shadow":[Io],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zi,Ne,Le,R]}],container:["container"],columns:[{columns:[tt,Ne,Le,f]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:$()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[Bi,"auto",Le,Ne]}],basis:[{basis:[zi,"full","auto",f,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[tt,zi,"auto","initial","none",Ne]}],grow:[{grow:["",tt,Le,Ne]}],shrink:[{shrink:["",tt,Le,Ne]}],order:[{order:[Bi,"first","last","none",Le,Ne]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...be()]}],"min-block-size":[{"min-block":["auto",...be()]}],"max-block-size":[{"max-block":["none",...be()]}],w:[{w:[f,"screen",...re()]}],"min-w":[{"min-w":[f,"screen","none",...re()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,af,qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Oj,xj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Y0,Ne]}],"font-family":[{font:[Aj,Rj,t]}],"font-features":[{"font-features":[Ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Le,Ne]}],"line-clamp":[{"line-clamp":[tt,"none",Le,dA]}],leading:[{leading:[c,...P()]}],"list-image":[{"list-image":["none",Le,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Le,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ue()}],"text-color":[{text:ue()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[tt,"from-font","auto",Le,qa]}],"text-decoration-color":[{decoration:ue()}],"underline-offset":[{"underline-offset":[tt,"auto",Le,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le,Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bi,Le,Ne],radial:["",Le,Ne],conic:[Bi,Le,Ne]},Ij,Cj]}],"bg-color":[{bg:ue()}],"gradient-from-pos":[{from:we()}],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:ue()}],"gradient-via":[{via:ue()}],"gradient-to":[{to:ue()}],rounded:[{rounded:Ee()}],"rounded-s":[{"rounded-s":Ee()}],"rounded-e":[{"rounded-e":Ee()}],"rounded-t":[{"rounded-t":Ee()}],"rounded-r":[{"rounded-r":Ee()}],"rounded-b":[{"rounded-b":Ee()}],"rounded-l":[{"rounded-l":Ee()}],"rounded-ss":[{"rounded-ss":Ee()}],"rounded-se":[{"rounded-se":Ee()}],"rounded-ee":[{"rounded-ee":Ee()}],"rounded-es":[{"rounded-es":Ee()}],"rounded-tl":[{"rounded-tl":Ee()}],"rounded-tr":[{"rounded-tr":Ee()}],"rounded-br":[{"rounded-br":Ee()}],"rounded-bl":[{"rounded-bl":Ee()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ie(),"hidden","none"]}],"divide-style":[{divide:[...Ie(),"hidden","none"]}],"border-color":[{border:ue()}],"border-color-x":[{"border-x":ue()}],"border-color-y":[{"border-y":ue()}],"border-color-s":[{"border-s":ue()}],"border-color-e":[{"border-e":ue()}],"border-color-bs":[{"border-bs":ue()}],"border-color-be":[{"border-be":ue()}],"border-color-t":[{"border-t":ue()}],"border-color-r":[{"border-r":ue()}],"border-color-b":[{"border-b":ue()}],"border-color-l":[{"border-l":ue()}],"divide-color":[{divide:ue()}],"outline-style":[{outline:[...Ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[tt,Le,Ne]}],"outline-w":[{outline:["",tt,af,qa]}],"outline-color":[{outline:ue()}],shadow:[{shadow:["","none",b,Kh,Zh]}],"shadow-color":[{shadow:ue()}],"inset-shadow":[{"inset-shadow":["none",g,Kh,Zh]}],"inset-shadow-color":[{"inset-shadow":ue()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ue()}],"ring-offset-w":[{"ring-offset":[tt,qa]}],"ring-offset-color":[{"ring-offset":ue()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":ue()}],"text-shadow":[{"text-shadow":["none",v,Kh,Zh]}],"text-shadow-color":[{"text-shadow":ue()}],opacity:[{opacity:[tt,Le,Ne]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[tt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":ue()}],"mask-image-linear-to-color":[{"mask-linear-to":ue()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":ue()}],"mask-image-t-to-color":[{"mask-t-to":ue()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":ue()}],"mask-image-r-to-color":[{"mask-r-to":ue()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":ue()}],"mask-image-b-to-color":[{"mask-b-to":ue()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":ue()}],"mask-image-l-to-color":[{"mask-l-to":ue()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":ue()}],"mask-image-x-to-color":[{"mask-x-to":ue()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":ue()}],"mask-image-y-to-color":[{"mask-y-to":ue()}],"mask-image-radial":[{"mask-radial":[Le,Ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":ue()}],"mask-image-radial-to-color":[{"mask-radial-to":ue()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[tt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":ue()}],"mask-image-conic-to-color":[{"mask-conic-to":ue()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Le,Ne]}],filter:[{filter:["","none",Le,Ne]}],blur:[{blur:Je()}],brightness:[{brightness:[tt,Le,Ne]}],contrast:[{contrast:[tt,Le,Ne]}],"drop-shadow":[{"drop-shadow":["","none",_,Kh,Zh]}],"drop-shadow-color":[{"drop-shadow":ue()}],grayscale:[{grayscale:["",tt,Le,Ne]}],"hue-rotate":[{"hue-rotate":[tt,Le,Ne]}],invert:[{invert:["",tt,Le,Ne]}],saturate:[{saturate:[tt,Le,Ne]}],sepia:[{sepia:["",tt,Le,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",Le,Ne]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[tt,Le,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[tt,Le,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",tt,Le,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[tt,Le,Ne]}],"backdrop-invert":[{"backdrop-invert":["",tt,Le,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[tt,Le,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[tt,Le,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",tt,Le,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Le,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[tt,"initial",Le,Ne]}],ease:[{ease:["linear","initial",C,Le,Ne]}],delay:[{delay:[tt,Le,Ne]}],animate:[{animate:["none",I,Le,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,Le,Ne]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:wt()}],"rotate-x":[{"rotate-x":wt()}],"rotate-y":[{"rotate-y":wt()}],"rotate-z":[{"rotate-z":wt()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[Le,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":["translate-none"],accent:[{accent:ue()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ue()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le,Ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le,Ne]}],fill:[{fill:["none",...ue()]}],"stroke-w":[{stroke:[tt,af,qa,dA]}],stroke:[{stroke:["none",...ue()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},kj=fj(Dj);function cn(...e){return kj(gO(e))}function ARe(e){return e?new Date(e).toLocaleString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"Unknown"}function TRe(e){if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(2)} ${t[n]}`}const Pj=/\/$/;function IRe(e){return e.replace(Pj,"")}function Nj(e){return e&&(e.endsWith("/")?e:`${e}/`)}function Lj(e,t){return e.startsWith(t)?e:`${t}${e}`}function ORe(e,t){return e.startsWith(t)?e.slice(t.length):e}const zj=yO("group/button inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md border border-transparent bg-clip-padding font-medium text-xs/relaxed outline-none transition-all focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function Il(e){const t=kt.c(12);let n,r,i,c;t[0]!==e?({className:n,variant:i,size:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c):(n=t[1],r=t[2],i=t[3],c=t[4]);const l=i===void 0?"default":i,f=c===void 0?"default":c;let d;t[5]!==n||t[6]!==f||t[7]!==l?(d=cn(zj({variant:l,size:f,className:n})),t[5]=n,t[6]=f,t[7]=l,t[8]=d):d=t[8];let h;return t[9]!==r||t[10]!==d?(h=N.jsx(q8,{className:d,"data-slot":"button",...r}),t[9]=r,t[10]=d,t[11]=h):h=t[11],h}let mA=0;function Bj(e,t="mui"){const[n,r]=M.useState(e),i=e||n;return M.useEffect(()=>{n==null&&(mA+=1,r(`${t}-${mA}`))},[n,t]),i}const gA=B8.useId;function Kf(e,t){if(gA!==void 0){const n=gA();return e??(t?`${t}-${n}`:n)}return Bj(e,t)}function nS(e){return Kf(e,"base-ui")}const $j=[];function sS(e){M.useEffect(e,$j)}const cf=0;class Jr{static create(){return new Jr}currentId=cf;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=cf,n()},t)}isStarted(){return this.currentId!==cf}clear=()=>{this.currentId!==cf&&(clearTimeout(this.currentId),this.currentId=cf)};disposeEffect=()=>this.clear}function Ol(){const e=Sr(Jr.create).current;return sS(e.disposeEffect),e}function Kt(e){return e?.ownerDocument||document}const Bl=typeof navigator<"u",X0=jj(),NO=Vj(),LO=Hj(),zO=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),BO=X0.platform==="MacIntel"&&X0.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(X0.platform),$O=Bl&&/apple/i.test(navigator.vendor),iv=Bl&&/android/i.test(NO)||/android/i.test(LO),Uj=Bl&&NO.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,UO=LO.includes("jsdom/");function jj(){if(!Bl)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function Hj(){if(!Bl)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Vj(){if(!Bl)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const av="data-base-ui-focusable",jO="active",HO="selected",VO="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",MRe="ArrowLeft",DRe="ArrowRight",kRe="ArrowUp",PRe="ArrowDown";function Do(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function yt(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&sv(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function zp(e,t){if(!xt(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(yt(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function Ss(e){return"composedPath"in e?e.composedPath()[0]:e.target}function kr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function qj(e){return e.matches("html,body")}function rS(e){return yn(e)&&e.matches(VO)}function yA(e){return e?e.getAttribute("role")==="combobox"&&rS(e):!1}function Fj(e){if(!e||UO)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function cv(e){return e?e.hasAttribute(av)?e:e.querySelector(`[${av}]`)||e:null}function Ja(e,t,n=!0){return e.filter(i=>i.parentId===t&&(!n||i.context?.open)).flatMap(i=>[i,...Ja(e,i.id,n)])}function bA(e,t){let n=[],r=e.find(i=>i.id===t)?.parentId;for(;r;){const i=e.find(c=>c.id===r);r=i?.parentId,i&&(n=n.concat(i))}return n}function Gj(e){e.preventDefault(),e.stopPropagation()}function Zj(e){return"nativeEvent"in e}function Kj(e){return e.pointerType===""&&e.isTrusted?!0:iv&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Qj(e){return UO?!1:!iv&&e.width===0&&e.height===0||iv&&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 kf(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Yj(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const Xj=["top","right","bottom","left"],Ml=Math.min,js=Math.max,Bp=Math.round,Qh=Math.floor,Yr=e=>({x:e,y:e}),Wj={left:"right",right:"left",bottom:"top",top:"bottom"},Jj={start:"end",end:"start"};function lv(e,t,n){return js(e,Ml(t,n))}function Uo(e,t){return typeof e=="function"?e(t):e}function Es(e){return e.split("-")[0]}function ia(e){return e.split("-")[1]}function oS(e){return e==="x"?"y":"x"}function iS(e){return e==="y"?"height":"width"}const e9=new Set(["top","bottom"]);function vr(e){return e9.has(Es(e))?"y":"x"}function aS(e){return oS(vr(e))}function t9(e,t,n){n===void 0&&(n=!1);const r=ia(e),i=aS(e),c=iS(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=$p(l)),[l,$p(l)]}function n9(e){const t=$p(e);return[uv(e),t,uv(t)]}function uv(e){return e.replace(/start|end/g,t=>Jj[t])}const vA=["left","right"],SA=["right","left"],s9=["top","bottom"],r9=["bottom","top"];function o9(e,t,n){switch(e){case"top":case"bottom":return n?t?SA:vA:t?vA:SA;case"left":case"right":return t?s9:r9;default:return[]}}function i9(e,t,n,r){const i=ia(e);let c=o9(Es(e),n==="start",r);return i&&(c=c.map(l=>l+"-"+i),t&&(c=c.concat(c.map(uv)))),c}function $p(e){return e.replace(/left|right|bottom|top/g,t=>Wj[t])}function a9(e){return{top:0,right:0,bottom:0,left:0,...e}}function qO(e){return typeof e!="number"?a9(e):{top:e,right:e,bottom:e,left:e}}function Up(e){const{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}}var c9=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],jp=c9.join(","),FO=typeof Element>"u",Dl=FO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Hp=!FO&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Vp=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),c=i===""||i==="true",l=c||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Vp(t.parentNode));return l},l9=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},GO=function(t,n,r){if(Vp(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(jp));return n&&Dl.call(t,jp)&&i.unshift(t),i=i.filter(r),i},qp=function(t,n,r){for(var i=[],c=Array.from(t);c.length;){var l=c.shift();if(!Vp(l,!1))if(l.tagName==="SLOT"){var f=l.assignedElements(),d=f.length?f:l.children,h=qp(d,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:l,candidates:h})}else{var b=Dl.call(l,jp);b&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),v=!Vp(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&v){var _=qp(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,_):i.push({scopeParent:l,candidates:_})}else c.unshift.apply(c,l.children)}}return i},ZO=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},KO=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||l9(t))&&!ZO(t)?0:t.tabIndex},u9=function(t,n){var r=KO(t);return r<0&&n&&!ZO(t)?0:r},f9=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},QO=function(t){return t.tagName==="INPUT"},d9=function(t){return QO(t)&&t.type==="hidden"},h9=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},p9=function(t,n){for(var r=0;rsummary:first-of-type"),f=l?t.parentElement:t;if(Dl.call(f,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var d=t;t;){var h=t.parentElement,b=Hp(t);if(h&&!h.shadowRoot&&i(h)===!0)return _A(t);t.assignedSlot?t=t.assignedSlot:!h&&b!==t.ownerDocument?t=b.host:t=h}t=d}if(b9(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _A(t);return!1},S9=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},YO=function(t){var n=[],r=[];return t.forEach(function(i,c){var l=!!i.scopeParent,f=l?i.scopeParent:i,d=u9(f,l),h=l?YO(i.candidates):f;d===0?l?n.push.apply(n,h):n.push(f):r.push({documentOrder:c,tabIndex:d,item:i,isScope:l,content:h})}),r.sort(f9).reduce(function(i,c){return c.isScope?i.push.apply(i,c.content):i.push(c.content),i},[]).concat(n)},xm=function(t,n){n=n||{};var r;return n.getShadowRoot?r=qp([t],n.includeContainer,{filter:dv.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:_9}):r=GO(t,n.includeContainer,dv.bind(null,n)),YO(r)},w9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=qp([t],n.includeContainer,{filter:fv.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=GO(t,n.includeContainer,fv.bind(null,n)),r},XO=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Dl.call(t,jp)===!1?!1:dv(n,t)};const Qf=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function WO(e,t){const n=xm(e,Qf()),r=n.length;if(r===0)return;const i=Do(Kt(e)),c=n.indexOf(i),l=c===-1?t===1?0:r-1:c+t;return n[l]}function JO(e){return WO(Kt(e).body,1)||e}function eM(e){return WO(Kt(e).body,-1)||e}function _f(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!yt(n,r)}function E9(e){xm(e,Qf()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function wA(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Yh=null;class x9{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Xh=new x9;class Kr{static create(){return new Kr}static request(t){return Xh.request(t)}static cancel(t){return Xh.cancel(t)}currentId=Yh;request(t){this.cancel(),this.currentId=Xh.request(()=>{this.currentId=Yh,t()})}cancel=()=>{this.currentId!==Yh&&(Xh.cancel(this.currentId),this.currentId=Yh)};disposeEffect=()=>this.cancel}function tM(){const e=Sr(Kr.create).current;return sS(e.disposeEffect),e}function Mo(e){return e==null?e:"current"in e?e.current:e}let Pf=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const R9={[Pf.startingStyle]:""},C9={[Pf.endingStyle]:""},cS={transitionStatus(e){return e==="starting"?R9:e==="ending"?C9:null}};function A9(e,t=!1,n=!0){const r=tM();return Fe((i,c=null)=>{r.cancel();function l(){na.flushSync(i)}const f=Mo(e);if(f==null)return;const d=f;if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{let h=function(){const g=Pf.startingStyle;if(!d.hasAttribute(g)){r.request(b);return}const v=new MutationObserver(()=>{d.hasAttribute(g)||(v.disconnect(),b())});v.observe(d,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>v.disconnect(),{once:!0})},b=function(){Promise.all(d.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||l()}).catch(()=>{const g=d.getAnimations();if(n){if(c?.aborted)return;l()}else g.length>0&&g.some(v=>v.pending||v.playState!=="finished")&&b()})};if(t){h();return}r.request(b)}})}function lS(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,c=Fe(i),l=A9(r,n,!1);M.useEffect(()=>{if(!t)return;const f=new AbortController;return l(c,f.signal),()=>{f.abort()}},[t,n,c,l])}function T9(e,t=!1,n=!1){const[r,i]=M.useState(e&&t?"idle":void 0),[c,l]=M.useState(e);return e&&!c&&(l(!0),i("starting")),!e&&c&&r!=="ending"&&!n&&i("ending"),!e&&!c&&r==="ending"&&i(void 0),pt(()=>{if(!e&&c&&r!=="ending"&&n){const f=Kr.request(()=>{i("ending")});return()=>{Kr.cancel(f)}}},[e,c,r,n]),pt(()=>{if(!e||t)return;const f=Kr.request(()=>{i(void 0)});return()=>{Kr.cancel(f)}},[t,e]),pt(()=>{if(!e||!t)return;e&&c&&r!=="idle"&&i("starting");const f=Kr.request(()=>{i("idle")});return()=>{Kr.cancel(f)}},[t,e,c,i,r]),M.useMemo(()=>({mounted:c,setMounted:l,transitionStatus:r}),[c,r])}const uS="none",Fp="trigger-press",Lr="trigger-hover",bp="trigger-focus",nM="outside-press",NRe="item-press",I9="close-press",sM="focus-out",fS="escape-key",LRe="list-navigation",zRe="cancel-open",O9="disabled",rM="imperative-action",BRe="window-resize";function Jt(e,t,n,r){let i=!1,c=!1;const l=Hs;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){c=!0},get isCanceled(){return i},get isPropagationAllowed(){return c},trigger:n,...l}}const oM=M.createContext(void 0);function fc(e){const t=M.useContext(oM);if(e===!1&&t===void 0)throw new Error(Vo(27));return t}let Qa=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Pf.startingStyle]="startingStyle",e[e.endingStyle=Pf.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Gp=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const M9={[Gp.popupOpen]:""},D9={[Gp.popupOpen]:"",[Gp.pressed]:""},k9={[Qa.open]:""},P9={[Qa.closed]:""},N9={[Qa.anchorHidden]:""},L9={open(e){return e?M9:null}},$Re={open(e){return e?D9:null}},Yf={open(e){return e?k9:P9},anchorHidden(e){return e?N9:null}},z9={...Yf,...cS},B9=M.forwardRef(function(t,n){const{render:r,className:i,forceRender:c=!1,...l}=t,{store:f}=fc(),d=f.useState("open"),h=f.useState("nested"),b=f.useState("mounted"),g=f.useState("transitionStatus");return _r("div",t,{state:{open:d,transitionStatus:g},ref:[f.context.backdropRef,n],stateAttributesMapping:z9,props:[{role:"presentation",hidden:!b,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!h})}),$9=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,nativeButton:l=!0,...f}=t,{store:d}=fc(),h=d.useState("open");function b(w){h&&d.setOpen(!1,Jt(I9,w.nativeEvent))}const{getButtonProps:g,buttonRef:v}=SO({disabled:c,native:l});return _r("button",t,{state:{disabled:c},ref:[n,v],props:[{onClick:b},f,g]})}),U9=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=fc(),d=nS(c);return f.useSyncedValueWithCleanup("descriptionElementId",d),_r("p",t,{ref:n,props:[{id:d},l]})});function Qr(e){const t=Sr(j9,e).current;return t.next=e,pt(t.effect),t}function j9(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function H9(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(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)}}}const V9=M.createContext(null),q9=M.createContext(null),Rm=()=>M.useContext(V9)?.id||null,Xf=e=>{const t=M.useContext(q9);return e??t};function kl(e){return`data-base-ui-${e}`}function vp(e,t,n){if(n&&!kf(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const iM=M.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Jr,currentIdRef:{current:null},currentContextRef:{current:null}});function F9(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=M.useRef(n),c=M.useRef(n),l=M.useRef(null),f=M.useRef(null),d=Ol();return N.jsx(iM.Provider,{value:M.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:c,currentIdRef:l,timeoutMs:r,currentContextRef:f,timeout:d}),[r,d]),children:t})}function G9(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{open:i}=t,c=M.useContext(iM),{currentIdRef:l,delayRef:f,timeoutMs:d,initialDelayRef:h,currentContextRef:b,hasProvider:g,timeout:v}=c,[_,w]=M.useState(!1);return pt(()=>{function E(){w(!1),b.current?.setIsInstantPhase(!1),l.current=null,b.current=null,f.current=h.current}if(l.current&&!i&&l.current===r){if(w(!1),d){const R=r;return v.start(d,()=>{n.select("open")||l.current&&l.current!==R||E()}),()=>{v.clear()}}E()}},[i,r,l,f,d,h,b,v,n]),pt(()=>{if(!i)return;const E=b.current,R=l.current;v.clear(),b.current={onOpenChange:n.setOpen,setIsInstantPhase:w},l.current=r,f.current={open:0,close:vp(h.current,"close")},R!==null&&R!==r?(w(!0),E?.setIsInstantPhase(!0),E?.onOpenChange(!1,Jt(uS))):(w(!1),E?.setIsInstantPhase(!1))},[i,r,n,l,f,d,h,b,v]),pt(()=>()=>{b.current=null},[b]),M.useMemo(()=>({hasProvider:g,delayRef:f,isInstantPhase:_}),[g,f,_])}const aM={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},cM={...aM,position:"fixed",top:0,left:0},URe={...aM,position:"absolute"},Zp=M.forwardRef(function(t,n){const[r,i]=M.useState();pt(()=>{$O&&i("button")},[]);const c={tabIndex:0,role:r};return N.jsx("span",{...t,ref:n,style:cM,"aria-hidden":r?void 0:!0,...c,"data-base-ui-focus-guard":""})});let EA=0;function W0(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(EA);const c=()=>e?.focus({preventScroll:n});i?c():EA=requestAnimationFrame(c)}const Sl={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function xA(e){return e==="inert"?Sl.inert:e==="aria-hidden"?Sl["aria-hidden"]:Sl.none}let Wh=new WeakSet,Jh={},J0=0;const lM=e=>e&&(e.host||lM(e.parentNode)),Z9=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=lM(n);return e.contains(r)?r:null}).filter(n=>n!=null);function K9(e,t,n,r){const i="data-base-ui-inert",c=r?"inert":n?"aria-hidden":null,l=Z9(t,e),f=new Set,d=new Set(l),h=[];Jh[i]||(Jh[i]=new WeakMap);const b=Jh[i];l.forEach(g),v(t),f.clear();function g(_){!_||f.has(_)||(f.add(_),_.parentNode&&g(_.parentNode))}function v(_){!_||d.has(_)||[].forEach.call(_.children,w=>{if(sa(w)!=="script")if(f.has(w))v(w);else{const E=c?w.getAttribute(c):null,R=E!==null&&E!=="false",C=xA(c),I=(C.get(w)||0)+1,k=(b.get(w)||0)+1;C.set(w,I),b.set(w,k),h.push(w),I===1&&R&&Wh.add(w),k===1&&w.setAttribute(i,""),!R&&c&&w.setAttribute(c,c==="inert"?"":"true")}})}return J0+=1,()=>{h.forEach(_=>{const w=xA(c),R=(w.get(_)||0)-1,C=(b.get(_)||0)-1;w.set(_,R),b.set(_,C),R||(!Wh.has(_)&&c&&_.removeAttribute(c),Wh.delete(_)),C||_.removeAttribute(i)}),J0-=1,J0||(Sl.inert=new WeakMap,Sl["aria-hidden"]=new WeakMap,Sl.none=new WeakMap,Wh=new WeakSet,Jh={})}}function Q9(e,t=!1,n=!1){const r=Kt(e[0]).body;return K9(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const uM=M.createContext(null),fM=()=>M.useContext(uM),Y9=kl("portal");function dM(e={}){const{ref:t,container:n,componentProps:r=Hs,elementProps:i}=e,c=Kf(),f=fM()?.portalNode,[d,h]=M.useState(null),[b,g]=M.useState(null),v=Fe(R=>{R!==null&&g(R)}),_=M.useRef(null);pt(()=>{if(n===null){_.current&&(_.current=null,g(null),h(null));return}if(c==null)return;const R=(n&&(Wv(n)?n:n.current))??f??document.body;if(R==null){_.current&&(_.current=null,g(null),h(null));return}_.current!==R&&(_.current=R,g(null),h(R))},[n,f,c]);const w=_r("div",r,{ref:[t,v],props:[{id:c,[Y9]:""},i]});return{portalNode:b,portalSubtree:d&&w?na.createPortal(w,d):null}}const X9=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,renderGuards:f,...d}=t,{portalNode:h,portalSubtree:b}=dM({container:i,ref:n,componentProps:t,elementProps:d}),g=M.useRef(null),v=M.useRef(null),_=M.useRef(null),w=M.useRef(null),[E,R]=M.useState(null),C=E?.modal,I=E?.open,k=typeof f=="boolean"?f:!!E&&!E.modal&&E.open&&!!h;M.useEffect(()=>{if(!h||C)return;function $(j){h&&j.relatedTarget&&_f(j)&&(j.type==="focusin"?wA:E9)(h)}return h.addEventListener("focusin",$,!0),h.addEventListener("focusout",$,!0),()=>{h.removeEventListener("focusin",$,!0),h.removeEventListener("focusout",$,!0)}},[h,C]),M.useEffect(()=>{!h||I||wA(h)},[I,h]);const T=M.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:v,beforeInsideRef:_,afterInsideRef:w,portalNode:h,setFocusManagerState:R}),[h]);return N.jsxs(M.Fragment,{children:[b,N.jsxs(uM.Provider,{value:T,children:[k&&h&&N.jsx(Zp,{"data-type":"outside",ref:g,onFocus:$=>{if(_f($,h))_.current?.focus();else{const j=E?E.domReference:null;eM(j)?.focus()}}}),k&&h&&N.jsx("span",{"aria-owns":h.id,style:V5}),h&&na.createPortal(r,h),k&&h&&N.jsx(Zp,{"data-type":"outside",ref:v,onFocus:$=>{if(_f($,h))w.current?.focus();else{const j=E?E.domReference:null;JO(j)?.focus(),E?.closeOnFocusOut&&E?.onOpenChange(!1,Jt(sM,$.nativeEvent))}}})]})]})});function W9(e,t){const n=Sn(e.target);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"):""}const RA=20;let Zi=[];function dS(){Zi=Zi.filter(e=>e.deref()?.isConnected)}function J9(e){dS(),e&&sa(e)!=="body"&&(Zi.push(new WeakRef(e)),Zi.length>RA&&(Zi=Zi.slice(-RA)))}function eb(){return dS(),Zi[Zi.length-1]?.deref()}function eH(e){if(!e)return null;const t=Qf();return XO(e,t)?e:xm(e,t)[0]||e}function tH(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():Gs(e).display!=="none"}function CA(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Qf(),i=w9(e,n).filter(l=>{const f=l.getAttribute("data-tabindex")||"";return XO(l,n)||l.hasAttribute("data-tabindex")&&!f.startsWith("-")}),c=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function nH(e){const{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:c=!0,restoreFocus:l=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:h="",nextFocusableElement:b,previousFocusableElement:g,beforeContentFocusGuardRef:v,externalTree:_}=e,w="rootStore"in t?t.rootStore:t,E=w.useState("open"),R=w.useState("domReferenceElement"),C=w.useState("floatingElement"),{events:I,dataRef:k}=w.context,T=Fe(()=>k.current.floatingContext?.nodeId),$=i===!1,j=yA(R)&&$,H=M.useRef(["content"]),P=Qr(i),Q=Qr(c),ne=Qr(h),te=Xf(_),F=fM(),oe=M.useRef(null),me=M.useRef(null),ge=M.useRef(!1),V=M.useRef(!1),re=M.useRef(!1),J=M.useRef(-1),be=M.useRef(""),ue=M.useRef(""),z=M.useRef(null),ee=M.useRef(null),ye=Np(z,v,F?.beforeInsideRef),we=Np(ee,F?.afterInsideRef),Ee=Ol(),Se=Ol(),Ie=tM(),qe=F!=null,ve=cv(C),Je=Fe((xe=ve)=>xe?xm(xe,Qf()):[]),wt=Fe(xe=>{const _e=Je(xe);return H.current.map(()=>_e).filter(Boolean).flat()});M.useEffect(()=>{if(r||!f)return;function xe(Ge){Ge.key==="Tab"&&yt(ve,Do(Kt(ve)))&&Je().length===0&&!j&&Gj(Ge)}const _e=Kt(ve);return _e.addEventListener("keydown",xe),()=>{_e.removeEventListener("keydown",xe)}},[r,R,ve,f,H,j,Je,wt]),M.useEffect(()=>{if(r||!E)return;const xe=Kt(ve);function _e(){re.current=!1}function Ge(He){const Me=Ss(He),ft=yt(C,Me)||yt(R,Me)||yt(F?.portalNode,Me);re.current=!ft,ue.current=He.pointerType||"keyboard",Me?.closest(`[${j5}]`)&&(V.current=!0)}function Oe(){ue.current="keyboard"}return xe.addEventListener("pointerdown",Ge,!0),xe.addEventListener("pointerup",_e,!0),xe.addEventListener("pointercancel",_e,!0),xe.addEventListener("keydown",Oe,!0),()=>{xe.removeEventListener("pointerdown",Ge,!0),xe.removeEventListener("pointerup",_e,!0),xe.removeEventListener("pointercancel",_e,!0),xe.removeEventListener("keydown",Oe,!0)}},[r,C,R,ve,E,F]),M.useEffect(()=>{if(r||!d)return;const xe=Kt(ve);function _e(){V.current=!0,Se.start(0,()=>{V.current=!1})}function Ge(mt){const Xe=Ss(mt),wn=Je().indexOf(Xe);wn!==-1&&(J.current=wn)}function Oe(mt){const Xe=mt.relatedTarget,Pt=mt.currentTarget,wn=Ss(mt);queueMicrotask(()=>{const It=T(),Xs=w.context.triggerElements,dt=Xe?.hasAttribute(kl("focus-guard"))&&[z.current,ee.current,F?.beforeInsideRef.current,F?.afterInsideRef.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,Mo(g),Mo(b)].includes(Xe),$t=!(yt(R,Xe)||yt(C,Xe)||yt(Xe,C)||yt(F?.portalNode,Xe)||Xe!=null&&Xs.hasElement(Xe)||Xs.hasMatchingElement(gt=>yt(gt,Xe))||dt||te&&(Ja(te.nodesRef.current,It).find(gt=>yt(gt.context?.elements.floating,Xe)||yt(gt.context?.elements.domReference,Xe))||bA(te.nodesRef.current,It).find(gt=>[gt.context?.elements.floating,cv(gt.context?.elements.floating)].includes(Xe)||gt.context?.elements.domReference===Xe)));if(Pt===R&&ve&&CA(ve,H),l&&Pt!==R&&!tH(wn)&&Do(xe)===xe.body){if(yn(ve)&&(ve.focus(),l==="popup")){Ie.request(()=>{ve.focus()});return}const gt=J.current,Os=Je(),Ws=Os[gt]||Os[Os.length-1]||ve;yn(Ws)&&Ws.focus()}if(k.current.insideReactTree){k.current.insideReactTree=!1;return}(j||!f)&&Xe&&$t&&!V.current&&(j||Xe!==eb())&&(ge.current=!0,w.setOpen(!1,Jt(sM,mt)))})}function He(){re.current||(k.current.insideReactTree=!0,Ee.start(0,()=>{k.current.insideReactTree=!1}))}const Me=yn(R)?R:null,ft=[];if(!(!C&&!Me))return Me&&(Me.addEventListener("focusout",Oe),Me.addEventListener("pointerdown",_e),ft.push(()=>{Me.removeEventListener("focusout",Oe),Me.removeEventListener("pointerdown",_e)})),C&&(C.addEventListener("focusin",Ge),C.addEventListener("focusout",Oe),F&&(C.addEventListener("focusout",He,!0),ft.push(()=>{C.removeEventListener("focusout",He,!0)})),ft.push(()=>{C.removeEventListener("focusin",Ge),C.removeEventListener("focusout",Oe)})),()=>{ft.forEach(mt=>{mt()})}},[r,R,C,ve,f,te,F,w,d,l,Je,j,T,H,k,Ee,Se,Ie,b,g]),M.useEffect(()=>{if(r||!C||!E)return;const xe=Array.from(F?.portalNode?.querySelectorAll(`[${kl("portal")}]`)||[]),Ge=(te?bA(te.nodesRef.current,T()):[]).find(He=>yA(He.context?.elements.domReference||null))?.context?.elements.domReference,Oe=[C,Ge,...xe,oe.current,me.current,z.current,ee.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,Mo(g),Mo(b),j?R:null].filter(He=>He!=null);return Q9(Oe,f||j)},[E,r,R,C,f,H,F,j,te,T,b,g]),pt(()=>{if(!E||r||!yn(ve))return;const xe=Kt(ve),_e=Do(xe);queueMicrotask(()=>{const Ge=wt(ve),Oe=P.current,He=typeof Oe=="function"?Oe(ne.current||""):Oe;if(He===void 0||He===!1)return;let Me;He===!0||He===null?Me=Ge[0]||ve:Me=Mo(He),Me=Me||Ge[0]||ve,!yt(ve,_e)&&W0(Me,{preventScroll:Me===ve})})},[r,E,ve,$,wt,P,ne]),pt(()=>{if(r||!ve)return;const xe=Kt(ve),_e=Do(xe);J9(_e);function Ge(Me){if(Me.open||(be.current=W9(Me.nativeEvent,ue.current)),Me.reason===Lr&&Me.nativeEvent.type==="mouseleave"&&(ge.current=!0),Me.reason===nM)if(Me.nested)ge.current=!1;else if(Kj(Me.nativeEvent)||Qj(Me.nativeEvent))ge.current=!1;else{let ft=!1;document.createElement("div").focus({get preventScroll(){return ft=!0,!1}}),ft?ge.current=!1:ge.current=!0}}I.on("openchange",Ge);const Oe=xe.createElement("span");Oe.setAttribute("tabindex","-1"),Oe.setAttribute("aria-hidden","true"),Object.assign(Oe.style,cM),qe&&R&&R.insertAdjacentElement("afterend",Oe);function He(){const Me=Q.current;let ft=typeof Me=="function"?Me(be.current):Me;if(ft===void 0||ft===!1)return null;if(ft===null&&(ft=!0),typeof ft=="boolean"){const Xe=R||eb();return Xe&&Xe.isConnected?Xe:Oe}const mt=R||eb()||Oe;return Mo(ft)||mt}return()=>{I.off("openchange",Ge);const Me=Do(xe),ft=yt(C,Me)||te&&Ja(te.nodesRef.current,T(),!1).some(Xe=>yt(Xe.context?.elements.floating,Me)),mt=He();queueMicrotask(()=>{const Xe=eH(mt),Pt=typeof Q.current!="boolean";Q.current&&!ge.current&&yn(Xe)&&(!(!Pt&&Xe!==Me&&Me!==xe.body)||ft)&&Xe.focus({preventScroll:!0}),Oe.remove(),ge.current=!1})}},[r,C,ve,Q,k,I,te,qe,R,T]),pt(()=>{if(!zO||E||!C)return;const xe=Do(Kt(C));!yn(xe)||!rS(xe)||yt(C,xe)&&xe.blur()},[E,C]),pt(()=>{if(!(r||!F))return F.setFocusManagerState({modal:f,closeOnFocusOut:d,open:E,onOpenChange:w.setOpen,domReference:R}),()=>{F.setFocusManagerState(null)}},[r,F,f,E,w,d,R]),pt(()=>{if(!(r||!ve))return CA(ve,H),()=>{queueMicrotask(dS)}},[r,ve,H]);const pe=!r&&(f?!j:!0)&&(qe||f);return N.jsxs(M.Fragment,{children:[pe&&N.jsx(Zp,{"data-type":"inside",ref:ye,onFocus:xe=>{if(f){const _e=wt();W0(_e[_e.length-1])}else F?.portalNode&&(ge.current=!1,_f(xe,F.portalNode)?JO(R)?.focus():Mo(g??F.beforeOutsideRef)?.focus())}}),n,pe&&N.jsx(Zp,{"data-type":"inside",ref:we,onFocus:xe=>{f?W0(wt()[0]):F?.portalNode&&(d&&(ge.current=!0),_f(xe,F.portalNode)?eM(R)?.focus():Mo(b??F.afterOutsideRef)?.focus())}})]})}function sH(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){const c=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",f=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let h=c.width,b=c.height,g=c.x,v=c.y;return n==null&&t.x&&l&&(n=c.x-t.x),r==null&&t.y&&f&&(r=c.y-t.y),g-=n||0,v-=r||0,h=0,b=0,!i||d?(h=t.axis==="y"?c.width:0,b=t.axis==="x"?c.height:0,g=l&&t.x!=null?t.x:g,v=f&&t.y!=null?t.y:v):i&&!d&&(b=t.axis==="x"?c.height:b,h=t.axis==="y"?c.width:h),i=!0,{width:h,height:b,x:g,y:v,top:v,right:g+h,bottom:v+b,left:g}}}}function AA(e){return e!=null&&e.clientX!=null}function rH(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:f=!0,axis:d="both"}=t,h=M.useRef(!1),b=M.useRef(null),[g,v]=M.useState(),[_,w]=M.useState([]),E=Fe((T,$,j)=>{h.current||l.current.openEvent&&!AA(l.current.openEvent)||n.set("positionReference",sH(j??c,{x:T,y:$,axis:d,dataRef:l,pointerType:g}))}),R=Fe(T=>{r?b.current||w([]):E(T.clientX,T.clientY,T.currentTarget)}),C=kf(g)?i:r,I=M.useCallback(()=>{if(!C||!f)return;const T=Sn(i);function $(j){const H=Ss(j);yt(i,H)?(T.removeEventListener("mousemove",$),b.current=null):E(j.clientX,j.clientY)}if(!l.current.openEvent||AA(l.current.openEvent)){T.addEventListener("mousemove",$);const j=()=>{T.removeEventListener("mousemove",$),b.current=null};return b.current=j,j}n.set("positionReference",c)},[C,f,i,l,c,n,E]);M.useEffect(()=>I(),[I,_]),M.useEffect(()=>{f&&!i&&(h.current=!1)},[f,i]),M.useEffect(()=>{!f&&r&&(h.current=!0)},[f,r]);const k=M.useMemo(()=>{function T($){v($.pointerType)}return{onPointerDown:T,onPointerEnter:T,onMouseMove:R,onMouseEnter:R}},[R]);return M.useMemo(()=>f?{reference:k,trigger:k}:{},[f,k])}function TA(e,t,n){let{reference:r,floating:i}=e;const c=vr(t),l=aS(t),f=iS(l),d=Es(t),h=c==="y",b=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,v=r[f]/2-i[f]/2;let _;switch(d){case"top":_={x:b,y:r.y-i.height};break;case"bottom":_={x:b,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:g};break;case"left":_={x:r.x-i.width,y:g};break;default:_={x:r.x,y:r.y}}switch(ia(t)){case"start":_[l]-=v*(n&&h?-1:1);break;case"end":_[l]+=v*(n&&h?-1:1);break}return _}async function oH(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:c,rects:l,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:g="floating",altBoundary:v=!1,padding:_=0}=Uo(t,e),w=qO(_),R=f[v?g==="floating"?"reference":"floating":g],C=Up(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(R)))==null||n?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:b,strategy:d})),I=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,k=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),T=await(c.isElement==null?void 0:c.isElement(k))?await(c.getScale==null?void 0:c.getScale(k))||{x:1,y:1}:{x:1,y:1},$=Up(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:I,offsetParent:k,strategy:d}):I);return{top:(C.top-$.top+w.top)/T.y,bottom:($.bottom-C.bottom+w.bottom)/T.y,left:(C.left-$.left+w.left)/T.x,right:($.right-C.right+w.right)/T.x}}const iH=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:c=[],platform:l}=n,f=c.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:b,y:g}=TA(h,r,d),v=r,_={},w=0;for(let R=0;Rme<=0)){var te,F;const me=(((te=c.flip)==null?void 0:te.index)||0)+1,ge=H[me];if(ge&&(!(g==="alignment"?I!==vr(ge):!1)||ne.every(J=>vr(J.placement)===I?J.overflows[0]>0:!0)))return{data:{index:me,overflows:ne},reset:{placement:ge}};let V=(F=ne.filter(re=>re.overflows[0]<=0).sort((re,J)=>re.overflows[1]-J.overflows[1])[0])==null?void 0:F.placement;if(!V)switch(_){case"bestFit":{var oe;const re=(oe=ne.filter(J=>{if(j){const be=vr(J.placement);return be===I||be==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(be=>be>0).reduce((be,ue)=>be+ue,0)]).sort((J,be)=>J[1]-be[1])[0])==null?void 0:oe[0];re&&(V=re);break}case"initialPlacement":V=f;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function IA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function OA(e){return Xj.some(t=>e[t]>=0)}const cH=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...c}=Uo(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...c,elementContext:"reference"}),f=IA(l,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:OA(f)}}}case"escaped":{const l=await r.detectOverflow(t,{...c,altBoundary:!0}),f=IA(l,n.floating);return{data:{escapedOffsets:f,escaped:OA(f)}}}default:return{}}}}},hM=new Set(["left","top"]);async function lH(e,t){const{placement:n,platform:r,elements:i}=e,c=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Es(n),f=ia(n),d=vr(n)==="y",h=hM.has(l)?-1:1,b=c&&d?-1:1,g=Uo(t,e);let{mainAxis:v,crossAxis:_,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(_=f==="end"?w*-1:w),d?{x:_*b,y:v*h}:{x:v*h,y:_*b}}const uH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:c,placement:l,middlewareData:f}=t,d=await lH(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:c+d.y,data:{...d,placement:l}}}}},fH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:c}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:d={fn:C=>{let{x:I,y:k}=C;return{x:I,y:k}}},...h}=Uo(e,t),b={x:n,y:r},g=await c.detectOverflow(t,h),v=vr(Es(i)),_=oS(v);let w=b[_],E=b[v];if(l){const C=_==="y"?"top":"left",I=_==="y"?"bottom":"right",k=w+g[C],T=w-g[I];w=lv(k,w,T)}if(f){const C=v==="y"?"top":"left",I=v==="y"?"bottom":"right",k=E+g[C],T=E-g[I];E=lv(k,E,T)}const R=d.fn({...t,[_]:w,[v]:E});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[_]:l,[v]:f}}}}}},dH=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=Uo(e,t),b={x:n,y:r},g=vr(i),v=oS(g);let _=b[v],w=b[g];const E=Uo(f,t),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(d){const k=v==="y"?"height":"width",T=c.reference[v]-c.floating[k]+R.mainAxis,$=c.reference[v]+c.reference[k]-R.mainAxis;_$&&(_=$)}if(h){var C,I;const k=v==="y"?"width":"height",T=hM.has(Es(i)),$=c.reference[g]-c.floating[k]+(T&&((C=l.offset)==null?void 0:C[g])||0)+(T?0:R.crossAxis),j=c.reference[g]+c.reference[k]+(T?0:((I=l.offset)==null?void 0:I[g])||0)-(T?R.crossAxis:0);w<$?w=$:w>j&&(w=j)}return{[v]:_,[g]:w}}}},hH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:c,platform:l,elements:f}=t,{apply:d=()=>{},...h}=Uo(e,t),b=await l.detectOverflow(t,h),g=Es(i),v=ia(i),_=vr(i)==="y",{width:w,height:E}=c.floating;let R,C;g==="top"||g==="bottom"?(R=g,C=v===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(C=g,R=v==="end"?"top":"bottom");const I=E-b.top-b.bottom,k=w-b.left-b.right,T=Ml(E-b[R],I),$=Ml(w-b[C],k),j=!t.middlewareData.shift;let H=T,P=$;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(H=I),j&&!v){const ne=js(b.left,0),te=js(b.right,0),F=js(b.top,0),oe=js(b.bottom,0);_?P=w-2*(ne!==0||te!==0?ne+te:js(b.left,b.right)):H=E-2*(F!==0||oe!==0?F+oe:js(b.top,b.bottom))}await d({...t,availableWidth:P,availableHeight:H});const Q=await l.getDimensions(f.floating);return w!==Q.width||E!==Q.height?{reset:{rects:!0}}:{}}}};function pM(e){const t=Gs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yn(e),c=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=Bp(n)!==c||Bp(r)!==l;return f&&(n=c,r=l),{width:n,height:r,$:f}}function hS(e){return xt(e)?e:e.contextElement}function _l(e){const t=hS(e);if(!yn(t))return Yr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:c}=pM(t);let l=(c?Bp(n.width):n.width)/r,f=(c?Bp(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const pH=Yr(0);function mM(e){const t=Sn(e);return!wm()||!t.visualViewport?pH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sn(e)?!1:t}function rc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),c=hS(e);let l=Yr(1);t&&(r?xt(r)&&(l=_l(r)):l=_l(e));const f=mH(c,n,r)?mM(c):Yr(0);let d=(i.left+f.x)/l.x,h=(i.top+f.y)/l.y,b=i.width/l.x,g=i.height/l.y;if(c){const v=Sn(c),_=r&&xt(r)?Sn(r):r;let w=v,E=rv(w);for(;E&&r&&_!==w;){const R=_l(E),C=E.getBoundingClientRect(),I=Gs(E),k=C.left+(E.clientLeft+parseFloat(I.paddingLeft))*R.x,T=C.top+(E.clientTop+parseFloat(I.paddingTop))*R.y;d*=R.x,h*=R.y,b*=R.x,g*=R.y,d+=k,h+=T,w=Sn(E),E=rv(w)}}return Up({width:b,height:g,x:d,y:h})}function Cm(e,t){const n=Em(e).scrollLeft;return t?t.left+n:rc(eo(e)).left+n}function gM(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Cm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function gH(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const c=i==="fixed",l=eo(r),f=t?_m(t.floating):!1;if(r===l||f&&c)return n;let d={scrollLeft:0,scrollTop:0},h=Yr(1);const b=Yr(0),g=yn(r);if((g||!g&&!c)&&((sa(r)!=="body"||ra(l))&&(d=Em(r)),yn(r))){const _=rc(r);h=_l(r),b.x=_.x+r.clientLeft,b.y=_.y+r.clientTop}const v=l&&!g&&!c?gM(l,d):Yr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+b.x+v.x,y:n.y*h.y-d.scrollTop*h.y+b.y+v.y}}function yH(e){return Array.from(e.getClientRects())}function bH(e){const t=eo(e),n=Em(e),r=e.ownerDocument.body,i=js(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=js(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Cm(e);const f=-n.scrollTop;return Gs(r).direction==="rtl"&&(l+=js(t.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:f}}const MA=25;function vH(e,t){const n=Sn(e),r=eo(e),i=n.visualViewport;let c=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){c=i.width,l=i.height;const b=wm();(!b||b&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}const h=Cm(r);if(h<=0){const b=r.ownerDocument,g=b.body,v=getComputedStyle(g),_=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(r.clientWidth-g.clientWidth-_);w<=MA&&(c-=w)}else h<=MA&&(c+=h);return{width:c,height:l,x:f,y:d}}const SH=new Set(["absolute","fixed"]);function _H(e,t){const n=rc(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,c=yn(e)?_l(e):Yr(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,d=i*c.x,h=r*c.y;return{width:l,height:f,x:d,y:h}}function DA(e,t,n){let r;if(t==="viewport")r=vH(e,n);else if(t==="document")r=bH(eo(e));else if(xt(t))r=_H(t,n);else{const i=mM(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Up(r)}function yM(e,t){const n=$o(e);return n===t||!xt(n)||zo(n)?!1:Gs(n).position==="fixed"||yM(n,t)}function wH(e,t){const n=t.get(e);if(n)return n;let r=Wi(e,[],!1).filter(f=>xt(f)&&sa(f)!=="body"),i=null;const c=Gs(e).position==="fixed";let l=c?$o(e):e;for(;xt(l)&&!zo(l);){const f=Gs(l),d=Jv(l);!d&&f.position==="fixed"&&(i=null),(c?!d&&!i:!d&&f.position==="static"&&!!i&&SH.has(i.position)||ra(l)&&!d&&yM(e,l))?r=r.filter(b=>b!==l):i=f,l=$o(l)}return t.set(e,r),r}function EH(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?_m(t)?[]:wH(t,this._c):[].concat(n),r],f=l[0],d=l.reduce((h,b)=>{const g=DA(t,b,i);return h.top=js(g.top,h.top),h.right=Ml(g.right,h.right),h.bottom=Ml(g.bottom,h.bottom),h.left=js(g.left,h.left),h},DA(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function xH(e){const{width:t,height:n}=pM(e);return{width:t,height:n}}function RH(e,t,n){const r=yn(t),i=eo(t),c=n==="fixed",l=rc(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const d=Yr(0);function h(){d.x=Cm(i)}if(r||!r&&!c)if((sa(t)!=="body"||ra(i))&&(f=Em(t)),r){const _=rc(t,!0,c,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else i&&h();c&&!r&&i&&h();const b=i&&!r&&!c?gM(i,f):Yr(0),g=l.left+f.scrollLeft-d.x-b.x,v=l.top+f.scrollTop-d.y-b.y;return{x:g,y:v,width:l.width,height:l.height}}function tb(e){return Gs(e).position==="static"}function kA(e,t){if(!yn(e)||Gs(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return eo(e)===n&&(n=n.ownerDocument.body),n}function bM(e,t){const n=Sn(e);if(_m(e))return n;if(!yn(e)){let i=$o(e);for(;i&&!zo(i);){if(xt(i)&&!tb(i))return i;i=$o(i)}return n}let r=kA(e,t);for(;r&&T8(r)&&tb(r);)r=kA(r,t);return r&&zo(r)&&tb(r)&&!Jv(r)?n:r||k8(e)||n}const CH=async function(e){const t=this.getOffsetParent||bM,n=this.getDimensions,r=await n(e.floating);return{reference:RH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AH(e){return Gs(e).direction==="rtl"}const TH={convertOffsetParentRelativeRectToViewportRelativeRect:gH,getDocumentElement:eo,getClippingRect:EH,getOffsetParent:bM,getElementRects:CH,getClientRects:yH,getDimensions:xH,getScale:_l,isElement:xt,isRTL:AH};function vM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function IH(e,t){let n=null,r;const i=eo(e);function c(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function l(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),c();const h=e.getBoundingClientRect(),{left:b,top:g,width:v,height:_}=h;if(f||t(),!v||!_)return;const w=Qh(g),E=Qh(i.clientWidth-(b+v)),R=Qh(i.clientHeight-(g+_)),C=Qh(b),k={rootMargin:-w+"px "+-E+"px "+-R+"px "+-C+"px",threshold:js(0,Ml(1,d))||1};let T=!0;function $(j){const H=j[0].intersectionRatio;if(H!==d){if(!T)return l();H?l(!1,H):r=setTimeout(()=>{l(!1,1e-7)},1e3)}H===1&&!vM(h,e.getBoundingClientRect())&&l(),T=!1}try{n=new IntersectionObserver($,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver($,k)}n.observe(e)}return l(!0),c}function PA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=hS(e),b=i||c?[...h?Wi(h):[],...Wi(t)]:[];b.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),c&&C.addEventListener("resize",n)});const g=h&&f?IH(h,n):null;let v=-1,_=null;l&&(_=new ResizeObserver(C=>{let[I]=C;I&&I.target===h&&_&&(_.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var k;(k=_)==null||k.observe(t)})),n()}),h&&!d&&_.observe(h),_.observe(t));let w,E=d?rc(e):null;d&&R();function R(){const C=rc(e);E&&!vM(E,C)&&n(),E=C,w=requestAnimationFrame(R)}return n(),()=>{var C;b.forEach(I=>{i&&I.removeEventListener("scroll",n),c&&I.removeEventListener("resize",n)}),g?.(),(C=_)==null||C.disconnect(),_=null,d&&cancelAnimationFrame(w)}}const OH=uH,MH=fH,DH=aH,kH=hH,PH=cH,NH=dH,LH=(e,t,n)=>{const r=new Map,i={platform:TH,...n},c={...i.platform,_c:r};return iH(e,t,{...i,platform:c})};var zH=typeof document<"u",BH=function(){},Sp=zH?M.useLayoutEffect:BH;function Kp(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(!Kp(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;){const c=i[r];if(!(c==="_owner"&&e.$$typeof)&&!Kp(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function SM(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function NA(e,t){const n=SM(e);return Math.round(t*n)/n}function nb(e){const t=M.useRef(e);return Sp(()=>{t.current=e}),t}function $H(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:c,floating:l}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[b,g]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,_]=M.useState(r);Kp(v,r)||_(r);const[w,E]=M.useState(null),[R,C]=M.useState(null),I=M.useCallback(J=>{J!==j.current&&(j.current=J,E(J))},[]),k=M.useCallback(J=>{J!==H.current&&(H.current=J,C(J))},[]),T=c||w,$=l||R,j=M.useRef(null),H=M.useRef(null),P=M.useRef(b),Q=d!=null,ne=nb(d),te=nb(i),F=nb(h),oe=M.useCallback(()=>{if(!j.current||!H.current)return;const J={placement:t,strategy:n,middleware:v};te.current&&(J.platform=te.current),LH(j.current,H.current,J).then(be=>{const ue={...be,isPositioned:F.current!==!1};me.current&&!Kp(P.current,ue)&&(P.current=ue,na.flushSync(()=>{g(ue)}))})},[v,t,n,te,F]);Sp(()=>{h===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[h]);const me=M.useRef(!1);Sp(()=>(me.current=!0,()=>{me.current=!1}),[]),Sp(()=>{if(T&&(j.current=T),$&&(H.current=$),T&&$){if(ne.current)return ne.current(T,$,oe);oe()}},[T,$,oe,ne,Q]);const ge=M.useMemo(()=>({reference:j,floating:H,setReference:I,setFloating:k}),[I,k]),V=M.useMemo(()=>({reference:T,floating:$}),[T,$]),re=M.useMemo(()=>{const J={position:n,left:0,top:0};if(!V.floating)return J;const be=NA(V.floating,b.x),ue=NA(V.floating,b.y);return f?{...J,transform:"translate("+be+"px, "+ue+"px)",...SM(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:be,top:ue}},[n,f,V.floating,b.x,b.y]);return M.useMemo(()=>({...b,update:oe,refs:ge,elements:V,floatingStyles:re}),[b,oe,ge,V,re])}const UH=(e,t)=>({...OH(e),options:[e,t]}),jH=(e,t)=>({...MH(e),options:[e,t]}),HH=(e,t)=>({...NH(e),options:[e,t]}),VH=(e,t)=>({...DH(e),options:[e,t]}),qH=(e,t)=>({...kH(e),options:[e,t]}),FH=(e,t)=>({...PH(e),options:[e,t]}),GH={intentional:"onClick",sloppy:"onPointerDown"};function ZH(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function _M(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:f,dataRef:d}=n.context,{enabled:h=!0,escapeKey:b=!0,outsidePress:g=!0,outsidePressEvent:v="sloppy",referencePress:_=!1,referencePressEvent:w="sloppy",ancestorScroll:E=!1,bubbles:R,externalTree:C}=t,I=Xf(C),k=Fe(typeof g=="function"?g:()=>!1),T=typeof g=="function"?k:g,$=M.useRef(!1),{escapeKey:j,outsidePress:H}=ZH(R),P=M.useRef(null),Q=Ol(),ne=Ol(),te=Fe(()=>{ne.clear(),d.current.insideReactTree=!1}),F=M.useRef(!1),oe=M.useRef(""),me=Fe(pe=>{oe.current=pe.pointerType}),ge=Fe(()=>{const pe=oe.current,xe=pe==="pen"||!pe?"mouse":pe,_e=typeof v=="function"?v():v;return typeof _e=="string"?_e:_e[xe]}),V=Fe(pe=>{if(!r||!h||!b||pe.key!=="Escape"||F.current)return;const xe=d.current.floatingContext?.nodeId,_e=I?Ja(I.nodesRef.current,xe):[];if(!j&&_e.length>0){let He=!0;if(_e.forEach(Me=>{Me.context?.open&&!Me.context.dataRef.current.__escapeKeyBubbles&&(He=!1)}),!He)return}const Ge=Zj(pe)?pe.nativeEvent:pe,Oe=Jt(fS,Ge);n.setOpen(!1,Oe),!j&&!Oe.isPropagationAllowed&&pe.stopPropagation()}),re=Fe(pe=>{const xe=ge();return xe==="intentional"&&pe.type!=="click"||xe==="sloppy"&&pe.type==="click"}),J=Fe(()=>{d.current.insideReactTree=!0,ne.start(0,te)}),be=Fe((pe,xe=!1)=>{if(re(pe)){te();return}if(d.current.insideReactTree){te();return}if(ge()==="intentional"&&xe||typeof T=="function"&&!T(pe))return;const _e=Ss(pe),Ge=`[${kl("inert")}]`,Oe=Kt(n.select("floatingElement")).querySelectorAll(Ge),He=n.context.triggerElements;if(_e&&(He.hasElement(_e)||He.hasMatchingElement(Pt=>yt(Pt,_e))))return;let Me=xt(_e)?_e:null;for(;Me&&!zo(Me);){const Pt=$o(Me);if(zo(Pt)||!xt(Pt))break;Me=Pt}if(Oe.length&&xt(_e)&&!qj(_e)&&!yt(_e,n.select("floatingElement"))&&Array.from(Oe).every(Pt=>!yt(Me,Pt)))return;if(yn(_e)&&!("touches"in pe)){const Pt=zo(_e),wn=Gs(_e),It=/auto|scroll/,Xs=Pt||It.test(wn.overflowX),dt=Pt||It.test(wn.overflowY),$t=Xs&&_e.clientWidth>0&&_e.scrollWidth>_e.clientWidth,gt=dt&&_e.clientHeight>0&&_e.scrollHeight>_e.clientHeight,Os=wn.direction==="rtl",Ws=gt&&(Os?pe.offsetX<=_e.offsetWidth-_e.clientWidth:pe.offsetX>_e.clientWidth),ao=$t&&pe.offsetY>_e.clientHeight;if(Ws||ao)return}const ft=d.current.floatingContext?.nodeId,mt=I&&Ja(I.nodesRef.current,ft).some(Pt=>kr(pe,Pt.context?.elements.floating));if(kr(pe,n.select("floatingElement"))||kr(pe,n.select("domReferenceElement"))||mt)return;const Xe=I?Ja(I.nodesRef.current,ft):[];if(Xe.length>0){let Pt=!0;if(Xe.forEach(wn=>{wn.context?.open&&!wn.context.dataRef.current.__outsidePressBubbles&&(Pt=!1)}),!Pt)return}n.setOpen(!1,Jt(nM,pe)),te()}),ue=Fe(pe=>{ge()!=="sloppy"||pe.pointerType==="touch"||!n.select("open")||!h||kr(pe,n.select("floatingElement"))||kr(pe,n.select("domReferenceElement"))||be(pe)}),z=Fe(pe=>{if(ge()!=="sloppy"||!n.select("open")||!h||kr(pe,n.select("floatingElement"))||kr(pe,n.select("domReferenceElement")))return;const xe=pe.touches[0];xe&&(P.current={startTime:Date.now(),startX:xe.clientX,startY:xe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Q.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}),ee=Fe(pe=>{const xe=Ss(pe);function _e(){z(pe),xe?.removeEventListener(pe.type,_e)}xe?.addEventListener(pe.type,_e)}),ye=Fe(pe=>{const xe=$.current;if($.current=!1,Q.clear(),pe.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)return;const _e=Ss(pe);function Ge(){pe.type==="pointerdown"?ue(pe):be(pe,xe),_e?.removeEventListener(pe.type,Ge)}_e?.addEventListener(pe.type,Ge)}),we=Fe(pe=>{if(ge()!=="sloppy"||!P.current||kr(pe,n.select("floatingElement"))||kr(pe,n.select("domReferenceElement")))return;const xe=pe.touches[0];if(!xe)return;const _e=Math.abs(xe.clientX-P.current.startX),Ge=Math.abs(xe.clientY-P.current.startY),Oe=Math.sqrt(_e*_e+Ge*Ge);Oe>5&&(P.current.dismissOnTouchEnd=!0),Oe>10&&(be(pe),Q.clear(),P.current=null)}),Ee=Fe(pe=>{const xe=Ss(pe);function _e(){we(pe),xe?.removeEventListener(pe.type,_e)}xe?.addEventListener(pe.type,_e)}),Se=Fe(pe=>{ge()!=="sloppy"||!P.current||kr(pe,n.select("floatingElement"))||kr(pe,n.select("domReferenceElement"))||(P.current.dismissOnTouchEnd&&be(pe),Q.clear(),P.current=null)}),Ie=Fe(pe=>{const xe=Ss(pe);function _e(){Se(pe),xe?.removeEventListener(pe.type,_e)}xe?.addEventListener(pe.type,_e)});M.useEffect(()=>{if(!r||!h)return;d.current.__escapeKeyBubbles=j,d.current.__outsidePressBubbles=H;const pe=new Jr;function xe(Me){n.setOpen(!1,Jt(uS,Me))}function _e(){pe.clear(),F.current=!0}function Ge(){pe.start(wm()?5:0,()=>{F.current=!1})}const Oe=Kt(i);Oe.addEventListener("pointerdown",me,!0),b&&(Oe.addEventListener("keydown",V),Oe.addEventListener("compositionstart",_e),Oe.addEventListener("compositionend",Ge)),T&&(Oe.addEventListener("click",ye,!0),Oe.addEventListener("pointerdown",ye,!0),Oe.addEventListener("touchstart",ee,!0),Oe.addEventListener("touchmove",Ee,!0),Oe.addEventListener("touchend",Ie,!0),Oe.addEventListener("mousedown",ye,!0));let He=[];return E&&(xt(l)&&(He=Wi(l)),xt(i)&&(He=He.concat(Wi(i))),!xt(c)&&c&&c.contextElement&&(He=He.concat(Wi(c.contextElement)))),He=He.filter(Me=>Me!==Oe.defaultView?.visualViewport),He.forEach(Me=>{Me.addEventListener("scroll",xe,{passive:!0})}),()=>{Oe.removeEventListener("pointerdown",me,!0),b&&(Oe.removeEventListener("keydown",V),Oe.removeEventListener("compositionstart",_e),Oe.removeEventListener("compositionend",Ge)),T&&(Oe.removeEventListener("click",ye,!0),Oe.removeEventListener("pointerdown",ye,!0),Oe.removeEventListener("touchstart",ee,!0),Oe.removeEventListener("touchmove",Ee,!0),Oe.removeEventListener("touchend",Ie,!0),Oe.removeEventListener("mousedown",ye,!0)),He.forEach(Me=>{Me.removeEventListener("scroll",xe)}),pe.clear(),$.current=!1}},[d,i,c,l,b,T,r,f,E,h,j,H,V,be,ye,ue,ee,Ee,Ie,me,n]),M.useEffect(te,[T,te]);const qe=M.useMemo(()=>({onKeyDown:V,..._&&{[GH[w]]:pe=>{n.setOpen(!1,Jt(Fp,pe.nativeEvent))},...w!=="intentional"&&{onClick(pe){n.setOpen(!1,Jt(Fp,pe.nativeEvent))}}}}),[V,n,_,w]),ve=Fe(pe=>{const xe=Ss(pe.nativeEvent);!yt(n.select("floatingElement"),xe)||pe.button!==0||($.current=!0)}),Je=Fe(pe=>{!r||!h||pe.button!==0||($.current=!0)}),wt=M.useMemo(()=>({onKeyDown:V,onPointerDown:ve,onMouseDown:ve,onMouseUp:ve,onClickCapture:J,onMouseDownCapture(pe){J(),Je(pe)},onPointerDownCapture(pe){J(),Je(pe)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[V,ve,J,Je]);return M.useMemo(()=>h?{reference:qe,floating:wt,trigger:qe}:{},[h,qe,wt])}var Qp=Symbol("NOT_FOUND");function KH(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function QH(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function YH(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var LA=e=>Array.isArray(e)?e:[e];function XH(e){const t=Array.isArray(e[0])?e[0]:e;return YH(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function WH(e,t){const n=[],{length:r}=e;for(let i=0;it(f,h.key));if(d>-1){const h=n[d];return d>0&&(n.splice(d,1),n.unshift(h)),h.value}return Qp}function i(f,d){r(f)===Qp&&(n.unshift({key:f,value:d}),n.length>e&&n.pop())}function c(){return n}function l(){n=[]}return{get:r,put:i,getEntries:c,clear:l}}var tV=(e,t)=>e===t;function nV(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let c=0;cc(_.value,b));v&&(b=v.value,f!==0&&f--)}d.put(arguments,b)}return b}return h.clearCache=()=>{d.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var rV=class{constructor(e){this.value=e}deref(){return this.value}},oV=typeof WeakRef<"u"?WeakRef:rV,iV=0,zA=1;function ep(){return{s:iV,v:void 0,o:null,p:null}}function wM(e,t={}){let n=ep();const{resultEqualityCheck:r}=t;let i,c=0;function l(){let f=n;const{length:d}=arguments;for(let g=0,v=d;g{n=ep(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}function EM(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let c=0,l=0,f,d={},h=i.pop();typeof h=="object"&&(d=h,h=i.pop()),KH(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const b={...n,...d},{memoize:g,memoizeOptions:v=[],argsMemoize:_=wM,argsMemoizeOptions:w=[]}=b,E=LA(v),R=LA(w),C=XH(i),I=g(function(){return c++,h.apply(null,arguments)},...E),k=_(function(){l++;const $=WH(C,arguments);return f=I.apply(null,$),f},...R);return Object.assign(k,{resultFunc:h,memoizedResultFunc:I,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:g,argsMemoize:_})};return Object.assign(r,{withTypes:()=>r}),r}var aV=EM(wM),cV=Object.assign((e,t=aV)=>{QH(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(c=>e[c]);return t(r,(...c)=>c.reduce((l,f,d)=>(l[n[d]]=f,l),{}))},{withTypes:()=>cV});EM({memoize:sV,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const ot=(e,t,n,r,i,c,...l)=>{if(l.length>0)throw new Error(Vo(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var xM=tO();const hv=[];let pv;function lV(){return pv}function uV(e){hv.push(e)}function RM(e){const t=(n,r)=>{const i=Sr(dV).current;let c;try{pv=i;for(const l of hv)l.before(i);c=e(n,r);for(const l of hv)l.after(i);i.didInitialize=!0}finally{pv=void 0}return c};return t.displayName=e.displayName||e.name,t}function fV(e){return M.forwardRef(RM(e))}function dV(){return{didInitialize:!1}}const hV=Xv(19),pV=hV?gV:yV;function CM(e,t,n,r,i){return pV(e,t,n,r,i)}function mV(e,t,n,r,i){const c=M.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return xM.useSyncExternalStore(e.subscribe,c,c)}uV({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=>{const n=new Set;for(const i of e.syncHooks)n.add(i.store);const r=[];for(const i of n)r.push(i.subscribe(t));return()=>{for(const i of r)i()}}),xM.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function gV(e,t,n,r,i){const c=lV();if(!c)return mV(e,t,n,r,i);const l=c.syncIndex;c.syncIndex+=1;let f;return c.didInitialize?(f=c.syncHooks[l],(f.store!==e||f.selector!==t||!Object.is(f.a1,n)||!Object.is(f.a2,r)||!Object.is(f.a3,i))&&(f.store!==e&&(c.didChangeStore=!0),f.store=e,f.selector=t,f.a1=n,f.a2=r,f.a3=i,f.didChange=!0)):(f={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},c.syncHooks.push(f)),f.value}function yV(e,t,n,r,i){return nO.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>t(c,n,r,i))}class bV{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,i){return CM(this,t,n,r,i)}}class pS extends bV{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){M.useDebugValue(t),pt(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const r=this;pt(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);pt(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){M.useDebugValue(t);const r=n!==void 0;pt(()=>{r&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r])}select(t,n,r,i){const c=this.selectors[t];return c(this.state,n,r,i)}useState(t,n,r,i){return M.useDebugValue(t),CM(this,this.selectors[t],n,r,i)}useContextCallback(t,n){M.useDebugValue(t);const r=Fe(n??hO);this.context[t]=r}useStateSetter(t){const n=M.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let i=r(this.state);return n(i,i,this),this.subscribe(c=>{const l=r(c);if(!Object.is(i,l)){const f=i;i=l,n(l,f,this)}})}}const vV={open:ot(e=>e.open),domReferenceElement:ot(e=>e.domReferenceElement),referenceElement:ot(e=>e.positionReference??e.referenceElement),floatingElement:ot(e=>e.floatingElement),floatingId:ot(e=>e.floatingId)};class mS extends pS{constructor(t){const{nested:n,noEmit:r,onOpenChange:i,triggerElements:c,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:H9(),nested:n,noEmit:r,triggerElements:c},vV)}setOpen=(t,n)=>{if((!t||!this.state.open||Yj(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function SV(e,t){const n=M.useRef(null),r=M.useRef(null);return M.useCallback(i=>{if(e!==void 0){if(n.current!==null){const c=n.current,l=r.current,f=t.context.triggerElements.getById(c);l&&f===l&&t.context.triggerElements.delete(c),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function _V(e,t,n,r){const i=n.useState("isMountedByTrigger",e),c=SV(e,n),l=Fe(f=>{if(c(f),!f||!n.select("open"))return;const d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:f,...r});return}d==null&&n.update({activeTriggerId:e,activeTriggerElement:f,...r})});return pt(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function AM(e){const t=e.useState("open");pt(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function TM(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=T9(e);t.useSyncedValues({mounted:r,transitionStatus:c});const l=Fe(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),f=t.useState("preventUnmountingOnClose");return lS({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}class Am{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function wV(){return new mS({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Am,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function IM(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:wV(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Hs,inactiveTriggerProps:Hs,popupProps:Hs}}const tp=ot(e=>e.triggerIdProp??e.activeTriggerId),OM={open:ot(e=>e.openProp??e.open),mounted:ot(e=>e.mounted),transitionStatus:ot(e=>e.transitionStatus),floatingRootContext:ot(e=>e.floatingRootContext),preventUnmountingOnClose:ot(e=>e.preventUnmountingOnClose),payload:ot(e=>e.payload),activeTriggerId:tp,activeTriggerElement:ot(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ot((e,t)=>t!==void 0&&tp(e)===t),isOpenedByTrigger:ot((e,t)=>t!==void 0&&tp(e)===t&&e.open),isMountedByTrigger:ot((e,t)=>t!==void 0&&tp(e)===t&&e.mounted),triggerProps:ot((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ot(e=>e.popupProps),popupElement:ot(e=>e.popupElement),positionerElement:ot(e=>e.positionerElement)};function EV(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Kf(),c=Rm()!=null,l=Sr(()=>new mS({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Am,floatingId:i,nested:c,noEmit:!1})).current;return pt(()=>{const f={open:t,floatingId:i};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=xt(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=c,l.context.noEmit=!1,l}function xV(e={}){const{nodeId:t,externalTree:n}=e,r=EV(e),i=e.rootContext||r,c={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,f]=M.useState(null),d=M.useRef(null),h=Xf(n);pt(()=>{c.domReference&&(d.current=c.domReference)},[c.domReference]);const b=$H({...e,elements:{...c,...l&&{reference:l}}}),g=M.useCallback(H=>{const P=xt(H)?{getBoundingClientRect:()=>H.getBoundingClientRect(),getClientRects:()=>H.getClientRects(),contextElement:H}:H;f(P),b.refs.setReference(P)},[b.refs]),[v,_]=M.useState(null),[w,E]=M.useState(null);i.useSyncedValue("referenceElement",v),i.useSyncedValue("domReferenceElement",xt(v)?v:null),i.useSyncedValue("floatingElement",w);const R=M.useCallback(H=>{(xt(H)||H===null)&&(d.current=H,_(H)),(xt(b.refs.reference.current)||b.refs.reference.current===null||H!==null&&!xt(H))&&b.refs.setReference(H)},[b.refs,_]),C=M.useCallback(H=>{E(H),b.refs.setFloating(H)},[b.refs]),I=M.useMemo(()=>({...b.refs,setReference:R,setFloating:C,setPositionReference:g,domReference:d}),[b.refs,R,C,g]),k=M.useMemo(()=>({...b.elements,domReference:c.domReference}),[b.elements,c.domReference]),T=i.useState("open"),$=i.useState("floatingId"),j=M.useMemo(()=>({...b,dataRef:i.context.dataRef,open:T,onOpenChange:i.setOpen,events:i.context.events,floatingId:$,refs:I,elements:k,nodeId:t,rootStore:i}),[b,I,k,t,i,T,$]);return pt(()=>{i.context.dataRef.current.floatingContext=j;const H=h?.nodesRef.current.find(P=>P.id===t);H&&(H.context=j)}),M.useMemo(()=>({...b,context:j,refs:I,elements:k,rootStore:i}),[b,I,k,j,i])}function MM(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,c=Kf(),l=Rm()!=null,f=t.useState("open"),d=t.useState("activeTriggerElement"),h=t.useState(r?"popupElement":"positionerElement"),b=t.context.triggerElements,g=Sr(()=>new mS({open:f,referenceElement:d,floatingElement:h,triggerElements:b,onOpenChange:i,floatingId:c,nested:l,noEmit:n})).current;return pt(()=>{const v={open:f,floatingId:c,referenceElement:d,floatingElement:h};xt(d)&&(v.domReferenceElement=d),g.state.positionReference===g.state.referenceElement&&(v.positionReference=d),g.update(v)},[f,c,d,h,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const sb=Uj&&$O;function RV(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:c=!0,delay:l}=t,f=M.useRef(!1),d=M.useRef(null),h=Ol(),b=M.useRef(!0);M.useEffect(()=>{const v=n.select("domReferenceElement");if(!c)return;const _=Sn(v);function w(){const C=n.select("domReferenceElement");!n.select("open")&&yn(C)&&C===Do(Kt(C))&&(f.current=!0)}function E(){b.current=!0}function R(){b.current=!1}return _.addEventListener("blur",w),sb&&(_.addEventListener("keydown",E,!0),_.addEventListener("pointerdown",R,!0)),()=>{_.removeEventListener("blur",w),sb&&(_.removeEventListener("keydown",E,!0),_.removeEventListener("pointerdown",R,!0))}},[n,c]),M.useEffect(()=>{if(!c)return;function v(_){if(_.reason===Fp||_.reason===fS){const w=n.select("domReferenceElement");xt(w)&&(d.current=w,f.current=!0)}}return r.on("openchange",v),()=>{r.off("openchange",v)}},[r,c,n]);const g=M.useMemo(()=>({onMouseLeave(){f.current=!1,d.current=null},onFocus(v){const _=v.currentTarget;if(f.current){if(d.current===_)return;f.current=!1,d.current=null}const w=Ss(v.nativeEvent);if(xt(w)){if(sb&&!v.relatedTarget){if(!b.current&&!rS(w))return}else if(!Fj(w))return}const E=zp(v.relatedTarget,n.context.triggerElements),{nativeEvent:R,currentTarget:C}=v,I=typeof l=="function"?l():l;if(n.select("open")&&E||I===0||I===void 0){n.setOpen(!0,Jt(bp,R,C));return}h.start(I,()=>{f.current||n.setOpen(!0,Jt(bp,R,C))})},onBlur(v){f.current=!1,d.current=null;const _=v.relatedTarget,w=v.nativeEvent,E=xt(_)&&_.hasAttribute(kl("focus-guard"))&&_.getAttribute("data-type")==="outside";h.start(0,()=>{const R=n.select("domReferenceElement"),C=Do(R?R.ownerDocument:document);!_&&C===R||yt(i.current.floatingContext?.refs.floating.current,C)||yt(R,C)||E||zp(_??C,n.context.triggerElements)||n.setOpen(!1,Jt(bp,w))})}}),[i,n,h,l]);return M.useMemo(()=>c?{reference:g,trigger:g}:{},[c,g])}const mv=kl("safe-polygon"),CV=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${VO}`;function AV(e){return e?!!e.closest(CV):!1}class gS{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.unbindMouseMove=()=>{},this.restTimeoutPending=!1,this.openChangeTimeout=new Jr,this.restTimeout=new Jr,this.handleCloseOptions=void 0}static create(){return new gS}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function DM(e){const t=Sr(gS.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),sS(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}const TV=new Set(["click","mousedown"]);function IV(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:f=!0,closeDelay:d=0}=t,h=DM(n),b=Xf(),g=Rm(),v=Fe(()=>h.interactedInside?!0:l.current.openEvent?TV.has(l.current.openEvent.type):!1),_=Fe(()=>{const k=l.current.openEvent?.type;return k?.includes("mouse")&&k!=="mousedown"}),w=Fe(k=>zp(k,n.context.triggerElements)),E=M.useCallback((k,T=!0)=>{const $=OV(d,h.pointerType);$&&!h.handler?h.openChangeTimeout.start($,()=>n.setOpen(!1,Jt(Lr,k))):T&&(h.openChangeTimeout.clear(),n.setOpen(!1,Jt(Lr,k)))},[d,n,h]),R=Fe(()=>{h.unbindMouseMove(),h.handler=void 0}),C=Fe(()=>{if(h.performedPointerEventsMutation){const k=Kt(i).body;k.style.pointerEvents="",k.removeAttribute(mv),h.performedPointerEventsMutation=!1}}),I=Fe(k=>{const T=Ss(k);if(!AV(T)){h.interactedInside=!1;return}h.interactedInside=!0});pt(()=>{r||(h.pointerType=void 0,h.restTimeoutPending=!1,h.interactedInside=!1,R(),C())},[r,h,R,C]),M.useEffect(()=>()=>{R()},[R]),M.useEffect(()=>C,[C]),pt(()=>{if(f&&r&&h.handleCloseOptions?.blockPointerEvents&&_()&&xt(c)&&i){h.performedPointerEventsMutation=!0;const k=Kt(i).body;k.setAttribute(mv,"");const T=c,$=i,j=b?.nodesRef.current.find(H=>H.id===g)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),k.style.pointerEvents="none",T.style.pointerEvents="auto",$.style.pointerEvents="auto",()=>{k.style.pointerEvents="",T.style.pointerEvents="",$.style.pointerEvents=""}}},[f,r,c,i,h,_,b,g]),M.useEffect(()=>{if(!f)return;function k(H){v()||!l.current.floatingContext||!n.select("open")||w(H.relatedTarget)||(C(),R(),v()||E(H))}function T(H){h.openChangeTimeout.clear(),C(),h.handler?.(H),R()}function $(H){v()||E(H,!1)}const j=i;return j&&(j.addEventListener("mouseleave",k),j.addEventListener("mouseenter",T),j.addEventListener("mouseleave",$),j.addEventListener("pointerdown",I,!0)),()=>{j&&(j.removeEventListener("mouseleave",k),j.removeEventListener("mouseenter",T),j.removeEventListener("mouseleave",$),j.removeEventListener("pointerdown",I,!0))}},[f,i,n,l,v,w,E,C,R,I,h])}function OV(e,t){return t&&!kf(t)?0:typeof e=="function"?e():e}function rb(e){return typeof e=="function"?e():e}const MV={current:null};function DV(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:c=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:h=0,move:b=!0,triggerElementRef:g=MV,externalTree:v,isActiveTrigger:_=!0}=t,w=Xf(v),E=DM(n),R=Qr(f),C=Qr(l),I=Qr(h),k=Qr(c);_&&(E.handleCloseOptions=R.current?.__options);const T=Fe(()=>E.interactedInside?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),$=Fe(ne=>zp(ne,n.context.triggerElements)),j=M.useCallback((ne,te=!0)=>{const F=vp(C.current,"close",E.pointerType);F&&!E.handler?E.openChangeTimeout.start(F,()=>n.setOpen(!1,Jt(Lr,ne))):te&&(E.openChangeTimeout.clear(),n.setOpen(!1,Jt(Lr,ne)))},[C,n,E]),H=Fe(()=>{E.unbindMouseMove(),E.handler=void 0}),P=Fe(()=>{if(E.performedPointerEventsMutation){const ne=Kt(n.select("domReferenceElement")).body;ne.style.pointerEvents="",ne.removeAttribute(mv),E.performedPointerEventsMutation=!1}});M.useEffect(()=>{if(!c)return;function ne(te){te.open||(E.openChangeTimeout.clear(),E.restTimeout.clear(),E.blockMouseMove=!0,E.restTimeoutPending=!1)}return i.on("openchange",ne),()=>{i.off("openchange",ne)}},[c,i,E]);const Q=Fe(ne=>{if(T()||!r.current.floatingContext||$(ne.relatedTarget))return;const te=g.current;R.current?.({...r.current.floatingContext,tree:w,x:ne.clientX,y:ne.clientY,onClose(){P(),H(),!T()&&te===n.select("domReferenceElement")&&j(ne)}})(ne)});return M.useEffect(()=>{if(!c)return;const ne=g.current??(_?n.select("domReferenceElement"):null);if(!xt(ne))return;function te(me){if(E.openChangeTimeout.clear(),E.blockMouseMove=!1,d&&!kf(E.pointerType)||rb(I.current)>0&&!vp(C.current,"open"))return;const ge=vp(C.current,"open",E.pointerType),V=n.select("domReferenceElement"),re=n.context.triggerElements,J=(re.hasElement(me.target)||re.hasMatchingElement(ee=>yt(ee,me.target)))&&(!V||!yt(V,me.target)),be=me.currentTarget??null,ue=n.select("open"),z=!ue||J;J&&ue?n.setOpen(!0,Jt(Lr,me,be)):ge?E.openChangeTimeout.start(ge,()=>{z&&n.setOpen(!0,Jt(Lr,me,be))}):z&&n.setOpen(!0,Jt(Lr,me,be))}function F(me){if(T()){P();return}E.unbindMouseMove();const ge=n.select("domReferenceElement"),V=Kt(ge);if(E.restTimeout.clear(),E.restTimeoutPending=!1,$(me.relatedTarget))return;if(R.current&&r.current.floatingContext){n.select("open")||E.openChangeTimeout.clear();const J=g.current;E.handler=R.current({...r.current.floatingContext,tree:w,x:me.clientX,y:me.clientY,onClose(){P(),H(),k.current&&!T()&&J===n.select("domReferenceElement")&&j(me,!0)}});const be=E.handler;be(me),V.addEventListener("mousemove",be),E.unbindMouseMove=()=>{V.removeEventListener("mousemove",be)};return}(E.pointerType!=="touch"||!yt(n.select("floatingElement"),me.relatedTarget))&&j(me)}function oe(me){Q(me)}return n.select("open")&&ne.addEventListener("mouseleave",oe),b&&ne.addEventListener("mousemove",te,{once:!0}),ne.addEventListener("mouseenter",te),ne.addEventListener("mouseleave",F),()=>{ne.removeEventListener("mouseleave",oe),b&&ne.removeEventListener("mousemove",te),ne.removeEventListener("mouseenter",te),ne.removeEventListener("mouseleave",F)}},[H,P,r,C,j,n,c,R,Q,E,_,T,$,d,b,I,g,w,k]),M.useMemo(()=>{if(!c)return;function ne(te){E.pointerType=te.pointerType}return{onPointerDown:ne,onPointerEnter:ne,onMouseMove(te){const{nativeEvent:F}=te,oe=te.currentTarget,me=n.select("domReferenceElement"),ge=n.context.triggerElements,V=n.select("open"),re=(ge.hasElement(te.target)||ge.hasMatchingElement(be=>yt(be,te.target)))&&(!me||!yt(me,te.target));if(d&&!kf(E.pointerType)||V&&!re||rb(I.current)===0||!re&&E.restTimeoutPending&&te.movementX**2+te.movementY**2<2)return;E.restTimeout.clear();function J(){if(E.restTimeoutPending=!1,T())return;const be=n.select("open");!E.blockMouseMove&&(!be||re)&&n.setOpen(!0,Jt(Lr,F,oe))}E.pointerType==="touch"?na.flushSync(()=>{J()}):re&&V?J():(E.restTimeoutPending=!0,E.restTimeout.start(rb(I.current),J))}}},[c,E,T,d,n,I])}function kM(e=[]){const t=e.map(h=>h?.reference),n=e.map(h=>h?.floating),r=e.map(h=>h?.item),i=e.map(h=>h?.trigger),c=M.useCallback(h=>np(h,e,"reference"),t),l=M.useCallback(h=>np(h,e,"floating"),n),f=M.useCallback(h=>np(h,e,"item"),r),d=M.useCallback(h=>np(h,e,"trigger"),i);return M.useMemo(()=>({getReferenceProps:c,getFloatingProps:l,getItemProps:f,getTriggerProps:d}),[c,l,f,d])}function np(e,t,n){const r=new Map,i=n==="item",c={};n==="floating"&&(c.tabIndex=-1,c[av]="");for(const l in e)i&&e&&(l===jO||l===HO)||(c[l]=e[l]);for(let l=0;lr.get(i)?.map(f=>f(...l)).find(f=>f!==void 0))):e[i]=c)}}const kV=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function PV(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),c=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{role:f="dialog"}=t,d=Kf(),h=c?.id||d,b=M.useMemo(()=>cv(l)?.id||i,[l,i]),g=kV.get(f)??f,_=Rm()!=null,w=M.useMemo(()=>g==="tooltip"||f==="label"?Hs:{"aria-haspopup":g==="alertdialog"?"dialog":g,"aria-expanded":"false",...g==="listbox"&&{role:"combobox"},...g==="menu"&&_&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[g,_,f]),E=M.useMemo(()=>g==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?b:void 0}:{...w,"aria-expanded":r?"true":"false","aria-controls":r?b:void 0,...g==="menu"&&{id:h}},[g,b,r,h,f,w]),R=M.useMemo(()=>{const I={id:b,...g&&{role:g}};return g==="tooltip"||f==="label"?I:{...I,...g==="menu"&&{"aria-labelledby":h}}},[g,b,h,f]),C=M.useCallback(({active:I,selected:k})=>{const T={role:"option",...I&&{id:`${b}-fui-option`}};switch(f){case"select":case"combobox":return{...T,"aria-selected":k}}return{}},[b,f]);return M.useMemo(()=>({reference:E,floating:R,item:C,trigger:w}),[E,R,w,C])}function $A(e,t){const[n,r]=e;let i=!1;const c=t.length;for(let l=0,f=c-1;l=r!=g>=r&&n<=(b-d)*(r-h)/(g-h)+d&&(i=!i)}return i}function NV(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function LV(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Jr;let c=!1,l=null,f=null,d=typeof performance<"u"?performance.now():0;function h(g,v){const _=performance.now(),w=_-d;if(l===null||f===null||w===0)return l=g,f=v,d=_,null;const E=g-l,R=v-f,I=Math.sqrt(E*E+R*R)/w;return l=g,f=v,d=_,I}const b=({x:g,y:v,placement:_,elements:w,onClose:E,nodeId:R,tree:C})=>function(k){function T(){i.clear(),E()}if(i.clear(),!w.domReference||!w.floating||_==null||g==null||v==null)return;const{clientX:$,clientY:j}=k,H=[$,j],P=Ss(k),Q=k.type==="mouseleave",ne=yt(w.floating,P),te=yt(w.domReference,P),F=w.domReference.getBoundingClientRect(),oe=w.floating.getBoundingClientRect(),me=_.split("-")[0],ge=g>oe.right-oe.width/2,V=v>oe.bottom-oe.height/2,re=NV(H,F),J=oe.width>F.width,be=oe.height>F.height,ue=(J?F:oe).left,z=(J?F:oe).right,ee=(be?F:oe).top,ye=(be?F:oe).bottom;if(ne&&(c=!0,!Q))return;if(te&&(c=!1),te&&!Q){c=!0;return}if(Q&&xt(k.relatedTarget)&&yt(w.floating,k.relatedTarget)||C&&Ja(C.nodesRef.current,R).some(({context:Se})=>Se?.open))return;if(me==="top"&&v>=F.bottom-1||me==="bottom"&&v<=F.top+1||me==="left"&&g>=F.right-1||me==="right"&&g<=F.left+1)return T();let we=[];switch(me){case"top":we=[[ue,F.top+1],[ue,oe.bottom-1],[z,oe.bottom-1],[z,F.top+1]];break;case"bottom":we=[[ue,oe.top+1],[ue,F.bottom-1],[z,F.bottom-1],[z,oe.top+1]];break;case"left":we=[[oe.right-1,ye],[oe.right-1,ee],[F.left+1,ee],[F.left+1,ye]];break;case"right":we=[[F.right-1,ye],[F.right-1,ee],[oe.left+1,ee],[oe.left+1,ye]];break}function Ee([Se,Ie]){switch(me){case"top":{const qe=[J?Se+t/2:ge?Se+t*4:Se-t*4,Ie+t+1],ve=[J?Se-t/2:ge?Se+t*4:Se-t*4,Ie+t+1],Je=[[oe.left,ge||J?oe.bottom-t:oe.top],[oe.right,ge?J?oe.bottom-t:oe.top:oe.bottom-t]];return[qe,ve,...Je]}case"bottom":{const qe=[J?Se+t/2:ge?Se+t*4:Se-t*4,Ie-t],ve=[J?Se-t/2:ge?Se+t*4:Se-t*4,Ie-t],Je=[[oe.left,ge||J?oe.top+t:oe.bottom],[oe.right,ge?J?oe.top+t:oe.bottom:oe.top+t]];return[qe,ve,...Je]}case"left":{const qe=[Se+t+1,be?Ie+t/2:V?Ie+t*4:Ie-t*4],ve=[Se+t+1,be?Ie-t/2:V?Ie+t*4:Ie-t*4];return[...[[V||be?oe.right-t:oe.left,oe.top],[V?be?oe.right-t:oe.left:oe.right-t,oe.bottom]],qe,ve]}case"right":{const qe=[Se-t,be?Ie+t/2:V?Ie+t*4:Ie-t*4],ve=[Se-t,be?Ie-t/2:V?Ie+t*4:Ie-t*4],Je=[[V||be?oe.left+t:oe.right,oe.top],[V?be?oe.left+t:oe.right:oe.left+t,oe.bottom]];return[qe,ve,...Je]}default:return[]}}if(!$A([$,j],we)){if(c&&!re)return T();if(!Q&&r){const Se=h(k.clientX,k.clientY);if(Se!==null&&Se<.1)return T()}$A([$,j],Ee([g,v]))?!c&&r&&i.start(40,T):T()}};return b.__options={blockPointerEvents:n},b}let zV=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),BV=(function(e){return e[e.open=Qa.open]="open",e[e.closed=Qa.closed]="closed",e[e.startingStyle=Qa.startingStyle]="startingStyle",e[e.endingStyle=Qa.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const PM=M.createContext(void 0);function $V(){const e=M.useContext(PM);if(e===void 0)throw new Error(Vo(26));return e}const NM="ArrowUp",LM="ArrowDown",zM="ArrowLeft",BM="ArrowRight",$M="Home",UM="End",UV=new Set([zM,BM]),jV=new Set([NM,LM]),HV=new Set([...UV,...jV]);[...HV];const VV=new Set([NM,LM,zM,BM,$M,UM]),qV={...Yf,...cS,nestedDialogOpen(e){return e?{[BV.nestedDialogOpen]:""}:null}},FV=M.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:c,render:l,...f}=t,{store:d}=fc(),h=d.useState("descriptionElementId"),b=d.useState("disablePointerDismissal"),g=d.useState("floatingRootContext"),v=d.useState("popupProps"),_=d.useState("modal"),w=d.useState("mounted"),E=d.useState("nested"),R=d.useState("nestedOpenDialogCount"),C=d.useState("open"),I=d.useState("openMethod"),k=d.useState("titleElementId"),T=d.useState("transitionStatus"),$=d.useState("role");$V(),lS({open:C,ref:d.context.popupRef,onComplete(){C&&d.context.onOpenChangeComplete?.(!0)}});function j(te){return te==="touch"?d.context.popupRef.current:!0}const H=c===void 0?j:c,P=R>0,ne=_r("div",t,{state:{open:C,nested:E,transitionStatus:T,nestedDialogOpen:P},props:[v,{"aria-labelledby":k??void 0,"aria-describedby":h??void 0,role:$,tabIndex:-1,hidden:!w,onKeyDown(te){VV.has(te.key)&&te.stopPropagation()},style:{[zV.nestedDialogs]:R}},f],ref:[n,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:qV});return N.jsx(nH,{context:g,openInteractionType:I,disabled:!w,closeOnFocusOut:!b,initialFocus:H,returnFocus:i,modal:_!==!1,restoreFocus:"popup",children:ne})});function GV(e){return Xv(19)?e:e?"true":void 0}const ZV=M.forwardRef(function(t,n){const{cutout:r,...i}=t;let c;if(r){const l=r?.getBoundingClientRect();c=`polygon( +`+u.stack}}var nt=Object.prototype.hasOwnProperty,ot=e.unstable_scheduleCallback,Ge=e.unstable_cancelCallback,bt=e.unstable_shouldYield,Xt=e.unstable_requestPaint,wt=e.unstable_now,Xn=e.unstable_getCurrentPriorityLevel,Je=e.unstable_ImmediatePriority,Mt=e.unstable_UserBlockingPriority,it=e.unstable_NormalPriority,Ds=e.unstable_LowPriority,pr=e.unstable_IdlePriority,Po=e.log,dp=e.unstable_setDisableYieldValue,ki=null,us=null;function Gr(s){if(typeof Po=="function"&&dp(s),us&&typeof us.setStrictMode=="function")try{us.setStrictMode(ki,s)}catch{}}var fs=Math.clz32?Math.clz32:hr,Jt=Math.log,ds=Math.LN2;function hr(s){return s>>>=0,s===0?32:31-(Jt(s)/ds|0)|0}var Wn=256,Ps=262144,ko=4194304;function mr(s){var o=s&42;if(o!==0)return o;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ni(s,o,a){var u=s.pendingLanes;if(u===0)return 0;var h=0,m=s.suspendedLanes,w=s.pingedLanes;s=s.warmLanes;var A=u&134217727;return A!==0?(u=A&~m,u!==0?h=mr(u):(w&=A,w!==0?h=mr(w):a||(a=A&~s,a!==0&&(h=mr(a))))):(A=u&~m,A!==0?h=mr(A):w!==0?h=mr(w):a||(a=u&~s,a!==0&&(h=mr(a)))),h===0?0:o!==0&&o!==h&&(o&m)===0&&(m=h&-h,a=o&-o,m>=a||m===32&&(a&4194048)!==0)?o:h}function Li(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function gy(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 pp(){var s=ko;return ko<<=1,(ko&62914560)===0&&(ko=4194304),s}function Fu(s){for(var o=[],a=0;31>a;a++)o.push(s);return o}function tc(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Gu(s,o,a,u,h,m){var w=s.pendingLanes;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=a,s.entangledLanes&=a,s.errorRecoveryDisabledLanes&=a,s.shellSuspendCounter=0;var A=s.entanglements,z=s.expirationTimes,Z=s.hiddenUpdates;for(a=w&~a;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var NB=/[\n"\\]/g;function yr(s){return s.replace(NB,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Sy(s,o,a,u,h,m,w,A){s.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?s.type=w:s.removeAttribute("type"),o!=null?w==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+gr(o)):s.value!==""+gr(o)&&(s.value=""+gr(o)):w!=="submit"&&w!=="reset"||s.removeAttribute("value"),o!=null?_y(s,w,gr(o)):a!=null?_y(s,w,gr(a)):u!=null&&s.removeAttribute("value"),h==null&&m!=null&&(s.defaultChecked=!!m),h!=null&&(s.checked=h&&typeof h!="function"&&typeof h!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?s.name=""+gr(A):s.removeAttribute("name")}function H1(s,o,a,u,h,m,w,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(s.type=m),o!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||o!=null)){by(s);return}a=a!=null?""+gr(a):"",o=o!=null?""+gr(o):a,A||o===s.value||(s.value=o),s.defaultValue=o}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,s.checked=A?s.checked:!!u,s.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(s.name=w),by(s)}function _y(s,o,a){o==="number"&&Sp(s.ownerDocument)===s||s.defaultValue===""+a||(s.defaultValue=""+a)}function al(s,o,a,u){if(s=s.options,o){o={};for(var h=0;h"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cy=!1;if(zo)try{var Wu={};Object.defineProperty(Wu,"passive",{get:function(){Cy=!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{Cy=!1}var zi=null,Ay=null,Ep=null;function Y1(){if(Ep)return Ep;var s,o=Ay,a=o.length,u,h="value"in zi?zi.value:zi.textContent,m=h.length;for(s=0;s=tf),nR=" ",sR=!1;function rR(s,o){switch(s){case"keyup":return l6.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oR(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var fl=!1;function f6(s,o){switch(s){case"compositionend":return oR(o);case"keypress":return o.which!==32?null:(sR=!0,nR);case"textInput":return s=o.data,s===nR&&sR?null:s;default:return null}}function d6(s,o){if(fl)return s==="compositionend"||!Dy&&rR(s,o)?(s=Y1(),Ep=Ay=zi=null,fl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:a,offset:o-s};s=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=pR(a)}}function mR(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?mR(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function gR(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=Sp(s.document);o instanceof s.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)s=o.contentWindow;else break;o=Sp(s.document)}return o}function Ny(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var S6=zo&&"documentMode"in document&&11>=document.documentMode,dl=null,Ly=null,of=null,$y=!1;function yR(s,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$y||dl==null||dl!==Sp(u)||(u=dl,"selectionStart"in u&&Ny(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),of&&rf(of,u)||(of=u,u=mh(Ly,"onSelect"),0>=w,h-=w,ro=1<<32-fs(o)+h|a<et?(mt=Be,Be=null):mt=Be.sibling;var Pt=Y(G,Be,K[et],le);if(Pt===null){Be===null&&(Be=mt);break}s&&Be&&Pt.alternate===null&&o(G,Be),q=m(Pt,q,et),Dt===null?Ue=Pt:Dt.sibling=Pt,Dt=Pt,Be=mt}if(et===K.length)return a(G,Be),St&&Uo(G,et),Ue;if(Be===null){for(;etet?(mt=Be,Be=null):mt=Be.sibling;var ia=Y(G,Be,Pt.value,le);if(ia===null){Be===null&&(Be=mt);break}s&&Be&&ia.alternate===null&&o(G,Be),q=m(ia,q,et),Dt===null?Ue=ia:Dt.sibling=ia,Dt=ia,Be=mt}if(Pt.done)return a(G,Be),St&&Uo(G,et),Ue;if(Be===null){for(;!Pt.done;et++,Pt=K.next())Pt=fe(G,Pt.value,le),Pt!==null&&(q=m(Pt,q,et),Dt===null?Ue=Pt:Dt.sibling=Pt,Dt=Pt);return St&&Uo(G,et),Ue}for(Be=u(Be);!Pt.done;et++,Pt=K.next())Pt=se(Be,G,et,Pt.value,le),Pt!==null&&(s&&Pt.alternate!==null&&Be.delete(Pt.key===null?et:Pt.key),q=m(Pt,q,et),Dt===null?Ue=Pt:Dt.sibling=Pt,Dt=Pt);return s&&Be.forEach(function(UU){return o(G,UU)}),St&&Uo(G,et),Ue}function Kt(G,q,K,le){if(typeof K=="object"&&K!==null&&K.type===x&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case _:e:{for(var Ue=K.key;q!==null;){if(q.key===Ue){if(Ue=K.type,Ue===x){if(q.tag===7){a(G,q.sibling),le=h(q,K.props.children),le.return=G,G=le;break e}}else if(q.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===N&&dc(Ue)===q.type){a(G,q.sibling),le=h(q,K.props),df(le,K),le.return=G,G=le;break e}a(G,q);break}else o(G,q);q=q.sibling}K.type===x?(le=ac(K.props.children,G.mode,le,K.key),le.return=G,G=le):(le=Dp(K.type,K.key,K.props,null,G.mode,le),df(le,K),le.return=G,G=le)}return w(G);case E:e:{for(Ue=K.key;q!==null;){if(q.key===Ue)if(q.tag===4&&q.stateNode.containerInfo===K.containerInfo&&q.stateNode.implementation===K.implementation){a(G,q.sibling),le=h(q,K.children||[]),le.return=G,G=le;break e}else{a(G,q);break}else o(G,q);q=q.sibling}le=qy(K,G.mode,le),le.return=G,G=le}return w(G);case N:return K=dc(K),Kt(G,q,K,le)}if(ge(K))return Ne(G,q,K,le);if(F(K)){if(Ue=F(K),typeof Ue!="function")throw Error(r(150));return K=Ue.call(K),He(G,q,K,le)}if(typeof K.then=="function")return Kt(G,q,Bp(K),le);if(K.$$typeof===P)return Kt(G,q,Np(G,K),le);Up(G,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,q!==null&&q.tag===6?(a(G,q.sibling),le=h(q,K),le.return=G,G=le):(a(G,q),le=Hy(K,G.mode,le),le.return=G,G=le),w(G)):a(G,q)}return function(G,q,K,le){try{ff=0;var Ue=Kt(G,q,K,le);return xl=null,Ue}catch(Be){if(Be===El||Be===$p)throw Be;var Dt=Ys(29,Be,null,G.mode);return Dt.lanes=le,Dt.return=G,Dt}}}var hc=UR(!0),jR=UR(!1),Hi=!1;function n0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function s0(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function qi(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Fi(s,o,a){var u=s.updateQueue;if(u===null)return null;if(u=u.shared,(Nt&2)!==0){var h=u.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),u.pending=o,o=Mp(s),wR(s,null,a),o}return Op(s,u,o,a),Mp(s)}function pf(s,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194048)!==0)){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,hp(s,a)}}function r0(s,o){var a=s.updateQueue,u=s.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var w={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?h=m=w:m=m.next=w,a=a.next}while(a!==null);m===null?h=m=o:m=m.next=o}else h=m=o;a={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},s.updateQueue=a;return}s=a.lastBaseUpdate,s===null?a.firstBaseUpdate=o:s.next=o,a.lastBaseUpdate=o}var o0=!1;function hf(){if(o0){var s=_l;if(s!==null)throw s}}function mf(s,o,a,u){o0=!1;var h=s.updateQueue;Hi=!1;var m=h.firstBaseUpdate,w=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var z=A,Z=z.next;z.next=null,w===null?m=Z:w.next=Z,w=z;var ie=s.alternate;ie!==null&&(ie=ie.updateQueue,A=ie.lastBaseUpdate,A!==w&&(A===null?ie.firstBaseUpdate=Z:A.next=Z,ie.lastBaseUpdate=z))}if(m!==null){var fe=h.baseState;w=0,ie=Z=z=null,A=m;do{var Y=A.lane&-536870913,se=Y!==A.lane;if(se?(ht&Y)===Y:(u&Y)===Y){Y!==0&&Y===Sl&&(o0=!0),ie!==null&&(ie=ie.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ne=s,He=A;Y=o;var Kt=a;switch(He.tag){case 1:if(Ne=He.payload,typeof Ne=="function"){fe=Ne.call(Kt,fe,Y);break e}fe=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=He.payload,Y=typeof Ne=="function"?Ne.call(Kt,fe,Y):Ne,Y==null)break e;fe=g({},fe,Y);break e;case 2:Hi=!0}}Y=A.callback,Y!==null&&(s.flags|=64,se&&(s.flags|=8192),se=h.callbacks,se===null?h.callbacks=[Y]:se.push(Y))}else se={lane:Y,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ie===null?(Z=ie=se,z=fe):ie=ie.next=se,w|=Y;if(A=A.next,A===null){if(A=h.shared.pending,A===null)break;se=A,A=se.next,se.next=null,h.lastBaseUpdate=se,h.shared.pending=null}}while(!0);ie===null&&(z=fe),h.baseState=z,h.firstBaseUpdate=Z,h.lastBaseUpdate=ie,m===null&&(h.shared.lanes=0),Yi|=w,s.lanes=w,s.memoizedState=fe}}function VR(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function HR(s,o){var a=s.callbacks;if(a!==null)for(s.callbacks=null,s=0;sm?m:8;var w=H.T,A={};H.T=A,w0(s,!1,o,a);try{var z=h(),Z=H.S;if(Z!==null&&Z(A,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ie=T6(z,u);vf(s,o,ie,tr(s))}else vf(s,o,u,tr(s))}catch(fe){vf(s,o,{then:function(){},status:"rejected",reason:fe},tr())}finally{re.p=m,w!==null&&A.types!==null&&(w.types=A.types),H.T=w}}function N6(){}function E0(s,o,a,u){if(s.tag!==5)throw Error(r(476));var h=_C(s).queue;SC(s,h,o,J,a===null?N6:function(){return EC(s),a(u)})}function _C(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:J},next:null};var a={};return o.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:a},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function EC(s){var o=_C(s);o.next===null&&(o=s.alternate.memoizedState),vf(s,o.next.queue,{},tr())}function x0(){return ts(Nf)}function xC(){return yn().memoizedState}function wC(){return yn().memoizedState}function L6(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var a=tr();s=qi(a);var u=Fi(o,s,a);u!==null&&(Us(u,o,a),pf(u,o,a)),o={cache:Wy()},s.payload=o;return}o=o.return}}function $6(s,o,a){var u=tr();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Yp(s)?CC(o,a):(a=jy(s,o,a,u),a!==null&&(Us(a,s,u),AC(a,o,u)))}function RC(s,o,a){var u=tr();vf(s,o,a,u)}function vf(s,o,a,u){var h={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Yp(s))CC(o,h);else{var m=s.alternate;if(s.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var w=o.lastRenderedState,A=m(w,a);if(h.hasEagerState=!0,h.eagerState=A,Qs(A,w))return Op(s,o,h,0),Qt===null&&Tp(),!1}catch{}if(a=jy(s,o,h,u),a!==null)return Us(a,s,u),AC(a,o,u),!0}return!1}function w0(s,o,a,u){if(u={lane:2,revertLane:nv(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Yp(s)){if(o)throw Error(r(479))}else o=jy(s,a,u,2),o!==null&&Us(o,s,2)}function Yp(s){var o=s.alternate;return s===Xe||o!==null&&o===Xe}function CC(s,o){Rl=Hp=!0;var a=s.pending;a===null?o.next=o:(o.next=a.next,a.next=o),s.pending=o}function AC(s,o,a){if((a&4194048)!==0){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,hp(s,a)}}var bf={readContext:ts,use:Gp,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn,useHostTransitionStatus:dn,useFormState:dn,useActionState:dn,useOptimistic:dn,useMemoCache:dn,useCacheRefresh:dn};bf.useEffectEvent=dn;var IC={readContext:ts,use:Gp,useCallback:function(s,o){return Es().memoizedState=[s,o===void 0?null:o],s},useContext:ts,useEffect:fC,useImperativeHandle:function(s,o,a){a=a!=null?a.concat([s]):null,Zp(4194308,4,mC.bind(null,o,s),a)},useLayoutEffect:function(s,o){return Zp(4194308,4,s,o)},useInsertionEffect:function(s,o){Zp(4,2,s,o)},useMemo:function(s,o){var a=Es();o=o===void 0?null:o;var u=s();if(mc){Gr(!0);try{s()}finally{Gr(!1)}}return a.memoizedState=[u,o],u},useReducer:function(s,o,a){var u=Es();if(a!==void 0){var h=a(o);if(mc){Gr(!0);try{a(o)}finally{Gr(!1)}}}else h=o;return u.memoizedState=u.baseState=h,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:h},u.queue=s,s=s.dispatch=$6.bind(null,Xe,s),[u.memoizedState,s]},useRef:function(s){var o=Es();return s={current:s},o.memoizedState=s},useState:function(s){s=y0(s);var o=s.queue,a=RC.bind(null,Xe,o);return o.dispatch=a,[s.memoizedState,a]},useDebugValue:S0,useDeferredValue:function(s,o){var a=Es();return _0(a,s,o)},useTransition:function(){var s=y0(!1);return s=SC.bind(null,Xe,s.queue,!0,!1),Es().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,a){var u=Xe,h=Es();if(St){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),Qt===null)throw Error(r(349));(ht&127)!==0||QR(u,o,a)}h.memoizedState=a;var m={value:a,getSnapshot:o};return h.queue=m,fC(XR.bind(null,u,m,s),[s]),u.flags|=2048,Al(9,{destroy:void 0},YR.bind(null,u,m,a,o),null),a},useId:function(){var s=Es(),o=Qt.identifierPrefix;if(St){var a=oo,u=ro;a=(u&~(1<<32-fs(u)-1)).toString(32)+a,o="_"+o+"R_"+a,a=qp++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?w.createElement("select",{is:u.is}):w.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?w.createElement(h,{is:u.is}):w.createElement(h)}}m[Jn]=o,m[ks]=u;e:for(w=o.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===o)break e;for(;w.sibling===null;){if(w.return===null||w.return===o)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}o.stateNode=m;e:switch(ss(m,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Go(o)}}return tn(o),z0(o,o.type,s===null?null:s.memoizedProps,o.pendingProps,a),null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==u&&Go(o);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(s=Se.current,vl(o)){if(s=o.stateNode,a=o.memoizedProps,u=null,h=es,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}s[Jn]=o,s=!!(s.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||KA(s.nodeValue,a)),s||ji(o,!0)}else s=gh(s).createTextNode(u),s[Jn]=o,o.stateNode=s}return tn(o),null;case 31:if(a=o.memoizedState,s===null||s.memoizedState!==null){if(u=vl(o),a!==null){if(s===null){if(!u)throw Error(r(318));if(s=o.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Jn]=o}else cc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;tn(o),s=!1}else a=Zy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=a),s=!0;if(!s)return o.flags&256?(Ws(o),o):(Ws(o),null);if((o.flags&128)!==0)throw Error(r(558))}return tn(o),null;case 13:if(u=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(h=vl(o),u!==null&&u.dehydrated!==null){if(s===null){if(!h)throw Error(r(318));if(h=o.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[Jn]=o}else cc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;tn(o),h=!1}else h=Zy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=h),h=!0;if(!h)return o.flags&256?(Ws(o),o):(Ws(o),null)}return Ws(o),(o.flags&128)!==0?(o.lanes=a,o):(a=u!==null,s=s!==null&&s.memoizedState!==null,a&&(u=o.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==h&&(u.flags|=2048)),a!==s&&a&&(o.child.flags|=8192),th(o,o.updateQueue),tn(o),null);case 4:return be(),s===null&&iv(o.stateNode.containerInfo),tn(o),null;case 10:return Vo(o.type),tn(o),null;case 19:if(ee(gn),u=o.memoizedState,u===null)return tn(o),null;if(h=(o.flags&128)!==0,m=u.rendering,m===null)if(h)_f(u,!1);else{if(pn!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(m=Vp(s),m!==null){for(o.flags|=128,_f(u,!1),s=m.updateQueue,o.updateQueue=s,th(o,s),o.subtreeFlags=0,s=a,a=o.child;a!==null;)RR(a,s),a=a.sibling;return ye(gn,gn.current&1|2),St&&Uo(o,u.treeForkCount),o.child}s=s.sibling}u.tail!==null&&wt()>ih&&(o.flags|=128,h=!0,_f(u,!1),o.lanes=4194304)}else{if(!h)if(s=Vp(m),s!==null){if(o.flags|=128,h=!0,s=s.updateQueue,o.updateQueue=s,th(o,s),_f(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!St)return tn(o),null}else 2*wt()-u.renderingStartTime>ih&&a!==536870912&&(o.flags|=128,h=!0,_f(u,!1),o.lanes=4194304);u.isBackwards?(m.sibling=o.child,o.child=m):(s=u.last,s!==null?s.sibling=m:o.child=m,u.last=m)}return u.tail!==null?(s=u.tail,u.rendering=s,u.tail=s.sibling,u.renderingStartTime=wt(),s.sibling=null,a=gn.current,ye(gn,h?a&1|2:a&1),St&&Uo(o,u.treeForkCount),s):(tn(o),null);case 22:case 23:return Ws(o),a0(),u=o.memoizedState!==null,s!==null?s.memoizedState!==null!==u&&(o.flags|=8192):u&&(o.flags|=8192),u?(a&536870912)!==0&&(o.flags&128)===0&&(tn(o),o.subtreeFlags&6&&(o.flags|=8192)):tn(o),a=o.updateQueue,a!==null&&th(o,a.retryQueue),a=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==a&&(o.flags|=2048),s!==null&&ee(fc),null;case 24:return a=null,s!==null&&(a=s.memoizedState.cache),o.memoizedState.cache!==a&&(o.flags|=2048),Vo(wn),tn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function V6(s,o){switch(Gy(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return Vo(wn),be(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return kt(o),null;case 31:if(o.memoizedState!==null){if(Ws(o),o.alternate===null)throw Error(r(340));cc()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(Ws(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));cc()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ee(gn),null;case 4:return be(),null;case 10:return Vo(o.type),null;case 22:case 23:return Ws(o),a0(),s!==null&&ee(fc),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return Vo(wn),null;case 25:return null;default:return null}}function WC(s,o){switch(Gy(o),o.tag){case 3:Vo(wn),be();break;case 26:case 27:case 5:kt(o);break;case 4:be();break;case 31:o.memoizedState!==null&&Ws(o);break;case 13:Ws(o);break;case 19:ee(gn);break;case 10:Vo(o.type);break;case 22:case 23:Ws(o),a0(),s!==null&&ee(fc);break;case 24:Vo(wn)}}function Ef(s,o){try{var a=o.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var h=u.next;a=h;do{if((a.tag&s)===s){u=void 0;var m=a.create,w=a.inst;u=m(),w.destroy=u}a=a.next}while(a!==h)}}catch(A){Vt(o,o.return,A)}}function Zi(s,o,a){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var m=h.next;u=m;do{if((u.tag&s)===s){var w=u.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,h=o;var z=a,Z=A;try{Z()}catch(ie){Vt(h,z,ie)}}}u=u.next}while(u!==m)}}catch(ie){Vt(o,o.return,ie)}}function JC(s){var o=s.updateQueue;if(o!==null){var a=s.stateNode;try{HR(o,a)}catch(u){Vt(s,s.return,u)}}}function eA(s,o,a){a.props=gc(s.type,s.memoizedProps),a.state=s.memoizedState;try{a.componentWillUnmount()}catch(u){Vt(s,o,u)}}function xf(s,o){try{var a=s.ref;if(a!==null){switch(s.tag){case 26:case 27:case 5:var u=s.stateNode;break;case 30:u=s.stateNode;break;default:u=s.stateNode}typeof a=="function"?s.refCleanup=a(u):a.current=u}}catch(h){Vt(s,o,h)}}function io(s,o){var a=s.ref,u=s.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(h){Vt(s,o,h)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){Vt(s,o,h)}else a.current=null}function tA(s){var o=s.type,a=s.memoizedProps,u=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(h){Vt(s,s.return,h)}}function B0(s,o,a){try{var u=s.stateNode;uU(u,s.type,a,o),u[ks]=o}catch(h){Vt(s,s.return,h)}}function nA(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&ta(s.type)||s.tag===4}function U0(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||nA(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&ta(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function j0(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(s,o):(o=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.appendChild(s),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=$o));else if(u!==4&&(u===27&&ta(s.type)&&(a=s.stateNode,o=null),s=s.child,s!==null))for(j0(s,o,a),s=s.sibling;s!==null;)j0(s,o,a),s=s.sibling}function nh(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?a.insertBefore(s,o):a.appendChild(s);else if(u!==4&&(u===27&&ta(s.type)&&(a=s.stateNode),s=s.child,s!==null))for(nh(s,o,a),s=s.sibling;s!==null;)nh(s,o,a),s=s.sibling}function sA(s){var o=s.stateNode,a=s.memoizedProps;try{for(var u=s.type,h=o.attributes;h.length;)o.removeAttributeNode(h[0]);ss(o,u,a),o[Jn]=s,o[ks]=a}catch(m){Vt(s,s.return,m)}}var Ko=!1,An=!1,V0=!1,rA=typeof WeakSet=="function"?WeakSet:Set,Un=null;function H6(s,o){if(s=s.containerInfo,lv=xh,s=gR(s),Ny(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var h=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var w=0,A=-1,z=-1,Z=0,ie=0,fe=s,Y=null;t:for(;;){for(var se;fe!==a||h!==0&&fe.nodeType!==3||(A=w+h),fe!==m||u!==0&&fe.nodeType!==3||(z=w+u),fe.nodeType===3&&(w+=fe.nodeValue.length),(se=fe.firstChild)!==null;)Y=fe,fe=se;for(;;){if(fe===s)break t;if(Y===a&&++Z===h&&(A=w),Y===m&&++ie===u&&(z=w),(se=fe.nextSibling)!==null)break;fe=Y,Y=fe.parentNode}fe=se}a=A===-1||z===-1?null:{start:A,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(uv={focusedElem:s,selectionRange:a},xh=!1,Un=o;Un!==null;)if(o=Un,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,Un=s;else for(;Un!==null;){switch(o=Un,m=o.alternate,s=o.flags,o.tag){case 0:if((s&4)!==0&&(s=o.updateQueue,s=s!==null?s.events:null,s!==null))for(a=0;a title"))),ss(m,u,a),m[Jn]=s,Bn(m),u=m;break e;case"link":var w=uI("link","href",h).get(u+(a.href||""));if(w){for(var A=0;AKt&&(w=Kt,Kt=He,He=w);var G=hR(A,He),q=hR(A,Kt);if(G&&q&&(se.rangeCount!==1||se.anchorNode!==G.node||se.anchorOffset!==G.offset||se.focusNode!==q.node||se.focusOffset!==q.offset)){var K=fe.createRange();K.setStart(G.node,G.offset),se.removeAllRanges(),He>Kt?(se.addRange(K),se.extend(q.node,q.offset)):(K.setEnd(q.node,q.offset),se.addRange(K))}}}}for(fe=[],se=A;se=se.parentNode;)se.nodeType===1&&fe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;Aa?32:a,H.T=null,a=Q0,Q0=null;var m=Wi,w=Wo;if(Ln=0,Dl=Wi=null,Wo=0,(Nt&6)!==0)throw Error(r(331));var A=Nt;if(Nt|=4,mA(m.current),dA(m,m.current,w,a),Nt=A,Tf(0,!1),us&&typeof us.onPostCommitFiberRoot=="function")try{us.onPostCommitFiberRoot(ki,m)}catch{}return!0}finally{re.p=h,H.T=u,PA(s,o)}}function NA(s,o,a){o=br(a,o),o=I0(s.stateNode,o,2),s=Fi(s,o,2),s!==null&&(tc(s,2),ao(s))}function Vt(s,o,a){if(s.tag===3)NA(s,s,a);else for(;o!==null;){if(o.tag===3){NA(o,s,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Xi===null||!Xi.has(u))){s=br(a,s),a=LC(2),u=Fi(o,a,2),u!==null&&($C(a,u,o,s),tc(u,2),ao(u));break}}o=o.return}}function J0(s,o,a){var u=s.pingCache;if(u===null){u=s.pingCache=new G6;var h=new Set;u.set(o,h)}else h=u.get(o),h===void 0&&(h=new Set,u.set(o,h));h.has(a)||(F0=!0,h.add(a),s=X6.bind(null,s,o,a),o.then(s,s))}function X6(s,o,a){var u=s.pingCache;u!==null&&u.delete(o),s.pingedLanes|=s.suspendedLanes&a,s.warmLanes&=~a,Qt===s&&(ht&a)===a&&(pn===4||pn===3&&(ht&62914560)===ht&&300>wt()-oh?(Nt&2)===0&&Pl(s,0):G0|=a,Ml===ht&&(Ml=0)),ao(s)}function LA(s,o){o===0&&(o=pp()),s=ic(s,o),s!==null&&(tc(s,o),ao(s))}function W6(s){var o=s.memoizedState,a=0;o!==null&&(a=o.retryLane),LA(s,a)}function J6(s,o){var a=0;switch(s.tag){case 31:case 13:var u=s.stateNode,h=s.memoizedState;h!==null&&(a=h.retryLane);break;case 19:u=s.stateNode;break;case 22:u=s.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(o),LA(s,a)}function eU(s,o){return ot(s,o)}var dh=null,Nl=null,ev=!1,ph=!1,tv=!1,ea=0;function ao(s){s!==Nl&&s.next===null&&(Nl===null?dh=Nl=s:Nl=Nl.next=s),ph=!0,ev||(ev=!0,nU())}function Tf(s,o){if(!tv&&ph){tv=!0;do for(var a=!1,u=dh;u!==null;){if(s!==0){var h=u.pendingLanes;if(h===0)var m=0;else{var w=u.suspendedLanes,A=u.pingedLanes;m=(1<<31-fs(42|s)+1)-1,m&=h&~(w&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,UA(u,m))}else m=ht,m=Ni(u,u===Qt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Li(u,m)||(a=!0,UA(u,m));u=u.next}while(a);tv=!1}}function tU(){$A()}function $A(){ph=ev=!1;var s=0;ea!==0&&dU()&&(s=ea);for(var o=wt(),a=null,u=dh;u!==null;){var h=u.next,m=zA(u,o);m===0?(u.next=null,a===null?dh=h:a.next=h,h===null&&(Nl=a)):(a=u,(s!==0||(m&3)!==0)&&(ph=!0)),u=h}Ln!==0&&Ln!==5||Tf(s),ea!==0&&(ea=0)}function zA(s,o){for(var a=s.suspendedLanes,u=s.pingedLanes,h=s.expirationTimes,m=s.pendingLanes&-62914561;0A)break;var ie=z.transferSize,fe=z.initiatorType;ie&&ZA(fe)&&(z=z.responseEnd,w+=ie*(z"u"?null:document;function iI(s,o,a){var u=Ll;if(u&&typeof o=="string"&&o){var h=yr(o);h='link[rel="'+s+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),oI.has(h)||(oI.add(h),s={rel:s,crossOrigin:a,href:o},u.querySelector(h)===null&&(o=u.createElement("link"),ss(o,"link",s),Bn(o),u.head.appendChild(o)))}}function _U(s){Jo.D(s),iI("dns-prefetch",s,null)}function EU(s,o){Jo.C(s,o),iI("preconnect",s,o)}function xU(s,o,a){Jo.L(s,o,a);var u=Ll;if(u&&s&&o){var h='link[rel="preload"][as="'+yr(o)+'"]';o==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+yr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+yr(a.imageSizes)+'"]')):h+='[href="'+yr(s)+'"]';var m=h;switch(o){case"style":m=$l(s);break;case"script":m=zl(s)}Rr.has(m)||(s=g({rel:"preload",href:o==="image"&&a&&a.imageSrcSet?void 0:s,as:o},a),Rr.set(m,s),u.querySelector(h)!==null||o==="style"&&u.querySelector(Pf(m))||o==="script"&&u.querySelector(kf(m))||(o=u.createElement("link"),ss(o,"link",s),Bn(o),u.head.appendChild(o)))}}function wU(s,o){Jo.m(s,o);var a=Ll;if(a&&s){var u=o&&typeof o.as=="string"?o.as:"script",h='link[rel="modulepreload"][as="'+yr(u)+'"][href="'+yr(s)+'"]',m=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=zl(s)}if(!Rr.has(m)&&(s=g({rel:"modulepreload",href:s},o),Rr.set(m,s),a.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(kf(m)))return}u=a.createElement("link"),ss(u,"link",s),Bn(u),a.head.appendChild(u)}}}function RU(s,o,a){Jo.S(s,o,a);var u=Ll;if(u&&s){var h=ol(u).hoistableStyles,m=$l(s);o=o||"default";var w=h.get(m);if(!w){var A={loading:0,preload:null};if(w=u.querySelector(Pf(m)))A.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":o},a),(a=Rr.get(m))&&yv(s,a);var z=w=u.createElement("link");Bn(z),ss(z,"link",s),z._p=new Promise(function(Z,ie){z.onload=Z,z.onerror=ie}),z.addEventListener("load",function(){A.loading|=1}),z.addEventListener("error",function(){A.loading|=2}),A.loading|=4,vh(w,o,u)}w={type:"stylesheet",instance:w,count:1,state:A},h.set(m,w)}}}function CU(s,o){Jo.X(s,o);var a=Ll;if(a&&s){var u=ol(a).hoistableScripts,h=zl(s),m=u.get(h);m||(m=a.querySelector(kf(h)),m||(s=g({src:s,async:!0},o),(o=Rr.get(h))&&vv(s,o),m=a.createElement("script"),Bn(m),ss(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function AU(s,o){Jo.M(s,o);var a=Ll;if(a&&s){var u=ol(a).hoistableScripts,h=zl(s),m=u.get(h);m||(m=a.querySelector(kf(h)),m||(s=g({src:s,async:!0,type:"module"},o),(o=Rr.get(h))&&vv(s,o),m=a.createElement("script"),Bn(m),ss(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function aI(s,o,a,u){var h=(h=Se.current)?yh(h):null;if(!h)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(o=$l(a.href),a=ol(h).hoistableStyles,u=a.get(o),u||(u={type:"style",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){s=$l(a.href);var m=ol(h).hoistableStyles,w=m.get(s);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(s,w),(m=h.querySelector(Pf(s)))&&!m._p&&(w.instance=m,w.state.loading=5),Rr.has(s)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Rr.set(s,a),m||IU(h,s,a,w.state))),o&&u===null)throw Error(r(528,""));return w}if(o&&u!==null)throw Error(r(529,""));return null;case"script":return o=a.async,a=a.src,typeof a=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=zl(a),a=ol(h).hoistableScripts,u=a.get(o),u||(u={type:"script",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function $l(s){return'href="'+yr(s)+'"'}function Pf(s){return'link[rel="stylesheet"]['+s+"]"}function cI(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function IU(s,o,a,u){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(o=s.createElement("link"),u.preload=o,o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),ss(o,"link",a),Bn(o),s.head.appendChild(o))}function zl(s){return'[src="'+yr(s)+'"]'}function kf(s){return"script[async]"+s}function lI(s,o,a){if(o.count++,o.instance===null)switch(o.type){case"style":var u=s.querySelector('style[data-href~="'+yr(a.href)+'"]');if(u)return o.instance=u,Bn(u),u;var h=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(s.ownerDocument||s).createElement("style"),Bn(u),ss(u,"style",h),vh(u,a.precedence,s),o.instance=u;case"stylesheet":h=$l(a.href);var m=s.querySelector(Pf(h));if(m)return o.state.loading|=4,o.instance=m,Bn(m),m;u=cI(a),(h=Rr.get(h))&&yv(u,h),m=(s.ownerDocument||s).createElement("link"),Bn(m);var w=m;return w._p=new Promise(function(A,z){w.onload=A,w.onerror=z}),ss(m,"link",u),o.state.loading|=4,vh(m,a.precedence,s),o.instance=m;case"script":return m=zl(a.src),(h=s.querySelector(kf(m)))?(o.instance=h,Bn(h),h):(u=a,(h=Rr.get(m))&&(u=g({},a),vv(u,h)),s=s.ownerDocument||s,h=s.createElement("script"),Bn(h),ss(h,"link",u),s.head.appendChild(h),o.instance=h);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(u=o.instance,o.state.loading|=4,vh(u,a.precedence,s));return o.instance}function vh(s,o,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,m=h,w=0;w title"):null)}function TU(s,o,a){if(a===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(s=o.disabled,typeof o.precedence=="string"&&s==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function dI(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function OU(s,o,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=$l(u.href),m=o.querySelector(Pf(h));if(m){o=m._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=Sh.bind(s),o.then(s,s)),a.state.loading|=4,a.instance=m,Bn(m);return}m=o.ownerDocument||o,u=cI(u),(h=Rr.get(h))&&yv(u,h),m=m.createElement("link"),Bn(m);var w=m;w._p=new Promise(function(A,z){w.onload=A,w.onerror=z}),ss(m,"link",u),a.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(a,o),(o=a.state.preload)&&(a.state.loading&3)===0&&(s.count++,a=Sh.bind(s),o.addEventListener("load",a),o.addEventListener("error",a))}}var bv=0;function MU(s,o){return s.stylesheets&&s.count===0&&Eh(s,s.stylesheets),0bv?50:800)+o);return s.unsuspend=a,function(){s.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function Sh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eh(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var _h=null;function Eh(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,_h=new Map,o.forEach(DU,s),_h=null,Sh.call(s))}function DU(s,o){if(!(o.state.loading&4)){var a=_h.get(s);if(a)var u=a.get(null);else{a=new Map,_h.set(s,a);for(var h=s.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Uv.exports=Mj(),Uv.exports}var Pj=Dj();const kj=oD(Pj);var Hv={exports:{}},qv={};var hT;function Nj(){if(hT)return qv;hT=1;var e=bu().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return qv.c=function(t){return e.H.useMemoCache(t)},qv}var mT;function Lj(){return mT||(mT=1,Hv.exports=Nj()),Hv.exports}var qt=Lj();const BD=M.createContext(void 0);function $j(e,t){try{const n=localStorage.getItem(e);if(n==="light"||n==="dark"||n==="system")return n}catch{}return t}function zj(e){const t=qt.c(14),{children:n,defaultTheme:r,storageKey:i}=e,c=r===void 0?"system":r,l=i===void 0?"ui-theme":i;let f;t[0]!==c||t[1]!==l?(f=()=>$j(l,c),t[0]=c,t[1]=l,t[2]=f):f=t[2];const[d,p]=M.useState(f);let v,g;t[3]!==d?(v=()=>{const R=window.document.documentElement;if(R.classList.remove("light","dark"),d==="system"){const C=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";R.classList.add(C);return}R.classList.add(d)},g=[d],t[3]=d,t[4]=v,t[5]=g):(v=t[4],g=t[5]),M.useEffect(v,g);let b;t[6]!==l?(b=R=>{try{localStorage.setItem(l,R)}catch{}p(R)},t[6]=l,t[7]=b):b=t[7];let _;t[8]!==b||t[9]!==d?(_={theme:d,setTheme:b},t[8]=b,t[9]=d,t[10]=_):_=t[10];const E=_;let x;return t[11]!==n||t[12]!==E?(x=k.jsx(BD.Provider,{value:E,children:n}),t[11]=n,t[12]=E,t[13]=x):x=t[13],x}function Bj(){const e=M.useContext(BD);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function Yb(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const od={};function ag(e,t,n,r,i){let c={...Xb(e,od)};return t&&(c=ed(c,t)),n&&(c=ed(c,n)),r&&(c=ed(c,r)),i&&(c=ed(c,i)),c}function Uj(e){if(e.length===0)return od;if(e.length===1)return Xb(e[0],od);let t={...Xb(e[0],od)};for(let n=1;n=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function UD(e){return typeof e=="function"}function Xb(e,t){return UD(e)?e(t):e??od}function Hj(e,t){return t?e?n=>{if(qj(n)){const i=n;Wb(i);const c=t(i);return i.baseUIHandlerPrevented||e?.(i),c}const r=t(n);return e?.(n),r}:t:e}function Wb(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function jD(e,t){return t?e?t+" "+e:t:e}function qj(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function hi(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const gT={};function $r(e,t){const n=M.useRef(gT);return n.current===gT&&(n.current=e(t)),n}function xm(e,t,n,r){const i=$r(VD).current;return Gj(i,e,t,n,r)&&HD(i,[e,t,n,r]),i.callback}function Fj(e){const t=$r(VD).current;return Kj(t,e)&&HD(t,e),t.callback}function VD(){return{callback:null,cleanup:null,refs:[]}}function Gj(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Kj(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function HD(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i{for(let i=0;i=e}function yT(e){if(!M.isValidElement(e))return null;const t=e,n=t.props;return(KS(19)?n?.ref:t.ref)??null}function Qj(e,t){const n={};for(const r in e){const i=e[r];if(t?.hasOwnProperty(r)){const c=t[r](i);c!=null&&Object.assign(n,c);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Yj(e,t){return typeof e=="function"?e(t):e}function Xj(e,t){return typeof e=="function"?e(t):e}function qD(){}const iMe=Object.freeze([]),or=Object.freeze({}),Wj={style:{transition:"none"}},Jj="data-base-ui-click-trigger",aMe={fallbackAxisSide:"none"},e9={fallbackAxisSide:"end"},t9={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function zr(e,t,n={}){const r=t.render,i=n9(t,n);if(n.enabled===!1)return null;const c=n.state??or;return r9(e,r,i,c)}function n9(e,t={}){const{className:n,style:r,render:i}=e,{state:c=or,ref:l,props:f,stateAttributesMapping:d,enabled:p=!0}=t,v=p?Yj(n,c):void 0,g=p?Xj(r,c):void 0,b=p?Qj(c,d):or,_=p?Yb(b,Array.isArray(f)?Uj(f):f)??or:or;return typeof document<"u"&&(p?Array.isArray(l)?_.ref=Fj([_.ref,yT(i),...l]):_.ref=xm(_.ref,yT(i),l):xm(null,null)),p?(v!==void 0&&(_.className=jD(_.className,v)),g!==void 0&&(_.style=Yb(_.style,g)),_):or}const s9=Symbol.for("react.lazy");function r9(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=ag(n,t.props);i.ref=n.ref;let c=t;return c?.$$typeof===s9&&(c=M.Children.toArray(t)[0]),M.cloneElement(c,i)}if(e&&typeof e=="string")return o9(e,n);throw new Error(hi(8))}function o9(e,t){return e==="button"?M.createElement("button",{type:"button",...t,key:t.key}):e==="img"?M.createElement("img",{alt:"",...t,key:t.key}):M.createElement(e,t)}function FD(e){return zr(e.defaultTagName??"div",e,e)}function GD(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,bT=KD,ZD=(e,t)=>n=>{var r;if(t?.variants==null)return bT(e,n?.class,n?.className);const{variants:i,defaultVariants:c}=t,l=Object.keys(i).map(p=>{const v=n?.[p],g=c?.[p];if(v===null)return null;const b=vT(v)||vT(g);return i[p][b]}),f=n&&Object.entries(n).reduce((p,v)=>{let[g,b]=v;return b===void 0||(p[g]=b),p},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:g,className:b,..._}=v;return Object.entries(_).every(E=>{let[x,R]=E;return Array.isArray(R)?R.includes({...c,...f}[x]):{...c,...f}[x]===R})?[...p,g,b]:p},[]);return bT(e,l,d,n?.class,n?.className)};const QD=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const i9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const a9=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const ST=e=>{const t=a9(e);return t.charAt(0).toUpperCase()+t.slice(1)};var c9={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"};const l9=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const u9=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:l,...f},d)=>M.createElement("svg",{ref:d,...c9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:QD("lucide",i),...!c&&!l9(f)&&{"aria-hidden":"true"},...f},[...l.map(([p,v])=>M.createElement(p,v)),...Array.isArray(c)?c:[c]]));const Ss=(e,t)=>{const n=M.forwardRef(({className:r,...i},c)=>M.createElement(u9,{ref:c,iconNode:t,className:QD(`lucide-${i9(ST(e))}`,`lucide-${e}`,r),...i}));return n.displayName=ST(e),n};const f9=[["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"}]],d9=Ss("camera",f9);const p9=[["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"}]],h9=Ss("circle-alert",p9);const m9=[["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"}]],g9=Ss("hard-drive",m9);const y9=[["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"}]],v9=Ss("house",y9);const b9=[["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"}]],S9=Ss("image",b9);const _9=[["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"}]],E9=Ss("key",_9);const x9=[["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"}]],w9=Ss("layout-grid",x9);const R9=[["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"}]],C9=Ss("log-out",R9);const A9=[["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"}]],I9=Ss("moon",A9);const T9=[["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"}]],O9=Ss("network",T9);const M9=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],D9=Ss("panel-left",M9);const P9=[["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"}]],_T=Ss("server",P9);const k9=[["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"}]],N9=Ss("shield",k9);const L9=[["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"}]],$9=Ss("sun",L9);const z9=[["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"}]],B9=Ss("users",z9);const U9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],j9=Ss("x",U9);function cg(){return typeof window<"u"}function Ma(e){return ZS(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wo(e){var t;return(t=(ZS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ZS(e){return cg()?e instanceof Node||e instanceof Pn(e).Node:!1}function Lt(e){return cg()?e instanceof Element||e instanceof Pn(e).Element:!1}function On(e){return cg()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function Jb(e){return!cg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const V9=new Set(["inline","contents"]);function Da(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!V9.has(i)}const H9=new Set(["table","td","th"]);function q9(e){return H9.has(Ma(e))}const F9=[":popover-open",":modal"];function lg(e){return F9.some(t=>{try{return e.matches(t)}catch{return!1}})}const G9=["transform","translate","scale","rotate","perspective"],K9=["transform","translate","scale","rotate","perspective","filter"],Z9=["paint","layout","strict","content"];function QS(e){const t=ug(),n=Lt(e)?cr(e):e;return G9.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||K9.some(r=>(n.willChange||"").includes(r))||Z9.some(r=>(n.contain||"").includes(r))}function Q9(e){let t=ui(e);for(;On(t)&&!ci(t);){if(QS(t))return t;if(lg(t))return null;t=ui(t)}return null}function ug(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Y9=new Set(["html","body","#document"]);function ci(e){return Y9.has(Ma(e))}function cr(e){return Pn(e).getComputedStyle(e)}function fg(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ui(e){if(Ma(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jb(e)&&e.host||wo(e);return Jb(t)?t.host:t}function YD(e){const t=ui(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&Da(t)?t:YD(t)}function Ra(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=YD(e),c=i===((r=e.ownerDocument)==null?void 0:r.body),l=Pn(i);if(c){const f=eS(l);return t.concat(l,l.visualViewport||[],Da(i)?i:[],f&&n?Ra(f):[])}return t.concat(i,Ra(i,[],n))}function eS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Fv=DS[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],X9=Fv&&Fv!==M.useLayoutEffect?Fv:e=>e();function Ke(e){const t=$r(W9).current;return t.next=e,X9(t.effect),t.trampoline}function W9(){const e={next:void 0,callback:J9,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function J9(){}const eV={...DS},tV=()=>{},Ct=typeof document<"u"?M.useLayoutEffect:tV,nV=M.createContext(void 0);function sV(e=!1){const t=M.useContext(nV);if(t===void 0&&!e)throw new Error(hi(16));return t}function rV(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:c}=e,l=r&&t!==!1,f=r&&t===!1;return{props:M.useMemo(()=>{const p={onKeyDown(v){n&&t&&v.key!=="Tab"&&v.preventDefault()}};return r||(p.tabIndex=i,!c&&n&&(p.tabIndex=t?i:-1)),(c&&(t||l)||!c&&n)&&(p["aria-disabled"]=n),c&&(!t||f)&&(p.disabled=n),p},[r,n,t,l,f,c,i])}}function XD(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,c=M.useRef(null),l=sV(!0)!==void 0,f=Ke(()=>{const b=c.current;return!!(b?.tagName==="A"&&b?.href)}),{props:d}=rV({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),p=M.useCallback(()=>{const b=c.current;oV(b)&&l&&t&&d.disabled===void 0&&b.disabled&&(b.disabled=!1)},[t,d.disabled,l]);Ct(p,[p]);const v=M.useCallback((b={})=>{const{onClick:_,onMouseDown:E,onKeyUp:x,onKeyDown:R,onPointerDown:C,...T}=b;return ag({type:i?"button":void 0,onClick(I){if(t){I.preventDefault();return}_?.(I)},onMouseDown(I){t||E?.(I)},onKeyDown(I){if(t||(Wb(I),R?.(I)),I.baseUIHandlerPrevented)return;const B=I.target===I.currentTarget&&!i&&!f()&&!t,j=I.key==="Enter",V=I.key===" ";B&&((V||j)&&I.preventDefault(),j&&_?.(I))},onKeyUp(I){t||(Wb(I),x?.(I)),!I.baseUIHandlerPrevented&&I.target===I.currentTarget&&!i&&!t&&I.key===" "&&_?.(I)},onPointerDown(I){if(t){I.preventDefault();return}C?.(I)}},i?void 0:{role:"button"},d,T)},[t,d,i,f]),g=Ke(b=>{c.current=b,p()});return{getButtonProps:v,buttonRef:g}}function oV(e){return On(e)&&e.tagName==="BUTTON"}const iV=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,...d}=t,{getButtonProps:p,buttonRef:v}=XD({disabled:c,focusableWhenDisabled:l,native:f});return zr("button",t,{state:{disabled:c},ref:[n,v],props:[d,p]})}),aV=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),WD=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),wm="-",ET=[],lV="arbitrary..",uV=e=>{const t=dV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return fV(l);const f=l.split(wm),d=f[0]===""&&f.length>1?1:0;return JD(f,d,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const d=r[l],p=n[l];return d?p?aV(p,d):d:p||ET}return n[l]||ET}}},JD=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],c=n.nextPart.get(i);if(c){const p=JD(e,t+1,c);if(p)return p}const l=n.validators;if(l===null)return;const f=t===0?e.join(wm):e.slice(t).join(wm),d=l.length;for(let p=0;pe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?lV+r:void 0})(),dV=e=>{const{theme:t,classGroups:n}=e;return pV(n,t)},pV=(e,t)=>{const n=WD();for(const r in e){const i=e[r];YS(i,n,r,t)}return n},YS=(e,t,n,r)=>{const i=e.length;for(let c=0;c{if(typeof e=="string"){mV(e,t,n);return}if(typeof e=="function"){gV(e,t,n,r);return}yV(e,t,n,r)},mV=(e,t,n)=>{const r=e===""?t:eP(t,e);r.classGroupId=n},gV=(e,t,n,r)=>{if(vV(e)){YS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(cV(n,e))},yV=(e,t,n,r)=>{const i=Object.entries(e),c=i.length;for(let l=0;l{let n=e;const r=t.split(wm),i=r.length;for(let c=0;c"isThemeGetter"in e&&e.isThemeGetter===!0,bV=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(c,l)=>{n[c]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(c){let l=n[c];if(l!==void 0)return l;if((l=r[c])!==void 0)return i(c,l),l},set(c,l){c in n?n[c]=l:i(c,l)}}},tS="!",xT=":",SV=[],wT=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),_V=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const c=[];let l=0,f=0,d=0,p;const v=i.length;for(let x=0;xd?p-d:void 0;return wT(c,_,b,E)};if(t){const i=t+xT,c=r;r=l=>l.startsWith(i)?c(l.slice(i.length)):wT(SV,!1,l,void 0,!0)}if(n){const i=r;r=c=>n({className:c,parseClassName:i})}return r},EV=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let c=0;c0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},xV=e=>({cache:bV(e.cacheSize),parseClassName:_V(e),sortModifiers:EV(e),...uV(e)}),wV=/\s+/,RV=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:c}=t,l=[],f=e.trim().split(wV);let d="";for(let p=f.length-1;p>=0;p-=1){const v=f[p],{isExternal:g,modifiers:b,hasImportantModifier:_,baseClassName:E,maybePostfixModifierPosition:x}=n(v);if(g){d=v+(d.length>0?" "+d:d);continue}let R=!!x,C=r(R?E.substring(0,x):E);if(!C){if(!R){d=v+(d.length>0?" "+d:d);continue}if(C=r(E),!C){d=v+(d.length>0?" "+d:d);continue}R=!1}const T=b.length===0?"":b.length===1?b[0]:c(b).join(":"),P=_?T+tS:T,I=P+C;if(l.indexOf(I)>-1)continue;l.push(I);const B=i(C,R);for(let j=0;j0?" "+d:d)}return d},CV=(...e)=>{let t=0,n,r,i="";for(;t{if(typeof e=="string")return e;let t,n="";for(let r=0;r{let n,r,i,c;const l=d=>{const p=t.reduce((v,g)=>g(v),e());return n=xV(p),r=n.cache.get,i=n.cache.set,c=f,f(d)},f=d=>{const p=r(d);if(p)return p;const v=RV(d,n);return i(d,v),v};return c=l,(...d)=>c(CV(...d))},IV=[],$n=e=>{const t=n=>n[e]||IV;return t.isThemeGetter=!0,t},nP=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TV=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,OV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MV=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PV=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,aa=e=>TV.test(e),rt=e=>!!e&&!Number.isNaN(Number(e)),ca=e=>!!e&&Number.isInteger(Number(e)),Gv=e=>e.endsWith("%")&&rt(e.slice(0,-1)),ei=e=>OV.test(e),rP=()=>!0,NV=e=>MV.test(e)&&!DV.test(e),XS=()=>!1,LV=e=>PV.test(e),$V=e=>kV.test(e),zV=e=>!Le(e)&&!$e(e),BV=e=>Pa(e,aP,XS),Le=e=>nP.test(e),Sc=e=>Pa(e,cP,NV),RT=e=>Pa(e,KV,rt),UV=e=>Pa(e,uP,rP),jV=e=>Pa(e,lP,XS),CT=e=>Pa(e,oP,XS),VV=e=>Pa(e,iP,$V),kh=e=>Pa(e,fP,LV),$e=e=>sP.test(e),Ff=e=>Uc(e,cP),HV=e=>Uc(e,lP),AT=e=>Uc(e,oP),qV=e=>Uc(e,aP),FV=e=>Uc(e,iP),Nh=e=>Uc(e,fP,!0),GV=e=>Uc(e,uP,!0),Pa=(e,t,n)=>{const r=nP.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Uc=(e,t,n=!1)=>{const r=sP.exec(e);return r?r[1]?t(r[1]):n:!1},oP=e=>e==="position"||e==="percentage",iP=e=>e==="image"||e==="url",aP=e=>e==="length"||e==="size"||e==="bg-size",cP=e=>e==="length",KV=e=>e==="number",lP=e=>e==="family-name",uP=e=>e==="number"||e==="weight",fP=e=>e==="shadow",ZV=()=>{const e=$n("color"),t=$n("font"),n=$n("text"),r=$n("font-weight"),i=$n("tracking"),c=$n("leading"),l=$n("breakpoint"),f=$n("container"),d=$n("spacing"),p=$n("radius"),v=$n("shadow"),g=$n("inset-shadow"),b=$n("text-shadow"),_=$n("drop-shadow"),E=$n("blur"),x=$n("perspective"),R=$n("aspect"),C=$n("ease"),T=$n("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...I(),$e,Le],j=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],N=()=>[$e,Le,d],Q=()=>[aa,"full","auto",...N()],ne=()=>[ca,"none","subgrid",$e,Le],te=()=>["auto",{span:["full",ca,$e,Le]},ca,$e,Le],F=()=>[ca,"auto",$e,Le],oe=()=>["auto","min","max","fr",$e,Le],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],re=()=>[aa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],J=()=>[aa,"screen","full","dvw","lvw","svw","min","max","fit",...N()],ve=()=>[aa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],ue=()=>[e,$e,Le],$=()=>[...I(),AT,CT,{position:[$e,Le]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",qV,BV,{size:[$e,Le]}],Ee=()=>[Gv,Ff,Sc],xe=()=>["","none","full",p,$e,Le],Se=()=>["",rt,Ff,Sc],Oe=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[rt,Gv,AT,CT],tt=()=>["","none",E,$e,Le],kt=()=>["none",rt,$e,Le],he=()=>["none",rt,$e,Le],Re=()=>[rt,$e,Le],_e=()=>[aa,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ei],breakpoint:[ei],color:[rP],container:[ei],"drop-shadow":[ei],ease:["in","out","in-out"],font:[zV],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ei],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ei],shadow:[ei],spacing:["px",rt],text:[ei],"text-shadow":[ei],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",aa,Le,$e,R]}],container:["container"],columns:[{columns:[rt,Le,$e,f]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[ca,"auto",$e,Le]}],basis:[{basis:[aa,"full","auto",f,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,aa,"auto","initial","none",Le]}],grow:[{grow:["",rt,$e,Le]}],shrink:[{shrink:["",rt,$e,Le]}],order:[{order:[ca,"first","last","none",$e,Le]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[f,"screen",...re()]}],"min-w":[{"min-w":[f,"screen","none",...re()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,Ff,Sc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,GV,UV]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gv,Le]}],"font-family":[{font:[HV,jV,t]}],"font-features":[{"font-features":[Le]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,$e,Le]}],"line-clamp":[{"line-clamp":[rt,"none",$e,RT]}],leading:[{leading:[c,...N()]}],"list-image":[{"list-image":["none",$e,Le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$e,Le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ue()}],"text-color":[{text:ue()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[rt,"from-font","auto",$e,Sc]}],"text-decoration-color":[{decoration:ue()}],"underline-offset":[{"underline-offset":[rt,"auto",$e,Le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$e,Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$e,Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ca,$e,Le],radial:["",$e,Le],conic:[ca,$e,Le]},FV,VV]}],"bg-color":[{bg:ue()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:ue()}],"gradient-via":[{via:ue()}],"gradient-to":[{to:ue()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Oe(),"hidden","none"]}],"divide-style":[{divide:[...Oe(),"hidden","none"]}],"border-color":[{border:ue()}],"border-color-x":[{"border-x":ue()}],"border-color-y":[{"border-y":ue()}],"border-color-s":[{"border-s":ue()}],"border-color-e":[{"border-e":ue()}],"border-color-bs":[{"border-bs":ue()}],"border-color-be":[{"border-be":ue()}],"border-color-t":[{"border-t":ue()}],"border-color-r":[{"border-r":ue()}],"border-color-b":[{"border-b":ue()}],"border-color-l":[{"border-l":ue()}],"divide-color":[{divide:ue()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rt,$e,Le]}],"outline-w":[{outline:["",rt,Ff,Sc]}],"outline-color":[{outline:ue()}],shadow:[{shadow:["","none",v,Nh,kh]}],"shadow-color":[{shadow:ue()}],"inset-shadow":[{"inset-shadow":["none",g,Nh,kh]}],"inset-shadow-color":[{"inset-shadow":ue()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ue()}],"ring-offset-w":[{"ring-offset":[rt,Sc]}],"ring-offset-color":[{"ring-offset":ue()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":ue()}],"text-shadow":[{"text-shadow":["none",b,Nh,kh]}],"text-shadow-color":[{"text-shadow":ue()}],opacity:[{opacity:[rt,$e,Le]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":ue()}],"mask-image-linear-to-color":[{"mask-linear-to":ue()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":ue()}],"mask-image-t-to-color":[{"mask-t-to":ue()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":ue()}],"mask-image-r-to-color":[{"mask-r-to":ue()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":ue()}],"mask-image-b-to-color":[{"mask-b-to":ue()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":ue()}],"mask-image-l-to-color":[{"mask-l-to":ue()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":ue()}],"mask-image-x-to-color":[{"mask-x-to":ue()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":ue()}],"mask-image-y-to-color":[{"mask-y-to":ue()}],"mask-image-radial":[{"mask-radial":[$e,Le]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":ue()}],"mask-image-radial-to-color":[{"mask-radial-to":ue()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":ue()}],"mask-image-conic-to-color":[{"mask-conic-to":ue()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$e,Le]}],filter:[{filter:["","none",$e,Le]}],blur:[{blur:tt()}],brightness:[{brightness:[rt,$e,Le]}],contrast:[{contrast:[rt,$e,Le]}],"drop-shadow":[{"drop-shadow":["","none",_,Nh,kh]}],"drop-shadow-color":[{"drop-shadow":ue()}],grayscale:[{grayscale:["",rt,$e,Le]}],"hue-rotate":[{"hue-rotate":[rt,$e,Le]}],invert:[{invert:["",rt,$e,Le]}],saturate:[{saturate:[rt,$e,Le]}],sepia:[{sepia:["",rt,$e,Le]}],"backdrop-filter":[{"backdrop-filter":["","none",$e,Le]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[rt,$e,Le]}],"backdrop-contrast":[{"backdrop-contrast":[rt,$e,Le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rt,$e,Le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rt,$e,Le]}],"backdrop-invert":[{"backdrop-invert":["",rt,$e,Le]}],"backdrop-opacity":[{"backdrop-opacity":[rt,$e,Le]}],"backdrop-saturate":[{"backdrop-saturate":[rt,$e,Le]}],"backdrop-sepia":[{"backdrop-sepia":["",rt,$e,Le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$e,Le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rt,"initial",$e,Le]}],ease:[{ease:["linear","initial",C,$e,Le]}],delay:[{delay:[rt,$e,Le]}],animate:[{animate:["none",T,$e,Le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,$e,Le]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:kt()}],"rotate-x":[{"rotate-x":kt()}],"rotate-y":[{"rotate-y":kt()}],"rotate-z":[{"rotate-z":kt()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:Re()}],"skew-x":[{"skew-x":Re()}],"skew-y":[{"skew-y":Re()}],transform:[{transform:[$e,Le,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":["translate-none"],accent:[{accent:ue()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ue()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$e,Le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$e,Le]}],fill:[{fill:["none",...ue()]}],"stroke-w":[{stroke:[rt,Ff,Sc,RT]}],stroke:[{stroke:["none",...ue()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QV=AV(ZV);function bn(...e){return QV(KD(e))}function cMe(e){return e?new Date(e).toLocaleString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"Unknown"}function lMe(e){if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(2)} ${t[n]}`}const YV=/\/$/;function uMe(e){return e.replace(YV,"")}function XV(e){return e&&(e.endsWith("/")?e:`${e}/`)}function WV(e,t){return e.startsWith(t)?e:`${t}${e}`}function fMe(e,t){return e.startsWith(t)?e.slice(t.length):e}const JV=ZD("group/button inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md border border-transparent bg-clip-padding font-medium text-xs/relaxed outline-none transition-all focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function cu(e){const t=qt.c(12);let n,r,i,c;t[0]!==e?({className:n,variant:i,size:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c):(n=t[1],r=t[2],i=t[3],c=t[4]);const l=i===void 0?"default":i,f=c===void 0?"default":c;let d;t[5]!==n||t[6]!==f||t[7]!==l?(d=bn(JV({variant:l,size:f,className:n})),t[5]=n,t[6]=f,t[7]=l,t[8]=d):d=t[8];let p;return t[9]!==r||t[10]!==d?(p=k.jsx(iV,{className:d,"data-slot":"button",...r}),t[9]=r,t[10]=d,t[11]=p):p=t[11],p}let IT=0;function eH(e,t="mui"){const[n,r]=M.useState(e),i=e||n;return M.useEffect(()=>{n==null&&(IT+=1,r(`${t}-${IT}`))},[n,t]),i}const TT=eV.useId;function Od(e,t){if(TT!==void 0){const n=TT();return e??(t?`${t}-${n}`:n)}return eH(e,t)}function WS(e){return Od(e,"base-ui")}const tH=[];function JS(e){M.useEffect(e,tH)}const Gf=0;class Eo{static create(){return new Eo}currentId=Gf;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Gf,n()},t)}isStarted(){return this.currentId!==Gf}clear=()=>{this.currentId!==Gf&&(clearTimeout(this.currentId),this.currentId=Gf)};disposeEffect=()=>this.clear}function lu(){const e=$r(Eo.create).current;return JS(e.disposeEffect),e}function sn(e){return e?.ownerDocument||document}const Su=typeof navigator<"u",Kv=sH(),dP=oH(),pP=rH(),hP=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),mP=Kv.platform==="MacIntel"&&Kv.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Kv.platform),gP=Su&&/apple/i.test(navigator.vendor),nS=Su&&/android/i.test(dP)||/android/i.test(pP),nH=Su&&dP.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,yP=pP.includes("jsdom/");function sH(){if(!Su)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function rH(){if(!Su)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function oH(){if(!Su)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const sS="data-base-ui-focusable",vP="active",bP="selected",SP="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",dMe="ArrowLeft",pMe="ArrowRight",hMe="ArrowUp",mMe="ArrowDown";function si(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function At(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Jb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Rm(e,t){if(!Lt(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(At(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function js(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Yr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function iH(e){return e.matches("html,body")}function e_(e){return On(e)&&e.matches(SP)}function OT(e){return e?e.getAttribute("role")==="combobox"&&e_(e):!1}function aH(e){if(!e||yP)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function rS(e){return e?e.hasAttribute(sS)?e:e.querySelector(`[${sS}]`)||e:null}function Ic(e,t,n=!0){return e.filter(i=>i.parentId===t&&(!n||i.context?.open)).flatMap(i=>[i,...Ic(e,i.id,n)])}function MT(e,t){let n=[],r=e.find(i=>i.id===t)?.parentId;for(;r;){const i=e.find(c=>c.id===r);r=i?.parentId,i&&(n=n.concat(i))}return n}function cH(e){e.preventDefault(),e.stopPropagation()}function lH(e){return"nativeEvent"in e}function uH(e){return e.pointerType===""&&e.isTrusted?!0:nS&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fH(e){return yP?!1:!nS&&e.width===0&&e.height===0||nS&&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 vd(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function dH(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const pH=["top","right","bottom","left"],uu=Math.min,rr=Math.max,Cm=Math.round,Lh=Math.floor,mo=e=>({x:e,y:e}),hH={left:"right",right:"left",bottom:"top",top:"bottom"},mH={start:"end",end:"start"};function oS(e,t,n){return rr(e,uu(t,n))}function fi(e,t){return typeof e=="function"?e(t):e}function qs(e){return e.split("-")[0]}function ka(e){return e.split("-")[1]}function t_(e){return e==="x"?"y":"x"}function n_(e){return e==="y"?"height":"width"}const gH=new Set(["top","bottom"]);function Lr(e){return gH.has(qs(e))?"y":"x"}function s_(e){return t_(Lr(e))}function yH(e,t,n){n===void 0&&(n=!1);const r=ka(e),i=s_(e),c=n_(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=Am(l)),[l,Am(l)]}function vH(e){const t=Am(e);return[iS(e),t,iS(t)]}function iS(e){return e.replace(/start|end/g,t=>mH[t])}const DT=["left","right"],PT=["right","left"],bH=["top","bottom"],SH=["bottom","top"];function _H(e,t,n){switch(e){case"top":case"bottom":return n?t?PT:DT:t?DT:PT;case"left":case"right":return t?bH:SH;default:return[]}}function EH(e,t,n,r){const i=ka(e);let c=_H(qs(e),n==="start",r);return i&&(c=c.map(l=>l+"-"+i),t&&(c=c.concat(c.map(iS)))),c}function Am(e){return e.replace(/left|right|bottom|top/g,t=>hH[t])}function xH(e){return{top:0,right:0,bottom:0,left:0,...e}}function _P(e){return typeof e!="number"?xH(e):{top:e,right:e,bottom:e,left:e}}function Im(e){const{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}}var wH=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Tm=wH.join(","),EP=typeof Element>"u",fu=EP?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Om=!EP&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Mm=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),c=i===""||i==="true",l=c||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Mm(t.parentNode));return l},RH=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},xP=function(t,n,r){if(Mm(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Tm));return n&&fu.call(t,Tm)&&i.unshift(t),i=i.filter(r),i},Dm=function(t,n,r){for(var i=[],c=Array.from(t);c.length;){var l=c.shift();if(!Mm(l,!1))if(l.tagName==="SLOT"){var f=l.assignedElements(),d=f.length?f:l.children,p=Dm(d,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:l,candidates:p})}else{var v=fu.call(l,Tm);v&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),b=!Mm(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&b){var _=Dm(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,_):i.push({scopeParent:l,candidates:_})}else c.unshift.apply(c,l.children)}}return i},wP=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},RP=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||RH(t))&&!wP(t)?0:t.tabIndex},CH=function(t,n){var r=RP(t);return r<0&&n&&!wP(t)?0:r},AH=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},CP=function(t){return t.tagName==="INPUT"},IH=function(t){return CP(t)&&t.type==="hidden"},TH=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},OH=function(t,n){for(var r=0;rsummary:first-of-type"),f=l?t.parentElement:t;if(fu.call(f,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var d=t;t;){var p=t.parentElement,v=Om(t);if(p&&!p.shadowRoot&&i(p)===!0)return kT(t);t.assignedSlot?t=t.assignedSlot:!p&&v!==t.ownerDocument?t=v.host:t=p}t=d}if(kH(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return kT(t);return!1},LH=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},AP=function(t){var n=[],r=[];return t.forEach(function(i,c){var l=!!i.scopeParent,f=l?i.scopeParent:i,d=CH(f,l),p=l?AP(i.candidates):f;d===0?l?n.push.apply(n,p):n.push(f):r.push({documentOrder:c,tabIndex:d,item:i,isScope:l,content:p})}),r.sort(AH).reduce(function(i,c){return c.isScope?i.push.apply(i,c.content):i.push(c.content),i},[]).concat(n)},dg=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Dm([t],n.includeContainer,{filter:cS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:$H}):r=xP(t,n.includeContainer,cS.bind(null,n)),AP(r)},zH=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Dm([t],n.includeContainer,{filter:aS.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=xP(t,n.includeContainer,aS.bind(null,n)),r},IP=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return fu.call(t,Tm)===!1?!1:cS(n,t)};const Md=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function TP(e,t){const n=dg(e,Md()),r=n.length;if(r===0)return;const i=si(sn(e)),c=n.indexOf(i),l=c===-1?t===1?0:r-1:c+t;return n[l]}function OP(e){return TP(sn(e).body,1)||e}function MP(e){return TP(sn(e).body,-1)||e}function id(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!At(n,r)}function BH(e){dg(e,Md()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function NT(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const $h=null;class UH{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const zh=new UH;class po{static create(){return new po}static request(t){return zh.request(t)}static cancel(t){return zh.cancel(t)}currentId=$h;request(t){this.cancel(),this.currentId=zh.request(()=>{this.currentId=$h,t()})}cancel=()=>{this.currentId!==$h&&(zh.cancel(this.currentId),this.currentId=$h)};disposeEffect=()=>this.cancel}function DP(){const e=$r(po.create).current;return JS(e.disposeEffect),e}function ni(e){return e==null?e:"current"in e?e.current:e}let bd=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const jH={[bd.startingStyle]:""},VH={[bd.endingStyle]:""},r_={transitionStatus(e){return e==="starting"?jH:e==="ending"?VH:null}};function HH(e,t=!1,n=!0){const r=DP();return Ke((i,c=null)=>{r.cancel();function l(){Oa.flushSync(i)}const f=ni(e);if(f==null)return;const d=f;if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{let p=function(){const g=bd.startingStyle;if(!d.hasAttribute(g)){r.request(v);return}const b=new MutationObserver(()=>{d.hasAttribute(g)||(b.disconnect(),v())});b.observe(d,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>b.disconnect(),{once:!0})},v=function(){Promise.all(d.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||l()}).catch(()=>{const g=d.getAnimations();if(n){if(c?.aborted)return;l()}else g.length>0&&g.some(b=>b.pending||b.playState!=="finished")&&v()})};if(t){p();return}r.request(v)}})}function o_(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,c=Ke(i),l=HH(r,n,!1);M.useEffect(()=>{if(!t)return;const f=new AbortController;return l(c,f.signal),()=>{f.abort()}},[t,n,c,l])}function qH(e,t=!1,n=!1){const[r,i]=M.useState(e&&t?"idle":void 0),[c,l]=M.useState(e);return e&&!c&&(l(!0),i("starting")),!e&&c&&r!=="ending"&&!n&&i("ending"),!e&&!c&&r==="ending"&&i(void 0),Ct(()=>{if(!e&&c&&r!=="ending"&&n){const f=po.request(()=>{i("ending")});return()=>{po.cancel(f)}}},[e,c,r,n]),Ct(()=>{if(!e||t)return;const f=po.request(()=>{i(void 0)});return()=>{po.cancel(f)}},[t,e]),Ct(()=>{if(!e||!t)return;e&&c&&r!=="idle"&&i("starting");const f=po.request(()=>{i("idle")});return()=>{po.cancel(f)}},[t,e,c,i,r]),M.useMemo(()=>({mounted:c,setMounted:l,transitionStatus:r}),[c,r])}const i_="none",Pm="trigger-press",no="trigger-hover",om="trigger-focus",PP="outside-press",gMe="item-press",FH="close-press",kP="focus-out",a_="escape-key",yMe="list-navigation",vMe="cancel-open",GH="disabled",NP="imperative-action",bMe="window-resize";function ln(e,t,n,r){let i=!1,c=!1;const l=or;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){c=!0},get isCanceled(){return i},get isPropagationAllowed(){return c},trigger:n,...l}}const LP=M.createContext(void 0);function jc(e){const t=M.useContext(LP);if(e===!1&&t===void 0)throw new Error(hi(27));return t}let Rc=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=bd.startingStyle]="startingStyle",e[e.endingStyle=bd.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),km=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const KH={[km.popupOpen]:""},ZH={[km.popupOpen]:"",[km.pressed]:""},QH={[Rc.open]:""},YH={[Rc.closed]:""},XH={[Rc.anchorHidden]:""},WH={open(e){return e?KH:null}},SMe={open(e){return e?ZH:null}},Dd={open(e){return e?QH:YH},anchorHidden(e){return e?XH:null}},JH={...Dd,...r_},e7=M.forwardRef(function(t,n){const{render:r,className:i,forceRender:c=!1,...l}=t,{store:f}=jc(),d=f.useState("open"),p=f.useState("nested"),v=f.useState("mounted"),g=f.useState("transitionStatus");return zr("div",t,{state:{open:d,transitionStatus:g},ref:[f.context.backdropRef,n],stateAttributesMapping:JH,props:[{role:"presentation",hidden:!v,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!p})}),t7=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,nativeButton:l=!0,...f}=t,{store:d}=jc(),p=d.useState("open");function v(E){p&&d.setOpen(!1,ln(FH,E.nativeEvent))}const{getButtonProps:g,buttonRef:b}=XD({disabled:c,native:l});return zr("button",t,{state:{disabled:c},ref:[n,b],props:[{onClick:v},f,g]})}),n7=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=jc(),d=WS(c);return f.useSyncedValueWithCleanup("descriptionElementId",d),zr("p",t,{ref:n,props:[{id:d},l]})});function ho(e){const t=$r(s7,e).current;return t.next=e,Ct(t.effect),t}function s7(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function r7(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(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)}}}const o7=M.createContext(null),i7=M.createContext(null),pg=()=>M.useContext(o7)?.id||null,Pd=e=>{const t=M.useContext(i7);return e??t};function du(e){return`data-base-ui-${e}`}function im(e,t,n){if(n&&!vd(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const $P=M.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Eo,currentIdRef:{current:null},currentContextRef:{current:null}});function a7(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=M.useRef(n),c=M.useRef(n),l=M.useRef(null),f=M.useRef(null),d=lu();return k.jsx($P.Provider,{value:M.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:c,currentIdRef:l,timeoutMs:r,currentContextRef:f,timeout:d}),[r,d]),children:t})}function c7(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{open:i}=t,c=M.useContext($P),{currentIdRef:l,delayRef:f,timeoutMs:d,initialDelayRef:p,currentContextRef:v,hasProvider:g,timeout:b}=c,[_,E]=M.useState(!1);return Ct(()=>{function x(){E(!1),v.current?.setIsInstantPhase(!1),l.current=null,v.current=null,f.current=p.current}if(l.current&&!i&&l.current===r){if(E(!1),d){const R=r;return b.start(d,()=>{n.select("open")||l.current&&l.current!==R||x()}),()=>{b.clear()}}x()}},[i,r,l,f,d,p,v,b,n]),Ct(()=>{if(!i)return;const x=v.current,R=l.current;b.clear(),v.current={onOpenChange:n.setOpen,setIsInstantPhase:E},l.current=r,f.current={open:0,close:im(p.current,"close")},R!==null&&R!==r?(E(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1,ln(i_))):(E(!1),x?.setIsInstantPhase(!1))},[i,r,n,l,f,d,p,v,b]),Ct(()=>()=>{v.current=null},[v]),M.useMemo(()=>({hasProvider:g,delayRef:f,isInstantPhase:_}),[g,f,_])}const zP={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},BP={...zP,position:"fixed",top:0,left:0},_Me={...zP,position:"absolute"},Nm=M.forwardRef(function(t,n){const[r,i]=M.useState();Ct(()=>{gP&&i("button")},[]);const c={tabIndex:0,role:r};return k.jsx("span",{...t,ref:n,style:BP,"aria-hidden":r?void 0:!0,...c,"data-base-ui-focus-guard":""})});let LT=0;function Zv(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(LT);const c=()=>e?.focus({preventScroll:n});i?c():LT=requestAnimationFrame(c)}const Jl={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function $T(e){return e==="inert"?Jl.inert:e==="aria-hidden"?Jl["aria-hidden"]:Jl.none}let Bh=new WeakSet,Uh={},Qv=0;const UP=e=>e&&(e.host||UP(e.parentNode)),l7=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=UP(n);return e.contains(r)?r:null}).filter(n=>n!=null);function u7(e,t,n,r){const i="data-base-ui-inert",c=r?"inert":n?"aria-hidden":null,l=l7(t,e),f=new Set,d=new Set(l),p=[];Uh[i]||(Uh[i]=new WeakMap);const v=Uh[i];l.forEach(g),b(t),f.clear();function g(_){!_||f.has(_)||(f.add(_),_.parentNode&&g(_.parentNode))}function b(_){!_||d.has(_)||[].forEach.call(_.children,E=>{if(Ma(E)!=="script")if(f.has(E))b(E);else{const x=c?E.getAttribute(c):null,R=x!==null&&x!=="false",C=$T(c),T=(C.get(E)||0)+1,P=(v.get(E)||0)+1;C.set(E,T),v.set(E,P),p.push(E),T===1&&R&&Bh.add(E),P===1&&E.setAttribute(i,""),!R&&c&&E.setAttribute(c,c==="inert"?"":"true")}})}return Qv+=1,()=>{p.forEach(_=>{const E=$T(c),R=(E.get(_)||0)-1,C=(v.get(_)||0)-1;E.set(_,R),v.set(_,C),R||(!Bh.has(_)&&c&&_.removeAttribute(c),Bh.delete(_)),C||_.removeAttribute(i)}),Qv-=1,Qv||(Jl.inert=new WeakMap,Jl["aria-hidden"]=new WeakMap,Jl.none=new WeakMap,Bh=new WeakSet,Uh={})}}function f7(e,t=!1,n=!1){const r=sn(e[0]).body;return u7(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const jP=M.createContext(null),VP=()=>M.useContext(jP),d7=du("portal");function HP(e={}){const{ref:t,container:n,componentProps:r=or,elementProps:i}=e,c=Od(),f=VP()?.portalNode,[d,p]=M.useState(null),[v,g]=M.useState(null),b=Ke(R=>{R!==null&&g(R)}),_=M.useRef(null);Ct(()=>{if(n===null){_.current&&(_.current=null,g(null),p(null));return}if(c==null)return;const R=(n&&(ZS(n)?n:n.current))??f??document.body;if(R==null){_.current&&(_.current=null,g(null),p(null));return}_.current!==R&&(_.current=R,g(null),p(R))},[n,f,c]);const E=zr("div",r,{ref:[t,b],props:[{id:c,[d7]:""},i]});return{portalNode:v,portalSubtree:d&&E?Oa.createPortal(E,d):null}}const p7=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,renderGuards:f,...d}=t,{portalNode:p,portalSubtree:v}=HP({container:i,ref:n,componentProps:t,elementProps:d}),g=M.useRef(null),b=M.useRef(null),_=M.useRef(null),E=M.useRef(null),[x,R]=M.useState(null),C=x?.modal,T=x?.open,P=typeof f=="boolean"?f:!!x&&!x.modal&&x.open&&!!p;M.useEffect(()=>{if(!p||C)return;function B(j){p&&j.relatedTarget&&id(j)&&(j.type==="focusin"?NT:BH)(p)}return p.addEventListener("focusin",B,!0),p.addEventListener("focusout",B,!0),()=>{p.removeEventListener("focusin",B,!0),p.removeEventListener("focusout",B,!0)}},[p,C]),M.useEffect(()=>{!p||T||NT(p)},[T,p]);const I=M.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:b,beforeInsideRef:_,afterInsideRef:E,portalNode:p,setFocusManagerState:R}),[p]);return k.jsxs(M.Fragment,{children:[v,k.jsxs(jP.Provider,{value:I,children:[P&&p&&k.jsx(Nm,{"data-type":"outside",ref:g,onFocus:B=>{if(id(B,p))_.current?.focus();else{const j=x?x.domReference:null;MP(j)?.focus()}}}),P&&p&&k.jsx("span",{"aria-owns":p.id,style:t9}),p&&Oa.createPortal(r,p),P&&p&&k.jsx(Nm,{"data-type":"outside",ref:b,onFocus:B=>{if(id(B,p))E.current?.focus();else{const j=x?x.domReference:null;OP(j)?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,ln(kP,B.nativeEvent))}}})]})]})});function h7(e,t){const n=Pn(e.target);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"):""}const zT=20;let ba=[];function c_(){ba=ba.filter(e=>e.deref()?.isConnected)}function m7(e){c_(),e&&Ma(e)!=="body"&&(ba.push(new WeakRef(e)),ba.length>zT&&(ba=ba.slice(-zT)))}function Yv(){return c_(),ba[ba.length-1]?.deref()}function g7(e){if(!e)return null;const t=Md();return IP(e,t)?e:dg(e,t)[0]||e}function y7(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():cr(e).display!=="none"}function BT(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Md(),i=zH(e,n).filter(l=>{const f=l.getAttribute("data-tabindex")||"";return IP(l,n)||l.hasAttribute("data-tabindex")&&!f.startsWith("-")}),c=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function v7(e){const{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:c=!0,restoreFocus:l=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:p="",nextFocusableElement:v,previousFocusableElement:g,beforeContentFocusGuardRef:b,externalTree:_}=e,E="rootStore"in t?t.rootStore:t,x=E.useState("open"),R=E.useState("domReferenceElement"),C=E.useState("floatingElement"),{events:T,dataRef:P}=E.context,I=Ke(()=>P.current.floatingContext?.nodeId),B=i===!1,j=OT(R)&&B,V=M.useRef(["content"]),N=ho(i),Q=ho(c),ne=ho(p),te=Pd(_),F=VP(),oe=M.useRef(null),me=M.useRef(null),ge=M.useRef(!1),H=M.useRef(!1),re=M.useRef(!1),J=M.useRef(-1),ve=M.useRef(""),ue=M.useRef(""),$=M.useRef(null),ee=M.useRef(null),ye=xm($,b,F?.beforeInsideRef),Ee=xm(ee,F?.afterInsideRef),xe=lu(),Se=lu(),Oe=DP(),Fe=F!=null,be=rS(C),tt=Ke((Re=be)=>Re?dg(Re,Md()):[]),kt=Ke(Re=>{const _e=tt(Re);return V.current.map(()=>_e).filter(Boolean).flat()});M.useEffect(()=>{if(r||!f)return;function Re(Ze){Ze.key==="Tab"&&At(be,si(sn(be)))&&tt().length===0&&!j&&cH(Ze)}const _e=sn(be);return _e.addEventListener("keydown",Re),()=>{_e.removeEventListener("keydown",Re)}},[r,R,be,f,V,j,tt,kt]),M.useEffect(()=>{if(r||!x)return;const Re=sn(be);function _e(){re.current=!1}function Ze(Ve){const De=js(Ve),nt=At(C,De)||At(R,De)||At(F?.portalNode,De);re.current=!nt,ue.current=Ve.pointerType||"keyboard",De?.closest(`[${Jj}]`)&&(H.current=!0)}function Me(){ue.current="keyboard"}return Re.addEventListener("pointerdown",Ze,!0),Re.addEventListener("pointerup",_e,!0),Re.addEventListener("pointercancel",_e,!0),Re.addEventListener("keydown",Me,!0),()=>{Re.removeEventListener("pointerdown",Ze,!0),Re.removeEventListener("pointerup",_e,!0),Re.removeEventListener("pointercancel",_e,!0),Re.removeEventListener("keydown",Me,!0)}},[r,C,R,be,x,F]),M.useEffect(()=>{if(r||!d)return;const Re=sn(be);function _e(){H.current=!0,Se.start(0,()=>{H.current=!1})}function Ze(ot){const Ge=js(ot),Xt=tt().indexOf(Ge);Xt!==-1&&(J.current=Xt)}function Me(ot){const Ge=ot.relatedTarget,bt=ot.currentTarget,Xt=js(ot);queueMicrotask(()=>{const wt=I(),Xn=E.context.triggerElements,Je=Ge?.hasAttribute(du("focus-guard"))&&[$.current,ee.current,F?.beforeInsideRef.current,F?.afterInsideRef.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,ni(g),ni(v)].includes(Ge),Mt=!(At(R,Ge)||At(C,Ge)||At(Ge,C)||At(F?.portalNode,Ge)||Ge!=null&&Xn.hasElement(Ge)||Xn.hasMatchingElement(it=>At(it,Ge))||Je||te&&(Ic(te.nodesRef.current,wt).find(it=>At(it.context?.elements.floating,Ge)||At(it.context?.elements.domReference,Ge))||MT(te.nodesRef.current,wt).find(it=>[it.context?.elements.floating,rS(it.context?.elements.floating)].includes(Ge)||it.context?.elements.domReference===Ge)));if(bt===R&&be&&BT(be,V),l&&bt!==R&&!y7(Xt)&&si(Re)===Re.body){if(On(be)&&(be.focus(),l==="popup")){Oe.request(()=>{be.focus()});return}const it=J.current,Ds=tt(),pr=Ds[it]||Ds[Ds.length-1]||be;On(pr)&&pr.focus()}if(P.current.insideReactTree){P.current.insideReactTree=!1;return}(j||!f)&&Ge&&Mt&&!H.current&&(j||Ge!==Yv())&&(ge.current=!0,E.setOpen(!1,ln(kP,ot)))})}function Ve(){re.current||(P.current.insideReactTree=!0,xe.start(0,()=>{P.current.insideReactTree=!1}))}const De=On(R)?R:null,nt=[];if(!(!C&&!De))return De&&(De.addEventListener("focusout",Me),De.addEventListener("pointerdown",_e),nt.push(()=>{De.removeEventListener("focusout",Me),De.removeEventListener("pointerdown",_e)})),C&&(C.addEventListener("focusin",Ze),C.addEventListener("focusout",Me),F&&(C.addEventListener("focusout",Ve,!0),nt.push(()=>{C.removeEventListener("focusout",Ve,!0)})),nt.push(()=>{C.removeEventListener("focusin",Ze),C.removeEventListener("focusout",Me)})),()=>{nt.forEach(ot=>{ot()})}},[r,R,C,be,f,te,F,E,d,l,tt,j,I,V,P,xe,Se,Oe,v,g]),M.useEffect(()=>{if(r||!C||!x)return;const Re=Array.from(F?.portalNode?.querySelectorAll(`[${du("portal")}]`)||[]),Ze=(te?MT(te.nodesRef.current,I()):[]).find(Ve=>OT(Ve.context?.elements.domReference||null))?.context?.elements.domReference,Me=[C,Ze,...Re,oe.current,me.current,$.current,ee.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,ni(g),ni(v),j?R:null].filter(Ve=>Ve!=null);return f7(Me,f||j)},[x,r,R,C,f,V,F,j,te,I,v,g]),Ct(()=>{if(!x||r||!On(be))return;const Re=sn(be),_e=si(Re);queueMicrotask(()=>{const Ze=kt(be),Me=N.current,Ve=typeof Me=="function"?Me(ne.current||""):Me;if(Ve===void 0||Ve===!1)return;let De;Ve===!0||Ve===null?De=Ze[0]||be:De=ni(Ve),De=De||Ze[0]||be,!At(be,_e)&&Zv(De,{preventScroll:De===be})})},[r,x,be,B,kt,N,ne]),Ct(()=>{if(r||!be)return;const Re=sn(be),_e=si(Re);m7(_e);function Ze(De){if(De.open||(ve.current=h7(De.nativeEvent,ue.current)),De.reason===no&&De.nativeEvent.type==="mouseleave"&&(ge.current=!0),De.reason===PP)if(De.nested)ge.current=!1;else if(uH(De.nativeEvent)||fH(De.nativeEvent))ge.current=!1;else{let nt=!1;document.createElement("div").focus({get preventScroll(){return nt=!0,!1}}),nt?ge.current=!1:ge.current=!0}}T.on("openchange",Ze);const Me=Re.createElement("span");Me.setAttribute("tabindex","-1"),Me.setAttribute("aria-hidden","true"),Object.assign(Me.style,BP),Fe&&R&&R.insertAdjacentElement("afterend",Me);function Ve(){const De=Q.current;let nt=typeof De=="function"?De(ve.current):De;if(nt===void 0||nt===!1)return null;if(nt===null&&(nt=!0),typeof nt=="boolean"){const Ge=R||Yv();return Ge&&Ge.isConnected?Ge:Me}const ot=R||Yv()||Me;return ni(nt)||ot}return()=>{T.off("openchange",Ze);const De=si(Re),nt=At(C,De)||te&&Ic(te.nodesRef.current,I(),!1).some(Ge=>At(Ge.context?.elements.floating,De)),ot=Ve();queueMicrotask(()=>{const Ge=g7(ot),bt=typeof Q.current!="boolean";Q.current&&!ge.current&&On(Ge)&&(!(!bt&&Ge!==De&&De!==Re.body)||nt)&&Ge.focus({preventScroll:!0}),Me.remove(),ge.current=!1})}},[r,C,be,Q,P,T,te,Fe,R,I]),Ct(()=>{if(!hP||x||!C)return;const Re=si(sn(C));!On(Re)||!e_(Re)||At(C,Re)&&Re.blur()},[x,C]),Ct(()=>{if(!(r||!F))return F.setFocusManagerState({modal:f,closeOnFocusOut:d,open:x,onOpenChange:E.setOpen,domReference:R}),()=>{F.setFocusManagerState(null)}},[r,F,f,x,E,d,R]),Ct(()=>{if(!(r||!be))return BT(be,V),()=>{queueMicrotask(c_)}},[r,be,V]);const he=!r&&(f?!j:!0)&&(Fe||f);return k.jsxs(M.Fragment,{children:[he&&k.jsx(Nm,{"data-type":"inside",ref:ye,onFocus:Re=>{if(f){const _e=kt();Zv(_e[_e.length-1])}else F?.portalNode&&(ge.current=!1,id(Re,F.portalNode)?OP(R)?.focus():ni(g??F.beforeOutsideRef)?.focus())}}),n,he&&k.jsx(Nm,{"data-type":"inside",ref:Ee,onFocus:Re=>{f?Zv(kt()[0]):F?.portalNode&&(d&&(ge.current=!0),id(Re,F.portalNode)?MP(R)?.focus():ni(v??F.afterOutsideRef)?.focus())}})]})}function b7(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){const c=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",f=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let p=c.width,v=c.height,g=c.x,b=c.y;return n==null&&t.x&&l&&(n=c.x-t.x),r==null&&t.y&&f&&(r=c.y-t.y),g-=n||0,b-=r||0,p=0,v=0,!i||d?(p=t.axis==="y"?c.width:0,v=t.axis==="x"?c.height:0,g=l&&t.x!=null?t.x:g,b=f&&t.y!=null?t.y:b):i&&!d&&(v=t.axis==="x"?c.height:v,p=t.axis==="y"?c.width:p),i=!0,{width:p,height:v,x:g,y:b,top:b,right:g+p,bottom:b+v,left:g}}}}function UT(e){return e!=null&&e.clientX!=null}function S7(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:f=!0,axis:d="both"}=t,p=M.useRef(!1),v=M.useRef(null),[g,b]=M.useState(),[_,E]=M.useState([]),x=Ke((I,B,j)=>{p.current||l.current.openEvent&&!UT(l.current.openEvent)||n.set("positionReference",b7(j??c,{x:I,y:B,axis:d,dataRef:l,pointerType:g}))}),R=Ke(I=>{r?v.current||E([]):x(I.clientX,I.clientY,I.currentTarget)}),C=vd(g)?i:r,T=M.useCallback(()=>{if(!C||!f)return;const I=Pn(i);function B(j){const V=js(j);At(i,V)?(I.removeEventListener("mousemove",B),v.current=null):x(j.clientX,j.clientY)}if(!l.current.openEvent||UT(l.current.openEvent)){I.addEventListener("mousemove",B);const j=()=>{I.removeEventListener("mousemove",B),v.current=null};return v.current=j,j}n.set("positionReference",c)},[C,f,i,l,c,n,x]);M.useEffect(()=>T(),[T,_]),M.useEffect(()=>{f&&!i&&(p.current=!1)},[f,i]),M.useEffect(()=>{!f&&r&&(p.current=!0)},[f,r]);const P=M.useMemo(()=>{function I(B){b(B.pointerType)}return{onPointerDown:I,onPointerEnter:I,onMouseMove:R,onMouseEnter:R}},[R]);return M.useMemo(()=>f?{reference:P,trigger:P}:{},[f,P])}function jT(e,t,n){let{reference:r,floating:i}=e;const c=Lr(t),l=s_(t),f=n_(l),d=qs(t),p=c==="y",v=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,b=r[f]/2-i[f]/2;let _;switch(d){case"top":_={x:v,y:r.y-i.height};break;case"bottom":_={x:v,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:g};break;case"left":_={x:r.x-i.width,y:g};break;default:_={x:r.x,y:r.y}}switch(ka(t)){case"start":_[l]-=b*(n&&p?-1:1);break;case"end":_[l]+=b*(n&&p?-1:1);break}return _}async function _7(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:c,rects:l,elements:f,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:b=!1,padding:_=0}=fi(t,e),E=_P(_),R=f[b?g==="floating"?"reference":"floating":g],C=Im(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(R)))==null||n?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:p,rootBoundary:v,strategy:d})),T=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),I=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=Im(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:T,offsetParent:P,strategy:d}):T);return{top:(C.top-B.top+E.top)/I.y,bottom:(B.bottom-C.bottom+E.bottom)/I.y,left:(C.left-B.left+E.left)/I.x,right:(B.right-C.right+E.right)/I.x}}const E7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:c=[],platform:l}=n,f=c.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:v,y:g}=jT(p,r,d),b=r,_={},E=0;for(let R=0;Rme<=0)){var te,F;const me=(((te=c.flip)==null?void 0:te.index)||0)+1,ge=V[me];if(ge&&(!(g==="alignment"?T!==Lr(ge):!1)||ne.every(J=>Lr(J.placement)===T?J.overflows[0]>0:!0)))return{data:{index:me,overflows:ne},reset:{placement:ge}};let H=(F=ne.filter(re=>re.overflows[0]<=0).sort((re,J)=>re.overflows[1]-J.overflows[1])[0])==null?void 0:F.placement;if(!H)switch(_){case"bestFit":{var oe;const re=(oe=ne.filter(J=>{if(j){const ve=Lr(J.placement);return ve===T||ve==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(ve=>ve>0).reduce((ve,ue)=>ve+ue,0)]).sort((J,ve)=>J[1]-ve[1])[0])==null?void 0:oe[0];re&&(H=re);break}case"initialPlacement":H=f;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function VT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HT(e){return pH.some(t=>e[t]>=0)}const w7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...c}=fi(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...c,elementContext:"reference"}),f=VT(l,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:HT(f)}}}case"escaped":{const l=await r.detectOverflow(t,{...c,altBoundary:!0}),f=VT(l,n.floating);return{data:{escapedOffsets:f,escaped:HT(f)}}}default:return{}}}}},qP=new Set(["left","top"]);async function R7(e,t){const{placement:n,platform:r,elements:i}=e,c=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=qs(n),f=ka(n),d=Lr(n)==="y",p=qP.has(l)?-1:1,v=c&&d?-1:1,g=fi(t,e);let{mainAxis:b,crossAxis:_,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof E=="number"&&(_=f==="end"?E*-1:E),d?{x:_*v,y:b*p}:{x:b*p,y:_*v}}const C7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:c,placement:l,middlewareData:f}=t,d=await R7(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:c+d.y,data:{...d,placement:l}}}}},A7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:c}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:d={fn:C=>{let{x:T,y:P}=C;return{x:T,y:P}}},...p}=fi(e,t),v={x:n,y:r},g=await c.detectOverflow(t,p),b=Lr(qs(i)),_=t_(b);let E=v[_],x=v[b];if(l){const C=_==="y"?"top":"left",T=_==="y"?"bottom":"right",P=E+g[C],I=E-g[T];E=oS(P,E,I)}if(f){const C=b==="y"?"top":"left",T=b==="y"?"bottom":"right",P=x+g[C],I=x-g[T];x=oS(P,x,I)}const R=d.fn({...t,[_]:E,[b]:x});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[_]:l,[b]:f}}}}}},I7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=fi(e,t),v={x:n,y:r},g=Lr(i),b=t_(g);let _=v[b],E=v[g];const x=fi(f,t),R=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const P=b==="y"?"height":"width",I=c.reference[b]-c.floating[P]+R.mainAxis,B=c.reference[b]+c.reference[P]-R.mainAxis;_B&&(_=B)}if(p){var C,T;const P=b==="y"?"width":"height",I=qP.has(qs(i)),B=c.reference[g]-c.floating[P]+(I&&((C=l.offset)==null?void 0:C[g])||0)+(I?0:R.crossAxis),j=c.reference[g]+c.reference[P]+(I?0:((T=l.offset)==null?void 0:T[g])||0)-(I?R.crossAxis:0);Ej&&(E=j)}return{[b]:_,[g]:E}}}},T7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:c,platform:l,elements:f}=t,{apply:d=()=>{},...p}=fi(e,t),v=await l.detectOverflow(t,p),g=qs(i),b=ka(i),_=Lr(i)==="y",{width:E,height:x}=c.floating;let R,C;g==="top"||g==="bottom"?(R=g,C=b===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(C=g,R=b==="end"?"top":"bottom");const T=x-v.top-v.bottom,P=E-v.left-v.right,I=uu(x-v[R],T),B=uu(E-v[C],P),j=!t.middlewareData.shift;let V=I,N=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=T),j&&!b){const ne=rr(v.left,0),te=rr(v.right,0),F=rr(v.top,0),oe=rr(v.bottom,0);_?N=E-2*(ne!==0||te!==0?ne+te:rr(v.left,v.right)):V=x-2*(F!==0||oe!==0?F+oe:rr(v.top,v.bottom))}await d({...t,availableWidth:N,availableHeight:V});const Q=await l.getDimensions(f.floating);return E!==Q.width||x!==Q.height?{reset:{rects:!0}}:{}}}};function FP(e){const t=cr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=On(e),c=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=Cm(n)!==c||Cm(r)!==l;return f&&(n=c,r=l),{width:n,height:r,$:f}}function l_(e){return Lt(e)?e:e.contextElement}function eu(e){const t=l_(e);if(!On(t))return mo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:c}=FP(t);let l=(c?Cm(n.width):n.width)/r,f=(c?Cm(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const O7=mo(0);function GP(e){const t=Pn(e);return!ug()||!t.visualViewport?O7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function M7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pn(e)?!1:t}function kc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),c=l_(e);let l=mo(1);t&&(r?Lt(r)&&(l=eu(r)):l=eu(e));const f=M7(c,n,r)?GP(c):mo(0);let d=(i.left+f.x)/l.x,p=(i.top+f.y)/l.y,v=i.width/l.x,g=i.height/l.y;if(c){const b=Pn(c),_=r&&Lt(r)?Pn(r):r;let E=b,x=eS(E);for(;x&&r&&_!==E;){const R=eu(x),C=x.getBoundingClientRect(),T=cr(x),P=C.left+(x.clientLeft+parseFloat(T.paddingLeft))*R.x,I=C.top+(x.clientTop+parseFloat(T.paddingTop))*R.y;d*=R.x,p*=R.y,v*=R.x,g*=R.y,d+=P,p+=I,E=Pn(x),x=eS(E)}}return Im({width:v,height:g,x:d,y:p})}function hg(e,t){const n=fg(e).scrollLeft;return t?t.left+n:kc(wo(e)).left+n}function KP(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hg(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function D7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const c=i==="fixed",l=wo(r),f=t?lg(t.floating):!1;if(r===l||f&&c)return n;let d={scrollLeft:0,scrollTop:0},p=mo(1);const v=mo(0),g=On(r);if((g||!g&&!c)&&((Ma(r)!=="body"||Da(l))&&(d=fg(r)),On(r))){const _=kc(r);p=eu(r),v.x=_.x+r.clientLeft,v.y=_.y+r.clientTop}const b=l&&!g&&!c?KP(l,d):mo(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-d.scrollLeft*p.x+v.x+b.x,y:n.y*p.y-d.scrollTop*p.y+v.y+b.y}}function P7(e){return Array.from(e.getClientRects())}function k7(e){const t=wo(e),n=fg(e),r=e.ownerDocument.body,i=rr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=rr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+hg(e);const f=-n.scrollTop;return cr(r).direction==="rtl"&&(l+=rr(t.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:f}}const qT=25;function N7(e,t){const n=Pn(e),r=wo(e),i=n.visualViewport;let c=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){c=i.width,l=i.height;const v=ug();(!v||v&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}const p=hg(r);if(p<=0){const v=r.ownerDocument,g=v.body,b=getComputedStyle(g),_=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-_);E<=qT&&(c-=E)}else p<=qT&&(c+=p);return{width:c,height:l,x:f,y:d}}const L7=new Set(["absolute","fixed"]);function $7(e,t){const n=kc(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,c=On(e)?eu(e):mo(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,d=i*c.x,p=r*c.y;return{width:l,height:f,x:d,y:p}}function FT(e,t,n){let r;if(t==="viewport")r=N7(e,n);else if(t==="document")r=k7(wo(e));else if(Lt(t))r=$7(t,n);else{const i=GP(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Im(r)}function ZP(e,t){const n=ui(e);return n===t||!Lt(n)||ci(n)?!1:cr(n).position==="fixed"||ZP(n,t)}function z7(e,t){const n=t.get(e);if(n)return n;let r=Ra(e,[],!1).filter(f=>Lt(f)&&Ma(f)!=="body"),i=null;const c=cr(e).position==="fixed";let l=c?ui(e):e;for(;Lt(l)&&!ci(l);){const f=cr(l),d=QS(l);!d&&f.position==="fixed"&&(i=null),(c?!d&&!i:!d&&f.position==="static"&&!!i&&L7.has(i.position)||Da(l)&&!d&&ZP(e,l))?r=r.filter(v=>v!==l):i=f,l=ui(l)}return t.set(e,r),r}function B7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?lg(t)?[]:z7(t,this._c):[].concat(n),r],f=l[0],d=l.reduce((p,v)=>{const g=FT(t,v,i);return p.top=rr(g.top,p.top),p.right=uu(g.right,p.right),p.bottom=uu(g.bottom,p.bottom),p.left=rr(g.left,p.left),p},FT(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function U7(e){const{width:t,height:n}=FP(e);return{width:t,height:n}}function j7(e,t,n){const r=On(t),i=wo(t),c=n==="fixed",l=kc(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const d=mo(0);function p(){d.x=hg(i)}if(r||!r&&!c)if((Ma(t)!=="body"||Da(i))&&(f=fg(t)),r){const _=kc(t,!0,c,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else i&&p();c&&!r&&i&&p();const v=i&&!r&&!c?KP(i,f):mo(0),g=l.left+f.scrollLeft-d.x-v.x,b=l.top+f.scrollTop-d.y-v.y;return{x:g,y:b,width:l.width,height:l.height}}function Xv(e){return cr(e).position==="static"}function GT(e,t){if(!On(e)||cr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wo(e)===n&&(n=n.ownerDocument.body),n}function QP(e,t){const n=Pn(e);if(lg(e))return n;if(!On(e)){let i=ui(e);for(;i&&!ci(i);){if(Lt(i)&&!Xv(i))return i;i=ui(i)}return n}let r=GT(e,t);for(;r&&q9(r)&&Xv(r);)r=GT(r,t);return r&&ci(r)&&Xv(r)&&!QS(r)?n:r||Q9(e)||n}const V7=async function(e){const t=this.getOffsetParent||QP,n=this.getDimensions,r=await n(e.floating);return{reference:j7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function H7(e){return cr(e).direction==="rtl"}const q7={convertOffsetParentRelativeRectToViewportRelativeRect:D7,getDocumentElement:wo,getClippingRect:B7,getOffsetParent:QP,getElementRects:V7,getClientRects:P7,getDimensions:U7,getScale:eu,isElement:Lt,isRTL:H7};function YP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function F7(e,t){let n=null,r;const i=wo(e);function c(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function l(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),c();const p=e.getBoundingClientRect(),{left:v,top:g,width:b,height:_}=p;if(f||t(),!b||!_)return;const E=Lh(g),x=Lh(i.clientWidth-(v+b)),R=Lh(i.clientHeight-(g+_)),C=Lh(v),P={rootMargin:-E+"px "+-x+"px "+-R+"px "+-C+"px",threshold:rr(0,uu(1,d))||1};let I=!0;function B(j){const V=j[0].intersectionRatio;if(V!==d){if(!I)return l();V?l(!1,V):r=setTimeout(()=>{l(!1,1e-7)},1e3)}V===1&&!YP(p,e.getBoundingClientRect())&&l(),I=!1}try{n=new IntersectionObserver(B,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(B,P)}n.observe(e)}return l(!0),c}function KT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=l_(e),v=i||c?[...p?Ra(p):[],...Ra(t)]:[];v.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),c&&C.addEventListener("resize",n)});const g=p&&f?F7(p,n):null;let b=-1,_=null;l&&(_=new ResizeObserver(C=>{let[T]=C;T&&T.target===p&&_&&(_.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var P;(P=_)==null||P.observe(t)})),n()}),p&&!d&&_.observe(p),_.observe(t));let E,x=d?kc(e):null;d&&R();function R(){const C=kc(e);x&&!YP(x,C)&&n(),x=C,E=requestAnimationFrame(R)}return n(),()=>{var C;v.forEach(T=>{i&&T.removeEventListener("scroll",n),c&&T.removeEventListener("resize",n)}),g?.(),(C=_)==null||C.disconnect(),_=null,d&&cancelAnimationFrame(E)}}const G7=C7,K7=A7,Z7=x7,Q7=T7,Y7=w7,X7=I7,W7=(e,t,n)=>{const r=new Map,i={platform:q7,...n},c={...i.platform,_c:r};return E7(e,t,{...i,platform:c})};var J7=typeof document<"u",eq=function(){},am=J7?M.useLayoutEffect:eq;function Lm(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(!Lm(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;){const c=i[r];if(!(c==="_owner"&&e.$$typeof)&&!Lm(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function XP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ZT(e,t){const n=XP(e);return Math.round(t*n)/n}function Wv(e){const t=M.useRef(e);return am(()=>{t.current=e}),t}function tq(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:c,floating:l}={},transform:f=!0,whileElementsMounted:d,open:p}=e,[v,g]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,_]=M.useState(r);Lm(b,r)||_(r);const[E,x]=M.useState(null),[R,C]=M.useState(null),T=M.useCallback(J=>{J!==j.current&&(j.current=J,x(J))},[]),P=M.useCallback(J=>{J!==V.current&&(V.current=J,C(J))},[]),I=c||E,B=l||R,j=M.useRef(null),V=M.useRef(null),N=M.useRef(v),Q=d!=null,ne=Wv(d),te=Wv(i),F=Wv(p),oe=M.useCallback(()=>{if(!j.current||!V.current)return;const J={placement:t,strategy:n,middleware:b};te.current&&(J.platform=te.current),W7(j.current,V.current,J).then(ve=>{const ue={...ve,isPositioned:F.current!==!1};me.current&&!Lm(N.current,ue)&&(N.current=ue,Oa.flushSync(()=>{g(ue)}))})},[b,t,n,te,F]);am(()=>{p===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[p]);const me=M.useRef(!1);am(()=>(me.current=!0,()=>{me.current=!1}),[]),am(()=>{if(I&&(j.current=I),B&&(V.current=B),I&&B){if(ne.current)return ne.current(I,B,oe);oe()}},[I,B,oe,ne,Q]);const ge=M.useMemo(()=>({reference:j,floating:V,setReference:T,setFloating:P}),[T,P]),H=M.useMemo(()=>({reference:I,floating:B}),[I,B]),re=M.useMemo(()=>{const J={position:n,left:0,top:0};if(!H.floating)return J;const ve=ZT(H.floating,v.x),ue=ZT(H.floating,v.y);return f?{...J,transform:"translate("+ve+"px, "+ue+"px)",...XP(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ve,top:ue}},[n,f,H.floating,v.x,v.y]);return M.useMemo(()=>({...v,update:oe,refs:ge,elements:H,floatingStyles:re}),[v,oe,ge,H,re])}const nq=(e,t)=>({...G7(e),options:[e,t]}),sq=(e,t)=>({...K7(e),options:[e,t]}),rq=(e,t)=>({...X7(e),options:[e,t]}),oq=(e,t)=>({...Z7(e),options:[e,t]}),iq=(e,t)=>({...Q7(e),options:[e,t]}),aq=(e,t)=>({...Y7(e),options:[e,t]}),cq={intentional:"onClick",sloppy:"onPointerDown"};function lq(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function WP(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:f,dataRef:d}=n.context,{enabled:p=!0,escapeKey:v=!0,outsidePress:g=!0,outsidePressEvent:b="sloppy",referencePress:_=!1,referencePressEvent:E="sloppy",ancestorScroll:x=!1,bubbles:R,externalTree:C}=t,T=Pd(C),P=Ke(typeof g=="function"?g:()=>!1),I=typeof g=="function"?P:g,B=M.useRef(!1),{escapeKey:j,outsidePress:V}=lq(R),N=M.useRef(null),Q=lu(),ne=lu(),te=Ke(()=>{ne.clear(),d.current.insideReactTree=!1}),F=M.useRef(!1),oe=M.useRef(""),me=Ke(he=>{oe.current=he.pointerType}),ge=Ke(()=>{const he=oe.current,Re=he==="pen"||!he?"mouse":he,_e=typeof b=="function"?b():b;return typeof _e=="string"?_e:_e[Re]}),H=Ke(he=>{if(!r||!p||!v||he.key!=="Escape"||F.current)return;const Re=d.current.floatingContext?.nodeId,_e=T?Ic(T.nodesRef.current,Re):[];if(!j&&_e.length>0){let Ve=!0;if(_e.forEach(De=>{De.context?.open&&!De.context.dataRef.current.__escapeKeyBubbles&&(Ve=!1)}),!Ve)return}const Ze=lH(he)?he.nativeEvent:he,Me=ln(a_,Ze);n.setOpen(!1,Me),!j&&!Me.isPropagationAllowed&&he.stopPropagation()}),re=Ke(he=>{const Re=ge();return Re==="intentional"&&he.type!=="click"||Re==="sloppy"&&he.type==="click"}),J=Ke(()=>{d.current.insideReactTree=!0,ne.start(0,te)}),ve=Ke((he,Re=!1)=>{if(re(he)){te();return}if(d.current.insideReactTree){te();return}if(ge()==="intentional"&&Re||typeof I=="function"&&!I(he))return;const _e=js(he),Ze=`[${du("inert")}]`,Me=sn(n.select("floatingElement")).querySelectorAll(Ze),Ve=n.context.triggerElements;if(_e&&(Ve.hasElement(_e)||Ve.hasMatchingElement(bt=>At(bt,_e))))return;let De=Lt(_e)?_e:null;for(;De&&!ci(De);){const bt=ui(De);if(ci(bt)||!Lt(bt))break;De=bt}if(Me.length&&Lt(_e)&&!iH(_e)&&!At(_e,n.select("floatingElement"))&&Array.from(Me).every(bt=>!At(De,bt)))return;if(On(_e)&&!("touches"in he)){const bt=ci(_e),Xt=cr(_e),wt=/auto|scroll/,Xn=bt||wt.test(Xt.overflowX),Je=bt||wt.test(Xt.overflowY),Mt=Xn&&_e.clientWidth>0&&_e.scrollWidth>_e.clientWidth,it=Je&&_e.clientHeight>0&&_e.scrollHeight>_e.clientHeight,Ds=Xt.direction==="rtl",pr=it&&(Ds?he.offsetX<=_e.offsetWidth-_e.clientWidth:he.offsetX>_e.clientWidth),Po=Mt&&he.offsetY>_e.clientHeight;if(pr||Po)return}const nt=d.current.floatingContext?.nodeId,ot=T&&Ic(T.nodesRef.current,nt).some(bt=>Yr(he,bt.context?.elements.floating));if(Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement"))||ot)return;const Ge=T?Ic(T.nodesRef.current,nt):[];if(Ge.length>0){let bt=!0;if(Ge.forEach(Xt=>{Xt.context?.open&&!Xt.context.dataRef.current.__outsidePressBubbles&&(bt=!1)}),!bt)return}n.setOpen(!1,ln(PP,he)),te()}),ue=Ke(he=>{ge()!=="sloppy"||he.pointerType==="touch"||!n.select("open")||!p||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement"))||ve(he)}),$=Ke(he=>{if(ge()!=="sloppy"||!n.select("open")||!p||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement")))return;const Re=he.touches[0];Re&&(N.current={startTime:Date.now(),startX:Re.clientX,startY:Re.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Q.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}),ee=Ke(he=>{const Re=js(he);function _e(){$(he),Re?.removeEventListener(he.type,_e)}Re?.addEventListener(he.type,_e)}),ye=Ke(he=>{const Re=B.current;if(B.current=!1,Q.clear(),he.type==="mousedown"&&N.current&&!N.current.dismissOnMouseDown)return;const _e=js(he);function Ze(){he.type==="pointerdown"?ue(he):ve(he,Re),_e?.removeEventListener(he.type,Ze)}_e?.addEventListener(he.type,Ze)}),Ee=Ke(he=>{if(ge()!=="sloppy"||!N.current||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement")))return;const Re=he.touches[0];if(!Re)return;const _e=Math.abs(Re.clientX-N.current.startX),Ze=Math.abs(Re.clientY-N.current.startY),Me=Math.sqrt(_e*_e+Ze*Ze);Me>5&&(N.current.dismissOnTouchEnd=!0),Me>10&&(ve(he),Q.clear(),N.current=null)}),xe=Ke(he=>{const Re=js(he);function _e(){Ee(he),Re?.removeEventListener(he.type,_e)}Re?.addEventListener(he.type,_e)}),Se=Ke(he=>{ge()!=="sloppy"||!N.current||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement"))||(N.current.dismissOnTouchEnd&&ve(he),Q.clear(),N.current=null)}),Oe=Ke(he=>{const Re=js(he);function _e(){Se(he),Re?.removeEventListener(he.type,_e)}Re?.addEventListener(he.type,_e)});M.useEffect(()=>{if(!r||!p)return;d.current.__escapeKeyBubbles=j,d.current.__outsidePressBubbles=V;const he=new Eo;function Re(De){n.setOpen(!1,ln(i_,De))}function _e(){he.clear(),F.current=!0}function Ze(){he.start(ug()?5:0,()=>{F.current=!1})}const Me=sn(i);Me.addEventListener("pointerdown",me,!0),v&&(Me.addEventListener("keydown",H),Me.addEventListener("compositionstart",_e),Me.addEventListener("compositionend",Ze)),I&&(Me.addEventListener("click",ye,!0),Me.addEventListener("pointerdown",ye,!0),Me.addEventListener("touchstart",ee,!0),Me.addEventListener("touchmove",xe,!0),Me.addEventListener("touchend",Oe,!0),Me.addEventListener("mousedown",ye,!0));let Ve=[];return x&&(Lt(l)&&(Ve=Ra(l)),Lt(i)&&(Ve=Ve.concat(Ra(i))),!Lt(c)&&c&&c.contextElement&&(Ve=Ve.concat(Ra(c.contextElement)))),Ve=Ve.filter(De=>De!==Me.defaultView?.visualViewport),Ve.forEach(De=>{De.addEventListener("scroll",Re,{passive:!0})}),()=>{Me.removeEventListener("pointerdown",me,!0),v&&(Me.removeEventListener("keydown",H),Me.removeEventListener("compositionstart",_e),Me.removeEventListener("compositionend",Ze)),I&&(Me.removeEventListener("click",ye,!0),Me.removeEventListener("pointerdown",ye,!0),Me.removeEventListener("touchstart",ee,!0),Me.removeEventListener("touchmove",xe,!0),Me.removeEventListener("touchend",Oe,!0),Me.removeEventListener("mousedown",ye,!0)),Ve.forEach(De=>{De.removeEventListener("scroll",Re)}),he.clear(),B.current=!1}},[d,i,c,l,v,I,r,f,x,p,j,V,H,ve,ye,ue,ee,xe,Oe,me,n]),M.useEffect(te,[I,te]);const Fe=M.useMemo(()=>({onKeyDown:H,..._&&{[cq[E]]:he=>{n.setOpen(!1,ln(Pm,he.nativeEvent))},...E!=="intentional"&&{onClick(he){n.setOpen(!1,ln(Pm,he.nativeEvent))}}}}),[H,n,_,E]),be=Ke(he=>{const Re=js(he.nativeEvent);!At(n.select("floatingElement"),Re)||he.button!==0||(B.current=!0)}),tt=Ke(he=>{!r||!p||he.button!==0||(B.current=!0)}),kt=M.useMemo(()=>({onKeyDown:H,onPointerDown:be,onMouseDown:be,onMouseUp:be,onClickCapture:J,onMouseDownCapture(he){J(),tt(he)},onPointerDownCapture(he){J(),tt(he)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[H,be,J,tt]);return M.useMemo(()=>p?{reference:Fe,floating:kt,trigger:Fe}:{},[p,Fe,kt])}var $m=Symbol("NOT_FOUND");function uq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function fq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function dq(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var QT=e=>Array.isArray(e)?e:[e];function pq(e){const t=Array.isArray(e[0])?e[0]:e;return dq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function hq(e,t){const n=[],{length:r}=e;for(let i=0;it(f,p.key));if(d>-1){const p=n[d];return d>0&&(n.splice(d,1),n.unshift(p)),p.value}return $m}function i(f,d){r(f)===$m&&(n.unshift({key:f,value:d}),n.length>e&&n.pop())}function c(){return n}function l(){n=[]}return{get:r,put:i,getEntries:c,clear:l}}var yq=(e,t)=>e===t;function vq(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let c=0;cc(_.value,v));b&&(v=b.value,f!==0&&f--)}d.put(arguments,v)}return v}return p.clearCache=()=>{d.clear(),p.resetResultsCount()},p.resultsCount=()=>f,p.resetResultsCount=()=>{f=0},p}var Sq=class{constructor(e){this.value=e}deref(){return this.value}},_q=typeof WeakRef<"u"?WeakRef:Sq,Eq=0,YT=1;function jh(){return{s:Eq,v:void 0,o:null,p:null}}function JP(e,t={}){let n=jh();const{resultEqualityCheck:r}=t;let i,c=0;function l(){let f=n;const{length:d}=arguments;for(let g=0,b=d;g{n=jh(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}function ek(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let c=0,l=0,f,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),uq(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const v={...n,...d},{memoize:g,memoizeOptions:b=[],argsMemoize:_=JP,argsMemoizeOptions:E=[]}=v,x=QT(b),R=QT(E),C=pq(i),T=g(function(){return c++,p.apply(null,arguments)},...x),P=_(function(){l++;const B=hq(C,arguments);return f=T.apply(null,B),f},...R);return Object.assign(P,{resultFunc:p,memoizedResultFunc:T,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:g,argsMemoize:_})};return Object.assign(r,{withTypes:()=>r}),r}var xq=ek(JP),wq=Object.assign((e,t=xq)=>{fq(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(c=>e[c]);return t(r,(...c)=>c.reduce((l,f,d)=>(l[n[d]]=f,l),{}))},{withTypes:()=>wq});ek({memoize:bq,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const dt=(e,t,n,r,i,c,...l)=>{if(l.length>0)throw new Error(hi(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var tk=DD();const lS=[];let uS;function Rq(){return uS}function Cq(e){lS.push(e)}function nk(e){const t=(n,r)=>{const i=$r(Iq).current;let c;try{uS=i;for(const l of lS)l.before(i);c=e(n,r);for(const l of lS)l.after(i);i.didInitialize=!0}finally{uS=void 0}return c};return t.displayName=e.displayName||e.name,t}function Aq(e){return M.forwardRef(nk(e))}function Iq(){return{didInitialize:!1}}const Tq=KS(19),Oq=Tq?Dq:Pq;function sk(e,t,n,r,i){return Oq(e,t,n,r,i)}function Mq(e,t,n,r,i){const c=M.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return tk.useSyncExternalStore(e.subscribe,c,c)}Cq({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=>{const n=new Set;for(const i of e.syncHooks)n.add(i.store);const r=[];for(const i of n)r.push(i.subscribe(t));return()=>{for(const i of r)i()}}),tk.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Dq(e,t,n,r,i){const c=Rq();if(!c)return Mq(e,t,n,r,i);const l=c.syncIndex;c.syncIndex+=1;let f;return c.didInitialize?(f=c.syncHooks[l],(f.store!==e||f.selector!==t||!Object.is(f.a1,n)||!Object.is(f.a2,r)||!Object.is(f.a3,i))&&(f.store!==e&&(c.didChangeStore=!0),f.store=e,f.selector=t,f.a1=n,f.a2=r,f.a3=i,f.didChange=!0)):(f={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},c.syncHooks.push(f)),f.value}function Pq(e,t,n,r,i){return PD.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>t(c,n,r,i))}class kq{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,i){return sk(this,t,n,r,i)}}class u_ extends kq{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){M.useDebugValue(t),Ct(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const r=this;Ct(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);Ct(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){M.useDebugValue(t);const r=n!==void 0;Ct(()=>{r&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r])}select(t,n,r,i){const c=this.selectors[t];return c(this.state,n,r,i)}useState(t,n,r,i){return M.useDebugValue(t),sk(this,this.selectors[t],n,r,i)}useContextCallback(t,n){M.useDebugValue(t);const r=Ke(n??qD);this.context[t]=r}useStateSetter(t){const n=M.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let i=r(this.state);return n(i,i,this),this.subscribe(c=>{const l=r(c);if(!Object.is(i,l)){const f=i;i=l,n(l,f,this)}})}}const Nq={open:dt(e=>e.open),domReferenceElement:dt(e=>e.domReferenceElement),referenceElement:dt(e=>e.positionReference??e.referenceElement),floatingElement:dt(e=>e.floatingElement),floatingId:dt(e=>e.floatingId)};class f_ extends u_{constructor(t){const{nested:n,noEmit:r,onOpenChange:i,triggerElements:c,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:r7(),nested:n,noEmit:r,triggerElements:c},Nq)}setOpen=(t,n)=>{if((!t||!this.state.open||dH(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function Lq(e,t){const n=M.useRef(null),r=M.useRef(null);return M.useCallback(i=>{if(e!==void 0){if(n.current!==null){const c=n.current,l=r.current,f=t.context.triggerElements.getById(c);l&&f===l&&t.context.triggerElements.delete(c),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function $q(e,t,n,r){const i=n.useState("isMountedByTrigger",e),c=Lq(e,n),l=Ke(f=>{if(c(f),!f||!n.select("open"))return;const d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:f,...r});return}d==null&&n.update({activeTriggerId:e,activeTriggerElement:f,...r})});return Ct(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function rk(e){const t=e.useState("open");Ct(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function ok(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=qH(e);t.useSyncedValues({mounted:r,transitionStatus:c});const l=Ke(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),f=t.useState("preventUnmountingOnClose");return o_({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}class mg{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function zq(){return new f_({open:!1,floatingElement:null,referenceElement:null,triggerElements:new mg,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function ik(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:zq(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:or,inactiveTriggerProps:or,popupProps:or}}const Vh=dt(e=>e.triggerIdProp??e.activeTriggerId),ak={open:dt(e=>e.openProp??e.open),mounted:dt(e=>e.mounted),transitionStatus:dt(e=>e.transitionStatus),floatingRootContext:dt(e=>e.floatingRootContext),preventUnmountingOnClose:dt(e=>e.preventUnmountingOnClose),payload:dt(e=>e.payload),activeTriggerId:Vh,activeTriggerElement:dt(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:dt((e,t)=>t!==void 0&&Vh(e)===t),isOpenedByTrigger:dt((e,t)=>t!==void 0&&Vh(e)===t&&e.open),isMountedByTrigger:dt((e,t)=>t!==void 0&&Vh(e)===t&&e.mounted),triggerProps:dt((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:dt(e=>e.popupProps),popupElement:dt(e=>e.popupElement),positionerElement:dt(e=>e.positionerElement)};function Bq(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Od(),c=pg()!=null,l=$r(()=>new f_({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new mg,floatingId:i,nested:c,noEmit:!1})).current;return Ct(()=>{const f={open:t,floatingId:i};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=Lt(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=c,l.context.noEmit=!1,l}function Uq(e={}){const{nodeId:t,externalTree:n}=e,r=Bq(e),i=e.rootContext||r,c={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,f]=M.useState(null),d=M.useRef(null),p=Pd(n);Ct(()=>{c.domReference&&(d.current=c.domReference)},[c.domReference]);const v=tq({...e,elements:{...c,...l&&{reference:l}}}),g=M.useCallback(V=>{const N=Lt(V)?{getBoundingClientRect:()=>V.getBoundingClientRect(),getClientRects:()=>V.getClientRects(),contextElement:V}:V;f(N),v.refs.setReference(N)},[v.refs]),[b,_]=M.useState(null),[E,x]=M.useState(null);i.useSyncedValue("referenceElement",b),i.useSyncedValue("domReferenceElement",Lt(b)?b:null),i.useSyncedValue("floatingElement",E);const R=M.useCallback(V=>{(Lt(V)||V===null)&&(d.current=V,_(V)),(Lt(v.refs.reference.current)||v.refs.reference.current===null||V!==null&&!Lt(V))&&v.refs.setReference(V)},[v.refs,_]),C=M.useCallback(V=>{x(V),v.refs.setFloating(V)},[v.refs]),T=M.useMemo(()=>({...v.refs,setReference:R,setFloating:C,setPositionReference:g,domReference:d}),[v.refs,R,C,g]),P=M.useMemo(()=>({...v.elements,domReference:c.domReference}),[v.elements,c.domReference]),I=i.useState("open"),B=i.useState("floatingId"),j=M.useMemo(()=>({...v,dataRef:i.context.dataRef,open:I,onOpenChange:i.setOpen,events:i.context.events,floatingId:B,refs:T,elements:P,nodeId:t,rootStore:i}),[v,T,P,t,i,I,B]);return Ct(()=>{i.context.dataRef.current.floatingContext=j;const V=p?.nodesRef.current.find(N=>N.id===t);V&&(V.context=j)}),M.useMemo(()=>({...v,context:j,refs:T,elements:P,rootStore:i}),[v,T,P,j,i])}function ck(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,c=Od(),l=pg()!=null,f=t.useState("open"),d=t.useState("activeTriggerElement"),p=t.useState(r?"popupElement":"positionerElement"),v=t.context.triggerElements,g=$r(()=>new f_({open:f,referenceElement:d,floatingElement:p,triggerElements:v,onOpenChange:i,floatingId:c,nested:l,noEmit:n})).current;return Ct(()=>{const b={open:f,floatingId:c,referenceElement:d,floatingElement:p};Lt(d)&&(b.domReferenceElement=d),g.state.positionReference===g.state.referenceElement&&(b.positionReference=d),g.update(b)},[f,c,d,p,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const Jv=nH&&gP;function jq(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:c=!0,delay:l}=t,f=M.useRef(!1),d=M.useRef(null),p=lu(),v=M.useRef(!0);M.useEffect(()=>{const b=n.select("domReferenceElement");if(!c)return;const _=Pn(b);function E(){const C=n.select("domReferenceElement");!n.select("open")&&On(C)&&C===si(sn(C))&&(f.current=!0)}function x(){v.current=!0}function R(){v.current=!1}return _.addEventListener("blur",E),Jv&&(_.addEventListener("keydown",x,!0),_.addEventListener("pointerdown",R,!0)),()=>{_.removeEventListener("blur",E),Jv&&(_.removeEventListener("keydown",x,!0),_.removeEventListener("pointerdown",R,!0))}},[n,c]),M.useEffect(()=>{if(!c)return;function b(_){if(_.reason===Pm||_.reason===a_){const E=n.select("domReferenceElement");Lt(E)&&(d.current=E,f.current=!0)}}return r.on("openchange",b),()=>{r.off("openchange",b)}},[r,c,n]);const g=M.useMemo(()=>({onMouseLeave(){f.current=!1,d.current=null},onFocus(b){const _=b.currentTarget;if(f.current){if(d.current===_)return;f.current=!1,d.current=null}const E=js(b.nativeEvent);if(Lt(E)){if(Jv&&!b.relatedTarget){if(!v.current&&!e_(E))return}else if(!aH(E))return}const x=Rm(b.relatedTarget,n.context.triggerElements),{nativeEvent:R,currentTarget:C}=b,T=typeof l=="function"?l():l;if(n.select("open")&&x||T===0||T===void 0){n.setOpen(!0,ln(om,R,C));return}p.start(T,()=>{f.current||n.setOpen(!0,ln(om,R,C))})},onBlur(b){f.current=!1,d.current=null;const _=b.relatedTarget,E=b.nativeEvent,x=Lt(_)&&_.hasAttribute(du("focus-guard"))&&_.getAttribute("data-type")==="outside";p.start(0,()=>{const R=n.select("domReferenceElement"),C=si(R?R.ownerDocument:document);!_&&C===R||At(i.current.floatingContext?.refs.floating.current,C)||At(R,C)||x||Rm(_??C,n.context.triggerElements)||n.setOpen(!1,ln(om,E))})}}),[i,n,p,l]);return M.useMemo(()=>c?{reference:g,trigger:g}:{},[c,g])}const fS=du("safe-polygon"),Vq=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${SP}`;function Hq(e){return e?!!e.closest(Vq):!1}class d_{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.unbindMouseMove=()=>{},this.restTimeoutPending=!1,this.openChangeTimeout=new Eo,this.restTimeout=new Eo,this.handleCloseOptions=void 0}static create(){return new d_}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function lk(e){const t=$r(d_.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),JS(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}const qq=new Set(["click","mousedown"]);function Fq(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:f=!0,closeDelay:d=0}=t,p=lk(n),v=Pd(),g=pg(),b=Ke(()=>p.interactedInside?!0:l.current.openEvent?qq.has(l.current.openEvent.type):!1),_=Ke(()=>{const P=l.current.openEvent?.type;return P?.includes("mouse")&&P!=="mousedown"}),E=Ke(P=>Rm(P,n.context.triggerElements)),x=M.useCallback((P,I=!0)=>{const B=Gq(d,p.pointerType);B&&!p.handler?p.openChangeTimeout.start(B,()=>n.setOpen(!1,ln(no,P))):I&&(p.openChangeTimeout.clear(),n.setOpen(!1,ln(no,P)))},[d,n,p]),R=Ke(()=>{p.unbindMouseMove(),p.handler=void 0}),C=Ke(()=>{if(p.performedPointerEventsMutation){const P=sn(i).body;P.style.pointerEvents="",P.removeAttribute(fS),p.performedPointerEventsMutation=!1}}),T=Ke(P=>{const I=js(P);if(!Hq(I)){p.interactedInside=!1;return}p.interactedInside=!0});Ct(()=>{r||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,R(),C())},[r,p,R,C]),M.useEffect(()=>()=>{R()},[R]),M.useEffect(()=>C,[C]),Ct(()=>{if(f&&r&&p.handleCloseOptions?.blockPointerEvents&&_()&&Lt(c)&&i){p.performedPointerEventsMutation=!0;const P=sn(i).body;P.setAttribute(fS,"");const I=c,B=i,j=v?.nodesRef.current.find(V=>V.id===g)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),P.style.pointerEvents="none",I.style.pointerEvents="auto",B.style.pointerEvents="auto",()=>{P.style.pointerEvents="",I.style.pointerEvents="",B.style.pointerEvents=""}}},[f,r,c,i,p,_,v,g]),M.useEffect(()=>{if(!f)return;function P(V){b()||!l.current.floatingContext||!n.select("open")||E(V.relatedTarget)||(C(),R(),b()||x(V))}function I(V){p.openChangeTimeout.clear(),C(),p.handler?.(V),R()}function B(V){b()||x(V,!1)}const j=i;return j&&(j.addEventListener("mouseleave",P),j.addEventListener("mouseenter",I),j.addEventListener("mouseleave",B),j.addEventListener("pointerdown",T,!0)),()=>{j&&(j.removeEventListener("mouseleave",P),j.removeEventListener("mouseenter",I),j.removeEventListener("mouseleave",B),j.removeEventListener("pointerdown",T,!0))}},[f,i,n,l,b,E,x,C,R,T,p])}function Gq(e,t){return t&&!vd(t)?0:typeof e=="function"?e():e}function eb(e){return typeof e=="function"?e():e}const Kq={current:null};function Zq(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:c=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:p=0,move:v=!0,triggerElementRef:g=Kq,externalTree:b,isActiveTrigger:_=!0}=t,E=Pd(b),x=lk(n),R=ho(f),C=ho(l),T=ho(p),P=ho(c);_&&(x.handleCloseOptions=R.current?.__options);const I=Ke(()=>x.interactedInside?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),B=Ke(ne=>Rm(ne,n.context.triggerElements)),j=M.useCallback((ne,te=!0)=>{const F=im(C.current,"close",x.pointerType);F&&!x.handler?x.openChangeTimeout.start(F,()=>n.setOpen(!1,ln(no,ne))):te&&(x.openChangeTimeout.clear(),n.setOpen(!1,ln(no,ne)))},[C,n,x]),V=Ke(()=>{x.unbindMouseMove(),x.handler=void 0}),N=Ke(()=>{if(x.performedPointerEventsMutation){const ne=sn(n.select("domReferenceElement")).body;ne.style.pointerEvents="",ne.removeAttribute(fS),x.performedPointerEventsMutation=!1}});M.useEffect(()=>{if(!c)return;function ne(te){te.open||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return i.on("openchange",ne),()=>{i.off("openchange",ne)}},[c,i,x]);const Q=Ke(ne=>{if(I()||!r.current.floatingContext||B(ne.relatedTarget))return;const te=g.current;R.current?.({...r.current.floatingContext,tree:E,x:ne.clientX,y:ne.clientY,onClose(){N(),V(),!I()&&te===n.select("domReferenceElement")&&j(ne)}})(ne)});return M.useEffect(()=>{if(!c)return;const ne=g.current??(_?n.select("domReferenceElement"):null);if(!Lt(ne))return;function te(me){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,d&&!vd(x.pointerType)||eb(T.current)>0&&!im(C.current,"open"))return;const ge=im(C.current,"open",x.pointerType),H=n.select("domReferenceElement"),re=n.context.triggerElements,J=(re.hasElement(me.target)||re.hasMatchingElement(ee=>At(ee,me.target)))&&(!H||!At(H,me.target)),ve=me.currentTarget??null,ue=n.select("open"),$=!ue||J;J&&ue?n.setOpen(!0,ln(no,me,ve)):ge?x.openChangeTimeout.start(ge,()=>{$&&n.setOpen(!0,ln(no,me,ve))}):$&&n.setOpen(!0,ln(no,me,ve))}function F(me){if(I()){N();return}x.unbindMouseMove();const ge=n.select("domReferenceElement"),H=sn(ge);if(x.restTimeout.clear(),x.restTimeoutPending=!1,B(me.relatedTarget))return;if(R.current&&r.current.floatingContext){n.select("open")||x.openChangeTimeout.clear();const J=g.current;x.handler=R.current({...r.current.floatingContext,tree:E,x:me.clientX,y:me.clientY,onClose(){N(),V(),P.current&&!I()&&J===n.select("domReferenceElement")&&j(me,!0)}});const ve=x.handler;ve(me),H.addEventListener("mousemove",ve),x.unbindMouseMove=()=>{H.removeEventListener("mousemove",ve)};return}(x.pointerType!=="touch"||!At(n.select("floatingElement"),me.relatedTarget))&&j(me)}function oe(me){Q(me)}return n.select("open")&&ne.addEventListener("mouseleave",oe),v&&ne.addEventListener("mousemove",te,{once:!0}),ne.addEventListener("mouseenter",te),ne.addEventListener("mouseleave",F),()=>{ne.removeEventListener("mouseleave",oe),v&&ne.removeEventListener("mousemove",te),ne.removeEventListener("mouseenter",te),ne.removeEventListener("mouseleave",F)}},[V,N,r,C,j,n,c,R,Q,x,_,I,B,d,v,T,g,E,P]),M.useMemo(()=>{if(!c)return;function ne(te){x.pointerType=te.pointerType}return{onPointerDown:ne,onPointerEnter:ne,onMouseMove(te){const{nativeEvent:F}=te,oe=te.currentTarget,me=n.select("domReferenceElement"),ge=n.context.triggerElements,H=n.select("open"),re=(ge.hasElement(te.target)||ge.hasMatchingElement(ve=>At(ve,te.target)))&&(!me||!At(me,te.target));if(d&&!vd(x.pointerType)||H&&!re||eb(T.current)===0||!re&&x.restTimeoutPending&&te.movementX**2+te.movementY**2<2)return;x.restTimeout.clear();function J(){if(x.restTimeoutPending=!1,I())return;const ve=n.select("open");!x.blockMouseMove&&(!ve||re)&&n.setOpen(!0,ln(no,F,oe))}x.pointerType==="touch"?Oa.flushSync(()=>{J()}):re&&H?J():(x.restTimeoutPending=!0,x.restTimeout.start(eb(T.current),J))}}},[c,x,I,d,n,T])}function uk(e=[]){const t=e.map(p=>p?.reference),n=e.map(p=>p?.floating),r=e.map(p=>p?.item),i=e.map(p=>p?.trigger),c=M.useCallback(p=>Hh(p,e,"reference"),t),l=M.useCallback(p=>Hh(p,e,"floating"),n),f=M.useCallback(p=>Hh(p,e,"item"),r),d=M.useCallback(p=>Hh(p,e,"trigger"),i);return M.useMemo(()=>({getReferenceProps:c,getFloatingProps:l,getItemProps:f,getTriggerProps:d}),[c,l,f,d])}function Hh(e,t,n){const r=new Map,i=n==="item",c={};n==="floating"&&(c.tabIndex=-1,c[sS]="");for(const l in e)i&&e&&(l===vP||l===bP)||(c[l]=e[l]);for(let l=0;lr.get(i)?.map(f=>f(...l)).find(f=>f!==void 0))):e[i]=c)}}const Qq=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Yq(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),c=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{role:f="dialog"}=t,d=Od(),p=c?.id||d,v=M.useMemo(()=>rS(l)?.id||i,[l,i]),g=Qq.get(f)??f,_=pg()!=null,E=M.useMemo(()=>g==="tooltip"||f==="label"?or:{"aria-haspopup":g==="alertdialog"?"dialog":g,"aria-expanded":"false",...g==="listbox"&&{role:"combobox"},...g==="menu"&&_&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[g,_,f]),x=M.useMemo(()=>g==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?v:void 0}:{...E,"aria-expanded":r?"true":"false","aria-controls":r?v:void 0,...g==="menu"&&{id:p}},[g,v,r,p,f,E]),R=M.useMemo(()=>{const T={id:v,...g&&{role:g}};return g==="tooltip"||f==="label"?T:{...T,...g==="menu"&&{"aria-labelledby":p}}},[g,v,p,f]),C=M.useCallback(({active:T,selected:P})=>{const I={role:"option",...T&&{id:`${v}-fui-option`}};switch(f){case"select":case"combobox":return{...I,"aria-selected":P}}return{}},[v,f]);return M.useMemo(()=>({reference:x,floating:R,item:C,trigger:E}),[x,R,E,C])}function WT(e,t){const[n,r]=e;let i=!1;const c=t.length;for(let l=0,f=c-1;l=r!=g>=r&&n<=(v-d)*(r-p)/(g-p)+d&&(i=!i)}return i}function Xq(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Wq(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Eo;let c=!1,l=null,f=null,d=typeof performance<"u"?performance.now():0;function p(g,b){const _=performance.now(),E=_-d;if(l===null||f===null||E===0)return l=g,f=b,d=_,null;const x=g-l,R=b-f,T=Math.sqrt(x*x+R*R)/E;return l=g,f=b,d=_,T}const v=({x:g,y:b,placement:_,elements:E,onClose:x,nodeId:R,tree:C})=>function(P){function I(){i.clear(),x()}if(i.clear(),!E.domReference||!E.floating||_==null||g==null||b==null)return;const{clientX:B,clientY:j}=P,V=[B,j],N=js(P),Q=P.type==="mouseleave",ne=At(E.floating,N),te=At(E.domReference,N),F=E.domReference.getBoundingClientRect(),oe=E.floating.getBoundingClientRect(),me=_.split("-")[0],ge=g>oe.right-oe.width/2,H=b>oe.bottom-oe.height/2,re=Xq(V,F),J=oe.width>F.width,ve=oe.height>F.height,ue=(J?F:oe).left,$=(J?F:oe).right,ee=(ve?F:oe).top,ye=(ve?F:oe).bottom;if(ne&&(c=!0,!Q))return;if(te&&(c=!1),te&&!Q){c=!0;return}if(Q&&Lt(P.relatedTarget)&&At(E.floating,P.relatedTarget)||C&&Ic(C.nodesRef.current,R).some(({context:Se})=>Se?.open))return;if(me==="top"&&b>=F.bottom-1||me==="bottom"&&b<=F.top+1||me==="left"&&g>=F.right-1||me==="right"&&g<=F.left+1)return I();let Ee=[];switch(me){case"top":Ee=[[ue,F.top+1],[ue,oe.bottom-1],[$,oe.bottom-1],[$,F.top+1]];break;case"bottom":Ee=[[ue,oe.top+1],[ue,F.bottom-1],[$,F.bottom-1],[$,oe.top+1]];break;case"left":Ee=[[oe.right-1,ye],[oe.right-1,ee],[F.left+1,ee],[F.left+1,ye]];break;case"right":Ee=[[F.right-1,ye],[F.right-1,ee],[oe.left+1,ee],[oe.left+1,ye]];break}function xe([Se,Oe]){switch(me){case"top":{const Fe=[J?Se+t/2:ge?Se+t*4:Se-t*4,Oe+t+1],be=[J?Se-t/2:ge?Se+t*4:Se-t*4,Oe+t+1],tt=[[oe.left,ge||J?oe.bottom-t:oe.top],[oe.right,ge?J?oe.bottom-t:oe.top:oe.bottom-t]];return[Fe,be,...tt]}case"bottom":{const Fe=[J?Se+t/2:ge?Se+t*4:Se-t*4,Oe-t],be=[J?Se-t/2:ge?Se+t*4:Se-t*4,Oe-t],tt=[[oe.left,ge||J?oe.top+t:oe.bottom],[oe.right,ge?J?oe.top+t:oe.bottom:oe.top+t]];return[Fe,be,...tt]}case"left":{const Fe=[Se+t+1,ve?Oe+t/2:H?Oe+t*4:Oe-t*4],be=[Se+t+1,ve?Oe-t/2:H?Oe+t*4:Oe-t*4];return[...[[H||ve?oe.right-t:oe.left,oe.top],[H?ve?oe.right-t:oe.left:oe.right-t,oe.bottom]],Fe,be]}case"right":{const Fe=[Se-t,ve?Oe+t/2:H?Oe+t*4:Oe-t*4],be=[Se-t,ve?Oe-t/2:H?Oe+t*4:Oe-t*4],tt=[[H||ve?oe.left+t:oe.right,oe.top],[H?ve?oe.left+t:oe.right:oe.left+t,oe.bottom]];return[Fe,be,...tt]}default:return[]}}if(!WT([B,j],Ee)){if(c&&!re)return I();if(!Q&&r){const Se=p(P.clientX,P.clientY);if(Se!==null&&Se<.1)return I()}WT([B,j],xe([g,b]))?!c&&r&&i.start(40,I):I()}};return v.__options={blockPointerEvents:n},v}let Jq=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),eF=(function(e){return e[e.open=Rc.open]="open",e[e.closed=Rc.closed]="closed",e[e.startingStyle=Rc.startingStyle]="startingStyle",e[e.endingStyle=Rc.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const fk=M.createContext(void 0);function tF(){const e=M.useContext(fk);if(e===void 0)throw new Error(hi(26));return e}const dk="ArrowUp",pk="ArrowDown",hk="ArrowLeft",mk="ArrowRight",gk="Home",yk="End",nF=new Set([hk,mk]),sF=new Set([dk,pk]),rF=new Set([...nF,...sF]);[...rF];const oF=new Set([dk,pk,hk,mk,gk,yk]),iF={...Dd,...r_,nestedDialogOpen(e){return e?{[eF.nestedDialogOpen]:""}:null}},aF=M.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:c,render:l,...f}=t,{store:d}=jc(),p=d.useState("descriptionElementId"),v=d.useState("disablePointerDismissal"),g=d.useState("floatingRootContext"),b=d.useState("popupProps"),_=d.useState("modal"),E=d.useState("mounted"),x=d.useState("nested"),R=d.useState("nestedOpenDialogCount"),C=d.useState("open"),T=d.useState("openMethod"),P=d.useState("titleElementId"),I=d.useState("transitionStatus"),B=d.useState("role");tF(),o_({open:C,ref:d.context.popupRef,onComplete(){C&&d.context.onOpenChangeComplete?.(!0)}});function j(te){return te==="touch"?d.context.popupRef.current:!0}const V=c===void 0?j:c,N=R>0,ne=zr("div",t,{state:{open:C,nested:x,transitionStatus:I,nestedDialogOpen:N},props:[b,{"aria-labelledby":P??void 0,"aria-describedby":p??void 0,role:B,tabIndex:-1,hidden:!E,onKeyDown(te){oF.has(te.key)&&te.stopPropagation()},style:{[Jq.nestedDialogs]:R}},f],ref:[n,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:iF});return k.jsx(v7,{context:g,openInteractionType:T,disabled:!E,closeOnFocusOut:!v,initialFocus:V,returnFocus:i,modal:_!==!1,restoreFocus:"popup",children:ne})});function cF(e){return KS(19)?e:e?"true":void 0}const lF=M.forwardRef(function(t,n){const{cutout:r,...i}=t;let c;if(r){const l=r?.getBoundingClientRect();c=`polygon( 0% 0%, 100% 0%, 100% 100%, @@ -18,64 +18,64 @@ Error generating stack: `+u.message+` ${l.right}px ${l.bottom}px, ${l.right}px ${l.top}px, ${l.left}px ${l.top}px - )`}return N.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),KV=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:c}=fc(),l=c.useState("mounted"),f=c.useState("modal"),d=c.useState("open");return l||r?N.jsx(PM.Provider,{value:r,children:N.jsxs(X9,{ref:n,...i,children:[l&&f===!0&&N.jsx(ZV,{ref:c.context.internalBackdropRef,inert:GV(!d)}),t.children]})}):null});function jM(e){const t=M.useRef(!0);t.current&&(t.current=!1,e())}let UA={},jA={},HA="";function QV(e){if(typeof document>"u")return!1;const t=Kt(e);return Sn(t).innerWidth-t.documentElement.clientWidth>0}function YV(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Kt(e),r=n.documentElement,i=n.body,c=ra(r)?r:i,l=c.style.overflowY,f=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",c.style.overflowY="scroll";const d=c.offsetWidth;c.style.overflowY="hidden";const h=c.offsetWidth;return c.style.overflowY=l,r.style.scrollbarGutter=f,d===h}function XV(e){const t=Kt(e),n=t.documentElement,r=t.body,i=ra(n)?n:r,c={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,c)}}function WV(e){const t=Kt(e),n=t.documentElement,r=t.body,i=Sn(n);let c=0,l=0,f=!1;const d=Kr.create();if(zO&&(i.visualViewport?.scale??1)!==1)return()=>{};function h(){const v=i.getComputedStyle(n),_=i.getComputedStyle(r),R=(v.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=n.scrollTop,l=n.scrollLeft,UA={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},HA=n.style.scrollBehavior,jA={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};const C=n.scrollHeight>n.clientHeight,I=n.scrollWidth>n.clientWidth,k=v.overflowY==="scroll"||_.overflowY==="scroll",T=v.overflowX==="scroll"||_.overflowX==="scroll",$=Math.max(0,i.innerWidth-r.clientWidth),j=Math.max(0,i.innerHeight-r.clientHeight),H=parseFloat(_.marginTop)+parseFloat(_.marginBottom),P=parseFloat(_.marginLeft)+parseFloat(_.marginRight),Q=ra(n)?n:r;if(f=YV(e),f){n.style.scrollbarGutter=R,Q.style.overflowY="hidden",Q.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:R,overflowY:"hidden",overflowX:"hidden"}),(C||k)&&(n.style.overflowY="scroll"),(I||T)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:H||j?`calc(100dvh - ${H+j}px)`:"100dvh",width:P||$?`calc(100vw - ${P+$}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=c,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function b(){Object.assign(n.style,UA),Object.assign(r.style,jA),f||(n.scrollTop=c,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=HA)}function g(){b(),d.request(h)}return h(),i.addEventListener("resize",g),()=>{d.cancel(),b(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class JV{lockCount=0;restore=null;timeoutLock=Jr.create();timeoutUnlock=Jr.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Kt(t).documentElement,i=Sn(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=hO;return}const c=BO||!QV(t);this.restore=c?XV(t):WV(t)}}const e7=new JV;function t7(e=!0,t=null){pt(()=>{if(e)return e7.acquire(t)},[e,t])}function n7(e){const t=M.useRef(""),n=M.useCallback(i=>{i.defaultPrevented||(t.current=i.pointerType,e(i,i.pointerType))},[e]);return{onClick:M.useCallback(i=>{if(i.detail===0){e(i,"keyboard");return}"pointerType"in i?e(i,i.pointerType):e(i,t.current),t.current=""},[e]),onPointerDown:n}}function s7(e){const[t,n]=M.useState(null),r=Fe((f,d)=>{e||n(d||(BO?"touch":""))}),i=M.useCallback(()=>{n(null)},[]),{onClick:c,onPointerDown:l}=n7(r);return M.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:c,onPointerDown:l}}),[t,i,c,l])}function r7(e){const{store:t,parentContext:n,actionsRef:r}=e,i=t.useState("open"),c=t.useState("disablePointerDismissal"),l=t.useState("modal"),f=t.useState("popupElement"),{openMethod:d,triggerProps:h,reset:b}=s7(i);AM(t);const{forceUnmount:g}=TM(i,t,()=>{b()}),v=Fe(ne=>{const te=Jt(ne);return te.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},te}),_=M.useCallback(()=>{t.setOpen(!1,v(rM))},[t,v]);M.useImperativeHandle(r,()=>({unmount:g,close:_}),[g,_]);const w=MM({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[E,R]=M.useState(0),C=E===0,I=PV(w),k=_M(w,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(ne){if(!t.context.outsidePressEnabledRef.current||"button"in ne&&ne.button!==0||"touches"in ne&&ne.touches.length!==1)return!1;const te=Ss(ne);if(C&&!c){const F=te;return l&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===F||t.context.backdropRef.current===F||yt(F,f)&&!F?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:C});t7(i&&l===!0,f);const{getReferenceProps:T,getFloatingProps:$,getTriggerProps:j}=kM([I,k]);t.useContextCallback("onNestedDialogOpen",ne=>{R(ne+1)}),t.useContextCallback("onNestedDialogClose",()=>{R(0)}),M.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(E),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,E]);const H=M.useMemo(()=>T(h),[T,h]),P=M.useMemo(()=>j(h),[j,h]),Q=M.useMemo(()=>$(),[$]);t.useSyncedValues({openMethod:d,activeTriggerProps:H,inactiveTriggerProps:P,popupProps:Q,floatingRootContext:w,nestedOpenDialogCount:E})}const o7={...OM,modal:ot(e=>e.modal),nested:ot(e=>e.nested),nestedOpenDialogCount:ot(e=>e.nestedOpenDialogCount),disablePointerDismissal:ot(e=>e.disablePointerDismissal),openMethod:ot(e=>e.openMethod),descriptionElementId:ot(e=>e.descriptionElementId),titleElementId:ot(e=>e.titleElementId),viewportElement:ot(e=>e.viewportElement),role:ot(e=>e.role)};class i7 extends pS{constructor(t){super(a7(t),{popupRef:M.createRef(),backdropRef:M.createRef(),internalBackdropRef:M.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Am,onOpenChange:void 0,onOpenChangeComplete:void 0},o7)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;const r={open:t,nativeEvent:n.event,reason:n.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",r);const i={open:t},c=n.trigger?.id??null;(c||t)&&(i.activeTriggerId=c,i.activeTriggerElement=n.trigger??null),this.update(i)}}function a7(e={}){return{...IM(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function c7(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:c,disablePointerDismissal:l=!1,modal:f=!0,actionsRef:d,handle:h,triggerId:b,defaultTriggerId:g=null}=e,v=fc(!0),_=!!v,w=Sr(()=>h?.store??new i7({open:r,openProp:n,activeTriggerId:g,triggerIdProp:b,modal:f,disablePointerDismissal:l,nested:_})).current;jM(()=>{n===void 0&&w.state.open===!1&&r===!0&&w.update({open:!0,activeTriggerId:g})}),w.useControlledProp("openProp",n),w.useControlledProp("triggerIdProp",b),w.useSyncedValues({disablePointerDismissal:l,nested:_,modal:f}),w.useContextCallback("onOpenChange",i),w.useContextCallback("onOpenChangeComplete",c);const E=w.useState("payload");r7({store:w,actionsRef:d,parentContext:v?.store.context});const R=M.useMemo(()=>({store:w}),[w]);return N.jsx(oM.Provider,{value:R,children:typeof t=="function"?t({payload:E}):t})}const l7=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=fc(),d=nS(c);return f.useSyncedValueWithCleanup("titleElementId",d),_r("h2",t,{ref:n,props:[{id:d},l]})});function u7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(c7,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}function f7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(KV,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}function d7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx(B9,{className:i,"data-slot":"sheet-overlay",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function h7(e){const t=kt.c(17);let n,r,i,c,l;t[0]!==e?({className:r,children:n,side:c,showCloseButton:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5]);const f=c===void 0?"right":c,d=l===void 0?!0:l;let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h=N.jsx(d7,{}),t[6]=h):h=t[6];let b;t[7]!==r?(b=cn("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 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=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",r),t[7]=r,t[8]=b):b=t[8];let g;t[9]!==d?(g=d&&N.jsxs($9,{"data-slot":"sheet-close",render:N.jsx(Il,{className:"absolute top-4 right-4",size:"icon-sm",variant:"ghost"}),children:[N.jsx(R8,{}),N.jsx("span",{className:"sr-only",children:"Close"})]}),t[9]=d,t[10]=g):g=t[10];let v;return t[11]!==n||t[12]!==i||t[13]!==f||t[14]!==b||t[15]!==g?(v=N.jsxs(f7,{children:[h,N.jsxs(FV,{className:b,"data-side":f,"data-slot":"sheet-content",...i,children:[n,g]})]}),t[11]=n,t[12]=i,t[13]=f,t[14]=b,t[15]=g,t[16]=v):v=t[16],v}function p7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("flex flex-col gap-1.5 p-6",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-slot":"sheet-header",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function m7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("font-medium text-foreground text-sm",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx(l7,{className:i,"data-slot":"sheet-title",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function g7(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("text-muted-foreground text-xs/relaxed",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx(U9,{className:i,"data-slot":"sheet-description",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const HM=M.createContext(void 0);function Wf(e){const t=M.useContext(HM);if(t===void 0&&!e)throw new Error(Vo(72));return t}const y7={...OM,disabled:ot(e=>e.disabled),instantType:ot(e=>e.instantType),isInstantPhase:ot(e=>e.isInstantPhase),trackCursorAxis:ot(e=>e.trackCursorAxis),disableHoverablePopup:ot(e=>e.disableHoverablePopup),lastOpenChangeReason:ot(e=>e.openChangeReason),closeDelay:ot(e=>e.closeDelay),hasViewport:ot(e=>e.hasViewport)};class yS extends pS{constructor(t){super({...b7(),...t},{popupRef:M.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Am},y7)}setOpen=(t,n)=>{const r=n.reason,i=r===Lr,c=t&&r===bp,l=!t&&(r===Fp||r===fS);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const f=()=>{const d={open:t,openChangeReason:r};c?d.instantType="focus":l?d.instantType="dismiss":r===Lr&&(d.instantType=void 0);const h=n.trigger?.id??null;(h||t)&&(d.activeTriggerId=h,d.activeTriggerElement=n.trigger??null),this.update(d)};i?na.flushSync(f):f()};static useStore(t,n){const r=Sr(()=>new yS(n)).current,i=t??r,c=MM({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=c,i}}function b7(){return{...IM(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const v7=RM(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:c=!1,trackCursorAxis:l="none",actionsRef:f,onOpenChange:d,onOpenChangeComplete:h,handle:b,triggerId:g,defaultTriggerId:v=null,children:_}=t,w=yS.useStore(b?.store,{open:r,openProp:i,activeTriggerId:v,triggerIdProp:g});jM(()=>{i===void 0&&w.state.open===!1&&r===!0&&w.update({open:!0,activeTriggerId:v})}),w.useControlledProp("openProp",i),w.useControlledProp("triggerIdProp",g),w.useContextCallback("onOpenChange",d),w.useContextCallback("onOpenChangeComplete",h);const E=w.useState("open"),R=!n&&E,C=w.useState("activeTriggerId"),I=w.useState("payload");w.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:c}),pt(()=>{E&&n&&w.setOpen(!1,Jt(O9))},[E,n,w]),w.useSyncedValue("disabled",n),AM(w);const{forceUnmount:k,transitionStatus:T}=TM(R,w),$=w.useState("isInstantPhase"),j=w.useState("instantType"),H=w.useState("lastOpenChangeReason"),P=M.useRef(null);pt(()=>{T==="ending"&&H===uS||T!=="ending"&&$?(j!=="delay"&&(P.current=j),w.set("instantType","delay")):P.current!==null&&(w.set("instantType",P.current),P.current=null)},[T,$,H,j,w]),pt(()=>{R&&C==null&&w.set("payload",void 0)},[w,C,R]);const Q=M.useCallback(()=>{w.setOpen(!1,S7(w,rM))},[w]);M.useImperativeHandle(f,()=>({unmount:k,close:Q}),[k,Q]);const ne=w.useState("floatingRootContext"),te=_M(ne,{enabled:!n,referencePress:!0}),F=rH(ne,{enabled:!n&&l!=="none",axis:l==="none"?void 0:l}),{getReferenceProps:oe,getFloatingProps:me,getTriggerProps:ge}=kM([te,F]),V=M.useMemo(()=>oe(),[oe]),re=M.useMemo(()=>ge(),[ge]),J=M.useMemo(()=>me(),[me]);return w.useSyncedValues({activeTriggerProps:V,inactiveTriggerProps:re,popupProps:J}),N.jsx(HM.Provider,{value:w,children:typeof _=="function"?_({payload:I}):_})});function S7(e,t){const n=Jt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const VM=M.createContext(void 0);function _7(){return M.useContext(VM)}let w7=(function(e){return e[e.popupOpen=Gp.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const E7=600,x7=fV(function(t,n){const{className:r,render:i,handle:c,payload:l,disabled:f,delay:d,closeDelay:h,id:b,...g}=t,v=Wf(!0),_=c?.store??v;if(!_)throw new Error(Vo(82));const w=nS(b),E=_.useState("isTriggerActive",w),R=_.useState("isOpenedByTrigger",w),C=_.useState("floatingRootContext"),I=M.useRef(null),k=d??E7,T=h??0,{registerTrigger:$,isMountedByThisTrigger:j}=_V(w,I,_,{payload:l,closeDelay:T}),H=_7(),{delayRef:P,isInstantPhase:Q,hasProvider:ne}=G9(C,{open:R});_.useSyncedValue("isInstantPhase",Q);const te=_.useState("disabled"),F=f??te,oe=_.useState("trackCursorAxis"),me=_.useState("disableHoverablePopup"),ge=DV(C,{enabled:!F,mouseOnly:!0,move:!1,handleClose:!me&&oe!=="both"?LV():null,restMs(){const ue=H?.delay,z=typeof P.current=="object"?P.current.open:void 0;let ee=k;return ne&&(z!==0?ee=d??ue??k:ee=0),ee},delay(){const ue=typeof P.current=="object"?P.current.close:void 0;let z=T;return h==null&&ne&&(z=ue),{close:z}},triggerElementRef:I,isActiveTrigger:E}),V=RV(C,{enabled:!F}).reference,re={open:R},J=_.useState("triggerProps",j);return _r("button",t,{state:re,ref:[n,$,I],props:[ge,V,J,{id:w,[w7.triggerDisabled]:F?"":void 0},g],stateAttributesMapping:L9})}),qM=M.createContext(void 0);function R7(){const e=M.useContext(qM);if(e===void 0)throw new Error(Vo(70));return e}const C7=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,...f}=t,{portalNode:d,portalSubtree:h}=dM({container:i,ref:n,componentProps:t,elementProps:f});return!h&&!d?null:N.jsxs(M.Fragment,{children:[h,d&&na.createPortal(r,d)]})}),A7=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Wf().useState("mounted")||r?N.jsx(qM.Provider,{value:r,children:N.jsx(C7,{ref:n,...i})}):null}),FM=M.createContext(void 0);function GM(){const e=M.useContext(FM);if(e===void 0)throw new Error(Vo(71));return e}const T7=M.createContext(void 0);function I7(){return M.useContext(T7)?.direction??"ltr"}const O7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:c,platform:l,elements:f,middlewareData:d}=t,{element:h,padding:b=0,offsetParent:g="real"}=Uo(e,t)||{};if(h==null)return{};const v=qO(b),_={x:n,y:r},w=aS(i),E=iS(w),R=await l.getDimensions(h),C=w==="y",I=C?"top":"left",k=C?"bottom":"right",T=C?"clientHeight":"clientWidth",$=c.reference[E]+c.reference[w]-_[w]-c.floating[E],j=_[w]-c.reference[w],H=g==="real"?await l.getOffsetParent?.(h):f.floating;let P=f.floating[T]||c.floating[E];(!P||!await l.isElement?.(H))&&(P=f.floating[T]||c.floating[E]);const Q=$/2-j/2,ne=P/2-R[E]/2-1,te=Math.min(v[I],ne),F=Math.min(v[k],ne),oe=te,me=P-R[E]-F,ge=P/2-R[E]/2+Q,V=lv(oe,ge,me),re=!d.arrow&&ia(i)!=null&&ge!==V&&c.reference[E]/2-(ge({...O7(e),options:[e,t]}),D7={name:"hide",async fn(e){const{width:t,height:n,x:r,y:i}=e.rects.reference,c=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await FH().fn(e)).data?.referenceHidden||c}}}},_p={sideX:"left",sideY:"top"},k7={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:c,strategy:l,placement:f}=e,d=Sn(i),h=d.getComputedStyle(i);if(!(h.transitionDuration!=="0s"&&h.transitionDuration!==""))return{x:t,y:n,data:_p};const g=await c.getOffsetParent?.(i);let v={width:0,height:0};if(l==="fixed"&&d?.visualViewport)v={width:d.visualViewport.width,height:d.visualViewport.height};else if(g===d){const I=Kt(i);v={width:I.documentElement.clientWidth,height:I.documentElement.clientHeight}}else await c.isElement?.(g)&&(v=await c.getDimensions(g));const _=Es(f);let w=t,E=n;_==="left"&&(w=v.width-(t+r.width)),_==="top"&&(E=v.height-(n+r.height));const R=_==="left"?"right":_p.sideX,C=_==="top"?"bottom":_p.sideY;return{x:w,y:E,data:{sideX:R,sideY:C}}}};function ZM(e,t,n){const 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 VA(e,t,n){const{rects:r,placement:i}=e;return{side:ZM(t,Es(i),n),align:ia(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function P7(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:d=5,sticky:h=!1,arrowPadding:b=5,disableAnchorTracking:g=!1,keepMounted:v=!1,floatingRootContext:_,mounted:w,collisionAvoidance:E,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:I,lazyFlip:k=!1,externalTree:T}=e,[$,j]=M.useState(null);!w&&$!==null&&j(null);const H=E.side||"flip",P=E.align||"flip",Q=E.fallbackAxisSide||"end",ne=typeof t=="function"?t:void 0,te=Fe(ne),F=ne?te:t,oe=Qr(t),ge=I7()==="rtl",V=$||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ge?"left":"right","inline-start":ge?"right":"left"}[r],re=c==="center"?V:`${V}-${c}`;let J=d;const be=1,ue=r==="bottom"?be:0,z=r==="top"?be:0,ee=r==="right"?be:0,ye=r==="left"?be:0;typeof J=="number"?J={top:J+ue,right:J+ye,bottom:J+z,left:J+ee}:J&&(J={top:(J.top||0)+ue,right:(J.right||0)+ye,bottom:(J.bottom||0)+z,left:(J.left||0)+ee});const we={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:J},Ee=M.useRef(null),Se=Qr(i),Ie=Qr(l),Je=[UH(qt=>{const Kn=VA(qt,r,ge),Js=typeof Se.current=="function"?Se.current(Kn):Se.current,Nn=typeof Ie.current=="function"?Ie.current(Kn):Ie.current;return{mainAxis:Js,crossAxis:Nn,alignmentAxis:Nn}},[typeof i!="function"?i:0,typeof l!="function"?l:0,ge,r])],wt=P==="none"&&H!=="shift",pe=!wt&&(h||R||H==="shift"),xe=H==="none"?null:VH({...we,padding:{top:J.top+be,right:J.right+be,bottom:J.bottom+be,left:J.left+be},mainAxis:!R&&H==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:Q}),_e=wt?null:jH(qt=>{const Kn=Kt(qt.elements.floating).documentElement;return{...we,rootBoundary:R?{x:0,y:0,width:Kn.clientWidth,height:Kn.clientHeight}:void 0,mainAxis:P!=="none",crossAxis:pe,limiter:h||R?void 0:HH(Js=>{if(!Ee.current)return{};const{width:Nn,height:ds}=Ee.current.getBoundingClientRect(),co=vr(Es(Js.placement)),er=co==="y"?Nn:ds,fi=co==="y"?J.left+J.right:J.top+J.bottom;return{offset:er/2+fi/2}})}},[we,h,R,J,P]);H==="shift"||P==="shift"||c==="center"?Je.push(_e,xe):Je.push(xe,_e),Je.push(qH({...we,apply({elements:{floating:qt},rects:{reference:Kn},availableWidth:Js,availableHeight:Nn}){const ds=qt.style;ds.setProperty("--available-width",`${Js}px`),ds.setProperty("--available-height",`${Nn}px`),ds.setProperty("--anchor-width",`${Kn.width}px`),ds.setProperty("--anchor-height",`${Kn.height}px`)}}),M7(()=>({element:Ee.current||document.createElement("div"),padding:b,offsetParent:"floating"}),[b]),{name:"transformOrigin",fn(qt){const{elements:Kn,middlewareData:Js,placement:Nn,rects:ds,y:co}=qt,er=Es(Nn),fi=vr(er),di=Ee.current,Sg=Js.arrow?.x||0,Cd=Js.arrow?.y||0,au=di?.clientWidth||0,Ra=di?.clientHeight||0,cu=Sg+au/2,lu=Cd+Ra/2,Ad=Math.abs(Js.shift?.y||0),Td=ds.reference.height/2,lo=typeof i=="function"?i(VA(qt,r,ge)):i,uu=Ad>lo,Id={top:`${cu}px calc(100% + ${lo}px)`,bottom:`${cu}px ${-lo}px`,left:`calc(100% + ${lo}px) ${lu}px`,right:`${-lo}px ${lu}px`}[er],Od=`${cu}px ${ds.reference.y+Td-co}px`;return Kn.floating.style.setProperty("--transform-origin",pe&&fi==="y"&&uu?Od:Id),{}}},D7,I),pt(()=>{!w&&_&&_.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[w,_]);const Ge=M.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Oe,elements:He,x:Me,y:ft,middlewareData:mt,update:Xe,placement:Pt,context:wn,isPositioned:It,floatingStyles:Xs}=xV({rootContext:_,placement:re,middleware:Je,strategy:n,whileElementsMounted:v?void 0:(...qt)=>PA(...qt,Ge),nodeId:C,externalTree:T}),{sideX:dt,sideY:$t}=mt.adaptiveOrigin||_p,gt=It?n:"fixed",Os=M.useMemo(()=>{const qt=I?{position:gt,[dt]:Me,[$t]:ft}:{position:gt,...Xs};return It||(qt.opacity=0),qt},[I,gt,dt,Me,$t,ft,Xs,It]),Ws=M.useRef(null);pt(()=>{if(!w)return;const qt=oe.current,Kn=typeof qt=="function"?qt():qt,Nn=(qA(Kn)?Kn.current:Kn)||null||null;Nn!==Ws.current&&(Oe.setPositionReference(Nn),Ws.current=Nn)},[w,Oe,F,oe]),M.useEffect(()=>{if(!w)return;const qt=oe.current;typeof qt!="function"&&qA(qt)&&qt.current!==Ws.current&&(Oe.setPositionReference(qt.current),Ws.current=qt.current)},[w,Oe,F,oe]),M.useEffect(()=>{if(v&&w&&He.domReference&&He.floating)return PA(He.domReference,He.floating,Xe,Ge)},[v,w,He,Xe,Ge]);const ao=Es(Pt),Rd=ZM(r,ao,ge),ui=ia(Pt)||"center",Gn=!!mt.hide?.referenceHidden;pt(()=>{k&&w&&It&&j(ao)},[k,w,It,ao]);const Ir=M.useMemo(()=>({position:"absolute",top:mt.arrow?.y,left:mt.arrow?.x}),[mt.arrow]),Zn=mt.arrow?.centerOffset!==0;return M.useMemo(()=>({positionerStyles:Os,arrowStyles:Ir,arrowRef:Ee,arrowUncentered:Zn,side:Rd,align:ui,physicalSide:ao,anchorHidden:Gn,refs:Oe,context:wn,isPositioned:It,update:Xe}),[Os,Ir,Ee,Zn,Rd,ui,ao,Gn,Oe,wn,It,Xe])}function qA(e){return e!=null&&"current"in e}function KM(e){return e==="starting"?U5:Hs}const N7=M.forwardRef(function(t,n){const{render:r,className:i,anchor:c,positionMethod:l="absolute",side:f="top",align:d="center",sideOffset:h=0,alignOffset:b=0,collisionBoundary:g="clipping-ancestors",collisionPadding:v=5,arrowPadding:_=5,sticky:w=!1,disableAnchorTracking:E=!1,collisionAvoidance:R=H5,...C}=t,I=Wf(),k=R7(),T=I.useState("open"),$=I.useState("mounted"),j=I.useState("trackCursorAxis"),H=I.useState("disableHoverablePopup"),P=I.useState("floatingRootContext"),Q=I.useState("instantType"),ne=I.useState("transitionStatus"),te=I.useState("hasViewport"),F=P7({anchor:c,positionMethod:l,floatingRootContext:P,mounted:$,side:f,sideOffset:h,align:d,alignOffset:b,collisionBoundary:g,collisionPadding:v,sticky:w,arrowPadding:_,disableAnchorTracking:E,keepMounted:k,collisionAvoidance:R,adaptiveOrigin:te?k7:void 0}),oe=M.useMemo(()=>{const re={};return(!T||j==="both"||H)&&(re.pointerEvents="none"),{role:"presentation",hidden:!$,style:{...F.positionerStyles,...re}}},[T,j,H,$,F.positionerStyles]),me=M.useMemo(()=>({open:T,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:j!=="none"?"tracking-cursor":Q}),[T,F.side,F.align,F.anchorHidden,j,Q]),ge=M.useMemo(()=>({...me,arrowRef:F.arrowRef,arrowStyles:F.arrowStyles,arrowUncentered:F.arrowUncentered}),[me,F.arrowRef,F.arrowStyles,F.arrowUncentered]),V=_r("div",t,{state:me,props:[oe,KM(ne),C],ref:[n,I.useStateSetter("positionerElement")],stateAttributesMapping:Yf});return N.jsx(FM.Provider,{value:ge,children:V})}),L7={...Yf,...cS},z7=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,l=Wf(),{side:f,align:d}=GM(),h=l.useState("open"),b=l.useState("instantType"),g=l.useState("transitionStatus"),v=l.useState("popupProps"),_=l.useState("floatingRootContext");lS({open:h,ref:l.context.popupRef,onComplete(){h&&l.context.onOpenChangeComplete?.(!0)}});const w=l.useState("disabled"),E=l.useState("closeDelay");return IV(_,{enabled:!w,closeDelay:E}),_r("div",t,{state:{open:h,side:f,align:d,instant:b,transitionStatus:g},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[v,KM(g),c],stateAttributesMapping:L7})}),B7=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,f=Wf().useState("instantType"),{open:d,arrowRef:h,side:b,align:g,arrowUncentered:v,arrowStyles:_}=GM();return _r("div",t,{state:{open:d,side:b,align:g,uncentered:v,instant:f},ref:[n,h],props:[{style:_,"aria-hidden":!0},c],stateAttributesMapping:Yf})}),$7=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,c=M.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=M.useMemo(()=>({open:n,close:r}),[n,r]);return N.jsx(VM.Provider,{value:c,children:N.jsx(F9,{delay:l,timeoutMs:i,children:t.children})})};function U7(e){const t=kt.c(6);let n,r;t[0]!==e?({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const i=r===void 0?0:r;let c;return t[3]!==i||t[4]!==n?(c=N.jsx($7,{"data-slot":"tooltip-provider",delay:i,...n}),t[3]=i,t[4]=n,t[5]=c):c=t[5],c}function j7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(U7,{children:N.jsx(v7,{"data-slot":"tooltip",...n})}),t[2]=n,t[3]=r):r=t[3],r}function H7(e){const t=kt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=N.jsx(x7,{"data-slot":"tooltip-trigger",...n}),t[2]=n,t[3]=r):r=t[3],r}function V7(e){const t=kt.c(21);let n,r,i,c,l,f,d;t[0]!==e?({className:r,side:c,sideOffset:l,align:f,alignOffset:d,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const h=c===void 0?"top":c,b=l===void 0?4:l,g=f===void 0?"center":f,v=d===void 0?0:d;let _;t[8]!==r?(_=cn("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 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:rounded-md",r),t[8]=r,t[9]=_):_=t[9];let w;t[10]===Symbol.for("react.memo_cache_sentinel")?(w=N.jsx(B7,{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=right]:top-1/2! data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=right]:-left-1 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2"}),t[10]=w):w=t[10];let E;t[11]!==n||t[12]!==i||t[13]!==_?(E=N.jsxs(z7,{className:_,"data-slot":"tooltip-content",...i,children:[n,w]}),t[11]=n,t[12]=i,t[13]=_,t[14]=E):E=t[14];let R;return t[15]!==g||t[16]!==v||t[17]!==h||t[18]!==b||t[19]!==E?(R=N.jsx(A7,{children:N.jsx(N7,{align:g,alignOffset:v,className:"isolate z-50",side:h,sideOffset:b,children:E})}),t[15]=g,t[16]=v,t[17]=h,t[18]=b,t[19]=E,t[20]=R):R=t[20],R}const q7=768,QM=`(max-width: ${q7-1}px)`;function F7(e){const t=window.matchMedia(QM);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function G7(){return window.matchMedia(QM).matches}function Z7(){return M.useSyncExternalStore(F7,G7)}const K7="sidebar_state",Q7=3600*24*7,Y7="12rem",X7="16rem",W7="3rem",J7="b",YM=M.createContext(null);function Tm(){const e=M.useContext(YM);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function eq(e){const t=kt.c(36);let n,r,i,c,l,f,d;t[0]!==e?({defaultOpen:d,open:i,onOpenChange:l,className:r,style:f,children:n,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const h=d===void 0?!0:d,b=Z7(),[g,v]=M.useState(!1),[_,w]=M.useState(h),E=i??_;let R;t[8]!==E||t[9]!==l?(R=me=>{const ge=typeof me=="function"?me(E):me;l?l(ge):w(ge),document.cookie=`${K7}=${ge}; path=/; max-age=${Q7}`},t[8]=E,t[9]=l,t[10]=R):R=t[10];const C=R;let I;t[11]!==b||t[12]!==C?(I=()=>b?v(nq):C(tq),t[11]=b,t[12]=C,t[13]=I):I=t[13];const k=I;let T,$;t[14]!==k?(T=()=>{const me=ge=>{ge.key===J7&&(ge.metaKey||ge.ctrlKey)&&(ge.preventDefault(),k())};return window.addEventListener("keydown",me),()=>window.removeEventListener("keydown",me)},$=[k],t[14]=k,t[15]=T,t[16]=$):(T=t[15],$=t[16]),M.useEffect(T,$);const j=E?"expanded":"collapsed";let H;t[17]!==b||t[18]!==E||t[19]!==g||t[20]!==C||t[21]!==j||t[22]!==k?(H={state:j,open:E,setOpen:C,isMobile:b,openMobile:g,setOpenMobile:v,toggleSidebar:k},t[17]=b,t[18]=E,t[19]=g,t[20]=C,t[21]=j,t[22]=k,t[23]=H):H=t[23];const P=H;let Q;t[24]!==r?(Q=cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),t[24]=r,t[25]=Q):Q=t[25];let ne;t[26]!==f?(ne={"--sidebar-width":Y7,"--sidebar-width-icon":W7,...f},t[26]=f,t[27]=ne):ne=t[27];const te=ne;let F;t[28]!==n||t[29]!==c||t[30]!==Q||t[31]!==te?(F=N.jsx("div",{className:Q,"data-slot":"sidebar-wrapper",style:te,...c,children:n}),t[28]=n,t[29]=c,t[30]=Q,t[31]=te,t[32]=F):F=t[32];let oe;return t[33]!==P||t[34]!==F?(oe=N.jsx(YM.Provider,{value:P,children:F}),t[33]=P,t[34]=F,t[35]=oe):oe=t[35],oe}function tq(e){return!e}function nq(e){return!e}function sq(e){const t=kt.c(46);let n,r,i,c,l,f;t[0]!==e?({side:c,variant:l,collapsible:f,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6]);const d=c===void 0?"left":c,h=l===void 0?"sidebar":l,b=f===void 0?"offExamples":f,{isMobile:g,state:v,openMobile:_,setOpenMobile:w}=Tm();if(b==="none"){let Q;t[7]!==r?(Q=cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),t[7]=r,t[8]=Q):Q=t[8];let ne;return t[9]!==n||t[10]!==i||t[11]!==Q?(ne=N.jsx("div",{className:Q,"data-slot":"sidebar",...i,children:n}),t[9]=n,t[10]=i,t[11]=Q,t[12]=ne):ne=t[12],ne}if(g){let Q;t[13]===Symbol.for("react.memo_cache_sentinel")?(Q={"--sidebar-width":X7},t[13]=Q):Q=t[13];let ne;t[14]===Symbol.for("react.memo_cache_sentinel")?(ne=N.jsxs(p7,{className:"sr-only",children:[N.jsx(m7,{children:"Sidebar"}),N.jsx(g7,{children:"Displays the mobile sidebar."})]}),t[14]=ne):ne=t[14];let te;t[15]!==n?(te=N.jsx("div",{className:"flex h-full w-full flex-col",children:n}),t[15]=n,t[16]=te):te=t[16];let F;t[17]!==d||t[18]!==te?(F=N.jsxs(h7,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:d,style:Q,children:[ne,te]}),t[17]=d,t[18]=te,t[19]=F):F=t[19];let oe;return t[20]!==_||t[21]!==i||t[22]!==w||t[23]!==F?(oe=N.jsx(u7,{onOpenChange:w,open:_,...i,children:F}),t[20]=_,t[21]=i,t[22]=w,t[23]=F,t[24]=oe):oe=t[24],oe}const E=v==="collapsed"?b:"",R=h==="floating"||h==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let C;t[25]!==R?(C=cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",R),t[25]=R,t[26]=C):C=t[26];let I;t[27]!==C?(I=N.jsx("div",{className:C,"data-slot":"sidebar-gap"}),t[27]=C,t[28]=I):I=t[28];const k=d==="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)]",T=h==="floating"||h==="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";let $;t[29]!==r||t[30]!==k||t[31]!==T?($=cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",k,T,r),t[29]=r,t[30]=k,t[31]=T,t[32]=$):$=t[32];let j;t[33]!==n?(j=N.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]=j):j=t[34];let H;t[35]!==i||t[36]!==$||t[37]!==j?(H=N.jsx("div",{className:$,"data-slot":"sidebar-container",...i,children:j}),t[35]=i,t[36]=$,t[37]=j,t[38]=H):H=t[38];let P;return t[39]!==d||t[40]!==v||t[41]!==H||t[42]!==E||t[43]!==I||t[44]!==h?(P=N.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":E,"data-side":d,"data-slot":"sidebar","data-state":v,"data-variant":h,children:[I,H]}),t[39]=d,t[40]=v,t[41]=H,t[42]=E,t[43]=I,t[44]=h,t[45]=P):P=t[45],P}function rq(e){const t=kt.c(15);let n,r,i;t[0]!==e?({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{toggleSidebar:c}=Tm();let l;t[4]!==n?(l=cn(n),t[4]=n,t[5]=l):l=t[5];let f;t[6]!==r||t[7]!==c?(f=g=>{r?.(g),c()},t[6]=r,t[7]=c,t[8]=f):f=t[8];let d,h;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=N.jsx(S8,{}),h=N.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),t[9]=d,t[10]=h):(d=t[9],h=t[10]);let b;return t[11]!==i||t[12]!==l||t[13]!==f?(b=N.jsxs(Il,{className:l,"data-sidebar":"trigger","data-slot":"sidebar-trigger",onClick:f,size:"icon-lg",variant:"ghost",...i,children:[d,h]}),t[11]=i,t[12]=l,t[13]=f,t[14]=b):b=t[14],b}function oq(e){const t=kt.c(9);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{toggleSidebar:i}=Tm();let c;t[3]!==n?(c=cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 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 hover:group-data-[collapsible=offExamples]:bg-sidebar group-data-[collapsible=offExamples]:after:left-full","[[data-side=left][data-collapsible=offExamples]_&]:-right-2","[[data-side=right][data-collapsible=offExamples]_&]:-left-2",n),t[3]=n,t[4]=c):c=t[4];let l;return t[5]!==r||t[6]!==c||t[7]!==i?(l=N.jsx("button",{"aria-label":"Toggle Sidebar",className:c,"data-sidebar":"rail","data-slot":"sidebar-rail",onClick:i,tabIndex:-1,title:"Toggle Sidebar",...r}),t[5]=r,t[6]=c,t[7]=i,t[8]=l):l=t[8],l}function iq(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("flex flex-col gap-2 p-2",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-sidebar":"footer","data-slot":"sidebar-footer",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function aq(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("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):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-sidebar":"content","data-slot":"sidebar-content",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function sp(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("relative flex w-full min-w-0 flex-col px-2 py-1",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("div",{className:i,"data-sidebar":"group","data-slot":"sidebar-group",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function rp(e){const t=kt.c(10);let n,r,i,c;if(t[0]!==e){const{className:d,render:h,...b}=e;n=h,c=pO,r="div",i=vm({className:cn("flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",d)},b),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c}else n=t[1],r=t[2],i=t[3],c=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},t[5]=l):l=t[5];let f;return t[6]!==n||t[7]!==r||t[8]!==i?(f={defaultTagName:r,props:i,render:n,state:l},t[6]=n,t[7]=r,t[8]=i,t[9]=f):f=t[9],c(f)}function lf(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("flex w-full min-w-0 flex-col gap-px",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("ul",{className:i,"data-sidebar":"menu","data-slot":"sidebar-menu",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Hr(e){const t=kt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=cn("group/menu-item relative",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=N.jsx("li",{className:i,"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const cq=yO("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 outline-hidden ring-sidebar-ring transition-[width,height,padding] 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 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 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{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 Vr(e){const t=kt.c(15);let{render:n,isActive:r,variant:i,size:c,tooltip:l,className:f,...d}=e;const h=r===void 0?!1:r,b=i===void 0?"default":i,g=c===void 0?"default":c,{isMobile:v,state:_}=Tm(),w="button",E=vm({className:cn(cq({variant:b,size:g}),f)},d),R=l?H7:n;let C;t[0]!==h||t[1]!==g?(C={slot:"sidebar-menu-button",sidebar:"menu-button",size:g,active:h},t[0]=h,t[1]=g,t[2]=C):C=t[2];let I;t[3]!==E||t[4]!==R||t[5]!==C?(I={defaultTagName:w,props:E,render:R,state:C},t[3]=E,t[4]=R,t[5]=C,t[6]=I):I=t[6];const k=pO(I);if(!l)return k;if(typeof l=="string"){let H;t[7]!==l?(H={children:l},t[7]=l,t[8]=H):H=t[8],l=H}const T=_!=="collapsed"||v;let $;t[9]!==T||t[10]!==l?($=N.jsx(V7,{align:"center",hidden:T,side:"right",...l}),t[9]=T,t[10]=l,t[11]=$):$=t[11];let j;return t[12]!==k||t[13]!==$?(j=N.jsxs(j7,{children:[k,$]}),t[12]=k,t[13]=$,t[14]=j):j=t[14],j}function lq(){const e=kt.c(8),{theme:t,setTheme:n}=A5();let 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];const i=r;let c,l,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=N.jsx(E8,{className:"size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),l=N.jsx(g8,{className:"absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),f=N.jsx("span",{className:"sr-only",children:"Toggle theme"}),e[3]=c,e[4]=l,e[5]=f):(c=e[3],l=e[4],f=e[5]);let d;return e[6]!==i?(d=N.jsxs(Il,{className:"rounded-full",onClick:i,size:"icon-sm",variant:"ghost",children:[c,l,f]}),e[6]=i,e[7]=d):d=e[7],d}function XM(){const e=kt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=cn("z-50 flex h-10 shrink-0 items-center gap-2 border-sidebar-border border-b bg-sidebar px-4 text-sidebar-foreground","sticky top-0"),n=N.jsx(rq,{className:"-ml-1"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=N.jsxs("header",{className:t,children:[n,N.jsx("div",{className:"flex w-full justify-end",children:N.jsx(lq,{})})]}),e[2]=r):r=e[2],r}function uq(){const e=kt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=N.jsx("h1",{className:"font-bold text-4xl",children:"404"}),n=N.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=N.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4",children:[t,n,N.jsx($s,{to:"/",children:N.jsx(Il,{variant:"outline",children:"Go back home"})})]}),e[2]=r):r=e[2],r}function de(e,t,n){function r(f,d){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const h=l.prototype,b=Object.keys(h);for(let g=0;gn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class wl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class WM extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const JM={};function oc(e){return JM}function eD(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function gv(e,t){return typeof t=="bigint"?t.toString():t}function bS(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function vS(e){return e==null}function SS(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function fq(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]))}const c=n>i?n:i,l=Number.parseInt(e.toFixed(c).replace(".","")),f=Number.parseInt(t.toFixed(c).replace(".",""));return l%f/10**c}const FA=Symbol("evaluating");function Dt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==FA)return r===void 0&&(r=FA,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function dc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function aa(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function GA(e){return JSON.stringify(e)}function dq(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const tD="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Yp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const hq=bS(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Nf(e){if(Yp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Yp(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function nD(e){return Nf(e)?{...e}:Array.isArray(e)?[...e]:e}const pq=new Set(["string","number","symbol"]);function Im(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ca(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ue(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function mq(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const gq={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function yq(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=aa(e._zod.def,{get shape(){const l={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(l[f]=n.shape[f])}return dc(this,"shape",l),l},checks:[]});return ca(e,c)}function bq(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=aa(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete l[f]}return dc(this,"shape",l),l},checks:[]});return ca(e,c)}function vq(e,t){if(!Nf(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const c=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(c,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=aa(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return dc(this,"shape",c),c}});return ca(e,i)}function Sq(e,t){if(!Nf(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=aa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return dc(this,"shape",r),r}});return ca(e,n)}function _q(e,t){const n=aa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return dc(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return ca(e,n)}function wq(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=aa(t._zod.def,{get shape(){const f=t._zod.def.shape,d={...f};if(n)for(const h in n){if(!(h in f))throw new Error(`Unrecognized key: "${h}"`);n[h]&&(d[h]=e?new e({type:"optional",innerType:f[h]}):f[h])}else for(const h in f)d[h]=e?new e({type:"optional",innerType:f[h]}):f[h];return dc(this,"shape",d),d},checks:[]});return ca(t,l)}function Eq(e,t,n){const r=aa(t._zod.def,{get shape(){const i=t._zod.def.shape,c={...i};if(n)for(const l in n){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=new e({type:"nonoptional",innerType:i[l]}))}else for(const l in i)c[l]=new e({type:"nonoptional",innerType:i[l]});return dc(this,"shape",c),c}});return ca(t,r)}function gl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function op(e){return typeof e=="string"?e:e?.message}function ic(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=op(e.inst?._zod.def?.error?.(e))??op(t?.error?.(e))??op(n.customError?.(e))??op(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function _S(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Lf(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const rD=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,gv,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},oD=de("$ZodError",rD),Om=de("$ZodError",rD,{Parent:Error});function xq(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Rq(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l}));else if(c.code==="invalid_key")r({issues:c.issues});else if(c.code==="invalid_element")r({issues:c.issues});else if(c.path.length===0)n._errors.push(t(c));else{let l=n,f=0;for(;f(t,n,r,i)=>{const c=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise)throw new wl;if(l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>ic(d,c,oc())));throw tD(f,i?.callee),f}return l.value},jRe=Mm(Om),Dm=e=>async(t,n,r,i)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise&&(l=await l),l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>ic(d,c,oc())));throw tD(f,i?.callee),f}return l.value},HRe=Dm(Om),km=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new wl;return c.issues.length?{success:!1,error:new(e??oD)(c.issues.map(l=>ic(l,i,oc())))}:{success:!0,data:c.value}},Cq=km(Om),Pm=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(l=>ic(l,i,oc())))}:{success:!0,data:c.value}},Aq=Pm(Om),Tq=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Mm(e)(t,n,i)},Iq=e=>(t,n,r)=>Mm(e)(t,n,r),Oq=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Dm(e)(t,n,i)},Mq=e=>async(t,n,r)=>Dm(e)(t,n,r),Dq=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return km(e)(t,n,i)},kq=e=>(t,n,r)=>km(e)(t,n,r),Pq=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Pm(e)(t,n,i)},Nq=e=>async(t,n,r)=>Pm(e)(t,n,r),Lq=/^[cC][^\s-]{8,}$/,zq=/^[0-9a-z]+$/,Bq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$q=/^[0-9a-vA-V]{20}$/,Uq=/^[A-Za-z0-9]{27}$/,jq=/^[a-zA-Z0-9_-]{21}$/,Hq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Vq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ZA=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,qq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Fq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Gq(){return new RegExp(Fq,"u")}const Zq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Kq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Qq=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Yq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Xq=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,iD=/^[A-Za-z0-9_-]*$/,Wq=/^\+[1-9]\d{6,14}$/,aD="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Jq=new RegExp(`^${aD}$`);function cD(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function eF(e){return new RegExp(`^${cD(e)}$`)}function tF(e){const t=cD({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${aD}T(?:${r})$`)}const nF=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sF=/^-?\d+$/,rF=/^-?\d+(?:\.\d+)?$/,oF=/^(?:true|false)$/i,iF=/^[^A-Z]*$/,aF=/^[^a-z]*$/,Rs=de("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),lD={number:"number",bigint:"bigint",object:"date"},uD=de("$ZodCheckLessThan",(e,t)=>{Rs.init(e,t);const n=lD[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{Rs.init(e,t);const n=lD[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>c&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cF=de("$ZodCheckMultipleOf",(e,t)=>{Rs.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):fq(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),lF=de("$ZodCheckNumberFormat",(e,t)=>{Rs.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,c]=gq[t.format];e._zod.onattach.push(l=>{const f=l._zod.bag;f.format=t.format,f.minimum=i,f.maximum=c,n&&(f.pattern=sF)}),e._zod.check=l=>{const f=l.value;if(n){if(!Number.isInteger(f)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?l.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}fc&&l.issues.push({origin:"number",input:f,code:"too_big",maximum:c,inclusive:!0,inst:e,continue:!t.abort})}}),uF=de("$ZodCheckMaxLength",(e,t)=>{var n;Rs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!vS(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=r.value;if(i.length<=t.maximum)return;const l=_S(i);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),fF=de("$ZodCheckMinLength",(e,t)=>{var n;Rs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!vS(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const l=_S(i);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),dF=de("$ZodCheckLengthEquals",(e,t)=>{var n;Rs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!vS(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,c=i.length;if(c===t.length)return;const l=_S(i),f=c>t.length;r.issues.push({origin:l,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Nm=de("$ZodCheckStringFormat",(e,t)=>{var n,r;Rs.init(e,t),e._zod.onattach.push(i=>{const c=i._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),hF=de("$ZodCheckRegex",(e,t)=>{Nm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),pF=de("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=iF),Nm.init(e,t)}),mF=de("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=aF),Nm.init(e,t)}),gF=de("$ZodCheckIncludes",(e,t)=>{Rs.init(e,t);const n=Im(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),yF=de("$ZodCheckStartsWith",(e,t)=>{Rs.init(e,t);const n=new RegExp(`^${Im(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),bF=de("$ZodCheckEndsWith",(e,t)=>{Rs.init(e,t);const n=new RegExp(`.*${Im(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),vF=de("$ZodCheckOverwrite",(e,t)=>{Rs.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class SF{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` + )`}return k.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),uF=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:c}=jc(),l=c.useState("mounted"),f=c.useState("modal"),d=c.useState("open");return l||r?k.jsx(fk.Provider,{value:r,children:k.jsxs(p7,{ref:n,...i,children:[l&&f===!0&&k.jsx(lF,{ref:c.context.internalBackdropRef,inert:cF(!d)}),t.children]})}):null});function vk(e){const t=M.useRef(!0);t.current&&(t.current=!1,e())}let JT={},e2={},t2="";function fF(e){if(typeof document>"u")return!1;const t=sn(e);return Pn(t).innerWidth-t.documentElement.clientWidth>0}function dF(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=sn(e),r=n.documentElement,i=n.body,c=Da(r)?r:i,l=c.style.overflowY,f=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",c.style.overflowY="scroll";const d=c.offsetWidth;c.style.overflowY="hidden";const p=c.offsetWidth;return c.style.overflowY=l,r.style.scrollbarGutter=f,d===p}function pF(e){const t=sn(e),n=t.documentElement,r=t.body,i=Da(n)?n:r,c={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,c)}}function hF(e){const t=sn(e),n=t.documentElement,r=t.body,i=Pn(n);let c=0,l=0,f=!1;const d=po.create();if(hP&&(i.visualViewport?.scale??1)!==1)return()=>{};function p(){const b=i.getComputedStyle(n),_=i.getComputedStyle(r),R=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=n.scrollTop,l=n.scrollLeft,JT={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},t2=n.style.scrollBehavior,e2={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};const C=n.scrollHeight>n.clientHeight,T=n.scrollWidth>n.clientWidth,P=b.overflowY==="scroll"||_.overflowY==="scroll",I=b.overflowX==="scroll"||_.overflowX==="scroll",B=Math.max(0,i.innerWidth-r.clientWidth),j=Math.max(0,i.innerHeight-r.clientHeight),V=parseFloat(_.marginTop)+parseFloat(_.marginBottom),N=parseFloat(_.marginLeft)+parseFloat(_.marginRight),Q=Da(n)?n:r;if(f=dF(e),f){n.style.scrollbarGutter=R,Q.style.overflowY="hidden",Q.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:R,overflowY:"hidden",overflowX:"hidden"}),(C||P)&&(n.style.overflowY="scroll"),(T||I)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:V||j?`calc(100dvh - ${V+j}px)`:"100dvh",width:N||B?`calc(100vw - ${N+B}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=c,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function v(){Object.assign(n.style,JT),Object.assign(r.style,e2),f||(n.scrollTop=c,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=t2)}function g(){v(),d.request(p)}return p(),i.addEventListener("resize",g),()=>{d.cancel(),v(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class mF{lockCount=0;restore=null;timeoutLock=Eo.create();timeoutUnlock=Eo.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=sn(t).documentElement,i=Pn(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=qD;return}const c=mP||!fF(t);this.restore=c?pF(t):hF(t)}}const gF=new mF;function yF(e=!0,t=null){Ct(()=>{if(e)return gF.acquire(t)},[e,t])}function vF(e){const t=M.useRef(""),n=M.useCallback(i=>{i.defaultPrevented||(t.current=i.pointerType,e(i,i.pointerType))},[e]);return{onClick:M.useCallback(i=>{if(i.detail===0){e(i,"keyboard");return}"pointerType"in i?e(i,i.pointerType):e(i,t.current),t.current=""},[e]),onPointerDown:n}}function bF(e){const[t,n]=M.useState(null),r=Ke((f,d)=>{e||n(d||(mP?"touch":""))}),i=M.useCallback(()=>{n(null)},[]),{onClick:c,onPointerDown:l}=vF(r);return M.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:c,onPointerDown:l}}),[t,i,c,l])}function SF(e){const{store:t,parentContext:n,actionsRef:r}=e,i=t.useState("open"),c=t.useState("disablePointerDismissal"),l=t.useState("modal"),f=t.useState("popupElement"),{openMethod:d,triggerProps:p,reset:v}=bF(i);rk(t);const{forceUnmount:g}=ok(i,t,()=>{v()}),b=Ke(ne=>{const te=ln(ne);return te.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},te}),_=M.useCallback(()=>{t.setOpen(!1,b(NP))},[t,b]);M.useImperativeHandle(r,()=>({unmount:g,close:_}),[g,_]);const E=ck({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[x,R]=M.useState(0),C=x===0,T=Yq(E),P=WP(E,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(ne){if(!t.context.outsidePressEnabledRef.current||"button"in ne&&ne.button!==0||"touches"in ne&&ne.touches.length!==1)return!1;const te=js(ne);if(C&&!c){const F=te;return l&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===F||t.context.backdropRef.current===F||At(F,f)&&!F?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:C});yF(i&&l===!0,f);const{getReferenceProps:I,getFloatingProps:B,getTriggerProps:j}=uk([T,P]);t.useContextCallback("onNestedDialogOpen",ne=>{R(ne+1)}),t.useContextCallback("onNestedDialogClose",()=>{R(0)}),M.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(x),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,x]);const V=M.useMemo(()=>I(p),[I,p]),N=M.useMemo(()=>j(p),[j,p]),Q=M.useMemo(()=>B(),[B]);t.useSyncedValues({openMethod:d,activeTriggerProps:V,inactiveTriggerProps:N,popupProps:Q,floatingRootContext:E,nestedOpenDialogCount:x})}const _F={...ak,modal:dt(e=>e.modal),nested:dt(e=>e.nested),nestedOpenDialogCount:dt(e=>e.nestedOpenDialogCount),disablePointerDismissal:dt(e=>e.disablePointerDismissal),openMethod:dt(e=>e.openMethod),descriptionElementId:dt(e=>e.descriptionElementId),titleElementId:dt(e=>e.titleElementId),viewportElement:dt(e=>e.viewportElement),role:dt(e=>e.role)};class EF extends u_{constructor(t){super(xF(t),{popupRef:M.createRef(),backdropRef:M.createRef(),internalBackdropRef:M.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new mg,onOpenChange:void 0,onOpenChangeComplete:void 0},_F)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;const r={open:t,nativeEvent:n.event,reason:n.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",r);const i={open:t},c=n.trigger?.id??null;(c||t)&&(i.activeTriggerId=c,i.activeTriggerElement=n.trigger??null),this.update(i)}}function xF(e={}){return{...ik(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function wF(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:c,disablePointerDismissal:l=!1,modal:f=!0,actionsRef:d,handle:p,triggerId:v,defaultTriggerId:g=null}=e,b=jc(!0),_=!!b,E=$r(()=>p?.store??new EF({open:r,openProp:n,activeTriggerId:g,triggerIdProp:v,modal:f,disablePointerDismissal:l,nested:_})).current;vk(()=>{n===void 0&&E.state.open===!1&&r===!0&&E.update({open:!0,activeTriggerId:g})}),E.useControlledProp("openProp",n),E.useControlledProp("triggerIdProp",v),E.useSyncedValues({disablePointerDismissal:l,nested:_,modal:f}),E.useContextCallback("onOpenChange",i),E.useContextCallback("onOpenChangeComplete",c);const x=E.useState("payload");SF({store:E,actionsRef:d,parentContext:b?.store.context});const R=M.useMemo(()=>({store:E}),[E]);return k.jsx(LP.Provider,{value:R,children:typeof t=="function"?t({payload:x}):t})}const RF=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=jc(),d=WS(c);return f.useSyncedValueWithCleanup("titleElementId",d),zr("h2",t,{ref:n,props:[{id:d},l]})});function CF(e){const t=qt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=k.jsx(wF,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}function AF(e){const t=qt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=k.jsx(uF,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}function IF(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx(e7,{className:i,"data-slot":"sheet-overlay",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function TF(e){const t=qt.c(17);let n,r,i,c,l;t[0]!==e?({className:r,children:n,side:c,showCloseButton:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5]);const f=c===void 0?"right":c,d=l===void 0?!0:l;let p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(IF,{}),t[6]=p):p=t[6];let v;t[7]!==r?(v=bn("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 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=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",r),t[7]=r,t[8]=v):v=t[8];let g;t[9]!==d?(g=d&&k.jsxs(t7,{"data-slot":"sheet-close",render:k.jsx(cu,{className:"absolute top-4 right-4",size:"icon-sm",variant:"ghost"}),children:[k.jsx(j9,{}),k.jsx("span",{className:"sr-only",children:"Close"})]}),t[9]=d,t[10]=g):g=t[10];let b;return t[11]!==n||t[12]!==i||t[13]!==f||t[14]!==v||t[15]!==g?(b=k.jsxs(AF,{children:[p,k.jsxs(aF,{className:v,"data-side":f,"data-slot":"sheet-content",...i,children:[n,g]})]}),t[11]=n,t[12]=i,t[13]=f,t[14]=v,t[15]=g,t[16]=b):b=t[16],b}function OF(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("flex flex-col gap-1.5 p-6",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("div",{className:i,"data-slot":"sheet-header",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function MF(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("font-medium text-foreground text-sm",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx(RF,{className:i,"data-slot":"sheet-title",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function DF(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("text-muted-foreground text-xs/relaxed",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx(n7,{className:i,"data-slot":"sheet-description",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const bk=M.createContext(void 0);function kd(e){const t=M.useContext(bk);if(t===void 0&&!e)throw new Error(hi(72));return t}const PF={...ak,disabled:dt(e=>e.disabled),instantType:dt(e=>e.instantType),isInstantPhase:dt(e=>e.isInstantPhase),trackCursorAxis:dt(e=>e.trackCursorAxis),disableHoverablePopup:dt(e=>e.disableHoverablePopup),lastOpenChangeReason:dt(e=>e.openChangeReason),closeDelay:dt(e=>e.closeDelay),hasViewport:dt(e=>e.hasViewport)};class p_ extends u_{constructor(t){super({...kF(),...t},{popupRef:M.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new mg},PF)}setOpen=(t,n)=>{const r=n.reason,i=r===no,c=t&&r===om,l=!t&&(r===Pm||r===a_);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const f=()=>{const d={open:t,openChangeReason:r};c?d.instantType="focus":l?d.instantType="dismiss":r===no&&(d.instantType=void 0);const p=n.trigger?.id??null;(p||t)&&(d.activeTriggerId=p,d.activeTriggerElement=n.trigger??null),this.update(d)};i?Oa.flushSync(f):f()};static useStore(t,n){const r=$r(()=>new p_(n)).current,i=t??r,c=ck({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=c,i}}function kF(){return{...ik(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const NF=nk(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:c=!1,trackCursorAxis:l="none",actionsRef:f,onOpenChange:d,onOpenChangeComplete:p,handle:v,triggerId:g,defaultTriggerId:b=null,children:_}=t,E=p_.useStore(v?.store,{open:r,openProp:i,activeTriggerId:b,triggerIdProp:g});vk(()=>{i===void 0&&E.state.open===!1&&r===!0&&E.update({open:!0,activeTriggerId:b})}),E.useControlledProp("openProp",i),E.useControlledProp("triggerIdProp",g),E.useContextCallback("onOpenChange",d),E.useContextCallback("onOpenChangeComplete",p);const x=E.useState("open"),R=!n&&x,C=E.useState("activeTriggerId"),T=E.useState("payload");E.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:c}),Ct(()=>{x&&n&&E.setOpen(!1,ln(GH))},[x,n,E]),E.useSyncedValue("disabled",n),rk(E);const{forceUnmount:P,transitionStatus:I}=ok(R,E),B=E.useState("isInstantPhase"),j=E.useState("instantType"),V=E.useState("lastOpenChangeReason"),N=M.useRef(null);Ct(()=>{I==="ending"&&V===i_||I!=="ending"&&B?(j!=="delay"&&(N.current=j),E.set("instantType","delay")):N.current!==null&&(E.set("instantType",N.current),N.current=null)},[I,B,V,j,E]),Ct(()=>{R&&C==null&&E.set("payload",void 0)},[E,C,R]);const Q=M.useCallback(()=>{E.setOpen(!1,LF(E,NP))},[E]);M.useImperativeHandle(f,()=>({unmount:P,close:Q}),[P,Q]);const ne=E.useState("floatingRootContext"),te=WP(ne,{enabled:!n,referencePress:!0}),F=S7(ne,{enabled:!n&&l!=="none",axis:l==="none"?void 0:l}),{getReferenceProps:oe,getFloatingProps:me,getTriggerProps:ge}=uk([te,F]),H=M.useMemo(()=>oe(),[oe]),re=M.useMemo(()=>ge(),[ge]),J=M.useMemo(()=>me(),[me]);return E.useSyncedValues({activeTriggerProps:H,inactiveTriggerProps:re,popupProps:J}),k.jsx(bk.Provider,{value:E,children:typeof _=="function"?_({payload:T}):_})});function LF(e,t){const n=ln(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const Sk=M.createContext(void 0);function $F(){return M.useContext(Sk)}let zF=(function(e){return e[e.popupOpen=km.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const BF=600,UF=Aq(function(t,n){const{className:r,render:i,handle:c,payload:l,disabled:f,delay:d,closeDelay:p,id:v,...g}=t,b=kd(!0),_=c?.store??b;if(!_)throw new Error(hi(82));const E=WS(v),x=_.useState("isTriggerActive",E),R=_.useState("isOpenedByTrigger",E),C=_.useState("floatingRootContext"),T=M.useRef(null),P=d??BF,I=p??0,{registerTrigger:B,isMountedByThisTrigger:j}=$q(E,T,_,{payload:l,closeDelay:I}),V=$F(),{delayRef:N,isInstantPhase:Q,hasProvider:ne}=c7(C,{open:R});_.useSyncedValue("isInstantPhase",Q);const te=_.useState("disabled"),F=f??te,oe=_.useState("trackCursorAxis"),me=_.useState("disableHoverablePopup"),ge=Zq(C,{enabled:!F,mouseOnly:!0,move:!1,handleClose:!me&&oe!=="both"?Wq():null,restMs(){const ue=V?.delay,$=typeof N.current=="object"?N.current.open:void 0;let ee=P;return ne&&($!==0?ee=d??ue??P:ee=0),ee},delay(){const ue=typeof N.current=="object"?N.current.close:void 0;let $=I;return p==null&&ne&&($=ue),{close:$}},triggerElementRef:T,isActiveTrigger:x}),H=jq(C,{enabled:!F}).reference,re={open:R},J=_.useState("triggerProps",j);return zr("button",t,{state:re,ref:[n,B,T],props:[ge,H,J,{id:E,[zF.triggerDisabled]:F?"":void 0},g],stateAttributesMapping:WH})}),_k=M.createContext(void 0);function jF(){const e=M.useContext(_k);if(e===void 0)throw new Error(hi(70));return e}const VF=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,...f}=t,{portalNode:d,portalSubtree:p}=HP({container:i,ref:n,componentProps:t,elementProps:f});return!p&&!d?null:k.jsxs(M.Fragment,{children:[p,d&&Oa.createPortal(r,d)]})}),HF=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return kd().useState("mounted")||r?k.jsx(_k.Provider,{value:r,children:k.jsx(VF,{ref:n,...i})}):null}),Ek=M.createContext(void 0);function xk(){const e=M.useContext(Ek);if(e===void 0)throw new Error(hi(71));return e}const qF=M.createContext(void 0);function FF(){return M.useContext(qF)?.direction??"ltr"}const GF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:c,platform:l,elements:f,middlewareData:d}=t,{element:p,padding:v=0,offsetParent:g="real"}=fi(e,t)||{};if(p==null)return{};const b=_P(v),_={x:n,y:r},E=s_(i),x=n_(E),R=await l.getDimensions(p),C=E==="y",T=C?"top":"left",P=C?"bottom":"right",I=C?"clientHeight":"clientWidth",B=c.reference[x]+c.reference[E]-_[E]-c.floating[x],j=_[E]-c.reference[E],V=g==="real"?await l.getOffsetParent?.(p):f.floating;let N=f.floating[I]||c.floating[x];(!N||!await l.isElement?.(V))&&(N=f.floating[I]||c.floating[x]);const Q=B/2-j/2,ne=N/2-R[x]/2-1,te=Math.min(b[T],ne),F=Math.min(b[P],ne),oe=te,me=N-R[x]-F,ge=N/2-R[x]/2+Q,H=oS(oe,ge,me),re=!d.arrow&&ka(i)!=null&&ge!==H&&c.reference[x]/2-(ge({...GF(e),options:[e,t]}),ZF={name:"hide",async fn(e){const{width:t,height:n,x:r,y:i}=e.rects.reference,c=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await aq().fn(e)).data?.referenceHidden||c}}}},cm={sideX:"left",sideY:"top"},QF={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:c,strategy:l,placement:f}=e,d=Pn(i),p=d.getComputedStyle(i);if(!(p.transitionDuration!=="0s"&&p.transitionDuration!==""))return{x:t,y:n,data:cm};const g=await c.getOffsetParent?.(i);let b={width:0,height:0};if(l==="fixed"&&d?.visualViewport)b={width:d.visualViewport.width,height:d.visualViewport.height};else if(g===d){const T=sn(i);b={width:T.documentElement.clientWidth,height:T.documentElement.clientHeight}}else await c.isElement?.(g)&&(b=await c.getDimensions(g));const _=qs(f);let E=t,x=n;_==="left"&&(E=b.width-(t+r.width)),_==="top"&&(x=b.height-(n+r.height));const R=_==="left"?"right":cm.sideX,C=_==="top"?"bottom":cm.sideY;return{x:E,y:x,data:{sideX:R,sideY:C}}}};function wk(e,t,n){const 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 n2(e,t,n){const{rects:r,placement:i}=e;return{side:wk(t,qs(i),n),align:ka(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function YF(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:d=5,sticky:p=!1,arrowPadding:v=5,disableAnchorTracking:g=!1,keepMounted:b=!1,floatingRootContext:_,mounted:E,collisionAvoidance:x,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:T,lazyFlip:P=!1,externalTree:I}=e,[B,j]=M.useState(null);!E&&B!==null&&j(null);const V=x.side||"flip",N=x.align||"flip",Q=x.fallbackAxisSide||"end",ne=typeof t=="function"?t:void 0,te=Ke(ne),F=ne?te:t,oe=ho(t),ge=FF()==="rtl",H=B||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ge?"left":"right","inline-start":ge?"right":"left"}[r],re=c==="center"?H:`${H}-${c}`;let J=d;const ve=1,ue=r==="bottom"?ve:0,$=r==="top"?ve:0,ee=r==="right"?ve:0,ye=r==="left"?ve:0;typeof J=="number"?J={top:J+ue,right:J+ye,bottom:J+$,left:J+ee}:J&&(J={top:(J.top||0)+ue,right:(J.right||0)+ye,bottom:(J.bottom||0)+$,left:(J.left||0)+ee});const Ee={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:J},xe=M.useRef(null),Se=ho(i),Oe=ho(l),tt=[nq(Jt=>{const ds=n2(Jt,r,ge),hr=typeof Se.current=="function"?Se.current(ds):Se.current,Wn=typeof Oe.current=="function"?Oe.current(ds):Oe.current;return{mainAxis:hr,crossAxis:Wn,alignmentAxis:Wn}},[typeof i!="function"?i:0,typeof l!="function"?l:0,ge,r])],kt=N==="none"&&V!=="shift",he=!kt&&(p||R||V==="shift"),Re=V==="none"?null:oq({...Ee,padding:{top:J.top+ve,right:J.right+ve,bottom:J.bottom+ve,left:J.left+ve},mainAxis:!R&&V==="flip",crossAxis:N==="flip"?"alignment":!1,fallbackAxisSideDirection:Q}),_e=kt?null:sq(Jt=>{const ds=sn(Jt.elements.floating).documentElement;return{...Ee,rootBoundary:R?{x:0,y:0,width:ds.clientWidth,height:ds.clientHeight}:void 0,mainAxis:N!=="none",crossAxis:he,limiter:p||R?void 0:rq(hr=>{if(!xe.current)return{};const{width:Wn,height:Ps}=xe.current.getBoundingClientRect(),ko=Lr(qs(hr.placement)),mr=ko==="y"?Wn:Ps,Ni=ko==="y"?J.left+J.right:J.top+J.bottom;return{offset:mr/2+Ni/2}})}},[Ee,p,R,J,N]);V==="shift"||N==="shift"||c==="center"?tt.push(_e,Re):tt.push(Re,_e),tt.push(iq({...Ee,apply({elements:{floating:Jt},rects:{reference:ds},availableWidth:hr,availableHeight:Wn}){const Ps=Jt.style;Ps.setProperty("--available-width",`${hr}px`),Ps.setProperty("--available-height",`${Wn}px`),Ps.setProperty("--anchor-width",`${ds.width}px`),Ps.setProperty("--anchor-height",`${ds.height}px`)}}),KF(()=>({element:xe.current||document.createElement("div"),padding:v,offsetParent:"floating"}),[v]),{name:"transformOrigin",fn(Jt){const{elements:ds,middlewareData:hr,placement:Wn,rects:Ps,y:ko}=Jt,mr=qs(Wn),Ni=Lr(mr),Li=xe.current,gy=hr.arrow?.x||0,pp=hr.arrow?.y||0,Fu=Li?.clientWidth||0,tc=Li?.clientHeight||0,Gu=gy+Fu/2,Ku=pp+tc/2,hp=Math.abs(hr.shift?.y||0),mp=Ps.reference.height/2,No=typeof i=="function"?i(n2(Jt,r,ge)):i,Zu=hp>No,gp={top:`${Gu}px calc(100% + ${No}px)`,bottom:`${Gu}px ${-No}px`,left:`calc(100% + ${No}px) ${Ku}px`,right:`${-No}px ${Ku}px`}[mr],yp=`${Gu}px ${Ps.reference.y+mp-ko}px`;return ds.floating.style.setProperty("--transform-origin",he&&Ni==="y"&&Zu?yp:gp),{}}},ZF,T),Ct(()=>{!E&&_&&_.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,_]);const Ze=M.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Me,elements:Ve,x:De,y:nt,middlewareData:ot,update:Ge,placement:bt,context:Xt,isPositioned:wt,floatingStyles:Xn}=Uq({rootContext:_,placement:re,middleware:tt,strategy:n,whileElementsMounted:b?void 0:(...Jt)=>KT(...Jt,Ze),nodeId:C,externalTree:I}),{sideX:Je,sideY:Mt}=ot.adaptiveOrigin||cm,it=wt?n:"fixed",Ds=M.useMemo(()=>{const Jt=T?{position:it,[Je]:De,[Mt]:nt}:{position:it,...Xn};return wt||(Jt.opacity=0),Jt},[T,it,Je,De,Mt,nt,Xn,wt]),pr=M.useRef(null);Ct(()=>{if(!E)return;const Jt=oe.current,ds=typeof Jt=="function"?Jt():Jt,Wn=(s2(ds)?ds.current:ds)||null||null;Wn!==pr.current&&(Me.setPositionReference(Wn),pr.current=Wn)},[E,Me,F,oe]),M.useEffect(()=>{if(!E)return;const Jt=oe.current;typeof Jt!="function"&&s2(Jt)&&Jt.current!==pr.current&&(Me.setPositionReference(Jt.current),pr.current=Jt.current)},[E,Me,F,oe]),M.useEffect(()=>{if(b&&E&&Ve.domReference&&Ve.floating)return KT(Ve.domReference,Ve.floating,Ge,Ze)},[b,E,Ve,Ge,Ze]);const Po=qs(bt),dp=wk(r,Po,ge),ki=ka(bt)||"center",us=!!ot.hide?.referenceHidden;Ct(()=>{P&&E&&wt&&j(Po)},[P,E,wt,Po]);const Gr=M.useMemo(()=>({position:"absolute",top:ot.arrow?.y,left:ot.arrow?.x}),[ot.arrow]),fs=ot.arrow?.centerOffset!==0;return M.useMemo(()=>({positionerStyles:Ds,arrowStyles:Gr,arrowRef:xe,arrowUncentered:fs,side:dp,align:ki,physicalSide:Po,anchorHidden:us,refs:Me,context:Xt,isPositioned:wt,update:Ge}),[Ds,Gr,xe,fs,dp,ki,Po,us,Me,Xt,wt,Ge])}function s2(e){return e!=null&&"current"in e}function Rk(e){return e==="starting"?Wj:or}const XF=M.forwardRef(function(t,n){const{render:r,className:i,anchor:c,positionMethod:l="absolute",side:f="top",align:d="center",sideOffset:p=0,alignOffset:v=0,collisionBoundary:g="clipping-ancestors",collisionPadding:b=5,arrowPadding:_=5,sticky:E=!1,disableAnchorTracking:x=!1,collisionAvoidance:R=e9,...C}=t,T=kd(),P=jF(),I=T.useState("open"),B=T.useState("mounted"),j=T.useState("trackCursorAxis"),V=T.useState("disableHoverablePopup"),N=T.useState("floatingRootContext"),Q=T.useState("instantType"),ne=T.useState("transitionStatus"),te=T.useState("hasViewport"),F=YF({anchor:c,positionMethod:l,floatingRootContext:N,mounted:B,side:f,sideOffset:p,align:d,alignOffset:v,collisionBoundary:g,collisionPadding:b,sticky:E,arrowPadding:_,disableAnchorTracking:x,keepMounted:P,collisionAvoidance:R,adaptiveOrigin:te?QF:void 0}),oe=M.useMemo(()=>{const re={};return(!I||j==="both"||V)&&(re.pointerEvents="none"),{role:"presentation",hidden:!B,style:{...F.positionerStyles,...re}}},[I,j,V,B,F.positionerStyles]),me=M.useMemo(()=>({open:I,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:j!=="none"?"tracking-cursor":Q}),[I,F.side,F.align,F.anchorHidden,j,Q]),ge=M.useMemo(()=>({...me,arrowRef:F.arrowRef,arrowStyles:F.arrowStyles,arrowUncentered:F.arrowUncentered}),[me,F.arrowRef,F.arrowStyles,F.arrowUncentered]),H=zr("div",t,{state:me,props:[oe,Rk(ne),C],ref:[n,T.useStateSetter("positionerElement")],stateAttributesMapping:Dd});return k.jsx(Ek.Provider,{value:ge,children:H})}),WF={...Dd,...r_},JF=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,l=kd(),{side:f,align:d}=xk(),p=l.useState("open"),v=l.useState("instantType"),g=l.useState("transitionStatus"),b=l.useState("popupProps"),_=l.useState("floatingRootContext");o_({open:p,ref:l.context.popupRef,onComplete(){p&&l.context.onOpenChangeComplete?.(!0)}});const E=l.useState("disabled"),x=l.useState("closeDelay");return Fq(_,{enabled:!E,closeDelay:x}),zr("div",t,{state:{open:p,side:f,align:d,instant:v,transitionStatus:g},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[b,Rk(g),c],stateAttributesMapping:WF})}),eG=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,f=kd().useState("instantType"),{open:d,arrowRef:p,side:v,align:g,arrowUncentered:b,arrowStyles:_}=xk();return zr("div",t,{state:{open:d,side:v,align:g,uncentered:b,instant:f},ref:[n,p],props:[{style:_,"aria-hidden":!0},c],stateAttributesMapping:Dd})}),tG=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,c=M.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=M.useMemo(()=>({open:n,close:r}),[n,r]);return k.jsx(Sk.Provider,{value:c,children:k.jsx(a7,{delay:l,timeoutMs:i,children:t.children})})};function nG(e){const t=qt.c(6);let n,r;t[0]!==e?({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const i=r===void 0?0:r;let c;return t[3]!==i||t[4]!==n?(c=k.jsx(tG,{"data-slot":"tooltip-provider",delay:i,...n}),t[3]=i,t[4]=n,t[5]=c):c=t[5],c}function sG(e){const t=qt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=k.jsx(nG,{children:k.jsx(NF,{"data-slot":"tooltip",...n})}),t[2]=n,t[3]=r):r=t[3],r}function rG(e){const t=qt.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=k.jsx(UF,{"data-slot":"tooltip-trigger",...n}),t[2]=n,t[3]=r):r=t[3],r}function oG(e){const t=qt.c(21);let n,r,i,c,l,f,d;t[0]!==e?({className:r,side:c,sideOffset:l,align:f,alignOffset:d,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const p=c===void 0?"top":c,v=l===void 0?4:l,g=f===void 0?"center":f,b=d===void 0?0:d;let _;t[8]!==r?(_=bn("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 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:rounded-md",r),t[8]=r,t[9]=_):_=t[9];let E;t[10]===Symbol.for("react.memo_cache_sentinel")?(E=k.jsx(eG,{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=right]:top-1/2! data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=right]:-left-1 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2"}),t[10]=E):E=t[10];let x;t[11]!==n||t[12]!==i||t[13]!==_?(x=k.jsxs(JF,{className:_,"data-slot":"tooltip-content",...i,children:[n,E]}),t[11]=n,t[12]=i,t[13]=_,t[14]=x):x=t[14];let R;return t[15]!==g||t[16]!==b||t[17]!==p||t[18]!==v||t[19]!==x?(R=k.jsx(HF,{children:k.jsx(XF,{align:g,alignOffset:b,className:"isolate z-50",side:p,sideOffset:v,children:x})}),t[15]=g,t[16]=b,t[17]=p,t[18]=v,t[19]=x,t[20]=R):R=t[20],R}const iG=768,Ck=`(max-width: ${iG-1}px)`;function aG(e){const t=window.matchMedia(Ck);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function cG(){return window.matchMedia(Ck).matches}function lG(){return M.useSyncExternalStore(aG,cG)}const uG="sidebar_state",fG=3600*24*7,dG="12rem",pG="16rem",hG="3rem",mG="b",Ak=M.createContext(null);function gg(){const e=M.useContext(Ak);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function gG(e){const t=qt.c(36);let n,r,i,c,l,f,d;t[0]!==e?({defaultOpen:d,open:i,onOpenChange:l,className:r,style:f,children:n,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const p=d===void 0?!0:d,v=lG(),[g,b]=M.useState(!1),[_,E]=M.useState(p),x=i??_;let R;t[8]!==x||t[9]!==l?(R=me=>{const ge=typeof me=="function"?me(x):me;l?l(ge):E(ge),document.cookie=`${uG}=${ge}; path=/; max-age=${fG}`},t[8]=x,t[9]=l,t[10]=R):R=t[10];const C=R;let T;t[11]!==v||t[12]!==C?(T=()=>v?b(vG):C(yG),t[11]=v,t[12]=C,t[13]=T):T=t[13];const P=T;let I,B;t[14]!==P?(I=()=>{const me=ge=>{ge.key===mG&&(ge.metaKey||ge.ctrlKey)&&(ge.preventDefault(),P())};return window.addEventListener("keydown",me),()=>window.removeEventListener("keydown",me)},B=[P],t[14]=P,t[15]=I,t[16]=B):(I=t[15],B=t[16]),M.useEffect(I,B);const j=x?"expanded":"collapsed";let V;t[17]!==v||t[18]!==x||t[19]!==g||t[20]!==C||t[21]!==j||t[22]!==P?(V={state:j,open:x,setOpen:C,isMobile:v,openMobile:g,setOpenMobile:b,toggleSidebar:P},t[17]=v,t[18]=x,t[19]=g,t[20]=C,t[21]=j,t[22]=P,t[23]=V):V=t[23];const N=V;let Q;t[24]!==r?(Q=bn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),t[24]=r,t[25]=Q):Q=t[25];let ne;t[26]!==f?(ne={"--sidebar-width":dG,"--sidebar-width-icon":hG,...f},t[26]=f,t[27]=ne):ne=t[27];const te=ne;let F;t[28]!==n||t[29]!==c||t[30]!==Q||t[31]!==te?(F=k.jsx("div",{className:Q,"data-slot":"sidebar-wrapper",style:te,...c,children:n}),t[28]=n,t[29]=c,t[30]=Q,t[31]=te,t[32]=F):F=t[32];let oe;return t[33]!==N||t[34]!==F?(oe=k.jsx(Ak.Provider,{value:N,children:F}),t[33]=N,t[34]=F,t[35]=oe):oe=t[35],oe}function yG(e){return!e}function vG(e){return!e}function bG(e){const t=qt.c(46);let n,r,i,c,l,f;t[0]!==e?({side:c,variant:l,collapsible:f,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6]);const d=c===void 0?"left":c,p=l===void 0?"sidebar":l,v=f===void 0?"offExamples":f,{isMobile:g,state:b,openMobile:_,setOpenMobile:E}=gg();if(v==="none"){let Q;t[7]!==r?(Q=bn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),t[7]=r,t[8]=Q):Q=t[8];let ne;return t[9]!==n||t[10]!==i||t[11]!==Q?(ne=k.jsx("div",{className:Q,"data-slot":"sidebar",...i,children:n}),t[9]=n,t[10]=i,t[11]=Q,t[12]=ne):ne=t[12],ne}if(g){let Q;t[13]===Symbol.for("react.memo_cache_sentinel")?(Q={"--sidebar-width":pG},t[13]=Q):Q=t[13];let ne;t[14]===Symbol.for("react.memo_cache_sentinel")?(ne=k.jsxs(OF,{className:"sr-only",children:[k.jsx(MF,{children:"Sidebar"}),k.jsx(DF,{children:"Displays the mobile sidebar."})]}),t[14]=ne):ne=t[14];let te;t[15]!==n?(te=k.jsx("div",{className:"flex h-full w-full flex-col",children:n}),t[15]=n,t[16]=te):te=t[16];let F;t[17]!==d||t[18]!==te?(F=k.jsxs(TF,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:d,style:Q,children:[ne,te]}),t[17]=d,t[18]=te,t[19]=F):F=t[19];let oe;return t[20]!==_||t[21]!==i||t[22]!==E||t[23]!==F?(oe=k.jsx(CF,{onOpenChange:E,open:_,...i,children:F}),t[20]=_,t[21]=i,t[22]=E,t[23]=F,t[24]=oe):oe=t[24],oe}const x=b==="collapsed"?v:"",R=p==="floating"||p==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let C;t[25]!==R?(C=bn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",R),t[25]=R,t[26]=C):C=t[26];let T;t[27]!==C?(T=k.jsx("div",{className:C,"data-slot":"sidebar-gap"}),t[27]=C,t[28]=T):T=t[28];const P=d==="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)]",I=p==="floating"||p==="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";let B;t[29]!==r||t[30]!==P||t[31]!==I?(B=bn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",P,I,r),t[29]=r,t[30]=P,t[31]=I,t[32]=B):B=t[32];let j;t[33]!==n?(j=k.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]=j):j=t[34];let V;t[35]!==i||t[36]!==B||t[37]!==j?(V=k.jsx("div",{className:B,"data-slot":"sidebar-container",...i,children:j}),t[35]=i,t[36]=B,t[37]=j,t[38]=V):V=t[38];let N;return t[39]!==d||t[40]!==b||t[41]!==V||t[42]!==x||t[43]!==T||t[44]!==p?(N=k.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":x,"data-side":d,"data-slot":"sidebar","data-state":b,"data-variant":p,children:[T,V]}),t[39]=d,t[40]=b,t[41]=V,t[42]=x,t[43]=T,t[44]=p,t[45]=N):N=t[45],N}function SG(e){const t=qt.c(15);let n,r,i;t[0]!==e?({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{toggleSidebar:c}=gg();let l;t[4]!==n?(l=bn(n),t[4]=n,t[5]=l):l=t[5];let f;t[6]!==r||t[7]!==c?(f=g=>{r?.(g),c()},t[6]=r,t[7]=c,t[8]=f):f=t[8];let d,p;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=k.jsx(D9,{}),p=k.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),t[9]=d,t[10]=p):(d=t[9],p=t[10]);let v;return t[11]!==i||t[12]!==l||t[13]!==f?(v=k.jsxs(cu,{className:l,"data-sidebar":"trigger","data-slot":"sidebar-trigger",onClick:f,size:"icon-lg",variant:"ghost",...i,children:[d,p]}),t[11]=i,t[12]=l,t[13]=f,t[14]=v):v=t[14],v}function _G(e){const t=qt.c(9);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{toggleSidebar:i}=gg();let c;t[3]!==n?(c=bn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 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 hover:group-data-[collapsible=offExamples]:bg-sidebar group-data-[collapsible=offExamples]:after:left-full","[[data-side=left][data-collapsible=offExamples]_&]:-right-2","[[data-side=right][data-collapsible=offExamples]_&]:-left-2",n),t[3]=n,t[4]=c):c=t[4];let l;return t[5]!==r||t[6]!==c||t[7]!==i?(l=k.jsx("button",{"aria-label":"Toggle Sidebar",className:c,"data-sidebar":"rail","data-slot":"sidebar-rail",onClick:i,tabIndex:-1,title:"Toggle Sidebar",...r}),t[5]=r,t[6]=c,t[7]=i,t[8]=l):l=t[8],l}function EG(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("flex flex-col gap-2 p-2",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("div",{className:i,"data-sidebar":"footer","data-slot":"sidebar-footer",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function xG(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("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):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("div",{className:i,"data-sidebar":"content","data-slot":"sidebar-content",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Kf(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("relative flex w-full min-w-0 flex-col px-2 py-1",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("div",{className:i,"data-sidebar":"group","data-slot":"sidebar-group",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Zf(e){const t=qt.c(10);let n,r,i,c;if(t[0]!==e){const{className:d,render:p,...v}=e;n=p,c=FD,r="div",i=ag({className:bn("flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",d)},v),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c}else n=t[1],r=t[2],i=t[3],c=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},t[5]=l):l=t[5];let f;return t[6]!==n||t[7]!==r||t[8]!==i?(f={defaultTagName:r,props:i,render:n,state:l},t[6]=n,t[7]=r,t[8]=i,t[9]=f):f=t[9],c(f)}function jl(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("flex w-full min-w-0 flex-col gap-px",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("ul",{className:i,"data-sidebar":"menu","data-slot":"sidebar-menu",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Cr(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("group/menu-item relative",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("li",{className:i,"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const wG=ZD("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 outline-hidden ring-sidebar-ring transition-[width,height,padding] 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 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 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{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 Ar(e){const t=qt.c(15);let{render:n,isActive:r,variant:i,size:c,tooltip:l,className:f,...d}=e;const p=r===void 0?!1:r,v=i===void 0?"default":i,g=c===void 0?"default":c,{isMobile:b,state:_}=gg(),E="button",x=ag({className:bn(wG({variant:v,size:g}),f)},d),R=l?rG:n;let C;t[0]!==p||t[1]!==g?(C={slot:"sidebar-menu-button",sidebar:"menu-button",size:g,active:p},t[0]=p,t[1]=g,t[2]=C):C=t[2];let T;t[3]!==x||t[4]!==R||t[5]!==C?(T={defaultTagName:E,props:x,render:R,state:C},t[3]=x,t[4]=R,t[5]=C,t[6]=T):T=t[6];const P=FD(T);if(!l)return P;if(typeof l=="string"){let V;t[7]!==l?(V={children:l},t[7]=l,t[8]=V):V=t[8],l=V}const I=_!=="collapsed"||b;let B;t[9]!==I||t[10]!==l?(B=k.jsx(oG,{align:"center",hidden:I,side:"right",...l}),t[9]=I,t[10]=l,t[11]=B):B=t[11];let j;return t[12]!==P||t[13]!==B?(j=k.jsxs(sG,{children:[P,B]}),t[12]=P,t[13]=B,t[14]=j):j=t[14],j}function RG(){const e=qt.c(8),{theme:t,setTheme:n}=Bj();let 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];const i=r;let c,l,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=k.jsx($9,{className:"size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),l=k.jsx(I9,{className:"absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),f=k.jsx("span",{className:"sr-only",children:"Toggle theme"}),e[3]=c,e[4]=l,e[5]=f):(c=e[3],l=e[4],f=e[5]);let d;return e[6]!==i?(d=k.jsxs(cu,{className:"rounded-full",onClick:i,size:"icon-sm",variant:"ghost",children:[c,l,f]}),e[6]=i,e[7]=d):d=e[7],d}function Ik(){const e=qt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=bn("z-50 flex h-10 shrink-0 items-center gap-2 border-sidebar-border border-b bg-sidebar px-4 text-sidebar-foreground","sticky top-0"),n=k.jsx(SG,{className:"-ml-1"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=k.jsxs("header",{className:t,children:[n,k.jsx("div",{className:"flex w-full justify-end",children:k.jsx(RG,{})})]}),e[2]=r):r=e[2],r}function CG(){const e=qt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=k.jsx("h1",{className:"font-bold text-4xl",children:"404"}),n=k.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=k.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4",children:[t,n,k.jsx(Rs,{to:"/",children:k.jsx(cu,{variant:"outline",children:"Go back home"})})]}),e[2]=r):r=e[2],r}function de(e,t,n){function r(f,d){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const p=l.prototype,v=Object.keys(p);for(let g=0;gn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class tu extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Tk extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Ok={};function Nc(e){return Ok}function Mk(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function dS(e,t){return typeof t=="bigint"?t.toString():t}function h_(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function m_(e){return e==null}function g_(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function AG(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]))}const c=n>i?n:i,l=Number.parseInt(e.toFixed(c).replace(".","")),f=Number.parseInt(t.toFixed(c).replace(".",""));return l%f/10**c}const r2=Symbol("evaluating");function Ht(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==r2)return r===void 0&&(r=r2,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Vc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Na(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function o2(e){return JSON.stringify(e)}function IG(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Dk="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function zm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const TG=h_(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Sd(e){if(zm(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(zm(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Pk(e){return Sd(e)?{...e}:Array.isArray(e)?[...e]:e}const OG=new Set(["string","number","symbol"]);function yg(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function La(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function je(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function MG(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const DG={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function PG(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=Na(e._zod.def,{get shape(){const l={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(l[f]=n.shape[f])}return Vc(this,"shape",l),l},checks:[]});return La(e,c)}function kG(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=Na(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete l[f]}return Vc(this,"shape",l),l},checks:[]});return La(e,c)}function NG(e,t){if(!Sd(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const c=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(c,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=Na(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return Vc(this,"shape",c),c}});return La(e,i)}function LG(e,t){if(!Sd(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Na(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Vc(this,"shape",r),r}});return La(e,n)}function $G(e,t){const n=Na(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Vc(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return La(e,n)}function zG(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=Na(t._zod.def,{get shape(){const f=t._zod.def.shape,d={...f};if(n)for(const p in n){if(!(p in f))throw new Error(`Unrecognized key: "${p}"`);n[p]&&(d[p]=e?new e({type:"optional",innerType:f[p]}):f[p])}else for(const p in f)d[p]=e?new e({type:"optional",innerType:f[p]}):f[p];return Vc(this,"shape",d),d},checks:[]});return La(t,l)}function BG(e,t,n){const r=Na(t._zod.def,{get shape(){const i=t._zod.def.shape,c={...i};if(n)for(const l in n){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=new e({type:"nonoptional",innerType:i[l]}))}else for(const l in i)c[l]=new e({type:"nonoptional",innerType:i[l]});return Vc(this,"shape",c),c}});return La(t,r)}function Ql(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function qh(e){return typeof e=="string"?e:e?.message}function Lc(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=qh(e.inst?._zod.def?.error?.(e))??qh(t?.error?.(e))??qh(n.customError?.(e))??qh(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function y_(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _d(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Nk=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,dS,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Lk=de("$ZodError",Nk),vg=de("$ZodError",Nk,{Parent:Error});function UG(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function jG(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l}));else if(c.code==="invalid_key")r({issues:c.issues});else if(c.code==="invalid_element")r({issues:c.issues});else if(c.path.length===0)n._errors.push(t(c));else{let l=n,f=0;for(;f(t,n,r,i)=>{const c=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise)throw new tu;if(l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>Lc(d,c,Nc())));throw Dk(f,i?.callee),f}return l.value},EMe=bg(vg),Sg=e=>async(t,n,r,i)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise&&(l=await l),l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>Lc(d,c,Nc())));throw Dk(f,i?.callee),f}return l.value},xMe=Sg(vg),_g=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new tu;return c.issues.length?{success:!1,error:new(e??Lk)(c.issues.map(l=>Lc(l,i,Nc())))}:{success:!0,data:c.value}},VG=_g(vg),Eg=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(l=>Lc(l,i,Nc())))}:{success:!0,data:c.value}},HG=Eg(vg),qG=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return bg(e)(t,n,i)},FG=e=>(t,n,r)=>bg(e)(t,n,r),GG=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Sg(e)(t,n,i)},KG=e=>async(t,n,r)=>Sg(e)(t,n,r),ZG=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return _g(e)(t,n,i)},QG=e=>(t,n,r)=>_g(e)(t,n,r),YG=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Eg(e)(t,n,i)},XG=e=>async(t,n,r)=>Eg(e)(t,n,r),WG=/^[cC][^\s-]{8,}$/,JG=/^[0-9a-z]+$/,eK=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tK=/^[0-9a-vA-V]{20}$/,nK=/^[A-Za-z0-9]{27}$/,sK=/^[a-zA-Z0-9_-]{21}$/,rK=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,oK=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,i2=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,iK=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aK="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function cK(){return new RegExp(aK,"u")}const lK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,uK=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,fK=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,dK=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pK=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,$k=/^[A-Za-z0-9_-]*$/,hK=/^\+[1-9]\d{6,14}$/,zk="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",mK=new RegExp(`^${zk}$`);function Bk(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function gK(e){return new RegExp(`^${Bk(e)}$`)}function yK(e){const t=Bk({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${zk}T(?:${r})$`)}const vK=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},bK=/^-?\d+$/,SK=/^-?\d+(?:\.\d+)?$/,_K=/^(?:true|false)$/i,EK=/^[^A-Z]*$/,xK=/^[^a-z]*$/,Fs=de("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Uk={number:"number",bigint:"bigint",object:"date"},jk=de("$ZodCheckLessThan",(e,t)=>{Fs.init(e,t);const n=Uk[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{Fs.init(e,t);const n=Uk[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>c&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wK=de("$ZodCheckMultipleOf",(e,t)=>{Fs.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):AG(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),RK=de("$ZodCheckNumberFormat",(e,t)=>{Fs.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,c]=DG[t.format];e._zod.onattach.push(l=>{const f=l._zod.bag;f.format=t.format,f.minimum=i,f.maximum=c,n&&(f.pattern=bK)}),e._zod.check=l=>{const f=l.value;if(n){if(!Number.isInteger(f)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?l.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}fc&&l.issues.push({origin:"number",input:f,code:"too_big",maximum:c,inclusive:!0,inst:e,continue:!t.abort})}}),CK=de("$ZodCheckMaxLength",(e,t)=>{var n;Fs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!m_(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=r.value;if(i.length<=t.maximum)return;const l=y_(i);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),AK=de("$ZodCheckMinLength",(e,t)=>{var n;Fs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!m_(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const l=y_(i);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),IK=de("$ZodCheckLengthEquals",(e,t)=>{var n;Fs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!m_(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,c=i.length;if(c===t.length)return;const l=y_(i),f=c>t.length;r.issues.push({origin:l,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),xg=de("$ZodCheckStringFormat",(e,t)=>{var n,r;Fs.init(e,t),e._zod.onattach.push(i=>{const c=i._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),TK=de("$ZodCheckRegex",(e,t)=>{xg.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),OK=de("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=EK),xg.init(e,t)}),MK=de("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xK),xg.init(e,t)}),DK=de("$ZodCheckIncludes",(e,t)=>{Fs.init(e,t);const n=yg(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),PK=de("$ZodCheckStartsWith",(e,t)=>{Fs.init(e,t);const n=new RegExp(`^${yg(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),kK=de("$ZodCheckEndsWith",(e,t)=>{Fs.init(e,t);const n=new RegExp(`.*${yg(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),NK=de("$ZodCheckOverwrite",(e,t)=>{Fs.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class LK{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` `).filter(l=>l),i=Math.min(...r.map(l=>l.length-l.trimStart().length)),c=r.map(l=>l.slice(i)).map(l=>" ".repeat(this.indent*2)+l);for(const l of c)this.content.push(l)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(c=>` ${c}`)];return new t(...n,i.join(` -`))}}const _F={major:4,minor:3,patch:6},un=de("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_F;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const c of i._zod.onattach)c(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,f,d)=>{let h=gl(l),b;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(l))continue}else if(h)continue;const v=l.issues.length,_=g._zod.check(l);if(_ instanceof Promise&&d?.async===!1)throw new wl;if(b||_ instanceof Promise)b=(b??Promise.resolve()).then(async()=>{await _,l.issues.length!==v&&(h||(h=gl(l,v)))});else{if(l.issues.length===v)continue;h||(h=gl(l,v))}}return b?b.then(()=>l):l},c=(l,f,d)=>{if(gl(l))return l.aborted=!0,l;const h=i(f,r,d);if(h instanceof Promise){if(d.async===!1)throw new wl;return h.then(b=>e._zod.parse(b,d))}return e._zod.parse(h,d)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const h=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(b=>c(b,l,f)):c(h,l,f)}const d=e._zod.parse(l,f);if(d instanceof Promise){if(f.async===!1)throw new wl;return d.then(h=>i(h,r,f))}return i(d,r,f)}}Dt(e,"~standard",()=>({validate:i=>{try{const c=Cq(e,i);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return Aq(e,i).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),wS=de("$ZodString",(e,t)=>{un.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??nF(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Xt=de("$ZodStringFormat",(e,t)=>{Nm.init(e,t),wS.init(e,t)}),wF=de("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Vq),Xt.init(e,t)}),EF=de("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ZA(r))}else t.pattern??(t.pattern=ZA());Xt.init(e,t)}),xF=de("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=qq),Xt.init(e,t)}),RF=de("$ZodURL",(e,t)=>{Xt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),CF=de("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Gq()),Xt.init(e,t)}),AF=de("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=jq),Xt.init(e,t)}),TF=de("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Lq),Xt.init(e,t)}),IF=de("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=zq),Xt.init(e,t)}),OF=de("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Bq),Xt.init(e,t)}),MF=de("$ZodXID",(e,t)=>{t.pattern??(t.pattern=$q),Xt.init(e,t)}),DF=de("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Uq),Xt.init(e,t)}),kF=de("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tF(t)),Xt.init(e,t)}),PF=de("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Jq),Xt.init(e,t)}),NF=de("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=eF(t)),Xt.init(e,t)}),LF=de("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Hq),Xt.init(e,t)}),zF=de("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Zq),Xt.init(e,t),e._zod.bag.format="ipv4"}),BF=de("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Kq),Xt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),$F=de("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Qq),Xt.init(e,t)}),UF=de("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Yq),Xt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,c]=r;if(!c)throw new Error;const l=Number(c);if(`${l}`!==c)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function dD(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const jF=de("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Xq),Xt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{dD(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function HF(e){if(!iD.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return dD(n)}const VF=de("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=iD),Xt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{HF(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),qF=de("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Wq),Xt.init(e,t)});function FF(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const GF=de("$ZodJWT",(e,t)=>{Xt.init(e,t),e._zod.check=n=>{FF(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),hD=de("$ZodNumber",(e,t)=>{un.init(e,t),e._zod.pattern=e._zod.bag.pattern??rF,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const c=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...c?{received:c}:{}}),n}}),ZF=de("$ZodNumberFormat",(e,t)=>{lF.init(e,t),hD.init(e,t)}),KF=de("$ZodBoolean",(e,t)=>{un.init(e,t),e._zod.pattern=oF,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),QF=de("$ZodUnknown",(e,t)=>{un.init(e,t),e._zod.parse=n=>n}),YF=de("$ZodNever",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function KA(e,t,n){e.issues.length&&t.issues.push(...sD(n,e.issues)),t.value[n]=e.value}const XF=de("$ZodArray",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const c=[];for(let l=0;lKA(h,n,l))):KA(d,n,l)}return c.length?Promise.all(c).then(()=>n):n}});function Xp(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...sD(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function pD(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=mq(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function mD(e,t,n,r,i,c){const l=[],f=i.keySet,d=i.catchall._zod,h=d.def.type,b=d.optout==="optional";for(const g in t){if(f.has(g))continue;if(h==="never"){l.push(g);continue}const v=d.run({value:t[g],issues:[]},r);v instanceof Promise?e.push(v.then(_=>Xp(_,n,g,t,b))):Xp(v,n,g,t,b)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:c}),e.length?Promise.all(e).then(()=>n):n}const WF=de("$ZodObject",(e,t)=>{if(un.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...f};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=bS(()=>pD(t));Dt(e._zod,"propValues",()=>{const f=t.shape,d={};for(const h in f){const b=f[h]._zod;if(b.values){d[h]??(d[h]=new Set);for(const g of b.values)d[h].add(g)}}return d});const i=Yp,c=t.catchall;let l;e._zod.parse=(f,d)=>{l??(l=r.value);const h=f.value;if(!i(h))return f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f;f.value={};const b=[],g=l.shape;for(const v of l.keys){const _=g[v],w=_._zod.optout==="optional",E=_._zod.run({value:h[v],issues:[]},d);E instanceof Promise?b.push(E.then(R=>Xp(R,f,v,h,w))):Xp(E,f,v,h,w)}return c?mD(b,h,f,d,r.value,e):b.length?Promise.all(b).then(()=>f):f}}),JF=de("$ZodObjectJIT",(e,t)=>{WF.init(e,t);const n=e._zod.parse,r=bS(()=>pD(t)),i=v=>{const _=new SF(["shape","payload","ctx"]),w=r.value,E=k=>{const T=GA(k);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};_.write("const input = payload.value;");const R=Object.create(null);let C=0;for(const k of w.keys)R[k]=`key_${C++}`;_.write("const newResult = {};");for(const k of w.keys){const T=R[k],$=GA(k),H=v[k]?._zod?.optout==="optional";_.write(`const ${T} = ${E(k)};`),H?_.write(` - if (${T}.issues.length) { - if (${$} in input) { - payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ +`))}}const $K={major:4,minor:3,patch:6},_n=de("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=$K;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const c of i._zod.onattach)c(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,f,d)=>{let p=Ql(l),v;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(l))continue}else if(p)continue;const b=l.issues.length,_=g._zod.check(l);if(_ instanceof Promise&&d?.async===!1)throw new tu;if(v||_ instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await _,l.issues.length!==b&&(p||(p=Ql(l,b)))});else{if(l.issues.length===b)continue;p||(p=Ql(l,b))}}return v?v.then(()=>l):l},c=(l,f,d)=>{if(Ql(l))return l.aborted=!0,l;const p=i(f,r,d);if(p instanceof Promise){if(d.async===!1)throw new tu;return p.then(v=>e._zod.parse(v,d))}return e._zod.parse(p,d)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const p=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(v=>c(v,l,f)):c(p,l,f)}const d=e._zod.parse(l,f);if(d instanceof Promise){if(f.async===!1)throw new tu;return d.then(p=>i(p,r,f))}return i(d,r,f)}}Ht(e,"~standard",()=>({validate:i=>{try{const c=VG(e,i);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return HG(e,i).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),v_=de("$ZodString",(e,t)=>{_n.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??vK(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),an=de("$ZodStringFormat",(e,t)=>{xg.init(e,t),v_.init(e,t)}),zK=de("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=oK),an.init(e,t)}),BK=de("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=i2(r))}else t.pattern??(t.pattern=i2());an.init(e,t)}),UK=de("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=iK),an.init(e,t)}),jK=de("$ZodURL",(e,t)=>{an.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),VK=de("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=cK()),an.init(e,t)}),HK=de("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=sK),an.init(e,t)}),qK=de("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=WG),an.init(e,t)}),FK=de("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=JG),an.init(e,t)}),GK=de("$ZodULID",(e,t)=>{t.pattern??(t.pattern=eK),an.init(e,t)}),KK=de("$ZodXID",(e,t)=>{t.pattern??(t.pattern=tK),an.init(e,t)}),ZK=de("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=nK),an.init(e,t)}),QK=de("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=yK(t)),an.init(e,t)}),YK=de("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=mK),an.init(e,t)}),XK=de("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=gK(t)),an.init(e,t)}),WK=de("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=rK),an.init(e,t)}),JK=de("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=lK),an.init(e,t),e._zod.bag.format="ipv4"}),eZ=de("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=uK),an.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),tZ=de("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=fK),an.init(e,t)}),nZ=de("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=dK),an.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,c]=r;if(!c)throw new Error;const l=Number(c);if(`${l}`!==c)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Hk(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const sZ=de("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=pK),an.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Hk(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function rZ(e){if(!$k.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Hk(n)}const oZ=de("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=$k),an.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{rZ(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),iZ=de("$ZodE164",(e,t)=>{t.pattern??(t.pattern=hK),an.init(e,t)});function aZ(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const cZ=de("$ZodJWT",(e,t)=>{an.init(e,t),e._zod.check=n=>{aZ(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),qk=de("$ZodNumber",(e,t)=>{_n.init(e,t),e._zod.pattern=e._zod.bag.pattern??SK,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const c=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...c?{received:c}:{}}),n}}),lZ=de("$ZodNumberFormat",(e,t)=>{RK.init(e,t),qk.init(e,t)}),uZ=de("$ZodBoolean",(e,t)=>{_n.init(e,t),e._zod.pattern=_K,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),fZ=de("$ZodUnknown",(e,t)=>{_n.init(e,t),e._zod.parse=n=>n}),dZ=de("$ZodNever",(e,t)=>{_n.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function a2(e,t,n){e.issues.length&&t.issues.push(...kk(n,e.issues)),t.value[n]=e.value}const pZ=de("$ZodArray",(e,t)=>{_n.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const c=[];for(let l=0;la2(p,n,l))):a2(d,n,l)}return c.length?Promise.all(c).then(()=>n):n}});function Bm(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...kk(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Fk(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=MG(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Gk(e,t,n,r,i,c){const l=[],f=i.keySet,d=i.catchall._zod,p=d.def.type,v=d.optout==="optional";for(const g in t){if(f.has(g))continue;if(p==="never"){l.push(g);continue}const b=d.run({value:t[g],issues:[]},r);b instanceof Promise?e.push(b.then(_=>Bm(_,n,g,t,v))):Bm(b,n,g,t,v)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:c}),e.length?Promise.all(e).then(()=>n):n}const hZ=de("$ZodObject",(e,t)=>{if(_n.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...f};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=h_(()=>Fk(t));Ht(e._zod,"propValues",()=>{const f=t.shape,d={};for(const p in f){const v=f[p]._zod;if(v.values){d[p]??(d[p]=new Set);for(const g of v.values)d[p].add(g)}}return d});const i=zm,c=t.catchall;let l;e._zod.parse=(f,d)=>{l??(l=r.value);const p=f.value;if(!i(p))return f.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),f;f.value={};const v=[],g=l.shape;for(const b of l.keys){const _=g[b],E=_._zod.optout==="optional",x=_._zod.run({value:p[b],issues:[]},d);x instanceof Promise?v.push(x.then(R=>Bm(R,f,b,p,E))):Bm(x,f,b,p,E)}return c?Gk(v,p,f,d,r.value,e):v.length?Promise.all(v).then(()=>f):f}}),mZ=de("$ZodObjectJIT",(e,t)=>{hZ.init(e,t);const n=e._zod.parse,r=h_(()=>Fk(t)),i=b=>{const _=new LK(["shape","payload","ctx"]),E=r.value,x=P=>{const I=o2(P);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};_.write("const input = payload.value;");const R=Object.create(null);let C=0;for(const P of E.keys)R[P]=`key_${C++}`;_.write("const newResult = {};");for(const P of E.keys){const I=R[P],B=o2(P),V=b[P]?._zod?.optout==="optional";_.write(`const ${I} = ${x(P)};`),V?_.write(` + if (${I}.issues.length) { + if (${B} in input) { + payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ ...iss, - path: iss.path ? [${$}, ...iss.path] : [${$}] + path: iss.path ? [${B}, ...iss.path] : [${B}] }))); } } - if (${T}.value === undefined) { - if (${$} in input) { - newResult[${$}] = undefined; + if (${I}.value === undefined) { + if (${B} in input) { + newResult[${B}] = undefined; } } else { - newResult[${$}] = ${T}.value; + newResult[${B}] = ${I}.value; } `):_.write(` - if (${T}.issues.length) { - payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ + if (${I}.issues.length) { + payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ ...iss, - path: iss.path ? [${$}, ...iss.path] : [${$}] + path: iss.path ? [${B}, ...iss.path] : [${B}] }))); } - if (${T}.value === undefined) { - if (${$} in input) { - newResult[${$}] = undefined; + if (${I}.value === undefined) { + if (${B} in input) { + newResult[${B}] = undefined; } } else { - newResult[${$}] = ${T}.value; + newResult[${B}] = ${I}.value; } - `)}_.write("payload.value = newResult;"),_.write("return payload;");const I=_.compile();return(k,T)=>I(v,k,T)};let c;const l=Yp,f=!JM.jitless,h=f&&hq.value,b=t.catchall;let g;e._zod.parse=(v,_)=>{g??(g=r.value);const w=v.value;return l(w)?f&&h&&_?.async===!1&&_.jitless!==!0?(c||(c=i(t.shape)),v=c(v,_),b?mD([],w,v,_,g,e):v):n(v,_):(v.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),v)}});function QA(e,t,n,r){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const i=e.filter(c=>!gl(c));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(c=>c.issues.map(l=>ic(l,r,oc())))}),t)}const eG=de("$ZodUnion",(e,t)=>{un.init(e,t),Dt(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Dt(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Dt(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Dt(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(c=>c._zod.pattern);return new RegExp(`^(${i.map(c=>SS(c.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,c)=>{if(n)return r(i,c);let l=!1;const f=[];for(const d of t.options){const h=d._zod.run({value:i.value,issues:[]},c);if(h instanceof Promise)f.push(h),l=!0;else{if(h.issues.length===0)return h;f.push(h)}}return l?Promise.all(f).then(d=>QA(d,i,e,c)):QA(f,i,e,c)}}),tG=de("$ZodIntersection",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,c=t.left._zod.run({value:i,issues:[]},r),l=t.right._zod.run({value:i,issues:[]},r);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(([d,h])=>YA(n,d,h)):YA(n,c,l)}});function yv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Nf(e)&&Nf(t)){const n=Object.keys(t),r=Object.keys(e).filter(c=>n.indexOf(c)!==-1),i={...e,...t};for(const c of r){const l=yv(e[c],t[c]);if(!l.valid)return{valid:!1,mergeErrorPath:[c,...l.mergeErrorPath]};i[c]=l.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;rf.l&&f.r).map(([f])=>f);if(c.length&&i&&e.issues.push({...i,keys:c}),gl(e))return e;const l=yv(t.value,n.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const nG=de("$ZodEnum",(e,t)=>{un.init(e,t);const n=eD(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>pq.has(typeof i)).map(i=>typeof i=="string"?Im(i):i.toString()).join("|")})$`),e._zod.parse=(i,c)=>{const l=i.value;return r.has(l)||i.issues.push({code:"invalid_value",values:n,input:l,inst:e}),i}}),sG=de("$ZodTransform",(e,t)=>{un.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new WM(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(l=>(n.value=l,n));if(i instanceof Promise)throw new wl;return n.value=i,n}});function XA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const gD=de("$ZodOptional",(e,t)=>{un.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Dt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${SS(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>XA(c,n.value)):XA(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),rG=de("$ZodExactOptional",(e,t)=>{gD.init(e,t),Dt(e._zod,"values",()=>t.innerType._zod.values),Dt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),oG=de("$ZodNullable",(e,t)=>{un.init(e,t),Dt(e._zod,"optin",()=>t.innerType._zod.optin),Dt(e._zod,"optout",()=>t.innerType._zod.optout),Dt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${SS(n.source)}|null)$`):void 0}),Dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),iG=de("$ZodDefault",(e,t)=>{un.init(e,t),e._zod.optin="optional",Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>WA(c,t)):WA(i,t)}});function WA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const aG=de("$ZodPrefault",(e,t)=>{un.init(e,t),e._zod.optin="optional",Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),cG=de("$ZodNonOptional",(e,t)=>{un.init(e,t),Dt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>JA(c,e)):JA(i,e)}});function JA(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const lG=de("$ZodCatch",(e,t)=>{un.init(e,t),Dt(e._zod,"optin",()=>t.innerType._zod.optin),Dt(e._zod,"optout",()=>t.innerType._zod.optout),Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>(n.value=c.value,c.issues.length&&(n.value=t.catchValue({...n,error:{issues:c.issues.map(l=>ic(l,r,oc()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>ic(c,r,oc()))},input:n.value}),n.issues=[]),n)}}),uG=de("$ZodPipe",(e,t)=>{un.init(e,t),Dt(e._zod,"values",()=>t.in._zod.values),Dt(e._zod,"optin",()=>t.in._zod.optin),Dt(e._zod,"optout",()=>t.out._zod.optout),Dt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const c=t.out._zod.run(n,r);return c instanceof Promise?c.then(l=>ip(l,t.in,r)):ip(c,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(c=>ip(c,t.out,r)):ip(i,t.out,r)}});function ip(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const fG=de("$ZodReadonly",(e,t)=>{un.init(e,t),Dt(e._zod,"propValues",()=>t.innerType._zod.propValues),Dt(e._zod,"values",()=>t.innerType._zod.values),Dt(e._zod,"optin",()=>t.innerType?._zod?.optin),Dt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(eT):eT(i)}});function eT(e){return e.value=Object.freeze(e.value),e}const dG=de("$ZodCustom",(e,t)=>{Rs.init(e,t),un.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(c=>tT(c,n,r,e));tT(i,n,r,e)}});function tT(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Lf(i))}}var nT;class hG{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function pG(){return new hG}(nT=globalThis).__zod_globalRegistry??(nT.__zod_globalRegistry=pG());const gf=globalThis.__zod_globalRegistry;function mG(e,t){return new e({type:"string",...Ue(t)})}function gG(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ue(t)})}function sT(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ue(t)})}function yG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ue(t)})}function bG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ue(t)})}function vG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ue(t)})}function SG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ue(t)})}function _G(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ue(t)})}function wG(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ue(t)})}function EG(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ue(t)})}function xG(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ue(t)})}function RG(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ue(t)})}function CG(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ue(t)})}function AG(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ue(t)})}function TG(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ue(t)})}function IG(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ue(t)})}function OG(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ue(t)})}function MG(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ue(t)})}function DG(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ue(t)})}function kG(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ue(t)})}function PG(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ue(t)})}function NG(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ue(t)})}function LG(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ue(t)})}function zG(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ue(t)})}function BG(e,t){return new e({type:"string",format:"date",check:"string_format",...Ue(t)})}function $G(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ue(t)})}function UG(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ue(t)})}function jG(e,t){return new e({type:"number",checks:[],...Ue(t)})}function HG(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ue(t)})}function VG(e,t){return new e({type:"boolean",...Ue(t)})}function qG(e){return new e({type:"unknown"})}function FG(e,t){return new e({type:"never",...Ue(t)})}function rT(e,t){return new uD({check:"less_than",...Ue(t),value:e,inclusive:!1})}function ob(e,t){return new uD({check:"less_than",...Ue(t),value:e,inclusive:!0})}function oT(e,t){return new fD({check:"greater_than",...Ue(t),value:e,inclusive:!1})}function ib(e,t){return new fD({check:"greater_than",...Ue(t),value:e,inclusive:!0})}function iT(e,t){return new cF({check:"multiple_of",...Ue(t),value:e})}function yD(e,t){return new uF({check:"max_length",...Ue(t),maximum:e})}function Wp(e,t){return new fF({check:"min_length",...Ue(t),minimum:e})}function bD(e,t){return new dF({check:"length_equals",...Ue(t),length:e})}function GG(e,t){return new hF({check:"string_format",format:"regex",...Ue(t),pattern:e})}function ZG(e){return new pF({check:"string_format",format:"lowercase",...Ue(e)})}function KG(e){return new mF({check:"string_format",format:"uppercase",...Ue(e)})}function QG(e,t){return new gF({check:"string_format",format:"includes",...Ue(t),includes:e})}function YG(e,t){return new yF({check:"string_format",format:"starts_with",...Ue(t),prefix:e})}function XG(e,t){return new bF({check:"string_format",format:"ends_with",...Ue(t),suffix:e})}function $l(e){return new vF({check:"overwrite",tx:e})}function WG(e){return $l(t=>t.normalize(e))}function JG(){return $l(e=>e.trim())}function eZ(){return $l(e=>e.toLowerCase())}function tZ(){return $l(e=>e.toUpperCase())}function nZ(){return $l(e=>dq(e))}function sZ(e,t,n){return new e({type:"array",element:t,...Ue(n)})}function rZ(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ue(n)})}function oZ(e){const t=iZ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Lf(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Lf(i))}},e(n.value,n)));return t}function iZ(e,t){const n=new Rs({check:"custom",...Ue(t)});return n._zod.check=e,n}function vD(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??gf,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Vn(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,c=t.seen.get(e);if(c)return c.count++,n.schemaPath.includes(e)&&(c.cycle=n.path),c.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const f=e._zod.toJSONSchema?.();if(f)l.schema=f;else{const b={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,b);else{const v=l.schema,_=t.processors[i.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);_(e,t,v,b)}const g=e._zod.parent;g&&(l.ref||(l.ref=g),Vn(g,t,b),t.seen.get(g).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(l.schema,d),t.io==="input"&&os(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&l.schema._prefault&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function SD(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const f=e.metadataRegistry.get(l[0])?.id;if(f){const d=r.get(f);if(d&&d!==l[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,l[0])}}const i=l=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(l[0])?.id,v=e.external.uri??(w=>w);if(g)return{ref:v(g)};const _=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=_,{defId:_,ref:`${v("__shared")}#/${f}/${_}`}}if(l[1]===n)return{ref:"#"};const h=`#/${f}/`,b=l[1].schema.id??`__schema${e.counter++}`;return{defId:b,ref:h+b}},c=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:d,defId:h}=i(l);f.def={...f.schema},h&&(f.defId=h);const b=f.schema;for(const g in b)delete b[g];b.$ref=d};if(e.cycles==="throw")for(const l of e.seen.entries()){const f=l[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/ + `)}_.write("payload.value = newResult;"),_.write("return payload;");const T=_.compile();return(P,I)=>T(b,P,I)};let c;const l=zm,f=!Ok.jitless,p=f&&TG.value,v=t.catchall;let g;e._zod.parse=(b,_)=>{g??(g=r.value);const E=b.value;return l(E)?f&&p&&_?.async===!1&&_.jitless!==!0?(c||(c=i(t.shape)),b=c(b,_),v?Gk([],E,b,_,g,e):b):n(b,_):(b.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),b)}});function c2(e,t,n,r){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const i=e.filter(c=>!Ql(c));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(c=>c.issues.map(l=>Lc(l,r,Nc())))}),t)}const gZ=de("$ZodUnion",(e,t)=>{_n.init(e,t),Ht(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Ht(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Ht(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Ht(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(c=>c._zod.pattern);return new RegExp(`^(${i.map(c=>g_(c.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,c)=>{if(n)return r(i,c);let l=!1;const f=[];for(const d of t.options){const p=d._zod.run({value:i.value,issues:[]},c);if(p instanceof Promise)f.push(p),l=!0;else{if(p.issues.length===0)return p;f.push(p)}}return l?Promise.all(f).then(d=>c2(d,i,e,c)):c2(f,i,e,c)}}),yZ=de("$ZodIntersection",(e,t)=>{_n.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,c=t.left._zod.run({value:i,issues:[]},r),l=t.right._zod.run({value:i,issues:[]},r);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(([d,p])=>l2(n,d,p)):l2(n,c,l)}});function pS(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Sd(e)&&Sd(t)){const n=Object.keys(t),r=Object.keys(e).filter(c=>n.indexOf(c)!==-1),i={...e,...t};for(const c of r){const l=pS(e[c],t[c]);if(!l.valid)return{valid:!1,mergeErrorPath:[c,...l.mergeErrorPath]};i[c]=l.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;rf.l&&f.r).map(([f])=>f);if(c.length&&i&&e.issues.push({...i,keys:c}),Ql(e))return e;const l=pS(t.value,n.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const vZ=de("$ZodEnum",(e,t)=>{_n.init(e,t);const n=Mk(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>OG.has(typeof i)).map(i=>typeof i=="string"?yg(i):i.toString()).join("|")})$`),e._zod.parse=(i,c)=>{const l=i.value;return r.has(l)||i.issues.push({code:"invalid_value",values:n,input:l,inst:e}),i}}),bZ=de("$ZodTransform",(e,t)=>{_n.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Tk(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(l=>(n.value=l,n));if(i instanceof Promise)throw new tu;return n.value=i,n}});function u2(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Kk=de("$ZodOptional",(e,t)=>{_n.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ht(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${g_(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>u2(c,n.value)):u2(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),SZ=de("$ZodExactOptional",(e,t)=>{Kk.init(e,t),Ht(e._zod,"values",()=>t.innerType._zod.values),Ht(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),_Z=de("$ZodNullable",(e,t)=>{_n.init(e,t),Ht(e._zod,"optin",()=>t.innerType._zod.optin),Ht(e._zod,"optout",()=>t.innerType._zod.optout),Ht(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${g_(n.source)}|null)$`):void 0}),Ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),EZ=de("$ZodDefault",(e,t)=>{_n.init(e,t),e._zod.optin="optional",Ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>f2(c,t)):f2(i,t)}});function f2(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const xZ=de("$ZodPrefault",(e,t)=>{_n.init(e,t),e._zod.optin="optional",Ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),wZ=de("$ZodNonOptional",(e,t)=>{_n.init(e,t),Ht(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>d2(c,e)):d2(i,e)}});function d2(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const RZ=de("$ZodCatch",(e,t)=>{_n.init(e,t),Ht(e._zod,"optin",()=>t.innerType._zod.optin),Ht(e._zod,"optout",()=>t.innerType._zod.optout),Ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>(n.value=c.value,c.issues.length&&(n.value=t.catchValue({...n,error:{issues:c.issues.map(l=>Lc(l,r,Nc()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>Lc(c,r,Nc()))},input:n.value}),n.issues=[]),n)}}),CZ=de("$ZodPipe",(e,t)=>{_n.init(e,t),Ht(e._zod,"values",()=>t.in._zod.values),Ht(e._zod,"optin",()=>t.in._zod.optin),Ht(e._zod,"optout",()=>t.out._zod.optout),Ht(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const c=t.out._zod.run(n,r);return c instanceof Promise?c.then(l=>Fh(l,t.in,r)):Fh(c,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(c=>Fh(c,t.out,r)):Fh(i,t.out,r)}});function Fh(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const AZ=de("$ZodReadonly",(e,t)=>{_n.init(e,t),Ht(e._zod,"propValues",()=>t.innerType._zod.propValues),Ht(e._zod,"values",()=>t.innerType._zod.values),Ht(e._zod,"optin",()=>t.innerType?._zod?.optin),Ht(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(p2):p2(i)}});function p2(e){return e.value=Object.freeze(e.value),e}const IZ=de("$ZodCustom",(e,t)=>{Fs.init(e,t),_n.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(c=>h2(c,n,r,e));h2(i,n,r,e)}});function h2(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(_d(i))}}var m2;class TZ{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function OZ(){return new TZ}(m2=globalThis).__zod_globalRegistry??(m2.__zod_globalRegistry=OZ());const td=globalThis.__zod_globalRegistry;function MZ(e,t){return new e({type:"string",...je(t)})}function DZ(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(t)})}function g2(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(t)})}function PZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(t)})}function kZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(t)})}function NZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(t)})}function LZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(t)})}function $Z(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(t)})}function zZ(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(t)})}function BZ(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(t)})}function UZ(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(t)})}function jZ(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(t)})}function VZ(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(t)})}function HZ(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(t)})}function qZ(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(t)})}function FZ(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(t)})}function GZ(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(t)})}function KZ(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(t)})}function ZZ(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(t)})}function QZ(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(t)})}function YZ(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(t)})}function XZ(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(t)})}function WZ(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(t)})}function JZ(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(t)})}function eQ(e,t){return new e({type:"string",format:"date",check:"string_format",...je(t)})}function tQ(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(t)})}function nQ(e,t){return new e({type:"string",format:"duration",check:"string_format",...je(t)})}function sQ(e,t){return new e({type:"number",checks:[],...je(t)})}function rQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(t)})}function oQ(e,t){return new e({type:"boolean",...je(t)})}function iQ(e){return new e({type:"unknown"})}function aQ(e,t){return new e({type:"never",...je(t)})}function y2(e,t){return new jk({check:"less_than",...je(t),value:e,inclusive:!1})}function tb(e,t){return new jk({check:"less_than",...je(t),value:e,inclusive:!0})}function v2(e,t){return new Vk({check:"greater_than",...je(t),value:e,inclusive:!1})}function nb(e,t){return new Vk({check:"greater_than",...je(t),value:e,inclusive:!0})}function b2(e,t){return new wK({check:"multiple_of",...je(t),value:e})}function Zk(e,t){return new CK({check:"max_length",...je(t),maximum:e})}function Um(e,t){return new AK({check:"min_length",...je(t),minimum:e})}function Qk(e,t){return new IK({check:"length_equals",...je(t),length:e})}function cQ(e,t){return new TK({check:"string_format",format:"regex",...je(t),pattern:e})}function lQ(e){return new OK({check:"string_format",format:"lowercase",...je(e)})}function uQ(e){return new MK({check:"string_format",format:"uppercase",...je(e)})}function fQ(e,t){return new DK({check:"string_format",format:"includes",...je(t),includes:e})}function dQ(e,t){return new PK({check:"string_format",format:"starts_with",...je(t),prefix:e})}function pQ(e,t){return new kK({check:"string_format",format:"ends_with",...je(t),suffix:e})}function _u(e){return new NK({check:"overwrite",tx:e})}function hQ(e){return _u(t=>t.normalize(e))}function mQ(){return _u(e=>e.trim())}function gQ(){return _u(e=>e.toLowerCase())}function yQ(){return _u(e=>e.toUpperCase())}function vQ(){return _u(e=>IG(e))}function bQ(e,t,n){return new e({type:"array",element:t,...je(n)})}function SQ(e,t,n){return new e({type:"custom",check:"custom",fn:t,...je(n)})}function _Q(e){const t=EQ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(_d(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(_d(i))}},e(n.value,n)));return t}function EQ(e,t){const n=new Fs({check:"custom",...je(t)});return n._zod.check=e,n}function Yk(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??td,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function as(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,c=t.seen.get(e);if(c)return c.count++,n.schemaPath.includes(e)&&(c.cycle=n.path),c.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const f=e._zod.toJSONSchema?.();if(f)l.schema=f;else{const v={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,v);else{const b=l.schema,_=t.processors[i.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);_(e,t,b,v)}const g=e._zod.parent;g&&(l.ref||(l.ref=g),as(g,t,v),t.seen.get(g).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(l.schema,d),t.io==="input"&&xs(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&l.schema._prefault&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function Xk(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const f=e.metadataRegistry.get(l[0])?.id;if(f){const d=r.get(f);if(d&&d!==l[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,l[0])}}const i=l=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(l[0])?.id,b=e.external.uri??(E=>E);if(g)return{ref:b(g)};const _=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=_,{defId:_,ref:`${b("__shared")}#/${f}/${_}`}}if(l[1]===n)return{ref:"#"};const p=`#/${f}/`,v=l[1].schema.id??`__schema${e.counter++}`;return{defId:v,ref:p+v}},c=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:d,defId:p}=i(l);f.def={...f.schema},p&&(f.defId=p);const v=f.schema;for(const g in v)delete v[g];v.$ref=d};if(e.cycles==="throw")for(const l of e.seen.entries()){const f=l[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const f=l[1];if(t===l[0]){c(l);continue}if(e.external){const h=e.external.registry.get(l[0])?.id;if(t!==l[0]&&h){c(l);continue}}if(e.metadataRegistry.get(l[0])?.id){c(l);continue}if(f.cycle){c(l);continue}if(f.count>1&&e.reused==="ref"){c(l);continue}}}function _D(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{const f=e.seen.get(l);if(f.ref===null)return;const d=f.def??f.schema,h={...d},b=f.ref;if(f.ref=null,b){r(b);const v=e.seen.get(b),_=v.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(_)):Object.assign(d,_),Object.assign(d,h),l._zod.parent===b)for(const E in d)E==="$ref"||E==="allOf"||E in h||delete d[E];if(_.$ref&&v.def)for(const E in d)E==="$ref"||E==="allOf"||E in v.def&&JSON.stringify(d[E])===JSON.stringify(v.def[E])&&delete d[E]}const g=l._zod.parent;if(g&&g!==b){r(g);const v=e.seen.get(g);if(v?.schema.$ref&&(d.$ref=v.schema.$ref,v.def))for(const _ in d)_==="$ref"||_==="allOf"||_ in v.def&&JSON.stringify(d[_])===JSON.stringify(v.def[_])&&delete d[_]}e.override({zodSchema:l,jsonSchema:d,path:f.path??[]})};for(const l of[...e.seen.entries()].reverse())r(l[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);const c=e.external?.defs??{};for(const l of e.seen.entries()){const f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}e.external||Object.keys(c).length>0&&(e.target==="draft-2020-12"?i.$defs=c:i.definitions=c);try{const l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Jp(t,"input",e.processors),output:Jp(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function os(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return os(r.element,n);if(r.type==="set")return os(r.valueType,n);if(r.type==="lazy")return os(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return os(r.innerType,n);if(r.type==="intersection")return os(r.left,n)||os(r.right,n);if(r.type==="record"||r.type==="map")return os(r.keyType,n)||os(r.valueType,n);if(r.type==="pipe")return os(r.in,n)||os(r.out,n);if(r.type==="object"){for(const i in r.shape)if(os(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(os(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(os(i,n))return!0;return!!(r.rest&&os(r.rest,n))}return!1}const aZ=(e,t={})=>n=>{const r=vD({...n,processors:t});return Vn(e,r),SD(r,e),_D(r,e)},Jp=(e,t,n={})=>r=>{const{libraryOptions:i,target:c}=r??{},l=vD({...i??{},target:c,io:t,processors:n});return Vn(e,l),SD(l,e),_D(l,e)},cZ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},lZ=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:c,maximum:l,format:f,patterns:d,contentEncoding:h}=e._zod.bag;if(typeof c=="number"&&(i.minLength=c),typeof l=="number"&&(i.maxLength=l),f&&(i.format=cZ[f]??f,i.format===""&&delete i.format,f==="time"&&delete i.format),h&&(i.contentEncoding=h),d&&d.size>0){const b=[...d];b.length===1?i.pattern=b[0].source:b.length>1&&(i.allOf=[...b.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},uZ=(e,t,n,r)=>{const i=n,{minimum:c,maximum:l,format:f,multipleOf:d,exclusiveMaximum:h,exclusiveMinimum:b}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof b=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=b,i.exclusiveMinimum=!0):i.exclusiveMinimum=b),typeof c=="number"&&(i.minimum=c,typeof b=="number"&&t.target!=="draft-04"&&(b>=c?delete i.minimum:delete i.exclusiveMinimum)),typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=h,i.exclusiveMaximum=!0):i.exclusiveMaximum=h),typeof l=="number"&&(i.maximum=l,typeof h=="number"&&t.target!=="draft-04"&&(h<=l?delete i.maximum:delete i.exclusiveMaximum)),typeof d=="number"&&(i.multipleOf=d)},fZ=(e,t,n,r)=>{n.type="boolean"},dZ=(e,t,n,r)=>{n.not={}},hZ=(e,t,n,r)=>{},pZ=(e,t,n,r)=>{const i=e._zod.def,c=eD(i.entries);c.every(l=>typeof l=="number")&&(n.type="number"),c.every(l=>typeof l=="string")&&(n.type="string"),n.enum=c},mZ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},gZ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},yZ=(e,t,n,r)=>{const i=n,c=e._zod.def,{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(i.minItems=l),typeof f=="number"&&(i.maxItems=f),i.type="array",i.items=Vn(c.element,t,{...r,path:[...r.path,"items"]})},bZ=(e,t,n,r)=>{const i=n,c=e._zod.def;i.type="object",i.properties={};const l=c.shape;for(const h in l)i.properties[h]=Vn(l[h],t,{...r,path:[...r.path,"properties",h]});const f=new Set(Object.keys(l)),d=new Set([...f].filter(h=>{const b=c.shape[h]._zod;return t.io==="input"?b.optin===void 0:b.optout===void 0}));d.size>0&&(i.required=Array.from(d)),c.catchall?._zod.def.type==="never"?i.additionalProperties=!1:c.catchall?c.catchall&&(i.additionalProperties=Vn(c.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},vZ=(e,t,n,r)=>{const i=e._zod.def,c=i.inclusive===!1,l=i.options.map((f,d)=>Vn(f,t,{...r,path:[...r.path,c?"oneOf":"anyOf",d]}));c?n.oneOf=l:n.anyOf=l},SZ=(e,t,n,r)=>{const i=e._zod.def,c=Vn(i.left,t,{...r,path:[...r.path,"allOf",0]}),l=Vn(i.right,t,{...r,path:[...r.path,"allOf",1]}),f=h=>"allOf"in h&&Object.keys(h).length===1,d=[...f(c)?c.allOf:[c],...f(l)?l.allOf:[l]];n.allOf=d},_Z=(e,t,n,r)=>{const i=e._zod.def,c=Vn(i.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=i.innerType,n.nullable=!0):n.anyOf=[c,{type:"null"}]},wZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},EZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},xZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},RZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType;let l;try{l=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=l},CZ=(e,t,n,r)=>{const i=e._zod.def,c=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Vn(c,t,r);const l=t.seen.get(e);l.ref=c},AZ=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.readOnly=!0},wD=(e,t,n,r)=>{const i=e._zod.def;Vn(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},TZ=de("ZodISODateTime",(e,t)=>{kF.init(e,t),tn.init(e,t)});function IZ(e){return zG(TZ,e)}const OZ=de("ZodISODate",(e,t)=>{PF.init(e,t),tn.init(e,t)});function MZ(e){return BG(OZ,e)}const DZ=de("ZodISOTime",(e,t)=>{NF.init(e,t),tn.init(e,t)});function kZ(e){return $G(DZ,e)}const PZ=de("ZodISODuration",(e,t)=>{LF.init(e,t),tn.init(e,t)});function NZ(e){return UG(PZ,e)}const LZ=(e,t)=>{oD.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Rq(e,n)},flatten:{value:n=>xq(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,gv,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,gv,2)}},isEmpty:{get(){return e.issues.length===0}}})},wr=de("ZodError",LZ,{Parent:Error}),zZ=Mm(wr),BZ=Dm(wr),$Z=km(wr),UZ=Pm(wr),jZ=Tq(wr),HZ=Iq(wr),VZ=Oq(wr),qZ=Mq(wr),FZ=Dq(wr),GZ=kq(wr),ZZ=Pq(wr),KZ=Nq(wr),fn=de("ZodType",(e,t)=>(un.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Jp(e,"input"),output:Jp(e,"output")}}),e.toJSONSchema=aZ(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(aa(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>ca(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>zZ(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>$Z(e,n,r),e.parseAsync=async(n,r)=>BZ(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>UZ(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>jZ(e,n,r),e.decode=(n,r)=>HZ(e,n,r),e.encodeAsync=async(n,r)=>VZ(e,n,r),e.decodeAsync=async(n,r)=>qZ(e,n,r),e.safeEncode=(n,r)=>FZ(e,n,r),e.safeDecode=(n,r)=>GZ(e,n,r),e.safeEncodeAsync=async(n,r)=>ZZ(e,n,r),e.safeDecodeAsync=async(n,r)=>KZ(e,n,r),e.refine=(n,r)=>e.check(VK(n,r)),e.superRefine=n=>e.check(qK(n)),e.overwrite=n=>e.check($l(n)),e.optional=()=>fT(e),e.exactOptional=()=>OK(e),e.nullable=()=>dT(e),e.nullish=()=>fT(dT(e)),e.nonoptional=n=>LK(e,n),e.array=()=>vK(e),e.or=n=>EK([e,n]),e.and=n=>RK(e,n),e.transform=n=>hT(e,TK(n)),e.default=n=>kK(e,n),e.prefault=n=>NK(e,n),e.catch=n=>BK(e,n),e.pipe=n=>hT(e,n),e.readonly=()=>jK(e),e.describe=n=>{const r=e.clone();return gf.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return gf.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return gf.get(e);const r=e.clone();return gf.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),ED=de("_ZodString",(e,t)=>{wS.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>lZ(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(GG(...r)),e.includes=(...r)=>e.check(QG(...r)),e.startsWith=(...r)=>e.check(YG(...r)),e.endsWith=(...r)=>e.check(XG(...r)),e.min=(...r)=>e.check(Wp(...r)),e.max=(...r)=>e.check(yD(...r)),e.length=(...r)=>e.check(bD(...r)),e.nonempty=(...r)=>e.check(Wp(1,...r)),e.lowercase=r=>e.check(ZG(r)),e.uppercase=r=>e.check(KG(r)),e.trim=()=>e.check(JG()),e.normalize=(...r)=>e.check(WG(...r)),e.toLowerCase=()=>e.check(eZ()),e.toUpperCase=()=>e.check(tZ()),e.slugify=()=>e.check(nZ())}),QZ=de("ZodString",(e,t)=>{wS.init(e,t),ED.init(e,t),e.email=n=>e.check(gG(YZ,n)),e.url=n=>e.check(_G(XZ,n)),e.jwt=n=>e.check(LG(dK,n)),e.emoji=n=>e.check(wG(WZ,n)),e.guid=n=>e.check(sT(cT,n)),e.uuid=n=>e.check(yG(ap,n)),e.uuidv4=n=>e.check(bG(ap,n)),e.uuidv6=n=>e.check(vG(ap,n)),e.uuidv7=n=>e.check(SG(ap,n)),e.nanoid=n=>e.check(EG(JZ,n)),e.guid=n=>e.check(sT(cT,n)),e.cuid=n=>e.check(xG(eK,n)),e.cuid2=n=>e.check(RG(tK,n)),e.ulid=n=>e.check(CG(nK,n)),e.base64=n=>e.check(kG(lK,n)),e.base64url=n=>e.check(PG(uK,n)),e.xid=n=>e.check(AG(sK,n)),e.ksuid=n=>e.check(TG(rK,n)),e.ipv4=n=>e.check(IG(oK,n)),e.ipv6=n=>e.check(OG(iK,n)),e.cidrv4=n=>e.check(MG(aK,n)),e.cidrv6=n=>e.check(DG(cK,n)),e.e164=n=>e.check(NG(fK,n)),e.datetime=n=>e.check(IZ(n)),e.date=n=>e.check(MZ(n)),e.time=n=>e.check(kZ(n)),e.duration=n=>e.check(NZ(n))});function aT(e){return mG(QZ,e)}const tn=de("ZodStringFormat",(e,t)=>{Xt.init(e,t),ED.init(e,t)}),YZ=de("ZodEmail",(e,t)=>{xF.init(e,t),tn.init(e,t)}),cT=de("ZodGUID",(e,t)=>{wF.init(e,t),tn.init(e,t)}),ap=de("ZodUUID",(e,t)=>{EF.init(e,t),tn.init(e,t)}),XZ=de("ZodURL",(e,t)=>{RF.init(e,t),tn.init(e,t)}),WZ=de("ZodEmoji",(e,t)=>{CF.init(e,t),tn.init(e,t)}),JZ=de("ZodNanoID",(e,t)=>{AF.init(e,t),tn.init(e,t)}),eK=de("ZodCUID",(e,t)=>{TF.init(e,t),tn.init(e,t)}),tK=de("ZodCUID2",(e,t)=>{IF.init(e,t),tn.init(e,t)}),nK=de("ZodULID",(e,t)=>{OF.init(e,t),tn.init(e,t)}),sK=de("ZodXID",(e,t)=>{MF.init(e,t),tn.init(e,t)}),rK=de("ZodKSUID",(e,t)=>{DF.init(e,t),tn.init(e,t)}),oK=de("ZodIPv4",(e,t)=>{zF.init(e,t),tn.init(e,t)}),iK=de("ZodIPv6",(e,t)=>{BF.init(e,t),tn.init(e,t)}),aK=de("ZodCIDRv4",(e,t)=>{$F.init(e,t),tn.init(e,t)}),cK=de("ZodCIDRv6",(e,t)=>{UF.init(e,t),tn.init(e,t)}),lK=de("ZodBase64",(e,t)=>{jF.init(e,t),tn.init(e,t)}),uK=de("ZodBase64URL",(e,t)=>{VF.init(e,t),tn.init(e,t)}),fK=de("ZodE164",(e,t)=>{qF.init(e,t),tn.init(e,t)}),dK=de("ZodJWT",(e,t)=>{GF.init(e,t),tn.init(e,t)}),xD=de("ZodNumber",(e,t)=>{hD.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>uZ(e,r,i),e.gt=(r,i)=>e.check(oT(r,i)),e.gte=(r,i)=>e.check(ib(r,i)),e.min=(r,i)=>e.check(ib(r,i)),e.lt=(r,i)=>e.check(rT(r,i)),e.lte=(r,i)=>e.check(ob(r,i)),e.max=(r,i)=>e.check(ob(r,i)),e.int=r=>e.check(lT(r)),e.safe=r=>e.check(lT(r)),e.positive=r=>e.check(oT(0,r)),e.nonnegative=r=>e.check(ib(0,r)),e.negative=r=>e.check(rT(0,r)),e.nonpositive=r=>e.check(ob(0,r)),e.multipleOf=(r,i)=>e.check(iT(r,i)),e.step=(r,i)=>e.check(iT(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function VRe(e){return jG(xD,e)}const hK=de("ZodNumberFormat",(e,t)=>{ZF.init(e,t),xD.init(e,t)});function lT(e){return HG(hK,e)}const pK=de("ZodBoolean",(e,t)=>{KF.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fZ(e,n,r)});function qRe(e){return VG(pK,e)}const mK=de("ZodUnknown",(e,t)=>{QF.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hZ()});function uT(){return qG(mK)}const gK=de("ZodNever",(e,t)=>{YF.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dZ(e,n,r)});function yK(e){return FG(gK,e)}const bK=de("ZodArray",(e,t)=>{XF.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yZ(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(Wp(n,r)),e.nonempty=n=>e.check(Wp(1,n)),e.max=(n,r)=>e.check(yD(n,r)),e.length=(n,r)=>e.check(bD(n,r)),e.unwrap=()=>e.element});function vK(e,t){return sZ(bK,e,t)}const SK=de("ZodObject",(e,t)=>{JF.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bZ(e,n,r,i),Dt(e,"shape",()=>t.shape),e.keyof=()=>CK(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:uT()}),e.loose=()=>e.clone({...e._zod.def,catchall:uT()}),e.strict=()=>e.clone({...e._zod.def,catchall:yK()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>vq(e,n),e.safeExtend=n=>Sq(e,n),e.merge=n=>_q(e,n),e.pick=n=>yq(e,n),e.omit=n=>bq(e,n),e.partial=(...n)=>wq(RD,e,n[0]),e.required=(...n)=>Eq(CD,e,n[0])});function _K(e,t){const n={type:"object",shape:e??{},...Ue(t)};return new SK(n)}const wK=de("ZodUnion",(e,t)=>{eG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vZ(e,n,r,i),e.options=t.options});function EK(e,t){return new wK({type:"union",options:e,...Ue(t)})}const xK=de("ZodIntersection",(e,t)=>{tG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>SZ(e,n,r,i)});function RK(e,t){return new xK({type:"intersection",left:e,right:t})}const bv=de("ZodEnum",(e,t)=>{nG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>pZ(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const c={};for(const l of r)if(n.has(l))c[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new bv({...t,checks:[],...Ue(i),entries:c})},e.exclude=(r,i)=>{const c={...t.entries};for(const l of r)if(n.has(l))delete c[l];else throw new Error(`Key ${l} not found in enum`);return new bv({...t,checks:[],...Ue(i),entries:c})}});function CK(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new bv({type:"enum",entries:n,...Ue(t)})}const AK=de("ZodTransform",(e,t)=>{sG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gZ(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new WM(e.constructor.name);n.addIssue=c=>{if(typeof c=="string")n.issues.push(Lf(c,n.value,t));else{const l=c;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(Lf(l))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(c=>(n.value=c,n)):(n.value=i,n)}});function TK(e){return new AK({type:"transform",transform:e})}const RD=de("ZodOptional",(e,t)=>{gD.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wD(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function fT(e){return new RD({type:"optional",innerType:e})}const IK=de("ZodExactOptional",(e,t)=>{rG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wD(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function OK(e){return new IK({type:"optional",innerType:e})}const MK=de("ZodNullable",(e,t)=>{oG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_Z(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function dT(e){return new MK({type:"nullable",innerType:e})}const DK=de("ZodDefault",(e,t)=>{iG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>EZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kK(e,t){return new DK({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():nD(t)}})}const PK=de("ZodPrefault",(e,t)=>{aG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function NK(e,t){return new PK({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():nD(t)}})}const CD=de("ZodNonOptional",(e,t)=>{cG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function LK(e,t){return new CD({type:"nonoptional",innerType:e,...Ue(t)})}const zK=de("ZodCatch",(e,t)=>{lG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>RZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function BK(e,t){return new zK({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const $K=de("ZodPipe",(e,t)=>{uG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>CZ(e,n,r,i),e.in=t.in,e.out=t.out});function hT(e,t){return new $K({type:"pipe",in:e,out:t})}const UK=de("ZodReadonly",(e,t)=>{fG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>AZ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function jK(e){return new UK({type:"readonly",innerType:e})}const HK=de("ZodCustom",(e,t)=>{dG.init(e,t),fn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mZ(e,n)});function VK(e,t={}){return rZ(HK,e,t)}function qK(e){return oZ(e)}const ES="hive:v1:aws-credentials",FK=_K({accessKeyId:aT().min(16,"Access Key ID must be at least 16 characters"),secretAccessKey:aT().min(1,"Secret Access Key is required")});let ko;function Lm(){if(ko!==void 0)return ko;try{const e=localStorage.getItem(ES);if(!e)return ko=null,null;const t=JSON.parse(e),n=FK.safeParse(t);return ko=n.success?n.data:null,ko}catch{return ko=null,null}}function FRe(e){try{localStorage.setItem(ES,JSON.stringify(e)),ko=e}catch{ko=e}}function GK(){try{localStorage.removeItem(ES)}catch{}ko=null}const AD=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),TD=e=>({httpHandler:e.httpHandler()});var zf;(function(e){e.HTTP="http",e.HTTPS="https"})(zf||(zf={}));var Bf;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Bf||(Bf={}));const vv="__smithy_context";class kn{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new kn({...t,headers:{...t.headers}});return n.query&&(n.query=ZK(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return kn.clone(this)}}function ZK(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class ac{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const KK=e=>t=>async n=>{if(!kn.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let c=r.hostname;r.port!=null&&(c+=`:${r.port}`),r.headers.host=c}return t(n)},QK={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},ID=e=>({applyToStack:t=>{t.add(KK(e),QK)}}),YK=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:h}=f,b=d??t.inputFilterSensitiveLog,g=h??t.outputFilterSensitiveLog,{$metadata:v,..._}=r.output;return l?.info?.({clientName:i,commandName:c,input:b(n.input),output:g(_),metadata:v}),r}catch(r){const{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d}=f,h=d??t.inputFilterSensitiveLog;throw l?.error?.({clientName:i,commandName:c,input:h(n.input),error:r,metadata:r.$metadata}),r}},XK={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},OD=e=>({applyToStack:t=>{t.add(YK(),XK)}}),WK={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},JK=()=>e=>async t=>e(t),MD=e=>({applyToStack:t=>{t.add(JK(),WK)}}),qo=e=>e[vv]||(e[vv]={}),Fs=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},eQ=(e,t)=>{if(!t||t.length===0)return e;const n=[];for(const r of t)for(const i of e)i.schemeId.split("#")[1]===r&&n.push(i);for(const r of e)n.find(({schemeId:i})=>i===r.schemeId)||n.push(r);return n};function tQ(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const nQ=(e,t)=>(n,r)=>async i=>{const c=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),l=e.authSchemePreference?await e.authSchemePreference():[],f=eQ(c,l),d=tQ(e.httpAuthSchemes),h=qo(r),b=[];for(const g of f){const v=d.get(g.schemeId);if(!v){b.push(`HttpAuthScheme \`${g.schemeId}\` was not enabled for this service.`);continue}const _=v.identityProvider(await t.identityProviderConfigProvider(e));if(!_){b.push(`HttpAuthScheme \`${g.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:w={},signingProperties:E={}}=g.propertiesExtractor?.(e,r)||{};g.identityProperties=Object.assign(g.identityProperties||{},w),g.signingProperties=Object.assign(g.signingProperties||{},E),h.selectedHttpAuthScheme={httpAuthOption:g,identity:await _(g.identityProperties),signer:v.signer};break}if(!h.selectedHttpAuthScheme)throw new Error(b.join(` -`));return n(i)},sQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},DD=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(nQ(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),sQ)}}),rQ={name:"serializerMiddleware"},oQ=e=>t=>{throw t},iQ=(e,t)=>{},aQ=e=>(t,n)=>async r=>{if(!kn.isInstance(r.request))return t(r);const c=qo(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c,h=await t({...r,request:await d.sign(r.request,f,l)}).catch((d.errorHandler||oQ)(l));return(d.successHandler||iQ)(h.response,l),h},kD={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},PD=e=>({applyToStack:t=>{t.addRelativeTo(aQ(),kD)}}),El=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},ND="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pT=Object.entries(ND).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),cQ=ND.split(""),xl=6,wf=8,lQ=63,cc=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=xl;const f=i/4*3;c>>=l%wf;const d=Math.floor(l/wf);for(let h=0;h>b)}}return new Uint8Array(n)},jo=e=>new TextEncoder().encode(e),$f=e=>typeof e=="string"?jo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),hc=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function ea(e){let t;typeof e=="string"?t=jo(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let c=0;c>b]}i+="==".slice(0,4-d)}return i}class ec extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?ec.mutate(cc(t)):ec.mutate(jo(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,ec.prototype),t}transformToString(t="utf-8"){return t==="base64"?ea(this):hc(this)}}const mT=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),uQ=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:l}=t,f=n!==void 0&&r!==void 0&&i!==void 0&&c!==void 0&&l!==void 0,d=f?l(i,e):void 0,h=e.getReader();return new ReadableStream({async pull(b){const{value:g,done:v}=await h.read();if(v){if(b.enqueue(`0\r -`),f){const _=n(await d);b.enqueue(`${c}:${_}\r -`),b.enqueue(`\r -`)}b.close()}else b.enqueue(`${(r(g)||0).toString(16)}\r +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const f=l[1];if(t===l[0]){c(l);continue}if(e.external){const p=e.external.registry.get(l[0])?.id;if(t!==l[0]&&p){c(l);continue}}if(e.metadataRegistry.get(l[0])?.id){c(l);continue}if(f.cycle){c(l);continue}if(f.count>1&&e.reused==="ref"){c(l);continue}}}function Wk(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{const f=e.seen.get(l);if(f.ref===null)return;const d=f.def??f.schema,p={...d},v=f.ref;if(f.ref=null,v){r(v);const b=e.seen.get(v),_=b.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(_)):Object.assign(d,_),Object.assign(d,p),l._zod.parent===v)for(const x in d)x==="$ref"||x==="allOf"||x in p||delete d[x];if(_.$ref&&b.def)for(const x in d)x==="$ref"||x==="allOf"||x in b.def&&JSON.stringify(d[x])===JSON.stringify(b.def[x])&&delete d[x]}const g=l._zod.parent;if(g&&g!==v){r(g);const b=e.seen.get(g);if(b?.schema.$ref&&(d.$ref=b.schema.$ref,b.def))for(const _ in d)_==="$ref"||_==="allOf"||_ in b.def&&JSON.stringify(d[_])===JSON.stringify(b.def[_])&&delete d[_]}e.override({zodSchema:l,jsonSchema:d,path:f.path??[]})};for(const l of[...e.seen.entries()].reverse())r(l[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);const c=e.external?.defs??{};for(const l of e.seen.entries()){const f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}e.external||Object.keys(c).length>0&&(e.target==="draft-2020-12"?i.$defs=c:i.definitions=c);try{const l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:jm(t,"input",e.processors),output:jm(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function xs(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return xs(r.element,n);if(r.type==="set")return xs(r.valueType,n);if(r.type==="lazy")return xs(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return xs(r.innerType,n);if(r.type==="intersection")return xs(r.left,n)||xs(r.right,n);if(r.type==="record"||r.type==="map")return xs(r.keyType,n)||xs(r.valueType,n);if(r.type==="pipe")return xs(r.in,n)||xs(r.out,n);if(r.type==="object"){for(const i in r.shape)if(xs(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(xs(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(xs(i,n))return!0;return!!(r.rest&&xs(r.rest,n))}return!1}const xQ=(e,t={})=>n=>{const r=Yk({...n,processors:t});return as(e,r),Xk(r,e),Wk(r,e)},jm=(e,t,n={})=>r=>{const{libraryOptions:i,target:c}=r??{},l=Yk({...i??{},target:c,io:t,processors:n});return as(e,l),Xk(l,e),Wk(l,e)},wQ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},RQ=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:c,maximum:l,format:f,patterns:d,contentEncoding:p}=e._zod.bag;if(typeof c=="number"&&(i.minLength=c),typeof l=="number"&&(i.maxLength=l),f&&(i.format=wQ[f]??f,i.format===""&&delete i.format,f==="time"&&delete i.format),p&&(i.contentEncoding=p),d&&d.size>0){const v=[...d];v.length===1?i.pattern=v[0].source:v.length>1&&(i.allOf=[...v.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},CQ=(e,t,n,r)=>{const i=n,{minimum:c,maximum:l,format:f,multipleOf:d,exclusiveMaximum:p,exclusiveMinimum:v}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof v=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=v,i.exclusiveMinimum=!0):i.exclusiveMinimum=v),typeof c=="number"&&(i.minimum=c,typeof v=="number"&&t.target!=="draft-04"&&(v>=c?delete i.minimum:delete i.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=p,i.exclusiveMaximum=!0):i.exclusiveMaximum=p),typeof l=="number"&&(i.maximum=l,typeof p=="number"&&t.target!=="draft-04"&&(p<=l?delete i.maximum:delete i.exclusiveMaximum)),typeof d=="number"&&(i.multipleOf=d)},AQ=(e,t,n,r)=>{n.type="boolean"},IQ=(e,t,n,r)=>{n.not={}},TQ=(e,t,n,r)=>{},OQ=(e,t,n,r)=>{const i=e._zod.def,c=Mk(i.entries);c.every(l=>typeof l=="number")&&(n.type="number"),c.every(l=>typeof l=="string")&&(n.type="string"),n.enum=c},MQ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},DQ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},PQ=(e,t,n,r)=>{const i=n,c=e._zod.def,{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(i.minItems=l),typeof f=="number"&&(i.maxItems=f),i.type="array",i.items=as(c.element,t,{...r,path:[...r.path,"items"]})},kQ=(e,t,n,r)=>{const i=n,c=e._zod.def;i.type="object",i.properties={};const l=c.shape;for(const p in l)i.properties[p]=as(l[p],t,{...r,path:[...r.path,"properties",p]});const f=new Set(Object.keys(l)),d=new Set([...f].filter(p=>{const v=c.shape[p]._zod;return t.io==="input"?v.optin===void 0:v.optout===void 0}));d.size>0&&(i.required=Array.from(d)),c.catchall?._zod.def.type==="never"?i.additionalProperties=!1:c.catchall?c.catchall&&(i.additionalProperties=as(c.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},NQ=(e,t,n,r)=>{const i=e._zod.def,c=i.inclusive===!1,l=i.options.map((f,d)=>as(f,t,{...r,path:[...r.path,c?"oneOf":"anyOf",d]}));c?n.oneOf=l:n.anyOf=l},LQ=(e,t,n,r)=>{const i=e._zod.def,c=as(i.left,t,{...r,path:[...r.path,"allOf",0]}),l=as(i.right,t,{...r,path:[...r.path,"allOf",1]}),f=p=>"allOf"in p&&Object.keys(p).length===1,d=[...f(c)?c.allOf:[c],...f(l)?l.allOf:[l]];n.allOf=d},$Q=(e,t,n,r)=>{const i=e._zod.def,c=as(i.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=i.innerType,n.nullable=!0):n.anyOf=[c,{type:"null"}]},zQ=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},BQ=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},UQ=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},jQ=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType;let l;try{l=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=l},VQ=(e,t,n,r)=>{const i=e._zod.def,c=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;as(c,t,r);const l=t.seen.get(e);l.ref=c},HQ=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.readOnly=!0},Jk=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},qQ=de("ZodISODateTime",(e,t)=>{QK.init(e,t),fn.init(e,t)});function FQ(e){return JZ(qQ,e)}const GQ=de("ZodISODate",(e,t)=>{YK.init(e,t),fn.init(e,t)});function KQ(e){return eQ(GQ,e)}const ZQ=de("ZodISOTime",(e,t)=>{XK.init(e,t),fn.init(e,t)});function QQ(e){return tQ(ZQ,e)}const YQ=de("ZodISODuration",(e,t)=>{WK.init(e,t),fn.init(e,t)});function XQ(e){return nQ(YQ,e)}const WQ=(e,t)=>{Lk.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>jG(e,n)},flatten:{value:n=>UG(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,dS,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,dS,2)}},isEmpty:{get(){return e.issues.length===0}}})},Br=de("ZodError",WQ,{Parent:Error}),JQ=bg(Br),eY=Sg(Br),tY=_g(Br),nY=Eg(Br),sY=qG(Br),rY=FG(Br),oY=GG(Br),iY=KG(Br),aY=ZG(Br),cY=QG(Br),lY=YG(Br),uY=XG(Br),En=de("ZodType",(e,t)=>(_n.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:jm(e,"input"),output:jm(e,"output")}}),e.toJSONSchema=xQ(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Na(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>La(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>JQ(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>tY(e,n,r),e.parseAsync=async(n,r)=>eY(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>nY(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>sY(e,n,r),e.decode=(n,r)=>rY(e,n,r),e.encodeAsync=async(n,r)=>oY(e,n,r),e.decodeAsync=async(n,r)=>iY(e,n,r),e.safeEncode=(n,r)=>aY(e,n,r),e.safeDecode=(n,r)=>cY(e,n,r),e.safeEncodeAsync=async(n,r)=>lY(e,n,r),e.safeDecodeAsync=async(n,r)=>uY(e,n,r),e.refine=(n,r)=>e.check(oX(n,r)),e.superRefine=n=>e.check(iX(n)),e.overwrite=n=>e.check(_u(n)),e.optional=()=>w2(e),e.exactOptional=()=>GY(e),e.nullable=()=>R2(e),e.nullish=()=>w2(R2(e)),e.nonoptional=n=>WY(e,n),e.array=()=>NY(e),e.or=n=>BY([e,n]),e.and=n=>jY(e,n),e.transform=n=>C2(e,qY(n)),e.default=n=>QY(e,n),e.prefault=n=>XY(e,n),e.catch=n=>eX(e,n),e.pipe=n=>C2(e,n),e.readonly=()=>sX(e),e.describe=n=>{const r=e.clone();return td.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return td.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return td.get(e);const r=e.clone();return td.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),e3=de("_ZodString",(e,t)=>{v_.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,i,c)=>RQ(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(cQ(...r)),e.includes=(...r)=>e.check(fQ(...r)),e.startsWith=(...r)=>e.check(dQ(...r)),e.endsWith=(...r)=>e.check(pQ(...r)),e.min=(...r)=>e.check(Um(...r)),e.max=(...r)=>e.check(Zk(...r)),e.length=(...r)=>e.check(Qk(...r)),e.nonempty=(...r)=>e.check(Um(1,...r)),e.lowercase=r=>e.check(lQ(r)),e.uppercase=r=>e.check(uQ(r)),e.trim=()=>e.check(mQ()),e.normalize=(...r)=>e.check(hQ(...r)),e.toLowerCase=()=>e.check(gQ()),e.toUpperCase=()=>e.check(yQ()),e.slugify=()=>e.check(vQ())}),fY=de("ZodString",(e,t)=>{v_.init(e,t),e3.init(e,t),e.email=n=>e.check(DZ(dY,n)),e.url=n=>e.check($Z(pY,n)),e.jwt=n=>e.check(WZ(IY,n)),e.emoji=n=>e.check(zZ(hY,n)),e.guid=n=>e.check(g2(_2,n)),e.uuid=n=>e.check(PZ(Gh,n)),e.uuidv4=n=>e.check(kZ(Gh,n)),e.uuidv6=n=>e.check(NZ(Gh,n)),e.uuidv7=n=>e.check(LZ(Gh,n)),e.nanoid=n=>e.check(BZ(mY,n)),e.guid=n=>e.check(g2(_2,n)),e.cuid=n=>e.check(UZ(gY,n)),e.cuid2=n=>e.check(jZ(yY,n)),e.ulid=n=>e.check(VZ(vY,n)),e.base64=n=>e.check(QZ(RY,n)),e.base64url=n=>e.check(YZ(CY,n)),e.xid=n=>e.check(HZ(bY,n)),e.ksuid=n=>e.check(qZ(SY,n)),e.ipv4=n=>e.check(FZ(_Y,n)),e.ipv6=n=>e.check(GZ(EY,n)),e.cidrv4=n=>e.check(KZ(xY,n)),e.cidrv6=n=>e.check(ZZ(wY,n)),e.e164=n=>e.check(XZ(AY,n)),e.datetime=n=>e.check(FQ(n)),e.date=n=>e.check(KQ(n)),e.time=n=>e.check(QQ(n)),e.duration=n=>e.check(XQ(n))});function S2(e){return MZ(fY,e)}const fn=de("ZodStringFormat",(e,t)=>{an.init(e,t),e3.init(e,t)}),dY=de("ZodEmail",(e,t)=>{UK.init(e,t),fn.init(e,t)}),_2=de("ZodGUID",(e,t)=>{zK.init(e,t),fn.init(e,t)}),Gh=de("ZodUUID",(e,t)=>{BK.init(e,t),fn.init(e,t)}),pY=de("ZodURL",(e,t)=>{jK.init(e,t),fn.init(e,t)}),hY=de("ZodEmoji",(e,t)=>{VK.init(e,t),fn.init(e,t)}),mY=de("ZodNanoID",(e,t)=>{HK.init(e,t),fn.init(e,t)}),gY=de("ZodCUID",(e,t)=>{qK.init(e,t),fn.init(e,t)}),yY=de("ZodCUID2",(e,t)=>{FK.init(e,t),fn.init(e,t)}),vY=de("ZodULID",(e,t)=>{GK.init(e,t),fn.init(e,t)}),bY=de("ZodXID",(e,t)=>{KK.init(e,t),fn.init(e,t)}),SY=de("ZodKSUID",(e,t)=>{ZK.init(e,t),fn.init(e,t)}),_Y=de("ZodIPv4",(e,t)=>{JK.init(e,t),fn.init(e,t)}),EY=de("ZodIPv6",(e,t)=>{eZ.init(e,t),fn.init(e,t)}),xY=de("ZodCIDRv4",(e,t)=>{tZ.init(e,t),fn.init(e,t)}),wY=de("ZodCIDRv6",(e,t)=>{nZ.init(e,t),fn.init(e,t)}),RY=de("ZodBase64",(e,t)=>{sZ.init(e,t),fn.init(e,t)}),CY=de("ZodBase64URL",(e,t)=>{oZ.init(e,t),fn.init(e,t)}),AY=de("ZodE164",(e,t)=>{iZ.init(e,t),fn.init(e,t)}),IY=de("ZodJWT",(e,t)=>{cZ.init(e,t),fn.init(e,t)}),t3=de("ZodNumber",(e,t)=>{qk.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,i,c)=>CQ(e,r,i),e.gt=(r,i)=>e.check(v2(r,i)),e.gte=(r,i)=>e.check(nb(r,i)),e.min=(r,i)=>e.check(nb(r,i)),e.lt=(r,i)=>e.check(y2(r,i)),e.lte=(r,i)=>e.check(tb(r,i)),e.max=(r,i)=>e.check(tb(r,i)),e.int=r=>e.check(E2(r)),e.safe=r=>e.check(E2(r)),e.positive=r=>e.check(v2(0,r)),e.nonnegative=r=>e.check(nb(0,r)),e.negative=r=>e.check(y2(0,r)),e.nonpositive=r=>e.check(tb(0,r)),e.multipleOf=(r,i)=>e.check(b2(r,i)),e.step=(r,i)=>e.check(b2(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function wMe(e){return sQ(t3,e)}const TY=de("ZodNumberFormat",(e,t)=>{lZ.init(e,t),t3.init(e,t)});function E2(e){return rQ(TY,e)}const OY=de("ZodBoolean",(e,t)=>{uZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>AQ(e,n,r)});function RMe(e){return oQ(OY,e)}const MY=de("ZodUnknown",(e,t)=>{fZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>TQ()});function x2(){return iQ(MY)}const DY=de("ZodNever",(e,t)=>{dZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>IQ(e,n,r)});function PY(e){return aQ(DY,e)}const kY=de("ZodArray",(e,t)=>{pZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>PQ(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(Um(n,r)),e.nonempty=n=>e.check(Um(1,n)),e.max=(n,r)=>e.check(Zk(n,r)),e.length=(n,r)=>e.check(Qk(n,r)),e.unwrap=()=>e.element});function NY(e,t){return bQ(kY,e,t)}const LY=de("ZodObject",(e,t)=>{mZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kQ(e,n,r,i),Ht(e,"shape",()=>t.shape),e.keyof=()=>VY(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:x2()}),e.loose=()=>e.clone({...e._zod.def,catchall:x2()}),e.strict=()=>e.clone({...e._zod.def,catchall:PY()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>NG(e,n),e.safeExtend=n=>LG(e,n),e.merge=n=>$G(e,n),e.pick=n=>PG(e,n),e.omit=n=>kG(e,n),e.partial=(...n)=>zG(n3,e,n[0]),e.required=(...n)=>BG(s3,e,n[0])});function $Y(e,t){const n={type:"object",shape:e??{},...je(t)};return new LY(n)}const zY=de("ZodUnion",(e,t)=>{gZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>NQ(e,n,r,i),e.options=t.options});function BY(e,t){return new zY({type:"union",options:e,...je(t)})}const UY=de("ZodIntersection",(e,t)=>{yZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>LQ(e,n,r,i)});function jY(e,t){return new UY({type:"intersection",left:e,right:t})}const hS=de("ZodEnum",(e,t)=>{vZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,i,c)=>OQ(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const c={};for(const l of r)if(n.has(l))c[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new hS({...t,checks:[],...je(i),entries:c})},e.exclude=(r,i)=>{const c={...t.entries};for(const l of r)if(n.has(l))delete c[l];else throw new Error(`Key ${l} not found in enum`);return new hS({...t,checks:[],...je(i),entries:c})}});function VY(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new hS({type:"enum",entries:n,...je(t)})}const HY=de("ZodTransform",(e,t)=>{bZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>DQ(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Tk(e.constructor.name);n.addIssue=c=>{if(typeof c=="string")n.issues.push(_d(c,n.value,t));else{const l=c;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(_d(l))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(c=>(n.value=c,n)):(n.value=i,n)}});function qY(e){return new HY({type:"transform",transform:e})}const n3=de("ZodOptional",(e,t)=>{Kk.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Jk(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function w2(e){return new n3({type:"optional",innerType:e})}const FY=de("ZodExactOptional",(e,t)=>{SZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Jk(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function GY(e){return new FY({type:"optional",innerType:e})}const KY=de("ZodNullable",(e,t)=>{_Z.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$Q(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function R2(e){return new KY({type:"nullable",innerType:e})}const ZY=de("ZodDefault",(e,t)=>{EZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>BQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function QY(e,t){return new ZY({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Pk(t)}})}const YY=de("ZodPrefault",(e,t)=>{xZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>UQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function XY(e,t){return new YY({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Pk(t)}})}const s3=de("ZodNonOptional",(e,t)=>{wZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function WY(e,t){return new s3({type:"nonoptional",innerType:e,...je(t)})}const JY=de("ZodCatch",(e,t)=>{RZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>jQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eX(e,t){return new JY({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const tX=de("ZodPipe",(e,t)=>{CZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>VQ(e,n,r,i),e.in=t.in,e.out=t.out});function C2(e,t){return new tX({type:"pipe",in:e,out:t})}const nX=de("ZodReadonly",(e,t)=>{AZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>HQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function sX(e){return new nX({type:"readonly",innerType:e})}const rX=de("ZodCustom",(e,t)=>{IZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>MQ(e,n)});function oX(e,t={}){return SQ(rX,e,t)}function iX(e){return _Q(e)}const b_="hive:v1:aws-credentials",aX=$Y({accessKeyId:S2().min(16,"Access Key ID must be at least 16 characters"),secretAccessKey:S2().min(1,"Secret Access Key is required")});let ri;function Nd(){if(ri!==void 0)return ri;try{const e=localStorage.getItem(b_);if(!e)return ri=null,null;const t=JSON.parse(e),n=aX.safeParse(t);return ri=n.success?n.data:null,ri}catch{return ri=null,null}}function CMe(e){try{localStorage.setItem(b_,JSON.stringify(e)),ri=e}catch{ri=e}}function cX(){try{localStorage.removeItem(b_)}catch{}ri=null}const S_=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),__=e=>({httpHandler:e.httpHandler()});var Ed;(function(e){e.HTTP="http",e.HTTPS="https"})(Ed||(Ed={}));var xd;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(xd||(xd={}));const mS="__smithy_context";class Qn{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new Qn({...t,headers:{...t.headers}});return n.query&&(n.query=lX(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return Qn.clone(this)}}function lX(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class $c{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const uX=e=>t=>async n=>{if(!Qn.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let c=r.hostname;r.port!=null&&(c+=`:${r.port}`),r.headers.host=c}return t(n)},fX={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},E_=e=>({applyToStack:t=>{t.add(uX(e),fX)}}),dX=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:p}=f,v=d??t.inputFilterSensitiveLog,g=p??t.outputFilterSensitiveLog,{$metadata:b,..._}=r.output;return l?.info?.({clientName:i,commandName:c,input:v(n.input),output:g(_),metadata:b}),r}catch(r){const{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d}=f,p=d??t.inputFilterSensitiveLog;throw l?.error?.({clientName:i,commandName:c,input:p(n.input),error:r,metadata:r.$metadata}),r}},pX={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},x_=e=>({applyToStack:t=>{t.add(dX(),pX)}}),hX={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},mX=()=>e=>async t=>e(t),w_=e=>({applyToStack:t=>{t.add(mX(),hX)}}),Ro=e=>e[mS]||(e[mS]={}),Is=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},gX=(e,t)=>{if(!t||t.length===0)return e;const n=[];for(const r of t)for(const i of e)i.schemeId.split("#")[1]===r&&n.push(i);for(const r of e)n.find(({schemeId:i})=>i===r.schemeId)||n.push(r);return n};function yX(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const vX=(e,t)=>(n,r)=>async i=>{const c=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),l=e.authSchemePreference?await e.authSchemePreference():[],f=gX(c,l),d=yX(e.httpAuthSchemes),p=Ro(r),v=[];for(const g of f){const b=d.get(g.schemeId);if(!b){v.push(`HttpAuthScheme \`${g.schemeId}\` was not enabled for this service.`);continue}const _=b.identityProvider(await t.identityProviderConfigProvider(e));if(!_){v.push(`HttpAuthScheme \`${g.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:E={},signingProperties:x={}}=g.propertiesExtractor?.(e,r)||{};g.identityProperties=Object.assign(g.identityProperties||{},E),g.signingProperties=Object.assign(g.signingProperties||{},x),p.selectedHttpAuthScheme={httpAuthOption:g,identity:await _(g.identityProperties),signer:b.signer};break}if(!p.selectedHttpAuthScheme)throw new Error(v.join(` +`));return n(i)},bX={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},R_=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(vX(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),bX)}}),SX={name:"serializerMiddleware"},_X=e=>t=>{throw t},EX=(e,t)=>{},xX=e=>(t,n)=>async r=>{if(!Qn.isInstance(r.request))return t(r);const c=Ro(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c,p=await t({...r,request:await d.sign(r.request,f,l)}).catch((d.errorHandler||_X)(l));return(d.successHandler||EX)(p.response,l),p},r3={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},C_=e=>({applyToStack:t=>{t.addRelativeTo(xX(),r3)}}),nu=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},o3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A2=Object.entries(o3).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),wX=o3.split(""),su=6,ad=8,RX=63,Ia=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=su;const f=i/4*3;c>>=l%ad;const d=Math.floor(l/ad);for(let p=0;p>v)}}return new Uint8Array(n)},xo=e=>new TextEncoder().encode(e),wd=e=>typeof e=="string"?xo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),$a=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function di(e){let t;typeof e=="string"?t=xo(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let c=0;c>v]}i+="==".slice(0,4-d)}return i}class Tc extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?Tc.mutate(Ia(t)):Tc.mutate(xo(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,Tc.prototype),t}transformToString(t="utf-8"){return t==="base64"?di(this):$a(this)}}const I2=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),CX=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:l}=t,f=n!==void 0&&r!==void 0&&i!==void 0&&c!==void 0&&l!==void 0,d=f?l(i,e):void 0,p=e.getReader();return new ReadableStream({async pull(v){const{value:g,done:b}=await p.read();if(b){if(v.enqueue(`0\r +`),f){const _=n(await d);v.enqueue(`${c}:${_}\r +`),v.enqueue(`\r +`)}v.close()}else v.enqueue(`${(r(g)||0).toString(16)}\r ${g}\r -`)}})};async function fQ(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done:d,value:h}=await i.read();if(h&&(r.push(h),n+=h?.byteLength??0),n>=t)break;c=d}i.releaseLock();const l=new Uint8Array(Math.min(t,n));let f=0;for(const d of r){if(d.byteLength>l.byteLength-f){l.set(d.subarray(0,l.byteLength-f),f);break}else l.set(d,f);f+=d.length}return l}const tc=e=>encodeURIComponent(e).replace(/[!'()*]/g,dQ),dQ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function hQ(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=tc(n),Array.isArray(r))for(let i=0,c=r.length;i{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const ab={supported:void 0};class zm{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new zm(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),ab.supported===void 0&&(ab.supported=typeof Request<"u"&&"keepalive"in gT("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const i=r??this.config.requestTimeout,c=this.config.keepAlive===!0,l=this.config.credentials;if(n?.aborted){const I=new Error("Request aborted");return I.name="AbortError",Promise.reject(I)}let f=t.path;const d=hQ(t.query||{});d&&(f+=`?${d}`),t.fragment&&(f+=`#${t.fragment}`);let h="";if(t.username!=null||t.password!=null){const I=t.username??"",k=t.password??"";h=`${I}:${k}@`}const{port:b,method:g}=t,v=`${t.protocol}//${h}${t.hostname}${b?`:${b}`:""}${f}`,_=g==="GET"||g==="HEAD"?void 0:t.body,w={body:_,headers:new Headers(t.headers),method:g,credentials:l};this.config?.cache&&(w.cache=this.config.cache),_&&(w.duplex="half"),typeof AbortController<"u"&&(w.signal=n),ab.supported&&(w.keepalive=c),typeof this.config.requestInit=="function"&&Object.assign(w,this.config.requestInit(t));let E=()=>{};const R=gT(v,w),C=[fetch(R).then(I=>{const k=I.headers,T={};for(const j of k.entries())T[j[0]]=j[1];return I.body!=null?{response:new ac({headers:T,reason:I.statusText,statusCode:I.status,body:I.body})}:I.blob().then(j=>({response:new ac({headers:T,reason:I.statusText,statusCode:I.status,body:j})}))}),pQ(i)];return n&&C.push(new Promise((I,k)=>{const T=()=>{const $=new Error("Request aborted");$.name="AbortError",k($)};if(typeof n.addEventListener=="function"){const $=n;$.addEventListener("abort",T,{once:!0}),E=()=>$.removeEventListener("abort",T)}else n.onabort=T})),Promise.race(C).finally(E)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const xS=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):mQ(e):gQ(e);async function mQ(e){const t=await yQ(e),n=cc(t);return new Uint8Array(n)}async function gQ(e){const t=[],n=e.getReader();let r=!1,i=0;for(;!r;){const{done:f,value:d}=await n.read();d&&(t.push(d),i+=d.length),r=f}const c=new Uint8Array(i);let l=0;for(const f of t)c.set(f,l),l+=f.length;return c}function yQ(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(new Error("Reader aborted too early"));const i=r.result??"",c=i.indexOf(","),l=c>-1?c+1:i.length;t(i.substring(l))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}const LD={},Sv={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),LD[e]=t,Sv[t]=e}function zD(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n{if(!bT(e)&&!mT(e)){const i=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${i}`)}let t=!1;const n=async()=>{if(t)throw new Error(yT);return t=!0,await xS(e)},r=i=>{if(typeof i.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async i=>{const c=await n();if(i==="base64")return ea(c);if(i==="hex")return _s(c);if(i===void 0||i==="utf8"||i==="utf-8")return hc(c);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(c);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(yT);if(t=!0,bT(e))return r(e);if(mT(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},bT=e=>typeof Blob=="function"&&e instanceof Blob;async function bQ(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const Ki=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return ec.mutate(e);if(!e)return ec.mutate(new Uint8Array);const n=t.streamCollector(e);return ec.mutate(await n)};function em(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const wp=e=>typeof e=="function"?e():e,$D=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),vQ=e=>(t,n)=>async r=>{const{response:i}=await t(r),{operationSchema:c}=qo(n),[,l,f,d,h,b]=c??[];try{const g=await e.protocol.deserializeResponse($D(l,f,d,h,b),{...e,...n},i);return{response:i,output:g}}catch(g){if(Object.defineProperty(g,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in g)){const v="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{g.message+=` - `+v}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(v):n.logger?.warn?.(v)}typeof g.$responseBodyText<"u"&&g.$response&&(g.$response.body=g.$responseBodyText);try{if(ac.isInstance(i)){const{headers:_={}}=i,w=Object.entries(_);g.$metadata={httpStatusCode:i.statusCode,requestId:cb(/^x-[\w-]+-request-?id$/,w),extendedRequestId:cb(/^x-[\w-]+-id-2$/,w),cfId:cb(/^x-[\w-]+-cf-id$/,w)}}}catch{}}throw g}},cb=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],SQ=e=>(t,n)=>async r=>{const{operationSchema:i}=qo(n),[,c,l,f,d,h]=i??[],b=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,g=await e.protocol.serializeRequest($D(c,l,f,d,h),r.input,{...e,...n,endpoint:b});return t({...r,request:g})},_Q={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},wQ={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function UD(e){return{applyToStack:t=>{t.add(SQ(e),wQ),t.add(vQ(e),_Q),e.protocol.setSerdeContext(e)}}}function yl(e){if(typeof e=="object")return e;e=e|0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return t}const vT={it:Symbol.for("@smithy/nor-struct-it")};class At{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=At.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;const r=[];let i=t,c=t;for(this._isMemberSchema=!1;lb(i);)r.push(i[1]),i=i[0],c=wp(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let l=r.length-1;l>=0;--l){const f=r[l];Object.assign(this.memberTraits,yl(f))}}else this.memberTraits=0;if(c instanceof At){const l=this.memberTraits;Object.assign(this,c),this.memberTraits=Object.assign({},l,c.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??c.memberName;return}if(this.schema=wp(c),EQ(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(c),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){const n=wp(t);if(n instanceof At)return n;if(lb(n)){const[r,i]=n;if(r instanceof At)return Object.assign(r.getMergedTraits(),yl(i)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new At(n)}getSchema(){const t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){const{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!="object")return!1;const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return yl(this.memberTraits)}getOwnTraits(){return yl(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema(),i=t?15:r[4]??0;return uf([i,0],"key")}getValueSchema(){const t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],c=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(c!=null)return uf([c,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const r=n[4].indexOf(t),i=n[5][r];return uf(lb(i)?i:[i,0],t)}if(this.isDocumentSchema())return uf([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,r]of this.structIterator())t[n]=r}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),n=t[4].length;let r=t[vT.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,EQ=e=>Array.isArray(e)&&e.length>=5;class ts{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,r=new Map){this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return ts.registries.has(t)||ts.registries.set(t,new ts(t)),ts.registries.get(t)}copyFrom(t){const{schemas:n,exceptions:r}=this;for(const[i,c]of t.schemas)n.has(i)||n.set(i,c);for(const[i,c]of t.exceptions)r.has(i)||r.set(i,c)}register(t,n){const r=this.normalizeShapeId(t);for(const i of[this,ts.for(r.split("#")[0])])i.schemas.set(r,n)}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){const r=t,i=r[1];for(const c of[this,ts.for(i)])c.schemas.set(i+"#"+r[2],r),c.exceptions.set(r,n)}getErrorCtor(t){const n=t;return this.exceptions.has(n)?this.exceptions.get(n):ts.for(n[1]).exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys())if(Array.isArray(t)){const[,n,r]=t,i=n+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}const xQ=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&DQ.warn(MQ(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},RQ=Math.ceil(2**127*(2-2**-23)),ST=e=>{const t=xQ(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>RQ)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},CQ=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},_T=e=>jD(e,16),wT=e=>jD(e,8),jD=(e,t)=>{const n=CQ(e);if(n!==void 0&&AQ(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},AQ=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},TQ=e=>ST(typeof e=="string"?RS(e):e),IQ=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,RS=e=>{const t=e.match(IQ);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},_v=e=>_T(typeof e=="string"?RS(e):e),OQ=e=>wT(typeof e=="string"?RS(e):e),MQ=e=>String(new TypeError(e).stack||e).split(` +`)}})};async function AX(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done:d,value:p}=await i.read();if(p&&(r.push(p),n+=p?.byteLength??0),n>=t)break;c=d}i.releaseLock();const l=new Uint8Array(Math.min(t,n));let f=0;for(const d of r){if(d.byteLength>l.byteLength-f){l.set(d.subarray(0,l.byteLength-f),f);break}else l.set(d,f);f+=d.length}return l}const Oc=e=>encodeURIComponent(e).replace(/[!'()*]/g,IX),IX=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function TX(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=Oc(n),Array.isArray(r))for(let i=0,c=r.length;i{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const sb={supported:void 0};class Ld{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new Ld(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),sb.supported===void 0&&(sb.supported=typeof Request<"u"&&"keepalive"in T2("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const i=r??this.config.requestTimeout,c=this.config.keepAlive===!0,l=this.config.credentials;if(n?.aborted){const T=new Error("Request aborted");return T.name="AbortError",Promise.reject(T)}let f=t.path;const d=TX(t.query||{});d&&(f+=`?${d}`),t.fragment&&(f+=`#${t.fragment}`);let p="";if(t.username!=null||t.password!=null){const T=t.username??"",P=t.password??"";p=`${T}:${P}@`}const{port:v,method:g}=t,b=`${t.protocol}//${p}${t.hostname}${v?`:${v}`:""}${f}`,_=g==="GET"||g==="HEAD"?void 0:t.body,E={body:_,headers:new Headers(t.headers),method:g,credentials:l};this.config?.cache&&(E.cache=this.config.cache),_&&(E.duplex="half"),typeof AbortController<"u"&&(E.signal=n),sb.supported&&(E.keepalive=c),typeof this.config.requestInit=="function"&&Object.assign(E,this.config.requestInit(t));let x=()=>{};const R=T2(b,E),C=[fetch(R).then(T=>{const P=T.headers,I={};for(const j of P.entries())I[j[0]]=j[1];return T.body!=null?{response:new $c({headers:I,reason:T.statusText,statusCode:T.status,body:T.body})}:T.blob().then(j=>({response:new $c({headers:I,reason:T.statusText,statusCode:T.status,body:j})}))}),OX(i)];return n&&C.push(new Promise((T,P)=>{const I=()=>{const B=new Error("Request aborted");B.name="AbortError",P(B)};if(typeof n.addEventListener=="function"){const B=n;B.addEventListener("abort",I,{once:!0}),x=()=>B.removeEventListener("abort",I)}else n.onabort=I})),Promise.race(C).finally(x)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const wg=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):MX(e):DX(e);async function MX(e){const t=await PX(e),n=Ia(t);return new Uint8Array(n)}async function DX(e){const t=[],n=e.getReader();let r=!1,i=0;for(;!r;){const{done:f,value:d}=await n.read();d&&(t.push(d),i+=d.length),r=f}const c=new Uint8Array(i);let l=0;for(const f of t)c.set(f,l),l+=f.length;return c}function PX(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(new Error("Reader aborted too early"));const i=r.result??"",c=i.indexOf(","),l=c>-1?c+1:i.length;t(i.substring(l))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}const i3={},gS={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),i3[e]=t,gS[t]=e}function a3(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n{if(!M2(e)&&!I2(e)){const i=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${i}`)}let t=!1;const n=async()=>{if(t)throw new Error(O2);return t=!0,await wg(e)},r=i=>{if(typeof i.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async i=>{const c=await n();if(i==="base64")return di(c);if(i==="hex")return Vs(c);if(i===void 0||i==="utf8"||i==="utf-8")return $a(c);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(c);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(O2);if(t=!0,M2(e))return r(e);if(I2(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},M2=e=>typeof Blob=="function"&&e instanceof Blob;async function kX(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const Sa=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Tc.mutate(e);if(!e)return Tc.mutate(new Uint8Array);const n=t.streamCollector(e);return Tc.mutate(await n)};function Vm(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const lm=e=>typeof e=="function"?e():e,l3=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),NX=e=>(t,n)=>async r=>{const{response:i}=await t(r),{operationSchema:c}=Ro(n),[,l,f,d,p,v]=c??[];try{const g=await e.protocol.deserializeResponse(l3(l,f,d,p,v),{...e,...n},i);return{response:i,output:g}}catch(g){if(Object.defineProperty(g,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in g)){const b="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{g.message+=` + `+b}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(b):n.logger?.warn?.(b)}typeof g.$responseBodyText<"u"&&g.$response&&(g.$response.body=g.$responseBodyText);try{if($c.isInstance(i)){const{headers:_={}}=i,E=Object.entries(_);g.$metadata={httpStatusCode:i.statusCode,requestId:rb(/^x-[\w-]+-request-?id$/,E),extendedRequestId:rb(/^x-[\w-]+-id-2$/,E),cfId:rb(/^x-[\w-]+-cf-id$/,E)}}}catch{}}throw g}},rb=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],LX=e=>(t,n)=>async r=>{const{operationSchema:i}=Ro(n),[,c,l,f,d,p]=i??[],v=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,g=await e.protocol.serializeRequest(l3(c,l,f,d,p),r.input,{...e,...n,endpoint:v});return t({...r,request:g})},$X={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},zX={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function A_(e){return{applyToStack:t=>{t.add(LX(e),zX),t.add(NX(e),$X),e.protocol.setSerdeContext(e)}}}function Yl(e){if(typeof e=="object")return e;e=e|0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return t}const D2={it:Symbol.for("@smithy/nor-struct-it")};class zt{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=zt.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;const r=[];let i=t,c=t;for(this._isMemberSchema=!1;ob(i);)r.push(i[1]),i=i[0],c=lm(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let l=r.length-1;l>=0;--l){const f=r[l];Object.assign(this.memberTraits,Yl(f))}}else this.memberTraits=0;if(c instanceof zt){const l=this.memberTraits;Object.assign(this,c),this.memberTraits=Object.assign({},l,c.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??c.memberName;return}if(this.schema=lm(c),BX(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(c),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){const n=lm(t);if(n instanceof zt)return n;if(ob(n)){const[r,i]=n;if(r instanceof zt)return Object.assign(r.getMergedTraits(),Yl(i)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new zt(n)}getSchema(){const t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){const{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!="object")return!1;const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Yl(this.memberTraits)}getOwnTraits(){return Yl(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema(),i=t?15:r[4]??0;return Qf([i,0],"key")}getValueSchema(){const t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],c=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(c!=null)return Qf([c,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const r=n[4].indexOf(t),i=n[5][r];return Qf(ob(i)?i:[i,0],t)}if(this.isDocumentSchema())return Qf([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,r]of this.structIterator())t[n]=r}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),n=t[4].length;let r=t[D2.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,BX=e=>Array.isArray(e)&&e.length>=5;class Gn{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,r=new Map){this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return Gn.registries.has(t)||Gn.registries.set(t,new Gn(t)),Gn.registries.get(t)}copyFrom(t){const{schemas:n,exceptions:r}=this;for(const[i,c]of t.schemas)n.has(i)||n.set(i,c);for(const[i,c]of t.exceptions)r.has(i)||r.set(i,c)}register(t,n){const r=this.normalizeShapeId(t);for(const i of[this,Gn.for(r.split("#")[0])])i.schemas.set(r,n)}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){const r=t,i=r[1];for(const c of[this,Gn.for(i)])c.schemas.set(i+"#"+r[2],r),c.exceptions.set(r,n)}getErrorCtor(t){const n=t;return this.exceptions.has(n)?this.exceptions.get(n):Gn.for(n[1]).exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys())if(Array.isArray(t)){const[,n,r]=t,i=n+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}const UX=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&ZX.warn(KX(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},jX=Math.ceil(2**127*(2-2**-23)),P2=e=>{const t=UX(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>jX)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},VX=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},k2=e=>u3(e,16),N2=e=>u3(e,8),u3=(e,t)=>{const n=VX(e);if(n!==void 0&&HX(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},HX=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},qX=e=>P2(typeof e=="string"?I_(e):e),FX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,I_=e=>{const t=e.match(FX);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},yS=e=>k2(typeof e=="string"?I_(e):e),GX=e=>N2(typeof e=="string"?I_(e):e),KX=e=>String(new TypeError(e).stack||e).split(` `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` -`),DQ={warn:console.warn},kQ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],CS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tm(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),c=e.getUTCHours(),l=e.getUTCMinutes(),f=e.getUTCSeconds(),d=i<10?`0${i}`:`${i}`,h=c<10?`0${c}`:`${c}`,b=l<10?`0${l}`:`${l}`,g=f<10?`0${f}`:`${f}`;return`${kQ[r]}, ${d} ${CS[n]} ${t} ${h}:${b}:${g} GMT`}const PQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),NQ=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),LQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),GRe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=PQ.exec(e);if(t){const[n,r,i,c,l,f,d,h]=t;return ub(_v(nm(c)),fb(i),Rl(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:h})}if(t=NQ.exec(e),t){const[n,r,i,c,l,f,d,h]=t;return $Q(ub(zQ(c),fb(i),Rl(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:h}))}if(t=LQ.exec(e),t){const[n,r,i,c,l,f,d,h]=t;return ub(_v(nm(h)),fb(r),Rl(i.trimLeft(),"day",1,31),{hours:c,minutes:l,seconds:f,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},ub=(e,t,n,r)=>{const i=t-1;return jQ(e,i,n),new Date(Date.UTC(e,i,n,Rl(r.hours,"hour",0,23),Rl(r.minutes,"minute",0,59),Rl(r.seconds,"seconds",0,60),VQ(r.fractionalMilliseconds)))},zQ=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+_v(nm(e));return ne.getTime()-new Date().getTime()>BQ?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,fb=e=>{const t=CS.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},UQ=[31,28,31,30,31,30,31,31,30,31,30,31],jQ=(e,t,n)=>{let r=UQ[t];if(t===1&&HQ(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${CS[t]} in ${e}: ${n}`)},HQ=e=>e%4===0&&(e%100!==0||e%400===0),Rl=(e,t,n,r)=>{const i=OQ(nm(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},VQ=e=>e==null?0:TQ("0."+e)*1e3,nm=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),Bm=()=>{if(ET)return ET();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Yn[e[0]]+Yn[e[1]]+Yn[e[2]]+Yn[e[3]]+"-"+Yn[e[4]]+Yn[e[5]]+"-"+Yn[e[6]]+Yn[e[7]]+"-"+Yn[e[8]]+Yn[e[9]]+"-"+Yn[e[10]]+Yn[e[11]]+Yn[e[12]]+Yn[e[13]]+Yn[e[14]]+Yn[e[15]]},Qi=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Qi.from=e=>e&&typeof e=="object"&&(e instanceof Qi||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Qi(String(e)):Qi(JSON.stringify(e));Qi.fromObject=Qi.from;function qQ(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const AS="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",TS="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",IS="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",HD="(\\d?\\d)",VD="(\\d{4})",FQ=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),GQ=new RegExp(`^${AS}, ${HD} ${TS} ${VD} ${IS} GMT$`),ZQ=new RegExp(`^${AS}, ${HD}-${TS}-(\\d\\d) ${IS} GMT$`),KQ=new RegExp(`^${AS} ${TS} ( [1-9]|\\d\\d) ${IS} ${VD}$`),QQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],YQ=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},XQ=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=FQ.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,n,r,i,c,l,f,,d,h]=t;No(r,1,12),No(i,1,31),No(c,0,23),No(l,0,59),No(f,0,60);const b=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(c),Number(l),Number(f),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(b.setUTCFullYear(Number(n)),h.toUpperCase()!="Z"){const[,g,v,_]=/([+-])(\d\d):(\d\d)/.exec(h)||[void 0,"+",0,0],w=g==="-"?1:-1;b.setTime(b.getTime()+w*(Number(v)*60*60*1e3+Number(_)*60*1e3))}return b},WQ=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,c,l,f,d;if((d=GQ.exec(e))?[,t,n,r,i,c,l,f]=d:(d=ZQ.exec(e))?([,t,n,r,i,c,l,f]=d,r=(Number(r)+1900).toString()):(d=KQ.exec(e))&&([,n,t,i,c,l,f,r]=d),r&&l){const h=Date.UTC(Number(r),QQ.indexOf(n),Number(t),Number(i),Number(c),Number(l),f?Math.round(parseFloat(`0.${f}`)*1e3):0);No(t,1,31),No(i,0,23),No(c,0,59),No(l,0,60);const b=new Date(h);return b.setUTCFullYear(Number(r)),b}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function No(e,t,n){const r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}function JQ(e,t,n){if(!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");const r=e.split(t),i=[];let c="";for(let l=0;l{const t=e.length,n=[];let r=!1,i,c=0;for(let l=0;l{l=l.trim();const f=l.length;return f<2?l:(l[0]==='"'&&l[f-1]==='"'&&(l=l.slice(1,f-1)),l.replace(/\\"/g,'"'))})},xT=/^-?\d*(\.\d+)?$/;class Jf{string;type;constructor(t,n){if(this.string=t,this.type=n,!xT.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const n=t;return Jf.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&xT.test(n.string)}}const eY="modulepreload",tY=function(e){return"/"+e},RT={},Rt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");i=d(n.map(h=>{if(h=tY(h),h in RT)return;RT[h]=!0;const b=h.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":eY,b||(v.as="script"),v.crossOrigin="",v.href=h,f&&v.setAttribute("nonce",f),document.head.appendChild(v),b)return new Promise((_,w)=>{v.addEventListener("load",_),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return i.then(l=>{for(const f of l||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};class $m{serdeContext;setSerdeContext(t){this.serdeContext=t}}class FD extends $m{options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=ts.for(t.defaultNamespace);for(const n of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(n)}getRequestType(){return kn}getResponseType(){return ac}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol,t.hostname=n.url.hostname,t.port=n.url.port?Number(n.url.port):void 0,t.path=n.url.pathname,t.fragment=n.url.hash||void 0,t.username=n.url.username||void 0,t.password=n.url.password||void 0,t.query||(t.query={});for(const[r,i]of n.url.searchParams.entries())t.query[r]=i;return t}else return t.protocol=n.protocol,t.hostname=n.hostname,t.port=n.port?Number(n.port):void 0,t.path=n.path,t.query={...n.query},t}setHostPrefix(t,n,r){if(this.serdeContext?.disableHostPrefix)return;const i=At.of(n.input),c=yl(n.traits??{});if(c.endpoint){let l=c.endpoint?.[0];if(typeof l=="string"){const f=[...i.structIterator()].filter(([,d])=>d.getMergedTraits().hostLabel);for(const[d]of f){const h=r[d];if(typeof h!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);l=l.replace(`{${d}}`,h)}t.hostname=l+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await Rt(async()=>{const{EventStreamSerde:n}=await import("./index2.js");return{EventStreamSerde:n}},[]);return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,r,i,c){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class nY extends FD{async serializeRequest(t,n,r){const i={...n??{}},c=this.serializer,l={},f={},d=await r.endpoint(),h=At.of(t?.input),b=[],g=[];let v=!1,_;const w=new kn({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:l,headers:f,body:void 0});if(d){this.updateServiceEndpoint(w,d),this.setHostPrefix(w,t,i);const E=yl(t.traits);if(E.http){w.method=E.http[0];const[R,C]=E.http[1].split("?");w.path=="/"?w.path=R:w.path+=R;const I=new URLSearchParams(C??"");Object.assign(l,Object.fromEntries(I))}}for(const[E,R]of h.structIterator()){const C=R.getMergedTraits()??{},I=i[E];if(I==null&&!R.isIdempotencyToken()){if(C.httpLabel&&(w.path.includes(`{${E}+}`)||w.path.includes(`{${E}}`)))throw new Error(`No value provided for input HTTP label: ${E}.`);continue}if(C.httpPayload)R.isStreaming()?R.isStructSchema()?i[E]&&(_=await this.serializeEventStream({eventStream:i[E],requestSchema:h})):_=I:(c.write(R,I),_=c.flush()),delete i[E];else if(C.httpLabel){c.write(R,I);const k=c.flush();w.path.includes(`{${E}+}`)?w.path=w.path.replace(`{${E}+}`,k.split("/").map(em).join("/")):w.path.includes(`{${E}}`)&&(w.path=w.path.replace(`{${E}}`,em(k))),delete i[E]}else if(C.httpHeader)c.write(R,I),f[C.httpHeader.toLowerCase()]=String(c.flush()),delete i[E];else if(typeof C.httpPrefixHeaders=="string"){for(const[k,T]of Object.entries(I)){const $=C.httpPrefixHeaders+k;c.write([R.getValueSchema(),{httpHeader:$}],T),f[$.toLowerCase()]=c.flush()}delete i[E]}else C.httpQuery||C.httpQueryParams?(this.serializeQuery(R,I,l),delete i[E]):(v=!0,b.push(E),g.push(R))}if(v&&i){const[E,R]=(h.getName(!0)??"#Unknown").split("#"),C=h.getSchema()[6],I=[3,E,R,h.getMergedTraits(),b,g,void 0];C?I[6]=C:I.pop(),c.write(I,i),_=c.flush()}return w.headers=f,w.query=l,w.body=_,w}serializeQuery(t,n,r){const i=this.serializer,c=t.getMergedTraits();if(c.httpQueryParams){for(const[l,f]of Object.entries(n))if(!(l in r)){const d=t.getValueSchema();Object.assign(d.getMergedTraits(),{...c,httpQuery:l,httpQueryParams:void 0}),this.serializeQuery(d,f,r)}return}if(t.isListSchema()){const l=!!t.getMergedTraits().sparse,f=[];for(const d of n){i.write([t.getValueSchema(),c],d);const h=i.flush();(l||h!==void 0)&&f.push(h)}r[c.httpQuery]=f}else i.write([t,c],n),r[c.httpQuery]=i.flush()}async deserializeResponse(t,n,r){const i=this.deserializer,c=At.of(t.output),l={};if(r.statusCode>=300){const d=await Ki(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const d in r.headers){const h=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=h}const f=await this.deserializeHttpMessage(c,n,r,l);if(f.length){const d=await Ki(r.body,n);if(d.byteLength>0){const h=await i.read(c,d);for(const b of f)h[b]!=null&&(l[b]=h[b])}}else f.discardResponseBody&&await Ki(r.body,n);return l.$metadata=this.deserializeMetadata(r),l}async deserializeHttpMessage(t,n,r,i,c){let l;i instanceof Set?l=c:l=i;let f=!0;const d=this.deserializer,h=At.of(t),b=[];for(const[g,v]of h.structIterator()){const _=v.getMemberTraits();if(_.httpPayload){if(f=!1,v.isStreaming())v.isStructSchema()?l[g]=await this.deserializeEventStream({response:r,responseSchema:h}):l[g]=BD(r.body);else if(r.body){const E=await Ki(r.body,n);E.byteLength>0&&(l[g]=await d.read(v,E))}}else if(_.httpHeader){const w=String(_.httpHeader).toLowerCase(),E=r.headers[w];if(E!=null)if(v.isListSchema()){const R=v.getValueSchema();R.getMergedTraits().httpHeader=w;let C;R.isTimestampSchema()&&R.getSchema()===4?C=JQ(E,",",2):C=qD(E);const I=[];for(const k of C)I.push(await d.read(R,k.trim()));l[g]=I}else l[g]=await d.read(v,E)}else if(_.httpPrefixHeaders!==void 0){l[g]={};for(const[w,E]of Object.entries(r.headers))if(w.startsWith(_.httpPrefixHeaders)){const R=v.getValueSchema();R.getMergedTraits().httpHeader=w,l[g][w.slice(_.httpPrefixHeaders.length)]=await d.read(R,E)}}else _.httpResponseCode?l[g]=r.statusCode:b.push(g)}return b.discardResponseBody=f,b}}class sY extends FD{async serializeRequest(t,n,r){const i=this.serializer,c={},l={},f=await r.endpoint(),d=At.of(t?.input),h=d.getSchema();let b;const g=new kn({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:c,headers:l,body:void 0});f&&(this.updateServiceEndpoint(g,f),this.setHostPrefix(g,t,n));const v={...n};if(n){const _=d.getEventStreamMember();if(_){if(v[_]){const w={};for(const[E,R]of d.structIterator())E!==_&&v[E]&&(i.write(R,v[E]),w[E]=i.flush());b=await this.serializeEventStream({eventStream:v[_],requestSchema:d,initialRequest:w})}}else i.write(h,v),b=i.flush()}return g.headers=l,g.query=c,g.body=b,g.method="POST",g}async deserializeResponse(t,n,r){const i=this.deserializer,c=At.of(t.output),l={};if(r.statusCode>=300){const d=await Ki(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const d in r.headers){const h=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=h}const f=c.getEventStreamMember();if(f)l[f]=await this.deserializeEventStream({response:r,responseSchema:c,initialResponseContainer:l});else{const d=await Ki(r.body,n);d.byteLength>0&&Object.assign(l,await i.read(c,d))}return l.$metadata=this.deserializeMetadata(r),l}}function Um(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:c}=e.getMergedTraits();return(t.httpBindings?typeof r=="string"||i?6:c||n?5:void 0:void 0)??t.timestampFormat.default}class GD extends $m{settings;constructor(t){super(),this.settings=t}read(t,n){const r=At.of(t);if(r.isListSchema())return qD(n).map(i=>this.read(r.getValueSchema(),i));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??cc)(n);if(r.isTimestampSchema())switch(Um(r,this.settings)){case 5:return XQ(n);case 6:return WQ(n);case 7:return YQ(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isStringSchema()){const i=r.getMergedTraits().mediaType;let c=n;if(i)return r.getMergedTraits().httpHeader&&(c=this.base64ToUtf8(c)),(i==="application/json"||i.endsWith("+json"))&&(c=Qi.from(c)),c}return r.isNumericSchema()?Number(n):r.isBigIntegerSchema()?BigInt(n):r.isBigDecimalSchema()?new Jf(n,"bigDecimal"):r.isBooleanSchema()?String(n).toLowerCase()==="true":n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??hc)((this.serdeContext?.base64Decoder??cc)(t))}}class rY extends $m{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new GD(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,n){const r=At.of(t),i=r.getMergedTraits(),c=this.serdeContext?.utf8Encoder??hc;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(r,c(n));if(i.httpPayload){if(r.isBlobSchema()){const l=this.serdeContext?.utf8Decoder??jo;return typeof n=="string"?l(n):n}else if(r.isStringSchema())return"byteLength"in n?c(n):n}return this.codecDeserializer.read(r,n)}}class oY extends $m{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,n){const r=At.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(n instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${r.getName(!0)}`);switch(Um(r,this.settings)){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=tm(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n),this.stringBuffer=String(n.getTime()/1e3)}return}if(r.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??ea)(n);return}if(r.isListSchema()&&Array.isArray(n)){let l="";for(const f of n){this.write([r.getValueSchema(),r.getMergedTraits()],f);const d=this.flush(),h=r.getValueSchema().isTimestampSchema()?d:qQ(d);l!==""&&(l+=", "),l+=h}this.stringBuffer=l;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const i=r.getMergedTraits().mediaType;let c=n;if(i&&((i==="application/json"||i.endsWith("+json"))&&(c=Qi.from(c)),r.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??ea)(c.toString());return}this.stringBuffer=n;break;default:r.isIdempotencyToken()?this.stringBuffer=Bm():this.stringBuffer=String(n)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class iY{codecSerializer;stringSerializer;buffer;constructor(t,n,r=new oY(n)){this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,n){const r=At.of(t),i=r.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(r,n),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,n)}flush(){if(this.buffer!==void 0){const t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}function aY(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}class ZD{authSchemes=new Map;constructor(t){for(const[n,r]of Object.entries(t))r!==void 0&&this.authSchemes.set(n,r)}getIdentityProvider(t){return this.authSchemes.get(t)}}const cY=e=>function(n){return KD(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,fY=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let i,c,l,f=!1;const d=async h=>{c||(c=r(h));try{i=await c,l=!0,f=!1}finally{c=void 0}return i};return t===void 0?async h=>((!l||h?.forceRefresh)&&(i=await d(h)),i):async h=>((!l||h?.forceRefresh)&&(i=await d(h)),f?i:n(i)?(t(i)&&await d(h),i):(f=!0,i))},dY=void 0;function hY(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function QD(e){const t=El(e.userAgentAppId??dY),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const r=await t();if(!hY(r)){const i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?i?.warn("userAgentAppId must be a string or undefined."):r.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}class YD{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50,n&&(this.parameters=n)}get(t,n){const r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const i=this.data.keys();let c=0;for(;;){const{value:l,done:f}=i.next();if(this.data.delete(l),f||++c>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){let n="";const{parameters:r}=this;if(r.length===0)return!1;for(const i of r){const c=String(t[i]??"");if(c.includes("|;"))return!1;n+=c+"|;"}return n}}const pY=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),XD=e=>pY.test(e)||e.startsWith("[")&&e.endsWith("]"),mY=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),jm=(e,t=!1)=>{if(!t)return mY.test(e);const n=e.split(".");for(const r of n)if(!jm(r))return!1;return!0},Uf={},jf="endpoints";function ta(e){return typeof e!="object"||e==null?e:"ref"in e?`$${ta(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(ta).join(", ")})`:JSON.stringify(e,null,2)}class Zs extends Error{constructor(t){super(t),this.name="EndpointError"}}const gY=(e,t)=>e===t,yY=e=>{const t=e.split("."),n=[];for(const r of t){const i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new Zs(`Path: '${e}' does not end with ']'`);const c=r.slice(i+1,-1);if(Number.isNaN(parseInt(c)))throw new Zs(`Invalid array index: '${c}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(c)}else n.push(r)}return n},WD=(e,t)=>yY(t).reduce((n,r)=>{if(typeof n!="object")throw new Zs(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),bY=e=>e!=null,vY=e=>!e,db={[zf.HTTP]:80,[zf.HTTPS]:443},SY=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:v,port:_,protocol:w="",path:E="",query:R={}}=e,C=new URL(`${w}//${v}${_?`:${_}`:""}${E}`);return C.search=Object.entries(R).map(([I,k])=>`${I}=${k}`).join("&"),C}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:i,pathname:c,protocol:l,search:f}=t;if(f)return null;const d=l.slice(0,-1);if(!Object.values(zf).includes(d))return null;const h=XD(i),b=n.includes(`${r}:${db[d]}`)||typeof e=="string"&&e.includes(`${r}:${db[d]}`),g=`${r}${b?`:${db[d]}`:""}`;return{scheme:d,authority:g,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:h}},_Y=(e,t)=>e===t,wY=(e,t,n,r)=>t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),xY={booleanEquals:gY,getAttr:WD,isSet:bY,isValidHostLabel:jm,not:vY,parseURL:SY,stringEquals:_Y,substring:wY,uriEncode:EY},JD=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Hm=(e,t,n)=>{if(typeof e=="string")return JD(e,n);if(e.fn)return tk.callFunction(e,n);if(e.ref)return RY(e,n);throw new Zs(`'${t}': ${String(e)} is not a string, function or reference.`)},ek=({fn:e,argv:t},n)=>{const r=t.map(c=>["boolean","number"].includes(typeof c)?c:tk.evaluateExpression(c,"arg",n)),i=e.split(".");return i[0]in Uf&&i[1]!=null?Uf[i[0]][i[1]](...r):xY[e](...r)},tk={evaluateExpression:Hm,callFunction:ek},CY=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new Zs(`'${e}' is already defined in Reference Record.`);const r=ek(t,n);return n.logger?.debug?.(`${jf} evaluateCondition: ${ta(t)} = ${ta(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},OS=(e=[],t)=>{const n={};for(const r of e){const{result:i,toAssign:c}=CY(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!i)return{result:i};c&&(n[c.name]=c.value,t.logger?.debug?.(`${jf} assign: ${c.name} := ${ta(c.value)}`))}return{result:!0,referenceRecord:n}},AY=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:i.map(c=>{const l=Hm(c,"Header value entry",t);if(typeof l!="string")throw new Zs(`Header '${r}' value '${l}' is not a string`);return l})}),{}),nk=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:rk.getEndpointProperty(i,t)}),{}),sk=(e,t)=>{if(Array.isArray(e))return e.map(n=>sk(n,t));switch(typeof e){case"string":return JD(e,t);case"object":if(e===null)throw new Zs(`Unexpected endpoint property: ${e}`);return rk.getEndpointProperties(e,t);case"boolean":return e;default:throw new Zs(`Unexpected endpoint property type: ${typeof e}`)}},rk={getEndpointProperty:sk,getEndpointProperties:nk},TY=(e,t)=>{const n=Hm(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new Zs(`Endpoint URL must be a string, got ${typeof n}`)},IY=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:i,referenceRecord:c}=OS(n,t);if(!i)return;const l={...t,referenceRecord:{...t.referenceRecord,...c}},{url:f,properties:d,headers:h}=r;return t.logger?.debug?.(`${jf} Resolving endpoint from template: ${ta(r)}`),{...h!=null&&{headers:AY(h,l)},...d!=null&&{properties:nk(d,l)},url:TY(f,l)}},OY=(e,t)=>{const{conditions:n,error:r}=e,{result:i,referenceRecord:c}=OS(n,t);if(i)throw new Zs(Hm(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))},ok=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=IY(n,t);if(r)return r}else if(n.type==="error")OY(n,t);else if(n.type==="tree"){const r=ik.evaluateTreeRule(n,t);if(r)return r}else throw new Zs(`Unknown endpoint rule: ${n}`);throw new Zs("Rules evaluation failed")},MY=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:c}=OS(n,t);if(i)return ik.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...c}})},ik={evaluateRules:ok,evaluateTreeRule:MY},ak=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:i,rules:c}=e;t.logger?.debug?.(`${jf} Initial EndpointParams: ${ta(n)}`);const l=Object.entries(i).filter(([,h])=>h.default!=null).map(([h,b])=>[h,b.default]);if(l.length>0)for(const[h,b]of l)n[h]=n[h]??b;const f=Object.entries(i).filter(([,h])=>h.required).map(([h])=>h);for(const h of f)if(n[h]==null)throw new Zs(`Missing required parameter: '${h}'`);const d=ok(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${jf} Resolved endpoint: ${ta(d)}`),d},ck=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!ck(n))return!1;return!0}return!(!jm(e)||e.length<3||e.length>63||e!==e.toLowerCase()||XD(e))},CT=":",DY="/",kY=e=>{const t=e.split(CT);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(CT)==="")return null;const d=f.map(h=>h.split(DY)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},PY=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],NY={partitions:PY};let LY=NY;const zY=e=>{const{partitions:t}=LY;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},MS={isVirtualHostableS3Bucket:ck,parseArn:kY,partition:zY};Uf.aws=MS;function BY(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}const Hf=e=>{if(typeof e=="string")return Hf(new URL(e));const{hostname:t,pathname:n,port:r,protocol:i,search:c}=e;let l;return c&&(l=BY(c)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:l}};function $Y(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function Pr(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const AT=e=>ac.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,DS=e=>new Date(Date.now()+e),UY=(e,t)=>Math.abs(DS(t).getTime()-e)>=3e5,TT=(e,t)=>{const n=Date.parse(e);return UY(n,t)?n-Date.now():t},Ef=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},lk=async e=>{const t=Ef("context",e.context),n=Ef("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],c=await Ef("signer",n.signer)(r),l=e?.signingRegion,f=e?.signingRegionSet,d=e?.signingName;return{config:n,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}};class kS{async sign(t,n,r){if(!kn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await lk(r),{config:c,signer:l}=i;let{signingRegion:f,signingName:d}=i;const h=r.context;if(h?.authSchemes?.length??!1){const[g,v]=h.authSchemes;g?.name==="sigv4a"&&v?.name==="sigv4"&&(f=v?.signingRegion??f,d=v?.signingName??d)}return await l.sign(t,{signingDate:DS(c.systemClockOffset),signingRegion:f,signingService:d})}errorHandler(t){return n=>{const r=n.ServerTime??AT(n.$response);if(r){const i=Ef("config",t.config),c=i.systemClockOffset;i.systemClockOffset=TT(r,i.systemClockOffset),i.systemClockOffset!==c&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=AT(t);if(r){const i=Ef("config",n.config);i.systemClockOffset=TT(r,i.systemClockOffset)}}}class jY extends kS{async sign(t,n,r){if(!kn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}=await lk(r),b=(await i.sigv4aSigningRegionSet?.()??f??[l]).join(",");return await c.sign(t,{signingDate:DS(i.systemClockOffset),signingRegion:b,signingService:d})}}const HY=(e,t,n)=>{let r,i,c,l=!1;const f=async()=>{i||(i=e());try{r=await i,c=!0,l=!1}finally{i=void 0}return r};return async d=>((!c||d?.forceRefresh)&&(r=await f()),r)},VY=e=>(e.sigv4aSigningRegionSet=El(e.sigv4aSigningRegionSet),e),qY="X-Amz-Algorithm",FY="X-Amz-Credential",uk="X-Amz-Date",GY="X-Amz-SignedHeaders",ZY="X-Amz-Expires",fk="X-Amz-Signature",dk="X-Amz-Security-Token",hk="authorization",pk=uk.toLowerCase(),KY="date",QY=[hk,pk,KY],YY=fk.toLowerCase(),wv="x-amz-content-sha256",XY=dk.toLowerCase(),WY={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},JY=/^proxy-/,eX=/^sec-/,hb="AWS4-HMAC-SHA256",tX="AWS4-HMAC-SHA256-PAYLOAD",nX="UNSIGNED-PAYLOAD",sX=50,mk="aws4_request",rX=3600*24*7,cp={},pb=[],mb=(e,t,n)=>`${e}/${t}/${n}/${mk}`,oX=async(e,t,n,r,i)=>{const c=await IT(e,t.secretAccessKey,t.accessKeyId),l=`${n}:${r}:${i}:${_s(c)}:${t.sessionToken}`;if(l in cp)return cp[l];for(pb.push(l);pb.length>sX;)delete cp[pb.shift()];let f=`AWS4${t.secretAccessKey}`;for(const d of[n,r,i,mk])f=await IT(e,f,d);return cp[l]=f},IT=(e,t,n)=>{const r=new e(t);return r.update($f(n)),r.digest()},OT=({headers:e},t,n)=>{const r={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const c=i.toLowerCase();(c in WY||t?.has(c)||JY.test(c)||eX.test(c))&&(!n||n&&!n.has(c))||(r[c]=e[i].trim().replace(/\s+/g," "))}return r},iX=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",gb=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===wv)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||iX(t)){const r=new n;return r.update($f(t)),_s(await r.digest())}return nX};class aX{format(t){const n=[];for(const c of Object.keys(t)){const l=jo(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=jo(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const h=new Uint8Array(d.buffer);return h.set(f,3),h;case"timestamp":const b=new Uint8Array(9);return b[0]=8,b.set(lX.fromNumber(t.value.valueOf()).bytes,1),b;case"uuid":if(!cX.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(zD(t.value.replace(/\-/g,"")),1),g}}}var MT;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(MT||(MT={}));const cX=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let lX=class gk{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&DT(n),new gk(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&DT(t),parseInt(_s(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function DT(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const uX=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},fX=(e,t={})=>{const{headers:n,query:r={}}=kn.clone(e);for(const i of Object.keys(n)){const c=i.toLowerCase();(c.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(c)||t.hoistableHeaders?.has(c))&&(r[i]=n[i],delete n[i])}return{...e,headers:n,query:r}},kT=e=>{e=kn.clone(e);for(const t of Object.keys(e.headers))QY.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},dX=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===YY)continue;const i=tc(r);t.push(i);const c=e[r];typeof c=="string"?n[i]=`${i}=${tc(c)}`:Array.isArray(c)&&(n[i]=c.slice(0).reduce((l,f)=>l.concat([`${i}=${tc(f)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},hX=e=>pX(e).toISOString().replace(/\.\d{3}Z$/,"Z"),pX=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class mX{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){this.service=i,this.sha256=c,this.uriEscapePath=l,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Fs(r),this.credentialProvider=Fs(n)}createCanonicalRequest(t,n,r){const i=Object.keys(n).sort();return`${t.method} +`),ZX={warn:console.warn},QX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],T_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Hm(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),c=e.getUTCHours(),l=e.getUTCMinutes(),f=e.getUTCSeconds(),d=i<10?`0${i}`:`${i}`,p=c<10?`0${c}`:`${c}`,v=l<10?`0${l}`:`${l}`,g=f<10?`0${f}`:`${f}`;return`${QX[r]}, ${d} ${T_[n]} ${t} ${p}:${v}:${g} GMT`}const YX=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),XX=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),WX=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),AMe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=YX.exec(e);if(t){const[n,r,i,c,l,f,d,p]=t;return ib(yS(qm(c)),ab(i),ru(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:p})}if(t=XX.exec(e),t){const[n,r,i,c,l,f,d,p]=t;return tW(ib(JX(c),ab(i),ru(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:p}))}if(t=WX.exec(e),t){const[n,r,i,c,l,f,d,p]=t;return ib(yS(qm(p)),ab(r),ru(i.trimLeft(),"day",1,31),{hours:c,minutes:l,seconds:f,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},ib=(e,t,n,r)=>{const i=t-1;return sW(e,i,n),new Date(Date.UTC(e,i,n,ru(r.hours,"hour",0,23),ru(r.minutes,"minute",0,59),ru(r.seconds,"seconds",0,60),oW(r.fractionalMilliseconds)))},JX=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+yS(qm(e));return ne.getTime()-new Date().getTime()>eW?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,ab=e=>{const t=T_.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},nW=[31,28,31,30,31,30,31,31,30,31,30,31],sW=(e,t,n)=>{let r=nW[t];if(t===1&&rW(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${T_[t]} in ${e}: ${n}`)},rW=e=>e%4===0&&(e%100!==0||e%400===0),ru=(e,t,n,r)=>{const i=GX(qm(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},oW=e=>e==null?0:qX("0."+e)*1e3,qm=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),Rg=()=>{if(L2)return L2();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,hs[e[0]]+hs[e[1]]+hs[e[2]]+hs[e[3]]+"-"+hs[e[4]]+hs[e[5]]+"-"+hs[e[6]]+hs[e[7]]+"-"+hs[e[8]]+hs[e[9]]+"-"+hs[e[10]]+hs[e[11]]+hs[e[12]]+hs[e[13]]+hs[e[14]]+hs[e[15]]},_a=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};_a.from=e=>e&&typeof e=="object"&&(e instanceof _a||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?_a(String(e)):_a(JSON.stringify(e));_a.fromObject=_a.from;function iW(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const O_="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",M_="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",D_="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",f3="(\\d?\\d)",d3="(\\d{4})",aW=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),cW=new RegExp(`^${O_}, ${f3} ${M_} ${d3} ${D_} GMT$`),lW=new RegExp(`^${O_}, ${f3}-${M_}-(\\d\\d) ${D_} GMT$`),uW=new RegExp(`^${O_} ${M_} ( [1-9]|\\d\\d) ${D_} ${d3}$`),fW=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dW=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},pW=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=aW.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,n,r,i,c,l,f,,d,p]=t;ii(r,1,12),ii(i,1,31),ii(c,0,23),ii(l,0,59),ii(f,0,60);const v=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(c),Number(l),Number(f),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(v.setUTCFullYear(Number(n)),p.toUpperCase()!="Z"){const[,g,b,_]=/([+-])(\d\d):(\d\d)/.exec(p)||[void 0,"+",0,0],E=g==="-"?1:-1;v.setTime(v.getTime()+E*(Number(b)*60*60*1e3+Number(_)*60*1e3))}return v},hW=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,c,l,f,d;if((d=cW.exec(e))?[,t,n,r,i,c,l,f]=d:(d=lW.exec(e))?([,t,n,r,i,c,l,f]=d,r=(Number(r)+1900).toString()):(d=uW.exec(e))&&([,n,t,i,c,l,f,r]=d),r&&l){const p=Date.UTC(Number(r),fW.indexOf(n),Number(t),Number(i),Number(c),Number(l),f?Math.round(parseFloat(`0.${f}`)*1e3):0);ii(t,1,31),ii(i,0,23),ii(c,0,59),ii(l,0,60);const v=new Date(p);return v.setUTCFullYear(Number(r)),v}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function ii(e,t,n){const r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}function mW(e,t,n){if(!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");const r=e.split(t),i=[];let c="";for(let l=0;l{const t=e.length,n=[];let r=!1,i,c=0;for(let l=0;l{l=l.trim();const f=l.length;return f<2?l:(l[0]==='"'&&l[f-1]==='"'&&(l=l.slice(1,f-1)),l.replace(/\\"/g,'"'))})},$2=/^-?\d*(\.\d+)?$/;class $d{string;type;constructor(t,n){if(this.string=t,this.type=n,!$2.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const n=t;return $d.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&$2.test(n.string)}}const gW="modulepreload",yW=function(e){return"/"+e},z2={},pt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");i=d(n.map(p=>{if(p=yW(p),p in z2)return;z2[p]=!0;const v=p.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":gW,v||(b.as="script"),b.crossOrigin="",b.href=p,f&&b.setAttribute("nonce",f),document.head.appendChild(b),v)return new Promise((_,E)=>{b.addEventListener("load",_),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return i.then(l=>{for(const f of l||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};class Cg{serdeContext;setSerdeContext(t){this.serdeContext=t}}class h3 extends Cg{options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=Gn.for(t.defaultNamespace);for(const n of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(n)}getRequestType(){return Qn}getResponseType(){return $c}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol,t.hostname=n.url.hostname,t.port=n.url.port?Number(n.url.port):void 0,t.path=n.url.pathname,t.fragment=n.url.hash||void 0,t.username=n.url.username||void 0,t.password=n.url.password||void 0,t.query||(t.query={});for(const[r,i]of n.url.searchParams.entries())t.query[r]=i;return t}else return t.protocol=n.protocol,t.hostname=n.hostname,t.port=n.port?Number(n.port):void 0,t.path=n.path,t.query={...n.query},t}setHostPrefix(t,n,r){if(this.serdeContext?.disableHostPrefix)return;const i=zt.of(n.input),c=Yl(n.traits??{});if(c.endpoint){let l=c.endpoint?.[0];if(typeof l=="string"){const f=[...i.structIterator()].filter(([,d])=>d.getMergedTraits().hostLabel);for(const[d]of f){const p=r[d];if(typeof p!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);l=l.replace(`{${d}}`,p)}t.hostname=l+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await pt(async()=>{const{EventStreamSerde:n}=await import("./index2.js");return{EventStreamSerde:n}},[]);return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,r,i,c){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class vW extends h3{async serializeRequest(t,n,r){const i={...n??{}},c=this.serializer,l={},f={},d=await r.endpoint(),p=zt.of(t?.input),v=[],g=[];let b=!1,_;const E=new Qn({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:l,headers:f,body:void 0});if(d){this.updateServiceEndpoint(E,d),this.setHostPrefix(E,t,i);const x=Yl(t.traits);if(x.http){E.method=x.http[0];const[R,C]=x.http[1].split("?");E.path=="/"?E.path=R:E.path+=R;const T=new URLSearchParams(C??"");Object.assign(l,Object.fromEntries(T))}}for(const[x,R]of p.structIterator()){const C=R.getMergedTraits()??{},T=i[x];if(T==null&&!R.isIdempotencyToken()){if(C.httpLabel&&(E.path.includes(`{${x}+}`)||E.path.includes(`{${x}}`)))throw new Error(`No value provided for input HTTP label: ${x}.`);continue}if(C.httpPayload)R.isStreaming()?R.isStructSchema()?i[x]&&(_=await this.serializeEventStream({eventStream:i[x],requestSchema:p})):_=T:(c.write(R,T),_=c.flush()),delete i[x];else if(C.httpLabel){c.write(R,T);const P=c.flush();E.path.includes(`{${x}+}`)?E.path=E.path.replace(`{${x}+}`,P.split("/").map(Vm).join("/")):E.path.includes(`{${x}}`)&&(E.path=E.path.replace(`{${x}}`,Vm(P))),delete i[x]}else if(C.httpHeader)c.write(R,T),f[C.httpHeader.toLowerCase()]=String(c.flush()),delete i[x];else if(typeof C.httpPrefixHeaders=="string"){for(const[P,I]of Object.entries(T)){const B=C.httpPrefixHeaders+P;c.write([R.getValueSchema(),{httpHeader:B}],I),f[B.toLowerCase()]=c.flush()}delete i[x]}else C.httpQuery||C.httpQueryParams?(this.serializeQuery(R,T,l),delete i[x]):(b=!0,v.push(x),g.push(R))}if(b&&i){const[x,R]=(p.getName(!0)??"#Unknown").split("#"),C=p.getSchema()[6],T=[3,x,R,p.getMergedTraits(),v,g,void 0];C?T[6]=C:T.pop(),c.write(T,i),_=c.flush()}return E.headers=f,E.query=l,E.body=_,E}serializeQuery(t,n,r){const i=this.serializer,c=t.getMergedTraits();if(c.httpQueryParams){for(const[l,f]of Object.entries(n))if(!(l in r)){const d=t.getValueSchema();Object.assign(d.getMergedTraits(),{...c,httpQuery:l,httpQueryParams:void 0}),this.serializeQuery(d,f,r)}return}if(t.isListSchema()){const l=!!t.getMergedTraits().sparse,f=[];for(const d of n){i.write([t.getValueSchema(),c],d);const p=i.flush();(l||p!==void 0)&&f.push(p)}r[c.httpQuery]=f}else i.write([t,c],n),r[c.httpQuery]=i.flush()}async deserializeResponse(t,n,r){const i=this.deserializer,c=zt.of(t.output),l={};if(r.statusCode>=300){const d=await Sa(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const d in r.headers){const p=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=p}const f=await this.deserializeHttpMessage(c,n,r,l);if(f.length){const d=await Sa(r.body,n);if(d.byteLength>0){const p=await i.read(c,d);for(const v of f)p[v]!=null&&(l[v]=p[v])}}else f.discardResponseBody&&await Sa(r.body,n);return l.$metadata=this.deserializeMetadata(r),l}async deserializeHttpMessage(t,n,r,i,c){let l;i instanceof Set?l=c:l=i;let f=!0;const d=this.deserializer,p=zt.of(t),v=[];for(const[g,b]of p.structIterator()){const _=b.getMemberTraits();if(_.httpPayload){if(f=!1,b.isStreaming())b.isStructSchema()?l[g]=await this.deserializeEventStream({response:r,responseSchema:p}):l[g]=c3(r.body);else if(r.body){const x=await Sa(r.body,n);x.byteLength>0&&(l[g]=await d.read(b,x))}}else if(_.httpHeader){const E=String(_.httpHeader).toLowerCase(),x=r.headers[E];if(x!=null)if(b.isListSchema()){const R=b.getValueSchema();R.getMergedTraits().httpHeader=E;let C;R.isTimestampSchema()&&R.getSchema()===4?C=mW(x,",",2):C=p3(x);const T=[];for(const P of C)T.push(await d.read(R,P.trim()));l[g]=T}else l[g]=await d.read(b,x)}else if(_.httpPrefixHeaders!==void 0){l[g]={};for(const[E,x]of Object.entries(r.headers))if(E.startsWith(_.httpPrefixHeaders)){const R=b.getValueSchema();R.getMergedTraits().httpHeader=E,l[g][E.slice(_.httpPrefixHeaders.length)]=await d.read(R,x)}}else _.httpResponseCode?l[g]=r.statusCode:v.push(g)}return v.discardResponseBody=f,v}}class bW extends h3{async serializeRequest(t,n,r){const i=this.serializer,c={},l={},f=await r.endpoint(),d=zt.of(t?.input),p=d.getSchema();let v;const g=new Qn({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:c,headers:l,body:void 0});f&&(this.updateServiceEndpoint(g,f),this.setHostPrefix(g,t,n));const b={...n};if(n){const _=d.getEventStreamMember();if(_){if(b[_]){const E={};for(const[x,R]of d.structIterator())x!==_&&b[x]&&(i.write(R,b[x]),E[x]=i.flush());v=await this.serializeEventStream({eventStream:b[_],requestSchema:d,initialRequest:E})}}else i.write(p,b),v=i.flush()}return g.headers=l,g.query=c,g.body=v,g.method="POST",g}async deserializeResponse(t,n,r){const i=this.deserializer,c=zt.of(t.output),l={};if(r.statusCode>=300){const d=await Sa(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const d in r.headers){const p=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=p}const f=c.getEventStreamMember();if(f)l[f]=await this.deserializeEventStream({response:r,responseSchema:c,initialResponseContainer:l});else{const d=await Sa(r.body,n);d.byteLength>0&&Object.assign(l,await i.read(c,d))}return l.$metadata=this.deserializeMetadata(r),l}}function Ag(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:c}=e.getMergedTraits();return(t.httpBindings?typeof r=="string"||i?6:c||n?5:void 0:void 0)??t.timestampFormat.default}class m3 extends Cg{settings;constructor(t){super(),this.settings=t}read(t,n){const r=zt.of(t);if(r.isListSchema())return p3(n).map(i=>this.read(r.getValueSchema(),i));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??Ia)(n);if(r.isTimestampSchema())switch(Ag(r,this.settings)){case 5:return pW(n);case 6:return hW(n);case 7:return dW(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isStringSchema()){const i=r.getMergedTraits().mediaType;let c=n;if(i)return r.getMergedTraits().httpHeader&&(c=this.base64ToUtf8(c)),(i==="application/json"||i.endsWith("+json"))&&(c=_a.from(c)),c}return r.isNumericSchema()?Number(n):r.isBigIntegerSchema()?BigInt(n):r.isBigDecimalSchema()?new $d(n,"bigDecimal"):r.isBooleanSchema()?String(n).toLowerCase()==="true":n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??$a)((this.serdeContext?.base64Decoder??Ia)(t))}}class SW extends Cg{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new m3(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,n){const r=zt.of(t),i=r.getMergedTraits(),c=this.serdeContext?.utf8Encoder??$a;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(r,c(n));if(i.httpPayload){if(r.isBlobSchema()){const l=this.serdeContext?.utf8Decoder??xo;return typeof n=="string"?l(n):n}else if(r.isStringSchema())return"byteLength"in n?c(n):n}return this.codecDeserializer.read(r,n)}}class _W extends Cg{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,n){const r=zt.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(n instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${r.getName(!0)}`);switch(Ag(r,this.settings)){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Hm(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n),this.stringBuffer=String(n.getTime()/1e3)}return}if(r.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??di)(n);return}if(r.isListSchema()&&Array.isArray(n)){let l="";for(const f of n){this.write([r.getValueSchema(),r.getMergedTraits()],f);const d=this.flush(),p=r.getValueSchema().isTimestampSchema()?d:iW(d);l!==""&&(l+=", "),l+=p}this.stringBuffer=l;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const i=r.getMergedTraits().mediaType;let c=n;if(i&&((i==="application/json"||i.endsWith("+json"))&&(c=_a.from(c)),r.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??di)(c.toString());return}this.stringBuffer=n;break;default:r.isIdempotencyToken()?this.stringBuffer=Rg():this.stringBuffer=String(n)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class EW{codecSerializer;stringSerializer;buffer;constructor(t,n,r=new _W(n)){this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,n){const r=zt.of(t),i=r.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(r,n),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,n)}flush(){if(this.buffer!==void 0){const t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}function xW(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}class P_{authSchemes=new Map;constructor(t){for(const[n,r]of Object.entries(t))r!==void 0&&this.authSchemes.set(n,r)}getIdentityProvider(t){return this.authSchemes.get(t)}}const wW=e=>function(n){return g3(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,AW=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let i,c,l,f=!1;const d=async p=>{c||(c=r(p));try{i=await c,l=!0,f=!1}finally{c=void 0}return i};return t===void 0?async p=>((!l||p?.forceRefresh)&&(i=await d(p)),i):async p=>((!l||p?.forceRefresh)&&(i=await d(p)),f?i:n(i)?(t(i)&&await d(p),i):(f=!0,i))},IW=void 0;function TW(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function k_(e){const t=nu(e.userAgentAppId??IW),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const r=await t();if(!TW(r)){const i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?i?.warn("userAgentAppId must be a string or undefined."):r.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}class N_{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50,n&&(this.parameters=n)}get(t,n){const r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const i=this.data.keys();let c=0;for(;;){const{value:l,done:f}=i.next();if(this.data.delete(l),f||++c>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){let n="";const{parameters:r}=this;if(r.length===0)return!1;for(const i of r){const c=String(t[i]??"");if(c.includes("|;"))return!1;n+=c+"|;"}return n}}const OW=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),y3=e=>OW.test(e)||e.startsWith("[")&&e.endsWith("]"),MW=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Ig=(e,t=!1)=>{if(!t)return MW.test(e);const n=e.split(".");for(const r of n)if(!Ig(r))return!1;return!0},pu={},Rd="endpoints";function Ta(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Ta(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Ta).join(", ")})`:JSON.stringify(e,null,2)}class lr extends Error{constructor(t){super(t),this.name="EndpointError"}}const DW=(e,t)=>e===t,PW=e=>{const t=e.split("."),n=[];for(const r of t){const i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new lr(`Path: '${e}' does not end with ']'`);const c=r.slice(i+1,-1);if(Number.isNaN(parseInt(c)))throw new lr(`Invalid array index: '${c}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(c)}else n.push(r)}return n},v3=(e,t)=>PW(t).reduce((n,r)=>{if(typeof n!="object")throw new lr(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),kW=e=>e!=null,NW=e=>!e,cb={[Ed.HTTP]:80,[Ed.HTTPS]:443},LW=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:b,port:_,protocol:E="",path:x="",query:R={}}=e,C=new URL(`${E}//${b}${_?`:${_}`:""}${x}`);return C.search=Object.entries(R).map(([T,P])=>`${T}=${P}`).join("&"),C}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:i,pathname:c,protocol:l,search:f}=t;if(f)return null;const d=l.slice(0,-1);if(!Object.values(Ed).includes(d))return null;const p=y3(i),v=n.includes(`${r}:${cb[d]}`)||typeof e=="string"&&e.includes(`${r}:${cb[d]}`),g=`${r}${v?`:${cb[d]}`:""}`;return{scheme:d,authority:g,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:p}},$W=(e,t)=>e===t,zW=(e,t,n,r)=>t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),UW={booleanEquals:DW,getAttr:v3,isSet:kW,isValidHostLabel:Ig,not:NW,parseURL:LW,stringEquals:$W,substring:zW,uriEncode:BW},b3=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Tg=(e,t,n)=>{if(typeof e=="string")return b3(e,n);if(e.fn)return _3.callFunction(e,n);if(e.ref)return jW(e,n);throw new lr(`'${t}': ${String(e)} is not a string, function or reference.`)},S3=({fn:e,argv:t},n)=>{const r=t.map(c=>["boolean","number"].includes(typeof c)?c:_3.evaluateExpression(c,"arg",n)),i=e.split(".");return i[0]in pu&&i[1]!=null?pu[i[0]][i[1]](...r):UW[e](...r)},_3={evaluateExpression:Tg,callFunction:S3},VW=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new lr(`'${e}' is already defined in Reference Record.`);const r=S3(t,n);return n.logger?.debug?.(`${Rd} evaluateCondition: ${Ta(t)} = ${Ta(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},L_=(e=[],t)=>{const n={};for(const r of e){const{result:i,toAssign:c}=VW(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!i)return{result:i};c&&(n[c.name]=c.value,t.logger?.debug?.(`${Rd} assign: ${c.name} := ${Ta(c.value)}`))}return{result:!0,referenceRecord:n}},HW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:i.map(c=>{const l=Tg(c,"Header value entry",t);if(typeof l!="string")throw new lr(`Header '${r}' value '${l}' is not a string`);return l})}),{}),E3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:w3.getEndpointProperty(i,t)}),{}),x3=(e,t)=>{if(Array.isArray(e))return e.map(n=>x3(n,t));switch(typeof e){case"string":return b3(e,t);case"object":if(e===null)throw new lr(`Unexpected endpoint property: ${e}`);return w3.getEndpointProperties(e,t);case"boolean":return e;default:throw new lr(`Unexpected endpoint property type: ${typeof e}`)}},w3={getEndpointProperty:x3,getEndpointProperties:E3},qW=(e,t)=>{const n=Tg(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new lr(`Endpoint URL must be a string, got ${typeof n}`)},FW=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:i,referenceRecord:c}=L_(n,t);if(!i)return;const l={...t,referenceRecord:{...t.referenceRecord,...c}},{url:f,properties:d,headers:p}=r;return t.logger?.debug?.(`${Rd} Resolving endpoint from template: ${Ta(r)}`),{...p!=null&&{headers:HW(p,l)},...d!=null&&{properties:E3(d,l)},url:qW(f,l)}},GW=(e,t)=>{const{conditions:n,error:r}=e,{result:i,referenceRecord:c}=L_(n,t);if(i)throw new lr(Tg(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))},R3=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=FW(n,t);if(r)return r}else if(n.type==="error")GW(n,t);else if(n.type==="tree"){const r=C3.evaluateTreeRule(n,t);if(r)return r}else throw new lr(`Unknown endpoint rule: ${n}`);throw new lr("Rules evaluation failed")},KW=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:c}=L_(n,t);if(i)return C3.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...c}})},C3={evaluateRules:R3,evaluateTreeRule:KW},$_=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:i,rules:c}=e;t.logger?.debug?.(`${Rd} Initial EndpointParams: ${Ta(n)}`);const l=Object.entries(i).filter(([,p])=>p.default!=null).map(([p,v])=>[p,v.default]);if(l.length>0)for(const[p,v]of l)n[p]=n[p]??v;const f=Object.entries(i).filter(([,p])=>p.required).map(([p])=>p);for(const p of f)if(n[p]==null)throw new lr(`Missing required parameter: '${p}'`);const d=R3(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${Rd} Resolved endpoint: ${Ta(d)}`),d},A3=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!A3(n))return!1;return!0}return!(!Ig(e)||e.length<3||e.length>63||e!==e.toLowerCase()||y3(e))},B2=":",ZW="/",QW=e=>{const t=e.split(B2);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(B2)==="")return null;const d=f.map(p=>p.split(ZW)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},YW=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],XW={partitions:YW};let WW=XW;const JW=e=>{const{partitions:t}=WW;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},Og={isVirtualHostableS3Bucket:A3,parseArn:QW,partition:JW};pu.aws=Og;function eJ(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}const hu=e=>{if(typeof e=="string")return hu(new URL(e));const{hostname:t,pathname:n,port:r,protocol:i,search:c}=e;let l;return c&&(l=eJ(c)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:l}};function tJ(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function eo(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const U2=e=>$c.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,z_=e=>new Date(Date.now()+e),nJ=(e,t)=>Math.abs(z_(t).getTime()-e)>=3e5,j2=(e,t)=>{const n=Date.parse(e);return nJ(n,t)?n-Date.now():t},cd=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},I3=async e=>{const t=cd("context",e.context),n=cd("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],c=await cd("signer",n.signer)(r),l=e?.signingRegion,f=e?.signingRegionSet,d=e?.signingName;return{config:n,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}};class Mg{async sign(t,n,r){if(!Qn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await I3(r),{config:c,signer:l}=i;let{signingRegion:f,signingName:d}=i;const p=r.context;if(p?.authSchemes?.length??!1){const[g,b]=p.authSchemes;g?.name==="sigv4a"&&b?.name==="sigv4"&&(f=b?.signingRegion??f,d=b?.signingName??d)}return await l.sign(t,{signingDate:z_(c.systemClockOffset),signingRegion:f,signingService:d})}errorHandler(t){return n=>{const r=n.ServerTime??U2(n.$response);if(r){const i=cd("config",t.config),c=i.systemClockOffset;i.systemClockOffset=j2(r,i.systemClockOffset),i.systemClockOffset!==c&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=U2(t);if(r){const i=cd("config",n.config);i.systemClockOffset=j2(r,i.systemClockOffset)}}}class sJ extends Mg{async sign(t,n,r){if(!Qn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}=await I3(r),v=(await i.sigv4aSigningRegionSet?.()??f??[l]).join(",");return await c.sign(t,{signingDate:z_(i.systemClockOffset),signingRegion:v,signingService:d})}}const rJ=(e,t,n)=>{let r,i,c,l=!1;const f=async()=>{i||(i=e());try{r=await i,c=!0,l=!1}finally{i=void 0}return r};return async d=>((!c||d?.forceRefresh)&&(r=await f()),r)},oJ=e=>(e.sigv4aSigningRegionSet=nu(e.sigv4aSigningRegionSet),e),iJ="X-Amz-Algorithm",aJ="X-Amz-Credential",T3="X-Amz-Date",cJ="X-Amz-SignedHeaders",lJ="X-Amz-Expires",O3="X-Amz-Signature",M3="X-Amz-Security-Token",D3="authorization",P3=T3.toLowerCase(),uJ="date",fJ=[D3,P3,uJ],dJ=O3.toLowerCase(),vS="x-amz-content-sha256",pJ=M3.toLowerCase(),hJ={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},mJ=/^proxy-/,gJ=/^sec-/,lb="AWS4-HMAC-SHA256",yJ="AWS4-HMAC-SHA256-PAYLOAD",vJ="UNSIGNED-PAYLOAD",bJ=50,k3="aws4_request",SJ=3600*24*7,Kh={},ub=[],fb=(e,t,n)=>`${e}/${t}/${n}/${k3}`,_J=async(e,t,n,r,i)=>{const c=await V2(e,t.secretAccessKey,t.accessKeyId),l=`${n}:${r}:${i}:${Vs(c)}:${t.sessionToken}`;if(l in Kh)return Kh[l];for(ub.push(l);ub.length>bJ;)delete Kh[ub.shift()];let f=`AWS4${t.secretAccessKey}`;for(const d of[n,r,i,k3])f=await V2(e,f,d);return Kh[l]=f},V2=(e,t,n)=>{const r=new e(t);return r.update(wd(n)),r.digest()},H2=({headers:e},t,n)=>{const r={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const c=i.toLowerCase();(c in hJ||t?.has(c)||mJ.test(c)||gJ.test(c))&&(!n||n&&!n.has(c))||(r[c]=e[i].trim().replace(/\s+/g," "))}return r},EJ=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",db=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===vS)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||EJ(t)){const r=new n;return r.update(wd(t)),Vs(await r.digest())}return vJ};class xJ{format(t){const n=[];for(const c of Object.keys(t)){const l=xo(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=xo(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const p=new Uint8Array(d.buffer);return p.set(f,3),p;case"timestamp":const v=new Uint8Array(9);return v[0]=8,v.set(RJ.fromNumber(t.value.valueOf()).bytes,1),v;case"uuid":if(!wJ.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(a3(t.value.replace(/\-/g,"")),1),g}}}var q2;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(q2||(q2={}));const wJ=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let RJ=class N3{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&F2(n),new N3(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&F2(t),parseInt(Vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function F2(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const CJ=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},AJ=(e,t={})=>{const{headers:n,query:r={}}=Qn.clone(e);for(const i of Object.keys(n)){const c=i.toLowerCase();(c.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(c)||t.hoistableHeaders?.has(c))&&(r[i]=n[i],delete n[i])}return{...e,headers:n,query:r}},G2=e=>{e=Qn.clone(e);for(const t of Object.keys(e.headers))fJ.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},IJ=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===dJ)continue;const i=Oc(r);t.push(i);const c=e[r];typeof c=="string"?n[i]=`${i}=${Oc(c)}`:Array.isArray(c)&&(n[i]=c.slice(0).reduce((l,f)=>l.concat([`${i}=${Oc(f)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},TJ=e=>OJ(e).toISOString().replace(/\.\d{3}Z$/,"Z"),OJ=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class MJ{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){this.service=i,this.sha256=c,this.uriEscapePath=l,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Is(r),this.credentialProvider=Is(n)}createCanonicalRequest(t,n,r){const i=Object.keys(n).sort();return`${t.method} ${this.getCanonicalPath(t)} -${dX(t)} +${IJ(t)} ${i.map(c=>`${c}:${n[c]}`).join(` `)} ${i.join(";")} -${r}`}async createStringToSign(t,n,r,i){const c=new this.sha256;c.update($f(r));const l=await c.digest();return`${i} +${r}`}async createStringToSign(t,n,r,i){const c=new this.sha256;c.update(wd(r));const l=await c.digest();return`${i} ${t} ${n} -${_s(l)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const c of t.split("/"))c?.length!==0&&c!=="."&&(c===".."?n.pop():n.push(c));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return tc(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=hX(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class Ev extends mX{headerFormatter=new aX;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){super({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:c,unhoistableHeaders:l,signableHeaders:f,hoistableHeaders:d,signingRegion:h,signingService:b}=n,g=await this.credentialProvider();this.validateResolvedCredentials(g);const v=h??await this.regionProvider(),{longDate:_,shortDate:w}=this.formatDate(r);if(i>rX)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const E=mb(w,v,b??this.service),R=fX(kT(t),{unhoistableHeaders:l,hoistableHeaders:d});g.sessionToken&&(R.query[dk]=g.sessionToken),R.query[qY]=hb,R.query[FY]=`${g.accessKeyId}/${E}`,R.query[uk]=_,R.query[ZY]=i.toString(10);const C=OT(R,c,f);return R.query[GY]=this.getCanonicalHeaderList(C),R.query[fk]=await this.getSignature(_,E,this.getSigningKey(g,v,w,b),this.createCanonicalRequest(R,C,await gb(t,this.sha256))),R}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:c,signingService:l}){const f=c??await this.regionProvider(),{shortDate:d,longDate:h}=this.formatDate(r),b=mb(d,f,l??this.service),g=await gb({headers:{},body:n},this.sha256),v=new this.sha256;v.update(t);const _=_s(await v.digest()),w=[tX,h,b,i,_,g].join(` -`);return this.signString(w,{signingDate:r,signingRegion:f,signingService:l})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:i,priorSignature:t.priorSignature}).then(l=>({message:t.message,signature:l}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=r??await this.regionProvider(),{shortDate:f}=this.formatDate(n),d=new this.sha256(await this.getSigningKey(c,l,f,i));return d.update($f(t)),_s(await d.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:c,signingService:l}={}){const f=await this.credentialProvider();this.validateResolvedCredentials(f);const d=c??await this.regionProvider(),h=kT(t),{longDate:b,shortDate:g}=this.formatDate(n),v=mb(g,d,l??this.service);h.headers[pk]=b,f.sessionToken&&(h.headers[XY]=f.sessionToken);const _=await gb(h,this.sha256);!uX(wv,h.headers)&&this.applyChecksum&&(h.headers[wv]=_);const w=OT(h,i,r),E=await this.getSignature(b,v,this.getSigningKey(f,d,g,l),this.createCanonicalRequest(h,w,_));return h.headers[hk]=`${hb} Credential=${f.accessKeyId}/${v}, SignedHeaders=${this.getCanonicalHeaderList(w)}, Signature=${E}`,h}async getSignature(t,n,r,i){const c=await this.createStringToSign(t,n,i,hb),l=new this.sha256(await r);return l.update($f(c)),_s(await l.digest())}getSigningKey(t,n,r,i){return oX(this.sha256,t,r,n,i||this.service)}}const yk=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(h){h&&h!==t&&h!==r&&(n=!0),t=h;const b=gX(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),g=yX(e,b);if(n&&!g.attributed){const v=typeof t=="object"&&t!==null;r=async _=>{const E=await g(_);return v&&(!E.$source||Object.keys(E.$source).length===0)?$Y(E,"CREDENTIALS_CODE","e"):E},r.memoized=g.memoized,r.configBound=g.configBound,r.attributed=!0}else r=g},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:i=!0,systemClockOffset:c=e.systemClockOffset||0,sha256:l}=e;let f;return e.signer?f=El(e.signer):e.regionInfoProvider?f=()=>El(e.region)().then(async h=>[await e.regionInfoProvider(h,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},h]).then(([h,b])=>{const{signingRegion:g,signingService:v}=h;e.signingRegion=e.signingRegion||g||b,e.signingName=e.signingName||v||e.serviceId;const _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},w=e.signerConstructor||Ev;return new w(_)}):f=async h=>{h=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await El(e.region)(),properties:{}},h);const b=h.signingRegion,g=h.signingName;e.signingRegion=e.signingRegion||b,e.signingName=e.signingName||g||e.serviceId;const v={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},_=e.signerConstructor||Ev;return new _(v)},Object.assign(e,{systemClockOffset:c,signingEscapePath:i,signer:f})};function gX(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t?.memoized?r=t:r=fY(t,uY,KD):n?r=El(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function yX(e,t){if(t.configBound)return t;const n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}const PT=typeof TextEncoder=="function"?new TextEncoder:null,bk=e=>{if(typeof e=="string"){if(PT)return PT.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},Fa=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},$i=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,sm=()=>{let e=[],t=[],n=!1;const r=new Set,i=g=>g.sort((v,_)=>NT[_.step]-NT[v.step]||LT[_.priority||"normal"]-LT[v.priority||"normal"]),c=g=>{let v=!1;const _=w=>{const E=Fa(w.name,w.aliases);if(E.includes(g)){v=!0;for(const R of E)r.delete(R);return!1}return!0};return e=e.filter(_),t=t.filter(_),v},l=g=>{let v=!1;const _=w=>{if(w.middleware===g){v=!0;for(const E of Fa(w.name,w.aliases))r.delete(E);return!1}return!0};return e=e.filter(_),t=t.filter(_),v},f=g=>(e.forEach(v=>{g.add(v.middleware,{...v})}),t.forEach(v=>{g.addRelativeTo(v.middleware,{...v})}),g.identifyOnResolve?.(b.identifyOnResolve()),g),d=g=>{const v=[];return g.before.forEach(_=>{_.before.length===0&&_.after.length===0?v.push(_):v.push(...d(_))}),v.push(g),g.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?v.push(_):v.push(...d(_))}),v},h=(g=!1)=>{const v=[],_=[],w={};return e.forEach(R=>{const C={...R,before:[],after:[]};for(const I of Fa(C.name,C.aliases))w[I]=C;v.push(C)}),t.forEach(R=>{const C={...R,before:[],after:[]};for(const I of Fa(C.name,C.aliases))w[I]=C;_.push(C)}),_.forEach(R=>{if(R.toMiddleware){const C=w[R.toMiddleware];if(C===void 0){if(g)return;throw new Error(`${R.toMiddleware} is not found when adding ${$i(R.name,R.aliases)} middleware ${R.relation} ${R.toMiddleware}`)}R.relation==="after"&&C.after.push(R),R.relation==="before"&&C.before.push(R)}}),i(v).map(d).reduce((R,C)=>(R.push(...C),R),[])},b={add:(g,v={})=>{const{name:_,override:w,aliases:E}=v,R={step:"initialize",priority:"normal",middleware:g,...v},C=Fa(_,E);if(C.length>0){if(C.some(I=>r.has(I))){if(!w)throw new Error(`Duplicate middleware name '${$i(_,E)}'`);for(const I of C){const k=e.findIndex($=>$.name===I||$.aliases?.some(j=>j===I));if(k===-1)continue;const T=e[k];if(T.step!==R.step||R.priority!==T.priority)throw new Error(`"${$i(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${$i(_,E)}" middleware with ${R.priority} priority in ${R.step} step.`);e.splice(k,1)}}for(const I of C)r.add(I)}e.push(R)},addRelativeTo:(g,v)=>{const{name:_,override:w,aliases:E}=v,R={middleware:g,...v},C=Fa(_,E);if(C.length>0){if(C.some(I=>r.has(I))){if(!w)throw new Error(`Duplicate middleware name '${$i(_,E)}'`);for(const I of C){const k=t.findIndex($=>$.name===I||$.aliases?.some(j=>j===I));if(k===-1)continue;const T=t[k];if(T.toMiddleware!==R.toMiddleware||T.relation!==R.relation)throw new Error(`"${$i(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${$i(_,E)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);t.splice(k,1)}}for(const I of C)r.add(I)}t.push(R)},clone:()=>f(sm()),use:g=>{g.applyToStack(b)},remove:g=>typeof g=="string"?c(g):l(g),removeByTag:g=>{let v=!1;const _=w=>{const{tags:E,name:R,aliases:C}=w;if(E&&E.includes(g)){const I=Fa(R,C);for(const k of I)r.delete(k);return v=!0,!1}return!0};return e=e.filter(_),t=t.filter(_),v},concat:g=>{const v=f(sm());return v.use(g),v.identifyOnResolve(n||v.identifyOnResolve()||(g.identifyOnResolve?.()??!1)),v},applyToStack:f,identify:()=>h(!0).map(g=>{const v=g.step??g.relation+" "+g.toMiddleware;return $i(g.name,g.aliases)+" - "+v}),identifyOnResolve(g){return typeof g=="boolean"&&(n=g),n},resolve:(g,v)=>{for(const _ of h().map(w=>w.middleware).reverse())g=_(g,v);return n&&console.log(b.identify()),g}};return b},NT={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},LT={high:3,normal:2,low:1};class vk{config;middlewareStack=sm();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){const i=typeof n!="function"?n:void 0,c=typeof n=="function"?n:r,l=i===void 0&&this.config.cacheMiddleware===!0;let f;if(l){this.handlers||(this.handlers=new WeakMap);const d=this.handlers;d.has(t.constructor)?f=d.get(t.constructor):(f=t.resolveMiddleware(this.middlewareStack,this.config,i),d.set(t.constructor,f))}else delete this.handlers,f=t.resolveMiddleware(this.middlewareStack,this.config,i);if(c)f(t).then(d=>c(null,d.output),d=>c(d)).catch(()=>{});else return f(t).then(d=>d.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const yb="***SensitiveInformation***";function xv(e,t){if(t==null)return t;const n=At.of(e);if(n.getMergedTraits().sensitive)return yb;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return yb}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return yb}else if(n.isStructSchema()&&typeof t=="object"){const r=t,i={};for(const[c,l]of n.structIterator())r[c]!=null&&(i[c]=xv(l,r[c]));return i}return t}class Cs{middlewareStack=sm();schema;static classBuilder(){return new bX}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,smithyContext:h,additionalContext:b,CommandCtor:g}){for(const R of i.bind(this)(g,t,n,r))this.middlewareStack.use(R);const v=t.concat(this.middlewareStack),{logger:_}=n,w={logger:_,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,[vv]:{commandInstance:this,...h},...b},{requestHandler:E}=n;return v.resolve(R=>E.handle(R.request,r||{}),w)}}class bX{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends Cs{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super(),this.input=r??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,c){const l=t._operationSchema,f=l?.[4]??l?.input,d=l?.[5]??l?.output;return this.resolveMiddlewareWithContext(r,i,c,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(l?xv.bind(null,f):h=>h),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?xv.bind(null,d):h=>h),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class Ya extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const n=t;return Ya.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const n=t;return this===Ya?Ya.isInstance(t):Ya.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const zT=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},Sk=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},_k=Object.values(Bf),vX=e=>{const t=[];for(const n in Bf){const r=Bf[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(const[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const r=n.algorithmId(),i=n.checksumConstructor();_k.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},SX=e=>{const t={};return e.checksumAlgorithms().forEach(n=>{const r=n.algorithmId();_k.includes(r)&&(t[r]=n.checksumConstructor())}),t},_X=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),wX=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},wk=e=>Object.assign(vX(e),_X(e)),Ek=e=>Object.assign(SX(e),wX(e)),xk=e=>{const t="#text";for(const n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=xk(e[n]));return e};class PS{trace(){}debug(){}info(){}warn(){}error(){}}class Rk{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,n){const r=n.getMemberSchemas(),i=Object.values(r).find(c=>!!c.getMergedTraits().httpPayload);if(i){const c=i.getMergedTraits().mediaType;return c||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(l=>{const{httpQuery:f,httpQueryParams:d,httpHeader:h,httpLabel:b,httpPrefixHeaders:g}=l.getMergedTraits();return!f&&!d&&!h&&!b&&g===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,c,l){let f=n,d=t;t.includes("#")&&([f,d]=t.split("#"));const h={$metadata:c,$fault:r.statusCode<500?"client":"server"},b=ts.for(f);try{return{errorSchema:l?.(b,d)??b.getSchema(t),errorMetadata:h}}catch{i.message=i.message??i.Message??"UnknownError";const v=ts.for("smithy.ts.sdk.synthetic."+f),_=v.getBaseException();if(_){const w=v.getErrorCtor(_)??Error;throw this.decorateServiceException(Object.assign(new w({name:d}),h),i)}throw this.decorateServiceException(Object.assign(new Error(d),h),i)}}decorateServiceException(t,n={}){if(this.queryCompat){const r=t.Message??n.Message,i=zT(t,n);r&&(i.message=r),i.Error={...i.Error,Type:i.Error?.Type,Code:i.Error?.Code,Message:i.Error?.message??i.Error?.Message??r};const c=i.$metadata.requestId;return c&&(i.RequestId=c),i}return zT(t,n)}setQueryCompatError(t,n){const r=n.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[i,c]=r.split(";"),l=Object.entries(t),f={Code:i,Type:c};Object.assign(t,f);for(const[d,h]of l)f[d==="message"?"Message":d]=h;delete f.__type,t.Error=f}}queryCompatOutput(t,n){t.Error&&(n.Error=t.Error),t.Type&&(n.Type=t.Type),t.Code&&(n.Code=t.Code)}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch{return t.find(i=>At.of(i).getMergedTraits().awsQueryError?.[0]===n)}}}class Vm{serdeContext;setSerdeContext(t){this.serdeContext=t}}class EX{from;to;keys;constructor(t,n){this.from=t,this.to=n,this.keys=new Set(Object.keys(this.from).filter(r=>r!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}}function xX(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function RX(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class Rv{value;constructor(t){this.value=t}toString(){return RX(""+this.value)}}class as{name;children;attributes={};static of(t,n,r){const i=new as(t);return n!==void 0&&i.addChildNode(new Rv(n)),r!==void 0&&i.withName(r),i}constructor(t,n=[]){this.name=t,this.children=n}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){const i=as.of(n,t[n]).withName(r);this.c(i)}}l(t,n,r,i){t[n]!=null&&i().map(l=>{l.withName(r),this.c(l)})}lc(t,n,r,i){if(t[n]!=null){const c=i(),l=new as(r);c.map(f=>{l.c(f)}),this.c(l)}}toString(){const t=!!this.children.length;let n=`<${this.name}`;const r=this.attributes;for(const i of Object.keys(r)){const c=r[i];c!=null&&(n+=` ${i}="${xX(""+c)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}}let bb;function CX(e){bb||(bb=new DOMParser);const t=bb.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const n=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const i=r;if(i.attributes.length===0&&i.childNodes.length===0)return"";const c={},l=Array.from(i.attributes);for(const d of l)c[`${d.name}`]=d.value;const f=Array.from(i.childNodes);for(const d of f){const h=n(d);if(h!=null){const b=d.nodeName;if(f.length===1&&l.length===0&&b==="#text")return h;c[b]?Array.isArray(c[b])?c[b].push(h):c[b]=[c[b],h]:c[b]=h}else if(f.length===1&&l.length===0)return i.textContent}return c}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}class Ck extends Vm{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new GD(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,n,r){const i=At.of(t),c=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(c).find(h=>!!h.getMemberTraits().eventPayload)){const h={},b=Object.keys(c)[0];return c[b].isBlobSchema()?h[b]=n:h[b]=this.read(c[b],n),h}const f=(this.serdeContext?.utf8Encoder??hc)(n),d=this.parseXml(f);return this.readSchema(t,r?d[r]:d)}readSchema(t,n){const r=At.of(t);if(r.isUnitSchema())return;const i=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(n))return this.readSchema(r,[n]);if(n==null)return n;if(typeof n=="object"){const c=!!i.sparse,l=!!i.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),h=[],b=d.getMergedTraits().xmlName??"member",g=l?n:(n[0]??n)[b],v=Array.isArray(g)?g:[g];for(const _ of v)(_!=null||c)&&h.push(this.readSchema(d,_));return h}const f={};if(r.isMapSchema()){const d=r.getKeySchema(),h=r.getValueSchema();let b;l?b=Array.isArray(n)?n:[n]:b=Array.isArray(n.entry)?n.entry:[n.entry];const g=d.getMergedTraits().xmlName??"key",v=h.getMergedTraits().xmlName??"value";for(const _ of b){const w=_[g],E=_[v];(E!=null||c)&&(f[w]=this.readSchema(h,E))}return f}if(r.isStructSchema()){const d=r.isUnionSchema();let h;d&&(h=new EX(n,f));for(const[b,g]of r.structIterator()){const v=g.getMergedTraits(),_=v.httpPayload?v.xmlName??g.getName():g.getMemberTraits().xmlName??b;d&&h.mark(_),n[_]!=null&&(f[b]=this.readSchema(g,n[_]))}return d&&h.writeUnknown(),f}if(r.isDocumentSchema())return n;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,n)}parseXml(t){if(t.length){let n;try{n=CX(t)}catch(l){throw l&&typeof l=="object"&&Object.defineProperty(l,"$responseBodyText",{value:t}),l}const r="#text",i=Object.keys(n)[0],c=n[i];return c[r]&&(c[i]=c[r],delete c[r]),xk(c)}return{}}}class AX extends Vm{settings;buffer;constructor(t){super(),this.settings=t}write(t,n,r=""){this.buffer===void 0&&(this.buffer="");const i=At.of(t);if(r&&!r.endsWith(".")&&(r+="."),i.isBlobSchema())(typeof n=="string"||n instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??ea)(n)));else if(i.isBooleanSchema()||i.isNumericSchema()||i.isStringSchema())n!=null?(this.writeKey(r),this.writeValue(String(n))):i.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(Bm()));else if(i.isBigIntegerSchema())n!=null&&(this.writeKey(r),this.writeValue(String(n)));else if(i.isBigDecimalSchema())n!=null&&(this.writeKey(r),this.writeValue(n instanceof Jf?n.string:String(n)));else if(i.isTimestampSchema()){if(n instanceof Date)switch(this.writeKey(r),Um(i,this.settings)){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(tm(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}else if(i.isDocumentSchema())Array.isArray(n)?this.write(79,n,r):n instanceof Date?this.write(4,n,r):n instanceof Uint8Array?this.write(21,n,r):n&&typeof n=="object"?this.write(143,n,r):(this.writeKey(r),this.writeValue(String(n)));else if(i.isListSchema()){if(Array.isArray(n))if(n.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const c=i.getValueSchema(),l=this.settings.flattenLists||i.getMergedTraits().xmlFlattened;let f=1;for(const d of n){if(d==null)continue;const h=c.getMergedTraits(),b=this.getKey("member",h.xmlName,h.ec2QueryName),g=l?`${r}${f}`:`${r}${b}.${f}`;this.write(c,d,g),++f}}}else if(i.isMapSchema()){if(n&&typeof n=="object"){const c=i.getKeySchema(),l=i.getValueSchema(),f=i.getMergedTraits().xmlFlattened;let d=1;for(const[h,b]of Object.entries(n)){if(b==null)continue;const g=c.getMergedTraits(),v=this.getKey("key",g.xmlName,g.ec2QueryName),_=f?`${r}${d}.${v}`:`${r}entry.${d}.${v}`,w=l.getMergedTraits(),E=this.getKey("value",w.xmlName,w.ec2QueryName),R=f?`${r}${d}.${E}`:`${r}entry.${d}.${E}`;this.write(c,h,_),this.write(l,b,R),++d}}}else if(i.isStructSchema()){if(n&&typeof n=="object"){let c=!1;for(const[l,f]of i.structIterator()){if(n[l]==null&&!f.isIdempotencyToken())continue;const d=f.getMergedTraits(),h=this.getKey(l,d.xmlName,d.ec2QueryName,"struct"),b=`${r}${h}`;this.write(f,n[l],b),c=!0}if(!c&&i.isUnionSchema()){const{$unknown:l}=n;if(Array.isArray(l)){const[f,d]=l,h=`${r}${f}`;this.write(15,d,h)}}}}else if(!i.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${i.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,n,r,i){const{ec2:c,capitalizeKeys:l}=this.settings;if(c&&r)return r;const f=n??t;return l&&i==="struct"?f[0].toUpperCase()+f.slice(1):f}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${em(t)}=`}writeValue(t){this.buffer+=em(t)}}class TX extends sY{options;serializer;deserializer;mixin=new Rk;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new AX(n),this.deserializer=new Ck(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r);i.path.endsWith("/")||(i.path+="/"),Object.assign(i.headers,{"content-type":"application/x-www-form-urlencoded"}),(wp(t.input)==="unit"||!i.body)&&(i.body="");const c=t.name.split("#")[1]??t.name;return i.body=`Action=${c}&Version=${this.options.version}`+i.body,i.body.endsWith("&")&&(i.body=i.body.slice(-1)),i}async deserializeResponse(t,n,r){const i=this.deserializer,c=At.of(t.output),l={};if(r.statusCode>=300){const g=await Ki(r.body,n);g.byteLength>0&&Object.assign(l,await i.read(15,g)),await this.handleError(t,n,r,l,this.deserializeMetadata(r))}for(const g in r.headers){const v=r.headers[g];delete r.headers[g],r.headers[g.toLowerCase()]=v}const f=t.name.split("#")[1]??t.name,d=c.isStructSchema()&&this.useNestedResult()?f+"Result":void 0,h=await Ki(r.body,n);return h.byteLength>0&&Object.assign(l,await i.read(c,h,d)),{$metadata:this.deserializeMetadata(r),...l}}useNestedResult(){return!0}async handleError(t,n,r,i,c){const l=this.loadQueryErrorCode(r,i)??"Unknown",f=this.loadQueryError(i)??{},d=this.loadQueryErrorMessage(i);f.message=d,f.Error={Type:f.Type,Code:f.Code,Message:d};const{errorSchema:h,errorMetadata:b}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,f,c,this.mixin.findQueryCompatibleError),g=At.of(h),v=ts.for(h[1]).getErrorCtor(h)??Error,_=new v(d),w={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[E,R]of g.structIterator()){const C=R.getMergedTraits().xmlName??E,I=f[C]??i[C];w[E]=this.deserializer.readSchema(R,I)}throw this.mixin.decorateServiceException(Object.assign(_,b,{$fault:g.getMergedTraits().error,message:d},w),i)}loadQueryErrorCode(t,n){const r=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class IX extends TX{options;constructor(t){super(t),this.options=t;const n={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,n)}useNestedResult(){return!1}}const OX=(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"};class MX extends Vm{settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,n){const r=At.of(t);if(r.isStringSchema()&&typeof n=="string")this.stringBuffer=n;else if(r.isBlobSchema())this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??cc)(n);else{this.buffer=this.writeStruct(r,n,void 0);const i=r.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){const n=this.byteBuffer;return delete this.byteBuffer,n}if(this.stringBuffer!==void 0){const n=this.stringBuffer;return delete this.stringBuffer,n}const t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,n,r){const i=t.getMergedTraits(),c=t.isMemberSchema()&&!i.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():i.xmlName??t.getName();if(!c||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);const l=as.of(c),[f,d]=this.getXmlnsAttribute(t,r);for(const[b,g]of t.structIterator()){const v=n[b];if(v!=null||g.isIdempotencyToken()){if(g.getMergedTraits().xmlAttribute){l.addAttribute(g.getMergedTraits().xmlName??b,this.writeSimple(g,v));continue}if(g.isListSchema())this.writeList(g,v,l,d);else if(g.isMapSchema())this.writeMap(g,v,l,d);else if(g.isStructSchema())l.addChildNode(this.writeStruct(g,v,d));else{const _=as.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,v,_,d),l.addChildNode(_)}}}const{$unknown:h}=n;if(h&&t.isUnionSchema()&&Array.isArray(h)&&Object.keys(n).length===1){const[b,g]=h,v=as.of(b);if(typeof g!="string")if(n instanceof as||n instanceof Rv)l.addChildNode(n);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,g,v,d),l.addChildNode(v)}return d&&l.addAttribute(f,d),l}writeList(t,n,r,i){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);const c=t.getMergedTraits(),l=t.getValueSchema(),f=l.getMergedTraits(),d=!!f.sparse,h=!!c.xmlFlattened,[b,g]=this.getXmlnsAttribute(t,i),v=(_,w)=>{if(l.isListSchema())this.writeList(l,Array.isArray(w)?w:[w],_,g);else if(l.isMapSchema())this.writeMap(l,w,_,g);else if(l.isStructSchema()){const E=this.writeStruct(l,w,g);_.addChildNode(E.withName(h?c.xmlName??t.getMemberName():f.xmlName??"member"))}else{const E=as.of(h?c.xmlName??t.getMemberName():f.xmlName??"member");this.writeSimpleInto(l,w,E,g),_.addChildNode(E)}};if(h)for(const _ of n)(d||_!=null)&&v(r,_);else{const _=as.of(c.xmlName??t.getMemberName());g&&_.addAttribute(b,g);for(const w of n)(d||w!=null)&&v(_,w);r.addChildNode(_)}}writeMap(t,n,r,i,c=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);const l=t.getMergedTraits(),f=t.getKeySchema(),h=f.getMergedTraits().xmlName??"key",b=t.getValueSchema(),g=b.getMergedTraits(),v=g.xmlName??"value",_=!!g.sparse,w=!!l.xmlFlattened,[E,R]=this.getXmlnsAttribute(t,i),C=(I,k,T)=>{const $=as.of(h,k),[j,H]=this.getXmlnsAttribute(f,R);H&&$.addAttribute(j,H),I.addChildNode($);let P=as.of(v);b.isListSchema()?this.writeList(b,T,P,R):b.isMapSchema()?this.writeMap(b,T,P,R,!0):b.isStructSchema()?P=this.writeStruct(b,T,R):this.writeSimpleInto(b,T,P,R),I.addChildNode(P)};if(w){for(const[I,k]of Object.entries(n))if(_||k!=null){const T=as.of(l.xmlName??t.getMemberName());C(T,I,k),r.addChildNode(T)}}else{let I;c||(I=as.of(l.xmlName??t.getMemberName()),R&&I.addAttribute(E,R),r.addChildNode(I));for(const[k,T]of Object.entries(n))if(_||T!=null){const $=as.of("entry");C($,k,T),(c?r:I).addChildNode($)}}}writeSimple(t,n){if(n===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const r=At.of(t);let i=null;if(n&&typeof n=="object")if(r.isBlobSchema())i=(this.serdeContext?.base64Encoder??ea)(n);else if(r.isTimestampSchema()&&n instanceof Date)switch(Um(r,this.settings)){case 5:i=n.toISOString().replace(".000Z","Z");break;case 6:i=tm(n);break;case 7:i=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n),i=tm(n);break}else{if(r.isBigDecimalSchema()&&n)return n instanceof Jf?n.string:String(n);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(i=String(n)),r.isStringSchema()&&(n===void 0&&r.isIdempotencyToken()?i=Bm():i=String(n)),i===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${n}`);return i}writeSimpleInto(t,n,r,i){const c=this.writeSimple(t,n),l=At.of(t),f=new Rv(c),[d,h]=this.getXmlnsAttribute(l,i);h&&r.addAttribute(d,h),r.addChildNode(f)}getXmlnsAttribute(t,n){const r=t.getMergedTraits(),[i,c]=r.xmlNamespace??[];return c&&c!==n?[i?`xmlns:${i}`:"xmlns",c]:[void 0,void 0]}}class DX extends Vm{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new MX(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new Ck(this.settings);return t.setSerdeContext(this.serdeContext),t}}class kX extends nY{codec;serializer;deserializer;mixin=new Rk;constructor(t){super(t);const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new DX(n),this.serializer=new iY(this.codec.createSerializer(),n),this.deserializer=new rY(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r),c=At.of(t.input);if(!i.headers["content-type"]){const l=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);l&&(i.headers["content-type"]=l)}return typeof i.body=="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("'+i.body),i}async deserializeResponse(t,n,r){return super.deserializeResponse(t,n,r)}async handleError(t,n,r,i,c){const l=OX(r,i)??"Unknown";if(i.Error&&typeof i.Error=="object")for(const w of Object.keys(i.Error))i[w]=i.Error[w],w.toLowerCase()==="message"&&(i.message=i.Error[w]);i.RequestId&&!c.requestId&&(c.requestId=i.RequestId);const{errorSchema:f,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,i,c),h=At.of(f),b=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",g=ts.for(f[1]).getErrorCtor(f)??Error,v=new g(b);await this.deserializeHttpMessage(f,n,r,i);const _={};for(const[w,E]of h.structIterator()){const R=E.getMergedTraits().xmlName??w,C=i.Error?.[R]??i[R];_[w]=this.codec.createDeserializer().readSchema(E,C)}throw this.mixin.decorateServiceException(Object.assign(v,d,{$fault:h.getMergedTraits().error,message:b},_),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator())if(n.getMergedTraits().httpPayload)return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema());return!1}}const PX=/\d{12}\.ddb/;async function NX(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Pr(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const c=await t.retryStrategy();typeof c.acquireInitialRetryToken=="function"?c.constructor?.name?.includes("Adaptive")?Pr(e,"RETRY_MODE_ADAPTIVE","F"):Pr(e,"RETRY_MODE_STANDARD","E"):Pr(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const c=e.endpointV2;switch(String(c?.url?.hostname).match(PX)&&Pr(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":Pr(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Pr(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Pr(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const c=i;c.accountId&&Pr(e,"RESOLVED_ACCOUNT_ID","T");for(const[l,f]of Object.entries(c.$source??{}))Pr(e,l,f)}}const BT="user-agent",vb="x-amz-user-agent",$T=" ",Sb="/",LX=/[^!$%&'*+\-.^_`|~\w]/g,zX=/[^!$%&'*+\-.^_`|~\w#]/g,UT="-",BX=1024;function $X(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=BX){t.length?t+=","+r:t+=r;continue}break}return t}const UX=e=>(t,n)=>async r=>{const{request:i}=r;if(!kn.isInstance(i))return t(r);const{headers:c}=i,l=n?.userAgent?.map(lp)||[],f=(await e.defaultUserAgentProvider()).map(lp);await NX(n,e,r);const d=n;f.push(`m/${$X(Object.assign({},n.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const h=e?.customUserAgent?.map(lp)||[],b=await e.userAgentAppId();b&&f.push(lp(["app",`${b}`]));const g=[].concat([...f,...l,...h]).join($T),v=[...f.filter(_=>_.startsWith("aws-sdk-")),...h].join($T);return e.runtime!=="browser"?(v&&(c[vb]=c[vb]?`${c[BT]} ${v}`:v),c[BT]=g):c[vb]=g,t({...r,request:i})},lp=e=>{const t=e[0].split(Sb).map(l=>l.replace(LX,UT)).join(Sb),n=e[1]?.replace(zX,UT),r=t.indexOf(Sb),i=t.substring(0,r);let c=t.substring(r+1);return i==="api"&&(c=c.toLowerCase()),[i,c,n].filter(l=>l&&l.length>0).reduce((l,f,d)=>{switch(d){case 0:return f;case 1:return`${l}/${f}`;default:return`${l}#${f}`}},"")},jX={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Ak=e=>({applyToStack:t=>{t.add(UX(e),jX)}}),Tk=!1,Ik=!1,jT=new Set,HX=(e,t=jm)=>{if(!jT.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else jT.add(e)},Ok=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),VX=e=>Ok(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,Mk=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const r=typeof t=="function"?await t():t,i=VX(r);return HX(i),i},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return Ok(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},HT="content-length";function qX(e){return t=>async n=>{const r=n.request;if(kn.isInstance(r)){const{body:i,headers:c}=r;if(i&&Object.keys(c).map(l=>l.toLowerCase()).indexOf(HT)===-1)try{const l=e(i);r.headers={...r.headers,[HT]:String(l)}}catch{}}return t({...n,request:r})}}const FX={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Dk=e=>({applyToStack:t=>{t.add(qX(e.bodyLengthChecker),FX)}}),GX=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),XX(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!YX(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},ZX=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,KX=/(\d+\.){3}\d+/,QX=/\.\./,YX=e=>ZX.test(e)&&!KX.test(e)&&!QX.test(e),XX=e=>{const[t,n,r,,,i]=e.split(":"),c=t==="arn"&&e.split(":").length>=6,l=!!(c&&n&&r&&i);if(c&&!l)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return l},WX=(e,t,n,r=!1)=>{const i=async()=>{let c;return r?c=n.clientContextParams?.[e]??n[e]??n[t]:c=n[e]??n[t],typeof c=="function"?c():c};return e==="credentialScope"||t==="CredentialScope"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.credentialScope??c?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.accountId??c?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const c=await i();if(c&&typeof c=="object"){if("url"in c)return c.url.href;if("hostname"in c){const{protocol:l,hostname:f,port:d,path:h}=c;return`${l}//${f}${d?":"+d:""}${h}`}}return c}:i},kk=async e=>{},Pk=e=>typeof e=="object"?"url"in e?Hf(e.url):e:Hf(e),JX=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let l;n.serviceConfiguredEndpoint?l=await n.serviceConfiguredEndpoint():l=await kk(n.serviceId),l&&(n.endpoint=()=>Promise.resolve(Pk(l)),n.isCustomEndpoint=!0)}const i=await Nk(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},Nk=async(e,t,n)=>{const r={},i=t?.getEndpointParameterInstructions?.()||{};for(const[c,l]of Object.entries(i))switch(l.type){case"staticContextParams":r[c]=l.value;break;case"contextParams":r[c]=e[l.name];break;case"clientContextParams":case"builtInParams":r[c]=await WX(l.name,c,n,l.type!=="builtInParams")();break;case"operationContextParams":r[c]=l.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(l))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await GX(r),r},eW=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&aY(r,"ENDPOINT_OVERRIDE","N");const c=await JX(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c,r.authSchemes=c.properties?.authSchemes;const l=r.authSchemes?.[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;const d=qo(r)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...i})},tW={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:rQ.name},Ks=(e,t)=>({applyToStack:n=>{n.addRelativeTo(eW({config:e,instructions:t}),tW)}}),Lk=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,c=n!=null?async()=>Pk(await Fs(n)()):void 0,f=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Fs(r??!1),useFipsEndpoint:Fs(i??!1)});let d;return f.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=kk(e.serviceId)),d),f};var Pl;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Pl||(Pl={}));const Vf=3,zk=Pl.STANDARD,nW=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],sW=["TimeoutError","RequestTimeout","RequestTimeoutException"],rW=[500,502,503,504],oW=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],iW=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],aW=e=>e?.$retryable!==void 0,cW=e=>e.$metadata?.clockSkewCorrected,lW=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},Bk=e=>e.$metadata?.httpStatusCode===429||nW.includes(e.name)||e.$retryable?.throttling==!0,NS=(e,t=0)=>aW(e)||cW(e)||sW.includes(e.name)||oW.includes(e?.code||"")||iW.includes(e?.code||"")||rW.includes(e.$metadata?.httpStatusCode||0)||lW(e)||e.cause!==void 0&&t<=10&&NS(e.cause,t+1),uW=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!NS(e)}return!1};class LS{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>LS.setTimeoutFn(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),Bk(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){const r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}const Cv=100,$k=20*1e3,fW=500,VT=500,dW=5,hW=10,pW=1,mW="amz-sdk-invocation-id",gW="amz-sdk-request",yW=()=>{let e=Cv;return{computeNextBackoffDelay:r=>Math.floor(Math.min($k,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},qT=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min($k,e),getRetryCost:()=>n});class Uk{maxAttempts;mode=Pl.STANDARD;capacity=VT;retryBackoffStrategy=yW();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return qT({retryDelay:Cv,retryCount:0})}async refreshRetryTokenForRetry(t,n){const r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){const i=n.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?fW:Cv);const c=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),l=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,c):c,f=this.getCapacityCost(i);return this.capacity-=f,qT({retryDelay:l,retryCount:t.getRetryCount()+1,retryCost:f})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(VT,this.capacity+(t.getRetryCost()??pW))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Vf}`),Vf}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?hW:dW}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class bW{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=Pl.ADAPTIVE;constructor(t,n){this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new LS,this.standardRetryStrategy=new Uk(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const vW=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),jk=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,i=Fs(r??Vf);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Fs(n)()===Pl.ADAPTIVE?new bW(i):new Uk(i))})},SW=e=>e?.body instanceof ReadableStream,_W=e=>(t,n)=>async r=>{let i=await e.retryStrategy();const c=await e.maxAttempts();if(wW(i)){i=i;let l=await i.acquireInitialRetryToken(n.partition_id),f=new Error,d=0,h=0;const{request:b}=r,g=kn.isInstance(b);for(g&&(b.headers[mW]=Bm());;)try{g&&(b.headers[gW]=`attempt=${d+1}; max=${c}`);const{response:v,output:_}=await t(r);return i.recordSuccess(l),_.$metadata.attempts=d+1,_.$metadata.totalRetryDelay=h,{response:v,output:_}}catch(v){const _=EW(v);if(f=vW(v),g&&SW(b))throw(n.logger instanceof PS?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{l=await i.refreshRetryTokenForRetry(l,_)}catch{throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=d+1,f.$metadata.totalRetryDelay=h,f}d=l.getRetryCount();const w=l.getRetryDelay();h+=w,await new Promise(E=>setTimeout(E,w))}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},wW=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",EW=e=>{const t={error:e,errorType:xW(e)},n=CW(e.$response);return n&&(t.retryAfterHint=n),t},xW=e=>Bk(e)?"THROTTLING":NS(e)?"TRANSIENT":uW(e)?"SERVER_ERROR":"CLIENT_ERROR",RW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Hk=e=>({applyToStack:t=>{t.add(_W(e),RW)}}),CW=e=>{if(!ac.isInstance(e))return;const t=Object.keys(e.headers).find(c=>c.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},AW=async(e,t,n)=>({operation:qo(t).operation,region:await Fs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function TW(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ec2",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const IW=e=>{const t=[];switch(e.operation){default:t.push(TW(e))}return t},OW=e=>{const t=yk(e);return Object.assign(t,{authSchemePreference:Fs(e.authSchemePreference??[])})},MW=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"ec2"}),to={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},DW="3.1000.0",kW={version:DW},Vk=e=>new TextEncoder().encode(e);var PW=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:Vk;function lc(e){return e instanceof Uint8Array?e:typeof e=="string"?PW(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function rm(e){return typeof e=="string"?e.length===0:e.byteLength===0}function NW(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function LW(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&c[c.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var pr=64,jW=32,HW=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),VW=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],qW=Math.pow(2,53)-1,Ep=(function(){function e(){this.state=Int32Array.from(VW),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>qW)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===pr&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%pr>=pr-8){for(var i=this.bufferLength;i>>24&255,c[i*4+1]=this.state[i]>>>16&255,c[i*4+2]=this.state[i]>>>8&255,c[i*4+3]=this.state[i]>>>0&255;return c},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],c=r[1],l=r[2],f=r[3],d=r[4],h=r[5],b=r[6],g=r[7],v=0;v>>17|_<<15)^(_>>>19|_<<13)^_>>>10;_=this.temp[v-15];var E=(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3;this.temp[v]=(w+this.temp[v-7]|0)+(E+this.temp[v-16]|0)}var R=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&b)|0)+(g+(HW[v]+this.temp[v]|0)|0)|0,C=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&c^i&l^c&l)|0;g=b,b=h,h=d,d=f+R|0,f=l,l=c,c=i,i=R+C|0}r[0]+=i,r[1]+=c,r[2]+=l,r[3]+=f,r[4]+=d,r[5]+=h,r[6]+=b,r[7]+=g},e})(),FW=(function(){function e(t){this.secret=t,this.hash=new Ep,this.reset()}return e.prototype.update=function(t){if(!(rm(t)||this.error))try{this.hash.update(lc(t))}catch(n){this.error=n}},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 Fk(this,void 0,void 0,function(){return Gk(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Ep,this.secret){this.outer=new Ep;var t=GW(this.secret),n=new Uint8Array(pr);n.set(t);for(var r=0;rpr){var n=new Ep;n.update(t),t=n.digest()}var r=new Uint8Array(pr);return r.set(t),r}var ZW=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function Zk(e){if(KW(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return QW(t)}return!1}function KW(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function QW(e){return e&&ZW.every(function(t){return typeof e[t]=="function"})}var Kk=(function(){function e(t){Zk(Ji())?this.hash=new $W(t):this.hash=new FW(t)}return e.prototype.update=function(t,n){this.hash.update(lc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const Qk=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"?window.navigator:void 0,i=r?.userAgent??"",c=r?.userAgentData?.platform??GT.os(i)??"other",l=void 0,f=r?.userAgentData?.brands??[],d=f[f.length-1],h=d?.brand??GT.browser(i)??"unknown",b=d?.version??"unknown",g=[["aws-sdk-js",t],["ua","2.1"],[`os/${c}`,l],["lang/js"],["md/browser",`${h}_${b}`]];e&&g.push([`api/${e}`,t]);const v=await n?.userAgentAppId?.();return v&&g.push([`app/${v}`]),g},GT={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}},Yk=e=>()=>Promise.reject(e),YW=["in-region","cross-region","mobile","standard","legacy"],Xk=({defaultsMode:e}={})=>HY(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(XW()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${YW.join(", ")}, got ${t}`)}}),XW=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t=="string"&&t!=="4g"||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints=="number"&&e?.maxTouchPoints>1},Wk="required",gr="fn",yr="argv",Ul="ref",ZT=!0,KT="isSet",qf="booleanEquals",ul="error",fl="endpoint",Oo="tree",zS="PartitionResult",BS="getAttr",QT={[Wk]:!1,type:"string"},YT={[Wk]:!0,default:!1,type:"boolean"},XT={[Ul]:"Endpoint"},Jk={[gr]:qf,[yr]:[{[Ul]:"UseFIPS"},!0]},e3={[gr]:qf,[yr]:[{[Ul]:"UseDualStack"},!0]},fr={},WT={[gr]:BS,[yr]:[{[Ul]:zS},"supportsFIPS"]},t3={[Ul]:zS},JT={[gr]:qf,[yr]:[!0,{[gr]:BS,[yr]:[t3,"supportsDualStack"]}]},eI=[Jk],tI=[e3],nI=[{[Ul]:"Region"}],WW={parameters:{Region:QT,UseDualStack:YT,UseFIPS:YT,Endpoint:QT},rules:[{conditions:[{[gr]:KT,[yr]:[XT]}],rules:[{conditions:eI,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ul},{conditions:tI,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ul},{endpoint:{url:XT,properties:fr,headers:fr},type:fl}],type:Oo},{conditions:[{[gr]:KT,[yr]:nI}],rules:[{conditions:[{[gr]:"aws.partition",[yr]:nI,assign:zS}],rules:[{conditions:[Jk,e3],rules:[{conditions:[{[gr]:qf,[yr]:[ZT,WT]},JT],rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:fr,headers:fr},type:fl}],type:Oo},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ul}],type:Oo},{conditions:eI,rules:[{conditions:[{[gr]:qf,[yr]:[WT,ZT]}],rules:[{conditions:[{[gr]:"stringEquals",[yr]:[{[gr]:BS,[yr]:[t3,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:fr,headers:fr},type:fl},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:fr,headers:fr},type:fl}],type:Oo},{error:"FIPS is enabled but this partition does not support FIPS",type:ul}],type:Oo},{conditions:tI,rules:[{conditions:[JT],rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:fr,headers:fr},type:fl}],type:Oo},{error:"DualStack is enabled but this partition does not support DualStack",type:ul}],type:Oo},{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:fr,headers:fr},type:fl}],type:Oo}],type:Oo},{error:"Invalid Configuration: Missing Region",type:ul}]},JW=WW,eJ=new YD({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),tJ=(e,t={})=>eJ.get(e,()=>ak(JW,{endpointParams:e,logger:t.logger}));Uf.aws=MS;class $S extends Ya{constructor(t){super(t),Object.setPrototypeOf(this,$S.prototype)}}const nJ="AllAvailabilityZones",sJ="AttributeBooleanValue",rJ="AssociateCarrierIpAddress",oJ="AdditionalFlexibleNetworkInterfaces",iJ="AvailableIpAddressCount",aJ="AssignIpv6AddressOnCreation",n3="AdditionalInfo",US="AssociationId",s3="AttachmentId",cJ="AmiLaunchIndex",lJ="AttachmentLimitType",uJ="AssociatePublicIpAddress",fJ="AmazonProvidedIpv6CidrBlock",dJ="AutoRecoverySupported",hJ="AllRegions",r3="AssociatedResource",o3="AutoRecovery",i3="AmdSevSnp",pJ="ArchitectureTypeList",qm="AttachTime",mJ="AttachVolumeRequest",gJ="AttributeValue",yJ="AttachVolume",la="AvailabilityZone",bJ="AvailabilityZoneGeography",vJ="AvailabilityZoneGeographyList",jl="AvailabilityZoneId",SJ="AvailabilityZoneList",_J="AvailabilityZoneMessage",wJ="AvailabilityZoneMessageList",EJ="AvailabilityZoneSubGeography",xJ="AvailabilityZoneSubGeographyList",RJ="AvailabilityZones",a3="Accelerators",CJ="Affinity",c3="Arn",l3="Architecture",u3="Association",AJ="Attribute",f3="Attachment",TJ="Attachments",IJ="BlobAttributeValue",OJ="BaselineBandwidthInGbps",d3="BaselineBandwidthInMbps",jS="BlockDeviceMapping",MJ="BlockDeviceMappingList",DJ="BlockDeviceMappingRequestList",ed="BlockDeviceMappings",kJ="BlockDurationMinutes",h3="BaselineIops",p3="BootMode",PJ="BootModeTypeList",NJ="BareMetal",HS="BlockPublicAccessStates",LJ="BurstablePerformanceSupported",m3="BaselineThroughputInMBps",g3="BandwidthWeighting",zJ="BandwidthWeightingTypeList",BJ="BandwidthWeightings",td="CidrBlock",$J="CidrBlockAssociationSet",UJ="CapacityBlockId",jJ="CidrBlockState",HJ="CoreCountList",y3="CoreCount",VJ="CpuCredits",b3="CompletionDurationMinutes",qJ="CreationDate",FJ="CurrentGeneration",GJ="CarrierIp",ZJ="CurrentInstanceBootMode",KJ="CreateImageRequest",QJ="CreateImageResult",YJ="CoreInfo",XJ="CreateImage",WJ="CreateKeyPair",JJ="CreateKeyPairRequest",VS="CpuOptions",eee="CustomerOwnedIp",tee="CustomerOwnedIpv4Pool",nee="CpuOptionsRequest",qS="CapacityReservationId",v3="CapacityReservationPreference",S3="CapacityReservationResourceGroupArn",see="CapacityReservationSpecificationResponse",FS="CapacityReservationSpecification",GS="CapacityReservationTarget",ree="CapacityReservationTargetResponse",oee="CopySnapshotRequest",iee="CopySnapshotRequestPSU",aee="CopySnapshotResult",cee="CreateSnapshotRequest",lee="CreateSubnetRequest",uee="CreateSubnetResult",fee="CreditSpecificationRequest",dee="CopySnapshot",hee="CreditSpecification",pee="CreateSnapshot",mee="CreateSubnet",gee="CurrentState",ZS="ClientToken",yee="ConnectionTrackingConfiguration",bee="ConnectionTrackingSpecification",vee="ConnectionTrackingSpecificationRequest",See="ConnectionTrackingSpecificationResponse",_ee="CompletionTime",_3="CreateTime",wee="CreateVolumeRequest",Eee="CreateVpcRequest",xee="CreateVpcResult",Ree="CreateVolume",Cee="CreateVpc",w3="Code",E3="Configured",ua="Count",x3="DisableApiStop",R3="DisableApiTermination",Aee="DestinationAvailabilityZone",Tee="DescribeAvailabilityZonesRequest",Iee="DescribeAvailabilityZonesResult",Oee="DescribeAvailabilityZones",Mee="DefaultCores",Dee="DataEncryptionKeyId",kee="DefaultEnaQueueCountPerInterface",Pee="DefaultForAz",Nee="DedicatedHostsSupported",Fm="DeviceIndex",Lee="DiskInfoList",zee="DescribeImagesRequest",Bee="DescribeImagesResult",$ee="DescribeInstancesRequest",Uee="DescribeInstancesResult",jee="DescribeInstanceTypesRequest",Hee="DescribeInstanceTypesResult",Vee="DescribeInstanceTypes",qee="DescribeImages",Fee="DescribeInstances",Gee="DiskInfo",Zee="DeleteKeyPair",Kee="DeleteKeyPairRequest",Qee="DeleteKeyPairResult",Yee="DescribeKeyPairsRequest",Xee="DescribeKeyPairsResult",Wee="DescribeKeyPairs",KS="DeviceName",Jee="DefaultNetworkCardIndex",ete="DestinationOutpostArn",tte="DhcpOptionsId",fa="DeleteOnTermination",nte="DeregistrationProtection",bt="DryRun",ste="DescribeRegionsRequest",rte="DescribeRegionsResult",ote="DestinationRegion",ite="DescribeRegions",ate="DeleteSnapshotRequest",cte="DeleteSubnetRequest",lte="DescribeSnapshotsRequest",ute="DescribeSnapshotsResult",fte="DescribeSubnetsRequest",dte="DescribeSubnetsResult",hte="DeleteSnapshot",pte="DeleteSubnet",mte="DescribeSnapshots",gte="DescribeSubnets",yte="DefaultThreadsPerCore",bte="DeprecationTime",vte="DefaultVCpus",Ste="DeleteVolumeRequest",_te="DeleteVpcRequest",wte="DescribeVolumesRequest",Ete="DescribeVolumesResult",xte="DescribeVpcsRequest",Rte="DescribeVpcsResult",Cte="DetachVolumeRequest",Ate="DeleteVolume",Tte="DeleteVpc",Ite="DescribeVolumes",Ote="DescribeVpcs",Mte="DetachVolume",pc="Description",QS="Device",Dte="Disks",kte="EbsBlockDevice",Pte="ExecutableByStringList",C3="ExecutableBy",nd="EbsCardIndex",Nte="EbsCardInfoList",Lte="EbsCardInfo",zte="EbsCards",Bte="EncryptionControl",$te="EnableDns64",Ute="ElasticFileSystem",jte="ElasticFileSystemExclusion",Hte="ElasticGpuAssociation",Vte="ElasticGpuAssociationId",qte="ElasticGpuAssociationList",Fte="ElasticGpuAssociationState",Gte="ElasticGpuAssociationTime",Zte="ElasticGpuAssociations",Kte="ElasticGpuId",A3="ElasticGpuSpecification",Qte="ElasticGpuSpecifications",T3="ElasticInferenceAccelerator",Yte="ElasticInferenceAcceleratorAssociation",Xte="ElasticInferenceAcceleratorAssociationId",Wte="ElasticInferenceAcceleratorAssociationList",Jte="ElasticInferenceAcceleratorAssociationState",ene="ElasticInferenceAcceleratorAssociationTime",tne="ElasticInferenceAcceleratorArn",nne="ElasticInferenceAcceleratorAssociations",I3="ElasticInferenceAccelerators",sne="EbsInstanceBlockDevice",rne="EbsInstanceBlockDeviceSpecification",one="EncryptionInTransitSupported",O3="EbsInfo",M3="EfaInfo",ine="EnableLniAtDeviceIndex",YS="EbsOptimized",D3="EbsOptimizedInfo",ane="EgressOnlyInternetGateway",cne="EgressOnlyInternetGatewayExclusion",lne="EnclaveOptionsRequest",une="EbsOptimizedSupport",XS="EnclaveOptions",fne="EnablePrimaryIpv6",k3="EnaQueueCount",WS="EnableResourceNameDnsAAAARecord",JS="EnableResourceNameDnsARecord",P3="EnaSrdEnabled",N3="EnaSrdSpecification",dne="EnaSrdSpecificationRequest",hne="EnaSrdSupported",L3="EnaSrdUdpEnabled",z3="EnaSrdUdpSpecification",pne="EnaSrdUdpSpecificationRequest",mne="EfaSupported",B3="EncryptionSupport",Gm="EnaSupport",gne="EndTime",yne="ExecutableUsers",e_="Ebs",t_="Enabled",sd="Encrypted",bne="Endpoint",n_="Force",vne="FpgaDeviceInfo",Sne="FpgaDeviceInfoList",_ne="FpgaDeviceMemoryInfo",wne="FlexibleEnaQueuesSupport",$3="FpgaInfo",Ene="FilterList",xne="FastRestored",Rne="FullSnapshotSizeInBytes",U3="FreeTierEligible",no="Filters",Er="Filter",Cne="Fpgas",Zm="Groups",Ane="GetConsoleOutput",Tne="GetConsoleOutputRequest",Ine="GetConsoleOutputResult",One="GpuDeviceInfo",Mne="GpuDeviceInfoList",Dne="GpuDeviceMemoryInfo",kne="GroupIdentifierList",Pne="GroupIdStringList",j3="GpuInfo",s_="GroupId",Nne="GroupIdentifier",Lne="GroupLongName",r_="GroupName",zne="GpuPartitionSize",H3="Geography",Bne="Gpus",V3="HttpEndpoint",$ne="HostId",o_="HibernationOptions",Une="HibernationOptionsRequest",q3="HttpProtocolIpv6",F3="HttpPutResponseHopLimit",jne="HostResourceGroupArn",Hne="HibernationSupported",G3="HttpTokens",i_="HostnameType",Vne="Hibernate",a_="Hypervisor",qne="Id",c_="Ipv6Addresses",Z3="Ipv6AddressAttribute",K3="Ipv6AddressCount",Fne="InstanceAttachmentEnaSrdSpecification",Gne="InstanceAttachmentEnaSrdUdpSpecification",Q3="InferenceAcceleratorInfo",Zne="Ipv4AddressesPerInterface",Kne="Ipv6AddressesPerInterface",Qne="Ipv4AddressesPerSecondaryInterface",Yne="ImageAllowed",l_="Ipv6Address",Xne="InstanceBlockDeviceMapping",Wne="InstanceBlockDeviceMappingList",Jne="InstanceBlockDeviceMappingSpecification",ese="InstanceBlockDeviceMappingSpecificationList",Km="Ipv6CidrBlock",Y3="Ipv6CidrBlockAssociationSet",tse="Ipv6CidrBlockNetworkBorderGroup",X3="Ipv6CidrBlockState",nse="IncludeDeprecated",sse="InferenceDeviceInfo",rse="InferenceDeviceInfoList",ose="InferenceDeviceMemoryInfo",ise="IncludeDisabled",ase="IsDefault",cse="InternetGateway",lse="InternetGatewayBlockMode",use="InternetGatewayExclusion",ls="InstanceId",fse="InstanceIpv6Address",dse="InstanceIpv6AddressList",hse="InstanceInterruptionBehavior",u_="IamInstanceProfile",W3="Ipv6IpamPoolId",J3="Ipv4IpamPoolId",pse="InstanceIpv4PrefixList",mse="InstanceIpv6PrefixList",gse="IamInstanceProfileSpecification",yse="InstanceIpv4Prefix",bse="InstanceIpv6Prefix",eP="InstanceInitiatedShutdownBehavior",vse="ImageIdStringList",Sse="InstanceIdStringList",Hl="ImageId",_se="ImageIds",rd="InstanceIds",wse="ImportKeyPair",Ese="ImportKeyPairRequest",xse="ImportKeyPairResult",Rse="ImageLocation",Cse="ImageList",Ase="InstanceLifecycle",Tse="InstanceList",Ise="InstanceMaintenanceOptions",Ose="InstanceMaintenanceOptionsRequest",Mse="InstanceMarketOptionsRequest",Dse="InstanceMetadataOptionsRequest",kse="InstanceMetadataOptionsResponse",Pse="InstanceMarketOptions",tP="InstanceMetadataTags",nP="Ipv6Native",Nse="InstanceNetworkInterface",Lse="InstanceNetworkInterfaceAssociation",zse="InstanceNetworkInterfaceAttachment",Bse="InstanceNetworkInterfaceList",$se="InstanceNetworkInterfaceSpecification",Use="InstanceNetworkInterfaceSpecificationList",sP="Ipv6NetmaskLength",rP="Ipv4NetmaskLength",jse="InstanceNetworkPerformanceOptions",Hse="InstanceNetworkPerformanceOptionsRequest",Vse="ImageOwnerAlias",qse="IpOwnerId",Fse="InstanceOwningService",Gse="Ipv6PrefixCount",Zse="Ipv4PrefixCount",Kse="InstancePrivateIpAddress",Qse="InstancePrivateIpAddressList",Yse="IsPrimaryIpv6",Xse="IncludePublicKey",Wse="Ipv4PrefixList",Jse="Ipv6PrefixList",ere="Ipv4PrefixSpecificationRequest",tre="Ipv6PrefixSpecificationRequest",oP="Ipv6Prefixes",f_="Ipv6Prefix",iP="Ipv6Pool",aP="Ipv4Prefixes",d_="Ipv4Prefix",nre="InstanceStateChange",sre="InstanceStateChangeList",rre="InstanceSecondaryInterfaceAttachment",ore="InstanceSecondaryInterfaceList",ire="InstanceSecondaryInterfacePrivateIpAddress",are="InstanceSecondaryInterfacePrivateIpAddressList",cre="InstanceSecondaryInterfacePrivateIpAddressListRequest",lre="InstanceSecondaryInterfacePrivateIpAddressRequest",ure="InstanceSecondaryInterfaceSpecificationListRequest",fre="InstanceSecondaryInterfaceSpecificationRequest",dre="InstanceSecondaryInterface",cP="InstanceStorageInfo",hre="InstanceStorageSupported",pre="ImdsSupport",mre="InstanceState",lP="IpSource",gre="Ipv6Supported",od="InstanceType",yre="InstanceTypeInfoList",bre="InstanceTypeInfo",vre="ImageType",uP="InstanceTenancy",fP="InstanceTypes",Qm="InterfaceType",Sre="Images",_re="Image",wre="Instance",Ere="Instances",Ym="Iops",xre="Key",Rre="KeyFormat",h_="KeyFingerprint",p_="KernelId",id="KmsKeyId",Cre="KeyMaterial",so="KeyName",Are="KeyNameStringList",Tre="KeyNames",Ire="KeyPairs",mc="KeyPairId",Ore="KeyPairIdStringList",Mre="KeyPairIds",Dre="KeyPairInfo",kre="KeyPairList",Pre="KeyPair",dP="KeyType",Nre="Kernel",hP="LicenseConfigurationArn",Lre="LicenseConfigurationRequest",zre="LicenseConfiguration",Bre="LambdaExclusion",$re="LogicalGpuCount",Ure="LicenseList",jre="LastLaunchedTime",Hre="LicenseSpecifications",Vre="LicenseSpecificationListRequest",qre="LicenseSpecification",Fre="LaunchTemplate",Gre="LaunchTemplateId",Zre="LaunchTemplateName",Kre="LaunchTemplateSpecification",Qre="LaunchTime",Yre="Latest",Xre="Lambda",Wre="Licenses",Jre="Location",m_="MultiAttachEnabled",pP="MediaAcceleratorInfo",mP="MacAddress",gP="MaximumBandwidthInMbps",eoe="MapCustomerOwnedIpOnLaunch",toe="MaxCount",noe="MinCount",soe="MediaDeviceInfo",roe="MediaDeviceInfoList",ooe="MediaDeviceMemoryInfo",ioe="MaximumEbsAttachments",aoe="MaximumEbsCards",coe="MaximumEfaInterfaces",loe="MaximumEnaQueueCount",uoe="MaximumEnaQueueCountPerInterface",yP="MaximumIops",foe="ModifyInstanceAttributeRequest",doe="ModifyInstanceAttribute",gc="MemoryInfo",hoe="MaximumNetworkCards",bP="MaximumNetworkInterfaces",vP="MetadataOptions",SP="MaintenanceOptions",poe="MapPublicIpOnLaunch",moe="MaxPrice",yc="MaxResults",goe="MaximumSecondaryNetworkInterfaces",yoe="ModificationState",boe="MarketType",_P="MaximumThroughputInMBps",voe="ModifyVolumeRequest",Soe="ModifyVolumeResult",_oe="ModifyVolume",ad="Manufacturer",woe="Managed",wP="Message",Eoe="Messages",EP="Mode",g_="Monitoring",Qs="Name",xP="NetworkBorderGroup",xoe="NetworkCards",cd="NetworkCardIndex",Roe="NetworkCardInfoList",Coe="NetworkCardInfo",RP="NoDevice",Aoe="NeuronDeviceCoreInfo",Toe="NeuronDeviceInfo",Ioe="NeuronDeviceInfoList",Ooe="NeuronDeviceMemoryInfo",Moe="NeuronDevices",Doe="NitroEnclavesSupport",koe="NatGateway",Poe="NatGatewayExclusion",CP="NetworkInterfaceId",AP="NetworkInterfaces",TP="NetworkInfo",IP="NeuronInfo",OP="NetworkPerformanceOptions",MP="NetworkPerformance",Noe="NoReboot",DP="NvmeSupport",kP="NitroTpmInfo",Loe="NitroTpmSupport",zoe="NitroTpmSupportedVersionsList",As="NextToken",PP="NestedVirtualization",da="OutpostArn",Boe="OwnerAlias",bc="OwnerId",NP="OptInStatus",$oe="OriginalIops",Uoe="OwnerIds",joe="OriginalMultiAttachEnabled",Hoe="OperatorRequest",Voe="OperatorResponse",qoe="OwnerStringList",Foe="OriginalSize",Goe="OriginalThroughput",Zoe="OriginalVolumeType",Vl="Operator",Koe="Output",Qoe="Owners",y_="Owner",LP="Principal",Yoe="PeakBandwidthInGbps",Xoe="ProductCodeId",Woe="ProductCodeList",Joe="ProductCodeType",eie="ProductCode",zP="ProductCodes",b_="PrivateDnsName",BP="PrivateDnsNameOptions",$P="PrivateDnsNameOptionsOnLaunch",tie="PrivateDnsNameOptionsRequest",nie="PrivateDnsNameOptionsResponse",UP="PublicDnsName",jP="PlatformDetails",HP="PlacementGroupInfo",sie="PlacementGroupStrategyList",rie="PublicIp",oie="PrivateIpAddressCount",iie="PrivateIpAddressSpecification",aie="PrivateIpAddressSpecificationList",Fo="PrivateIpAddress",Xm="PrivateIpAddresses",cie="PublicIpAddress",lie="PrimaryIpv6",VP="ProcessorInfo",uie="PublicKey",fie="PublicKeyMaterial",die="PartitionNumber",hie="PhcSupport",pie="PreviousState",mie="PresignedUrl",gie="ParentZoneId",yie="ParentZoneName",qP="Platform",v_="Placement",FP="Primary",GP="Progress",bie="Public",vie="Return",Sie="RestorableByUserIds",_ie="RestorableBy",ZP="RootDeviceName",KP="RootDeviceType",wie="RootDeviceTypeList",Eie="RestoreExpiryTime",xie="ResourceExclusions",Rie="RegionGeography",Cie="RegionGeographyList",Aie="RunInstancesMonitoringEnabled",Tie="RebootInstancesRequest",Iie="RunInstancesRequest",Oie="RunInstancesUserData",S_="RamdiskId",Mie="ReservationId",Die="RebootInstances",kie="RequesterId",Pie="RunInstances",Nie="RegionList",Lie="ReservationList",zie="RebootMigrationSupport",Bie="RebootMigration",Wm="RegionName",$ie="RegionNameStringList",Uie="RegionNames",jie="ResourceType",Hie="Ramdisk",Vie="Regions",qie="Region",Fie="Reservations",Gie="Reservation",Zie="SupportedAdditionalProcessorFeatureList",Kie="SubnetArn",Qie="SupportedArchitectures",Yie="SupportedBootModes",Xie="SubnetCidrBlockState",Wie="SustainedClockSpeedInGhz",Jm="SourceDestCheck",Jie="SpreadDomain",eae="SupportedFeatures",tae="SubGeography",__="SecurityGroupId",nae="SecurityGroupIdStringList",sae="SecurityGroupIds",rae="SecurityGroupStringList",QP="SecurityGroups",YP="SecurityGroup",oae="SubnetIds",iae="SubnetIpv6CidrBlockAssociation",aae="SubnetIpv6CidrBlockAssociationSet",cae="SizeInGB",lae="SourceImageId",uae="SecondaryInterfaceId",fae="SourceInstanceId",ql="SizeInMiB",dae="SpotInstanceRequestId",hae="SourceImageRegion",pae="StartInstancesRequest",mae="StartInstancesResult",gae="StopInstancesRequest",yae="StopInstancesResult",bae="SnapshotIdStringList",vae="SubnetIdStringList",Sae="SpotInstanceType",XP="SecondaryInterfaces",_ae="SecondaryInterface",ha="SnapshotId",wae="SnapshotIds",Eae="StartingInstances",xae="StartInstances",Rae="StoppingInstances",Cae="StopInstances",pa="SubnetId",Aae="SnapshotLocation",Tae="SnapshotList",Iae="SubnetList",Oae="SpotMarketOptions",w_="StatusMessage",E_="StateMessage",Mae="SecondaryNetworkId",x_="SriovNetSupport",Dae="SecondaryNetworkSupported",kae="SpotOptions",WP="SkipOsShutdown",Pae="SecondaryPrivateIpAddressCount",Nae="SupportedRootDeviceTypes",Lae="SourceRegion",R_="StateReason",zae="SourceSnapshotId",JP="SecondarySubnetId",Bae="SupportedStrategies",eN="StartTime",$ae="StateTransitionReason",tN="SseType",Uae="StorageTier",jae="SupportedUsageClasses",Hae="SensitiveUserData",Vae="SourceVolumeId",qae="SupportedVirtualizationTypes",Fae="SupportedVersions",C_="Size",Gae="Snapshots",Zae="Snapshot",Ts="State",ld="Status",nN="Subnet",Kae="Subnets",xr="Tags",sN="TcpEstablishedTimeout",Qae="TotalFpgaMemoryInMiB",Yae="TotalGpuMemoryInMiB",Xae="TerminateInstances",Wae="TotalInferenceMemoryInMiB",Jae="TerminateInstancesRequest",ece="TerminateInstancesResult",tce="TargetIops",nce="TerminatingInstances",sce="TagList",rce="TargetMultiAttachEnabled",oce="TotalMediaMemoryInMiB",ice="TotalNeuronDeviceMemoryInMiB",rN="ThreadsPerCore",ace="ThreadsPerCoreList",Go="TagSpecifications",cce="TotalSizeInGB",lce="TagSpecificationList",ro="TagSpecification",uce="TargetSize",oN="TpmSupport",fce="TargetThroughput",dce="TransferType",hce="TargetVolumeType",iN="Tag",pce="Tenancy",eg="Throughput",mce="Timestamp",tg="Type",gce="UsageClassTypeList",aN="UserData",cN="UsageOperation",yce="UsageOperationUpdateTime",lN="UdpStreamTimeout",uN="UdpTimeout",Fl="Value",bce="VolumeAttachmentList",vce="VolumeAttachment",Sce="VpcCidrBlockAssociation",_ce="VpcCidrBlockAssociationSet",wce="VpcCidrBlockState",fN="VCpuInfo",Ece="ValidCores",dN="VpcEncryptionControl",xce="VpcEncryptionControlConfiguration",Rce="VpcEncryptionControlExclusion",Cce="VpcEncryptionControlExclusions",Ace="VpcEncryptionControlId",Zo="VpcId",Tce="VpcIpv6CidrBlockAssociation",Ice="VpcIpv6CidrBlockAssociationSet",A_="VolumeInitializationRate",Oce="VolumeIdStringList",Mce="VpcIdStringList",Ys="VolumeId",Dce="VolumeIds",kce="VpcIds",Pce="VpcLattice",Nce="VpcLatticeExclusion",Lce="VolumeList",zce="VpcList",hN="VolumeModification",pN="VirtualName",Bce="VolumeOwnerId",$ce="VpcPeeringExclusion",Uce="VirtualPrivateGateway",jce="VirtualPrivateGatewayExclusion",Hce="VpcPeering",Vce="ValueStringList",mN="VolumeSize",ng="VolumeType",qce="VirtualizationTypeList",Fce="ValidThreadsPerCore",gN="VirtualizationType",Gce="ValidUntil",Zce="Values",yN="Version",Kce="Volumes",Qce="Volume",bN="Vpc",Yce="Vpcs",Xce="WorkloadsList",Wce="Workloads",T_="ZoneId",Jce="ZoneIdStringList",ele="ZoneIds",I_="ZoneName",tle="ZoneNameStringList",nle="ZoneNames",sle="ZoneType",rle="additionalFlexibleNetworkInterfaces",ole="availableIpAddressCount",ile="assignIpv6AddressOnCreation",vN="additionalInfo",O_="associationId",SN="attachmentId",ale="amiLaunchIndex",cle="attachmentLimitType",lle="associatePublicIpAddress",ule="amazonProvidedIpv6CidrBlock",fle="autoRecoverySupported",_N="associatedResource",dle="autoRecovery",hle="amdSevSnp",ple="attachmentSet",sg="attachTime",ud="availabilityZone",M_="availabilityZoneId",mle="availabilityZoneInfo",wN="accelerators",gle="affinity",EN="arn",xN="architecture",RN="association",CN="attachment",yle="attribute",ble="baselineBandwidthInGbps",AN="baselineBandwidthInMbps",rg="blockDeviceMapping",TN="baselineIops",IN="bootMode",vle="bareMetal",ON="blockPublicAccessStates",Sle="burstablePerformanceSupported",MN="baselineThroughputInMBps",_le="bandwidthWeighting",wle="bandwidthWeightings",D_="cidrBlock",Ele="cidrBlockAssociationSet",xle="capacityBlockId",Rle="cidrBlockState",Cle="coreCount",Ale="completionDurationMinutes",Tle="creationDate",Ile="currentGeneration",Ole="carrierIp",Mle="currentInstanceBootMode",Dle="coreInfo",kle="cpuOptions",Ple="customerOwnedIp",Nle="customerOwnedIpv4Pool",DN="capacityReservationId",Lle="capacityReservationPreference",zle="capacityReservationResourceGroupArn",Ble="capacityReservationSpecification",$le="capacityReservationTarget",Ule="currentState",kN="clientToken",jle="connectionTrackingConfiguration",Hle="completionTime",PN="createTime",NN="code",Vle="configured",vc="count",LN="disableApiTermination",qle="defaultCores",Fle="dataEncryptionKeyId",Gle="defaultEnaQueueCountPerInterface",Zle="defaultForAz",Kle="dedicatedHostsSupported",k_="deviceIndex",P_="deviceName",Qle="defaultNetworkCardIndex",Yle="dnsName",Xle="dhcpOptionsId",Sc="deleteOnTermination",Wle="deregistrationProtection",Ct="dryRun",Jle="destinationRegion",eue="defaultThreadsPerCore",tue="deprecationTime",nue="defaultVCpus",fd="description",sue="device",rue="disks",N_="ebsCardIndex",oue="ebsCardSet",iue="encryptionControl",aue="enableDns64",cue="elasticFileSystem",lue="elasticGpuAssociationId",uue="elasticGpuAssociationState",fue="elasticGpuAssociationSet",due="elasticGpuAssociationTime",hue="elasticGpuId",pue="elasticInferenceAcceleratorArn",mue="elasticInferenceAcceleratorAssociationId",gue="elasticInferenceAcceleratorAssociationState",yue="elasticInferenceAcceleratorAssociationSet",bue="elasticInferenceAcceleratorAssociationTime",vue="encryptionInTransitSupported",Sue="ebsInfo",_ue="efaInfo",wue="enableLniAtDeviceIndex",L_="ebsOptimized",Eue="ebsOptimizedInfo",xue="egressOnlyInternetGateway",Rue="ebsOptimizedSupport",Cue="enclaveOptions",Aue="enaQueueCount",S="ec2QueryName",zN="enableResourceNameDnsAAAARecord",BN="enableResourceNameDnsARecord",Tue="enaSrdEnabled",Iue="enaSrdSpecification",Oue="enaSrdSupported",Mue="enaSrdUdpEnabled",Due="enaSrdUdpSpecification",kue="efaSupported",$N="encryptionSupport",og="enaSupport",Pue="endTime",z_="ebs",UN="enabled",dd="encrypted",Nue="flexibleEnaQueuesSupport",Lue="fpgaInfo",zue="fastRestored",Bue="fullSnapshotSizeInBytes",jN="freeTierEligible",$ue="force",Uue="fpgas",jue="gpuInfo",B_="groupId",Hue="groupLongName",$_="groupName",Vue="gpuPartitionSize",HN="geographySet",U_="groupSet",que="gpus",j_="hypervisor",Fue="httpEndpoint",Gue="hostId",Zue="hibernationOptions",Kue="httpProtocolIpv6",Que="httpPutResponseHopLimit",Yue="hostResourceGroupArn",Xue="hibernationSupported",Wue="httpTokens",VN="hostnameType",Jue="id",qN="ipv6AddressAttribute",efe="ipv6AddressCount",tfe="inferenceAcceleratorInfo",nfe="ipv4AddressesPerInterface",sfe="ipv6AddressesPerInterface",rfe="ipv4AddressesPerSecondaryInterface",FN="ipv6AddressesSet",ofe="imageAllowed",ife="ipAddress",GN="ipv6Address",ZN="ipv6CidrBlock",KN="ipv6CidrBlockAssociationSet",QN="ipv6CidrBlockState",afe="isDefault",cfe="internetGateway",lfe="internetGatewayBlockMode",Gl="instanceId",YN="iamInstanceProfile",XN="instanceInitiatedShutdownBehavior",H_="imageId",ufe="imageLocation",ffe="instanceLifecycle",dfe="instanceMetadataTags",hfe="ipv6Native",pfe="imageOwnerAlias",mfe="imageOwnerId",gfe="ipOwnerId",yfe="instanceOwningService",bfe="isPrimaryIpv6",vfe="ipv4PrefixSet",Sfe="ipv6PrefixSet",_fe="ipv4Prefix",wfe="ipv6Pool",Efe="ipv6Prefix",xfe="isPublic",Rfe="instanceStorageInfo",Cfe="instanceStorageSupported",Afe="imagesSet",Tfe="imageState",Ife="imdsSupport",ig="instancesSet",Ofe="instanceState",WN="ipSource",Mfe="ipv6Supported",V_="instanceType",Dfe="instanceTypeSet",kfe="idempotencyToken",Pfe="imageType",JN="instanceTenancy",eL="interfaceType",tL="iops",ke="item",Nfe="key",q_="keyFingerprint",nL="kernelId",ag="kmsKeyId",Lfe="keyMaterial",hd="keyName",cg="keyPairId",zfe="keySet",Bfe="keyType",$fe="kernel",Ufe="licenseConfigurationArn",jfe="logicalGpuCount",Hfe="lastLaunchedTime",Vfe="licenseSet",qfe="launchTime",Ffe="lambda",Gfe="multiAttachEnabled",Zfe="mediaAcceleratorInfo",sL="macAddress",rL="maximumBandwidthInMbps",Kfe="mapCustomerOwnedIpOnLaunch",Qfe="maximumEbsAttachments",Yfe="maximumEbsCards",Xfe="maximumEfaInterfaces",Wfe="maximumEnaQueueCount",Jfe="maximumEnaQueueCountPerInterface",oL="maximumIops",Zl="memoryInfo",ede="maximumNetworkCards",iL="maximumNetworkInterfaces",tde="metadataOptions",nde="maintenanceOptions",sde="mapPublicIpOnLaunch",aL="maxResults",rde="messageSet",ode="maximumSecondaryNetworkInterfaces",ide="modificationState",cL="maximumThroughputInMBps",pd="manufacturer",ade="managed",lL="message",cde="monitoring",lde="mode",Rr="name",uL="networkBorderGroup",ude="networkCards",F_="networkCardIndex",fL="noDevice",fde="neuronDevices",dde="nitroEnclavesSupport",hde="natGateway",dL="networkInterfaceId",pde="networkInterfaceSet",mde="networkInterface",gde="networkInfo",yde="neuronInfo",bde="networkPerformanceOptions",hL="networkPerformance",vde="noReboot",pL="nvmeSupport",Sde="nitroTpmInfo",_de="nitroTpmSupport",Ko="nextToken",wde="nestedVirtualization",md="outpostArn",Ede="ownerAlias",Kl="ownerId",mL="optInStatus",xde="originalIops",Rde="originalMultiAttachEnabled",Cde="originalSize",Ade="originalThroughput",Tde="originalVolumeType",lg="operator",Ide="output",Ode="principal",Mde="peakBandwidthInGbps",gL="productCodes",Dde="productCode",kde="privateDnsNameOptions",Pde="privateDnsNameOptionsOnLaunch",G_="privateDnsName",Nde="publicDnsName",yL="platformDetails",Lde="placementGroupInfo",zde="publicIp",bL="privateIpAddressesSet",Bde="privateIpAddressSet",_c="privateIpAddress",$de="processorInfo",Ude="publicKey",jde="publicKeyMaterial",Hde="partitionNumber",Vde="phcSupport",qde="previousState",Fde="presignedUrl",Gde="parentZoneId",Zde="parentZoneName",vL="platform",Kde="placement",SL="primary",_L="progress",Qde="return",wL="rootDeviceName",EL="rootDeviceType",Yde="restoreExpiryTime",Xde="regionEndpoint",Wde="resourceExclusions",Jde="reservationId",xL="ramdiskId",ehe="regionInfo",the="requesterId",nhe="rebootMigrationSupport",she="rebootMigration",RL="regionName",rhe="reservationSet",ohe="resourceType",ihe="ramdisk",ahe="reason",CL="smithy.ts.sdk.synthetic.com.amazonaws.ec2",che="supportedArchitectures",lhe="subnetArn",uhe="supportedBootModes",fhe="sustainedClockSpeedInGhz",Z_="sourceDestCheck",dhe="spreadDomain",hhe="supportedFeatures",phe="subGeographySet",mhe="sizeInGB",ghe="sourceInstanceId",yhe="secondaryInterfaceId",bhe="sourceImageId",Ql="sizeInMiB",vhe="sourceImageRegion",She="spotInstanceRequestId",_he="secondaryInterfaceSet",ug="snapshotId",fg="subnetId",dg="statusMessage",AL="stateMessage",whe="secondaryNetworkId",Ehe="secondaryNetworkSupported",K_="sriovNetSupport",xhe="secondaryPrivateIpAddressCount",Rhe="supportedRootDeviceTypes",TL="stateReason",Che="secondarySubnetId",Ahe="snapshotSet",The="subnetSet",Ihe="supportedStrategies",IL="startTime",OL="sseType",Ohe="storageTier",Mhe="supportedUsageClasses",Dhe="sourceVolumeId",khe="supportedVirtualizationTypes",Phe="supportedVersions",Nhe="size",ma="state",ga="status",Lhe="subnet",zhe="tenancy",Bhe="tcpEstablishedTimeout",$he="totalFpgaMemoryInMiB",Uhe="totalGpuMemoryInMiB",jhe="totalInferenceMemoryInMiB",Hhe="targetIops",Vhe="targetMultiAttachEnabled",qhe="totalMediaMemoryInMiB",Fhe="totalNeuronDeviceMemoryInMiB",Ghe="threadsPerCore",zr="tagSet",Zhe="totalSizeInGB",Khe="targetSize",ML="tpmSupport",Qhe="targetThroughput",Yhe="transferType",Xhe="targetVolumeType",DL="throughput",Whe="timestamp",Q_="type",Jhe="userData",kL="usageOperation",epe="usageOperationUpdateTime",tpe="udpStreamTimeout",npe="udpTimeout",gd="value",spe="vCpuInfo",rpe="validCores",ope="vpcEncryptionControlId",yd="vpcId",ipe="volumeInitializationRate",Yl="volumeId",ape="vpcLattice",cpe="volumeModification",PL="virtualName",lpe="volumeOwnerId",upe="virtualPrivateGateway",fpe="vpcPeering",dpe="volumeSet",NL="volumeSize",hpe="vpcSet",LL="volumeType",ppe="validThreadsPerCore",zL="virtualizationType",mpe="version",gpe="vpc",ype="workloadSet",y="xmlName",bpe="zoneId",vpe="zoneName",Spe="zoneState",_pe="zoneType",O="com.amazonaws.ec2",BL=ts.for(CL);var wpe=[-3,CL,"EC2ServiceException",0,[],[]];BL.registerError(wpe,$S);const Epe=[BL];var xpe=[0,O,iee,8,0],Rpe=[0,O,Oie,8,0],Cpe=[0,O,Hae,8,0],Ape=[3,O,mJ,0,[QS,ls,Ys,nd,bt],[0,0,0,1,[2,{[S]:"DryRun",[y]:Ct}]],3],ff=[3,O,sJ,0,[Fl],[[2,{[S]:"Value",[y]:gd}]]],df=[3,O,gJ,0,[Fl],[[0,{[S]:"Value",[y]:gd}]]],Tpe=[3,O,la,0,[NP,Eoe,Wm,I_,T_,r_,xP,sle,yie,gie,Lne,H3,tae,Ts],[[0,{[S]:"OptInStatus",[y]:mL}],[()=>Lye,{[S]:"MessageSet",[y]:rde}],[0,{[S]:"RegionName",[y]:RL}],[0,{[S]:"ZoneName",[y]:vpe}],[0,{[S]:"ZoneId",[y]:bpe}],[0,{[S]:"GroupName",[y]:$_}],[0,{[S]:"NetworkBorderGroup",[y]:uL}],[0,{[S]:"ZoneType",[y]:_pe}],[0,{[S]:"ParentZoneName",[y]:Zde}],[0,{[S]:"ParentZoneId",[y]:Gde}],[0,{[S]:"GroupLongName",[y]:Hue}],[()=>Pye,{[S]:"GeographySet",[y]:HN}],[()=>zye,{[S]:"SubGeographySet",[y]:phe}],[0,{[S]:"ZoneState",[y]:Spe}]]],Ipe=[3,O,bJ,0,[Qs],[[0,{[S]:"Name",[y]:Rr}]]],Ope=[3,O,_J,0,[wP],[[0,{[S]:"Message",[y]:lL}]]],Mpe=[3,O,EJ,0,[Qs],[[0,{[S]:"Name",[y]:Rr}]]],Dpe=[3,O,IJ,0,[Fl],[[21,{[S]:"Value",[y]:gd}]]],$L=[3,O,jS,0,[e_,RP,KS,pN],[[()=>Ame,{[S]:"Ebs",[y]:z_}],[0,{[S]:"NoDevice",[y]:fL}],[0,{[S]:"DeviceName",[y]:P_}],[0,{[S]:"VirtualName",[y]:PL}]]],UL=[3,O,HS,0,[lse],[[0,{[S]:"InternetGatewayBlockMode",[y]:lfe}]]],kpe=[3,O,FS,0,[v3,GS],[0,()=>Npe]],Ppe=[3,O,see,0,[v3,GS],[[0,{[S]:"CapacityReservationPreference",[y]:Lle}],[()=>Lpe,{[S]:"CapacityReservationTarget",[y]:$le}]]],Npe=[3,O,GS,0,[qS,S3],[0,0]],Lpe=[3,O,ree,0,[qS,S3],[[0,{[S]:"CapacityReservationId",[y]:DN}],[0,{[S]:"CapacityReservationResourceGroupArn",[y]:zle}]]],zpe=[3,O,vee,0,[sN,lN,uN],[1,1,1]],Bpe=[3,O,See,0,[sN,lN,uN],[[1,{[S]:"TcpEstablishedTimeout",[y]:Bhe}],[1,{[S]:"UdpStreamTimeout",[y]:tpe}],[1,{[S]:"UdpTimeout",[y]:npe}]]],$pe=[3,O,oee,0,[Lae,zae,pc,ete,ote,sd,id,mie,Go,b3,Aee,bt],[0,0,0,0,[0,{[S]:"DestinationRegion",[y]:Jle}],[2,{[S]:"Encrypted",[y]:dd}],[0,{[S]:"KmsKeyId",[y]:ag}],[()=>xpe,{[S]:"PresignedUrl",[y]:Fde}],[()=>Qo,{[y]:ro}],1,0,[2,{[S]:"DryRun",[y]:Ct}]],2],Upe=[3,O,aee,0,[xr,ha],[[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"SnapshotId",[y]:ug}]]],jpe=[3,O,VS,0,[y3,rN,i3,PP],[[1,{[S]:"CoreCount",[y]:Cle}],[1,{[S]:"ThreadsPerCore",[y]:Ghe}],[0,{[S]:"AmdSevSnp",[y]:hle}],[0,{[S]:"NestedVirtualization",[y]:wde}]]],Hpe=[3,O,nee,0,[y3,rN,i3,PP],[1,1,0,0]],Vpe=[3,O,KJ,0,[ls,Qs,Go,Aae,bt,pc,Noe,ed],[[0,{[S]:"InstanceId",[y]:Gl}],[0,{[S]:"Name",[y]:Rr}],[()=>Qo,{[y]:ro}],0,[2,{[S]:"DryRun",[y]:Ct}],[0,{[S]:"Description",[y]:fd}],[2,{[S]:"NoReboot",[y]:vde}],[()=>XL,{[S]:"BlockDeviceMapping",[y]:rg}]],2],qpe=[3,O,QJ,0,[Hl],[[0,{[S]:"ImageId",[y]:H_}]]],Fpe=[3,O,JJ,0,[so,dP,Go,Rre,bt],[0,0,[()=>Qo,{[y]:ro}],0,[2,{[S]:"DryRun",[y]:Ct}]],1],Gpe=[3,O,cee,0,[Ys,pc,da,Go,Jre,bt],[0,0,0,[()=>Qo,{[y]:ro}],0,[2,{[S]:"DryRun",[y]:Ct}]],1],Zpe=[3,O,lee,0,[Zo,Go,la,jl,td,Km,da,nP,J3,rP,W3,sP,bt],[0,[()=>Qo,{[y]:ro}],0,0,0,0,0,2,0,1,0,1,[2,{[S]:"DryRun",[y]:Ct}]],1],Kpe=[3,O,uee,0,[nN],[[()=>ZL,{[S]:"Subnet",[y]:Lhe}]]],Qpe=[3,O,wee,0,[la,jl,sd,Ym,id,da,C_,ha,ng,Go,m_,eg,ZS,A_,Vl,bt],[0,0,[2,{[S]:"Encrypted",[y]:dd}],1,0,0,1,0,0,[()=>Qo,{[y]:ro}],2,1,[0,4],1,()=>HL,[2,{[S]:"DryRun",[y]:Ct}]]],Ype=[3,O,Eee,0,[td,iP,Km,J3,rP,W3,sP,tse,dN,Go,bt,uP,fJ],[0,0,0,0,1,0,1,0,()=>Oye,[()=>Qo,{[y]:ro}],[2,{[S]:"DryRun",[y]:Ct}],[0,{[S]:"InstanceTenancy",[y]:JN}],[2,{[S]:"AmazonProvidedIpv6CidrBlock",[y]:ule}]]],Xpe=[3,O,xee,0,[bN],[[()=>QL,{[S]:"Vpc",[y]:gpe}]]],Wpe=[3,O,fee,0,[VJ],[0],1],Jpe=[3,O,Kee,0,[so,mc,bt],[0,0,[2,{[S]:"DryRun",[y]:Ct}]]],eme=[3,O,Qee,0,[vie,mc],[[2,{[S]:"Return",[y]:Qde}],[0,{[S]:"KeyPairId",[y]:cg}]]],tme=[3,O,ate,0,[ha,bt],[0,[2,{[S]:"DryRun",[y]:Ct}]],1],nme=[3,O,cte,0,[pa,bt],[0,[2,{[S]:"DryRun",[y]:Ct}]],1],sme=[3,O,Ste,0,[Ys,bt],[0,[2,{[S]:"DryRun",[y]:Ct}]],1],rme=[3,O,_te,0,[Zo,bt],[0,[2,{[S]:"DryRun",[y]:Ct}]],1],ome=[3,O,Tee,0,[nle,ele,nJ,bt,no],[[()=>W0e,{[y]:I_}],[()=>X0e,{[y]:T_}],2,[2,{[S]:"DryRun",[y]:Ct}],[()=>oo,{[y]:Er}]]],ime=[3,O,Iee,0,[RJ],[[()=>Nye,{[S]:"AvailabilityZoneInfo",[y]:mle}]]],ame=[3,O,zee,0,[yne,_se,Qoe,nse,ise,yc,As,bt,no],[[()=>Kye,{[y]:C3}],[()=>Wye,{[y]:Hl}],[()=>WL,{[y]:y_}],2,2,1,0,[2,{[S]:"DryRun",[y]:Ct}],[()=>oo,{[y]:Er}]]],cme=[3,O,Bee,0,[As,Sre],[[0,{[S]:"NextToken",[y]:Ko}],[()=>Jye,{[S]:"ImagesSet",[y]:Afe}]]],lme=[3,O,$ee,0,[rd,bt,no,As,yc],[[()=>bd,{[y]:ls}],[2,{[S]:"DryRun",[y]:Ct}],[()=>oo,{[y]:Er}],[0,{[S]:"NextToken",[y]:Ko}],[1,{[S]:"MaxResults",[y]:aL}]]],ume=[3,O,Uee,0,[As,Fie],[[0,{[S]:"NextToken",[y]:Ko}],[()=>O0e,{[S]:"ReservationSet",[y]:rhe}]]],fme=[3,O,jee,0,[bt,fP,no,yc,As],[2,[64,{[y]:od}],[()=>oo,{[y]:Er}],1,0]],dme=[3,O,Hee,0,[fP,As],[[()=>h0e,{[S]:"InstanceTypeSet",[y]:Dfe}],[0,{[S]:"NextToken",[y]:Ko}]]],hme=[3,O,Yee,0,[Tre,Mre,Xse,bt,no],[[()=>g0e,{[y]:so}],[()=>y0e,{[y]:mc}],2,[2,{[S]:"DryRun",[y]:Ct}],[()=>oo,{[y]:Er}]]],pme=[3,O,Xee,0,[Ire],[[()=>b0e,{[S]:"KeySet",[y]:zfe}]]],mme=[3,O,ste,0,[Uie,hJ,bt,no],[[()=>I0e,{[y]:Wm}],2,[2,{[S]:"DryRun",[y]:Ct}],[()=>oo,{[y]:Er}]]],gme=[3,O,rte,0,[Vie],[[()=>T0e,{[S]:"RegionInfo",[y]:ehe}]]],yme=[3,O,lte,0,[yc,As,Uoe,Sie,wae,bt,no],[1,0,[()=>WL,{[y]:y_}],[64,{[y]:_ie}],[()=>k0e,{[y]:ha}],[2,{[S]:"DryRun",[y]:Ct}],[()=>oo,{[y]:Er}]]],bme=[3,O,ute,0,[As,Gae],[[0,{[S]:"NextToken",[y]:Ko}],[()=>P0e,{[S]:"SnapshotSet",[y]:Ahe}]]],vme=[3,O,fte,0,[no,oae,As,yc,bt],[[()=>oo,{[y]:Er}],[()=>N0e,{[y]:pa}],0,1,[2,{[S]:"DryRun",[y]:Ct}]]],Sme=[3,O,dte,0,[As,Kae],[[0,{[S]:"NextToken",[y]:Ko}],[()=>z0e,{[S]:"SubnetSet",[y]:The}]]],_me=[3,O,wte,0,[Dce,bt,no,As,yc],[[()=>q0e,{[y]:Ys}],[2,{[S]:"DryRun",[y]:Ct}],[()=>oo,{[y]:Er}],[0,{[S]:"NextToken",[y]:Ko}],[1,{[S]:"MaxResults",[y]:aL}]]],wme=[3,O,Ete,0,[As,Kce],[[0,{[S]:"NextToken",[y]:Ko}],[()=>F0e,{[S]:"VolumeSet",[y]:dpe}]]],Eme=[3,O,xte,0,[no,kce,As,yc,bt],[[()=>oo,{[y]:Er}],[()=>Z0e,{[y]:Zo}],0,1,[2,{[S]:"DryRun",[y]:Ct}]]],xme=[3,O,Rte,0,[As,Yce],[[0,{[S]:"NextToken",[y]:Ko}],[()=>Q0e,{[S]:"VpcSet",[y]:hpe}]]],Rme=[3,O,Cte,0,[Ys,QS,n_,ls,bt],[0,0,2,0,[2,{[S]:"DryRun",[y]:Ct}]],1],Cme=[3,O,Gee,0,[cae,ua,tg],[[1,{[S]:"SizeInGB",[y]:mhe}],[1,{[S]:"Count",[y]:vc}],[0,{[S]:"Type",[y]:Q_}]]],Ame=[3,O,kte,0,[fa,Ym,ha,mN,ng,id,eg,da,la,sd,A_,jl,nd],[[2,{[S]:"DeleteOnTermination",[y]:Sc}],[1,{[S]:"Iops",[y]:tL}],[0,{[S]:"SnapshotId",[y]:ug}],[1,{[S]:"VolumeSize",[y]:NL}],[0,{[S]:"VolumeType",[y]:LL}],[0,{[S]:"KmsKeyId",[y]:ag}],[1,{[S]:"Throughput",[y]:DL}],[0,{[S]:"OutpostArn",[y]:md}],[0,{[S]:"AvailabilityZone",[y]:ud}],[2,{[S]:"Encrypted",[y]:dd}],1,0,1]],Tme=[3,O,Lte,0,[nd,d3,m3,h3,gP,_P,yP],[[1,{[S]:"EbsCardIndex",[y]:N_}],[1,{[S]:"BaselineBandwidthInMbps",[y]:AN}],[1,{[S]:"BaselineThroughputInMBps",[y]:MN}],[1,{[S]:"BaselineIops",[y]:TN}],[1,{[S]:"MaximumBandwidthInMbps",[y]:rL}],[1,{[S]:"MaximumThroughputInMBps",[y]:cL}],[1,{[S]:"MaximumIops",[y]:oL}]]],Ime=[3,O,O3,0,[une,B3,D3,DP,ioe,lJ,aoe,zte],[[0,{[S]:"EbsOptimizedSupport",[y]:Rue}],[0,{[S]:"EncryptionSupport",[y]:$N}],[()=>Dme,{[S]:"EbsOptimizedInfo",[y]:Eue}],[0,{[S]:"NvmeSupport",[y]:pL}],[1,{[S]:"MaximumEbsAttachments",[y]:Qfe}],[0,{[S]:"AttachmentLimitType",[y]:cle}],[1,{[S]:"MaximumEbsCards",[y]:Yfe}],[()=>Vye,{[S]:"EbsCardSet",[y]:oue}]]],Ome=[3,O,sne,0,[qm,fa,ld,Ys,r3,Bce,Vl,nd],[[4,{[S]:"AttachTime",[y]:sg}],[2,{[S]:"DeleteOnTermination",[y]:Sc}],[0,{[S]:"Status",[y]:ga}],[0,{[S]:"VolumeId",[y]:Yl}],[0,{[S]:"AssociatedResource",[y]:_N}],[0,{[S]:"VolumeOwnerId",[y]:lpe}],[()=>hg,{[S]:"Operator",[y]:lg}],[1,{[S]:"EbsCardIndex",[y]:N_}]]],Mme=[3,O,rne,0,[Ys,fa],[[0,{[S]:"VolumeId",[y]:Yl}],[2,{[S]:"DeleteOnTermination",[y]:Sc}]]],Dme=[3,O,D3,0,[d3,m3,h3,gP,_P,yP],[[1,{[S]:"BaselineBandwidthInMbps",[y]:AN}],[1,{[S]:"BaselineThroughputInMBps",[y]:MN}],[1,{[S]:"BaselineIops",[y]:TN}],[1,{[S]:"MaximumBandwidthInMbps",[y]:rL}],[1,{[S]:"MaximumThroughputInMBps",[y]:cL}],[1,{[S]:"MaximumIops",[y]:oL}]]],kme=[3,O,M3,0,[coe],[[1,{[S]:"MaximumEfaInterfaces",[y]:Xfe}]]],Pme=[3,O,Hte,0,[Kte,Vte,Fte,Gte],[[0,{[S]:"ElasticGpuId",[y]:hue}],[0,{[S]:"ElasticGpuAssociationId",[y]:lue}],[0,{[S]:"ElasticGpuAssociationState",[y]:uue}],[0,{[S]:"ElasticGpuAssociationTime",[y]:due}]]],Nme=[3,O,A3,0,[tg],[0],1],Lme=[3,O,T3,0,[tg,ua],[0,1],1],zme=[3,O,Yte,0,[tne,Xte,Jte,ene],[[0,{[S]:"ElasticInferenceAcceleratorArn",[y]:pue}],[0,{[S]:"ElasticInferenceAcceleratorAssociationId",[y]:mue}],[0,{[S]:"ElasticInferenceAcceleratorAssociationState",[y]:gue}],[4,{[S]:"ElasticInferenceAcceleratorAssociationTime",[y]:bue}]]],Bme=[3,O,dne,0,[P3,z3],[2,()=>$me]],$me=[3,O,pne,0,[L3],[2]],Ume=[3,O,XS,0,[t_],[[2,{[S]:"Enabled",[y]:UN}]]],jme=[3,O,lne,0,[t_],[2]],Hme=[3,O,Er,0,[Qs,Zce],[0,[()=>j0e,{[y]:Fl}]]],Vme=[3,O,vne,0,[Qs,ad,ua,gc],[[0,{[S]:"Name",[y]:Rr}],[0,{[S]:"Manufacturer",[y]:pd}],[1,{[S]:"Count",[y]:vc}],[()=>qme,{[S]:"MemoryInfo",[y]:Zl}]]],qme=[3,O,_ne,0,[ql],[[1,{[S]:"SizeInMiB",[y]:Ql}]]],Fme=[3,O,$3,0,[Cne,Qae],[[()=>Qye,{[S]:"Fpgas",[y]:Uue}],[1,{[S]:"TotalFpgaMemoryInMiB",[y]:$he}]]],Gme=[3,O,Tne,0,[ls,Yre,bt],[0,2,[2,{[S]:"DryRun",[y]:Ct}]],1],Zme=[3,O,Ine,0,[ls,mce,Koe],[[0,{[S]:"InstanceId",[y]:Gl}],[4,{[S]:"Timestamp",[y]:Whe}],[0,{[S]:"Output",[y]:Ide}]]],Kme=[3,O,One,0,[Qs,ad,ua,$re,zne,Wce,gc],[[0,{[S]:"Name",[y]:Rr}],[0,{[S]:"Manufacturer",[y]:pd}],[1,{[S]:"Count",[y]:vc}],[1,{[S]:"LogicalGpuCount",[y]:jfe}],[1,{[S]:"GpuPartitionSize",[y]:Vue}],[()=>Y0e,{[S]:"WorkloadSet",[y]:ype}],[()=>Qme,{[S]:"MemoryInfo",[y]:Zl}]]],Qme=[3,O,Dne,0,[ql],[[1,{[S]:"SizeInMiB",[y]:Ql}]]],Yme=[3,O,j3,0,[Bne,Yae],[[()=>Yye,{[S]:"Gpus",[y]:que}],[1,{[S]:"TotalGpuMemoryInMiB",[y]:Uhe}]]],Xme=[3,O,Nne,0,[s_,r_],[[0,{[S]:"GroupId",[y]:B_}],[0,{[S]:"GroupName",[y]:$_}]]],Wme=[3,O,o_,0,[E3],[[2,{[S]:"Configured",[y]:Vle}]]],Jme=[3,O,Une,0,[E3],[2]],ege=[3,O,u_,0,[c3,qne],[[0,{[S]:"Arn",[y]:EN}],[0,{[S]:"Id",[y]:Jue}]]],tge=[3,O,gse,0,[c3,Qs],[[0,{[S]:"Arn",[y]:EN}],[0,{[S]:"Name",[y]:Rr}]]],nge=[3,O,_re,0,[jP,cN,ed,pc,Gm,a_,Vse,Qs,ZP,KP,x_,R_,xr,gN,p3,oN,bte,pre,fae,nte,jre,Yne,lae,hae,U3,Hl,Rse,Ts,bc,qJ,bie,zP,l3,vre,p_,S_,qP],[[0,{[S]:"PlatformDetails",[y]:yL}],[0,{[S]:"UsageOperation",[y]:kL}],[()=>$ye,{[S]:"BlockDeviceMapping",[y]:rg}],[0,{[S]:"Description",[y]:fd}],[2,{[S]:"EnaSupport",[y]:og}],[0,{[S]:"Hypervisor",[y]:j_}],[0,{[S]:"ImageOwnerAlias",[y]:pfe}],[0,{[S]:"Name",[y]:Rr}],[0,{[S]:"RootDeviceName",[y]:wL}],[0,{[S]:"RootDeviceType",[y]:EL}],[0,{[S]:"SriovNetSupport",[y]:K_}],[()=>GL,{[S]:"StateReason",[y]:TL}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"VirtualizationType",[y]:zL}],[0,{[S]:"BootMode",[y]:IN}],[0,{[S]:"TpmSupport",[y]:ML}],[0,{[S]:"DeprecationTime",[y]:tue}],[0,{[S]:"ImdsSupport",[y]:Ife}],[0,{[S]:"SourceInstanceId",[y]:ghe}],[0,{[S]:"DeregistrationProtection",[y]:Wle}],[0,{[S]:"LastLaunchedTime",[y]:Hfe}],[2,{[S]:"ImageAllowed",[y]:ofe}],[0,{[S]:"SourceImageId",[y]:bhe}],[0,{[S]:"SourceImageRegion",[y]:vhe}],[2,{[S]:"FreeTierEligible",[y]:jN}],[0,{[S]:"ImageId",[y]:H_}],[0,{[S]:"ImageLocation",[y]:ufe}],[0,{[S]:"ImageState",[y]:Tfe}],[0,{[S]:"ImageOwnerId",[y]:mfe}],[0,{[S]:"CreationDate",[y]:Tle}],[2,{[S]:"IsPublic",[y]:xfe}],[()=>JL,{[S]:"ProductCodes",[y]:gL}],[0,{[S]:"Architecture",[y]:xN}],[0,{[S]:"ImageType",[y]:Pfe}],[0,{[S]:"KernelId",[y]:nL}],[0,{[S]:"RamdiskId",[y]:xL}],[0,{[S]:"Platform",[y]:vL}]]],sge=[3,O,Ese,0,[so,fie,Go,bt],[[0,{[S]:"KeyName",[y]:hd}],[21,{[S]:"PublicKeyMaterial",[y]:jde}],[()=>Qo,{[y]:ro}],[2,{[S]:"DryRun",[y]:Ct}]],2],rge=[3,O,xse,0,[h_,so,mc,xr],[[0,{[S]:"KeyFingerprint",[y]:q_}],[0,{[S]:"KeyName",[y]:hd}],[0,{[S]:"KeyPairId",[y]:cg}],[()=>Cr,{[S]:"TagSet",[y]:zr}]]],oge=[3,O,Q3,0,[a3,Wae],[[()=>e0e,{[S]:"Accelerators",[y]:wN}],[1,{[S]:"TotalInferenceMemoryInMiB",[y]:jhe}]]],ige=[3,O,sse,0,[ua,Qs,ad,gc],[[1,{[S]:"Count",[y]:vc}],[0,{[S]:"Name",[y]:Rr}],[0,{[S]:"Manufacturer",[y]:pd}],[()=>age,{[S]:"MemoryInfo",[y]:Zl}]]],age=[3,O,ose,0,[ql],[[1,{[S]:"SizeInMiB",[y]:Ql}]]],cge=[3,O,wre,0,[l3,ed,ZS,YS,Gm,a_,u_,Ase,Zte,nne,AP,da,ZP,KP,QP,Jm,dae,x_,R_,xr,gN,VS,UJ,qS,FS,o_,Wre,vP,XS,p3,jP,cN,yce,BP,l_,oN,SP,ZJ,OP,Vl,XP,ls,Hl,Ts,b_,UP,$ae,so,cJ,zP,od,Qre,v_,p_,S_,qP,g_,pa,Zo,Fo,cie],[[0,{[S]:"Architecture",[y]:xN}],[()=>t0e,{[S]:"BlockDeviceMapping",[y]:rg}],[0,{[S]:"ClientToken",[y]:kN}],[2,{[S]:"EbsOptimized",[y]:L_}],[2,{[S]:"EnaSupport",[y]:og}],[0,{[S]:"Hypervisor",[y]:j_}],[()=>ege,{[S]:"IamInstanceProfile",[y]:YN}],[0,{[S]:"InstanceLifecycle",[y]:ffe}],[()=>qye,{[S]:"ElasticGpuAssociationSet",[y]:fue}],[()=>Gye,{[S]:"ElasticInferenceAcceleratorAssociationSet",[y]:yue}],[()=>i0e,{[S]:"NetworkInterfaceSet",[y]:pde}],[0,{[S]:"OutpostArn",[y]:md}],[0,{[S]:"RootDeviceName",[y]:wL}],[0,{[S]:"RootDeviceType",[y]:EL}],[()=>X_,{[S]:"GroupSet",[y]:U_}],[2,{[S]:"SourceDestCheck",[y]:Z_}],[0,{[S]:"SpotInstanceRequestId",[y]:She}],[0,{[S]:"SriovNetSupport",[y]:K_}],[()=>GL,{[S]:"StateReason",[y]:TL}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"VirtualizationType",[y]:zL}],[()=>jpe,{[S]:"CpuOptions",[y]:kle}],[0,{[S]:"CapacityBlockId",[y]:xle}],[0,{[S]:"CapacityReservationId",[y]:DN}],[()=>Ppe,{[S]:"CapacityReservationSpecification",[y]:Ble}],[()=>Wme,{[S]:"HibernationOptions",[y]:Zue}],[()=>v0e,{[S]:"LicenseSet",[y]:Vfe}],[()=>Sge,{[S]:"MetadataOptions",[y]:tde}],[()=>Ume,{[S]:"EnclaveOptions",[y]:Cue}],[0,{[S]:"BootMode",[y]:IN}],[0,{[S]:"PlatformDetails",[y]:yL}],[0,{[S]:"UsageOperation",[y]:kL}],[4,{[S]:"UsageOperationUpdateTime",[y]:epe}],[()=>iye,{[S]:"PrivateDnsNameOptions",[y]:kde}],[0,{[S]:"Ipv6Address",[y]:GN}],[0,{[S]:"TpmSupport",[y]:ML}],[()=>gge,{[S]:"MaintenanceOptions",[y]:nde}],[0,{[S]:"CurrentInstanceBootMode",[y]:Mle}],[()=>xge,{[S]:"NetworkPerformanceOptions",[y]:bde}],[()=>hg,{[S]:"Operator",[y]:lg}],[()=>l0e,{[S]:"SecondaryInterfaceSet",[y]:_he}],[0,{[S]:"InstanceId",[y]:Gl}],[0,{[S]:"ImageId",[y]:H_}],[()=>Av,{[S]:"InstanceState",[y]:Ofe}],[0,{[S]:"PrivateDnsName",[y]:G_}],[0,{[S]:"DnsName",[y]:Yle}],[0,{[S]:"Reason",[y]:ahe}],[0,{[S]:"KeyName",[y]:hd}],[1,{[S]:"AmiLaunchIndex",[y]:ale}],[()=>JL,{[S]:"ProductCodes",[y]:gL}],[0,{[S]:"InstanceType",[y]:V_}],[4,{[S]:"LaunchTime",[y]:qfe}],[()=>VL,{[S]:"Placement",[y]:Kde}],[0,{[S]:"KernelId",[y]:nL}],[0,{[S]:"RamdiskId",[y]:xL}],[0,{[S]:"Platform",[y]:vL}],[()=>Qge,{[S]:"Monitoring",[y]:cde}],[0,{[S]:"SubnetId",[y]:fg}],[0,{[S]:"VpcId",[y]:yd}],[0,{[S]:"PrivateIpAddress",[y]:_c}],[0,{[S]:"IpAddress",[y]:ife}]]],lge=[3,O,Fne,0,[P3,z3],[[2,{[S]:"EnaSrdEnabled",[y]:Tue}],[()=>uge,{[S]:"EnaSrdUdpSpecification",[y]:Due}]]],uge=[3,O,Gne,0,[L3],[[2,{[S]:"EnaSrdUdpEnabled",[y]:Mue}]]],fge=[3,O,Xne,0,[KS,e_],[[0,{[S]:"DeviceName",[y]:P_}],[()=>Ome,{[S]:"Ebs",[y]:z_}]]],dge=[3,O,Jne,0,[KS,e_,pN,RP],[[0,{[S]:"DeviceName",[y]:P_}],[()=>Mme,{[S]:"Ebs",[y]:z_}],[0,{[S]:"VirtualName",[y]:PL}],[0,{[S]:"NoDevice",[y]:fL}]]],hge=[3,O,yse,0,[d_],[[0,{[S]:"Ipv4Prefix",[y]:_fe}]]],pge=[3,O,fse,0,[l_,Yse],[[0,{[S]:"Ipv6Address",[y]:GN}],[2,{[S]:"IsPrimaryIpv6",[y]:bfe}]]],mge=[3,O,bse,0,[f_],[[0,{[S]:"Ipv6Prefix",[y]:Efe}]]],gge=[3,O,Ise,0,[o3,Bie],[[0,{[S]:"AutoRecovery",[y]:dle}],[0,{[S]:"RebootMigration",[y]:she}]]],yge=[3,O,Ose,0,[o3],[0]],bge=[3,O,Mse,0,[boe,kae],[0,()=>mye]],vge=[3,O,Dse,0,[G3,F3,V3,q3,tP],[0,1,0,0,0]],Sge=[3,O,kse,0,[Ts,G3,F3,V3,q3,tP],[[0,{[S]:"State",[y]:ma}],[0,{[S]:"HttpTokens",[y]:Wue}],[1,{[S]:"HttpPutResponseHopLimit",[y]:Que}],[0,{[S]:"HttpEndpoint",[y]:Fue}],[0,{[S]:"HttpProtocolIpv6",[y]:Kue}],[0,{[S]:"InstanceMetadataTags",[y]:dfe}]]],_ge=[3,O,Nse,0,[u3,f3,pc,Zm,c_,mP,CP,bc,b_,Fo,Xm,Jm,ld,pa,Zo,Qm,aP,oP,yee,Vl],[[()=>jL,{[S]:"Association",[y]:RN}],[()=>wge,{[S]:"Attachment",[y]:CN}],[0,{[S]:"Description",[y]:fd}],[()=>X_,{[S]:"GroupSet",[y]:U_}],[()=>W_,{[S]:"Ipv6AddressesSet",[y]:FN}],[0,{[S]:"MacAddress",[y]:sL}],[0,{[S]:"NetworkInterfaceId",[y]:dL}],[0,{[S]:"OwnerId",[y]:Kl}],[0,{[S]:"PrivateDnsName",[y]:G_}],[0,{[S]:"PrivateIpAddress",[y]:_c}],[()=>c0e,{[S]:"PrivateIpAddressesSet",[y]:bL}],[2,{[S]:"SourceDestCheck",[y]:Z_}],[0,{[S]:"Status",[y]:ga}],[0,{[S]:"SubnetId",[y]:fg}],[0,{[S]:"VpcId",[y]:yd}],[0,{[S]:"InterfaceType",[y]:eL}],[()=>s0e,{[S]:"Ipv4PrefixSet",[y]:vfe}],[()=>r0e,{[S]:"Ipv6PrefixSet",[y]:Sfe}],[()=>Bpe,{[S]:"ConnectionTrackingConfiguration",[y]:jle}],[()=>hg,{[S]:"Operator",[y]:lg}]]],jL=[3,O,Lse,0,[GJ,eee,qse,UP,rie],[[0,{[S]:"CarrierIp",[y]:Ole}],[0,{[S]:"CustomerOwnedIp",[y]:Ple}],[0,{[S]:"IpOwnerId",[y]:gfe}],[0,{[S]:"PublicDnsName",[y]:Nde}],[0,{[S]:"PublicIp",[y]:zde}]]],wge=[3,O,zse,0,[qm,s3,fa,Fm,ld,cd,N3,k3],[[4,{[S]:"AttachTime",[y]:sg}],[0,{[S]:"AttachmentId",[y]:SN}],[2,{[S]:"DeleteOnTermination",[y]:Sc}],[1,{[S]:"DeviceIndex",[y]:k_}],[0,{[S]:"Status",[y]:ga}],[1,{[S]:"NetworkCardIndex",[y]:F_}],[()=>lge,{[S]:"EnaSrdSpecification",[y]:Iue}],[1,{[S]:"EnaQueueCount",[y]:Aue}]]],Ege=[3,O,$se,0,[uJ,fa,pc,Fm,Zm,K3,c_,CP,Fo,Xm,Pae,pa,rJ,Qm,cd,aP,Zse,oP,Gse,lie,N3,bee,k3],[[2,{[S]:"AssociatePublicIpAddress",[y]:lle}],[2,{[S]:"DeleteOnTermination",[y]:Sc}],[0,{[S]:"Description",[y]:fd}],[1,{[S]:"DeviceIndex",[y]:k_}],[()=>ez,{[y]:__}],[1,{[S]:"Ipv6AddressCount",[y]:efe}],[()=>W_,{[S]:"Ipv6Addresses",[y]:FN}],[0,{[S]:"NetworkInterfaceId",[y]:dL}],[0,{[S]:"PrivateIpAddress",[y]:_c}],[()=>C0e,{[S]:"PrivateIpAddresses",[y]:bL}],[1,{[S]:"SecondaryPrivateIpAddressCount",[y]:xhe}],[0,{[S]:"SubnetId",[y]:fg}],2,0,1,[()=>p0e,{[y]:d_}],1,[()=>m0e,{[y]:f_}],1,2,()=>Bme,()=>zpe,1]],xge=[3,O,jse,0,[g3],[[0,{[S]:"BandwidthWeighting",[y]:_le}]]],Rge=[3,O,Hse,0,[g3],[0]],Cge=[3,O,Kse,0,[u3,FP,b_,Fo],[[()=>jL,{[S]:"Association",[y]:RN}],[2,{[S]:"Primary",[y]:SL}],[0,{[S]:"PrivateDnsName",[y]:G_}],[0,{[S]:"PrivateIpAddress",[y]:_c}]]],Age=[3,O,dre,0,[f3,mP,uae,bc,Xm,Jm,ld,JP,Mae,Qm],[[()=>Tge,{[S]:"Attachment",[y]:CN}],[0,{[S]:"MacAddress",[y]:sL}],[0,{[S]:"SecondaryInterfaceId",[y]:yhe}],[0,{[S]:"OwnerId",[y]:Kl}],[()=>u0e,{[S]:"PrivateIpAddressSet",[y]:Bde}],[2,{[S]:"SourceDestCheck",[y]:Z_}],[0,{[S]:"Status",[y]:ga}],[0,{[S]:"SecondarySubnetId",[y]:Che}],[0,{[S]:"SecondaryNetworkId",[y]:whe}],[0,{[S]:"InterfaceType",[y]:eL}]]],Tge=[3,O,rre,0,[qm,s3,fa,Fm,ld,cd],[[4,{[S]:"AttachTime",[y]:sg}],[0,{[S]:"AttachmentId",[y]:SN}],[2,{[S]:"DeleteOnTermination",[y]:Sc}],[1,{[S]:"DeviceIndex",[y]:k_}],[0,{[S]:"Status",[y]:ga}],[1,{[S]:"NetworkCardIndex",[y]:F_}]]],Ige=[3,O,ire,0,[Fo],[[0,{[S]:"PrivateIpAddress",[y]:_c}]]],Oge=[3,O,lre,0,[Fo],[0],1],Mge=[3,O,fre,0,[fa,Fm,Xm,oie,JP,Qm,cd],[2,1,[()=>f0e,{[y]:Fo}],1,0,0,1]],Av=[3,O,mre,0,[w3,Qs],[[1,{[S]:"Code",[y]:NN}],[0,{[S]:"Name",[y]:Rr}]]],Dge=[3,O,nre,0,[ls,gee,pie],[[0,{[S]:"InstanceId",[y]:Gl}],[()=>Av,{[S]:"CurrentState",[y]:Ule}],[()=>Av,{[S]:"PreviousState",[y]:qde}]]],kge=[3,O,cP,0,[cce,Dte,DP,B3],[[1,{[S]:"TotalSizeInGB",[y]:Zhe}],[()=>Hye,{[S]:"Disks",[y]:rue}],[0,{[S]:"NvmeSupport",[y]:pL}],[0,{[S]:"EncryptionSupport",[y]:$N}]]],Pge=[3,O,bre,0,[od,FJ,U3,jae,Nae,qae,NJ,a_,VP,fN,gc,hre,cP,O3,TP,j3,$3,HP,Q3,Hne,LJ,Nee,dJ,Yie,Doe,Loe,kP,pP,IP,hie,zie],[[0,{[S]:"InstanceType",[y]:V_}],[2,{[S]:"CurrentGeneration",[y]:Ile}],[2,{[S]:"FreeTierEligible",[y]:jN}],[()=>U0e,{[S]:"SupportedUsageClasses",[y]:Mhe}],[()=>M0e,{[S]:"SupportedRootDeviceTypes",[y]:Rhe}],[()=>H0e,{[S]:"SupportedVirtualizationTypes",[y]:khe}],[2,{[S]:"BareMetal",[y]:vle}],[0,{[S]:"Hypervisor",[y]:j_}],[()=>cye,{[S]:"ProcessorInfo",[y]:$de}],[()=>Cye,{[S]:"VCpuInfo",[y]:spe}],[()=>Fge,{[S]:"MemoryInfo",[y]:Zl}],[2,{[S]:"InstanceStorageSupported",[y]:Cfe}],[()=>kge,{[S]:"InstanceStorageInfo",[y]:Rfe}],[()=>Ime,{[S]:"EbsInfo",[y]:Sue}],[()=>Xge,{[S]:"NetworkInfo",[y]:gde}],[()=>Yme,{[S]:"GpuInfo",[y]:jue}],[()=>Fme,{[S]:"FpgaInfo",[y]:Lue}],[()=>sye,{[S]:"PlacementGroupInfo",[y]:Lde}],[()=>oge,{[S]:"InferenceAcceleratorInfo",[y]:tfe}],[2,{[S]:"HibernationSupported",[y]:Xue}],[2,{[S]:"BurstablePerformanceSupported",[y]:Sle}],[2,{[S]:"DedicatedHostsSupported",[y]:Kle}],[2,{[S]:"AutoRecoverySupported",[y]:fle}],[()=>Uye,{[S]:"SupportedBootModes",[y]:uhe}],[0,{[S]:"NitroEnclavesSupport",[y]:dde}],[0,{[S]:"NitroTpmSupport",[y]:_de}],[()=>nye,{[S]:"NitroTpmInfo",[y]:Sde}],[()=>Hge,{[S]:"MediaAcceleratorInfo",[y]:Zfe}],[()=>tye,{[S]:"NeuronInfo",[y]:yde}],[0,{[S]:"PhcSupport",[y]:Vde}],[0,{[S]:"RebootMigrationSupport",[y]:nhe}]]],Nge=[3,O,ere,0,[d_],[0]],Lge=[3,O,tre,0,[f_],[0]],zge=[3,O,Pre,0,[mc,xr,so,h_,Cre],[[0,{[S]:"KeyPairId",[y]:cg}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"KeyName",[y]:hd}],[0,{[S]:"KeyFingerprint",[y]:q_}],[()=>Cpe,{[S]:"KeyMaterial",[y]:Lfe}]]],Bge=[3,O,Dre,0,[mc,dP,xr,uie,_3,so,h_],[[0,{[S]:"KeyPairId",[y]:cg}],[0,{[S]:"KeyType",[y]:Bfe}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"PublicKey",[y]:Ude}],[4,{[S]:"CreateTime",[y]:PN}],[0,{[S]:"KeyName",[y]:hd}],[0,{[S]:"KeyFingerprint",[y]:q_}]]],$ge=[3,O,Kre,0,[Gre,Zre,yN],[0,0,0]],Uge=[3,O,zre,0,[hP],[[0,{[S]:"LicenseConfigurationArn",[y]:Ufe}]]],jge=[3,O,Lre,0,[hP],[0]],Hge=[3,O,pP,0,[a3,oce],[[()=>_0e,{[S]:"Accelerators",[y]:wN}],[1,{[S]:"TotalMediaMemoryInMiB",[y]:qhe}]]],Vge=[3,O,soe,0,[ua,Qs,ad,gc],[[1,{[S]:"Count",[y]:vc}],[0,{[S]:"Name",[y]:Rr}],[0,{[S]:"Manufacturer",[y]:pd}],[()=>qge,{[S]:"MemoryInfo",[y]:Zl}]]],qge=[3,O,ooe,0,[ql],[[1,{[S]:"SizeInMiB",[y]:Ql}]]],Fge=[3,O,gc,0,[ql],[[1,{[S]:"SizeInMiB",[y]:Ql}]]],Gge=[3,O,foe,0,[ls,Jm,x3,bt,AJ,Fl,ed,R3,od,Nre,Hie,aN,eP,Zm,YS,x_,Gm],[[0,{[S]:"InstanceId",[y]:Gl}],[()=>ff,0],[()=>ff,0],[2,{[S]:"DryRun",[y]:Ct}],[0,{[S]:"Attribute",[y]:yle}],[0,{[S]:"Value",[y]:gd}],[()=>n0e,{[S]:"BlockDeviceMapping",[y]:rg}],[()=>ff,{[S]:"DisableApiTermination",[y]:LN}],[()=>df,{[S]:"InstanceType",[y]:V_}],[()=>df,{[S]:"Kernel",[y]:$fe}],[()=>df,{[S]:"Ramdisk",[y]:ihe}],[()=>Dpe,{[S]:"UserData",[y]:Jhe}],[()=>df,{[S]:"InstanceInitiatedShutdownBehavior",[y]:XN}],[()=>Xye,{[y]:s_}],[()=>ff,{[S]:"EbsOptimized",[y]:L_}],[()=>df,{[S]:"SriovNetSupport",[y]:K_}],[()=>ff,{[S]:"EnaSupport",[y]:og}]],1],Zge=[3,O,voe,0,[Ys,bt,C_,ng,Ym,eg,m_],[0,2,1,0,1,1,2],1],Kge=[3,O,Soe,0,[hN],[[()=>Aye,{[S]:"VolumeModification",[y]:cpe}]]],Qge=[3,O,g_,0,[Ts],[[0,{[S]:"State",[y]:ma}]]],Yge=[3,O,Coe,0,[cd,MP,bP,oJ,OJ,Yoe,kee,loe,uoe],[[1,{[S]:"NetworkCardIndex",[y]:F_}],[0,{[S]:"NetworkPerformance",[y]:hL}],[1,{[S]:"MaximumNetworkInterfaces",[y]:iL}],[1,{[S]:"AdditionalFlexibleNetworkInterfaces",[y]:rle}],[1,{[S]:"BaselineBandwidthInGbps",[y]:ble}],[1,{[S]:"PeakBandwidthInGbps",[y]:Mde}],[1,{[S]:"DefaultEnaQueueCountPerInterface",[y]:Gle}],[1,{[S]:"MaximumEnaQueueCount",[y]:Wfe}],[1,{[S]:"MaximumEnaQueueCountPerInterface",[y]:Jfe}]]],Xge=[3,O,TP,0,[MP,bP,hoe,Jee,xoe,Zne,Kne,gre,Gm,mne,M3,one,hne,BJ,wne,Dae,goe,Qne],[[0,{[S]:"NetworkPerformance",[y]:hL}],[1,{[S]:"MaximumNetworkInterfaces",[y]:iL}],[1,{[S]:"MaximumNetworkCards",[y]:ede}],[1,{[S]:"DefaultNetworkCardIndex",[y]:Qle}],[()=>w0e,{[S]:"NetworkCards",[y]:ude}],[1,{[S]:"Ipv4AddressesPerInterface",[y]:nfe}],[1,{[S]:"Ipv6AddressesPerInterface",[y]:sfe}],[2,{[S]:"Ipv6Supported",[y]:Mfe}],[0,{[S]:"EnaSupport",[y]:og}],[2,{[S]:"EfaSupported",[y]:kue}],[()=>kme,{[S]:"EfaInfo",[y]:_ue}],[2,{[S]:"EncryptionInTransitSupported",[y]:vue}],[2,{[S]:"EnaSrdSupported",[y]:Oue}],[()=>Bye,{[S]:"BandwidthWeightings",[y]:wle}],[0,{[S]:"FlexibleEnaQueuesSupport",[y]:Nue}],[2,{[S]:"SecondaryNetworkSupported",[y]:Ehe}],[1,{[S]:"MaximumSecondaryNetworkInterfaces",[y]:ode}],[1,{[S]:"Ipv4AddressesPerSecondaryInterface",[y]:rfe}]]],Wge=[3,O,Aoe,0,[ua,yN],[[1,{[S]:"Count",[y]:vc}],[1,{[S]:"Version",[y]:mpe}]]],Jge=[3,O,Toe,0,[ua,Qs,YJ,gc],[[1,{[S]:"Count",[y]:vc}],[0,{[S]:"Name",[y]:Rr}],[()=>Wge,{[S]:"CoreInfo",[y]:Dle}],[()=>eye,{[S]:"MemoryInfo",[y]:Zl}]]],eye=[3,O,Ooe,0,[ql],[[1,{[S]:"SizeInMiB",[y]:Ql}]]],tye=[3,O,IP,0,[Moe,ice],[[()=>E0e,{[S]:"NeuronDevices",[y]:fde}],[1,{[S]:"TotalNeuronDeviceMemoryInMiB",[y]:Fhe}]]],nye=[3,O,kP,0,[Fae],[[()=>x0e,{[S]:"SupportedVersions",[y]:Phe}]]],HL=[3,O,Hoe,0,[LP],[0]],hg=[3,O,Voe,0,[woe,LP],[[2,{[S]:"Managed",[y]:ade}],[0,{[S]:"Principal",[y]:Ode}]]],VL=[3,O,v_,0,[jl,CJ,r_,die,$ne,pce,Jie,jne,s_,la],[[0,{[S]:"AvailabilityZoneId",[y]:M_}],[0,{[S]:"Affinity",[y]:gle}],[0,{[S]:"GroupName",[y]:$_}],[1,{[S]:"PartitionNumber",[y]:Hde}],[0,{[S]:"HostId",[y]:Gue}],[0,{[S]:"Tenancy",[y]:zhe}],[0,{[S]:"SpreadDomain",[y]:dhe}],[0,{[S]:"HostResourceGroupArn",[y]:Yue}],[0,{[S]:"GroupId",[y]:B_}],[0,{[S]:"AvailabilityZone",[y]:ud}]]],sye=[3,O,HP,0,[Bae],[[()=>R0e,{[S]:"SupportedStrategies",[y]:Ihe}]]],rye=[3,O,$P,0,[i_,JS,WS],[[0,{[S]:"HostnameType",[y]:VN}],[2,{[S]:"EnableResourceNameDnsARecord",[y]:BN}],[2,{[S]:"EnableResourceNameDnsAAAARecord",[y]:zN}]]],oye=[3,O,tie,0,[i_,JS,WS],[0,2,2]],iye=[3,O,nie,0,[i_,JS,WS],[[0,{[S]:"HostnameType",[y]:VN}],[2,{[S]:"EnableResourceNameDnsARecord",[y]:BN}],[2,{[S]:"EnableResourceNameDnsAAAARecord",[y]:zN}]]],aye=[3,O,iie,0,[FP,Fo],[[2,{[S]:"Primary",[y]:SL}],[0,{[S]:"PrivateIpAddress",[y]:_c}]]],cye=[3,O,VP,0,[Qie,Wie,eae,ad],[[()=>kye,{[S]:"SupportedArchitectures",[y]:che}],[1,{[S]:"SustainedClockSpeedInGhz",[y]:fhe}],[()=>B0e,{[S]:"SupportedFeatures",[y]:hhe}],[0,{[S]:"Manufacturer",[y]:pd}]]],lye=[3,O,eie,0,[Xoe,Joe],[[0,{[S]:"ProductCode",[y]:Dde}],[0,{[S]:"Type",[y]:Q_}]]],uye=[3,O,Tie,0,[rd,bt],[[()=>bd,{[y]:ls}],[2,{[S]:"DryRun",[y]:Ct}]],1],fye=[3,O,qie,0,[NP,H3,Wm,bne],[[0,{[S]:"OptInStatus",[y]:mL}],[()=>A0e,{[S]:"GeographySet",[y]:HN}],[0,{[S]:"RegionName",[y]:RL}],[0,{[S]:"RegionEndpoint",[y]:Xde}]]],dye=[3,O,Rie,0,[Qs],[[0,{[S]:"Name",[y]:Rr}]]],qL=[3,O,Gie,0,[Mie,bc,kie,Zm,Ere],[[0,{[S]:"ReservationId",[y]:Jde}],[0,{[S]:"OwnerId",[y]:Kl}],[0,{[S]:"RequesterId",[y]:the}],[()=>X_,{[S]:"GroupSet",[y]:U_}],[()=>o0e,{[S]:"InstancesSet",[y]:ig}]]],hye=[3,O,Aie,0,[t_],[[2,{[S]:"Enabled",[y]:UN}]],1],pye=[3,O,Iie,0,[toe,noe,ed,Hl,od,K3,c_,p_,so,g_,v_,S_,sae,QP,pa,aN,A3,I3,Go,Fre,Pse,hee,VS,FS,o_,Hre,vP,XS,BP,SP,x3,fne,OP,Vl,XP,bt,R3,eP,Fo,ZS,n3,AP,u_,YS],[1,1,[()=>XL,{[y]:jS}],0,0,1,[()=>W_,{[y]:l_}],0,0,[()=>hye,0],[()=>VL,0],0,[()=>ez,{[y]:__}],[()=>D0e,{[y]:YP}],0,[()=>Rpe,0],[()=>Fye,0],[()=>Zye,{[y]:T3}],[()=>Qo,{[y]:ro}],()=>$ge,()=>bge,()=>Wpe,()=>Hpe,()=>kpe,()=>Jme,[()=>S0e,{[y]:qre}],()=>vge,()=>jme,()=>oye,()=>yge,2,2,()=>Rge,()=>HL,[()=>d0e,{[y]:_ae}],[2,{[S]:"DryRun",[y]:Ct}],[2,{[S]:"DisableApiTermination",[y]:LN}],[0,{[S]:"InstanceInitiatedShutdownBehavior",[y]:XN}],[0,{[S]:"PrivateIpAddress",[y]:_c}],[0,{[S]:"ClientToken",[kfe]:1,[y]:kN}],[0,{[S]:"AdditionalInfo",[y]:vN}],[()=>a0e,{[S]:"NetworkInterface",[y]:mde}],[()=>tge,{[S]:"IamInstanceProfile",[y]:YN}],[2,{[S]:"EbsOptimized",[y]:L_}]],2],FL=[3,O,Zae,0,[Boe,da,xr,Uae,Eie,tN,la,dce,b3,_ee,Rne,ha,Ys,Ts,E_,eN,GP,bc,pc,mN,sd,id,Dee],[[0,{[S]:"OwnerAlias",[y]:Ede}],[0,{[S]:"OutpostArn",[y]:md}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"StorageTier",[y]:Ohe}],[4,{[S]:"RestoreExpiryTime",[y]:Yde}],[0,{[S]:"SseType",[y]:OL}],[0,{[S]:"AvailabilityZone",[y]:ud}],[0,{[S]:"TransferType",[y]:Yhe}],[1,{[S]:"CompletionDurationMinutes",[y]:Ale}],[4,{[S]:"CompletionTime",[y]:Hle}],[1,{[S]:"FullSnapshotSizeInBytes",[y]:Bue}],[0,{[S]:"SnapshotId",[y]:ug}],[0,{[S]:"VolumeId",[y]:Yl}],[0,{[S]:"Status",[y]:ga}],[0,{[S]:"StatusMessage",[y]:dg}],[4,{[S]:"StartTime",[y]:IL}],[0,{[S]:"Progress",[y]:_L}],[0,{[S]:"OwnerId",[y]:Kl}],[0,{[S]:"Description",[y]:fd}],[1,{[S]:"VolumeSize",[y]:NL}],[2,{[S]:"Encrypted",[y]:dd}],[0,{[S]:"KmsKeyId",[y]:ag}],[0,{[S]:"DataEncryptionKeyId",[y]:Fle}]]],mye=[3,O,Oae,0,[moe,Sae,kJ,Gce,hse],[0,0,1,4,0]],gye=[3,O,pae,0,[rd,n3,bt],[[()=>bd,{[y]:ls}],[0,{[S]:"AdditionalInfo",[y]:vN}],[2,{[S]:"DryRun",[y]:Ct}]],1],yye=[3,O,mae,0,[Eae],[[()=>J_,{[S]:"InstancesSet",[y]:ig}]]],GL=[3,O,R_,0,[w3,wP],[[0,{[S]:"Code",[y]:NN}],[0,{[S]:"Message",[y]:lL}]]],bye=[3,O,gae,0,[rd,Vne,WP,bt,n_],[[()=>bd,{[y]:ls}],2,2,[2,{[S]:"DryRun",[y]:Ct}],[2,{[S]:"Force",[y]:$ue}]],1],vye=[3,O,yae,0,[Rae],[[()=>J_,{[S]:"InstancesSet",[y]:ig}]]],ZL=[3,O,nN,0,[jl,ine,eoe,tee,bc,aJ,Y3,xr,Kie,da,$te,nP,$P,HS,tg,pa,Ts,Zo,td,iJ,la,Pee,poe],[[0,{[S]:"AvailabilityZoneId",[y]:M_}],[1,{[S]:"EnableLniAtDeviceIndex",[y]:wue}],[2,{[S]:"MapCustomerOwnedIpOnLaunch",[y]:Kfe}],[0,{[S]:"CustomerOwnedIpv4Pool",[y]:Nle}],[0,{[S]:"OwnerId",[y]:Kl}],[2,{[S]:"AssignIpv6AddressOnCreation",[y]:ile}],[()=>L0e,{[S]:"Ipv6CidrBlockAssociationSet",[y]:KN}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"SubnetArn",[y]:lhe}],[0,{[S]:"OutpostArn",[y]:md}],[2,{[S]:"EnableDns64",[y]:aue}],[2,{[S]:"Ipv6Native",[y]:hfe}],[()=>rye,{[S]:"PrivateDnsNameOptionsOnLaunch",[y]:Pde}],[()=>UL,{[S]:"BlockPublicAccessStates",[y]:ON}],[0,{[S]:"Type",[y]:Q_}],[0,{[S]:"SubnetId",[y]:fg}],[0,{[S]:"State",[y]:ma}],[0,{[S]:"VpcId",[y]:yd}],[0,{[S]:"CidrBlock",[y]:D_}],[1,{[S]:"AvailableIpAddressCount",[y]:ole}],[0,{[S]:"AvailabilityZone",[y]:ud}],[2,{[S]:"DefaultForAz",[y]:Zle}],[2,{[S]:"MapPublicIpOnLaunch",[y]:sde}]]],Sye=[3,O,Xie,0,[Ts,w_],[[0,{[S]:"State",[y]:ma}],[0,{[S]:"StatusMessage",[y]:dg}]]],_ye=[3,O,iae,0,[US,Km,X3,Z3,lP],[[0,{[S]:"AssociationId",[y]:O_}],[0,{[S]:"Ipv6CidrBlock",[y]:ZN}],[()=>Sye,{[S]:"Ipv6CidrBlockState",[y]:QN}],[0,{[S]:"Ipv6AddressAttribute",[y]:qN}],[0,{[S]:"IpSource",[y]:WN}]]],wye=[3,O,iN,0,[xre,Fl],[[0,{[S]:"Key",[y]:Nfe}],[0,{[S]:"Value",[y]:gd}]]],Eye=[3,O,ro,0,[jie,xr],[[0,{[S]:"ResourceType",[y]:ohe}],[()=>Cr,{[y]:iN}]]],xye=[3,O,Jae,0,[rd,n_,WP,bt],[[()=>bd,{[y]:ls}],2,2,[2,{[S]:"DryRun",[y]:Ct}]],1],Rye=[3,O,ece,0,[nce],[[()=>J_,{[S]:"InstancesSet",[y]:ig}]]],Cye=[3,O,fN,0,[vte,Mee,yte,Ece,Fce],[[1,{[S]:"DefaultVCpus",[y]:nue}],[1,{[S]:"DefaultCores",[y]:qle}],[1,{[S]:"DefaultThreadsPerCore",[y]:eue}],[()=>jye,{[S]:"ValidCores",[y]:rpe}],[()=>$0e,{[S]:"ValidThreadsPerCore",[y]:ppe}]]],KL=[3,O,Qce,0,[jl,da,Vae,Ym,xr,ng,xne,m_,eg,tN,Vl,A_,Ys,C_,ha,la,Ts,_3,TJ,sd,id],[[0,{[S]:"AvailabilityZoneId",[y]:M_}],[0,{[S]:"OutpostArn",[y]:md}],[0,{[S]:"SourceVolumeId",[y]:Dhe}],[1,{[S]:"Iops",[y]:tL}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[0,{[S]:"VolumeType",[y]:LL}],[2,{[S]:"FastRestored",[y]:zue}],[2,{[S]:"MultiAttachEnabled",[y]:Gfe}],[1,{[S]:"Throughput",[y]:DL}],[0,{[S]:"SseType",[y]:OL}],[()=>hg,{[S]:"Operator",[y]:lg}],[1,{[S]:"VolumeInitializationRate",[y]:ipe}],[0,{[S]:"VolumeId",[y]:Yl}],[1,{[S]:"Size",[y]:Nhe}],[0,{[S]:"SnapshotId",[y]:ug}],[0,{[S]:"AvailabilityZone",[y]:ud}],[0,{[S]:"Status",[y]:ga}],[4,{[S]:"CreateTime",[y]:PN}],[()=>V0e,{[S]:"AttachmentSet",[y]:ple}],[2,{[S]:"Encrypted",[y]:dd}],[0,{[S]:"KmsKeyId",[y]:ag}]]],Y_=[3,O,vce,0,[fa,r3,Fse,nd,Ys,ls,QS,Ts,qm],[[2,{[S]:"DeleteOnTermination",[y]:Sc}],[0,{[S]:"AssociatedResource",[y]:_N}],[0,{[S]:"InstanceOwningService",[y]:yfe}],[1,{[S]:"EbsCardIndex",[y]:N_}],[0,{[S]:"VolumeId",[y]:Yl}],[0,{[S]:"InstanceId",[y]:Gl}],[0,{[S]:"Device",[y]:sue}],[0,{[S]:"Status",[y]:ga}],[4,{[S]:"AttachTime",[y]:sg}]]],Aye=[3,O,hN,0,[Ys,yoe,w_,uce,tce,hce,fce,rce,Foe,$oe,Zoe,Goe,joe,GP,eN,gne],[[0,{[S]:"VolumeId",[y]:Yl}],[0,{[S]:"ModificationState",[y]:ide}],[0,{[S]:"StatusMessage",[y]:dg}],[1,{[S]:"TargetSize",[y]:Khe}],[1,{[S]:"TargetIops",[y]:Hhe}],[0,{[S]:"TargetVolumeType",[y]:Xhe}],[1,{[S]:"TargetThroughput",[y]:Qhe}],[2,{[S]:"TargetMultiAttachEnabled",[y]:Vhe}],[1,{[S]:"OriginalSize",[y]:Cde}],[1,{[S]:"OriginalIops",[y]:xde}],[0,{[S]:"OriginalVolumeType",[y]:Tde}],[1,{[S]:"OriginalThroughput",[y]:Ade}],[2,{[S]:"OriginalMultiAttachEnabled",[y]:Rde}],[1,{[S]:"Progress",[y]:_L}],[4,{[S]:"StartTime",[y]:IL}],[4,{[S]:"EndTime",[y]:Pue}]]],QL=[3,O,bN,0,[bc,uP,Y3,$J,ase,Bte,xr,HS,Zo,Ts,td,tte],[[0,{[S]:"OwnerId",[y]:Kl}],[0,{[S]:"InstanceTenancy",[y]:JN}],[()=>K0e,{[S]:"Ipv6CidrBlockAssociationSet",[y]:KN}],[()=>G0e,{[S]:"CidrBlockAssociationSet",[y]:Ele}],[2,{[S]:"IsDefault",[y]:afe}],[()=>Iye,{[S]:"EncryptionControl",[y]:iue}],[()=>Cr,{[S]:"TagSet",[y]:zr}],[()=>UL,{[S]:"BlockPublicAccessStates",[y]:ON}],[0,{[S]:"VpcId",[y]:yd}],[0,{[S]:"State",[y]:ma}],[0,{[S]:"CidrBlock",[y]:D_}],[0,{[S]:"DhcpOptionsId",[y]:Xle}]]],Tye=[3,O,Sce,0,[US,td,jJ],[[0,{[S]:"AssociationId",[y]:O_}],[0,{[S]:"CidrBlock",[y]:D_}],[()=>YL,{[S]:"CidrBlockState",[y]:Rle}]]],YL=[3,O,wce,0,[Ts,w_],[[0,{[S]:"State",[y]:ma}],[0,{[S]:"StatusMessage",[y]:dg}]]],Iye=[3,O,dN,0,[Zo,Ace,EP,Ts,E_,xie,xr],[[0,{[S]:"VpcId",[y]:yd}],[0,{[S]:"VpcEncryptionControlId",[y]:ope}],[0,{[S]:"Mode",[y]:lde}],[0,{[S]:"State",[y]:ma}],[0,{[S]:"StateMessage",[y]:AL}],[()=>Mye,{[S]:"ResourceExclusions",[y]:Wde}],[()=>Cr,{[S]:"TagSet",[y]:zr}]]],Oye=[3,O,xce,0,[EP,use,cne,Poe,jce,$ce,Bre,Nce,jte],[0,0,0,0,0,0,0,0,0],1],Ui=[3,O,Rce,0,[Ts,E_],[[0,{[S]:"State",[y]:ma}],[0,{[S]:"StateMessage",[y]:AL}]]],Mye=[3,O,Cce,0,[cse,ane,koe,Uce,Hce,Xre,Pce,Ute],[[()=>Ui,{[S]:"InternetGateway",[y]:cfe}],[()=>Ui,{[S]:"EgressOnlyInternetGateway",[y]:xue}],[()=>Ui,{[S]:"NatGateway",[y]:hde}],[()=>Ui,{[S]:"VirtualPrivateGateway",[y]:upe}],[()=>Ui,{[S]:"VpcPeering",[y]:fpe}],[()=>Ui,{[S]:"Lambda",[y]:Ffe}],[()=>Ui,{[S]:"VpcLattice",[y]:ape}],[()=>Ui,{[S]:"ElasticFileSystem",[y]:cue}]]],Dye=[3,O,Tce,0,[US,Km,X3,xP,iP,Z3,lP],[[0,{[S]:"AssociationId",[y]:O_}],[0,{[S]:"Ipv6CidrBlock",[y]:ZN}],[()=>YL,{[S]:"Ipv6CidrBlockState",[y]:QN}],[0,{[S]:"NetworkBorderGroup",[y]:uL}],[0,{[S]:"Ipv6Pool",[y]:wfe}],[0,{[S]:"Ipv6AddressAttribute",[y]:qN}],[0,{[S]:"IpSource",[y]:WN}]]],Xl="unit",kye=[1,O,pJ,0,[0,{[y]:ke}]],Pye=[1,O,vJ,0,[()=>Ipe,{[y]:ke}]],Nye=[1,O,SJ,0,[()=>Tpe,{[y]:ke}]],Lye=[1,O,wJ,0,[()=>Ope,{[y]:ke}]],zye=[1,O,xJ,0,[()=>Mpe,{[y]:ke}]],Bye=[1,O,zJ,0,[0,{[y]:ke}]],$ye=[1,O,MJ,0,[()=>$L,{[y]:ke}]],XL=[1,O,DJ,0,[()=>$L,{[y]:jS}]],Uye=[1,O,PJ,0,[0,{[y]:ke}]],jye=[1,O,HJ,0,[1,{[y]:ke}]],Hye=[1,O,Lee,0,[()=>Cme,{[y]:ke}]],Vye=[1,O,Nte,0,[()=>Tme,{[y]:ke}]],qye=[1,O,qte,0,[()=>Pme,{[y]:ke}]],Fye=[1,O,Qte,0,[()=>Nme,{[y]:ke}]],Gye=[1,O,Wte,0,[()=>zme,{[y]:ke}]],Zye=[1,O,I3,0,[()=>Lme,{[y]:ke}]],Kye=[1,O,Pte,0,[0,{[y]:C3}]],oo=[1,O,Ene,0,[()=>Hme,{[y]:Er}]],Qye=[1,O,Sne,0,[()=>Vme,{[y]:ke}]],Yye=[1,O,Mne,0,[()=>Kme,{[y]:ke}]],X_=[1,O,kne,0,[()=>Xme,{[y]:ke}]],Xye=[1,O,Pne,0,[0,{[y]:B_}]],Wye=[1,O,vse,0,[0,{[y]:Hl}]],Jye=[1,O,Cse,0,[()=>nge,{[y]:ke}]],e0e=[1,O,rse,0,[()=>ige,0]],t0e=[1,O,Wne,0,[()=>fge,{[y]:ke}]],n0e=[1,O,ese,0,[()=>dge,{[y]:ke}]],bd=[1,O,Sse,0,[0,{[y]:ls}]],s0e=[1,O,pse,0,[()=>hge,{[y]:ke}]],W_=[1,O,dse,0,[()=>pge,{[y]:ke}]],r0e=[1,O,mse,0,[()=>mge,{[y]:ke}]],o0e=[1,O,Tse,0,[()=>cge,{[y]:ke}]],i0e=[1,O,Bse,0,[()=>_ge,{[y]:ke}]],a0e=[1,O,Use,0,[()=>Ege,{[y]:ke}]],c0e=[1,O,Qse,0,[()=>Cge,{[y]:ke}]],l0e=[1,O,ore,0,[()=>Age,{[y]:ke}]],u0e=[1,O,are,0,[()=>Ige,{[y]:ke}]],f0e=[1,O,cre,0,[()=>Oge,{[y]:ke}]],d0e=[1,O,ure,0,[()=>Mge,{[y]:ke}]],J_=[1,O,sre,0,[()=>Dge,{[y]:ke}]],h0e=[1,O,yre,0,[()=>Pge,{[y]:ke}]],p0e=[1,O,Wse,0,[()=>Nge,{[y]:ke}]],m0e=[1,O,Jse,0,[()=>Lge,{[y]:ke}]],g0e=[1,O,Are,0,[0,{[y]:so}]],y0e=[1,O,Ore,0,[0,{[y]:mc}]],b0e=[1,O,kre,0,[()=>Bge,{[y]:ke}]],v0e=[1,O,Ure,0,[()=>Uge,{[y]:ke}]],S0e=[1,O,Vre,0,[()=>jge,{[y]:ke}]],_0e=[1,O,roe,0,[()=>Vge,{[y]:ke}]],w0e=[1,O,Roe,0,[()=>Yge,{[y]:ke}]],E0e=[1,O,Ioe,0,[()=>Jge,{[y]:ke}]],x0e=[1,O,zoe,0,[0,{[y]:ke}]],WL=[1,O,qoe,0,[0,{[y]:y_}]],R0e=[1,O,sie,0,[0,{[y]:ke}]],C0e=[1,O,aie,0,[()=>aye,{[y]:ke}]],JL=[1,O,Woe,0,[()=>lye,{[y]:ke}]],A0e=[1,O,Cie,0,[()=>dye,{[y]:ke}]],T0e=[1,O,Nie,0,[()=>fye,{[y]:ke}]],I0e=[1,O,$ie,0,[0,{[y]:Wm}]],O0e=[1,O,Lie,0,[()=>qL,{[y]:ke}]],M0e=[1,O,wie,0,[0,{[y]:ke}]],ez=[1,O,nae,0,[0,{[y]:__}]],D0e=[1,O,rae,0,[0,{[y]:YP}]],k0e=[1,O,bae,0,[0,{[y]:ha}]],P0e=[1,O,Tae,0,[()=>FL,{[y]:ke}]],N0e=[1,O,vae,0,[0,{[y]:pa}]],L0e=[1,O,aae,0,[()=>_ye,{[y]:ke}]],z0e=[1,O,Iae,0,[()=>ZL,{[y]:ke}]],B0e=[1,O,Zie,0,[0,{[y]:ke}]],Cr=[1,O,sce,0,[()=>wye,{[y]:ke}]],Qo=[1,O,lce,0,[()=>Eye,{[y]:ke}]],$0e=[1,O,ace,0,[1,{[y]:ke}]],U0e=[1,O,gce,0,[0,{[y]:ke}]],j0e=[1,O,Vce,0,[0,{[y]:ke}]],H0e=[1,O,qce,0,[0,{[y]:ke}]],V0e=[1,O,bce,0,[()=>Y_,{[y]:ke}]],q0e=[1,O,Oce,0,[0,{[y]:Ys}]],F0e=[1,O,Lce,0,[()=>KL,{[y]:ke}]],G0e=[1,O,_ce,0,[()=>Tye,{[y]:ke}]],Z0e=[1,O,Mce,0,[0,{[y]:Zo}]],K0e=[1,O,Ice,0,[()=>Dye,{[y]:ke}]],Q0e=[1,O,zce,0,[()=>QL,{[y]:ke}]],Y0e=[1,O,Xce,0,[0,{[y]:ke}]],X0e=[1,O,Jce,0,[0,{[y]:T_}]],W0e=[1,O,tle,0,[0,{[y]:I_}]],ZRe=[9,O,yJ,0,()=>Ape,()=>Y_],KRe=[9,O,dee,0,()=>$pe,()=>Upe],QRe=[9,O,XJ,0,()=>Vpe,()=>qpe],YRe=[9,O,WJ,0,()=>Fpe,()=>zge],XRe=[9,O,pee,0,()=>Gpe,()=>FL],WRe=[9,O,mee,0,()=>Zpe,()=>Kpe],JRe=[9,O,Ree,0,()=>Qpe,()=>KL],eCe=[9,O,Cee,0,()=>Ype,()=>Xpe],tCe=[9,O,Zee,0,()=>Jpe,()=>eme],nCe=[9,O,hte,0,()=>tme,()=>Xl],sCe=[9,O,pte,0,()=>nme,()=>Xl],rCe=[9,O,Ate,0,()=>sme,()=>Xl],oCe=[9,O,Tte,0,()=>rme,()=>Xl],J0e=[9,O,Oee,0,()=>ome,()=>ime],ebe=[9,O,qee,0,()=>ame,()=>cme],tbe=[9,O,Fee,0,()=>lme,()=>ume],nbe=[9,O,Vee,0,()=>fme,()=>dme],sbe=[9,O,Wee,0,()=>hme,()=>pme],rbe=[9,O,ite,0,()=>mme,()=>gme],obe=[9,O,mte,0,()=>yme,()=>bme],ibe=[9,O,gte,0,()=>vme,()=>Sme],abe=[9,O,Ite,0,()=>_me,()=>wme],cbe=[9,O,Ote,0,()=>Eme,()=>xme],iCe=[9,O,Mte,0,()=>Rme,()=>Y_],aCe=[9,O,Ane,0,()=>Gme,()=>Zme],cCe=[9,O,wse,0,()=>sge,()=>rge],lCe=[9,O,doe,0,()=>Gge,()=>Xl],uCe=[9,O,_oe,0,()=>Zge,()=>Kge],fCe=[9,O,Die,0,()=>uye,()=>Xl],dCe=[9,O,Pie,0,()=>pye,()=>qL],hCe=[9,O,xae,0,()=>gye,()=>yye],pCe=[9,O,Cae,0,()=>bye,()=>vye],mCe=[9,O,Xae,0,()=>xye,()=>Rye];const lbe=e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??cc,base64Encoder:e?.base64Encoder??ea,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??tJ,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??IW,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new kS}],logger:e?.logger??new PS,protocol:e?.protocol??IX,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ec2",errorTypeRegistries:Epe,xmlNamespace:"http://ec2.amazonaws.com/doc/2016-11-15",version:"2016-11-15",serviceTarget:"AmazonEC2"},serviceId:e?.serviceId??"EC2",urlParser:e?.urlParser??Hf,utf8Decoder:e?.utf8Decoder??jo,utf8Encoder:e?.utf8Encoder??hc}),ube=e=>{const t=Xk(e),n=()=>t().then(Sk),r=lbe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??bk,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:kW.version}),maxAttempts:e?.maxAttempts??Vf,region:e?.region??Yk("Region is missing"),requestHandler:zm.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||zk),sha256:e?.sha256??Kk,streamCollector:e?.streamCollector??xS,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Tk)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Ik))}},tz=e=>({setRegion(t){e.region=t},region(){return e.region}}),nz=e=>({region:e.region()}),fbe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},dbe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hbe=(e,t)=>{const n=Object.assign(tz(e),wk(e),AD(e),fbe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,nz(n),Ek(n),TD(n),dbe(n))};class pbe extends vk{config;constructor(...[t]){const n=ube(t||{});super(n),this.initConfig=n;const r=MW(n),i=QD(r),c=jk(i),l=Mk(c),f=l,d=Lk(f),h=OW(d),b=hbe(h,t?.extensions||[]);this.config=b,this.middlewareStack.use(UD(this.config)),this.middlewareStack.use(Ak(this.config)),this.middlewareStack.use(Hk(this.config)),this.middlewareStack.use(Dk(this.config)),this.middlewareStack.use(ID(this.config)),this.middlewareStack.use(OD(this.config)),this.middlewareStack.use(MD(this.config)),this.middlewareStack.use(DD(this.config,{httpAuthSchemeParametersProvider:AW,identityProviderConfigProvider:async g=>new ZD({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(PD(this.config))}destroy(){super.destroy()}}class mbe extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeAvailabilityZones",{}).n("EC2Client","DescribeAvailabilityZonesCommand").sc(J0e).build(){}class sz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeImages",{}).n("EC2Client","DescribeImagesCommand").sc(ebe).build(){}class rz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstances",{}).n("EC2Client","DescribeInstancesCommand").sc(tbe).build(){}class gbe extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstanceTypes",{}).n("EC2Client","DescribeInstanceTypesCommand").sc(nbe).build(){}class oz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeKeyPairs",{}).n("EC2Client","DescribeKeyPairsCommand").sc(sbe).build(){}class ybe extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeRegions",{}).n("EC2Client","DescribeRegionsCommand").sc(rbe).build(){}class iz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSnapshots",{}).n("EC2Client","DescribeSnapshotsCommand").sc(obe).build(){}class az extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSubnets",{}).n("EC2Client","DescribeSubnetsCommand").sc(ibe).build(){}class cz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVolumes",{}).n("EC2Client","DescribeVolumesCommand").sc(abe).build(){}class lz extends Cs.classBuilder().ep(to).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVpcs",{}).n("EC2Client","DescribeVpcsCommand").sc(cbe).build(){}function bbe(e){return t=>async n=>{const{request:r}=n;if(e.expectContinueHeader!==!1&&kn.isInstance(r)&&r.body&&e.runtime==="node"&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"){let i=!0;if(typeof e.expectContinueHeader=="number")try{i=(Number(r.headers?.["content-length"])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else i=!!e.expectContinueHeader;i&&(r.headers.Expect="100-continue")}return t({...n,request:r})}}const vbe={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Sbe=e=>({applyToStack:t=>{t.add(bbe(e),vbe)}}),uz={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},_be=uz.WHEN_SUPPORTED,gCe={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},wbe=uz.WHEN_SUPPORTED;var Tv;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(Tv||(Tv={}));var sI;(function(e){e.HEADER="header",e.TRAILER="trailer"})(sI||(sI={}));const yCe=Tv.CRC32;var bCe=(function(){function e(){this.crc32=new om}return e.prototype.update=function(t){rm(t)||this.crc32.update(lc(t))},e.prototype.digest=function(){return Fk(this,void 0,void 0,function(){return Gk(this,function(t){return[2,NW(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new om},e})(),om=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=UW(t),c=i.next();!c.done;c=i.next()){var l=c.value;this.checksum=this.checksum>>>8^xbe[(this.checksum^l)&255]}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})(),Ebe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],xbe=LW(Ebe);const Rbe=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Fs(t??_be),responseChecksumValidation:Fs(n??wbe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},Cbe=e=>(t,n)=>async r=>{const i=await e.region(),c=e.region;let l=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),l=()=>Object.defineProperty(e,"region",{writable:!0,value:c}));try{const f=await t(r);if(n.__s3RegionRedirect){l();const d=await e.region();if(i!==d)throw new Error("Region was not restored following S3 region redirect.")}return f}catch(f){throw l(),f}},Abe={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function Tbe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){const c=i?.$metadata?.httpStatusCode,l=n.commandName==="HeadBucketCommand",f=i?.$response?.headers?.["x-amz-bucket-region"];if(f&&(c===301||c===400&&(i?.name==="IllegalLocationConstraintException"||l))){try{const d=f;n.logger?.debug(`Redirecting from ${await e.region()} to ${d}`),n.__s3RegionRedirect=d}catch(d){throw new Error("Region redirect failed: "+d)}return t(r)}}throw i}}}const Ibe={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},Obe=e=>({applyToStack:t=>{t.add(Tbe(e),Ibe),t.addRelativeTo(Cbe(e),Abe)}});class ew{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){const n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+ew.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const n in this.data){const r=this.data[n];if(!r.isRefreshing){const i=await r.identity;i.expiration&&i.expiration.getTime()(l.expiration?.getTime()??0){i.set(r,new _b(Promise.resolve(h)))})),l)):i.set(r,new _b(this.getIdentity(r))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(i=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+i)});const n=await this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}}const Mbe="Directory",Dbe="S3Express",kbe="sigv4-s3express",Iv="X-Amz-S3session-Token",Ov=Iv.toLowerCase();class Pbe extends Ev{async signWithCredentials(t,n,r){const i=rI(n);t.headers[Ov]=n.sessionToken;const c=this;return oI(c,i),c.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const i=rI(n);return delete t.headers[Ov],t.headers[Iv]=n.sessionToken,t.query=t.query??{},t.query[Iv]=n.sessionToken,oI(this,i),this.presign(t,r)}}function rI(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function oI(e,t){const n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,i=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=i}const Nbe=e=>(t,n)=>async r=>{if(n.endpointV2){const i=n.endpointV2,c=i.properties?.authSchemes?.[0]?.name===kbe;if((i.properties?.backend===Dbe||i.properties?.bucketType===Mbe)&&(Pr(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),c){const f=r.input.Bucket;if(f){const d=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=d,kn.isInstance(r.request)&&d.sessionToken&&(r.request.headers[Ov]=d.sessionToken)}}}return t(r)},Lbe={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},zbe=e=>({applyToStack:t=>{t.add(Nbe(e),Lbe)}}),Bbe=async(e,t,n,r)=>{const i=await r.signWithCredentials(n,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},$be=e=>t=>{throw t},Ube=(e,t)=>{},jbe=e=>(t,n)=>async r=>{if(!kn.isInstance(r.request))return t(r);const c=qo(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c;let h;n.s3ExpressIdentity?h=await Bbe(n.s3ExpressIdentity,l,r.request,await e.signer()):h=await d.sign(r.request,f,l);const b=await t({...r,request:h}).catch((d.errorHandler||$be)(l));return(d.successHandler||Ube)(b.response,l),b},Hbe=e=>({applyToStack:t=>{t.addRelativeTo(jbe(e),kD)}}),Vbe=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:c,disableMultiregionAccessPoints:l,followRegionRedirects:f,s3ExpressIdentityProvider:d,bucketEndpoint:h,expectContinueHeader:b}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:c??!1,disableMultiregionAccessPoints:l??!1,followRegionRedirects:f??!1,s3ExpressIdentityProvider:d??new tw(async g=>n().send(new r({Bucket:g}))),bucketEndpoint:h??!1,expectContinueHeader:b??2097152})},qbe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Fbe=3e3,Gbe=e=>(t,n)=>async r=>{const i=await t(r),{response:c}=i;if(!ac.isInstance(c))return i;const{statusCode:l,body:f}=c;if(l<200||l>=300||!(typeof f?.stream=="function"||typeof f?.pipe=="function"||typeof f?.tee=="function"))return i;let h=f,b=f;f&&typeof f=="object"&&!(f instanceof Uint8Array)&&([h,b]=await bQ(f)),c.body=b;const g=await Zbe(h,{streamCollector:async _=>fQ(_,Fbe)});typeof h?.destroy=="function"&&h.destroy();const v=e.utf8Encoder(g.subarray(g.length-16));if(g.length===0&&qbe[n.commandName]){const _=new Error("S3 aborted request");throw _.name="InternalError",_}return v&&v.endsWith("")&&(c.statusCode=400),i},Zbe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Kbe={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},nw=e=>({applyToStack:t=>{t.addRelativeTo(Gbe(e),Kbe)}}),Qbe=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function Ybe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){const i=n.endpointV2;if(i){const c=r.input.Bucket;if(typeof c=="string")try{const l=new URL(c);n.endpointV2={...i,url:l}}catch(l){const f=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${c} could not be parsed as URL.`;throw n.logger?.constructor?.name==="NoOpLogger"?console.warn(f):n.logger?.warn?.(f),l}}}return t(r)}}const Xbe={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Wbe({bucketEndpoint:e}){return t=>async n=>{const{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!Qbe(r)&&r.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}const Jbe={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},eve=e=>({applyToStack:t=>{t.add(Wbe(e),Jbe),t.addRelativeTo(Ybe(e),Xbe)}}),tve=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});class fz{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new Pbe(t),this.signerOptions=t}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const sw="required",D="type",ae="rules",U="conditions",X="fn",W="argv",ze="ref",Ye="assign",Re="url",Ce="properties",Lo="backend",Dn="authSchemes",bn="disableDoubleEncoding",vn="signingName",jn="signingRegion",Ae="headers",rw="signingRegionSet",nve=6,sve=!1,qr=!0,Vs="isSet",ln="booleanEquals",De="error",im="aws.partition",ht="stringEquals",Wt="getAttr",en="name",jt="substring",iI="bucketSuffix",ow="parseURL",he="endpoint",ce="tree",am="aws.isVirtualHostableS3Bucket",cm="{url#scheme}://{Bucket}.{url#authority}{url#path}",Xr="not",aI="accessPointSuffix",xp="{url#scheme}://{url#authority}{url#path}",dz="hardwareType",hz="regionPrefix",cI="bucketAliasSuffix",Mv="outpostId",wc="isValidHostLabel",iw="sigv4a",Ff="s3-outposts",Nl="s3",pz="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",mz="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",lI="https://{Bucket}.s3.{partitionResult#dnsSuffix}",gz="aws.parseArn",yz="bucketArn",bz="arnType",lm="",aw="s3-object-lambda",vz="accesspoint",cw="accessPointName",uI="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",fI="mrapPartition",dI="outpostType",hI="arnPrefix",Sz="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",pI="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",mI="https://s3.{partitionResult#dnsSuffix}",dl={[sw]:!1,[D]:"string"},hl={[sw]:!0,default:!1,[D]:"boolean"},hf={[sw]:!1,[D]:"boolean"},hr={[X]:ln,[W]:[{[ze]:"Accelerate"},!0]},Vt={[X]:ln,[W]:[{[ze]:"UseFIPS"},!0]},Bt={[X]:ln,[W]:[{[ze]:"UseDualStack"},!0]},an={[X]:Vs,[W]:[{[ze]:"Endpoint"}]},_z={[X]:im,[W]:[{[ze]:"Region"}],[Ye]:"partitionResult"},gI={[X]:ht,[W]:[{[X]:Wt,[W]:[{[ze]:"partitionResult"},en]},"aws-cn"]},xf={[X]:Vs,[W]:[{[ze]:"Bucket"}]},ut={[ze]:"Bucket"},yI={[U]:[hr],[De]:"S3Express does not support S3 Accelerate.",[D]:De},bI={[U]:[an,{[X]:ow,[W]:[{[ze]:"Endpoint"}],[Ye]:"url"}],[ae]:[{[U]:[{[X]:Vs,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:ln,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],[ae]:[{[U]:[{[X]:ln,[W]:[{[X]:Wt,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[ut],[Ye]:"uri_encoded_bucket"}],[ae]:[{[he]:{[Re]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce}],[D]:ce},{[U]:[{[X]:am,[W]:[ut,!1]}],[ae]:[{[he]:{[Re]:cm,[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce},{[De]:"S3Express bucket name is not a valid virtual hostable name.",[D]:De}],[D]:ce},{[U]:[{[X]:ln,[W]:[{[X]:Wt,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[ut],[Ye]:"uri_encoded_bucket"}],[ae]:[{[he]:{[Re]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce}],[D]:ce},{[U]:[{[X]:am,[W]:[ut,!1]}],[ae]:[{[he]:{[Re]:cm,[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],[D]:ce},{[De]:"S3Express bucket name is not a valid virtual hostable name.",[D]:De}],[D]:ce},is={[X]:ow,[W]:[{[ze]:"Endpoint"}],[Ye]:"url"},wb={[X]:ln,[W]:[{[X]:Wt,[W]:[{[ze]:"url"},"isIp"]},!0]},wz={[ze]:"url"},Ez={[X]:"uriEncode",[W]:[ut],[Ye]:"uri_encoded_bucket"},Us={[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:"s3express",[jn]:"{Region}"}]},Ve={},xz={[X]:am,[W]:[ut,!1]},vI={[De]:"S3Express bucket name is not a valid virtual hostable name.",[D]:De},SI={[X]:Vs,[W]:[{[ze]:"UseS3ExpressControlEndpoint"}]},_I={[X]:ln,[W]:[{[ze]:"UseS3ExpressControlEndpoint"},!0]},Ke={[X]:Xr,[W]:[an]},rt={[X]:ln,[W]:[{[ze]:"UseDualStack"},!1]},et={[X]:ln,[W]:[{[ze]:"UseFIPS"},!1]},up={[De]:"Unrecognized S3Express bucket name format.",[D]:De},wI={[X]:Xr,[W]:[xf]},EI={[ze]:dz},xI={[U]:[Ke],[De]:"Expected a endpoint to be specified but no endpoint was found",[D]:De},fp={[Dn]:[{[bn]:!0,[en]:iw,[vn]:Ff,[rw]:["*"]},{[bn]:!0,[en]:"sigv4",[vn]:Ff,[jn]:"{Region}"}]},Eb={[X]:ln,[W]:[{[ze]:"ForcePathStyle"},!1]},rve={[ze]:"ForcePathStyle"},gn={[X]:ln,[W]:[{[ze]:"Accelerate"},!1]},Rn={[X]:ht,[W]:[{[ze]:"Region"},"aws-global"]},Tn={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"us-east-1"}]},ct={[X]:Xr,[W]:[Rn]},In={[X]:ln,[W]:[{[ze]:"UseGlobalEndpoint"},!0]},RI={[Re]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"{Region}"}]},[Ae]:{}},_n={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"{Region}"}]},On={[X]:ln,[W]:[{[ze]:"UseGlobalEndpoint"},!1]},CI={[Re]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},AI={[Re]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},TI={[Re]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},xb={[X]:ln,[W]:[{[X]:Wt,[W]:[wz,"isIp"]},!1]},Rb={[Re]:pz,[Ce]:_n,[Ae]:{}},Dv={[Re]:cm,[Ce]:_n,[Ae]:{}},II={[he]:Dv,[D]:he},Cb={[Re]:mz,[Ce]:_n,[Ae]:{}},OI={[Re]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},dp={[De]:"Invalid region: region was not a valid DNS name.",[D]:De},ws={[ze]:yz},Rz={[ze]:bz},Ab={[X]:Wt,[W]:[ws,"service"]},lw={[ze]:cw},MI={[U]:[Bt],[De]:"S3 Object Lambda does not support Dual-stack",[D]:De},DI={[U]:[hr],[De]:"S3 Object Lambda does not support S3 Accelerate",[D]:De},kI={[U]:[{[X]:Vs,[W]:[{[ze]:"DisableAccessPoints"}]},{[X]:ln,[W]:[{[ze]:"DisableAccessPoints"},!0]}],[De]:"Access points are not supported for this operation",[D]:De},Tb={[U]:[{[X]:Vs,[W]:[{[ze]:"UseArnRegion"}]},{[X]:ln,[W]:[{[ze]:"UseArnRegion"},!1]},{[X]:Xr,[W]:[{[X]:ht,[W]:[{[X]:Wt,[W]:[ws,"region"]},"{Region}"]}]}],[De]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[D]:De},Cz={[X]:Wt,[W]:[{[ze]:"bucketPartition"},en]},Az={[X]:Wt,[W]:[ws,"accountId"]},Ib={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:aw,[jn]:"{bucketArn#region}"}]},PI={[De]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[D]:De},Ob={[De]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[D]:De},Mb={[De]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[D]:De},Db={[De]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[D]:De},NI={[De]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[D]:De},LI={[De]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[D]:De},pf={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:Nl,[jn]:"{bucketArn#region}"}]},zI={[Dn]:[{[bn]:!0,[en]:iw,[vn]:Ff,[rw]:["*"]},{[bn]:!0,[en]:"sigv4",[vn]:Ff,[jn]:"{bucketArn#region}"}]},BI={[X]:gz,[W]:[ut]},$I={[Re]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},UI={[Re]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},jI={[Re]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},kb={[Re]:Sz,[Ce]:_n,[Ae]:{}},HI={[Re]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:_n,[Ae]:{}},VI={[ze]:"UseObjectLambdaEndpoint"},Pb={[Dn]:[{[bn]:!0,[en]:"sigv4",[vn]:aw,[jn]:"{Region}"}]},qI={[Re]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},FI={[Re]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},GI={[Re]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},Nb={[Re]:xp,[Ce]:_n,[Ae]:{}},ZI={[Re]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Ce]:_n,[Ae]:{}},Lb=[{[ze]:"Region"}],ove=[{[ze]:"Endpoint"}],ive=[ut],zb=[hr],pl=[an,is],KI=[{[X]:Vs,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:ln,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],ave=[Ez],Bb=[xz],dr=[_z],$b=[Vt,Bt],Rf=[Vt,rt],Cf=[et,Bt],Af=[et,rt],QI=[{[X]:jt,[W]:[ut,6,14,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,14,16,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],Fr=[{[U]:[Vt,Bt],[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he},{[U]:Rf,[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he},{[U]:Cf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he},{[U]:Af,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:{}},[D]:he}],YI=[{[X]:jt,[W]:[ut,6,15,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,15,17,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],XI=[{[X]:jt,[W]:[ut,6,19,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,19,21,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],WI=[{[X]:jt,[W]:[ut,6,20,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,20,22,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],JI=[{[X]:jt,[W]:[ut,6,26,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,26,28,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],Gr=[{[U]:[Vt,Bt],[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he},{[U]:Rf,[he]:{[Re]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he},{[U]:Cf,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he},{[U]:Af,[he]:{[Re]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ce]:{[Lo]:"S3Express",[Dn]:[{[bn]:!0,[en]:"sigv4-s3express",[vn]:"s3express",[jn]:"{Region}"}]},[Ae]:{}},[D]:he}],e2=[ut,0,7,!0],t2=[{[X]:jt,[W]:[ut,7,15,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,15,17,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],n2=[{[X]:jt,[W]:[ut,7,16,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,16,18,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],s2=[{[X]:jt,[W]:[ut,7,20,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,20,22,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],r2=[{[X]:jt,[W]:[ut,7,21,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,21,23,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],o2=[{[X]:jt,[W]:[ut,7,27,!0],[Ye]:"s3expressAvailabilityZoneId"},{[X]:jt,[W]:[ut,27,29,!0],[Ye]:"s3expressAvailabilityZoneDelim"},{[X]:ht,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],cve=[xf],i2=[{[X]:wc,[W]:[{[ze]:Mv},!1]}],a2=[{[X]:ht,[W]:[{[ze]:hz},"beta"]}],lve=["*"],c2=[{[X]:wc,[W]:[{[ze]:"Region"},!1]}],ji=[{[X]:ht,[W]:[{[ze]:"Region"},"us-east-1"]}],Ub=[{[X]:ht,[W]:[Rz,vz]}],l2=[{[X]:Wt,[W]:[ws,"resourceId[1]"],[Ye]:cw},{[X]:Xr,[W]:[{[X]:ht,[W]:[lw,lm]}]}],uve=[ws,"resourceId[1]"],u2=[Bt],jb=[{[X]:Xr,[W]:[{[X]:ht,[W]:[{[X]:Wt,[W]:[ws,"region"]},lm]}]}],f2=[{[X]:Xr,[W]:[{[X]:Vs,[W]:[{[X]:Wt,[W]:[ws,"resourceId[2]"]}]}]}],fve=[ws,"resourceId[2]"],Hb=[{[X]:im,[W]:[{[X]:Wt,[W]:[ws,"region"]}],[Ye]:"bucketPartition"}],d2=[{[X]:ht,[W]:[Cz,{[X]:Wt,[W]:[{[ze]:"partitionResult"},en]}]}],Vb=[{[X]:wc,[W]:[{[X]:Wt,[W]:[ws,"region"]},!0]}],qb=[{[X]:wc,[W]:[Az,!1]}],h2=[{[X]:wc,[W]:[lw,!1]}],hp=[Vt],p2=[{[X]:wc,[W]:[{[ze]:"Region"},!0]}],dve={parameters:{Bucket:dl,Region:dl,UseFIPS:hl,UseDualStack:hl,Endpoint:dl,ForcePathStyle:hl,Accelerate:hl,UseGlobalEndpoint:hl,UseObjectLambdaEndpoint:hf,Key:dl,Prefix:dl,CopySource:dl,DisableAccessPoints:hf,DisableMultiRegionAccessPoints:hl,UseArnRegion:hf,UseS3ExpressControlEndpoint:hf,DisableS3ExpressSessionAuth:hf},[ae]:[{[U]:[{[X]:Vs,[W]:Lb}],[ae]:[{[U]:[hr,Vt],error:"Accelerate cannot be used with FIPS",[D]:De},{[U]:[Bt,an],error:"Cannot set dual-stack in combination with a custom endpoint.",[D]:De},{[U]:[an,Vt],error:"A custom endpoint cannot be combined with FIPS",[D]:De},{[U]:[an,hr],error:"A custom endpoint cannot be combined with S3 Accelerate",[D]:De},{[U]:[Vt,_z,gI],error:"Partition does not support FIPS",[D]:De},{[U]:[xf,{[X]:jt,[W]:[ut,0,nve,qr],[Ye]:iI},{[X]:ht,[W]:[{[ze]:iI},"--x-s3"]}],[ae]:[yI,bI,{[U]:[SI,_I],[ae]:[{[U]:dr,[ae]:[{[U]:[Ez,Ke],[ae]:[{[U]:$b,endpoint:{[Re]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Rf,endpoint:{[Re]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Cf,endpoint:{[Re]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Af,endpoint:{[Re]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Us,[Ae]:Ve},[D]:he}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:Bb,[ae]:[{[U]:dr,[ae]:[{[U]:KI,[ae]:[{[U]:QI,[ae]:Fr,[D]:ce},{[U]:YI,[ae]:Fr,[D]:ce},{[U]:XI,[ae]:Fr,[D]:ce},{[U]:WI,[ae]:Fr,[D]:ce},{[U]:JI,[ae]:Fr,[D]:ce},up],[D]:ce},{[U]:QI,[ae]:Gr,[D]:ce},{[U]:YI,[ae]:Gr,[D]:ce},{[U]:XI,[ae]:Gr,[D]:ce},{[U]:WI,[ae]:Gr,[D]:ce},{[U]:JI,[ae]:Gr,[D]:ce},up],[D]:ce}],[D]:ce},vI],[D]:ce},{[U]:[xf,{[X]:jt,[W]:e2,[Ye]:aI},{[X]:ht,[W]:[{[ze]:aI},"--xa-s3"]}],[ae]:[yI,bI,{[U]:Bb,[ae]:[{[U]:dr,[ae]:[{[U]:KI,[ae]:[{[U]:t2,[ae]:Fr,[D]:ce},{[U]:n2,[ae]:Fr,[D]:ce},{[U]:s2,[ae]:Fr,[D]:ce},{[U]:r2,[ae]:Fr,[D]:ce},{[U]:o2,[ae]:Fr,[D]:ce},up],[D]:ce},{[U]:t2,[ae]:Gr,[D]:ce},{[U]:n2,[ae]:Gr,[D]:ce},{[U]:s2,[ae]:Gr,[D]:ce},{[U]:r2,[ae]:Gr,[D]:ce},{[U]:o2,[ae]:Gr,[D]:ce},up],[D]:ce}],[D]:ce},vI],[D]:ce},{[U]:[wI,SI,_I],[ae]:[{[U]:dr,[ae]:[{[U]:pl,endpoint:{[Re]:xp,[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:$b,endpoint:{[Re]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Rf,endpoint:{[Re]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Cf,endpoint:{[Re]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he},{[U]:Af,endpoint:{[Re]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[Ce]:Us,[Ae]:Ve},[D]:he}],[D]:ce}],[D]:ce},{[U]:[xf,{[X]:jt,[W]:[ut,49,50,qr],[Ye]:dz},{[X]:jt,[W]:[ut,8,12,qr],[Ye]:hz},{[X]:jt,[W]:e2,[Ye]:cI},{[X]:jt,[W]:[ut,32,49,qr],[Ye]:Mv},{[X]:im,[W]:Lb,[Ye]:"regionPartition"},{[X]:ht,[W]:[{[ze]:cI},"--op-s3"]}],[ae]:[{[U]:i2,[ae]:[{[U]:Bb,[ae]:[{[U]:[{[X]:ht,[W]:[EI,"e"]}],[ae]:[{[U]:a2,[ae]:[xI,{[U]:pl,endpoint:{[Re]:"https://{Bucket}.ec2.{url#authority}",[Ce]:fp,[Ae]:Ve},[D]:he}],[D]:ce},{endpoint:{[Re]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ce]:fp,[Ae]:Ve},[D]:he}],[D]:ce},{[U]:[{[X]:ht,[W]:[EI,"o"]}],[ae]:[{[U]:a2,[ae]:[xI,{[U]:pl,endpoint:{[Re]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Ce]:fp,[Ae]:Ve},[D]:he}],[D]:ce},{endpoint:{[Re]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ce]:fp,[Ae]:Ve},[D]:he}],[D]:ce},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[D]:De}],[D]:ce},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[D]:De}],[D]:ce},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[D]:De}],[D]:ce},{[U]:cve,[ae]:[{[U]:[an,{[X]:Xr,[W]:[{[X]:Vs,[W]:[{[X]:ow,[W]:ove}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[D]:De},{[U]:[Eb,xz],[ae]:[{[U]:dr,[ae]:[{[U]:c2,[ae]:[{[U]:[hr,gI],error:"S3 Accelerate cannot be used in this region",[D]:De},{[U]:[Bt,Vt,gn,Ke,Rn],endpoint:{[Re]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Bt,Vt,gn,Ke,ct,In],[ae]:[{endpoint:RI,[D]:he}],[D]:ce},{[U]:[Bt,Vt,gn,Ke,ct,On],endpoint:RI,[D]:he},{[U]:[rt,Vt,gn,Ke,Rn],endpoint:{[Re]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,Vt,gn,Ke,ct,In],[ae]:[{endpoint:CI,[D]:he}],[D]:ce},{[U]:[rt,Vt,gn,Ke,ct,On],endpoint:CI,[D]:he},{[U]:[Bt,et,hr,Ke,Rn],endpoint:{[Re]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Bt,et,hr,Ke,ct,In],[ae]:[{endpoint:AI,[D]:he}],[D]:ce},{[U]:[Bt,et,hr,Ke,ct,On],endpoint:AI,[D]:he},{[U]:[Bt,et,gn,Ke,Rn],endpoint:{[Re]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Bt,et,gn,Ke,ct,In],[ae]:[{endpoint:TI,[D]:he}],[D]:ce},{[U]:[Bt,et,gn,Ke,ct,On],endpoint:TI,[D]:he},{[U]:[rt,et,gn,an,is,wb,Rn],endpoint:{[Re]:pz,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,et,gn,an,is,xb,Rn],endpoint:{[Re]:cm,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,et,gn,an,is,wb,ct,In],[ae]:[{[U]:ji,endpoint:Rb,[D]:he},{endpoint:Rb,[D]:he}],[D]:ce},{[U]:[rt,et,gn,an,is,xb,ct,In],[ae]:[{[U]:ji,endpoint:Dv,[D]:he},II],[D]:ce},{[U]:[rt,et,gn,an,is,wb,ct,On],endpoint:Rb,[D]:he},{[U]:[rt,et,gn,an,is,xb,ct,On],endpoint:Dv,[D]:he},{[U]:[rt,et,hr,Ke,Rn],endpoint:{[Re]:mz,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,et,hr,Ke,ct,In],[ae]:[{[U]:ji,endpoint:Cb,[D]:he},{endpoint:Cb,[D]:he}],[D]:ce},{[U]:[rt,et,hr,Ke,ct,On],endpoint:Cb,[D]:he},{[U]:[rt,et,gn,Ke,Rn],endpoint:{[Re]:lI,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,et,gn,Ke,ct,In],[ae]:[{[U]:ji,endpoint:{[Re]:lI,[Ce]:_n,[Ae]:Ve},[D]:he},{endpoint:OI,[D]:he}],[D]:ce},{[U]:[rt,et,gn,Ke,ct,On],endpoint:OI,[D]:he}],[D]:ce},dp],[D]:ce}],[D]:ce},{[U]:[an,is,{[X]:ht,[W]:[{[X]:Wt,[W]:[wz,"scheme"]},"http"]},{[X]:am,[W]:[ut,qr]},Eb,et,rt,gn],[ae]:[{[U]:dr,[ae]:[{[U]:c2,[ae]:[II],[D]:ce},dp],[D]:ce}],[D]:ce},{[U]:[Eb,{[X]:gz,[W]:ive,[Ye]:yz}],[ae]:[{[U]:[{[X]:Wt,[W]:[ws,"resourceId[0]"],[Ye]:bz},{[X]:Xr,[W]:[{[X]:ht,[W]:[Rz,lm]}]}],[ae]:[{[U]:[{[X]:ht,[W]:[Ab,aw]}],[ae]:[{[U]:Ub,[ae]:[{[U]:l2,[ae]:[MI,DI,{[U]:jb,[ae]:[kI,{[U]:f2,[ae]:[Tb,{[U]:Hb,[ae]:[{[U]:dr,[ae]:[{[U]:d2,[ae]:[{[U]:Vb,[ae]:[{[U]:[{[X]:ht,[W]:[Az,lm]}],error:"Invalid ARN: Missing account id",[D]:De},{[U]:qb,[ae]:[{[U]:h2,[ae]:[{[U]:pl,endpoint:{[Re]:uI,[Ce]:Ib,[Ae]:Ve},[D]:he},{[U]:hp,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Ib,[Ae]:Ve},[D]:he},{endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:Ib,[Ae]:Ve},[D]:he}],[D]:ce},PI],[D]:ce},Ob],[D]:ce},Mb],[D]:ce},Db],[D]:ce}],[D]:ce}],[D]:ce},NI],[D]:ce},{error:"Invalid ARN: bucket ARN is missing a region",[D]:De}],[D]:ce},LI],[D]:ce},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[D]:De}],[D]:ce},{[U]:Ub,[ae]:[{[U]:l2,[ae]:[{[U]:jb,[ae]:[{[U]:Ub,[ae]:[{[U]:jb,[ae]:[kI,{[U]:f2,[ae]:[Tb,{[U]:Hb,[ae]:[{[U]:dr,[ae]:[{[U]:[{[X]:ht,[W]:[Cz,"{partitionResult#name}"]}],[ae]:[{[U]:Vb,[ae]:[{[U]:[{[X]:ht,[W]:[Ab,Nl]}],[ae]:[{[U]:qb,[ae]:[{[U]:h2,[ae]:[{[U]:zb,error:"Access Points do not support S3 Accelerate",[D]:De},{[U]:$b,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:pf,[Ae]:Ve},[D]:he},{[U]:Rf,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:pf,[Ae]:Ve},[D]:he},{[U]:Cf,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:pf,[Ae]:Ve},[D]:he},{[U]:[et,rt,an,is],endpoint:{[Re]:uI,[Ce]:pf,[Ae]:Ve},[D]:he},{[U]:Af,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:pf,[Ae]:Ve},[D]:he}],[D]:ce},PI],[D]:ce},Ob],[D]:ce},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[D]:De}],[D]:ce},Mb],[D]:ce},Db],[D]:ce}],[D]:ce}],[D]:ce},NI],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:wc,[W]:[lw,qr]}],[ae]:[{[U]:u2,error:"S3 MRAP does not support dual-stack",[D]:De},{[U]:hp,error:"S3 MRAP does not support FIPS",[D]:De},{[U]:zb,error:"S3 MRAP does not support S3 Accelerate",[D]:De},{[U]:[{[X]:ln,[W]:[{[ze]:"DisableMultiRegionAccessPoints"},qr]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[D]:De},{[U]:[{[X]:im,[W]:Lb,[Ye]:fI}],[ae]:[{[U]:[{[X]:ht,[W]:[{[X]:Wt,[W]:[{[ze]:fI},en]},{[X]:Wt,[W]:[ws,"partition"]}]}],[ae]:[{endpoint:{[Re]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Ce]:{[Dn]:[{[bn]:qr,name:iw,[vn]:Nl,[rw]:lve}]},[Ae]:Ve},[D]:he}],[D]:ce},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[D]:De}],[D]:ce}],[D]:ce},{error:"Invalid Access Point Name",[D]:De}],[D]:ce},LI],[D]:ce},{[U]:[{[X]:ht,[W]:[Ab,Ff]}],[ae]:[{[U]:u2,error:"S3 Outposts does not support Dual-stack",[D]:De},{[U]:hp,error:"S3 Outposts does not support FIPS",[D]:De},{[U]:zb,error:"S3 Outposts does not support S3 Accelerate",[D]:De},{[U]:[{[X]:Vs,[W]:[{[X]:Wt,[W]:[ws,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[D]:De},{[U]:[{[X]:Wt,[W]:uve,[Ye]:Mv}],[ae]:[{[U]:i2,[ae]:[Tb,{[U]:Hb,[ae]:[{[U]:dr,[ae]:[{[U]:d2,[ae]:[{[U]:Vb,[ae]:[{[U]:qb,[ae]:[{[U]:[{[X]:Wt,[W]:fve,[Ye]:dI}],[ae]:[{[U]:[{[X]:Wt,[W]:[ws,"resourceId[3]"],[Ye]:cw}],[ae]:[{[U]:[{[X]:ht,[W]:[{[ze]:dI},vz]}],[ae]:[{[U]:pl,endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Ce]:zI,[Ae]:Ve},[D]:he},{endpoint:{[Re]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ce]:zI,[Ae]:Ve},[D]:he}],[D]:ce},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[D]:De}],[D]:ce},{error:"Invalid ARN: expected an access point name",[D]:De}],[D]:ce},{error:"Invalid ARN: Expected a 4-component resource",[D]:De}],[D]:ce},Ob],[D]:ce},Mb],[D]:ce},Db],[D]:ce}],[D]:ce}],[D]:ce},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[D]:De}],[D]:ce},{error:"Invalid ARN: The Outpost Id was not set",[D]:De}],[D]:ce},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[D]:De}],[D]:ce},{error:"Invalid ARN: No ARN type specified",[D]:De}],[D]:ce},{[U]:[{[X]:jt,[W]:[ut,0,4,sve],[Ye]:hI},{[X]:ht,[W]:[{[ze]:hI},"arn:"]},{[X]:Xr,[W]:[{[X]:Vs,[W]:[BI]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[D]:De},{[U]:[{[X]:ln,[W]:[rve,qr]},BI],error:"Path-style addressing cannot be used with ARN buckets",[D]:De},{[U]:ave,[ae]:[{[U]:dr,[ae]:[{[U]:[gn],[ae]:[{[U]:[Bt,Ke,Vt,Rn],endpoint:{[Re]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Bt,Ke,Vt,ct,In],[ae]:[{endpoint:$I,[D]:he}],[D]:ce},{[U]:[Bt,Ke,Vt,ct,On],endpoint:$I,[D]:he},{[U]:[rt,Ke,Vt,Rn],endpoint:{[Re]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,Ke,Vt,ct,In],[ae]:[{endpoint:UI,[D]:he}],[D]:ce},{[U]:[rt,Ke,Vt,ct,On],endpoint:UI,[D]:he},{[U]:[Bt,Ke,et,Rn],endpoint:{[Re]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Bt,Ke,et,ct,In],[ae]:[{endpoint:jI,[D]:he}],[D]:ce},{[U]:[Bt,Ke,et,ct,On],endpoint:jI,[D]:he},{[U]:[rt,an,is,et,Rn],endpoint:{[Re]:Sz,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,an,is,et,ct,In],[ae]:[{[U]:ji,endpoint:kb,[D]:he},{endpoint:kb,[D]:he}],[D]:ce},{[U]:[rt,an,is,et,ct,On],endpoint:kb,[D]:he},{[U]:[rt,Ke,et,Rn],endpoint:{[Re]:pI,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[rt,Ke,et,ct,In],[ae]:[{[U]:ji,endpoint:{[Re]:pI,[Ce]:_n,[Ae]:Ve},[D]:he},{endpoint:HI,[D]:he}],[D]:ce},{[U]:[rt,Ke,et,ct,On],endpoint:HI,[D]:he}],[D]:ce},{error:"Path-style addressing cannot be used with S3 Accelerate",[D]:De}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:Vs,[W]:[VI]},{[X]:ln,[W]:[VI,qr]}],[ae]:[{[U]:dr,[ae]:[{[U]:p2,[ae]:[MI,DI,{[U]:pl,endpoint:{[Re]:xp,[Ce]:Pb,[Ae]:Ve},[D]:he},{[U]:hp,endpoint:{[Re]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Ce]:Pb,[Ae]:Ve},[D]:he},{endpoint:{[Re]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Ce]:Pb,[Ae]:Ve},[D]:he}],[D]:ce},dp],[D]:ce}],[D]:ce},{[U]:[wI],[ae]:[{[U]:dr,[ae]:[{[U]:p2,[ae]:[{[U]:[Vt,Bt,Ke,Rn],endpoint:{[Re]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Vt,Bt,Ke,ct,In],[ae]:[{endpoint:qI,[D]:he}],[D]:ce},{[U]:[Vt,Bt,Ke,ct,On],endpoint:qI,[D]:he},{[U]:[Vt,rt,Ke,Rn],endpoint:{[Re]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[Vt,rt,Ke,ct,In],[ae]:[{endpoint:FI,[D]:he}],[D]:ce},{[U]:[Vt,rt,Ke,ct,On],endpoint:FI,[D]:he},{[U]:[et,Bt,Ke,Rn],endpoint:{[Re]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[et,Bt,Ke,ct,In],[ae]:[{endpoint:GI,[D]:he}],[D]:ce},{[U]:[et,Bt,Ke,ct,On],endpoint:GI,[D]:he},{[U]:[et,rt,an,is,Rn],endpoint:{[Re]:xp,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[et,rt,an,is,ct,In],[ae]:[{[U]:ji,endpoint:Nb,[D]:he},{endpoint:Nb,[D]:he}],[D]:ce},{[U]:[et,rt,an,is,ct,On],endpoint:Nb,[D]:he},{[U]:[et,rt,Ke,Rn],endpoint:{[Re]:mI,[Ce]:Tn,[Ae]:Ve},[D]:he},{[U]:[et,rt,Ke,ct,In],[ae]:[{[U]:ji,endpoint:{[Re]:mI,[Ce]:_n,[Ae]:Ve},[D]:he},{endpoint:ZI,[D]:he}],[D]:ce},{[U]:[et,rt,Ke,ct,On],endpoint:ZI,[D]:he}],[D]:ce},dp],[D]:ce}],[D]:ce}],[D]:ce},{error:"A region must be set when sending requests to S3.",[D]:De}]},hve=dve,pve=new YD({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Tz=(e,t={})=>pve.get(e,()=>ak(hve,{endpointParams:e,logger:t.logger}));Uf.aws=MS;const mve=e=>async(t,n,r)=>{if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const i=await e(t,n,r),c=qo(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c)throw new Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);const l=await Nk(r,{getEndpointParameterInstructions:c},t);return Object.assign(i,l)},gve=async(e,t,n)=>({operation:qo(t).operation,region:await Fs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),yve=mve(gve);function Iz(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function Oz(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const bve=(e,t,n)=>i=>{const l=e(i).properties?.authSchemes;if(!l)return t(i);const f=[];for(const d of l){const{name:h,properties:b={},...g}=d,v=h.toLowerCase();h!==v&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${h}' to '${v}'`);let _;if(v==="sigv4a"){_="aws.auth#sigv4a";const R=l.find(C=>{const I=C.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(fz.sigv4aDependency()==="none"&&R)continue}else if(v.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${v}'`);const w=n[_];if(!w)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);const E=w(i);E.schemeId=_,E.signingProperties={...E.signingProperties||{},...g,...b},f.push(E)}return f},vve=e=>{const t=[];switch(e.operation){default:t.push(Iz(e)),t.push(Oz(e))}return t},Sve=bve(Tz,vve,{"aws.auth#sigv4":Iz,"aws.auth#sigv4a":Oz}),_ve=e=>{const t=yk(e),n=VY(t);return Object.assign(n,{authSchemePreference:Fs(e.authSchemePreference??[])})},wve=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??{}}),uw={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"}};class Pn extends Ya{constructor(t){super(t),Object.setPrototypeOf(this,Pn.prototype)}}class fw extends Pn{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,fw.prototype)}}class dw extends Pn{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,dw.prototype)}}class hw extends Pn{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,hw.prototype)}}class pw extends Pn{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,pw.prototype)}}class mw extends Pn{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,mw.prototype)}}class gw extends Pn{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,gw.prototype)}}class yw extends Pn{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,yw.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class bw extends Pn{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,bw.prototype)}}class vw extends Pn{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,vw.prototype)}}class Sw extends Pn{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,Sw.prototype)}}class _w extends Pn{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,_w.prototype)}}class ww extends Pn{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,ww.prototype)}}class Ew extends Pn{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,Ew.prototype)}}class xw extends Pn{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,xw.prototype)}}class Rw extends Pn{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Rw.prototype)}}const Cw="ACL",Eve="AccessDenied",xve="AbortDate",m2="AccessKeyId",Rve="AbortMultipartUpload",Cve="AbortMultipartUploadOutput",Ave="AbortMultipartUploadRequest",Tve="AcceptRanges",Ive="AbortRuleId",Ove="AccessTier",qn="Bucket",Mz="BucketArn",Mve="BucketAlreadyExists",Dve="BucketAlreadyOwnedByYou",kve="BypassGovernanceRetention",Pve="BucketInfo",Yo="BucketKeyEnabled",Dz="BucketRegion",Aw="Body",kz="Buckets",Wl="ChecksumAlgorithm",Nve="CreateBucket",kv="CreateBucketConfiguration",Lve="CreateBucketOutput",zve="CreateBucketRequest",Tw="CacheControl",ya="ChecksumCRC32",ba="ChecksumCRC32C",va="ChecksumCRC64NVME",Iw="Cache-Control",Bve="CreationDate",Ow="Content-Disposition",Mw="ContentDisposition",Dw="Content-Encoding",kw="ContentEncoding",Pw="ContentLanguage",Nw="Content-Language",Lw="Content-Length",zw="ContentLength",Bw="Content-MD5",$w="ContentMD5",$ve="CompletedMultipartUpload",Uve="CompleteMultipartUploadOutput",jve="CreateMultipartUploadOutput",Hve="CompleteMultipartUploadResult",Vve="CompleteMultipartUploadRequest",qve="CreateMultipartUploadRequest",Pz="CompleteMultipartUpload",Fve="CreateMultipartUpload",Gve="ChecksumMode",Zve="CommonPrefix",Kve="CommonPrefixList",Qve="CompletedPartList",Yve="CompletedPart",Xve="CommonPrefixes",Wve="ContentRange",Jve="Content-Range",Sa="ChecksumSHA1",_a="ChecksumSHA256",eSe="CreateSessionOutput",tSe="CreateSessionResult",nSe="CreateSessionRequest",sSe="CreateSession",Ec="ChecksumType",Uw="Content-Type",jw="ContentType",pg="ContinuationToken",rSe="Contents",g2="Credentials",Nz="DeleteMarker",oSe="DisplayName",iSe="DeleteObjectOutput",aSe="DeleteObjectRequest",cSe="DeleteObject",lSe="DataRedundancy",Lz="Delimiter",Gf="Expiration",Xo="ExpectedBucketOwner",y2="ExpiresString",uSe="EncryptionTypeMismatch",Ho="ETag",zz="EncodingType",Ll="Expires",fSe="FetchOwner",Hw="GrantFullControl",dSe="GetObject",hSe="GetObjectOutput",pSe="GetObjectRequest",Vw="GrantRead",qw="GrantReadACP",mSe="GrantWrite",Fw="GrantWriteACP",gSe="ID",mg="IfMatch",ySe="IfMatchInitiatedTime",bSe="IfMatchLastModifiedTime",vSe="IfMatchSize",SSe="If-Modified-Since",_Se="IfModifiedSince",wSe="InitiateMultipartUploadResult",gg="If-Match",Gw="IfNoneMatch",Zw="If-None-Match",ESe="InvalidObjectState",xSe="IdempotencyParameterMismatch",RSe="InvalidRequest",CSe="IsRestoreInProgress",ASe="IsTruncated",TSe="IfUnmodifiedSince",ISe="If-Unmodified-Since",OSe="InvalidWriteOffset",Ar="Key",MSe="KeyCount",um="Location",DSe="ListAllMyBucketsResult",kSe="ListBuckets",PSe="ListBucketsOutput",NSe="ListBucketsRequest",LSe="ListBucketResult",zSe="LocationConstraint",BSe="LocationInfo",Bz="LastModified",$Se="Last-Modified",USe="ListObjectsV2",jSe="ListObjectsV2Output",HSe="ListObjectsV2Request",Kw="Metadata",VSe="MaxBuckets",qSe="MFA",$z="MaxKeys",FSe="MissingMeta",GSe="MpuObjectSize",ZSe="MultipartUpload",Qw="Name",KSe="NextContinuationToken",QSe="NotFound",YSe="NoSuchBucket",XSe="NoSuchKey",WSe="NoSuchUpload",Yw="Owner",JSe="ObjectAlreadyInActiveTierError",e_e="ObjectLockEnabledForBucket",Xw="ObjectLockLegalHoldStatus",Ww="ObjectLockMode",Jw="ObjectLockRetainUntilDate",t_e="ObjectList",n_e="ObjectNotInActiveTierError",s_e="ObjectOwnership",r_e="OptionalObjectAttributes",o_e="Object",vd="Prefix",i_e="PartsCount",eE="PartNumber",a_e="PutObject",c_e="PutObjectOutput",l_e="PutObjectRequest",u_e="PutObjectTagging",f_e="PutObjectTaggingOutput",d_e="PutObjectTaggingRequest",h_e="Parts",p_e="Part",wa="RequestCharged",m_e="ResponseCacheControl",g_e="ResponseContentDisposition",y_e="ResponseContentEncoding",b_e="ResponseContentLanguage",v_e="ResponseContentType",S_e="ResponseExpires",__e="RestoreExpiryDate",Wo="RequestPayer",w_e="ReplicationStatus",Uz="RestoreStatus",b2="Range",E_e="Restore",jz="StartAfter",v2="SecretAccessKey",x_e="StreamingBlob",Sd="StorageClass",R_e="SessionCredentialValue",C_e="SessionCredentials",A_e="SessionMode",Jo="ServerSideEncryption",ei="SSECustomerAlgorithm",Jl="SSECustomerKey",ti="SSECustomerKeyMD5",xc="SSEKMSEncryptionContext",io="SSEKMSKeyId",S2="SessionToken",Hz="Size",T_e="Tags",I_e="TagCount",O_e="TooManyParts",Vz="TagSet",qz="Tag",Zf="Tagging",Fz="Type",yg="UploadId",M_e="UploadPart",D_e="UploadPartOutput",k_e="UploadPartRequest",P_e="Value",Ea="VersionId",N_e="WriteOffsetBytes",tE="WebsiteRedirectLocation",L_e="accept-ranges",z_e="bucket-region",us="client",Gz="continuation-token",B_e="delimiter",fs="error",$_e="encoding-type",U_e="fetch-owner",Tr="http",bg="httpChecksum",Is="httpError",L="httpHeader",nE="httpPayload",sE="httpPrefixHeaders",Zt="httpQuery",j_e="max-buckets",H_e="max-keys",Zz="prefix",Kz="partNumber",V_e="response-cache-control",q_e="response-content-disposition",F_e="response-content-encoding",G_e="response-content-language",Z_e="response-content-type",K_e="response-expires",Qz="smithy.ts.sdk.synthetic.com.amazonaws.s3",Q_e="start-after",Y_e="streaming",rE="uploadId",oE="versionId",fm="xmlFlattened",Hn="xmlName",iE="x-amz-acl",X_e="x-amz-abort-date",W_e="x-amz-abort-rule-id",J_e="x-amz-bucket-arn",ewe="x-amz-bypass-governance-retention",twe="x-amz-bucket-object-lock-enabled",Yz="x-amz-checksum-algorithm",eu="x-amz-checksum-crc32",tu="x-amz-checksum-crc32c",nu="x-amz-checksum-crc64nvme",nwe="x-amz-checksum-mode",su="x-amz-checksum-sha1",ru="x-amz-checksum-sha256",swe="x-amz-create-session-mode",_d="x-amz-checksum-type",Xz="x-amz-delete-marker",aE="x-amz-expiration",ni="x-amz-expected-bucket-owner",cE="x-amz-grant-full-control",lE="x-amz-grant-read",uE="x-amz-grant-read-acp",rwe="x-amz-grant-write",fE="x-amz-grant-write-acp",owe="x-amz-if-match-initiated-time",iwe="x-amz-if-match-last-modified-time",awe="x-amz-if-match-size",dE="x-amz-meta-",cwe="x-amz-mfa",lwe="x-amz-missing-meta",uwe="x-amz-mp-object-size",fwe="x-amz-mp-parts-count",hE="x-amz-object-lock-legal-hold",pE="x-amz-object-lock-mode",mE="x-amz-object-lock-retain-until-date",dwe="x-amz-object-ownership",hwe="x-amz-optional-object-attributes",pwe="x-amz-object-size",mwe="x-amz-restore",xa="x-amz-request-charged",si="x-amz-request-payer",gwe="x-amz-replication-status",gE="x-amz-storage-class",yE="x-amz-sdk-checksum-algorithm",ri="x-amz-server-side-encryption",oi="x-amz-server-side-encryption-aws-kms-key-id",ii="x-amz-server-side-encryption-bucket-key-enabled",ou="x-amz-server-side-encryption-context",ai="x-amz-server-side-encryption-customer-algorithm",wd="x-amz-server-side-encryption-customer-key",ci="x-amz-server-side-encryption-customer-key-MD5",Wz="x-amz-tagging",ywe="x-amz-tagging-count",Ed="x-amz-version-id",bwe="x-amz-write-offset-bytes",bE="x-amz-website-redirect-location",Te="com.amazonaws.s3",Jz=ts.for(Qz);var vwe=[-3,Qz,"S3ServiceException",0,[],[]];Jz.registerError(vwe,Pn);const ss=ts.for(Te);var Swe=[-3,Te,Eve,{[fs]:us,[Is]:403},[],[]];ss.registerError(Swe,dw);var _we=[-3,Te,Mve,{[fs]:us,[Is]:409},[],[]];ss.registerError(_we,pw);var wwe=[-3,Te,Dve,{[fs]:us,[Is]:409},[],[]];ss.registerError(wwe,mw);var Ewe=[-3,Te,uSe,{[fs]:us,[Is]:400},[],[]];ss.registerError(Ewe,Sw);var xwe=[-3,Te,xSe,{[fs]:us,[Is]:400},[],[]];ss.registerError(xwe,xw);var Rwe=[-3,Te,ESe,{[fs]:us,[Is]:403},[Sd,Ove],[0,0]];ss.registerError(Rwe,yw);var Cwe=[-3,Te,RSe,{[fs]:us,[Is]:400},[],[]];ss.registerError(Cwe,_w);var Awe=[-3,Te,OSe,{[fs]:us,[Is]:400},[],[]];ss.registerError(Awe,ww);var Twe=[-3,Te,YSe,{[fs]:us,[Is]:404},[],[]];ss.registerError(Twe,gw);var Iwe=[-3,Te,XSe,{[fs]:us,[Is]:404},[],[]];ss.registerError(Iwe,bw);var Owe=[-3,Te,WSe,{[fs]:us,[Is]:404},[],[]];ss.registerError(Owe,fw);var Mwe=[-3,Te,QSe,{[fs]:us},[],[]];ss.registerError(Mwe,vw);var Dwe=[-3,Te,JSe,{[fs]:us,[Is]:403},[],[]];ss.registerError(Dwe,Rw);var kwe=[-3,Te,n_e,{[fs]:us,[Is]:403},[],[]];ss.registerError(kwe,hw);var Pwe=[-3,Te,O_e,{[fs]:us,[Is]:400},[],[]];ss.registerError(Pwe,Ew);const Nwe=[Jz,ss];var _2=[0,Te,R_e,8,0],xd=[0,Te,Jl,8,0],iu=[0,Te,xc,8,0],li=[0,Te,io,8,0],vE=[0,Te,x_e,{[Y_e]:1},42],Lwe=[3,Te,Cve,0,[wa],[[0,{[L]:xa}]]],zwe=[3,Te,Ave,0,[qn,Ar,yg,Wo,Xo,ySe],[[0,1],[0,1],[0,{[Zt]:rE}],[0,{[L]:si}],[0,{[L]:ni}],[6,{[L]:owe}]],3],Bwe=[3,Te,qn,0,[Qw,Bve,Dz,Mz],[0,4,0,0]],$we=[3,Te,Pve,0,[lSe,Fz],[0,0]],Uwe=[3,Te,Zve,0,[vd],[0]],jwe=[3,Te,$ve,0,[h_e],[[()=>SEe,{[fm]:1,[Hn]:p_e}]]],Hwe=[3,Te,Yve,0,[Ho,ya,ba,va,Sa,_a,eE],[0,0,0,0,0,0,1]],Vwe=[3,Te,Uve,{[Hn]:Hve},[um,qn,Ar,Gf,Ho,ya,ba,va,Sa,_a,Ec,Jo,Ea,io,Yo,wa],[0,0,0,[0,{[L]:aE}],0,0,0,0,0,0,0,[0,{[L]:ri}],[0,{[L]:Ed}],[()=>li,{[L]:oi}],[2,{[L]:ii}],[0,{[L]:xa}]]],qwe=[3,Te,Vve,0,[qn,Ar,yg,ZSe,ya,ba,va,Sa,_a,Ec,GSe,Wo,Xo,mg,Gw,ei,Jl,ti],[[0,1],[0,1],[0,{[Zt]:rE}],[()=>jwe,{[nE]:1,[Hn]:Pz}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:_d}],[1,{[L]:uwe}],[0,{[L]:si}],[0,{[L]:ni}],[0,{[L]:gg}],[0,{[L]:Zw}],[0,{[L]:ai}],[()=>xd,{[L]:wd}],[0,{[L]:ci}]],3],Fwe=[3,Te,kv,0,[zSe,um,qn,T_e],[0,()=>iEe,()=>$we,[()=>t4,0]]],Gwe=[3,Te,Lve,0,[um,Mz],[[0,{[L]:um}],[0,{[L]:J_e}]]],Zwe=[3,Te,zve,0,[qn,Cw,kv,Hw,Vw,qw,mSe,Fw,e_e,s_e],[[0,1],[0,{[L]:iE}],[()=>Fwe,{[nE]:1,[Hn]:kv}],[0,{[L]:cE}],[0,{[L]:lE}],[0,{[L]:uE}],[0,{[L]:rwe}],[0,{[L]:fE}],[2,{[L]:twe}],[0,{[L]:dwe}]],1],Kwe=[3,Te,jve,{[Hn]:wSe},[xve,Ive,qn,Ar,yg,Jo,ei,ti,io,xc,Yo,wa,Wl,Ec],[[4,{[L]:X_e}],[0,{[L]:W_e}],[0,{[Hn]:qn}],0,0,[0,{[L]:ri}],[0,{[L]:ai}],[0,{[L]:ci}],[()=>li,{[L]:oi}],[()=>iu,{[L]:ou}],[2,{[L]:ii}],[0,{[L]:xa}],[0,{[L]:Yz}],[0,{[L]:_d}]]],Qwe=[3,Te,qve,0,[qn,Ar,Cw,Tw,Mw,kw,Pw,jw,Ll,Hw,Vw,qw,Fw,Kw,Jo,Sd,tE,ei,Jl,ti,io,xc,Yo,Wo,Zf,Ww,Jw,Xw,Xo,Wl,Ec],[[0,1],[0,1],[0,{[L]:iE}],[0,{[L]:Iw}],[0,{[L]:Ow}],[0,{[L]:Dw}],[0,{[L]:Nw}],[0,{[L]:Uw}],[4,{[L]:Ll}],[0,{[L]:cE}],[0,{[L]:lE}],[0,{[L]:uE}],[0,{[L]:fE}],[128,{[sE]:dE}],[0,{[L]:ri}],[0,{[L]:gE}],[0,{[L]:bE}],[0,{[L]:ai}],[()=>xd,{[L]:wd}],[0,{[L]:ci}],[()=>li,{[L]:oi}],[()=>iu,{[L]:ou}],[2,{[L]:ii}],[0,{[L]:si}],[0,{[L]:Wz}],[0,{[L]:pE}],[5,{[L]:mE}],[0,{[L]:hE}],[0,{[L]:ni}],[0,{[L]:Yz}],[0,{[L]:_d}]],2],Ywe=[3,Te,eSe,{[Hn]:tSe},[g2,Jo,io,xc,Yo],[[()=>hEe,{[Hn]:g2}],[0,{[L]:ri}],[()=>li,{[L]:oi}],[()=>iu,{[L]:ou}],[2,{[L]:ii}]],1],Xwe=[3,Te,nSe,0,[qn,A_e,Jo,io,xc,Yo],[[0,1],[0,{[L]:swe}],[0,{[L]:ri}],[()=>li,{[L]:oi}],[()=>iu,{[L]:ou}],[2,{[L]:ii}]],1],Wwe=[3,Te,iSe,0,[Nz,Ea,wa],[[2,{[L]:Xz}],[0,{[L]:Ed}],[0,{[L]:xa}]]],Jwe=[3,Te,aSe,0,[qn,Ar,qSe,Ea,Wo,kve,Xo,mg,bSe,vSe],[[0,1],[0,1],[0,{[L]:cwe}],[0,{[Zt]:oE}],[0,{[L]:si}],[2,{[L]:ewe}],[0,{[L]:ni}],[0,{[L]:gg}],[6,{[L]:iwe}],[1,{[L]:awe}]],2],eEe=[3,Te,hSe,0,[Aw,Nz,Tve,Gf,E_e,Bz,zw,Ho,ya,ba,va,Sa,_a,Ec,FSe,Ea,Tw,Mw,kw,Pw,Wve,jw,Ll,y2,tE,Jo,Kw,ei,ti,io,Yo,Sd,wa,w_e,i_e,I_e,Ww,Jw,Xw],[[()=>vE,16],[2,{[L]:Xz}],[0,{[L]:L_e}],[0,{[L]:aE}],[0,{[L]:mwe}],[4,{[L]:$Se}],[1,{[L]:Lw}],[0,{[L]:Ho}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:_d}],[1,{[L]:lwe}],[0,{[L]:Ed}],[0,{[L]:Iw}],[0,{[L]:Ow}],[0,{[L]:Dw}],[0,{[L]:Nw}],[0,{[L]:Jve}],[0,{[L]:Uw}],[4,{[L]:Ll}],[0,{[L]:y2}],[0,{[L]:bE}],[0,{[L]:ri}],[128,{[sE]:dE}],[0,{[L]:ai}],[0,{[L]:ci}],[()=>li,{[L]:oi}],[2,{[L]:ii}],[0,{[L]:gE}],[0,{[L]:xa}],[0,{[L]:gwe}],[1,{[L]:fwe}],[1,{[L]:ywe}],[0,{[L]:pE}],[5,{[L]:mE}],[0,{[L]:hE}]]],tEe=[3,Te,pSe,0,[qn,Ar,mg,_Se,Gw,TSe,b2,m_e,g_e,y_e,b_e,v_e,S_e,Ea,ei,Jl,ti,Wo,eE,Xo,Gve],[[0,1],[0,1],[0,{[L]:gg}],[4,{[L]:SSe}],[0,{[L]:Zw}],[4,{[L]:ISe}],[0,{[L]:b2}],[0,{[Zt]:V_e}],[0,{[Zt]:q_e}],[0,{[Zt]:F_e}],[0,{[Zt]:G_e}],[0,{[Zt]:Z_e}],[6,{[Zt]:K_e}],[0,{[Zt]:oE}],[0,{[L]:ai}],[()=>xd,{[L]:wd}],[0,{[L]:ci}],[0,{[L]:si}],[1,{[Zt]:Kz}],[0,{[L]:ni}],[0,{[L]:nwe}]],2],nEe=[3,Te,PSe,{[Hn]:DSe},[kz,Yw,pg,vd],[[()=>bEe,0],()=>e4,0,0]],sEe=[3,Te,NSe,0,[VSe,pg,vd,Dz],[[1,{[Zt]:j_e}],[0,{[Zt]:Gz}],[0,{[Zt]:Zz}],[0,{[Zt]:z_e}]]],rEe=[3,Te,jSe,{[Hn]:LSe},[ASe,rSe,Qw,vd,Lz,$z,Xve,zz,MSe,pg,KSe,jz,wa],[2,[()=>_Ee,{[fm]:1}],0,0,0,1,[()=>vEe,{[fm]:1}],0,1,0,0,0,[0,{[L]:xa}]]],oEe=[3,Te,HSe,0,[qn,Lz,zz,$z,vd,pg,fSe,jz,Wo,Xo,r_e],[[0,1],[0,{[Zt]:B_e}],[0,{[Zt]:$_e}],[1,{[Zt]:H_e}],[0,{[Zt]:Zz}],[0,{[Zt]:Gz}],[2,{[Zt]:U_e}],[0,{[Zt]:Q_e}],[0,{[L]:si}],[0,{[L]:ni}],[64,{[L]:hwe}]],1],iEe=[3,Te,BSe,0,[Fz,Qw],[0,0]],aEe=[3,Te,o_e,0,[Ar,Bz,Ho,Wl,Ec,Hz,Sd,Yw,Uz],[0,4,0,[64,{[fm]:1}],0,1,0,()=>e4,()=>dEe]],e4=[3,Te,Yw,0,[oSe,gSe],[0,0]],cEe=[3,Te,c_e,0,[Gf,Ho,ya,ba,va,Sa,_a,Ec,Jo,Ea,ei,ti,io,xc,Yo,Hz,wa],[[0,{[L]:aE}],[0,{[L]:Ho}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:_d}],[0,{[L]:ri}],[0,{[L]:Ed}],[0,{[L]:ai}],[0,{[L]:ci}],[()=>li,{[L]:oi}],[()=>iu,{[L]:ou}],[2,{[L]:ii}],[1,{[L]:pwe}],[0,{[L]:xa}]]],lEe=[3,Te,l_e,0,[qn,Ar,Cw,Aw,Tw,Mw,kw,Pw,zw,$w,jw,Wl,ya,ba,va,Sa,_a,Ll,mg,Gw,Hw,Vw,qw,Fw,N_e,Kw,Jo,Sd,tE,ei,Jl,ti,io,xc,Yo,Wo,Zf,Ww,Jw,Xw,Xo],[[0,1],[0,1],[0,{[L]:iE}],[()=>vE,16],[0,{[L]:Iw}],[0,{[L]:Ow}],[0,{[L]:Dw}],[0,{[L]:Nw}],[1,{[L]:Lw}],[0,{[L]:Bw}],[0,{[L]:Uw}],[0,{[L]:yE}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[4,{[L]:Ll}],[0,{[L]:gg}],[0,{[L]:Zw}],[0,{[L]:cE}],[0,{[L]:lE}],[0,{[L]:uE}],[0,{[L]:fE}],[1,{[L]:bwe}],[128,{[sE]:dE}],[0,{[L]:ri}],[0,{[L]:gE}],[0,{[L]:bE}],[0,{[L]:ai}],[()=>xd,{[L]:wd}],[0,{[L]:ci}],[()=>li,{[L]:oi}],[()=>iu,{[L]:ou}],[2,{[L]:ii}],[0,{[L]:si}],[0,{[L]:Wz}],[0,{[L]:pE}],[5,{[L]:mE}],[0,{[L]:hE}],[0,{[L]:ni}]],2],uEe=[3,Te,f_e,0,[Ea],[[0,{[L]:Ed}]]],fEe=[3,Te,d_e,0,[qn,Ar,Zf,Ea,$w,Wl,Xo,Wo],[[0,1],[0,1],[()=>mEe,{[nE]:1,[Hn]:Zf}],[0,{[Zt]:oE}],[0,{[L]:Bw}],[0,{[L]:yE}],[0,{[L]:ni}],[0,{[L]:si}]],3],dEe=[3,Te,Uz,0,[CSe,__e],[2,4]],hEe=[3,Te,C_e,0,[m2,v2,S2,Gf],[[0,{[Hn]:m2}],[()=>_2,{[Hn]:v2}],[()=>_2,{[Hn]:S2}],[4,{[Hn]:Gf}]],4],pEe=[3,Te,qz,0,[Ar,P_e],[0,0],2],mEe=[3,Te,Zf,0,[Vz],[[()=>t4,0]],1],gEe=[3,Te,D_e,0,[Jo,Ho,ya,ba,va,Sa,_a,ei,ti,io,Yo,wa],[[0,{[L]:ri}],[0,{[L]:Ho}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:ai}],[0,{[L]:ci}],[()=>li,{[L]:oi}],[2,{[L]:ii}],[0,{[L]:xa}]]],yEe=[3,Te,k_e,0,[qn,Ar,eE,yg,Aw,zw,$w,Wl,ya,ba,va,Sa,_a,ei,Jl,ti,Wo,Xo],[[0,1],[0,1],[1,{[Zt]:Kz}],[0,{[Zt]:rE}],[()=>vE,16],[1,{[L]:Lw}],[0,{[L]:Bw}],[0,{[L]:yE}],[0,{[L]:eu}],[0,{[L]:tu}],[0,{[L]:nu}],[0,{[L]:su}],[0,{[L]:ru}],[0,{[L]:ai}],[()=>xd,{[L]:wd}],[0,{[L]:ci}],[0,{[L]:si}],[0,{[L]:ni}]],4],bEe=[1,Te,kz,0,[()=>Bwe,{[Hn]:qn}]],vEe=[1,Te,Kve,0,()=>Uwe],SEe=[1,Te,Qve,0,()=>Hwe],_Ee=[1,Te,t_e,0,[()=>aEe,0]],t4=[1,Te,Vz,0,[()=>pEe,{[Hn]:qz}]],vCe=[9,Te,Rve,{[Tr]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>zwe,()=>Lwe],SCe=[9,Te,Pz,{[Tr]:["POST","/{Key+}",200]},()=>qwe,()=>Vwe],_Ce=[9,Te,Nve,{[Tr]:["PUT","/",200]},()=>Zwe,()=>Gwe],wCe=[9,Te,Fve,{[Tr]:["POST","/{Key+}?uploads",200]},()=>Qwe,()=>Kwe],wEe=[9,Te,sSe,{[Tr]:["GET","/?session",200]},()=>Xwe,()=>Ywe],ECe=[9,Te,cSe,{[Tr]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>Jwe,()=>Wwe],xCe=[9,Te,dSe,{[bg]:"-",[Tr]:["GET","/{Key+}?x-id=GetObject",200]},()=>tEe,()=>eEe],EEe=[9,Te,kSe,{[Tr]:["GET","/?x-id=ListBuckets",200]},()=>sEe,()=>nEe],xEe=[9,Te,USe,{[Tr]:["GET","/?list-type=2",200]},()=>oEe,()=>rEe],RCe=[9,Te,a_e,{[bg]:"-",[Tr]:["PUT","/{Key+}?x-id=PutObject",200]},()=>lEe,()=>cEe],CCe=[9,Te,u_e,{[bg]:"-",[Tr]:["PUT","/{Key+}?tagging",200]},()=>fEe,()=>uEe],ACe=[9,Te,M_e,{[bg]:"-",[Tr]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>yEe,()=>gEe];class REe extends Cs.classBuilder().ep({...uw,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions()),nw(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(wEe).build(){}const CEe="3.1000.0",AEe={version:CEe};function w2(e){return typeof e=="string"?e.length===0:e.byteLength===0}var n4={name:"SHA-1"},E2={name:"HMAC",hash:n4},TEe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),IEe=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){Ji().crypto.subtle.importKey("raw",x2(t),E2,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!w2(t)){var n=x2(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return Ji().crypto.subtle.sign(E2,n,t.toHash).then(function(r){return new Uint8Array(r)})}):w2(this.toHash)?Promise.resolve(TEe):Promise.resolve().then(function(){return Ji().crypto.subtle.digest(n4,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function x2(e){return typeof e=="string"?Vk(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var OEe=(function(){function e(t){if(Zk(Ji()))this.hash=new IEe(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(lc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();class Tf{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&R2(n),new Tf(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&R2(t),parseInt(_s(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function R2(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class MEe{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){const n=[];for(const c of Object.keys(t)){const l=this.fromUtf8(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=this.fromUtf8(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const h=new Uint8Array(d.buffer);return h.set(f,3),h;case"timestamp":const b=new Uint8Array(9);return b[0]=8,b.set(Tf.fromNumber(t.value.valueOf()).bytes,1),b;case"uuid":if(!UEe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(zD(t.value.replace(/\-/g,"")),1),g}}parse(t){const n={};let r=0;for(;r{if(typeof f!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+f);t=f,n=4,r=new Uint8Array(f),new DataView(r.buffer).setUint32(0,f,!1)},l=async function*(){const f=e[Symbol.asyncIterator]();for(;;){const{value:d,done:h}=await f.next();if(h){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const b=d.length;let g=0;for(;g({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),WEe=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){const{done:r,value:i}=await t.next();if(r)return n.close();n.enqueue(i)}})};class JEe{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new YEe({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const r=exe(t)?XEe(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){const r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?WEe(r):r}}const exe=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,txe=e=>new JEe(e);async function nxe(e,t,n=1024*1024){const r=e.size;let i=0;for(;i{r.update(i)}),r.digest()},Hi=64,rxe=16,oxe=[1732584193,4023233417,2562383102,271733878];class ixe{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(axe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const n=cxe(t);let r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===Hi&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:n,bufferLength:r,bytesHashed:i}=this,c=i*8;if(n.setUint8(this.bufferLength++,128),r%Hi>=Hi-8){for(let l=this.bufferLength;l>>0,!0),n.setUint32(Hi-4,Math.floor(c/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(rxe));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:n}=this;let r=n[0],i=n[1],c=n[2],l=n[3];r=Xn(r,i,c,l,t.getUint32(0,!0),7,3614090360),l=Xn(l,r,i,c,t.getUint32(4,!0),12,3905402710),c=Xn(c,l,r,i,t.getUint32(8,!0),17,606105819),i=Xn(i,c,l,r,t.getUint32(12,!0),22,3250441966),r=Xn(r,i,c,l,t.getUint32(16,!0),7,4118548399),l=Xn(l,r,i,c,t.getUint32(20,!0),12,1200080426),c=Xn(c,l,r,i,t.getUint32(24,!0),17,2821735955),i=Xn(i,c,l,r,t.getUint32(28,!0),22,4249261313),r=Xn(r,i,c,l,t.getUint32(32,!0),7,1770035416),l=Xn(l,r,i,c,t.getUint32(36,!0),12,2336552879),c=Xn(c,l,r,i,t.getUint32(40,!0),17,4294925233),i=Xn(i,c,l,r,t.getUint32(44,!0),22,2304563134),r=Xn(r,i,c,l,t.getUint32(48,!0),7,1804603682),l=Xn(l,r,i,c,t.getUint32(52,!0),12,4254626195),c=Xn(c,l,r,i,t.getUint32(56,!0),17,2792965006),i=Xn(i,c,l,r,t.getUint32(60,!0),22,1236535329),r=Wn(r,i,c,l,t.getUint32(4,!0),5,4129170786),l=Wn(l,r,i,c,t.getUint32(24,!0),9,3225465664),c=Wn(c,l,r,i,t.getUint32(44,!0),14,643717713),i=Wn(i,c,l,r,t.getUint32(0,!0),20,3921069994),r=Wn(r,i,c,l,t.getUint32(20,!0),5,3593408605),l=Wn(l,r,i,c,t.getUint32(40,!0),9,38016083),c=Wn(c,l,r,i,t.getUint32(60,!0),14,3634488961),i=Wn(i,c,l,r,t.getUint32(16,!0),20,3889429448),r=Wn(r,i,c,l,t.getUint32(36,!0),5,568446438),l=Wn(l,r,i,c,t.getUint32(56,!0),9,3275163606),c=Wn(c,l,r,i,t.getUint32(12,!0),14,4107603335),i=Wn(i,c,l,r,t.getUint32(32,!0),20,1163531501),r=Wn(r,i,c,l,t.getUint32(52,!0),5,2850285829),l=Wn(l,r,i,c,t.getUint32(8,!0),9,4243563512),c=Wn(c,l,r,i,t.getUint32(28,!0),14,1735328473),i=Wn(i,c,l,r,t.getUint32(48,!0),20,2368359562),r=Jn(r,i,c,l,t.getUint32(20,!0),4,4294588738),l=Jn(l,r,i,c,t.getUint32(32,!0),11,2272392833),c=Jn(c,l,r,i,t.getUint32(44,!0),16,1839030562),i=Jn(i,c,l,r,t.getUint32(56,!0),23,4259657740),r=Jn(r,i,c,l,t.getUint32(4,!0),4,2763975236),l=Jn(l,r,i,c,t.getUint32(16,!0),11,1272893353),c=Jn(c,l,r,i,t.getUint32(28,!0),16,4139469664),i=Jn(i,c,l,r,t.getUint32(40,!0),23,3200236656),r=Jn(r,i,c,l,t.getUint32(52,!0),4,681279174),l=Jn(l,r,i,c,t.getUint32(0,!0),11,3936430074),c=Jn(c,l,r,i,t.getUint32(12,!0),16,3572445317),i=Jn(i,c,l,r,t.getUint32(24,!0),23,76029189),r=Jn(r,i,c,l,t.getUint32(36,!0),4,3654602809),l=Jn(l,r,i,c,t.getUint32(48,!0),11,3873151461),c=Jn(c,l,r,i,t.getUint32(60,!0),16,530742520),i=Jn(i,c,l,r,t.getUint32(8,!0),23,3299628645),r=es(r,i,c,l,t.getUint32(0,!0),6,4096336452),l=es(l,r,i,c,t.getUint32(28,!0),10,1126891415),c=es(c,l,r,i,t.getUint32(56,!0),15,2878612391),i=es(i,c,l,r,t.getUint32(20,!0),21,4237533241),r=es(r,i,c,l,t.getUint32(48,!0),6,1700485571),l=es(l,r,i,c,t.getUint32(12,!0),10,2399980690),c=es(c,l,r,i,t.getUint32(40,!0),15,4293915773),i=es(i,c,l,r,t.getUint32(4,!0),21,2240044497),r=es(r,i,c,l,t.getUint32(32,!0),6,1873313359),l=es(l,r,i,c,t.getUint32(60,!0),10,4264355552),c=es(c,l,r,i,t.getUint32(24,!0),15,2734768916),i=es(i,c,l,r,t.getUint32(52,!0),21,1309151649),r=es(r,i,c,l,t.getUint32(16,!0),6,4149444226),l=es(l,r,i,c,t.getUint32(44,!0),10,3174756917),c=es(c,l,r,i,t.getUint32(8,!0),15,718787259),i=es(i,c,l,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=c+n[2]&4294967295,n[3]=l+n[3]&4294967295}reset(){this.state=Uint32Array.from(oxe),this.buffer=new DataView(new ArrayBuffer(Hi)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function vg(e,t,n,r,i,c){return t=(t+e&4294967295)+(r+c&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function Xn(e,t,n,r,i,c,l){return vg(t&n|~t&r,e,t,i,c,l)}function Wn(e,t,n,r,i,c,l){return vg(t&r|n&~r,e,t,i,c,l)}function Jn(e,t,n,r,i,c,l){return vg(t^n^r,e,t,i,c,l)}function es(e,t,n,r,i,c,l){return vg(n^(t|~r),e,t,i,c,l)}function axe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function cxe(e){return typeof e=="string"?jo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const lxe=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??cc,base64Encoder:e?.base64Encoder??ea,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Tz,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??uQ,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Sve,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new kS},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new jY}],logger:e?.logger??new PS,protocol:e?.protocol??kX,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:Nwe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??BD,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??fz,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Hf,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??jo,utf8Encoder:e?.utf8Encoder??hc}),uxe=e=>{const t=Xk(e),n=()=>t().then(Sk),r=lxe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??bk,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qk({serviceId:r.serviceId,clientVersion:AEe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??txe,maxAttempts:e?.maxAttempts??Vf,md5:e?.md5??ixe,region:e?.region??Yk("Region is missing"),requestHandler:zm.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||zk),sha1:e?.sha1??OEe,sha256:e?.sha256??Kk,streamCollector:e?.streamCollector??xS,streamHasher:e?.streamHasher??sxe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Tk)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Ik))}},fxe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},dxe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hxe=(e,t)=>{const n=Object.assign(tz(e),wk(e),AD(e),fxe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,nz(n),Ek(n),TD(n),dxe(n))};class pxe extends vk{config;constructor(...[t]){const n=uxe(t||{});super(n),this.initConfig=n;const r=wve(n),i=QD(r),c=Rbe(i),l=jk(c),f=Mk(l),d=f,h=Lk(d),b=tve(h),g=_ve(b),v=Vbe(g,{session:[()=>this,REe]}),_=hxe(v,t?.extensions||[]);this.config=_,this.middlewareStack.use(UD(this.config)),this.middlewareStack.use(Ak(this.config)),this.middlewareStack.use(Hk(this.config)),this.middlewareStack.use(Dk(this.config)),this.middlewareStack.use(ID(this.config)),this.middlewareStack.use(OD(this.config)),this.middlewareStack.use(MD(this.config)),this.middlewareStack.use(DD(this.config,{httpAuthSchemeParametersProvider:yve,identityProviderConfigProvider:async w=>new ZD({"aws.auth#sigv4":w.credentials,"aws.auth#sigv4a":w.credentials})})),this.middlewareStack.use(PD(this.config)),this.middlewareStack.use(eve(this.config)),this.middlewareStack.use(Sbe(this.config)),this.middlewareStack.use(Obe(this.config)),this.middlewareStack.use(zbe(this.config)),this.middlewareStack.use(Hbe(this.config))}destroy(){super.destroy()}}class mxe extends Cs.classBuilder().ep(uw).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions()),nw(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(EEe).build(){}class gxe extends Cs.classBuilder().ep({...uw,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[Ks(r,t.getEndpointParameterInstructions()),nw(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(xEe).build(){}const yxe=`${window.location.protocol}//${window.location.hostname}:9999`,bxe=`${window.location.protocol}//${window.location.hostname}:8443`;let Rp=null,yf=null;function Fn(){if(!Rp){const e=Lm();if(!e)throw new Error("AWS credentials not configured");Rp=new pbe({endpoint:yxe,region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return Rp}function r4(){if(!yf){const e=Lm();if(!e)throw new Error("AWS credentials not configured");yf=new pxe({endpoint:bxe,region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),yf.middlewareStack.use({applyToStack:t=>{t.add(n=>r=>{const i=r.request;return i?.path?.endsWith("/")&&i.path!=="/"&&(i.path=i.path.slice(0,-1)),n(r)},{step:"build",name:"removeTrailingSlash"})}})}return yf}function vxe(){Rp=null,yf=null}function o4(){const e=kt.c(82);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Sxe},e[0]=t):t=e[0];const n=f5(t),r=bm(),i=L2();let c;e[1]!==r||e[2]!==i?(c=function(){GK(),vxe(),i.clear(),r({to:"/login"})},e[1]=r,e[2]=i,e[3]=c):c=e[3];const l=c;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=N.jsx(rp,{children:"General"}),e[4]=f):f=e[4];const d=n==="/";let h,b;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=N.jsx(i8,{className:"size-4"}),b=N.jsx("span",{children:"Dashboard"}),e[5]=h,e[6]=b):(h=e[5],b=e[6]);let g;e[7]!==d?(g=N.jsxs(sp,{children:[f,N.jsx(lf,{children:N.jsx(Hr,{children:N.jsx($s,{to:"/",children:N.jsxs(Vr,{isActive:d,tooltip:"Dashboard",children:[h,b]})})})})]}),e[7]=d,e[8]=g):g=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=N.jsx(rp,{children:"EC2"}),e[9]=v):v=e[9];let _;e[10]!==n?(_=n.startsWith("/ec2/describe-instances")||n.startsWith("/ec2/run-instances"),e[10]=n,e[11]=_):_=e[11];let w,E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=N.jsx(cA,{className:"size-4"}),w=N.jsx("span",{children:"Instances"}),e[12]=w,e[13]=E):(w=e[12],E=e[13]);let R;e[14]!==_?(R=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-instances",children:N.jsxs(Vr,{isActive:_,tooltip:"EC2 Instances",children:[E,w]})})}),e[14]=_,e[15]=R):R=e[15];let C;e[16]!==n?(C=n.startsWith("/ec2/describe-images"),e[16]=n,e[17]=C):C=e[17];let I,k;e[18]===Symbol.for("react.memo_cache_sentinel")?(I=N.jsx(c8,{className:"size-4"}),k=N.jsx("span",{children:"Images"}),e[18]=I,e[19]=k):(I=e[18],k=e[19]);let T;e[20]!==C?(T=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-images",children:N.jsxs(Vr,{isActive:C,tooltip:"Images",children:[I,k]})})}),e[20]=C,e[21]=T):T=e[21];let $;e[22]!==n?($=n.startsWith("/ec2/describe-key-pairs"),e[22]=n,e[23]=$):$=e[23];let j,H;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=N.jsx(u8,{className:"size-4"}),H=N.jsx("span",{children:"Key Pairs"}),e[24]=j,e[25]=H):(j=e[24],H=e[25]);let P;e[26]!==$?(P=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-key-pairs",children:N.jsxs(Vr,{isActive:$,tooltip:"Key Pairs",children:[j,H]})})}),e[26]=$,e[27]=P):P=e[27];let Q;e[28]!==n?(Q=n.startsWith("/ec2/describe-volumes")||n.startsWith("/ec2/create-volume")||n.startsWith("/ec2/modify-volume"),e[28]=n,e[29]=Q):Q=e[29];let ne,te;e[30]===Symbol.for("react.memo_cache_sentinel")?(ne=N.jsx(r8,{className:"size-4"}),te=N.jsx("span",{children:"Volumes"}),e[30]=ne,e[31]=te):(ne=e[30],te=e[31]);let F;e[32]!==Q?(F=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-volumes",children:N.jsxs(Vr,{isActive:Q,tooltip:"Volumes",children:[ne,te]})})}),e[32]=Q,e[33]=F):F=e[33];let oe;e[34]!==n?(oe=n.startsWith("/ec2/describe-snapshots")||n.startsWith("/ec2/create-snapshot"),e[34]=n,e[35]=oe):oe=e[35];let me,ge;e[36]===Symbol.for("react.memo_cache_sentinel")?(me=N.jsx(e8,{className:"size-4"}),ge=N.jsx("span",{children:"Snapshots"}),e[36]=me,e[37]=ge):(me=e[36],ge=e[37]);let V;e[38]!==oe?(V=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-snapshots",children:N.jsxs(Vr,{isActive:oe,tooltip:"Snapshots",children:[me,ge]})})}),e[38]=oe,e[39]=V):V=e[39];let re;e[40]!==R||e[41]!==T||e[42]!==P||e[43]!==F||e[44]!==V?(re=N.jsxs(sp,{children:[v,N.jsxs(lf,{children:[R,T,P,F,V]})]}),e[40]=R,e[41]=T,e[42]=P,e[43]=F,e[44]=V,e[45]=re):re=e[45];let J;e[46]===Symbol.for("react.memo_cache_sentinel")?(J=N.jsx(rp,{children:"Networking"}),e[46]=J):J=e[46];let be;e[47]!==n?(be=n.startsWith("/ec2/describe-vpcs")||n.startsWith("/ec2/create-vpc"),e[47]=n,e[48]=be):be=e[48];let ue,z;e[49]===Symbol.for("react.memo_cache_sentinel")?(ue=N.jsx(b8,{className:"size-4"}),z=N.jsx("span",{children:"VPCs"}),e[49]=ue,e[50]=z):(ue=e[49],z=e[50]);let ee;e[51]!==be?(ee=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-vpcs",children:N.jsxs(Vr,{isActive:be,tooltip:"VPCs",children:[ue,z]})})}),e[51]=be,e[52]=ee):ee=e[52];let ye;e[53]!==n?(ye=n.startsWith("/ec2/describe-subnets")||n.startsWith("/ec2/create-subnet"),e[53]=n,e[54]=ye):ye=e[54];let we,Ee;e[55]===Symbol.for("react.memo_cache_sentinel")?(we=N.jsx(d8,{className:"size-4"}),Ee=N.jsx("span",{children:"Subnets"}),e[55]=we,e[56]=Ee):(we=e[55],Ee=e[56]);let Se;e[57]!==ye?(Se=N.jsx(Hr,{children:N.jsx($s,{to:"/ec2/describe-subnets",children:N.jsxs(Vr,{isActive:ye,tooltip:"Subnets",children:[we,Ee]})})}),e[57]=ye,e[58]=Se):Se=e[58];let Ie;e[59]!==ee||e[60]!==Se?(Ie=N.jsxs(sp,{children:[J,N.jsxs(lf,{children:[ee,Se]})]}),e[59]=ee,e[60]=Se,e[61]=Ie):Ie=e[61];let qe;e[62]===Symbol.for("react.memo_cache_sentinel")?(qe=N.jsx(rp,{children:"S3"}),e[62]=qe):qe=e[62];let ve;e[63]!==n?(ve=n.startsWith("/s3/ls"),e[63]=n,e[64]=ve):ve=e[64];let Je,wt;e[65]===Symbol.for("react.memo_cache_sentinel")?(Je=N.jsx(cA,{className:"size-4"}),wt=N.jsx("span",{children:"Buckets"}),e[65]=Je,e[66]=wt):(Je=e[65],wt=e[66]);let pe;e[67]!==ve?(pe=N.jsxs(sp,{children:[qe,N.jsx(lf,{children:N.jsx(Hr,{children:N.jsx($s,{to:"/s3/ls",children:N.jsxs(Vr,{isActive:ve,tooltip:"Buckets",children:[Je,wt]})})})})]}),e[67]=ve,e[68]=pe):pe=e[68];let xe;e[69]!==re||e[70]!==Ie||e[71]!==pe||e[72]!==g?(xe=N.jsxs(aq,{children:[g,re,Ie,pe]}),e[69]=re,e[70]=Ie,e[71]=pe,e[72]=g,e[73]=xe):xe=e[73];let _e,Ge;e[74]===Symbol.for("react.memo_cache_sentinel")?(_e=N.jsx(p8,{className:"size-4"}),Ge=N.jsx("span",{children:"Sign out"}),e[74]=_e,e[75]=Ge):(_e=e[74],Ge=e[75]);let Oe;e[76]!==l?(Oe=N.jsx(iq,{children:N.jsx(lf,{children:N.jsx(Hr,{children:N.jsxs(Vr,{onClick:l,tooltip:"Sign out",children:[_e,Ge]})})})}),e[76]=l,e[77]=Oe):Oe=e[77];let He;e[78]===Symbol.for("react.memo_cache_sentinel")?(He=N.jsx(oq,{}),e[78]=He):He=e[78];let Me;return e[79]!==xe||e[80]!==Oe?(Me=N.jsxs(sq,{collapsible:"icon",children:[xe,Oe,He]}),e[79]=xe,e[80]=Oe,e[81]=Me):Me=e[81],Me}function Sxe(e){return e.pathname}function _xe(e){const t=kt.c(18),{error:n,reset:r}=e,i=ns(),c=L2();let l;t[0]!==c||t[1]!==r||t[2]!==i?(l=function(){c.invalidateQueries(),r(),i.invalidate()},t[0]=c,t[1]=r,t[2]=i,t[3]=l):l=t[3];const f=l;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=N.jsx(o4,{}),t[4]=d):d=t[4];let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h=N.jsx(XM,{}),t[5]=h):h=t[5];let b,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=N.jsx("div",{className:"flex justify-center",children:N.jsx(n8,{className:"size-12 text-destructive"})}),g=N.jsx("h1",{className:"font-semibold text-2xl",children:"Something went wrong"}),t[6]=b,t[7]=g):(b=t[6],g=t[7]);const v=n.message||"An unexpected error occurred";let _;t[8]!==v?(_=N.jsx("p",{className:"text-muted-foreground",children:v}),t[8]=v,t[9]=_):_=t[9];let w;t[10]!==f?(w=N.jsx(Il,{onClick:f,variant:"default",children:"Try Again"}),t[10]=f,t[11]=w):w=t[11];let E;t[12]===Symbol.for("react.memo_cache_sentinel")?(E=N.jsx($s,{to:"/",children:N.jsx(Il,{variant:"outline",children:"Go Home"})}),t[12]=E):E=t[12];let R;t[13]!==w?(R=N.jsxs("div",{className:"flex justify-center gap-2",children:[w,E]}),t[13]=w,t[14]=R):R=t[14];let C;return t[15]!==R||t[16]!==_?(C=N.jsxs(N.Fragment,{children:[d,N.jsxs("main",{className:"flex flex-1 flex-col",children:[h,N.jsx("div",{className:"flex flex-1 items-center justify-center p-6 pt-0",children:N.jsxs("div",{className:"max-w-md space-y-4 text-center",children:[b,g,_,R]})})]})]}),t[15]=R,t[16]=_,t[17]=C):C=t[17],C}const SE=XU()({head:()=>({meta:[{title:"Mulga"}]}),component:()=>N.jsxs(N.Fragment,{children:[N.jsx(g5,{}),N.jsx(o4,{}),N.jsxs("main",{className:"flex flex-1 flex-col",children:[N.jsx(XM,{}),N.jsx("div",{className:"flex flex-1 flex-col p-8",children:N.jsx(aO,{})})]})]}),errorComponent:_xe,notFoundComponent:uq}),wxe=()=>Rt(()=>import("./login.js"),__vite__mapDeps([0,1,2,3])),Exe=_t("/login")({beforeLoad:()=>{if(Lm())throw Vv({to:"/"})},component:Tt(wxe,"component")}),xxe=()=>Rt(()=>import("./route.js"),[]),Rxe=_t("/_auth")({beforeLoad:()=>{if(!Lm())throw Vv({to:"/login"})},component:Tt(xxe,"component")}),i4={queryKey:["ec2","availabilityZones"],queryFn:()=>{const e=new mbe({});return Fn().send(e)},staleTime:3e5},a4={queryKey:["ec2","instances"],queryFn:()=>{const e=new rz({});return Fn().send(e)},refetchInterval:5e3},Cxe=e=>({queryKey:["ec2","instances",e],queryFn:()=>{const t=new rz({InstanceIds:[e]});return Fn().send(t)},refetchInterval:5e3}),c4={queryKey:["ec2","instances","types"],queryFn:()=>{const e=new gbe({Filters:[{Name:"capacity",Values:["true"]}]});return Fn().send(e)},refetchInterval:5e3},l4={queryKey:["ec2","images"],queryFn:()=>{const e=new sz({});return Fn().send(e)}},u4=e=>({queryKey:["ec2","images",e??"none"],queryFn:()=>{if(!e)return{Images:[],$metadata:{}};const t=new sz({ImageIds:[e]});return Fn().send(t)}}),f4={queryKey:["ec2","keypairs"],queryFn:()=>{const e=new oz({});return Fn().send(e)}},Axe=e=>({queryKey:["ec2","keypairs",e],queryFn:()=>{const t=new oz({KeyPairIds:[e]});return Fn().send(t)}}),d4={queryKey:["ec2","regions"],queryFn:()=>{const e=new ybe({});return Fn().send(e)},staleTime:3e5},_E={queryKey:["ec2","subnets"],queryFn:()=>{const e=new az({});return Fn().send(e)}},Txe=e=>({queryKey:["ec2","subnets",e],queryFn:()=>{const t=new az({SubnetIds:[e]});return Fn().send(t)}}),Ixe={queryKey:["ec2","snapshots"],queryFn:()=>{const e=new iz({});return Fn().send(e)},refetchInterval:5e3},Oxe=e=>({queryKey:["ec2","snapshots",e],queryFn:()=>{const t=new iz({SnapshotIds:[e]});return Fn().send(t)},refetchInterval:5e3}),h4={queryKey:["ec2","vpcs"],queryFn:()=>{const e=new lz({});return Fn().send(e)}},Mxe=e=>({queryKey:["ec2","vpcs",e],queryFn:()=>{const t=new lz({VpcIds:[e]});return Fn().send(t)}}),p4={queryKey:["ec2","volumes"],queryFn:()=>{const e=new cz({});return Fn().send(e)},refetchInterval:5e3},m4=e=>({queryKey:["ec2","volumes",e],queryFn:()=>{const t=new cz({VolumeIds:[e]});return Fn().send(t)},refetchInterval:5e3}),Dxe=()=>Rt(()=>import("./index3.js"),__vite__mapDeps([4,5,6])),kxe=_t("/_auth/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(d4)},head:()=>({meta:[{title:"Dashboard | Mulga"}]}),component:Tt(Dxe,"component")}),Pxe={queryKey:["s3","buckets"],queryFn:async()=>{try{const e=new mxe({});return await r4().send(e)}catch{throw new Error("Failed to fetch S3 buckets")}}},g4=(e,t)=>({queryKey:["s3","buckets",e,"objects",t??""],queryFn:async()=>{try{const n=new gxe({Bucket:e,Prefix:t,Delimiter:"/"});return await r4().send(n)}catch{throw new Error("Failed to fetch S3 bucket objects")}}}),Nxe=()=>Rt(()=>import("./index4.js"),__vite__mapDeps([7,5,8,6])),Lxe=_t("/_auth/s3/ls/")({head:()=>({meta:[{title:"Buckets | S3 | Mulga"}]}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(Pxe)},component:Tt(Nxe,"component")}),zxe=()=>Rt(()=>import("./create-bucket.js"),__vite__mapDeps([9,1,10,11,6,2,3,12])),Bxe=_t("/_auth/s3/(buckets)/create-bucket")({head:()=>({meta:[{title:"Create Bucket | S3 | Mulga"}]}),component:Tt(zxe,"component")}),$xe=()=>Rt(()=>import("./create-vpc.js"),__vite__mapDeps([13,1,10,11,6,2,3,14,15])),Uxe=_t("/_auth/ec2/(vpc)/create-vpc")({head:()=>({meta:[{title:"Create VPC | EC2 | Mulga"}]}),component:Tt($xe,"component")}),jxe=()=>Rt(()=>import("./create-volume.js"),__vite__mapDeps([16,1,5,10,11,6,2,3,17,18,14,15])),Hxe=_t("/_auth/ec2/(volumes)/create-volume")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(i4)},head:()=>({meta:[{title:"Create Volume | EC2 | Mulga"}]}),component:Tt(jxe,"component")}),Vxe=()=>Rt(()=>import("./create-subnet.js"),__vite__mapDeps([19,1,5,10,11,6,2,3,17,18,14,15])),qxe=_t("/_auth/ec2/(subnet)/create-subnet")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(h4),e.queryClient.ensureQueryData(i4)])},head:()=>({meta:[{title:"Create Subnet | EC2 | Mulga"}]}),component:Tt(Vxe,"component")}),Fxe=()=>Rt(()=>import("./create-snapshot.js"),__vite__mapDeps([20,1,5,10,11,6,2,17,18,21,14,15])),Gxe=_t("/_auth/ec2/(snapshots)/create-snapshot")({validateSearch:e=>({volumeId:typeof e.volumeId=="string"?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(p4)},head:()=>({meta:[{title:"Create Snapshot | EC2 | Mulga"}]}),component:Tt(Fxe,"component")}),Zxe=()=>Rt(()=>import("./import-key-pair.js"),__vite__mapDeps([22,1,10,11,6,2,3,21,14,15])),Kxe=_t("/_auth/ec2/(key)/import-key-pair")({head:()=>({meta:[{title:"Import Key Pair | EC2 | Mulga"}]}),component:Tt(Zxe,"component")}),Qxe=()=>Rt(()=>import("./create-key-pair.js"),__vite__mapDeps([23,1,10,11,6,2,3,14,15,24,21,18,25])),Yxe=_t("/_auth/ec2/(key)/create-key-pair")({head:()=>({meta:[{title:"Create Key Pair | EC2 | Mulga"}]}),component:Tt(Qxe,"component")}),Xxe=()=>Rt(()=>import("./run-instances.js"),__vite__mapDeps([26,1,5,10,11,6,2,3,17,18,14,15])),Wxe=_t("/_auth/ec2/(instances)/run-instances")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(l4),e.queryClient.ensureQueryData(f4),e.queryClient.ensureQueryData(c4),e.queryClient.ensureQueryData(_E)])},head:()=>({meta:[{title:"Run Instances | EC2 | Mulga"}]}),component:Tt(Xxe,"component")}),Jxe=()=>Rt(()=>import("./route2.js"),[]),e1e=_t("/_auth/s3/ls/$bucket")({component:Tt(Jxe,"component")}),t1e=()=>Rt(()=>import("./index5.js"),__vite__mapDeps([27,5,10,11,6,12,28,24,25,29])),n1e=_t("/_auth/s3/ls/$bucket/")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(g4(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:Tt(t1e,"component")}),s1e=()=>Rt(()=>import("./index6.js"),__vite__mapDeps([30,5,8,6,31])),r1e=_t("/_auth/ec2/(vpc)/describe-vpcs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(h4)},head:()=>({meta:[{title:"VPCs | EC2 | Mulga"}]}),component:Tt(s1e,"component")}),o1e=()=>Rt(()=>import("./index7.js"),__vite__mapDeps([32,5,8,6,31])),i1e=_t("/_auth/ec2/(volumes)/describe-volumes/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(p4)},head:()=>({meta:[{title:"Volumes | EC2 | Mulga"}]}),component:Tt(o1e,"component")}),a1e=()=>Rt(()=>import("./index8.js"),__vite__mapDeps([33,5,8,6,31])),c1e=_t("/_auth/ec2/(subnet)/describe-subnets/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_E)},head:()=>({meta:[{title:"Subnets | EC2 | Mulga"}]}),component:Tt(a1e,"component")}),l1e=()=>Rt(()=>import("./index9.js"),__vite__mapDeps([34,5,8,6,31])),u1e=_t("/_auth/ec2/(snapshots)/describe-snapshots/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ixe)},head:()=>({meta:[{title:"Snapshots | EC2 | Mulga"}]}),component:Tt(l1e,"component")}),f1e=()=>Rt(()=>import("./index10.js"),__vite__mapDeps([35,5,8,6])),d1e=_t("/_auth/ec2/(key)/describe-key-pairs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(f4)},head:()=>({meta:[{title:"Key Pairs | EC2 | Mulga"}]}),component:Tt(f1e,"component")}),h1e=()=>Rt(()=>import("./index11.js"),__vite__mapDeps([36,5,8,6,31])),p1e=_t("/_auth/ec2/(instances)/describe-instances/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(a4)},head:()=>({meta:[{title:"Instances | EC2 | Mulga"}]}),component:Tt(h1e,"component")}),m1e=()=>Rt(()=>import("./index12.js"),__vite__mapDeps([37,5,8,6,31])),g1e=_t("/_auth/ec2/(images)/describe-images/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(l4)},head:()=>({meta:[{title:"Images | EC2 | Mulga"}]}),component:Tt(m1e,"component")}),y1e=()=>Rt(()=>import("./_.js"),__vite__mapDeps([38,5,10,11,12,28,24,25,29])),b1e=_t("/_auth/s3/ls/$bucket/$")({loader:async({context:e,params:t})=>{const n=Nj(t._splat||"");await e.queryClient.ensureQueryData(g4(t.bucket,n))},head:({params:e})=>({meta:[{title:`${Lj(e._splat||"",`${e.bucket}/`)} | S3 | Mulga`}]}),component:Tt(y1e,"component")}),v1e=()=>Rt(()=>import("./_id.js"),__vite__mapDeps([39,5,10,40,11,6,31,24,14,29])),S1e=_t("/_auth/ec2/(vpc)/describe-vpcs/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Mxe(t.id)),e.queryClient.ensureQueryData(_E)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:Tt(v1e,"component")}),_1e=()=>Rt(()=>import("./_id2.js"),__vite__mapDeps([41,1,5,10,11,6,2,3,14,15])),w1e=_t("/_auth/ec2/(volumes)/modify-volume/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(m4(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:Tt(_1e,"component")}),E1e=()=>Rt(()=>import("./_id3.js"),__vite__mapDeps([42,5,10,40,11,6,31,24,2,3,17,18,14,29])),x1e=_t("/_auth/ec2/(volumes)/describe-volumes/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(m4(t.id)),e.queryClient.ensureQueryData(a4)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:Tt(E1e,"component")}),R1e=()=>Rt(()=>import("./_id4.js"),__vite__mapDeps([43,5,10,40,11,6,31,24,14,29])),C1e=_t("/_auth/ec2/(subnet)/describe-subnets/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Txe(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:Tt(R1e,"component")}),A1e=()=>Rt(()=>import("./_id5.js"),__vite__mapDeps([44,5,10,40,11,6,31,24,2,3,14,29])),T1e=_t("/_auth/ec2/(snapshots)/describe-snapshots/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Oxe(t.id)),e.queryClient.ensureQueryData(d4)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:Tt(A1e,"component")}),I1e=()=>Rt(()=>import("./_id6.js"),__vite__mapDeps([45,5,10,40,11,6,24,14,29])),O1e=_t("/_auth/ec2/(key)/describe-key-pairs/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Axe(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??"Key Pair"} | EC2 | Mulga`}]}),component:Tt(I1e,"component")}),M1e=()=>Rt(()=>import("./_id7.js"),__vite__mapDeps([46,5,10,40,11,6,31,24,2,17,18,14,47,3,21,29])),D1e=_t("/_auth/ec2/(instances)/describe-instances/$id")({loader:async({context:e,params:t})=>{const n=await e.queryClient.ensureQueryData(Cxe(t.id)),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await Promise.all([e.queryClient.ensureQueryData(u4(r)),e.queryClient.ensureQueryData(c4)]),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??"Instance"} | EC2 | Mulga`}]}),component:Tt(M1e,"component")}),k1e=()=>Rt(()=>import("./_id8.js"),__vite__mapDeps([48,5,10,6,31,47,40])),P1e=_t("/_auth/ec2/(images)/describe-images/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(u4(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??"Image"} | EC2 | Mulga`}]}),component:Tt(k1e,"component")}),N1e=Exe.update({id:"/login",path:"/login",getParentRoute:()=>SE}),Ht=Rxe.update({id:"/_auth",getParentRoute:()=>SE}),L1e=kxe.update({id:"/",path:"/",getParentRoute:()=>Ht}),z1e=Lxe.update({id:"/s3/ls/",path:"/s3/ls/",getParentRoute:()=>Ht}),B1e=Bxe.update({id:"/s3/(buckets)/create-bucket",path:"/s3/create-bucket",getParentRoute:()=>Ht}),$1e=Uxe.update({id:"/ec2/(vpc)/create-vpc",path:"/ec2/create-vpc",getParentRoute:()=>Ht}),U1e=Hxe.update({id:"/ec2/(volumes)/create-volume",path:"/ec2/create-volume",getParentRoute:()=>Ht}),j1e=qxe.update({id:"/ec2/(subnet)/create-subnet",path:"/ec2/create-subnet",getParentRoute:()=>Ht}),H1e=Gxe.update({id:"/ec2/(snapshots)/create-snapshot",path:"/ec2/create-snapshot",getParentRoute:()=>Ht}),V1e=Kxe.update({id:"/ec2/(key)/import-key-pair",path:"/ec2/import-key-pair",getParentRoute:()=>Ht}),q1e=Yxe.update({id:"/ec2/(key)/create-key-pair",path:"/ec2/create-key-pair",getParentRoute:()=>Ht}),F1e=Wxe.update({id:"/ec2/(instances)/run-instances",path:"/ec2/run-instances",getParentRoute:()=>Ht}),wE=e1e.update({id:"/s3/ls/$bucket",path:"/s3/ls/$bucket",getParentRoute:()=>Ht}),G1e=n1e.update({id:"/",path:"/",getParentRoute:()=>wE}),Z1e=r1e.update({id:"/ec2/(vpc)/describe-vpcs/",path:"/ec2/describe-vpcs/",getParentRoute:()=>Ht}),K1e=i1e.update({id:"/ec2/(volumes)/describe-volumes/",path:"/ec2/describe-volumes/",getParentRoute:()=>Ht}),Q1e=c1e.update({id:"/ec2/(subnet)/describe-subnets/",path:"/ec2/describe-subnets/",getParentRoute:()=>Ht}),Y1e=u1e.update({id:"/ec2/(snapshots)/describe-snapshots/",path:"/ec2/describe-snapshots/",getParentRoute:()=>Ht}),X1e=d1e.update({id:"/ec2/(key)/describe-key-pairs/",path:"/ec2/describe-key-pairs/",getParentRoute:()=>Ht}),W1e=p1e.update({id:"/ec2/(instances)/describe-instances/",path:"/ec2/describe-instances/",getParentRoute:()=>Ht}),J1e=g1e.update({id:"/ec2/(images)/describe-images/",path:"/ec2/describe-images/",getParentRoute:()=>Ht}),eRe=b1e.update({id:"/$",path:"/$",getParentRoute:()=>wE}),tRe=S1e.update({id:"/ec2/(vpc)/describe-vpcs/$id",path:"/ec2/describe-vpcs/$id",getParentRoute:()=>Ht}),nRe=w1e.update({id:"/ec2/(volumes)/modify-volume/$id",path:"/ec2/modify-volume/$id",getParentRoute:()=>Ht}),sRe=x1e.update({id:"/ec2/(volumes)/describe-volumes/$id",path:"/ec2/describe-volumes/$id",getParentRoute:()=>Ht}),rRe=C1e.update({id:"/ec2/(subnet)/describe-subnets/$id",path:"/ec2/describe-subnets/$id",getParentRoute:()=>Ht}),oRe=T1e.update({id:"/ec2/(snapshots)/describe-snapshots/$id",path:"/ec2/describe-snapshots/$id",getParentRoute:()=>Ht}),iRe=O1e.update({id:"/ec2/(key)/describe-key-pairs/$id",path:"/ec2/describe-key-pairs/$id",getParentRoute:()=>Ht}),aRe=D1e.update({id:"/ec2/(instances)/describe-instances/$id",path:"/ec2/describe-instances/$id",getParentRoute:()=>Ht}),cRe=P1e.update({id:"/ec2/(images)/describe-images/$id",path:"/ec2/describe-images/$id",getParentRoute:()=>Ht}),lRe={AuthS3LsBucketSplatRoute:eRe,AuthS3LsBucketIndexRoute:G1e},uRe=wE._addFileChildren(lRe),fRe={AuthIndexRoute:L1e,AuthS3LsBucketRouteRoute:uRe,AuthEc2instancesRunInstancesRoute:F1e,AuthEc2keyCreateKeyPairRoute:q1e,AuthEc2keyImportKeyPairRoute:V1e,AuthEc2snapshotsCreateSnapshotRoute:H1e,AuthEc2subnetCreateSubnetRoute:j1e,AuthEc2volumesCreateVolumeRoute:U1e,AuthEc2vpcCreateVpcRoute:$1e,AuthS3bucketsCreateBucketRoute:B1e,AuthS3LsIndexRoute:z1e,AuthEc2imagesDescribeImagesIdRoute:cRe,AuthEc2instancesDescribeInstancesIdRoute:aRe,AuthEc2keyDescribeKeyPairsIdRoute:iRe,AuthEc2snapshotsDescribeSnapshotsIdRoute:oRe,AuthEc2subnetDescribeSubnetsIdRoute:rRe,AuthEc2volumesDescribeVolumesIdRoute:sRe,AuthEc2volumesModifyVolumeIdRoute:nRe,AuthEc2vpcDescribeVpcsIdRoute:tRe,AuthEc2imagesDescribeImagesIndexRoute:J1e,AuthEc2instancesDescribeInstancesIndexRoute:W1e,AuthEc2keyDescribeKeyPairsIndexRoute:X1e,AuthEc2snapshotsDescribeSnapshotsIndexRoute:Y1e,AuthEc2subnetDescribeSubnetsIndexRoute:Q1e,AuthEc2volumesDescribeVolumesIndexRoute:K1e,AuthEc2vpcDescribeVpcsIndexRoute:Z1e},dRe=Ht._addFileChildren(fRe),hRe={AuthRouteRoute:dRe,LoginRoute:N1e},pRe=SE._addFileChildren(hRe)._addFileTypes(),y4=new r6({defaultOptions:{queries:{staleTime:5e3}}}),mRe=a5({routeTree:pRe,context:{queryClient:y4},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Fb=document.getElementById("app");Fb&&!Fb.innerHTML&&w5.createRoot(Fb).render(N.jsx(M.StrictMode,{children:N.jsx(C5,{defaultTheme:"system",storageKey:"hive-ui-theme",children:N.jsx(i6,{client:y4,children:N.jsx(eq,{children:N.jsx(u5,{router:mRe})})})})}));export{bCe as $,ORe as A,Il as B,Lj as C,GRe as D,Cs as E,uw as F,Ks as G,ac as H,xCe as I,TRe as J,r4 as K,$s as L,mT as M,ea as N,aO as O,yCe as P,uz as Q,Gxe as R,Tv as S,iX as T,rm as U,lc as V,Gk as W,NW as X,UW as Y,LW as Z,Fk as _,cn as a,yA as a$,$f as a0,kn as a1,Pr as a2,gCe as a3,PS as a4,nw as a5,vCe as a6,SCe as a7,_Ce as a8,wCe as a9,Txe as aA,T1e as aB,Oxe as aC,O1e as aD,Axe as aE,D1e as aF,Cxe as aG,u4 as aH,kRe as aI,Gj as aJ,PRe as aK,MRe as aL,DRe as aM,Qh as aN,Fp as aO,tM as aP,Ol as aQ,kf as aR,Yj as aS,Jt as aT,rS as aU,Hs as aV,cv as aW,Qr as aX,Rm as aY,Xf as aZ,pt as a_,ECe as aa,RCe as ab,CCe as ac,ACe as ad,yRe as ae,gRe as af,Pk as ag,JX as ah,em as ai,L2 as aj,S1e as ak,Mxe as al,w1e as am,m4 as an,VRe as ao,lT as ap,qRe as aq,Cl as ar,jRe as as,HRe as at,oD as au,x1e as av,zj as aw,e8 as ax,ARe as ay,C1e as az,FK as b,KV as b$,Fe as b0,W0 as b1,Do as b2,Kt as b3,yt as b4,LRe as b5,yn as b6,Ss as b7,sM as b8,Kj as b9,CRe as bA,t7 as bB,P7 as bC,ZV as bD,GV as bE,Yf as bF,KM as bG,Sn as bH,zO as bI,na as bJ,nH as bK,BRe as bL,cS as bM,VV as bN,NRe as bO,hO as bP,nS as bQ,xt as bR,yO as bS,fc as bT,i7 as bU,r7 as bV,oM as bW,FV as bX,l7 as bY,U9 as bZ,$9 as b_,Qj as ba,Vo as bb,ot as bc,RRe as bd,T9 as be,s7 as bf,Sr as bg,bV as bh,CM as bi,nM as bj,lS as bk,EV as bl,_M as bm,kM as bn,vm as bo,jM as bp,Np as bq,URe as br,cM as bs,uS as bt,SO as bu,_r as bv,$Re as bw,zRe as bx,L9 as by,X9 as bz,kt as c,B9 as c0,to as c1,ZRe as c2,hQ as c3,Ev as c4,KRe as c5,QRe as c6,YRe as c7,XRe as c8,WRe as c9,G$ as cA,B$ as cB,Zb as cC,hm as cD,L$ as cE,z$ as cF,Gb as cG,M2 as cH,W$ as cI,j$ as cJ,hc as cK,jo as cL,JRe as ca,eCe as cb,tCe as cc,nCe as cd,sCe as ce,rCe as cf,oCe as cg,iCe as ch,aCe as ci,cCe as cj,lCe as ck,uCe as cl,fCe as cm,dCe as cn,hCe as co,pCe as cp,mCe as cq,Fn as cr,dm as cs,bRe as ct,If as cu,t6 as cv,cs as cw,Nr as cx,vRe as cy,P1e as cz,Pxe as d,d4 as e,aT as f,i4 as g,h4 as h,p4 as i,N as j,xs as k,l4 as l,f4 as m,c4 as n,_K as o,_E as p,n1e as q,M as r,FRe as s,IRe as t,bm as u,g4 as v,Ixe as w,a4 as x,b1e as y,Nj as z}; +${Vs(l)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const c of t.split("/"))c?.length!==0&&c!=="."&&(c===".."?n.pop():n.push(c));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return Oc(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=TJ(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class bS extends MJ{headerFormatter=new xJ;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){super({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:c,unhoistableHeaders:l,signableHeaders:f,hoistableHeaders:d,signingRegion:p,signingService:v}=n,g=await this.credentialProvider();this.validateResolvedCredentials(g);const b=p??await this.regionProvider(),{longDate:_,shortDate:E}=this.formatDate(r);if(i>SJ)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const x=fb(E,b,v??this.service),R=AJ(G2(t),{unhoistableHeaders:l,hoistableHeaders:d});g.sessionToken&&(R.query[M3]=g.sessionToken),R.query[iJ]=lb,R.query[aJ]=`${g.accessKeyId}/${x}`,R.query[T3]=_,R.query[lJ]=i.toString(10);const C=H2(R,c,f);return R.query[cJ]=this.getCanonicalHeaderList(C),R.query[O3]=await this.getSignature(_,x,this.getSigningKey(g,b,E,v),this.createCanonicalRequest(R,C,await db(t,this.sha256))),R}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:c,signingService:l}){const f=c??await this.regionProvider(),{shortDate:d,longDate:p}=this.formatDate(r),v=fb(d,f,l??this.service),g=await db({headers:{},body:n},this.sha256),b=new this.sha256;b.update(t);const _=Vs(await b.digest()),E=[yJ,p,v,i,_,g].join(` +`);return this.signString(E,{signingDate:r,signingRegion:f,signingService:l})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:i,priorSignature:t.priorSignature}).then(l=>({message:t.message,signature:l}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=r??await this.regionProvider(),{shortDate:f}=this.formatDate(n),d=new this.sha256(await this.getSigningKey(c,l,f,i));return d.update(wd(t)),Vs(await d.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:c,signingService:l}={}){const f=await this.credentialProvider();this.validateResolvedCredentials(f);const d=c??await this.regionProvider(),p=G2(t),{longDate:v,shortDate:g}=this.formatDate(n),b=fb(g,d,l??this.service);p.headers[P3]=v,f.sessionToken&&(p.headers[pJ]=f.sessionToken);const _=await db(p,this.sha256);!CJ(vS,p.headers)&&this.applyChecksum&&(p.headers[vS]=_);const E=H2(p,i,r),x=await this.getSignature(v,b,this.getSigningKey(f,d,g,l),this.createCanonicalRequest(p,E,_));return p.headers[D3]=`${lb} Credential=${f.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(E)}, Signature=${x}`,p}async getSignature(t,n,r,i){const c=await this.createStringToSign(t,n,i,lb),l=new this.sha256(await r);return l.update(wd(c)),Vs(await l.digest())}getSigningKey(t,n,r,i){return _J(this.sha256,t,r,n,i||this.service)}}const B_=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(p){p&&p!==t&&p!==r&&(n=!0),t=p;const v=DJ(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),g=PJ(e,v);if(n&&!g.attributed){const b=typeof t=="object"&&t!==null;r=async _=>{const x=await g(_);return b&&(!x.$source||Object.keys(x.$source).length===0)?tJ(x,"CREDENTIALS_CODE","e"):x},r.memoized=g.memoized,r.configBound=g.configBound,r.attributed=!0}else r=g},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:i=!0,systemClockOffset:c=e.systemClockOffset||0,sha256:l}=e;let f;return e.signer?f=nu(e.signer):e.regionInfoProvider?f=()=>nu(e.region)().then(async p=>[await e.regionInfoProvider(p,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},p]).then(([p,v])=>{const{signingRegion:g,signingService:b}=p;e.signingRegion=e.signingRegion||g||v,e.signingName=e.signingName||b||e.serviceId;const _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},E=e.signerConstructor||bS;return new E(_)}):f=async p=>{p=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await nu(e.region)(),properties:{}},p);const v=p.signingRegion,g=p.signingName;e.signingRegion=e.signingRegion||v,e.signingName=e.signingName||g||e.serviceId;const b={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},_=e.signerConstructor||bS;return new _(b)},Object.assign(e,{systemClockOffset:c,signingEscapePath:i,signer:f})};function DJ(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t?.memoized?r=t:r=AW(t,CW,g3):n?r=nu(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function PJ(e,t){if(t.configBound)return t;const n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}const K2=typeof TextEncoder=="function"?new TextEncoder:null,U_=e=>{if(typeof e=="string"){if(K2)return K2.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},_c=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},la=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Fm=()=>{let e=[],t=[],n=!1;const r=new Set,i=g=>g.sort((b,_)=>Z2[_.step]-Z2[b.step]||Q2[_.priority||"normal"]-Q2[b.priority||"normal"]),c=g=>{let b=!1;const _=E=>{const x=_c(E.name,E.aliases);if(x.includes(g)){b=!0;for(const R of x)r.delete(R);return!1}return!0};return e=e.filter(_),t=t.filter(_),b},l=g=>{let b=!1;const _=E=>{if(E.middleware===g){b=!0;for(const x of _c(E.name,E.aliases))r.delete(x);return!1}return!0};return e=e.filter(_),t=t.filter(_),b},f=g=>(e.forEach(b=>{g.add(b.middleware,{...b})}),t.forEach(b=>{g.addRelativeTo(b.middleware,{...b})}),g.identifyOnResolve?.(v.identifyOnResolve()),g),d=g=>{const b=[];return g.before.forEach(_=>{_.before.length===0&&_.after.length===0?b.push(_):b.push(...d(_))}),b.push(g),g.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?b.push(_):b.push(...d(_))}),b},p=(g=!1)=>{const b=[],_=[],E={};return e.forEach(R=>{const C={...R,before:[],after:[]};for(const T of _c(C.name,C.aliases))E[T]=C;b.push(C)}),t.forEach(R=>{const C={...R,before:[],after:[]};for(const T of _c(C.name,C.aliases))E[T]=C;_.push(C)}),_.forEach(R=>{if(R.toMiddleware){const C=E[R.toMiddleware];if(C===void 0){if(g)return;throw new Error(`${R.toMiddleware} is not found when adding ${la(R.name,R.aliases)} middleware ${R.relation} ${R.toMiddleware}`)}R.relation==="after"&&C.after.push(R),R.relation==="before"&&C.before.push(R)}}),i(b).map(d).reduce((R,C)=>(R.push(...C),R),[])},v={add:(g,b={})=>{const{name:_,override:E,aliases:x}=b,R={step:"initialize",priority:"normal",middleware:g,...b},C=_c(_,x);if(C.length>0){if(C.some(T=>r.has(T))){if(!E)throw new Error(`Duplicate middleware name '${la(_,x)}'`);for(const T of C){const P=e.findIndex(B=>B.name===T||B.aliases?.some(j=>j===T));if(P===-1)continue;const I=e[P];if(I.step!==R.step||R.priority!==I.priority)throw new Error(`"${la(I.name,I.aliases)}" middleware with ${I.priority} priority in ${I.step} step cannot be overridden by "${la(_,x)}" middleware with ${R.priority} priority in ${R.step} step.`);e.splice(P,1)}}for(const T of C)r.add(T)}e.push(R)},addRelativeTo:(g,b)=>{const{name:_,override:E,aliases:x}=b,R={middleware:g,...b},C=_c(_,x);if(C.length>0){if(C.some(T=>r.has(T))){if(!E)throw new Error(`Duplicate middleware name '${la(_,x)}'`);for(const T of C){const P=t.findIndex(B=>B.name===T||B.aliases?.some(j=>j===T));if(P===-1)continue;const I=t[P];if(I.toMiddleware!==R.toMiddleware||I.relation!==R.relation)throw new Error(`"${la(I.name,I.aliases)}" middleware ${I.relation} "${I.toMiddleware}" middleware cannot be overridden by "${la(_,x)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);t.splice(P,1)}}for(const T of C)r.add(T)}t.push(R)},clone:()=>f(Fm()),use:g=>{g.applyToStack(v)},remove:g=>typeof g=="string"?c(g):l(g),removeByTag:g=>{let b=!1;const _=E=>{const{tags:x,name:R,aliases:C}=E;if(x&&x.includes(g)){const T=_c(R,C);for(const P of T)r.delete(P);return b=!0,!1}return!0};return e=e.filter(_),t=t.filter(_),b},concat:g=>{const b=f(Fm());return b.use(g),b.identifyOnResolve(n||b.identifyOnResolve()||(g.identifyOnResolve?.()??!1)),b},applyToStack:f,identify:()=>p(!0).map(g=>{const b=g.step??g.relation+" "+g.toMiddleware;return la(g.name,g.aliases)+" - "+b}),identifyOnResolve(g){return typeof g=="boolean"&&(n=g),n},resolve:(g,b)=>{for(const _ of p().map(E=>E.middleware).reverse())g=_(g,b);return n&&console.log(v.identify()),g}};return v},Z2={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Q2={high:3,normal:2,low:1};class j_{config;middlewareStack=Fm();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){const i=typeof n!="function"?n:void 0,c=typeof n=="function"?n:r,l=i===void 0&&this.config.cacheMiddleware===!0;let f;if(l){this.handlers||(this.handlers=new WeakMap);const d=this.handlers;d.has(t.constructor)?f=d.get(t.constructor):(f=t.resolveMiddleware(this.middlewareStack,this.config,i),d.set(t.constructor,f))}else delete this.handlers,f=t.resolveMiddleware(this.middlewareStack,this.config,i);if(c)f(t).then(d=>c(null,d.output),d=>c(d)).catch(()=>{});else return f(t).then(d=>d.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const pb="***SensitiveInformation***";function SS(e,t){if(t==null)return t;const n=zt.of(e);if(n.getMergedTraits().sensitive)return pb;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return pb}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return pb}else if(n.isStructSchema()&&typeof t=="object"){const r=t,i={};for(const[c,l]of n.structIterator())r[c]!=null&&(i[c]=SS(l,r[c]));return i}return t}class xn{middlewareStack=Fm();schema;static classBuilder(){return new kJ}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,smithyContext:p,additionalContext:v,CommandCtor:g}){for(const R of i.bind(this)(g,t,n,r))this.middlewareStack.use(R);const b=t.concat(this.middlewareStack),{logger:_}=n,E={logger:_,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,[mS]:{commandInstance:this,...p},...v},{requestHandler:x}=n;return b.resolve(R=>x.handle(R.request,r||{}),E)}}class kJ{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends xn{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super(),this.input=r??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,c){const l=t._operationSchema,f=l?.[4]??l?.input,d=l?.[5]??l?.output;return this.resolveMiddlewareWithContext(r,i,c,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(l?SS.bind(null,f):p=>p),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?SS.bind(null,d):p=>p),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class Ea extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const n=t;return Ea.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const n=t;return this===Ea?Ea.isInstance(t):Ea.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const Y2=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},V_=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},L3=Object.values(xd),NJ=e=>{const t=[];for(const n in xd){const r=xd[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(const[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const r=n.algorithmId(),i=n.checksumConstructor();L3.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},LJ=e=>{const t={};return e.checksumAlgorithms().forEach(n=>{const r=n.algorithmId();L3.includes(r)&&(t[r]=n.checksumConstructor())}),t},$J=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),zJ=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},H_=e=>Object.assign(NJ(e),$J(e)),q_=e=>Object.assign(LJ(e),zJ(e)),$3=e=>{const t="#text";for(const n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=$3(e[n]));return e};class Dg{trace(){}debug(){}info(){}warn(){}error(){}}class z3{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,n){const r=n.getMemberSchemas(),i=Object.values(r).find(c=>!!c.getMergedTraits().httpPayload);if(i){const c=i.getMergedTraits().mediaType;return c||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(l=>{const{httpQuery:f,httpQueryParams:d,httpHeader:p,httpLabel:v,httpPrefixHeaders:g}=l.getMergedTraits();return!f&&!d&&!p&&!v&&g===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,c,l){let f=n,d=t;t.includes("#")&&([f,d]=t.split("#"));const p={$metadata:c,$fault:r.statusCode<500?"client":"server"},v=Gn.for(f);try{return{errorSchema:l?.(v,d)??v.getSchema(t),errorMetadata:p}}catch{i.message=i.message??i.Message??"UnknownError";const b=Gn.for("smithy.ts.sdk.synthetic."+f),_=b.getBaseException();if(_){const E=b.getErrorCtor(_)??Error;throw this.decorateServiceException(Object.assign(new E({name:d}),p),i)}throw this.decorateServiceException(Object.assign(new Error(d),p),i)}}decorateServiceException(t,n={}){if(this.queryCompat){const r=t.Message??n.Message,i=Y2(t,n);r&&(i.message=r),i.Error={...i.Error,Type:i.Error?.Type,Code:i.Error?.Code,Message:i.Error?.message??i.Error?.Message??r};const c=i.$metadata.requestId;return c&&(i.RequestId=c),i}return Y2(t,n)}setQueryCompatError(t,n){const r=n.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[i,c]=r.split(";"),l=Object.entries(t),f={Code:i,Type:c};Object.assign(t,f);for(const[d,p]of l)f[d==="message"?"Message":d]=p;delete f.__type,t.Error=f}}queryCompatOutput(t,n){t.Error&&(n.Error=t.Error),t.Type&&(n.Type=t.Type),t.Code&&(n.Code=t.Code)}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch{return t.find(i=>zt.of(i).getMergedTraits().awsQueryError?.[0]===n)}}}class Pg{serdeContext;setSerdeContext(t){this.serdeContext=t}}class BJ{from;to;keys;constructor(t,n){this.from=t,this.to=n,this.keys=new Set(Object.keys(this.from).filter(r=>r!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}}function UJ(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function jJ(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class _S{value;constructor(t){this.value=t}toString(){return jJ(""+this.value)}}class Cs{name;children;attributes={};static of(t,n,r){const i=new Cs(t);return n!==void 0&&i.addChildNode(new _S(n)),r!==void 0&&i.withName(r),i}constructor(t,n=[]){this.name=t,this.children=n}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){const i=Cs.of(n,t[n]).withName(r);this.c(i)}}l(t,n,r,i){t[n]!=null&&i().map(l=>{l.withName(r),this.c(l)})}lc(t,n,r,i){if(t[n]!=null){const c=i(),l=new Cs(r);c.map(f=>{l.c(f)}),this.c(l)}}toString(){const t=!!this.children.length;let n=`<${this.name}`;const r=this.attributes;for(const i of Object.keys(r)){const c=r[i];c!=null&&(n+=` ${i}="${UJ(""+c)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}}let hb;function VJ(e){hb||(hb=new DOMParser);const t=hb.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const n=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const i=r;if(i.attributes.length===0&&i.childNodes.length===0)return"";const c={},l=Array.from(i.attributes);for(const d of l)c[`${d.name}`]=d.value;const f=Array.from(i.childNodes);for(const d of f){const p=n(d);if(p!=null){const v=d.nodeName;if(f.length===1&&l.length===0&&v==="#text")return p;c[v]?Array.isArray(c[v])?c[v].push(p):c[v]=[c[v],p]:c[v]=p}else if(f.length===1&&l.length===0)return i.textContent}return c}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}class B3 extends Pg{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new m3(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,n,r){const i=zt.of(t),c=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(c).find(p=>!!p.getMemberTraits().eventPayload)){const p={},v=Object.keys(c)[0];return c[v].isBlobSchema()?p[v]=n:p[v]=this.read(c[v],n),p}const f=(this.serdeContext?.utf8Encoder??$a)(n),d=this.parseXml(f);return this.readSchema(t,r?d[r]:d)}readSchema(t,n){const r=zt.of(t);if(r.isUnitSchema())return;const i=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(n))return this.readSchema(r,[n]);if(n==null)return n;if(typeof n=="object"){const c=!!i.sparse,l=!!i.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),p=[],v=d.getMergedTraits().xmlName??"member",g=l?n:(n[0]??n)[v],b=Array.isArray(g)?g:[g];for(const _ of b)(_!=null||c)&&p.push(this.readSchema(d,_));return p}const f={};if(r.isMapSchema()){const d=r.getKeySchema(),p=r.getValueSchema();let v;l?v=Array.isArray(n)?n:[n]:v=Array.isArray(n.entry)?n.entry:[n.entry];const g=d.getMergedTraits().xmlName??"key",b=p.getMergedTraits().xmlName??"value";for(const _ of v){const E=_[g],x=_[b];(x!=null||c)&&(f[E]=this.readSchema(p,x))}return f}if(r.isStructSchema()){const d=r.isUnionSchema();let p;d&&(p=new BJ(n,f));for(const[v,g]of r.structIterator()){const b=g.getMergedTraits(),_=b.httpPayload?b.xmlName??g.getName():g.getMemberTraits().xmlName??v;d&&p.mark(_),n[_]!=null&&(f[v]=this.readSchema(g,n[_]))}return d&&p.writeUnknown(),f}if(r.isDocumentSchema())return n;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,n)}parseXml(t){if(t.length){let n;try{n=VJ(t)}catch(l){throw l&&typeof l=="object"&&Object.defineProperty(l,"$responseBodyText",{value:t}),l}const r="#text",i=Object.keys(n)[0],c=n[i];return c[r]&&(c[i]=c[r],delete c[r]),$3(c)}return{}}}class HJ extends Pg{settings;buffer;constructor(t){super(),this.settings=t}write(t,n,r=""){this.buffer===void 0&&(this.buffer="");const i=zt.of(t);if(r&&!r.endsWith(".")&&(r+="."),i.isBlobSchema())(typeof n=="string"||n instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??di)(n)));else if(i.isBooleanSchema()||i.isNumericSchema()||i.isStringSchema())n!=null?(this.writeKey(r),this.writeValue(String(n))):i.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(Rg()));else if(i.isBigIntegerSchema())n!=null&&(this.writeKey(r),this.writeValue(String(n)));else if(i.isBigDecimalSchema())n!=null&&(this.writeKey(r),this.writeValue(n instanceof $d?n.string:String(n)));else if(i.isTimestampSchema()){if(n instanceof Date)switch(this.writeKey(r),Ag(i,this.settings)){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Hm(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}else if(i.isDocumentSchema())Array.isArray(n)?this.write(79,n,r):n instanceof Date?this.write(4,n,r):n instanceof Uint8Array?this.write(21,n,r):n&&typeof n=="object"?this.write(143,n,r):(this.writeKey(r),this.writeValue(String(n)));else if(i.isListSchema()){if(Array.isArray(n))if(n.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const c=i.getValueSchema(),l=this.settings.flattenLists||i.getMergedTraits().xmlFlattened;let f=1;for(const d of n){if(d==null)continue;const p=c.getMergedTraits(),v=this.getKey("member",p.xmlName,p.ec2QueryName),g=l?`${r}${f}`:`${r}${v}.${f}`;this.write(c,d,g),++f}}}else if(i.isMapSchema()){if(n&&typeof n=="object"){const c=i.getKeySchema(),l=i.getValueSchema(),f=i.getMergedTraits().xmlFlattened;let d=1;for(const[p,v]of Object.entries(n)){if(v==null)continue;const g=c.getMergedTraits(),b=this.getKey("key",g.xmlName,g.ec2QueryName),_=f?`${r}${d}.${b}`:`${r}entry.${d}.${b}`,E=l.getMergedTraits(),x=this.getKey("value",E.xmlName,E.ec2QueryName),R=f?`${r}${d}.${x}`:`${r}entry.${d}.${x}`;this.write(c,p,_),this.write(l,v,R),++d}}}else if(i.isStructSchema()){if(n&&typeof n=="object"){let c=!1;for(const[l,f]of i.structIterator()){if(n[l]==null&&!f.isIdempotencyToken())continue;const d=f.getMergedTraits(),p=this.getKey(l,d.xmlName,d.ec2QueryName,"struct"),v=`${r}${p}`;this.write(f,n[l],v),c=!0}if(!c&&i.isUnionSchema()){const{$unknown:l}=n;if(Array.isArray(l)){const[f,d]=l,p=`${r}${f}`;this.write(15,d,p)}}}}else if(!i.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${i.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,n,r,i){const{ec2:c,capitalizeKeys:l}=this.settings;if(c&&r)return r;const f=n??t;return l&&i==="struct"?f[0].toUpperCase()+f.slice(1):f}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${Vm(t)}=`}writeValue(t){this.buffer+=Vm(t)}}class U3 extends bW{options;serializer;deserializer;mixin=new z3;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new HJ(n),this.deserializer=new B3(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r);i.path.endsWith("/")||(i.path+="/"),Object.assign(i.headers,{"content-type":"application/x-www-form-urlencoded"}),(lm(t.input)==="unit"||!i.body)&&(i.body="");const c=t.name.split("#")[1]??t.name;return i.body=`Action=${c}&Version=${this.options.version}`+i.body,i.body.endsWith("&")&&(i.body=i.body.slice(-1)),i}async deserializeResponse(t,n,r){const i=this.deserializer,c=zt.of(t.output),l={};if(r.statusCode>=300){const g=await Sa(r.body,n);g.byteLength>0&&Object.assign(l,await i.read(15,g)),await this.handleError(t,n,r,l,this.deserializeMetadata(r))}for(const g in r.headers){const b=r.headers[g];delete r.headers[g],r.headers[g.toLowerCase()]=b}const f=t.name.split("#")[1]??t.name,d=c.isStructSchema()&&this.useNestedResult()?f+"Result":void 0,p=await Sa(r.body,n);return p.byteLength>0&&Object.assign(l,await i.read(c,p,d)),{$metadata:this.deserializeMetadata(r),...l}}useNestedResult(){return!0}async handleError(t,n,r,i,c){const l=this.loadQueryErrorCode(r,i)??"Unknown",f=this.loadQueryError(i)??{},d=this.loadQueryErrorMessage(i);f.message=d,f.Error={Type:f.Type,Code:f.Code,Message:d};const{errorSchema:p,errorMetadata:v}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,f,c,this.mixin.findQueryCompatibleError),g=zt.of(p),b=Gn.for(p[1]).getErrorCtor(p)??Error,_=new b(d),E={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[x,R]of g.structIterator()){const C=R.getMergedTraits().xmlName??x,T=f[C]??i[C];E[x]=this.deserializer.readSchema(R,T)}throw this.mixin.decorateServiceException(Object.assign(_,v,{$fault:g.getMergedTraits().error,message:d},E),i)}loadQueryErrorCode(t,n){const r=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class qJ extends U3{options;constructor(t){super(t),this.options=t;const n={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,n)}useNestedResult(){return!1}}const FJ=(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"};class GJ extends Pg{settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,n){const r=zt.of(t);if(r.isStringSchema()&&typeof n=="string")this.stringBuffer=n;else if(r.isBlobSchema())this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??Ia)(n);else{this.buffer=this.writeStruct(r,n,void 0);const i=r.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){const n=this.byteBuffer;return delete this.byteBuffer,n}if(this.stringBuffer!==void 0){const n=this.stringBuffer;return delete this.stringBuffer,n}const t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,n,r){const i=t.getMergedTraits(),c=t.isMemberSchema()&&!i.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():i.xmlName??t.getName();if(!c||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);const l=Cs.of(c),[f,d]=this.getXmlnsAttribute(t,r);for(const[v,g]of t.structIterator()){const b=n[v];if(b!=null||g.isIdempotencyToken()){if(g.getMergedTraits().xmlAttribute){l.addAttribute(g.getMergedTraits().xmlName??v,this.writeSimple(g,b));continue}if(g.isListSchema())this.writeList(g,b,l,d);else if(g.isMapSchema())this.writeMap(g,b,l,d);else if(g.isStructSchema())l.addChildNode(this.writeStruct(g,b,d));else{const _=Cs.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,b,_,d),l.addChildNode(_)}}}const{$unknown:p}=n;if(p&&t.isUnionSchema()&&Array.isArray(p)&&Object.keys(n).length===1){const[v,g]=p,b=Cs.of(v);if(typeof g!="string")if(n instanceof Cs||n instanceof _S)l.addChildNode(n);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,g,b,d),l.addChildNode(b)}return d&&l.addAttribute(f,d),l}writeList(t,n,r,i){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);const c=t.getMergedTraits(),l=t.getValueSchema(),f=l.getMergedTraits(),d=!!f.sparse,p=!!c.xmlFlattened,[v,g]=this.getXmlnsAttribute(t,i),b=(_,E)=>{if(l.isListSchema())this.writeList(l,Array.isArray(E)?E:[E],_,g);else if(l.isMapSchema())this.writeMap(l,E,_,g);else if(l.isStructSchema()){const x=this.writeStruct(l,E,g);_.addChildNode(x.withName(p?c.xmlName??t.getMemberName():f.xmlName??"member"))}else{const x=Cs.of(p?c.xmlName??t.getMemberName():f.xmlName??"member");this.writeSimpleInto(l,E,x,g),_.addChildNode(x)}};if(p)for(const _ of n)(d||_!=null)&&b(r,_);else{const _=Cs.of(c.xmlName??t.getMemberName());g&&_.addAttribute(v,g);for(const E of n)(d||E!=null)&&b(_,E);r.addChildNode(_)}}writeMap(t,n,r,i,c=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);const l=t.getMergedTraits(),f=t.getKeySchema(),p=f.getMergedTraits().xmlName??"key",v=t.getValueSchema(),g=v.getMergedTraits(),b=g.xmlName??"value",_=!!g.sparse,E=!!l.xmlFlattened,[x,R]=this.getXmlnsAttribute(t,i),C=(T,P,I)=>{const B=Cs.of(p,P),[j,V]=this.getXmlnsAttribute(f,R);V&&B.addAttribute(j,V),T.addChildNode(B);let N=Cs.of(b);v.isListSchema()?this.writeList(v,I,N,R):v.isMapSchema()?this.writeMap(v,I,N,R,!0):v.isStructSchema()?N=this.writeStruct(v,I,R):this.writeSimpleInto(v,I,N,R),T.addChildNode(N)};if(E){for(const[T,P]of Object.entries(n))if(_||P!=null){const I=Cs.of(l.xmlName??t.getMemberName());C(I,T,P),r.addChildNode(I)}}else{let T;c||(T=Cs.of(l.xmlName??t.getMemberName()),R&&T.addAttribute(x,R),r.addChildNode(T));for(const[P,I]of Object.entries(n))if(_||I!=null){const B=Cs.of("entry");C(B,P,I),(c?r:T).addChildNode(B)}}}writeSimple(t,n){if(n===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const r=zt.of(t);let i=null;if(n&&typeof n=="object")if(r.isBlobSchema())i=(this.serdeContext?.base64Encoder??di)(n);else if(r.isTimestampSchema()&&n instanceof Date)switch(Ag(r,this.settings)){case 5:i=n.toISOString().replace(".000Z","Z");break;case 6:i=Hm(n);break;case 7:i=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n),i=Hm(n);break}else{if(r.isBigDecimalSchema()&&n)return n instanceof $d?n.string:String(n);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(i=String(n)),r.isStringSchema()&&(n===void 0&&r.isIdempotencyToken()?i=Rg():i=String(n)),i===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${n}`);return i}writeSimpleInto(t,n,r,i){const c=this.writeSimple(t,n),l=zt.of(t),f=new _S(c),[d,p]=this.getXmlnsAttribute(l,i);p&&r.addAttribute(d,p),r.addChildNode(f)}getXmlnsAttribute(t,n){const r=t.getMergedTraits(),[i,c]=r.xmlNamespace??[];return c&&c!==n?[i?`xmlns:${i}`:"xmlns",c]:[void 0,void 0]}}class KJ extends Pg{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new GJ(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new B3(this.settings);return t.setSerdeContext(this.serdeContext),t}}class ZJ extends vW{codec;serializer;deserializer;mixin=new z3;constructor(t){super(t);const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new KJ(n),this.serializer=new EW(this.codec.createSerializer(),n),this.deserializer=new SW(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r),c=zt.of(t.input);if(!i.headers["content-type"]){const l=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);l&&(i.headers["content-type"]=l)}return typeof i.body=="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("'+i.body),i}async deserializeResponse(t,n,r){return super.deserializeResponse(t,n,r)}async handleError(t,n,r,i,c){const l=FJ(r,i)??"Unknown";if(i.Error&&typeof i.Error=="object")for(const E of Object.keys(i.Error))i[E]=i.Error[E],E.toLowerCase()==="message"&&(i.message=i.Error[E]);i.RequestId&&!c.requestId&&(c.requestId=i.RequestId);const{errorSchema:f,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,i,c),p=zt.of(f),v=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",g=Gn.for(f[1]).getErrorCtor(f)??Error,b=new g(v);await this.deserializeHttpMessage(f,n,r,i);const _={};for(const[E,x]of p.structIterator()){const R=x.getMergedTraits().xmlName??E,C=i.Error?.[R]??i[R];_[E]=this.codec.createDeserializer().readSchema(x,C)}throw this.mixin.decorateServiceException(Object.assign(b,d,{$fault:p.getMergedTraits().error,message:v},_),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator())if(n.getMergedTraits().httpPayload)return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema());return!1}}const QJ=/\d{12}\.ddb/;async function YJ(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&eo(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const c=await t.retryStrategy();typeof c.acquireInitialRetryToken=="function"?c.constructor?.name?.includes("Adaptive")?eo(e,"RETRY_MODE_ADAPTIVE","F"):eo(e,"RETRY_MODE_STANDARD","E"):eo(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const c=e.endpointV2;switch(String(c?.url?.hostname).match(QJ)&&eo(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":eo(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":eo(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":eo(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const c=i;c.accountId&&eo(e,"RESOLVED_ACCOUNT_ID","T");for(const[l,f]of Object.entries(c.$source??{}))eo(e,l,f)}}const X2="user-agent",mb="x-amz-user-agent",W2=" ",gb="/",XJ=/[^!$%&'*+\-.^_`|~\w]/g,WJ=/[^!$%&'*+\-.^_`|~\w#]/g,J2="-",JJ=1024;function eee(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=JJ){t.length?t+=","+r:t+=r;continue}break}return t}const tee=e=>(t,n)=>async r=>{const{request:i}=r;if(!Qn.isInstance(i))return t(r);const{headers:c}=i,l=n?.userAgent?.map(Zh)||[],f=(await e.defaultUserAgentProvider()).map(Zh);await YJ(n,e,r);const d=n;f.push(`m/${eee(Object.assign({},n.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const p=e?.customUserAgent?.map(Zh)||[],v=await e.userAgentAppId();v&&f.push(Zh(["app",`${v}`]));const g=[].concat([...f,...l,...p]).join(W2),b=[...f.filter(_=>_.startsWith("aws-sdk-")),...p].join(W2);return e.runtime!=="browser"?(b&&(c[mb]=c[mb]?`${c[X2]} ${b}`:b),c[X2]=g):c[mb]=g,t({...r,request:i})},Zh=e=>{const t=e[0].split(gb).map(l=>l.replace(XJ,J2)).join(gb),n=e[1]?.replace(WJ,J2),r=t.indexOf(gb),i=t.substring(0,r);let c=t.substring(r+1);return i==="api"&&(c=c.toLowerCase()),[i,c,n].filter(l=>l&&l.length>0).reduce((l,f,d)=>{switch(d){case 0:return f;case 1:return`${l}/${f}`;default:return`${l}#${f}`}},"")},nee={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},F_=e=>({applyToStack:t=>{t.add(tee(e),nee)}}),G_=!1,K_=!1,eO=new Set,see=(e,t=Ig)=>{if(!eO.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else eO.add(e)},j3=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),ree=e=>j3(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,Z_=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const r=typeof t=="function"?await t():t,i=ree(r);return see(i),i},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return j3(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},tO="content-length";function oee(e){return t=>async n=>{const r=n.request;if(Qn.isInstance(r)){const{body:i,headers:c}=r;if(i&&Object.keys(c).map(l=>l.toLowerCase()).indexOf(tO)===-1)try{const l=e(i);r.headers={...r.headers,[tO]:String(l)}}catch{}}return t({...n,request:r})}}const iee={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Q_=e=>({applyToStack:t=>{t.add(oee(e.bodyLengthChecker),iee)}}),aee=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),dee(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!fee(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},cee=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,lee=/(\d+\.){3}\d+/,uee=/\.\./,fee=e=>cee.test(e)&&!lee.test(e)&&!uee.test(e),dee=e=>{const[t,n,r,,,i]=e.split(":"),c=t==="arn"&&e.split(":").length>=6,l=!!(c&&n&&r&&i);if(c&&!l)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return l},pee=(e,t,n,r=!1)=>{const i=async()=>{let c;return r?c=n.clientContextParams?.[e]??n[e]??n[t]:c=n[e]??n[t],typeof c=="function"?c():c};return e==="credentialScope"||t==="CredentialScope"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.credentialScope??c?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.accountId??c?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const c=await i();if(c&&typeof c=="object"){if("url"in c)return c.url.href;if("hostname"in c){const{protocol:l,hostname:f,port:d,path:p}=c;return`${l}//${f}${d?":"+d:""}${p}`}}return c}:i},V3=async e=>{},H3=e=>typeof e=="object"?"url"in e?hu(e.url):e:hu(e),hee=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let l;n.serviceConfiguredEndpoint?l=await n.serviceConfiguredEndpoint():l=await V3(n.serviceId),l&&(n.endpoint=()=>Promise.resolve(H3(l)),n.isCustomEndpoint=!0)}const i=await q3(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},q3=async(e,t,n)=>{const r={},i=t?.getEndpointParameterInstructions?.()||{};for(const[c,l]of Object.entries(i))switch(l.type){case"staticContextParams":r[c]=l.value;break;case"contextParams":r[c]=e[l.name];break;case"clientContextParams":case"builtInParams":r[c]=await pee(l.name,c,n,l.type!=="builtInParams")();break;case"operationContextParams":r[c]=l.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(l))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await aee(r),r},mee=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&xW(r,"ENDPOINT_OVERRIDE","N");const c=await hee(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c,r.authSchemes=c.properties?.authSchemes;const l=r.authSchemes?.[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;const d=Ro(r)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...i})},gee={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:SX.name},Nn=(e,t)=>({applyToStack:n=>{n.addRelativeTo(mee({config:e,instructions:t}),gee)}}),Y_=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,c=n!=null?async()=>H3(await Is(n)()):void 0,f=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Is(r??!1),useFipsEndpoint:Is(i??!1)});let d;return f.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=V3(e.serviceId)),d),f};var mu;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(mu||(mu={}));const gu=3,X_=mu.STANDARD,yee=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],vee=["TimeoutError","RequestTimeout","RequestTimeoutException"],bee=[500,502,503,504],See=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],_ee=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],Eee=e=>e?.$retryable!==void 0,xee=e=>e.$metadata?.clockSkewCorrected,wee=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},F3=e=>e.$metadata?.httpStatusCode===429||yee.includes(e.name)||e.$retryable?.throttling==!0,W_=(e,t=0)=>Eee(e)||xee(e)||vee.includes(e.name)||See.includes(e?.code||"")||_ee.includes(e?.code||"")||bee.includes(e.$metadata?.httpStatusCode||0)||wee(e)||e.cause!==void 0&&t<=10&&W_(e.cause,t+1),Ree=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!W_(e)}return!1};class J_{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>J_.setTimeoutFn(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),F3(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){const r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}const ES=100,G3=20*1e3,Cee=500,nO=500,Aee=5,Iee=10,Tee=1,Oee="amz-sdk-invocation-id",Mee="amz-sdk-request",Dee=()=>{let e=ES;return{computeNextBackoffDelay:r=>Math.floor(Math.min(G3,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},sO=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(G3,e),getRetryCost:()=>n});class K3{maxAttempts;mode=mu.STANDARD;capacity=nO;retryBackoffStrategy=Dee();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return sO({retryDelay:ES,retryCount:0})}async refreshRetryTokenForRetry(t,n){const r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){const i=n.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?Cee:ES);const c=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),l=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,c):c,f=this.getCapacityCost(i);return this.capacity-=f,sO({retryDelay:l,retryCount:t.getRetryCount()+1,retryCost:f})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(nO,this.capacity+(t.getRetryCost()??Tee))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${gu}`),gu}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?Iee:Aee}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class Pee{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=mu.ADAPTIVE;constructor(t,n){this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new J_,this.standardRetryStrategy=new K3(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const kee=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),eE=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,i=Is(r??gu);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Is(n)()===mu.ADAPTIVE?new Pee(i):new K3(i))})},Nee=e=>e?.body instanceof ReadableStream,Lee=e=>(t,n)=>async r=>{let i=await e.retryStrategy();const c=await e.maxAttempts();if($ee(i)){i=i;let l=await i.acquireInitialRetryToken(n.partition_id),f=new Error,d=0,p=0;const{request:v}=r,g=Qn.isInstance(v);for(g&&(v.headers[Oee]=Rg());;)try{g&&(v.headers[Mee]=`attempt=${d+1}; max=${c}`);const{response:b,output:_}=await t(r);return i.recordSuccess(l),_.$metadata.attempts=d+1,_.$metadata.totalRetryDelay=p,{response:b,output:_}}catch(b){const _=zee(b);if(f=kee(b),g&&Nee(v))throw(n.logger instanceof Dg?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{l=await i.refreshRetryTokenForRetry(l,_)}catch{throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=d+1,f.$metadata.totalRetryDelay=p,f}d=l.getRetryCount();const E=l.getRetryDelay();p+=E,await new Promise(x=>setTimeout(x,E))}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},$ee=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",zee=e=>{const t={error:e,errorType:Bee(e)},n=jee(e.$response);return n&&(t.retryAfterHint=n),t},Bee=e=>F3(e)?"THROTTLING":W_(e)?"TRANSIENT":Ree(e)?"SERVER_ERROR":"CLIENT_ERROR",Uee={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},tE=e=>({applyToStack:t=>{t.add(Lee(e),Uee)}}),jee=e=>{if(!$c.isInstance(e))return;const t=Object.keys(e.headers).find(c=>c.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},Vee=async(e,t,n)=>({operation:Ro(t).operation,region:await Is(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Hee(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ec2",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const qee=e=>{const t=[];switch(e.operation){default:t.push(Hee(e))}return t},Fee=e=>{const t=B_(e);return Object.assign(t,{authSchemePreference:Is(e.authSchemePreference??[])})},Gee=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"ec2"}),Co={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Kee="3.1000.0",Zee={version:Kee},Z3=e=>new TextEncoder().encode(e);var Qee=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:Z3;function zc(e){return e instanceof Uint8Array?e:typeof e=="string"?Qee(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Gm(e){return typeof e=="string"?e.length===0:e.byteLength===0}function Yee(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function Xee(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&c[c.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Mr=64,nte=32,ste=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),rte=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],ote=Math.pow(2,53)-1,um=(function(){function e(){this.state=Int32Array.from(rte),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>ote)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Mr&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Mr>=Mr-8){for(var i=this.bufferLength;i>>24&255,c[i*4+1]=this.state[i]>>>16&255,c[i*4+2]=this.state[i]>>>8&255,c[i*4+3]=this.state[i]>>>0&255;return c},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],c=r[1],l=r[2],f=r[3],d=r[4],p=r[5],v=r[6],g=r[7],b=0;b>>17|_<<15)^(_>>>19|_<<13)^_>>>10;_=this.temp[b-15];var x=(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3;this.temp[b]=(E+this.temp[b-7]|0)+(x+this.temp[b-16]|0)}var R=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&v)|0)+(g+(ste[b]+this.temp[b]|0)|0)|0,C=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&c^i&l^c&l)|0;g=v,v=p,p=d,d=f+R|0,f=l,l=c,c=i,i=R+C|0}r[0]+=i,r[1]+=c,r[2]+=l,r[3]+=f,r[4]+=d,r[5]+=p,r[6]+=v,r[7]+=g},e})(),ite=(function(){function e(t){this.secret=t,this.hash=new um,this.reset()}return e.prototype.update=function(t){if(!(Gm(t)||this.error))try{this.hash.update(zc(t))}catch(n){this.error=n}},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 Y3(this,void 0,void 0,function(){return X3(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new um,this.secret){this.outer=new um;var t=ate(this.secret),n=new Uint8Array(Mr);n.set(t);for(var r=0;rMr){var n=new um;n.update(t),t=n.digest()}var r=new Uint8Array(Mr);return r.set(t),r}var cte=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function W3(e){if(lte(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return ute(t)}return!1}function lte(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function ute(e){return e&&cte.every(function(t){return typeof e[t]=="function"})}var nE=(function(){function e(t){W3(Ca())?this.hash=new ete(t):this.hash=new ite(t)}return e.prototype.update=function(t,n){this.hash.update(zc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const sE=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"?window.navigator:void 0,i=r?.userAgent??"",c=r?.userAgentData?.platform??oO.os(i)??"other",l=void 0,f=r?.userAgentData?.brands??[],d=f[f.length-1],p=d?.brand??oO.browser(i)??"unknown",v=d?.version??"unknown",g=[["aws-sdk-js",t],["ua","2.1"],[`os/${c}`,l],["lang/js"],["md/browser",`${p}_${v}`]];e&&g.push([`api/${e}`,t]);const b=await n?.userAgentAppId?.();return b&&g.push([`app/${b}`]),g},oO={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}},rE=e=>()=>Promise.reject(e),fte=["in-region","cross-region","mobile","standard","legacy"],oE=({defaultsMode:e}={})=>rJ(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(dte()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${fte.join(", ")}, got ${t}`)}}),dte=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t=="string"&&t!=="4g"||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints=="number"&&e?.maxTouchPoints>1},J3="required",Pr="fn",kr="argv",Eu="ref",iO=!0,aO="isSet",Cd="booleanEquals",Vl="error",Hl="endpoint",ti="tree",iE="PartitionResult",aE="getAttr",cO={[J3]:!1,type:"string"},lO={[J3]:!0,default:!1,type:"boolean"},uO={[Eu]:"Endpoint"},eN={[Pr]:Cd,[kr]:[{[Eu]:"UseFIPS"},!0]},tN={[Pr]:Cd,[kr]:[{[Eu]:"UseDualStack"},!0]},Ir={},fO={[Pr]:aE,[kr]:[{[Eu]:iE},"supportsFIPS"]},nN={[Eu]:iE},dO={[Pr]:Cd,[kr]:[!0,{[Pr]:aE,[kr]:[nN,"supportsDualStack"]}]},pO=[eN],hO=[tN],mO=[{[Eu]:"Region"}],pte={parameters:{Region:cO,UseDualStack:lO,UseFIPS:lO,Endpoint:cO},rules:[{conditions:[{[Pr]:aO,[kr]:[uO]}],rules:[{conditions:pO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Vl},{conditions:hO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Vl},{endpoint:{url:uO,properties:Ir,headers:Ir},type:Hl}],type:ti},{conditions:[{[Pr]:aO,[kr]:mO}],rules:[{conditions:[{[Pr]:"aws.partition",[kr]:mO,assign:iE}],rules:[{conditions:[eN,tN],rules:[{conditions:[{[Pr]:Cd,[kr]:[iO,fO]},dO],rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Vl}],type:ti},{conditions:pO,rules:[{conditions:[{[Pr]:Cd,[kr]:[fO,iO]}],rules:[{conditions:[{[Pr]:"stringEquals",[kr]:[{[Pr]:aE,[kr]:[nN,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:Ir,headers:Ir},type:Hl},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti},{error:"FIPS is enabled but this partition does not support FIPS",type:Vl}],type:ti},{conditions:hO,rules:[{conditions:[dO],rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti},{error:"DualStack is enabled but this partition does not support DualStack",type:Vl}],type:ti},{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti}],type:ti},{error:"Invalid Configuration: Missing Region",type:Vl}]},hte=pte,mte=new N_({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),gte=(e,t={})=>mte.get(e,()=>$_(hte,{endpointParams:e,logger:t.logger}));pu.aws=Og;class cE extends Ea{constructor(t){super(t),Object.setPrototypeOf(this,cE.prototype)}}const yte="AllAvailabilityZones",vte="AttributeBooleanValue",bte="AssociateCarrierIpAddress",Ste="AdditionalFlexibleNetworkInterfaces",_te="AvailableIpAddressCount",Ete="AssignIpv6AddressOnCreation",sN="AdditionalInfo",lE="AssociationId",rN="AttachmentId",xte="AmiLaunchIndex",wte="AttachmentLimitType",Rte="AssociatePublicIpAddress",Cte="AmazonProvidedIpv6CidrBlock",Ate="AutoRecoverySupported",Ite="AllRegions",oN="AssociatedResource",iN="AutoRecovery",aN="AmdSevSnp",Tte="ArchitectureTypeList",kg="AttachTime",Ote="AttachVolumeRequest",Mte="AttributeValue",Dte="AttachVolume",za="AvailabilityZone",Pte="AvailabilityZoneGeography",kte="AvailabilityZoneGeographyList",xu="AvailabilityZoneId",Nte="AvailabilityZoneList",Lte="AvailabilityZoneMessage",$te="AvailabilityZoneMessageList",zte="AvailabilityZoneSubGeography",Bte="AvailabilityZoneSubGeographyList",Ute="AvailabilityZones",cN="Accelerators",jte="Affinity",lN="Arn",uN="Architecture",fN="Association",Vte="Attribute",dN="Attachment",Hte="Attachments",qte="BlobAttributeValue",Fte="BaselineBandwidthInGbps",pN="BaselineBandwidthInMbps",uE="BlockDeviceMapping",Gte="BlockDeviceMappingList",Kte="BlockDeviceMappingRequestList",zd="BlockDeviceMappings",Zte="BlockDurationMinutes",hN="BaselineIops",mN="BootMode",Qte="BootModeTypeList",Yte="BareMetal",fE="BlockPublicAccessStates",Xte="BurstablePerformanceSupported",gN="BaselineThroughputInMBps",yN="BandwidthWeighting",Wte="BandwidthWeightingTypeList",Jte="BandwidthWeightings",Bd="CidrBlock",ene="CidrBlockAssociationSet",tne="CapacityBlockId",nne="CidrBlockState",sne="CoreCountList",vN="CoreCount",rne="CpuCredits",bN="CompletionDurationMinutes",one="CreationDate",ine="CurrentGeneration",ane="CarrierIp",cne="CurrentInstanceBootMode",lne="CreateImageRequest",une="CreateImageResult",fne="CoreInfo",dne="CreateImage",pne="CreateKeyPair",hne="CreateKeyPairRequest",dE="CpuOptions",mne="CustomerOwnedIp",gne="CustomerOwnedIpv4Pool",yne="CpuOptionsRequest",pE="CapacityReservationId",SN="CapacityReservationPreference",_N="CapacityReservationResourceGroupArn",vne="CapacityReservationSpecificationResponse",hE="CapacityReservationSpecification",mE="CapacityReservationTarget",bne="CapacityReservationTargetResponse",Sne="CopySnapshotRequest",_ne="CopySnapshotRequestPSU",Ene="CopySnapshotResult",xne="CreateSnapshotRequest",wne="CreateSubnetRequest",Rne="CreateSubnetResult",Cne="CreditSpecificationRequest",Ane="CopySnapshot",Ine="CreditSpecification",Tne="CreateSnapshot",One="CreateSubnet",Mne="CurrentState",gE="ClientToken",Dne="ConnectionTrackingConfiguration",Pne="ConnectionTrackingSpecification",kne="ConnectionTrackingSpecificationRequest",Nne="ConnectionTrackingSpecificationResponse",Lne="CompletionTime",EN="CreateTime",$ne="CreateVolumeRequest",zne="CreateVpcRequest",Bne="CreateVpcResult",Une="CreateVolume",jne="CreateVpc",xN="Code",wN="Configured",Ba="Count",RN="DisableApiStop",CN="DisableApiTermination",Vne="DestinationAvailabilityZone",Hne="DescribeAvailabilityZonesRequest",qne="DescribeAvailabilityZonesResult",Fne="DescribeAvailabilityZones",Gne="DefaultCores",Kne="DataEncryptionKeyId",Zne="DefaultEnaQueueCountPerInterface",Qne="DefaultForAz",Yne="DedicatedHostsSupported",Ng="DeviceIndex",Xne="DiskInfoList",Wne="DescribeImagesRequest",Jne="DescribeImagesResult",ese="DescribeInstancesRequest",tse="DescribeInstancesResult",nse="DescribeInstanceTypesRequest",sse="DescribeInstanceTypesResult",rse="DescribeInstanceTypes",ose="DescribeImages",ise="DescribeInstances",ase="DiskInfo",cse="DeleteKeyPair",lse="DeleteKeyPairRequest",use="DeleteKeyPairResult",fse="DescribeKeyPairsRequest",dse="DescribeKeyPairsResult",pse="DescribeKeyPairs",yE="DeviceName",hse="DefaultNetworkCardIndex",mse="DestinationOutpostArn",gse="DhcpOptionsId",Ua="DeleteOnTermination",yse="DeregistrationProtection",It="DryRun",vse="DescribeRegionsRequest",bse="DescribeRegionsResult",Sse="DestinationRegion",_se="DescribeRegions",Ese="DeleteSnapshotRequest",xse="DeleteSubnetRequest",wse="DescribeSnapshotsRequest",Rse="DescribeSnapshotsResult",Cse="DescribeSubnetsRequest",Ase="DescribeSubnetsResult",Ise="DeleteSnapshot",Tse="DeleteSubnet",Ose="DescribeSnapshots",Mse="DescribeSubnets",Dse="DefaultThreadsPerCore",Pse="DeprecationTime",kse="DefaultVCpus",Nse="DeleteVolumeRequest",Lse="DeleteVpcRequest",$se="DescribeVolumesRequest",zse="DescribeVolumesResult",Bse="DescribeVpcsRequest",Use="DescribeVpcsResult",jse="DetachVolumeRequest",Vse="DeleteVolume",Hse="DeleteVpc",qse="DescribeVolumes",Fse="DescribeVpcs",Gse="DetachVolume",Hc="Description",vE="Device",Kse="Disks",Zse="EbsBlockDevice",Qse="ExecutableByStringList",AN="ExecutableBy",Ud="EbsCardIndex",Yse="EbsCardInfoList",Xse="EbsCardInfo",Wse="EbsCards",Jse="EncryptionControl",ere="EnableDns64",tre="ElasticFileSystem",nre="ElasticFileSystemExclusion",sre="ElasticGpuAssociation",rre="ElasticGpuAssociationId",ore="ElasticGpuAssociationList",ire="ElasticGpuAssociationState",are="ElasticGpuAssociationTime",cre="ElasticGpuAssociations",lre="ElasticGpuId",IN="ElasticGpuSpecification",ure="ElasticGpuSpecifications",TN="ElasticInferenceAccelerator",fre="ElasticInferenceAcceleratorAssociation",dre="ElasticInferenceAcceleratorAssociationId",pre="ElasticInferenceAcceleratorAssociationList",hre="ElasticInferenceAcceleratorAssociationState",mre="ElasticInferenceAcceleratorAssociationTime",gre="ElasticInferenceAcceleratorArn",yre="ElasticInferenceAcceleratorAssociations",ON="ElasticInferenceAccelerators",vre="EbsInstanceBlockDevice",bre="EbsInstanceBlockDeviceSpecification",Sre="EncryptionInTransitSupported",MN="EbsInfo",DN="EfaInfo",_re="EnableLniAtDeviceIndex",bE="EbsOptimized",PN="EbsOptimizedInfo",Ere="EgressOnlyInternetGateway",xre="EgressOnlyInternetGatewayExclusion",wre="EnclaveOptionsRequest",Rre="EbsOptimizedSupport",SE="EnclaveOptions",Cre="EnablePrimaryIpv6",kN="EnaQueueCount",_E="EnableResourceNameDnsAAAARecord",EE="EnableResourceNameDnsARecord",NN="EnaSrdEnabled",LN="EnaSrdSpecification",Are="EnaSrdSpecificationRequest",Ire="EnaSrdSupported",$N="EnaSrdUdpEnabled",zN="EnaSrdUdpSpecification",Tre="EnaSrdUdpSpecificationRequest",Ore="EfaSupported",BN="EncryptionSupport",Lg="EnaSupport",Mre="EndTime",Dre="ExecutableUsers",xE="Ebs",wE="Enabled",jd="Encrypted",Pre="Endpoint",RE="Force",kre="FpgaDeviceInfo",Nre="FpgaDeviceInfoList",Lre="FpgaDeviceMemoryInfo",$re="FlexibleEnaQueuesSupport",UN="FpgaInfo",zre="FilterList",Bre="FastRestored",Ure="FullSnapshotSizeInBytes",jN="FreeTierEligible",Ao="Filters",Ur="Filter",jre="Fpgas",$g="Groups",Vre="GetConsoleOutput",Hre="GetConsoleOutputRequest",qre="GetConsoleOutputResult",Fre="GpuDeviceInfo",Gre="GpuDeviceInfoList",Kre="GpuDeviceMemoryInfo",Zre="GroupIdentifierList",Qre="GroupIdStringList",VN="GpuInfo",CE="GroupId",Yre="GroupIdentifier",Xre="GroupLongName",AE="GroupName",Wre="GpuPartitionSize",HN="Geography",Jre="Gpus",qN="HttpEndpoint",eoe="HostId",IE="HibernationOptions",toe="HibernationOptionsRequest",FN="HttpProtocolIpv6",GN="HttpPutResponseHopLimit",noe="HostResourceGroupArn",soe="HibernationSupported",KN="HttpTokens",TE="HostnameType",roe="Hibernate",OE="Hypervisor",ooe="Id",ME="Ipv6Addresses",ZN="Ipv6AddressAttribute",QN="Ipv6AddressCount",ioe="InstanceAttachmentEnaSrdSpecification",aoe="InstanceAttachmentEnaSrdUdpSpecification",YN="InferenceAcceleratorInfo",coe="Ipv4AddressesPerInterface",loe="Ipv6AddressesPerInterface",uoe="Ipv4AddressesPerSecondaryInterface",foe="ImageAllowed",DE="Ipv6Address",doe="InstanceBlockDeviceMapping",poe="InstanceBlockDeviceMappingList",hoe="InstanceBlockDeviceMappingSpecification",moe="InstanceBlockDeviceMappingSpecificationList",zg="Ipv6CidrBlock",XN="Ipv6CidrBlockAssociationSet",goe="Ipv6CidrBlockNetworkBorderGroup",WN="Ipv6CidrBlockState",yoe="IncludeDeprecated",voe="InferenceDeviceInfo",boe="InferenceDeviceInfoList",Soe="InferenceDeviceMemoryInfo",_oe="IncludeDisabled",Eoe="IsDefault",xoe="InternetGateway",woe="InternetGatewayBlockMode",Roe="InternetGatewayExclusion",Ts="InstanceId",Coe="InstanceIpv6Address",Aoe="InstanceIpv6AddressList",Ioe="InstanceInterruptionBehavior",PE="IamInstanceProfile",JN="Ipv6IpamPoolId",eL="Ipv4IpamPoolId",Toe="InstanceIpv4PrefixList",Ooe="InstanceIpv6PrefixList",Moe="IamInstanceProfileSpecification",Doe="InstanceIpv4Prefix",Poe="InstanceIpv6Prefix",tL="InstanceInitiatedShutdownBehavior",koe="ImageIdStringList",Noe="InstanceIdStringList",wu="ImageId",Loe="ImageIds",Vd="InstanceIds",$oe="ImportKeyPair",zoe="ImportKeyPairRequest",Boe="ImportKeyPairResult",Uoe="ImageLocation",joe="ImageList",Voe="InstanceLifecycle",Hoe="InstanceList",qoe="InstanceMaintenanceOptions",Foe="InstanceMaintenanceOptionsRequest",Goe="InstanceMarketOptionsRequest",Koe="InstanceMetadataOptionsRequest",Zoe="InstanceMetadataOptionsResponse",Qoe="InstanceMarketOptions",nL="InstanceMetadataTags",sL="Ipv6Native",Yoe="InstanceNetworkInterface",Xoe="InstanceNetworkInterfaceAssociation",Woe="InstanceNetworkInterfaceAttachment",Joe="InstanceNetworkInterfaceList",eie="InstanceNetworkInterfaceSpecification",tie="InstanceNetworkInterfaceSpecificationList",rL="Ipv6NetmaskLength",oL="Ipv4NetmaskLength",nie="InstanceNetworkPerformanceOptions",sie="InstanceNetworkPerformanceOptionsRequest",rie="ImageOwnerAlias",oie="IpOwnerId",iie="InstanceOwningService",aie="Ipv6PrefixCount",cie="Ipv4PrefixCount",lie="InstancePrivateIpAddress",uie="InstancePrivateIpAddressList",fie="IsPrimaryIpv6",die="IncludePublicKey",pie="Ipv4PrefixList",hie="Ipv6PrefixList",mie="Ipv4PrefixSpecificationRequest",gie="Ipv6PrefixSpecificationRequest",iL="Ipv6Prefixes",kE="Ipv6Prefix",aL="Ipv6Pool",cL="Ipv4Prefixes",NE="Ipv4Prefix",yie="InstanceStateChange",vie="InstanceStateChangeList",bie="InstanceSecondaryInterfaceAttachment",Sie="InstanceSecondaryInterfaceList",_ie="InstanceSecondaryInterfacePrivateIpAddress",Eie="InstanceSecondaryInterfacePrivateIpAddressList",xie="InstanceSecondaryInterfacePrivateIpAddressListRequest",wie="InstanceSecondaryInterfacePrivateIpAddressRequest",Rie="InstanceSecondaryInterfaceSpecificationListRequest",Cie="InstanceSecondaryInterfaceSpecificationRequest",Aie="InstanceSecondaryInterface",lL="InstanceStorageInfo",Iie="InstanceStorageSupported",Tie="ImdsSupport",Oie="InstanceState",uL="IpSource",Mie="Ipv6Supported",Hd="InstanceType",Die="InstanceTypeInfoList",Pie="InstanceTypeInfo",kie="ImageType",fL="InstanceTenancy",dL="InstanceTypes",Bg="InterfaceType",Nie="Images",Lie="Image",$ie="Instance",zie="Instances",Ug="Iops",Bie="Key",Uie="KeyFormat",LE="KeyFingerprint",$E="KernelId",qd="KmsKeyId",jie="KeyMaterial",Io="KeyName",Vie="KeyNameStringList",Hie="KeyNames",qie="KeyPairs",qc="KeyPairId",Fie="KeyPairIdStringList",Gie="KeyPairIds",Kie="KeyPairInfo",Zie="KeyPairList",Qie="KeyPair",pL="KeyType",Yie="Kernel",hL="LicenseConfigurationArn",Xie="LicenseConfigurationRequest",Wie="LicenseConfiguration",Jie="LambdaExclusion",eae="LogicalGpuCount",tae="LicenseList",nae="LastLaunchedTime",sae="LicenseSpecifications",rae="LicenseSpecificationListRequest",oae="LicenseSpecification",iae="LaunchTemplate",aae="LaunchTemplateId",cae="LaunchTemplateName",lae="LaunchTemplateSpecification",uae="LaunchTime",fae="Latest",dae="Lambda",pae="Licenses",hae="Location",zE="MultiAttachEnabled",mL="MediaAcceleratorInfo",gL="MacAddress",yL="MaximumBandwidthInMbps",mae="MapCustomerOwnedIpOnLaunch",gae="MaxCount",yae="MinCount",vae="MediaDeviceInfo",bae="MediaDeviceInfoList",Sae="MediaDeviceMemoryInfo",_ae="MaximumEbsAttachments",Eae="MaximumEbsCards",xae="MaximumEfaInterfaces",wae="MaximumEnaQueueCount",Rae="MaximumEnaQueueCountPerInterface",vL="MaximumIops",Cae="ModifyInstanceAttributeRequest",Aae="ModifyInstanceAttribute",Fc="MemoryInfo",Iae="MaximumNetworkCards",bL="MaximumNetworkInterfaces",SL="MetadataOptions",_L="MaintenanceOptions",Tae="MapPublicIpOnLaunch",Oae="MaxPrice",Gc="MaxResults",Mae="MaximumSecondaryNetworkInterfaces",Dae="ModificationState",Pae="MarketType",EL="MaximumThroughputInMBps",kae="ModifyVolumeRequest",Nae="ModifyVolumeResult",Lae="ModifyVolume",Fd="Manufacturer",$ae="Managed",xL="Message",zae="Messages",wL="Mode",BE="Monitoring",ur="Name",RL="NetworkBorderGroup",Bae="NetworkCards",Gd="NetworkCardIndex",Uae="NetworkCardInfoList",jae="NetworkCardInfo",CL="NoDevice",Vae="NeuronDeviceCoreInfo",Hae="NeuronDeviceInfo",qae="NeuronDeviceInfoList",Fae="NeuronDeviceMemoryInfo",Gae="NeuronDevices",Kae="NitroEnclavesSupport",Zae="NatGateway",Qae="NatGatewayExclusion",AL="NetworkInterfaceId",IL="NetworkInterfaces",TL="NetworkInfo",OL="NeuronInfo",ML="NetworkPerformanceOptions",DL="NetworkPerformance",Yae="NoReboot",PL="NvmeSupport",kL="NitroTpmInfo",Xae="NitroTpmSupport",Wae="NitroTpmSupportedVersionsList",Gs="NextToken",NL="NestedVirtualization",ja="OutpostArn",Jae="OwnerAlias",Kc="OwnerId",LL="OptInStatus",ece="OriginalIops",tce="OwnerIds",nce="OriginalMultiAttachEnabled",sce="OperatorRequest",rce="OperatorResponse",oce="OwnerStringList",ice="OriginalSize",ace="OriginalThroughput",cce="OriginalVolumeType",Ru="Operator",lce="Output",uce="Owners",UE="Owner",$L="Principal",fce="PeakBandwidthInGbps",dce="ProductCodeId",pce="ProductCodeList",hce="ProductCodeType",mce="ProductCode",zL="ProductCodes",jE="PrivateDnsName",BL="PrivateDnsNameOptions",UL="PrivateDnsNameOptionsOnLaunch",gce="PrivateDnsNameOptionsRequest",yce="PrivateDnsNameOptionsResponse",jL="PublicDnsName",VL="PlatformDetails",HL="PlacementGroupInfo",vce="PlacementGroupStrategyList",bce="PublicIp",Sce="PrivateIpAddressCount",_ce="PrivateIpAddressSpecification",Ece="PrivateIpAddressSpecificationList",mi="PrivateIpAddress",jg="PrivateIpAddresses",xce="PublicIpAddress",wce="PrimaryIpv6",qL="ProcessorInfo",Rce="PublicKey",Cce="PublicKeyMaterial",Ace="PartitionNumber",Ice="PhcSupport",Tce="PreviousState",Oce="PresignedUrl",Mce="ParentZoneId",Dce="ParentZoneName",FL="Platform",VE="Placement",GL="Primary",KL="Progress",Pce="Public",kce="Return",Nce="RestorableByUserIds",Lce="RestorableBy",ZL="RootDeviceName",QL="RootDeviceType",$ce="RootDeviceTypeList",zce="RestoreExpiryTime",Bce="ResourceExclusions",Uce="RegionGeography",jce="RegionGeographyList",Vce="RunInstancesMonitoringEnabled",Hce="RebootInstancesRequest",qce="RunInstancesRequest",Fce="RunInstancesUserData",HE="RamdiskId",Gce="ReservationId",Kce="RebootInstances",Zce="RequesterId",Qce="RunInstances",Yce="RegionList",Xce="ReservationList",Wce="RebootMigrationSupport",Jce="RebootMigration",Vg="RegionName",ele="RegionNameStringList",tle="RegionNames",nle="ResourceType",sle="Ramdisk",rle="Regions",ole="Region",ile="Reservations",ale="Reservation",cle="SupportedAdditionalProcessorFeatureList",lle="SubnetArn",ule="SupportedArchitectures",fle="SupportedBootModes",dle="SubnetCidrBlockState",ple="SustainedClockSpeedInGhz",Hg="SourceDestCheck",hle="SpreadDomain",mle="SupportedFeatures",gle="SubGeography",qE="SecurityGroupId",yle="SecurityGroupIdStringList",vle="SecurityGroupIds",ble="SecurityGroupStringList",YL="SecurityGroups",XL="SecurityGroup",Sle="SubnetIds",_le="SubnetIpv6CidrBlockAssociation",Ele="SubnetIpv6CidrBlockAssociationSet",xle="SizeInGB",wle="SourceImageId",Rle="SecondaryInterfaceId",Cle="SourceInstanceId",Cu="SizeInMiB",Ale="SpotInstanceRequestId",Ile="SourceImageRegion",Tle="StartInstancesRequest",Ole="StartInstancesResult",Mle="StopInstancesRequest",Dle="StopInstancesResult",Ple="SnapshotIdStringList",kle="SubnetIdStringList",Nle="SpotInstanceType",WL="SecondaryInterfaces",Lle="SecondaryInterface",Va="SnapshotId",$le="SnapshotIds",zle="StartingInstances",Ble="StartInstances",Ule="StoppingInstances",jle="StopInstances",Ha="SubnetId",Vle="SnapshotLocation",Hle="SnapshotList",qle="SubnetList",Fle="SpotMarketOptions",FE="StatusMessage",GE="StateMessage",Gle="SecondaryNetworkId",KE="SriovNetSupport",Kle="SecondaryNetworkSupported",Zle="SpotOptions",JL="SkipOsShutdown",Qle="SecondaryPrivateIpAddressCount",Yle="SupportedRootDeviceTypes",Xle="SourceRegion",ZE="StateReason",Wle="SourceSnapshotId",e$="SecondarySubnetId",Jle="SupportedStrategies",t$="StartTime",eue="StateTransitionReason",n$="SseType",tue="StorageTier",nue="SupportedUsageClasses",sue="SensitiveUserData",rue="SourceVolumeId",oue="SupportedVirtualizationTypes",iue="SupportedVersions",QE="Size",aue="Snapshots",cue="Snapshot",Ks="State",Kd="Status",s$="Subnet",lue="Subnets",jr="Tags",r$="TcpEstablishedTimeout",uue="TotalFpgaMemoryInMiB",fue="TotalGpuMemoryInMiB",due="TerminateInstances",pue="TotalInferenceMemoryInMiB",hue="TerminateInstancesRequest",mue="TerminateInstancesResult",gue="TargetIops",yue="TerminatingInstances",vue="TagList",bue="TargetMultiAttachEnabled",Sue="TotalMediaMemoryInMiB",_ue="TotalNeuronDeviceMemoryInMiB",o$="ThreadsPerCore",Eue="ThreadsPerCoreList",gi="TagSpecifications",xue="TotalSizeInGB",wue="TagSpecificationList",To="TagSpecification",Rue="TargetSize",i$="TpmSupport",Cue="TargetThroughput",Aue="TransferType",Iue="TargetVolumeType",a$="Tag",Tue="Tenancy",qg="Throughput",Oue="Timestamp",Fg="Type",Mue="UsageClassTypeList",c$="UserData",l$="UsageOperation",Due="UsageOperationUpdateTime",u$="UdpStreamTimeout",f$="UdpTimeout",Au="Value",Pue="VolumeAttachmentList",kue="VolumeAttachment",Nue="VpcCidrBlockAssociation",Lue="VpcCidrBlockAssociationSet",$ue="VpcCidrBlockState",d$="VCpuInfo",zue="ValidCores",p$="VpcEncryptionControl",Bue="VpcEncryptionControlConfiguration",Uue="VpcEncryptionControlExclusion",jue="VpcEncryptionControlExclusions",Vue="VpcEncryptionControlId",yi="VpcId",Hue="VpcIpv6CidrBlockAssociation",que="VpcIpv6CidrBlockAssociationSet",YE="VolumeInitializationRate",Fue="VolumeIdStringList",Gue="VpcIdStringList",fr="VolumeId",Kue="VolumeIds",Zue="VpcIds",Que="VpcLattice",Yue="VpcLatticeExclusion",Xue="VolumeList",Wue="VpcList",h$="VolumeModification",m$="VirtualName",Jue="VolumeOwnerId",efe="VpcPeeringExclusion",tfe="VirtualPrivateGateway",nfe="VirtualPrivateGatewayExclusion",sfe="VpcPeering",rfe="ValueStringList",g$="VolumeSize",Gg="VolumeType",ofe="VirtualizationTypeList",ife="ValidThreadsPerCore",y$="VirtualizationType",afe="ValidUntil",cfe="Values",v$="Version",lfe="Volumes",ufe="Volume",b$="Vpc",ffe="Vpcs",dfe="WorkloadsList",pfe="Workloads",XE="ZoneId",hfe="ZoneIdStringList",mfe="ZoneIds",WE="ZoneName",gfe="ZoneNameStringList",yfe="ZoneNames",vfe="ZoneType",bfe="additionalFlexibleNetworkInterfaces",Sfe="availableIpAddressCount",_fe="assignIpv6AddressOnCreation",S$="additionalInfo",JE="associationId",_$="attachmentId",Efe="amiLaunchIndex",xfe="attachmentLimitType",wfe="associatePublicIpAddress",Rfe="amazonProvidedIpv6CidrBlock",Cfe="autoRecoverySupported",E$="associatedResource",Afe="autoRecovery",Ife="amdSevSnp",Tfe="attachmentSet",Kg="attachTime",Zd="availabilityZone",ex="availabilityZoneId",Ofe="availabilityZoneInfo",x$="accelerators",Mfe="affinity",w$="arn",R$="architecture",C$="association",A$="attachment",Dfe="attribute",Pfe="baselineBandwidthInGbps",I$="baselineBandwidthInMbps",Zg="blockDeviceMapping",T$="baselineIops",O$="bootMode",kfe="bareMetal",M$="blockPublicAccessStates",Nfe="burstablePerformanceSupported",D$="baselineThroughputInMBps",Lfe="bandwidthWeighting",$fe="bandwidthWeightings",tx="cidrBlock",zfe="cidrBlockAssociationSet",Bfe="capacityBlockId",Ufe="cidrBlockState",jfe="coreCount",Vfe="completionDurationMinutes",Hfe="creationDate",qfe="currentGeneration",Ffe="carrierIp",Gfe="currentInstanceBootMode",Kfe="coreInfo",Zfe="cpuOptions",Qfe="customerOwnedIp",Yfe="customerOwnedIpv4Pool",P$="capacityReservationId",Xfe="capacityReservationPreference",Wfe="capacityReservationResourceGroupArn",Jfe="capacityReservationSpecification",ede="capacityReservationTarget",tde="currentState",k$="clientToken",nde="connectionTrackingConfiguration",sde="completionTime",N$="createTime",L$="code",rde="configured",Zc="count",$$="disableApiTermination",ode="defaultCores",ide="dataEncryptionKeyId",ade="defaultEnaQueueCountPerInterface",cde="defaultForAz",lde="dedicatedHostsSupported",nx="deviceIndex",sx="deviceName",ude="defaultNetworkCardIndex",fde="dnsName",dde="dhcpOptionsId",Qc="deleteOnTermination",pde="deregistrationProtection",$t="dryRun",hde="destinationRegion",mde="defaultThreadsPerCore",gde="deprecationTime",yde="defaultVCpus",Qd="description",vde="device",bde="disks",rx="ebsCardIndex",Sde="ebsCardSet",_de="encryptionControl",Ede="enableDns64",xde="elasticFileSystem",wde="elasticGpuAssociationId",Rde="elasticGpuAssociationState",Cde="elasticGpuAssociationSet",Ade="elasticGpuAssociationTime",Ide="elasticGpuId",Tde="elasticInferenceAcceleratorArn",Ode="elasticInferenceAcceleratorAssociationId",Mde="elasticInferenceAcceleratorAssociationState",Dde="elasticInferenceAcceleratorAssociationSet",Pde="elasticInferenceAcceleratorAssociationTime",kde="encryptionInTransitSupported",Nde="ebsInfo",Lde="efaInfo",$de="enableLniAtDeviceIndex",ox="ebsOptimized",zde="ebsOptimizedInfo",Bde="egressOnlyInternetGateway",Ude="ebsOptimizedSupport",jde="enclaveOptions",Vde="enaQueueCount",S="ec2QueryName",z$="enableResourceNameDnsAAAARecord",B$="enableResourceNameDnsARecord",Hde="enaSrdEnabled",qde="enaSrdSpecification",Fde="enaSrdSupported",Gde="enaSrdUdpEnabled",Kde="enaSrdUdpSpecification",Zde="efaSupported",U$="encryptionSupport",Qg="enaSupport",Qde="endTime",ix="ebs",j$="enabled",Yd="encrypted",Yde="flexibleEnaQueuesSupport",Xde="fpgaInfo",Wde="fastRestored",Jde="fullSnapshotSizeInBytes",V$="freeTierEligible",epe="force",tpe="fpgas",npe="gpuInfo",ax="groupId",spe="groupLongName",cx="groupName",rpe="gpuPartitionSize",H$="geographySet",lx="groupSet",ope="gpus",ux="hypervisor",ipe="httpEndpoint",ape="hostId",cpe="hibernationOptions",lpe="httpProtocolIpv6",upe="httpPutResponseHopLimit",fpe="hostResourceGroupArn",dpe="hibernationSupported",ppe="httpTokens",q$="hostnameType",hpe="id",F$="ipv6AddressAttribute",mpe="ipv6AddressCount",gpe="inferenceAcceleratorInfo",ype="ipv4AddressesPerInterface",vpe="ipv6AddressesPerInterface",bpe="ipv4AddressesPerSecondaryInterface",G$="ipv6AddressesSet",Spe="imageAllowed",_pe="ipAddress",K$="ipv6Address",Z$="ipv6CidrBlock",Q$="ipv6CidrBlockAssociationSet",Y$="ipv6CidrBlockState",Epe="isDefault",xpe="internetGateway",wpe="internetGatewayBlockMode",Iu="instanceId",X$="iamInstanceProfile",W$="instanceInitiatedShutdownBehavior",fx="imageId",Rpe="imageLocation",Cpe="instanceLifecycle",Ape="instanceMetadataTags",Ipe="ipv6Native",Tpe="imageOwnerAlias",Ope="imageOwnerId",Mpe="ipOwnerId",Dpe="instanceOwningService",Ppe="isPrimaryIpv6",kpe="ipv4PrefixSet",Npe="ipv6PrefixSet",Lpe="ipv4Prefix",$pe="ipv6Pool",zpe="ipv6Prefix",Bpe="isPublic",Upe="instanceStorageInfo",jpe="instanceStorageSupported",Vpe="imagesSet",Hpe="imageState",qpe="imdsSupport",Yg="instancesSet",Fpe="instanceState",J$="ipSource",Gpe="ipv6Supported",dx="instanceType",Kpe="instanceTypeSet",Zpe="idempotencyToken",Qpe="imageType",e4="instanceTenancy",t4="interfaceType",n4="iops",ke="item",Ype="key",px="keyFingerprint",s4="kernelId",Xg="kmsKeyId",Xpe="keyMaterial",Xd="keyName",Wg="keyPairId",Wpe="keySet",Jpe="keyType",ehe="kernel",the="licenseConfigurationArn",nhe="logicalGpuCount",she="lastLaunchedTime",rhe="licenseSet",ohe="launchTime",ihe="lambda",ahe="multiAttachEnabled",che="mediaAcceleratorInfo",r4="macAddress",o4="maximumBandwidthInMbps",lhe="mapCustomerOwnedIpOnLaunch",uhe="maximumEbsAttachments",fhe="maximumEbsCards",dhe="maximumEfaInterfaces",phe="maximumEnaQueueCount",hhe="maximumEnaQueueCountPerInterface",i4="maximumIops",Tu="memoryInfo",mhe="maximumNetworkCards",a4="maximumNetworkInterfaces",ghe="metadataOptions",yhe="maintenanceOptions",vhe="mapPublicIpOnLaunch",c4="maxResults",bhe="messageSet",She="maximumSecondaryNetworkInterfaces",_he="modificationState",l4="maximumThroughputInMBps",Wd="manufacturer",Ehe="managed",u4="message",xhe="monitoring",whe="mode",Vr="name",f4="networkBorderGroup",Rhe="networkCards",hx="networkCardIndex",d4="noDevice",Che="neuronDevices",Ahe="nitroEnclavesSupport",Ihe="natGateway",p4="networkInterfaceId",The="networkInterfaceSet",Ohe="networkInterface",Mhe="networkInfo",Dhe="neuronInfo",Phe="networkPerformanceOptions",h4="networkPerformance",khe="noReboot",m4="nvmeSupport",Nhe="nitroTpmInfo",Lhe="nitroTpmSupport",vi="nextToken",$he="nestedVirtualization",Jd="outpostArn",zhe="ownerAlias",Ou="ownerId",g4="optInStatus",Bhe="originalIops",Uhe="originalMultiAttachEnabled",jhe="originalSize",Vhe="originalThroughput",Hhe="originalVolumeType",Jg="operator",qhe="output",Fhe="principal",Ghe="peakBandwidthInGbps",y4="productCodes",Khe="productCode",Zhe="privateDnsNameOptions",Qhe="privateDnsNameOptionsOnLaunch",mx="privateDnsName",Yhe="publicDnsName",v4="platformDetails",Xhe="placementGroupInfo",Whe="publicIp",b4="privateIpAddressesSet",Jhe="privateIpAddressSet",Yc="privateIpAddress",eme="processorInfo",tme="publicKey",nme="publicKeyMaterial",sme="partitionNumber",rme="phcSupport",ome="previousState",ime="presignedUrl",ame="parentZoneId",cme="parentZoneName",S4="platform",lme="placement",_4="primary",E4="progress",ume="return",x4="rootDeviceName",w4="rootDeviceType",fme="restoreExpiryTime",dme="regionEndpoint",pme="resourceExclusions",hme="reservationId",R4="ramdiskId",mme="regionInfo",gme="requesterId",yme="rebootMigrationSupport",vme="rebootMigration",C4="regionName",bme="reservationSet",Sme="resourceType",_me="ramdisk",Eme="reason",A4="smithy.ts.sdk.synthetic.com.amazonaws.ec2",xme="supportedArchitectures",wme="subnetArn",Rme="supportedBootModes",Cme="sustainedClockSpeedInGhz",gx="sourceDestCheck",Ame="spreadDomain",Ime="supportedFeatures",Tme="subGeographySet",Ome="sizeInGB",Mme="sourceInstanceId",Dme="secondaryInterfaceId",Pme="sourceImageId",Mu="sizeInMiB",kme="sourceImageRegion",Nme="spotInstanceRequestId",Lme="secondaryInterfaceSet",ey="snapshotId",ty="subnetId",ny="statusMessage",I4="stateMessage",$me="secondaryNetworkId",zme="secondaryNetworkSupported",yx="sriovNetSupport",Bme="secondaryPrivateIpAddressCount",Ume="supportedRootDeviceTypes",T4="stateReason",jme="secondarySubnetId",Vme="snapshotSet",Hme="subnetSet",qme="supportedStrategies",O4="startTime",M4="sseType",Fme="storageTier",Gme="supportedUsageClasses",Kme="sourceVolumeId",Zme="supportedVirtualizationTypes",Qme="supportedVersions",Yme="size",qa="state",Fa="status",Xme="subnet",Wme="tenancy",Jme="tcpEstablishedTimeout",ege="totalFpgaMemoryInMiB",tge="totalGpuMemoryInMiB",nge="totalInferenceMemoryInMiB",sge="targetIops",rge="targetMultiAttachEnabled",oge="totalMediaMemoryInMiB",ige="totalNeuronDeviceMemoryInMiB",age="threadsPerCore",so="tagSet",cge="totalSizeInGB",lge="targetSize",D4="tpmSupport",uge="targetThroughput",fge="transferType",dge="targetVolumeType",P4="throughput",pge="timestamp",vx="type",hge="userData",k4="usageOperation",mge="usageOperationUpdateTime",gge="udpStreamTimeout",yge="udpTimeout",ep="value",vge="vCpuInfo",bge="validCores",Sge="vpcEncryptionControlId",tp="vpcId",_ge="volumeInitializationRate",Du="volumeId",Ege="vpcLattice",xge="volumeModification",N4="virtualName",wge="volumeOwnerId",Rge="virtualPrivateGateway",Cge="vpcPeering",Age="volumeSet",L4="volumeSize",Ige="vpcSet",$4="volumeType",Tge="validThreadsPerCore",z4="virtualizationType",Oge="version",Mge="vpc",Dge="workloadSet",y="xmlName",Pge="zoneId",kge="zoneName",Nge="zoneState",Lge="zoneType",O="com.amazonaws.ec2",B4=Gn.for(A4);var $ge=[-3,A4,"EC2ServiceException",0,[],[]];B4.registerError($ge,cE);const zge=[B4];var Bge=[0,O,_ne,8,0],Uge=[0,O,Fce,8,0],jge=[0,O,sue,8,0],Vge=[3,O,Ote,0,[vE,Ts,fr,Ud,It],[0,0,0,1,[2,{[S]:"DryRun",[y]:$t}]],3],Yf=[3,O,vte,0,[Au],[[2,{[S]:"Value",[y]:ep}]]],Xf=[3,O,Mte,0,[Au],[[0,{[S]:"Value",[y]:ep}]]],Hge=[3,O,za,0,[LL,zae,Vg,WE,XE,AE,RL,vfe,Dce,Mce,Xre,HN,gle,Ks],[[0,{[S]:"OptInStatus",[y]:g4}],[()=>Xve,{[S]:"MessageSet",[y]:bhe}],[0,{[S]:"RegionName",[y]:C4}],[0,{[S]:"ZoneName",[y]:kge}],[0,{[S]:"ZoneId",[y]:Pge}],[0,{[S]:"GroupName",[y]:cx}],[0,{[S]:"NetworkBorderGroup",[y]:f4}],[0,{[S]:"ZoneType",[y]:Lge}],[0,{[S]:"ParentZoneName",[y]:cme}],[0,{[S]:"ParentZoneId",[y]:ame}],[0,{[S]:"GroupLongName",[y]:spe}],[()=>Qve,{[S]:"GeographySet",[y]:H$}],[()=>Wve,{[S]:"SubGeographySet",[y]:Tme}],[0,{[S]:"ZoneState",[y]:Nge}]]],qge=[3,O,Pte,0,[ur],[[0,{[S]:"Name",[y]:Vr}]]],Fge=[3,O,Lte,0,[xL],[[0,{[S]:"Message",[y]:u4}]]],Gge=[3,O,zte,0,[ur],[[0,{[S]:"Name",[y]:Vr}]]],Kge=[3,O,qte,0,[Au],[[21,{[S]:"Value",[y]:ep}]]],U4=[3,O,uE,0,[xE,CL,yE,m$],[[()=>Vye,{[S]:"Ebs",[y]:ix}],[0,{[S]:"NoDevice",[y]:d4}],[0,{[S]:"DeviceName",[y]:sx}],[0,{[S]:"VirtualName",[y]:N4}]]],j4=[3,O,fE,0,[woe],[[0,{[S]:"InternetGatewayBlockMode",[y]:wpe}]]],Zge=[3,O,hE,0,[SN,mE],[0,()=>Yge]],Qge=[3,O,vne,0,[SN,mE],[[0,{[S]:"CapacityReservationPreference",[y]:Xfe}],[()=>Xge,{[S]:"CapacityReservationTarget",[y]:ede}]]],Yge=[3,O,mE,0,[pE,_N],[0,0]],Xge=[3,O,bne,0,[pE,_N],[[0,{[S]:"CapacityReservationId",[y]:P$}],[0,{[S]:"CapacityReservationResourceGroupArn",[y]:Wfe}]]],Wge=[3,O,kne,0,[r$,u$,f$],[1,1,1]],Jge=[3,O,Nne,0,[r$,u$,f$],[[1,{[S]:"TcpEstablishedTimeout",[y]:Jme}],[1,{[S]:"UdpStreamTimeout",[y]:gge}],[1,{[S]:"UdpTimeout",[y]:yge}]]],eye=[3,O,Sne,0,[Xle,Wle,Hc,mse,Sse,jd,qd,Oce,gi,bN,Vne,It],[0,0,0,0,[0,{[S]:"DestinationRegion",[y]:hde}],[2,{[S]:"Encrypted",[y]:Yd}],[0,{[S]:"KmsKeyId",[y]:Xg}],[()=>Bge,{[S]:"PresignedUrl",[y]:ime}],[()=>bi,{[y]:To}],1,0,[2,{[S]:"DryRun",[y]:$t}]],2],tye=[3,O,Ene,0,[jr,Va],[[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"SnapshotId",[y]:ey}]]],nye=[3,O,dE,0,[vN,o$,aN,NL],[[1,{[S]:"CoreCount",[y]:jfe}],[1,{[S]:"ThreadsPerCore",[y]:age}],[0,{[S]:"AmdSevSnp",[y]:Ife}],[0,{[S]:"NestedVirtualization",[y]:$he}]]],sye=[3,O,yne,0,[vN,o$,aN,NL],[1,1,0,0]],rye=[3,O,lne,0,[Ts,ur,gi,Vle,It,Hc,Yae,zd],[[0,{[S]:"InstanceId",[y]:Iu}],[0,{[S]:"Name",[y]:Vr}],[()=>bi,{[y]:To}],0,[2,{[S]:"DryRun",[y]:$t}],[0,{[S]:"Description",[y]:Qd}],[2,{[S]:"NoReboot",[y]:khe}],[()=>W4,{[S]:"BlockDeviceMapping",[y]:Zg}]],2],oye=[3,O,une,0,[wu],[[0,{[S]:"ImageId",[y]:fx}]]],iye=[3,O,hne,0,[Io,pL,gi,Uie,It],[0,0,[()=>bi,{[y]:To}],0,[2,{[S]:"DryRun",[y]:$t}]],1],aye=[3,O,xne,0,[fr,Hc,ja,gi,hae,It],[0,0,0,[()=>bi,{[y]:To}],0,[2,{[S]:"DryRun",[y]:$t}]],1],cye=[3,O,wne,0,[yi,gi,za,xu,Bd,zg,ja,sL,eL,oL,JN,rL,It],[0,[()=>bi,{[y]:To}],0,0,0,0,0,2,0,1,0,1,[2,{[S]:"DryRun",[y]:$t}]],1],lye=[3,O,Rne,0,[s$],[[()=>Z4,{[S]:"Subnet",[y]:Xme}]]],uye=[3,O,$ne,0,[za,xu,jd,Ug,qd,ja,QE,Va,Gg,gi,zE,qg,gE,YE,Ru,It],[0,0,[2,{[S]:"Encrypted",[y]:Yd}],1,0,0,1,0,0,[()=>bi,{[y]:To}],2,1,[0,4],1,()=>H4,[2,{[S]:"DryRun",[y]:$t}]]],fye=[3,O,zne,0,[Bd,aL,zg,eL,oL,JN,rL,goe,p$,gi,It,fL,Cte],[0,0,0,0,1,0,1,0,()=>Fve,[()=>bi,{[y]:To}],[2,{[S]:"DryRun",[y]:$t}],[0,{[S]:"InstanceTenancy",[y]:e4}],[2,{[S]:"AmazonProvidedIpv6CidrBlock",[y]:Rfe}]]],dye=[3,O,Bne,0,[b$],[[()=>Y4,{[S]:"Vpc",[y]:Mge}]]],pye=[3,O,Cne,0,[rne],[0],1],hye=[3,O,lse,0,[Io,qc,It],[0,0,[2,{[S]:"DryRun",[y]:$t}]]],mye=[3,O,use,0,[kce,qc],[[2,{[S]:"Return",[y]:ume}],[0,{[S]:"KeyPairId",[y]:Wg}]]],gye=[3,O,Ese,0,[Va,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],yye=[3,O,xse,0,[Ha,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],vye=[3,O,Nse,0,[fr,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],bye=[3,O,Lse,0,[yi,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],Sye=[3,O,Hne,0,[yfe,mfe,yte,It,Ao],[[()=>pSe,{[y]:WE}],[()=>dSe,{[y]:XE}],2,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],_ye=[3,O,qne,0,[Ute],[[()=>Yve,{[S]:"AvailabilityZoneInfo",[y]:Ofe}]]],Eye=[3,O,Wne,0,[Dre,Loe,uce,yoe,_oe,Gc,Gs,It,Ao],[[()=>lbe,{[y]:AN}],[()=>pbe,{[y]:wu}],[()=>J4,{[y]:UE}],2,2,1,0,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],xye=[3,O,Jne,0,[Gs,Nie],[[0,{[S]:"NextToken",[y]:vi}],[()=>hbe,{[S]:"ImagesSet",[y]:Vpe}]]],wye=[3,O,ese,0,[Vd,It,Ao,Gs,Gc],[[()=>np,{[y]:Ts}],[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}],[0,{[S]:"NextToken",[y]:vi}],[1,{[S]:"MaxResults",[y]:c4}]]],Rye=[3,O,tse,0,[Gs,ile],[[0,{[S]:"NextToken",[y]:vi}],[()=>Fbe,{[S]:"ReservationSet",[y]:bme}]]],Cye=[3,O,nse,0,[It,dL,Ao,Gc,Gs],[2,[64,{[y]:Hd}],[()=>Oo,{[y]:Ur}],1,0]],Aye=[3,O,sse,0,[dL,Gs],[[()=>Ibe,{[S]:"InstanceTypeSet",[y]:Kpe}],[0,{[S]:"NextToken",[y]:vi}]]],Iye=[3,O,fse,0,[Hie,Gie,die,It,Ao],[[()=>Mbe,{[y]:Io}],[()=>Dbe,{[y]:qc}],2,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Tye=[3,O,dse,0,[qie],[[()=>Pbe,{[S]:"KeySet",[y]:Wpe}]]],Oye=[3,O,vse,0,[tle,Ite,It,Ao],[[()=>qbe,{[y]:Vg}],2,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Mye=[3,O,bse,0,[rle],[[()=>Hbe,{[S]:"RegionInfo",[y]:mme}]]],Dye=[3,O,wse,0,[Gc,Gs,tce,Nce,$le,It,Ao],[1,0,[()=>J4,{[y]:UE}],[64,{[y]:Lce}],[()=>Zbe,{[y]:Va}],[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Pye=[3,O,Rse,0,[Gs,aue],[[0,{[S]:"NextToken",[y]:vi}],[()=>Qbe,{[S]:"SnapshotSet",[y]:Vme}]]],kye=[3,O,Cse,0,[Ao,Sle,Gs,Gc,It],[[()=>Oo,{[y]:Ur}],[()=>Ybe,{[y]:Ha}],0,1,[2,{[S]:"DryRun",[y]:$t}]]],Nye=[3,O,Ase,0,[Gs,lue],[[0,{[S]:"NextToken",[y]:vi}],[()=>Wbe,{[S]:"SubnetSet",[y]:Hme}]]],Lye=[3,O,$se,0,[Kue,It,Ao,Gs,Gc],[[()=>oSe,{[y]:fr}],[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}],[0,{[S]:"NextToken",[y]:vi}],[1,{[S]:"MaxResults",[y]:c4}]]],$ye=[3,O,zse,0,[Gs,lfe],[[0,{[S]:"NextToken",[y]:vi}],[()=>iSe,{[S]:"VolumeSet",[y]:Age}]]],zye=[3,O,Bse,0,[Ao,Zue,Gs,Gc,It],[[()=>Oo,{[y]:Ur}],[()=>cSe,{[y]:yi}],0,1,[2,{[S]:"DryRun",[y]:$t}]]],Bye=[3,O,Use,0,[Gs,ffe],[[0,{[S]:"NextToken",[y]:vi}],[()=>uSe,{[S]:"VpcSet",[y]:Ige}]]],Uye=[3,O,jse,0,[fr,vE,RE,Ts,It],[0,0,2,0,[2,{[S]:"DryRun",[y]:$t}]],1],jye=[3,O,ase,0,[xle,Ba,Fg],[[1,{[S]:"SizeInGB",[y]:Ome}],[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Type",[y]:vx}]]],Vye=[3,O,Zse,0,[Ua,Ug,Va,g$,Gg,qd,qg,ja,za,jd,YE,xu,Ud],[[2,{[S]:"DeleteOnTermination",[y]:Qc}],[1,{[S]:"Iops",[y]:n4}],[0,{[S]:"SnapshotId",[y]:ey}],[1,{[S]:"VolumeSize",[y]:L4}],[0,{[S]:"VolumeType",[y]:$4}],[0,{[S]:"KmsKeyId",[y]:Xg}],[1,{[S]:"Throughput",[y]:P4}],[0,{[S]:"OutpostArn",[y]:Jd}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[2,{[S]:"Encrypted",[y]:Yd}],1,0,1]],Hye=[3,O,Xse,0,[Ud,pN,gN,hN,yL,EL,vL],[[1,{[S]:"EbsCardIndex",[y]:rx}],[1,{[S]:"BaselineBandwidthInMbps",[y]:I$}],[1,{[S]:"BaselineThroughputInMBps",[y]:D$}],[1,{[S]:"BaselineIops",[y]:T$}],[1,{[S]:"MaximumBandwidthInMbps",[y]:o4}],[1,{[S]:"MaximumThroughputInMBps",[y]:l4}],[1,{[S]:"MaximumIops",[y]:i4}]]],qye=[3,O,MN,0,[Rre,BN,PN,PL,_ae,wte,Eae,Wse],[[0,{[S]:"EbsOptimizedSupport",[y]:Ude}],[0,{[S]:"EncryptionSupport",[y]:U$}],[()=>Kye,{[S]:"EbsOptimizedInfo",[y]:zde}],[0,{[S]:"NvmeSupport",[y]:m4}],[1,{[S]:"MaximumEbsAttachments",[y]:uhe}],[0,{[S]:"AttachmentLimitType",[y]:xfe}],[1,{[S]:"MaximumEbsCards",[y]:fhe}],[()=>rbe,{[S]:"EbsCardSet",[y]:Sde}]]],Fye=[3,O,vre,0,[kg,Ua,Kd,fr,oN,Jue,Ru,Ud],[[4,{[S]:"AttachTime",[y]:Kg}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"AssociatedResource",[y]:E$}],[0,{[S]:"VolumeOwnerId",[y]:wge}],[()=>sy,{[S]:"Operator",[y]:Jg}],[1,{[S]:"EbsCardIndex",[y]:rx}]]],Gye=[3,O,bre,0,[fr,Ua],[[0,{[S]:"VolumeId",[y]:Du}],[2,{[S]:"DeleteOnTermination",[y]:Qc}]]],Kye=[3,O,PN,0,[pN,gN,hN,yL,EL,vL],[[1,{[S]:"BaselineBandwidthInMbps",[y]:I$}],[1,{[S]:"BaselineThroughputInMBps",[y]:D$}],[1,{[S]:"BaselineIops",[y]:T$}],[1,{[S]:"MaximumBandwidthInMbps",[y]:o4}],[1,{[S]:"MaximumThroughputInMBps",[y]:l4}],[1,{[S]:"MaximumIops",[y]:i4}]]],Zye=[3,O,DN,0,[xae],[[1,{[S]:"MaximumEfaInterfaces",[y]:dhe}]]],Qye=[3,O,sre,0,[lre,rre,ire,are],[[0,{[S]:"ElasticGpuId",[y]:Ide}],[0,{[S]:"ElasticGpuAssociationId",[y]:wde}],[0,{[S]:"ElasticGpuAssociationState",[y]:Rde}],[0,{[S]:"ElasticGpuAssociationTime",[y]:Ade}]]],Yye=[3,O,IN,0,[Fg],[0],1],Xye=[3,O,TN,0,[Fg,Ba],[0,1],1],Wye=[3,O,fre,0,[gre,dre,hre,mre],[[0,{[S]:"ElasticInferenceAcceleratorArn",[y]:Tde}],[0,{[S]:"ElasticInferenceAcceleratorAssociationId",[y]:Ode}],[0,{[S]:"ElasticInferenceAcceleratorAssociationState",[y]:Mde}],[4,{[S]:"ElasticInferenceAcceleratorAssociationTime",[y]:Pde}]]],Jye=[3,O,Are,0,[NN,zN],[2,()=>e0e]],e0e=[3,O,Tre,0,[$N],[2]],t0e=[3,O,SE,0,[wE],[[2,{[S]:"Enabled",[y]:j$}]]],n0e=[3,O,wre,0,[wE],[2]],s0e=[3,O,Ur,0,[ur,cfe],[0,[()=>nSe,{[y]:Au}]]],r0e=[3,O,kre,0,[ur,Fd,Ba,Fc],[[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[1,{[S]:"Count",[y]:Zc}],[()=>o0e,{[S]:"MemoryInfo",[y]:Tu}]]],o0e=[3,O,Lre,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],i0e=[3,O,UN,0,[jre,uue],[[()=>ube,{[S]:"Fpgas",[y]:tpe}],[1,{[S]:"TotalFpgaMemoryInMiB",[y]:ege}]]],a0e=[3,O,Hre,0,[Ts,fae,It],[0,2,[2,{[S]:"DryRun",[y]:$t}]],1],c0e=[3,O,qre,0,[Ts,Oue,lce],[[0,{[S]:"InstanceId",[y]:Iu}],[4,{[S]:"Timestamp",[y]:pge}],[0,{[S]:"Output",[y]:qhe}]]],l0e=[3,O,Fre,0,[ur,Fd,Ba,eae,Wre,pfe,Fc],[[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[1,{[S]:"Count",[y]:Zc}],[1,{[S]:"LogicalGpuCount",[y]:nhe}],[1,{[S]:"GpuPartitionSize",[y]:rpe}],[()=>fSe,{[S]:"WorkloadSet",[y]:Dge}],[()=>u0e,{[S]:"MemoryInfo",[y]:Tu}]]],u0e=[3,O,Kre,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],f0e=[3,O,VN,0,[Jre,fue],[[()=>fbe,{[S]:"Gpus",[y]:ope}],[1,{[S]:"TotalGpuMemoryInMiB",[y]:tge}]]],d0e=[3,O,Yre,0,[CE,AE],[[0,{[S]:"GroupId",[y]:ax}],[0,{[S]:"GroupName",[y]:cx}]]],p0e=[3,O,IE,0,[wN],[[2,{[S]:"Configured",[y]:rde}]]],h0e=[3,O,toe,0,[wN],[2]],m0e=[3,O,PE,0,[lN,ooe],[[0,{[S]:"Arn",[y]:w$}],[0,{[S]:"Id",[y]:hpe}]]],g0e=[3,O,Moe,0,[lN,ur],[[0,{[S]:"Arn",[y]:w$}],[0,{[S]:"Name",[y]:Vr}]]],y0e=[3,O,Lie,0,[VL,l$,zd,Hc,Lg,OE,rie,ur,ZL,QL,KE,ZE,jr,y$,mN,i$,Pse,Tie,Cle,yse,nae,foe,wle,Ile,jN,wu,Uoe,Ks,Kc,one,Pce,zL,uN,kie,$E,HE,FL],[[0,{[S]:"PlatformDetails",[y]:v4}],[0,{[S]:"UsageOperation",[y]:k4}],[()=>ebe,{[S]:"BlockDeviceMapping",[y]:Zg}],[0,{[S]:"Description",[y]:Qd}],[2,{[S]:"EnaSupport",[y]:Qg}],[0,{[S]:"Hypervisor",[y]:ux}],[0,{[S]:"ImageOwnerAlias",[y]:Tpe}],[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"RootDeviceName",[y]:x4}],[0,{[S]:"RootDeviceType",[y]:w4}],[0,{[S]:"SriovNetSupport",[y]:yx}],[()=>K4,{[S]:"StateReason",[y]:T4}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"VirtualizationType",[y]:z4}],[0,{[S]:"BootMode",[y]:O$}],[0,{[S]:"TpmSupport",[y]:D4}],[0,{[S]:"DeprecationTime",[y]:gde}],[0,{[S]:"ImdsSupport",[y]:qpe}],[0,{[S]:"SourceInstanceId",[y]:Mme}],[0,{[S]:"DeregistrationProtection",[y]:pde}],[0,{[S]:"LastLaunchedTime",[y]:she}],[2,{[S]:"ImageAllowed",[y]:Spe}],[0,{[S]:"SourceImageId",[y]:Pme}],[0,{[S]:"SourceImageRegion",[y]:kme}],[2,{[S]:"FreeTierEligible",[y]:V$}],[0,{[S]:"ImageId",[y]:fx}],[0,{[S]:"ImageLocation",[y]:Rpe}],[0,{[S]:"ImageState",[y]:Hpe}],[0,{[S]:"ImageOwnerId",[y]:Ope}],[0,{[S]:"CreationDate",[y]:Hfe}],[2,{[S]:"IsPublic",[y]:Bpe}],[()=>ez,{[S]:"ProductCodes",[y]:y4}],[0,{[S]:"Architecture",[y]:R$}],[0,{[S]:"ImageType",[y]:Qpe}],[0,{[S]:"KernelId",[y]:s4}],[0,{[S]:"RamdiskId",[y]:R4}],[0,{[S]:"Platform",[y]:S4}]]],v0e=[3,O,zoe,0,[Io,Cce,gi,It],[[0,{[S]:"KeyName",[y]:Xd}],[21,{[S]:"PublicKeyMaterial",[y]:nme}],[()=>bi,{[y]:To}],[2,{[S]:"DryRun",[y]:$t}]],2],b0e=[3,O,Boe,0,[LE,Io,qc,jr],[[0,{[S]:"KeyFingerprint",[y]:px}],[0,{[S]:"KeyName",[y]:Xd}],[0,{[S]:"KeyPairId",[y]:Wg}],[()=>Hr,{[S]:"TagSet",[y]:so}]]],S0e=[3,O,YN,0,[cN,pue],[[()=>mbe,{[S]:"Accelerators",[y]:x$}],[1,{[S]:"TotalInferenceMemoryInMiB",[y]:nge}]]],_0e=[3,O,voe,0,[Ba,ur,Fd,Fc],[[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[()=>E0e,{[S]:"MemoryInfo",[y]:Tu}]]],E0e=[3,O,Soe,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],x0e=[3,O,$ie,0,[uN,zd,gE,bE,Lg,OE,PE,Voe,cre,yre,IL,ja,ZL,QL,YL,Hg,Ale,KE,ZE,jr,y$,dE,tne,pE,hE,IE,pae,SL,SE,mN,VL,l$,Due,BL,DE,i$,_L,cne,ML,Ru,WL,Ts,wu,Ks,jE,jL,eue,Io,xte,zL,Hd,uae,VE,$E,HE,FL,BE,Ha,yi,mi,xce],[[0,{[S]:"Architecture",[y]:R$}],[()=>gbe,{[S]:"BlockDeviceMapping",[y]:Zg}],[0,{[S]:"ClientToken",[y]:k$}],[2,{[S]:"EbsOptimized",[y]:ox}],[2,{[S]:"EnaSupport",[y]:Qg}],[0,{[S]:"Hypervisor",[y]:ux}],[()=>m0e,{[S]:"IamInstanceProfile",[y]:X$}],[0,{[S]:"InstanceLifecycle",[y]:Cpe}],[()=>obe,{[S]:"ElasticGpuAssociationSet",[y]:Cde}],[()=>abe,{[S]:"ElasticInferenceAcceleratorAssociationSet",[y]:Dde}],[()=>_be,{[S]:"NetworkInterfaceSet",[y]:The}],[0,{[S]:"OutpostArn",[y]:Jd}],[0,{[S]:"RootDeviceName",[y]:x4}],[0,{[S]:"RootDeviceType",[y]:w4}],[()=>Sx,{[S]:"GroupSet",[y]:lx}],[2,{[S]:"SourceDestCheck",[y]:gx}],[0,{[S]:"SpotInstanceRequestId",[y]:Nme}],[0,{[S]:"SriovNetSupport",[y]:yx}],[()=>K4,{[S]:"StateReason",[y]:T4}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"VirtualizationType",[y]:z4}],[()=>nye,{[S]:"CpuOptions",[y]:Zfe}],[0,{[S]:"CapacityBlockId",[y]:Bfe}],[0,{[S]:"CapacityReservationId",[y]:P$}],[()=>Qge,{[S]:"CapacityReservationSpecification",[y]:Jfe}],[()=>p0e,{[S]:"HibernationOptions",[y]:cpe}],[()=>kbe,{[S]:"LicenseSet",[y]:rhe}],[()=>N0e,{[S]:"MetadataOptions",[y]:ghe}],[()=>t0e,{[S]:"EnclaveOptions",[y]:jde}],[0,{[S]:"BootMode",[y]:O$}],[0,{[S]:"PlatformDetails",[y]:v4}],[0,{[S]:"UsageOperation",[y]:k4}],[4,{[S]:"UsageOperationUpdateTime",[y]:mge}],[()=>_ve,{[S]:"PrivateDnsNameOptions",[y]:Zhe}],[0,{[S]:"Ipv6Address",[y]:K$}],[0,{[S]:"TpmSupport",[y]:D4}],[()=>M0e,{[S]:"MaintenanceOptions",[y]:yhe}],[0,{[S]:"CurrentInstanceBootMode",[y]:Gfe}],[()=>B0e,{[S]:"NetworkPerformanceOptions",[y]:Phe}],[()=>sy,{[S]:"Operator",[y]:Jg}],[()=>wbe,{[S]:"SecondaryInterfaceSet",[y]:Lme}],[0,{[S]:"InstanceId",[y]:Iu}],[0,{[S]:"ImageId",[y]:fx}],[()=>xS,{[S]:"InstanceState",[y]:Fpe}],[0,{[S]:"PrivateDnsName",[y]:mx}],[0,{[S]:"DnsName",[y]:fde}],[0,{[S]:"Reason",[y]:Eme}],[0,{[S]:"KeyName",[y]:Xd}],[1,{[S]:"AmiLaunchIndex",[y]:Efe}],[()=>ez,{[S]:"ProductCodes",[y]:y4}],[0,{[S]:"InstanceType",[y]:dx}],[4,{[S]:"LaunchTime",[y]:ohe}],[()=>q4,{[S]:"Placement",[y]:lme}],[0,{[S]:"KernelId",[y]:s4}],[0,{[S]:"RamdiskId",[y]:R4}],[0,{[S]:"Platform",[y]:S4}],[()=>uve,{[S]:"Monitoring",[y]:xhe}],[0,{[S]:"SubnetId",[y]:ty}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[0,{[S]:"IpAddress",[y]:_pe}]]],w0e=[3,O,ioe,0,[NN,zN],[[2,{[S]:"EnaSrdEnabled",[y]:Hde}],[()=>R0e,{[S]:"EnaSrdUdpSpecification",[y]:Kde}]]],R0e=[3,O,aoe,0,[$N],[[2,{[S]:"EnaSrdUdpEnabled",[y]:Gde}]]],C0e=[3,O,doe,0,[yE,xE],[[0,{[S]:"DeviceName",[y]:sx}],[()=>Fye,{[S]:"Ebs",[y]:ix}]]],A0e=[3,O,hoe,0,[yE,xE,m$,CL],[[0,{[S]:"DeviceName",[y]:sx}],[()=>Gye,{[S]:"Ebs",[y]:ix}],[0,{[S]:"VirtualName",[y]:N4}],[0,{[S]:"NoDevice",[y]:d4}]]],I0e=[3,O,Doe,0,[NE],[[0,{[S]:"Ipv4Prefix",[y]:Lpe}]]],T0e=[3,O,Coe,0,[DE,fie],[[0,{[S]:"Ipv6Address",[y]:K$}],[2,{[S]:"IsPrimaryIpv6",[y]:Ppe}]]],O0e=[3,O,Poe,0,[kE],[[0,{[S]:"Ipv6Prefix",[y]:zpe}]]],M0e=[3,O,qoe,0,[iN,Jce],[[0,{[S]:"AutoRecovery",[y]:Afe}],[0,{[S]:"RebootMigration",[y]:vme}]]],D0e=[3,O,Foe,0,[iN],[0]],P0e=[3,O,Goe,0,[Pae,Zle],[0,()=>Ove]],k0e=[3,O,Koe,0,[KN,GN,qN,FN,nL],[0,1,0,0,0]],N0e=[3,O,Zoe,0,[Ks,KN,GN,qN,FN,nL],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"HttpTokens",[y]:ppe}],[1,{[S]:"HttpPutResponseHopLimit",[y]:upe}],[0,{[S]:"HttpEndpoint",[y]:ipe}],[0,{[S]:"HttpProtocolIpv6",[y]:lpe}],[0,{[S]:"InstanceMetadataTags",[y]:Ape}]]],L0e=[3,O,Yoe,0,[fN,dN,Hc,$g,ME,gL,AL,Kc,jE,mi,jg,Hg,Kd,Ha,yi,Bg,cL,iL,Dne,Ru],[[()=>V4,{[S]:"Association",[y]:C$}],[()=>$0e,{[S]:"Attachment",[y]:A$}],[0,{[S]:"Description",[y]:Qd}],[()=>Sx,{[S]:"GroupSet",[y]:lx}],[()=>_x,{[S]:"Ipv6AddressesSet",[y]:G$}],[0,{[S]:"MacAddress",[y]:r4}],[0,{[S]:"NetworkInterfaceId",[y]:p4}],[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"PrivateDnsName",[y]:mx}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[()=>xbe,{[S]:"PrivateIpAddressesSet",[y]:b4}],[2,{[S]:"SourceDestCheck",[y]:gx}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"SubnetId",[y]:ty}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"InterfaceType",[y]:t4}],[()=>vbe,{[S]:"Ipv4PrefixSet",[y]:kpe}],[()=>bbe,{[S]:"Ipv6PrefixSet",[y]:Npe}],[()=>Jge,{[S]:"ConnectionTrackingConfiguration",[y]:nde}],[()=>sy,{[S]:"Operator",[y]:Jg}]]],V4=[3,O,Xoe,0,[ane,mne,oie,jL,bce],[[0,{[S]:"CarrierIp",[y]:Ffe}],[0,{[S]:"CustomerOwnedIp",[y]:Qfe}],[0,{[S]:"IpOwnerId",[y]:Mpe}],[0,{[S]:"PublicDnsName",[y]:Yhe}],[0,{[S]:"PublicIp",[y]:Whe}]]],$0e=[3,O,Woe,0,[kg,rN,Ua,Ng,Kd,Gd,LN,kN],[[4,{[S]:"AttachTime",[y]:Kg}],[0,{[S]:"AttachmentId",[y]:_$}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[1,{[S]:"DeviceIndex",[y]:nx}],[0,{[S]:"Status",[y]:Fa}],[1,{[S]:"NetworkCardIndex",[y]:hx}],[()=>w0e,{[S]:"EnaSrdSpecification",[y]:qde}],[1,{[S]:"EnaQueueCount",[y]:Vde}]]],z0e=[3,O,eie,0,[Rte,Ua,Hc,Ng,$g,QN,ME,AL,mi,jg,Qle,Ha,bte,Bg,Gd,cL,cie,iL,aie,wce,LN,Pne,kN],[[2,{[S]:"AssociatePublicIpAddress",[y]:wfe}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[0,{[S]:"Description",[y]:Qd}],[1,{[S]:"DeviceIndex",[y]:nx}],[()=>tz,{[y]:qE}],[1,{[S]:"Ipv6AddressCount",[y]:mpe}],[()=>_x,{[S]:"Ipv6Addresses",[y]:G$}],[0,{[S]:"NetworkInterfaceId",[y]:p4}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[()=>jbe,{[S]:"PrivateIpAddresses",[y]:b4}],[1,{[S]:"SecondaryPrivateIpAddressCount",[y]:Bme}],[0,{[S]:"SubnetId",[y]:ty}],2,0,1,[()=>Tbe,{[y]:NE}],1,[()=>Obe,{[y]:kE}],1,2,()=>Jye,()=>Wge,1]],B0e=[3,O,nie,0,[yN],[[0,{[S]:"BandwidthWeighting",[y]:Lfe}]]],U0e=[3,O,sie,0,[yN],[0]],j0e=[3,O,lie,0,[fN,GL,jE,mi],[[()=>V4,{[S]:"Association",[y]:C$}],[2,{[S]:"Primary",[y]:_4}],[0,{[S]:"PrivateDnsName",[y]:mx}],[0,{[S]:"PrivateIpAddress",[y]:Yc}]]],V0e=[3,O,Aie,0,[dN,gL,Rle,Kc,jg,Hg,Kd,e$,Gle,Bg],[[()=>H0e,{[S]:"Attachment",[y]:A$}],[0,{[S]:"MacAddress",[y]:r4}],[0,{[S]:"SecondaryInterfaceId",[y]:Dme}],[0,{[S]:"OwnerId",[y]:Ou}],[()=>Rbe,{[S]:"PrivateIpAddressSet",[y]:Jhe}],[2,{[S]:"SourceDestCheck",[y]:gx}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"SecondarySubnetId",[y]:jme}],[0,{[S]:"SecondaryNetworkId",[y]:$me}],[0,{[S]:"InterfaceType",[y]:t4}]]],H0e=[3,O,bie,0,[kg,rN,Ua,Ng,Kd,Gd],[[4,{[S]:"AttachTime",[y]:Kg}],[0,{[S]:"AttachmentId",[y]:_$}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[1,{[S]:"DeviceIndex",[y]:nx}],[0,{[S]:"Status",[y]:Fa}],[1,{[S]:"NetworkCardIndex",[y]:hx}]]],q0e=[3,O,_ie,0,[mi],[[0,{[S]:"PrivateIpAddress",[y]:Yc}]]],F0e=[3,O,wie,0,[mi],[0],1],G0e=[3,O,Cie,0,[Ua,Ng,jg,Sce,e$,Bg,Gd],[2,1,[()=>Cbe,{[y]:mi}],1,0,0,1]],xS=[3,O,Oie,0,[xN,ur],[[1,{[S]:"Code",[y]:L$}],[0,{[S]:"Name",[y]:Vr}]]],K0e=[3,O,yie,0,[Ts,Mne,Tce],[[0,{[S]:"InstanceId",[y]:Iu}],[()=>xS,{[S]:"CurrentState",[y]:tde}],[()=>xS,{[S]:"PreviousState",[y]:ome}]]],Z0e=[3,O,lL,0,[xue,Kse,PL,BN],[[1,{[S]:"TotalSizeInGB",[y]:cge}],[()=>sbe,{[S]:"Disks",[y]:bde}],[0,{[S]:"NvmeSupport",[y]:m4}],[0,{[S]:"EncryptionSupport",[y]:U$}]]],Q0e=[3,O,Pie,0,[Hd,ine,jN,nue,Yle,oue,Yte,OE,qL,d$,Fc,Iie,lL,MN,TL,VN,UN,HL,YN,soe,Xte,Yne,Ate,fle,Kae,Xae,kL,mL,OL,Ice,Wce],[[0,{[S]:"InstanceType",[y]:dx}],[2,{[S]:"CurrentGeneration",[y]:qfe}],[2,{[S]:"FreeTierEligible",[y]:V$}],[()=>tSe,{[S]:"SupportedUsageClasses",[y]:Gme}],[()=>Gbe,{[S]:"SupportedRootDeviceTypes",[y]:Ume}],[()=>sSe,{[S]:"SupportedVirtualizationTypes",[y]:Zme}],[2,{[S]:"BareMetal",[y]:kfe}],[0,{[S]:"Hypervisor",[y]:ux}],[()=>xve,{[S]:"ProcessorInfo",[y]:eme}],[()=>jve,{[S]:"VCpuInfo",[y]:vge}],[()=>ive,{[S]:"MemoryInfo",[y]:Tu}],[2,{[S]:"InstanceStorageSupported",[y]:jpe}],[()=>Z0e,{[S]:"InstanceStorageInfo",[y]:Upe}],[()=>qye,{[S]:"EbsInfo",[y]:Nde}],[()=>dve,{[S]:"NetworkInfo",[y]:Mhe}],[()=>f0e,{[S]:"GpuInfo",[y]:npe}],[()=>i0e,{[S]:"FpgaInfo",[y]:Xde}],[()=>vve,{[S]:"PlacementGroupInfo",[y]:Xhe}],[()=>S0e,{[S]:"InferenceAcceleratorInfo",[y]:gpe}],[2,{[S]:"HibernationSupported",[y]:dpe}],[2,{[S]:"BurstablePerformanceSupported",[y]:Nfe}],[2,{[S]:"DedicatedHostsSupported",[y]:lde}],[2,{[S]:"AutoRecoverySupported",[y]:Cfe}],[()=>tbe,{[S]:"SupportedBootModes",[y]:Rme}],[0,{[S]:"NitroEnclavesSupport",[y]:Ahe}],[0,{[S]:"NitroTpmSupport",[y]:Lhe}],[()=>yve,{[S]:"NitroTpmInfo",[y]:Nhe}],[()=>sve,{[S]:"MediaAcceleratorInfo",[y]:che}],[()=>gve,{[S]:"NeuronInfo",[y]:Dhe}],[0,{[S]:"PhcSupport",[y]:rme}],[0,{[S]:"RebootMigrationSupport",[y]:yme}]]],Y0e=[3,O,mie,0,[NE],[0]],X0e=[3,O,gie,0,[kE],[0]],W0e=[3,O,Qie,0,[qc,jr,Io,LE,jie],[[0,{[S]:"KeyPairId",[y]:Wg}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"KeyName",[y]:Xd}],[0,{[S]:"KeyFingerprint",[y]:px}],[()=>jge,{[S]:"KeyMaterial",[y]:Xpe}]]],J0e=[3,O,Kie,0,[qc,pL,jr,Rce,EN,Io,LE],[[0,{[S]:"KeyPairId",[y]:Wg}],[0,{[S]:"KeyType",[y]:Jpe}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"PublicKey",[y]:tme}],[4,{[S]:"CreateTime",[y]:N$}],[0,{[S]:"KeyName",[y]:Xd}],[0,{[S]:"KeyFingerprint",[y]:px}]]],eve=[3,O,lae,0,[aae,cae,v$],[0,0,0]],tve=[3,O,Wie,0,[hL],[[0,{[S]:"LicenseConfigurationArn",[y]:the}]]],nve=[3,O,Xie,0,[hL],[0]],sve=[3,O,mL,0,[cN,Sue],[[()=>Lbe,{[S]:"Accelerators",[y]:x$}],[1,{[S]:"TotalMediaMemoryInMiB",[y]:oge}]]],rve=[3,O,vae,0,[Ba,ur,Fd,Fc],[[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[()=>ove,{[S]:"MemoryInfo",[y]:Tu}]]],ove=[3,O,Sae,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],ive=[3,O,Fc,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],ave=[3,O,Cae,0,[Ts,Hg,RN,It,Vte,Au,zd,CN,Hd,Yie,sle,c$,tL,$g,bE,KE,Lg],[[0,{[S]:"InstanceId",[y]:Iu}],[()=>Yf,0],[()=>Yf,0],[2,{[S]:"DryRun",[y]:$t}],[0,{[S]:"Attribute",[y]:Dfe}],[0,{[S]:"Value",[y]:ep}],[()=>ybe,{[S]:"BlockDeviceMapping",[y]:Zg}],[()=>Yf,{[S]:"DisableApiTermination",[y]:$$}],[()=>Xf,{[S]:"InstanceType",[y]:dx}],[()=>Xf,{[S]:"Kernel",[y]:ehe}],[()=>Xf,{[S]:"Ramdisk",[y]:_me}],[()=>Kge,{[S]:"UserData",[y]:hge}],[()=>Xf,{[S]:"InstanceInitiatedShutdownBehavior",[y]:W$}],[()=>dbe,{[y]:CE}],[()=>Yf,{[S]:"EbsOptimized",[y]:ox}],[()=>Xf,{[S]:"SriovNetSupport",[y]:yx}],[()=>Yf,{[S]:"EnaSupport",[y]:Qg}]],1],cve=[3,O,kae,0,[fr,It,QE,Gg,Ug,qg,zE],[0,2,1,0,1,1,2],1],lve=[3,O,Nae,0,[h$],[[()=>Vve,{[S]:"VolumeModification",[y]:xge}]]],uve=[3,O,BE,0,[Ks],[[0,{[S]:"State",[y]:qa}]]],fve=[3,O,jae,0,[Gd,DL,bL,Ste,Fte,fce,Zne,wae,Rae],[[1,{[S]:"NetworkCardIndex",[y]:hx}],[0,{[S]:"NetworkPerformance",[y]:h4}],[1,{[S]:"MaximumNetworkInterfaces",[y]:a4}],[1,{[S]:"AdditionalFlexibleNetworkInterfaces",[y]:bfe}],[1,{[S]:"BaselineBandwidthInGbps",[y]:Pfe}],[1,{[S]:"PeakBandwidthInGbps",[y]:Ghe}],[1,{[S]:"DefaultEnaQueueCountPerInterface",[y]:ade}],[1,{[S]:"MaximumEnaQueueCount",[y]:phe}],[1,{[S]:"MaximumEnaQueueCountPerInterface",[y]:hhe}]]],dve=[3,O,TL,0,[DL,bL,Iae,hse,Bae,coe,loe,Mie,Lg,Ore,DN,Sre,Ire,Jte,$re,Kle,Mae,uoe],[[0,{[S]:"NetworkPerformance",[y]:h4}],[1,{[S]:"MaximumNetworkInterfaces",[y]:a4}],[1,{[S]:"MaximumNetworkCards",[y]:mhe}],[1,{[S]:"DefaultNetworkCardIndex",[y]:ude}],[()=>$be,{[S]:"NetworkCards",[y]:Rhe}],[1,{[S]:"Ipv4AddressesPerInterface",[y]:ype}],[1,{[S]:"Ipv6AddressesPerInterface",[y]:vpe}],[2,{[S]:"Ipv6Supported",[y]:Gpe}],[0,{[S]:"EnaSupport",[y]:Qg}],[2,{[S]:"EfaSupported",[y]:Zde}],[()=>Zye,{[S]:"EfaInfo",[y]:Lde}],[2,{[S]:"EncryptionInTransitSupported",[y]:kde}],[2,{[S]:"EnaSrdSupported",[y]:Fde}],[()=>Jve,{[S]:"BandwidthWeightings",[y]:$fe}],[0,{[S]:"FlexibleEnaQueuesSupport",[y]:Yde}],[2,{[S]:"SecondaryNetworkSupported",[y]:zme}],[1,{[S]:"MaximumSecondaryNetworkInterfaces",[y]:She}],[1,{[S]:"Ipv4AddressesPerSecondaryInterface",[y]:bpe}]]],pve=[3,O,Vae,0,[Ba,v$],[[1,{[S]:"Count",[y]:Zc}],[1,{[S]:"Version",[y]:Oge}]]],hve=[3,O,Hae,0,[Ba,ur,fne,Fc],[[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Name",[y]:Vr}],[()=>pve,{[S]:"CoreInfo",[y]:Kfe}],[()=>mve,{[S]:"MemoryInfo",[y]:Tu}]]],mve=[3,O,Fae,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],gve=[3,O,OL,0,[Gae,_ue],[[()=>zbe,{[S]:"NeuronDevices",[y]:Che}],[1,{[S]:"TotalNeuronDeviceMemoryInMiB",[y]:ige}]]],yve=[3,O,kL,0,[iue],[[()=>Bbe,{[S]:"SupportedVersions",[y]:Qme}]]],H4=[3,O,sce,0,[$L],[0]],sy=[3,O,rce,0,[$ae,$L],[[2,{[S]:"Managed",[y]:Ehe}],[0,{[S]:"Principal",[y]:Fhe}]]],q4=[3,O,VE,0,[xu,jte,AE,Ace,eoe,Tue,hle,noe,CE,za],[[0,{[S]:"AvailabilityZoneId",[y]:ex}],[0,{[S]:"Affinity",[y]:Mfe}],[0,{[S]:"GroupName",[y]:cx}],[1,{[S]:"PartitionNumber",[y]:sme}],[0,{[S]:"HostId",[y]:ape}],[0,{[S]:"Tenancy",[y]:Wme}],[0,{[S]:"SpreadDomain",[y]:Ame}],[0,{[S]:"HostResourceGroupArn",[y]:fpe}],[0,{[S]:"GroupId",[y]:ax}],[0,{[S]:"AvailabilityZone",[y]:Zd}]]],vve=[3,O,HL,0,[Jle],[[()=>Ube,{[S]:"SupportedStrategies",[y]:qme}]]],bve=[3,O,UL,0,[TE,EE,_E],[[0,{[S]:"HostnameType",[y]:q$}],[2,{[S]:"EnableResourceNameDnsARecord",[y]:B$}],[2,{[S]:"EnableResourceNameDnsAAAARecord",[y]:z$}]]],Sve=[3,O,gce,0,[TE,EE,_E],[0,2,2]],_ve=[3,O,yce,0,[TE,EE,_E],[[0,{[S]:"HostnameType",[y]:q$}],[2,{[S]:"EnableResourceNameDnsARecord",[y]:B$}],[2,{[S]:"EnableResourceNameDnsAAAARecord",[y]:z$}]]],Eve=[3,O,_ce,0,[GL,mi],[[2,{[S]:"Primary",[y]:_4}],[0,{[S]:"PrivateIpAddress",[y]:Yc}]]],xve=[3,O,qL,0,[ule,ple,mle,Fd],[[()=>Zve,{[S]:"SupportedArchitectures",[y]:xme}],[1,{[S]:"SustainedClockSpeedInGhz",[y]:Cme}],[()=>Jbe,{[S]:"SupportedFeatures",[y]:Ime}],[0,{[S]:"Manufacturer",[y]:Wd}]]],wve=[3,O,mce,0,[dce,hce],[[0,{[S]:"ProductCode",[y]:Khe}],[0,{[S]:"Type",[y]:vx}]]],Rve=[3,O,Hce,0,[Vd,It],[[()=>np,{[y]:Ts}],[2,{[S]:"DryRun",[y]:$t}]],1],Cve=[3,O,ole,0,[LL,HN,Vg,Pre],[[0,{[S]:"OptInStatus",[y]:g4}],[()=>Vbe,{[S]:"GeographySet",[y]:H$}],[0,{[S]:"RegionName",[y]:C4}],[0,{[S]:"RegionEndpoint",[y]:dme}]]],Ave=[3,O,Uce,0,[ur],[[0,{[S]:"Name",[y]:Vr}]]],F4=[3,O,ale,0,[Gce,Kc,Zce,$g,zie],[[0,{[S]:"ReservationId",[y]:hme}],[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"RequesterId",[y]:gme}],[()=>Sx,{[S]:"GroupSet",[y]:lx}],[()=>Sbe,{[S]:"InstancesSet",[y]:Yg}]]],Ive=[3,O,Vce,0,[wE],[[2,{[S]:"Enabled",[y]:j$}]],1],Tve=[3,O,qce,0,[gae,yae,zd,wu,Hd,QN,ME,$E,Io,BE,VE,HE,vle,YL,Ha,c$,IN,ON,gi,iae,Qoe,Ine,dE,hE,IE,sae,SL,SE,BL,_L,RN,Cre,ML,Ru,WL,It,CN,tL,mi,gE,sN,IL,PE,bE],[1,1,[()=>W4,{[y]:uE}],0,0,1,[()=>_x,{[y]:DE}],0,0,[()=>Ive,0],[()=>q4,0],0,[()=>tz,{[y]:qE}],[()=>Kbe,{[y]:XL}],0,[()=>Uge,0],[()=>ibe,0],[()=>cbe,{[y]:TN}],[()=>bi,{[y]:To}],()=>eve,()=>P0e,()=>pye,()=>sye,()=>Zge,()=>h0e,[()=>Nbe,{[y]:oae}],()=>k0e,()=>n0e,()=>Sve,()=>D0e,2,2,()=>U0e,()=>H4,[()=>Abe,{[y]:Lle}],[2,{[S]:"DryRun",[y]:$t}],[2,{[S]:"DisableApiTermination",[y]:$$}],[0,{[S]:"InstanceInitiatedShutdownBehavior",[y]:W$}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[0,{[S]:"ClientToken",[Zpe]:1,[y]:k$}],[0,{[S]:"AdditionalInfo",[y]:S$}],[()=>Ebe,{[S]:"NetworkInterface",[y]:Ohe}],[()=>g0e,{[S]:"IamInstanceProfile",[y]:X$}],[2,{[S]:"EbsOptimized",[y]:ox}]],2],G4=[3,O,cue,0,[Jae,ja,jr,tue,zce,n$,za,Aue,bN,Lne,Ure,Va,fr,Ks,GE,t$,KL,Kc,Hc,g$,jd,qd,Kne],[[0,{[S]:"OwnerAlias",[y]:zhe}],[0,{[S]:"OutpostArn",[y]:Jd}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"StorageTier",[y]:Fme}],[4,{[S]:"RestoreExpiryTime",[y]:fme}],[0,{[S]:"SseType",[y]:M4}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[0,{[S]:"TransferType",[y]:fge}],[1,{[S]:"CompletionDurationMinutes",[y]:Vfe}],[4,{[S]:"CompletionTime",[y]:sde}],[1,{[S]:"FullSnapshotSizeInBytes",[y]:Jde}],[0,{[S]:"SnapshotId",[y]:ey}],[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"StatusMessage",[y]:ny}],[4,{[S]:"StartTime",[y]:O4}],[0,{[S]:"Progress",[y]:E4}],[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"Description",[y]:Qd}],[1,{[S]:"VolumeSize",[y]:L4}],[2,{[S]:"Encrypted",[y]:Yd}],[0,{[S]:"KmsKeyId",[y]:Xg}],[0,{[S]:"DataEncryptionKeyId",[y]:ide}]]],Ove=[3,O,Fle,0,[Oae,Nle,Zte,afe,Ioe],[0,0,1,4,0]],Mve=[3,O,Tle,0,[Vd,sN,It],[[()=>np,{[y]:Ts}],[0,{[S]:"AdditionalInfo",[y]:S$}],[2,{[S]:"DryRun",[y]:$t}]],1],Dve=[3,O,Ole,0,[zle],[[()=>Ex,{[S]:"InstancesSet",[y]:Yg}]]],K4=[3,O,ZE,0,[xN,xL],[[0,{[S]:"Code",[y]:L$}],[0,{[S]:"Message",[y]:u4}]]],Pve=[3,O,Mle,0,[Vd,roe,JL,It,RE],[[()=>np,{[y]:Ts}],2,2,[2,{[S]:"DryRun",[y]:$t}],[2,{[S]:"Force",[y]:epe}]],1],kve=[3,O,Dle,0,[Ule],[[()=>Ex,{[S]:"InstancesSet",[y]:Yg}]]],Z4=[3,O,s$,0,[xu,_re,mae,gne,Kc,Ete,XN,jr,lle,ja,ere,sL,UL,fE,Fg,Ha,Ks,yi,Bd,_te,za,Qne,Tae],[[0,{[S]:"AvailabilityZoneId",[y]:ex}],[1,{[S]:"EnableLniAtDeviceIndex",[y]:$de}],[2,{[S]:"MapCustomerOwnedIpOnLaunch",[y]:lhe}],[0,{[S]:"CustomerOwnedIpv4Pool",[y]:Yfe}],[0,{[S]:"OwnerId",[y]:Ou}],[2,{[S]:"AssignIpv6AddressOnCreation",[y]:_fe}],[()=>Xbe,{[S]:"Ipv6CidrBlockAssociationSet",[y]:Q$}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"SubnetArn",[y]:wme}],[0,{[S]:"OutpostArn",[y]:Jd}],[2,{[S]:"EnableDns64",[y]:Ede}],[2,{[S]:"Ipv6Native",[y]:Ipe}],[()=>bve,{[S]:"PrivateDnsNameOptionsOnLaunch",[y]:Qhe}],[()=>j4,{[S]:"BlockPublicAccessStates",[y]:M$}],[0,{[S]:"Type",[y]:vx}],[0,{[S]:"SubnetId",[y]:ty}],[0,{[S]:"State",[y]:qa}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"CidrBlock",[y]:tx}],[1,{[S]:"AvailableIpAddressCount",[y]:Sfe}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[2,{[S]:"DefaultForAz",[y]:cde}],[2,{[S]:"MapPublicIpOnLaunch",[y]:vhe}]]],Nve=[3,O,dle,0,[Ks,FE],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"StatusMessage",[y]:ny}]]],Lve=[3,O,_le,0,[lE,zg,WN,ZN,uL],[[0,{[S]:"AssociationId",[y]:JE}],[0,{[S]:"Ipv6CidrBlock",[y]:Z$}],[()=>Nve,{[S]:"Ipv6CidrBlockState",[y]:Y$}],[0,{[S]:"Ipv6AddressAttribute",[y]:F$}],[0,{[S]:"IpSource",[y]:J$}]]],$ve=[3,O,a$,0,[Bie,Au],[[0,{[S]:"Key",[y]:Ype}],[0,{[S]:"Value",[y]:ep}]]],zve=[3,O,To,0,[nle,jr],[[0,{[S]:"ResourceType",[y]:Sme}],[()=>Hr,{[y]:a$}]]],Bve=[3,O,hue,0,[Vd,RE,JL,It],[[()=>np,{[y]:Ts}],2,2,[2,{[S]:"DryRun",[y]:$t}]],1],Uve=[3,O,mue,0,[yue],[[()=>Ex,{[S]:"InstancesSet",[y]:Yg}]]],jve=[3,O,d$,0,[kse,Gne,Dse,zue,ife],[[1,{[S]:"DefaultVCpus",[y]:yde}],[1,{[S]:"DefaultCores",[y]:ode}],[1,{[S]:"DefaultThreadsPerCore",[y]:mde}],[()=>nbe,{[S]:"ValidCores",[y]:bge}],[()=>eSe,{[S]:"ValidThreadsPerCore",[y]:Tge}]]],Q4=[3,O,ufe,0,[xu,ja,rue,Ug,jr,Gg,Bre,zE,qg,n$,Ru,YE,fr,QE,Va,za,Ks,EN,Hte,jd,qd],[[0,{[S]:"AvailabilityZoneId",[y]:ex}],[0,{[S]:"OutpostArn",[y]:Jd}],[0,{[S]:"SourceVolumeId",[y]:Kme}],[1,{[S]:"Iops",[y]:n4}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"VolumeType",[y]:$4}],[2,{[S]:"FastRestored",[y]:Wde}],[2,{[S]:"MultiAttachEnabled",[y]:ahe}],[1,{[S]:"Throughput",[y]:P4}],[0,{[S]:"SseType",[y]:M4}],[()=>sy,{[S]:"Operator",[y]:Jg}],[1,{[S]:"VolumeInitializationRate",[y]:_ge}],[0,{[S]:"VolumeId",[y]:Du}],[1,{[S]:"Size",[y]:Yme}],[0,{[S]:"SnapshotId",[y]:ey}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[0,{[S]:"Status",[y]:Fa}],[4,{[S]:"CreateTime",[y]:N$}],[()=>rSe,{[S]:"AttachmentSet",[y]:Tfe}],[2,{[S]:"Encrypted",[y]:Yd}],[0,{[S]:"KmsKeyId",[y]:Xg}]]],bx=[3,O,kue,0,[Ua,oN,iie,Ud,fr,Ts,vE,Ks,kg],[[2,{[S]:"DeleteOnTermination",[y]:Qc}],[0,{[S]:"AssociatedResource",[y]:E$}],[0,{[S]:"InstanceOwningService",[y]:Dpe}],[1,{[S]:"EbsCardIndex",[y]:rx}],[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"InstanceId",[y]:Iu}],[0,{[S]:"Device",[y]:vde}],[0,{[S]:"Status",[y]:Fa}],[4,{[S]:"AttachTime",[y]:Kg}]]],Vve=[3,O,h$,0,[fr,Dae,FE,Rue,gue,Iue,Cue,bue,ice,ece,cce,ace,nce,KL,t$,Mre],[[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"ModificationState",[y]:_he}],[0,{[S]:"StatusMessage",[y]:ny}],[1,{[S]:"TargetSize",[y]:lge}],[1,{[S]:"TargetIops",[y]:sge}],[0,{[S]:"TargetVolumeType",[y]:dge}],[1,{[S]:"TargetThroughput",[y]:uge}],[2,{[S]:"TargetMultiAttachEnabled",[y]:rge}],[1,{[S]:"OriginalSize",[y]:jhe}],[1,{[S]:"OriginalIops",[y]:Bhe}],[0,{[S]:"OriginalVolumeType",[y]:Hhe}],[1,{[S]:"OriginalThroughput",[y]:Vhe}],[2,{[S]:"OriginalMultiAttachEnabled",[y]:Uhe}],[1,{[S]:"Progress",[y]:E4}],[4,{[S]:"StartTime",[y]:O4}],[4,{[S]:"EndTime",[y]:Qde}]]],Y4=[3,O,b$,0,[Kc,fL,XN,ene,Eoe,Jse,jr,fE,yi,Ks,Bd,gse],[[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"InstanceTenancy",[y]:e4}],[()=>lSe,{[S]:"Ipv6CidrBlockAssociationSet",[y]:Q$}],[()=>aSe,{[S]:"CidrBlockAssociationSet",[y]:zfe}],[2,{[S]:"IsDefault",[y]:Epe}],[()=>qve,{[S]:"EncryptionControl",[y]:_de}],[()=>Hr,{[S]:"TagSet",[y]:so}],[()=>j4,{[S]:"BlockPublicAccessStates",[y]:M$}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"State",[y]:qa}],[0,{[S]:"CidrBlock",[y]:tx}],[0,{[S]:"DhcpOptionsId",[y]:dde}]]],Hve=[3,O,Nue,0,[lE,Bd,nne],[[0,{[S]:"AssociationId",[y]:JE}],[0,{[S]:"CidrBlock",[y]:tx}],[()=>X4,{[S]:"CidrBlockState",[y]:Ufe}]]],X4=[3,O,$ue,0,[Ks,FE],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"StatusMessage",[y]:ny}]]],qve=[3,O,p$,0,[yi,Vue,wL,Ks,GE,Bce,jr],[[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"VpcEncryptionControlId",[y]:Sge}],[0,{[S]:"Mode",[y]:whe}],[0,{[S]:"State",[y]:qa}],[0,{[S]:"StateMessage",[y]:I4}],[()=>Gve,{[S]:"ResourceExclusions",[y]:pme}],[()=>Hr,{[S]:"TagSet",[y]:so}]]],Fve=[3,O,Bue,0,[wL,Roe,xre,Qae,nfe,efe,Jie,Yue,nre],[0,0,0,0,0,0,0,0,0],1],ua=[3,O,Uue,0,[Ks,GE],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"StateMessage",[y]:I4}]]],Gve=[3,O,jue,0,[xoe,Ere,Zae,tfe,sfe,dae,Que,tre],[[()=>ua,{[S]:"InternetGateway",[y]:xpe}],[()=>ua,{[S]:"EgressOnlyInternetGateway",[y]:Bde}],[()=>ua,{[S]:"NatGateway",[y]:Ihe}],[()=>ua,{[S]:"VirtualPrivateGateway",[y]:Rge}],[()=>ua,{[S]:"VpcPeering",[y]:Cge}],[()=>ua,{[S]:"Lambda",[y]:ihe}],[()=>ua,{[S]:"VpcLattice",[y]:Ege}],[()=>ua,{[S]:"ElasticFileSystem",[y]:xde}]]],Kve=[3,O,Hue,0,[lE,zg,WN,RL,aL,ZN,uL],[[0,{[S]:"AssociationId",[y]:JE}],[0,{[S]:"Ipv6CidrBlock",[y]:Z$}],[()=>X4,{[S]:"Ipv6CidrBlockState",[y]:Y$}],[0,{[S]:"NetworkBorderGroup",[y]:f4}],[0,{[S]:"Ipv6Pool",[y]:$pe}],[0,{[S]:"Ipv6AddressAttribute",[y]:F$}],[0,{[S]:"IpSource",[y]:J$}]]],Pu="unit",Zve=[1,O,Tte,0,[0,{[y]:ke}]],Qve=[1,O,kte,0,[()=>qge,{[y]:ke}]],Yve=[1,O,Nte,0,[()=>Hge,{[y]:ke}]],Xve=[1,O,$te,0,[()=>Fge,{[y]:ke}]],Wve=[1,O,Bte,0,[()=>Gge,{[y]:ke}]],Jve=[1,O,Wte,0,[0,{[y]:ke}]],ebe=[1,O,Gte,0,[()=>U4,{[y]:ke}]],W4=[1,O,Kte,0,[()=>U4,{[y]:uE}]],tbe=[1,O,Qte,0,[0,{[y]:ke}]],nbe=[1,O,sne,0,[1,{[y]:ke}]],sbe=[1,O,Xne,0,[()=>jye,{[y]:ke}]],rbe=[1,O,Yse,0,[()=>Hye,{[y]:ke}]],obe=[1,O,ore,0,[()=>Qye,{[y]:ke}]],ibe=[1,O,ure,0,[()=>Yye,{[y]:ke}]],abe=[1,O,pre,0,[()=>Wye,{[y]:ke}]],cbe=[1,O,ON,0,[()=>Xye,{[y]:ke}]],lbe=[1,O,Qse,0,[0,{[y]:AN}]],Oo=[1,O,zre,0,[()=>s0e,{[y]:Ur}]],ube=[1,O,Nre,0,[()=>r0e,{[y]:ke}]],fbe=[1,O,Gre,0,[()=>l0e,{[y]:ke}]],Sx=[1,O,Zre,0,[()=>d0e,{[y]:ke}]],dbe=[1,O,Qre,0,[0,{[y]:ax}]],pbe=[1,O,koe,0,[0,{[y]:wu}]],hbe=[1,O,joe,0,[()=>y0e,{[y]:ke}]],mbe=[1,O,boe,0,[()=>_0e,0]],gbe=[1,O,poe,0,[()=>C0e,{[y]:ke}]],ybe=[1,O,moe,0,[()=>A0e,{[y]:ke}]],np=[1,O,Noe,0,[0,{[y]:Ts}]],vbe=[1,O,Toe,0,[()=>I0e,{[y]:ke}]],_x=[1,O,Aoe,0,[()=>T0e,{[y]:ke}]],bbe=[1,O,Ooe,0,[()=>O0e,{[y]:ke}]],Sbe=[1,O,Hoe,0,[()=>x0e,{[y]:ke}]],_be=[1,O,Joe,0,[()=>L0e,{[y]:ke}]],Ebe=[1,O,tie,0,[()=>z0e,{[y]:ke}]],xbe=[1,O,uie,0,[()=>j0e,{[y]:ke}]],wbe=[1,O,Sie,0,[()=>V0e,{[y]:ke}]],Rbe=[1,O,Eie,0,[()=>q0e,{[y]:ke}]],Cbe=[1,O,xie,0,[()=>F0e,{[y]:ke}]],Abe=[1,O,Rie,0,[()=>G0e,{[y]:ke}]],Ex=[1,O,vie,0,[()=>K0e,{[y]:ke}]],Ibe=[1,O,Die,0,[()=>Q0e,{[y]:ke}]],Tbe=[1,O,pie,0,[()=>Y0e,{[y]:ke}]],Obe=[1,O,hie,0,[()=>X0e,{[y]:ke}]],Mbe=[1,O,Vie,0,[0,{[y]:Io}]],Dbe=[1,O,Fie,0,[0,{[y]:qc}]],Pbe=[1,O,Zie,0,[()=>J0e,{[y]:ke}]],kbe=[1,O,tae,0,[()=>tve,{[y]:ke}]],Nbe=[1,O,rae,0,[()=>nve,{[y]:ke}]],Lbe=[1,O,bae,0,[()=>rve,{[y]:ke}]],$be=[1,O,Uae,0,[()=>fve,{[y]:ke}]],zbe=[1,O,qae,0,[()=>hve,{[y]:ke}]],Bbe=[1,O,Wae,0,[0,{[y]:ke}]],J4=[1,O,oce,0,[0,{[y]:UE}]],Ube=[1,O,vce,0,[0,{[y]:ke}]],jbe=[1,O,Ece,0,[()=>Eve,{[y]:ke}]],ez=[1,O,pce,0,[()=>wve,{[y]:ke}]],Vbe=[1,O,jce,0,[()=>Ave,{[y]:ke}]],Hbe=[1,O,Yce,0,[()=>Cve,{[y]:ke}]],qbe=[1,O,ele,0,[0,{[y]:Vg}]],Fbe=[1,O,Xce,0,[()=>F4,{[y]:ke}]],Gbe=[1,O,$ce,0,[0,{[y]:ke}]],tz=[1,O,yle,0,[0,{[y]:qE}]],Kbe=[1,O,ble,0,[0,{[y]:XL}]],Zbe=[1,O,Ple,0,[0,{[y]:Va}]],Qbe=[1,O,Hle,0,[()=>G4,{[y]:ke}]],Ybe=[1,O,kle,0,[0,{[y]:Ha}]],Xbe=[1,O,Ele,0,[()=>Lve,{[y]:ke}]],Wbe=[1,O,qle,0,[()=>Z4,{[y]:ke}]],Jbe=[1,O,cle,0,[0,{[y]:ke}]],Hr=[1,O,vue,0,[()=>$ve,{[y]:ke}]],bi=[1,O,wue,0,[()=>zve,{[y]:ke}]],eSe=[1,O,Eue,0,[1,{[y]:ke}]],tSe=[1,O,Mue,0,[0,{[y]:ke}]],nSe=[1,O,rfe,0,[0,{[y]:ke}]],sSe=[1,O,ofe,0,[0,{[y]:ke}]],rSe=[1,O,Pue,0,[()=>bx,{[y]:ke}]],oSe=[1,O,Fue,0,[0,{[y]:fr}]],iSe=[1,O,Xue,0,[()=>Q4,{[y]:ke}]],aSe=[1,O,Lue,0,[()=>Hve,{[y]:ke}]],cSe=[1,O,Gue,0,[0,{[y]:yi}]],lSe=[1,O,que,0,[()=>Kve,{[y]:ke}]],uSe=[1,O,Wue,0,[()=>Y4,{[y]:ke}]],fSe=[1,O,dfe,0,[0,{[y]:ke}]],dSe=[1,O,hfe,0,[0,{[y]:XE}]],pSe=[1,O,gfe,0,[0,{[y]:WE}]],IMe=[9,O,Dte,0,()=>Vge,()=>bx],TMe=[9,O,Ane,0,()=>eye,()=>tye],OMe=[9,O,dne,0,()=>rye,()=>oye],MMe=[9,O,pne,0,()=>iye,()=>W0e],DMe=[9,O,Tne,0,()=>aye,()=>G4],PMe=[9,O,One,0,()=>cye,()=>lye],kMe=[9,O,Une,0,()=>uye,()=>Q4],NMe=[9,O,jne,0,()=>fye,()=>dye],LMe=[9,O,cse,0,()=>hye,()=>mye],$Me=[9,O,Ise,0,()=>gye,()=>Pu],zMe=[9,O,Tse,0,()=>yye,()=>Pu],BMe=[9,O,Vse,0,()=>vye,()=>Pu],UMe=[9,O,Hse,0,()=>bye,()=>Pu],hSe=[9,O,Fne,0,()=>Sye,()=>_ye],mSe=[9,O,ose,0,()=>Eye,()=>xye],gSe=[9,O,ise,0,()=>wye,()=>Rye],ySe=[9,O,rse,0,()=>Cye,()=>Aye],vSe=[9,O,pse,0,()=>Iye,()=>Tye],bSe=[9,O,_se,0,()=>Oye,()=>Mye],SSe=[9,O,Ose,0,()=>Dye,()=>Pye],_Se=[9,O,Mse,0,()=>kye,()=>Nye],ESe=[9,O,qse,0,()=>Lye,()=>$ye],xSe=[9,O,Fse,0,()=>zye,()=>Bye],jMe=[9,O,Gse,0,()=>Uye,()=>bx],VMe=[9,O,Vre,0,()=>a0e,()=>c0e],HMe=[9,O,$oe,0,()=>v0e,()=>b0e],qMe=[9,O,Aae,0,()=>ave,()=>Pu],FMe=[9,O,Lae,0,()=>cve,()=>lve],GMe=[9,O,Kce,0,()=>Rve,()=>Pu],KMe=[9,O,Qce,0,()=>Tve,()=>F4],ZMe=[9,O,Ble,0,()=>Mve,()=>Dve],QMe=[9,O,jle,0,()=>Pve,()=>kve],YMe=[9,O,due,0,()=>Bve,()=>Uve];const wSe=e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??gte,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??qee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Mg}],logger:e?.logger??new Dg,protocol:e?.protocol??qJ,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ec2",errorTypeRegistries:zge,xmlNamespace:"http://ec2.amazonaws.com/doc/2016-11-15",version:"2016-11-15",serviceTarget:"AmazonEC2"},serviceId:e?.serviceId??"EC2",urlParser:e?.urlParser??hu,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??$a}),RSe=e=>{const t=oE(e),n=()=>t().then(V_),r=wSe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??U_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??sE({serviceId:r.serviceId,clientVersion:Zee.version}),maxAttempts:e?.maxAttempts??gu,region:e?.region??rE("Region is missing"),requestHandler:Ld.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||X_),sha256:e?.sha256??nE,streamCollector:e?.streamCollector??wg,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(G_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(K_))}},xx=e=>({setRegion(t){e.region=t},region(){return e.region}}),wx=e=>({region:e.region()}),CSe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},ASe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ISe=(e,t)=>{const n=Object.assign(xx(e),H_(e),S_(e),CSe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,wx(n),q_(n),__(n),ASe(n))};class TSe extends j_{config;constructor(...[t]){const n=RSe(t||{});super(n),this.initConfig=n;const r=Gee(n),i=k_(r),c=eE(i),l=Z_(c),f=l,d=Y_(f),p=Fee(d),v=ISe(p,t?.extensions||[]);this.config=v,this.middlewareStack.use(A_(this.config)),this.middlewareStack.use(F_(this.config)),this.middlewareStack.use(tE(this.config)),this.middlewareStack.use(Q_(this.config)),this.middlewareStack.use(E_(this.config)),this.middlewareStack.use(x_(this.config)),this.middlewareStack.use(w_(this.config)),this.middlewareStack.use(R_(this.config,{httpAuthSchemeParametersProvider:Vee,identityProviderConfigProvider:async g=>new P_({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(C_(this.config))}destroy(){super.destroy()}}class OSe extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeAvailabilityZones",{}).n("EC2Client","DescribeAvailabilityZonesCommand").sc(hSe).build(){}class nz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeImages",{}).n("EC2Client","DescribeImagesCommand").sc(mSe).build(){}class sz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstances",{}).n("EC2Client","DescribeInstancesCommand").sc(gSe).build(){}class MSe extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstanceTypes",{}).n("EC2Client","DescribeInstanceTypesCommand").sc(ySe).build(){}class rz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeKeyPairs",{}).n("EC2Client","DescribeKeyPairsCommand").sc(vSe).build(){}class DSe extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeRegions",{}).n("EC2Client","DescribeRegionsCommand").sc(bSe).build(){}class oz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSnapshots",{}).n("EC2Client","DescribeSnapshotsCommand").sc(SSe).build(){}class iz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSubnets",{}).n("EC2Client","DescribeSubnetsCommand").sc(_Se).build(){}class az extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVolumes",{}).n("EC2Client","DescribeVolumesCommand").sc(ESe).build(){}class cz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVpcs",{}).n("EC2Client","DescribeVpcsCommand").sc(xSe).build(){}const PSe=async(e,t,n)=>({operation:Ro(t).operation,region:await Is(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function kSe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"iam",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const NSe=e=>{const t=[];switch(e.operation){default:t.push(kSe(e))}return t},LSe=e=>{const t=B_(e);return Object.assign(t,{authSchemePreference:Is(e.authSchemePreference??[])})},$Se=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"iam"}),Xc={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},zSe="3.1000.0",BSe={version:zSe},lz="required",hn="fn",mn="argv",Mo="ref",qn="properties",Fn="headers",go="authSchemes",yo="name",vo="signingRegion",gO=!0,yO="isSet",Bc="booleanEquals",ql="error",In="endpoint",Xr="tree",sp="PartitionResult",Aa="stringEquals",bo="sigv4",vO={[lz]:!0,default:!1,type:"boolean"},bO={[lz]:!1,type:"string"},SO={[Mo]:"Endpoint"},fa={[hn]:Bc,[mn]:[{[Mo]:"UseFIPS"},!0]},da={[hn]:Bc,[mn]:[{[Mo]:"UseDualStack"},!0]},rs={},_O={[hn]:Aa,[mn]:[{[hn]:"getAttr",[mn]:[{[Mo]:sp},"name"]},"aws"]},Mc={[hn]:"getAttr",[mn]:[{[Mo]:sp},"name"]},Wr={[hn]:Bc,[mn]:[{[Mo]:"UseFIPS"},!1]},EO={[go]:[{[yo]:bo,[vo]:"us-east-1"}]},xO={[hn]:Aa,[mn]:[Mc,"aws-cn"]},wO={[go]:[{[yo]:bo,[vo]:"cn-north-1"}]},Jr={[hn]:Bc,[mn]:[{[Mo]:"UseDualStack"},!1]},Qh={[hn]:Aa,[mn]:[Mc,"aws-us-gov"]},RO={url:"https://iam.us-gov.api.aws",[qn]:{[go]:[{[yo]:bo,[vo]:"us-gov-west-1"}]},[Fn]:{}},CO={url:"https://iam.us-gov.amazonaws.com",[qn]:{[go]:[{[yo]:bo,[vo]:"us-gov-west-1"}]},[Fn]:{}},AO={[hn]:Aa,[mn]:[Mc,"aws-iso"]},IO={[go]:[{[yo]:bo,[vo]:"us-iso-east-1"}]},TO={[hn]:Aa,[mn]:[Mc,"aws-iso-b"]},OO={[go]:[{[yo]:bo,[vo]:"us-isob-east-1"}]},MO={[hn]:"getAttr",[mn]:[{[Mo]:sp},"supportsFIPS"]},DO={[hn]:Bc,[mn]:[!0,{[hn]:"getAttr",[mn]:[{[Mo]:sp},"supportsDualStack"]}]},Yh={[go]:[{[yo]:bo,[vo]:"{PartitionResult#implicitGlobalRegion}"}]},PO=[{[Mo]:"Region"}],USe={parameters:{UseDualStack:vO,UseFIPS:vO,Endpoint:bO,Region:bO},rules:[{conditions:[{[hn]:yO,[mn]:[SO]}],rules:[{conditions:[fa],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ql},{rules:[{conditions:[da],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ql},{endpoint:{url:SO,[qn]:rs,[Fn]:rs},type:In}],type:Xr}],type:Xr},{rules:[{conditions:[{[hn]:yO,[mn]:PO}],rules:[{conditions:[{[hn]:"aws.partition",[mn]:PO,assign:sp}],rules:[{conditions:[_O,Wr,da],endpoint:{url:"https://iam.global.api.aws",[qn]:EO,[Fn]:rs},type:In},{conditions:[_O,fa,da],endpoint:{url:"https://iam-fips.global.api.aws",[qn]:EO,[Fn]:rs},type:In},{conditions:[xO,Wr,da],endpoint:{url:"https://iam.global.api.amazonwebservices.com.cn",[qn]:wO,[Fn]:rs},type:In},{conditions:[xO,Wr,Jr],endpoint:{url:"https://iam.cn-north-1.amazonaws.com.cn",[qn]:wO,[Fn]:rs},type:In},{conditions:[Qh,Wr,da],endpoint:RO,type:In},{conditions:[Qh,fa,da],endpoint:RO,type:In},{conditions:[Qh,Wr,Jr],endpoint:CO,type:In},{conditions:[Qh,fa,Jr],endpoint:CO,type:In},{conditions:[AO,Wr,Jr],endpoint:{url:"https://iam.us-iso-east-1.c2s.ic.gov",[qn]:IO,[Fn]:rs},type:In},{conditions:[AO,fa,Jr],endpoint:{url:"https://iam-fips.us-iso-east-1.c2s.ic.gov",[qn]:IO,[Fn]:rs},type:In},{conditions:[TO,Wr,Jr],endpoint:{url:"https://iam.us-isob-east-1.sc2s.sgov.gov",[qn]:OO,[Fn]:rs},type:In},{conditions:[TO,fa,Jr],endpoint:{url:"https://iam-fips.us-isob-east-1.sc2s.sgov.gov",[qn]:OO,[Fn]:rs},type:In},{conditions:[{[hn]:Aa,[mn]:[Mc,"aws-iso-e"]},Wr,Jr],endpoint:{url:"https://iam.eu-isoe-west-1.cloud.adc-e.uk",[qn]:{[go]:[{[yo]:bo,[vo]:"eu-isoe-west-1"}]},[Fn]:rs},type:In},{conditions:[{[hn]:Aa,[mn]:[Mc,"aws-iso-f"]},Wr,Jr],endpoint:{url:"https://iam.us-isof-south-1.csp.hci.ic.gov",[qn]:{[go]:[{[yo]:bo,[vo]:"us-isof-south-1"}]},[Fn]:rs},type:In},{conditions:[{[hn]:Aa,[mn]:[Mc,"aws-eusc"]},Wr,Jr],endpoint:{url:"https://iam.eusc-de-east-1.amazonaws.eu",[qn]:{[go]:[{[yo]:bo,[vo]:"eusc-de-east-1"}]},[Fn]:rs},type:In},{conditions:[fa,da],rules:[{conditions:[{[hn]:Bc,[mn]:[gO,MO]},DO],rules:[{endpoint:{url:"https://iam-fips.{PartitionResult#dualStackDnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ql}],type:Xr},{conditions:[fa,Jr],rules:[{conditions:[{[hn]:Bc,[mn]:[MO,gO]}],rules:[{endpoint:{url:"https://iam-fips.{PartitionResult#dnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr},{error:"FIPS is enabled but this partition does not support FIPS",type:ql}],type:Xr},{conditions:[Wr,da],rules:[{conditions:[DO],rules:[{endpoint:{url:"https://iam.{PartitionResult#dualStackDnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr},{error:"DualStack is enabled but this partition does not support DualStack",type:ql}],type:Xr},{endpoint:{url:"https://iam.{PartitionResult#dnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr}],type:Xr},{error:"Invalid Configuration: Missing Region",type:ql}],type:Xr}]},jSe=USe,VSe=new N_({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),HSe=(e,t={})=>VSe.get(e,()=>$_(jSe,{endpointParams:e,logger:t.logger}));pu.aws=Og;class ct extends Ea{constructor(t){super(t),Object.setPrototypeOf(this,ct.prototype)}}class Rx extends ct{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,Rx.prototype)}}class Cx extends ct{name="NoSuchEntityException";$fault="client";constructor(t){super({name:"NoSuchEntityException",$fault:"client",...t}),Object.setPrototypeOf(this,Cx.prototype)}}class Ax extends ct{name="ServiceFailureException";$fault="server";constructor(t){super({name:"ServiceFailureException",$fault:"server",...t}),Object.setPrototypeOf(this,Ax.prototype)}}class Ix extends ct{name="AccountNotManagementOrDelegatedAdministratorException";$fault="client";Message;constructor(t){super({name:"AccountNotManagementOrDelegatedAdministratorException",$fault:"client",...t}),Object.setPrototypeOf(this,Ix.prototype),this.Message=t.Message}}class Tx extends ct{name="InvalidInputException";$fault="client";constructor(t){super({name:"InvalidInputException",$fault:"client",...t}),Object.setPrototypeOf(this,Tx.prototype)}}class Ox extends ct{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,Ox.prototype)}}class Mx extends ct{name="EntityAlreadyExistsException";$fault="client";constructor(t){super({name:"EntityAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,Mx.prototype)}}class Dx extends ct{name="UnmodifiableEntityException";$fault="client";constructor(t){super({name:"UnmodifiableEntityException",$fault:"client",...t}),Object.setPrototypeOf(this,Dx.prototype)}}class Px extends ct{name="PolicyNotAttachableException";$fault="client";constructor(t){super({name:"PolicyNotAttachableException",$fault:"client",...t}),Object.setPrototypeOf(this,Px.prototype)}}class kx extends ct{name="EntityTemporarilyUnmodifiableException";$fault="client";constructor(t){super({name:"EntityTemporarilyUnmodifiableException",$fault:"client",...t}),Object.setPrototypeOf(this,kx.prototype)}}class Nx extends ct{name="InvalidUserTypeException";$fault="client";constructor(t){super({name:"InvalidUserTypeException",$fault:"client",...t}),Object.setPrototypeOf(this,Nx.prototype)}}class Lx extends ct{name="PasswordPolicyViolationException";$fault="client";constructor(t){super({name:"PasswordPolicyViolationException",$fault:"client",...t}),Object.setPrototypeOf(this,Lx.prototype)}}class $x extends ct{name="OpenIdIdpCommunicationErrorException";$fault="client";constructor(t){super({name:"OpenIdIdpCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,$x.prototype)}}class zx extends ct{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,zx.prototype)}}class Bx extends ct{name="ServiceNotSupportedException";$fault="client";constructor(t){super({name:"ServiceNotSupportedException",$fault:"client",...t}),Object.setPrototypeOf(this,Bx.prototype)}}class Ux extends ct{name="DeleteConflictException";$fault="client";constructor(t){super({name:"DeleteConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,Ux.prototype)}}class jx extends ct{name="OrganizationNotFoundException";$fault="client";Message;constructor(t){super({name:"OrganizationNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,jx.prototype),this.Message=t.Message}}class Vx extends ct{name="OrganizationNotInAllFeaturesModeException";$fault="client";Message;constructor(t){super({name:"OrganizationNotInAllFeaturesModeException",$fault:"client",...t}),Object.setPrototypeOf(this,Vx.prototype),this.Message=t.Message}}class Hx extends ct{name="ServiceAccessNotEnabledException";$fault="client";Message;constructor(t){super({name:"ServiceAccessNotEnabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Hx.prototype),this.Message=t.Message}}class qx extends ct{name="FeatureDisabledException";$fault="client";constructor(t){super({name:"FeatureDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,qx.prototype)}}class Fx extends ct{name="InvalidAuthenticationCodeException";$fault="client";constructor(t){super({name:"InvalidAuthenticationCodeException",$fault:"client",...t}),Object.setPrototypeOf(this,Fx.prototype)}}class Gx extends ct{name="CallerIsNotManagementAccountException";$fault="client";Message;constructor(t){super({name:"CallerIsNotManagementAccountException",$fault:"client",...t}),Object.setPrototypeOf(this,Gx.prototype),this.Message=t.Message}}class Kx extends ct{name="FeatureEnabledException";$fault="client";constructor(t){super({name:"FeatureEnabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Kx.prototype)}}class Zx extends ct{name="ReportGenerationLimitExceededException";$fault="client";constructor(t){super({name:"ReportGenerationLimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,Zx.prototype)}}class Qx extends ct{name="CredentialReportExpiredException";$fault="client";constructor(t){super({name:"CredentialReportExpiredException",$fault:"client",...t}),Object.setPrototypeOf(this,Qx.prototype)}}class Yx extends ct{name="CredentialReportNotPresentException";$fault="client";constructor(t){super({name:"CredentialReportNotPresentException",$fault:"client",...t}),Object.setPrototypeOf(this,Yx.prototype)}}class Xx extends ct{name="CredentialReportNotReadyException";$fault="client";constructor(t){super({name:"CredentialReportNotReadyException",$fault:"client",...t}),Object.setPrototypeOf(this,Xx.prototype)}}class Wx extends ct{name="UnrecognizedPublicKeyEncodingException";$fault="client";constructor(t){super({name:"UnrecognizedPublicKeyEncodingException",$fault:"client",...t}),Object.setPrototypeOf(this,Wx.prototype)}}class Jx extends ct{name="PolicyEvaluationException";$fault="server";constructor(t){super({name:"PolicyEvaluationException",$fault:"server",...t}),Object.setPrototypeOf(this,Jx.prototype)}}class ew extends ct{name="KeyPairMismatchException";$fault="client";constructor(t){super({name:"KeyPairMismatchException",$fault:"client",...t}),Object.setPrototypeOf(this,ew.prototype)}}class tw extends ct{name="MalformedCertificateException";$fault="client";constructor(t){super({name:"MalformedCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,tw.prototype)}}class nw extends ct{name="DuplicateCertificateException";$fault="client";constructor(t){super({name:"DuplicateCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,nw.prototype)}}class sw extends ct{name="InvalidCertificateException";$fault="client";constructor(t){super({name:"InvalidCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,sw.prototype)}}class rw extends ct{name="DuplicateSSHPublicKeyException";$fault="client";constructor(t){super({name:"DuplicateSSHPublicKeyException",$fault:"client",...t}),Object.setPrototypeOf(this,rw.prototype)}}class ow extends ct{name="InvalidPublicKeyException";$fault="client";constructor(t){super({name:"InvalidPublicKeyException",$fault:"client",...t}),Object.setPrototypeOf(this,ow.prototype)}}const uz="Arn",qSe="AttachmentCount",fz="AccessKey",ry="AccessKeyId",dz="AccessKeyMetadata",FSe="AccountNotManagementOrDelegatedAdministratorException",GSe="AttachedPolicy",KSe="AttachedPermissionsBoundary",ZSe="AttachedPolicies",QSe="AttachUserPolicy",YSe="AttachUserPolicyRequest",XSe="CreateAccessKey",WSe="CreateAccessKeyRequest",JSe="CreateAccessKeyResponse",rp="CreateDate",e_e="CallerIsNotManagementAccountException",t_e="ConcurrentModificationException",n_e="CreatePolicyRequest",s_e="CreatePolicyResponse",r_e="CreatePolicy",o_e="CredentialReportExpiredException",i_e="CredentialReportNotPresentException",a_e="CredentialReportNotReadyException",c_e="CreateUser",l_e="CreateUserRequest",u_e="CreateUserResponse",pz="Description",f_e="DeleteAccessKey",d_e="DeleteAccessKeyRequest",p_e="DeleteConflictException",h_e="DuplicateCertificateException",m_e="DeletePolicyRequest",g_e="DeletePolicy",y_e="DuplicateSSHPublicKeyException",v_e="DeleteUser",b_e="DetachUserPolicyRequest",S_e="DetachUserPolicy",__e="DeleteUserRequest",E_e="DefaultVersionId",x_e="Document",w_e="EntityAlreadyExistsException",R_e="EntityTemporarilyUnmodifiableException",C_e="FeatureDisabledException",A_e="FeatureEnabledException",I_e="GetPolicy",T_e="GetPolicyRequest",O_e="GetPolicyResponse",M_e="GetPolicyVersion",D_e="GetPolicyVersionRequest",P_e="GetPolicyVersionResponse",k_e="GetUser",N_e="GetUserRequest",L_e="GetUserResponse",$_e="IsAttachable",z_e="InvalidAuthenticationCodeException",B_e="InvalidCertificateException",U_e="IsDefaultVersion",j_e="InvalidInputException",V_e="InvalidPublicKeyException",oy="IsTruncated",H_e="InvalidUserTypeException",q_e="Key",F_e="KeyPairMismatchException",G_e="ListAccessKeys",K_e="ListAccessKeysRequest",Z_e="ListAccessKeysResponse",Q_e="ListAttachedUserPolicies",Y_e="ListAttachedUserPoliciesRequest",X_e="ListAttachedUserPoliciesResponse",W_e="LimitExceededException",J_e="ListPoliciesRequest",eEe="ListPoliciesResponse",tEe="ListPolicies",nEe="ListUsers",sEe="ListUsersRequest",rEe="ListUsersResponse",op="Message",oEe="MalformedCertificateException",iy="MaxItems",iEe="MalformedPolicyDocumentException",Ga="Marker",aEe="NoSuchEntityException",cEe="OnlyAttached",lEe="OpenIdIdpCommunicationErrorException",uEe="OrganizationNotFoundException",fEe="OrganizationNotInAllFeaturesModeException",ku="PolicyArn",hz="PermissionsBoundary",dEe="PermissionsBoundaryArn",pEe="PermissionsBoundaryType",hEe="PermissionsBoundaryUsageCount",mEe="PolicyDocument",gEe="PolicyEvaluationException",yEe="PolicyId",vEe="PasswordLastUsed",iw="PolicyName",bEe="PolicyNotAttachableException",SEe="PasswordPolicyViolationException",aw="PathPrefix",_Ee="PolicyUsageFilter",mz="PolicyVersion",ay="Path",cw="Policy",EEe="Policies",xEe="ReportGenerationLimitExceededException",lw="Status",wEe="SecretAccessKey",REe="ServiceAccessNotEnabledException",CEe="ServiceFailureException",AEe="ServiceNotSupportedException",IEe="Scope",cy="Tags",TEe="Tag",OEe="UpdateAccessKey",MEe="UpdateAccessKeyRequest",DEe="UpdateDate",PEe="UnmodifiableEntityException",kEe="UserId",dr="UserName",NEe="UnrecognizedPublicKeyEncodingException",uw="User",LEe="Users",gz="VersionId",$Ee="Value",zEe="accessKeyMetadataListType",BEe="accessKeySecretType",UEe="attachedPoliciesListType",Bt="awsQueryError",Tt="client",Et="error",xt="httpError",Ut="message",jEe="policyListType",yz="smithy.ts.sdk.synthetic.com.amazonaws.iam",vz="server",VEe="tagListType",HEe="userListType",we="com.amazonaws.iam",bz=Gn.for(yz);var qEe=[-3,yz,"IAMServiceException",0,[],[]];bz.registerError(qEe,ct);const vt=Gn.for(we);var FEe=[-3,we,FSe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(FEe,Ix);var GEe=[-3,we,e_e,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(GEe,Gx);var KEe=[-3,we,t_e,{[Bt]:["ConcurrentModification",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(KEe,Rx);var ZEe=[-3,we,o_e,{[Bt]:["ReportExpired",410],[Et]:Tt,[xt]:410},[Ut],[0]];vt.registerError(ZEe,Qx);var QEe=[-3,we,i_e,{[Bt]:["ReportNotPresent",410],[Et]:Tt,[xt]:410},[Ut],[0]];vt.registerError(QEe,Yx);var YEe=[-3,we,a_e,{[Bt]:["ReportInProgress",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(YEe,Xx);var XEe=[-3,we,p_e,{[Bt]:["DeleteConflict",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(XEe,Ux);var WEe=[-3,we,h_e,{[Bt]:["DuplicateCertificate",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(WEe,nw);var JEe=[-3,we,y_e,{[Bt]:["DuplicateSSHPublicKey",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(JEe,rw);var exe=[-3,we,w_e,{[Bt]:["EntityAlreadyExists",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(exe,Mx);var txe=[-3,we,R_e,{[Bt]:["EntityTemporarilyUnmodifiable",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(txe,kx);var nxe=[-3,we,C_e,{[Bt]:["FeatureDisabled",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(nxe,qx);var sxe=[-3,we,A_e,{[Bt]:["FeatureEnabled",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(sxe,Kx);var rxe=[-3,we,z_e,{[Bt]:["InvalidAuthenticationCode",403],[Et]:Tt,[xt]:403},[Ut],[0]];vt.registerError(rxe,Fx);var oxe=[-3,we,B_e,{[Bt]:["InvalidCertificate",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(oxe,sw);var ixe=[-3,we,j_e,{[Bt]:["InvalidInput",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(ixe,Tx);var axe=[-3,we,V_e,{[Bt]:["InvalidPublicKey",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(axe,ow);var cxe=[-3,we,H_e,{[Bt]:["InvalidUserType",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(cxe,Nx);var lxe=[-3,we,F_e,{[Bt]:["KeyPairMismatch",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(lxe,ew);var uxe=[-3,we,W_e,{[Bt]:["LimitExceeded",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(uxe,Ox);var fxe=[-3,we,oEe,{[Bt]:["MalformedCertificate",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(fxe,tw);var dxe=[-3,we,iEe,{[Bt]:["MalformedPolicyDocument",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(dxe,zx);var pxe=[-3,we,aEe,{[Bt]:["NoSuchEntity",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(pxe,Cx);var hxe=[-3,we,lEe,{[Bt]:["OpenIdIdpCommunicationError",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(hxe,$x);var mxe=[-3,we,uEe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(mxe,jx);var gxe=[-3,we,fEe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(gxe,Vx);var yxe=[-3,we,SEe,{[Bt]:["PasswordPolicyViolation",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(yxe,Lx);var vxe=[-3,we,gEe,{[Bt]:["PolicyEvaluation",500],[Et]:vz,[xt]:500},[Ut],[0]];vt.registerError(vxe,Jx);var bxe=[-3,we,bEe,{[Bt]:["PolicyNotAttachable",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(bxe,Px);var Sxe=[-3,we,xEe,{[Bt]:["ReportGenerationLimitExceeded",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(Sxe,Zx);var _xe=[-3,we,REe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(_xe,Hx);var Exe=[-3,we,CEe,{[Bt]:["ServiceFailure",500],[Et]:vz,[xt]:500},[Ut],[0]];vt.registerError(Exe,Ax);var xxe=[-3,we,AEe,{[Bt]:["NotSupportedService",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(xxe,Bx);var wxe=[-3,we,PEe,{[Bt]:["UnmodifiableEntity",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(wxe,Dx);var Rxe=[-3,we,NEe,{[Bt]:["UnrecognizedPublicKeyEncoding",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(Rxe,Wx);const Cxe=[bz,vt];var Axe=[0,we,BEe,8,0],Ixe=[3,we,fz,0,[dr,ry,lw,wEe,rp],[0,0,0,[()=>Axe,0],4],4],Txe=[3,we,dz,0,[dr,ry,lw,rp],[0,0,0,4]],Oxe=[3,we,KSe,0,[pEe,dEe],[0,0]],Mxe=[3,we,GSe,0,[iw,ku],[0,0]],Dxe=[3,we,YSe,0,[dr,ku],[0,0],2],Pxe=[3,we,WSe,0,[dr],[0]],kxe=[3,we,JSe,0,[fz],[[()=>Ixe,0]],1],Nxe=[3,we,n_e,0,[iw,mEe,ay,pz,cy],[0,0,0,0,()=>ly],2],Lxe=[3,we,s_e,0,[cw],[()=>fw]],$xe=[3,we,l_e,0,[dr,ay,hz,cy],[0,0,0,()=>ly],1],zxe=[3,we,u_e,0,[uw],[()=>dw]],Bxe=[3,we,d_e,0,[ry,dr],[0,0],1],Uxe=[3,we,m_e,0,[ku],[0],1],jxe=[3,we,__e,0,[dr],[0],1],Vxe=[3,we,b_e,0,[dr,ku],[0,0],2],Hxe=[3,we,T_e,0,[ku],[0],1],qxe=[3,we,O_e,0,[cw],[()=>fw]],Fxe=[3,we,D_e,0,[ku,gz],[0,0],2],Gxe=[3,we,P_e,0,[mz],[()=>swe]],Kxe=[3,we,N_e,0,[dr],[0]],Zxe=[3,we,L_e,0,[uw],[()=>dw],1],Qxe=[3,we,K_e,0,[dr,Ga,iy],[0,0,1]],Yxe=[3,we,Z_e,0,[dz,oy,Ga],[()=>iwe,2,0],1],Xxe=[3,we,Y_e,0,[dr,aw,Ga,iy],[0,0,0,1],1],Wxe=[3,we,X_e,0,[ZSe,oy,Ga],[()=>awe,2,0]],Jxe=[3,we,J_e,0,[IEe,cEe,aw,_Ee,Ga,iy],[0,2,0,0,0,1]],ewe=[3,we,eEe,0,[EEe,oy,Ga],[()=>cwe,2,0]],twe=[3,we,sEe,0,[aw,Ga,iy],[0,0,1]],nwe=[3,we,rEe,0,[LEe,oy,Ga],[()=>lwe,2,0],1],fw=[3,we,cw,0,[iw,yEe,uz,ay,E_e,qSe,hEe,$_e,pz,rp,DEe,cy],[0,0,0,0,0,1,1,2,0,4,4,()=>ly]],swe=[3,we,mz,0,[x_e,gz,U_e,rp],[0,0,2,4]],rwe=[3,we,TEe,0,[q_e,$Ee],[0,0],2],owe=[3,we,MEe,0,[ry,lw,dr],[0,0,0],2],dw=[3,we,uw,0,[ay,dr,kEe,uz,rp,vEe,hz,cy],[0,0,0,0,4,4,()=>Oxe,()=>ly],5],Nu="unit",iwe=[1,we,zEe,0,()=>Txe],awe=[1,we,UEe,0,()=>Mxe],cwe=[1,we,jEe,0,()=>fw],ly=[1,we,VEe,0,()=>rwe],lwe=[1,we,HEe,0,()=>dw],XMe=[9,we,QSe,0,()=>Dxe,()=>Nu],WMe=[9,we,XSe,0,()=>Pxe,()=>kxe],JMe=[9,we,r_e,0,()=>Nxe,()=>Lxe],eDe=[9,we,c_e,0,()=>$xe,()=>zxe],tDe=[9,we,f_e,0,()=>Bxe,()=>Nu],nDe=[9,we,g_e,0,()=>Uxe,()=>Nu],sDe=[9,we,v_e,0,()=>jxe,()=>Nu],rDe=[9,we,S_e,0,()=>Vxe,()=>Nu],uwe=[9,we,I_e,0,()=>Hxe,()=>qxe],fwe=[9,we,M_e,0,()=>Fxe,()=>Gxe],dwe=[9,we,k_e,0,()=>Kxe,()=>Zxe],pwe=[9,we,G_e,0,()=>Qxe,()=>Yxe],hwe=[9,we,Q_e,0,()=>Xxe,()=>Wxe],mwe=[9,we,tEe,0,()=>Jxe,()=>ewe],gwe=[9,we,nEe,0,()=>twe,()=>nwe],oDe=[9,we,OEe,0,()=>owe,()=>Nu];const ywe=e=>({apiVersion:"2010-05-08",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??HSe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??NSe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Mg}],logger:e?.logger??new Dg,protocol:e?.protocol??U3,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.iam",errorTypeRegistries:Cxe,xmlNamespace:"https://iam.amazonaws.com/doc/2010-05-08/",version:"2010-05-08",serviceTarget:"AWSIdentityManagementV20100508"},serviceId:e?.serviceId??"IAM",urlParser:e?.urlParser??hu,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??$a}),vwe=e=>{const t=oE(e),n=()=>t().then(V_),r=ywe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??U_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??sE({serviceId:r.serviceId,clientVersion:BSe.version}),maxAttempts:e?.maxAttempts??gu,region:e?.region??rE("Region is missing"),requestHandler:Ld.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||X_),sha256:e?.sha256??nE,streamCollector:e?.streamCollector??wg,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(G_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(K_))}},bwe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},Swe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),_we=(e,t)=>{const n=Object.assign(xx(e),H_(e),S_(e),bwe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,wx(n),q_(n),__(n),Swe(n))};class Ewe extends j_{config;constructor(...[t]){const n=vwe(t||{});super(n),this.initConfig=n;const r=$Se(n),i=k_(r),c=eE(i),l=Z_(c),f=l,d=Y_(f),p=LSe(d),v=_we(p,t?.extensions||[]);this.config=v,this.middlewareStack.use(A_(this.config)),this.middlewareStack.use(F_(this.config)),this.middlewareStack.use(tE(this.config)),this.middlewareStack.use(Q_(this.config)),this.middlewareStack.use(E_(this.config)),this.middlewareStack.use(x_(this.config)),this.middlewareStack.use(w_(this.config)),this.middlewareStack.use(R_(this.config,{httpAuthSchemeParametersProvider:PSe,identityProviderConfigProvider:async g=>new P_({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(C_(this.config))}destroy(){super.destroy()}}class xwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetPolicy",{}).n("IAMClient","GetPolicyCommand").sc(uwe).build(){}class wwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetPolicyVersion",{}).n("IAMClient","GetPolicyVersionCommand").sc(fwe).build(){}class Rwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetUser",{}).n("IAMClient","GetUserCommand").sc(dwe).build(){}class Cwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListAccessKeys",{}).n("IAMClient","ListAccessKeysCommand").sc(pwe).build(){}class Awe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListAttachedUserPolicies",{}).n("IAMClient","ListAttachedUserPoliciesCommand").sc(hwe).build(){}class Iwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListPolicies",{}).n("IAMClient","ListPoliciesCommand").sc(mwe).build(){}class Twe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListUsers",{}).n("IAMClient","ListUsersCommand").sc(gwe).build(){}function Owe(e){return t=>async n=>{const{request:r}=n;if(e.expectContinueHeader!==!1&&Qn.isInstance(r)&&r.body&&e.runtime==="node"&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"){let i=!0;if(typeof e.expectContinueHeader=="number")try{i=(Number(r.headers?.["content-length"])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else i=!!e.expectContinueHeader;i&&(r.headers.Expect="100-continue")}return t({...n,request:r})}}const Mwe={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Dwe=e=>({applyToStack:t=>{t.add(Owe(e),Mwe)}}),Sz={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Pwe=Sz.WHEN_SUPPORTED,iDe={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},kwe=Sz.WHEN_SUPPORTED;var wS;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(wS||(wS={}));var kO;(function(e){e.HEADER="header",e.TRAILER="trailer"})(kO||(kO={}));const aDe=wS.CRC32;var cDe=(function(){function e(){this.crc32=new Km}return e.prototype.update=function(t){Gm(t)||this.crc32.update(zc(t))},e.prototype.digest=function(){return Y3(this,void 0,void 0,function(){return X3(this,function(t){return[2,Yee(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Km},e})(),Km=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=tte(t),c=i.next();!c.done;c=i.next()){var l=c.value;this.checksum=this.checksum>>>8^Lwe[(this.checksum^l)&255]}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})(),Nwe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Lwe=Xee(Nwe);const $we=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Is(t??Pwe),responseChecksumValidation:Is(n??kwe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},zwe=e=>(t,n)=>async r=>{const i=await e.region(),c=e.region;let l=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),l=()=>Object.defineProperty(e,"region",{writable:!0,value:c}));try{const f=await t(r);if(n.__s3RegionRedirect){l();const d=await e.region();if(i!==d)throw new Error("Region was not restored following S3 region redirect.")}return f}catch(f){throw l(),f}},Bwe={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function Uwe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){const c=i?.$metadata?.httpStatusCode,l=n.commandName==="HeadBucketCommand",f=i?.$response?.headers?.["x-amz-bucket-region"];if(f&&(c===301||c===400&&(i?.name==="IllegalLocationConstraintException"||l))){try{const d=f;n.logger?.debug(`Redirecting from ${await e.region()} to ${d}`),n.__s3RegionRedirect=d}catch(d){throw new Error("Region redirect failed: "+d)}return t(r)}}throw i}}}const jwe={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},Vwe=e=>({applyToStack:t=>{t.add(Uwe(e),jwe),t.addRelativeTo(zwe(e),Bwe)}});class pw{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){const n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+pw.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const n in this.data){const r=this.data[n];if(!r.isRefreshing){const i=await r.identity;i.expiration&&i.expiration.getTime()(l.expiration?.getTime()??0){i.set(r,new yb(Promise.resolve(p)))})),l)):i.set(r,new yb(this.getIdentity(r))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(i=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+i)});const n=await this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}}const Hwe="Directory",qwe="S3Express",Fwe="sigv4-s3express",RS="X-Amz-S3session-Token",CS=RS.toLowerCase();class Gwe extends bS{async signWithCredentials(t,n,r){const i=NO(n);t.headers[CS]=n.sessionToken;const c=this;return LO(c,i),c.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const i=NO(n);return delete t.headers[CS],t.headers[RS]=n.sessionToken,t.query=t.query??{},t.query[RS]=n.sessionToken,LO(this,i),this.presign(t,r)}}function NO(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function LO(e,t){const n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,i=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=i}const Kwe=e=>(t,n)=>async r=>{if(n.endpointV2){const i=n.endpointV2,c=i.properties?.authSchemes?.[0]?.name===Fwe;if((i.properties?.backend===qwe||i.properties?.bucketType===Hwe)&&(eo(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),c){const f=r.input.Bucket;if(f){const d=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=d,Qn.isInstance(r.request)&&d.sessionToken&&(r.request.headers[CS]=d.sessionToken)}}}return t(r)},Zwe={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Qwe=e=>({applyToStack:t=>{t.add(Kwe(e),Zwe)}}),Ywe=async(e,t,n,r)=>{const i=await r.signWithCredentials(n,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},Xwe=e=>t=>{throw t},Wwe=(e,t)=>{},Jwe=e=>(t,n)=>async r=>{if(!Qn.isInstance(r.request))return t(r);const c=Ro(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c;let p;n.s3ExpressIdentity?p=await Ywe(n.s3ExpressIdentity,l,r.request,await e.signer()):p=await d.sign(r.request,f,l);const v=await t({...r,request:p}).catch((d.errorHandler||Xwe)(l));return(d.successHandler||Wwe)(v.response,l),v},e1e=e=>({applyToStack:t=>{t.addRelativeTo(Jwe(e),r3)}}),t1e=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:c,disableMultiregionAccessPoints:l,followRegionRedirects:f,s3ExpressIdentityProvider:d,bucketEndpoint:p,expectContinueHeader:v}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:c??!1,disableMultiregionAccessPoints:l??!1,followRegionRedirects:f??!1,s3ExpressIdentityProvider:d??new hw(async g=>n().send(new r({Bucket:g}))),bucketEndpoint:p??!1,expectContinueHeader:v??2097152})},n1e={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},s1e=3e3,r1e=e=>(t,n)=>async r=>{const i=await t(r),{response:c}=i;if(!$c.isInstance(c))return i;const{statusCode:l,body:f}=c;if(l<200||l>=300||!(typeof f?.stream=="function"||typeof f?.pipe=="function"||typeof f?.tee=="function"))return i;let p=f,v=f;f&&typeof f=="object"&&!(f instanceof Uint8Array)&&([p,v]=await kX(f)),c.body=v;const g=await o1e(p,{streamCollector:async _=>AX(_,s1e)});typeof p?.destroy=="function"&&p.destroy();const b=e.utf8Encoder(g.subarray(g.length-16));if(g.length===0&&n1e[n.commandName]){const _=new Error("S3 aborted request");throw _.name="InternalError",_}return b&&b.endsWith("")&&(c.statusCode=400),i},o1e=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),i1e={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},mw=e=>({applyToStack:t=>{t.addRelativeTo(r1e(e),i1e)}}),a1e=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function c1e(e){return(t,n)=>async r=>{if(e.bucketEndpoint){const i=n.endpointV2;if(i){const c=r.input.Bucket;if(typeof c=="string")try{const l=new URL(c);n.endpointV2={...i,url:l}}catch(l){const f=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${c} could not be parsed as URL.`;throw n.logger?.constructor?.name==="NoOpLogger"?console.warn(f):n.logger?.warn?.(f),l}}}return t(r)}}const l1e={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function u1e({bucketEndpoint:e}){return t=>async n=>{const{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!a1e(r)&&r.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}const f1e={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},d1e=e=>({applyToStack:t=>{t.add(u1e(e),f1e),t.addRelativeTo(c1e(e),l1e)}}),p1e=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});class _z{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new Gwe(t),this.signerOptions=t}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const gw="required",D="type",ae="rules",U="conditions",X="fn",W="argv",ze="ref",We="assign",Ce="url",Ae="properties",ai="backend",Zn="authSchemes",Mn="disableDoubleEncoding",Dn="signingName",os="signingRegion",Ie="headers",yw="signingRegionSet",h1e=6,m1e=!1,co=!0,ir="isSet",Sn="booleanEquals",Pe="error",Zm="aws.partition",Rt="stringEquals",cn="getAttr",un="name",Yt="substring",$O="bucketSuffix",vw="parseURL",pe="endpoint",ce="tree",Qm="aws.isVirtualHostableS3Bucket",Ym="{url#scheme}://{Bucket}.{url#authority}{url#path}",So="not",zO="accessPointSuffix",fm="{url#scheme}://{url#authority}{url#path}",Ez="hardwareType",xz="regionPrefix",BO="bucketAliasSuffix",AS="outpostId",Wc="isValidHostLabel",bw="sigv4a",Ad="s3-outposts",yu="s3",wz="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",Rz="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",UO="https://{Bucket}.s3.{partitionResult#dnsSuffix}",Cz="aws.parseArn",Az="bucketArn",Iz="arnType",Xm="",Sw="s3-object-lambda",Tz="accesspoint",_w="accessPointName",jO="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",VO="mrapPartition",HO="outpostType",qO="arnPrefix",Oz="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",FO="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",GO="https://s3.{partitionResult#dnsSuffix}",Fl={[gw]:!1,[D]:"string"},Gl={[gw]:!0,default:!1,[D]:"boolean"},Wf={[gw]:!1,[D]:"boolean"},Or={[X]:Sn,[W]:[{[ze]:"Accelerate"},!0]},Wt={[X]:Sn,[W]:[{[ze]:"UseFIPS"},!0]},Zt={[X]:Sn,[W]:[{[ze]:"UseDualStack"},!0]},vn={[X]:ir,[W]:[{[ze]:"Endpoint"}]},Mz={[X]:Zm,[W]:[{[ze]:"Region"}],[We]:"partitionResult"},KO={[X]:Rt,[W]:[{[X]:cn,[W]:[{[ze]:"partitionResult"},un]},"aws-cn"]},ld={[X]:ir,[W]:[{[ze]:"Bucket"}]},_t={[ze]:"Bucket"},ZO={[U]:[Or],[Pe]:"S3Express does not support S3 Accelerate.",[D]:Pe},QO={[U]:[vn,{[X]:vw,[W]:[{[ze]:"Endpoint"}],[We]:"url"}],[ae]:[{[U]:[{[X]:ir,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:Sn,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],[ae]:[{[U]:[{[X]:Sn,[W]:[{[X]:cn,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[_t],[We]:"uri_encoded_bucket"}],[ae]:[{[pe]:{[Ce]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[{[X]:Qm,[W]:[_t,!1]}],[ae]:[{[pe]:{[Ce]:Ym,[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce},{[Pe]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Pe}],[D]:ce},{[U]:[{[X]:Sn,[W]:[{[X]:cn,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[_t],[We]:"uri_encoded_bucket"}],[ae]:[{[pe]:{[Ce]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[{[X]:Qm,[W]:[_t,!1]}],[ae]:[{[pe]:{[Ce]:Ym,[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce},{[Pe]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Pe}],[D]:ce},ws={[X]:vw,[W]:[{[ze]:"Endpoint"}],[We]:"url"},vb={[X]:Sn,[W]:[{[X]:cn,[W]:[{[ze]:"url"},"isIp"]},!0]},Dz={[ze]:"url"},Pz={[X]:"uriEncode",[W]:[_t],[We]:"uri_encoded_bucket"},sr={[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:"s3express",[os]:"{Region}"}]},qe={},kz={[X]:Qm,[W]:[_t,!1]},YO={[Pe]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Pe},XO={[X]:ir,[W]:[{[ze]:"UseS3ExpressControlEndpoint"}]},WO={[X]:Sn,[W]:[{[ze]:"UseS3ExpressControlEndpoint"},!0]},Ye={[X]:So,[W]:[vn]},ft={[X]:Sn,[W]:[{[ze]:"UseDualStack"},!1]},st={[X]:Sn,[W]:[{[ze]:"UseFIPS"},!1]},Xh={[Pe]:"Unrecognized S3Express bucket name format.",[D]:Pe},JO={[X]:So,[W]:[ld]},eM={[ze]:Ez},tM={[U]:[Ye],[Pe]:"Expected a endpoint to be specified but no endpoint was found",[D]:Pe},Wh={[Zn]:[{[Mn]:!0,[un]:bw,[Dn]:Ad,[yw]:["*"]},{[Mn]:!0,[un]:"sigv4",[Dn]:Ad,[os]:"{Region}"}]},bb={[X]:Sn,[W]:[{[ze]:"ForcePathStyle"},!1]},g1e={[ze]:"ForcePathStyle"},Tn={[X]:Sn,[W]:[{[ze]:"Accelerate"},!1]},zn={[X]:Rt,[W]:[{[ze]:"Region"},"aws-global"]},jn={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"us-east-1"}]},gt={[X]:So,[W]:[zn]},Vn={[X]:Sn,[W]:[{[ze]:"UseGlobalEndpoint"},!0]},nM={[Ce]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"{Region}"}]},[Ie]:{}},kn={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"{Region}"}]},Hn={[X]:Sn,[W]:[{[ze]:"UseGlobalEndpoint"},!1]},sM={[Ce]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},rM={[Ce]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},oM={[Ce]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Sb={[X]:Sn,[W]:[{[X]:cn,[W]:[Dz,"isIp"]},!1]},_b={[Ce]:wz,[Ae]:kn,[Ie]:{}},IS={[Ce]:Ym,[Ae]:kn,[Ie]:{}},iM={[pe]:IS,[D]:pe},Eb={[Ce]:Rz,[Ae]:kn,[Ie]:{}},aM={[Ce]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Jh={[Pe]:"Invalid region: region was not a valid DNS name.",[D]:Pe},Hs={[ze]:Az},Nz={[ze]:Iz},xb={[X]:cn,[W]:[Hs,"service"]},Ew={[ze]:_w},cM={[U]:[Zt],[Pe]:"S3 Object Lambda does not support Dual-stack",[D]:Pe},lM={[U]:[Or],[Pe]:"S3 Object Lambda does not support S3 Accelerate",[D]:Pe},uM={[U]:[{[X]:ir,[W]:[{[ze]:"DisableAccessPoints"}]},{[X]:Sn,[W]:[{[ze]:"DisableAccessPoints"},!0]}],[Pe]:"Access points are not supported for this operation",[D]:Pe},wb={[U]:[{[X]:ir,[W]:[{[ze]:"UseArnRegion"}]},{[X]:Sn,[W]:[{[ze]:"UseArnRegion"},!1]},{[X]:So,[W]:[{[X]:Rt,[W]:[{[X]:cn,[W]:[Hs,"region"]},"{Region}"]}]}],[Pe]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[D]:Pe},Lz={[X]:cn,[W]:[{[ze]:"bucketPartition"},un]},$z={[X]:cn,[W]:[Hs,"accountId"]},Rb={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:Sw,[os]:"{bucketArn#region}"}]},fM={[Pe]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[D]:Pe},Cb={[Pe]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[D]:Pe},Ab={[Pe]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[D]:Pe},Ib={[Pe]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[D]:Pe},dM={[Pe]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[D]:Pe},pM={[Pe]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[D]:Pe},Jf={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"{bucketArn#region}"}]},hM={[Zn]:[{[Mn]:!0,[un]:bw,[Dn]:Ad,[yw]:["*"]},{[Mn]:!0,[un]:"sigv4",[Dn]:Ad,[os]:"{bucketArn#region}"}]},mM={[X]:Cz,[W]:[_t]},gM={[Ce]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},yM={[Ce]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},vM={[Ce]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},Tb={[Ce]:Oz,[Ae]:kn,[Ie]:{}},bM={[Ce]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},SM={[ze]:"UseObjectLambdaEndpoint"},Ob={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:Sw,[os]:"{Region}"}]},_M={[Ce]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},EM={[Ce]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},xM={[Ce]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Mb={[Ce]:fm,[Ae]:kn,[Ie]:{}},wM={[Ce]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Db=[{[ze]:"Region"}],y1e=[{[ze]:"Endpoint"}],v1e=[_t],Pb=[Or],Kl=[vn,ws],RM=[{[X]:ir,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:Sn,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],b1e=[Pz],kb=[kz],Tr=[Mz],Nb=[Wt,Zt],ud=[Wt,ft],fd=[st,Zt],dd=[st,ft],CM=[{[X]:Yt,[W]:[_t,6,14,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,14,16,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],lo=[{[U]:[Wt,Zt],[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe},{[U]:ud,[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe},{[U]:fd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe},{[U]:dd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe}],AM=[{[X]:Yt,[W]:[_t,6,15,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],IM=[{[X]:Yt,[W]:[_t,6,19,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,19,21,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],TM=[{[X]:Yt,[W]:[_t,6,20,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],OM=[{[X]:Yt,[W]:[_t,6,26,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,26,28,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],uo=[{[U]:[Wt,Zt],[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:ud,[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:fd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:dd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],MM=[_t,0,7,!0],DM=[{[X]:Yt,[W]:[_t,7,15,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],PM=[{[X]:Yt,[W]:[_t,7,16,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,16,18,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],kM=[{[X]:Yt,[W]:[_t,7,20,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],NM=[{[X]:Yt,[W]:[_t,7,21,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,21,23,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],LM=[{[X]:Yt,[W]:[_t,7,27,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,27,29,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],S1e=[ld],$M=[{[X]:Wc,[W]:[{[ze]:AS},!1]}],zM=[{[X]:Rt,[W]:[{[ze]:xz},"beta"]}],_1e=["*"],BM=[{[X]:Wc,[W]:[{[ze]:"Region"},!1]}],pa=[{[X]:Rt,[W]:[{[ze]:"Region"},"us-east-1"]}],Lb=[{[X]:Rt,[W]:[Nz,Tz]}],UM=[{[X]:cn,[W]:[Hs,"resourceId[1]"],[We]:_w},{[X]:So,[W]:[{[X]:Rt,[W]:[Ew,Xm]}]}],E1e=[Hs,"resourceId[1]"],jM=[Zt],$b=[{[X]:So,[W]:[{[X]:Rt,[W]:[{[X]:cn,[W]:[Hs,"region"]},Xm]}]}],VM=[{[X]:So,[W]:[{[X]:ir,[W]:[{[X]:cn,[W]:[Hs,"resourceId[2]"]}]}]}],x1e=[Hs,"resourceId[2]"],zb=[{[X]:Zm,[W]:[{[X]:cn,[W]:[Hs,"region"]}],[We]:"bucketPartition"}],HM=[{[X]:Rt,[W]:[Lz,{[X]:cn,[W]:[{[ze]:"partitionResult"},un]}]}],Bb=[{[X]:Wc,[W]:[{[X]:cn,[W]:[Hs,"region"]},!0]}],Ub=[{[X]:Wc,[W]:[$z,!1]}],qM=[{[X]:Wc,[W]:[Ew,!1]}],em=[Wt],FM=[{[X]:Wc,[W]:[{[ze]:"Region"},!0]}],w1e={parameters:{Bucket:Fl,Region:Fl,UseFIPS:Gl,UseDualStack:Gl,Endpoint:Fl,ForcePathStyle:Gl,Accelerate:Gl,UseGlobalEndpoint:Gl,UseObjectLambdaEndpoint:Wf,Key:Fl,Prefix:Fl,CopySource:Fl,DisableAccessPoints:Wf,DisableMultiRegionAccessPoints:Gl,UseArnRegion:Wf,UseS3ExpressControlEndpoint:Wf,DisableS3ExpressSessionAuth:Wf},[ae]:[{[U]:[{[X]:ir,[W]:Db}],[ae]:[{[U]:[Or,Wt],error:"Accelerate cannot be used with FIPS",[D]:Pe},{[U]:[Zt,vn],error:"Cannot set dual-stack in combination with a custom endpoint.",[D]:Pe},{[U]:[vn,Wt],error:"A custom endpoint cannot be combined with FIPS",[D]:Pe},{[U]:[vn,Or],error:"A custom endpoint cannot be combined with S3 Accelerate",[D]:Pe},{[U]:[Wt,Mz,KO],error:"Partition does not support FIPS",[D]:Pe},{[U]:[ld,{[X]:Yt,[W]:[_t,0,h1e,co],[We]:$O},{[X]:Rt,[W]:[{[ze]:$O},"--x-s3"]}],[ae]:[ZO,QO,{[U]:[XO,WO],[ae]:[{[U]:Tr,[ae]:[{[U]:[Pz,Ye],[ae]:[{[U]:Nb,endpoint:{[Ce]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:dd,endpoint:{[Ce]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:kb,[ae]:[{[U]:Tr,[ae]:[{[U]:RM,[ae]:[{[U]:CM,[ae]:lo,[D]:ce},{[U]:AM,[ae]:lo,[D]:ce},{[U]:IM,[ae]:lo,[D]:ce},{[U]:TM,[ae]:lo,[D]:ce},{[U]:OM,[ae]:lo,[D]:ce},Xh],[D]:ce},{[U]:CM,[ae]:uo,[D]:ce},{[U]:AM,[ae]:uo,[D]:ce},{[U]:IM,[ae]:uo,[D]:ce},{[U]:TM,[ae]:uo,[D]:ce},{[U]:OM,[ae]:uo,[D]:ce},Xh],[D]:ce}],[D]:ce},YO],[D]:ce},{[U]:[ld,{[X]:Yt,[W]:MM,[We]:zO},{[X]:Rt,[W]:[{[ze]:zO},"--xa-s3"]}],[ae]:[ZO,QO,{[U]:kb,[ae]:[{[U]:Tr,[ae]:[{[U]:RM,[ae]:[{[U]:DM,[ae]:lo,[D]:ce},{[U]:PM,[ae]:lo,[D]:ce},{[U]:kM,[ae]:lo,[D]:ce},{[U]:NM,[ae]:lo,[D]:ce},{[U]:LM,[ae]:lo,[D]:ce},Xh],[D]:ce},{[U]:DM,[ae]:uo,[D]:ce},{[U]:PM,[ae]:uo,[D]:ce},{[U]:kM,[ae]:uo,[D]:ce},{[U]:NM,[ae]:uo,[D]:ce},{[U]:LM,[ae]:uo,[D]:ce},Xh],[D]:ce}],[D]:ce},YO],[D]:ce},{[U]:[JO,XO,WO],[ae]:[{[U]:Tr,[ae]:[{[U]:Kl,endpoint:{[Ce]:fm,[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:Nb,endpoint:{[Ce]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:dd,endpoint:{[Ce]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[ld,{[X]:Yt,[W]:[_t,49,50,co],[We]:Ez},{[X]:Yt,[W]:[_t,8,12,co],[We]:xz},{[X]:Yt,[W]:MM,[We]:BO},{[X]:Yt,[W]:[_t,32,49,co],[We]:AS},{[X]:Zm,[W]:Db,[We]:"regionPartition"},{[X]:Rt,[W]:[{[ze]:BO},"--op-s3"]}],[ae]:[{[U]:$M,[ae]:[{[U]:kb,[ae]:[{[U]:[{[X]:Rt,[W]:[eM,"e"]}],[ae]:[{[U]:zM,[ae]:[tM,{[U]:Kl,endpoint:{[Ce]:"https://{Bucket}.ec2.{url#authority}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{endpoint:{[Ce]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{[U]:[{[X]:Rt,[W]:[eM,"o"]}],[ae]:[{[U]:zM,[ae]:[tM,{[U]:Kl,endpoint:{[Ce]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{endpoint:{[Ce]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[D]:Pe}],[D]:ce},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[D]:Pe}],[D]:ce},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[D]:Pe}],[D]:ce},{[U]:S1e,[ae]:[{[U]:[vn,{[X]:So,[W]:[{[X]:ir,[W]:[{[X]:vw,[W]:y1e}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[D]:Pe},{[U]:[bb,kz],[ae]:[{[U]:Tr,[ae]:[{[U]:BM,[ae]:[{[U]:[Or,KO],error:"S3 Accelerate cannot be used in this region",[D]:Pe},{[U]:[Zt,Wt,Tn,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,Wt,Tn,Ye,gt,Vn],[ae]:[{endpoint:nM,[D]:pe}],[D]:ce},{[U]:[Zt,Wt,Tn,Ye,gt,Hn],endpoint:nM,[D]:pe},{[U]:[ft,Wt,Tn,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,Wt,Tn,Ye,gt,Vn],[ae]:[{endpoint:sM,[D]:pe}],[D]:ce},{[U]:[ft,Wt,Tn,Ye,gt,Hn],endpoint:sM,[D]:pe},{[U]:[Zt,st,Or,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,st,Or,Ye,gt,Vn],[ae]:[{endpoint:rM,[D]:pe}],[D]:ce},{[U]:[Zt,st,Or,Ye,gt,Hn],endpoint:rM,[D]:pe},{[U]:[Zt,st,Tn,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,st,Tn,Ye,gt,Vn],[ae]:[{endpoint:oM,[D]:pe}],[D]:ce},{[U]:[Zt,st,Tn,Ye,gt,Hn],endpoint:oM,[D]:pe},{[U]:[ft,st,Tn,vn,ws,vb,zn],endpoint:{[Ce]:wz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,vn,ws,Sb,zn],endpoint:{[Ce]:Ym,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,vn,ws,vb,gt,Vn],[ae]:[{[U]:pa,endpoint:_b,[D]:pe},{endpoint:_b,[D]:pe}],[D]:ce},{[U]:[ft,st,Tn,vn,ws,Sb,gt,Vn],[ae]:[{[U]:pa,endpoint:IS,[D]:pe},iM],[D]:ce},{[U]:[ft,st,Tn,vn,ws,vb,gt,Hn],endpoint:_b,[D]:pe},{[U]:[ft,st,Tn,vn,ws,Sb,gt,Hn],endpoint:IS,[D]:pe},{[U]:[ft,st,Or,Ye,zn],endpoint:{[Ce]:Rz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Or,Ye,gt,Vn],[ae]:[{[U]:pa,endpoint:Eb,[D]:pe},{endpoint:Eb,[D]:pe}],[D]:ce},{[U]:[ft,st,Or,Ye,gt,Hn],endpoint:Eb,[D]:pe},{[U]:[ft,st,Tn,Ye,zn],endpoint:{[Ce]:UO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,Ye,gt,Vn],[ae]:[{[U]:pa,endpoint:{[Ce]:UO,[Ae]:kn,[Ie]:qe},[D]:pe},{endpoint:aM,[D]:pe}],[D]:ce},{[U]:[ft,st,Tn,Ye,gt,Hn],endpoint:aM,[D]:pe}],[D]:ce},Jh],[D]:ce}],[D]:ce},{[U]:[vn,ws,{[X]:Rt,[W]:[{[X]:cn,[W]:[Dz,"scheme"]},"http"]},{[X]:Qm,[W]:[_t,co]},bb,st,ft,Tn],[ae]:[{[U]:Tr,[ae]:[{[U]:BM,[ae]:[iM],[D]:ce},Jh],[D]:ce}],[D]:ce},{[U]:[bb,{[X]:Cz,[W]:v1e,[We]:Az}],[ae]:[{[U]:[{[X]:cn,[W]:[Hs,"resourceId[0]"],[We]:Iz},{[X]:So,[W]:[{[X]:Rt,[W]:[Nz,Xm]}]}],[ae]:[{[U]:[{[X]:Rt,[W]:[xb,Sw]}],[ae]:[{[U]:Lb,[ae]:[{[U]:UM,[ae]:[cM,lM,{[U]:$b,[ae]:[uM,{[U]:VM,[ae]:[wb,{[U]:zb,[ae]:[{[U]:Tr,[ae]:[{[U]:HM,[ae]:[{[U]:Bb,[ae]:[{[U]:[{[X]:Rt,[W]:[$z,Xm]}],error:"Invalid ARN: Missing account id",[D]:Pe},{[U]:Ub,[ae]:[{[U]:qM,[ae]:[{[U]:Kl,endpoint:{[Ce]:jO,[Ae]:Rb,[Ie]:qe},[D]:pe},{[U]:em,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Rb,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Rb,[Ie]:qe},[D]:pe}],[D]:ce},fM],[D]:ce},Cb],[D]:ce},Ab],[D]:ce},Ib],[D]:ce}],[D]:ce}],[D]:ce},dM],[D]:ce},{error:"Invalid ARN: bucket ARN is missing a region",[D]:Pe}],[D]:ce},pM],[D]:ce},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[D]:Pe}],[D]:ce},{[U]:Lb,[ae]:[{[U]:UM,[ae]:[{[U]:$b,[ae]:[{[U]:Lb,[ae]:[{[U]:$b,[ae]:[uM,{[U]:VM,[ae]:[wb,{[U]:zb,[ae]:[{[U]:Tr,[ae]:[{[U]:[{[X]:Rt,[W]:[Lz,"{partitionResult#name}"]}],[ae]:[{[U]:Bb,[ae]:[{[U]:[{[X]:Rt,[W]:[xb,yu]}],[ae]:[{[U]:Ub,[ae]:[{[U]:qM,[ae]:[{[U]:Pb,error:"Access Points do not support S3 Accelerate",[D]:Pe},{[U]:Nb,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Jf,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Jf,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Jf,[Ie]:qe},[D]:pe},{[U]:[st,ft,vn,ws],endpoint:{[Ce]:jO,[Ae]:Jf,[Ie]:qe},[D]:pe},{[U]:dd,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Jf,[Ie]:qe},[D]:pe}],[D]:ce},fM],[D]:ce},Cb],[D]:ce},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[D]:Pe}],[D]:ce},Ab],[D]:ce},Ib],[D]:ce}],[D]:ce}],[D]:ce},dM],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:Wc,[W]:[Ew,co]}],[ae]:[{[U]:jM,error:"S3 MRAP does not support dual-stack",[D]:Pe},{[U]:em,error:"S3 MRAP does not support FIPS",[D]:Pe},{[U]:Pb,error:"S3 MRAP does not support S3 Accelerate",[D]:Pe},{[U]:[{[X]:Sn,[W]:[{[ze]:"DisableMultiRegionAccessPoints"},co]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[D]:Pe},{[U]:[{[X]:Zm,[W]:Db,[We]:VO}],[ae]:[{[U]:[{[X]:Rt,[W]:[{[X]:cn,[W]:[{[ze]:VO},un]},{[X]:cn,[W]:[Hs,"partition"]}]}],[ae]:[{endpoint:{[Ce]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Ae]:{[Zn]:[{[Mn]:co,name:bw,[Dn]:yu,[yw]:_1e}]},[Ie]:qe},[D]:pe}],[D]:ce},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[D]:Pe}],[D]:ce}],[D]:ce},{error:"Invalid Access Point Name",[D]:Pe}],[D]:ce},pM],[D]:ce},{[U]:[{[X]:Rt,[W]:[xb,Ad]}],[ae]:[{[U]:jM,error:"S3 Outposts does not support Dual-stack",[D]:Pe},{[U]:em,error:"S3 Outposts does not support FIPS",[D]:Pe},{[U]:Pb,error:"S3 Outposts does not support S3 Accelerate",[D]:Pe},{[U]:[{[X]:ir,[W]:[{[X]:cn,[W]:[Hs,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[D]:Pe},{[U]:[{[X]:cn,[W]:E1e,[We]:AS}],[ae]:[{[U]:$M,[ae]:[wb,{[U]:zb,[ae]:[{[U]:Tr,[ae]:[{[U]:HM,[ae]:[{[U]:Bb,[ae]:[{[U]:Ub,[ae]:[{[U]:[{[X]:cn,[W]:x1e,[We]:HO}],[ae]:[{[U]:[{[X]:cn,[W]:[Hs,"resourceId[3]"],[We]:_w}],[ae]:[{[U]:[{[X]:Rt,[W]:[{[ze]:HO},Tz]}],[ae]:[{[U]:Kl,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Ae]:hM,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:hM,[Ie]:qe},[D]:pe}],[D]:ce},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[D]:Pe}],[D]:ce},{error:"Invalid ARN: expected an access point name",[D]:Pe}],[D]:ce},{error:"Invalid ARN: Expected a 4-component resource",[D]:Pe}],[D]:ce},Cb],[D]:ce},Ab],[D]:ce},Ib],[D]:ce}],[D]:ce}],[D]:ce},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[D]:Pe}],[D]:ce},{error:"Invalid ARN: The Outpost Id was not set",[D]:Pe}],[D]:ce},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[D]:Pe}],[D]:ce},{error:"Invalid ARN: No ARN type specified",[D]:Pe}],[D]:ce},{[U]:[{[X]:Yt,[W]:[_t,0,4,m1e],[We]:qO},{[X]:Rt,[W]:[{[ze]:qO},"arn:"]},{[X]:So,[W]:[{[X]:ir,[W]:[mM]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[D]:Pe},{[U]:[{[X]:Sn,[W]:[g1e,co]},mM],error:"Path-style addressing cannot be used with ARN buckets",[D]:Pe},{[U]:b1e,[ae]:[{[U]:Tr,[ae]:[{[U]:[Tn],[ae]:[{[U]:[Zt,Ye,Wt,zn],endpoint:{[Ce]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,Ye,Wt,gt,Vn],[ae]:[{endpoint:gM,[D]:pe}],[D]:ce},{[U]:[Zt,Ye,Wt,gt,Hn],endpoint:gM,[D]:pe},{[U]:[ft,Ye,Wt,zn],endpoint:{[Ce]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,Ye,Wt,gt,Vn],[ae]:[{endpoint:yM,[D]:pe}],[D]:ce},{[U]:[ft,Ye,Wt,gt,Hn],endpoint:yM,[D]:pe},{[U]:[Zt,Ye,st,zn],endpoint:{[Ce]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,Ye,st,gt,Vn],[ae]:[{endpoint:vM,[D]:pe}],[D]:ce},{[U]:[Zt,Ye,st,gt,Hn],endpoint:vM,[D]:pe},{[U]:[ft,vn,ws,st,zn],endpoint:{[Ce]:Oz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,vn,ws,st,gt,Vn],[ae]:[{[U]:pa,endpoint:Tb,[D]:pe},{endpoint:Tb,[D]:pe}],[D]:ce},{[U]:[ft,vn,ws,st,gt,Hn],endpoint:Tb,[D]:pe},{[U]:[ft,Ye,st,zn],endpoint:{[Ce]:FO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,Ye,st,gt,Vn],[ae]:[{[U]:pa,endpoint:{[Ce]:FO,[Ae]:kn,[Ie]:qe},[D]:pe},{endpoint:bM,[D]:pe}],[D]:ce},{[U]:[ft,Ye,st,gt,Hn],endpoint:bM,[D]:pe}],[D]:ce},{error:"Path-style addressing cannot be used with S3 Accelerate",[D]:Pe}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:ir,[W]:[SM]},{[X]:Sn,[W]:[SM,co]}],[ae]:[{[U]:Tr,[ae]:[{[U]:FM,[ae]:[cM,lM,{[U]:Kl,endpoint:{[Ce]:fm,[Ae]:Ob,[Ie]:qe},[D]:pe},{[U]:em,endpoint:{[Ce]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:Ob,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Ae]:Ob,[Ie]:qe},[D]:pe}],[D]:ce},Jh],[D]:ce}],[D]:ce},{[U]:[JO],[ae]:[{[U]:Tr,[ae]:[{[U]:FM,[ae]:[{[U]:[Wt,Zt,Ye,zn],endpoint:{[Ce]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Wt,Zt,Ye,gt,Vn],[ae]:[{endpoint:_M,[D]:pe}],[D]:ce},{[U]:[Wt,Zt,Ye,gt,Hn],endpoint:_M,[D]:pe},{[U]:[Wt,ft,Ye,zn],endpoint:{[Ce]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Wt,ft,Ye,gt,Vn],[ae]:[{endpoint:EM,[D]:pe}],[D]:ce},{[U]:[Wt,ft,Ye,gt,Hn],endpoint:EM,[D]:pe},{[U]:[st,Zt,Ye,zn],endpoint:{[Ce]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,Zt,Ye,gt,Vn],[ae]:[{endpoint:xM,[D]:pe}],[D]:ce},{[U]:[st,Zt,Ye,gt,Hn],endpoint:xM,[D]:pe},{[U]:[st,ft,vn,ws,zn],endpoint:{[Ce]:fm,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,ft,vn,ws,gt,Vn],[ae]:[{[U]:pa,endpoint:Mb,[D]:pe},{endpoint:Mb,[D]:pe}],[D]:ce},{[U]:[st,ft,vn,ws,gt,Hn],endpoint:Mb,[D]:pe},{[U]:[st,ft,Ye,zn],endpoint:{[Ce]:GO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,ft,Ye,gt,Vn],[ae]:[{[U]:pa,endpoint:{[Ce]:GO,[Ae]:kn,[Ie]:qe},[D]:pe},{endpoint:wM,[D]:pe}],[D]:ce},{[U]:[st,ft,Ye,gt,Hn],endpoint:wM,[D]:pe}],[D]:ce},Jh],[D]:ce}],[D]:ce}],[D]:ce},{error:"A region must be set when sending requests to S3.",[D]:Pe}]},R1e=w1e,C1e=new N_({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),zz=(e,t={})=>C1e.get(e,()=>$_(R1e,{endpointParams:e,logger:t.logger}));pu.aws=Og;const A1e=e=>async(t,n,r)=>{if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const i=await e(t,n,r),c=Ro(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c)throw new Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);const l=await q3(r,{getEndpointParameterInstructions:c},t);return Object.assign(i,l)},I1e=async(e,t,n)=>({operation:Ro(t).operation,region:await Is(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),T1e=A1e(I1e);function Bz(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function Uz(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const O1e=(e,t,n)=>i=>{const l=e(i).properties?.authSchemes;if(!l)return t(i);const f=[];for(const d of l){const{name:p,properties:v={},...g}=d,b=p.toLowerCase();p!==b&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${b}'`);let _;if(b==="sigv4a"){_="aws.auth#sigv4a";const R=l.find(C=>{const T=C.name.toLowerCase();return T!=="sigv4a"&&T.startsWith("sigv4")});if(_z.sigv4aDependency()==="none"&&R)continue}else if(b.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${b}'`);const E=n[_];if(!E)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);const x=E(i);x.schemeId=_,x.signingProperties={...x.signingProperties||{},...g,...v},f.push(x)}return f},M1e=e=>{const t=[];switch(e.operation){default:t.push(Bz(e)),t.push(Uz(e))}return t},D1e=O1e(zz,M1e,{"aws.auth#sigv4":Bz,"aws.auth#sigv4a":Uz}),P1e=e=>{const t=B_(e),n=oJ(t);return Object.assign(n,{authSchemePreference:Is(e.authSchemePreference??[])})},k1e=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??{}}),xw={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"}};class Yn extends Ea{constructor(t){super(t),Object.setPrototypeOf(this,Yn.prototype)}}class ww extends Yn{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,ww.prototype)}}class Rw extends Yn{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,Rw.prototype)}}class Cw extends Yn{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Cw.prototype)}}class Aw extends Yn{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,Aw.prototype)}}class Iw extends Yn{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,Iw.prototype)}}class Tw extends Yn{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,Tw.prototype)}}class Ow extends Yn{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,Ow.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class Mw extends Yn{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,Mw.prototype)}}class Dw extends Yn{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,Dw.prototype)}}class Pw extends Yn{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,Pw.prototype)}}class kw extends Yn{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,kw.prototype)}}class Nw extends Yn{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,Nw.prototype)}}class Lw extends Yn{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,Lw.prototype)}}class $w extends Yn{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,$w.prototype)}}class zw extends Yn{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,zw.prototype)}}const Bw="ACL",N1e="AccessDenied",L1e="AbortDate",GM="AccessKeyId",$1e="AbortMultipartUpload",z1e="AbortMultipartUploadOutput",B1e="AbortMultipartUploadRequest",U1e="AcceptRanges",j1e="AbortRuleId",V1e="AccessTier",cs="Bucket",jz="BucketArn",H1e="BucketAlreadyExists",q1e="BucketAlreadyOwnedByYou",F1e="BypassGovernanceRetention",G1e="BucketInfo",Si="BucketKeyEnabled",Vz="BucketRegion",Uw="Body",Hz="Buckets",Lu="ChecksumAlgorithm",K1e="CreateBucket",TS="CreateBucketConfiguration",Z1e="CreateBucketOutput",Q1e="CreateBucketRequest",jw="CacheControl",Ka="ChecksumCRC32",Za="ChecksumCRC32C",Qa="ChecksumCRC64NVME",Vw="Cache-Control",Y1e="CreationDate",Hw="Content-Disposition",qw="ContentDisposition",Fw="Content-Encoding",Gw="ContentEncoding",Kw="ContentLanguage",Zw="Content-Language",Qw="Content-Length",Yw="ContentLength",Xw="Content-MD5",Ww="ContentMD5",X1e="CompletedMultipartUpload",W1e="CompleteMultipartUploadOutput",J1e="CreateMultipartUploadOutput",eRe="CompleteMultipartUploadResult",tRe="CompleteMultipartUploadRequest",nRe="CreateMultipartUploadRequest",qz="CompleteMultipartUpload",sRe="CreateMultipartUpload",rRe="ChecksumMode",oRe="CommonPrefix",iRe="CommonPrefixList",aRe="CompletedPartList",cRe="CompletedPart",lRe="CommonPrefixes",uRe="ContentRange",fRe="Content-Range",Ya="ChecksumSHA1",Xa="ChecksumSHA256",dRe="CreateSessionOutput",pRe="CreateSessionResult",hRe="CreateSessionRequest",mRe="CreateSession",Jc="ChecksumType",Jw="Content-Type",e1="ContentType",uy="ContinuationToken",gRe="Contents",KM="Credentials",Fz="DeleteMarker",yRe="DisplayName",vRe="DeleteObjectOutput",bRe="DeleteObjectRequest",SRe="DeleteObject",_Re="DataRedundancy",Gz="Delimiter",Id="Expiration",_i="ExpectedBucketOwner",ZM="ExpiresString",ERe="EncryptionTypeMismatch",pi="ETag",Kz="EncodingType",vu="Expires",xRe="FetchOwner",t1="GrantFullControl",wRe="GetObject",RRe="GetObjectOutput",CRe="GetObjectRequest",n1="GrantRead",s1="GrantReadACP",ARe="GrantWrite",r1="GrantWriteACP",IRe="ID",fy="IfMatch",TRe="IfMatchInitiatedTime",ORe="IfMatchLastModifiedTime",MRe="IfMatchSize",DRe="If-Modified-Since",PRe="IfModifiedSince",kRe="InitiateMultipartUploadResult",dy="If-Match",o1="IfNoneMatch",i1="If-None-Match",NRe="InvalidObjectState",LRe="IdempotencyParameterMismatch",$Re="InvalidRequest",zRe="IsRestoreInProgress",BRe="IsTruncated",URe="IfUnmodifiedSince",jRe="If-Unmodified-Since",VRe="InvalidWriteOffset",qr="Key",HRe="KeyCount",Wm="Location",qRe="ListAllMyBucketsResult",FRe="ListBuckets",GRe="ListBucketsOutput",KRe="ListBucketsRequest",ZRe="ListBucketResult",QRe="LocationConstraint",YRe="LocationInfo",Zz="LastModified",XRe="Last-Modified",WRe="ListObjectsV2",JRe="ListObjectsV2Output",eCe="ListObjectsV2Request",a1="Metadata",tCe="MaxBuckets",nCe="MFA",Qz="MaxKeys",sCe="MissingMeta",rCe="MpuObjectSize",oCe="MultipartUpload",c1="Name",iCe="NextContinuationToken",aCe="NotFound",cCe="NoSuchBucket",lCe="NoSuchKey",uCe="NoSuchUpload",l1="Owner",fCe="ObjectAlreadyInActiveTierError",dCe="ObjectLockEnabledForBucket",u1="ObjectLockLegalHoldStatus",f1="ObjectLockMode",d1="ObjectLockRetainUntilDate",pCe="ObjectList",hCe="ObjectNotInActiveTierError",mCe="ObjectOwnership",gCe="OptionalObjectAttributes",yCe="Object",ip="Prefix",vCe="PartsCount",p1="PartNumber",bCe="PutObject",SCe="PutObjectOutput",_Ce="PutObjectRequest",ECe="PutObjectTagging",xCe="PutObjectTaggingOutput",wCe="PutObjectTaggingRequest",RCe="Parts",CCe="Part",Wa="RequestCharged",ACe="ResponseCacheControl",ICe="ResponseContentDisposition",TCe="ResponseContentEncoding",OCe="ResponseContentLanguage",MCe="ResponseContentType",DCe="ResponseExpires",PCe="RestoreExpiryDate",Ei="RequestPayer",kCe="ReplicationStatus",Yz="RestoreStatus",QM="Range",NCe="Restore",Xz="StartAfter",YM="SecretAccessKey",LCe="StreamingBlob",ap="StorageClass",$Ce="SessionCredentialValue",zCe="SessionCredentials",BCe="SessionMode",xi="ServerSideEncryption",wi="SSECustomerAlgorithm",$u="SSECustomerKey",Ri="SSECustomerKeyMD5",el="SSEKMSEncryptionContext",Do="SSEKMSKeyId",XM="SessionToken",Wz="Size",UCe="Tags",jCe="TagCount",VCe="TooManyParts",Jz="TagSet",eB="Tag",Td="Tagging",tB="Type",py="UploadId",HCe="UploadPart",qCe="UploadPartOutput",FCe="UploadPartRequest",GCe="Value",Ja="VersionId",KCe="WriteOffsetBytes",h1="WebsiteRedirectLocation",ZCe="accept-ranges",QCe="bucket-region",Os="client",nB="continuation-token",YCe="delimiter",Ms="error",XCe="encoding-type",WCe="fetch-owner",Fr="http",hy="httpChecksum",Zs="httpError",L="httpHeader",m1="httpPayload",g1="httpPrefixHeaders",nn="httpQuery",JCe="max-buckets",eAe="max-keys",sB="prefix",rB="partNumber",tAe="response-cache-control",nAe="response-content-disposition",sAe="response-content-encoding",rAe="response-content-language",oAe="response-content-type",iAe="response-expires",oB="smithy.ts.sdk.synthetic.com.amazonaws.s3",aAe="start-after",cAe="streaming",y1="uploadId",v1="versionId",Jm="xmlFlattened",is="xmlName",b1="x-amz-acl",lAe="x-amz-abort-date",uAe="x-amz-abort-rule-id",fAe="x-amz-bucket-arn",dAe="x-amz-bypass-governance-retention",pAe="x-amz-bucket-object-lock-enabled",iB="x-amz-checksum-algorithm",zu="x-amz-checksum-crc32",Bu="x-amz-checksum-crc32c",Uu="x-amz-checksum-crc64nvme",hAe="x-amz-checksum-mode",ju="x-amz-checksum-sha1",Vu="x-amz-checksum-sha256",mAe="x-amz-create-session-mode",cp="x-amz-checksum-type",aB="x-amz-delete-marker",S1="x-amz-expiration",Ci="x-amz-expected-bucket-owner",_1="x-amz-grant-full-control",E1="x-amz-grant-read",x1="x-amz-grant-read-acp",gAe="x-amz-grant-write",w1="x-amz-grant-write-acp",yAe="x-amz-if-match-initiated-time",vAe="x-amz-if-match-last-modified-time",bAe="x-amz-if-match-size",R1="x-amz-meta-",SAe="x-amz-mfa",_Ae="x-amz-missing-meta",EAe="x-amz-mp-object-size",xAe="x-amz-mp-parts-count",C1="x-amz-object-lock-legal-hold",A1="x-amz-object-lock-mode",I1="x-amz-object-lock-retain-until-date",wAe="x-amz-object-ownership",RAe="x-amz-optional-object-attributes",CAe="x-amz-object-size",AAe="x-amz-restore",ec="x-amz-request-charged",Ai="x-amz-request-payer",IAe="x-amz-replication-status",T1="x-amz-storage-class",O1="x-amz-sdk-checksum-algorithm",Ii="x-amz-server-side-encryption",Ti="x-amz-server-side-encryption-aws-kms-key-id",Oi="x-amz-server-side-encryption-bucket-key-enabled",Hu="x-amz-server-side-encryption-context",Mi="x-amz-server-side-encryption-customer-algorithm",lp="x-amz-server-side-encryption-customer-key",Di="x-amz-server-side-encryption-customer-key-MD5",cB="x-amz-tagging",TAe="x-amz-tagging-count",up="x-amz-version-id",OAe="x-amz-write-offset-bytes",M1="x-amz-website-redirect-location",Te="com.amazonaws.s3",lB=Gn.for(oB);var MAe=[-3,oB,"S3ServiceException",0,[],[]];lB.registerError(MAe,Yn);const _s=Gn.for(Te);var DAe=[-3,Te,N1e,{[Ms]:Os,[Zs]:403},[],[]];_s.registerError(DAe,Rw);var PAe=[-3,Te,H1e,{[Ms]:Os,[Zs]:409},[],[]];_s.registerError(PAe,Aw);var kAe=[-3,Te,q1e,{[Ms]:Os,[Zs]:409},[],[]];_s.registerError(kAe,Iw);var NAe=[-3,Te,ERe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(NAe,Pw);var LAe=[-3,Te,LRe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(LAe,$w);var $Ae=[-3,Te,NRe,{[Ms]:Os,[Zs]:403},[ap,V1e],[0,0]];_s.registerError($Ae,Ow);var zAe=[-3,Te,$Re,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(zAe,kw);var BAe=[-3,Te,VRe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(BAe,Nw);var UAe=[-3,Te,cCe,{[Ms]:Os,[Zs]:404},[],[]];_s.registerError(UAe,Tw);var jAe=[-3,Te,lCe,{[Ms]:Os,[Zs]:404},[],[]];_s.registerError(jAe,Mw);var VAe=[-3,Te,uCe,{[Ms]:Os,[Zs]:404},[],[]];_s.registerError(VAe,ww);var HAe=[-3,Te,aCe,{[Ms]:Os},[],[]];_s.registerError(HAe,Dw);var qAe=[-3,Te,fCe,{[Ms]:Os,[Zs]:403},[],[]];_s.registerError(qAe,zw);var FAe=[-3,Te,hCe,{[Ms]:Os,[Zs]:403},[],[]];_s.registerError(FAe,Cw);var GAe=[-3,Te,VCe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(GAe,Lw);const KAe=[lB,_s];var WM=[0,Te,$Ce,8,0],fp=[0,Te,$u,8,0],qu=[0,Te,el,8,0],Pi=[0,Te,Do,8,0],D1=[0,Te,LCe,{[cAe]:1},42],ZAe=[3,Te,z1e,0,[Wa],[[0,{[L]:ec}]]],QAe=[3,Te,B1e,0,[cs,qr,py,Ei,_i,TRe],[[0,1],[0,1],[0,{[nn]:y1}],[0,{[L]:Ai}],[0,{[L]:Ci}],[6,{[L]:yAe}]],3],YAe=[3,Te,cs,0,[c1,Y1e,Vz,jz],[0,4,0,0]],XAe=[3,Te,G1e,0,[_Re,tB],[0,0]],WAe=[3,Te,oRe,0,[ip],[0]],JAe=[3,Te,X1e,0,[RCe],[[()=>DIe,{[Jm]:1,[is]:CCe}]]],eIe=[3,Te,cRe,0,[pi,Ka,Za,Qa,Ya,Xa,p1],[0,0,0,0,0,0,1]],tIe=[3,Te,W1e,{[is]:eRe},[Wm,cs,qr,Id,pi,Ka,Za,Qa,Ya,Xa,Jc,xi,Ja,Do,Si,Wa],[0,0,0,[0,{[L]:S1}],0,0,0,0,0,0,0,[0,{[L]:Ii}],[0,{[L]:up}],[()=>Pi,{[L]:Ti}],[2,{[L]:Oi}],[0,{[L]:ec}]]],nIe=[3,Te,tRe,0,[cs,qr,py,oCe,Ka,Za,Qa,Ya,Xa,Jc,rCe,Ei,_i,fy,o1,wi,$u,Ri],[[0,1],[0,1],[0,{[nn]:y1}],[()=>JAe,{[m1]:1,[is]:qz}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:cp}],[1,{[L]:EAe}],[0,{[L]:Ai}],[0,{[L]:Ci}],[0,{[L]:dy}],[0,{[L]:i1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}]],3],sIe=[3,Te,TS,0,[QRe,Wm,cs,UCe],[0,()=>vIe,()=>XAe,[()=>fB,0]]],rIe=[3,Te,Z1e,0,[Wm,jz],[[0,{[L]:Wm}],[0,{[L]:fAe}]]],oIe=[3,Te,Q1e,0,[cs,Bw,TS,t1,n1,s1,ARe,r1,dCe,mCe],[[0,1],[0,{[L]:b1}],[()=>sIe,{[m1]:1,[is]:TS}],[0,{[L]:_1}],[0,{[L]:E1}],[0,{[L]:x1}],[0,{[L]:gAe}],[0,{[L]:w1}],[2,{[L]:pAe}],[0,{[L]:wAe}]],1],iIe=[3,Te,J1e,{[is]:kRe},[L1e,j1e,cs,qr,py,xi,wi,Ri,Do,el,Si,Wa,Lu,Jc],[[4,{[L]:lAe}],[0,{[L]:uAe}],[0,{[is]:cs}],0,0,[0,{[L]:Ii}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[0,{[L]:ec}],[0,{[L]:iB}],[0,{[L]:cp}]]],aIe=[3,Te,nRe,0,[cs,qr,Bw,jw,qw,Gw,Kw,e1,vu,t1,n1,s1,r1,a1,xi,ap,h1,wi,$u,Ri,Do,el,Si,Ei,Td,f1,d1,u1,_i,Lu,Jc],[[0,1],[0,1],[0,{[L]:b1}],[0,{[L]:Vw}],[0,{[L]:Hw}],[0,{[L]:Fw}],[0,{[L]:Zw}],[0,{[L]:Jw}],[4,{[L]:vu}],[0,{[L]:_1}],[0,{[L]:E1}],[0,{[L]:x1}],[0,{[L]:w1}],[128,{[g1]:R1}],[0,{[L]:Ii}],[0,{[L]:T1}],[0,{[L]:M1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[0,{[L]:Ai}],[0,{[L]:cB}],[0,{[L]:A1}],[5,{[L]:I1}],[0,{[L]:C1}],[0,{[L]:Ci}],[0,{[L]:iB}],[0,{[L]:cp}]],2],cIe=[3,Te,dRe,{[is]:pRe},[KM,xi,Do,el,Si],[[()=>RIe,{[is]:KM}],[0,{[L]:Ii}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}]],1],lIe=[3,Te,hRe,0,[cs,BCe,xi,Do,el,Si],[[0,1],[0,{[L]:mAe}],[0,{[L]:Ii}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}]],1],uIe=[3,Te,vRe,0,[Fz,Ja,Wa],[[2,{[L]:aB}],[0,{[L]:up}],[0,{[L]:ec}]]],fIe=[3,Te,bRe,0,[cs,qr,nCe,Ja,Ei,F1e,_i,fy,ORe,MRe],[[0,1],[0,1],[0,{[L]:SAe}],[0,{[nn]:v1}],[0,{[L]:Ai}],[2,{[L]:dAe}],[0,{[L]:Ci}],[0,{[L]:dy}],[6,{[L]:vAe}],[1,{[L]:bAe}]],2],dIe=[3,Te,RRe,0,[Uw,Fz,U1e,Id,NCe,Zz,Yw,pi,Ka,Za,Qa,Ya,Xa,Jc,sCe,Ja,jw,qw,Gw,Kw,uRe,e1,vu,ZM,h1,xi,a1,wi,Ri,Do,Si,ap,Wa,kCe,vCe,jCe,f1,d1,u1],[[()=>D1,16],[2,{[L]:aB}],[0,{[L]:ZCe}],[0,{[L]:S1}],[0,{[L]:AAe}],[4,{[L]:XRe}],[1,{[L]:Qw}],[0,{[L]:pi}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:cp}],[1,{[L]:_Ae}],[0,{[L]:up}],[0,{[L]:Vw}],[0,{[L]:Hw}],[0,{[L]:Fw}],[0,{[L]:Zw}],[0,{[L]:fRe}],[0,{[L]:Jw}],[4,{[L]:vu}],[0,{[L]:ZM}],[0,{[L]:M1}],[0,{[L]:Ii}],[128,{[g1]:R1}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[2,{[L]:Oi}],[0,{[L]:T1}],[0,{[L]:ec}],[0,{[L]:IAe}],[1,{[L]:xAe}],[1,{[L]:TAe}],[0,{[L]:A1}],[5,{[L]:I1}],[0,{[L]:C1}]]],pIe=[3,Te,CRe,0,[cs,qr,fy,PRe,o1,URe,QM,ACe,ICe,TCe,OCe,MCe,DCe,Ja,wi,$u,Ri,Ei,p1,_i,rRe],[[0,1],[0,1],[0,{[L]:dy}],[4,{[L]:DRe}],[0,{[L]:i1}],[4,{[L]:jRe}],[0,{[L]:QM}],[0,{[nn]:tAe}],[0,{[nn]:nAe}],[0,{[nn]:sAe}],[0,{[nn]:rAe}],[0,{[nn]:oAe}],[6,{[nn]:iAe}],[0,{[nn]:v1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[0,{[L]:Ai}],[1,{[nn]:rB}],[0,{[L]:Ci}],[0,{[L]:hAe}]],2],hIe=[3,Te,GRe,{[is]:qRe},[Hz,l1,uy,ip],[[()=>OIe,0],()=>uB,0,0]],mIe=[3,Te,KRe,0,[tCe,uy,ip,Vz],[[1,{[nn]:JCe}],[0,{[nn]:nB}],[0,{[nn]:sB}],[0,{[nn]:QCe}]]],gIe=[3,Te,JRe,{[is]:ZRe},[BRe,gRe,c1,ip,Gz,Qz,lRe,Kz,HRe,uy,iCe,Xz,Wa],[2,[()=>PIe,{[Jm]:1}],0,0,0,1,[()=>MIe,{[Jm]:1}],0,1,0,0,0,[0,{[L]:ec}]]],yIe=[3,Te,eCe,0,[cs,Gz,Kz,Qz,ip,uy,xRe,Xz,Ei,_i,gCe],[[0,1],[0,{[nn]:YCe}],[0,{[nn]:XCe}],[1,{[nn]:eAe}],[0,{[nn]:sB}],[0,{[nn]:nB}],[2,{[nn]:WCe}],[0,{[nn]:aAe}],[0,{[L]:Ai}],[0,{[L]:Ci}],[64,{[L]:RAe}]],1],vIe=[3,Te,YRe,0,[tB,c1],[0,0]],bIe=[3,Te,yCe,0,[qr,Zz,pi,Lu,Jc,Wz,ap,l1,Yz],[0,4,0,[64,{[Jm]:1}],0,1,0,()=>uB,()=>wIe]],uB=[3,Te,l1,0,[yRe,IRe],[0,0]],SIe=[3,Te,SCe,0,[Id,pi,Ka,Za,Qa,Ya,Xa,Jc,xi,Ja,wi,Ri,Do,el,Si,Wz,Wa],[[0,{[L]:S1}],[0,{[L]:pi}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:cp}],[0,{[L]:Ii}],[0,{[L]:up}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[1,{[L]:CAe}],[0,{[L]:ec}]]],_Ie=[3,Te,_Ce,0,[cs,qr,Bw,Uw,jw,qw,Gw,Kw,Yw,Ww,e1,Lu,Ka,Za,Qa,Ya,Xa,vu,fy,o1,t1,n1,s1,r1,KCe,a1,xi,ap,h1,wi,$u,Ri,Do,el,Si,Ei,Td,f1,d1,u1,_i],[[0,1],[0,1],[0,{[L]:b1}],[()=>D1,16],[0,{[L]:Vw}],[0,{[L]:Hw}],[0,{[L]:Fw}],[0,{[L]:Zw}],[1,{[L]:Qw}],[0,{[L]:Xw}],[0,{[L]:Jw}],[0,{[L]:O1}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[4,{[L]:vu}],[0,{[L]:dy}],[0,{[L]:i1}],[0,{[L]:_1}],[0,{[L]:E1}],[0,{[L]:x1}],[0,{[L]:w1}],[1,{[L]:OAe}],[128,{[g1]:R1}],[0,{[L]:Ii}],[0,{[L]:T1}],[0,{[L]:M1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[0,{[L]:Ai}],[0,{[L]:cB}],[0,{[L]:A1}],[5,{[L]:I1}],[0,{[L]:C1}],[0,{[L]:Ci}]],2],EIe=[3,Te,xCe,0,[Ja],[[0,{[L]:up}]]],xIe=[3,Te,wCe,0,[cs,qr,Td,Ja,Ww,Lu,_i,Ei],[[0,1],[0,1],[()=>AIe,{[m1]:1,[is]:Td}],[0,{[nn]:v1}],[0,{[L]:Xw}],[0,{[L]:O1}],[0,{[L]:Ci}],[0,{[L]:Ai}]],3],wIe=[3,Te,Yz,0,[zRe,PCe],[2,4]],RIe=[3,Te,zCe,0,[GM,YM,XM,Id],[[0,{[is]:GM}],[()=>WM,{[is]:YM}],[()=>WM,{[is]:XM}],[4,{[is]:Id}]],4],CIe=[3,Te,eB,0,[qr,GCe],[0,0],2],AIe=[3,Te,Td,0,[Jz],[[()=>fB,0]],1],IIe=[3,Te,qCe,0,[xi,pi,Ka,Za,Qa,Ya,Xa,wi,Ri,Do,Si,Wa],[[0,{[L]:Ii}],[0,{[L]:pi}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[2,{[L]:Oi}],[0,{[L]:ec}]]],TIe=[3,Te,FCe,0,[cs,qr,p1,py,Uw,Yw,Ww,Lu,Ka,Za,Qa,Ya,Xa,wi,$u,Ri,Ei,_i],[[0,1],[0,1],[1,{[nn]:rB}],[0,{[nn]:y1}],[()=>D1,16],[1,{[L]:Qw}],[0,{[L]:Xw}],[0,{[L]:O1}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[0,{[L]:Ai}],[0,{[L]:Ci}]],4],OIe=[1,Te,Hz,0,[()=>YAe,{[is]:cs}]],MIe=[1,Te,iRe,0,()=>WAe],DIe=[1,Te,aRe,0,()=>eIe],PIe=[1,Te,pCe,0,[()=>bIe,0]],fB=[1,Te,Jz,0,[()=>CIe,{[is]:eB}]],lDe=[9,Te,$1e,{[Fr]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>QAe,()=>ZAe],uDe=[9,Te,qz,{[Fr]:["POST","/{Key+}",200]},()=>nIe,()=>tIe],fDe=[9,Te,K1e,{[Fr]:["PUT","/",200]},()=>oIe,()=>rIe],dDe=[9,Te,sRe,{[Fr]:["POST","/{Key+}?uploads",200]},()=>aIe,()=>iIe],kIe=[9,Te,mRe,{[Fr]:["GET","/?session",200]},()=>lIe,()=>cIe],pDe=[9,Te,SRe,{[Fr]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>fIe,()=>uIe],hDe=[9,Te,wRe,{[hy]:"-",[Fr]:["GET","/{Key+}?x-id=GetObject",200]},()=>pIe,()=>dIe],NIe=[9,Te,FRe,{[Fr]:["GET","/?x-id=ListBuckets",200]},()=>mIe,()=>hIe],LIe=[9,Te,WRe,{[Fr]:["GET","/?list-type=2",200]},()=>yIe,()=>gIe],mDe=[9,Te,bCe,{[hy]:"-",[Fr]:["PUT","/{Key+}?x-id=PutObject",200]},()=>_Ie,()=>SIe],gDe=[9,Te,ECe,{[hy]:"-",[Fr]:["PUT","/{Key+}?tagging",200]},()=>xIe,()=>EIe],yDe=[9,Te,HCe,{[hy]:"-",[Fr]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>TIe,()=>IIe];class $Ie extends xn.classBuilder().ep({...xw,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions()),mw(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(kIe).build(){}const zIe="3.1000.0",BIe={version:zIe};function JM(e){return typeof e=="string"?e.length===0:e.byteLength===0}var dB={name:"SHA-1"},eD={name:"HMAC",hash:dB},UIe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),jIe=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){Ca().crypto.subtle.importKey("raw",tD(t),eD,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!JM(t)){var n=tD(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return Ca().crypto.subtle.sign(eD,n,t.toHash).then(function(r){return new Uint8Array(r)})}):JM(this.toHash)?Promise.resolve(UIe):Promise.resolve().then(function(){return Ca().crypto.subtle.digest(dB,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function tD(e){return typeof e=="string"?Z3(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var VIe=(function(){function e(t){if(W3(Ca()))this.hash=new jIe(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(zc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();class pd{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&nD(n),new pd(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&nD(t),parseInt(Vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function nD(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class HIe{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){const n=[];for(const c of Object.keys(t)){const l=this.fromUtf8(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=this.fromUtf8(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const p=new Uint8Array(d.buffer);return p.set(f,3),p;case"timestamp":const v=new Uint8Array(9);return v[0]=8,v.set(pd.fromNumber(t.value.valueOf()).bytes,1),v;case"uuid":if(!WIe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(a3(t.value.replace(/\-/g,"")),1),g}}parse(t){const n={};let r=0;for(;r{if(typeof f!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+f);t=f,n=4,r=new Uint8Array(f),new DataView(r.buffer).setUint32(0,f,!1)},l=async function*(){const f=e[Symbol.asyncIterator]();for(;;){const{value:d,done:p}=await f.next();if(p){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const v=d.length;let g=0;for(;g({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),uTe=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){const{done:r,value:i}=await t.next();if(r)return n.close();n.enqueue(i)}})};class fTe{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new cTe({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const r=dTe(t)?lTe(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){const r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?uTe(r):r}}const dTe=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,pTe=e=>new fTe(e);async function hTe(e,t,n=1024*1024){const r=e.size;let i=0;for(;i{r.update(i)}),r.digest()},ha=64,gTe=16,yTe=[1732584193,4023233417,2562383102,271733878];class vTe{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(bTe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const n=STe(t);let r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===ha&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:n,bufferLength:r,bytesHashed:i}=this,c=i*8;if(n.setUint8(this.bufferLength++,128),r%ha>=ha-8){for(let l=this.bufferLength;l>>0,!0),n.setUint32(ha-4,Math.floor(c/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(gTe));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:n}=this;let r=n[0],i=n[1],c=n[2],l=n[3];r=ms(r,i,c,l,t.getUint32(0,!0),7,3614090360),l=ms(l,r,i,c,t.getUint32(4,!0),12,3905402710),c=ms(c,l,r,i,t.getUint32(8,!0),17,606105819),i=ms(i,c,l,r,t.getUint32(12,!0),22,3250441966),r=ms(r,i,c,l,t.getUint32(16,!0),7,4118548399),l=ms(l,r,i,c,t.getUint32(20,!0),12,1200080426),c=ms(c,l,r,i,t.getUint32(24,!0),17,2821735955),i=ms(i,c,l,r,t.getUint32(28,!0),22,4249261313),r=ms(r,i,c,l,t.getUint32(32,!0),7,1770035416),l=ms(l,r,i,c,t.getUint32(36,!0),12,2336552879),c=ms(c,l,r,i,t.getUint32(40,!0),17,4294925233),i=ms(i,c,l,r,t.getUint32(44,!0),22,2304563134),r=ms(r,i,c,l,t.getUint32(48,!0),7,1804603682),l=ms(l,r,i,c,t.getUint32(52,!0),12,4254626195),c=ms(c,l,r,i,t.getUint32(56,!0),17,2792965006),i=ms(i,c,l,r,t.getUint32(60,!0),22,1236535329),r=gs(r,i,c,l,t.getUint32(4,!0),5,4129170786),l=gs(l,r,i,c,t.getUint32(24,!0),9,3225465664),c=gs(c,l,r,i,t.getUint32(44,!0),14,643717713),i=gs(i,c,l,r,t.getUint32(0,!0),20,3921069994),r=gs(r,i,c,l,t.getUint32(20,!0),5,3593408605),l=gs(l,r,i,c,t.getUint32(40,!0),9,38016083),c=gs(c,l,r,i,t.getUint32(60,!0),14,3634488961),i=gs(i,c,l,r,t.getUint32(16,!0),20,3889429448),r=gs(r,i,c,l,t.getUint32(36,!0),5,568446438),l=gs(l,r,i,c,t.getUint32(56,!0),9,3275163606),c=gs(c,l,r,i,t.getUint32(12,!0),14,4107603335),i=gs(i,c,l,r,t.getUint32(32,!0),20,1163531501),r=gs(r,i,c,l,t.getUint32(52,!0),5,2850285829),l=gs(l,r,i,c,t.getUint32(8,!0),9,4243563512),c=gs(c,l,r,i,t.getUint32(28,!0),14,1735328473),i=gs(i,c,l,r,t.getUint32(48,!0),20,2368359562),r=ys(r,i,c,l,t.getUint32(20,!0),4,4294588738),l=ys(l,r,i,c,t.getUint32(32,!0),11,2272392833),c=ys(c,l,r,i,t.getUint32(44,!0),16,1839030562),i=ys(i,c,l,r,t.getUint32(56,!0),23,4259657740),r=ys(r,i,c,l,t.getUint32(4,!0),4,2763975236),l=ys(l,r,i,c,t.getUint32(16,!0),11,1272893353),c=ys(c,l,r,i,t.getUint32(28,!0),16,4139469664),i=ys(i,c,l,r,t.getUint32(40,!0),23,3200236656),r=ys(r,i,c,l,t.getUint32(52,!0),4,681279174),l=ys(l,r,i,c,t.getUint32(0,!0),11,3936430074),c=ys(c,l,r,i,t.getUint32(12,!0),16,3572445317),i=ys(i,c,l,r,t.getUint32(24,!0),23,76029189),r=ys(r,i,c,l,t.getUint32(36,!0),4,3654602809),l=ys(l,r,i,c,t.getUint32(48,!0),11,3873151461),c=ys(c,l,r,i,t.getUint32(60,!0),16,530742520),i=ys(i,c,l,r,t.getUint32(8,!0),23,3299628645),r=vs(r,i,c,l,t.getUint32(0,!0),6,4096336452),l=vs(l,r,i,c,t.getUint32(28,!0),10,1126891415),c=vs(c,l,r,i,t.getUint32(56,!0),15,2878612391),i=vs(i,c,l,r,t.getUint32(20,!0),21,4237533241),r=vs(r,i,c,l,t.getUint32(48,!0),6,1700485571),l=vs(l,r,i,c,t.getUint32(12,!0),10,2399980690),c=vs(c,l,r,i,t.getUint32(40,!0),15,4293915773),i=vs(i,c,l,r,t.getUint32(4,!0),21,2240044497),r=vs(r,i,c,l,t.getUint32(32,!0),6,1873313359),l=vs(l,r,i,c,t.getUint32(60,!0),10,4264355552),c=vs(c,l,r,i,t.getUint32(24,!0),15,2734768916),i=vs(i,c,l,r,t.getUint32(52,!0),21,1309151649),r=vs(r,i,c,l,t.getUint32(16,!0),6,4149444226),l=vs(l,r,i,c,t.getUint32(44,!0),10,3174756917),c=vs(c,l,r,i,t.getUint32(8,!0),15,718787259),i=vs(i,c,l,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=c+n[2]&4294967295,n[3]=l+n[3]&4294967295}reset(){this.state=Uint32Array.from(yTe),this.buffer=new DataView(new ArrayBuffer(ha)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function my(e,t,n,r,i,c){return t=(t+e&4294967295)+(r+c&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function ms(e,t,n,r,i,c,l){return my(t&n|~t&r,e,t,i,c,l)}function gs(e,t,n,r,i,c,l){return my(t&r|n&~r,e,t,i,c,l)}function ys(e,t,n,r,i,c,l){return my(t^n^r,e,t,i,c,l)}function vs(e,t,n,r,i,c,l){return my(n^(t|~r),e,t,i,c,l)}function bTe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function STe(e){return typeof e=="string"?xo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const _Te=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??zz,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??CX,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??D1e,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Mg},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new sJ}],logger:e?.logger??new Dg,protocol:e?.protocol??ZJ,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:KAe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??c3,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??_z,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??hu,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??$a}),ETe=e=>{const t=oE(e),n=()=>t().then(V_),r=_Te(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??U_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??sE({serviceId:r.serviceId,clientVersion:BIe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??pTe,maxAttempts:e?.maxAttempts??gu,md5:e?.md5??vTe,region:e?.region??rE("Region is missing"),requestHandler:Ld.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||X_),sha1:e?.sha1??VIe,sha256:e?.sha256??nE,streamCollector:e?.streamCollector??wg,streamHasher:e?.streamHasher??mTe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(G_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(K_))}},xTe=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},wTe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),RTe=(e,t)=>{const n=Object.assign(xx(e),H_(e),S_(e),xTe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,wx(n),q_(n),__(n),wTe(n))};class CTe extends j_{config;constructor(...[t]){const n=ETe(t||{});super(n),this.initConfig=n;const r=k1e(n),i=k_(r),c=$we(i),l=eE(c),f=Z_(l),d=f,p=Y_(d),v=p1e(p),g=P1e(v),b=t1e(g,{session:[()=>this,$Ie]}),_=RTe(b,t?.extensions||[]);this.config=_,this.middlewareStack.use(A_(this.config)),this.middlewareStack.use(F_(this.config)),this.middlewareStack.use(tE(this.config)),this.middlewareStack.use(Q_(this.config)),this.middlewareStack.use(E_(this.config)),this.middlewareStack.use(x_(this.config)),this.middlewareStack.use(w_(this.config)),this.middlewareStack.use(R_(this.config,{httpAuthSchemeParametersProvider:T1e,identityProviderConfigProvider:async E=>new P_({"aws.auth#sigv4":E.credentials,"aws.auth#sigv4a":E.credentials})})),this.middlewareStack.use(C_(this.config)),this.middlewareStack.use(d1e(this.config)),this.middlewareStack.use(Dwe(this.config)),this.middlewareStack.use(Vwe(this.config)),this.middlewareStack.use(Qwe(this.config)),this.middlewareStack.use(e1e(this.config))}destroy(){super.destroy()}}class ATe extends xn.classBuilder().ep(xw).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions()),mw(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(NIe).build(){}class ITe extends xn.classBuilder().ep({...xw,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions()),mw(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(LIe).build(){}const hB=`${window.location.protocol}//${window.location.hostname}:9999`,TTe=`${window.location.protocol}//${window.location.hostname}:8443`;let dm=null,pm=null,nd=null;function ls(){if(!dm){const e=Nd();if(!e)throw new Error("AWS credentials not configured");dm=new TSe({endpoint:hB,region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return dm}function tl(){if(!pm){const e=Nd();if(!e)throw new Error("AWS credentials not configured");pm=new Ewe({endpoint:hB,region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return pm}function mB(){if(!nd){const e=Nd();if(!e)throw new Error("AWS credentials not configured");nd=new CTe({endpoint:TTe,region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),nd.middlewareStack.use({applyToStack:t=>{t.add(n=>r=>{const i=r.request;return i?.path?.endsWith("/")&&i.path!=="/"&&(i.path=i.path.slice(0,-1)),n(r)},{step:"build",name:"removeTrailingSlash"})}})}return nd}function OTe(){dm=null,pm=null,nd=null}function gB(){const e=qt.c(99);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:MTe},e[0]=t):t=e[0];const n=xj(t),r=ig(),i=pD();let c;e[1]!==r||e[2]!==i?(c=function(){cX(),OTe(),i.clear(),r({to:"/login"})},e[1]=r,e[2]=i,e[3]=c):c=e[3];const l=c;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=k.jsx(Zf,{children:"General"}),e[4]=f):f=e[4];const d=n==="/";let p,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(v9,{className:"size-4"}),v=k.jsx("span",{children:"Dashboard"}),e[5]=p,e[6]=v):(p=e[5],v=e[6]);let g;e[7]!==d?(g=k.jsxs(Kf,{children:[f,k.jsx(jl,{children:k.jsx(Cr,{children:k.jsx(Rs,{to:"/",children:k.jsxs(Ar,{isActive:d,tooltip:"Dashboard",children:[p,v]})})})})]}),e[7]=d,e[8]=g):g=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=k.jsx(Zf,{children:"EC2"}),e[9]=b):b=e[9];let _;e[10]!==n?(_=n.startsWith("/ec2/describe-instances")||n.startsWith("/ec2/run-instances"),e[10]=n,e[11]=_):_=e[11];let E,x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=k.jsx(_T,{className:"size-4"}),E=k.jsx("span",{children:"Instances"}),e[12]=E,e[13]=x):(E=e[12],x=e[13]);let R;e[14]!==_?(R=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-instances",children:k.jsxs(Ar,{isActive:_,tooltip:"EC2 Instances",children:[x,E]})})}),e[14]=_,e[15]=R):R=e[15];let C;e[16]!==n?(C=n.startsWith("/ec2/describe-images"),e[16]=n,e[17]=C):C=e[17];let T,P;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=k.jsx(S9,{className:"size-4"}),P=k.jsx("span",{children:"Images"}),e[18]=T,e[19]=P):(T=e[18],P=e[19]);let I;e[20]!==C?(I=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-images",children:k.jsxs(Ar,{isActive:C,tooltip:"Images",children:[T,P]})})}),e[20]=C,e[21]=I):I=e[21];let B;e[22]!==n?(B=n.startsWith("/ec2/describe-key-pairs"),e[22]=n,e[23]=B):B=e[23];let j,V;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=k.jsx(E9,{className:"size-4"}),V=k.jsx("span",{children:"Key Pairs"}),e[24]=j,e[25]=V):(j=e[24],V=e[25]);let N;e[26]!==B?(N=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-key-pairs",children:k.jsxs(Ar,{isActive:B,tooltip:"Key Pairs",children:[j,V]})})}),e[26]=B,e[27]=N):N=e[27];let Q;e[28]!==n?(Q=n.startsWith("/ec2/describe-volumes")||n.startsWith("/ec2/create-volume")||n.startsWith("/ec2/modify-volume"),e[28]=n,e[29]=Q):Q=e[29];let ne,te;e[30]===Symbol.for("react.memo_cache_sentinel")?(ne=k.jsx(g9,{className:"size-4"}),te=k.jsx("span",{children:"Volumes"}),e[30]=ne,e[31]=te):(ne=e[30],te=e[31]);let F;e[32]!==Q?(F=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-volumes",children:k.jsxs(Ar,{isActive:Q,tooltip:"Volumes",children:[ne,te]})})}),e[32]=Q,e[33]=F):F=e[33];let oe;e[34]!==n?(oe=n.startsWith("/ec2/describe-snapshots")||n.startsWith("/ec2/create-snapshot"),e[34]=n,e[35]=oe):oe=e[35];let me,ge;e[36]===Symbol.for("react.memo_cache_sentinel")?(me=k.jsx(d9,{className:"size-4"}),ge=k.jsx("span",{children:"Snapshots"}),e[36]=me,e[37]=ge):(me=e[36],ge=e[37]);let H;e[38]!==oe?(H=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-snapshots",children:k.jsxs(Ar,{isActive:oe,tooltip:"Snapshots",children:[me,ge]})})}),e[38]=oe,e[39]=H):H=e[39];let re;e[40]!==R||e[41]!==I||e[42]!==N||e[43]!==F||e[44]!==H?(re=k.jsxs(Kf,{children:[b,k.jsxs(jl,{children:[R,I,N,F,H]})]}),e[40]=R,e[41]=I,e[42]=N,e[43]=F,e[44]=H,e[45]=re):re=e[45];let J;e[46]===Symbol.for("react.memo_cache_sentinel")?(J=k.jsx(Zf,{children:"Networking"}),e[46]=J):J=e[46];let ve;e[47]!==n?(ve=n.startsWith("/ec2/describe-vpcs")||n.startsWith("/ec2/create-vpc"),e[47]=n,e[48]=ve):ve=e[48];let ue,$;e[49]===Symbol.for("react.memo_cache_sentinel")?(ue=k.jsx(O9,{className:"size-4"}),$=k.jsx("span",{children:"VPCs"}),e[49]=ue,e[50]=$):(ue=e[49],$=e[50]);let ee;e[51]!==ve?(ee=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-vpcs",children:k.jsxs(Ar,{isActive:ve,tooltip:"VPCs",children:[ue,$]})})}),e[51]=ve,e[52]=ee):ee=e[52];let ye;e[53]!==n?(ye=n.startsWith("/ec2/describe-subnets")||n.startsWith("/ec2/create-subnet"),e[53]=n,e[54]=ye):ye=e[54];let Ee,xe;e[55]===Symbol.for("react.memo_cache_sentinel")?(Ee=k.jsx(w9,{className:"size-4"}),xe=k.jsx("span",{children:"Subnets"}),e[55]=Ee,e[56]=xe):(Ee=e[55],xe=e[56]);let Se;e[57]!==ye?(Se=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-subnets",children:k.jsxs(Ar,{isActive:ye,tooltip:"Subnets",children:[Ee,xe]})})}),e[57]=ye,e[58]=Se):Se=e[58];let Oe;e[59]!==ee||e[60]!==Se?(Oe=k.jsxs(Kf,{children:[J,k.jsxs(jl,{children:[ee,Se]})]}),e[59]=ee,e[60]=Se,e[61]=Oe):Oe=e[61];let Fe;e[62]===Symbol.for("react.memo_cache_sentinel")?(Fe=k.jsx(Zf,{children:"IAM"}),e[62]=Fe):Fe=e[62];let be;e[63]!==n?(be=n.startsWith("/iam/list-users")||n.startsWith("/iam/create-user"),e[63]=n,e[64]=be):be=e[64];let tt,kt;e[65]===Symbol.for("react.memo_cache_sentinel")?(tt=k.jsx(B9,{className:"size-4"}),kt=k.jsx("span",{children:"Users"}),e[65]=tt,e[66]=kt):(tt=e[65],kt=e[66]);let he;e[67]!==be?(he=k.jsx(Cr,{children:k.jsx(Rs,{to:"/iam/list-users",children:k.jsxs(Ar,{isActive:be,tooltip:"Users",children:[tt,kt]})})}),e[67]=be,e[68]=he):he=e[68];let Re;e[69]!==n?(Re=n.startsWith("/iam/list-policies")||n.startsWith("/iam/create-policy"),e[69]=n,e[70]=Re):Re=e[70];let _e,Ze;e[71]===Symbol.for("react.memo_cache_sentinel")?(_e=k.jsx(N9,{className:"size-4"}),Ze=k.jsx("span",{children:"Policies"}),e[71]=_e,e[72]=Ze):(_e=e[71],Ze=e[72]);let Me;e[73]!==Re?(Me=k.jsx(Cr,{children:k.jsx(Rs,{to:"/iam/list-policies",children:k.jsxs(Ar,{isActive:Re,tooltip:"Policies",children:[_e,Ze]})})}),e[73]=Re,e[74]=Me):Me=e[74];let Ve;e[75]!==he||e[76]!==Me?(Ve=k.jsxs(Kf,{children:[Fe,k.jsxs(jl,{children:[he,Me]})]}),e[75]=he,e[76]=Me,e[77]=Ve):Ve=e[77];let De;e[78]===Symbol.for("react.memo_cache_sentinel")?(De=k.jsx(Zf,{children:"S3"}),e[78]=De):De=e[78];let nt;e[79]!==n?(nt=n.startsWith("/s3/ls"),e[79]=n,e[80]=nt):nt=e[80];let ot,Ge;e[81]===Symbol.for("react.memo_cache_sentinel")?(ot=k.jsx(_T,{className:"size-4"}),Ge=k.jsx("span",{children:"Buckets"}),e[81]=ot,e[82]=Ge):(ot=e[81],Ge=e[82]);let bt;e[83]!==nt?(bt=k.jsxs(Kf,{children:[De,k.jsx(jl,{children:k.jsx(Cr,{children:k.jsx(Rs,{to:"/s3/ls",children:k.jsxs(Ar,{isActive:nt,tooltip:"Buckets",children:[ot,Ge]})})})})]}),e[83]=nt,e[84]=bt):bt=e[84];let Xt;e[85]!==re||e[86]!==Oe||e[87]!==Ve||e[88]!==bt||e[89]!==g?(Xt=k.jsxs(xG,{children:[g,re,Oe,Ve,bt]}),e[85]=re,e[86]=Oe,e[87]=Ve,e[88]=bt,e[89]=g,e[90]=Xt):Xt=e[90];let wt,Xn;e[91]===Symbol.for("react.memo_cache_sentinel")?(wt=k.jsx(C9,{className:"size-4"}),Xn=k.jsx("span",{children:"Sign out"}),e[91]=wt,e[92]=Xn):(wt=e[91],Xn=e[92]);let Je;e[93]!==l?(Je=k.jsx(EG,{children:k.jsx(jl,{children:k.jsx(Cr,{children:k.jsxs(Ar,{onClick:l,tooltip:"Sign out",children:[wt,Xn]})})})}),e[93]=l,e[94]=Je):Je=e[94];let Mt;e[95]===Symbol.for("react.memo_cache_sentinel")?(Mt=k.jsx(_G,{}),e[95]=Mt):Mt=e[95];let it;return e[96]!==Xt||e[97]!==Je?(it=k.jsxs(bG,{collapsible:"icon",children:[Xt,Je,Mt]}),e[96]=Xt,e[97]=Je,e[98]=it):it=e[98],it}function MTe(e){return e.pathname}function DTe(e){const t=qt.c(18),{error:n,reset:r}=e,i=bs(),c=pD();let l;t[0]!==c||t[1]!==r||t[2]!==i?(l=function(){c.invalidateQueries(),r(),i.invalidate()},t[0]=c,t[1]=r,t[2]=i,t[3]=l):l=t[3];const f=l;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=k.jsx(gB,{}),t[4]=d):d=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(Ik,{}),t[5]=p):p=t[5];let v,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(v=k.jsx("div",{className:"flex justify-center",children:k.jsx(h9,{className:"size-12 text-destructive"})}),g=k.jsx("h1",{className:"font-semibold text-2xl",children:"Something went wrong"}),t[6]=v,t[7]=g):(v=t[6],g=t[7]);const b=n.message||"An unexpected error occurred";let _;t[8]!==b?(_=k.jsx("p",{className:"text-muted-foreground",children:b}),t[8]=b,t[9]=_):_=t[9];let E;t[10]!==f?(E=k.jsx(cu,{onClick:f,variant:"default",children:"Try Again"}),t[10]=f,t[11]=E):E=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=k.jsx(Rs,{to:"/",children:k.jsx(cu,{variant:"outline",children:"Go Home"})}),t[12]=x):x=t[12];let R;t[13]!==E?(R=k.jsxs("div",{className:"flex justify-center gap-2",children:[E,x]}),t[13]=E,t[14]=R):R=t[14];let C;return t[15]!==R||t[16]!==_?(C=k.jsxs(k.Fragment,{children:[d,k.jsxs("main",{className:"flex flex-1 flex-col",children:[p,k.jsx("div",{className:"flex flex-1 items-center justify-center p-6 pt-0",children:k.jsxs("div",{className:"max-w-md space-y-4 text-center",children:[v,g,_,R]})})]})]}),t[15]=R,t[16]=_,t[17]=C):C=t[17],C}const P1=lj()({head:()=>({meta:[{title:"Mulga"}]}),component:()=>k.jsxs(k.Fragment,{children:[k.jsx(Ij,{}),k.jsx(gB,{}),k.jsxs("main",{className:"flex flex-1 flex-col",children:[k.jsx(Ik,{}),k.jsx("div",{className:"flex flex-1 flex-col p-8",children:k.jsx(zD,{})})]})]}),errorComponent:DTe,notFoundComponent:CG}),PTe=()=>pt(()=>import("./login.js"),__vite__mapDeps([0,1,2,3])),kTe=at("/login")({beforeLoad:()=>{if(Nd())throw BS({to:"/"})},component:yt(PTe,"component")}),NTe=()=>pt(()=>import("./route.js"),[]),LTe=at("/_auth")({beforeLoad:()=>{if(!Nd())throw BS({to:"/login"})},component:yt(NTe,"component")}),yB={queryKey:["ec2","availabilityZones"],queryFn:()=>{const e=new OSe({});return ls().send(e)},staleTime:3e5},vB={queryKey:["ec2","instances"],queryFn:()=>{const e=new sz({});return ls().send(e)},refetchInterval:5e3},$Te=e=>({queryKey:["ec2","instances",e],queryFn:()=>{const t=new sz({InstanceIds:[e]});return ls().send(t)},refetchInterval:5e3}),bB={queryKey:["ec2","instances","types"],queryFn:()=>{const e=new MSe({Filters:[{Name:"capacity",Values:["true"]}]});return ls().send(e)},refetchInterval:5e3},SB={queryKey:["ec2","images"],queryFn:()=>{const e=new nz({});return ls().send(e)}},_B=e=>({queryKey:["ec2","images",e??"none"],queryFn:()=>{if(!e)return{Images:[],$metadata:{}};const t=new nz({ImageIds:[e]});return ls().send(t)}}),EB={queryKey:["ec2","keypairs"],queryFn:()=>{const e=new rz({});return ls().send(e)}},zTe=e=>({queryKey:["ec2","keypairs",e],queryFn:()=>{const t=new rz({KeyPairIds:[e]});return ls().send(t)}}),xB={queryKey:["ec2","regions"],queryFn:()=>{const e=new DSe({});return ls().send(e)},staleTime:3e5},k1={queryKey:["ec2","subnets"],queryFn:()=>{const e=new iz({});return ls().send(e)}},BTe=e=>({queryKey:["ec2","subnets",e],queryFn:()=>{const t=new iz({SubnetIds:[e]});return ls().send(t)}}),UTe={queryKey:["ec2","snapshots"],queryFn:()=>{const e=new oz({});return ls().send(e)},refetchInterval:5e3},jTe=e=>({queryKey:["ec2","snapshots",e],queryFn:()=>{const t=new oz({SnapshotIds:[e]});return ls().send(t)},refetchInterval:5e3}),wB={queryKey:["ec2","vpcs"],queryFn:()=>{const e=new cz({});return ls().send(e)}},VTe=e=>({queryKey:["ec2","vpcs",e],queryFn:()=>{const t=new cz({VpcIds:[e]});return ls().send(t)}}),RB={queryKey:["ec2","volumes"],queryFn:()=>{const e=new az({});return ls().send(e)},refetchInterval:5e3},CB=e=>({queryKey:["ec2","volumes",e],queryFn:()=>{const t=new az({VolumeIds:[e]});return ls().send(t)},refetchInterval:5e3}),HTe=()=>pt(()=>import("./index3.js"),__vite__mapDeps([4,5,6])),qTe=at("/_auth/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(xB)},head:()=>({meta:[{title:"Dashboard | Mulga"}]}),component:yt(HTe,"component")}),FTe={queryKey:["s3","buckets"],queryFn:async()=>{try{const e=new ATe({});return await mB().send(e)}catch{throw new Error("Failed to fetch S3 buckets")}}},AB=(e,t)=>({queryKey:["s3","buckets",e,"objects",t??""],queryFn:async()=>{try{const n=new ITe({Bucket:e,Prefix:t,Delimiter:"/"});return await mB().send(n)}catch{throw new Error("Failed to fetch S3 bucket objects")}}}),GTe=()=>pt(()=>import("./index4.js"),__vite__mapDeps([7,5,8,6])),KTe=at("/_auth/s3/ls/")({head:()=>({meta:[{title:"Buckets | S3 | Mulga"}]}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(FTe)},component:yt(GTe,"component")}),ZTe=()=>pt(()=>import("./create-bucket.js"),__vite__mapDeps([9,1,10,11,6,2,3,12])),QTe=at("/_auth/s3/(buckets)/create-bucket")({head:()=>({meta:[{title:"Create Bucket | S3 | Mulga"}]}),component:yt(ZTe,"component")}),YTe=()=>pt(()=>import("./create-user.js"),__vite__mapDeps([13,1,10,11,6,2,3,14,15])),XTe=at("/_auth/iam/(users)/create-user")({head:()=>({meta:[{title:"Create User | IAM | Mulga"}]}),component:yt(YTe,"component")}),WTe=()=>pt(()=>import("./create-policy.js"),__vite__mapDeps([16,1,10,11,6,2,3,17,14,15])),JTe=at("/_auth/iam/(policies)/create-policy")({head:()=>({meta:[{title:"Create Policy | IAM | Mulga"}]}),component:yt(WTe,"component")}),e2e=()=>pt(()=>import("./create-vpc.js"),__vite__mapDeps([18,1,10,11,6,2,3,19,20])),t2e=at("/_auth/ec2/(vpc)/create-vpc")({head:()=>({meta:[{title:"Create VPC | EC2 | Mulga"}]}),component:yt(e2e,"component")}),n2e=()=>pt(()=>import("./create-volume.js"),__vite__mapDeps([21,1,5,10,11,6,2,3,22,23,19,20])),s2e=at("/_auth/ec2/(volumes)/create-volume")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yB)},head:()=>({meta:[{title:"Create Volume | EC2 | Mulga"}]}),component:yt(n2e,"component")}),r2e=()=>pt(()=>import("./create-subnet.js"),__vite__mapDeps([24,1,5,10,11,6,2,3,22,23,19,20])),o2e=at("/_auth/ec2/(subnet)/create-subnet")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(wB),e.queryClient.ensureQueryData(yB)])},head:()=>({meta:[{title:"Create Subnet | EC2 | Mulga"}]}),component:yt(r2e,"component")}),i2e=()=>pt(()=>import("./create-snapshot.js"),__vite__mapDeps([25,1,5,10,11,6,2,22,23,17,19,20])),a2e=at("/_auth/ec2/(snapshots)/create-snapshot")({validateSearch:e=>({volumeId:typeof e.volumeId=="string"?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(RB)},head:()=>({meta:[{title:"Create Snapshot | EC2 | Mulga"}]}),component:yt(i2e,"component")}),c2e=()=>pt(()=>import("./import-key-pair.js"),__vite__mapDeps([26,1,10,11,6,2,3,17,19,20])),l2e=at("/_auth/ec2/(key)/import-key-pair")({head:()=>({meta:[{title:"Import Key Pair | EC2 | Mulga"}]}),component:yt(c2e,"component")}),u2e=()=>pt(()=>import("./create-key-pair.js"),__vite__mapDeps([27,1,10,11,6,2,3,19,20,28,17,29,23,30])),f2e=at("/_auth/ec2/(key)/create-key-pair")({head:()=>({meta:[{title:"Create Key Pair | EC2 | Mulga"}]}),component:yt(u2e,"component")}),d2e=()=>pt(()=>import("./run-instances.js"),__vite__mapDeps([31,1,5,10,11,6,2,3,22,23,19,20])),p2e=at("/_auth/ec2/(instances)/run-instances")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(SB),e.queryClient.ensureQueryData(EB),e.queryClient.ensureQueryData(bB),e.queryClient.ensureQueryData(k1)])},head:()=>({meta:[{title:"Run Instances | EC2 | Mulga"}]}),component:yt(d2e,"component")}),h2e=()=>pt(()=>import("./route2.js"),[]),m2e=at("/_auth/s3/ls/$bucket")({component:yt(h2e,"component")}),g2e=()=>pt(()=>import("./index5.js"),__vite__mapDeps([32,5,10,11,6,12,33,28,30,34])),y2e=at("/_auth/s3/ls/$bucket/")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(AB(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:yt(g2e,"component")}),v2e={queryKey:["iam","users"],queryFn:()=>{const e=new Twe({});return tl().send(e)},staleTime:3e5},b2e=e=>({queryKey:["iam","users",e],queryFn:()=>{const t=new Rwe({UserName:e});return tl().send(t)},staleTime:3e5}),S2e=e=>({queryKey:["iam","access-keys",e],queryFn:()=>{const t=new Cwe({UserName:e});return tl().send(t)},staleTime:3e5}),IB={queryKey:["iam","policies"],queryFn:()=>{const e=new Iwe({Scope:"Local"});return tl().send(e)},staleTime:3e5},_2e=e=>({queryKey:["iam","policies",e],queryFn:()=>{const t=new xwe({PolicyArn:e});return tl().send(t)},staleTime:3e5}),E2e=(e,t)=>({queryKey:["iam","policy-versions",e,t],queryFn:()=>{const n=new wwe({PolicyArn:e,VersionId:t});return tl().send(n)},staleTime:3e5}),x2e=e=>({queryKey:["iam","attached-user-policies",e],queryFn:()=>{const t=new Awe({UserName:e});return tl().send(t)},staleTime:3e5}),w2e=()=>pt(()=>import("./index6.js"),__vite__mapDeps([35,5,8,6])),R2e=at("/_auth/iam/(users)/list-users/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(v2e)},head:()=>({meta:[{title:"Users | IAM | Mulga"}]}),component:yt(w2e,"component")}),C2e=()=>pt(()=>import("./index7.js"),__vite__mapDeps([36,5,8,6])),A2e=at("/_auth/iam/(policies)/list-policies/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(IB)},head:()=>({meta:[{title:"Policies | IAM | Mulga"}]}),component:yt(C2e,"component")}),I2e=()=>pt(()=>import("./index8.js"),__vite__mapDeps([37,5,8,6,38])),T2e=at("/_auth/ec2/(vpc)/describe-vpcs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(wB)},head:()=>({meta:[{title:"VPCs | EC2 | Mulga"}]}),component:yt(I2e,"component")}),O2e=()=>pt(()=>import("./index9.js"),__vite__mapDeps([39,5,8,6,38])),M2e=at("/_auth/ec2/(volumes)/describe-volumes/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(RB)},head:()=>({meta:[{title:"Volumes | EC2 | Mulga"}]}),component:yt(O2e,"component")}),D2e=()=>pt(()=>import("./index10.js"),__vite__mapDeps([40,5,8,6,38])),P2e=at("/_auth/ec2/(subnet)/describe-subnets/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(k1)},head:()=>({meta:[{title:"Subnets | EC2 | Mulga"}]}),component:yt(D2e,"component")}),k2e=()=>pt(()=>import("./index11.js"),__vite__mapDeps([41,5,8,6,38])),N2e=at("/_auth/ec2/(snapshots)/describe-snapshots/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(UTe)},head:()=>({meta:[{title:"Snapshots | EC2 | Mulga"}]}),component:yt(k2e,"component")}),L2e=()=>pt(()=>import("./index12.js"),__vite__mapDeps([42,5,8,6])),$2e=at("/_auth/ec2/(key)/describe-key-pairs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(EB)},head:()=>({meta:[{title:"Key Pairs | EC2 | Mulga"}]}),component:yt(L2e,"component")}),z2e=()=>pt(()=>import("./index13.js"),__vite__mapDeps([43,5,8,6,38])),B2e=at("/_auth/ec2/(instances)/describe-instances/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vB)},head:()=>({meta:[{title:"Instances | EC2 | Mulga"}]}),component:yt(z2e,"component")}),U2e=()=>pt(()=>import("./index14.js"),__vite__mapDeps([44,5,8,6,38])),j2e=at("/_auth/ec2/(images)/describe-images/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(SB)},head:()=>({meta:[{title:"Images | EC2 | Mulga"}]}),component:yt(U2e,"component")}),V2e=()=>pt(()=>import("./_.js"),__vite__mapDeps([45,5,10,11,12,33,28,30,34])),H2e=at("/_auth/s3/ls/$bucket/$")({loader:async({context:e,params:t})=>{const n=XV(t._splat||"");await e.queryClient.ensureQueryData(AB(t.bucket,n))},head:({params:e})=>({meta:[{title:`${WV(e._splat||"",`${e.bucket}/`)} | S3 | Mulga`}]}),component:yt(V2e,"component")}),q2e=()=>pt(()=>import("./_userName.js"),__vite__mapDeps([46,5,10,47,11,6,38,28,14,29,23,34])),F2e=at("/_auth/iam/(users)/list-users/$userName")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(b2e(t.userName)),e.queryClient.ensureQueryData(S2e(t.userName)),e.queryClient.ensureQueryData(x2e(t.userName)),e.queryClient.ensureQueryData(IB)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:yt(q2e,"component")}),G2e=()=>pt(()=>import("./_policyArn.js"),__vite__mapDeps([48,5,10,47,11,6,28,14,34])),K2e=at("/_auth/iam/(policies)/list-policies/$policyArn")({loader:async({context:e,params:t})=>{const n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(_2e(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(E2e(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??"Policy"} | IAM | Mulga`}]}),component:yt(G2e,"component")}),Z2e=()=>pt(()=>import("./_id.js"),__vite__mapDeps([49,5,10,47,11,6,38,28,19,34])),Q2e=at("/_auth/ec2/(vpc)/describe-vpcs/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(VTe(t.id)),e.queryClient.ensureQueryData(k1)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:yt(Z2e,"component")}),Y2e=()=>pt(()=>import("./_id2.js"),__vite__mapDeps([50,1,5,10,11,6,2,3,19,20])),X2e=at("/_auth/ec2/(volumes)/modify-volume/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(CB(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:yt(Y2e,"component")}),W2e=()=>pt(()=>import("./_id3.js"),__vite__mapDeps([51,5,10,47,11,6,38,28,2,3,22,23,19,34])),J2e=at("/_auth/ec2/(volumes)/describe-volumes/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(CB(t.id)),e.queryClient.ensureQueryData(vB)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:yt(W2e,"component")}),eOe=()=>pt(()=>import("./_id4.js"),__vite__mapDeps([52,5,10,47,11,6,38,28,19,34])),tOe=at("/_auth/ec2/(subnet)/describe-subnets/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(BTe(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:yt(eOe,"component")}),nOe=()=>pt(()=>import("./_id5.js"),__vite__mapDeps([53,5,10,47,11,6,38,28,2,3,19,34])),sOe=at("/_auth/ec2/(snapshots)/describe-snapshots/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(jTe(t.id)),e.queryClient.ensureQueryData(xB)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:yt(nOe,"component")}),rOe=()=>pt(()=>import("./_id6.js"),__vite__mapDeps([54,5,10,47,11,6,28,19,34])),oOe=at("/_auth/ec2/(key)/describe-key-pairs/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(zTe(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??"Key Pair"} | EC2 | Mulga`}]}),component:yt(rOe,"component")}),iOe=()=>pt(()=>import("./_id7.js"),__vite__mapDeps([55,5,10,47,11,6,38,28,2,22,23,19,56,3,17,34])),aOe=at("/_auth/ec2/(instances)/describe-instances/$id")({loader:async({context:e,params:t})=>{const n=await e.queryClient.ensureQueryData($Te(t.id)),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await Promise.all([e.queryClient.ensureQueryData(_B(r)),e.queryClient.ensureQueryData(bB)]),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??"Instance"} | EC2 | Mulga`}]}),component:yt(iOe,"component")}),cOe=()=>pt(()=>import("./_id8.js"),__vite__mapDeps([57,5,10,6,38,56,47])),lOe=at("/_auth/ec2/(images)/describe-images/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(_B(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??"Image"} | EC2 | Mulga`}]}),component:yt(cOe,"component")}),uOe=kTe.update({id:"/login",path:"/login",getParentRoute:()=>P1}),Ot=LTe.update({id:"/_auth",getParentRoute:()=>P1}),fOe=qTe.update({id:"/",path:"/",getParentRoute:()=>Ot}),dOe=KTe.update({id:"/s3/ls/",path:"/s3/ls/",getParentRoute:()=>Ot}),pOe=QTe.update({id:"/s3/(buckets)/create-bucket",path:"/s3/create-bucket",getParentRoute:()=>Ot}),hOe=XTe.update({id:"/iam/(users)/create-user",path:"/iam/create-user",getParentRoute:()=>Ot}),mOe=JTe.update({id:"/iam/(policies)/create-policy",path:"/iam/create-policy",getParentRoute:()=>Ot}),gOe=t2e.update({id:"/ec2/(vpc)/create-vpc",path:"/ec2/create-vpc",getParentRoute:()=>Ot}),yOe=s2e.update({id:"/ec2/(volumes)/create-volume",path:"/ec2/create-volume",getParentRoute:()=>Ot}),vOe=o2e.update({id:"/ec2/(subnet)/create-subnet",path:"/ec2/create-subnet",getParentRoute:()=>Ot}),bOe=a2e.update({id:"/ec2/(snapshots)/create-snapshot",path:"/ec2/create-snapshot",getParentRoute:()=>Ot}),SOe=l2e.update({id:"/ec2/(key)/import-key-pair",path:"/ec2/import-key-pair",getParentRoute:()=>Ot}),_Oe=f2e.update({id:"/ec2/(key)/create-key-pair",path:"/ec2/create-key-pair",getParentRoute:()=>Ot}),EOe=p2e.update({id:"/ec2/(instances)/run-instances",path:"/ec2/run-instances",getParentRoute:()=>Ot}),N1=m2e.update({id:"/s3/ls/$bucket",path:"/s3/ls/$bucket",getParentRoute:()=>Ot}),xOe=y2e.update({id:"/",path:"/",getParentRoute:()=>N1}),wOe=R2e.update({id:"/iam/(users)/list-users/",path:"/iam/list-users/",getParentRoute:()=>Ot}),ROe=A2e.update({id:"/iam/(policies)/list-policies/",path:"/iam/list-policies/",getParentRoute:()=>Ot}),COe=T2e.update({id:"/ec2/(vpc)/describe-vpcs/",path:"/ec2/describe-vpcs/",getParentRoute:()=>Ot}),AOe=M2e.update({id:"/ec2/(volumes)/describe-volumes/",path:"/ec2/describe-volumes/",getParentRoute:()=>Ot}),IOe=P2e.update({id:"/ec2/(subnet)/describe-subnets/",path:"/ec2/describe-subnets/",getParentRoute:()=>Ot}),TOe=N2e.update({id:"/ec2/(snapshots)/describe-snapshots/",path:"/ec2/describe-snapshots/",getParentRoute:()=>Ot}),OOe=$2e.update({id:"/ec2/(key)/describe-key-pairs/",path:"/ec2/describe-key-pairs/",getParentRoute:()=>Ot}),MOe=B2e.update({id:"/ec2/(instances)/describe-instances/",path:"/ec2/describe-instances/",getParentRoute:()=>Ot}),DOe=j2e.update({id:"/ec2/(images)/describe-images/",path:"/ec2/describe-images/",getParentRoute:()=>Ot}),POe=H2e.update({id:"/$",path:"/$",getParentRoute:()=>N1}),kOe=F2e.update({id:"/iam/(users)/list-users/$userName",path:"/iam/list-users/$userName",getParentRoute:()=>Ot}),NOe=K2e.update({id:"/iam/(policies)/list-policies/$policyArn",path:"/iam/list-policies/$policyArn",getParentRoute:()=>Ot}),LOe=Q2e.update({id:"/ec2/(vpc)/describe-vpcs/$id",path:"/ec2/describe-vpcs/$id",getParentRoute:()=>Ot}),$Oe=X2e.update({id:"/ec2/(volumes)/modify-volume/$id",path:"/ec2/modify-volume/$id",getParentRoute:()=>Ot}),zOe=J2e.update({id:"/ec2/(volumes)/describe-volumes/$id",path:"/ec2/describe-volumes/$id",getParentRoute:()=>Ot}),BOe=tOe.update({id:"/ec2/(subnet)/describe-subnets/$id",path:"/ec2/describe-subnets/$id",getParentRoute:()=>Ot}),UOe=sOe.update({id:"/ec2/(snapshots)/describe-snapshots/$id",path:"/ec2/describe-snapshots/$id",getParentRoute:()=>Ot}),jOe=oOe.update({id:"/ec2/(key)/describe-key-pairs/$id",path:"/ec2/describe-key-pairs/$id",getParentRoute:()=>Ot}),VOe=aOe.update({id:"/ec2/(instances)/describe-instances/$id",path:"/ec2/describe-instances/$id",getParentRoute:()=>Ot}),HOe=lOe.update({id:"/ec2/(images)/describe-images/$id",path:"/ec2/describe-images/$id",getParentRoute:()=>Ot}),qOe={AuthS3LsBucketSplatRoute:POe,AuthS3LsBucketIndexRoute:xOe},FOe=N1._addFileChildren(qOe),GOe={AuthIndexRoute:fOe,AuthS3LsBucketRouteRoute:FOe,AuthEc2instancesRunInstancesRoute:EOe,AuthEc2keyCreateKeyPairRoute:_Oe,AuthEc2keyImportKeyPairRoute:SOe,AuthEc2snapshotsCreateSnapshotRoute:bOe,AuthEc2subnetCreateSubnetRoute:vOe,AuthEc2volumesCreateVolumeRoute:yOe,AuthEc2vpcCreateVpcRoute:gOe,AuthIampoliciesCreatePolicyRoute:mOe,AuthIamusersCreateUserRoute:hOe,AuthS3bucketsCreateBucketRoute:pOe,AuthS3LsIndexRoute:dOe,AuthEc2imagesDescribeImagesIdRoute:HOe,AuthEc2instancesDescribeInstancesIdRoute:VOe,AuthEc2keyDescribeKeyPairsIdRoute:jOe,AuthEc2snapshotsDescribeSnapshotsIdRoute:UOe,AuthEc2subnetDescribeSubnetsIdRoute:BOe,AuthEc2volumesDescribeVolumesIdRoute:zOe,AuthEc2volumesModifyVolumeIdRoute:$Oe,AuthEc2vpcDescribeVpcsIdRoute:LOe,AuthIampoliciesListPoliciesPolicyArnRoute:NOe,AuthIamusersListUsersUserNameRoute:kOe,AuthEc2imagesDescribeImagesIndexRoute:DOe,AuthEc2instancesDescribeInstancesIndexRoute:MOe,AuthEc2keyDescribeKeyPairsIndexRoute:OOe,AuthEc2snapshotsDescribeSnapshotsIndexRoute:TOe,AuthEc2subnetDescribeSubnetsIndexRoute:IOe,AuthEc2volumesDescribeVolumesIndexRoute:AOe,AuthEc2vpcDescribeVpcsIndexRoute:COe,AuthIampoliciesListPoliciesIndexRoute:ROe,AuthIamusersListUsersIndexRoute:wOe},KOe=Ot._addFileChildren(GOe),ZOe={AuthRouteRoute:KOe,LoginRoute:uOe},QOe=P1._addFileChildren(ZOe)._addFileTypes(),TB=new g5({defaultOptions:{queries:{staleTime:5e3}}}),YOe=bj({routeTree:QOe,context:{queryClient:TB},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),jb=document.getElementById("app");jb&&!jb.innerHTML&&kj.createRoot(jb).render(k.jsx(M.StrictMode,{children:k.jsx(zj,{defaultTheme:"system",storageKey:"hive-ui-theme",children:k.jsx(v5,{client:TB,children:k.jsx(gG,{children:k.jsx(Ej,{router:YOe})})})})}));export{Gm as $,IB as A,cu as B,UTe as C,sz as D,vB as E,H2e as F,XV as G,fMe as H,WV as I,Ss as J,$c as K,Rs as L,AMe as M,xn as N,zD as O,xw as P,Nn as Q,a2e as R,hDe as S,lMe as T,mB as U,I2 as V,di as W,aDe as X,Sz as Y,wS as Z,EJ as _,bn as a,$r as a$,zc as a0,Y3 as a1,X3 as a2,Yee as a3,tte as a4,Xee as a5,cDe as a6,wd as a7,Qn as a8,eo as a9,WMe as aA,JMe as aB,eDe as aC,tDe as aD,nDe as aE,sDe as aF,rDe as aG,oDe as aH,tl as aI,Q2e as aJ,VTe as aK,X2e as aL,CB as aM,wMe as aN,E2 as aO,RMe as aP,ou as aQ,EMe as aR,xMe as aS,Lk as aT,J2e as aU,JV as aV,d9 as aW,qD as aX,hi as aY,or as aZ,WS as a_,iDe as aa,Dg as ab,mw as ac,lDe as ad,uDe as ae,fDe as af,dDe as ag,pDe as ah,mDe as ai,gDe as aj,yDe as ak,WOe as al,XOe as am,H3 as an,hee as ao,Vm as ap,pD as aq,F2e as ar,b2e as as,S2e as at,x2e as au,K2e as av,_2e as aw,E2e as ax,Xc as ay,XMe as az,aX as b,dH as b$,Ke as b0,Ct as b1,Lt as b2,Oa as b3,ZD as b4,si as b5,sn as b6,zr as b7,ln as b8,i_ as b9,kMe as bA,NMe as bB,LMe as bC,$Me as bD,zMe as bE,BMe as bF,UMe as bG,jMe as bH,VMe as bI,HMe as bJ,qMe as bK,FMe as bL,GMe as bM,KMe as bN,ZMe as bO,QMe as bP,YMe as bQ,hMe as bR,cH as bS,mMe as bT,dMe as bU,pMe as bV,Lh as bW,Pm as bX,DP as bY,lu as bZ,vd as b_,eg as ba,r5 as bb,YU as bc,JOe as bd,Hb as be,to as bf,tg as bg,ZU as bh,QU as bi,Vb as bj,cD as bk,u5 as bl,JU as bm,As as bn,eMe as bo,hd as bp,p5 as bq,Co as br,IMe as bs,TX as bt,bS as bu,TMe as bv,OMe as bw,MMe as bx,DMe as by,PMe as bz,qt as c,oOe as c$,e_ as c0,rS as c1,ho as c2,pg as c3,Pd as c4,OT as c5,Zv as c6,At as c7,yMe as c8,On as c9,yF as cA,YF as cB,lF as cC,cF as cD,Dd as cE,Rk as cF,Pn as cG,hP as cH,v7 as cI,bMe as cJ,r_ as cK,oF as cL,gMe as cM,jc as cN,EF as cO,SF as cP,LP as cQ,aF as cR,RF as cS,n7 as cT,t7 as cU,uF as cV,e7 as cW,tOe as cX,BTe as cY,sOe as cZ,jTe as c_,js as ca,kP as cb,uH as cc,fH as cd,dt as ce,iMe as cf,qH as cg,bF as ch,kq as ci,sk as cj,PP as ck,o_ as cl,Bq as cm,WP as cn,uk as co,ag as cp,vk as cq,xm as cr,_Me as cs,BP as ct,XD as cu,SMe as cv,vMe as cw,WH as cx,p7 as cy,aMe as cz,OTe as d,zTe as d0,aOe as d1,$Te as d2,_B as d3,lOe as d4,$a as d5,xo as d6,cX as e,xB as f,ls as g,FTe as h,S2 as i,k as j,yB as k,wB as l,RB as m,SB as n,$Y as o,EB as p,bB as q,M as r,CMe as s,k1 as t,ig as u,y2e as v,uMe as w,AB as x,v2e as y,cMe as z}; diff --git a/hive/services/hiveui/frontend/dist/assets/index10.js b/hive/services/hiveui/frontend/dist/assets/index10.js index f0cc48b50..a46c17250 100644 --- a/hive/services/hiveui/frontend/dist/assets/index10.js +++ b/hive/services/hiveui/frontend/dist/assets/index10.js @@ -1 +1 @@ -import{c as m,m as l,j as t,L as n,B as c}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as y}from"./page-heading.js";function P(){const e=m.c(4),{data:s}=p(l);let r;if(e[0]!==s.KeyPairs){const a=(s.KeyPairs||[]).toSorted(f);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(n,{to:"/ec2/import-key-pair",children:t.jsx(c,{variant:"outline",children:"Import Key Pair"})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(y,{actions:t.jsxs("div",{className:"flex gap-2",children:[i,t.jsx(n,{to:"/ec2/create-key-pair",children:t.jsx(c,{children:"Create Key Pair"})})]}),title:"EC2 Key Pairs"}),e[3]=o):o=e[3],r=t.jsxs(t.Fragment,{children:[o,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No key pairs found."})]}),e[0]=s.KeyPairs,e[1]=r}else r=e[1];return r}function u(e){return e.KeyPairId?t.jsx(d,{params:{id:e.KeyPairId},subtitle:`${e.KeyPairId} • ${e.KeyType}`,title:e.KeyName??"",to:"/ec2/describe-key-pairs/$id"},e.KeyPairId):null}function f(e,s){const r=e.KeyName?.toLowerCase()??"",a=s.KeyName?.toLowerCase()??"";return r.localeCompare(a)}export{P as component}; +import{c as o,t as c,j as t,L as u,B as m}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as p}from"./page-heading.js";import{S}from"./state-badge.js";function $(){const e=o.c(5),{data:s}=l(c);let n;e[0]!==s.Subnets?(n=s.Subnets||[],e[0]=s.Subnets,e[1]=n):n=e[1];const a=n;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{actions:t.jsx(u,{to:"/ec2/create-subnet",children:t.jsx(m,{children:"Create Subnet"})}),title:"Subnets"}),e[2]=r):r=e[2];let i;return e[3]!==a?(i=t.jsxs(t.Fragment,{children:[r,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No subnets found."})]}),e[3]=a,e[4]=i):i=e[4],i}function f(e){if(!e.SubnetId)return null;const s=e.Tags?.find(b)?.Value;return t.jsx(d,{badge:t.jsx(S,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??""} • ${e.AvailabilityZone??""}`,title:s?`${e.SubnetId} (${s})`:e.SubnetId,to:"/ec2/describe-subnets/$id"},e.SubnetId)}function b(e){return e.Key==="Name"}export{$ as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index11.js b/hive/services/hiveui/frontend/dist/assets/index11.js index edbcf0d9a..0d262223a 100644 --- a/hive/services/hiveui/frontend/dist/assets/index11.js +++ b/hive/services/hiveui/frontend/dist/assets/index11.js @@ -1 +1 @@ -import{c as u,x as f,j as t,L as I,B as x}from"./index.js";import{u as g}from"./useSuspenseQuery.js";import{L as h}from"./list-card.js";import{P as j}from"./page-heading.js";import{S}from"./state-badge.js";function L(){const e=u.c(5),{data:o}=g(f);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5},e[0]=s):s=e[0];const c=s;let n;if(e[1]!==o.Reservations){let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=(m,l)=>{const d=c[m.State?.Name??""]??6,p=c[l.State?.Name??""]??6;return d!==p?d-p:(m.InstanceId??"").localeCompare(l.InstanceId??"")},e[3]=a):a=e[3];const i=(o.Reservations?.flatMap(_)||[]).toSorted(a);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(j,{actions:t.jsx(I,{to:"/ec2/run-instances",children:t.jsx(x,{children:"Run Instances"})}),title:"EC2 Instances"}),e[4]=r):r=e[4],n=t.jsxs(t.Fragment,{children:[r,i.length>0?t.jsx("div",{className:"space-y-4",children:i.map(y)}):t.jsx("p",{className:"text-muted-foreground",children:"No instances found."})]}),e[1]=o.Reservations,e[2]=n}else n=e[2];return n}function y(e){return e.InstanceId?t.jsx(h,{badge:t.jsx(S,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType} • ${e.ImageId}`,title:e.InstanceId,to:"/ec2/describe-instances/$id"},e.InstanceId):null}function _(e){return e.Instances||[]}export{L as component}; +import{c as i,C as c,j as e,L as m,B as p}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as u}from"./page-heading.js";import{S}from"./state-badge.js";function b(){const t=i.c(5),{data:r}=l(c);let s;t[0]!==r.Snapshots?(s=r.Snapshots||[],t[0]=r.Snapshots,t[1]=s):s=t[1];const o=s;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(u,{actions:e.jsx(m,{to:"/ec2/create-snapshot",children:e.jsx(p,{children:"Create Snapshot"})}),title:"EC2 Snapshots"}),t[2]=a):a=t[2];let n;return t[3]!==o?(n=e.jsxs(e.Fragment,{children:[a,o.length>0?e.jsx("div",{className:"space-y-4",children:o.map(h)}):e.jsx("p",{className:"text-muted-foreground",children:"No snapshots found."})]}),t[3]=o,t[4]=n):n=t[4],n}function h(t){return t.SnapshotId?e.jsx(d,{badge:e.jsx(S,{state:t.State}),params:{id:t.SnapshotId},subtitle:`${t.VolumeSize} GiB • ${t.VolumeId}`,title:t.SnapshotId,to:"/ec2/describe-snapshots/$id"},t.SnapshotId):null}export{b as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index12.js b/hive/services/hiveui/frontend/dist/assets/index12.js index ed5a203dc..134b956e7 100644 --- a/hive/services/hiveui/frontend/dist/assets/index12.js +++ b/hive/services/hiveui/frontend/dist/assets/index12.js @@ -1 +1 @@ -import{c as n,l as i,j as t}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as l}from"./list-card.js";import{P as d}from"./page-heading.js";import{S as p}from"./state-badge.js";function h(){const e=n.c(5),{data:o}=c(i);let s;e[0]!==o.Images?(s=o.Images||[],e[0]=o.Images,e[1]=s):s=e[1];const a=s;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(d,{title:"EC2 Images"}),e[2]=m):m=e[2];let r;return e[3]!==a?(r=t.jsxs(t.Fragment,{children:[m,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No images found."})]}),e[3]=a,e[4]=r):r=e[4],r}function u(e){return e.ImageId?t.jsx(l,{badge:t.jsx(p,{state:e.State}),params:{id:e.ImageId},subtitle:e.Name,title:e.ImageId,to:"/ec2/describe-images/$id"},e.ImageId):null}export{h as component}; +import{c as m,p as l,j as t,L as n,B as c}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as y}from"./page-heading.js";function P(){const e=m.c(4),{data:s}=p(l);let r;if(e[0]!==s.KeyPairs){const a=(s.KeyPairs||[]).toSorted(f);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(n,{to:"/ec2/import-key-pair",children:t.jsx(c,{variant:"outline",children:"Import Key Pair"})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(y,{actions:t.jsxs("div",{className:"flex gap-2",children:[i,t.jsx(n,{to:"/ec2/create-key-pair",children:t.jsx(c,{children:"Create Key Pair"})})]}),title:"EC2 Key Pairs"}),e[3]=o):o=e[3],r=t.jsxs(t.Fragment,{children:[o,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No key pairs found."})]}),e[0]=s.KeyPairs,e[1]=r}else r=e[1];return r}function u(e){return e.KeyPairId?t.jsx(d,{params:{id:e.KeyPairId},subtitle:`${e.KeyPairId} • ${e.KeyType}`,title:e.KeyName??"",to:"/ec2/describe-key-pairs/$id"},e.KeyPairId):null}function f(e,s){const r=e.KeyName?.toLowerCase()??"",a=s.KeyName?.toLowerCase()??"";return r.localeCompare(a)}export{P as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index13.js b/hive/services/hiveui/frontend/dist/assets/index13.js new file mode 100644 index 000000000..9e9d1328c --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index13.js @@ -0,0 +1 @@ +import{c as u,E as f,j as t,L as I,B as x}from"./index.js";import{u as g}from"./useSuspenseQuery.js";import{L as h}from"./list-card.js";import{P as j}from"./page-heading.js";import{S}from"./state-badge.js";function L(){const e=u.c(5),{data:o}=g(f);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5},e[0]=s):s=e[0];const c=s;let n;if(e[1]!==o.Reservations){let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=(m,l)=>{const d=c[m.State?.Name??""]??6,p=c[l.State?.Name??""]??6;return d!==p?d-p:(m.InstanceId??"").localeCompare(l.InstanceId??"")},e[3]=a):a=e[3];const i=(o.Reservations?.flatMap(_)||[]).toSorted(a);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(j,{actions:t.jsx(I,{to:"/ec2/run-instances",children:t.jsx(x,{children:"Run Instances"})}),title:"EC2 Instances"}),e[4]=r):r=e[4],n=t.jsxs(t.Fragment,{children:[r,i.length>0?t.jsx("div",{className:"space-y-4",children:i.map(y)}):t.jsx("p",{className:"text-muted-foreground",children:"No instances found."})]}),e[1]=o.Reservations,e[2]=n}else n=e[2];return n}function y(e){return e.InstanceId?t.jsx(h,{badge:t.jsx(S,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType} • ${e.ImageId}`,title:e.InstanceId,to:"/ec2/describe-instances/$id"},e.InstanceId):null}function _(e){return e.Instances||[]}export{L as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index14.js b/hive/services/hiveui/frontend/dist/assets/index14.js new file mode 100644 index 000000000..cd6b526c9 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index14.js @@ -0,0 +1 @@ +import{c as n,n as i,j as t}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as l}from"./list-card.js";import{P as d}from"./page-heading.js";import{S as p}from"./state-badge.js";function h(){const e=n.c(5),{data:o}=c(i);let s;e[0]!==o.Images?(s=o.Images||[],e[0]=o.Images,e[1]=s):s=e[1];const a=s;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(d,{title:"EC2 Images"}),e[2]=m):m=e[2];let r;return e[3]!==a?(r=t.jsxs(t.Fragment,{children:[m,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No images found."})]}),e[3]=a,e[4]=r):r=e[4],r}function u(e){return e.ImageId?t.jsx(l,{badge:t.jsx(p,{state:e.State}),params:{id:e.ImageId},subtitle:e.Name,title:e.ImageId,to:"/ec2/describe-images/$id"},e.ImageId):null}export{h as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index2.js b/hive/services/hiveui/frontend/dist/assets/index2.js index ca37b100d..c7f16dcb2 100644 --- a/hive/services/hiveui/frontend/dist/assets/index2.js +++ b/hive/services/hiveui/frontend/dist/assets/index2.js @@ -1 +1 @@ -import{cK as z,cL as x}from"./index.js";class T{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:i,serializer:n,deserializer:o,serdeContext:c,defaultContentType:y}){this.marshaller=i,this.serializer=n,this.deserializer=o,this.serdeContext=c,this.defaultContentType=y}async serializeEventStream({eventStream:i,requestSchema:n,initialRequest:o}){const c=this.marshaller,y=n.getEventStreamMember(),p=n.getMemberSchema(y),d=this.serializer,f=this.defaultContentType,h=Symbol("initialRequestMarker"),S={async*[Symbol.asyncIterator](){if(o){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};d.write(n,o);const t=d.flush();yield{[h]:!0,headers:r,body:t}}for await(const r of i)yield r}};return c.serialize(S,r=>{if(r[h])return{headers:r.headers,body:r.body};const t=Object.keys(r).find(s=>s!=="__type")??"",{additionalHeaders:e,body:a,eventType:l,explicitPayloadContentType:m}=this.writeEventBody(t,p,r);return{headers:{":event-type":{type:"string",value:l},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??f},...e},body:a}})}async deserializeEventStream({response:i,responseSchema:n,initialResponseContainer:o}){const c=this.marshaller,y=n.getEventStreamMember(),d=n.getMemberSchema(y).getMemberSchemas(),f=Symbol("initialResponseMarker"),h=c.deserialize(i.body,async t=>{const e=Object.keys(t).find(l=>l!=="__type")??"",a=t[e].body;if(e==="initial-response"){const l=await this.deserializer.read(n,a);return delete l[y],{[f]:!0,...l}}else if(e in d){const l=d[e];if(l.isStructSchema()){const m={};let u=!1;for(const[s,g]of l.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(u=u||!!(v||w),w)g.isBlobSchema()?m[s]=a:g.isStringSchema()?m[s]=(this.serdeContext?.utf8Encoder??z)(a):g.isStructSchema()&&(m[s]=await this.deserializer.read(g,a));else if(v){const b=t[e].headers[s]?.value;b!=null&&(g.isNumericSchema()?b&&typeof b=="object"&&"bytes"in b?m[s]=BigInt(b.toString()):m[s]=Number(b):m[s]=b)}}if(u)return{[e]:m};if(a.byteLength===0)return{[e]:{}}}return{[e]:await this.deserializer.read(l,a)}}else return{$unknown:t}}),S=h[Symbol.asyncIterator](),r=await S.next();if(r.done)return h;if(r.value?.[f]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[t,e]of Object.entries(r.value))o[t]=e}return{async*[Symbol.asyncIterator](){for(r?.value?.[f]||(yield r.value);;){const{done:t,value:e}=await S.next();if(t)break;yield e}}}}writeEventBody(i,n,o){const c=this.serializer;let y=i,p=null,d;const f=n.getSchema()[4].includes(i),h={};if(f){const t=n.getMemberSchema(i);if(t.isStructSchema()){for(const[e,a]of t.structIterator()){const{eventHeader:l,eventPayload:m}=a.getMergedTraits();if(m)p=e;else if(l){const u=o[i][e];let s="binary";a.isNumericSchema()?(-2)**31<=u&&u<=2**31-1?s="integer":s="long":a.isTimestampSchema()?s="timestamp":a.isStringSchema()?s="string":a.isBooleanSchema()&&(s="boolean"),u!=null&&(h[e]={type:s,value:u},delete o[i][e])}}if(p!==null){const e=t.getMemberSchema(p);e.isBlobSchema()?d="application/octet-stream":e.isStringSchema()&&(d="text/plain"),c.write(e,o[i][p])}else c.write(t,o[i])}else if(t.isUnitSchema())c.write(t,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[t,e]=o[i];y=t,c.write(15,e)}const S=c.flush();return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??x)(S):S,eventType:y,explicitPayloadContentType:d,additionalHeaders:h}}}export{T as EventStreamSerde}; +import{d5 as z,d6 as x}from"./index.js";class T{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:i,serializer:n,deserializer:o,serdeContext:c,defaultContentType:d}){this.marshaller=i,this.serializer=n,this.deserializer=o,this.serdeContext=c,this.defaultContentType=d}async serializeEventStream({eventStream:i,requestSchema:n,initialRequest:o}){const c=this.marshaller,d=n.getEventStreamMember(),p=n.getMemberSchema(d),y=this.serializer,f=this.defaultContentType,h=Symbol("initialRequestMarker"),S={async*[Symbol.asyncIterator](){if(o){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};y.write(n,o);const t=y.flush();yield{[h]:!0,headers:r,body:t}}for await(const r of i)yield r}};return c.serialize(S,r=>{if(r[h])return{headers:r.headers,body:r.body};const t=Object.keys(r).find(s=>s!=="__type")??"",{additionalHeaders:e,body:a,eventType:l,explicitPayloadContentType:m}=this.writeEventBody(t,p,r);return{headers:{":event-type":{type:"string",value:l},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??f},...e},body:a}})}async deserializeEventStream({response:i,responseSchema:n,initialResponseContainer:o}){const c=this.marshaller,d=n.getEventStreamMember(),y=n.getMemberSchema(d).getMemberSchemas(),f=Symbol("initialResponseMarker"),h=c.deserialize(i.body,async t=>{const e=Object.keys(t).find(l=>l!=="__type")??"",a=t[e].body;if(e==="initial-response"){const l=await this.deserializer.read(n,a);return delete l[d],{[f]:!0,...l}}else if(e in y){const l=y[e];if(l.isStructSchema()){const m={};let u=!1;for(const[s,g]of l.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(u=u||!!(v||w),w)g.isBlobSchema()?m[s]=a:g.isStringSchema()?m[s]=(this.serdeContext?.utf8Encoder??z)(a):g.isStructSchema()&&(m[s]=await this.deserializer.read(g,a));else if(v){const b=t[e].headers[s]?.value;b!=null&&(g.isNumericSchema()?b&&typeof b=="object"&&"bytes"in b?m[s]=BigInt(b.toString()):m[s]=Number(b):m[s]=b)}}if(u)return{[e]:m};if(a.byteLength===0)return{[e]:{}}}return{[e]:await this.deserializer.read(l,a)}}else return{$unknown:t}}),S=h[Symbol.asyncIterator](),r=await S.next();if(r.done)return h;if(r.value?.[f]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[t,e]of Object.entries(r.value))o[t]=e}return{async*[Symbol.asyncIterator](){for(r?.value?.[f]||(yield r.value);;){const{done:t,value:e}=await S.next();if(t)break;yield e}}}}writeEventBody(i,n,o){const c=this.serializer;let d=i,p=null,y;const f=n.getSchema()[4].includes(i),h={};if(f){const t=n.getMemberSchema(i);if(t.isStructSchema()){for(const[e,a]of t.structIterator()){const{eventHeader:l,eventPayload:m}=a.getMergedTraits();if(m)p=e;else if(l){const u=o[i][e];let s="binary";a.isNumericSchema()?(-2)**31<=u&&u<=2**31-1?s="integer":s="long":a.isTimestampSchema()?s="timestamp":a.isStringSchema()?s="string":a.isBooleanSchema()&&(s="boolean"),u!=null&&(h[e]={type:s,value:u},delete o[i][e])}}if(p!==null){const e=t.getMemberSchema(p);e.isBlobSchema()?y="application/octet-stream":e.isStringSchema()&&(y="text/plain"),c.write(e,o[i][p])}else c.write(t,o[i])}else if(t.isUnitSchema())c.write(t,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[t,e]=o[i];d=t,c.write(15,e)}const S=c.flush();return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??x)(S):S,eventType:d,explicitPayloadContentType:y,additionalHeaders:h}}}export{T as EventStreamSerde}; diff --git a/hive/services/hiveui/frontend/dist/assets/index3.js b/hive/services/hiveui/frontend/dist/assets/index3.js index 23ebaadb5..f1e4c03a5 100644 --- a/hive/services/hiveui/frontend/dist/assets/index3.js +++ b/hive/services/hiveui/frontend/dist/assets/index3.js @@ -1 +1 @@ -import{c as n,e as r,j as i}from"./index.js";import{u as a}from"./useSuspenseQuery.js";import{P as p}from"./page-heading.js";function g(){const e=n.c(2),{data:t}=a(r),s=`${t?.Regions?.[0]?.RegionName} Dashboard`;let o;return e[0]!==s?(o=i.jsx(p,{title:s}),e[0]=s,e[1]=o):o=e[1],o}export{g as component}; +import{c as n,f as r,j as i}from"./index.js";import{u as a}from"./useSuspenseQuery.js";import{P as p}from"./page-heading.js";function f(){const e=n.c(2),{data:t}=a(r),s=`${t?.Regions?.[0]?.RegionName} Dashboard`;let o;return e[0]!==s?(o=i.jsx(p,{title:s}),e[0]=s,e[1]=o):o=e[1],o}export{f as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index4.js b/hive/services/hiveui/frontend/dist/assets/index4.js index 48ff7d3bf..cfe7f152c 100644 --- a/hive/services/hiveui/frontend/dist/assets/index4.js +++ b/hive/services/hiveui/frontend/dist/assets/index4.js @@ -1 +1 @@ -import{c as i,d as c,j as t,L as m,B as u}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as p}from"./list-card.js";import{P as d}from"./page-heading.js";function h(){const e=i.c(5),{data:n}=l(c);let s;e[0]!==n.Buckets?(s=n.Buckets||[],e[0]=n.Buckets,e[1]=s):s=e[1];const a=s;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{actions:t.jsx(m,{to:"/s3/create-bucket",children:t.jsx(u,{children:"Create Bucket"})}),title:"S3 Buckets"}),e[2]=r):r=e[2];let o;return e[3]!==a?(o=t.jsxs(t.Fragment,{children:[r,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No buckets found."})]}),e[3]=a,e[4]=o):o=e[4],o}function f(e){return e.Name?t.jsx(p,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${e.CreationDate.toLocaleString()}`:void 0,title:e.Name,to:"/s3/ls/$bucket"},e.Name):null}export{h as component}; +import{c as i,h as c,j as t,L as m,B as u}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as p}from"./list-card.js";import{P as d}from"./page-heading.js";function k(){const e=i.c(5),{data:n}=l(c);let s;e[0]!==n.Buckets?(s=n.Buckets||[],e[0]=n.Buckets,e[1]=s):s=e[1];const a=s;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{actions:t.jsx(m,{to:"/s3/create-bucket",children:t.jsx(u,{children:"Create Bucket"})}),title:"S3 Buckets"}),e[2]=r):r=e[2];let o;return e[3]!==a?(o=t.jsxs(t.Fragment,{children:[r,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No buckets found."})]}),e[3]=a,e[4]=o):o=e[4],o}function f(e){return e.Name?t.jsx(p,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${e.CreationDate.toLocaleString()}`:void 0,title:e.Name,to:"/s3/ls/$bucket"},e.Name):null}export{k as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index5.js b/hive/services/hiveui/frontend/dist/assets/index5.js index 9187bcea0..f7195d9be 100644 --- a/hive/services/hiveui/frontend/dist/assets/index5.js +++ b/hive/services/hiveui/frontend/dist/assets/index5.js @@ -1 +1 @@ -import{c as b,q as y,j as s,t as k,v as N}from"./index.js";import{u as B}from"./useSuspenseQuery.js";import{B as O}from"./back-link.js";import{E as C}from"./error-banner.js";import{P as v}from"./page-heading.js";import{a as F}from"./s3.js";import{U as K,F as E,O as U}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function T(){const e=b.c(31),{bucket:t}=y.useParams();let x;e[0]!==t?(x=N(t),e[0]=t,e[1]=x):x=e[1];const{data:i}=B(x),r=F();let p;e[2]!==i.Contents?(p=i.Contents||[],e[2]=i.Contents,e[3]=p):p=e[3];const o=p;let h;e[4]!==i.CommonPrefixes?(h=i.CommonPrefixes||[],e[4]=i.CommonPrefixes,e[5]=h):h=e[5];const l=h;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(O,{to:"/s3/ls",children:"Back to buckets"}),e[6]=g):g=e[6];let a;e[7]!==t||e[8]!==r.isPending||e[9]!==r.mutateAsync?(a=s.jsx(K,{bucket:t,isPending:r.isPending,onUpload:r.mutateAsync}),e[7]=t,e[8]=r.isPending,e[9]=r.mutateAsync,e[10]=a):a=e[10];let m;e[11]!==t||e[12]!==a?(m=s.jsx(v,{actions:a,title:t}),e[11]=t,e[12]=a,e[13]=m):m=e[13];let c;e[14]!==r.error?(c=r.error&&s.jsx(C,{error:r.error,msg:"Failed to upload object"}),e[14]=r.error,e[15]=c):c=e[15];let u;e[16]!==t||e[17]!==l?(u=l.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:l.map(n=>{if(!n.Prefix)return null;const P=k(n.Prefix);return s.jsx(E,{bucketName:t,folderName:P,fullPrefix:n.Prefix},n.Prefix)})})]}),e[16]=t,e[17]=l,e[18]=u):u=e[18];let f;e[19]!==t||e[20]!==o?(f=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(n=>n.Key?s.jsx(U,{bucketName:t,displayName:n.Key,fullKey:n.Key,object:n},n.Key):null)]}),e[19]=t,e[20]=o,e[21]=f):f=e[21];let d;e[22]!==l.length||e[23]!==o.length?(d=o.length===0&&l.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this bucket."}),e[22]=l.length,e[23]=o.length,e[24]=d):d=e[24];let j;return e[25]!==m||e[26]!==c||e[27]!==u||e[28]!==f||e[29]!==d?(j=s.jsxs(s.Fragment,{children:[g,m,c,u,f,d]}),e[25]=m,e[26]=c,e[27]=u,e[28]=f,e[29]=d,e[30]=j):j=e[30],j}export{T as component}; +import{c as b,v as y,j as s,w as k,x as N}from"./index.js";import{u as B}from"./useSuspenseQuery.js";import{B as O}from"./back-link.js";import{E as C}from"./error-banner.js";import{P as v}from"./page-heading.js";import{a as F}from"./s3.js";import{U as K,F as E,O as U}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function T(){const e=b.c(31),{bucket:t}=y.useParams();let x;e[0]!==t?(x=N(t),e[0]=t,e[1]=x):x=e[1];const{data:i}=B(x),r=F();let p;e[2]!==i.Contents?(p=i.Contents||[],e[2]=i.Contents,e[3]=p):p=e[3];const o=p;let h;e[4]!==i.CommonPrefixes?(h=i.CommonPrefixes||[],e[4]=i.CommonPrefixes,e[5]=h):h=e[5];const l=h;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(O,{to:"/s3/ls",children:"Back to buckets"}),e[6]=g):g=e[6];let a;e[7]!==t||e[8]!==r.isPending||e[9]!==r.mutateAsync?(a=s.jsx(K,{bucket:t,isPending:r.isPending,onUpload:r.mutateAsync}),e[7]=t,e[8]=r.isPending,e[9]=r.mutateAsync,e[10]=a):a=e[10];let m;e[11]!==t||e[12]!==a?(m=s.jsx(v,{actions:a,title:t}),e[11]=t,e[12]=a,e[13]=m):m=e[13];let c;e[14]!==r.error?(c=r.error&&s.jsx(C,{error:r.error,msg:"Failed to upload object"}),e[14]=r.error,e[15]=c):c=e[15];let u;e[16]!==t||e[17]!==l?(u=l.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:l.map(n=>{if(!n.Prefix)return null;const P=k(n.Prefix);return s.jsx(E,{bucketName:t,folderName:P,fullPrefix:n.Prefix},n.Prefix)})})]}),e[16]=t,e[17]=l,e[18]=u):u=e[18];let f;e[19]!==t||e[20]!==o?(f=o.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),o.map(n=>n.Key?s.jsx(U,{bucketName:t,displayName:n.Key,fullKey:n.Key,object:n},n.Key):null)]}),e[19]=t,e[20]=o,e[21]=f):f=e[21];let d;e[22]!==l.length||e[23]!==o.length?(d=o.length===0&&l.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this bucket."}),e[22]=l.length,e[23]=o.length,e[24]=d):d=e[24];let j;return e[25]!==m||e[26]!==c||e[27]!==u||e[28]!==f||e[29]!==d?(j=s.jsxs(s.Fragment,{children:[g,m,c,u,f,d]}),e[25]=m,e[26]=c,e[27]=u,e[28]=f,e[29]=d,e[30]=j):j=e[30],j}export{T as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index6.js b/hive/services/hiveui/frontend/dist/assets/index6.js index 30fac1944..e784b9946 100644 --- a/hive/services/hiveui/frontend/dist/assets/index6.js +++ b/hive/services/hiveui/frontend/dist/assets/index6.js @@ -1 +1 @@ -import{c,h as i,j as t,L as m,B as d}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as p}from"./list-card.js";import{P as u}from"./page-heading.js";import{S as f}from"./state-badge.js";function I(){const e=c.c(5),{data:s}=l(i);let r;e[0]!==s.Vpcs?(r=s.Vpcs||[],e[0]=s.Vpcs,e[1]=r):r=e[1];const a=r;let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{actions:t.jsx(m,{to:"/ec2/create-vpc",children:t.jsx(d,{children:"Create VPC"})}),title:"VPCs"}),e[2]=n):n=e[2];let o;return e[3]!==a?(o=t.jsxs(t.Fragment,{children:[n,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(V)}):t.jsx("p",{className:"text-muted-foreground",children:"No VPCs found."})]}),e[3]=a,e[4]=o):o=e[4],o}function V(e){if(!e.VpcId)return null;const s=e.Tags?.find(x)?.Value;return t.jsx(p,{badge:t.jsx(f,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??"",title:s?`${e.VpcId} (${s})`:e.VpcId,to:"/ec2/describe-vpcs/$id"},e.VpcId)}function x(e){return e.Key==="Name"}export{I as component}; +import{c as m,y as n,j as s,z as i,L as c,B as l}from"./index.js";import{u}from"./useSuspenseQuery.js";import{L as p}from"./list-card.js";import{P as d}from"./page-heading.js";function C(){const e=m.c(3),{data:r}=u(n);let t;if(e[0]!==r.Users){const a=(r.Users||[]).toSorted(U);let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(d,{actions:s.jsx(c,{to:"/iam/create-user",children:s.jsx(l,{children:"Create User"})}),title:"IAM Users"}),e[2]=o):o=e[2],t=s.jsxs(s.Fragment,{children:[o,a.length>0?s.jsx("div",{className:"space-y-4",children:a.map(f)}):s.jsx("p",{className:"text-muted-foreground",children:"No IAM users found."})]}),e[0]=r.Users,e[1]=t}else t=e[1];return t}function f(e){return e.UserName?s.jsx(p,{params:{userName:e.UserName},subtitle:`${e.UserId} • ${e.Path??"/"} • Created ${i(e.CreateDate)}`,title:e.UserName,to:"/iam/list-users/$userName"},e.UserName):null}function U(e,r){const t=e.UserName?.toLowerCase()??"",a=r.UserName?.toLowerCase()??"";return t.localeCompare(a)}export{C as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index7.js b/hive/services/hiveui/frontend/dist/assets/index7.js index 6f5da7853..b07f69189 100644 --- a/hive/services/hiveui/frontend/dist/assets/index7.js +++ b/hive/services/hiveui/frontend/dist/assets/index7.js @@ -1 +1 @@ -import{c as m,i as l,j as t,L as n,B as u}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as p}from"./page-heading.js";import{S as f}from"./state-badge.js";function y(){const e=m.c(5),{data:a}=c(l);let s;e[0]!==a.Volumes?(s=a.Volumes||[],e[0]=a.Volumes,e[1]=s):s=e[1];const o=s;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{actions:t.jsx(n,{to:"/ec2/create-volume",children:t.jsx(u,{children:"Create Volume"})}),title:"EC2 Volumes"}),e[2]=r):r=e[2];let i;return e[3]!==o?(i=t.jsxs(t.Fragment,{children:[r,o.length>0?t.jsx("div",{className:"space-y-4",children:o.map(x)}):t.jsx("p",{className:"text-muted-foreground",children:"No volumes found."})]}),e[3]=o,e[4]=i):i=e[4],i}function x(e){return e.VolumeId?t.jsx(d,{badge:t.jsx(f,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB • ${e.VolumeType}`,title:e.VolumeId,to:"/ec2/describe-volumes/$id"},e.VolumeId):null}export{y as component}; +import{c as n,A as a,j as t,z as c,L as m,B as l}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as u}from"./list-card.js";import{P as d}from"./page-heading.js";function h(){const e=n.c(3),{data:s}=p(a);let o;if(e[0]!==s.Policies){const i=(s.Policies||[]).toSorted(x);let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{actions:t.jsx(m,{to:"/iam/create-policy",children:t.jsx(l,{children:"Create Policy"})}),title:"IAM Policies"}),e[2]=r):r=e[2],o=t.jsxs(t.Fragment,{children:[r,i.length>0?t.jsx("div",{className:"space-y-4",children:i.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No IAM policies found."})]}),e[0]=s.Policies,e[1]=o}else o=e[1];return o}function f(e){return e.Arn?t.jsx(u,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:`${e.Arn} • Created ${c(e.CreateDate)}`,title:e.PolicyName??"",to:"/iam/list-policies/$policyArn"},e.Arn):null}function x(e,s){const o=e.PolicyName?.toLowerCase()??"",i=s.PolicyName?.toLowerCase()??"";return o.localeCompare(i)}export{h as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index8.js b/hive/services/hiveui/frontend/dist/assets/index8.js index ce180cea8..b90f7f5f4 100644 --- a/hive/services/hiveui/frontend/dist/assets/index8.js +++ b/hive/services/hiveui/frontend/dist/assets/index8.js @@ -1 +1 @@ -import{c as o,p as c,j as t,L as u,B as m}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as p}from"./page-heading.js";import{S}from"./state-badge.js";function $(){const e=o.c(5),{data:s}=l(c);let n;e[0]!==s.Subnets?(n=s.Subnets||[],e[0]=s.Subnets,e[1]=n):n=e[1];const a=n;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{actions:t.jsx(u,{to:"/ec2/create-subnet",children:t.jsx(m,{children:"Create Subnet"})}),title:"Subnets"}),e[2]=r):r=e[2];let i;return e[3]!==a?(i=t.jsxs(t.Fragment,{children:[r,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No subnets found."})]}),e[3]=a,e[4]=i):i=e[4],i}function f(e){if(!e.SubnetId)return null;const s=e.Tags?.find(b)?.Value;return t.jsx(d,{badge:t.jsx(S,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??""} • ${e.AvailabilityZone??""}`,title:s?`${e.SubnetId} (${s})`:e.SubnetId,to:"/ec2/describe-subnets/$id"},e.SubnetId)}function b(e){return e.Key==="Name"}export{$ as component}; +import{c,l as i,j as t,L as m,B as l}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{L as p}from"./list-card.js";import{P as u}from"./page-heading.js";import{S as f}from"./state-badge.js";function I(){const e=c.c(5),{data:s}=d(i);let r;e[0]!==s.Vpcs?(r=s.Vpcs||[],e[0]=s.Vpcs,e[1]=r):r=e[1];const a=r;let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{actions:t.jsx(m,{to:"/ec2/create-vpc",children:t.jsx(l,{children:"Create VPC"})}),title:"VPCs"}),e[2]=n):n=e[2];let o;return e[3]!==a?(o=t.jsxs(t.Fragment,{children:[n,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(V)}):t.jsx("p",{className:"text-muted-foreground",children:"No VPCs found."})]}),e[3]=a,e[4]=o):o=e[4],o}function V(e){if(!e.VpcId)return null;const s=e.Tags?.find(x)?.Value;return t.jsx(p,{badge:t.jsx(f,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??"",title:s?`${e.VpcId} (${s})`:e.VpcId,to:"/ec2/describe-vpcs/$id"},e.VpcId)}function x(e){return e.Key==="Name"}export{I as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index9.js b/hive/services/hiveui/frontend/dist/assets/index9.js index e9bc1276a..a4a9437d2 100644 --- a/hive/services/hiveui/frontend/dist/assets/index9.js +++ b/hive/services/hiveui/frontend/dist/assets/index9.js @@ -1 +1 @@ -import{c as i,w as c,j as e,L as m,B as p}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as u}from"./page-heading.js";import{S}from"./state-badge.js";function b(){const t=i.c(5),{data:r}=l(c);let s;t[0]!==r.Snapshots?(s=r.Snapshots||[],t[0]=r.Snapshots,t[1]=s):s=t[1];const o=s;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(u,{actions:e.jsx(m,{to:"/ec2/create-snapshot",children:e.jsx(p,{children:"Create Snapshot"})}),title:"EC2 Snapshots"}),t[2]=a):a=t[2];let n;return t[3]!==o?(n=e.jsxs(e.Fragment,{children:[a,o.length>0?e.jsx("div",{className:"space-y-4",children:o.map(h)}):e.jsx("p",{className:"text-muted-foreground",children:"No snapshots found."})]}),t[3]=o,t[4]=n):n=t[4],n}function h(t){return t.SnapshotId?e.jsx(d,{badge:e.jsx(S,{state:t.State}),params:{id:t.SnapshotId},subtitle:`${t.VolumeSize} GiB • ${t.VolumeId}`,title:t.SnapshotId,to:"/ec2/describe-snapshots/$id"},t.SnapshotId):null}export{b as component}; +import{c as i,m as l,j as t,L as n,B as u}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as p}from"./page-heading.js";import{S as f}from"./state-badge.js";function y(){const e=i.c(5),{data:a}=c(l);let s;e[0]!==a.Volumes?(s=a.Volumes||[],e[0]=a.Volumes,e[1]=s):s=e[1];const o=s;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{actions:t.jsx(n,{to:"/ec2/create-volume",children:t.jsx(u,{children:"Create Volume"})}),title:"EC2 Volumes"}),e[2]=r):r=e[2];let m;return e[3]!==o?(m=t.jsxs(t.Fragment,{children:[r,o.length>0?t.jsx("div",{className:"space-y-4",children:o.map(x)}):t.jsx("p",{className:"text-muted-foreground",children:"No volumes found."})]}),e[3]=o,e[4]=m):m=e[4],m}function x(e){return e.VolumeId?t.jsx(d,{badge:t.jsx(f,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB • ${e.VolumeType}`,title:e.VolumeId,to:"/ec2/describe-volumes/$id"},e.VolumeId):null}export{y as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/input.js b/hive/services/hiveui/frontend/dist/assets/input.js index df6a16066..a9dcdc887 100644 --- a/hive/services/hiveui/frontend/dist/assets/input.js +++ b/hive/services/hiveui/frontend/dist/assets/input.js @@ -1 +1 @@ -import{r as b,a_ as h,b2 as U,b3 as $,bv as A,aT as K,bt as S,j as F,c as _,a as q}from"./index.js";import{d as z,h as G,e as H,f as J,g as O,i as Q}from"./field.js";const W=b.forwardRef(function(e,a){const{render:r,className:l,id:i,name:o,value:s,disabled:I=!1,onValueChange:w,defaultValue:v,autoFocus:f=!1,...V}=e,{state:T,name:D,disabled:N,setTouched:g,setDirty:P,validityData:j,setFocused:d,setFilled:c,validationMode:k,validation:n}=z(),x=N||I,R=D??o,L={...T,disabled:x},{labelId:M}=G(),y=H({id:i});h(()=>{const t=s!=null;n.inputRef.current?.value||t&&s!==""?c(!0):t&&s===""&&c(!1)},[n.inputRef,c,s]);const p=b.useRef(null);h(()=>{f&&p.current===U($(p.current))&&d(!0)},[f,d]);const[B]=J({controlled:s,default:v,name:"FieldControl",state:"value"}),C=s!==void 0,E=C?B:void 0;return O({id:y,name:R,commit:n.commit,value:E,getValue:()=>n.inputRef.current?.value,controlRef:n.inputRef}),A("input",e,{ref:[a,p],state:L,props:[{id:y,disabled:x,name:R,ref:n.inputRef,"aria-labelledby":M,autoFocus:f,...C?{value:E}:{defaultValue:v},onChange(t){const m=t.currentTarget.value;w?.(m,K(S,t.nativeEvent)),P(m!==j.initialValue),c(m!=="")},onFocus(){d(!0)},onBlur(t){g(!0),d(!1),k==="onBlur"&&n.commit(t.currentTarget.value)},onKeyDown(t){t.currentTarget.tagName==="INPUT"&&t.key==="Enter"&&(g(!0),n.commit(t.currentTarget.value))}},n.getInputValidationProps(),V],stateAttributesMapping:Q})}),X=b.forwardRef(function(e,a){return F.jsx(W,{ref:a,...e})});function te(u){const e=_.c(10);let a,r,l;e[0]!==u?({className:a,type:l,...r}=u,e[0]=u,e[1]=a,e[2]=r,e[3]=l):(a=e[1],r=e[2],l=e[3]);let i;e[4]!==a?(i=q("h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm outline-none transition-colors file:inline-flex file:h-6 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-xs/relaxed placeholder:text-muted-foreground 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",a),e[4]=a,e[5]=i):i=e[5];let o;return e[6]!==r||e[7]!==i||e[8]!==l?(o=F.jsx(X,{className:i,"data-slot":"input",type:l,...r}),e[6]=r,e[7]=i,e[8]=l,e[9]=o):o=e[9],o}export{te as I}; +import{r as b,b1 as h,b5 as U,b6 as $,b7 as A,b8 as K,b9 as S,j as F,c as q,a as z}from"./index.js";import{u as G,d as H,e as J,f as O,g as Q,h as W}from"./field.js";const X=b.forwardRef(function(e,a){const{render:r,className:l,id:i,name:o,value:s,disabled:I=!1,onValueChange:w,defaultValue:v,autoFocus:f=!1,...V}=e,{state:D,name:N,disabled:P,setTouched:g,setDirty:T,validityData:j,setFocused:d,setFilled:c,validationMode:k,validation:n}=G(),x=P||I,R=N??o,L={...D,disabled:x},{labelId:M}=H(),y=J({id:i});h(()=>{const t=s!=null;n.inputRef.current?.value||t&&s!==""?c(!0):t&&s===""&&c(!1)},[n.inputRef,c,s]);const p=b.useRef(null);h(()=>{f&&p.current===U($(p.current))&&d(!0)},[f,d]);const[B]=O({controlled:s,default:v,name:"FieldControl",state:"value"}),C=s!==void 0,E=C?B:void 0;return Q({id:y,name:R,commit:n.commit,value:E,getValue:()=>n.inputRef.current?.value,controlRef:n.inputRef}),A("input",e,{ref:[a,p],state:L,props:[{id:y,disabled:x,name:R,ref:n.inputRef,"aria-labelledby":M,autoFocus:f,...C?{value:E}:{defaultValue:v},onChange(t){const m=t.currentTarget.value;w?.(m,K(S,t.nativeEvent)),T(m!==j.initialValue),c(m!=="")},onFocus(){d(!0)},onBlur(t){g(!0),d(!1),k==="onBlur"&&n.commit(t.currentTarget.value)},onKeyDown(t){t.currentTarget.tagName==="INPUT"&&t.key==="Enter"&&(g(!0),n.commit(t.currentTarget.value))}},n.getInputValidationProps(),V],stateAttributesMapping:W})}),Y=b.forwardRef(function(e,a){return F.jsx(X,{ref:a,...e})});function te(u){const e=q.c(10);let a,r,l;e[0]!==u?({className:a,type:l,...r}=u,e[0]=u,e[1]=a,e[2]=r,e[3]=l):(a=e[1],r=e[2],l=e[3]);let i;e[4]!==a?(i=z("h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm outline-none transition-colors file:inline-flex file:h-6 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-xs/relaxed placeholder:text-muted-foreground 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",a),e[4]=a,e[5]=i):i=e[5];let o;return e[6]!==r||e[7]!==i||e[8]!==l?(o=F.jsx(Y,{className:i,"data-slot":"input",type:l,...r}),e[6]=r,e[7]=i,e[8]=l,e[9]=o):o=e[9],o}export{te as I}; diff --git a/hive/services/hiveui/frontend/dist/assets/login.js b/hive/services/hiveui/frontend/dist/assets/login.js index e3a629f62..6bdbcd5cf 100644 --- a/hive/services/hiveui/frontend/dist/assets/login.js +++ b/hive/services/hiveui/frontend/dist/assets/login.js @@ -1 +1 @@ -import{c as b,a as v,j as a,u as P,b as D,s as L,B as R}from"./index.js";import{a as X,u as B}from"./zod.js";import{F,a as _,b as z,c as G}from"./field.js";import{I as $}from"./input.js";function O(e){const s=b.c(10);let l,t,r;s[0]!==e?({className:l,size:r,...t}=e,s[0]=e,s[1]=l,s[2]=t,s[3]=r):(l=s[1],t=s[2],r=s[3]);const c=r===void 0?"default":r;let i;s[4]!==l?(i=v("group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-card-foreground text-xs/relaxed ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg",l),s[4]=l,s[5]=i):i=s[5];let o;return s[6]!==t||s[7]!==c||s[8]!==i?(o=a.jsx("div",{className:i,"data-size":c,"data-slot":"card",...t}),s[6]=t,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}function T(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=v("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",l),s[3]=l,s[4]=r):r=s[4];let c;return s[5]!==t||s[6]!==r?(c=a.jsx("div",{className:r,"data-slot":"card-header",...t}),s[5]=t,s[6]=r,s[7]=c):c=s[7],c}function Y(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=v("font-medium text-sm",l),s[3]=l,s[4]=r):r=s[4];let c;return s[5]!==t||s[6]!==r?(c=a.jsx("div",{className:r,"data-slot":"card-title",...t}),s[5]=t,s[6]=r,s[7]=c):c=s[7],c}function H(e){const s=b.c(8);let l,t;s[0]!==e?({className:l,...t}=e,s[0]=e,s[1]=l,s[2]=t):(l=s[1],t=s[2]);let r;s[3]!==l?(r=v("px-4 group-data-[size=sm]/card:px-3",l),s[3]=l,s[4]=r):r=s[4];let c;return s[5]!==t||s[6]!==r?(c=a.jsx("div",{className:r,"data-slot":"card-content",...t}),s[5]=t,s[6]=r,s[7]=c):c=s[7],c}function Q(){const e=b.c(38),s=P();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={resolver:X(D)},e[0]=l):l=e[0];const{register:t,handleSubmit:r,formState:c}=B(l),{errors:i,isSubmitting:o}=c;let K;e[1]!==s?(K=function(M){L(M),s({to:"/"})},e[1]=s,e[2]=K):K=e[2];const C=K;let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(T,{children:a.jsx(Y,{children:"AWS Credentials"})}),e[3]=N):N=e[3];let d;e[4]!==r||e[5]!==C?(d=r(C),e[4]=r,e[5]=C,e[6]=d):d=e[6];let S;e[7]===Symbol.for("react.memo_cache_sentinel")?(S=a.jsx(_,{children:a.jsx("label",{htmlFor:"accessKeyId",children:"Access Key ID"})}),e[7]=S):S=e[7];const w=!!i.accessKeyId;let n;e[8]!==t?(n=t("accessKeyId"),e[8]=t,e[9]=n):n=e[9];let m;e[10]!==w||e[11]!==n?(m=a.jsx($,{"aria-invalid":w,autoComplete:"username",id:"accessKeyId",placeholder:"AKIAIOSFODNN7EXAMPLE",...n}),e[10]=w,e[11]=n,e[12]=m):m=e[12];let f;e[13]!==i.accessKeyId?(f=a.jsx(F,{errors:[i.accessKeyId]}),e[13]=i.accessKeyId,e[14]=f):f=e[14];let u;e[15]!==m||e[16]!==f?(u=a.jsxs(z,{children:[S,m,f]}),e[15]=m,e[16]=f,e[17]=u):u=e[17];let A;e[18]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(_,{children:a.jsx("label",{htmlFor:"secretAccessKey",children:"Secret Access Key"})}),e[18]=A):A=e[18];const E=!!i.secretAccessKey;let p;e[19]!==t?(p=t("secretAccessKey"),e[19]=t,e[20]=p):p=e[20];let x;e[21]!==E||e[22]!==p?(x=a.jsx($,{"aria-invalid":E,autoComplete:"current-password",id:"secretAccessKey",placeholder:"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",type:"password",...p}),e[21]=E,e[22]=p,e[23]=x):x=e[23];let h;e[24]!==i.secretAccessKey?(h=a.jsx(F,{errors:[i.secretAccessKey]}),e[24]=i.secretAccessKey,e[25]=h):h=e[25];let g;e[26]!==x||e[27]!==h?(g=a.jsxs(z,{children:[A,x,h]}),e[26]=x,e[27]=h,e[28]=g):g=e[28];let j;e[29]!==o?(j=a.jsx(R,{className:"w-full",disabled:o,type:"submit",children:"Sign In"}),e[29]=o,e[30]=j):j=e[30];let y;e[31]!==u||e[32]!==g||e[33]!==j?(y=a.jsxs(G,{children:[u,g,j]}),e[31]=u,e[32]=g,e[33]=j,e[34]=y):y=e[34];let I;return e[35]!==y||e[36]!==d?(I=a.jsx("div",{className:"flex flex-1 items-center justify-center",children:a.jsxs(O,{className:"w-full max-w-sm",children:[N,a.jsx(H,{children:a.jsx("form",{onSubmit:d,children:y})})]})}),e[35]=y,e[36]=d,e[37]=I):I=e[37],I}export{Q as component}; +import{c as A,a as F,j as c,u as G,r as O,b as T,d as $,s as Y,g as k,D as H,e as J,B as U}from"./index.js";import{a as W,u as q}from"./zod.js";import{F as M,a as L,b as R,c as Q}from"./field.js";import{I as X}from"./input.js";function V(e){const s=A.c(10);let t,a,l;s[0]!==e?({className:t,size:l,...a}=e,s[0]=e,s[1]=t,s[2]=a,s[3]=l):(t=s[1],a=s[2],l=s[3]);const r=l===void 0?"default":l;let i;s[4]!==t?(i=F("group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-card-foreground text-xs/relaxed ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg",t),s[4]=t,s[5]=i):i=s[5];let n;return s[6]!==a||s[7]!==r||s[8]!==i?(n=c.jsx("div",{className:i,"data-size":r,"data-slot":"card",...a}),s[6]=a,s[7]=r,s[8]=i,s[9]=n):n=s[9],n}function Z(e){const s=A.c(8);let t,a;s[0]!==e?({className:t,...a}=e,s[0]=e,s[1]=t,s[2]=a):(t=s[1],a=s[2]);let l;s[3]!==t?(l=F("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",t),s[3]=t,s[4]=l):l=s[4];let r;return s[5]!==a||s[6]!==l?(r=c.jsx("div",{className:l,"data-slot":"card-header",...a}),s[5]=a,s[6]=l,s[7]=r):r=s[7],r}function ee(e){const s=A.c(8);let t,a;s[0]!==e?({className:t,...a}=e,s[0]=e,s[1]=t,s[2]=a):(t=s[1],a=s[2]);let l;s[3]!==t?(l=F("font-medium text-sm",t),s[3]=t,s[4]=l):l=s[4];let r;return s[5]!==a||s[6]!==l?(r=c.jsx("div",{className:l,"data-slot":"card-title",...a}),s[5]=a,s[6]=l,s[7]=r):r=s[7],r}function se(e){const s=A.c(8);let t,a;s[0]!==e?({className:t,...a}=e,s[0]=e,s[1]=t,s[2]=a):(t=s[1],a=s[2]);let l;s[3]!==t?(l=F("px-4 group-data-[size=sm]/card:px-3",t),s[3]=t,s[4]=l):l=s[4];let r;return s[5]!==a||s[6]!==l?(r=c.jsx("div",{className:l,"data-slot":"card-content",...a}),s[5]=a,s[6]=l,s[7]=r):r=s[7],r}function ie(){const e=A.c(44),s=G(),[t,a]=O.useState(null);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={resolver:W(T)},e[0]=l):l=e[0];const{register:r,handleSubmit:i,formState:n}=q(l),{errors:o,isSubmitting:I}=n;let N;e[1]!==s?(N=async function(B){a(null),$(),Y(B);try{await k().send(new H({})),s({to:"/"})}catch{J(),$(),a("Invalid credentials. Please check your Access Key ID and Secret Access Key.")}},e[1]=s,e[2]=N):N=e[2];const _=N;let v;e[3]===Symbol.for("react.memo_cache_sentinel")?(v=c.jsx(Z,{children:c.jsx(ee,{children:"AWS Credentials"})}),e[3]=v):v=e[3];let d;e[4]!==t?(d=t&&c.jsx("p",{className:"mb-4 rounded-md bg-destructive/10 p-3 text-destructive text-sm",children:t}),e[4]=t,e[5]=d):d=e[5];let m;e[6]!==i||e[7]!==_?(m=i(_),e[6]=i,e[7]=_,e[8]=m):m=e[8];let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=c.jsx(L,{children:c.jsx("label",{htmlFor:"accessKeyId",children:"Access Key ID"})}),e[9]=C):C=e[9];const z=!!o.accessKeyId;let f;e[10]!==r?(f=r("accessKeyId"),e[10]=r,e[11]=f):f=e[11];let u;e[12]!==z||e[13]!==f?(u=c.jsx(X,{"aria-invalid":z,autoComplete:"username",id:"accessKeyId",placeholder:"AKIAIOSFODNN7EXAMPLE",...f}),e[12]=z,e[13]=f,e[14]=u):u=e[14];let p;e[15]!==o.accessKeyId?(p=c.jsx(M,{errors:[o.accessKeyId]}),e[15]=o.accessKeyId,e[16]=p):p=e[16];let x;e[17]!==p||e[18]!==u?(x=c.jsxs(R,{children:[C,u,p]}),e[17]=p,e[18]=u,e[19]=x):x=e[19];let E;e[20]===Symbol.for("react.memo_cache_sentinel")?(E=c.jsx(L,{children:c.jsx("label",{htmlFor:"secretAccessKey",children:"Secret Access Key"})}),e[20]=E):E=e[20];const D=!!o.secretAccessKey;let h;e[21]!==r?(h=r("secretAccessKey"),e[21]=r,e[22]=h):h=e[22];let g;e[23]!==D||e[24]!==h?(g=c.jsx(X,{"aria-invalid":D,autoComplete:"current-password",id:"secretAccessKey",placeholder:"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",type:"password",...h}),e[23]=D,e[24]=h,e[25]=g):g=e[25];let y;e[26]!==o.secretAccessKey?(y=c.jsx(M,{errors:[o.secretAccessKey]}),e[26]=o.secretAccessKey,e[27]=y):y=e[27];let b;e[28]!==g||e[29]!==y?(b=c.jsxs(R,{children:[E,g,y]}),e[28]=g,e[29]=y,e[30]=b):b=e[30];const P=I?"Signing in...":"Sign In";let j;e[31]!==I||e[32]!==P?(j=c.jsx(U,{className:"w-full",disabled:I,type:"submit",children:P}),e[31]=I,e[32]=P,e[33]=j):j=e[33];let K;e[34]!==x||e[35]!==b||e[36]!==j?(K=c.jsxs(Q,{children:[x,b,j]}),e[34]=x,e[35]=b,e[36]=j,e[37]=K):K=e[37];let S;e[38]!==K||e[39]!==m?(S=c.jsx("form",{onSubmit:m,children:K}),e[38]=K,e[39]=m,e[40]=S):S=e[40];let w;return e[41]!==S||e[42]!==d?(w=c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsxs(V,{className:"w-full max-w-sm",children:[v,c.jsxs(se,{children:[d,S]})]})}),e[41]=S,e[42]=d,e[43]=w):w=e[43],w}export{ie as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/run-instances.js b/hive/services/hiveui/frontend/dist/assets/run-instances.js index e51787898..c6935f67a 100644 --- a/hive/services/hiveui/frontend/dist/assets/run-instances.js +++ b/hive/services/hiveui/frontend/dist/assets/run-instances.js @@ -1 +1 @@ -import{u as $,l as R,m as U,n as q,p as H,j as e,B as C}from"./index.js";import{u as L,a as M,C as x}from"./zod.js";import{u as h}from"./useSuspenseQuery.js";import{B as W}from"./back-link.js";import{E as S}from"./error-banner.js";import{P as z}from"./page-heading.js";import{b as c,a as l,F as j}from"./field.js";import{I as G}from"./input.js";import{S as p,a as y,b as I,c as g,d as o}from"./select.js";import{f as J}from"./ec2.js";import{f as X}from"./ec22.js";import"./check.js";function oe(){const f=$(),{data:T}=h(R),{data:F}=h(U),{data:k}=h(q),{data:P}=h(H),r=J(),b=T.Images??[],N=F.KeyPairs??[],w=P.Subnets??[],d=k.InstanceTypes?.reduce((n,a)=>{const s=a.InstanceType;return s&&(n[s]=(n[s]||0)+1),n},{})??{},i=Object.keys(d).sort(),K=b[0]?.ImageId,B=N[0]?.KeyName,V=i.find(n=>n.endsWith(".nano"))??i[0],{control:m,handleSubmit:A,register:E,watch:O,formState:{errors:t,isSubmitting:v}}=L({resolver:M(X.refine(n=>n.count<=(d[n.instanceType]??1),{message:"Cannot exceed available capacity",path:["count"]})),defaultValues:{count:1,imageId:K??"",keyName:B??"",instanceType:V??""}}),u=O("instanceType"),Q=u?d[u]??1:1,D=async n=>{await r.mutateAsync(n),f({to:"/ec2/describe-instances"})};return e.jsxs(e.Fragment,{children:[e.jsx(W,{to:"/ec2/describe-instances",children:"Back to instances"}),e.jsx(z,{title:"Run EC2 Instances"}),i.length===0&&e.jsx(S,{msg:"No compute available. No new instances can be created until compute is available."}),r.error&&e.jsx(S,{error:r.error,msg:"Failed to create instance"}),e.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:A(D),children:[e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"imageId",children:"Image"})}),e.jsx(x,{control:m,name:"imageId",render:({field:n})=>{const a=b.find(s=>s.ImageId===n.value);return e.jsxs(p,{onValueChange:s=>n.onChange(s),value:n.value??"",children:[e.jsx(y,{"aria-invalid":!!t.imageId,className:"w-full",id:"imageId",children:e.jsx(I,{children:a?`${a.Name||"Unnamed"} (${a.Architecture})`:""})}),e.jsx(g,{children:b.map(s=>e.jsxs(o,{value:s.ImageId??"",children:[s.Name||"Unnamed"," (",s.Architecture,")"]},s.ImageId))})]})}}),e.jsx(j,{errors:[t.imageId]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"instanceType",children:"Instance Type"})}),e.jsx(x,{control:m,name:"instanceType",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a),value:n.value?n.value:"",children:[e.jsx(y,{"aria-invalid":!!t.instanceType,className:"w-full",id:"instanceType",children:e.jsx(I,{})}),e.jsx(g,{children:i.map(a=>e.jsxs(o,{value:a,children:[a," (",d[a]," available)"]},a))})]})}),e.jsx(j,{errors:[t.instanceType]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"keyName",children:"Key Pair"})}),e.jsx(x,{control:m,name:"keyName",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a),value:n.value?n.value:"",children:[e.jsx(y,{"aria-invalid":!!t.keyName,className:"w-full",id:"keyName",children:e.jsx(I,{})}),e.jsx(g,{children:N.map(a=>e.jsx(o,{value:a.KeyName??"",children:a.KeyName},a.KeyPairId))})]})}),e.jsx(j,{errors:[t.keyName]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"subnetId",children:"Subnet"})}),e.jsx(x,{control:m,name:"subnetId",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a==="none"?void 0:a),value:n.value??"none",children:[e.jsx(y,{className:"w-full",id:"subnetId",children:e.jsx(I,{})}),e.jsxs(g,{children:[e.jsx(o,{value:"none",children:"none"}),w.map(a=>e.jsx(o,{value:a.SubnetId??"",children:a.SubnetId},a.SubnetId))]})]})})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"count",children:"Number of Instances"})}),e.jsx(G,{"aria-describedby":"count-description","aria-invalid":!!t.count,id:"count",type:"number",...E("count",{valueAsNumber:!0})}),e.jsx("p",{className:"text-muted-foreground text-xs",id:"count-description",children:u&&`Available capacity for ${u}: ${Q}`}),e.jsx(j,{errors:[t.count]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(C,{disabled:v||r.isPending,onClick:()=>f({to:"/ec2/describe-instances"}),type:"button",variant:"outline",children:"Cancel"}),e.jsx(C,{disabled:v||r.isPending||i.length===0,type:"submit",children:v||r.isPending?"Creating…":"Create Instance"})]})]})]})}export{oe as component}; +import{u as $,n as q,p as R,q as U,t as H,j as e,B as C}from"./index.js";import{u as L,a as M,C as x}from"./zod.js";import{u as h}from"./useSuspenseQuery.js";import{B as W}from"./back-link.js";import{E as S}from"./error-banner.js";import{P as z}from"./page-heading.js";import{b as c,a as l,F as j}from"./field.js";import{I as G}from"./input.js";import{S as p,a as y,b as I,c as g,d as o}from"./select.js";import{f as J}from"./ec2.js";import{f as X}from"./ec22.js";import"./check.js";function oe(){const f=$(),{data:T}=h(q),{data:F}=h(R),{data:k}=h(U),{data:P}=h(H),r=J(),b=T.Images??[],N=F.KeyPairs??[],w=P.Subnets??[],d=k.InstanceTypes?.reduce((n,a)=>{const s=a.InstanceType;return s&&(n[s]=(n[s]||0)+1),n},{})??{},i=Object.keys(d).sort(),K=b[0]?.ImageId,B=N[0]?.KeyName,V=i.find(n=>n.endsWith(".nano"))??i[0],{control:m,handleSubmit:A,register:E,watch:O,formState:{errors:t,isSubmitting:v}}=L({resolver:M(X.refine(n=>n.count<=(d[n.instanceType]??1),{message:"Cannot exceed available capacity",path:["count"]})),defaultValues:{count:1,imageId:K??"",keyName:B??"",instanceType:V??""}}),u=O("instanceType"),Q=u?d[u]??1:1,D=async n=>{await r.mutateAsync(n),f({to:"/ec2/describe-instances"})};return e.jsxs(e.Fragment,{children:[e.jsx(W,{to:"/ec2/describe-instances",children:"Back to instances"}),e.jsx(z,{title:"Run EC2 Instances"}),i.length===0&&e.jsx(S,{msg:"No compute available. No new instances can be created until compute is available."}),r.error&&e.jsx(S,{error:r.error,msg:"Failed to create instance"}),e.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:A(D),children:[e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"imageId",children:"Image"})}),e.jsx(x,{control:m,name:"imageId",render:({field:n})=>{const a=b.find(s=>s.ImageId===n.value);return e.jsxs(p,{onValueChange:s=>n.onChange(s),value:n.value??"",children:[e.jsx(y,{"aria-invalid":!!t.imageId,className:"w-full",id:"imageId",children:e.jsx(I,{children:a?`${a.Name||"Unnamed"} (${a.Architecture})`:""})}),e.jsx(g,{children:b.map(s=>e.jsxs(o,{value:s.ImageId??"",children:[s.Name||"Unnamed"," (",s.Architecture,")"]},s.ImageId))})]})}}),e.jsx(j,{errors:[t.imageId]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"instanceType",children:"Instance Type"})}),e.jsx(x,{control:m,name:"instanceType",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a),value:n.value?n.value:"",children:[e.jsx(y,{"aria-invalid":!!t.instanceType,className:"w-full",id:"instanceType",children:e.jsx(I,{})}),e.jsx(g,{children:i.map(a=>e.jsxs(o,{value:a,children:[a," (",d[a]," available)"]},a))})]})}),e.jsx(j,{errors:[t.instanceType]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"keyName",children:"Key Pair"})}),e.jsx(x,{control:m,name:"keyName",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a),value:n.value?n.value:"",children:[e.jsx(y,{"aria-invalid":!!t.keyName,className:"w-full",id:"keyName",children:e.jsx(I,{})}),e.jsx(g,{children:N.map(a=>e.jsx(o,{value:a.KeyName??"",children:a.KeyName},a.KeyPairId))})]})}),e.jsx(j,{errors:[t.keyName]})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"subnetId",children:"Subnet"})}),e.jsx(x,{control:m,name:"subnetId",render:({field:n})=>e.jsxs(p,{onValueChange:a=>n.onChange(a==="none"?void 0:a),value:n.value??"none",children:[e.jsx(y,{className:"w-full",id:"subnetId",children:e.jsx(I,{})}),e.jsxs(g,{children:[e.jsx(o,{value:"none",children:"none"}),w.map(a=>e.jsx(o,{value:a.SubnetId??"",children:a.SubnetId},a.SubnetId))]})]})})]}),e.jsxs(c,{children:[e.jsx(l,{children:e.jsx("label",{htmlFor:"count",children:"Number of Instances"})}),e.jsx(G,{"aria-describedby":"count-description","aria-invalid":!!t.count,id:"count",type:"number",...E("count",{valueAsNumber:!0})}),e.jsx("p",{className:"text-muted-foreground text-xs",id:"count-description",children:u&&`Available capacity for ${u}: ${Q}`}),e.jsx(j,{errors:[t.count]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(C,{disabled:v||r.isPending,onClick:()=>f({to:"/ec2/describe-instances"}),type:"button",variant:"outline",children:"Cancel"}),e.jsx(C,{disabled:v||r.isPending||i.length===0,type:"submit",children:v||r.isPending?"Creating…":"Create Instance"})]})]})]})}export{oe as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/s3.js b/hive/services/hiveui/frontend/dist/assets/s3.js index 12082c10e..240341f7d 100644 --- a/hive/services/hiveui/frontend/dist/assets/s3.js +++ b/hive/services/hiveui/frontend/dist/assets/s3.js @@ -1,4 +1,4 @@ -import{M as cr,N as hr,P as ot,Q as Le,S as G,T as dr,U as pr,V as yr,_ as mr,W as Er,X as wr,Y as gr,Z as br,$ as vr,a0 as xr,a1 as pt,a2 as ae,a3 as Ie,a4 as _r,E as fe,F as le,G as ce,a5 as he,a6 as Cr,a7 as Sr,a8 as Ar,a9 as Rr,aa as Br,ab as Fr,ac as Tr,ad as Dr,ae as Mr,af as we,ag as Lr,ah as kr,ai as Ct,c as yt,aj as mt,K as Et}from"./index.js";import{u as wt}from"./error-banner.js";const Pr=typeof ReadableStream=="function"?ReadableStream:function(){};class Nr extends Pr{}const Ir=({expectedChecksum:a,checksum:n,source:o,checksumSourceLocation:l,base64Encoder:y})=>{if(!cr(o))throw new Error(`@smithy/util-stream: unsupported source type ${o?.constructor?.name??o} in ChecksumStream.`);const c=y??hr;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const h=new TransformStream({start(){},async transform(d,g){n.update(d),g.enqueue(d)},async flush(d){const g=await n.digest(),F=c(g);if(a!==F){const R=new Error(`Checksum mismatch: expected "${a}" but received "${F}" in response header "${l}".`);d.error(R)}else d.terminate()}});o.pipeThrough(h);const i=h.readable;return Object.setPrototypeOf(i,Nr.prototype),i};class Ur{allocByteArray;byteLength=0;byteArrays=[];constructor(n){this.allocByteArray=n}push(n){this.byteArrays.push(n),this.byteLength+=n.byteLength}flush(){if(this.byteArrays.length===1){const l=this.byteArrays[0];return this.reset(),l}const n=this.allocByteArray(this.byteLength);let o=0;for(let l=0;lnew Uint8Array(g))];let i=-1;const d=async g=>{const{value:F,done:R}=await l.read(),B=F;if(R){if(i!==-1){const C=Ue(h,i);Se(C)>0&&g.enqueue(C)}g.close()}else{const C=jr(B,!1);if(i!==C&&(i>=0&&g.enqueue(Ue(h,i)),i=C),i===-1){g.enqueue(B);return}const _=Se(B);c+=_;const M=Se(h[i]);if(_>=n&&M===0)g.enqueue(B);else{const T=Hr(h,i,B);!y&&c>n*2&&(y=!0,o?.warn(`@smithy/util-stream - stream chunk size ${_} is below threshold of ${n}, automatically buffering.`)),T>=n?g.enqueue(Ue(h,i)):await d(g)}}};return new ReadableStream({pull:d})}const qr=Or;function Hr(a,n,o){switch(n){case 0:return a[0]+=o,Se(a[0]);case 1:case 2:return a[n].push(o),Se(a[n])}}function Ue(a,n){switch(n){case 0:const o=a[0];return a[0]="",o;case 1:case 2:return a[n].flush()}throw new Error(`@smithy/util-stream - invalid index ${n} given to flush()`)}function Se(a){return a?.byteLength??a?.length??0}function jr(a,n=!0){return n&&typeof Buffer<"u"&&a instanceof Buffer?2:a instanceof Uint8Array?1:typeof a=="string"?0:-1}const Wr=(a,{requestChecksumRequired:n,requestAlgorithmMember:o,requestChecksumCalculation:l})=>o?a[o]?a[o]:void 0:l===Le.WHEN_SUPPORTED||n?ot:void 0,gt=a=>a===G.MD5?"content-md5":`x-amz-checksum-${a.toLowerCase()}`,Kr=(a,n)=>{const o=a.toLowerCase();for(const l of Object.keys(n))if(o===l.toLowerCase())return!0;return!1},$r=(a,n)=>{const o=a.toLowerCase();for(const l of Object.keys(n))if(l.toLowerCase().startsWith(o))return!0;return!1},Jt=a=>a!==void 0&&typeof a!="string"&&!ArrayBuffer.isView(a)&&!dr(a);var zr=(function(){function a(){this.crc32c=new St}return a.prototype.update=function(n){pr(n)||this.crc32c.update(yr(n))},a.prototype.digest=function(){return mr(this,void 0,void 0,function(){return Er(this,function(n){return[2,wr(this.crc32c.digest())]})})},a.prototype.reset=function(){this.crc32c=new St},a})(),St=(function(){function a(){this.checksum=4294967295}return a.prototype.update=function(n){var o,l;try{for(var y=gr(n),c=y.next();!c.done;c=y.next()){var h=c.value;this.checksum=this.checksum>>>8^Gr[(this.checksum^h)&255]}}catch(i){o={error:i}}finally{try{c&&!c.done&&(l=y.return)&&l.call(y)}finally{if(o)throw o.error}}return this},a.prototype.digest=function(){return(this.checksum^4294967295)>>>0},a})(),Vr=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],Gr=br(Vr);const Yr=()=>{const n=new Array(8);for(let o=0;o<8;o++){const l=new Array(512);for(let y=0;y<256;y++){let c=BigInt(y);for(let h=0;h<8*(o+1);h++)c&1n?c=c>>1n^0x9a6c9329ac4bc9b5n:c=c>>1n;l[y*2]=Number(c>>32n&0xffffffffn),l[y*2+1]=Number(c&0xffffffffn)}n[o]=new Uint32Array(l)}return n};let Oe,Ce,st,ut,ft,lt,ct,ht,dt;const Xr=()=>{Oe||(Oe=Yr(),[Ce,st,ut,ft,lt,ct,ht,dt]=Oe)};class Qr{c1=0;c2=0;constructor(){Xr(),this.reset()}update(n){const o=n.length;let l=0,y=this.c1,c=this.c2;for(;l+8<=o;){const h=((c^n[l++])&255)<<1,i=((c>>>8^n[l++])&255)<<1,d=((c>>>16^n[l++])&255)<<1,g=((c>>>24^n[l++])&255)<<1,F=((y^n[l++])&255)<<1,R=((y>>>8^n[l++])&255)<<1,B=((y>>>16^n[l++])&255)<<1,C=((y>>>24^n[l++])&255)<<1;y=dt[h]^ht[i]^ct[d]^lt[g]^ft[F]^ut[R]^st[B]^Ce[C],c=dt[h+1]^ht[i+1]^ct[d+1]^lt[g+1]^ft[F+1]^ut[R+1]^st[B+1]^Ce[C+1]}for(;l>>8|(y&255)<<24)>>>0,y=y>>>8^Ce[h],c^=Ce[h+1],l++}this.c1=y,this.c2=c}async digest(){const n=this.c1^4294967295,o=this.c2^4294967295;return new Uint8Array([n>>>24,n>>>16&255,n>>>8&255,n&255,o>>>24,o>>>16&255,o>>>8&255,o&255])}reset(){this.c1=4294967295,this.c2=4294967295}}const Zr=()=>vr,er=[G.CRC32,G.CRC32C,G.CRC64NVME,G.SHA1,G.SHA256],Jr=[G.SHA256,G.SHA1,G.CRC32,G.CRC32C,G.CRC64NVME],tr=(a,n)=>{const{checksumAlgorithms:o={}}=n;switch(a){case G.MD5:return o?.MD5??n.md5;case G.CRC32:return o?.CRC32??Zr();case G.CRC32C:return o?.CRC32C??zr;case G.CRC64NVME:return o?.CRC64NVME??Qr;case G.SHA1:return o?.SHA1??n.sha1;case G.SHA256:return o?.SHA256??n.sha256;default:if(o?.[a])return o[a];throw new Error(`The checksum algorithm "${a}" is not supported by the client. Select one of ${er}, or provide an implementation to the client constructor checksums field.`)}},rr=(a,n)=>{const o=new a;return o.update(xr(n||"")),o.digest()},en={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},tn=(a,n)=>(o,l)=>async y=>{if(!pt.isInstance(y.request)||$r("x-amz-checksum-",y.request.headers))return o(y);const{request:c,input:h}=y,{body:i,headers:d}=c,{base64Encoder:g,streamHasher:F}=a,{requestChecksumRequired:R,requestAlgorithmMember:B}=n,C=await a.requestChecksumCalculation(),_=B?.name,M=B?.httpHeader;_&&!h[_]&&(C===Le.WHEN_SUPPORTED||R)&&(h[_]=ot,M&&(d[M]=ot));const T=Wr(h,{requestChecksumRequired:R,requestAlgorithmMember:B?.name,requestChecksumCalculation:C});let p=i,x=d;if(T){switch(T){case G.CRC32:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case G.CRC32C:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case G.CRC64NVME:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case G.SHA1:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case G.SHA256:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const A=gt(T),E=tr(T,a);if(Jt(i)){const{getAwsChunkedEncodingStream:m,bodyLengthChecker:S}=a;p=m(typeof a.requestStreamBufferSize=="number"&&a.requestStreamBufferSize>=8*1024?qr(i,a.requestStreamBufferSize,l.logger):i,{base64Encoder:g,bodyLengthChecker:S,checksumLocationName:A,checksumAlgorithmFn:E,streamHasher:F}),x={...d,"content-encoding":d["content-encoding"]?`${d["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":d["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":A},delete x["content-length"]}else if(!Kr(A,d)){const m=await rr(E,i);x={...d,[A]:g(m)}}}try{return await o({...y,request:{...c,headers:x,body:p}})}catch(A){if(A instanceof Error&&A.name==="InvalidChunkSizeError")try{A.message.endsWith(".")||(A.message+="."),A.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw A}},rn={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},nn=(a,n)=>(o,l)=>async y=>{const c=y.input,{requestValidationModeMember:h}=n,i=await a.requestChecksumCalculation(),d=await a.responseChecksumValidation();switch(i){case Le.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Le.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(d){case Ie.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Ie.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return h&&!c[h]&&d===Ie.WHEN_SUPPORTED&&(c[h]="ENABLED"),o(y)},nr=(a=[])=>{const n=[];for(const o of Jr)!a.includes(o)||!er.includes(o)||n.push(o);return n},an=a=>{const n=a.lastIndexOf("-");if(n!==-1){const o=a.slice(n+1);if(!o.startsWith("0")){const l=parseInt(o,10);if(!isNaN(l)&&l>=1&&l<=1e4)return!0}}return!1},on=async(a,{checksumAlgorithmFn:n,base64Encoder:o})=>o(await rr(n,a)),sn=async(a,{config:n,responseAlgorithms:o,logger:l})=>{const y=nr(o),{body:c,headers:h}=a;for(const i of y){const d=gt(i),g=h[d];if(g){let F;try{F=tr(i,n)}catch(C){if(i===G.CRC64NVME){l?.warn(`Skipping ${G.CRC64NVME} checksum validation: ${C.message}`);continue}throw C}const{base64Encoder:R}=n;if(Jt(c)){a.body=Ir({expectedChecksum:g,checksumSourceLocation:d,checksum:new F,source:c,base64Encoder:R});return}const B=await on(c,{checksumAlgorithmFn:F,base64Encoder:R});if(B===g)break;throw new Error(`Checksum mismatch: expected "${B}" but received "${g}" in response header "${d}".`)}}},un={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},fn=(a,n)=>(o,l)=>async y=>{if(!pt.isInstance(y.request))return o(y);const c=y.input,h=await o(y),i=h.response,{requestValidationModeMember:d,responseAlgorithms:g}=n;if(d&&c[d]==="ENABLED"){const{clientName:F,commandName:R}=l;if(F==="S3Client"&&R==="GetObjectCommand"&&nr(g).every(C=>{const _=gt(C),M=i.headers[_];return!M||an(M)}))return h;await sn(i,{config:a,responseAlgorithms:g,logger:l.logger})}return h},bt=(a,n)=>({applyToStack:o=>{o.add(tn(a,n),en),o.addRelativeTo(nn(a,n),rn),o.addRelativeTo(fn(a,n),un)}}),ln="content-length",cn="x-amz-decoded-content-length";function hn(){return(a,n)=>async o=>{const{request:l}=o;if(pt.isInstance(l)&&!(ln in l.headers)&&!(cn in l.headers)){const y="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 n?.logger?.warn=="function"&&!(n.logger instanceof _r)?n.logger.warn(y):console.warn(y)}return a({...o})}}const dn={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pn=a=>({applyToStack:n=>{n.add(hn(),dn)}});class yn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").sc(Cr).build(){}function mn(a){return n=>async o=>{const l={...o.input},y=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const c of y){const h=l[c.target];if(h){let i;typeof h=="string"?wn(h,a)?i=a.base64Decoder(h):(i=a.utf8Decoder(h),l[c.target]=a.base64Encoder(i)):(i=ArrayBuffer.isView(h)?new Uint8Array(h.buffer,h.byteOffset,h.byteLength):new Uint8Array(h),l[c.target]=a.base64Encoder(i));const d=new a.md5;d.update(i),l[c.hash]=a.base64Encoder(await d.digest())}}return n({...o,input:l})}}const En={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Pe=a=>({applyToStack:n=>{n.add(mn(a),En)}});function wn(a,n){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a))return!1;try{return n.base64Decoder(a).length===32}catch{return!1}}class gn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(Sr).build(){}function bn(a){return n=>async o=>{const{CreateBucketConfiguration:l}=o.input,y=await a.region();return!l?.LocationConstraint&&!l?.Location&&y!=="us-east-1"&&(o.input.CreateBucketConfiguration=o.input.CreateBucketConfiguration??{},o.input.CreateBucketConfiguration.LocationConstraint=y),n(o)}}const vn={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},xn=a=>({applyToStack:n=>{n.add(bn(a),vn)}});class _n extends fe.classBuilder().ep({...le,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),xn(l)]}).s("AmazonS3","CreateBucket",{}).n("S3Client","CreateBucketCommand").sc(Ar).build(){}class Cn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(Rr).build(){}class Sn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(Br).build(){}class At extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),bt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),pn(),he(l),Pe(l)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(Fr).build(){}class An extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),bt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),he(l)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(Tr).build(){}class Rn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),bt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),he(l),Pe(l)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(Dr).build(){}const Bn={CRC32:"CRC32"};class Fn{onabort=null;_aborted=!1;constructor(){Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}}class Tn{signal=new Fn;abort(){this.signal.abort()}}var Be={exports:{}},Rt;function Ne(){if(Rt)return Be.exports;Rt=1;var a=typeof Reflect=="object"?Reflect:null,n=a&&typeof a.apply=="function"?a.apply:function(m,S,I){return Function.prototype.apply.call(m,S,I)},o;a&&typeof a.ownKeys=="function"?o=a.ownKeys:Object.getOwnPropertySymbols?o=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:o=function(m){return Object.getOwnPropertyNames(m)};function l(E){console&&console.warn&&console.warn(E)}var y=Number.isNaN||function(m){return m!==m};function c(){c.init.call(this)}Be.exports=c,Be.exports.once=p,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var h=10;function i(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(E){if(typeof E!="number"||E<0||y(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");h=E}}),c.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},c.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||y(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function d(E){return E._maxListeners===void 0?c.defaultMaxListeners:E._maxListeners}c.prototype.getMaxListeners=function(){return d(this)},c.prototype.emit=function(m){for(var S=[],I=1;I0&&(H=S[0]),H instanceof Error)throw H;var Q=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw Q.context=H,Q}var J=U[m];if(J===void 0)return!1;if(typeof J=="function")n(J,this,S);else for(var ee=J.length,oe=_(J,ee),I=0;I0&&H.length>N&&!H.warned){H.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=E,Q.type=m,Q.count=H.length,l(Q)}return E}c.prototype.addListener=function(m,S){return g(this,m,S,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(m,S){return g(this,m,S,!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 R(E,m,S){var I={fired:!1,wrapFn:void 0,target:E,type:m,listener:S},N=F.bind(I);return N.listener=S,I.wrapFn=N,N}c.prototype.once=function(m,S){return i(S),this.on(m,R(this,m,S)),this},c.prototype.prependOnceListener=function(m,S){return i(S),this.prependListener(m,R(this,m,S)),this},c.prototype.removeListener=function(m,S){var I,N,U,H,Q;if(i(S),N=this._events,N===void 0)return this;if(I=N[m],I===void 0)return this;if(I===S||I.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete N[m],N.removeListener&&this.emit("removeListener",m,I.listener||S));else if(typeof I!="function"){for(U=-1,H=I.length-1;H>=0;H--)if(I[H]===S||I[H].listener===S){Q=I[H].listener,U=H;break}if(U<0)return this;U===0?I.shift():M(I,U),I.length===1&&(N[m]=I[0]),N.removeListener!==void 0&&this.emit("removeListener",m,Q||S)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(m){var S,I,N;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[m]),this;if(arguments.length===0){var U=Object.keys(I),H;for(N=0;N=0;N--)this.removeListener(m,S[N]);return this};function B(E,m,S){var I=E._events;if(I===void 0)return[];var N=I[m];return N===void 0?[]:typeof N=="function"?S?[N.listener||N]:[N]:S?T(N):_(N,N.length)}c.prototype.listeners=function(m){return B(this,m,!0)},c.prototype.rawListeners=function(m){return B(this,m,!1)},c.listenerCount=function(E,m){return typeof E.listenerCount=="function"?E.listenerCount(m):C.call(E,m)},c.prototype.listenerCount=C;function C(E){var m=this._events;if(m!==void 0){var S=m[E];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};function _(E,m){for(var S=new Array(m),I=0;I0)throw new Error("Invalid string. Length must be a multiple of 4");var M=C.indexOf("=");M===-1&&(M=_);var T=M===_?0:4-M%4;return[M,T]}function i(C){var _=h(C),M=_[0],T=_[1];return(M+T)*3/4-T}function d(C,_,M){return(_+M)*3/4-M}function g(C){var _,M=h(C),T=M[0],p=M[1],x=new o(d(C,T,p)),A=0,E=p>0?T-4:T,m;for(m=0;m>16&255,x[A++]=_>>8&255,x[A++]=_&255;return p===2&&(_=n[C.charCodeAt(m)]<<2|n[C.charCodeAt(m+1)]>>4,x[A++]=_&255),p===1&&(_=n[C.charCodeAt(m)]<<10|n[C.charCodeAt(m+1)]<<4|n[C.charCodeAt(m+2)]>>2,x[A++]=_>>8&255,x[A++]=_&255),x}function F(C){return a[C>>18&63]+a[C>>12&63]+a[C>>6&63]+a[C&63]}function R(C,_,M){for(var T,p=[],x=_;xE?E:A+x));return T===1?(_=C[M-1],p.push(a[_>>2]+a[_<<4&63]+"==")):T===2&&(_=(C[M-2]<<8)+C[M-1],p.push(a[_>>10]+a[_>>4&63]+a[_<<2&63]+"=")),p.join("")}return _e}var Fe={};var Ft;function Mn(){return Ft||(Ft=1,Fe.read=function(a,n,o,l,y){var c,h,i=y*8-l-1,d=(1<>1,F=-7,R=o?y-1:0,B=o?-1:1,C=a[n+R];for(R+=B,c=C&(1<<-F)-1,C>>=-F,F+=i;F>0;c=c*256+a[n+R],R+=B,F-=8);for(h=c&(1<<-F)-1,c>>=-F,F+=l;F>0;h=h*256+a[n+R],R+=B,F-=8);if(c===0)c=1-g;else{if(c===d)return h?NaN:(C?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-g}return(C?-1:1)*h*Math.pow(2,c-l)},Fe.write=function(a,n,o,l,y,c){var h,i,d,g=c*8-y-1,F=(1<>1,B=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=l?0:c-1,_=l?1:-1,M=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(i=isNaN(n)?1:0,h=F):(h=Math.floor(Math.log(n)/Math.LN2),n*(d=Math.pow(2,-h))<1&&(h--,d*=2),h+R>=1?n+=B/d:n+=B*Math.pow(2,1-R),n*d>=2&&(h++,d/=2),h+R>=F?(i=0,h=F):h+R>=1?(i=(n*d-1)*Math.pow(2,y),h=h+R):(i=n*Math.pow(2,R-1)*Math.pow(2,y),h=0));y>=8;a[o+C]=i&255,C+=_,i/=256,y-=8);for(h=h<0;a[o+C]=h&255,C+=_,h/=256,g-=8);a[o+C-_]|=M*128}),Fe}var Tt;function Re(){return Tt||(Tt=1,(function(a){var n=Dn(),o=Mn(),l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=i,a.SlowBuffer=p,a.INSPECT_MAX_BYTES=50;var y=2147483647;a.kMaxLength=y,i.TYPED_ARRAY_SUPPORT=c(),!i.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 c(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function h(r){if(r>y)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,i.prototype),e}function i(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(r)}return d(r,e,t)}i.poolSize=8192;function d(r,e,t){if(typeof r=="string")return B(r,e);if(ArrayBuffer.isView(r))return C(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(D(r,ArrayBuffer)||r&&D(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(D(r,SharedArrayBuffer)||r&&D(r.buffer,SharedArrayBuffer)))return _(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=r.valueOf&&r.valueOf();if(u!=null&&u!==r)return i.from(u,e,t);var w=M(r);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return i.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}i.from=function(r,e,t){return d(r,e,t)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function g(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function F(r,e,t){return g(r),r<=0?h(r):e!==void 0?typeof t=="string"?h(r).fill(e,t):h(r).fill(e):h(r)}i.alloc=function(r,e,t){return F(r,e,t)};function R(r){return g(r),h(r<0?0:T(r)|0)}i.allocUnsafe=function(r){return R(r)},i.allocUnsafeSlow=function(r){return R(r)};function B(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=x(r,e)|0,u=h(t),w=u.write(r,e);return w!==t&&(u=u.slice(0,w)),u}function C(r){for(var e=r.length<0?0:T(r.length)|0,t=h(e),u=0;u=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return r|0}function p(r){return+r!=r&&(r=0),i.alloc(+r)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,t){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var u=e.length,w=t.length,L=0,k=Math.min(u,w);L2&&arguments[2]===!0;if(!u&&t===0)return 0;for(var w=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return P(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return s(r).length;default:if(w)return u?-1:P(r).length;e=(""+e).toLowerCase(),w=!0}}i.byteLength=x;function A(r,e,t){var u=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return se(this,e,t);case"utf8":case"utf-8":return oe(this,e,t);case"ascii":return ie(this,e,t);case"latin1":case"binary":return pe(this,e,t);case"base64":return ee(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,e,t);default:if(u)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),u=!0}}i.prototype._isBuffer=!0;function E(r,e,t){var u=r[e];r[e]=r[t],r[t]=u}i.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""},l&&(i.prototype[l]=i.prototype.inspect),i.prototype.compare=function(e,t,u,w,L){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),u===void 0&&(u=e?e.length:0),w===void 0&&(w=0),L===void 0&&(L=this.length),t<0||u>e.length||w<0||L>this.length)throw new RangeError("out of range index");if(w>=L&&t>=u)return 0;if(w>=L)return-1;if(t>=u)return 1;if(t>>>=0,u>>>=0,w>>>=0,L>>>=0,this===e)return 0;for(var k=L-w,W=u-t,K=Math.min(k,W),z=this.slice(w,L),X=e.slice(t,u),$=0;$2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,O(t)&&(t=w?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(w)return-1;t=r.length-1}else if(t<0)if(w)t=0;else return-1;if(typeof e=="string"&&(e=i.from(e,u)),i.isBuffer(e))return e.length===0?-1:S(r,e,t,u,w);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):S(r,[e],t,u,w);throw new TypeError("val must be string, number or Buffer")}function S(r,e,t,u,w){var L=1,k=r.length,W=e.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(r.length<2||e.length<2)return-1;L=2,k/=2,W/=2,t/=2}function K(xt,_t){return L===1?xt[_t]:xt.readUInt16BE(_t*L)}var z;if(w){var X=-1;for(z=t;zk&&(t=k-W),z=t;z>=0;z--){for(var $=!0,te=0;tew&&(u=w)):u=w;var L=e.length;u>L/2&&(u=L/2);for(var k=0;k>>0,isFinite(u)?(u=u>>>0,w===void 0&&(w="utf8")):(w=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var L=this.length-t;if((u===void 0||u>L)&&(u=L),e.length>0&&(u<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");for(var k=!1;;)switch(w){case"hex":return I(this,e,t,u);case"utf8":case"utf-8":return N(this,e,t,u);case"ascii":return U(this,e,t,u);case"latin1":case"binary":return H(this,e,t,u);case"base64":return Q(this,e,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,e,t,u);default:if(k)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),k=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(r,e,t){return e===0&&t===r.length?n.fromByteArray(r):n.fromByteArray(r.slice(e,t))}function oe(r,e,t){t=Math.min(r.length,t);for(var u=[],w=e;w239?4:L>223?3:L>191?2:1;if(w+W<=t){var K,z,X,$;switch(W){case 1:L<128&&(k=L);break;case 2:K=r[w+1],(K&192)===128&&($=(L&31)<<6|K&63,$>127&&(k=$));break;case 3:K=r[w+1],z=r[w+2],(K&192)===128&&(z&192)===128&&($=(L&15)<<12|(K&63)<<6|z&63,$>2047&&($<55296||$>57343)&&(k=$));break;case 4:K=r[w+1],z=r[w+2],X=r[w+3],(K&192)===128&&(z&192)===128&&(X&192)===128&&($=(L&15)<<18|(K&63)<<12|(z&63)<<6|X&63,$>65535&&$<1114112&&(k=$))}}k===null?(k=65533,W=1):k>65535&&(k-=65536,u.push(k>>>10&1023|55296),k=56320|k&1023),u.push(k),w+=W}return xe(u)}var de=4096;function xe(r){var e=r.length;if(e<=de)return String.fromCharCode.apply(String,r);for(var t="",u=0;uu)&&(t=u);for(var w="",L=e;Lu&&(e=u),t<0?(t+=u,t<0&&(t=0)):t>u&&(t=u),tt)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=this[e],L=1,k=0;++k>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=this[e+--t],L=1;t>0&&(L*=256);)w+=this[e+--t]*L;return w},i.prototype.readUInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=this[e],L=1,k=0;++k=L&&(w-=Math.pow(2,8*t)),w},i.prototype.readIntBE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=t,L=1,k=this[e+--w];w>0&&(L*=256);)k+=this[e+--w]*L;return L*=128,k>=L&&(k-=Math.pow(2,8*t)),k},i.prototype.readInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var u=this[e]|this[e+1]<<8;return u&32768?u|4294901760:u},i.prototype.readInt16BE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var u=this[e+1]|this[e]<<8;return u&32768?u|4294901760:u},i.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),o.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),o.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),o.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),o.read(this,e,!1,52,8)};function Z(r,e,t,u,w,L){if(!i.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>w||er.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(e,t,u,w){if(e=+e,t=t>>>0,u=u>>>0,!w){var L=Math.pow(2,8*u)-1;Z(this,e,t,u,L,0)}var k=1,W=0;for(this[t]=e&255;++W>>0,u=u>>>0,!w){var L=Math.pow(2,8*u)-1;Z(this,e,t,u,L,0)}var k=u-1,W=1;for(this[t+k]=e&255;--k>=0&&(W*=256);)this[t+k]=e/W&255;return t+u},i.prototype.writeUInt8=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,1,255,0),this[t]=e&255,t+1},i.prototype.writeUInt16LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeUInt16BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeUInt32LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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},i.prototype.writeUInt32BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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},i.prototype.writeIntLE=function(e,t,u,w){if(e=+e,t=t>>>0,!w){var L=Math.pow(2,8*u-1);Z(this,e,t,u,L-1,-L)}var k=0,W=1,K=0;for(this[t]=e&255;++k>0)-K&255;return t+u},i.prototype.writeIntBE=function(e,t,u,w){if(e=+e,t=t>>>0,!w){var L=Math.pow(2,8*u-1);Z(this,e,t,u,L-1,-L)}var k=u-1,W=1,K=0;for(this[t+k]=e&255;--k>=0&&(W*=256);)e<0&&K===0&&this[t+k+1]!==0&&(K=1),this[t+k]=(e/W>>0)-K&255;return t+u},i.prototype.writeInt8=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},i.prototype.writeInt16LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeInt32LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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},i.prototype.writeInt32BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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 re(r,e,t,u,w,L){if(t+u>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function me(r,e,t,u,w){return e=+e,t=t>>>0,w||re(r,e,t,4),o.write(r,e,t,u,23,4),t+4}i.prototype.writeFloatLE=function(e,t,u){return me(this,e,t,!0,u)},i.prototype.writeFloatBE=function(e,t,u){return me(this,e,t,!1,u)};function Ee(r,e,t,u,w){return e=+e,t=t>>>0,w||re(r,e,t,8),o.write(r,e,t,u,52,8),t+8}i.prototype.writeDoubleLE=function(e,t,u){return Ee(this,e,t,!0,u)},i.prototype.writeDoubleBE=function(e,t,u){return Ee(this,e,t,!1,u)},i.prototype.copy=function(e,t,u,w){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(u||(u=0),!w&&w!==0&&(w=this.length),t>=e.length&&(t=e.length),t||(t=0),w>0&&w=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),e.length-t=0;--k)e[k+t]=this[k+u];else Uint8Array.prototype.set.call(e,this.subarray(u,w),t);return L},i.prototype.fill=function(e,t,u,w){if(typeof e=="string"){if(typeof t=="string"?(w=t,t=0,u=this.length):typeof u=="string"&&(w=u,u=this.length),w!==void 0&&typeof w!="string")throw new TypeError("encoding must be a string");if(typeof w=="string"&&!i.isEncoding(w))throw new TypeError("Unknown encoding: "+w);if(e.length===1){var L=e.charCodeAt(0);(w==="utf8"&&L<128||w==="latin1")&&(e=L)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>0,u=u===void 0?this.length:u>>>0,e||(e=0);var k;if(typeof e=="number")for(k=t;k55295&&t<57344){if(!w){if(t>56319){(e-=3)>-1&&L.push(239,191,189);continue}else if(k+1===u){(e-=3)>-1&&L.push(239,191,189);continue}w=t;continue}if(t<56320){(e-=3)>-1&&L.push(239,191,189),w=t;continue}t=(w-55296<<10|t-56320)+65536}else w&&(e-=3)>-1&&L.push(239,191,189);if(w=null,t<128){if((e-=1)<0)break;L.push(t)}else if(t<2048){if((e-=2)<0)break;L.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;L.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;L.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return L}function q(r){for(var e=[],t=0;t>8,w=t%256,L.push(w),L.push(u);return L}function s(r){return n.toByteArray(b(r))}function f(r,e,t,u){for(var w=0;w=e.length||w>=r.length);++w)e[w+t]=r[w];return w}function D(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function O(r){return r!==r}var V=(function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var u=t*16,w=0;w<16;++w)e[u+w]=r[t]+r[w];return e})()})(He)),He}var ue=Re();const Ln={lstatSync:()=>{},isFileReadStream(a){return!1}},ke={...Ln,runtime:"browser"},Te=a=>{if(a==null)return 0;if(typeof a=="string")return ue.Buffer.byteLength(a);if(typeof a.byteLength=="number")return a.byteLength;if(typeof a.length=="number")return a.length;if(typeof a.size=="number")return a.size;if(typeof a.start=="number"&&typeof a.end=="number")return a.end+1-a.start;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size}catch{return}};var ne;(function(a){a.EMPTY_INPUT="a null or undefined Body",a.CONTENT_LENGTH="the ContentLength property of the params set by the caller",a.STRING_LENGTH="the encoded byte length of the Body string",a.TYPED_ARRAY="the byteLength of a typed byte array such as Uint8Array",a.LENGTH="the value of Body.length",a.SIZE="the value of Body.size",a.START_END_DIFF="the numeric difference between Body.start and Body.end",a.LSTAT="the size of the file given by Body.path on disk as reported by lstatSync"})(ne||(ne={}));const kn=(a,n)=>{if(n!=null)return ne.CONTENT_LENGTH;if(a==null)return ne.EMPTY_INPUT;if(typeof a=="string")return ne.STRING_LENGTH;if(typeof a.byteLength=="number")return ne.TYPED_ARRAY;if(typeof a.length=="number")return ne.LENGTH;if(typeof a.size=="number")return ne.SIZE;if(typeof a.start=="number"&&typeof a.end=="number")return ne.START_END_DIFF;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size,ne.LSTAT}catch{return}};var De={exports:{}},Dt;function be(){return Dt||(Dt=1,typeof Object.create=="function"?De.exports=function(n,o){o&&(n.super_=o,n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:De.exports=function(n,o){if(o){n.super_=o;var l=function(){};l.prototype=o.prototype,n.prototype=new l,n.prototype.constructor=n}}),De.exports}var je,Mt;function ir(){return Mt||(Mt=1,je=Ne().EventEmitter),je}const Pn={},Nn=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),ar=Mr(Nn);var We,Lt;function In(){if(Lt)return We;Lt=1;function a(_,M){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);M&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(_,x).enumerable})),T.push.apply(T,p)}return T}function n(_){for(var M=1;M0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(T){var p={data:T,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var p=this.head,x=""+p.data;p=p.next;)x+=T+p.data;return x}},{key:"concat",value:function(T){if(this.length===0)return g.alloc(0);for(var p=g.allocUnsafe(T>>>0),x=this.head,A=0;x;)C(x.data,p,A),A+=x.data.length,x=x.next;return p}},{key:"consume",value:function(T,p){var x;return TE.length?E.length:T;if(m===E.length?A+=E:A+=E.slice(0,T),T-=m,T===0){m===E.length?(++x,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=E.slice(m));break}++x}return this.length-=x,A}},{key:"_getBuffer",value:function(T){var p=g.allocUnsafe(T),x=this.head,A=1;for(x.data.copy(p),T-=x.data.length;x=x.next;){var E=x.data,m=T>E.length?E.length:T;if(E.copy(p,p.length-T,0,m),T-=m,T===0){m===E.length?(++A,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=E.slice(m));break}++A}return this.length-=A,p}},{key:B,value:function(T,p){return R(this,n(n({},p),{},{depth:0,customInspect:!1}))}}]),_})(),We}var Ke,kt;function or(){if(kt)return Ke;kt=1;function a(h,i){var d=this,g=this._readableState&&this._readableState.destroyed,F=this._writableState&&this._writableState.destroyed;return g||F?(i?i(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,h)):process.nextTick(y,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(R){!i&&R?d._writableState?d._writableState.errorEmitted?process.nextTick(o,d):(d._writableState.errorEmitted=!0,process.nextTick(n,d,R)):process.nextTick(n,d,R):i?(process.nextTick(o,d),i(R)):process.nextTick(o,d)}),this)}function n(h,i){y(h,i),o(h)}function o(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function l(){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 y(h,i){h.emit("error",i)}function c(h,i){var d=h._readableState,g=h._writableState;d&&d.autoDestroy||g&&g.autoDestroy?h.destroy(i):h.emit("error",i)}return Ke={destroy:a,undestroy:l,errorOrDestroy:c},Ke}var $e={},Pt;function ve(){if(Pt)return $e;Pt=1;function a(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,i.__proto__=d}var n={};function o(i,d,g){g||(g=Error);function F(B,C,_){return typeof d=="string"?d:d(B,C,_)}var R=(function(B){a(C,B);function C(_,M,T){return B.call(this,F(_,M,T))||this}return C})(g);R.prototype.name=g.name,R.prototype.code=i,n[i]=R}function l(i,d){if(Array.isArray(i)){var g=i.length;return i=i.map(function(F){return String(F)}),g>2?"one of ".concat(d," ").concat(i.slice(0,g-1).join(", "),", or ")+i[g-1]:g===2?"one of ".concat(d," ").concat(i[0]," or ").concat(i[1]):"of ".concat(d," ").concat(i[0])}else return"of ".concat(d," ").concat(String(i))}function y(i,d,g){return i.substr(0,d.length)===d}function c(i,d,g){return(g===void 0||g>i.length)&&(g=i.length),i.substring(g-d.length,g)===d}function h(i,d,g){return typeof g!="number"&&(g=0),g+d.length>i.length?!1:i.indexOf(d,g)!==-1}return o("ERR_INVALID_OPT_VALUE",function(i,d){return'The value "'+d+'" is invalid for option "'+i+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(i,d,g){var F;typeof d=="string"&&y(d,"not ")?(F="must not be",d=d.replace(/^not /,"")):F="must be";var R;if(c(i," argument"))R="The ".concat(i," ").concat(F," ").concat(l(d,"type"));else{var B=h(i,".")?"property":"argument";R='The "'.concat(i,'" ').concat(B," ").concat(F," ").concat(l(d,"type"))}return R+=". Received type ".concat(typeof g),R},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$e.codes=n,$e}var ze,Nt;function sr(){if(Nt)return ze;Nt=1;var a=ve().codes.ERR_INVALID_OPT_VALUE;function n(l,y,c){return l.highWaterMark!=null?l.highWaterMark:y?l[c]:null}function o(l,y,c,h){var i=n(y,h,c);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var d=h?c:"highWaterMark";throw new a(d,i)}return Math.floor(i)}return l.objectMode?16:16*1024}return ze={getHighWaterMark:o},ze}var Ve,It;function Un(){if(It)return Ve;It=1,Ve=a;function a(o,l){if(n("noDeprecation"))return o;var y=!1;function c(){if(!y){if(n("throwDeprecation"))throw new Error(l);n("traceDeprecation")?console.trace(l):console.warn(l),y=!0}return o.apply(this,arguments)}return c}function n(o){try{if(!we.localStorage)return!1}catch{return!1}var l=we.localStorage[o];return l==null?!1:String(l).toLowerCase()==="true"}return Ve}var Ge,Ut;function ur(){if(Ut)return Ge;Ut=1,Ge=N;function a(v){var b=this;this.next=null,this.entry=null,this.finish=function(){Ee(b,v)}}var n;N.WritableState=S;var o={deprecate:Un()},l=ir(),y=Re().Buffer,c=(typeof we<"u"?we:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(v){return y.from(v)}function i(v){return y.isBuffer(v)||v instanceof c}var d=or(),g=sr(),F=g.getHighWaterMark,R=ve().codes,B=R.ERR_INVALID_ARG_TYPE,C=R.ERR_METHOD_NOT_IMPLEMENTED,_=R.ERR_MULTIPLE_CALLBACK,M=R.ERR_STREAM_CANNOT_PIPE,T=R.ERR_STREAM_DESTROYED,p=R.ERR_STREAM_NULL_VALUES,x=R.ERR_STREAM_WRITE_AFTER_END,A=R.ERR_UNKNOWN_ENCODING,E=d.errorOrDestroy;be()(N,l);function m(){}function S(v,b,P){n=n||ge(),v=v||{},typeof P!="boolean"&&(P=b instanceof n),this.objectMode=!!v.objectMode,P&&(this.objectMode=this.objectMode||!!v.writableObjectMode),this.highWaterMark=F(this,v,"writableHighWaterMark",P),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=v.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=v.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){xe(b,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=v.emitClose!==!1,this.autoDestroy=!!v.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}S.prototype.getBuffer=function(){for(var b=this.bufferedRequest,P=[];b;)P.push(b),b=b.next;return P},(function(){try{Object.defineProperty(S.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(b){return I.call(this,b)?!0:this!==N?!1:b&&b._writableState instanceof S}})):I=function(b){return b instanceof this};function N(v){n=n||ge();var b=this instanceof n;if(!b&&!I.call(N,this))return new N(v);this._writableState=new S(v,this,b),this.writable=!0,v&&(typeof v.write=="function"&&(this._write=v.write),typeof v.writev=="function"&&(this._writev=v.writev),typeof v.destroy=="function"&&(this._destroy=v.destroy),typeof v.final=="function"&&(this._final=v.final)),l.call(this)}N.prototype.pipe=function(){E(this,new M)};function U(v,b){var P=new x;E(v,P),process.nextTick(b,P)}function H(v,b,P,q){var j;return P===null?j=new p:typeof P!="string"&&!b.objectMode&&(j=new B("chunk",["string","Buffer"],P)),j?(E(v,j),process.nextTick(q,j),!1):!0}N.prototype.write=function(v,b,P){var q=this._writableState,j=!1,s=!q.objectMode&&i(v);return s&&!y.isBuffer(v)&&(v=h(v)),typeof b=="function"&&(P=b,b=null),s?b="buffer":b||(b=q.defaultEncoding),typeof P!="function"&&(P=m),q.ending?U(this,P):(s||H(this,q,v,P))&&(q.pendingcb++,j=J(this,q,s,v,b,P)),j},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var v=this._writableState;v.corked&&(v.corked--,!v.writing&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&se(this,v))},N.prototype.setDefaultEncoding=function(b){if(typeof b=="string"&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new A(b);return this._writableState.defaultEncoding=b,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Q(v,b,P){return!v.objectMode&&v.decodeStrings!==!1&&typeof b=="string"&&(b=y.from(b,P)),b}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(v,b,P,q,j,s){if(!P){var f=Q(b,q,j);q!==f&&(P=!0,j="buffer",q=f)}var D=b.objectMode?1:q.length;b.length+=D;var O=b.length>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function h(p,x,A){var E=x.length-1;if(E=0?(m>0&&(p.lastNeed=m-1),m):--E=0?(m>0&&(p.lastNeed=m-2),m):--E=0?(m>0&&(m===2?m=0:p.lastNeed=m-3),m):0))}function i(p,x,A){if((x[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return p.lastNeed=2,"�"}}function d(p){var x=this.lastTotal-this.lastNeed,A=i(this,p);if(A!==void 0)return A;if(this.lastNeed<=p.length)return p.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,x,0,p.length),this.lastNeed-=p.length}function g(p,x){var A=h(this,p,x);if(!this.lastNeed)return p.toString("utf8",x);this.lastTotal=A;var E=p.length-(A-this.lastNeed);return p.copy(this.lastChar,0,E),p.toString("utf8",x,E)}function F(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+"�":x}function R(p,x){if((p.length-x)%2===0){var A=p.toString("utf16le",x);if(A){var E=A.charCodeAt(A.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",x,p.length-1)}function B(p){var x=p&&p.length?this.write(p):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,A)}return x}function C(p,x){var A=(p.length-x)%3;return A===0?p.toString("base64",x):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",x,p.length-A))}function _(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function M(p){return p.toString(this.encoding)}function T(p){return p&&p.length?this.write(p):""}return Xe}var Qe,Wt;function vt(){if(Wt)return Qe;Wt=1;var a=ve().codes.ERR_STREAM_PREMATURE_CLOSE;function n(c){var h=!1;return function(){if(!h){h=!0;for(var i=arguments.length,d=new Array(i),g=0;g0)if(typeof f!="string"&&!r.objectMode&&Object.getPrototypeOf(f)!==l.prototype&&(f=c(f)),O)r.endEmitted?m(s,new p):Q(s,r,f,!0);else if(r.ended)m(s,new M);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!D?(f=r.decoder.write(f),r.objectMode||f.length!==0?Q(s,r,f,!1):se(s,r)):Q(s,r,f,!1)}else O||(r.reading=!1,se(s,r))}return!r.ended&&(r.length=ee?s=ee:(s--,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s++),s}function de(s,f){return s<=0||f.length===0&&f.ended?0:f.objectMode?1:s!==s?f.flowing&&f.length?f.buffer.head.data.length:f.length:(s>f.highWaterMark&&(f.highWaterMark=oe(s)),s<=f.length?s:f.ended?f.length:(f.needReadable=!0,0))}U.prototype.read=function(s){d("read",s),s=parseInt(s,10);var f=this._readableState,D=s;if(s!==0&&(f.emittedReadable=!1),s===0&&f.needReadable&&((f.highWaterMark!==0?f.length>=f.highWaterMark:f.length>0)||f.ended))return d("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?P(this):ie(this),null;if(s=de(s,f),s===0&&f.ended)return f.length===0&&P(this),null;var O=f.needReadable;d("need readable",O),(f.length===0||f.length-s0?V=b(s,f):V=null,V===null?(f.needReadable=f.length<=f.highWaterMark,s=0):(f.length-=s,f.awaitDrain=0),f.length===0&&(f.ended||(f.needReadable=!0),D!==s&&f.ended&&P(this)),V!==null&&this.emit("data",V),V};function xe(s,f){if(d("onEofChunk"),!f.ended){if(f.decoder){var D=f.decoder.end();D&&D.length&&(f.buffer.push(D),f.length+=f.objectMode?1:D.length)}f.ended=!0,f.sync?ie(s):(f.needReadable=!1,f.emittedReadable||(f.emittedReadable=!0,pe(s)))}}function ie(s){var f=s._readableState;d("emitReadable",f.needReadable,f.emittedReadable),f.needReadable=!1,f.emittedReadable||(d("emitReadable",f.flowing),f.emittedReadable=!0,process.nextTick(pe,s))}function pe(s){var f=s._readableState;d("emitReadable_",f.destroyed,f.length,f.ended),!f.destroyed&&(f.length||f.ended)&&(s.emit("readable"),f.emittedReadable=!1),f.needReadable=!f.flowing&&!f.ended&&f.length<=f.highWaterMark,v(s)}function se(s,f){f.readingMore||(f.readingMore=!0,process.nextTick(ye,s,f))}function ye(s,f){for(;!f.reading&&!f.ended&&(f.length1&&j(O.pipes,s)!==-1)&&!w&&(d("false write response, pause",O.awaitDrain),O.awaitDrain++),D.pause())}function W($){d("onerror",$),X(),s.removeListener("error",W),n(s,"error")===0&&m(s,$)}I(s,"error",W);function K(){s.removeListener("finish",z),X()}s.once("close",K);function z(){d("onfinish"),s.removeListener("close",K),X()}s.once("finish",z);function X(){d("unpipe"),D.unpipe(s)}return s.emit("pipe",D),O.flowing||(d("pipe resume"),D.resume()),s};function Y(s){return function(){var D=s._readableState;d("pipeOnDrain",D.awaitDrain),D.awaitDrain&&D.awaitDrain--,D.awaitDrain===0&&n(s,"data")&&(D.flowing=!0,v(s))}}U.prototype.unpipe=function(s){var f=this._readableState,D={hasUnpiped:!1};if(f.pipesCount===0)return this;if(f.pipesCount===1)return s&&s!==f.pipes?this:(s||(s=f.pipes),f.pipes=null,f.pipesCount=0,f.flowing=!1,s&&s.emit("unpipe",this,D),this);if(!s){var O=f.pipes,V=f.pipesCount;f.pipes=null,f.pipesCount=0,f.flowing=!1;for(var r=0;r0,O.flowing!==!1&&this.resume()):s==="readable"&&!O.endEmitted&&!O.readableListening&&(O.readableListening=O.needReadable=!0,O.flowing=!1,O.emittedReadable=!1,d("on readable",O.length,O.reading),O.length?ie(this):O.reading||process.nextTick(re,this)),D},U.prototype.addListener=U.prototype.on,U.prototype.removeListener=function(s,f){var D=o.prototype.removeListener.call(this,s,f);return s==="readable"&&process.nextTick(Z,this),D},U.prototype.removeAllListeners=function(s){var f=o.prototype.removeAllListeners.apply(this,arguments);return(s==="readable"||s===void 0)&&process.nextTick(Z,this),f};function Z(s){var f=s._readableState;f.readableListening=s.listenerCount("readable")>0,f.resumeScheduled&&!f.paused?f.flowing=!0:s.listenerCount("data")>0&&s.resume()}function re(s){d("readable nexttick read 0"),s.read(0)}U.prototype.resume=function(){var s=this._readableState;return s.flowing||(d("resume"),s.flowing=!s.readableListening,me(this,s)),s.paused=!1,this};function me(s,f){f.resumeScheduled||(f.resumeScheduled=!0,process.nextTick(Ee,s,f))}function Ee(s,f){d("resume",f.reading),f.reading||s.read(0),f.resumeScheduled=!1,s.emit("resume"),v(s),f.flowing&&!f.reading&&s.read(0)}U.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function v(s){var f=s._readableState;for(d("flow",f.flowing);f.flowing&&s.read()!==null;);}U.prototype.wrap=function(s){var f=this,D=this._readableState,O=!1;s.on("end",function(){if(d("wrapped end"),D.decoder&&!D.ended){var e=D.decoder.end();e&&e.length&&f.push(e)}f.push(null)}),s.on("data",function(e){if(d("wrapped data"),D.decoder&&(e=D.decoder.write(e)),!(D.objectMode&&e==null)&&!(!D.objectMode&&(!e||!e.length))){var t=f.push(e);t||(O=!0,s.pause())}});for(var V in s)this[V]===void 0&&typeof s[V]=="function"&&(this[V]=(function(t){return function(){return s[t].apply(s,arguments)}})(V));for(var r=0;r=f.length?(f.decoder?D=f.buffer.join(""):f.buffer.length===1?D=f.buffer.first():D=f.buffer.concat(f.length),f.buffer.clear()):D=f.buffer.consume(s,f.decoder),D}function P(s){var f=s._readableState;d("endReadable",f.endEmitted),f.endEmitted||(f.ended=!0,process.nextTick(q,f,s))}function q(s,f){if(d("endReadableNT",s.endEmitted,s.length),!s.endEmitted&&s.length===0&&(s.endEmitted=!0,f.readable=!1,f.emit("end"),s.autoDestroy)){var D=f._writableState;(!D||D.autoDestroy&&D.finished)&&f.destroy()}}typeof Symbol=="function"&&(U.from=function(s,f){return E===void 0&&(E=Hn()),E(U,s,f)});function j(s,f){for(var D=0,O=s.length;D0;return i(x,E,m,function(S){T||(T=S),S&&p.forEach(d),!E&&(p.forEach(d),M(T))})});return C.reduce(g)}return nt=R,nt}var it,Xt;function Kn(){if(Xt)return it;Xt=1,it=o;var a=Ne().EventEmitter,n=be();n(o,a),o.Readable=fr(),o.Writable=ur(),o.Duplex=ge(),o.Transform=lr(),o.PassThrough=jn(),o.finished=vt(),o.pipeline=Wn(),o.Stream=o;function o(){a.call(this)}return o.prototype.pipe=function(l,y){var c=this;function h(C){l.writable&&l.write(C)===!1&&c.pause&&c.pause()}c.on("data",h);function i(){c.readable&&c.resume&&c.resume()}l.on("drain",i),!l._isStdio&&(!y||y.end!==!1)&&(c.on("end",g),c.on("close",F));var d=!1;function g(){d||(d=!0,l.end())}function F(){d||(d=!0,typeof l.destroy=="function"&&l.destroy())}function R(C){if(B(),a.listenerCount(this,"error")===0)throw C}c.on("error",R),l.on("error",R);function B(){c.removeListener("data",h),l.removeListener("drain",i),c.removeListener("end",g),c.removeListener("close",F),c.removeListener("error",R),l.removeListener("error",R),c.removeListener("end",B),c.removeListener("close",B),l.removeListener("close",B)}return c.on("end",B),c.on("close",B),l.on("close",B),l.emit("pipe",c),l},it}var $n=Kn();async function*at(a,n,o){let l=1;const y={chunks:[],length:0};for await(const c of o(a))for(y.chunks.push(c),y.length+=c.byteLength;y.length>n;){const h=y.chunks.length>1?ue.Buffer.concat(y.chunks):y.chunks[0];yield{partNumber:l,data:h.subarray(0,n)},y.chunks=[h.subarray(n)],y.length=y.chunks[0].byteLength,l+=1}yield{partNumber:l,data:y.chunks.length!==1?ue.Buffer.concat(y.chunks):y.chunks[0],lastPart:!0}}async function*Qt(a,n){let o=1,l=0,y=n;for(;y{if(a instanceof Uint8Array)return Qt(a,n);if(a instanceof $n.Readable)return at(a,n,zn);if(a instanceof String||typeof a=="string")return Qt(ue.Buffer.from(a),n);if(typeof a.stream=="function")return at(a.stream(),n,Zt);if(a instanceof ReadableStream)return at(a,n,Zt);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")};class Ae extends qe.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(n){if(super(),this.queueSize=n.queueSize||this.queueSize,this.leavePartsOnError=n.leavePartsOnError||this.leavePartsOnError,this.tags=n.tags||this.tags,this.client=n.client,this.params=n.params,!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");this.totalBytes=this.params.ContentLength??Te(this.params.Body),this.totalBytesSource=kn(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=n.abortController??new Tn,this.partSize=n.partSize||Math.max(Ae.MIN_PART_SIZE,Math.floor((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 new 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(n,o){return this.uploadEvent=n,super.on(n,o)}async __uploadUsingPut(n){this.isMultiPart=!1;const o={...this.params,Body:n.data},l=this.client.config,y=l.requestHandler,c=y instanceof qe.EventEmitter?y:null,h=_=>{this.bytesUploadedSoFar=_.loaded,this.totalBytes=_.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};c!==null&&c.on("xhr.upload.progress",h);const i=await Promise.all([this.client.send(new At(o)),l?.endpoint?.()]),d=i[0];let g=i[1];if(g||(g=Lr(await kr(o,At,{...l}))),!g)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');c!==null&&c.off("xhr.upload.progress",h);const F=this.params.Key.split("/").map(_=>Ct(_)).join("/"),R=Ct(this.params.Bucket),B=(()=>{const _=g.hostname.startsWith(`${R}.`),M=this.client.config.forcePathStyle,T=g.port?`:${g.port}`:"";return M?`${g.protocol}//${g.hostname}${T}/${R}/${F}`:_?`${g.protocol}//${g.hostname}${T}/${F}`:`${g.protocol}//${R}.${g.hostname}${T}/${F}`})();this.singleUploadResult={...d,Bucket:this.params.Bucket,Key:this.params.Key,Location:B};const C=Te(n.data);this.__notifyProgress({loaded:C,total:C,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){const n=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){const o={...this.params,Body:void 0};n==="WHEN_SUPPORTED"&&(o.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Bn.CRC32),this.createMultiPartPromise=this.client.send(new Cn(o)).then(l=>(this.abortMultipartUploadCommand=new yn({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:l.UploadId}),l))}return this.createMultiPartPromise}async __doConcurrentUpload(n){for await(const o of n){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw new 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(o.partNumber===1&&o.lastPart)return await this.__uploadUsingPut(o);if(!this.uploadId){const{UploadId:g}=await this.__createMultipartUpload();if(this.uploadId=g,this.abortController.signal.aborted)return}const l=Te(o.data)||0,y=this.client.config.requestHandler,c=y instanceof qe.EventEmitter?y:null;let h=0;const i=(g,F)=>{(Number(F.query.partNumber)||-1)===o.partNumber&&(g.total&&l&&(this.bytesUploadedSoFar+=g.loaded-h,h=g.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:o.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};c!==null&&c.on("xhr.upload.progress",i),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(o);const d=await this.client.send(new Rn({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:o.data,PartNumber:o.partNumber}));if(c!==null&&c.off("xhr.upload.progress",i),this.abortController.signal.aborted)return;if(!d.ETag)throw new Error(`Part ${o.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:o.partNumber,ETag:d.ETag,...d.ChecksumCRC32&&{ChecksumCRC32:d.ChecksumCRC32},...d.ChecksumCRC32C&&{ChecksumCRC32C:d.ChecksumCRC32C},...d.ChecksumSHA1&&{ChecksumSHA1:d.ChecksumSHA1},...d.ChecksumSHA256&&{ChecksumSHA256:d.ChecksumSHA256}}),c===null&&(this.bytesUploadedSoFar+=l),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:o.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){const n=Vn(this.params.Body,this.partSize),o=[];for(let y=0;y{o.push(h)});this.concurrentUploaders.push(c)}if(await Promise.all(this.concurrentUploaders),o.length>=1)throw await this.markUploadAsAborted(),o[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(new Error("Upload aborted."),{name:"AbortError"});let l;if(this.isMultiPart){const{expectedPartsCount:y,uploadedParts:c,totalBytes:h,totalBytesSource:i}=this;if(h!==void 0&&y!==void 0&&c.length!==y)throw new Error(`Expected ${y} part(s) but uploaded ${c.length} part(s). +import{V as cr,W as hr,X as ot,Y as Le,Z as G,_ as dr,$ as pr,a0 as yr,a1 as mr,a2 as Er,a3 as wr,a4 as gr,a5 as br,a6 as vr,a7 as xr,a8 as pt,a9 as ae,aa as Ie,ab as _r,N as fe,P as le,Q as ce,ac as he,ad as Cr,ae as Sr,af as Ar,ag as Rr,ah as Br,ai as Fr,aj as Tr,ak as Dr,al as Mr,am as we,an as Lr,ao as kr,ap as Ct,c as yt,aq as mt,U as Et}from"./index.js";import{u as wt}from"./error-banner.js";const Pr=typeof ReadableStream=="function"?ReadableStream:function(){};class Nr extends Pr{}const Ir=({expectedChecksum:a,checksum:n,source:o,checksumSourceLocation:l,base64Encoder:y})=>{if(!cr(o))throw new Error(`@smithy/util-stream: unsupported source type ${o?.constructor?.name??o} in ChecksumStream.`);const c=y??hr;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const h=new TransformStream({start(){},async transform(d,g){n.update(d),g.enqueue(d)},async flush(d){const g=await n.digest(),F=c(g);if(a!==F){const R=new Error(`Checksum mismatch: expected "${a}" but received "${F}" in response header "${l}".`);d.error(R)}else d.terminate()}});o.pipeThrough(h);const i=h.readable;return Object.setPrototypeOf(i,Nr.prototype),i};class Ur{allocByteArray;byteLength=0;byteArrays=[];constructor(n){this.allocByteArray=n}push(n){this.byteArrays.push(n),this.byteLength+=n.byteLength}flush(){if(this.byteArrays.length===1){const l=this.byteArrays[0];return this.reset(),l}const n=this.allocByteArray(this.byteLength);let o=0;for(let l=0;lnew Uint8Array(g))];let i=-1;const d=async g=>{const{value:F,done:R}=await l.read(),B=F;if(R){if(i!==-1){const C=Ue(h,i);Se(C)>0&&g.enqueue(C)}g.close()}else{const C=jr(B,!1);if(i!==C&&(i>=0&&g.enqueue(Ue(h,i)),i=C),i===-1){g.enqueue(B);return}const _=Se(B);c+=_;const M=Se(h[i]);if(_>=n&&M===0)g.enqueue(B);else{const T=Hr(h,i,B);!y&&c>n*2&&(y=!0,o?.warn(`@smithy/util-stream - stream chunk size ${_} is below threshold of ${n}, automatically buffering.`)),T>=n?g.enqueue(Ue(h,i)):await d(g)}}};return new ReadableStream({pull:d})}const qr=Or;function Hr(a,n,o){switch(n){case 0:return a[0]+=o,Se(a[0]);case 1:case 2:return a[n].push(o),Se(a[n])}}function Ue(a,n){switch(n){case 0:const o=a[0];return a[0]="",o;case 1:case 2:return a[n].flush()}throw new Error(`@smithy/util-stream - invalid index ${n} given to flush()`)}function Se(a){return a?.byteLength??a?.length??0}function jr(a,n=!0){return n&&typeof Buffer<"u"&&a instanceof Buffer?2:a instanceof Uint8Array?1:typeof a=="string"?0:-1}const Wr=(a,{requestChecksumRequired:n,requestAlgorithmMember:o,requestChecksumCalculation:l})=>o?a[o]?a[o]:void 0:l===Le.WHEN_SUPPORTED||n?ot:void 0,gt=a=>a===G.MD5?"content-md5":`x-amz-checksum-${a.toLowerCase()}`,Kr=(a,n)=>{const o=a.toLowerCase();for(const l of Object.keys(n))if(o===l.toLowerCase())return!0;return!1},$r=(a,n)=>{const o=a.toLowerCase();for(const l of Object.keys(n))if(l.toLowerCase().startsWith(o))return!0;return!1},Jt=a=>a!==void 0&&typeof a!="string"&&!ArrayBuffer.isView(a)&&!dr(a);var zr=(function(){function a(){this.crc32c=new St}return a.prototype.update=function(n){pr(n)||this.crc32c.update(yr(n))},a.prototype.digest=function(){return mr(this,void 0,void 0,function(){return Er(this,function(n){return[2,wr(this.crc32c.digest())]})})},a.prototype.reset=function(){this.crc32c=new St},a})(),St=(function(){function a(){this.checksum=4294967295}return a.prototype.update=function(n){var o,l;try{for(var y=gr(n),c=y.next();!c.done;c=y.next()){var h=c.value;this.checksum=this.checksum>>>8^Gr[(this.checksum^h)&255]}}catch(i){o={error:i}}finally{try{c&&!c.done&&(l=y.return)&&l.call(y)}finally{if(o)throw o.error}}return this},a.prototype.digest=function(){return(this.checksum^4294967295)>>>0},a})(),Vr=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],Gr=br(Vr);const Yr=()=>{const n=new Array(8);for(let o=0;o<8;o++){const l=new Array(512);for(let y=0;y<256;y++){let c=BigInt(y);for(let h=0;h<8*(o+1);h++)c&1n?c=c>>1n^0x9a6c9329ac4bc9b5n:c=c>>1n;l[y*2]=Number(c>>32n&0xffffffffn),l[y*2+1]=Number(c&0xffffffffn)}n[o]=new Uint32Array(l)}return n};let Oe,Ce,st,ut,ft,lt,ct,ht,dt;const Xr=()=>{Oe||(Oe=Yr(),[Ce,st,ut,ft,lt,ct,ht,dt]=Oe)};class Qr{c1=0;c2=0;constructor(){Xr(),this.reset()}update(n){const o=n.length;let l=0,y=this.c1,c=this.c2;for(;l+8<=o;){const h=((c^n[l++])&255)<<1,i=((c>>>8^n[l++])&255)<<1,d=((c>>>16^n[l++])&255)<<1,g=((c>>>24^n[l++])&255)<<1,F=((y^n[l++])&255)<<1,R=((y>>>8^n[l++])&255)<<1,B=((y>>>16^n[l++])&255)<<1,C=((y>>>24^n[l++])&255)<<1;y=dt[h]^ht[i]^ct[d]^lt[g]^ft[F]^ut[R]^st[B]^Ce[C],c=dt[h+1]^ht[i+1]^ct[d+1]^lt[g+1]^ft[F+1]^ut[R+1]^st[B+1]^Ce[C+1]}for(;l>>8|(y&255)<<24)>>>0,y=y>>>8^Ce[h],c^=Ce[h+1],l++}this.c1=y,this.c2=c}async digest(){const n=this.c1^4294967295,o=this.c2^4294967295;return new Uint8Array([n>>>24,n>>>16&255,n>>>8&255,n&255,o>>>24,o>>>16&255,o>>>8&255,o&255])}reset(){this.c1=4294967295,this.c2=4294967295}}const Zr=()=>vr,er=[G.CRC32,G.CRC32C,G.CRC64NVME,G.SHA1,G.SHA256],Jr=[G.SHA256,G.SHA1,G.CRC32,G.CRC32C,G.CRC64NVME],tr=(a,n)=>{const{checksumAlgorithms:o={}}=n;switch(a){case G.MD5:return o?.MD5??n.md5;case G.CRC32:return o?.CRC32??Zr();case G.CRC32C:return o?.CRC32C??zr;case G.CRC64NVME:return o?.CRC64NVME??Qr;case G.SHA1:return o?.SHA1??n.sha1;case G.SHA256:return o?.SHA256??n.sha256;default:if(o?.[a])return o[a];throw new Error(`The checksum algorithm "${a}" is not supported by the client. Select one of ${er}, or provide an implementation to the client constructor checksums field.`)}},rr=(a,n)=>{const o=new a;return o.update(xr(n||"")),o.digest()},en={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},tn=(a,n)=>(o,l)=>async y=>{if(!pt.isInstance(y.request)||$r("x-amz-checksum-",y.request.headers))return o(y);const{request:c,input:h}=y,{body:i,headers:d}=c,{base64Encoder:g,streamHasher:F}=a,{requestChecksumRequired:R,requestAlgorithmMember:B}=n,C=await a.requestChecksumCalculation(),_=B?.name,M=B?.httpHeader;_&&!h[_]&&(C===Le.WHEN_SUPPORTED||R)&&(h[_]=ot,M&&(d[M]=ot));const T=Wr(h,{requestChecksumRequired:R,requestAlgorithmMember:B?.name,requestChecksumCalculation:C});let p=i,x=d;if(T){switch(T){case G.CRC32:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case G.CRC32C:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case G.CRC64NVME:ae(l,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case G.SHA1:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case G.SHA256:ae(l,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const A=gt(T),E=tr(T,a);if(Jt(i)){const{getAwsChunkedEncodingStream:m,bodyLengthChecker:S}=a;p=m(typeof a.requestStreamBufferSize=="number"&&a.requestStreamBufferSize>=8*1024?qr(i,a.requestStreamBufferSize,l.logger):i,{base64Encoder:g,bodyLengthChecker:S,checksumLocationName:A,checksumAlgorithmFn:E,streamHasher:F}),x={...d,"content-encoding":d["content-encoding"]?`${d["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":d["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":A},delete x["content-length"]}else if(!Kr(A,d)){const m=await rr(E,i);x={...d,[A]:g(m)}}}try{return await o({...y,request:{...c,headers:x,body:p}})}catch(A){if(A instanceof Error&&A.name==="InvalidChunkSizeError")try{A.message.endsWith(".")||(A.message+="."),A.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw A}},rn={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},nn=(a,n)=>(o,l)=>async y=>{const c=y.input,{requestValidationModeMember:h}=n,i=await a.requestChecksumCalculation(),d=await a.responseChecksumValidation();switch(i){case Le.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Le.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(d){case Ie.WHEN_REQUIRED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Ie.WHEN_SUPPORTED:ae(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return h&&!c[h]&&d===Ie.WHEN_SUPPORTED&&(c[h]="ENABLED"),o(y)},nr=(a=[])=>{const n=[];for(const o of Jr)!a.includes(o)||!er.includes(o)||n.push(o);return n},an=a=>{const n=a.lastIndexOf("-");if(n!==-1){const o=a.slice(n+1);if(!o.startsWith("0")){const l=parseInt(o,10);if(!isNaN(l)&&l>=1&&l<=1e4)return!0}}return!1},on=async(a,{checksumAlgorithmFn:n,base64Encoder:o})=>o(await rr(n,a)),sn=async(a,{config:n,responseAlgorithms:o,logger:l})=>{const y=nr(o),{body:c,headers:h}=a;for(const i of y){const d=gt(i),g=h[d];if(g){let F;try{F=tr(i,n)}catch(C){if(i===G.CRC64NVME){l?.warn(`Skipping ${G.CRC64NVME} checksum validation: ${C.message}`);continue}throw C}const{base64Encoder:R}=n;if(Jt(c)){a.body=Ir({expectedChecksum:g,checksumSourceLocation:d,checksum:new F,source:c,base64Encoder:R});return}const B=await on(c,{checksumAlgorithmFn:F,base64Encoder:R});if(B===g)break;throw new Error(`Checksum mismatch: expected "${B}" but received "${g}" in response header "${d}".`)}}},un={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},fn=(a,n)=>(o,l)=>async y=>{if(!pt.isInstance(y.request))return o(y);const c=y.input,h=await o(y),i=h.response,{requestValidationModeMember:d,responseAlgorithms:g}=n;if(d&&c[d]==="ENABLED"){const{clientName:F,commandName:R}=l;if(F==="S3Client"&&R==="GetObjectCommand"&&nr(g).every(C=>{const _=gt(C),M=i.headers[_];return!M||an(M)}))return h;await sn(i,{config:a,responseAlgorithms:g,logger:l.logger})}return h},bt=(a,n)=>({applyToStack:o=>{o.add(tn(a,n),en),o.addRelativeTo(nn(a,n),rn),o.addRelativeTo(fn(a,n),un)}}),ln="content-length",cn="x-amz-decoded-content-length";function hn(){return(a,n)=>async o=>{const{request:l}=o;if(pt.isInstance(l)&&!(ln in l.headers)&&!(cn in l.headers)){const y="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 n?.logger?.warn=="function"&&!(n.logger instanceof _r)?n.logger.warn(y):console.warn(y)}return a({...o})}}const dn={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pn=a=>({applyToStack:n=>{n.add(hn(),dn)}});class yn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").sc(Cr).build(){}function mn(a){return n=>async o=>{const l={...o.input},y=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const c of y){const h=l[c.target];if(h){let i;typeof h=="string"?wn(h,a)?i=a.base64Decoder(h):(i=a.utf8Decoder(h),l[c.target]=a.base64Encoder(i)):(i=ArrayBuffer.isView(h)?new Uint8Array(h.buffer,h.byteOffset,h.byteLength):new Uint8Array(h),l[c.target]=a.base64Encoder(i));const d=new a.md5;d.update(i),l[c.hash]=a.base64Encoder(await d.digest())}}return n({...o,input:l})}}const En={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Pe=a=>({applyToStack:n=>{n.add(mn(a),En)}});function wn(a,n){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a))return!1;try{return n.base64Decoder(a).length===32}catch{return!1}}class gn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(Sr).build(){}function bn(a){return n=>async o=>{const{CreateBucketConfiguration:l}=o.input,y=await a.region();return!l?.LocationConstraint&&!l?.Location&&y!=="us-east-1"&&(o.input.CreateBucketConfiguration=o.input.CreateBucketConfiguration??{},o.input.CreateBucketConfiguration.LocationConstraint=y),n(o)}}const vn={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},xn=a=>({applyToStack:n=>{n.add(bn(a),vn)}});class _n extends fe.classBuilder().ep({...le,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),xn(l)]}).s("AmazonS3","CreateBucket",{}).n("S3Client","CreateBucketCommand").sc(Ar).build(){}class Cn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l),Pe(l)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(Rr).build(){}class Sn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),he(l)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(Br).build(){}class At extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),bt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),pn(),he(l),Pe(l)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(Fr).build(){}class An extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),bt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),he(l)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(Tr).build(){}class Rn extends fe.classBuilder().ep({...le,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(n,o,l,y){return[ce(l,n.getEndpointParameterInstructions()),bt(l,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),he(l),Pe(l)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(Dr).build(){}const Bn={CRC32:"CRC32"};class Fn{onabort=null;_aborted=!1;constructor(){Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}}class Tn{signal=new Fn;abort(){this.signal.abort()}}var Be={exports:{}},Rt;function Ne(){if(Rt)return Be.exports;Rt=1;var a=typeof Reflect=="object"?Reflect:null,n=a&&typeof a.apply=="function"?a.apply:function(m,S,I){return Function.prototype.apply.call(m,S,I)},o;a&&typeof a.ownKeys=="function"?o=a.ownKeys:Object.getOwnPropertySymbols?o=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:o=function(m){return Object.getOwnPropertyNames(m)};function l(E){console&&console.warn&&console.warn(E)}var y=Number.isNaN||function(m){return m!==m};function c(){c.init.call(this)}Be.exports=c,Be.exports.once=p,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var h=10;function i(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(E){if(typeof E!="number"||E<0||y(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");h=E}}),c.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},c.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||y(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function d(E){return E._maxListeners===void 0?c.defaultMaxListeners:E._maxListeners}c.prototype.getMaxListeners=function(){return d(this)},c.prototype.emit=function(m){for(var S=[],I=1;I0&&(H=S[0]),H instanceof Error)throw H;var Q=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw Q.context=H,Q}var J=U[m];if(J===void 0)return!1;if(typeof J=="function")n(J,this,S);else for(var ee=J.length,oe=_(J,ee),I=0;I0&&H.length>N&&!H.warned){H.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=E,Q.type=m,Q.count=H.length,l(Q)}return E}c.prototype.addListener=function(m,S){return g(this,m,S,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(m,S){return g(this,m,S,!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 R(E,m,S){var I={fired:!1,wrapFn:void 0,target:E,type:m,listener:S},N=F.bind(I);return N.listener=S,I.wrapFn=N,N}c.prototype.once=function(m,S){return i(S),this.on(m,R(this,m,S)),this},c.prototype.prependOnceListener=function(m,S){return i(S),this.prependListener(m,R(this,m,S)),this},c.prototype.removeListener=function(m,S){var I,N,U,H,Q;if(i(S),N=this._events,N===void 0)return this;if(I=N[m],I===void 0)return this;if(I===S||I.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete N[m],N.removeListener&&this.emit("removeListener",m,I.listener||S));else if(typeof I!="function"){for(U=-1,H=I.length-1;H>=0;H--)if(I[H]===S||I[H].listener===S){Q=I[H].listener,U=H;break}if(U<0)return this;U===0?I.shift():M(I,U),I.length===1&&(N[m]=I[0]),N.removeListener!==void 0&&this.emit("removeListener",m,Q||S)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(m){var S,I,N;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[m]),this;if(arguments.length===0){var U=Object.keys(I),H;for(N=0;N=0;N--)this.removeListener(m,S[N]);return this};function B(E,m,S){var I=E._events;if(I===void 0)return[];var N=I[m];return N===void 0?[]:typeof N=="function"?S?[N.listener||N]:[N]:S?T(N):_(N,N.length)}c.prototype.listeners=function(m){return B(this,m,!0)},c.prototype.rawListeners=function(m){return B(this,m,!1)},c.listenerCount=function(E,m){return typeof E.listenerCount=="function"?E.listenerCount(m):C.call(E,m)},c.prototype.listenerCount=C;function C(E){var m=this._events;if(m!==void 0){var S=m[E];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};function _(E,m){for(var S=new Array(m),I=0;I0)throw new Error("Invalid string. Length must be a multiple of 4");var M=C.indexOf("=");M===-1&&(M=_);var T=M===_?0:4-M%4;return[M,T]}function i(C){var _=h(C),M=_[0],T=_[1];return(M+T)*3/4-T}function d(C,_,M){return(_+M)*3/4-M}function g(C){var _,M=h(C),T=M[0],p=M[1],x=new o(d(C,T,p)),A=0,E=p>0?T-4:T,m;for(m=0;m>16&255,x[A++]=_>>8&255,x[A++]=_&255;return p===2&&(_=n[C.charCodeAt(m)]<<2|n[C.charCodeAt(m+1)]>>4,x[A++]=_&255),p===1&&(_=n[C.charCodeAt(m)]<<10|n[C.charCodeAt(m+1)]<<4|n[C.charCodeAt(m+2)]>>2,x[A++]=_>>8&255,x[A++]=_&255),x}function F(C){return a[C>>18&63]+a[C>>12&63]+a[C>>6&63]+a[C&63]}function R(C,_,M){for(var T,p=[],x=_;xE?E:A+x));return T===1?(_=C[M-1],p.push(a[_>>2]+a[_<<4&63]+"==")):T===2&&(_=(C[M-2]<<8)+C[M-1],p.push(a[_>>10]+a[_>>4&63]+a[_<<2&63]+"=")),p.join("")}return _e}var Fe={};var Ft;function Mn(){return Ft||(Ft=1,Fe.read=function(a,n,o,l,y){var c,h,i=y*8-l-1,d=(1<>1,F=-7,R=o?y-1:0,B=o?-1:1,C=a[n+R];for(R+=B,c=C&(1<<-F)-1,C>>=-F,F+=i;F>0;c=c*256+a[n+R],R+=B,F-=8);for(h=c&(1<<-F)-1,c>>=-F,F+=l;F>0;h=h*256+a[n+R],R+=B,F-=8);if(c===0)c=1-g;else{if(c===d)return h?NaN:(C?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-g}return(C?-1:1)*h*Math.pow(2,c-l)},Fe.write=function(a,n,o,l,y,c){var h,i,d,g=c*8-y-1,F=(1<>1,B=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=l?0:c-1,_=l?1:-1,M=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(i=isNaN(n)?1:0,h=F):(h=Math.floor(Math.log(n)/Math.LN2),n*(d=Math.pow(2,-h))<1&&(h--,d*=2),h+R>=1?n+=B/d:n+=B*Math.pow(2,1-R),n*d>=2&&(h++,d/=2),h+R>=F?(i=0,h=F):h+R>=1?(i=(n*d-1)*Math.pow(2,y),h=h+R):(i=n*Math.pow(2,R-1)*Math.pow(2,y),h=0));y>=8;a[o+C]=i&255,C+=_,i/=256,y-=8);for(h=h<0;a[o+C]=h&255,C+=_,h/=256,g-=8);a[o+C-_]|=M*128}),Fe}var Tt;function Re(){return Tt||(Tt=1,(function(a){var n=Dn(),o=Mn(),l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=i,a.SlowBuffer=p,a.INSPECT_MAX_BYTES=50;var y=2147483647;a.kMaxLength=y,i.TYPED_ARRAY_SUPPORT=c(),!i.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 c(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function h(r){if(r>y)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,i.prototype),e}function i(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(r)}return d(r,e,t)}i.poolSize=8192;function d(r,e,t){if(typeof r=="string")return B(r,e);if(ArrayBuffer.isView(r))return C(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(D(r,ArrayBuffer)||r&&D(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(D(r,SharedArrayBuffer)||r&&D(r.buffer,SharedArrayBuffer)))return _(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=r.valueOf&&r.valueOf();if(u!=null&&u!==r)return i.from(u,e,t);var w=M(r);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return i.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}i.from=function(r,e,t){return d(r,e,t)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function g(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function F(r,e,t){return g(r),r<=0?h(r):e!==void 0?typeof t=="string"?h(r).fill(e,t):h(r).fill(e):h(r)}i.alloc=function(r,e,t){return F(r,e,t)};function R(r){return g(r),h(r<0?0:T(r)|0)}i.allocUnsafe=function(r){return R(r)},i.allocUnsafeSlow=function(r){return R(r)};function B(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=x(r,e)|0,u=h(t),w=u.write(r,e);return w!==t&&(u=u.slice(0,w)),u}function C(r){for(var e=r.length<0?0:T(r.length)|0,t=h(e),u=0;u=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return r|0}function p(r){return+r!=r&&(r=0),i.alloc(+r)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,t){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var u=e.length,w=t.length,L=0,k=Math.min(u,w);L2&&arguments[2]===!0;if(!u&&t===0)return 0;for(var w=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return P(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return s(r).length;default:if(w)return u?-1:P(r).length;e=(""+e).toLowerCase(),w=!0}}i.byteLength=x;function A(r,e,t){var u=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return se(this,e,t);case"utf8":case"utf-8":return oe(this,e,t);case"ascii":return ie(this,e,t);case"latin1":case"binary":return pe(this,e,t);case"base64":return ee(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,e,t);default:if(u)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),u=!0}}i.prototype._isBuffer=!0;function E(r,e,t){var u=r[e];r[e]=r[t],r[t]=u}i.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""},l&&(i.prototype[l]=i.prototype.inspect),i.prototype.compare=function(e,t,u,w,L){if(D(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),u===void 0&&(u=e?e.length:0),w===void 0&&(w=0),L===void 0&&(L=this.length),t<0||u>e.length||w<0||L>this.length)throw new RangeError("out of range index");if(w>=L&&t>=u)return 0;if(w>=L)return-1;if(t>=u)return 1;if(t>>>=0,u>>>=0,w>>>=0,L>>>=0,this===e)return 0;for(var k=L-w,W=u-t,K=Math.min(k,W),z=this.slice(w,L),X=e.slice(t,u),$=0;$2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,O(t)&&(t=w?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(w)return-1;t=r.length-1}else if(t<0)if(w)t=0;else return-1;if(typeof e=="string"&&(e=i.from(e,u)),i.isBuffer(e))return e.length===0?-1:S(r,e,t,u,w);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):S(r,[e],t,u,w);throw new TypeError("val must be string, number or Buffer")}function S(r,e,t,u,w){var L=1,k=r.length,W=e.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(r.length<2||e.length<2)return-1;L=2,k/=2,W/=2,t/=2}function K(xt,_t){return L===1?xt[_t]:xt.readUInt16BE(_t*L)}var z;if(w){var X=-1;for(z=t;zk&&(t=k-W),z=t;z>=0;z--){for(var $=!0,te=0;tew&&(u=w)):u=w;var L=e.length;u>L/2&&(u=L/2);for(var k=0;k>>0,isFinite(u)?(u=u>>>0,w===void 0&&(w="utf8")):(w=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var L=this.length-t;if((u===void 0||u>L)&&(u=L),e.length>0&&(u<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");for(var k=!1;;)switch(w){case"hex":return I(this,e,t,u);case"utf8":case"utf-8":return N(this,e,t,u);case"ascii":return U(this,e,t,u);case"latin1":case"binary":return H(this,e,t,u);case"base64":return Q(this,e,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,e,t,u);default:if(k)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),k=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(r,e,t){return e===0&&t===r.length?n.fromByteArray(r):n.fromByteArray(r.slice(e,t))}function oe(r,e,t){t=Math.min(r.length,t);for(var u=[],w=e;w239?4:L>223?3:L>191?2:1;if(w+W<=t){var K,z,X,$;switch(W){case 1:L<128&&(k=L);break;case 2:K=r[w+1],(K&192)===128&&($=(L&31)<<6|K&63,$>127&&(k=$));break;case 3:K=r[w+1],z=r[w+2],(K&192)===128&&(z&192)===128&&($=(L&15)<<12|(K&63)<<6|z&63,$>2047&&($<55296||$>57343)&&(k=$));break;case 4:K=r[w+1],z=r[w+2],X=r[w+3],(K&192)===128&&(z&192)===128&&(X&192)===128&&($=(L&15)<<18|(K&63)<<12|(z&63)<<6|X&63,$>65535&&$<1114112&&(k=$))}}k===null?(k=65533,W=1):k>65535&&(k-=65536,u.push(k>>>10&1023|55296),k=56320|k&1023),u.push(k),w+=W}return xe(u)}var de=4096;function xe(r){var e=r.length;if(e<=de)return String.fromCharCode.apply(String,r);for(var t="",u=0;uu)&&(t=u);for(var w="",L=e;Lu&&(e=u),t<0?(t+=u,t<0&&(t=0)):t>u&&(t=u),tt)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=this[e],L=1,k=0;++k>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=this[e+--t],L=1;t>0&&(L*=256);)w+=this[e+--t]*L;return w},i.prototype.readUInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=this[e],L=1,k=0;++k=L&&(w-=Math.pow(2,8*t)),w},i.prototype.readIntBE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var w=t,L=1,k=this[e+--w];w>0&&(L*=256);)k+=this[e+--w]*L;return L*=128,k>=L&&(k-=Math.pow(2,8*t)),k},i.prototype.readInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var u=this[e]|this[e+1]<<8;return u&32768?u|4294901760:u},i.prototype.readInt16BE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var u=this[e+1]|this[e]<<8;return u&32768?u|4294901760:u},i.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),o.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),o.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),o.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),o.read(this,e,!1,52,8)};function Z(r,e,t,u,w,L){if(!i.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>w||er.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(e,t,u,w){if(e=+e,t=t>>>0,u=u>>>0,!w){var L=Math.pow(2,8*u)-1;Z(this,e,t,u,L,0)}var k=1,W=0;for(this[t]=e&255;++W>>0,u=u>>>0,!w){var L=Math.pow(2,8*u)-1;Z(this,e,t,u,L,0)}var k=u-1,W=1;for(this[t+k]=e&255;--k>=0&&(W*=256);)this[t+k]=e/W&255;return t+u},i.prototype.writeUInt8=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,1,255,0),this[t]=e&255,t+1},i.prototype.writeUInt16LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeUInt16BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeUInt32LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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},i.prototype.writeUInt32BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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},i.prototype.writeIntLE=function(e,t,u,w){if(e=+e,t=t>>>0,!w){var L=Math.pow(2,8*u-1);Z(this,e,t,u,L-1,-L)}var k=0,W=1,K=0;for(this[t]=e&255;++k>0)-K&255;return t+u},i.prototype.writeIntBE=function(e,t,u,w){if(e=+e,t=t>>>0,!w){var L=Math.pow(2,8*u-1);Z(this,e,t,u,L-1,-L)}var k=u-1,W=1,K=0;for(this[t+k]=e&255;--k>=0&&(W*=256);)e<0&&K===0&&this[t+k+1]!==0&&(K=1),this[t+k]=(e/W>>0)-K&255;return t+u},i.prototype.writeInt8=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},i.prototype.writeInt16LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeInt32LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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},i.prototype.writeInt32BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(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 re(r,e,t,u,w,L){if(t+u>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function me(r,e,t,u,w){return e=+e,t=t>>>0,w||re(r,e,t,4),o.write(r,e,t,u,23,4),t+4}i.prototype.writeFloatLE=function(e,t,u){return me(this,e,t,!0,u)},i.prototype.writeFloatBE=function(e,t,u){return me(this,e,t,!1,u)};function Ee(r,e,t,u,w){return e=+e,t=t>>>0,w||re(r,e,t,8),o.write(r,e,t,u,52,8),t+8}i.prototype.writeDoubleLE=function(e,t,u){return Ee(this,e,t,!0,u)},i.prototype.writeDoubleBE=function(e,t,u){return Ee(this,e,t,!1,u)},i.prototype.copy=function(e,t,u,w){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(u||(u=0),!w&&w!==0&&(w=this.length),t>=e.length&&(t=e.length),t||(t=0),w>0&&w=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),e.length-t=0;--k)e[k+t]=this[k+u];else Uint8Array.prototype.set.call(e,this.subarray(u,w),t);return L},i.prototype.fill=function(e,t,u,w){if(typeof e=="string"){if(typeof t=="string"?(w=t,t=0,u=this.length):typeof u=="string"&&(w=u,u=this.length),w!==void 0&&typeof w!="string")throw new TypeError("encoding must be a string");if(typeof w=="string"&&!i.isEncoding(w))throw new TypeError("Unknown encoding: "+w);if(e.length===1){var L=e.charCodeAt(0);(w==="utf8"&&L<128||w==="latin1")&&(e=L)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>0,u=u===void 0?this.length:u>>>0,e||(e=0);var k;if(typeof e=="number")for(k=t;k55295&&t<57344){if(!w){if(t>56319){(e-=3)>-1&&L.push(239,191,189);continue}else if(k+1===u){(e-=3)>-1&&L.push(239,191,189);continue}w=t;continue}if(t<56320){(e-=3)>-1&&L.push(239,191,189),w=t;continue}t=(w-55296<<10|t-56320)+65536}else w&&(e-=3)>-1&&L.push(239,191,189);if(w=null,t<128){if((e-=1)<0)break;L.push(t)}else if(t<2048){if((e-=2)<0)break;L.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;L.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;L.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return L}function q(r){for(var e=[],t=0;t>8,w=t%256,L.push(w),L.push(u);return L}function s(r){return n.toByteArray(b(r))}function f(r,e,t,u){for(var w=0;w=e.length||w>=r.length);++w)e[w+t]=r[w];return w}function D(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function O(r){return r!==r}var V=(function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var u=t*16,w=0;w<16;++w)e[u+w]=r[t]+r[w];return e})()})(He)),He}var ue=Re();const Ln={lstatSync:()=>{},isFileReadStream(a){return!1}},ke={...Ln,runtime:"browser"},Te=a=>{if(a==null)return 0;if(typeof a=="string")return ue.Buffer.byteLength(a);if(typeof a.byteLength=="number")return a.byteLength;if(typeof a.length=="number")return a.length;if(typeof a.size=="number")return a.size;if(typeof a.start=="number"&&typeof a.end=="number")return a.end+1-a.start;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size}catch{return}};var ne;(function(a){a.EMPTY_INPUT="a null or undefined Body",a.CONTENT_LENGTH="the ContentLength property of the params set by the caller",a.STRING_LENGTH="the encoded byte length of the Body string",a.TYPED_ARRAY="the byteLength of a typed byte array such as Uint8Array",a.LENGTH="the value of Body.length",a.SIZE="the value of Body.size",a.START_END_DIFF="the numeric difference between Body.start and Body.end",a.LSTAT="the size of the file given by Body.path on disk as reported by lstatSync"})(ne||(ne={}));const kn=(a,n)=>{if(n!=null)return ne.CONTENT_LENGTH;if(a==null)return ne.EMPTY_INPUT;if(typeof a=="string")return ne.STRING_LENGTH;if(typeof a.byteLength=="number")return ne.TYPED_ARRAY;if(typeof a.length=="number")return ne.LENGTH;if(typeof a.size=="number")return ne.SIZE;if(typeof a.start=="number"&&typeof a.end=="number")return ne.START_END_DIFF;if(ke.isFileReadStream(a))try{return ke.lstatSync(a.path).size,ne.LSTAT}catch{return}};var De={exports:{}},Dt;function be(){return Dt||(Dt=1,typeof Object.create=="function"?De.exports=function(n,o){o&&(n.super_=o,n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:De.exports=function(n,o){if(o){n.super_=o;var l=function(){};l.prototype=o.prototype,n.prototype=new l,n.prototype.constructor=n}}),De.exports}var je,Mt;function ir(){return Mt||(Mt=1,je=Ne().EventEmitter),je}const Pn={},Nn=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),ar=Mr(Nn);var We,Lt;function In(){if(Lt)return We;Lt=1;function a(_,M){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);M&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(_,x).enumerable})),T.push.apply(T,p)}return T}function n(_){for(var M=1;M0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(T){var p={data:T,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var p=this.head,x=""+p.data;p=p.next;)x+=T+p.data;return x}},{key:"concat",value:function(T){if(this.length===0)return g.alloc(0);for(var p=g.allocUnsafe(T>>>0),x=this.head,A=0;x;)C(x.data,p,A),A+=x.data.length,x=x.next;return p}},{key:"consume",value:function(T,p){var x;return TE.length?E.length:T;if(m===E.length?A+=E:A+=E.slice(0,T),T-=m,T===0){m===E.length?(++x,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=E.slice(m));break}++x}return this.length-=x,A}},{key:"_getBuffer",value:function(T){var p=g.allocUnsafe(T),x=this.head,A=1;for(x.data.copy(p),T-=x.data.length;x=x.next;){var E=x.data,m=T>E.length?E.length:T;if(E.copy(p,p.length-T,0,m),T-=m,T===0){m===E.length?(++A,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=E.slice(m));break}++A}return this.length-=A,p}},{key:B,value:function(T,p){return R(this,n(n({},p),{},{depth:0,customInspect:!1}))}}]),_})(),We}var Ke,kt;function or(){if(kt)return Ke;kt=1;function a(h,i){var d=this,g=this._readableState&&this._readableState.destroyed,F=this._writableState&&this._writableState.destroyed;return g||F?(i?i(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,h)):process.nextTick(y,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(R){!i&&R?d._writableState?d._writableState.errorEmitted?process.nextTick(o,d):(d._writableState.errorEmitted=!0,process.nextTick(n,d,R)):process.nextTick(n,d,R):i?(process.nextTick(o,d),i(R)):process.nextTick(o,d)}),this)}function n(h,i){y(h,i),o(h)}function o(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function l(){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 y(h,i){h.emit("error",i)}function c(h,i){var d=h._readableState,g=h._writableState;d&&d.autoDestroy||g&&g.autoDestroy?h.destroy(i):h.emit("error",i)}return Ke={destroy:a,undestroy:l,errorOrDestroy:c},Ke}var $e={},Pt;function ve(){if(Pt)return $e;Pt=1;function a(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,i.__proto__=d}var n={};function o(i,d,g){g||(g=Error);function F(B,C,_){return typeof d=="string"?d:d(B,C,_)}var R=(function(B){a(C,B);function C(_,M,T){return B.call(this,F(_,M,T))||this}return C})(g);R.prototype.name=g.name,R.prototype.code=i,n[i]=R}function l(i,d){if(Array.isArray(i)){var g=i.length;return i=i.map(function(F){return String(F)}),g>2?"one of ".concat(d," ").concat(i.slice(0,g-1).join(", "),", or ")+i[g-1]:g===2?"one of ".concat(d," ").concat(i[0]," or ").concat(i[1]):"of ".concat(d," ").concat(i[0])}else return"of ".concat(d," ").concat(String(i))}function y(i,d,g){return i.substr(0,d.length)===d}function c(i,d,g){return(g===void 0||g>i.length)&&(g=i.length),i.substring(g-d.length,g)===d}function h(i,d,g){return typeof g!="number"&&(g=0),g+d.length>i.length?!1:i.indexOf(d,g)!==-1}return o("ERR_INVALID_OPT_VALUE",function(i,d){return'The value "'+d+'" is invalid for option "'+i+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(i,d,g){var F;typeof d=="string"&&y(d,"not ")?(F="must not be",d=d.replace(/^not /,"")):F="must be";var R;if(c(i," argument"))R="The ".concat(i," ").concat(F," ").concat(l(d,"type"));else{var B=h(i,".")?"property":"argument";R='The "'.concat(i,'" ').concat(B," ").concat(F," ").concat(l(d,"type"))}return R+=". Received type ".concat(typeof g),R},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$e.codes=n,$e}var ze,Nt;function sr(){if(Nt)return ze;Nt=1;var a=ve().codes.ERR_INVALID_OPT_VALUE;function n(l,y,c){return l.highWaterMark!=null?l.highWaterMark:y?l[c]:null}function o(l,y,c,h){var i=n(y,h,c);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var d=h?c:"highWaterMark";throw new a(d,i)}return Math.floor(i)}return l.objectMode?16:16*1024}return ze={getHighWaterMark:o},ze}var Ve,It;function Un(){if(It)return Ve;It=1,Ve=a;function a(o,l){if(n("noDeprecation"))return o;var y=!1;function c(){if(!y){if(n("throwDeprecation"))throw new Error(l);n("traceDeprecation")?console.trace(l):console.warn(l),y=!0}return o.apply(this,arguments)}return c}function n(o){try{if(!we.localStorage)return!1}catch{return!1}var l=we.localStorage[o];return l==null?!1:String(l).toLowerCase()==="true"}return Ve}var Ge,Ut;function ur(){if(Ut)return Ge;Ut=1,Ge=N;function a(v){var b=this;this.next=null,this.entry=null,this.finish=function(){Ee(b,v)}}var n;N.WritableState=S;var o={deprecate:Un()},l=ir(),y=Re().Buffer,c=(typeof we<"u"?we:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(v){return y.from(v)}function i(v){return y.isBuffer(v)||v instanceof c}var d=or(),g=sr(),F=g.getHighWaterMark,R=ve().codes,B=R.ERR_INVALID_ARG_TYPE,C=R.ERR_METHOD_NOT_IMPLEMENTED,_=R.ERR_MULTIPLE_CALLBACK,M=R.ERR_STREAM_CANNOT_PIPE,T=R.ERR_STREAM_DESTROYED,p=R.ERR_STREAM_NULL_VALUES,x=R.ERR_STREAM_WRITE_AFTER_END,A=R.ERR_UNKNOWN_ENCODING,E=d.errorOrDestroy;be()(N,l);function m(){}function S(v,b,P){n=n||ge(),v=v||{},typeof P!="boolean"&&(P=b instanceof n),this.objectMode=!!v.objectMode,P&&(this.objectMode=this.objectMode||!!v.writableObjectMode),this.highWaterMark=F(this,v,"writableHighWaterMark",P),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=v.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=v.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){xe(b,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=v.emitClose!==!1,this.autoDestroy=!!v.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}S.prototype.getBuffer=function(){for(var b=this.bufferedRequest,P=[];b;)P.push(b),b=b.next;return P},(function(){try{Object.defineProperty(S.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(b){return I.call(this,b)?!0:this!==N?!1:b&&b._writableState instanceof S}})):I=function(b){return b instanceof this};function N(v){n=n||ge();var b=this instanceof n;if(!b&&!I.call(N,this))return new N(v);this._writableState=new S(v,this,b),this.writable=!0,v&&(typeof v.write=="function"&&(this._write=v.write),typeof v.writev=="function"&&(this._writev=v.writev),typeof v.destroy=="function"&&(this._destroy=v.destroy),typeof v.final=="function"&&(this._final=v.final)),l.call(this)}N.prototype.pipe=function(){E(this,new M)};function U(v,b){var P=new x;E(v,P),process.nextTick(b,P)}function H(v,b,P,q){var j;return P===null?j=new p:typeof P!="string"&&!b.objectMode&&(j=new B("chunk",["string","Buffer"],P)),j?(E(v,j),process.nextTick(q,j),!1):!0}N.prototype.write=function(v,b,P){var q=this._writableState,j=!1,s=!q.objectMode&&i(v);return s&&!y.isBuffer(v)&&(v=h(v)),typeof b=="function"&&(P=b,b=null),s?b="buffer":b||(b=q.defaultEncoding),typeof P!="function"&&(P=m),q.ending?U(this,P):(s||H(this,q,v,P))&&(q.pendingcb++,j=J(this,q,s,v,b,P)),j},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var v=this._writableState;v.corked&&(v.corked--,!v.writing&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&se(this,v))},N.prototype.setDefaultEncoding=function(b){if(typeof b=="string"&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new A(b);return this._writableState.defaultEncoding=b,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Q(v,b,P){return!v.objectMode&&v.decodeStrings!==!1&&typeof b=="string"&&(b=y.from(b,P)),b}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(v,b,P,q,j,s){if(!P){var f=Q(b,q,j);q!==f&&(P=!0,j="buffer",q=f)}var D=b.objectMode?1:q.length;b.length+=D;var O=b.length>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function h(p,x,A){var E=x.length-1;if(E=0?(m>0&&(p.lastNeed=m-1),m):--E=0?(m>0&&(p.lastNeed=m-2),m):--E=0?(m>0&&(m===2?m=0:p.lastNeed=m-3),m):0))}function i(p,x,A){if((x[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return p.lastNeed=2,"�"}}function d(p){var x=this.lastTotal-this.lastNeed,A=i(this,p);if(A!==void 0)return A;if(this.lastNeed<=p.length)return p.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,x,0,p.length),this.lastNeed-=p.length}function g(p,x){var A=h(this,p,x);if(!this.lastNeed)return p.toString("utf8",x);this.lastTotal=A;var E=p.length-(A-this.lastNeed);return p.copy(this.lastChar,0,E),p.toString("utf8",x,E)}function F(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+"�":x}function R(p,x){if((p.length-x)%2===0){var A=p.toString("utf16le",x);if(A){var E=A.charCodeAt(A.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",x,p.length-1)}function B(p){var x=p&&p.length?this.write(p):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,A)}return x}function C(p,x){var A=(p.length-x)%3;return A===0?p.toString("base64",x):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",x,p.length-A))}function _(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function M(p){return p.toString(this.encoding)}function T(p){return p&&p.length?this.write(p):""}return Xe}var Qe,Wt;function vt(){if(Wt)return Qe;Wt=1;var a=ve().codes.ERR_STREAM_PREMATURE_CLOSE;function n(c){var h=!1;return function(){if(!h){h=!0;for(var i=arguments.length,d=new Array(i),g=0;g0)if(typeof f!="string"&&!r.objectMode&&Object.getPrototypeOf(f)!==l.prototype&&(f=c(f)),O)r.endEmitted?m(s,new p):Q(s,r,f,!0);else if(r.ended)m(s,new M);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!D?(f=r.decoder.write(f),r.objectMode||f.length!==0?Q(s,r,f,!1):se(s,r)):Q(s,r,f,!1)}else O||(r.reading=!1,se(s,r))}return!r.ended&&(r.length=ee?s=ee:(s--,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s++),s}function de(s,f){return s<=0||f.length===0&&f.ended?0:f.objectMode?1:s!==s?f.flowing&&f.length?f.buffer.head.data.length:f.length:(s>f.highWaterMark&&(f.highWaterMark=oe(s)),s<=f.length?s:f.ended?f.length:(f.needReadable=!0,0))}U.prototype.read=function(s){d("read",s),s=parseInt(s,10);var f=this._readableState,D=s;if(s!==0&&(f.emittedReadable=!1),s===0&&f.needReadable&&((f.highWaterMark!==0?f.length>=f.highWaterMark:f.length>0)||f.ended))return d("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?P(this):ie(this),null;if(s=de(s,f),s===0&&f.ended)return f.length===0&&P(this),null;var O=f.needReadable;d("need readable",O),(f.length===0||f.length-s0?V=b(s,f):V=null,V===null?(f.needReadable=f.length<=f.highWaterMark,s=0):(f.length-=s,f.awaitDrain=0),f.length===0&&(f.ended||(f.needReadable=!0),D!==s&&f.ended&&P(this)),V!==null&&this.emit("data",V),V};function xe(s,f){if(d("onEofChunk"),!f.ended){if(f.decoder){var D=f.decoder.end();D&&D.length&&(f.buffer.push(D),f.length+=f.objectMode?1:D.length)}f.ended=!0,f.sync?ie(s):(f.needReadable=!1,f.emittedReadable||(f.emittedReadable=!0,pe(s)))}}function ie(s){var f=s._readableState;d("emitReadable",f.needReadable,f.emittedReadable),f.needReadable=!1,f.emittedReadable||(d("emitReadable",f.flowing),f.emittedReadable=!0,process.nextTick(pe,s))}function pe(s){var f=s._readableState;d("emitReadable_",f.destroyed,f.length,f.ended),!f.destroyed&&(f.length||f.ended)&&(s.emit("readable"),f.emittedReadable=!1),f.needReadable=!f.flowing&&!f.ended&&f.length<=f.highWaterMark,v(s)}function se(s,f){f.readingMore||(f.readingMore=!0,process.nextTick(ye,s,f))}function ye(s,f){for(;!f.reading&&!f.ended&&(f.length1&&j(O.pipes,s)!==-1)&&!w&&(d("false write response, pause",O.awaitDrain),O.awaitDrain++),D.pause())}function W($){d("onerror",$),X(),s.removeListener("error",W),n(s,"error")===0&&m(s,$)}I(s,"error",W);function K(){s.removeListener("finish",z),X()}s.once("close",K);function z(){d("onfinish"),s.removeListener("close",K),X()}s.once("finish",z);function X(){d("unpipe"),D.unpipe(s)}return s.emit("pipe",D),O.flowing||(d("pipe resume"),D.resume()),s};function Y(s){return function(){var D=s._readableState;d("pipeOnDrain",D.awaitDrain),D.awaitDrain&&D.awaitDrain--,D.awaitDrain===0&&n(s,"data")&&(D.flowing=!0,v(s))}}U.prototype.unpipe=function(s){var f=this._readableState,D={hasUnpiped:!1};if(f.pipesCount===0)return this;if(f.pipesCount===1)return s&&s!==f.pipes?this:(s||(s=f.pipes),f.pipes=null,f.pipesCount=0,f.flowing=!1,s&&s.emit("unpipe",this,D),this);if(!s){var O=f.pipes,V=f.pipesCount;f.pipes=null,f.pipesCount=0,f.flowing=!1;for(var r=0;r0,O.flowing!==!1&&this.resume()):s==="readable"&&!O.endEmitted&&!O.readableListening&&(O.readableListening=O.needReadable=!0,O.flowing=!1,O.emittedReadable=!1,d("on readable",O.length,O.reading),O.length?ie(this):O.reading||process.nextTick(re,this)),D},U.prototype.addListener=U.prototype.on,U.prototype.removeListener=function(s,f){var D=o.prototype.removeListener.call(this,s,f);return s==="readable"&&process.nextTick(Z,this),D},U.prototype.removeAllListeners=function(s){var f=o.prototype.removeAllListeners.apply(this,arguments);return(s==="readable"||s===void 0)&&process.nextTick(Z,this),f};function Z(s){var f=s._readableState;f.readableListening=s.listenerCount("readable")>0,f.resumeScheduled&&!f.paused?f.flowing=!0:s.listenerCount("data")>0&&s.resume()}function re(s){d("readable nexttick read 0"),s.read(0)}U.prototype.resume=function(){var s=this._readableState;return s.flowing||(d("resume"),s.flowing=!s.readableListening,me(this,s)),s.paused=!1,this};function me(s,f){f.resumeScheduled||(f.resumeScheduled=!0,process.nextTick(Ee,s,f))}function Ee(s,f){d("resume",f.reading),f.reading||s.read(0),f.resumeScheduled=!1,s.emit("resume"),v(s),f.flowing&&!f.reading&&s.read(0)}U.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function v(s){var f=s._readableState;for(d("flow",f.flowing);f.flowing&&s.read()!==null;);}U.prototype.wrap=function(s){var f=this,D=this._readableState,O=!1;s.on("end",function(){if(d("wrapped end"),D.decoder&&!D.ended){var e=D.decoder.end();e&&e.length&&f.push(e)}f.push(null)}),s.on("data",function(e){if(d("wrapped data"),D.decoder&&(e=D.decoder.write(e)),!(D.objectMode&&e==null)&&!(!D.objectMode&&(!e||!e.length))){var t=f.push(e);t||(O=!0,s.pause())}});for(var V in s)this[V]===void 0&&typeof s[V]=="function"&&(this[V]=(function(t){return function(){return s[t].apply(s,arguments)}})(V));for(var r=0;r=f.length?(f.decoder?D=f.buffer.join(""):f.buffer.length===1?D=f.buffer.first():D=f.buffer.concat(f.length),f.buffer.clear()):D=f.buffer.consume(s,f.decoder),D}function P(s){var f=s._readableState;d("endReadable",f.endEmitted),f.endEmitted||(f.ended=!0,process.nextTick(q,f,s))}function q(s,f){if(d("endReadableNT",s.endEmitted,s.length),!s.endEmitted&&s.length===0&&(s.endEmitted=!0,f.readable=!1,f.emit("end"),s.autoDestroy)){var D=f._writableState;(!D||D.autoDestroy&&D.finished)&&f.destroy()}}typeof Symbol=="function"&&(U.from=function(s,f){return E===void 0&&(E=Hn()),E(U,s,f)});function j(s,f){for(var D=0,O=s.length;D0;return i(x,E,m,function(S){T||(T=S),S&&p.forEach(d),!E&&(p.forEach(d),M(T))})});return C.reduce(g)}return nt=R,nt}var it,Xt;function Kn(){if(Xt)return it;Xt=1,it=o;var a=Ne().EventEmitter,n=be();n(o,a),o.Readable=fr(),o.Writable=ur(),o.Duplex=ge(),o.Transform=lr(),o.PassThrough=jn(),o.finished=vt(),o.pipeline=Wn(),o.Stream=o;function o(){a.call(this)}return o.prototype.pipe=function(l,y){var c=this;function h(C){l.writable&&l.write(C)===!1&&c.pause&&c.pause()}c.on("data",h);function i(){c.readable&&c.resume&&c.resume()}l.on("drain",i),!l._isStdio&&(!y||y.end!==!1)&&(c.on("end",g),c.on("close",F));var d=!1;function g(){d||(d=!0,l.end())}function F(){d||(d=!0,typeof l.destroy=="function"&&l.destroy())}function R(C){if(B(),a.listenerCount(this,"error")===0)throw C}c.on("error",R),l.on("error",R);function B(){c.removeListener("data",h),l.removeListener("drain",i),c.removeListener("end",g),c.removeListener("close",F),c.removeListener("error",R),l.removeListener("error",R),c.removeListener("end",B),c.removeListener("close",B),l.removeListener("close",B)}return c.on("end",B),c.on("close",B),l.on("close",B),l.emit("pipe",c),l},it}var $n=Kn();async function*at(a,n,o){let l=1;const y={chunks:[],length:0};for await(const c of o(a))for(y.chunks.push(c),y.length+=c.byteLength;y.length>n;){const h=y.chunks.length>1?ue.Buffer.concat(y.chunks):y.chunks[0];yield{partNumber:l,data:h.subarray(0,n)},y.chunks=[h.subarray(n)],y.length=y.chunks[0].byteLength,l+=1}yield{partNumber:l,data:y.chunks.length!==1?ue.Buffer.concat(y.chunks):y.chunks[0],lastPart:!0}}async function*Qt(a,n){let o=1,l=0,y=n;for(;y{if(a instanceof Uint8Array)return Qt(a,n);if(a instanceof $n.Readable)return at(a,n,zn);if(a instanceof String||typeof a=="string")return Qt(ue.Buffer.from(a),n);if(typeof a.stream=="function")return at(a.stream(),n,Zt);if(a instanceof ReadableStream)return at(a,n,Zt);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")};class Ae extends qe.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(n){if(super(),this.queueSize=n.queueSize||this.queueSize,this.leavePartsOnError=n.leavePartsOnError||this.leavePartsOnError,this.tags=n.tags||this.tags,this.client=n.client,this.params=n.params,!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");this.totalBytes=this.params.ContentLength??Te(this.params.Body),this.totalBytesSource=kn(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=n.abortController??new Tn,this.partSize=n.partSize||Math.max(Ae.MIN_PART_SIZE,Math.floor((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 new 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(n,o){return this.uploadEvent=n,super.on(n,o)}async __uploadUsingPut(n){this.isMultiPart=!1;const o={...this.params,Body:n.data},l=this.client.config,y=l.requestHandler,c=y instanceof qe.EventEmitter?y:null,h=_=>{this.bytesUploadedSoFar=_.loaded,this.totalBytes=_.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};c!==null&&c.on("xhr.upload.progress",h);const i=await Promise.all([this.client.send(new At(o)),l?.endpoint?.()]),d=i[0];let g=i[1];if(g||(g=Lr(await kr(o,At,{...l}))),!g)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');c!==null&&c.off("xhr.upload.progress",h);const F=this.params.Key.split("/").map(_=>Ct(_)).join("/"),R=Ct(this.params.Bucket),B=(()=>{const _=g.hostname.startsWith(`${R}.`),M=this.client.config.forcePathStyle,T=g.port?`:${g.port}`:"";return M?`${g.protocol}//${g.hostname}${T}/${R}/${F}`:_?`${g.protocol}//${g.hostname}${T}/${F}`:`${g.protocol}//${R}.${g.hostname}${T}/${F}`})();this.singleUploadResult={...d,Bucket:this.params.Bucket,Key:this.params.Key,Location:B};const C=Te(n.data);this.__notifyProgress({loaded:C,total:C,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){const n=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){const o={...this.params,Body:void 0};n==="WHEN_SUPPORTED"&&(o.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Bn.CRC32),this.createMultiPartPromise=this.client.send(new Cn(o)).then(l=>(this.abortMultipartUploadCommand=new yn({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:l.UploadId}),l))}return this.createMultiPartPromise}async __doConcurrentUpload(n){for await(const o of n){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw new 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(o.partNumber===1&&o.lastPart)return await this.__uploadUsingPut(o);if(!this.uploadId){const{UploadId:g}=await this.__createMultipartUpload();if(this.uploadId=g,this.abortController.signal.aborted)return}const l=Te(o.data)||0,y=this.client.config.requestHandler,c=y instanceof qe.EventEmitter?y:null;let h=0;const i=(g,F)=>{(Number(F.query.partNumber)||-1)===o.partNumber&&(g.total&&l&&(this.bytesUploadedSoFar+=g.loaded-h,h=g.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:o.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};c!==null&&c.on("xhr.upload.progress",i),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(o);const d=await this.client.send(new Rn({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:o.data,PartNumber:o.partNumber}));if(c!==null&&c.off("xhr.upload.progress",i),this.abortController.signal.aborted)return;if(!d.ETag)throw new Error(`Part ${o.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:o.partNumber,ETag:d.ETag,...d.ChecksumCRC32&&{ChecksumCRC32:d.ChecksumCRC32},...d.ChecksumCRC32C&&{ChecksumCRC32C:d.ChecksumCRC32C},...d.ChecksumSHA1&&{ChecksumSHA1:d.ChecksumSHA1},...d.ChecksumSHA256&&{ChecksumSHA256:d.ChecksumSHA256}}),c===null&&(this.bytesUploadedSoFar+=l),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:o.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){const n=Vn(this.params.Body,this.partSize),o=[];for(let y=0;y{o.push(h)});this.concurrentUploaders.push(c)}if(await Promise.all(this.concurrentUploaders),o.length>=1)throw await this.markUploadAsAborted(),o[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(new Error("Upload aborted."),{name:"AbortError"});let l;if(this.isMultiPart){const{expectedPartsCount:y,uploadedParts:c,totalBytes:h,totalBytesSource:i}=this;if(h!==void 0&&y!==void 0&&c.length!==y)throw new Error(`Expected ${y} part(s) but uploaded ${c.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 ${h}. If this is not correct, provide an override value by setting a number diff --git a/hive/services/hiveui/frontend/dist/assets/select.js b/hive/services/hiveui/frontend/dist/assets/select.js index ab12822f2..4ff89ddbb 100644 --- a/hive/services/hiveui/frontend/dist/assets/select.js +++ b/hive/services/hiveui/frontend/dist/assets/select.js @@ -1 +1 @@ -import{k as Kt,aI as Et,aJ as Se,aK as tt,aL as De,aM as He,aN as Nt,aO as xn,r as i,aP as $t,aQ as Le,aR as Vt,aS as yn,aT as xe,aU as Rn,aV as qt,aW as Yt,aX as ke,aY as Sn,aZ as wn,a_ as Q,a$ as vn,b0 as pe,b1 as Lt,b2 as kt,b3 as ft,b4 as Ue,b5 as yt,b6 as Dt,b7 as Mn,b8 as Gt,b9 as Tn,ba as In,bb as pt,j as U,bc as Z,bd as Ht,be as Ct,bf as En,bg as Mt,bh as Cn,bi as L,bj as An,bk as gt,bl as Pn,bm as On,bn as Nn,bo as Xt,bp as Vn,bq as Jt,br as Ln,bs as kn,bt as At,bu as Zt,bv as Ne,bw as Dn,bx as Hn,by as Fn,bz as _n,bA as Un,bB as jn,bC as Bn,bD as zn,bE as Wn,bF as Qt,bG as en,bH as Ft,bI as Kn,bJ as $n,bK as qn,bL as Yn,bM as tn,bN as Gn,bO as Rt,c as qe,a as Ye}from"./index.js";import{C as Xn}from"./check.js";import{u as Jn,d as nn,e as rn,f as _t,g as Zn,h as Qn,i as er}from"./field.js";const tr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],on=Kt("chevron-down",tr);const nr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rr=Kt("chevron-up",nr);function lt(t,e,n){return Math.floor(t/e)!==n}function Ze(t,e){return e<0||e>=t.current.length}function St(t,e){return be(t,{disabledIndices:e})}function Ut(t,e){return be(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function be(t,{startingIndex:e=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let o=e;do o+=n?-s:s;while(o>=0&&o<=t.current.length-1&&Qe(t,o,r));return o}function or(t,{event:e,orientation:n,loopFocus:r,rtl:s,cols:o,disabledIndices:l,minIndex:u,maxIndex:f,prevIndex:p,stopEvent:b=!1}){let c=p;const y=[],v={};let T=!1;{let a=null,g=-1;t.current.forEach((m,d)=>{if(m==null)return;const h=m.closest('[role="row"]');h&&(T=!0),(h!==a||g===-1)&&(a=h,g+=1,y[g]=[]),y[g].push(d),v[d]=g})}const x=T&&y.length>0&&y.some(a=>a.length!==o);function w(a){if(!x||p===-1)return;const g=v[p];if(g==null)return;const m=y[g].indexOf(p);let d=a==="up"?g-1:g+1;r&&(d<0?d=y.length-1:d>=y.length&&(d=0));const h=new Set;for(;d>=0&&d=0;D-=1){const ee=$[D];if(!Qe(t,ee,l))return ee}d=a==="up"?d-1:d+1,r&&(d<0?d=y.length-1:d>=y.length&&(d=0))}}if(e.key===Et){const a=w("up");if(a!==void 0)b&&Se(e),c=a;else{if(b&&Se(e),p===-1)c=f;else if(c=be(t,{startingIndex:c,amount:o,decrement:!0,disabledIndices:l}),r&&(p-og?d:d-o}Ze(t,c)&&(c=p)}}if(e.key===tt){const a=w("down");a!==void 0?(b&&Se(e),c=a):(b&&Se(e),p===-1?c=u:(c=be(t,{startingIndex:p,amount:o,disabledIndices:l}),r&&p+o>f&&(c=be(t,{startingIndex:p%o-o,amount:o,disabledIndices:l}))),Ze(t,c)&&(c=p))}if(n==="both"){const a=Nt(p/o);e.key===(s?De:He)&&(b&&Se(e),p%o!==o-1?(c=be(t,{startingIndex:p,disabledIndices:l}),r&<(c,o,a)&&(c=be(t,{startingIndex:p-p%o-1,disabledIndices:l}))):r&&(c=be(t,{startingIndex:p-p%o-1,disabledIndices:l})),lt(c,o,a)&&(c=p)),e.key===(s?He:De)&&(b&&Se(e),p%o!==0?(c=be(t,{startingIndex:p,decrement:!0,disabledIndices:l}),r&<(c,o,a)&&(c=be(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:l}))):r&&(c=be(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:l})),lt(c,o,a)&&(c=p));const g=Nt(f/o)===a;Ze(t,c)&&(r&&g?c=e.key===(s?He:De)?f:be(t,{startingIndex:p-p%o-1,disabledIndices:l}):c=p)}return c}function sr(t,e,n){const r=[];let s=0;return t.forEach(({width:o,height:l},u)=>{let f=!1;for(;!f;){const p=[];for(let b=0;br[b]==null)?(p.forEach(b=>{r[b]=u}),f=!0):s+=1}}),[...r]}function ir(t,e,n,r,s){if(t===-1)return-1;const o=n.indexOf(t),l=e[t];switch(s){case"tl":return o;case"tr":return l?o+l.width-1:o;case"bl":return l?o+(l.height-1)*r:o;case"br":return n.lastIndexOf(t);default:return-1}}function lr(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}function Qe(t,e,n){if(typeof n=="function")return n(e);if(n)return n.includes(e);const r=t.current[e];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}function cr(t,e={}){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,{enabled:s=!0,event:o="click",toggle:l=!0,ignoreMouse:u=!1,stickIfOpen:f=!0,touchOpenDelay:p=0,reason:b=xn}=e,c=i.useRef(void 0),y=$t(),v=Le(),T=i.useMemo(()=>({onPointerDown(x){c.current=x.pointerType},onMouseDown(x){const w=c.current,a=x.nativeEvent,g=n.select("open");if(x.button!==0||o==="click"||Vt(w,!0)&&u)return;const m=r.current.openEvent,d=m?.type,h=n.select("domReferenceElement")!==x.currentTarget,$=g&&h||!(g&&l&&(!(m&&f)||d==="click"||d==="mousedown"));if(Rn(a.target)){const D=xe(b,a,a.target);$&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen($,D);return}const F=x.currentTarget;y.request(()=>{const D=xe(b,a,F);$&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen($,D)})},onClick(x){if(o==="mousedown-only")return;const w=c.current;if(o==="mousedown"&&w){c.current=void 0;return}if(Vt(w,!0)&&u)return;const a=n.select("open"),g=r.current.openEvent,m=n.select("domReferenceElement")!==x.currentTarget,d=a&&m||!(a&&l&&(!(g&&f)||yn(g))),h=xe(b,x.nativeEvent,x.currentTarget);d&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,h)}):n.setOpen(d,h)},onKeyDown(){c.current=void 0}}),[r,o,u,n,f,l,y,v,p,b]);return i.useMemo(()=>s?{reference:T}:qt,[s,T])}const ar="Escape";function mt(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function ct(t,e){return mt(e,t===Et||t===tt,t===De||t===He)}function wt(t,e,n){return mt(e,t===tt,n?t===De:t===He)||t==="Enter"||t===" "||t===""}function ur(t,e,n){return mt(e,n?t===De:t===He,t===tt)}function fr(t,e,n,r){const s=n?t===He:t===De,o=t===Et;return e==="both"||e==="horizontal"&&r&&r>1?t===ar:mt(e,s,o)}function dr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.useState("open"),s=n.useState("floatingElement"),o=n.useState("domReferenceElement"),l=n.context.dataRef,{listRef:u,activeIndex:f,onNavigate:p=()=>{},enabled:b=!0,selectedIndex:c=null,allowEscape:y=!1,loopFocus:v=!1,nested:T=!1,rtl:x=!1,virtual:w=!1,focusItemOnOpen:a="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:m=!0,disabledIndices:d=void 0,orientation:h="vertical",parentOrientation:$,cols:F=1,id:D,resetOnPointerLeave:ee=!0,externalTree:ce}=e,J=Yt(s),B=ke(J),ne=Sn(),A=wn(ce);Q(()=>{l.current.orientation=h},[l,h]);const se=vn(o),q=i.useRef(a),E=i.useRef(c??-1),z=i.useRef(null),S=i.useRef(!0),C=pe(M=>{p(E.current===-1?null:E.current,M)}),te=i.useRef(C),I=i.useRef(!!s),Y=i.useRef(r),k=i.useRef(!1),ae=i.useRef(!1),O=ke(d),K=ke(r),oe=ke(c),ve=ke(ee),Te=pe(()=>{function M(W){w?A?.events.emit("virtualfocus",W):Lt(W,{sync:k.current,preventScroll:!0})}const V=u.current[E.current],R=ae.current;V&&M(V),(k.current?W=>W():requestAnimationFrame)(()=>{const W=u.current[E.current]||V;if(!W)return;V||M(W),G&&(R||!S.current)&&W.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Q(()=>{b&&(r&&s?(E.current=c??-1,q.current&&c!=null&&(ae.current=!0,C())):I.current&&(E.current=-1,te.current()))},[b,r,s,c,C]),Q(()=>{if(b){if(!r){k.current=!1;return}if(s)if(f==null){if(k.current=!1,oe.current!=null)return;if(I.current&&(E.current=-1,Te()),(!Y.current||!I.current)&&q.current&&(z.current!=null||q.current===!0&&z.current==null)){let M=0;const V=()=>{u.current[0]==null?(M<2&&(M?requestAnimationFrame:queueMicrotask)(V),M+=1):(E.current=z.current==null||wt(z.current,h,x)||T?St(u):Ut(u),z.current=null,C())};V()}}else Ze(u,f)||(E.current=f,Te(),ae.current=!1)}},[b,r,s,f,oe,T,u,h,x,C,Te,O]),Q(()=>{if(!b||s||!A||w||!I.current)return;const M=A.nodesRef.current,V=M.find(W=>W.id===ne)?.context?.elements.floating,R=kt(ft(s)),_=M.some(W=>W.context&&Ue(W.context.elements.floating,R));V&&!_&&S.current&&V.focus({preventScroll:!0})},[b,s,A,ne,w]),Q(()=>{te.current=C,Y.current=r,I.current=!!s}),Q(()=>{r||(z.current=null,q.current=a)},[r,a]);const j=f!=null,G=i.useMemo(()=>{function M(R){if(!K.current)return;const _=u.current.indexOf(R.currentTarget);_!==-1&&E.current!==_&&(E.current=_,C(R))}return{onFocus(R){k.current=!0,M(R)},onClick:({currentTarget:R})=>R.focus({preventScroll:!0}),onMouseMove(R){k.current=!0,ae.current=!1,g&&M(R)},onPointerLeave(R){if(!K.current||!S.current||R.pointerType==="touch")return;k.current=!0;const _=R.relatedTarget;!g||u.current.includes(_)||ve.current&&(Lt(null,{sync:!0}),E.current=-1,C(R),w||B.current?.focus({preventScroll:!0}))}}},[K,B,g,u,C,ve,w]),ue=i.useCallback(()=>$??A?.nodesRef.current.find(M=>M.id===ne)?.context?.dataRef?.current.orientation,[ne,A,$]),ie=pe(M=>{if(S.current=!1,k.current=!0,M.which===229||!K.current&&M.currentTarget===B.current)return;if(T&&fr(M.key,h,x,F)){ct(M.key,ue())||Se(M),n.setOpen(!1,xe(yt,M.nativeEvent)),Dt(o)&&(w?A?.events.emit("virtualfocus",o):o.focus());return}const V=E.current,R=St(u,d),_=Ut(u,d);if(se||(M.key==="Home"&&(Se(M),E.current=R,C(M)),M.key==="End"&&(Se(M),E.current=_,C(M))),F>1){const W=Array.from({length:u.current.length},()=>({width:1,height:1})),N=sr(W,F),me=N.findIndex(Re=>Re!=null&&!Qe(u,Re,d)),we=N.reduce((Re,re,he)=>re!=null&&!Qe(u,re,d)?he:Re,-1),Ce=N[or({current:N.map(Re=>Re!=null?u.current[Re]:null)},{event:M,orientation:h,loopFocus:v,rtl:x,cols:F,disabledIndices:lr([...(typeof d!="function"?d:null)||u.current.map((Re,re)=>Qe(u,re,d)?re:void 0),void 0],N),minIndex:me,maxIndex:we,prevIndex:ir(E.current>_?R:E.current,W,N,F,M.key===tt?"bl":M.key===(x?De:He)?"tr":"tl"),stopEvent:!0})];if(Ce!=null&&(E.current=Ce,C(M)),h==="both")return}if(ct(M.key,h)){if(Se(M),r&&!w&&kt(M.currentTarget.ownerDocument)===M.currentTarget){E.current=wt(M.key,h,x)?R:_,C(M);return}wt(M.key,h,x)?v?V>=_?y&&V!==u.current.length?E.current=-1:(k.current=!1,E.current=R):E.current=be(u,{startingIndex:V,disabledIndices:d}):E.current=Math.min(_,be(u,{startingIndex:V,disabledIndices:d})):v?V<=R?y&&V!==-1?E.current=u.current.length:(k.current=!1,E.current=_):E.current=be(u,{startingIndex:V,decrement:!0,disabledIndices:d}):E.current=Math.max(R,be(u,{startingIndex:V,decrement:!0,disabledIndices:d})),Ze(u,E.current)&&(E.current=-1),C(M)}}),fe=i.useMemo(()=>w&&r&&j&&{"aria-activedescendant":`${D}-${f}`},[w,r,j,D,f]),ye=i.useMemo(()=>({"aria-orientation":h==="both"?void 0:h,...se?{}:fe,onKeyDown(M){if(M.key==="Tab"&&M.shiftKey&&r&&!w){const V=Mn(M.nativeEvent);if(V&&!Ue(B.current,V))return;Se(M),n.setOpen(!1,xe(Gt,M.nativeEvent)),Dt(o)&&o.focus();return}ie(M)},onPointerMove(){S.current=!0}}),[fe,ie,B,h,se,n,r,w,o]),X=i.useMemo(()=>{function M(R){a==="auto"&&Tn(R.nativeEvent)&&(q.current=!w)}function V(R){q.current=a,a==="auto"&&In(R.nativeEvent)&&(q.current=!0)}return{onKeyDown(R){const _=n.select("open");S.current=!1;const W=R.key.startsWith("Arrow"),N=ur(R.key,ue(),x),me=ct(R.key,h),we=(T?N:me)||R.key==="Enter"||R.key.trim()==="";if(w&&_)return ie(R);if(!(!_&&!m&&W)){if(we){const Ce=ct(R.key,ue());z.current=T&&Ce?null:R.key}if(T){N&&(Se(R),_?(E.current=St(u,O.current),C(R)):n.setOpen(!0,xe(yt,R.nativeEvent,R.currentTarget)));return}me&&(oe.current!=null&&(E.current=oe.current),Se(R),!_&&m?n.setOpen(!0,xe(yt,R.nativeEvent,R.currentTarget)):ie(R),_&&C(R))}},onFocus(R){n.select("open")&&!w&&(E.current=-1,C(R))},onPointerDown:V,onPointerEnter:V,onMouseDown:M,onClick:M}},[ie,O,a,u,T,C,n,m,h,ue,x,oe,w]),de=i.useMemo(()=>({...fe,...X}),[fe,X]);return i.useMemo(()=>b?{reference:de,floating:ye,item:G,trigger:X}:{},[b,de,ye,X,G])}function pr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,s=n.useState("open"),{listRef:o,activeIndex:l,onMatch:u,onTypingChange:f,enabled:p=!0,resetMs:b=750,selectedIndex:c=null}=e,y=Le(),v=i.useRef(""),T=i.useRef(c??l??-1),x=i.useRef(null);Q(()=>{!s&&c!==null||(y.clear(),x.current=null,v.current!==""&&(v.current=""))},[s,c,y]),Q(()=>{s&&v.current===""&&(T.current=c??l??-1)},[s,c,l]);const w=pe(h=>{h?r.current.typing||(r.current.typing=h,f?.(h)):r.current.typing&&(r.current.typing=h,f?.(h))}),a=pe(h=>{function $(B,ne,A){const se=ne.find(q=>q?.toLocaleLowerCase().indexOf(A.toLocaleLowerCase())===0);return se?B.indexOf(se):-1}const F=o.current;if(v.current.length>0&&v.current[0]!==" "&&($(F,F,v.current)===-1?w(!1):h.key===" "&&Se(h)),F==null||h.key.length!==1||h.ctrlKey||h.metaKey||h.altKey)return;s&&h.key!==" "&&(Se(h),w(!0));const D=v.current==="";D&&(T.current=c??l??-1),F.every(B=>B?B[0]?.toLocaleLowerCase()!==B[1]?.toLocaleLowerCase():!0)&&v.current===h.key&&(v.current="",T.current=x.current),v.current+=h.key,y.start(b,()=>{v.current="",T.current=x.current,w(!1)});const ce=D?c??l??-1:T.current,J=$(F,[...F.slice((ce||0)+1),...F.slice(0,(ce||0)+1)],v.current);J!==-1?(u?.(J),x.current=J):h.key!==" "&&(v.current="",w(!1))}),g=pe(h=>{const $=h.relatedTarget,F=n.select("domReferenceElement"),D=n.select("floatingElement"),ee=Ue(F,$),ce=Ue(D,$);ee||ce||(y.clear(),v.current="",T.current=x.current,w(!1))}),m=i.useMemo(()=>({onKeyDown:a,onBlur:g}),[a,g]),d=i.useMemo(()=>({onKeyDown:a,onKeyUp(h){h.key===" "&&w(!1)},onBlur:g}),[a,g,w]);return i.useMemo(()=>p?{reference:m,floating:d}:{},[p,m,d])}const sn=i.createContext(null),ln=i.createContext(null);function Ve(){const t=i.useContext(sn);if(t===null)throw new Error(pt(60));return t}function cn(){const t=i.useContext(ln);if(t===null)throw new Error(pt(61));return t}const gr=(t,e)=>Object.is(t,e);function $e(t,e,n){return t==null||e==null?Object.is(t,e):n(t,e)}function mr(t,e,n){return!t||t.length===0?!1:t.some(r=>r===void 0?!1:$e(e,r,n))}function et(t,e,n){return!t||t.length===0?-1:t.findIndex(r=>r===void 0?!1:$e(r,e,n))}function hr(t,e,n){return t.filter(r=>!$e(e,r,n))}function Tt(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}function an(t){return t!=null&&t.length>0&&typeof t[0]=="object"&&t[0]!=null&&"items"in t[0]}function br(t){if(!Array.isArray(t))return t!=null&&!("null"in t);if(an(t)){for(const e of t)for(const n of e.items)if(n&&n.value==null&&n.label!=null)return!0;return!1}for(const e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function xr(t,e){if(e&&t!=null)return e(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return Tt(t)}function Ke(t,e){return e&&t!=null?e(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?Tt(t.value):Tt(t)}function un(t,e,n){function r(){return xr(t,n)}if(n&&t!=null)return n(t);if(t&&typeof t=="object"&&"label"in t&&t.label!=null)return t.label;if(e&&!Array.isArray(e))return e[t]??r();if(Array.isArray(e)){const s=an(e)?e.flatMap(o=>o.items):e;if(t==null||typeof t!="object"){const o=s.find(l=>l.value===t);return o&&o.label!=null?o.label:r()}if("value"in t){const o=s.find(l=>l&&l.value===t.value);if(o&&o.label!=null)return o.label}}return r()}function yr(t,e,n){return t.reduce((r,s,o)=>(o>0&&r.push(", "),r.push(U.jsx(i.Fragment,{children:un(s,e,n)},o)),r),[])}const P={id:Z(t=>t.id),modal:Z(t=>t.modal),multiple:Z(t=>t.multiple),items:Z(t=>t.items),itemToStringLabel:Z(t=>t.itemToStringLabel),itemToStringValue:Z(t=>t.itemToStringValue),isItemEqualToValue:Z(t=>t.isItemEqualToValue),value:Z(t=>t.value),hasSelectedValue:Z(t=>{const{value:e,multiple:n,itemToStringValue:r}=t;return e==null?!1:n&&Array.isArray(e)?e.length>0:Ke(e,r)!==""}),hasNullItemLabel:Z((t,e)=>e?br(t.items):!1),open:Z(t=>t.open),mounted:Z(t=>t.mounted),forceMount:Z(t=>t.forceMount),transitionStatus:Z(t=>t.transitionStatus),openMethod:Z(t=>t.openMethod),activeIndex:Z(t=>t.activeIndex),selectedIndex:Z(t=>t.selectedIndex),isActive:Z((t,e)=>t.activeIndex===e),isSelected:Z((t,e,n)=>{const r=t.isItemEqualToValue,s=t.value;return t.multiple?Array.isArray(s)&&s.some(o=>$e(n,o,r)):t.selectedIndex===e&&t.selectedIndex!==null?!0:$e(n,s,r)}),isSelectedByFocus:Z((t,e)=>t.selectedIndex===e),popupProps:Z(t=>t.popupProps),triggerProps:Z(t=>t.triggerProps),triggerElement:Z(t=>t.triggerElement),positionerElement:Z(t=>t.positionerElement),listElement:Z(t=>t.listElement),scrollUpArrowVisible:Z(t=>t.scrollUpArrowVisible),scrollDownArrowVisible:Z(t=>t.scrollDownArrowVisible),hasScrollArrows:Z(t=>t.hasScrollArrows)};function Rr(t,e){const n=i.useRef(t),r=pe(e);Q(()=>{n.current!==t&&r(n.current)},[t,r]),Q(()=>{n.current=t},[t])}function Sr(t){const{id:e,value:n,defaultValue:r=null,onValueChange:s,open:o,defaultOpen:l=!1,onOpenChange:u,name:f,autoComplete:p,disabled:b=!1,readOnly:c=!1,required:y=!1,modal:v=!0,actionsRef:T,inputRef:x,onOpenChangeComplete:w,items:a,multiple:g=!1,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h=gr,highlightItemOnHover:$=!0,children:F}=t,{clearErrors:D}=Jn(),{setDirty:ee,setTouched:ce,setFocused:J,shouldValidateOnChange:B,validityData:ne,setFilled:A,name:se,disabled:q,validation:E,validationMode:z}=nn(),S=rn({id:e}),C=q||b,te=se??f,[I,Y]=_t({controlled:n,default:g?r??Ht:r,name:"Select",state:"value"}),[k,ae]=_t({controlled:o,default:l,name:"Select",state:"open"}),O=i.useRef([]),K=i.useRef([]),oe=i.useRef(null),ve=i.useRef(null),Te=i.useRef(0),j=i.useRef(null),G=i.useRef([]),ue=i.useRef(!1),ie=i.useRef(!1),fe=i.useRef(null),ye=i.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),X=i.useRef(!1),{mounted:de,setMounted:M,transitionStatus:V}=Ct(k),{openMethod:R,triggerProps:_,reset:W}=En(k),N=Mt(()=>new Cn({id:S,modal:v,multiple:g,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h,value:I,open:k,mounted:de,transitionStatus:V,items:a,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,me=L(N,P.activeIndex),we=L(N,P.selectedIndex),Ce=L(N,P.triggerElement),Re=L(N,P.positionerElement),re=i.useMemo(()=>g&&Array.isArray(I)&&I.length===0?"":Ke(I,d),[g,I,d]),he=i.useMemo(()=>g&&Array.isArray(I)?I.map(H=>Ke(H,d)):Ke(I,d),[g,I,d]),ge=ke(N.state.triggerElement);Zn({id:S,commit:E.commit,value:I,controlRef:ge,name:te,getValue:()=>he});const je=i.useRef(I);Q(()=>{I!==je.current&&N.set("forceMount",!0)},[N,I]),Q(()=>{A(g?Array.isArray(I)&&I.length>0:I!=null)},[g,I,A]),Q(function(){if(k)return;const le=G.current;if(g){const Ee=Array.isArray(I)?I:[];if(Ee.length===0){N.set("selectedIndex",null);return}const Me=Ee[Ee.length-1],it=et(le,Me,h);N.set("selectedIndex",it===-1?null:it);return}const Ie=et(le,I,h);N.set("selectedIndex",Ie===-1?null:Ie)},[g,k,I,G,h,N]),Rr(I,()=>{D(te),ee(I!==ne.initialValue),B()?E.commit(I):E.commit(I,!0)});const Ge=pe((H,le)=>{if(u?.(H,le),!le.isCanceled&&(ae(H),!H&&(le.reason===Gt||le.reason===An)&&(ce(!0),J(!1),z==="onBlur"&&E.commit(I)),!H&&N.state.activeIndex!==null)){const Ie=O.current[N.state.activeIndex];queueMicrotask(()=>{Ie?.setAttribute("tabindex","-1")})}}),Be=pe(()=>{M(!1),N.set("activeIndex",null),W(),w?.(!1)});gt({enabled:!T,open:k,ref:oe,onComplete(){k||Be()}}),i.useImperativeHandle(T,()=>({unmount:Be}),[Be]);const Fe=pe((H,le)=>{s?.(H,le),!le.isCanceled&&Y(H)}),Ae=pe(()=>{const H=N.state.listElement||oe.current;if(!H)return;const le=H.scrollTop,Ie=H.scrollTop+H.clientHeight,Ee=le>1,Me=IeXt(ze(),_,S?{id:S}:qt),[ze,_,S]);Vn(()=>{N.update({popupProps:We(),triggerProps:Je})}),Q(()=>{N.update({id:S,modal:v,multiple:g,value:I,open:k,mounted:de,transitionStatus:V,popupProps:We(),triggerProps:Je,items:a,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h,openMethod:R})},[N,S,v,g,I,k,de,V,We,Je,a,m,d,h,R]);const ot=i.useMemo(()=>({store:N,name:te,required:y,disabled:C,readOnly:c,multiple:g,itemToStringLabel:m,itemToStringValue:d,highlightItemOnHover:$,setValue:Fe,setOpen:Ge,listRef:O,popupRef:oe,scrollHandlerRef:ve,handleScrollArrowVisibility:Ae,scrollArrowsMountedCountRef:Te,getItemProps:rt,events:Pe.context.events,valueRef:j,valuesRef:G,labelsRef:K,typingRef:ue,selectionRef:ye,selectedItemTextRef:fe,validation:E,onOpenChangeComplete:w,keyboardActiveRef:ie,alignItemWithTriggerActiveRef:X,initialValueRef:je}),[N,te,y,C,c,g,m,d,$,Fe,Ge,rt,Pe.context.events,E,w,Ae]),st=Jt(x,E.inputRef),bt=g&&Array.isArray(I)&&I.length>0,xt=i.useMemo(()=>!g||!Array.isArray(I)||!te?null:I.map(H=>{const le=Ke(H,d);return U.jsx("input",{type:"hidden",name:te,value:le},le)}),[g,I,te,d]);return U.jsx(sn.Provider,{value:ot,children:U.jsxs(ln.Provider,{value:Pe,children:[F,U.jsx("input",{...E.getInputValidationProps({onFocus(){N.state.triggerElement?.focus({focusVisible:!0})},onChange(H){if(H.nativeEvent.defaultPrevented)return;const le=H.target.value,Ie=xe(At,H.nativeEvent);function Ee(){if(g)return;const Me=G.current.find(it=>Ke(it,d).toLowerCase()===le.toLowerCase());Me!=null&&(ee(Me!==ne.initialValue),Fe(Me,Ie),B()&&E.commit(Me))}N.set("forceMount",!0),queueMicrotask(Ee)}}),name:g?void 0:te,autoComplete:p,value:re,disabled:C,required:y&&!bt,readOnly:c,ref:st,style:te?Ln:kn,tabIndex:-1,"aria-hidden":!0}),xt]})})}function wr(t){const e=t.getBoundingClientRect(),n=window.getComputedStyle(t,"::before"),r=window.getComputedStyle(t,"::after");if(!(n.content!=="none"||r.content!=="none"))return e;const o=parseFloat(n.width)||0,l=parseFloat(n.height)||0,u=parseFloat(r.width)||0,f=parseFloat(r.height)||0,p=Math.max(e.width,o,u),b=Math.max(e.height,l,f),c=p-e.width,y=b-e.height;return{left:e.left-c/2,right:e.right+c/2,top:e.top-y/2,bottom:e.bottom+y/2}}const at=2,vr=400,jt=200,Mr={...Dn,...er,value:()=>null},Tr=i.forwardRef(function(e,n){const{render:r,className:s,id:o,disabled:l=!1,nativeButton:u=!0,...f}=e,{setTouched:p,setFocused:b,validationMode:c,state:y,disabled:v}=nn(),{labelId:T}=Qn(),{store:x,setOpen:w,selectionRef:a,validation:g,readOnly:m,required:d,alignItemWithTriggerActiveRef:h,disabled:$,keyboardActiveRef:F}=Ve(),D=v||$||l,ee=L(x,P.open),ce=L(x,P.value),J=L(x,P.triggerProps),B=L(x,P.positionerElement),ne=L(x,P.listElement),A=L(x,P.id),se=L(x,P.hasSelectedValue),q=!se&&ee,E=L(x,P.hasNullItemLabel,q),z=o??A;rn({id:z});const S=ke(B),C=i.useRef(null),{getButtonProps:te,buttonRef:I}=Zt({disabled:D,native:u}),Y=pe(G=>{x.set("triggerElement",G)}),k=Jt(n,C,I,Y),ae=Le(),O=Le(),K=Le(),oe=Le();i.useEffect(()=>{if(ee)return!(se||E)?K.start(vr,()=>{a.current.allowUnselectedMouseUp=!0,a.current.allowSelectedMouseUp=!0}):oe.start(jt,()=>{a.current.allowUnselectedMouseUp=!0,K.start(jt,()=>{a.current.allowSelectedMouseUp=!0})}),()=>{K.clear(),oe.clear()};a.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},O.clear()},[ee,se,E,a,O,K,oe]);const ve=i.useMemo(()=>ne?.id??Yt(B)?.id,[ne,B]),Te=Xt(J,{id:z,role:"combobox","aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-controls":ee?ve:void 0,"aria-labelledby":T,"aria-readonly":m||void 0,"aria-required":d||void 0,tabIndex:D?-1:0,ref:k,onFocus(G){b(!0),ee&&h.current&&w(!1,xe(At,G.nativeEvent)),ae.start(0,()=>{x.set("forceMount",!0)})},onBlur(G){Ue(B,G.relatedTarget)||(p(!0),b(!1),c==="onBlur"&&g.commit(ce))},onPointerMove(){F.current=!1},onKeyDown(){F.current=!0},onMouseDown(G){if(ee)return;const ue=ft(G.currentTarget);function ie(fe){if(!C.current)return;const ye=fe.target;if(Ue(C.current,ye)||Ue(S.current,ye)||ye===C.current)return;const X=wr(C.current);fe.clientX>=X.left-at&&fe.clientX<=X.right+at&&fe.clientY>=X.top-at&&fe.clientY<=X.bottom+at||w(!1,xe(Hn,fe))}O.start(0,()=>{ue.addEventListener("mouseup",ie,{once:!0})})}},g.getValidationProps,f,te);Te.role="combobox";const j={...y,open:ee,disabled:D,value:ce,readOnly:m,placeholder:!se};return Ne("button",e,{ref:[n,C],state:j,stateAttributesMapping:Mr,props:Te})}),Ir={value:()=>null},Er=i.forwardRef(function(e,n){const{className:r,render:s,children:o,placeholder:l,...u}=e,{store:f,valueRef:p}=Ve(),b=L(f,P.value),c=L(f,P.items),y=L(f,P.itemToStringLabel),v=L(f,P.hasSelectedValue),T=!v&&l!=null&&o==null,x=L(f,P.hasNullItemLabel,T),w={value:b,placeholder:!v};let a=null;return typeof o=="function"?a=o(b):o!=null?a=o:!v&&l!=null&&!x?a=l:Array.isArray(b)?a=yr(b,c,y):a=un(b,c,y),Ne("span",e,{state:w,ref:[n,p],props:[{children:a},u],stateAttributesMapping:Ir})}),Cr=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:l}=Ve(),f={open:L(l,P.open)};return Ne("span",e,{state:f,ref:n,props:[{"aria-hidden":!0,children:"▼"},o],stateAttributesMapping:Fn})}),Ar=i.createContext(void 0),Pr=i.forwardRef(function(e,n){const{store:r}=Ve(),s=L(r,P.mounted),o=L(r,P.forceMount);return s||o?U.jsx(Ar.Provider,{value:!0,children:U.jsx(_n,{ref:n,...e})}):null}),fn=i.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Or(){return i.useContext(fn)}function Nr(t){const{children:e,elementsRef:n,labelsRef:r,onMapChange:s}=t,o=pe(s),l=i.useRef(0),u=Mt(Lr).current,f=Mt(Vr).current,[p,b]=i.useState(0),c=i.useRef(p),y=pe((a,g)=>{f.set(a,g??null),c.current+=1,b(c.current)}),v=pe(a=>{f.delete(a),c.current+=1,b(c.current)}),T=i.useMemo(()=>{const a=new Map;return Array.from(f.keys()).filter(m=>m.isConnected).sort(kr).forEach((m,d)=>{const h=f.get(m)??{};a.set(m,{...h,index:d})}),a},[f,p]);Q(()=>{if(typeof MutationObserver!="function"||T.size===0)return;const a=new MutationObserver(g=>{const m=new Set,d=h=>m.has(h)?m.delete(h):m.add(h);g.forEach(h=>{h.removedNodes.forEach(d),h.addedNodes.forEach(d)}),m.size===0&&(c.current+=1,b(c.current))});return T.forEach((g,m)=>{m.parentElement&&a.observe(m.parentElement,{childList:!0})}),()=>{a.disconnect()}},[T]),Q(()=>{c.current===p&&(n.current.length!==T.size&&(n.current.length=T.size),r&&r.current.length!==T.size&&(r.current.length=T.size),l.current=T.size),o(T)},[o,T,n,r,p]),Q(()=>()=>{n.current=[]},[n]),Q(()=>()=>{r&&(r.current=[])},[r]);const x=pe(a=>(u.add(a),()=>{u.delete(a)}));Q(()=>{u.forEach(a=>a(T))},[u,T]);const w=i.useMemo(()=>({register:y,unregister:v,subscribeMapChange:x,elementsRef:n,labelsRef:r,nextIndexRef:l}),[y,v,x,n,r,l]);return U.jsx(fn.Provider,{value:w,children:e})}function Vr(){return new Map}function Lr(){return new Set}function kr(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const dn=i.createContext(void 0);function Pt(){const t=i.useContext(dn);if(!t)throw new Error(pt(59));return t}function dt(t,e){t&&Object.assign(t.style,e)}const pn={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},Dr={position:"fixed"},Hr=i.forwardRef(function(e,n){const{anchor:r,positionMethod:s="absolute",className:o,render:l,side:u="bottom",align:f="center",sideOffset:p=0,alignOffset:b=0,collisionBoundary:c="clipping-ancestors",collisionPadding:y,arrowPadding:v=5,sticky:T=!1,disableAnchorTracking:x,alignItemWithTrigger:w=!0,collisionAvoidance:a=Un,...g}=e,{store:m,listRef:d,labelsRef:h,alignItemWithTriggerActiveRef:$,selectedItemTextRef:F,valuesRef:D,initialValueRef:ee,popupRef:ce,setValue:J}=Ve(),B=cn(),ne=L(m,P.open),A=L(m,P.mounted),se=L(m,P.modal),q=L(m,P.value),E=L(m,P.openMethod),z=L(m,P.positionerElement),S=L(m,P.triggerElement),C=L(m,P.isItemEqualToValue),te=L(m,P.transitionStatus),I=i.useRef(null),Y=i.useRef(null),[k,ae]=i.useState(w),O=A&&k&&E!=="touch";!A&&k!==w&&ae(w),Q(()=>{A||(P.scrollUpArrowVisible(m.state)&&m.set("scrollUpArrowVisible",!1),P.scrollDownArrowVisible(m.state)&&m.set("scrollDownArrowVisible",!1))},[m,A]),i.useImperativeHandle($,()=>O),jn((O||se)&&ne&&E!=="touch",S);const K=Bn({anchor:r,floatingRootContext:B,positionMethod:s,mounted:A,side:u,sideOffset:p,align:f,alignOffset:b,arrowPadding:v,collisionBoundary:c,collisionPadding:y,sticky:T,disableAnchorTracking:x??O,collisionAvoidance:a,keepMounted:!0}),oe=O?"none":K.side,ve=O?Dr:K.positionerStyles,Te=i.useMemo(()=>{const X={};return ne||(X.pointerEvents="none"),{role:"presentation",hidden:!A,style:{...ve,...X}}},[ne,A,ve]),j={open:ne,side:oe,align:K.align,anchorHidden:K.anchorHidden},G=pe(X=>{m.set("positionerElement",X)}),ue=Ne("div",e,{ref:[n,G],state:j,stateAttributesMapping:Qt,props:[Te,en(te),g]}),ie=i.useRef(0),fe=pe(X=>{if(X.size===0&&ie.current===0||D.current.length===0)return;const de=ie.current;if(ie.current=X.size,X.size===de)return;const M=xe(At);if(de!==0&&!m.state.multiple&&q!==null&&et(D.current,q,C)===-1){const R=ee.current,W=R!=null&&et(D.current,R,C)!==-1?R:null;J(W,M),W===null&&(m.set("selectedIndex",null),F.current=null)}if(de!==0&&m.state.multiple&&Array.isArray(q)){const V=_=>et(D.current,_,C)!==-1,R=q.filter(_=>V(_));(R.length!==q.length||R.some(_=>!mr(q,_,C)))&&(J(R,M),R.length===0&&(m.set("selectedIndex",null),F.current=null))}if(ne&&O){m.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const V={height:""};dt(z,V),dt(ce.current,V)}}),ye=i.useMemo(()=>({...K,side:oe,alignItemWithTriggerActive:O,setControlledAlignItemWithTrigger:ae,scrollUpArrowRef:I,scrollDownArrowRef:Y}),[K,oe,O,ae]);return U.jsx(Nr,{elementsRef:d,labelsRef:h,onMapChange:fe,children:U.jsxs(dn.Provider,{value:ye,children:[A&&se&&U.jsx(zn,{inert:Wn(!ne),cutout:S}),ue]})})});function gn(t){const e=t.currentTarget.getBoundingClientRect();return e.top+1<=t.clientY&&t.clientY<=e.bottom-1&&e.left+1<=t.clientX&&t.clientX<=e.right-1}const ut="base-ui-disable-scrollbar",It={className:ut,getElement(t){return U.jsx("style",{nonce:t,href:ut,precedence:"base-ui:low",children:`.${ut}{scrollbar-width:none}.${ut}::-webkit-scrollbar{display:none}`})}},Fr=i.createContext(void 0);function _r(t){return i.useContext(Fr)}function vt(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}const Ur=i.createContext(void 0),jr={disableStyleElements:!1};function Br(){return i.useContext(Ur)??jr}const _e=1,zr={...Qt,...tn},Wr=i.forwardRef(function(e,n){const{render:r,className:s,finalFocus:o,...l}=e,{store:u,popupRef:f,onOpenChangeComplete:p,setOpen:b,valueRef:c,selectedItemTextRef:y,keyboardActiveRef:v,multiple:T,handleScrollArrowVisibility:x,scrollHandlerRef:w,highlightItemOnHover:a}=Ve(),{side:g,align:m,alignItemWithTriggerActive:d,setControlledAlignItemWithTrigger:h,scrollDownArrowRef:$,scrollUpArrowRef:F}=Pt(),D=_r()!=null,ee=cn(),{nonce:ce,disableStyleElements:J}=Br(),B=Le(),ne=L(u,P.id),A=L(u,P.open),se=L(u,P.mounted),q=L(u,P.popupProps),E=L(u,P.transitionStatus),z=L(u,P.triggerElement),S=L(u,P.positionerElement),C=L(u,P.listElement),te=i.useRef(0),I=i.useRef(!1),Y=i.useRef(0),k=i.useRef(!1),ae=i.useRef({}),O=$t(),K=pe(j=>{if(!S||!f.current||!k.current)return;if(I.current||!d){x();return}const G=S.style.top==="0px",ue=S.style.bottom==="0px",ie=S.getBoundingClientRect().height,fe=ft(S),ye=getComputedStyle(S),X=parseFloat(ye.marginTop),de=parseFloat(ye.marginBottom),M=Bt(getComputedStyle(f.current)),V=Math.min(fe.documentElement.clientHeight-X-de,M),R=j.scrollTop,_=zt(j);let W=0,N=null,me=!1,we=!1;const Ce=re=>{S.style.height=`${re}px`},Re=(re,he)=>{const ge=vt(re,0,V-ie);ge>0&&Ce(ie+ge),j.scrollTop=he,V-(ie+ge)<=_e&&(I.current=!0),x()};if(G){const re=_-R,he=ie+re,ge=Math.min(he,V);if(W=ge,re<=_e){Re(re,_);return}V-ge>_e?we=!0:me=!0}else if(ue){const re=R,he=ie+re,ge=Math.min(he,V),je=he-V;if(W=ge,re<=_e){Re(re,0);return}V-ge>_e?N=0:(me=!0,R<_&&(N=R-(re-je)))}if(W=Math.ceil(W),W!==0&&Ce(W),we||N!=null){const re=zt(j),he=we?re:vt(N,0,re);Math.abs(j.scrollTop-he)>_e&&(j.scrollTop=he)}(me||W>=V-_e)&&(I.current=!0),x()});i.useImperativeHandle(w,()=>K,[K]),gt({open:A,ref:f,onComplete(){A&&p?.(!0)}});const oe={open:A,transitionStatus:E,side:g,align:m};Q(()=>{!S||!f.current||Object.keys(ae.current).length||(ae.current={top:S.style.top||"0",left:S.style.left||"0",right:S.style.right,height:S.style.height,bottom:S.style.bottom,minHeight:S.style.minHeight,maxHeight:S.style.maxHeight,marginTop:S.style.marginTop,marginBottom:S.style.marginBottom})},[f,S]),Q(()=>{A||d||(k.current=!1,I.current=!1,te.current=0,Y.current=0,dt(S,ae.current))},[A,d,S,f]),Q(()=>{const j=f.current;if(!(!A||!z||!S||!j||u.state.transitionStatus==="ending")){if(!d){k.current=!0,O.request(x),j.style.removeProperty("--transform-origin");return}queueMicrotask(()=>{const G=Kr(j);j.style.removeProperty("--transform-origin");try{const ue=getComputedStyle(S),ie=getComputedStyle(j),fe=ft(z),ye=Ft(S),X=z.getBoundingClientRect(),de=S.getBoundingClientRect(),M=X.left,V=X.height,R=C||j,_=R.scrollHeight,W=parseFloat(ie.borderBottomWidth),N=parseFloat(ue.marginTop)||10,me=parseFloat(ue.marginBottom)||10,we=parseFloat(ue.minHeight)||100,Ce=Bt(ie),Re=5,re=5,he=20,ge=fe.documentElement.clientHeight-N-me,je=fe.documentElement.clientWidth,Ge=ge-X.bottom+V,Be=y.current,Fe=c.current;let Ae,Pe=0,nt=0;if(Be&&Fe){const H=Fe.getBoundingClientRect();Ae=Be.getBoundingClientRect();const le=H.left-M,Ie=Ae.left-de.left,Ee=H.top-X.top+H.height/2,Me=Ae.top-de.top+Ae.height/2;Pe=le-Ie,nt=Me-Ee}const Xe=Ge+nt+me+W;let Oe=Math.min(ge,Xe);const ht=ge-N-me,ze=Xe-Oe,We=Math.max(Re,M+Pe),rt=je-re,Je=Math.max(0,We+de.width-rt);S.style.left=`${We-Je}px`,S.style.height=`${Oe}px`,S.style.maxHeight="auto",S.style.marginTop=`${N}px`,S.style.marginBottom=`${me}px`,j.style.height="100%";const ot=R.scrollHeight-R.clientHeight,st=ze>=ot;st&&(Oe=Math.min(ge,de.height)-(ze-ot));const bt=X.topge-he||Oeh(!1));return}if(st){const H=Math.max(0,ge-Xe);S.style.top=de.height>=ht?"0":`${H}px`,S.style.height=`${Oe}px`,R.scrollTop=R.scrollHeight-R.clientHeight,te.current=Math.max(we,Oe)}else S.style.bottom="0",te.current=Math.max(we,Oe),R.scrollTop=ze;if(Ae){const H=de.top,le=de.height,Ie=Ae.top+Ae.height/2,Ee=le>0?(Ie-H)/le*100:50,Me=vt(Ee,0,100);j.style.setProperty("--transform-origin",`50% ${Me}%`)}(te.current===ge||Oe>=Ce)&&(I.current=!0),x(),setTimeout(()=>{k.current=!0})}finally{G()}})}},[u,A,S,z,c,y,f,x,d,h,O,$,F,C]),i.useEffect(()=>{if(!d||!S||!A)return;const j=Ft(S);function G(ue){b(!1,xe(Yn,ue))}return j.addEventListener("resize",G),()=>{j.removeEventListener("resize",G)}},[b,d,S,A]);const ve={...C?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":T||void 0,id:`${ne}-list`},onKeyDown(j){v.current=!0,D&&Gn.has(j.key)&&j.stopPropagation()},onMouseMove(){v.current=!1},onPointerLeave(j){if(!a||gn(j)||j.pointerType==="touch")return;const G=j.currentTarget;B.start(0,()=>{u.set("activeIndex",null),G.focus({preventScroll:!0})})},onScroll(j){C||K(j.currentTarget)},...d&&{style:C?{height:"100%"}:pn}},Te=Ne("div",e,{ref:[n,f],state:oe,stateAttributesMapping:zr,props:[q,ve,en(E),{className:!C&&d?It.className:void 0},l]});return U.jsxs(i.Fragment,{children:[!J&&It.getElement(ce),U.jsx(qn,{context:ee,modal:!1,disabled:!se,returnFocus:o,restoreFocus:!0,children:Te})]})});function Bt(t){const e=t.maxHeight||"";return e.endsWith("px")&&parseFloat(e)||1/0}function zt(t){return Math.max(0,t.scrollHeight-t.clientHeight)}const Wt=[["transform","none"],["scale","1"],["translate","0 0"]];function Kr(t){const{style:e}=t,n={};for(const[r,s]of Wt)n[r]=e.getPropertyValue(r),e.setProperty(r,s,"important");return()=>{for(const[r]of Wt){const s=n[r];s?e.setProperty(r,s):e.removeProperty(r)}}}const $r=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:l,scrollHandlerRef:u}=Ve(),{alignItemWithTriggerActive:f}=Pt(),p=L(l,P.hasScrollArrows),b=L(l,P.openMethod),c=L(l,P.multiple),v={id:`${L(l,P.id)}-list`,role:"listbox","aria-multiselectable":c||void 0,onScroll(x){u.current?.(x.currentTarget)},...f&&{style:pn},className:p&&b!=="touch"?It.className:void 0},T=pe(x=>{l.set("listElement",x)});return Ne("div",e,{ref:[n,T],props:[v,o]})});let mn=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function qr(t={}){const{label:e,metadata:n,textRef:r,indexGuessBehavior:s,index:o}=t,{register:l,unregister:u,subscribeMapChange:f,elementsRef:p,labelsRef:b,nextIndexRef:c}=Or(),y=i.useRef(-1),[v,T]=i.useState(o??(s===mn.GuessFromOrder?()=>{if(y.current===-1){const a=c.current;c.current+=1,y.current=a}return y.current}:-1)),x=i.useRef(null),w=i.useCallback(a=>{if(x.current=a,v!==-1&&a!==null&&(p.current[v]=a,b)){const g=e!==void 0;b.current[v]=g?e:r?.current?.textContent??a.textContent}},[v,p,b,e,r]);return Q(()=>{if(o!=null)return;const a=x.current;if(a)return l(a,n),()=>{u(a)}},[o,l,u,n]),Q(()=>{if(o==null)return f(a=>{const g=x.current?a.get(x.current)?.index:null;g!=null&&T(g)})},[o,f,T]),i.useMemo(()=>({ref:w,index:v}),[v,w])}const hn=i.createContext(void 0);function Ot(){const t=i.useContext(hn);if(!t)throw new Error(pt(57));return t}const Yr=i.memo(i.forwardRef(function(e,n){const{render:r,className:s,value:o=null,label:l,disabled:u=!1,nativeButton:f=!1,...p}=e,b=i.useRef(null),c=qr({label:l,textRef:b,indexGuessBehavior:mn.GuessFromOrder}),{store:y,getItemProps:v,setOpen:T,setValue:x,selectionRef:w,typingRef:a,valuesRef:g,keyboardActiveRef:m,multiple:d,highlightItemOnHover:h}=Ve(),$=Le(),F=L(y,P.isActive,c.index),D=L(y,P.isSelected,c.index,o),ee=L(y,P.isSelectedByFocus,c.index),ce=L(y,P.isItemEqualToValue),J=c.index,B=J!==-1,ne=i.useRef(null),A=ke(J);Q(()=>{if(!B)return;const O=g.current;return O[J]=o,()=>{delete O[J]}},[B,J,o,g]),Q(()=>{if(!B)return;const O=y.state.value;let K=O;d&&Array.isArray(O)&&O.length>0&&(K=O[O.length-1]),K!==void 0&&$e(o,K,ce)&&y.set("selectedIndex",J)},[B,J,d,ce,y,o]);const se={disabled:u,selected:D,highlighted:F},q=v({active:F,selected:D});q.onFocus=void 0,q.id=void 0;const E=i.useRef(null),z=i.useRef("mouse"),S=i.useRef(!1),{getButtonProps:C,buttonRef:te}=Zt({disabled:u,focusableWhenDisabled:!0,native:f});function I(O){const K=y.state.value;if(d){const oe=Array.isArray(K)?K:[],ve=D?hr(oe,o,ce):[...oe,o];x(ve,xe(Rt,O))}else x(o,xe(Rt,O)),T(!1,xe(Rt,O))}const Y={role:"option","aria-selected":D,tabIndex:F?0:-1,onFocus(){y.set("activeIndex",J)},onMouseEnter(){!m.current&&y.state.selectedIndex===null&&h&&y.set("activeIndex",J)},onMouseMove(){h&&y.set("activeIndex",J)},onMouseLeave(O){!h||m.current||gn(O)||$.start(0,()=>{y.state.activeIndex===J&&y.set("activeIndex",null)})},onTouchStart(){w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(O){E.current=O.key,y.set("activeIndex",J)},onClick(O){S.current=!1,!(O.type==="keydown"&&E.current===null)&&(u||E.current===" "&&a.current||z.current!=="touch"&&!F||(E.current=null,I(O.nativeEvent)))},onPointerEnter(O){z.current=O.pointerType},onPointerDown(O){z.current=O.pointerType,S.current=!0},onMouseUp(O){if(u)return;if(S.current){S.current=!1;return}const K=!w.current.allowSelectedMouseUp&&D,oe=!w.current.allowUnselectedMouseUp&&!D;K||oe||z.current!=="touch"&&!F||I(O.nativeEvent)}},k=Ne("div",e,{ref:[te,n,c.ref,ne],state:se,props:[q,Y,p,C]}),ae=i.useMemo(()=>({selected:D,indexRef:A,textRef:b,selectedByFocus:ee,hasRegistered:B}),[D,A,b,ee,B]);return U.jsx(hn.Provider,{value:ae,children:k})})),Gr=i.forwardRef(function(e,n){const r=e.keepMounted??!1,{selected:s}=Ot();return r||s?U.jsx(Xr,{...e,ref:n}):null}),Xr=i.memo(i.forwardRef((t,e)=>{const{render:n,className:r,keepMounted:s,...o}=t,{selected:l}=Ot(),u=i.useRef(null),{transitionStatus:f,setMounted:p}=Ct(l),c=Ne("span",t,{ref:[e,u],state:{selected:l,transitionStatus:f},props:[{"aria-hidden":!0,children:"✔️"},o],stateAttributesMapping:tn});return gt({open:l,ref:u,onComplete(){l||p(!1)}}),c})),Jr=i.memo(i.forwardRef(function(e,n){const{indexRef:r,textRef:s,selectedByFocus:o,hasRegistered:l}=Ot(),{selectedItemTextRef:u}=Ve(),{className:f,render:p,...b}=e,c=i.useCallback(v=>{if(!v||!l)return;const T=u.current===null||!u.current.isConnected;(o||T&&r.current===0)&&(u.current=v)},[u,r,o,l]);return Ne("div",e,{ref:[c,n,s],props:b})})),bn=i.forwardRef(function(e,n){const{render:r,className:s,direction:o,keepMounted:l=!1,...u}=e,{store:f,popupRef:p,listRef:b,handleScrollArrowVisibility:c,scrollArrowsMountedCountRef:y}=Ve(),{side:v,scrollDownArrowRef:T,scrollUpArrowRef:x}=Pt(),w=o==="up"?P.scrollUpArrowVisible:P.scrollDownArrowVisible,a=L(f,w),g=L(f,P.openMethod),m=a&&g!=="touch",d=Le(),h=o==="up"?x:T,{transitionStatus:$,setMounted:F}=Ct(m);Q(()=>(y.current+=1,f.state.hasScrollArrows||f.set("hasScrollArrows",!0),()=>{y.current=Math.max(0,y.current-1),y.current===0&&f.state.hasScrollArrows&&f.set("hasScrollArrows",!1)}),[f,y]),gt({open:m,ref:h,onComplete(){m||F(!1)}});const ce=Ne("div",e,{ref:[n,h],state:{direction:o,visible:m,side:v,transitionStatus:$},props:[{"aria-hidden":!0,children:o==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(B){if(B.movementX===0&&B.movementY===0||d.isStarted())return;f.set("activeIndex",null);function ne(){const A=f.state.listElement??p.current;if(!A)return;f.set("activeIndex",null),c();const se=A.scrollTop===0,q=Math.round(A.scrollTop+A.clientHeight)>=A.scrollHeight;if(b.current.length===0&&(o==="up"?f.set("scrollUpArrowVisible",!se):f.set("scrollDownArrowVisible",!q)),o==="up"&&se||o==="down"&&q){d.clear();return}if((f.state.listElement||p.current)&&b.current&&b.current.length>0){const z=b.current,S=h.current?.offsetHeight||0;if(o==="up"){let C=0;const te=A.scrollTop+S;for(let Y=0;Y=te){C=Y;break}}const I=Math.max(0,C-1);if(Ite){C=Math.max(0,Y-1);break}}const I=Math.min(z.length-1,C+1);if(I>C){const Y=z[I];Y&&(A.scrollTop=Y.offsetTop+Y.offsetHeight-A.clientHeight+S)}else A.scrollTop=A.scrollHeight-A.clientHeight}}d.start(40,ne)}d.start(40,ne)},onMouseLeave(){d.clear()}},u]});return m||l?ce:null}),Zr=i.forwardRef(function(e,n){return U.jsx(bn,{...e,ref:n,direction:"down"})}),Qr=i.forwardRef(function(e,n){return U.jsx(bn,{...e,ref:n,direction:"up"})}),io=Sr;function lo(t){const e=qe.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("flex flex-1 text-left",n),e[3]=n,e[4]=s):s=e[4];let o;return e[5]!==r||e[6]!==s?(o=U.jsx(Er,{className:s,"data-slot":"select-value",...r}),e[5]=r,e[6]=s,e[7]=o):o=e[7],o}function co(t){const e=qe.c(15);let n,r,s,o,l;e[0]!==t?({className:r,size:l,id:s,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=l):(n=e[1],r=e[2],s=e[3],o=e[4],l=e[5]);const u=l===void 0?"default":l;let f;e[6]!==r?(f=Ye("flex w-fit items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed outline-none transition-colors 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-[size=default]:h-7 data-[size=sm]:h-6 data-placeholder:text-muted-foreground *: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:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0",r),e[6]=r,e[7]=f):f=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=U.jsx(Cr,{render:U.jsx(on,{className:"pointer-events-none size-3.5 text-muted-foreground"})}),e[8]=p):p=e[8];let b;return e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==u||e[13]!==f?(b=U.jsxs(Tr,{className:f,"data-size":u,"data-slot":"select-trigger",id:s,...o,children:[n,p]}),e[9]=n,e[10]=s,e[11]=o,e[12]=u,e[13]=f,e[14]=b):b=e[14],b}function ao(t){const e=qe.c(26);let n,r,s,o,l,u,f,p;e[0]!==t?({className:r,children:n,side:o,sideOffset:l,align:u,alignOffset:f,alignItemWithTrigger:p,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=l,e[6]=u,e[7]=f,e[8]=p):(n=e[1],r=e[2],s=e[3],o=e[4],l=e[5],u=e[6],f=e[7],p=e[8]);const b=o===void 0?"bottom":o,c=l===void 0?4:l,y=u===void 0?"center":u,v=f===void 0?0:f,T=p===void 0?!0:p;let x;e[9]!==r?(x=Ye("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 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",r),e[9]=r,e[10]=x):x=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=U.jsx(eo,{}),e[11]=w):w=e[11];let a;e[12]!==n?(a=U.jsx($r,{children:n}),e[12]=n,e[13]=a):a=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=U.jsx(to,{}),e[14]=g):g=e[14];let m;e[15]!==s||e[16]!==x||e[17]!==a?(m=U.jsxs(Wr,{className:x,"data-slot":"select-content",...s,children:[w,a,g]}),e[15]=s,e[16]=x,e[17]=a,e[18]=m):m=e[18];let d;return e[19]!==y||e[20]!==T||e[21]!==v||e[22]!==b||e[23]!==c||e[24]!==m?(d=U.jsx(Pr,{children:U.jsx(Hr,{align:y,alignItemWithTrigger:T,alignOffset:v,className:"isolate z-50",side:b,sideOffset:c,children:m})}),e[19]=y,e[20]=T,e[21]=v,e[22]=b,e[23]=c,e[24]=m,e[25]=d):d=e[25],d}function uo(t){const e=qe.c(13);let n,r,s;e[0]!==t?({className:r,children:n,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let o;e[4]!==r?(o=Ye("relative flex min-h-7 w-full cursor-default select-none items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden 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:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",r),e[4]=r,e[5]=o):o=e[5];let l;e[6]!==n?(l=U.jsx(Jr,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:n}),e[6]=n,e[7]=l):l=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=U.jsx(Gr,{render:U.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center"}),children:U.jsx(Xn,{className:"pointer-events-none"})}),e[8]=u):u=e[8];let f;return e[9]!==s||e[10]!==o||e[11]!==l?(f=U.jsxs(Yr,{className:o,"data-slot":"select-item",...s,children:[l,u]}),e[9]=s,e[10]=o,e[11]=l,e[12]=f):f=e[12],f}function eo(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("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),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=U.jsx(rr,{}),e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==s?(l=U.jsx(Qr,{className:s,"data-slot":"select-scroll-up-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=l):l=e[8],l}function to(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("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),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=U.jsx(on,{}),e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==s?(l=U.jsx(Zr,{className:s,"data-slot":"select-scroll-down-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=l):l=e[8],l}export{io as S,co as a,lo as b,ao as c,uo as d}; +import{J as $t,bR as Et,bS as Se,bT as tt,bU as De,bV as He,bW as Nt,bX as bn,r as i,bY as Kt,bZ as Le,b_ as Vt,b$ as yn,b8 as be,c0 as Rn,aZ as qt,c1 as Yt,c2 as ke,c3 as Sn,c4 as wn,b1 as Q,c5 as vn,b0 as pe,c6 as Lt,b5 as kt,b6 as ft,c7 as Ue,c8 as yt,c9 as Dt,ca as Mn,cb as Gt,cc as Tn,cd as In,aY as pt,j as U,ce as Z,cf as Ht,cg as Ct,ch as En,a$ as Mt,ci as Cn,cj as L,ck as An,cl as gt,cm as Pn,cn as On,co as Nn,cp as Xt,cq as Vn,cr as Jt,cs as Ln,ct as kn,b9 as At,cu as Zt,b7 as Ne,cv as Dn,cw as Hn,cx as Fn,cy as _n,cz as Un,cA as jn,cB as Bn,cC as zn,cD as Wn,cE as Qt,cF as en,cG as Ft,cH as $n,b3 as Kn,cI as qn,cJ as Yn,cK as tn,cL as Gn,cM as Rt,c as qe,a as Ye}from"./index.js";import{C as Xn}from"./check.js";import{i as Jn,u as nn,e as rn,f as _t,g as Zn,d as Qn,h as er}from"./field.js";const tr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],on=$t("chevron-down",tr);const nr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rr=$t("chevron-up",nr);function lt(t,e,n){return Math.floor(t/e)!==n}function Ze(t,e){return e<0||e>=t.current.length}function St(t,e){return xe(t,{disabledIndices:e})}function Ut(t,e){return xe(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function xe(t,{startingIndex:e=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let o=e;do o+=n?-s:s;while(o>=0&&o<=t.current.length-1&&Qe(t,o,r));return o}function or(t,{event:e,orientation:n,loopFocus:r,rtl:s,cols:o,disabledIndices:l,minIndex:u,maxIndex:f,prevIndex:p,stopEvent:x=!1}){let c=p;const y=[],v={};let T=!1;{let a=null,g=-1;t.current.forEach((m,d)=>{if(m==null)return;const h=m.closest('[role="row"]');h&&(T=!0),(h!==a||g===-1)&&(a=h,g+=1,y[g]=[]),y[g].push(d),v[d]=g})}const b=T&&y.length>0&&y.some(a=>a.length!==o);function w(a){if(!b||p===-1)return;const g=v[p];if(g==null)return;const m=y[g].indexOf(p);let d=a==="up"?g-1:g+1;r&&(d<0?d=y.length-1:d>=y.length&&(d=0));const h=new Set;for(;d>=0&&d=0;D-=1){const ee=K[D];if(!Qe(t,ee,l))return ee}d=a==="up"?d-1:d+1,r&&(d<0?d=y.length-1:d>=y.length&&(d=0))}}if(e.key===Et){const a=w("up");if(a!==void 0)x&&Se(e),c=a;else{if(x&&Se(e),p===-1)c=f;else if(c=xe(t,{startingIndex:c,amount:o,decrement:!0,disabledIndices:l}),r&&(p-og?d:d-o}Ze(t,c)&&(c=p)}}if(e.key===tt){const a=w("down");a!==void 0?(x&&Se(e),c=a):(x&&Se(e),p===-1?c=u:(c=xe(t,{startingIndex:p,amount:o,disabledIndices:l}),r&&p+o>f&&(c=xe(t,{startingIndex:p%o-o,amount:o,disabledIndices:l}))),Ze(t,c)&&(c=p))}if(n==="both"){const a=Nt(p/o);e.key===(s?De:He)&&(x&&Se(e),p%o!==o-1?(c=xe(t,{startingIndex:p,disabledIndices:l}),r&<(c,o,a)&&(c=xe(t,{startingIndex:p-p%o-1,disabledIndices:l}))):r&&(c=xe(t,{startingIndex:p-p%o-1,disabledIndices:l})),lt(c,o,a)&&(c=p)),e.key===(s?He:De)&&(x&&Se(e),p%o!==0?(c=xe(t,{startingIndex:p,decrement:!0,disabledIndices:l}),r&<(c,o,a)&&(c=xe(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:l}))):r&&(c=xe(t,{startingIndex:p+(o-p%o),decrement:!0,disabledIndices:l})),lt(c,o,a)&&(c=p));const g=Nt(f/o)===a;Ze(t,c)&&(r&&g?c=e.key===(s?He:De)?f:xe(t,{startingIndex:p-p%o-1,disabledIndices:l}):c=p)}return c}function sr(t,e,n){const r=[];let s=0;return t.forEach(({width:o,height:l},u)=>{let f=!1;for(;!f;){const p=[];for(let x=0;xr[x]==null)?(p.forEach(x=>{r[x]=u}),f=!0):s+=1}}),[...r]}function ir(t,e,n,r,s){if(t===-1)return-1;const o=n.indexOf(t),l=e[t];switch(s){case"tl":return o;case"tr":return l?o+l.width-1:o;case"bl":return l?o+(l.height-1)*r:o;case"br":return n.lastIndexOf(t);default:return-1}}function lr(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}function Qe(t,e,n){if(typeof n=="function")return n(e);if(n)return n.includes(e);const r=t.current[e];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}function cr(t,e={}){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,{enabled:s=!0,event:o="click",toggle:l=!0,ignoreMouse:u=!1,stickIfOpen:f=!0,touchOpenDelay:p=0,reason:x=bn}=e,c=i.useRef(void 0),y=Kt(),v=Le(),T=i.useMemo(()=>({onPointerDown(b){c.current=b.pointerType},onMouseDown(b){const w=c.current,a=b.nativeEvent,g=n.select("open");if(b.button!==0||o==="click"||Vt(w,!0)&&u)return;const m=r.current.openEvent,d=m?.type,h=n.select("domReferenceElement")!==b.currentTarget,K=g&&h||!(g&&l&&(!(m&&f)||d==="click"||d==="mousedown"));if(Rn(a.target)){const D=be(x,a,a.target);K&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen(K,D);return}const F=b.currentTarget;y.request(()=>{const D=be(x,a,F);K&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen(K,D)})},onClick(b){if(o==="mousedown-only")return;const w=c.current;if(o==="mousedown"&&w){c.current=void 0;return}if(Vt(w,!0)&&u)return;const a=n.select("open"),g=r.current.openEvent,m=n.select("domReferenceElement")!==b.currentTarget,d=a&&m||!(a&&l&&(!(g&&f)||yn(g))),h=be(x,b.nativeEvent,b.currentTarget);d&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,h)}):n.setOpen(d,h)},onKeyDown(){c.current=void 0}}),[r,o,u,n,f,l,y,v,p,x]);return i.useMemo(()=>s?{reference:T}:qt,[s,T])}const ar="Escape";function mt(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function ct(t,e){return mt(e,t===Et||t===tt,t===De||t===He)}function wt(t,e,n){return mt(e,t===tt,n?t===De:t===He)||t==="Enter"||t===" "||t===""}function ur(t,e,n){return mt(e,n?t===De:t===He,t===tt)}function fr(t,e,n,r){const s=n?t===He:t===De,o=t===Et;return e==="both"||e==="horizontal"&&r&&r>1?t===ar:mt(e,s,o)}function dr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.useState("open"),s=n.useState("floatingElement"),o=n.useState("domReferenceElement"),l=n.context.dataRef,{listRef:u,activeIndex:f,onNavigate:p=()=>{},enabled:x=!0,selectedIndex:c=null,allowEscape:y=!1,loopFocus:v=!1,nested:T=!1,rtl:b=!1,virtual:w=!1,focusItemOnOpen:a="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:m=!0,disabledIndices:d=void 0,orientation:h="vertical",parentOrientation:K,cols:F=1,id:D,resetOnPointerLeave:ee=!0,externalTree:ce}=e,J=Yt(s),B=ke(J),ne=Sn(),A=wn(ce);Q(()=>{l.current.orientation=h},[l,h]);const se=vn(o),q=i.useRef(a),E=i.useRef(c??-1),z=i.useRef(null),S=i.useRef(!0),C=pe(M=>{p(E.current===-1?null:E.current,M)}),te=i.useRef(C),I=i.useRef(!!s),Y=i.useRef(r),k=i.useRef(!1),ae=i.useRef(!1),O=ke(d),$=ke(r),oe=ke(c),ve=ke(ee),Te=pe(()=>{function M(W){w?A?.events.emit("virtualfocus",W):Lt(W,{sync:k.current,preventScroll:!0})}const V=u.current[E.current],R=ae.current;V&&M(V),(k.current?W=>W():requestAnimationFrame)(()=>{const W=u.current[E.current]||V;if(!W)return;V||M(W),G&&(R||!S.current)&&W.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Q(()=>{x&&(r&&s?(E.current=c??-1,q.current&&c!=null&&(ae.current=!0,C())):I.current&&(E.current=-1,te.current()))},[x,r,s,c,C]),Q(()=>{if(x){if(!r){k.current=!1;return}if(s)if(f==null){if(k.current=!1,oe.current!=null)return;if(I.current&&(E.current=-1,Te()),(!Y.current||!I.current)&&q.current&&(z.current!=null||q.current===!0&&z.current==null)){let M=0;const V=()=>{u.current[0]==null?(M<2&&(M?requestAnimationFrame:queueMicrotask)(V),M+=1):(E.current=z.current==null||wt(z.current,h,b)||T?St(u):Ut(u),z.current=null,C())};V()}}else Ze(u,f)||(E.current=f,Te(),ae.current=!1)}},[x,r,s,f,oe,T,u,h,b,C,Te,O]),Q(()=>{if(!x||s||!A||w||!I.current)return;const M=A.nodesRef.current,V=M.find(W=>W.id===ne)?.context?.elements.floating,R=kt(ft(s)),_=M.some(W=>W.context&&Ue(W.context.elements.floating,R));V&&!_&&S.current&&V.focus({preventScroll:!0})},[x,s,A,ne,w]),Q(()=>{te.current=C,Y.current=r,I.current=!!s}),Q(()=>{r||(z.current=null,q.current=a)},[r,a]);const j=f!=null,G=i.useMemo(()=>{function M(R){if(!$.current)return;const _=u.current.indexOf(R.currentTarget);_!==-1&&E.current!==_&&(E.current=_,C(R))}return{onFocus(R){k.current=!0,M(R)},onClick:({currentTarget:R})=>R.focus({preventScroll:!0}),onMouseMove(R){k.current=!0,ae.current=!1,g&&M(R)},onPointerLeave(R){if(!$.current||!S.current||R.pointerType==="touch")return;k.current=!0;const _=R.relatedTarget;!g||u.current.includes(_)||ve.current&&(Lt(null,{sync:!0}),E.current=-1,C(R),w||B.current?.focus({preventScroll:!0}))}}},[$,B,g,u,C,ve,w]),ue=i.useCallback(()=>K??A?.nodesRef.current.find(M=>M.id===ne)?.context?.dataRef?.current.orientation,[ne,A,K]),ie=pe(M=>{if(S.current=!1,k.current=!0,M.which===229||!$.current&&M.currentTarget===B.current)return;if(T&&fr(M.key,h,b,F)){ct(M.key,ue())||Se(M),n.setOpen(!1,be(yt,M.nativeEvent)),Dt(o)&&(w?A?.events.emit("virtualfocus",o):o.focus());return}const V=E.current,R=St(u,d),_=Ut(u,d);if(se||(M.key==="Home"&&(Se(M),E.current=R,C(M)),M.key==="End"&&(Se(M),E.current=_,C(M))),F>1){const W=Array.from({length:u.current.length},()=>({width:1,height:1})),N=sr(W,F),me=N.findIndex(Re=>Re!=null&&!Qe(u,Re,d)),we=N.reduce((Re,re,he)=>re!=null&&!Qe(u,re,d)?he:Re,-1),Ce=N[or({current:N.map(Re=>Re!=null?u.current[Re]:null)},{event:M,orientation:h,loopFocus:v,rtl:b,cols:F,disabledIndices:lr([...(typeof d!="function"?d:null)||u.current.map((Re,re)=>Qe(u,re,d)?re:void 0),void 0],N),minIndex:me,maxIndex:we,prevIndex:ir(E.current>_?R:E.current,W,N,F,M.key===tt?"bl":M.key===(b?De:He)?"tr":"tl"),stopEvent:!0})];if(Ce!=null&&(E.current=Ce,C(M)),h==="both")return}if(ct(M.key,h)){if(Se(M),r&&!w&&kt(M.currentTarget.ownerDocument)===M.currentTarget){E.current=wt(M.key,h,b)?R:_,C(M);return}wt(M.key,h,b)?v?V>=_?y&&V!==u.current.length?E.current=-1:(k.current=!1,E.current=R):E.current=xe(u,{startingIndex:V,disabledIndices:d}):E.current=Math.min(_,xe(u,{startingIndex:V,disabledIndices:d})):v?V<=R?y&&V!==-1?E.current=u.current.length:(k.current=!1,E.current=_):E.current=xe(u,{startingIndex:V,decrement:!0,disabledIndices:d}):E.current=Math.max(R,xe(u,{startingIndex:V,decrement:!0,disabledIndices:d})),Ze(u,E.current)&&(E.current=-1),C(M)}}),fe=i.useMemo(()=>w&&r&&j&&{"aria-activedescendant":`${D}-${f}`},[w,r,j,D,f]),ye=i.useMemo(()=>({"aria-orientation":h==="both"?void 0:h,...se?{}:fe,onKeyDown(M){if(M.key==="Tab"&&M.shiftKey&&r&&!w){const V=Mn(M.nativeEvent);if(V&&!Ue(B.current,V))return;Se(M),n.setOpen(!1,be(Gt,M.nativeEvent)),Dt(o)&&o.focus();return}ie(M)},onPointerMove(){S.current=!0}}),[fe,ie,B,h,se,n,r,w,o]),X=i.useMemo(()=>{function M(R){a==="auto"&&Tn(R.nativeEvent)&&(q.current=!w)}function V(R){q.current=a,a==="auto"&&In(R.nativeEvent)&&(q.current=!0)}return{onKeyDown(R){const _=n.select("open");S.current=!1;const W=R.key.startsWith("Arrow"),N=ur(R.key,ue(),b),me=ct(R.key,h),we=(T?N:me)||R.key==="Enter"||R.key.trim()==="";if(w&&_)return ie(R);if(!(!_&&!m&&W)){if(we){const Ce=ct(R.key,ue());z.current=T&&Ce?null:R.key}if(T){N&&(Se(R),_?(E.current=St(u,O.current),C(R)):n.setOpen(!0,be(yt,R.nativeEvent,R.currentTarget)));return}me&&(oe.current!=null&&(E.current=oe.current),Se(R),!_&&m?n.setOpen(!0,be(yt,R.nativeEvent,R.currentTarget)):ie(R),_&&C(R))}},onFocus(R){n.select("open")&&!w&&(E.current=-1,C(R))},onPointerDown:V,onPointerEnter:V,onMouseDown:M,onClick:M}},[ie,O,a,u,T,C,n,m,h,ue,b,oe,w]),de=i.useMemo(()=>({...fe,...X}),[fe,X]);return i.useMemo(()=>x?{reference:de,floating:ye,item:G,trigger:X}:{},[x,de,ye,X,G])}function pr(t,e){const n="rootStore"in t?t.rootStore:t,r=n.context.dataRef,s=n.useState("open"),{listRef:o,activeIndex:l,onMatch:u,onTypingChange:f,enabled:p=!0,resetMs:x=750,selectedIndex:c=null}=e,y=Le(),v=i.useRef(""),T=i.useRef(c??l??-1),b=i.useRef(null);Q(()=>{!s&&c!==null||(y.clear(),b.current=null,v.current!==""&&(v.current=""))},[s,c,y]),Q(()=>{s&&v.current===""&&(T.current=c??l??-1)},[s,c,l]);const w=pe(h=>{h?r.current.typing||(r.current.typing=h,f?.(h)):r.current.typing&&(r.current.typing=h,f?.(h))}),a=pe(h=>{function K(B,ne,A){const se=ne.find(q=>q?.toLocaleLowerCase().indexOf(A.toLocaleLowerCase())===0);return se?B.indexOf(se):-1}const F=o.current;if(v.current.length>0&&v.current[0]!==" "&&(K(F,F,v.current)===-1?w(!1):h.key===" "&&Se(h)),F==null||h.key.length!==1||h.ctrlKey||h.metaKey||h.altKey)return;s&&h.key!==" "&&(Se(h),w(!0));const D=v.current==="";D&&(T.current=c??l??-1),F.every(B=>B?B[0]?.toLocaleLowerCase()!==B[1]?.toLocaleLowerCase():!0)&&v.current===h.key&&(v.current="",T.current=b.current),v.current+=h.key,y.start(x,()=>{v.current="",T.current=b.current,w(!1)});const ce=D?c??l??-1:T.current,J=K(F,[...F.slice((ce||0)+1),...F.slice(0,(ce||0)+1)],v.current);J!==-1?(u?.(J),b.current=J):h.key!==" "&&(v.current="",w(!1))}),g=pe(h=>{const K=h.relatedTarget,F=n.select("domReferenceElement"),D=n.select("floatingElement"),ee=Ue(F,K),ce=Ue(D,K);ee||ce||(y.clear(),v.current="",T.current=b.current,w(!1))}),m=i.useMemo(()=>({onKeyDown:a,onBlur:g}),[a,g]),d=i.useMemo(()=>({onKeyDown:a,onKeyUp(h){h.key===" "&&w(!1)},onBlur:g}),[a,g,w]);return i.useMemo(()=>p?{reference:m,floating:d}:{},[p,m,d])}const sn=i.createContext(null),ln=i.createContext(null);function Ve(){const t=i.useContext(sn);if(t===null)throw new Error(pt(60));return t}function cn(){const t=i.useContext(ln);if(t===null)throw new Error(pt(61));return t}const gr=(t,e)=>Object.is(t,e);function Ke(t,e,n){return t==null||e==null?Object.is(t,e):n(t,e)}function mr(t,e,n){return!t||t.length===0?!1:t.some(r=>r===void 0?!1:Ke(e,r,n))}function et(t,e,n){return!t||t.length===0?-1:t.findIndex(r=>r===void 0?!1:Ke(r,e,n))}function hr(t,e,n){return t.filter(r=>!Ke(e,r,n))}function Tt(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}function an(t){return t!=null&&t.length>0&&typeof t[0]=="object"&&t[0]!=null&&"items"in t[0]}function xr(t){if(!Array.isArray(t))return t!=null&&!("null"in t);if(an(t)){for(const e of t)for(const n of e.items)if(n&&n.value==null&&n.label!=null)return!0;return!1}for(const e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function br(t,e){if(e&&t!=null)return e(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return Tt(t)}function $e(t,e){return e&&t!=null?e(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?Tt(t.value):Tt(t)}function un(t,e,n){function r(){return br(t,n)}if(n&&t!=null)return n(t);if(t&&typeof t=="object"&&"label"in t&&t.label!=null)return t.label;if(e&&!Array.isArray(e))return e[t]??r();if(Array.isArray(e)){const s=an(e)?e.flatMap(o=>o.items):e;if(t==null||typeof t!="object"){const o=s.find(l=>l.value===t);return o&&o.label!=null?o.label:r()}if("value"in t){const o=s.find(l=>l&&l.value===t.value);if(o&&o.label!=null)return o.label}}return r()}function yr(t,e,n){return t.reduce((r,s,o)=>(o>0&&r.push(", "),r.push(U.jsx(i.Fragment,{children:un(s,e,n)},o)),r),[])}const P={id:Z(t=>t.id),modal:Z(t=>t.modal),multiple:Z(t=>t.multiple),items:Z(t=>t.items),itemToStringLabel:Z(t=>t.itemToStringLabel),itemToStringValue:Z(t=>t.itemToStringValue),isItemEqualToValue:Z(t=>t.isItemEqualToValue),value:Z(t=>t.value),hasSelectedValue:Z(t=>{const{value:e,multiple:n,itemToStringValue:r}=t;return e==null?!1:n&&Array.isArray(e)?e.length>0:$e(e,r)!==""}),hasNullItemLabel:Z((t,e)=>e?xr(t.items):!1),open:Z(t=>t.open),mounted:Z(t=>t.mounted),forceMount:Z(t=>t.forceMount),transitionStatus:Z(t=>t.transitionStatus),openMethod:Z(t=>t.openMethod),activeIndex:Z(t=>t.activeIndex),selectedIndex:Z(t=>t.selectedIndex),isActive:Z((t,e)=>t.activeIndex===e),isSelected:Z((t,e,n)=>{const r=t.isItemEqualToValue,s=t.value;return t.multiple?Array.isArray(s)&&s.some(o=>Ke(n,o,r)):t.selectedIndex===e&&t.selectedIndex!==null?!0:Ke(n,s,r)}),isSelectedByFocus:Z((t,e)=>t.selectedIndex===e),popupProps:Z(t=>t.popupProps),triggerProps:Z(t=>t.triggerProps),triggerElement:Z(t=>t.triggerElement),positionerElement:Z(t=>t.positionerElement),listElement:Z(t=>t.listElement),scrollUpArrowVisible:Z(t=>t.scrollUpArrowVisible),scrollDownArrowVisible:Z(t=>t.scrollDownArrowVisible),hasScrollArrows:Z(t=>t.hasScrollArrows)};function Rr(t,e){const n=i.useRef(t),r=pe(e);Q(()=>{n.current!==t&&r(n.current)},[t,r]),Q(()=>{n.current=t},[t])}function Sr(t){const{id:e,value:n,defaultValue:r=null,onValueChange:s,open:o,defaultOpen:l=!1,onOpenChange:u,name:f,autoComplete:p,disabled:x=!1,readOnly:c=!1,required:y=!1,modal:v=!0,actionsRef:T,inputRef:b,onOpenChangeComplete:w,items:a,multiple:g=!1,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h=gr,highlightItemOnHover:K=!0,children:F}=t,{clearErrors:D}=Jn(),{setDirty:ee,setTouched:ce,setFocused:J,shouldValidateOnChange:B,validityData:ne,setFilled:A,name:se,disabled:q,validation:E,validationMode:z}=nn(),S=rn({id:e}),C=q||x,te=se??f,[I,Y]=_t({controlled:n,default:g?r??Ht:r,name:"Select",state:"value"}),[k,ae]=_t({controlled:o,default:l,name:"Select",state:"open"}),O=i.useRef([]),$=i.useRef([]),oe=i.useRef(null),ve=i.useRef(null),Te=i.useRef(0),j=i.useRef(null),G=i.useRef([]),ue=i.useRef(!1),ie=i.useRef(!1),fe=i.useRef(null),ye=i.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),X=i.useRef(!1),{mounted:de,setMounted:M,transitionStatus:V}=Ct(k),{openMethod:R,triggerProps:_,reset:W}=En(k),N=Mt(()=>new Cn({id:S,modal:v,multiple:g,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h,value:I,open:k,mounted:de,transitionStatus:V,items:a,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,me=L(N,P.activeIndex),we=L(N,P.selectedIndex),Ce=L(N,P.triggerElement),Re=L(N,P.positionerElement),re=i.useMemo(()=>g&&Array.isArray(I)&&I.length===0?"":$e(I,d),[g,I,d]),he=i.useMemo(()=>g&&Array.isArray(I)?I.map(H=>$e(H,d)):$e(I,d),[g,I,d]),ge=ke(N.state.triggerElement);Zn({id:S,commit:E.commit,value:I,controlRef:ge,name:te,getValue:()=>he});const je=i.useRef(I);Q(()=>{I!==je.current&&N.set("forceMount",!0)},[N,I]),Q(()=>{A(g?Array.isArray(I)&&I.length>0:I!=null)},[g,I,A]),Q(function(){if(k)return;const le=G.current;if(g){const Ee=Array.isArray(I)?I:[];if(Ee.length===0){N.set("selectedIndex",null);return}const Me=Ee[Ee.length-1],it=et(le,Me,h);N.set("selectedIndex",it===-1?null:it);return}const Ie=et(le,I,h);N.set("selectedIndex",Ie===-1?null:Ie)},[g,k,I,G,h,N]),Rr(I,()=>{D(te),ee(I!==ne.initialValue),B()?E.commit(I):E.commit(I,!0)});const Ge=pe((H,le)=>{if(u?.(H,le),!le.isCanceled&&(ae(H),!H&&(le.reason===Gt||le.reason===An)&&(ce(!0),J(!1),z==="onBlur"&&E.commit(I)),!H&&N.state.activeIndex!==null)){const Ie=O.current[N.state.activeIndex];queueMicrotask(()=>{Ie?.setAttribute("tabindex","-1")})}}),Be=pe(()=>{M(!1),N.set("activeIndex",null),W(),w?.(!1)});gt({enabled:!T,open:k,ref:oe,onComplete(){k||Be()}}),i.useImperativeHandle(T,()=>({unmount:Be}),[Be]);const Fe=pe((H,le)=>{s?.(H,le),!le.isCanceled&&Y(H)}),Ae=pe(()=>{const H=N.state.listElement||oe.current;if(!H)return;const le=H.scrollTop,Ie=H.scrollTop+H.clientHeight,Ee=le>1,Me=IeXt(ze(),_,S?{id:S}:qt),[ze,_,S]);Vn(()=>{N.update({popupProps:We(),triggerProps:Je})}),Q(()=>{N.update({id:S,modal:v,multiple:g,value:I,open:k,mounted:de,transitionStatus:V,popupProps:We(),triggerProps:Je,items:a,itemToStringLabel:m,itemToStringValue:d,isItemEqualToValue:h,openMethod:R})},[N,S,v,g,I,k,de,V,We,Je,a,m,d,h,R]);const ot=i.useMemo(()=>({store:N,name:te,required:y,disabled:C,readOnly:c,multiple:g,itemToStringLabel:m,itemToStringValue:d,highlightItemOnHover:K,setValue:Fe,setOpen:Ge,listRef:O,popupRef:oe,scrollHandlerRef:ve,handleScrollArrowVisibility:Ae,scrollArrowsMountedCountRef:Te,getItemProps:rt,events:Pe.context.events,valueRef:j,valuesRef:G,labelsRef:$,typingRef:ue,selectionRef:ye,selectedItemTextRef:fe,validation:E,onOpenChangeComplete:w,keyboardActiveRef:ie,alignItemWithTriggerActiveRef:X,initialValueRef:je}),[N,te,y,C,c,g,m,d,K,Fe,Ge,rt,Pe.context.events,E,w,Ae]),st=Jt(b,E.inputRef),xt=g&&Array.isArray(I)&&I.length>0,bt=i.useMemo(()=>!g||!Array.isArray(I)||!te?null:I.map(H=>{const le=$e(H,d);return U.jsx("input",{type:"hidden",name:te,value:le},le)}),[g,I,te,d]);return U.jsx(sn.Provider,{value:ot,children:U.jsxs(ln.Provider,{value:Pe,children:[F,U.jsx("input",{...E.getInputValidationProps({onFocus(){N.state.triggerElement?.focus({focusVisible:!0})},onChange(H){if(H.nativeEvent.defaultPrevented)return;const le=H.target.value,Ie=be(At,H.nativeEvent);function Ee(){if(g)return;const Me=G.current.find(it=>$e(it,d).toLowerCase()===le.toLowerCase());Me!=null&&(ee(Me!==ne.initialValue),Fe(Me,Ie),B()&&E.commit(Me))}N.set("forceMount",!0),queueMicrotask(Ee)}}),name:g?void 0:te,autoComplete:p,value:re,disabled:C,required:y&&!xt,readOnly:c,ref:st,style:te?Ln:kn,tabIndex:-1,"aria-hidden":!0}),bt]})})}function wr(t){const e=t.getBoundingClientRect(),n=window.getComputedStyle(t,"::before"),r=window.getComputedStyle(t,"::after");if(!(n.content!=="none"||r.content!=="none"))return e;const o=parseFloat(n.width)||0,l=parseFloat(n.height)||0,u=parseFloat(r.width)||0,f=parseFloat(r.height)||0,p=Math.max(e.width,o,u),x=Math.max(e.height,l,f),c=p-e.width,y=x-e.height;return{left:e.left-c/2,right:e.right+c/2,top:e.top-y/2,bottom:e.bottom+y/2}}const at=2,vr=400,jt=200,Mr={...Dn,...er,value:()=>null},Tr=i.forwardRef(function(e,n){const{render:r,className:s,id:o,disabled:l=!1,nativeButton:u=!0,...f}=e,{setTouched:p,setFocused:x,validationMode:c,state:y,disabled:v}=nn(),{labelId:T}=Qn(),{store:b,setOpen:w,selectionRef:a,validation:g,readOnly:m,required:d,alignItemWithTriggerActiveRef:h,disabled:K,keyboardActiveRef:F}=Ve(),D=v||K||l,ee=L(b,P.open),ce=L(b,P.value),J=L(b,P.triggerProps),B=L(b,P.positionerElement),ne=L(b,P.listElement),A=L(b,P.id),se=L(b,P.hasSelectedValue),q=!se&&ee,E=L(b,P.hasNullItemLabel,q),z=o??A;rn({id:z});const S=ke(B),C=i.useRef(null),{getButtonProps:te,buttonRef:I}=Zt({disabled:D,native:u}),Y=pe(G=>{b.set("triggerElement",G)}),k=Jt(n,C,I,Y),ae=Le(),O=Le(),$=Le(),oe=Le();i.useEffect(()=>{if(ee)return!(se||E)?$.start(vr,()=>{a.current.allowUnselectedMouseUp=!0,a.current.allowSelectedMouseUp=!0}):oe.start(jt,()=>{a.current.allowUnselectedMouseUp=!0,$.start(jt,()=>{a.current.allowSelectedMouseUp=!0})}),()=>{$.clear(),oe.clear()};a.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},O.clear()},[ee,se,E,a,O,$,oe]);const ve=i.useMemo(()=>ne?.id??Yt(B)?.id,[ne,B]),Te=Xt(J,{id:z,role:"combobox","aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-controls":ee?ve:void 0,"aria-labelledby":T,"aria-readonly":m||void 0,"aria-required":d||void 0,tabIndex:D?-1:0,ref:k,onFocus(G){x(!0),ee&&h.current&&w(!1,be(At,G.nativeEvent)),ae.start(0,()=>{b.set("forceMount",!0)})},onBlur(G){Ue(B,G.relatedTarget)||(p(!0),x(!1),c==="onBlur"&&g.commit(ce))},onPointerMove(){F.current=!1},onKeyDown(){F.current=!0},onMouseDown(G){if(ee)return;const ue=ft(G.currentTarget);function ie(fe){if(!C.current)return;const ye=fe.target;if(Ue(C.current,ye)||Ue(S.current,ye)||ye===C.current)return;const X=wr(C.current);fe.clientX>=X.left-at&&fe.clientX<=X.right+at&&fe.clientY>=X.top-at&&fe.clientY<=X.bottom+at||w(!1,be(Hn,fe))}O.start(0,()=>{ue.addEventListener("mouseup",ie,{once:!0})})}},g.getValidationProps,f,te);Te.role="combobox";const j={...y,open:ee,disabled:D,value:ce,readOnly:m,placeholder:!se};return Ne("button",e,{ref:[n,C],state:j,stateAttributesMapping:Mr,props:Te})}),Ir={value:()=>null},Er=i.forwardRef(function(e,n){const{className:r,render:s,children:o,placeholder:l,...u}=e,{store:f,valueRef:p}=Ve(),x=L(f,P.value),c=L(f,P.items),y=L(f,P.itemToStringLabel),v=L(f,P.hasSelectedValue),T=!v&&l!=null&&o==null,b=L(f,P.hasNullItemLabel,T),w={value:x,placeholder:!v};let a=null;return typeof o=="function"?a=o(x):o!=null?a=o:!v&&l!=null&&!b?a=l:Array.isArray(x)?a=yr(x,c,y):a=un(x,c,y),Ne("span",e,{state:w,ref:[n,p],props:[{children:a},u],stateAttributesMapping:Ir})}),Cr=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:l}=Ve(),f={open:L(l,P.open)};return Ne("span",e,{state:f,ref:n,props:[{"aria-hidden":!0,children:"▼"},o],stateAttributesMapping:Fn})}),Ar=i.createContext(void 0),Pr=i.forwardRef(function(e,n){const{store:r}=Ve(),s=L(r,P.mounted),o=L(r,P.forceMount);return s||o?U.jsx(Ar.Provider,{value:!0,children:U.jsx(_n,{ref:n,...e})}):null}),fn=i.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Or(){return i.useContext(fn)}function Nr(t){const{children:e,elementsRef:n,labelsRef:r,onMapChange:s}=t,o=pe(s),l=i.useRef(0),u=Mt(Lr).current,f=Mt(Vr).current,[p,x]=i.useState(0),c=i.useRef(p),y=pe((a,g)=>{f.set(a,g??null),c.current+=1,x(c.current)}),v=pe(a=>{f.delete(a),c.current+=1,x(c.current)}),T=i.useMemo(()=>{const a=new Map;return Array.from(f.keys()).filter(m=>m.isConnected).sort(kr).forEach((m,d)=>{const h=f.get(m)??{};a.set(m,{...h,index:d})}),a},[f,p]);Q(()=>{if(typeof MutationObserver!="function"||T.size===0)return;const a=new MutationObserver(g=>{const m=new Set,d=h=>m.has(h)?m.delete(h):m.add(h);g.forEach(h=>{h.removedNodes.forEach(d),h.addedNodes.forEach(d)}),m.size===0&&(c.current+=1,x(c.current))});return T.forEach((g,m)=>{m.parentElement&&a.observe(m.parentElement,{childList:!0})}),()=>{a.disconnect()}},[T]),Q(()=>{c.current===p&&(n.current.length!==T.size&&(n.current.length=T.size),r&&r.current.length!==T.size&&(r.current.length=T.size),l.current=T.size),o(T)},[o,T,n,r,p]),Q(()=>()=>{n.current=[]},[n]),Q(()=>()=>{r&&(r.current=[])},[r]);const b=pe(a=>(u.add(a),()=>{u.delete(a)}));Q(()=>{u.forEach(a=>a(T))},[u,T]);const w=i.useMemo(()=>({register:y,unregister:v,subscribeMapChange:b,elementsRef:n,labelsRef:r,nextIndexRef:l}),[y,v,b,n,r,l]);return U.jsx(fn.Provider,{value:w,children:e})}function Vr(){return new Map}function Lr(){return new Set}function kr(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const dn=i.createContext(void 0);function Pt(){const t=i.useContext(dn);if(!t)throw new Error(pt(59));return t}function dt(t,e){t&&Object.assign(t.style,e)}const pn={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},Dr={position:"fixed"},Hr=i.forwardRef(function(e,n){const{anchor:r,positionMethod:s="absolute",className:o,render:l,side:u="bottom",align:f="center",sideOffset:p=0,alignOffset:x=0,collisionBoundary:c="clipping-ancestors",collisionPadding:y,arrowPadding:v=5,sticky:T=!1,disableAnchorTracking:b,alignItemWithTrigger:w=!0,collisionAvoidance:a=Un,...g}=e,{store:m,listRef:d,labelsRef:h,alignItemWithTriggerActiveRef:K,selectedItemTextRef:F,valuesRef:D,initialValueRef:ee,popupRef:ce,setValue:J}=Ve(),B=cn(),ne=L(m,P.open),A=L(m,P.mounted),se=L(m,P.modal),q=L(m,P.value),E=L(m,P.openMethod),z=L(m,P.positionerElement),S=L(m,P.triggerElement),C=L(m,P.isItemEqualToValue),te=L(m,P.transitionStatus),I=i.useRef(null),Y=i.useRef(null),[k,ae]=i.useState(w),O=A&&k&&E!=="touch";!A&&k!==w&&ae(w),Q(()=>{A||(P.scrollUpArrowVisible(m.state)&&m.set("scrollUpArrowVisible",!1),P.scrollDownArrowVisible(m.state)&&m.set("scrollDownArrowVisible",!1))},[m,A]),i.useImperativeHandle(K,()=>O),jn((O||se)&&ne&&E!=="touch",S);const $=Bn({anchor:r,floatingRootContext:B,positionMethod:s,mounted:A,side:u,sideOffset:p,align:f,alignOffset:x,arrowPadding:v,collisionBoundary:c,collisionPadding:y,sticky:T,disableAnchorTracking:b??O,collisionAvoidance:a,keepMounted:!0}),oe=O?"none":$.side,ve=O?Dr:$.positionerStyles,Te=i.useMemo(()=>{const X={};return ne||(X.pointerEvents="none"),{role:"presentation",hidden:!A,style:{...ve,...X}}},[ne,A,ve]),j={open:ne,side:oe,align:$.align,anchorHidden:$.anchorHidden},G=pe(X=>{m.set("positionerElement",X)}),ue=Ne("div",e,{ref:[n,G],state:j,stateAttributesMapping:Qt,props:[Te,en(te),g]}),ie=i.useRef(0),fe=pe(X=>{if(X.size===0&&ie.current===0||D.current.length===0)return;const de=ie.current;if(ie.current=X.size,X.size===de)return;const M=be(At);if(de!==0&&!m.state.multiple&&q!==null&&et(D.current,q,C)===-1){const R=ee.current,W=R!=null&&et(D.current,R,C)!==-1?R:null;J(W,M),W===null&&(m.set("selectedIndex",null),F.current=null)}if(de!==0&&m.state.multiple&&Array.isArray(q)){const V=_=>et(D.current,_,C)!==-1,R=q.filter(_=>V(_));(R.length!==q.length||R.some(_=>!mr(q,_,C)))&&(J(R,M),R.length===0&&(m.set("selectedIndex",null),F.current=null))}if(ne&&O){m.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const V={height:""};dt(z,V),dt(ce.current,V)}}),ye=i.useMemo(()=>({...$,side:oe,alignItemWithTriggerActive:O,setControlledAlignItemWithTrigger:ae,scrollUpArrowRef:I,scrollDownArrowRef:Y}),[$,oe,O,ae]);return U.jsx(Nr,{elementsRef:d,labelsRef:h,onMapChange:fe,children:U.jsxs(dn.Provider,{value:ye,children:[A&&se&&U.jsx(zn,{inert:Wn(!ne),cutout:S}),ue]})})});function gn(t){const e=t.currentTarget.getBoundingClientRect();return e.top+1<=t.clientY&&t.clientY<=e.bottom-1&&e.left+1<=t.clientX&&t.clientX<=e.right-1}const ut="base-ui-disable-scrollbar",It={className:ut,getElement(t){return U.jsx("style",{nonce:t,href:ut,precedence:"base-ui:low",children:`.${ut}{scrollbar-width:none}.${ut}::-webkit-scrollbar{display:none}`})}},Fr=i.createContext(void 0);function _r(t){return i.useContext(Fr)}function vt(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}const Ur=i.createContext(void 0),jr={disableStyleElements:!1};function Br(){return i.useContext(Ur)??jr}const _e=1,zr={...Qt,...tn},Wr=i.forwardRef(function(e,n){const{render:r,className:s,finalFocus:o,...l}=e,{store:u,popupRef:f,onOpenChangeComplete:p,setOpen:x,valueRef:c,selectedItemTextRef:y,keyboardActiveRef:v,multiple:T,handleScrollArrowVisibility:b,scrollHandlerRef:w,highlightItemOnHover:a}=Ve(),{side:g,align:m,alignItemWithTriggerActive:d,setControlledAlignItemWithTrigger:h,scrollDownArrowRef:K,scrollUpArrowRef:F}=Pt(),D=_r()!=null,ee=cn(),{nonce:ce,disableStyleElements:J}=Br(),B=Le(),ne=L(u,P.id),A=L(u,P.open),se=L(u,P.mounted),q=L(u,P.popupProps),E=L(u,P.transitionStatus),z=L(u,P.triggerElement),S=L(u,P.positionerElement),C=L(u,P.listElement),te=i.useRef(0),I=i.useRef(!1),Y=i.useRef(0),k=i.useRef(!1),ae=i.useRef({}),O=Kt(),$=pe(j=>{if(!S||!f.current||!k.current)return;if(I.current||!d){b();return}const G=S.style.top==="0px",ue=S.style.bottom==="0px",ie=S.getBoundingClientRect().height,fe=ft(S),ye=getComputedStyle(S),X=parseFloat(ye.marginTop),de=parseFloat(ye.marginBottom),M=Bt(getComputedStyle(f.current)),V=Math.min(fe.documentElement.clientHeight-X-de,M),R=j.scrollTop,_=zt(j);let W=0,N=null,me=!1,we=!1;const Ce=re=>{S.style.height=`${re}px`},Re=(re,he)=>{const ge=vt(re,0,V-ie);ge>0&&Ce(ie+ge),j.scrollTop=he,V-(ie+ge)<=_e&&(I.current=!0),b()};if(G){const re=_-R,he=ie+re,ge=Math.min(he,V);if(W=ge,re<=_e){Re(re,_);return}V-ge>_e?we=!0:me=!0}else if(ue){const re=R,he=ie+re,ge=Math.min(he,V),je=he-V;if(W=ge,re<=_e){Re(re,0);return}V-ge>_e?N=0:(me=!0,R<_&&(N=R-(re-je)))}if(W=Math.ceil(W),W!==0&&Ce(W),we||N!=null){const re=zt(j),he=we?re:vt(N,0,re);Math.abs(j.scrollTop-he)>_e&&(j.scrollTop=he)}(me||W>=V-_e)&&(I.current=!0),b()});i.useImperativeHandle(w,()=>$,[$]),gt({open:A,ref:f,onComplete(){A&&p?.(!0)}});const oe={open:A,transitionStatus:E,side:g,align:m};Q(()=>{!S||!f.current||Object.keys(ae.current).length||(ae.current={top:S.style.top||"0",left:S.style.left||"0",right:S.style.right,height:S.style.height,bottom:S.style.bottom,minHeight:S.style.minHeight,maxHeight:S.style.maxHeight,marginTop:S.style.marginTop,marginBottom:S.style.marginBottom})},[f,S]),Q(()=>{A||d||(k.current=!1,I.current=!1,te.current=0,Y.current=0,dt(S,ae.current))},[A,d,S,f]),Q(()=>{const j=f.current;if(!(!A||!z||!S||!j||u.state.transitionStatus==="ending")){if(!d){k.current=!0,O.request(b),j.style.removeProperty("--transform-origin");return}queueMicrotask(()=>{const G=$r(j);j.style.removeProperty("--transform-origin");try{const ue=getComputedStyle(S),ie=getComputedStyle(j),fe=ft(z),ye=Ft(S),X=z.getBoundingClientRect(),de=S.getBoundingClientRect(),M=X.left,V=X.height,R=C||j,_=R.scrollHeight,W=parseFloat(ie.borderBottomWidth),N=parseFloat(ue.marginTop)||10,me=parseFloat(ue.marginBottom)||10,we=parseFloat(ue.minHeight)||100,Ce=Bt(ie),Re=5,re=5,he=20,ge=fe.documentElement.clientHeight-N-me,je=fe.documentElement.clientWidth,Ge=ge-X.bottom+V,Be=y.current,Fe=c.current;let Ae,Pe=0,nt=0;if(Be&&Fe){const H=Fe.getBoundingClientRect();Ae=Be.getBoundingClientRect();const le=H.left-M,Ie=Ae.left-de.left,Ee=H.top-X.top+H.height/2,Me=Ae.top-de.top+Ae.height/2;Pe=le-Ie,nt=Me-Ee}const Xe=Ge+nt+me+W;let Oe=Math.min(ge,Xe);const ht=ge-N-me,ze=Xe-Oe,We=Math.max(Re,M+Pe),rt=je-re,Je=Math.max(0,We+de.width-rt);S.style.left=`${We-Je}px`,S.style.height=`${Oe}px`,S.style.maxHeight="auto",S.style.marginTop=`${N}px`,S.style.marginBottom=`${me}px`,j.style.height="100%";const ot=R.scrollHeight-R.clientHeight,st=ze>=ot;st&&(Oe=Math.min(ge,de.height)-(ze-ot));const xt=X.topge-he||Oeh(!1));return}if(st){const H=Math.max(0,ge-Xe);S.style.top=de.height>=ht?"0":`${H}px`,S.style.height=`${Oe}px`,R.scrollTop=R.scrollHeight-R.clientHeight,te.current=Math.max(we,Oe)}else S.style.bottom="0",te.current=Math.max(we,Oe),R.scrollTop=ze;if(Ae){const H=de.top,le=de.height,Ie=Ae.top+Ae.height/2,Ee=le>0?(Ie-H)/le*100:50,Me=vt(Ee,0,100);j.style.setProperty("--transform-origin",`50% ${Me}%`)}(te.current===ge||Oe>=Ce)&&(I.current=!0),b(),setTimeout(()=>{k.current=!0})}finally{G()}})}},[u,A,S,z,c,y,f,b,d,h,O,K,F,C]),i.useEffect(()=>{if(!d||!S||!A)return;const j=Ft(S);function G(ue){x(!1,be(Yn,ue))}return j.addEventListener("resize",G),()=>{j.removeEventListener("resize",G)}},[x,d,S,A]);const ve={...C?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":T||void 0,id:`${ne}-list`},onKeyDown(j){v.current=!0,D&&Gn.has(j.key)&&j.stopPropagation()},onMouseMove(){v.current=!1},onPointerLeave(j){if(!a||gn(j)||j.pointerType==="touch")return;const G=j.currentTarget;B.start(0,()=>{u.set("activeIndex",null),G.focus({preventScroll:!0})})},onScroll(j){C||$(j.currentTarget)},...d&&{style:C?{height:"100%"}:pn}},Te=Ne("div",e,{ref:[n,f],state:oe,stateAttributesMapping:zr,props:[q,ve,en(E),{className:!C&&d?It.className:void 0},l]});return U.jsxs(i.Fragment,{children:[!J&&It.getElement(ce),U.jsx(qn,{context:ee,modal:!1,disabled:!se,returnFocus:o,restoreFocus:!0,children:Te})]})});function Bt(t){const e=t.maxHeight||"";return e.endsWith("px")&&parseFloat(e)||1/0}function zt(t){return Math.max(0,t.scrollHeight-t.clientHeight)}const Wt=[["transform","none"],["scale","1"],["translate","0 0"]];function $r(t){const{style:e}=t,n={};for(const[r,s]of Wt)n[r]=e.getPropertyValue(r),e.setProperty(r,s,"important");return()=>{for(const[r]of Wt){const s=n[r];s?e.setProperty(r,s):e.removeProperty(r)}}}const Kr=i.forwardRef(function(e,n){const{className:r,render:s,...o}=e,{store:l,scrollHandlerRef:u}=Ve(),{alignItemWithTriggerActive:f}=Pt(),p=L(l,P.hasScrollArrows),x=L(l,P.openMethod),c=L(l,P.multiple),v={id:`${L(l,P.id)}-list`,role:"listbox","aria-multiselectable":c||void 0,onScroll(b){u.current?.(b.currentTarget)},...f&&{style:pn},className:p&&x!=="touch"?It.className:void 0},T=pe(b=>{l.set("listElement",b)});return Ne("div",e,{ref:[n,T],props:[v,o]})});let mn=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function qr(t={}){const{label:e,metadata:n,textRef:r,indexGuessBehavior:s,index:o}=t,{register:l,unregister:u,subscribeMapChange:f,elementsRef:p,labelsRef:x,nextIndexRef:c}=Or(),y=i.useRef(-1),[v,T]=i.useState(o??(s===mn.GuessFromOrder?()=>{if(y.current===-1){const a=c.current;c.current+=1,y.current=a}return y.current}:-1)),b=i.useRef(null),w=i.useCallback(a=>{if(b.current=a,v!==-1&&a!==null&&(p.current[v]=a,x)){const g=e!==void 0;x.current[v]=g?e:r?.current?.textContent??a.textContent}},[v,p,x,e,r]);return Q(()=>{if(o!=null)return;const a=b.current;if(a)return l(a,n),()=>{u(a)}},[o,l,u,n]),Q(()=>{if(o==null)return f(a=>{const g=b.current?a.get(b.current)?.index:null;g!=null&&T(g)})},[o,f,T]),i.useMemo(()=>({ref:w,index:v}),[v,w])}const hn=i.createContext(void 0);function Ot(){const t=i.useContext(hn);if(!t)throw new Error(pt(57));return t}const Yr=i.memo(i.forwardRef(function(e,n){const{render:r,className:s,value:o=null,label:l,disabled:u=!1,nativeButton:f=!1,...p}=e,x=i.useRef(null),c=qr({label:l,textRef:x,indexGuessBehavior:mn.GuessFromOrder}),{store:y,getItemProps:v,setOpen:T,setValue:b,selectionRef:w,typingRef:a,valuesRef:g,keyboardActiveRef:m,multiple:d,highlightItemOnHover:h}=Ve(),K=Le(),F=L(y,P.isActive,c.index),D=L(y,P.isSelected,c.index,o),ee=L(y,P.isSelectedByFocus,c.index),ce=L(y,P.isItemEqualToValue),J=c.index,B=J!==-1,ne=i.useRef(null),A=ke(J);Q(()=>{if(!B)return;const O=g.current;return O[J]=o,()=>{delete O[J]}},[B,J,o,g]),Q(()=>{if(!B)return;const O=y.state.value;let $=O;d&&Array.isArray(O)&&O.length>0&&($=O[O.length-1]),$!==void 0&&Ke(o,$,ce)&&y.set("selectedIndex",J)},[B,J,d,ce,y,o]);const se={disabled:u,selected:D,highlighted:F},q=v({active:F,selected:D});q.onFocus=void 0,q.id=void 0;const E=i.useRef(null),z=i.useRef("mouse"),S=i.useRef(!1),{getButtonProps:C,buttonRef:te}=Zt({disabled:u,focusableWhenDisabled:!0,native:f});function I(O){const $=y.state.value;if(d){const oe=Array.isArray($)?$:[],ve=D?hr(oe,o,ce):[...oe,o];b(ve,be(Rt,O))}else b(o,be(Rt,O)),T(!1,be(Rt,O))}const Y={role:"option","aria-selected":D,tabIndex:F?0:-1,onFocus(){y.set("activeIndex",J)},onMouseEnter(){!m.current&&y.state.selectedIndex===null&&h&&y.set("activeIndex",J)},onMouseMove(){h&&y.set("activeIndex",J)},onMouseLeave(O){!h||m.current||gn(O)||K.start(0,()=>{y.state.activeIndex===J&&y.set("activeIndex",null)})},onTouchStart(){w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(O){E.current=O.key,y.set("activeIndex",J)},onClick(O){S.current=!1,!(O.type==="keydown"&&E.current===null)&&(u||E.current===" "&&a.current||z.current!=="touch"&&!F||(E.current=null,I(O.nativeEvent)))},onPointerEnter(O){z.current=O.pointerType},onPointerDown(O){z.current=O.pointerType,S.current=!0},onMouseUp(O){if(u)return;if(S.current){S.current=!1;return}const $=!w.current.allowSelectedMouseUp&&D,oe=!w.current.allowUnselectedMouseUp&&!D;$||oe||z.current!=="touch"&&!F||I(O.nativeEvent)}},k=Ne("div",e,{ref:[te,n,c.ref,ne],state:se,props:[q,Y,p,C]}),ae=i.useMemo(()=>({selected:D,indexRef:A,textRef:x,selectedByFocus:ee,hasRegistered:B}),[D,A,x,ee,B]);return U.jsx(hn.Provider,{value:ae,children:k})})),Gr=i.forwardRef(function(e,n){const r=e.keepMounted??!1,{selected:s}=Ot();return r||s?U.jsx(Xr,{...e,ref:n}):null}),Xr=i.memo(i.forwardRef((t,e)=>{const{render:n,className:r,keepMounted:s,...o}=t,{selected:l}=Ot(),u=i.useRef(null),{transitionStatus:f,setMounted:p}=Ct(l),c=Ne("span",t,{ref:[e,u],state:{selected:l,transitionStatus:f},props:[{"aria-hidden":!0,children:"✔️"},o],stateAttributesMapping:tn});return gt({open:l,ref:u,onComplete(){l||p(!1)}}),c})),Jr=i.memo(i.forwardRef(function(e,n){const{indexRef:r,textRef:s,selectedByFocus:o,hasRegistered:l}=Ot(),{selectedItemTextRef:u}=Ve(),{className:f,render:p,...x}=e,c=i.useCallback(v=>{if(!v||!l)return;const T=u.current===null||!u.current.isConnected;(o||T&&r.current===0)&&(u.current=v)},[u,r,o,l]);return Ne("div",e,{ref:[c,n,s],props:x})})),xn=i.forwardRef(function(e,n){const{render:r,className:s,direction:o,keepMounted:l=!1,...u}=e,{store:f,popupRef:p,listRef:x,handleScrollArrowVisibility:c,scrollArrowsMountedCountRef:y}=Ve(),{side:v,scrollDownArrowRef:T,scrollUpArrowRef:b}=Pt(),w=o==="up"?P.scrollUpArrowVisible:P.scrollDownArrowVisible,a=L(f,w),g=L(f,P.openMethod),m=a&&g!=="touch",d=Le(),h=o==="up"?b:T,{transitionStatus:K,setMounted:F}=Ct(m);Q(()=>(y.current+=1,f.state.hasScrollArrows||f.set("hasScrollArrows",!0),()=>{y.current=Math.max(0,y.current-1),y.current===0&&f.state.hasScrollArrows&&f.set("hasScrollArrows",!1)}),[f,y]),gt({open:m,ref:h,onComplete(){m||F(!1)}});const ce=Ne("div",e,{ref:[n,h],state:{direction:o,visible:m,side:v,transitionStatus:K},props:[{"aria-hidden":!0,children:o==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(B){if(B.movementX===0&&B.movementY===0||d.isStarted())return;f.set("activeIndex",null);function ne(){const A=f.state.listElement??p.current;if(!A)return;f.set("activeIndex",null),c();const se=A.scrollTop===0,q=Math.round(A.scrollTop+A.clientHeight)>=A.scrollHeight;if(x.current.length===0&&(o==="up"?f.set("scrollUpArrowVisible",!se):f.set("scrollDownArrowVisible",!q)),o==="up"&&se||o==="down"&&q){d.clear();return}if((f.state.listElement||p.current)&&x.current&&x.current.length>0){const z=x.current,S=h.current?.offsetHeight||0;if(o==="up"){let C=0;const te=A.scrollTop+S;for(let Y=0;Y=te){C=Y;break}}const I=Math.max(0,C-1);if(Ite){C=Math.max(0,Y-1);break}}const I=Math.min(z.length-1,C+1);if(I>C){const Y=z[I];Y&&(A.scrollTop=Y.offsetTop+Y.offsetHeight-A.clientHeight+S)}else A.scrollTop=A.scrollHeight-A.clientHeight}}d.start(40,ne)}d.start(40,ne)},onMouseLeave(){d.clear()}},u]});return m||l?ce:null}),Zr=i.forwardRef(function(e,n){return U.jsx(xn,{...e,ref:n,direction:"down"})}),Qr=i.forwardRef(function(e,n){return U.jsx(xn,{...e,ref:n,direction:"up"})}),io=Sr;function lo(t){const e=qe.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("flex flex-1 text-left",n),e[3]=n,e[4]=s):s=e[4];let o;return e[5]!==r||e[6]!==s?(o=U.jsx(Er,{className:s,"data-slot":"select-value",...r}),e[5]=r,e[6]=s,e[7]=o):o=e[7],o}function co(t){const e=qe.c(15);let n,r,s,o,l;e[0]!==t?({className:r,size:l,id:s,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=l):(n=e[1],r=e[2],s=e[3],o=e[4],l=e[5]);const u=l===void 0?"default":l;let f;e[6]!==r?(f=Ye("flex w-fit items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed outline-none transition-colors 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-[size=default]:h-7 data-[size=sm]:h-6 data-placeholder:text-muted-foreground *: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:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0",r),e[6]=r,e[7]=f):f=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=U.jsx(Cr,{render:U.jsx(on,{className:"pointer-events-none size-3.5 text-muted-foreground"})}),e[8]=p):p=e[8];let x;return e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==u||e[13]!==f?(x=U.jsxs(Tr,{className:f,"data-size":u,"data-slot":"select-trigger",id:s,...o,children:[n,p]}),e[9]=n,e[10]=s,e[11]=o,e[12]=u,e[13]=f,e[14]=x):x=e[14],x}function ao(t){const e=qe.c(26);let n,r,s,o,l,u,f,p;e[0]!==t?({className:r,children:n,side:o,sideOffset:l,align:u,alignOffset:f,alignItemWithTrigger:p,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=o,e[5]=l,e[6]=u,e[7]=f,e[8]=p):(n=e[1],r=e[2],s=e[3],o=e[4],l=e[5],u=e[6],f=e[7],p=e[8]);const x=o===void 0?"bottom":o,c=l===void 0?4:l,y=u===void 0?"center":u,v=f===void 0?0:f,T=p===void 0?!0:p;let b;e[9]!==r?(b=Ye("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 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",r),e[9]=r,e[10]=b):b=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=U.jsx(eo,{}),e[11]=w):w=e[11];let a;e[12]!==n?(a=U.jsx(Kr,{children:n}),e[12]=n,e[13]=a):a=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=U.jsx(to,{}),e[14]=g):g=e[14];let m;e[15]!==s||e[16]!==b||e[17]!==a?(m=U.jsxs(Wr,{className:b,"data-slot":"select-content",...s,children:[w,a,g]}),e[15]=s,e[16]=b,e[17]=a,e[18]=m):m=e[18];let d;return e[19]!==y||e[20]!==T||e[21]!==v||e[22]!==x||e[23]!==c||e[24]!==m?(d=U.jsx(Pr,{children:U.jsx(Hr,{align:y,alignItemWithTrigger:T,alignOffset:v,className:"isolate z-50",side:x,sideOffset:c,children:m})}),e[19]=y,e[20]=T,e[21]=v,e[22]=x,e[23]=c,e[24]=m,e[25]=d):d=e[25],d}function uo(t){const e=qe.c(13);let n,r,s;e[0]!==t?({className:r,children:n,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let o;e[4]!==r?(o=Ye("relative flex min-h-7 w-full cursor-default select-none items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden 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:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",r),e[4]=r,e[5]=o):o=e[5];let l;e[6]!==n?(l=U.jsx(Jr,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:n}),e[6]=n,e[7]=l):l=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=U.jsx(Gr,{render:U.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center"}),children:U.jsx(Xn,{className:"pointer-events-none"})}),e[8]=u):u=e[8];let f;return e[9]!==s||e[10]!==o||e[11]!==l?(f=U.jsxs(Yr,{className:o,"data-slot":"select-item",...s,children:[l,u]}),e[9]=s,e[10]=o,e[11]=l,e[12]=f):f=e[12],f}function eo(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("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),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=U.jsx(rr,{}),e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==s?(l=U.jsx(Qr,{className:s,"data-slot":"select-scroll-up-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=l):l=e[8],l}function to(t){const e=qe.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=Ye("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),e[3]=n,e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=U.jsx(on,{}),e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==s?(l=U.jsx(Zr,{className:s,"data-slot":"select-scroll-down-button",...r,children:o}),e[6]=r,e[7]=s,e[8]=l):l=e[8],l}export{io as S,co as a,lo as b,ao as c,uo as d}; diff --git a/hive/services/hiveui/frontend/dist/assets/state-badge.js b/hive/services/hiveui/frontend/dist/assets/state-badge.js index 9ac089b11..6ea02ef19 100644 --- a/hive/services/hiveui/frontend/dist/assets/state-badge.js +++ b/hive/services/hiveui/frontend/dist/assets/state-badge.js @@ -1 +1 @@ -import{c as g,j as l}from"./index.js";function i(d){const t=g.c(3),{state:e}=d;let r="bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100";e==="running"||e==="available"||e==="completed"?r="bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100":e==="stopped"||e==="error"?r="bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100":e==="pending"||e==="shutting-down"||e==="stopping"?r="bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100":e==="terminated"&&(r="bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400");const n=`rounded-full px-2 py-1 text-xs ${r}`;let a;return t[0]!==e||t[1]!==n?(a=l.jsx("div",{className:n,children:e}),t[0]=e,t[1]=n,t[2]=a):a=t[2],a}export{i as S}; +import{c as g,j as i}from"./index.js";function s(d){const t=g.c(3),{state:e}=d;let r="bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100";e==="running"||e==="available"||e==="completed"||e==="Active"?r="bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100":e==="stopped"||e==="error"?r="bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100":e==="pending"||e==="shutting-down"||e==="stopping"?r="bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100":e==="terminated"&&(r="bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400");const n=`rounded-full px-2 py-1 text-xs ${r}`;let a;return t[0]!==e||t[1]!==n?(a=i.jsx("div",{className:n,children:e}),t[0]=e,t[1]=n,t[2]=a):a=t[2],a}export{s as S}; diff --git a/hive/services/hiveui/frontend/dist/assets/trash-2.js b/hive/services/hiveui/frontend/dist/assets/trash-2.js index 29ecf602b..8f332dca0 100644 --- a/hive/services/hiveui/frontend/dist/assets/trash-2.js +++ b/hive/services/hiveui/frontend/dist/assets/trash-2.js @@ -1 +1 @@ -import{k as a}from"./index.js";const t=[["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"}]],o=a("trash-2",t);export{o as T}; +import{J as a}from"./index.js";const t=[["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"}]],o=a("trash-2",t);export{o as T}; diff --git a/hive/services/hiveui/frontend/dist/assets/triangle-alert.js b/hive/services/hiveui/frontend/dist/assets/triangle-alert.js new file mode 100644 index 000000000..1a6d91957 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/triangle-alert.js @@ -0,0 +1 @@ +import{J as e}from"./index.js";const a=[["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"}]],o=e("triangle-alert",a);export{o as T}; diff --git a/hive/services/hiveui/frontend/dist/assets/upload-button.js b/hive/services/hiveui/frontend/dist/assets/upload-button.js index 1a19a3961..2651a62bc 100644 --- a/hive/services/hiveui/frontend/dist/assets/upload-button.js +++ b/hive/services/hiveui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{k as u,H as g,D as j,E as b,F as y,G as k,I as C,c as w,j as e,L as v,r as f,J as D,K as N,B as A}from"./index.js";import{E as M}from"./error-banner.js";import{g as S,f as E,b as R,a as L,c as O,d as z,e as B,h as F}from"./alert-dialog.js";import{g as $,b as P,c as U}from"./s3.js";import{D as _}from"./download.js";import{T}from"./trash-2.js";const H=[["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"}]],I=u("file",H);const G=[["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"}]],K=u("folder",G);const q=[["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"}]],V=u("upload",q),W=l=>(t,a)=>async r=>{const n=await t(r),{response:s}=n;if(g.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{j(s.headers.expires)}catch(o){a.logger?.warn(`AWS SDK Warning for ${a.clientName}::${a.commandName} response parsing (${s.headers.expires}): ${o}`),delete s.headers.expires}}return n},J={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},Z=l=>({applyToStack:t=>{t.addRelativeTo(W(),J)}});class Q extends b.classBuilder().ep({...y,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,a,r,n){return[k(r,t.getEndpointParameterInstructions()),$(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),P(r),Z()]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(C).build(){}function re(l){const t=w.c(9),{folderName:a,fullPrefix:r,bucketName:n}=l;let s;t[0]!==n||t[1]!==r?(s={bucket:n,_splat:r},t[0]=n,t[1]=r,t[2]=s):s=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(K,{className:"size-5 text-muted-foreground"}),t[3]=o):o=t[3];let i;t[4]!==a?(i=e.jsx("span",{className:"font-medium",children:a}),t[4]=a,t[5]=i):i=t[5];let c;return t[6]!==s||t[7]!==i?(c=e.jsxs(v,{className:"flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent",params:s,to:"/s3/ls/$bucket/$",children:[o,i]}),t[6]=s,t[7]=i,t[8]=c):c=t[8],c}function ne({object:l,bucketName:t,displayName:a,fullKey:r}){const[n,s]=f.useState(!1),o=U();async function i(){try{const m=new Q({Bucket:t,Key:r}),p=await N().send(m);if(p.Body){const x=await p.Body.transformToByteArray(),h=URL.createObjectURL(new Blob([x])),d=document.createElement("a");d.href=h,d.download=a,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(h)}}catch{throw new Error("Failed to download object")}}async function c(){try{await o.mutateAsync({bucket:t,key:r})}finally{s(!1)}}return e.jsxs("div",{children:[o.error&&e.jsx(M,{error:o.error,msg:"Failed to delete object"}),e.jsxs("div",{className:"flex items-center justify-between rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(I,{className:"size-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:a}),l.LastModified&&e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Last Modified: ",l.LastModified.toLocaleString()]})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"text-muted-foreground text-sm",children:D(l.Size||0)}),e.jsx("button",{className:"rounded-md p-2 transition-colors hover:bg-accent",onClick:i,type:"button",children:e.jsx(_,{className:"size-4"})}),e.jsx("button",{className:"rounded-md p-2 text-destructive transition-colors hover:bg-accent",onClick:()=>s(!0),type:"button",children:e.jsx(T,{className:"size-4"})})]}),e.jsx(S,{onOpenChange:s,open:n,children:e.jsxs(E,{children:[e.jsxs(R,{children:[e.jsx(L,{children:"Delete Object"}),e.jsxs(O,{children:["Are you sure you want to delete ",e.jsx("strong",{children:a}),"? This action cannot be undone."]})]}),e.jsxs(z,{children:[e.jsx(B,{children:"Cancel"}),e.jsx(F,{className:"bg-destructive hover:bg-destructive/90",onClick:c,children:o.isPending?"Deleting…":"Delete"})]})]})})]})]},l.Key)}function oe({bucket:l,prefix:t="",isPending:a,onUpload:r}){const n=f.useRef(null);async function s(o){const i=o.target.files;if(!(!i||i.length===0))try{await Promise.all(Array.from(i).map(c=>{const m=`${t}${c.name}`;return r({bucket:l,key:m,file:c})}))}finally{n.current&&(n.current.value="")}}return e.jsxs(e.Fragment,{children:[e.jsx("input",{accept:"*/*","aria-label":"Choose files to upload",className:"hidden",multiple:!0,onChange:s,ref:n,type:"file"}),e.jsxs(A,{disabled:a,onClick:()=>n.current?.click(),size:"sm",children:[e.jsx(V,{className:"mr-2 size-4"}),a?"Uploading…":"Upload Files"]})]})}export{re as F,ne as O,oe as U}; +import{J as u,K as g,M as j,N as b,P as y,Q as k,S as C,c as w,j as e,L as v,r as f,T as N,U as D,B as A}from"./index.js";import{E as M}from"./error-banner.js";import{g as S,f as R,b as E,a as L,c as O,d as z,e as B,h as $}from"./alert-dialog.js";import{g as F,b as P,c as U}from"./s3.js";import{D as T}from"./download.js";import{T as _}from"./trash-2.js";const H=[["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"}]],I=u("file",H);const K=[["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"}]],q=u("folder",K);const G=[["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"}]],V=u("upload",G),W=l=>(t,a)=>async r=>{const n=await t(r),{response:s}=n;if(g.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{j(s.headers.expires)}catch(o){a.logger?.warn(`AWS SDK Warning for ${a.clientName}::${a.commandName} response parsing (${s.headers.expires}): ${o}`),delete s.headers.expires}}return n},J={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},Q=l=>({applyToStack:t=>{t.addRelativeTo(W(),J)}});class Z extends b.classBuilder().ep({...y,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,a,r,n){return[k(r,t.getEndpointParameterInstructions()),F(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),P(r),Q()]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(C).build(){}function re(l){const t=w.c(9),{folderName:a,fullPrefix:r,bucketName:n}=l;let s;t[0]!==n||t[1]!==r?(s={bucket:n,_splat:r},t[0]=n,t[1]=r,t[2]=s):s=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(q,{className:"size-5 text-muted-foreground"}),t[3]=o):o=t[3];let i;t[4]!==a?(i=e.jsx("span",{className:"font-medium",children:a}),t[4]=a,t[5]=i):i=t[5];let c;return t[6]!==s||t[7]!==i?(c=e.jsxs(v,{className:"flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent",params:s,to:"/s3/ls/$bucket/$",children:[o,i]}),t[6]=s,t[7]=i,t[8]=c):c=t[8],c}function ne({object:l,bucketName:t,displayName:a,fullKey:r}){const[n,s]=f.useState(!1),o=U();async function i(){try{const m=new Z({Bucket:t,Key:r}),p=await D().send(m);if(p.Body){const x=await p.Body.transformToByteArray(),h=URL.createObjectURL(new Blob([x])),d=document.createElement("a");d.href=h,d.download=a,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(h)}}catch{throw new Error("Failed to download object")}}async function c(){try{await o.mutateAsync({bucket:t,key:r})}finally{s(!1)}}return e.jsxs("div",{children:[o.error&&e.jsx(M,{error:o.error,msg:"Failed to delete object"}),e.jsxs("div",{className:"flex items-center justify-between rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(I,{className:"size-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:a}),l.LastModified&&e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Last Modified: ",l.LastModified.toLocaleString()]})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"text-muted-foreground text-sm",children:N(l.Size||0)}),e.jsx("button",{className:"rounded-md p-2 transition-colors hover:bg-accent",onClick:i,type:"button",children:e.jsx(T,{className:"size-4"})}),e.jsx("button",{className:"rounded-md p-2 text-destructive transition-colors hover:bg-accent",onClick:()=>s(!0),type:"button",children:e.jsx(_,{className:"size-4"})})]}),e.jsx(S,{onOpenChange:s,open:n,children:e.jsxs(R,{children:[e.jsxs(E,{children:[e.jsx(L,{children:"Delete Object"}),e.jsxs(O,{children:["Are you sure you want to delete ",e.jsx("strong",{children:a}),"? This action cannot be undone."]})]}),e.jsxs(z,{children:[e.jsx(B,{children:"Cancel"}),e.jsx($,{className:"bg-destructive hover:bg-destructive/90",onClick:c,children:o.isPending?"Deleting…":"Delete"})]})]})})]})]},l.Key)}function oe({bucket:l,prefix:t="",isPending:a,onUpload:r}){const n=f.useRef(null);async function s(o){const i=o.target.files;if(!(!i||i.length===0))try{await Promise.all(Array.from(i).map(c=>{const m=`${t}${c.name}`;return r({bucket:l,key:m,file:c})}))}finally{n.current&&(n.current.value="")}}return e.jsxs(e.Fragment,{children:[e.jsx("input",{accept:"*/*","aria-label":"Choose files to upload",className:"hidden",multiple:!0,onChange:s,ref:n,type:"file"}),e.jsxs(A,{disabled:a,onClick:()=>n.current?.click(),size:"sm",children:[e.jsx(V,{className:"mr-2 size-4"}),a?"Uploading…":"Upload Files"]})]})}export{re as F,ne as O,oe as U}; diff --git a/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js index f9e028a60..9f90e8eba 100644 --- a/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js +++ b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js @@ -1 +1 @@ -import{cs as J,cA as N,cB as l,ct as Q,cC as g,cx as x,cD as M,cE as B,cF as K,cG as C,cH as X,cI as Y,cJ as A,cw as z,r as d,cy as V,aj as Z}from"./index.js";var $=class extends J{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=N(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#u;#r;#i;#b;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),j(this.#t,this.options)?this.#c():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),e._defaulted&&!Q(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&H(this.#t,s,this.options,e)&&this.#c(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||g(this.options.staleTime,this.#t)!==g(e.staleTime,this.#t))&&this.#v();const i=this.#R();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||i!==this.#a)&&this.#m(i)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return tt(this,s)&&(this.#e=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#c(t){this.#E();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(x)),e}#v(){this.#y();const t=g(this.options.staleTime,this.#t);if(M||this.#e.isStale||!B(t))return;const s=K(this.#e.dataUpdatedAt,t)+1;this.#o=C.setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#R(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#m(t){this.#S(),this.#a=t,!(M||l(this.options.enabled,this.#t)===!1||!B(this.#a)||this.#a===0)&&(this.#h=C.setInterval(()=>{(this.options.refetchIntervalInBackground||X.isFocused())&&this.#c()},this.#a))}#g(){this.#v(),this.#m(this.#R())}#y(){this.#o&&(C.clearTimeout(this.#o),this.#o=void 0)}#S(){this.#h&&(C.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,r=this.options,i=this.#e,u=this.#n,n=this.#u,v=t!==s?t.state:this.#p,{state:h}=t;let a={...h},R=!1,o;if(e._optimisticResults){const c=this.hasListeners(),m=!c&&j(t,e),S=c&&H(t,s,e,r);(m||S)&&(a={...a,...Y(h.data,t.options)}),e._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:y,errorUpdatedAt:U,status:b}=a;o=a.data;let D=!1;if(e.placeholderData!==void 0&&o===void 0&&b==="pending"){let c;i?.isPlaceholderData&&e.placeholderData===n?.placeholderData?(c=i.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(b="success",o=A(i?.data,c,e),R=!0)}if(e.select&&o!==void 0&&!D)if(i&&o===u?.data&&e.select===this.#b)o=this.#l;else try{this.#b=e.select,o=e.select(o),o=A(i?.data,o,e),this.#l=o,this.#i=null}catch(c){this.#i=c}this.#i&&(y=this.#i,o=this.#l,U=Date.now(),b="error");const I=a.fetchStatus==="fetching",T=b==="pending",w=b==="error",F=T&&I,k=o!==void 0,p={status:b,fetchStatus:a.fetchStatus,isPending:T,isSuccess:b==="success",isError:w,isInitialLoading:F,isLoading:F,data:o,dataUpdatedAt:a.dataUpdatedAt,error:y,errorUpdatedAt:U,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>v.dataUpdateCount||a.errorUpdateCount>v.errorUpdateCount,isFetching:I,isRefetching:I&&!T,isLoadingError:w&&!k,isPaused:a.fetchStatus==="paused",isPlaceholderData:R,isRefetchError:w&&k,isStale:P(t,e),refetch:this.refetch,promise:this.#r,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=p.data!==void 0,m=p.status==="error"&&!c,S=O=>{m?O.reject(p.error):c&&O.resolve(p.data)},L=()=>{const O=this.#r=p.promise=N();S(O)},E=this.#r;switch(E.status){case"pending":t.queryHash===s.queryHash&&S(E);break;case"fulfilled":(m||p.data!==E.value)&&L();break;case"rejected":(!m||p.error!==E.reason)&&L();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),Q(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#f.size)return!0;const u=new Set(i??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(n=>{const f=n;return this.#e[f]!==t[f]&&u.has(f)})};this.#O({listeners:s()})}#E(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#O(t){z.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function q(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function j(t,e){return q(t,e)||t.state.data!==void 0&&_(t,e,e.refetchOnMount)}function _(t,e,s){if(l(e.enabled,t)!==!1&&g(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&P(t,e)}return!1}function H(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&P(t,s)}function P(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(g(e.staleTime,t))}function tt(t,e){return!Q(t.getCurrentResult(),e)}var G=d.createContext(!1),et=()=>d.useContext(G);G.Provider;function st(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rt=d.createContext(st()),it=()=>d.useContext(rt),at=(t,e,s)=>{const r=s?.state.error&&typeof t.throwOnError=="function"?V(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},nt=t=>{d.useEffect(()=>{t.clearReset()},[t])},ot=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||V(s,[t.error,r])),ht=(t,e)=>e.state.data===void 0,ct=t=>{if(t.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},ut=(t,e)=>t.isLoading&&t.isFetching&&!e,lt=(t,e)=>t?.suspense&&e.isPending,W=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function dt(t,e,s){const r=et(),i=it(),u=Z(),n=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(n);const f=u.getQueryCache().get(n.queryHash);n._optimisticResults=r?"isRestoring":"optimistic",ct(n),at(n,i,f),nt(i);const v=!u.getQueryCache().get(n.queryHash),[h]=d.useState(()=>new e(u,n)),a=h.getOptimisticResult(n),R=!r&&t.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(o=>{const y=R?h.subscribe(z.batchCalls(o)):x;return h.updateResult(),y},[h,R]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),d.useEffect(()=>{h.setOptions(n)},[n,h]),lt(n,a))throw W(n,h,i);if(ot({result:a,errorResetBoundary:i,throwOnError:n.throwOnError,query:f,suspense:n.suspense}))throw a.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(n,a),n.experimental_prefetchInRender&&!M&&ut(a,r)&&(v?W(n,h,i):f?.promise)?.catch(x).finally(()=>{h.updateResult()}),n.notifyOnChangeProps?a:h.trackResult(a)}function bt(t,e){return dt({...t,enabled:!0,suspense:!0,throwOnError:ht,placeholderData:void 0},$)}export{bt as u}; +import{ba as G,bb as N,bc as l,bd as Q,be as g,bf as M,bg as _,bh as B,bi as J,bj as C,bk as X,bl as Y,bm as j,bn as z,r as d,bo as V,aq as Z}from"./index.js";var $=class extends G{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=N(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#u;#r;#i;#b;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),A(this.#t,this.options)?this.#c():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return x(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return x(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),e._defaulted&&!Q(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&H(this.#t,s,this.options,e)&&this.#c(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||g(this.options.staleTime,this.#t)!==g(e.staleTime,this.#t))&&this.#v();const i=this.#R();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||i!==this.#a)&&this.#m(i)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return tt(this,s)&&(this.#e=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#c(t){this.#O();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(M)),e}#v(){this.#y();const t=g(this.options.staleTime,this.#t);if(_||this.#e.isStale||!B(t))return;const s=J(this.#e.dataUpdatedAt,t)+1;this.#o=C.setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#R(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#m(t){this.#S(),this.#a=t,!(_||l(this.options.enabled,this.#t)===!1||!B(this.#a)||this.#a===0)&&(this.#h=C.setInterval(()=>{(this.options.refetchIntervalInBackground||X.isFocused())&&this.#c()},this.#a))}#g(){this.#v(),this.#m(this.#R())}#y(){this.#o&&(C.clearTimeout(this.#o),this.#o=void 0)}#S(){this.#h&&(C.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,r=this.options,i=this.#e,u=this.#n,n=this.#u,v=t!==s?t.state:this.#p,{state:h}=t;let a={...h},R=!1,o;if(e._optimisticResults){const c=this.hasListeners(),m=!c&&A(t,e),S=c&&H(t,s,e,r);(m||S)&&(a={...a,...Y(h.data,t.options)}),e._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:y,errorUpdatedAt:U,status:b}=a;o=a.data;let D=!1;if(e.placeholderData!==void 0&&o===void 0&&b==="pending"){let c;i?.isPlaceholderData&&e.placeholderData===n?.placeholderData?(c=i.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(b="success",o=j(i?.data,c,e),R=!0)}if(e.select&&o!==void 0&&!D)if(i&&o===u?.data&&e.select===this.#b)o=this.#l;else try{this.#b=e.select,o=e.select(o),o=j(i?.data,o,e),this.#l=o,this.#i=null}catch(c){this.#i=c}this.#i&&(y=this.#i,o=this.#l,U=Date.now(),b="error");const I=a.fetchStatus==="fetching",T=b==="pending",w=b==="error",F=T&&I,k=o!==void 0,p={status:b,fetchStatus:a.fetchStatus,isPending:T,isSuccess:b==="success",isError:w,isInitialLoading:F,isLoading:F,data:o,dataUpdatedAt:a.dataUpdatedAt,error:y,errorUpdatedAt:U,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>v.dataUpdateCount||a.errorUpdateCount>v.errorUpdateCount,isFetching:I,isRefetching:I&&!T,isLoadingError:w&&!k,isPaused:a.fetchStatus==="paused",isPlaceholderData:R,isRefetchError:w&&k,isStale:P(t,e),refetch:this.refetch,promise:this.#r,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=p.data!==void 0,m=p.status==="error"&&!c,S=E=>{m?E.reject(p.error):c&&E.resolve(p.data)},L=()=>{const E=this.#r=p.promise=N();S(E)},O=this.#r;switch(O.status){case"pending":t.queryHash===s.queryHash&&S(O);break;case"fulfilled":(m||p.data!==O.value)&&L();break;case"rejected":(!m||p.error!==O.reason)&&L();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),Q(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#f.size)return!0;const u=new Set(i??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(n=>{const f=n;return this.#e[f]!==t[f]&&u.has(f)})};this.#E({listeners:s()})}#O(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#E(t){z.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function q(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function A(t,e){return q(t,e)||t.state.data!==void 0&&x(t,e,e.refetchOnMount)}function x(t,e,s){if(l(e.enabled,t)!==!1&&g(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&P(t,e)}return!1}function H(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&P(t,s)}function P(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(g(e.staleTime,t))}function tt(t,e){return!Q(t.getCurrentResult(),e)}var K=d.createContext(!1),et=()=>d.useContext(K);K.Provider;function st(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rt=d.createContext(st()),it=()=>d.useContext(rt),at=(t,e,s)=>{const r=s?.state.error&&typeof t.throwOnError=="function"?V(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},nt=t=>{d.useEffect(()=>{t.clearReset()},[t])},ot=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||V(s,[t.error,r])),ht=(t,e)=>e.state.data===void 0,ct=t=>{if(t.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},ut=(t,e)=>t.isLoading&&t.isFetching&&!e,lt=(t,e)=>t?.suspense&&e.isPending,W=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function dt(t,e,s){const r=et(),i=it(),u=Z(),n=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(n);const f=u.getQueryCache().get(n.queryHash);n._optimisticResults=r?"isRestoring":"optimistic",ct(n),at(n,i,f),nt(i);const v=!u.getQueryCache().get(n.queryHash),[h]=d.useState(()=>new e(u,n)),a=h.getOptimisticResult(n),R=!r&&t.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(o=>{const y=R?h.subscribe(z.batchCalls(o)):M;return h.updateResult(),y},[h,R]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),d.useEffect(()=>{h.setOptions(n)},[n,h]),lt(n,a))throw W(n,h,i);if(ot({result:a,errorResetBoundary:i,throwOnError:n.throwOnError,query:f,suspense:n.suspense}))throw a.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(n,a),n.experimental_prefetchInRender&&!_&&ut(a,r)&&(v?W(n,h,i):f?.promise)?.catch(M).finally(()=>{h.updateResult()}),n.notifyOnChangeProps?a:h.trackResult(a)}function bt(t,e){return dt({...t,enabled:!0,suspense:!0,throwOnError:ht,placeholderData:void 0},$)}export{bt as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/zod.js b/hive/services/hiveui/frontend/dist/assets/zod.js index deabe5905..67d613a37 100644 --- a/hive/services/hiveui/frontend/dist/assets/zod.js +++ b/hive/services/hiveui/frontend/dist/assets/zod.js @@ -1 +1 @@ -import{ar as m,as as pt,at as Ut,au as Tt}from"./index.js";var ge=e=>e.type==="checkbox",ae=e=>e instanceof Date,z=e=>e==null;const ft=e=>typeof e=="object";var U=e=>!z(e)&&!Array.isArray(e)&&ft(e)&&!ae(e),dt=e=>U(e)&&e.target?ge(e.target)?e.target.checked:e.target.value:e,Lt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yt=(e,i)=>e.has(Lt(i)),Mt=e=>{const i=e.constructor&&e.constructor.prototype;return U(i)&&i.hasOwnProperty("isPrototypeOf")},Re=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function R(e){if(e instanceof Date)return new Date(e);const i=typeof FileList<"u"&&e instanceof FileList;if(Re&&(e instanceof Blob||i))return e;const t=Array.isArray(e);if(!t&&!(U(e)&&Mt(e)))return e;const r=t?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=R(e[o]));return r}var Ve=e=>/^\w*$/.test(e),O=e=>e===void 0,pe=e=>Array.isArray(e)?e.filter(Boolean):[],Ue=e=>pe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),y=(e,i,t)=>{if(!i||!U(e))return t;const r=(Ve(i)?[i]:Ue(i)).reduce((o,a)=>z(o)?o:o[a],e);return O(r)||r===e?O(e[i])?t:e[i]:r},Z=e=>typeof e=="boolean",H=e=>typeof e=="function",C=(e,i,t)=>{let r=-1;const o=Ve(i)?[i]:Ue(i),a=o.length,l=a-1;for(;++rm.useContext(ht);var gt=(e,i,t,r=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const l=a;return i._proxyFormState[l]!==Q.all&&(i._proxyFormState[l]=!r||Q.all),t&&(t[l]=!0),e[l]}});return o};const Le=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Nt(e){const i=Te(),{control:t=i,disabled:r,name:o,exact:a}=e||{},[l,c]=m.useState(t._formState),x=m.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Le(()=>t._subscribe({name:o,formState:x.current,exact:a,callback:S=>{!r&&c({...t._formState,...S})}}),[o,r,a]),m.useEffect(()=>{x.current.isValid&&t._setValid(!0)},[t]),m.useMemo(()=>gt(l,t,x.current,!1),[l,t])}var G=e=>typeof e=="string",De=(e,i,t,r,o)=>G(e)?(r&&i.watch.add(e),y(t,e,o)):Array.isArray(e)?e.map(a=>(r&&i.watch.add(a),y(t,a))):(r&&(i.watchAll=!0),t),Ce=e=>z(e)||!ft(e);function X(e,i,t=new WeakSet){if(Ce(e)||Ce(i))return Object.is(e,i);if(ae(e)&&ae(i))return Object.is(e.getTime(),i.getTime());const r=Object.keys(e),o=Object.keys(i);if(r.length!==o.length)return!1;if(t.has(e)||t.has(i))return!0;t.add(e),t.add(i);for(const a of r){const l=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const c=i[a];if(ae(l)&&ae(c)||U(l)&&U(c)||Array.isArray(l)&&Array.isArray(c)?!X(l,c,t):!Object.is(l,c))return!1}}return!0}function It(e){const i=Te(),{control:t=i,name:r,defaultValue:o,disabled:a,exact:l,compute:c}=e||{},x=m.useRef(o),S=m.useRef(c),I=m.useRef(void 0),v=m.useRef(t),E=m.useRef(r);S.current=c;const[_,B]=m.useState(()=>{const V=t._getWatch(r,x.current);return S.current?S.current(V):V}),T=m.useCallback(V=>{const A=De(r,t._names,V||t._formValues,!1,x.current);return S.current?S.current(A):A},[t._formValues,t._names,r]),N=m.useCallback(V=>{if(!a){const A=De(r,t._names,V||t._formValues,!1,x.current);if(S.current){const $=S.current(A);X($,I.current)||(B($),I.current=$)}else B(A)}},[t._formValues,t._names,a,r]);Le(()=>((v.current!==t||!X(E.current,r))&&(v.current=t,E.current=r,N()),t._subscribe({name:r,formState:{values:!0},exact:l,callback:V=>{N(V.values)}})),[t,l,r,N]),m.useEffect(()=>t._removeUnmounted());const L=v.current!==t,b=E.current,j=m.useMemo(()=>{if(a)return null;const V=!L&&!X(b,r);return L||V?T():null},[a,L,r,b,T]);return j!==null?j:_}function Pt(e){const i=Te(),{name:t,disabled:r,control:o=i,shouldUnregister:a,defaultValue:l,exact:c=!0}=e,x=yt(o._names.array,t),S=m.useMemo(()=>y(o._formValues,t,y(o._defaultValues,t,l)),[o,t,l]),I=It({control:o,name:t,defaultValue:S,exact:c}),v=Nt({control:o,name:t,exact:c}),E=m.useRef(e),_=m.useRef(void 0),B=m.useRef(o.register(t,{...e.rules,value:I,...Z(e.disabled)?{disabled:e.disabled}:{}}));E.current=e;const T=m.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(v.errors,t)},isDirty:{enumerable:!0,get:()=>!!y(v.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!y(v.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!y(v.validatingFields,t)},error:{enumerable:!0,get:()=>y(v.errors,t)}}),[v,t]),N=m.useCallback(V=>B.current.onChange({target:{value:dt(V),name:t},type:me.CHANGE}),[t]),L=m.useCallback(()=>B.current.onBlur({target:{value:y(o._formValues,t),name:t},type:me.BLUR}),[t,o._formValues]),b=m.useCallback(V=>{const A=y(o._fields,t);A&&A._f&&V&&(A._f.ref={focus:()=>H(V.focus)&&V.focus(),select:()=>H(V.select)&&V.select(),setCustomValidity:$=>H(V.setCustomValidity)&&V.setCustomValidity($),reportValidity:()=>H(V.reportValidity)&&V.reportValidity()})},[o._fields,t]),j=m.useMemo(()=>({name:t,value:I,...Z(r)||v.disabled?{disabled:v.disabled||r}:{},onChange:N,onBlur:L,ref:b}),[t,r,v.disabled,N,L,b,I]);return m.useEffect(()=>{const V=o._options.shouldUnregister||a,A=_.current;A&&A!==t&&!x&&o.unregister(A),o.register(t,{...E.current.rules,...Z(E.current.disabled)?{disabled:E.current.disabled}:{}});const $=(te,re)=>{const ee=y(o._fields,te);ee&&ee._f&&(ee._f.mount=re)};if($(t,!0),V){const te=R(y(o._options.defaultValues,t,E.current.defaultValue));C(o._defaultValues,t,te),O(y(o._formValues,t))&&C(o._formValues,t,te)}return!x&&o.register(t),_.current=t,()=>{(x?V&&!o._state.action:V)?o.unregister(t):$(t,!1)}},[t,o,x,a]),m.useEffect(()=>{o._setDisabledField({disabled:r,name:t})},[r,t,o]),m.useMemo(()=>({field:j,formState:v,fieldState:T}),[j,v,T])}const ar=e=>e.render(Pt(e)),Bt=m.createContext(null);Bt.displayName="HookFormContext";var Me=(e,i,t,r,o)=>i?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:o||!0}}:{},ye=e=>Array.isArray(e)?e:[e],Ye=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}};function vt(e,i){const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],a=i[r];if(o&&U(o)&&a){const l=vt(o,a);U(l)&&(t[r]=l)}else e[r]&&(t[r]=a)}return t}var q=e=>U(e)&&!Object.keys(e).length,Ne=e=>e.type==="file",_e=e=>{if(!Re)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},mt=e=>e.type==="select-multiple",Ie=e=>e.type==="radio",jt=e=>Ie(e)||ge(e),ke=e=>_e(e)&&e.isConnected;function Wt(e,i){const t=i.slice(0,-1).length;let r=0;for(;r{for(const i in e)if(H(e[i]))return!0;return!1};function _t(e){return Array.isArray(e)||U(e)&&!Ht(e)}function Se(e,i={}){for(const t in e){const r=e[t];_t(r)?(i[t]=Array.isArray(r)?[]:{},Se(r,i[t])):O(r)||(i[t]=!0)}return i}function ue(e,i,t){t||(t=Se(i));for(const r in e){const o=e[r];if(_t(o))O(i)||Ce(t[r])?t[r]=Se(o,Array.isArray(o)?[]:{}):ue(o,z(i)?{}:i[r],t[r]);else{const a=i[r];t[r]=!X(o,a)}}return t}const Je={value:!1,isValid:!1},Qe={value:!0,isValid:!0};var bt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!O(e[0].attributes.value)?O(e[0].value)||e[0].value===""?Qe:{value:e[0].value,isValid:!0}:Qe:Je}return Je},Vt=(e,{valueAsNumber:i,valueAsDate:t,setValueAs:r})=>O(e)?e:i?e===""?NaN:e&&+e:t&&G(e)?new Date(e):r?r(e):e;const Xe={isValid:!1,value:null};var Ft=e=>Array.isArray(e)?e.reduce((i,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:i,Xe):Xe;function et(e){const i=e.ref;return Ne(i)?i.files:Ie(i)?Ft(e.refs).value:mt(i)?[...i.selectedOptions].map(({value:t})=>t):ge(i)?bt(e.refs).value:Vt(O(i.value)?e.ref.value:i.value,e)}var $t=(e,i,t,r)=>{const o={};for(const a of e){const l=y(i,a);l&&C(o,a,l._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:r}},be=e=>e instanceof RegExp,de=e=>O(e)?e:be(e)?e.source:U(e)?be(e.value)?e.value.source:e.value:e,tt=e=>({isOnSubmit:!e||e===Q.onSubmit,isOnBlur:e===Q.onBlur,isOnChange:e===Q.onChange,isOnAll:e===Q.all,isOnTouch:e===Q.onTouched});const rt="AsyncFunction";var zt=e=>!!e&&!!e.validate&&!!(H(e.validate)&&e.validate.constructor.name===rt||U(e.validate)&&Object.values(e.validate).find(i=>i.constructor.name===rt)),Kt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),st=(e,i,t)=>!t&&(i.watchAll||i.watch.has(e)||[...i.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const he=(e,i,t,r)=>{for(const o of t||Object.keys(e)){const a=y(e,o);if(a){const{_f:l,...c}=a;if(l){if(l.refs&&l.refs[0]&&i(l.refs[0],o)&&!r)return!0;if(l.ref&&i(l.ref,l.name)&&!r)return!0;if(he(c,i))break}else if(U(c)&&he(c,i))break}}};function it(e,i,t){const r=y(e,t);if(r||Ve(t))return{error:r,name:t};const o=t.split(".");for(;o.length;){const a=o.join("."),l=y(i,a),c=y(e,a);if(l&&!Array.isArray(l)&&t!==a)return{name:t};if(c&&c.type)return{name:a,error:c};if(c&&c.root&&c.root.type)return{name:`${a}.root`,error:c.root};o.pop()}return{name:t}}var Zt=(e,i,t,r)=>{t(e);const{name:o,...a}=e;return q(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(l=>i[l]===(!r||Q.all))},Gt=(e,i,t)=>!e||!i||e===i||ye(e).some(r=>r&&(t?r===i:r.startsWith(i)||i.startsWith(r))),Yt=(e,i,t,r,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(i||e):(t?r.isOnBlur:o.isOnBlur)?!e:(t?r.isOnChange:o.isOnChange)?e:!0,Jt=(e,i)=>!pe(y(e,i)).length&&p(e,i),Qt=(e,i,t)=>{const r=ye(y(e,t));return C(r,"root",i[t]),C(e,t,r),e};function nt(e,i,t="validate"){if(G(e)||Array.isArray(e)&&e.every(G)||Z(e)&&!e)return{type:t,message:G(e)?e:"",ref:i}}var oe=e=>U(e)&&!be(e)?e:{value:e,message:""},at=async(e,i,t,r,o,a)=>{const{ref:l,refs:c,required:x,maxLength:S,minLength:I,min:v,max:E,pattern:_,validate:B,name:T,valueAsNumber:N,mount:L}=e._f,b=y(t,T);if(!L||i.has(T))return{};const j=c?c[0]:l,V=F=>{o&&j.reportValidity&&(j.setCustomValidity(Z(F)?"":F||""),j.reportValidity())},A={},$=Ie(l),te=ge(l),re=$||te,ee=(N||Ne(l))&&O(l.value)&&O(b)||_e(l)&&l.value===""||b===""||Array.isArray(b)&&!b.length,Y=Me.bind(null,T,r,A),ve=(F,w,M,P=se.maxLength,J=se.minLength)=>{const K=F?w:M;A[T]={type:F?P:J,message:K,ref:l,...Y(F?P:J,K)}};if(a?!Array.isArray(b)||!b.length:x&&(!re&&(ee||z(b))||Z(b)&&!b||te&&!bt(c).isValid||$&&!Ft(c).isValid)){const{value:F,message:w}=G(x)?{value:!!x,message:x}:oe(x);if(F&&(A[T]={type:se.required,message:w,ref:j,...Y(se.required,w)},!r))return V(w),A}if(!ee&&(!z(v)||!z(E))){let F,w;const M=oe(E),P=oe(v);if(!z(b)&&!isNaN(b)){const J=l.valueAsNumber||b&&+b;z(M.value)||(F=J>M.value),z(P.value)||(w=Jnew Date(new Date().toDateString()+" "+fe),le=l.type=="time",ce=l.type=="week";G(M.value)&&b&&(F=le?K(b)>K(M.value):ce?b>M.value:J>new Date(M.value)),G(P.value)&&b&&(w=le?K(b)+F.value,P=!z(w.value)&&b.length<+w.value;if((M||P)&&(ve(M,F.message,w.message),!r))return V(A[T].message),A}if(_&&!ee&&G(b)){const{value:F,message:w}=oe(_);if(be(F)&&!b.match(F)&&(A[T]={type:se.pattern,message:w,ref:l,...Y(se.pattern,w)},!r))return V(w),A}if(B){if(H(B)){const F=await B(b,t),w=nt(F,j);if(w&&(A[T]={...w,...Y(se.validate,w.message)},!r))return V(w.message),A}else if(U(B)){let F={};for(const w in B){if(!q(F)&&!r)break;const M=nt(await B[w](b,t),j,w);M&&(F={...M,...Y(w,M.message)},V(M.message),r&&(A[T]=F))}if(!q(F)&&(A[T]={ref:j,...F},!r))return A}}return V(!0),A};const Xt={mode:Q.onSubmit,reValidateMode:Q.onChange,shouldFocusError:!0};function er(e={}){let i={...Xt,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:H(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},r={},o=U(i.defaultValues)||U(i.values)?R(i.defaultValues||i.values)||{}:{},a=i.shouldUnregister?{}:R(o),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},x,S=0;const I={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...I};let E={...v};const _={array:Ye(),state:Ye()},B=i.criteriaMode===Q.all,T=s=>n=>{clearTimeout(S),S=setTimeout(s,n)},N=async s=>{if(!l.keepIsValid&&!i.disabled&&(v.isValid||E.isValid||s)){let n;i.resolver?(n=q((await re()).errors),L()):n=await Y(r,!0),n!==t.isValid&&_.state.next({isValid:n})}},L=(s,n)=>{!i.disabled&&(v.isValidating||v.validatingFields||E.isValidating||E.validatingFields)&&((s||Array.from(c.mount)).forEach(u=>{u&&(n?C(t.validatingFields,u,n):p(t.validatingFields,u))}),_.state.next({validatingFields:t.validatingFields,isValidating:!q(t.validatingFields)}))},b=(s,n=[],u,h,d=!0,f=!0)=>{if(h&&u&&!i.disabled){if(l.action=!0,f&&Array.isArray(y(r,s))){const g=u(y(r,s),h.argA,h.argB);d&&C(r,s,g)}if(f&&Array.isArray(y(t.errors,s))){const g=u(y(t.errors,s),h.argA,h.argB);d&&C(t.errors,s,g),Jt(t.errors,s)}if((v.touchedFields||E.touchedFields)&&f&&Array.isArray(y(t.touchedFields,s))){const g=u(y(t.touchedFields,s),h.argA,h.argB);d&&C(t.touchedFields,s,g)}(v.dirtyFields||E.dirtyFields)&&(t.dirtyFields=ue(o,a)),_.state.next({name:s,isDirty:F(s,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else C(a,s,n)},j=(s,n)=>{C(t.errors,s,n),_.state.next({errors:t.errors})},V=s=>{t.errors=s,_.state.next({errors:t.errors,isValid:!1})},A=(s,n,u,h)=>{const d=y(r,s);if(d){const f=y(a,s,O(u)?y(o,s):u);O(f)||h&&h.defaultChecked||n?C(a,s,n?f:et(d._f)):P(s,f),l.mount&&!l.action&&N()}},$=(s,n,u,h,d)=>{let f=!1,g=!1;const k={name:s};if(!i.disabled){if(!u||h){(v.isDirty||E.isDirty)&&(g=t.isDirty,t.isDirty=k.isDirty=F(),f=g!==k.isDirty);const D=X(y(o,s),n);g=!!y(t.dirtyFields,s),D?p(t.dirtyFields,s):C(t.dirtyFields,s,!0),k.dirtyFields=t.dirtyFields,f=f||(v.dirtyFields||E.dirtyFields)&&g!==!D}if(u){const D=y(t.touchedFields,s);D||(C(t.touchedFields,s,u),k.touchedFields=t.touchedFields,f=f||(v.touchedFields||E.touchedFields)&&D!==u)}f&&d&&_.state.next(k)}return f?k:{}},te=(s,n,u,h)=>{const d=y(t.errors,s),f=(v.isValid||E.isValid)&&Z(n)&&t.isValid!==n;if(i.delayError&&u?(x=T(()=>j(s,u)),x(i.delayError)):(clearTimeout(S),x=null,u?C(t.errors,s,u):p(t.errors,s)),(u?!X(d,u):d)||!q(h)||f){const g={...h,...f&&Z(n)?{isValid:n}:{},errors:t.errors,name:s};t={...t,...g},_.state.next(g)}},re=async s=>(L(s,!0),await i.resolver(a,i.context,$t(s||c.mount,r,i.criteriaMode,i.shouldUseNativeValidation))),ee=async s=>{const{errors:n}=await re(s);if(L(s),s)for(const u of s){const h=y(n,u);h?C(t.errors,u,h):p(t.errors,u)}else t.errors=n;return n},Y=async(s,n,u={valid:!0})=>{for(const h in s){const d=s[h];if(d){const{_f:f,...g}=d;if(f){const k=c.array.has(f.name),D=d._f&&zt(d._f);D&&v.validatingFields&&L([f.name],!0);const W=await at(d,c.disabled,a,B,i.shouldUseNativeValidation&&!n,k);if(D&&v.validatingFields&&L([f.name]),W[f.name]&&(u.valid=!1,n||e.shouldUseNativeValidation))break;!n&&(y(W,f.name)?k?Qt(t.errors,W,f.name):C(t.errors,f.name,W[f.name]):p(t.errors,f.name))}!q(g)&&await Y(g,n,u)}}return u.valid},ve=()=>{for(const s of c.unMount){const n=y(r,s);n&&(n._f.refs?n._f.refs.every(u=>!ke(u)):!ke(n._f.ref))&&Fe(s)}c.unMount=new Set},F=(s,n)=>!i.disabled&&(s&&n&&C(a,s,n),!X(Pe(),o)),w=(s,n,u)=>De(s,c,{...l.mount?a:O(n)?o:G(s)?{[s]:n}:n},u,n),M=s=>pe(y(l.mount?a:o,s,i.shouldUnregister?y(o,s,[]):[])),P=(s,n,u={})=>{const h=y(r,s);let d=n;if(h){const f=h._f;f&&(!f.disabled&&C(a,s,Vt(n,f)),d=_e(f.ref)&&z(n)?"":n,mt(f.ref)?[...f.ref.options].forEach(g=>g.selected=d.includes(g.value)):f.refs?ge(f.ref)?f.refs.forEach(g=>{(!g.defaultChecked||!g.disabled)&&(Array.isArray(d)?g.checked=!!d.find(k=>k===g.value):g.checked=d===g.value||!!d)}):f.refs.forEach(g=>g.checked=g.value===d):Ne(f.ref)?f.ref.value="":(f.ref.value=d,f.ref.type||_.state.next({name:s,values:R(a)})))}(u.shouldDirty||u.shouldTouch)&&$(s,d,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&fe(s)},J=(s,n,u)=>{for(const h in n){if(!n.hasOwnProperty(h))return;const d=n[h],f=s+"."+h,g=y(r,f);(c.array.has(s)||U(d)||g&&!g._f)&&!ae(d)?J(f,d,u):P(f,d,u)}},K=(s,n,u={})=>{const h=y(r,s),d=c.array.has(s),f=R(n);C(a,s,f),d?(_.array.next({name:s,values:R(a)}),(v.isDirty||v.dirtyFields||E.isDirty||E.dirtyFields)&&u.shouldDirty&&_.state.next({name:s,dirtyFields:ue(o,a),isDirty:F(s,f)})):h&&!h._f&&!z(f)?J(s,f,u):P(s,f,u),st(s,c)?_.state.next({...t,name:s,values:R(a)}):_.state.next({name:l.mount?s:void 0,values:R(a)})},le=async s=>{l.mount=!0;const n=s.target;let u=n.name,h=!0;const d=y(r,u),f=D=>{h=Number.isNaN(D)||ae(D)&&isNaN(D.getTime())||X(D,y(a,u,D))},g=tt(i.mode),k=tt(i.reValidateMode);if(d){let D,W;const ne=n.type?et(d._f):dt(s),ie=s.type===me.BLUR||s.type===me.FOCUS_OUT,St=!Kt(d._f)&&!i.resolver&&!y(t.errors,u)&&!d._f.deps||Yt(ie,y(t.touchedFields,u),t.isSubmitted,k,g),we=st(u,c,ie);C(a,u,ne),ie?(!n||!n.readOnly)&&(d._f.onBlur&&d._f.onBlur(s),x&&x(0)):d._f.onChange&&d._f.onChange(s);const Ee=$(u,ne,ie),Ot=!q(Ee)||we;if(!ie&&_.state.next({name:u,type:s.type,values:R(a)}),St)return(v.isValid||E.isValid)&&(i.mode==="onBlur"?ie&&N():ie||N()),Ot&&_.state.next({name:u,...we?{}:Ee});if(!ie&&we&&_.state.next({...t}),i.resolver){const{errors:Ze}=await re([u]);if(L([u]),f(ne),h){const Rt=it(t.errors,r,u),Ge=it(Ze,r,Rt.name||u);D=Ge.error,u=Ge.name,W=q(Ze)}}else L([u],!0),D=(await at(d,c.disabled,a,B,i.shouldUseNativeValidation))[u],L([u]),f(ne),h&&(D?W=!1:(v.isValid||E.isValid)&&(W=await Y(r,!0)));h&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&fe(d._f.deps),te(u,W,D,Ee))}},ce=(s,n)=>{if(y(t.errors,n)&&s.focus)return s.focus(),1},fe=async(s,n={})=>{let u,h;const d=ye(s);if(i.resolver){const f=await ee(O(s)?s:d);u=q(f),h=s?!d.some(g=>y(f,g)):u}else s?(h=(await Promise.all(d.map(async f=>{const g=y(r,f);return await Y(g&&g._f?{[f]:g}:g)}))).every(Boolean),!(!h&&!t.isValid)&&N()):h=u=await Y(r);return _.state.next({...!G(s)||(v.isValid||E.isValid)&&u!==t.isValid?{}:{name:s},...i.resolver||!s?{isValid:u}:{},errors:t.errors}),n.shouldFocus&&!h&&he(r,ce,s?d:c.mount),h},Pe=(s,n)=>{let u={...l.mount?a:o};return n&&(u=vt(n.dirtyFields?t.dirtyFields:t.touchedFields,u)),O(s)?u:G(s)?y(u,s):s.map(h=>y(u,h))},Be=(s,n)=>({invalid:!!y((n||t).errors,s),isDirty:!!y((n||t).dirtyFields,s),error:y((n||t).errors,s),isValidating:!!y(t.validatingFields,s),isTouched:!!y((n||t).touchedFields,s)}),At=s=>{const n=s?ye(s):void 0;n?.forEach(u=>p(t.errors,u)),n?n.forEach(u=>{_.state.next({name:u,errors:t.errors})}):_.state.next({errors:{}})},je=(s,n,u)=>{const h=(y(r,s,{_f:{}})._f||{}).ref,d=y(t.errors,s)||{},{ref:f,message:g,type:k,...D}=d;C(t.errors,s,{...D,...n,ref:h}),_.state.next({name:s,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&h&&h.focus&&h.focus()},xt=(s,n)=>H(s)?_.state.subscribe({next:u=>"values"in u&&s(w(void 0,n),u)}):w(s,n,!0),We=s=>_.state.subscribe({next:n=>{Gt(s.name,n.name,s.exact)&&Zt(n,s.formState||v,Ct,s.reRenderRoot)&&s.callback({values:{...a},...t,...n,defaultValues:o})}}).unsubscribe,wt=s=>(l.mount=!0,E={...E,...s.formState},We({...s,formState:{...I,...s.formState}})),Fe=(s,n={})=>{for(const u of s?ye(s):c.mount)c.mount.delete(u),c.array.delete(u),n.keepValue||(p(r,u),p(a,u)),!n.keepError&&p(t.errors,u),!n.keepDirty&&p(t.dirtyFields,u),!n.keepTouched&&p(t.touchedFields,u),!n.keepIsValidating&&p(t.validatingFields,u),!i.shouldUnregister&&!n.keepDefaultValue&&p(o,u);_.state.next({values:R(a)}),_.state.next({...t,...n.keepDirty?{isDirty:F()}:{}}),!n.keepIsValid&&N()},qe=({disabled:s,name:n})=>{if(Z(s)&&l.mount||s||c.disabled.has(n)){const d=c.disabled.has(n)!==!!s;s?c.disabled.add(n):c.disabled.delete(n),d&&l.mount&&!l.action&&N()}},Ae=(s,n={})=>{let u=y(r,s);const h=Z(n.disabled)||Z(i.disabled);return C(r,s,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:s}},name:s,mount:!0,...n}}),c.mount.add(s),u?qe({disabled:Z(n.disabled)?n.disabled:i.disabled,name:s}):A(s,!0,n.value),{...h?{disabled:n.disabled||i.disabled}:{},...i.progressive?{required:!!n.required,min:de(n.min),max:de(n.max),minLength:de(n.minLength),maxLength:de(n.maxLength),pattern:de(n.pattern)}:{},name:s,onChange:le,onBlur:le,ref:d=>{if(d){Ae(s,n),u=y(r,s);const f=O(d.value)&&d.querySelectorAll&&d.querySelectorAll("input,select,textarea")[0]||d,g=jt(f),k=u._f.refs||[];if(g?k.find(D=>D===f):f===u._f.ref)return;C(r,s,{_f:{...u._f,...g?{refs:[...k.filter(ke),f,...Array.isArray(y(o,s))?[{}]:[]],ref:{type:f.type,name:s}}:{ref:f}}}),A(s,!1,void 0,f)}else u=y(r,s,{}),u._f&&(u._f.mount=!1),(i.shouldUnregister||n.shouldUnregister)&&!(yt(c.array,s)&&l.action)&&c.unMount.add(s)}}},xe=()=>i.shouldFocusError&&he(r,ce,c.mount),Et=s=>{Z(s)&&(_.state.next({disabled:s}),he(r,(n,u)=>{const h=y(r,u);h&&(n.disabled=h._f.disabled||s,Array.isArray(h._f.refs)&&h._f.refs.forEach(d=>{d.disabled=h._f.disabled||s}))},0,!1))},He=(s,n)=>async u=>{let h;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let d=R(a);if(_.state.next({isSubmitting:!0}),i.resolver){const{errors:f,values:g}=await re();L(),t.errors=f,d=R(g)}else await Y(r);if(c.disabled.size)for(const f of c.disabled)p(d,f);if(p(t.errors,"root"),q(t.errors)){_.state.next({errors:{}});try{await s(d,u)}catch(f){h=f}}else n&&await n({...t.errors},u),xe(),setTimeout(xe);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:q(t.errors)&&!h,submitCount:t.submitCount+1,errors:t.errors}),h)throw h},kt=(s,n={})=>{y(r,s)&&(O(n.defaultValue)?K(s,R(y(o,s))):(K(s,n.defaultValue),C(o,s,R(n.defaultValue))),n.keepTouched||p(t.touchedFields,s),n.keepDirty||(p(t.dirtyFields,s),t.isDirty=n.defaultValue?F(s,R(y(o,s))):F()),n.keepError||(p(t.errors,s),v.isValid&&N()),_.state.next({...t}))},$e=(s,n={})=>{const u=s?R(s):o,h=R(u),d=q(s),f=d?o:h;if(n.keepDefaultValues||(o=u),!n.keepValues){if(n.keepDirtyValues){const g=new Set([...c.mount,...Object.keys(ue(o,a))]);for(const k of Array.from(g)){const D=y(t.dirtyFields,k),W=y(a,k),ne=y(f,k);D&&!O(W)?C(f,k,W):!D&&!O(ne)&&K(k,ne)}}else{if(Re&&O(s))for(const g of c.mount){const k=y(r,g);if(k&&k._f){const D=Array.isArray(k._f.refs)?k._f.refs[0]:k._f.ref;if(_e(D)){const W=D.closest("form");if(W){W.reset();break}}}}if(n.keepFieldsRef)for(const g of c.mount)K(g,y(f,g));else r={}}a=i.shouldUnregister?n.keepDefaultValues?R(o):{}:R(f),_.array.next({values:{...f}}),_.state.next({values:{...f}})}c={mount:n.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!v.isValid||!!n.keepIsValid||!!n.keepDirtyValues||!i.shouldUnregister&&!q(f),l.watch=!!i.shouldUnregister,l.keepIsValid=!!n.keepIsValid,l.action=!1,n.keepErrors||(t.errors={}),_.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:d?!1:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!X(s,o)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:d?{}:n.keepDirtyValues?n.keepDefaultValues&&a?ue(o,a):t.dirtyFields:n.keepDefaultValues&&s?ue(o,s):n.keepDirty?t.dirtyFields:{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},ze=(s,n)=>$e(H(s)?s(a):s,{...i.resetOptions,...n}),Dt=(s,n={})=>{const u=y(r,s),h=u&&u._f;if(h){const d=h.refs?h.refs[0]:h.ref;d.focus&&setTimeout(()=>{d.focus(),n.shouldSelect&&H(d.select)&&d.select()})}},Ct=s=>{t={...t,...s}},Ke={control:{register:Ae,unregister:Fe,getFieldState:Be,handleSubmit:He,setError:je,_subscribe:We,_runSchema:re,_updateIsValidating:L,_focusError:xe,_getWatch:w,_getDirty:F,_setValid:N,_setFieldArray:b,_setDisabledField:qe,_setErrors:V,_getFieldArray:M,_reset:$e,_resetDefaultValues:()=>H(i.defaultValues)&&i.defaultValues().then(s=>{ze(s,i.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Et,_subjects:_,_proxyFormState:v,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(s){l=s},get _defaultValues(){return o},get _names(){return c},set _names(s){c=s},get _formState(){return t},get _options(){return i},set _options(s){i={...i,...s}}},subscribe:wt,trigger:fe,register:Ae,handleSubmit:He,watch:xt,setValue:K,getValues:Pe,reset:ze,resetField:kt,clearErrors:At,unregister:Fe,setError:je,setFocus:Dt,getFieldState:Be};return{...Ke,formControl:Ke}}function or(e={}){const i=m.useRef(void 0),t=m.useRef(void 0),[r,o]=m.useState({isDirty:!1,isValidating:!1,isLoading:H(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:H(e.defaultValues)?void 0:e.defaultValues});if(!i.current)if(e.formControl)i.current={...e.formControl,formState:r},e.defaultValues&&!H(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=er(e);i.current={...c,formState:r}}const a=i.current.control;return a._options=e,Le(()=>{const l=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}),reRenderRoot:!0});return o(c=>({...c,isReady:!0})),a._formState.isReady=!0,l},[a]),m.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),m.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),m.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),m.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),m.useEffect(()=>{if(a._proxyFormState.isDirty){const l=a._getDirty();l!==r.isDirty&&a._subjects.state.next({isDirty:l})}},[a,r.isDirty]),m.useEffect(()=>{var l;e.values&&!X(e.values,t.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((l=a._options.resetOptions)===null||l===void 0)&&l.keepIsValid||a._setValid(),t.current=e.values,o(c=>({...c}))):a._resetDefaultValues()},[a,e.values]),m.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=m.useMemo(()=>gt(r,a),[a,r]),i.current}const ot=(e,i,t)=>{if(e&&"reportValidity"in e){const r=y(t,i);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Oe=(e,i)=>{for(const t in i.fields){const r=i.fields[t];r&&r.ref&&"reportValidity"in r.ref?ot(r.ref,t,e):r&&r.refs&&r.refs.forEach(o=>ot(o,t,e))}},ut=(e,i)=>{i.shouldUseNativeValidation&&Oe(e,i);const t={};for(const r in e){const o=y(i.fields,r),a=Object.assign(e[r]||{},{ref:o&&o.ref});if(tr(i.names||Object.keys(e),r)){const l=Object.assign({},y(t,r));C(l,"root",a),C(t,r,l)}else C(t,r,a)}return t},tr=(e,i)=>{const t=lt(i);return e.some(r=>lt(r).match(`^${t}\\.\\d+`))};function lt(e){return e.replace(/\]|\[/g,"")}function ct(e,i){try{var t=e()}catch(r){return i(r)}return t&&t.then?t.then(void 0,i):t}function rr(e,i){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,l=r.path.join(".");if(!t[l])if("unionErrors"in r){var c=r.unionErrors[0].errors[0];t[l]={message:c.message,type:c.code}}else t[l]={message:a,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(I){return I.errors.forEach(function(v){return e.push(v)})}),i){var x=t[l].types,S=x&&x[r.code];t[l]=Me(l,i,t,o,S?[].concat(S,r.message):r.message)}e.shift()}return t}function sr(e,i){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,l=r.path.join(".");if(!t[l])if(r.code==="invalid_union"&&r.errors.length>0){var c=r.errors[0][0];t[l]={message:c.message,type:c.code}}else t[l]={message:a,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(I){return I.forEach(function(v){return e.push(v)})}),i){var x=t[l].types,S=x&&x[r.code];t[l]=Me(l,i,t,o,S?[].concat(S,r.message):r.message)}e.shift()}return t}function ur(e,i,t){if(t===void 0&&(t={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,o,a){try{return Promise.resolve(ct(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](r,i)).then(function(l){return a.shouldUseNativeValidation&&Oe({},a),{errors:{},values:t.raw?Object.assign({},r):l}})},function(l){if((function(c){return Array.isArray(c?.issues)})(l))return{values:{},errors:ut(rr(l.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,o,a){try{return Promise.resolve(ct(function(){return Promise.resolve((t.mode==="sync"?pt:Ut)(e,r,i)).then(function(l){return a.shouldUseNativeValidation&&Oe({},a),{errors:{},values:t.raw?Object.assign({},r):l}})},function(l){if((function(c){return c instanceof Tt})(l))return{values:{},errors:ut(sr(l.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}export{ar as C,ur as a,or as u}; +import{aQ as m,aR as pt,aS as Tt,aT as Ut}from"./index.js";var ge=e=>e.type==="checkbox",ae=e=>e instanceof Date,z=e=>e==null;const ft=e=>typeof e=="object";var T=e=>!z(e)&&!Array.isArray(e)&&ft(e)&&!ae(e),dt=e=>T(e)&&e.target?ge(e.target)?e.target.checked:e.target.value:e,Lt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yt=(e,i)=>e.has(Lt(i)),Mt=e=>{const i=e.constructor&&e.constructor.prototype;return T(i)&&i.hasOwnProperty("isPrototypeOf")},Re=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function R(e){if(e instanceof Date)return new Date(e);const i=typeof FileList<"u"&&e instanceof FileList;if(Re&&(e instanceof Blob||i))return e;const t=Array.isArray(e);if(!t&&!(T(e)&&Mt(e)))return e;const r=t?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=R(e[o]));return r}var Ve=e=>/^\w*$/.test(e),O=e=>e===void 0,pe=e=>Array.isArray(e)?e.filter(Boolean):[],Te=e=>pe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),y=(e,i,t)=>{if(!i||!T(e))return t;const r=(Ve(i)?[i]:Te(i)).reduce((o,a)=>z(o)?o:o[a],e);return O(r)||r===e?O(e[i])?t:e[i]:r},Z=e=>typeof e=="boolean",H=e=>typeof e=="function",C=(e,i,t)=>{let r=-1;const o=Ve(i)?[i]:Te(i),a=o.length,l=a-1;for(;++rm.useContext(ht);var gt=(e,i,t,r=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const l=a;return i._proxyFormState[l]!==J.all&&(i._proxyFormState[l]=!r||J.all),t&&(t[l]=!0),e[l]}});return o};const Le=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Nt(e){const i=Ue(),{control:t=i,disabled:r,name:o,exact:a}=e||{},[l,c]=m.useState(t._formState),x=m.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Le(()=>t._subscribe({name:o,formState:x.current,exact:a,callback:S=>{!r&&c({...t._formState,...S})}}),[o,r,a]),m.useEffect(()=>{x.current.isValid&&t._setValid(!0)},[t]),m.useMemo(()=>gt(l,t,x.current,!1),[l,t])}var G=e=>typeof e=="string",De=(e,i,t,r,o)=>G(e)?(r&&i.watch.add(e),y(t,e,o)):Array.isArray(e)?e.map(a=>(r&&i.watch.add(a),y(t,a))):(r&&(i.watchAll=!0),t),Ce=e=>z(e)||!ft(e);function X(e,i,t=new WeakSet){if(Ce(e)||Ce(i))return Object.is(e,i);if(ae(e)&&ae(i))return Object.is(e.getTime(),i.getTime());const r=Object.keys(e),o=Object.keys(i);if(r.length!==o.length)return!1;if(t.has(e)||t.has(i))return!0;t.add(e),t.add(i);for(const a of r){const l=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const c=i[a];if(ae(l)&&ae(c)||T(l)&&T(c)||Array.isArray(l)&&Array.isArray(c)?!X(l,c,t):!Object.is(l,c))return!1}}return!0}function It(e){const i=Ue(),{control:t=i,name:r,defaultValue:o,disabled:a,exact:l,compute:c}=e||{},x=m.useRef(o),S=m.useRef(c),I=m.useRef(void 0),v=m.useRef(t),E=m.useRef(r);S.current=c;const[_,B]=m.useState(()=>{const V=t._getWatch(r,x.current);return S.current?S.current(V):V}),U=m.useCallback(V=>{const A=De(r,t._names,V||t._formValues,!1,x.current);return S.current?S.current(A):A},[t._formValues,t._names,r]),N=m.useCallback(V=>{if(!a){const A=De(r,t._names,V||t._formValues,!1,x.current);if(S.current){const $=S.current(A);X($,I.current)||(B($),I.current=$)}else B(A)}},[t._formValues,t._names,a,r]);Le(()=>((v.current!==t||!X(E.current,r))&&(v.current=t,E.current=r,N()),t._subscribe({name:r,formState:{values:!0},exact:l,callback:V=>{N(V.values)}})),[t,l,r,N]),m.useEffect(()=>t._removeUnmounted());const L=v.current!==t,b=E.current,j=m.useMemo(()=>{if(a)return null;const V=!L&&!X(b,r);return L||V?U():null},[a,L,r,b,U]);return j!==null?j:_}function Pt(e){const i=Ue(),{name:t,disabled:r,control:o=i,shouldUnregister:a,defaultValue:l,exact:c=!0}=e,x=yt(o._names.array,t),S=m.useMemo(()=>y(o._formValues,t,y(o._defaultValues,t,l)),[o,t,l]),I=It({control:o,name:t,defaultValue:S,exact:c}),v=Nt({control:o,name:t,exact:c}),E=m.useRef(e),_=m.useRef(void 0),B=m.useRef(o.register(t,{...e.rules,value:I,...Z(e.disabled)?{disabled:e.disabled}:{}}));E.current=e;const U=m.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(v.errors,t)},isDirty:{enumerable:!0,get:()=>!!y(v.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!y(v.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!y(v.validatingFields,t)},error:{enumerable:!0,get:()=>y(v.errors,t)}}),[v,t]),N=m.useCallback(V=>B.current.onChange({target:{value:dt(V),name:t},type:me.CHANGE}),[t]),L=m.useCallback(()=>B.current.onBlur({target:{value:y(o._formValues,t),name:t},type:me.BLUR}),[t,o._formValues]),b=m.useCallback(V=>{const A=y(o._fields,t);A&&A._f&&V&&(A._f.ref={focus:()=>H(V.focus)&&V.focus(),select:()=>H(V.select)&&V.select(),setCustomValidity:$=>H(V.setCustomValidity)&&V.setCustomValidity($),reportValidity:()=>H(V.reportValidity)&&V.reportValidity()})},[o._fields,t]),j=m.useMemo(()=>({name:t,value:I,...Z(r)||v.disabled?{disabled:v.disabled||r}:{},onChange:N,onBlur:L,ref:b}),[t,r,v.disabled,N,L,b,I]);return m.useEffect(()=>{const V=o._options.shouldUnregister||a,A=_.current;A&&A!==t&&!x&&o.unregister(A),o.register(t,{...E.current.rules,...Z(E.current.disabled)?{disabled:E.current.disabled}:{}});const $=(te,re)=>{const ee=y(o._fields,te);ee&&ee._f&&(ee._f.mount=re)};if($(t,!0),V){const te=R(y(o._options.defaultValues,t,E.current.defaultValue));C(o._defaultValues,t,te),O(y(o._formValues,t))&&C(o._formValues,t,te)}return!x&&o.register(t),_.current=t,()=>{(x?V&&!o._state.action:V)?o.unregister(t):$(t,!1)}},[t,o,x,a]),m.useEffect(()=>{o._setDisabledField({disabled:r,name:t})},[r,t,o]),m.useMemo(()=>({field:j,formState:v,fieldState:U}),[j,v,U])}const ar=e=>e.render(Pt(e)),Bt=m.createContext(null);Bt.displayName="HookFormContext";var Me=(e,i,t,r,o)=>i?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:o||!0}}:{},ye=e=>Array.isArray(e)?e:[e],Qe=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}};function vt(e,i){const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],a=i[r];if(o&&T(o)&&a){const l=vt(o,a);T(l)&&(t[r]=l)}else e[r]&&(t[r]=a)}return t}var q=e=>T(e)&&!Object.keys(e).length,Ne=e=>e.type==="file",_e=e=>{if(!Re)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},mt=e=>e.type==="select-multiple",Ie=e=>e.type==="radio",jt=e=>Ie(e)||ge(e),ke=e=>_e(e)&&e.isConnected;function Wt(e,i){const t=i.slice(0,-1).length;let r=0;for(;r{for(const i in e)if(H(e[i]))return!0;return!1};function _t(e){return Array.isArray(e)||T(e)&&!Ht(e)}function Se(e,i={}){for(const t in e){const r=e[t];_t(r)?(i[t]=Array.isArray(r)?[]:{},Se(r,i[t])):O(r)||(i[t]=!0)}return i}function ue(e,i,t){t||(t=Se(i));for(const r in e){const o=e[r];if(_t(o))O(i)||Ce(t[r])?t[r]=Se(o,Array.isArray(o)?[]:{}):ue(o,z(i)?{}:i[r],t[r]);else{const a=i[r];t[r]=!X(o,a)}}return t}const Ye={value:!1,isValid:!1},Je={value:!0,isValid:!0};var bt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!O(e[0].attributes.value)?O(e[0].value)||e[0].value===""?Je:{value:e[0].value,isValid:!0}:Je:Ye}return Ye},Vt=(e,{valueAsNumber:i,valueAsDate:t,setValueAs:r})=>O(e)?e:i?e===""?NaN:e&&+e:t&&G(e)?new Date(e):r?r(e):e;const Xe={isValid:!1,value:null};var Ft=e=>Array.isArray(e)?e.reduce((i,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:i,Xe):Xe;function et(e){const i=e.ref;return Ne(i)?i.files:Ie(i)?Ft(e.refs).value:mt(i)?[...i.selectedOptions].map(({value:t})=>t):ge(i)?bt(e.refs).value:Vt(O(i.value)?e.ref.value:i.value,e)}var $t=(e,i,t,r)=>{const o={};for(const a of e){const l=y(i,a);l&&C(o,a,l._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:r}},be=e=>e instanceof RegExp,de=e=>O(e)?e:be(e)?e.source:T(e)?be(e.value)?e.value.source:e.value:e,tt=e=>({isOnSubmit:!e||e===J.onSubmit,isOnBlur:e===J.onBlur,isOnChange:e===J.onChange,isOnAll:e===J.all,isOnTouch:e===J.onTouched});const rt="AsyncFunction";var zt=e=>!!e&&!!e.validate&&!!(H(e.validate)&&e.validate.constructor.name===rt||T(e.validate)&&Object.values(e.validate).find(i=>i.constructor.name===rt)),Kt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),st=(e,i,t)=>!t&&(i.watchAll||i.watch.has(e)||[...i.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const he=(e,i,t,r)=>{for(const o of t||Object.keys(e)){const a=y(e,o);if(a){const{_f:l,...c}=a;if(l){if(l.refs&&l.refs[0]&&i(l.refs[0],o)&&!r)return!0;if(l.ref&&i(l.ref,l.name)&&!r)return!0;if(he(c,i))break}else if(T(c)&&he(c,i))break}}};function it(e,i,t){const r=y(e,t);if(r||Ve(t))return{error:r,name:t};const o=t.split(".");for(;o.length;){const a=o.join("."),l=y(i,a),c=y(e,a);if(l&&!Array.isArray(l)&&t!==a)return{name:t};if(c&&c.type)return{name:a,error:c};if(c&&c.root&&c.root.type)return{name:`${a}.root`,error:c.root};o.pop()}return{name:t}}var Zt=(e,i,t,r)=>{t(e);const{name:o,...a}=e;return q(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(l=>i[l]===(!r||J.all))},Gt=(e,i,t)=>!e||!i||e===i||ye(e).some(r=>r&&(t?r===i:r.startsWith(i)||i.startsWith(r))),Qt=(e,i,t,r,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(i||e):(t?r.isOnBlur:o.isOnBlur)?!e:(t?r.isOnChange:o.isOnChange)?e:!0,Yt=(e,i)=>!pe(y(e,i)).length&&p(e,i),Jt=(e,i,t)=>{const r=ye(y(e,t));return C(r,"root",i[t]),C(e,t,r),e};function nt(e,i,t="validate"){if(G(e)||Array.isArray(e)&&e.every(G)||Z(e)&&!e)return{type:t,message:G(e)?e:"",ref:i}}var oe=e=>T(e)&&!be(e)?e:{value:e,message:""},at=async(e,i,t,r,o,a)=>{const{ref:l,refs:c,required:x,maxLength:S,minLength:I,min:v,max:E,pattern:_,validate:B,name:U,valueAsNumber:N,mount:L}=e._f,b=y(t,U);if(!L||i.has(U))return{};const j=c?c[0]:l,V=F=>{o&&j.reportValidity&&(j.setCustomValidity(Z(F)?"":F||""),j.reportValidity())},A={},$=Ie(l),te=ge(l),re=$||te,ee=(N||Ne(l))&&O(l.value)&&O(b)||_e(l)&&l.value===""||b===""||Array.isArray(b)&&!b.length,Q=Me.bind(null,U,r,A),ve=(F,w,M,P=se.maxLength,Y=se.minLength)=>{const K=F?w:M;A[U]={type:F?P:Y,message:K,ref:l,...Q(F?P:Y,K)}};if(a?!Array.isArray(b)||!b.length:x&&(!re&&(ee||z(b))||Z(b)&&!b||te&&!bt(c).isValid||$&&!Ft(c).isValid)){const{value:F,message:w}=G(x)?{value:!!x,message:x}:oe(x);if(F&&(A[U]={type:se.required,message:w,ref:j,...Q(se.required,w)},!r))return V(w),A}if(!ee&&(!z(v)||!z(E))){let F,w;const M=oe(E),P=oe(v);if(!z(b)&&!isNaN(b)){const Y=l.valueAsNumber||b&&+b;z(M.value)||(F=Y>M.value),z(P.value)||(w=Ynew Date(new Date().toDateString()+" "+fe),le=l.type=="time",ce=l.type=="week";G(M.value)&&b&&(F=le?K(b)>K(M.value):ce?b>M.value:Y>new Date(M.value)),G(P.value)&&b&&(w=le?K(b)+F.value,P=!z(w.value)&&b.length<+w.value;if((M||P)&&(ve(M,F.message,w.message),!r))return V(A[U].message),A}if(_&&!ee&&G(b)){const{value:F,message:w}=oe(_);if(be(F)&&!b.match(F)&&(A[U]={type:se.pattern,message:w,ref:l,...Q(se.pattern,w)},!r))return V(w),A}if(B){if(H(B)){const F=await B(b,t),w=nt(F,j);if(w&&(A[U]={...w,...Q(se.validate,w.message)},!r))return V(w.message),A}else if(T(B)){let F={};for(const w in B){if(!q(F)&&!r)break;const M=nt(await B[w](b,t),j,w);M&&(F={...M,...Q(w,M.message)},V(M.message),r&&(A[U]=F))}if(!q(F)&&(A[U]={ref:j,...F},!r))return A}}return V(!0),A};const Xt={mode:J.onSubmit,reValidateMode:J.onChange,shouldFocusError:!0};function er(e={}){let i={...Xt,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:H(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},r={},o=T(i.defaultValues)||T(i.values)?R(i.defaultValues||i.values)||{}:{},a=i.shouldUnregister?{}:R(o),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},x,S=0;const I={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...I};let E={...v};const _={array:Qe(),state:Qe()},B=i.criteriaMode===J.all,U=s=>n=>{clearTimeout(S),S=setTimeout(s,n)},N=async s=>{if(!l.keepIsValid&&!i.disabled&&(v.isValid||E.isValid||s)){let n;i.resolver?(n=q((await re()).errors),L()):n=await Q(r,!0),n!==t.isValid&&_.state.next({isValid:n})}},L=(s,n)=>{!i.disabled&&(v.isValidating||v.validatingFields||E.isValidating||E.validatingFields)&&((s||Array.from(c.mount)).forEach(u=>{u&&(n?C(t.validatingFields,u,n):p(t.validatingFields,u))}),_.state.next({validatingFields:t.validatingFields,isValidating:!q(t.validatingFields)}))},b=(s,n=[],u,h,d=!0,f=!0)=>{if(h&&u&&!i.disabled){if(l.action=!0,f&&Array.isArray(y(r,s))){const g=u(y(r,s),h.argA,h.argB);d&&C(r,s,g)}if(f&&Array.isArray(y(t.errors,s))){const g=u(y(t.errors,s),h.argA,h.argB);d&&C(t.errors,s,g),Yt(t.errors,s)}if((v.touchedFields||E.touchedFields)&&f&&Array.isArray(y(t.touchedFields,s))){const g=u(y(t.touchedFields,s),h.argA,h.argB);d&&C(t.touchedFields,s,g)}(v.dirtyFields||E.dirtyFields)&&(t.dirtyFields=ue(o,a)),_.state.next({name:s,isDirty:F(s,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else C(a,s,n)},j=(s,n)=>{C(t.errors,s,n),_.state.next({errors:t.errors})},V=s=>{t.errors=s,_.state.next({errors:t.errors,isValid:!1})},A=(s,n,u,h)=>{const d=y(r,s);if(d){const f=y(a,s,O(u)?y(o,s):u);O(f)||h&&h.defaultChecked||n?C(a,s,n?f:et(d._f)):P(s,f),l.mount&&!l.action&&N()}},$=(s,n,u,h,d)=>{let f=!1,g=!1;const k={name:s};if(!i.disabled){if(!u||h){(v.isDirty||E.isDirty)&&(g=t.isDirty,t.isDirty=k.isDirty=F(),f=g!==k.isDirty);const D=X(y(o,s),n);g=!!y(t.dirtyFields,s),D?p(t.dirtyFields,s):C(t.dirtyFields,s,!0),k.dirtyFields=t.dirtyFields,f=f||(v.dirtyFields||E.dirtyFields)&&g!==!D}if(u){const D=y(t.touchedFields,s);D||(C(t.touchedFields,s,u),k.touchedFields=t.touchedFields,f=f||(v.touchedFields||E.touchedFields)&&D!==u)}f&&d&&_.state.next(k)}return f?k:{}},te=(s,n,u,h)=>{const d=y(t.errors,s),f=(v.isValid||E.isValid)&&Z(n)&&t.isValid!==n;if(i.delayError&&u?(x=U(()=>j(s,u)),x(i.delayError)):(clearTimeout(S),x=null,u?C(t.errors,s,u):p(t.errors,s)),(u?!X(d,u):d)||!q(h)||f){const g={...h,...f&&Z(n)?{isValid:n}:{},errors:t.errors,name:s};t={...t,...g},_.state.next(g)}},re=async s=>(L(s,!0),await i.resolver(a,i.context,$t(s||c.mount,r,i.criteriaMode,i.shouldUseNativeValidation))),ee=async s=>{const{errors:n}=await re(s);if(L(s),s)for(const u of s){const h=y(n,u);h?C(t.errors,u,h):p(t.errors,u)}else t.errors=n;return n},Q=async(s,n,u={valid:!0})=>{for(const h in s){const d=s[h];if(d){const{_f:f,...g}=d;if(f){const k=c.array.has(f.name),D=d._f&&zt(d._f);D&&v.validatingFields&&L([f.name],!0);const W=await at(d,c.disabled,a,B,i.shouldUseNativeValidation&&!n,k);if(D&&v.validatingFields&&L([f.name]),W[f.name]&&(u.valid=!1,n||e.shouldUseNativeValidation))break;!n&&(y(W,f.name)?k?Jt(t.errors,W,f.name):C(t.errors,f.name,W[f.name]):p(t.errors,f.name))}!q(g)&&await Q(g,n,u)}}return u.valid},ve=()=>{for(const s of c.unMount){const n=y(r,s);n&&(n._f.refs?n._f.refs.every(u=>!ke(u)):!ke(n._f.ref))&&Fe(s)}c.unMount=new Set},F=(s,n)=>!i.disabled&&(s&&n&&C(a,s,n),!X(Pe(),o)),w=(s,n,u)=>De(s,c,{...l.mount?a:O(n)?o:G(s)?{[s]:n}:n},u,n),M=s=>pe(y(l.mount?a:o,s,i.shouldUnregister?y(o,s,[]):[])),P=(s,n,u={})=>{const h=y(r,s);let d=n;if(h){const f=h._f;f&&(!f.disabled&&C(a,s,Vt(n,f)),d=_e(f.ref)&&z(n)?"":n,mt(f.ref)?[...f.ref.options].forEach(g=>g.selected=d.includes(g.value)):f.refs?ge(f.ref)?f.refs.forEach(g=>{(!g.defaultChecked||!g.disabled)&&(Array.isArray(d)?g.checked=!!d.find(k=>k===g.value):g.checked=d===g.value||!!d)}):f.refs.forEach(g=>g.checked=g.value===d):Ne(f.ref)?f.ref.value="":(f.ref.value=d,f.ref.type||_.state.next({name:s,values:R(a)})))}(u.shouldDirty||u.shouldTouch)&&$(s,d,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&fe(s)},Y=(s,n,u)=>{for(const h in n){if(!n.hasOwnProperty(h))return;const d=n[h],f=s+"."+h,g=y(r,f);(c.array.has(s)||T(d)||g&&!g._f)&&!ae(d)?Y(f,d,u):P(f,d,u)}},K=(s,n,u={})=>{const h=y(r,s),d=c.array.has(s),f=R(n);C(a,s,f),d?(_.array.next({name:s,values:R(a)}),(v.isDirty||v.dirtyFields||E.isDirty||E.dirtyFields)&&u.shouldDirty&&_.state.next({name:s,dirtyFields:ue(o,a),isDirty:F(s,f)})):h&&!h._f&&!z(f)?Y(s,f,u):P(s,f,u),st(s,c)?_.state.next({...t,name:s,values:R(a)}):_.state.next({name:l.mount?s:void 0,values:R(a)})},le=async s=>{l.mount=!0;const n=s.target;let u=n.name,h=!0;const d=y(r,u),f=D=>{h=Number.isNaN(D)||ae(D)&&isNaN(D.getTime())||X(D,y(a,u,D))},g=tt(i.mode),k=tt(i.reValidateMode);if(d){let D,W;const ne=n.type?et(d._f):dt(s),ie=s.type===me.BLUR||s.type===me.FOCUS_OUT,St=!Kt(d._f)&&!i.resolver&&!y(t.errors,u)&&!d._f.deps||Qt(ie,y(t.touchedFields,u),t.isSubmitted,k,g),we=st(u,c,ie);C(a,u,ne),ie?(!n||!n.readOnly)&&(d._f.onBlur&&d._f.onBlur(s),x&&x(0)):d._f.onChange&&d._f.onChange(s);const Ee=$(u,ne,ie),Ot=!q(Ee)||we;if(!ie&&_.state.next({name:u,type:s.type,values:R(a)}),St)return(v.isValid||E.isValid)&&(i.mode==="onBlur"?ie&&N():ie||N()),Ot&&_.state.next({name:u,...we?{}:Ee});if(!ie&&we&&_.state.next({...t}),i.resolver){const{errors:Ze}=await re([u]);if(L([u]),f(ne),h){const Rt=it(t.errors,r,u),Ge=it(Ze,r,Rt.name||u);D=Ge.error,u=Ge.name,W=q(Ze)}}else L([u],!0),D=(await at(d,c.disabled,a,B,i.shouldUseNativeValidation))[u],L([u]),f(ne),h&&(D?W=!1:(v.isValid||E.isValid)&&(W=await Q(r,!0)));h&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&fe(d._f.deps),te(u,W,D,Ee))}},ce=(s,n)=>{if(y(t.errors,n)&&s.focus)return s.focus(),1},fe=async(s,n={})=>{let u,h;const d=ye(s);if(i.resolver){const f=await ee(O(s)?s:d);u=q(f),h=s?!d.some(g=>y(f,g)):u}else s?(h=(await Promise.all(d.map(async f=>{const g=y(r,f);return await Q(g&&g._f?{[f]:g}:g)}))).every(Boolean),!(!h&&!t.isValid)&&N()):h=u=await Q(r);return _.state.next({...!G(s)||(v.isValid||E.isValid)&&u!==t.isValid?{}:{name:s},...i.resolver||!s?{isValid:u}:{},errors:t.errors}),n.shouldFocus&&!h&&he(r,ce,s?d:c.mount),h},Pe=(s,n)=>{let u={...l.mount?a:o};return n&&(u=vt(n.dirtyFields?t.dirtyFields:t.touchedFields,u)),O(s)?u:G(s)?y(u,s):s.map(h=>y(u,h))},Be=(s,n)=>({invalid:!!y((n||t).errors,s),isDirty:!!y((n||t).dirtyFields,s),error:y((n||t).errors,s),isValidating:!!y(t.validatingFields,s),isTouched:!!y((n||t).touchedFields,s)}),At=s=>{const n=s?ye(s):void 0;n?.forEach(u=>p(t.errors,u)),n?n.forEach(u=>{_.state.next({name:u,errors:t.errors})}):_.state.next({errors:{}})},je=(s,n,u)=>{const h=(y(r,s,{_f:{}})._f||{}).ref,d=y(t.errors,s)||{},{ref:f,message:g,type:k,...D}=d;C(t.errors,s,{...D,...n,ref:h}),_.state.next({name:s,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&h&&h.focus&&h.focus()},xt=(s,n)=>H(s)?_.state.subscribe({next:u=>"values"in u&&s(w(void 0,n),u)}):w(s,n,!0),We=s=>_.state.subscribe({next:n=>{Gt(s.name,n.name,s.exact)&&Zt(n,s.formState||v,Ct,s.reRenderRoot)&&s.callback({values:{...a},...t,...n,defaultValues:o})}}).unsubscribe,wt=s=>(l.mount=!0,E={...E,...s.formState},We({...s,formState:{...I,...s.formState}})),Fe=(s,n={})=>{for(const u of s?ye(s):c.mount)c.mount.delete(u),c.array.delete(u),n.keepValue||(p(r,u),p(a,u)),!n.keepError&&p(t.errors,u),!n.keepDirty&&p(t.dirtyFields,u),!n.keepTouched&&p(t.touchedFields,u),!n.keepIsValidating&&p(t.validatingFields,u),!i.shouldUnregister&&!n.keepDefaultValue&&p(o,u);_.state.next({values:R(a)}),_.state.next({...t,...n.keepDirty?{isDirty:F()}:{}}),!n.keepIsValid&&N()},qe=({disabled:s,name:n})=>{if(Z(s)&&l.mount||s||c.disabled.has(n)){const d=c.disabled.has(n)!==!!s;s?c.disabled.add(n):c.disabled.delete(n),d&&l.mount&&!l.action&&N()}},Ae=(s,n={})=>{let u=y(r,s);const h=Z(n.disabled)||Z(i.disabled);return C(r,s,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:s}},name:s,mount:!0,...n}}),c.mount.add(s),u?qe({disabled:Z(n.disabled)?n.disabled:i.disabled,name:s}):A(s,!0,n.value),{...h?{disabled:n.disabled||i.disabled}:{},...i.progressive?{required:!!n.required,min:de(n.min),max:de(n.max),minLength:de(n.minLength),maxLength:de(n.maxLength),pattern:de(n.pattern)}:{},name:s,onChange:le,onBlur:le,ref:d=>{if(d){Ae(s,n),u=y(r,s);const f=O(d.value)&&d.querySelectorAll&&d.querySelectorAll("input,select,textarea")[0]||d,g=jt(f),k=u._f.refs||[];if(g?k.find(D=>D===f):f===u._f.ref)return;C(r,s,{_f:{...u._f,...g?{refs:[...k.filter(ke),f,...Array.isArray(y(o,s))?[{}]:[]],ref:{type:f.type,name:s}}:{ref:f}}}),A(s,!1,void 0,f)}else u=y(r,s,{}),u._f&&(u._f.mount=!1),(i.shouldUnregister||n.shouldUnregister)&&!(yt(c.array,s)&&l.action)&&c.unMount.add(s)}}},xe=()=>i.shouldFocusError&&he(r,ce,c.mount),Et=s=>{Z(s)&&(_.state.next({disabled:s}),he(r,(n,u)=>{const h=y(r,u);h&&(n.disabled=h._f.disabled||s,Array.isArray(h._f.refs)&&h._f.refs.forEach(d=>{d.disabled=h._f.disabled||s}))},0,!1))},He=(s,n)=>async u=>{let h;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let d=R(a);if(_.state.next({isSubmitting:!0}),i.resolver){const{errors:f,values:g}=await re();L(),t.errors=f,d=R(g)}else await Q(r);if(c.disabled.size)for(const f of c.disabled)p(d,f);if(p(t.errors,"root"),q(t.errors)){_.state.next({errors:{}});try{await s(d,u)}catch(f){h=f}}else n&&await n({...t.errors},u),xe(),setTimeout(xe);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:q(t.errors)&&!h,submitCount:t.submitCount+1,errors:t.errors}),h)throw h},kt=(s,n={})=>{y(r,s)&&(O(n.defaultValue)?K(s,R(y(o,s))):(K(s,n.defaultValue),C(o,s,R(n.defaultValue))),n.keepTouched||p(t.touchedFields,s),n.keepDirty||(p(t.dirtyFields,s),t.isDirty=n.defaultValue?F(s,R(y(o,s))):F()),n.keepError||(p(t.errors,s),v.isValid&&N()),_.state.next({...t}))},$e=(s,n={})=>{const u=s?R(s):o,h=R(u),d=q(s),f=d?o:h;if(n.keepDefaultValues||(o=u),!n.keepValues){if(n.keepDirtyValues){const g=new Set([...c.mount,...Object.keys(ue(o,a))]);for(const k of Array.from(g)){const D=y(t.dirtyFields,k),W=y(a,k),ne=y(f,k);D&&!O(W)?C(f,k,W):!D&&!O(ne)&&K(k,ne)}}else{if(Re&&O(s))for(const g of c.mount){const k=y(r,g);if(k&&k._f){const D=Array.isArray(k._f.refs)?k._f.refs[0]:k._f.ref;if(_e(D)){const W=D.closest("form");if(W){W.reset();break}}}}if(n.keepFieldsRef)for(const g of c.mount)K(g,y(f,g));else r={}}a=i.shouldUnregister?n.keepDefaultValues?R(o):{}:R(f),_.array.next({values:{...f}}),_.state.next({values:{...f}})}c={mount:n.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!v.isValid||!!n.keepIsValid||!!n.keepDirtyValues||!i.shouldUnregister&&!q(f),l.watch=!!i.shouldUnregister,l.keepIsValid=!!n.keepIsValid,l.action=!1,n.keepErrors||(t.errors={}),_.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:d?!1:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!X(s,o)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:d?{}:n.keepDirtyValues?n.keepDefaultValues&&a?ue(o,a):t.dirtyFields:n.keepDefaultValues&&s?ue(o,s):n.keepDirty?t.dirtyFields:{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},ze=(s,n)=>$e(H(s)?s(a):s,{...i.resetOptions,...n}),Dt=(s,n={})=>{const u=y(r,s),h=u&&u._f;if(h){const d=h.refs?h.refs[0]:h.ref;d.focus&&setTimeout(()=>{d.focus(),n.shouldSelect&&H(d.select)&&d.select()})}},Ct=s=>{t={...t,...s}},Ke={control:{register:Ae,unregister:Fe,getFieldState:Be,handleSubmit:He,setError:je,_subscribe:We,_runSchema:re,_updateIsValidating:L,_focusError:xe,_getWatch:w,_getDirty:F,_setValid:N,_setFieldArray:b,_setDisabledField:qe,_setErrors:V,_getFieldArray:M,_reset:$e,_resetDefaultValues:()=>H(i.defaultValues)&&i.defaultValues().then(s=>{ze(s,i.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Et,_subjects:_,_proxyFormState:v,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(s){l=s},get _defaultValues(){return o},get _names(){return c},set _names(s){c=s},get _formState(){return t},get _options(){return i},set _options(s){i={...i,...s}}},subscribe:wt,trigger:fe,register:Ae,handleSubmit:He,watch:xt,setValue:K,getValues:Pe,reset:ze,resetField:kt,clearErrors:At,unregister:Fe,setError:je,setFocus:Dt,getFieldState:Be};return{...Ke,formControl:Ke}}function or(e={}){const i=m.useRef(void 0),t=m.useRef(void 0),[r,o]=m.useState({isDirty:!1,isValidating:!1,isLoading:H(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:H(e.defaultValues)?void 0:e.defaultValues});if(!i.current)if(e.formControl)i.current={...e.formControl,formState:r},e.defaultValues&&!H(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=er(e);i.current={...c,formState:r}}const a=i.current.control;return a._options=e,Le(()=>{const l=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}),reRenderRoot:!0});return o(c=>({...c,isReady:!0})),a._formState.isReady=!0,l},[a]),m.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),m.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),m.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),m.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),m.useEffect(()=>{if(a._proxyFormState.isDirty){const l=a._getDirty();l!==r.isDirty&&a._subjects.state.next({isDirty:l})}},[a,r.isDirty]),m.useEffect(()=>{var l;e.values&&!X(e.values,t.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((l=a._options.resetOptions)===null||l===void 0)&&l.keepIsValid||a._setValid(),t.current=e.values,o(c=>({...c}))):a._resetDefaultValues()},[a,e.values]),m.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=m.useMemo(()=>gt(r,a),[a,r]),i.current}const ot=(e,i,t)=>{if(e&&"reportValidity"in e){const r=y(t,i);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Oe=(e,i)=>{for(const t in i.fields){const r=i.fields[t];r&&r.ref&&"reportValidity"in r.ref?ot(r.ref,t,e):r&&r.refs&&r.refs.forEach(o=>ot(o,t,e))}},ut=(e,i)=>{i.shouldUseNativeValidation&&Oe(e,i);const t={};for(const r in e){const o=y(i.fields,r),a=Object.assign(e[r]||{},{ref:o&&o.ref});if(tr(i.names||Object.keys(e),r)){const l=Object.assign({},y(t,r));C(l,"root",a),C(t,r,l)}else C(t,r,a)}return t},tr=(e,i)=>{const t=lt(i);return e.some(r=>lt(r).match(`^${t}\\.\\d+`))};function lt(e){return e.replace(/\]|\[/g,"")}function ct(e,i){try{var t=e()}catch(r){return i(r)}return t&&t.then?t.then(void 0,i):t}function rr(e,i){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,l=r.path.join(".");if(!t[l])if("unionErrors"in r){var c=r.unionErrors[0].errors[0];t[l]={message:c.message,type:c.code}}else t[l]={message:a,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(I){return I.errors.forEach(function(v){return e.push(v)})}),i){var x=t[l].types,S=x&&x[r.code];t[l]=Me(l,i,t,o,S?[].concat(S,r.message):r.message)}e.shift()}return t}function sr(e,i){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,l=r.path.join(".");if(!t[l])if(r.code==="invalid_union"&&r.errors.length>0){var c=r.errors[0][0];t[l]={message:c.message,type:c.code}}else t[l]={message:a,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(I){return I.forEach(function(v){return e.push(v)})}),i){var x=t[l].types,S=x&&x[r.code];t[l]=Me(l,i,t,o,S?[].concat(S,r.message):r.message)}e.shift()}return t}function ur(e,i,t){if(t===void 0&&(t={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,o,a){try{return Promise.resolve(ct(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](r,i)).then(function(l){return a.shouldUseNativeValidation&&Oe({},a),{errors:{},values:t.raw?Object.assign({},r):l}})},function(l){if((function(c){return Array.isArray(c?.issues)})(l))return{values:{},errors:ut(rr(l.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,o,a){try{return Promise.resolve(ct(function(){return Promise.resolve((t.mode==="sync"?pt:Tt)(e,r,i)).then(function(l){return a.shouldUseNativeValidation&&Oe({},a),{errors:{},values:t.raw?Object.assign({},r):l}})},function(l){if((function(c){return c instanceof Ut})(l))return{values:{},errors:ut(sr(l.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}export{ar as C,ur as a,or as u}; diff --git a/hive/services/hiveui/frontend/package.json b/hive/services/hiveui/frontend/package.json index 6c6acbd30..373272aa4 100644 --- a/hive/services/hiveui/frontend/package.json +++ b/hive/services/hiveui/frontend/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@aws-sdk/client-ec2": "^3.1000.0", + "@aws-sdk/client-iam": "^3.1000.0", "@aws-sdk/client-s3": "^3.995.0", "@aws-sdk/lib-storage": "^3.995.0", "@base-ui/react": "^1.2.0", diff --git a/hive/services/hiveui/frontend/pnpm-lock.yaml b/hive/services/hiveui/frontend/pnpm-lock.yaml index 624823053..1ae51a002 100644 --- a/hive/services/hiveui/frontend/pnpm-lock.yaml +++ b/hive/services/hiveui/frontend/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@aws-sdk/client-ec2': specifier: ^3.1000.0 version: 3.1000.0 + '@aws-sdk/client-iam': + specifier: ^3.1000.0 + version: 3.1000.0 '@aws-sdk/client-s3': specifier: ^3.995.0 version: 3.1000.0 @@ -135,6 +138,10 @@ packages: resolution: {integrity: sha512-SLdVSUScYXbUq2VRdKa3MloNRGnKqnmVdXkfQfJ4WyR5Lzrh1Gs6t9MXBxBMYPaFEdZhav/wMK92PSYdqLBKnA==} engines: {node: '>=20.0.0'} + '@aws-sdk/client-iam@3.1000.0': + resolution: {integrity: sha512-RR4mq7t+4Fb2iaFDTcXF6Tcigl2nSWUyH61rwtiSbRrNp9A3xSexCSw79SIAkfwsuhk8Ig/ZVt5qpRHWRj2zgA==} + engines: {node: '>=20.0.0'} + '@aws-sdk/client-s3@3.1000.0': resolution: {integrity: sha512-7kPy33qNGq3NfwHC0412T6LDK1bp4+eiPzetX0sVd9cpTSXuQDKpoOFnB0Njj6uZjJDcLS3n2OeyarwwgkQ0Ow==} engines: {node: '>=20.0.0'} @@ -1936,6 +1943,51 @@ snapshots: transitivePeerDependencies: - aws-crt + '@aws-sdk/client-iam@3.1000.0': + dependencies: + '@aws-crypto/sha256-browser': 5.2.0 + '@aws-crypto/sha256-js': 5.2.0 + '@aws-sdk/core': 3.973.15 + '@aws-sdk/credential-provider-node': 3.972.14 + '@aws-sdk/middleware-host-header': 3.972.6 + '@aws-sdk/middleware-logger': 3.972.6 + '@aws-sdk/middleware-recursion-detection': 3.972.6 + '@aws-sdk/middleware-user-agent': 3.972.15 + '@aws-sdk/region-config-resolver': 3.972.6 + '@aws-sdk/types': 3.973.4 + '@aws-sdk/util-endpoints': 3.996.3 + '@aws-sdk/util-user-agent-browser': 3.972.6 + '@aws-sdk/util-user-agent-node': 3.973.0 + '@smithy/config-resolver': 4.4.9 + '@smithy/core': 3.23.6 + '@smithy/fetch-http-handler': 5.3.11 + '@smithy/hash-node': 4.2.10 + '@smithy/invalid-dependency': 4.2.10 + '@smithy/middleware-content-length': 4.2.10 + '@smithy/middleware-endpoint': 4.4.20 + '@smithy/middleware-retry': 4.4.37 + '@smithy/middleware-serde': 4.2.11 + '@smithy/middleware-stack': 4.2.10 + '@smithy/node-config-provider': 4.3.10 + '@smithy/node-http-handler': 4.4.12 + '@smithy/protocol-http': 5.3.10 + '@smithy/smithy-client': 4.12.0 + '@smithy/types': 4.13.0 + '@smithy/url-parser': 4.2.10 + '@smithy/util-base64': 4.3.1 + '@smithy/util-body-length-browser': 4.2.1 + '@smithy/util-body-length-node': 4.2.2 + '@smithy/util-defaults-mode-browser': 4.3.36 + '@smithy/util-defaults-mode-node': 4.2.39 + '@smithy/util-endpoints': 3.3.1 + '@smithy/util-middleware': 4.2.10 + '@smithy/util-retry': 4.2.10 + '@smithy/util-utf8': 4.2.1 + '@smithy/util-waiter': 4.2.10 + tslib: 2.8.1 + transitivePeerDependencies: + - aws-crt + '@aws-sdk/client-s3@3.1000.0': dependencies: '@aws-crypto/sha1-browser': 5.2.0 diff --git a/hive/services/hiveui/frontend/src/components/state-badge.tsx b/hive/services/hiveui/frontend/src/components/state-badge.tsx index c0e88f2e5..fad986cab 100644 --- a/hive/services/hiveui/frontend/src/components/state-badge.tsx +++ b/hive/services/hiveui/frontend/src/components/state-badge.tsx @@ -2,7 +2,12 @@ export function StateBadge({ state }: { state: string | undefined }) { let className = "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100" - if (state === "running" || state === "available" || state === "completed") { + if ( + state === "running" || + state === "available" || + state === "completed" || + state === "Active" + ) { className = "bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100" } else if (state === "stopped" || state === "error") { diff --git a/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx b/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx index 8c939c499..92fe50320 100644 --- a/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx +++ b/hive/services/hiveui/frontend/src/layouts/sidebar-layout.tsx @@ -10,6 +10,8 @@ import { LogOut, Network, Server, + Shield, + Users, } from "lucide-react" // import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" @@ -181,6 +183,41 @@ export function SidebarLayout() { + + IAM + + + + + + Users + + + + + + + + + Policies + + + + + + S3 diff --git a/hive/services/hiveui/frontend/src/lib/awsClient.ts b/hive/services/hiveui/frontend/src/lib/awsClient.ts index 12c8adebf..8cd58a1a7 100644 --- a/hive/services/hiveui/frontend/src/lib/awsClient.ts +++ b/hive/services/hiveui/frontend/src/lib/awsClient.ts @@ -1,4 +1,5 @@ import { EC2Client } from "@aws-sdk/client-ec2" +import { IAMClient } from "@aws-sdk/client-iam" import { S3Client } from "@aws-sdk/client-s3" import { getCredentials } from "./auth" @@ -8,6 +9,7 @@ const s3Endpoint = `${window.location.protocol}//${window.location.hostname}:844 // Cached singleton clients let ec2Client: EC2Client | null = null +let iamClient: IAMClient | null = null let s3Client: S3Client | null = null export function getEc2Client(): EC2Client { @@ -28,6 +30,24 @@ export function getEc2Client(): EC2Client { return ec2Client } +export function getIamClient(): IAMClient { + if (!iamClient) { + const credentials = getCredentials() + if (!credentials) { + throw new Error("AWS credentials not configured") + } + iamClient = new IAMClient({ + endpoint: awsEndpoint, + region: "ap-southeast-2", + credentials: { + accessKeyId: credentials.accessKeyId, + secretAccessKey: credentials.secretAccessKey, + }, + }) + } + return iamClient +} + export function getS3Client(): S3Client { if (!s3Client) { const credentials = getCredentials() @@ -67,5 +87,6 @@ export function getS3Client(): S3Client { // Call on logout to clear cached clients export function clearClients(): void { ec2Client = null + iamClient = null s3Client = null } diff --git a/hive/services/hiveui/frontend/src/mutations/iam.ts b/hive/services/hiveui/frontend/src/mutations/iam.ts new file mode 100644 index 000000000..c0498053a --- /dev/null +++ b/hive/services/hiveui/frontend/src/mutations/iam.ts @@ -0,0 +1,162 @@ +import { + AttachUserPolicyCommand, + CreateAccessKeyCommand, + CreatePolicyCommand, + CreateUserCommand, + DeleteAccessKeyCommand, + DeletePolicyCommand, + DeleteUserCommand, + DetachUserPolicyCommand, + UpdateAccessKeyCommand, +} from "@aws-sdk/client-iam" +import { useMutation, useQueryClient } from "@tanstack/react-query" + +import { getIamClient } from "@/lib/awsClient" +import type { + CreatePolicyFormData, + CreateUserFormData, + DeleteAccessKeyParams, + UpdateAccessKeyParams, + UserPolicyParams, +} from "@/types/iam" + +export function useCreateUser() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: CreateUserFormData) => { + const command = new CreateUserCommand({ + UserName: params.userName, + Path: params.path || undefined, + }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["iam", "users"] }) + }, + }) +} + +export function useDeleteUser() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (userName: string) => { + const command = new DeleteUserCommand({ UserName: userName }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["iam", "users"] }) + }, + }) +} + +export function useCreateAccessKey() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (userName: string) => { + const command = new CreateAccessKeyCommand({ UserName: userName }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["iam", "access-keys"] }) + }, + }) +} + +export function useDeleteAccessKey() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: ({ userName, accessKeyId }: DeleteAccessKeyParams) => { + const command = new DeleteAccessKeyCommand({ + UserName: userName, + AccessKeyId: accessKeyId, + }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["iam", "access-keys"] }) + }, + }) +} + +export function useUpdateAccessKey() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: ({ userName, accessKeyId, status }: UpdateAccessKeyParams) => { + const command = new UpdateAccessKeyCommand({ + UserName: userName, + AccessKeyId: accessKeyId, + Status: status, + }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["iam", "access-keys"] }) + }, + }) +} + +export function useCreatePolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (params: CreatePolicyFormData) => { + const command = new CreatePolicyCommand({ + PolicyName: params.policyName, + Description: params.description || undefined, + PolicyDocument: params.policyDocument, + }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["iam", "policies"] }) + }, + }) +} + +export function useDeletePolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: (policyArn: string) => { + const command = new DeletePolicyCommand({ PolicyArn: policyArn }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["iam", "policies"] }) + }, + }) +} + +export function useAttachUserPolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: ({ userName, policyArn }: UserPolicyParams) => { + const command = new AttachUserPolicyCommand({ + UserName: userName, + PolicyArn: policyArn, + }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: ["iam", "attached-user-policies"], + }) + }, + }) +} + +export function useDetachUserPolicy() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: ({ userName, policyArn }: UserPolicyParams) => { + const command = new DetachUserPolicyCommand({ + UserName: userName, + PolicyArn: policyArn, + }) + return getIamClient().send(command) + }, + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: ["iam", "attached-user-policies"], + }) + }, + }) +} diff --git a/hive/services/hiveui/frontend/src/queries/iam.ts b/hive/services/hiveui/frontend/src/queries/iam.ts new file mode 100644 index 000000000..b36d0bb24 --- /dev/null +++ b/hive/services/hiveui/frontend/src/queries/iam.ts @@ -0,0 +1,88 @@ +import { + GetPolicyCommand, + GetPolicyVersionCommand, + GetUserCommand, + ListAccessKeysCommand, + ListAttachedUserPoliciesCommand, + ListPoliciesCommand, + ListUsersCommand, +} from "@aws-sdk/client-iam" +import { queryOptions } from "@tanstack/react-query" + +import { getIamClient } from "@/lib/awsClient" + +export const iamUsersQueryOptions = queryOptions({ + queryKey: ["iam", "users"], + queryFn: () => { + const command = new ListUsersCommand({}) + return getIamClient().send(command) + }, + staleTime: 300_000, +}) + +export const iamUserQueryOptions = (userName: string) => + queryOptions({ + queryKey: ["iam", "users", userName], + queryFn: () => { + const command = new GetUserCommand({ UserName: userName }) + return getIamClient().send(command) + }, + staleTime: 300_000, + }) + +export const iamAccessKeysQueryOptions = (userName: string) => + queryOptions({ + queryKey: ["iam", "access-keys", userName], + queryFn: () => { + const command = new ListAccessKeysCommand({ UserName: userName }) + return getIamClient().send(command) + }, + staleTime: 300_000, + }) + +export const iamPoliciesQueryOptions = queryOptions({ + queryKey: ["iam", "policies"], + queryFn: () => { + const command = new ListPoliciesCommand({ Scope: "Local" }) + return getIamClient().send(command) + }, + staleTime: 300_000, +}) + +export const iamPolicyQueryOptions = (policyArn: string) => + queryOptions({ + queryKey: ["iam", "policies", policyArn], + queryFn: () => { + const command = new GetPolicyCommand({ PolicyArn: policyArn }) + return getIamClient().send(command) + }, + staleTime: 300_000, + }) + +export const iamPolicyVersionQueryOptions = ( + policyArn: string, + versionId: string, +) => + queryOptions({ + queryKey: ["iam", "policy-versions", policyArn, versionId], + queryFn: () => { + const command = new GetPolicyVersionCommand({ + PolicyArn: policyArn, + VersionId: versionId, + }) + return getIamClient().send(command) + }, + staleTime: 300_000, + }) + +export const iamAttachedUserPoliciesQueryOptions = (userName: string) => + queryOptions({ + queryKey: ["iam", "attached-user-policies", userName], + queryFn: () => { + const command = new ListAttachedUserPoliciesCommand({ + UserName: userName, + }) + return getIamClient().send(command) + }, + staleTime: 300_000, + }) diff --git a/hive/services/hiveui/frontend/src/routeTree.gen.ts b/hive/services/hiveui/frontend/src/routeTree.gen.ts index f0db30163..d9a694721 100644 --- a/hive/services/hiveui/frontend/src/routeTree.gen.ts +++ b/hive/services/hiveui/frontend/src/routeTree.gen.ts @@ -14,6 +14,8 @@ import { Route as AuthRouteRouteImport } from './routes/_auth/route' import { Route as AuthIndexRouteImport } from './routes/_auth/index' import { Route as AuthS3LsIndexRouteImport } from './routes/_auth/s3/ls/index' import { Route as AuthS3bucketsCreateBucketRouteImport } from './routes/_auth/s3/(buckets)/create-bucket' +import { Route as AuthIamusersCreateUserRouteImport } from './routes/_auth/iam/(users)/create-user' +import { Route as AuthIampoliciesCreatePolicyRouteImport } from './routes/_auth/iam/(policies)/create-policy' import { Route as AuthEc2vpcCreateVpcRouteImport } from './routes/_auth/ec2/(vpc)/create-vpc' import { Route as AuthEc2volumesCreateVolumeRouteImport } from './routes/_auth/ec2/(volumes)/create-volume' import { Route as AuthEc2subnetCreateSubnetRouteImport } from './routes/_auth/ec2/(subnet)/create-subnet' @@ -23,6 +25,8 @@ import { Route as AuthEc2keyCreateKeyPairRouteImport } from './routes/_auth/ec2/ import { Route as AuthEc2instancesRunInstancesRouteImport } from './routes/_auth/ec2/(instances)/run-instances' import { Route as AuthS3LsBucketRouteRouteImport } from './routes/_auth/s3/ls/$bucket/route' import { Route as AuthS3LsBucketIndexRouteImport } from './routes/_auth/s3/ls/$bucket/index' +import { Route as AuthIamusersListUsersIndexRouteImport } from './routes/_auth/iam/(users)/list-users/index' +import { Route as AuthIampoliciesListPoliciesIndexRouteImport } from './routes/_auth/iam/(policies)/list-policies/index' import { Route as AuthEc2vpcDescribeVpcsIndexRouteImport } from './routes/_auth/ec2/(vpc)/describe-vpcs/index' import { Route as AuthEc2volumesDescribeVolumesIndexRouteImport } from './routes/_auth/ec2/(volumes)/describe-volumes/index' import { Route as AuthEc2subnetDescribeSubnetsIndexRouteImport } from './routes/_auth/ec2/(subnet)/describe-subnets/index' @@ -31,6 +35,8 @@ import { Route as AuthEc2keyDescribeKeyPairsIndexRouteImport } from './routes/_a import { Route as AuthEc2instancesDescribeInstancesIndexRouteImport } from './routes/_auth/ec2/(instances)/describe-instances/index' import { Route as AuthEc2imagesDescribeImagesIndexRouteImport } from './routes/_auth/ec2/(images)/describe-images/index' import { Route as AuthS3LsBucketSplatRouteImport } from './routes/_auth/s3/ls/$bucket/$' +import { Route as AuthIamusersListUsersUserNameRouteImport } from './routes/_auth/iam/(users)/list-users/$userName' +import { Route as AuthIampoliciesListPoliciesPolicyArnRouteImport } from './routes/_auth/iam/(policies)/list-policies/$policyArn' import { Route as AuthEc2vpcDescribeVpcsIdRouteImport } from './routes/_auth/ec2/(vpc)/describe-vpcs/$id' import { Route as AuthEc2volumesModifyVolumeIdRouteImport } from './routes/_auth/ec2/(volumes)/modify-volume/$id' import { Route as AuthEc2volumesDescribeVolumesIdRouteImport } from './routes/_auth/ec2/(volumes)/describe-volumes/$id' @@ -65,6 +71,17 @@ const AuthS3bucketsCreateBucketRoute = path: '/s3/create-bucket', getParentRoute: () => AuthRouteRoute, } as any) +const AuthIamusersCreateUserRoute = AuthIamusersCreateUserRouteImport.update({ + id: '/iam/(users)/create-user', + path: '/iam/create-user', + getParentRoute: () => AuthRouteRoute, +} as any) +const AuthIampoliciesCreatePolicyRoute = + AuthIampoliciesCreatePolicyRouteImport.update({ + id: '/iam/(policies)/create-policy', + path: '/iam/create-policy', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2vpcCreateVpcRoute = AuthEc2vpcCreateVpcRouteImport.update({ id: '/ec2/(vpc)/create-vpc', path: '/ec2/create-vpc', @@ -114,6 +131,18 @@ const AuthS3LsBucketIndexRoute = AuthS3LsBucketIndexRouteImport.update({ path: '/', getParentRoute: () => AuthS3LsBucketRouteRoute, } as any) +const AuthIamusersListUsersIndexRoute = + AuthIamusersListUsersIndexRouteImport.update({ + id: '/iam/(users)/list-users/', + path: '/iam/list-users/', + getParentRoute: () => AuthRouteRoute, + } as any) +const AuthIampoliciesListPoliciesIndexRoute = + AuthIampoliciesListPoliciesIndexRouteImport.update({ + id: '/iam/(policies)/list-policies/', + path: '/iam/list-policies/', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2vpcDescribeVpcsIndexRoute = AuthEc2vpcDescribeVpcsIndexRouteImport.update({ id: '/ec2/(vpc)/describe-vpcs/', @@ -161,6 +190,18 @@ const AuthS3LsBucketSplatRoute = AuthS3LsBucketSplatRouteImport.update({ path: '/$', getParentRoute: () => AuthS3LsBucketRouteRoute, } as any) +const AuthIamusersListUsersUserNameRoute = + AuthIamusersListUsersUserNameRouteImport.update({ + id: '/iam/(users)/list-users/$userName', + path: '/iam/list-users/$userName', + getParentRoute: () => AuthRouteRoute, + } as any) +const AuthIampoliciesListPoliciesPolicyArnRoute = + AuthIampoliciesListPoliciesPolicyArnRouteImport.update({ + id: '/iam/(policies)/list-policies/$policyArn', + path: '/iam/list-policies/$policyArn', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthEc2vpcDescribeVpcsIdRoute = AuthEc2vpcDescribeVpcsIdRouteImport.update({ id: '/ec2/(vpc)/describe-vpcs/$id', @@ -221,6 +262,8 @@ export interface FileRoutesByFullPath { '/ec2/create-subnet': typeof AuthEc2subnetCreateSubnetRoute '/ec2/create-volume': typeof AuthEc2volumesCreateVolumeRoute '/ec2/create-vpc': typeof AuthEc2vpcCreateVpcRoute + '/iam/create-policy': typeof AuthIampoliciesCreatePolicyRoute + '/iam/create-user': typeof AuthIamusersCreateUserRoute '/s3/create-bucket': typeof AuthS3bucketsCreateBucketRoute '/s3/ls/': typeof AuthS3LsIndexRoute '/ec2/describe-images/$id': typeof AuthEc2imagesDescribeImagesIdRoute @@ -231,6 +274,8 @@ export interface FileRoutesByFullPath { '/ec2/describe-volumes/$id': typeof AuthEc2volumesDescribeVolumesIdRoute '/ec2/modify-volume/$id': typeof AuthEc2volumesModifyVolumeIdRoute '/ec2/describe-vpcs/$id': typeof AuthEc2vpcDescribeVpcsIdRoute + '/iam/list-policies/$policyArn': typeof AuthIampoliciesListPoliciesPolicyArnRoute + '/iam/list-users/$userName': typeof AuthIamusersListUsersUserNameRoute '/s3/ls/$bucket/$': typeof AuthS3LsBucketSplatRoute '/ec2/describe-images/': typeof AuthEc2imagesDescribeImagesIndexRoute '/ec2/describe-instances/': typeof AuthEc2instancesDescribeInstancesIndexRoute @@ -239,6 +284,8 @@ export interface FileRoutesByFullPath { '/ec2/describe-subnets/': typeof AuthEc2subnetDescribeSubnetsIndexRoute '/ec2/describe-volumes/': typeof AuthEc2volumesDescribeVolumesIndexRoute '/ec2/describe-vpcs/': typeof AuthEc2vpcDescribeVpcsIndexRoute + '/iam/list-policies/': typeof AuthIampoliciesListPoliciesIndexRoute + '/iam/list-users/': typeof AuthIamusersListUsersIndexRoute '/s3/ls/$bucket/': typeof AuthS3LsBucketIndexRoute } export interface FileRoutesByTo { @@ -251,6 +298,8 @@ export interface FileRoutesByTo { '/ec2/create-subnet': typeof AuthEc2subnetCreateSubnetRoute '/ec2/create-volume': typeof AuthEc2volumesCreateVolumeRoute '/ec2/create-vpc': typeof AuthEc2vpcCreateVpcRoute + '/iam/create-policy': typeof AuthIampoliciesCreatePolicyRoute + '/iam/create-user': typeof AuthIamusersCreateUserRoute '/s3/create-bucket': typeof AuthS3bucketsCreateBucketRoute '/s3/ls': typeof AuthS3LsIndexRoute '/ec2/describe-images/$id': typeof AuthEc2imagesDescribeImagesIdRoute @@ -261,6 +310,8 @@ export interface FileRoutesByTo { '/ec2/describe-volumes/$id': typeof AuthEc2volumesDescribeVolumesIdRoute '/ec2/modify-volume/$id': typeof AuthEc2volumesModifyVolumeIdRoute '/ec2/describe-vpcs/$id': typeof AuthEc2vpcDescribeVpcsIdRoute + '/iam/list-policies/$policyArn': typeof AuthIampoliciesListPoliciesPolicyArnRoute + '/iam/list-users/$userName': typeof AuthIamusersListUsersUserNameRoute '/s3/ls/$bucket/$': typeof AuthS3LsBucketSplatRoute '/ec2/describe-images': typeof AuthEc2imagesDescribeImagesIndexRoute '/ec2/describe-instances': typeof AuthEc2instancesDescribeInstancesIndexRoute @@ -269,6 +320,8 @@ export interface FileRoutesByTo { '/ec2/describe-subnets': typeof AuthEc2subnetDescribeSubnetsIndexRoute '/ec2/describe-volumes': typeof AuthEc2volumesDescribeVolumesIndexRoute '/ec2/describe-vpcs': typeof AuthEc2vpcDescribeVpcsIndexRoute + '/iam/list-policies': typeof AuthIampoliciesListPoliciesIndexRoute + '/iam/list-users': typeof AuthIamusersListUsersIndexRoute '/s3/ls/$bucket': typeof AuthS3LsBucketIndexRoute } export interface FileRoutesById { @@ -284,6 +337,8 @@ export interface FileRoutesById { '/_auth/ec2/(subnet)/create-subnet': typeof AuthEc2subnetCreateSubnetRoute '/_auth/ec2/(volumes)/create-volume': typeof AuthEc2volumesCreateVolumeRoute '/_auth/ec2/(vpc)/create-vpc': typeof AuthEc2vpcCreateVpcRoute + '/_auth/iam/(policies)/create-policy': typeof AuthIampoliciesCreatePolicyRoute + '/_auth/iam/(users)/create-user': typeof AuthIamusersCreateUserRoute '/_auth/s3/(buckets)/create-bucket': typeof AuthS3bucketsCreateBucketRoute '/_auth/s3/ls/': typeof AuthS3LsIndexRoute '/_auth/ec2/(images)/describe-images/$id': typeof AuthEc2imagesDescribeImagesIdRoute @@ -294,6 +349,8 @@ export interface FileRoutesById { '/_auth/ec2/(volumes)/describe-volumes/$id': typeof AuthEc2volumesDescribeVolumesIdRoute '/_auth/ec2/(volumes)/modify-volume/$id': typeof AuthEc2volumesModifyVolumeIdRoute '/_auth/ec2/(vpc)/describe-vpcs/$id': typeof AuthEc2vpcDescribeVpcsIdRoute + '/_auth/iam/(policies)/list-policies/$policyArn': typeof AuthIampoliciesListPoliciesPolicyArnRoute + '/_auth/iam/(users)/list-users/$userName': typeof AuthIamusersListUsersUserNameRoute '/_auth/s3/ls/$bucket/$': typeof AuthS3LsBucketSplatRoute '/_auth/ec2/(images)/describe-images/': typeof AuthEc2imagesDescribeImagesIndexRoute '/_auth/ec2/(instances)/describe-instances/': typeof AuthEc2instancesDescribeInstancesIndexRoute @@ -302,6 +359,8 @@ export interface FileRoutesById { '/_auth/ec2/(subnet)/describe-subnets/': typeof AuthEc2subnetDescribeSubnetsIndexRoute '/_auth/ec2/(volumes)/describe-volumes/': typeof AuthEc2volumesDescribeVolumesIndexRoute '/_auth/ec2/(vpc)/describe-vpcs/': typeof AuthEc2vpcDescribeVpcsIndexRoute + '/_auth/iam/(policies)/list-policies/': typeof AuthIampoliciesListPoliciesIndexRoute + '/_auth/iam/(users)/list-users/': typeof AuthIamusersListUsersIndexRoute '/_auth/s3/ls/$bucket/': typeof AuthS3LsBucketIndexRoute } export interface FileRouteTypes { @@ -317,6 +376,8 @@ export interface FileRouteTypes { | '/ec2/create-subnet' | '/ec2/create-volume' | '/ec2/create-vpc' + | '/iam/create-policy' + | '/iam/create-user' | '/s3/create-bucket' | '/s3/ls/' | '/ec2/describe-images/$id' @@ -327,6 +388,8 @@ export interface FileRouteTypes { | '/ec2/describe-volumes/$id' | '/ec2/modify-volume/$id' | '/ec2/describe-vpcs/$id' + | '/iam/list-policies/$policyArn' + | '/iam/list-users/$userName' | '/s3/ls/$bucket/$' | '/ec2/describe-images/' | '/ec2/describe-instances/' @@ -335,6 +398,8 @@ export interface FileRouteTypes { | '/ec2/describe-subnets/' | '/ec2/describe-volumes/' | '/ec2/describe-vpcs/' + | '/iam/list-policies/' + | '/iam/list-users/' | '/s3/ls/$bucket/' fileRoutesByTo: FileRoutesByTo to: @@ -347,6 +412,8 @@ export interface FileRouteTypes { | '/ec2/create-subnet' | '/ec2/create-volume' | '/ec2/create-vpc' + | '/iam/create-policy' + | '/iam/create-user' | '/s3/create-bucket' | '/s3/ls' | '/ec2/describe-images/$id' @@ -357,6 +424,8 @@ export interface FileRouteTypes { | '/ec2/describe-volumes/$id' | '/ec2/modify-volume/$id' | '/ec2/describe-vpcs/$id' + | '/iam/list-policies/$policyArn' + | '/iam/list-users/$userName' | '/s3/ls/$bucket/$' | '/ec2/describe-images' | '/ec2/describe-instances' @@ -365,6 +434,8 @@ export interface FileRouteTypes { | '/ec2/describe-subnets' | '/ec2/describe-volumes' | '/ec2/describe-vpcs' + | '/iam/list-policies' + | '/iam/list-users' | '/s3/ls/$bucket' id: | '__root__' @@ -379,6 +450,8 @@ export interface FileRouteTypes { | '/_auth/ec2/(subnet)/create-subnet' | '/_auth/ec2/(volumes)/create-volume' | '/_auth/ec2/(vpc)/create-vpc' + | '/_auth/iam/(policies)/create-policy' + | '/_auth/iam/(users)/create-user' | '/_auth/s3/(buckets)/create-bucket' | '/_auth/s3/ls/' | '/_auth/ec2/(images)/describe-images/$id' @@ -389,6 +462,8 @@ export interface FileRouteTypes { | '/_auth/ec2/(volumes)/describe-volumes/$id' | '/_auth/ec2/(volumes)/modify-volume/$id' | '/_auth/ec2/(vpc)/describe-vpcs/$id' + | '/_auth/iam/(policies)/list-policies/$policyArn' + | '/_auth/iam/(users)/list-users/$userName' | '/_auth/s3/ls/$bucket/$' | '/_auth/ec2/(images)/describe-images/' | '/_auth/ec2/(instances)/describe-instances/' @@ -397,6 +472,8 @@ export interface FileRouteTypes { | '/_auth/ec2/(subnet)/describe-subnets/' | '/_auth/ec2/(volumes)/describe-volumes/' | '/_auth/ec2/(vpc)/describe-vpcs/' + | '/_auth/iam/(policies)/list-policies/' + | '/_auth/iam/(users)/list-users/' | '/_auth/s3/ls/$bucket/' fileRoutesById: FileRoutesById } @@ -442,6 +519,20 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthS3bucketsCreateBucketRouteImport parentRoute: typeof AuthRouteRoute } + '/_auth/iam/(users)/create-user': { + id: '/_auth/iam/(users)/create-user' + path: '/iam/create-user' + fullPath: '/iam/create-user' + preLoaderRoute: typeof AuthIamusersCreateUserRouteImport + parentRoute: typeof AuthRouteRoute + } + '/_auth/iam/(policies)/create-policy': { + id: '/_auth/iam/(policies)/create-policy' + path: '/iam/create-policy' + fullPath: '/iam/create-policy' + preLoaderRoute: typeof AuthIampoliciesCreatePolicyRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(vpc)/create-vpc': { id: '/_auth/ec2/(vpc)/create-vpc' path: '/ec2/create-vpc' @@ -505,6 +596,20 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthS3LsBucketIndexRouteImport parentRoute: typeof AuthS3LsBucketRouteRoute } + '/_auth/iam/(users)/list-users/': { + id: '/_auth/iam/(users)/list-users/' + path: '/iam/list-users' + fullPath: '/iam/list-users/' + preLoaderRoute: typeof AuthIamusersListUsersIndexRouteImport + parentRoute: typeof AuthRouteRoute + } + '/_auth/iam/(policies)/list-policies/': { + id: '/_auth/iam/(policies)/list-policies/' + path: '/iam/list-policies' + fullPath: '/iam/list-policies/' + preLoaderRoute: typeof AuthIampoliciesListPoliciesIndexRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(vpc)/describe-vpcs/': { id: '/_auth/ec2/(vpc)/describe-vpcs/' path: '/ec2/describe-vpcs' @@ -561,6 +666,20 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthS3LsBucketSplatRouteImport parentRoute: typeof AuthS3LsBucketRouteRoute } + '/_auth/iam/(users)/list-users/$userName': { + id: '/_auth/iam/(users)/list-users/$userName' + path: '/iam/list-users/$userName' + fullPath: '/iam/list-users/$userName' + preLoaderRoute: typeof AuthIamusersListUsersUserNameRouteImport + parentRoute: typeof AuthRouteRoute + } + '/_auth/iam/(policies)/list-policies/$policyArn': { + id: '/_auth/iam/(policies)/list-policies/$policyArn' + path: '/iam/list-policies/$policyArn' + fullPath: '/iam/list-policies/$policyArn' + preLoaderRoute: typeof AuthIampoliciesListPoliciesPolicyArnRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/ec2/(vpc)/describe-vpcs/$id': { id: '/_auth/ec2/(vpc)/describe-vpcs/$id' path: '/ec2/describe-vpcs/$id' @@ -643,6 +762,8 @@ interface AuthRouteRouteChildren { AuthEc2subnetCreateSubnetRoute: typeof AuthEc2subnetCreateSubnetRoute AuthEc2volumesCreateVolumeRoute: typeof AuthEc2volumesCreateVolumeRoute AuthEc2vpcCreateVpcRoute: typeof AuthEc2vpcCreateVpcRoute + AuthIampoliciesCreatePolicyRoute: typeof AuthIampoliciesCreatePolicyRoute + AuthIamusersCreateUserRoute: typeof AuthIamusersCreateUserRoute AuthS3bucketsCreateBucketRoute: typeof AuthS3bucketsCreateBucketRoute AuthS3LsIndexRoute: typeof AuthS3LsIndexRoute AuthEc2imagesDescribeImagesIdRoute: typeof AuthEc2imagesDescribeImagesIdRoute @@ -653,6 +774,8 @@ interface AuthRouteRouteChildren { AuthEc2volumesDescribeVolumesIdRoute: typeof AuthEc2volumesDescribeVolumesIdRoute AuthEc2volumesModifyVolumeIdRoute: typeof AuthEc2volumesModifyVolumeIdRoute AuthEc2vpcDescribeVpcsIdRoute: typeof AuthEc2vpcDescribeVpcsIdRoute + AuthIampoliciesListPoliciesPolicyArnRoute: typeof AuthIampoliciesListPoliciesPolicyArnRoute + AuthIamusersListUsersUserNameRoute: typeof AuthIamusersListUsersUserNameRoute AuthEc2imagesDescribeImagesIndexRoute: typeof AuthEc2imagesDescribeImagesIndexRoute AuthEc2instancesDescribeInstancesIndexRoute: typeof AuthEc2instancesDescribeInstancesIndexRoute AuthEc2keyDescribeKeyPairsIndexRoute: typeof AuthEc2keyDescribeKeyPairsIndexRoute @@ -660,6 +783,8 @@ interface AuthRouteRouteChildren { AuthEc2subnetDescribeSubnetsIndexRoute: typeof AuthEc2subnetDescribeSubnetsIndexRoute AuthEc2volumesDescribeVolumesIndexRoute: typeof AuthEc2volumesDescribeVolumesIndexRoute AuthEc2vpcDescribeVpcsIndexRoute: typeof AuthEc2vpcDescribeVpcsIndexRoute + AuthIampoliciesListPoliciesIndexRoute: typeof AuthIampoliciesListPoliciesIndexRoute + AuthIamusersListUsersIndexRoute: typeof AuthIamusersListUsersIndexRoute } const AuthRouteRouteChildren: AuthRouteRouteChildren = { @@ -672,6 +797,8 @@ const AuthRouteRouteChildren: AuthRouteRouteChildren = { AuthEc2subnetCreateSubnetRoute: AuthEc2subnetCreateSubnetRoute, AuthEc2volumesCreateVolumeRoute: AuthEc2volumesCreateVolumeRoute, AuthEc2vpcCreateVpcRoute: AuthEc2vpcCreateVpcRoute, + AuthIampoliciesCreatePolicyRoute: AuthIampoliciesCreatePolicyRoute, + AuthIamusersCreateUserRoute: AuthIamusersCreateUserRoute, AuthS3bucketsCreateBucketRoute: AuthS3bucketsCreateBucketRoute, AuthS3LsIndexRoute: AuthS3LsIndexRoute, AuthEc2imagesDescribeImagesIdRoute: AuthEc2imagesDescribeImagesIdRoute, @@ -684,6 +811,9 @@ const AuthRouteRouteChildren: AuthRouteRouteChildren = { AuthEc2volumesDescribeVolumesIdRoute: AuthEc2volumesDescribeVolumesIdRoute, AuthEc2volumesModifyVolumeIdRoute: AuthEc2volumesModifyVolumeIdRoute, AuthEc2vpcDescribeVpcsIdRoute: AuthEc2vpcDescribeVpcsIdRoute, + AuthIampoliciesListPoliciesPolicyArnRoute: + AuthIampoliciesListPoliciesPolicyArnRoute, + AuthIamusersListUsersUserNameRoute: AuthIamusersListUsersUserNameRoute, AuthEc2imagesDescribeImagesIndexRoute: AuthEc2imagesDescribeImagesIndexRoute, AuthEc2instancesDescribeInstancesIndexRoute: AuthEc2instancesDescribeInstancesIndexRoute, @@ -695,6 +825,8 @@ const AuthRouteRouteChildren: AuthRouteRouteChildren = { AuthEc2volumesDescribeVolumesIndexRoute: AuthEc2volumesDescribeVolumesIndexRoute, AuthEc2vpcDescribeVpcsIndexRoute: AuthEc2vpcDescribeVpcsIndexRoute, + AuthIampoliciesListPoliciesIndexRoute: AuthIampoliciesListPoliciesIndexRoute, + AuthIamusersListUsersIndexRoute: AuthIamusersListUsersIndexRoute, } const AuthRouteRouteWithChildren = AuthRouteRoute._addFileChildren( diff --git a/hive/services/hiveui/frontend/src/routes/_auth/iam/(policies)/create-policy.tsx b/hive/services/hiveui/frontend/src/routes/_auth/iam/(policies)/create-policy.tsx new file mode 100644 index 000000000..c15799c2d --- /dev/null +++ b/hive/services/hiveui/frontend/src/routes/_auth/iam/(policies)/create-policy.tsx @@ -0,0 +1,130 @@ +import { zodResolver } from "@hookform/resolvers/zod" +import { createFileRoute, useNavigate } from "@tanstack/react-router" +import { useForm } from "react-hook-form" + +import { BackLink } from "@/components/back-link" +import { ErrorBanner } from "@/components/error-banner" +import { PageHeading } from "@/components/page-heading" +import { Button } from "@/components/ui/button" +import { Field, FieldError, FieldTitle } from "@/components/ui/field" +import { Input } from "@/components/ui/input" +import { Textarea } from "@/components/ui/textarea" +import { useCreatePolicy } from "@/mutations/iam" +import { type CreatePolicyFormData, createPolicySchema } from "@/types/iam" + +const DEFAULT_POLICY_DOCUMENT = JSON.stringify( + { + Version: "2012-10-17", + Statement: [ + { + Effect: "Allow", + Action: "*", + Resource: "*", + }, + ], + }, + null, + 2, +) + +export const Route = createFileRoute("/_auth/iam/(policies)/create-policy")({ + head: () => ({ + meta: [{ title: "Create Policy | IAM | Mulga" }], + }), + component: CreatePolicy, +}) + +function CreatePolicy() { + const navigate = useNavigate() + const createMutation = useCreatePolicy() + + const { + handleSubmit, + register, + formState: { errors, isSubmitting }, + } = useForm({ + resolver: zodResolver(createPolicySchema), + defaultValues: { + policyDocument: DEFAULT_POLICY_DOCUMENT, + }, + }) + + const onSubmit = async (data: CreatePolicyFormData) => { + await createMutation.mutateAsync(data) + navigate({ to: "/iam/list-policies" }) + } + + return ( + <> + Back to policies + + + {createMutation.error && ( + + )} + +
+ + + + + + + + + + + + + + + + + + + + +