From 8e8b17c5996a4b15f74f8215559bb384676f0286 Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Fri, 13 Mar 2026 02:39:28 +0000 Subject: [PATCH] chore: migrate to vite8 --- hive/services/hiveui/frontend/.npmrc | 2 + .../dist/assets/DescribeInstancesCommand.js | 1 + .../dist/assets/QueryClientProvider.js | 1 + .../services/hiveui/frontend/dist/assets/_.js | 2 +- .../hiveui/frontend/dist/assets/_auth.js | 1 + .../hiveui/frontend/dist/assets/_bucket.js | 1 + .../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 | 2 +- .../hiveui/frontend/dist/assets/_userName.js | 3 +- .../frontend/dist/assets/alert-dialog.js | 2 +- .../frontend/dist/assets/ami-details.js | 2 +- .../hiveui/frontend/dist/assets/awsClient.js | 59 +++ .../hiveui/frontend/dist/assets/back-link.js | 2 +- .../hiveui/frontend/dist/assets/button.js | 1 + .../hiveui/frontend/dist/assets/check.js | 2 +- .../frontend/dist/assets/compiler-runtime.js | 1 + .../frontend/dist/assets/create-bucket.js | 2 +- .../frontend/dist/assets/create-key-pair.js | 2 +- .../frontend/dist/assets/create-policy.js | 2 +- .../frontend/dist/assets/create-snapshot.js | 2 +- .../frontend/dist/assets/create-subnet.js | 2 +- .../frontend/dist/assets/create-user.js | 2 +- .../frontend/dist/assets/create-volume.js | 2 +- .../hiveui/frontend/dist/assets/create-vpc.js | 2 +- .../dist/assets/createBaseUIEventDetails.js | 1 + .../frontend/dist/assets/createLucideIcon.js | 1 + .../dist/assets/delete-confirmation-dialog.js | 2 +- .../frontend/dist/assets/describe-images.js | 1 + .../dist/assets/describe-instances.js | 1 + .../dist/assets/describe-key-pairs.js | 1 + .../dist/assets/describe-snapshots.js | 1 + .../frontend/dist/assets/describe-subnets.js | 1 + .../frontend/dist/assets/describe-volumes.js | 1 + .../frontend/dist/assets/describe-vpcs.js | 1 + .../hiveui/frontend/dist/assets/detail-row.js | 2 +- .../hiveui/frontend/dist/assets/download.js | 2 +- .../hiveui/frontend/dist/assets/ec2.js | 2 +- .../hiveui/frontend/dist/assets/ec22.js | 2 +- .../hiveui/frontend/dist/assets/ec23.js | 1 + .../frontend/dist/assets/error-banner.js | 2 +- .../frontend/dist/assets/event-streams.js | 1 + .../hiveui/frontend/dist/assets/field.js | 2 +- .../frontend/dist/assets/form-actions.js | 2 +- .../hiveui/frontend/dist/assets/iam.js | 2 +- .../hiveui/frontend/dist/assets/iam2.js | 2 +- .../hiveui/frontend/dist/assets/iam3.js | 1 + .../frontend/dist/assets/import-key-pair.js | 2 +- .../hiveui/frontend/dist/assets/index.css | 3 +- .../hiveui/frontend/dist/assets/index.js | 91 +--- .../hiveui/frontend/dist/assets/index10.js | 1 - .../hiveui/frontend/dist/assets/index11.js | 1 - .../hiveui/frontend/dist/assets/index12.js | 1 - .../hiveui/frontend/dist/assets/index13.js | 1 - .../hiveui/frontend/dist/assets/index14.js | 1 - .../hiveui/frontend/dist/assets/index2.js | 1 - .../hiveui/frontend/dist/assets/index3.js | 1 - .../hiveui/frontend/dist/assets/index4.js | 1 - .../hiveui/frontend/dist/assets/index5.js | 1 - .../hiveui/frontend/dist/assets/index6.js | 1 - .../hiveui/frontend/dist/assets/index7.js | 1 - .../hiveui/frontend/dist/assets/index8.js | 1 - .../hiveui/frontend/dist/assets/index9.js | 1 - .../hiveui/frontend/dist/assets/input.js | 1 - .../dist/assets/lazyRouteComponent.js | 1 + .../hiveui/frontend/dist/assets/link.js | 1 + .../hiveui/frontend/dist/assets/list-card.js | 2 +- .../frontend/dist/assets/list-policies.js | 1 + .../hiveui/frontend/dist/assets/list-users.js | 1 + .../hiveui/frontend/dist/assets/login.js | 2 +- .../hiveui/frontend/dist/assets/ls.js | 1 + .../frontend/dist/assets/matchContext.js | 1 + .../frontend/dist/assets/page-heading.js | 2 +- .../frontend/dist/assets/queryOptions.js | 1 + .../hiveui/frontend/dist/assets/route.js | 2 +- .../hiveui/frontend/dist/assets/route2.js | 2 +- .../frontend/dist/assets/run-instances.js | 2 +- .../hiveui/frontend/dist/assets/s3.js | 6 +- .../hiveui/frontend/dist/assets/s32.js | 1 + .../hiveui/frontend/dist/assets/select.js | 2 +- .../hiveui/frontend/dist/assets/separator.js | 1 + .../frontend/dist/assets/state-badge.js | 2 +- .../hiveui/frontend/dist/assets/textarea.js | 2 +- .../frontend/dist/assets/toUtf8.browser.js | 1 + .../hiveui/frontend/dist/assets/trash-2.js | 2 +- .../frontend/dist/assets/upload-button.js | 2 +- .../dist/assets/use-copy-to-clipboard.js | 2 +- .../frontend/dist/assets/useNavigate.js | 1 + .../dist/assets/useOpenInteractionType.js | 12 + .../hiveui/frontend/dist/assets/useRouter.js | 1 + .../frontend/dist/assets/useRouterState.js | 1 + .../frontend/dist/assets/useSuspenseQuery.js | 2 +- .../hiveui/frontend/dist/assets/utils.js | 1 + .../hiveui/frontend/dist/assets/zod.js | 2 +- hive/services/hiveui/frontend/dist/index.html | 33 +- hive/services/hiveui/frontend/package.json | 4 +- hive/services/hiveui/frontend/pnpm-lock.yaml | 472 ++++++++++++++++-- .../hiveui/frontend/pnpm-workspace.yaml | 1 - hive/services/hiveui/frontend/vite.config.ts | 6 +- 105 files changed, 640 insertions(+), 192 deletions(-) create mode 100644 hive/services/hiveui/frontend/.npmrc create mode 100644 hive/services/hiveui/frontend/dist/assets/DescribeInstancesCommand.js create mode 100644 hive/services/hiveui/frontend/dist/assets/QueryClientProvider.js create mode 100644 hive/services/hiveui/frontend/dist/assets/_auth.js create mode 100644 hive/services/hiveui/frontend/dist/assets/_bucket.js create mode 100644 hive/services/hiveui/frontend/dist/assets/awsClient.js create mode 100644 hive/services/hiveui/frontend/dist/assets/button.js create mode 100644 hive/services/hiveui/frontend/dist/assets/compiler-runtime.js create mode 100644 hive/services/hiveui/frontend/dist/assets/createBaseUIEventDetails.js create mode 100644 hive/services/hiveui/frontend/dist/assets/createLucideIcon.js create mode 100644 hive/services/hiveui/frontend/dist/assets/describe-images.js create mode 100644 hive/services/hiveui/frontend/dist/assets/describe-instances.js create mode 100644 hive/services/hiveui/frontend/dist/assets/describe-key-pairs.js create mode 100644 hive/services/hiveui/frontend/dist/assets/describe-snapshots.js create mode 100644 hive/services/hiveui/frontend/dist/assets/describe-subnets.js create mode 100644 hive/services/hiveui/frontend/dist/assets/describe-volumes.js create mode 100644 hive/services/hiveui/frontend/dist/assets/describe-vpcs.js create mode 100644 hive/services/hiveui/frontend/dist/assets/ec23.js create mode 100644 hive/services/hiveui/frontend/dist/assets/event-streams.js create mode 100644 hive/services/hiveui/frontend/dist/assets/iam3.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index10.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index11.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index12.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index13.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index14.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index2.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index3.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index4.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index5.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index6.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index7.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index8.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/index9.js delete mode 100644 hive/services/hiveui/frontend/dist/assets/input.js create mode 100644 hive/services/hiveui/frontend/dist/assets/lazyRouteComponent.js create mode 100644 hive/services/hiveui/frontend/dist/assets/link.js create mode 100644 hive/services/hiveui/frontend/dist/assets/list-policies.js create mode 100644 hive/services/hiveui/frontend/dist/assets/list-users.js create mode 100644 hive/services/hiveui/frontend/dist/assets/ls.js create mode 100644 hive/services/hiveui/frontend/dist/assets/matchContext.js create mode 100644 hive/services/hiveui/frontend/dist/assets/queryOptions.js create mode 100644 hive/services/hiveui/frontend/dist/assets/s32.js create mode 100644 hive/services/hiveui/frontend/dist/assets/separator.js create mode 100644 hive/services/hiveui/frontend/dist/assets/toUtf8.browser.js create mode 100644 hive/services/hiveui/frontend/dist/assets/useNavigate.js create mode 100644 hive/services/hiveui/frontend/dist/assets/useOpenInteractionType.js create mode 100644 hive/services/hiveui/frontend/dist/assets/useRouter.js create mode 100644 hive/services/hiveui/frontend/dist/assets/useRouterState.js create mode 100644 hive/services/hiveui/frontend/dist/assets/utils.js delete mode 100644 hive/services/hiveui/frontend/pnpm-workspace.yaml diff --git a/hive/services/hiveui/frontend/.npmrc b/hive/services/hiveui/frontend/.npmrc new file mode 100644 index 000000000..1abb042bd --- /dev/null +++ b/hive/services/hiveui/frontend/.npmrc @@ -0,0 +1,2 @@ +minimum-release-time=3d +exclude-packages-from-minimum-release-time=vite,@vitejs/* diff --git a/hive/services/hiveui/frontend/dist/assets/DescribeInstancesCommand.js b/hive/services/hiveui/frontend/dist/assets/DescribeInstancesCommand.js new file mode 100644 index 000000000..6fb840543 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/DescribeInstancesCommand.js @@ -0,0 +1 @@ +import{Dt as e,Et as t,jt as n,nt as r}from"./awsClient.js";var i=class extends n.classBuilder().ep(t).m(function(t,n,r,i){return[e(r,t.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(r).build(){};export{i as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/QueryClientProvider.js b/hive/services/hiveui/frontend/dist/assets/QueryClientProvider.js new file mode 100644 index 000000000..1502b03c2 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/QueryClientProvider.js @@ -0,0 +1 @@ +import{a as e,n as t,r as n}from"./compiler-runtime.js";var r=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(){}},i={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},a=new class{#e=i;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function o(e){setTimeout(e,0)}var s=typeof window>`u`||`Deno`in globalThis;function c(){}function l(e,t){return typeof e==`function`?e(t):e}function u(e){return typeof e==`number`&&e>=0&&e!==1/0}function d(e,t){return Math.max(e+(t||0)-Date.now(),0)}function f(e,t){return typeof e==`function`?e(t):e}function p(e,t){return typeof e==`function`?e(t):e}function m(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==g(o,t.options))return!1}else if(!v(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function h(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(_(t.options.mutationKey)!==_(a))return!1}else if(!v(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function g(e,t){return(t?.queryKeyHashFn||_)(e)}function _(e){return JSON.stringify(e,(e,t)=>C(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function v(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>v(e[n],t[n])):!1}var y=Object.prototype.hasOwnProperty;function b(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=S(e)&&S(t);if(!r&&!(C(e)&&C(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{a.setTimeout(t,e)})}function E(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:b(e,t)}function D(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function O(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var k=Symbol();function A(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===k?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function j(e,t){return typeof e==`function`?e(...t):!!e}function M(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var N=new class extends r{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!s&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function P(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var F=o;function I(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=F,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var L=I(),R=new class extends r{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!s&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function z(e){return Math.min(1e3*2**e,3e4)}function B(e){return(e??`online`)===`online`?R.isOnline():!0}var V=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function H(e){let t=!1,n=0,r,i=P(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new V(t);p(n),e.onCancel?.(n)}},c=()=>{t=!0},l=()=>{t=!1},u=()=>N.isFocused()&&(e.networkMode===`always`||R.isOnline())&&e.canRun(),d=()=>B(e.networkMode)&&e.canRun(),f=e=>{a()||(r?.(),i.resolve(e))},p=e=>{a()||(r?.(),i.reject(e))},m=()=>new Promise(t=>{r=e=>{(a()||u())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),h=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if(a())return;let i=e.retry??(s?0:3),o=e.retryDelay??z,c=typeof o==`function`?o(n,r):o,l=i===!0||typeof i==`number`&&nu()?void 0:m()).then(()=>{t?p(r):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:c,continueRetry:l,canStart:d,start:()=>(d()?h():m().then(h),i)}}var U=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u(this.gcTime)&&(this.#e=a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(a.clearTimeout(this.#e),void 0)}},W=e(n(),1),G=t(),K=W.createContext(void 0),q=e=>{let t=W.useContext(K);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},J=({client:e,children:t})=>(W.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,G.jsx)(K.Provider,{value:e,children:t}));export{d as A,v as C,x as D,f as E,r as M,j as O,c as S,p as T,g as _,B as a,h as b,L as c,M as d,D as f,_ as g,l as h,V as i,a as j,k,P as l,A as m,q as n,H as o,O as p,U as r,R as s,J as t,N as u,s as v,E as w,m as x,u as y}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_.js b/hive/services/hiveui/frontend/dist/assets/_.js index 8137fe7ef..581e7f00d 100644 --- a/hive/services/hiveui/frontend/dist/assets/_.js +++ b/hive/services/hiveui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{c as B,G as $,H as C,z as F,j as s,y as K,I as b,J 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"./delete-confirmation-dialog.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function V(){const e=B.c(24),{bucket:n,_splat:v}=$.useParams(),r=C(v||""),{data:m}=E(F(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 f;e[4]!==P?(f=s.jsx(O,{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(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]=x):x=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:[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{V as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./error-banner.js";import"./useRouterState.js";import{t as i}from"./link.js";import{c as a,i as o,r as s,t as c}from"./utils.js";import"./button.js";import{t as l}from"./back-link.js";import{n as u,r as d,t as f}from"./upload-button.js";import"./awsClient.js";import{r as p}from"./s3.js";import{t as m}from"./s32.js";import{d as h}from"./index.js";import"./alert-dialog.js";import"./delete-confirmation-dialog.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=h.useParams(),y=s(v||``),{data:b}=n(m(t,y)),x=p(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents||[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes||[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>({name:e,path:`/s3/ls/${t}/${`${E.slice(0,n+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(l,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(f,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(r,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>e.Prefix?(0,_.jsx)(d,{bucketName:t,folderName:a(o(e.Prefix,y)),fullPrefix:c(e.Prefix,y)},e.Prefix):null)})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>e.Key?(0,_.jsx)(u,{bucketName:t,displayName:o(e.Key,y),fullKey:c(e.Key,y),object:e},e.Key):null)]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(i,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_auth.js b/hive/services/hiveui/frontend/dist/assets/_auth.js new file mode 100644 index 000000000..5d3d39a34 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_auth.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./awsClient.js";import{l as r}from"./ec22.js";import{t as i}from"./page-heading.js";var a=t(),o=e();function s(){let e=(0,a.c)(2),{data:t}=n(r),s=`${t?.Regions?.[0]?.RegionName} Dashboard`,c;return e[0]===s?c=e[1]:(c=(0,o.jsx)(i,{title:s}),e[0]=s,e[1]=c),c}export{s as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_bucket.js b/hive/services/hiveui/frontend/dist/assets/_bucket.js new file mode 100644 index 000000000..8cd34b1df --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_bucket.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./error-banner.js";import"./useRouterState.js";import{c as i}from"./utils.js";import"./button.js";import{t as a}from"./back-link.js";import{n as o,r as s,t as c}from"./upload-button.js";import"./awsClient.js";import{r as l}from"./s3.js";import{t as u}from"./s32.js";import{f as d}from"./index.js";import{t as f}from"./page-heading.js";import"./alert-dialog.js";import"./delete-confirmation-dialog.js";var p=t(),m=e();function h(){let e=(0,p.c)(31),{bucket:t}=d.useParams(),h;e[0]===t?h=e[1]:(h=u(t),e[0]=t,e[1]=h);let{data:g}=n(h),_=l(),v;e[2]===g.Contents?v=e[3]:(v=g.Contents||[],e[2]=g.Contents,e[3]=v);let y=v,b;e[4]===g.CommonPrefixes?b=e[5]:(b=g.CommonPrefixes||[],e[4]=g.CommonPrefixes,e[5]=b);let x=b,S;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(a,{to:`/s3/ls`,children:`Back to buckets`}),e[6]=S):S=e[6];let C;e[7]!==t||e[8]!==_.isPending||e[9]!==_.mutateAsync?(C=(0,m.jsx)(c,{bucket:t,isPending:_.isPending,onUpload:_.mutateAsync}),e[7]=t,e[8]=_.isPending,e[9]=_.mutateAsync,e[10]=C):C=e[10];let w;e[11]!==t||e[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:t}),e[11]=t,e[12]=C,e[13]=w):w=e[13];let T;e[14]===_.error?T=e[15]:(T=_.error&&(0,m.jsx)(r,{error:_.error,msg:`Failed to upload object`}),e[14]=_.error,e[15]=T);let E;e[16]!==t||e[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>e.Prefix?(0,m.jsx)(s,{bucketName:t,folderName:i(e.Prefix),fullPrefix:e.Prefix},e.Prefix):null)})]}),e[16]=t,e[17]=x,e[18]=E):E=e[18];let D;e[19]!==t||e[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(o,{bucketName:t,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),e[19]=t,e[20]=y,e[21]=D):D=e[21];let O;e[22]!==x.length||e[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),e[22]=x.length,e[23]=y.length,e[24]=O):O=e[24];let k;return e[25]!==w||e[26]!==T||e[27]!==E||e[28]!==D||e[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),e[25]=w,e[26]=T,e[27]=E,e[28]=D,e[29]=O,e[30]=k):k=e[30],k}export{h as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id.js b/hive/services/hiveui/frontend/dist/assets/_id.js index dd4f34124..30e813f61 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 b,aL as f,w as v,r as g,j as e,n as I,B as C,L as V}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{B as u}from"./back-link.js";import{D as S}from"./delete-confirmation-dialog.js";import{D as n,a as t}from"./detail-row.js";import{E as y}from"./error-banner.js";import{P}from"./page-heading.js";import{S as B}from"./state-badge.js";import{g as k}from"./ec2.js";import{T as w}from"./trash-2.js";import"./alert-dialog.js";function z(){const{id:l}=D.useParams(),m=b(),{data:p}=d(f(l)),{data:x}=d(v),s=p.Vpcs?.[0],r=k(),[j,o]=g.useState(!1),i=x.Subnets?.filter(a=>a.VpcId===l)??[],h=async()=>{try{await r.mutateAsync(l),m({to:"/ec2/describe-vpcs"})}finally{o(!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=I(s.Tags);return e.jsxs(e.Fragment,{children:[e.jsx(u,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),r.error&&e.jsx(y,{error:r.error,msg:"Failed to delete VPC"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(P,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(C,{onClick:()=>o(!0),size:"sm",variant:"destructive",children:[e.jsx(w,{className:"size-4"}),"Delete"]}),e.jsx(B,{state:s.State})]}),subtitle:"VPC Details",title:c?`${s.VpcId} (${c})`:s.VpcId}),e.jsxs(n,{children:[e.jsx(n.Header,{children:"VPC Information"}),e.jsxs(n.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})]})]}),i.length>0&&e.jsxs(n,{children:[e.jsxs(n.Header,{children:["Subnets (",i.length,")"]}),i.map(a=>a.SubnetId?e.jsxs(n.Content,{children:[e.jsx(t,{label:"Subnet ID",value:e.jsx(V,{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(S,{description:`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.`,isPending:r.isPending,onConfirm:h,onOpenChange:o,open:j,title:"Delete VPC"})]})}export{z as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./back-link.js";import"./awsClient.js";import{n as i}from"./ec22.js";import{t as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import"./detail-row.js";import{t as c}from"./ami-details.js";var l=t(),u=e();function d(){let e=(0,l.c)(14),{id:t}=a.useParams(),d;e[0]===t?d=e[1]:(d=i(t),e[0]=t,e[1]=d);let{data:f}=n(d),p=f?.Images?.[0];if(!p?.ImageId){let t;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r,{to:`/ec2/describe-images`,children:`Back to images`}),(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]}),e[2]=t):t=e[2],t}let m;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,u.jsx)(r,{to:`/ec2/describe-images`,children:`Back to images`}),e[3]=m):m=e[3];let h;e[4]===p.State?h=e[5]:(h=(0,u.jsx)(s,{state:p.State}),e[4]=p.State,e[5]=h);let g;e[6]!==p.ImageId||e[7]!==h?(g=(0,u.jsx)(o,{actions:h,subtitle:`EC2 Image Details`,title:p.ImageId}),e[6]=p.ImageId,e[7]=h,e[8]=g):g=e[8];let _;e[9]===p?_=e[10]:(_=(0,u.jsx)(c,{image:p,showExtendedDetails:!0}),e[9]=p,e[10]=_);let v;return e[11]!==g||e[12]!==_?(v=(0,u.jsxs)(u.Fragment,{children:[m,(0,u.jsxs)(`div`,{className:`space-y-6`,children:[g,_]})]}),e[11]=g,e[12]=_,e[13]=v):v=e[13],v}export{d as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id2.js b/hive/services/hiveui/frontend/dist/assets/_id2.js index d776b7580..da03bd15d 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id2.js +++ b/hive/services/hiveui/frontend/dist/assets/_id2.js @@ -1 +1 @@ -import{c as G,aM as L,u as C,j as s,aN as Q}from"./index.js";import{a as H,u as O}from"./zod.js";import{u as T}from"./useSuspenseQuery.js";import{B as M}from"./back-link.js";import{E as q}from"./error-banner.js";import{F as D}from"./form-actions.js";import{P as J}from"./page-heading.js";import{F as K,a as U,b as W}from"./field.js";import{I as X}from"./input.js";import{h as Y}from"./ec2.js";import{m as Z}from"./ec22.js";function ue(){const e=G.c(53),{id:B}=L.useParams(),l=C();let v;e[0]!==B?(v=Q(B),e[0]=B,e[1]=v):v=e[1];const{data:_}=T(v),I=_.Volumes?.[0],t=I?.VolumeId,r=Y(),i=I?.Size??1;let m;e[2]!==i?(m=H(Z.refine(o=>o.size>i,{message:`New size must be greater than current size (${i} GiB)`,path:["size"]})),e[2]=i,e[3]=m):m=e[3];let a;e[4]!==i?(a={size:i},e[4]=i,e[5]=a):a=e[5];let y;e[6]!==m||e[7]!==a?(y={resolver:m,defaultValues:a},e[6]=m,e[7]=a,e[8]=y):y=e[8];const{handleSubmit:P,register:R,formState:A}=O(y),{errors:F,isSubmitting:E}=A;if(!t){let o;return e[9]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(s.Fragment,{children:[s.jsx(M,{to:"/ec2/describe-volumes",children:"Back to volumes"}),s.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]}),e[9]=o):o=e[9],o}let S;e[10]!==r||e[11]!==l||e[12]!==t?(S=async o=>{await r.mutateAsync({...o,volumeId:t}),l({to:"/ec2/describe-volumes/$id",params:{id:t}})},e[10]=r,e[11]=l,e[12]=t,e[13]=S):S=e[13];const $=S;let n,c;e[14]!==t?(n=s.jsx(M,{params:{id:t},to:"/ec2/describe-volumes/$id",children:"Back to volume"}),c=s.jsx(J,{subtitle:t,title:"Resize Volume"}),e[14]=t,e[15]=n,e[16]=c):(n=e[15],c=e[16]);let u;e[17]!==r.error?(u=r.error&&s.jsx(q,{error:r.error,msg:"Failed to resize volume"}),e[17]=r.error,e[18]=u):u=e[18];let d;e[19]!==P||e[20]!==$?(d=P($),e[19]=P,e[20]=$,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 V;e[24]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx(U,{children:s.jsx("label",{htmlFor:"size",children:"New size (GiB)"})}),e[24]=V):V=e[24];const k=!!F.size,w=i+1;let p;e[25]!==R?(p=R("size",{valueAsNumber:!0}),e[25]=R,e[26]=p):p=e[26];let x;e[27]!==k||e[28]!==w||e[29]!==p?(x=s.jsx(X,{"aria-invalid":k,id:"size",min:w,type:"number",...p}),e[27]=k,e[28]=w,e[29]=p,e[30]=x):x=e[30];let z;e[31]!==F.size?(z=s.jsx(K,{errors:[F.size]}),e[31]=F.size,e[32]=z):z=e[32];let b;e[33]!==x||e[34]!==z?(b=s.jsxs(W,{children:[V,x,z]}),e[33]=x,e[34]=z,e[35]=b):b=e[35];let g;e[36]!==l||e[37]!==t?(g=()=>l({to:"/ec2/describe-volumes/$id",params:{id:t}}),e[36]=l,e[37]=t,e[38]=g):g=e[38];let h;e[39]!==E||e[40]!==r.isPending||e[41]!==g?(h=s.jsx(D,{isPending:r.isPending,isSubmitting:E,onCancel:g,pendingLabel:"Resizing\\u2026",submitLabel:"Resize Volume"}),e[39]=E,e[40]=r.isPending,e[41]=g,e[42]=h):h=e[42];let j;e[43]!==f||e[44]!==b||e[45]!==h||e[46]!==d?(j=s.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:d,children:[f,b,h]}),e[43]=f,e[44]=b,e[45]=h,e[46]=d,e[47]=j):j=e[47];let N;return e[48]!==j||e[49]!==n||e[50]!==c||e[51]!==u?(N=s.jsxs(s.Fragment,{children:[n,c,u,j]}),e[48]=j,e[49]=n,e[50]=c,e[51]=u,e[52]=N):N=e[52],N}export{ue as component}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./error-banner.js";import"./useRouterState.js";import{t as o}from"./link.js";import{a as s}from"./utils.js";import{t as c}from"./button.js";import{t as l}from"./createLucideIcon.js";import{t as u}from"./back-link.js";import{a as d,i as f,n as p,r as m,t as h}from"./select.js";import{t as g}from"./trash-2.js";import"./separator.js";import"./awsClient.js";import{C as _,S as v,b as y,g as b,r as x,v as S,x as C}from"./ec2.js";import{a as w,i as T,n as E}from"./ec22.js";import{O as D,n as ee}from"./index.js";import{t as te}from"./page-heading.js";import{t as ne}from"./state-badge.js";import{n as O,t as k}from"./detail-row.js";import{t as re}from"./ami-details.js";import{a as A,i as j,l as M,n as N,o as P,r as F,s as I,t as L}from"./alert-dialog.js";import{i as R,t as z}from"./field.js";import{t as B}from"./textarea.js";var ie=l(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),V=l(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),H=l(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),U=l(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),W=l(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),G=l(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),K=e(n(),1),q=t();function J({instanceId:e,open:t,onOpenChange:n}){let r=x(),[i,a]=(0,K.useState)(``),[o,s]=(0,K.useState)(``),[c,l]=(0,K.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,q.jsx)(L,{onOpenChange:u,open:t,children:(0,q.jsxs)(j,{children:[(0,q.jsxs)(I,{children:[(0,q.jsx)(M,{children:c?`Image Created`:`Create Image (AMI)`}),(0,q.jsx)(A,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(z,{children:[(0,q.jsx)(R,{children:(0,q.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,q.jsx)(D,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,q.jsxs)(z,{children:[(0,q.jsx)(R,{children:(0,q.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,q.jsx)(B,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,q.jsxs)(P,{children:[(0,q.jsx)(F,{children:c?`Close`:`Cancel`}),!c&&(0,q.jsx)(N,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Y=r(),X=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function ae(e){let t=(0,Y.c)(35),{instanceId:n,state:r}=e,i=C(),o=v(),s=y(),l=_();if(X.has(r||``)&&r!==`terminated`){let e;return t[0]===r?e=t[1]:(e=(0,q.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,q.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[0]=r,t[1]=e),e}if(r===`terminated`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,q.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,q.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[2]=e):e=t[2],e}let u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,q.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[3]=u):u=t[3];let d;t[4]===i.error?d=t[5]:(d=i.error&&(0,q.jsx)(a,{error:i.error,msg:`Failed to start instance`}),t[4]=i.error,t[5]=d);let f;t[6]===o.error?f=t[7]:(f=o.error&&(0,q.jsx)(a,{error:o.error,msg:`Failed to stop instance`}),t[6]=o.error,t[7]=f);let p;t[8]===s.error?p=t[9]:(p=s.error&&(0,q.jsx)(a,{error:s.error,msg:`Failed to reboot instance`}),t[8]=s.error,t[9]=p);let m;t[10]===l.error?m=t[11]:(m=l.error&&(0,q.jsx)(a,{error:l.error,msg:`Failed to terminate instance`}),t[10]=l.error,t[11]=m);let h;t[12]!==n||t[13]!==i||t[14]!==r?(h=r===`stopped`&&(0,q.jsxs)(c,{disabled:i.isPending,onClick:()=>i.mutate(n),size:`sm`,variant:`default`,children:[(0,q.jsx)(H,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[12]=n,t[13]=i,t[14]=r,t[15]=h):h=t[15];let b;t[16]!==n||t[17]!==s||t[18]!==r||t[19]!==o?(b=r===`running`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(c,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,q.jsx)(V,{className:`size-4`}),o.isPending?`Stopping`:`Stop`]}),(0,q.jsxs)(c,{disabled:s.isPending,onClick:()=>s.mutate(n),size:`sm`,variant:`outline`,children:[(0,q.jsx)(U,{className:`size-4`}),s.isPending?`Rebooting`:`Reboot`]})]}),t[16]=n,t[17]=s,t[18]=r,t[19]=o,t[20]=b):b=t[20];let x;t[21]!==n||t[22]!==r||t[23]!==l?(x=(r===`stopped`||r===`running`)&&(0,q.jsxs)(c,{disabled:l.isPending,onClick:()=>l.mutate(n),size:`sm`,variant:`destructive`,children:[(0,q.jsx)(g,{className:`size-4`}),l.isPending?`Terminating`:`Terminate`]}),t[21]=n,t[22]=r,t[23]=l,t[24]=x):x=t[24];let S;t[25]!==h||t[26]!==b||t[27]!==x?(S=(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[h,b,x]}),t[25]=h,t[26]=b,t[27]=x,t[28]=S):S=t[28];let w;return t[29]!==d||t[30]!==f||t[31]!==p||t[32]!==m||t[33]!==S?(w=(0,q.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[u,d,f,p,m,S]}),t[29]=d,t[30]=f,t[31]=p,t[32]=m,t[33]=S,t[34]=w):w=t[34],w}function Z(){let{id:e}=ee.useParams(),{data:t}=i(T(e)),n=t.Reservations?.[0]?.Instances?.[0],{data:r}=i(E(n?.ImageId)),l=r?.Images?.[0],{data:g}=i(w),_=S(),v=b(),[y,x]=(0,K.useState)(!1),[C,D]=(0,K.useState)(``),[B,V]=(0,K.useState)(!1),[H,U]=(0,K.useState)(null),[Y,X]=(0,K.useState)(!1),Z=[...new Set(g.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!n?.InstanceId)return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,q.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let oe=s(n.LaunchTime),Q=n.State?.Name===`running`,$=n.State?.Name===`stopped`;async function se(){try{await _.mutateAsync({instanceId:e,instanceType:C}),x(!1),D(``)}catch{}}async function ce(){try{let t=await v.mutateAsync(e);U(t.Output?atob(t.Output):`(no output)`),V(!0)}catch{}}return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),_.error&&(0,q.jsx)(a,{error:_.error,msg:`Failed to modify instance`}),v.error&&(0,q.jsx)(a,{error:v.error,msg:`Failed to get console output`}),(0,q.jsxs)(`div`,{className:`space-y-6`,children:[(0,q.jsx)(te,{actions:(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,q.jsxs)(c,{disabled:v.isPending,onClick:ce,size:`sm`,variant:`outline`,children:[(0,q.jsx)(G,{className:`size-4`}),v.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,q.jsxs)(c,{onClick:()=>X(!0),size:`sm`,variant:`outline`,children:[(0,q.jsx)(ie,{className:`size-4`}),`Create Image`]}),$&&(0,q.jsxs)(c,{onClick:()=>{D(n.InstanceType??``),x(!0)},size:`sm`,variant:`outline`,children:[(0,q.jsx)(W,{className:`size-4`}),`Modify Instance`]}),(0,q.jsx)(ne,{state:n.State?.Name})]}),subtitle:`EC2 Instance Details`,title:n.InstanceId}),(0,q.jsx)(ae,{instanceId:n.InstanceId,state:n.State?.Name}),B&&H!==null&&(0,q.jsxs)(O,{children:[(0,q.jsx)(O.Header,{children:(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,q.jsx)(c,{onClick:()=>{V(!1),U(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,q.jsx)(`div`,{className:`p-4`,children:(0,q.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:H})})]}),(0,q.jsxs)(O,{children:[(0,q.jsx)(O.Header,{children:`Instance Information`}),(0,q.jsxs)(O.Content,{children:[(0,q.jsx)(k,{label:`Instance ID`,value:n.InstanceId}),(0,q.jsx)(k,{label:`Instance Type`,value:n.InstanceType}),(0,q.jsx)(k,{label:`Instance State`,value:n.State?.Name}),(0,q.jsx)(k,{label:`State Code`,value:n.State?.Code?.toString()}),(0,q.jsx)(k,{label:`Launch Time`,value:oe}),(0,q.jsx)(k,{label:`Availability Zone`,value:n.Placement?.AvailabilityZone})]})]}),(n.PrivateIpAddress||n.PublicIpAddress||n.VpcId||n.SubnetId||n.SecurityGroups&&n.SecurityGroups.length>0)&&(0,q.jsxs)(O,{children:[(0,q.jsx)(O.Header,{children:`Network & Security`}),(0,q.jsxs)(O.Content,{children:[(0,q.jsx)(k,{label:`Private IP Address`,value:n.PrivateIpAddress}),(0,q.jsx)(k,{label:`Public IP Address`,value:n.PublicIpAddress}),(0,q.jsx)(k,{label:`Private DNS`,value:n.PrivateDnsName}),(0,q.jsx)(k,{label:`Public DNS`,value:n.PublicDnsName}),(0,q.jsx)(k,{label:`VPC ID`,value:n.VpcId?(0,q.jsx)(o,{className:`text-primary hover:underline`,params:{id:n.VpcId},to:`/ec2/describe-vpcs/$id`,children:n.VpcId}):void 0}),(0,q.jsx)(k,{label:`Subnet ID`,value:n.SubnetId?(0,q.jsx)(o,{className:`text-primary hover:underline`,params:{id:n.SubnetId},to:`/ec2/describe-subnets/$id`,children:n.SubnetId}):void 0}),(0,q.jsx)(k,{label:`Key Name`,value:n.KeyName}),(0,q.jsx)(k,{label:`Security Groups`,value:n.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),n.BlockDeviceMappings&&n.BlockDeviceMappings.length>0&&(0,q.jsxs)(O,{children:[(0,q.jsx)(O.Header,{children:`Block Device Mappings`}),n.BlockDeviceMappings.map(e=>(0,q.jsxs)(O.Content,{children:[(0,q.jsx)(k,{label:`Device Name`,value:e.DeviceName}),(0,q.jsx)(k,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,q.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,q.jsx)(k,{label:`Status`,value:e.Ebs?.Status}),(0,q.jsx)(k,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,q.jsx)(k,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),l&&(0,q.jsx)(re,{image:l})]}),(0,q.jsx)(L,{onOpenChange:e=>{e||(x(!1),D(``))},open:y,children:(0,q.jsxs)(j,{children:[(0,q.jsxs)(I,{children:[(0,q.jsx)(M,{children:`Modify Instance`}),(0,q.jsxs)(A,{children:[`Select a new instance type for "`,n.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,q.jsxs)(z,{children:[(0,q.jsx)(R,{children:(0,q.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,q.jsxs)(h,{onValueChange:e=>D(e??``),value:C,children:[(0,q.jsx)(f,{className:`w-full`,id:`instanceType`,children:(0,q.jsx)(d,{})}),(0,q.jsx)(p,{children:Z.map(e=>(0,q.jsx)(m,{value:e,children:e},e))})]})]}),(0,q.jsxs)(P,{children:[(0,q.jsx)(F,{children:`Cancel`}),(0,q.jsx)(N,{disabled:_.isPending||!C||C===n.InstanceType,onClick:se,children:_.isPending?`Saving…`:`Save Changes`})]})]})}),(0,q.jsx)(J,{instanceId:n.InstanceId,onOpenChange:X,open:Y})]})}export{Z as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id3.js b/hive/services/hiveui/frontend/dist/assets/_id3.js index cc7cb767c..83a47d69f 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,F as W,r as h,j as e,B as u,L as D,aW as b,aX as X,i as V}from"./index.js";import{u as C}from"./useSuspenseQuery.js";import{B as k}from"./back-link.js";import{D as J}from"./delete-confirmation-dialog.js";import{D as l,a as s}from"./detail-row.js";import{E as f}from"./error-banner.js";import{P as U}from"./page-heading.js";import{S as ee}from"./state-badge.js";import{g as S,f as N,b as T,a as F,c as z,d as B,e as M,h as P}from"./alert-dialog.js";import{b as w,a as E}from"./field.js";import{I as ae}from"./input.js";import{S as te,a as se,b as ne,c as le,d as ie}from"./select.js";import{i as ce,j as oe,k as re}from"./ec2.js";import{T as de}from"./trash-2.js";import"./check.js";const me=[["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",me);const ue=[["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"}]],xe=O("link-2",ue);function Te(){const{id:o}=Z.useParams(),H=q(),{data:K}=C(G(o)),{data:L}=C(W),t=K.Volumes?.[0],r=ce(),i=oe(),c=re(),[x,d]=h.useState(null),[j,v]=h.useState(""),[y,p]=h.useState(""),[A,g]=h.useState(!1),R=L.Reservations?.flatMap(a=>a.Instances?.filter(m=>m.State?.Name==="running")??[])??[],I=t?.State==="available"&&(!t.Attachments||t.Attachments.length===0),n=()=>d(null),$=async()=>{try{await r.mutateAsync(o),H({to:"/ec2/describe-volumes"})}finally{n()}},_=async()=>{try{await i.mutateAsync({volumeId:o,instanceId:j,device:y||void 0}),n(),v(""),p("")}catch{}},Q=async()=>{const a=t?.Attachments?.[0]?.InstanceId;try{await c.mutateAsync({volumeId:o,instanceId:a||void 0,force:A||void 0}),n(),g(!1)}catch{}};return t?.VolumeId?e.jsxs(e.Fragment,{children:[e.jsx(k,{to:"/ec2/describe-volumes",children:"Back to volumes"}),r.error&&e.jsx(f,{error:r.error,msg:"Failed to delete volume"}),i.error&&e.jsx(f,{error:i.error,msg:"Failed to attach volume"}),c.error&&e.jsx(f,{error:c.error,msg:"Failed to detach volume"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(U,{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(de,{className:"size-4"}),"Delete"]}),I?e.jsx(D,{className:b({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(xe,{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:b({variant:"outline",size:"sm"}),search:{volumeId:t.VolumeId},to:"/ec2/create-snapshot",children:[e.jsx(X,{className:"size-4"}),"Create Snapshot"]}),e.jsx(ee,{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:V(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:V(a.AttachTime)}),e.jsx(s,{label:"Delete on Termination",value:a.DeleteOnTermination?"Yes":"No"})]},a.InstanceId))]})]}),e.jsx(J,{description:`Are you sure you want to delete the volume "${t.VolumeId}"? This action cannot be undone.`,isPending:r.isPending,onConfirm:$,onOpenChange:a=>{a||n()},open:x==="delete",title:"Delete Volume"}),e.jsx(S,{onOpenChange:a=>{a||(n(),v(""),p(""))},open:x==="attach",children:e.jsxs(N,{children:[e.jsxs(T,{children:[e.jsx(F,{children:"Attach Volume"}),e.jsx(z,{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(te,{onValueChange:a=>v(a??""),value:j,children:[e.jsx(se,{className:"w-full",id:"attachInstance",children:e.jsx(ne,{placeholder:"Select an instance"})}),e.jsx(le,{children:R.map(a=>{const m=a.Tags?.find(Y=>Y.Key==="Name")?.Value;return e.jsxs(ie,{value:a.InstanceId??"",children:[a.InstanceId,m?` (${m})`:""]},a.InstanceId)})})]})]}),e.jsxs(w,{children:[e.jsx(E,{children:e.jsx("label",{htmlFor:"attachDevice",children:"Device (optional)"})}),e.jsx(ae,{id:"attachDevice",onChange:a=>p(a.target.value),placeholder:"/dev/sdf",value:y})]}),e.jsxs(B,{children:[e.jsx(M,{children:"Cancel"}),e.jsx(P,{disabled:i.isPending||!j,onClick:_,children:i.isPending?"Attaching…":"Attach"})]})]})}),e.jsx(S,{onOpenChange:a=>{a||(n(),g(!1))},open:x==="detach",children:e.jsxs(N,{children:[e.jsxs(T,{children:[e.jsx(F,{children:"Detach Volume"}),e.jsxs(z,{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:A,onChange:a=>g(a.target.checked),type:"checkbox"}),"Force detach"]}),e.jsxs(B,{children:[e.jsx(M,{children:"Cancel"}),e.jsx(P,{disabled:c.isPending,onClick:Q,children:c.isPending?"Detaching…":"Detach"})]})]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(k,{to:"/ec2/describe-volumes",children:"Back to volumes"}),e.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]})}export{Te as component}; +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./error-banner.js";import"./useRouterState.js";import{a}from"./utils.js";import{t as o}from"./useNavigate.js";import{t as s}from"./button.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import"./awsClient.js";import{u}from"./ec2.js";import{s as d}from"./ec22.js";import{r as f}from"./index.js";import{t as p}from"./page-heading.js";import{n as m,t as h}from"./detail-row.js";import"./alert-dialog.js";import{t as g}from"./delete-confirmation-dialog.js";var _=e(n()),v=t();function y(){let{id:e}=f.useParams(),t=o(),{data:n}=r(d(e)),y=n.KeyPairs?.[0],b=u(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=a(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(i,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(s,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`EC2 Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(m,{children:[(0,v.jsx)(m.Header,{children:`Key Pair Information`}),(0,v.jsxs)(m.Content,{children:[(0,v.jsx)(h,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(h,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(h,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(h,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(h,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(m,{children:[(0,v.jsx)(m.Header,{children:`Tags`}),(0,v.jsx)(m.Content,{children:y.Tags.map(e=>(0,v.jsx)(h,{label:e.Key||``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(g,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id4.js b/hive/services/hiveui/frontend/dist/assets/_id4.js index 1fb29980d..37af39f83 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id4.js +++ b/hive/services/hiveui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{cY as b,u as p,cZ as x,r as j,j as e,n as S,B as f,L as h}from"./index.js";import{u as D}from"./useSuspenseQuery.js";import{B as l}from"./back-link.js";import{D as g}from"./delete-confirmation-dialog.js";import{D as o,a as s}from"./detail-row.js";import{E as v}from"./error-banner.js";import{P as I}from"./page-heading.js";import{S as y}from"./state-badge.js";import{l as C}from"./ec2.js";import{T as B}from"./trash-2.js";import"./alert-dialog.js";function Z(){const{id:r}=b.useParams(),u=p(),{data:c}=D(x(r)),t=c.Subnets?.[0],a=C(),[d,n]=j.useState(!1),m=async()=>{try{await a.mutateAsync(r),u({to:"/ec2/describe-subnets"})}finally{n(!1)}};if(!t?.SubnetId)return e.jsxs(e.Fragment,{children:[e.jsx(l,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),e.jsx("p",{className:"text-muted-foreground",children:"Subnet not found."})]});const i=S(t.Tags);return e.jsxs(e.Fragment,{children:[e.jsx(l,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),a.error&&e.jsx(v,{error:a.error,msg:"Failed to delete subnet"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(I,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(f,{onClick:()=>n(!0),size:"sm",variant:"destructive",children:[e.jsx(B,{className:"size-4"}),"Delete"]}),e.jsx(y,{state:t.State})]}),subtitle:"Subnet Details",title:i?`${t.SubnetId} (${i})`:t.SubnetId}),e.jsxs(o,{children:[e.jsx(o.Header,{children:"Subnet Information"}),e.jsxs(o.Content,{children:[e.jsx(s,{label:"Subnet ID",value:t.SubnetId}),e.jsx(s,{label:"VPC ID",value:t.VpcId?e.jsx(h,{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(g,{description:`Are you sure you want to delete the subnet "${t.SubnetId}"? This action cannot be undone.`,isPending:a.isPending,onConfirm:m,onOpenChange:n,open:d,title:"Delete Subnet"})]})}export{Z as component}; +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./error-banner.js";import"./useRouterState.js";import{t as a}from"./link.js";import{a as o}from"./utils.js";import{t as s}from"./useNavigate.js";import{t as c}from"./button.js";import{t as l}from"./createLucideIcon.js";import{t as u}from"./back-link.js";import{t as d}from"./trash-2.js";import"./separator.js";import"./awsClient.js";import{d as f,n as p}from"./ec2.js";import{l as m,u as h}from"./ec22.js";import{O as g,i as _}from"./index.js";import{t as v}from"./page-heading.js";import{t as y}from"./state-badge.js";import{n as b,t as x}from"./detail-row.js";import{a as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./alert-dialog.js";import{i as A,t as j}from"./field.js";import{t as M}from"./delete-confirmation-dialog.js";var N=l(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),P=e(n()),F=t();function I(){let{id:e}=_.useParams(),t=s(),{data:n}=r(h(e)),{data:l}=r(m),I=n.Snapshots?.[0],L=f(),R=p(),[z,B]=(0,P.useState)(!1),[V,H]=(0,P.useState)(!1),[U,W]=(0,P.useState)(``),G=l.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(u,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,F.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=o(I.StartTime);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(u,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,F.jsx)(i,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,F.jsx)(i,{error:R.error,msg:`Failed to copy snapshot`}),(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(v,{actions:(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsxs)(c,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,F.jsx)(d,{className:`size-4`}),`Delete`]}),(0,F.jsxs)(c,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,F.jsx)(N,{className:`size-4`}),`Copy Snapshot`]}),(0,F.jsx)(y,{state:I.State})]}),subtitle:`EC2 Snapshot Details`,title:I.SnapshotId}),(0,F.jsxs)(b,{children:[(0,F.jsx)(b.Header,{children:`Snapshot Information`}),(0,F.jsxs)(b.Content,{children:[(0,F.jsx)(x,{label:`Snapshot ID`,value:I.SnapshotId}),(0,F.jsx)(x,{label:`Volume ID`,value:I.VolumeId?(0,F.jsx)(a,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,F.jsx)(x,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,F.jsx)(x,{label:`State`,value:I.State}),(0,F.jsx)(x,{label:`Description`,value:I.Description}),(0,F.jsx)(x,{label:`Progress`,value:I.Progress}),(0,F.jsx)(x,{label:`Start Time`,value:Y}),(0,F.jsx)(x,{label:`Owner ID`,value:I.OwnerId}),(0,F.jsx)(x,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,F.jsx)(M,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,F.jsx)(k,{onOpenChange:H,open:V,children:(0,F.jsxs)(C,{children:[(0,F.jsxs)(O,{children:[(0,F.jsx)(w,{children:`Copy Snapshot`}),(0,F.jsx)(S,{children:`Create a copy of this snapshot in the current region.`})]}),(0,F.jsxs)(j,{children:[(0,F.jsx)(A,{children:(0,F.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,F.jsx)(g,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,F.jsxs)(E,{children:[(0,F.jsx)(D,{children:`Cancel`}),(0,F.jsx)(T,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{I as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id5.js b/hive/services/hiveui/frontend/dist/assets/_id5.js index fa0b264dd..e75af52f9 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id5.js +++ b/hive/services/hiveui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{K as w,c_ as k,u as N,c$ as B,f as P,r as l,j as e,i as T,B as m,L as F}from"./index.js";import{u}from"./useSuspenseQuery.js";import{B as x}from"./back-link.js";import{D as R}from"./delete-confirmation-dialog.js";import{D as c,a as t}from"./detail-row.js";import{E as g}from"./error-banner.js";import{P as z}from"./page-heading.js";import{S as E}from"./state-badge.js";import{g as V,f as O,b as L,a as $,c as H,d as M,e as Q,h as _}from"./alert-dialog.js";import{b as G,a as K}from"./field.js";import{I as Y}from"./input.js";import{m as q,n as J}from"./ec2.js";import{T as U}from"./trash-2.js";const W=[["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"}]],X=w("copy",W);function he(){const{id:n}=k.useParams(),j=N(),{data:D}=u(B(n)),{data:y}=u(P),s=D.Snapshots?.[0],a=q(),o=J(),[S,i]=l.useState(!1),[f,r]=l.useState(!1),[p,d]=l.useState(""),C=y.Regions?.[0]?.RegionName??"ap-southeast-2",h=s?.State==="completed",v=async()=>{try{await a.mutateAsync(n),j({to:"/ec2/describe-snapshots"})}finally{i(!1)}},b=async()=>{try{await o.mutateAsync({sourceSnapshotId:n,sourceRegion:C,description:p||void 0}),r(!1),d("")}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 I=T(s.StartTime);return e.jsxs(e.Fragment,{children:[e.jsx(x,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),a.error&&e.jsx(g,{error:a.error,msg:"Failed to delete snapshot"}),o.error&&e.jsx(g,{error:o.error,msg:"Failed to copy snapshot"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(z,{actions:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(m,{disabled:!h,onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(U,{className:"size-4"}),"Delete"]}),e.jsxs(m,{disabled:!h,onClick:()=>r(!0),size:"sm",variant:"outline",children:[e.jsx(X,{className:"size-4"}),"Copy Snapshot"]}),e.jsx(E,{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(F,{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:I}),e.jsx(t,{label:"Owner ID",value:s.OwnerId}),e.jsx(t,{label:"Encrypted",value:s.Encrypted?"Yes":"No"})]})]})]}),e.jsx(R,{description:`Are you sure you want to delete the snapshot "${s.SnapshotId}"? This action cannot be undone.`,isPending:a.isPending,onConfirm:v,onOpenChange:i,open:S,title:"Delete Snapshot"}),e.jsx(V,{onOpenChange:r,open:f,children:e.jsxs(O,{children:[e.jsxs(L,{children:[e.jsx($,{children:"Copy Snapshot"}),e.jsx(H,{children:"Create a copy of this snapshot in the current region."})]}),e.jsxs(G,{children:[e.jsx(K,{children:e.jsx("label",{htmlFor:"copyDescription",children:"Description (optional)"})}),e.jsx(Y,{id:"copyDescription",onChange:A=>d(A.target.value),placeholder:"Description for the snapshot copy",value:p})]}),e.jsxs(M,{children:[e.jsx(Q,{children:"Cancel"}),e.jsx(_,{disabled:o.isPending,onClick:b,children:o.isPending?"Copying…":"Copy Snapshot"})]})]})})]})}export{he as component}; +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./error-banner.js";import"./useRouterState.js";import{t as a}from"./link.js";import{s as o}from"./utils.js";import{t as s}from"./useNavigate.js";import{t as c}from"./button.js";import{t as l}from"./back-link.js";import{t as u}from"./trash-2.js";import"./awsClient.js";import{f as d}from"./ec2.js";import{f}from"./ec22.js";import{a as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./state-badge.js";import{n as g,t as _}from"./detail-row.js";import"./alert-dialog.js";import{t as v}from"./delete-confirmation-dialog.js";var y=e(n()),b=t();function x(){let{id:e}=p.useParams(),t=s(),{data:n}=r(f(e)),x=n.Subnets?.[0],S=d(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=o(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(i,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(u,{className:`size-4`}),`Delete`]}),(0,b.jsx)(h,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(v,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id6.js b/hive/services/hiveui/frontend/dist/assets/_id6.js index 814a1c239..e66729297 100644 --- a/hive/services/hiveui/frontend/dist/assets/_id6.js +++ b/hive/services/hiveui/frontend/dist/assets/_id6.js @@ -1 +1 @@ -import{d0 as p,u as x,d1 as j,r as h,j as e,i as g,B as K}from"./index.js";import{u as f}from"./useSuspenseQuery.js";import{B as l}from"./back-link.js";import{D}from"./delete-confirmation-dialog.js";import{D as s,a as r}from"./detail-row.js";import{E as P}from"./error-banner.js";import{P as b}from"./page-heading.js";import{o as k}from"./ec2.js";import{T}from"./trash-2.js";import"./alert-dialog.js";function R(){const{id:o}=p.useParams(),c=x(),{data:m}=f(j(o)),a=m.KeyPairs?.[0],t=k(),[y,i]=h.useState(!1),d=async()=>{try{await t.mutateAsync(o),c({to:"/ec2/describe-key-pairs"})}finally{i(!1)}};if(!a?.KeyPairId)return e.jsxs(e.Fragment,{children:[e.jsx(l,{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(l,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),t.error&&e.jsx(P,{error:t.error,msg:"Failed to delete key pair"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{actions:e.jsxs(K,{onClick:()=>i(!0),size:"sm",variant:"destructive",children:[e.jsx(T,{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(D,{description:`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.`,isPending:t.isPending,onConfirm:d,onOpenChange:i,open:y,title:"Delete Key Pair"})]})}export{R as component}; +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./error-banner.js";import"./useRouterState.js";import{t as a}from"./link.js";import{a as o}from"./utils.js";import{t as ee}from"./useNavigate.js";import{n as s,t as c}from"./button.js";import{t as l}from"./createLucideIcon.js";import{t as u}from"./back-link.js";import{a as d,i as f,n as p,r as m,t as h}from"./select.js";import{t as g}from"./trash-2.js";import"./separator.js";import"./awsClient.js";import{h as _,p as v,t as y}from"./ec2.js";import{m as te,o as ne}from"./ec22.js";import{O as re,k as b,o as x}from"./index.js";import{t as S}from"./page-heading.js";import{t as ie}from"./state-badge.js";import{n as C,t as w}from"./detail-row.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{i as N,t as P}from"./field.js";import{t as F}from"./delete-confirmation-dialog.js";var I=l(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=l(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=e(n()),z=t();function B(){let{id:e}=x.useParams(),t=ee(),{data:n}=r(te(e)),{data:l}=r(ne),B=n.Volumes?.[0],V=v(),H=y(),U=_(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),ae=l.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(u,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(i,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(i,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(i,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(S,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(c,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(g,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(a,{className:s({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(c,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(c,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(c,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(a,{className:s({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(b,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(ie,{state:B.State})]}),subtitle:`EC2 Volume Details`,title:B.VolumeId}),(0,z.jsxs)(C,{children:[(0,z.jsx)(C.Header,{children:`Volume Information`}),(0,z.jsxs)(C.Content,{children:[(0,z.jsx)(w,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(w,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(w,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(w,{label:`State`,value:B.State}),(0,z.jsx)(w,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(w,{label:`Create Time`,value:o(B.CreateTime)}),(0,z.jsx)(w,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(w,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(C,{children:[(0,z.jsx)(C.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(C.Content,{children:[(0,z.jsx)(w,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(w,{label:`Device`,value:e.Device}),(0,z.jsx)(w,{label:`Status`,value:e.State}),(0,z.jsx)(w,{label:`Attach Time`,value:o(e.AttachTime)}),(0,z.jsx)(w,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(F,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(N,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(h,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(f,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(d,{placeholder:`Select an instance`})}),(0,z.jsx)(p,{children:ae.map(e=>{let t=e.Tags?.find(e=>e.Key===`Name`)?.Value;return(0,z.jsxs)(m,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(N,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(re,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t||void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(u,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id7.js b/hive/services/hiveui/frontend/dist/assets/_id7.js index 331409656..962d3797b 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 q,B as C,d2 as Z,d3 as Y,d4 as J,v as U,i 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=new Set(["pending","stopping","shutting-down","terminated"]);function Ae(b){const s=q.c(35),{instanceId:t,state:n}=b,c=re(),d=le(),l=oe(),i=ce();if(Pe.has(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 qe(){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),K=a.Output?atob(a.Output):"(no output)";y(K),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{qe as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as i}from"./useNavigate.js";import"./button.js";import{t as a}from"./back-link.js";import"./separator.js";import"./awsClient.js";import{y as o}from"./ec2.js";import{m as s}from"./ec22.js";import{O as c,s as l}from"./index.js";import{t as u}from"./page-heading.js";import{i as d,n as f,t as p}from"./field.js";import{r as m,t as h}from"./zod.js";import{c as g}from"./ec23.js";import{t as _}from"./form-actions.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=l.useParams(),b=i(),x;e[0]===t?x=e[1]:(x=s(t),e[0]=t,e[1]=x);let{data:S}=n(x),C=S.Volumes?.[0],w=C?.VolumeId,T=o(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=h(g.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),e[2]=E,e[3]=D);let O;e[4]===E?O=e[5]:(O={size:E},e[4]=E,e[5]=O);let k;e[6]!==D||e[7]!==O?(k={resolver:D,defaultValues:O},e[6]=D,e[7]=O,e[8]=k):k=e[8];let{handleSubmit:A,register:j,formState:M}=m(k),{errors:N,isSubmitting:P}=M;if(!w){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(a,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),e[9]=t):t=e[9],t}let F;e[10]!==T||e[11]!==b||e[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[10]=T,e[11]=b,e[12]=w,e[13]=F):F=e[13];let I=F,L,R;e[14]===w?(L=e[15],R=e[16]):(L=(0,y.jsx)(a,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(u,{subtitle:w,title:`Resize Volume`}),e[14]=w,e[15]=L,e[16]=R);let z;e[17]===T.error?z=e[18]:(z=T.error&&(0,y.jsx)(r,{error:T.error,msg:`Failed to resize volume`}),e[17]=T.error,e[18]=z);let B;e[19]!==A||e[20]!==I?(B=A(I),e[19]=A,e[20]=I,e[21]=B):B=e[21];let V;e[22]===E?V=e[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),e[22]=E,e[23]=V);let H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(d,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),e[24]=H):H=e[24];let U=!!N.size,W=E+1,G;e[25]===j?G=e[26]:(G=j(`size`,{valueAsNumber:!0}),e[25]=j,e[26]=G);let K;e[27]!==U||e[28]!==W||e[29]!==G?(K=(0,y.jsx)(c,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),e[27]=U,e[28]=W,e[29]=G,e[30]=K):K=e[30];let q;e[31]===N.size?q=e[32]:(q=(0,y.jsx)(f,{errors:[N.size]}),e[31]=N.size,e[32]=q);let J;e[33]!==K||e[34]!==q?(J=(0,y.jsxs)(p,{children:[H,K,q]}),e[33]=K,e[34]=q,e[35]=J):J=e[35];let Y;e[36]!==b||e[37]!==w?(Y=()=>b({to:`/ec2/describe-volumes/$id`,params:{id:w}}),e[36]=b,e[37]=w,e[38]=Y):Y=e[38];let X;e[39]!==P||e[40]!==T.isPending||e[41]!==Y?(X=(0,y.jsx)(_,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),e[39]=P,e[40]=T.isPending,e[41]=Y,e[42]=X):X=e[42];let Z;e[43]!==V||e[44]!==J||e[45]!==X||e[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),e[43]=V,e[44]=J,e[45]=X,e[46]=B,e[47]=Z):Z=e[47];let Q;return e[48]!==Z||e[49]!==L||e[50]!==R||e[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),e[48]=Z,e[49]=L,e[50]=R,e[51]=z,e[52]=Q):Q=e[52],Q}export{b as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_id8.js b/hive/services/hiveui/frontend/dist/assets/_id8.js index d5d75b0b9..eda8cf66c 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,d5 as u,j as t,d4 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{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./error-banner.js";import"./useRouterState.js";import{t as a}from"./link.js";import{s as o}from"./utils.js";import{t as s}from"./useNavigate.js";import{t as c}from"./button.js";import{t as l}from"./back-link.js";import{t as u}from"./trash-2.js";import"./awsClient.js";import{m as d}from"./ec2.js";import{g as f,p}from"./ec22.js";import{c as m}from"./index.js";import{t as h}from"./page-heading.js";import{t as g}from"./state-badge.js";import{n as _,t as v}from"./detail-row.js";import"./alert-dialog.js";import{t as y}from"./delete-confirmation-dialog.js";var b=e(n()),x=t();function S(){let{id:e}=m.useParams(),t=s(),{data:n}=r(f(e)),{data:S}=r(p),C=n.Vpcs?.[0],w=d(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=o(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(i,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(c,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(u,{className:`size-4`}),`Delete`]}),(0,x.jsx)(g,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(y,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_policyArn.js b/hive/services/hiveui/frontend/dist/assets/_policyArn.js index c4d7c1dd1..0987b83d0 100644 --- a/hive/services/hiveui/frontend/dist/assets/_policyArn.js +++ b/hive/services/hiveui/frontend/dist/assets/_policyArn.js @@ -1 +1 @@ -import{c as f,j as e,aw as j,u as P,ax as h,r as g,ay as v,B as N,i as b}from"./index.js";import{u}from"./useSuspenseQuery.js";import{B as p}from"./back-link.js";import{D as C}from"./delete-confirmation-dialog.js";import{D as l,a as n}from"./detail-row.js";import{E as w}from"./error-banner.js";import{P as A}from"./page-heading.js";import{h as I}from"./iam.js";import{T as B}from"./trash-2.js";import"./alert-dialog.js";function R(r){const t=f.c(4),{document:a}=r;let s;try{let i;t[0]!==a?(i=JSON.stringify(JSON.parse(a),null,2),t[0]=a,t[1]=i):i=t[1],s=i}catch{s=a}let o;return t[2]!==s?(o=e.jsx("pre",{className:"overflow-auto rounded-md border bg-muted p-4 font-mono text-sm",children:s}),t[2]=s,t[3]=o):o=t[3],o}function J(){const{policyArn:r}=j.useParams(),t=decodeURIComponent(r),a=P(),{data:s}=u(h(t)),o=s.Policy,i=I(),[y,c]=g.useState(!1),x=o?.DefaultVersionId??"v1",{data:m}=u(v(t,x)),d=m?.PolicyVersion?.Document?decodeURIComponent(m.PolicyVersion.Document):null,D=async()=>{try{await i.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"}),i.error&&e.jsx(w,{error:i.error,msg:"Failed to delete policy"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(A,{actions:e.jsxs(N,{onClick:()=>c(!0),size:"sm",variant:"destructive",children:[e.jsx(B,{className:"size-4"}),"Delete"]}),subtitle:"IAM Policy Details",title:o.PolicyName??""}),e.jsxs(l,{children:[e.jsx(l.Header,{children:"Policy Information"}),e.jsxs(l.Content,{children:[e.jsx(n,{label:"Policy Name",value:o.PolicyName}),e.jsx(n,{label:"Policy ID",value:o.PolicyId}),e.jsx(n,{label:"ARN",value:o.Arn}),e.jsx(n,{label:"Path",value:o.Path}),e.jsx(n,{label:"Description",value:o.Description||"-"}),e.jsx(n,{label:"Created",value:b(o.CreateDate)})]})]}),d&&e.jsxs(l,{children:[e.jsx(l.Header,{children:"Policy Document"}),e.jsx("div",{className:"p-4",children:e.jsx(R,{document:d})})]})]}),e.jsx(C,{description:`Are you sure you want to delete the policy "${o.PolicyName}"? This action cannot be undone.`,isPending:i.isPending,onConfirm:D,onOpenChange:c,open:y,title:"Delete Policy"})]}):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{J as component}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./error-banner.js";import"./useRouterState.js";import{a as o}from"./utils.js";import{t as s}from"./useNavigate.js";import{t as c}from"./button.js";import{t as l}from"./back-link.js";import{t as u}from"./trash-2.js";import"./awsClient.js";import{o as d}from"./iam.js";import{a as f,i as p}from"./iam2.js";import{l as m}from"./index.js";import{t as h}from"./page-heading.js";import{n as g,t as _}from"./detail-row.js";import"./alert-dialog.js";import{t as v}from"./delete-confirmation-dialog.js";var y=e(n()),b=r(),x=t();function S(e){let t=(0,b.c)(4),{document:n}=e,r;try{let e;t[0]===n?e=t[1]:(e=JSON.stringify(JSON.parse(n),null,2),t[0]=n,t[1]=e),r=e}catch{r=n}let i;return t[2]===r?i=t[3]:(i=(0,x.jsx)(`pre`,{className:`overflow-auto rounded-md border bg-muted p-4 font-mono text-sm`,children:r}),t[2]=r,t[3]=i),i}function C(){let{policyArn:e}=m.useParams(),t=decodeURIComponent(e),n=s(),{data:r}=i(p(t)),b=r.Policy,C=d(),[w,T]=(0,y.useState)(!1),{data:E}=i(f(t,b?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return b?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,x.jsx)(a,{error:C.error,msg:`Failed to delete policy`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(c,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(u,{className:`size-4`}),`Delete`]}),subtitle:`IAM Policy Details`,title:b.PolicyName??``}),(0,x.jsxs)(g,{children:[(0,x.jsx)(g.Header,{children:`Policy Information`}),(0,x.jsxs)(g.Content,{children:[(0,x.jsx)(_,{label:`Policy Name`,value:b.PolicyName}),(0,x.jsx)(_,{label:`Policy ID`,value:b.PolicyId}),(0,x.jsx)(_,{label:`ARN`,value:b.Arn}),(0,x.jsx)(_,{label:`Path`,value:b.Path}),(0,x.jsx)(_,{label:`Description`,value:b.Description||`-`}),(0,x.jsx)(_,{label:`Created`,value:o(b.CreateDate)})]})]}),D&&(0,x.jsxs)(g,{children:[(0,x.jsx)(g.Header,{children:`Policy Document`}),(0,x.jsx)(`div`,{className:`p-4`,children:(0,x.jsx)(S,{document:D})})]})]}),(0,x.jsx)(v,{description:`Are you sure you want to delete the policy "${b.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l,{to:`/iam/list-policies`,children:`Back to policies`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{C as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/_userName.js b/hive/services/hiveui/frontend/dist/assets/_userName.js index 31dc0024e..310988026 100644 --- a/hive/services/hiveui/frontend/dist/assets/_userName.js +++ b/hive/services/hiveui/frontend/dist/assets/_userName.js @@ -1,2 +1 @@ -import{c as Y,j as e,B as K,as as L,u as q,at as G,au as J,av as V,C as W,r as D,i as T}from"./index.js";import{u as w}from"./useSuspenseQuery.js";import{B as F}from"./back-link.js";import{D as X}from"./delete-confirmation-dialog.js";import{D as u,a as P}from"./detail-row.js";import{E as C}from"./error-banner.js";import{P as Z}from"./page-heading.js";import{S as _}from"./state-badge.js";import{b as ee,c as se,d as te,e as ae,f as ce,g as le}from"./iam.js";import{b as ne,A as re,a as ie,c as oe,d as de,e as me,g as ue,f as xe}from"./alert-dialog.js";import{u as he,T as ye}from"./use-copy-to-clipboard.js";import{C as Ae}from"./check.js";import{T as je}from"./trash-2.js";function pe(a){const s=Y.c(27),{onClose:v,accessKeyId:x,secretAccessKey:h}=a,{copied:N,copy:y}=he();let c;s[0]===Symbol.for("react.memo_cache_sentinel")?(c=e.jsxs(ne,{children:[e.jsx(re,{children:e.jsx(ye,{className:"text-destructive"})}),e.jsx(ie,{children:"Save Your Access Key"}),e.jsx(oe,{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[0]=c):c=s[0];let A;s[1]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx("span",{className:"text-muted-foreground",children:"Access Key ID: "}),s[1]=A):A=s[1];let j;s[2]!==x?(j=e.jsxs("div",{children:[A,x]}),s[2]=x,s[3]=j):j=s[3];let o;s[4]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx("span",{className:"text-muted-foreground",children:"Secret Access Key: "}),s[4]=o):o=s[4];let l;s[5]!==h?(l=e.jsxs("div",{children:[o,h]}),s[5]=h,s[6]=l):l=s[6];let p;s[7]!==j||s[8]!==l?(p=e.jsxs("div",{className:"space-y-2 rounded-md border p-4 font-mono text-sm",children:[j,l]}),s[7]=j,s[8]=l,s[9]=p):p=s[9];let n;s[10]!==x||s[11]!==y||s[12]!==h?(n=()=>y(`Access Key ID: ${x} -Secret Access Key: ${h}`),s[10]=x,s[11]=y,s[12]=h,s[13]=n):n=s[13];let r;s[14]!==N?(r=N?e.jsxs(e.Fragment,{children:[e.jsx(Ae,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",s[14]=N,s[15]=r):r=s[15];let d;s[16]!==n||s[17]!==r?(d=e.jsx(K,{className:"w-full",onClick:n,type:"button",variant:"outline",children:r}),s[16]=n,s[17]=r,s[18]=d):d=s[18];let i;s[19]!==p||s[20]!==d?(i=e.jsxs("div",{className:"space-y-3",children:[p,d]}),s[19]=p,s[20]=d,s[21]=i):i=s[21];let m;s[22]!==v?(m=e.jsx(de,{children:e.jsx(me,{onClick:v,children:"Close and Continue"})}),s[22]=v,s[23]=m):m=s[23];let f;return s[24]!==i||s[25]!==m?(f=e.jsx(ue,{open:!0,children:e.jsxs(xe,{className:"max-w-2xl",children:[c,i,m]})}),s[24]=i,s[25]=m,s[26]=f):f=s[26],f}function Me(){const{userName:a}=L.useParams(),s=q(),{data:v}=w(G(a)),{data:x}=w(J(a)),{data:h}=w(V(a)),{data:N}=w(W),y=ee(),c=se(),A=te(),j=ae(),o=ce(),l=le(),[p,n]=D.useState(!1),[r,d]=D.useState(null),[i,m]=D.useState(!1),[f,b]=D.useState(null),[z,U]=D.useState(null),g=v.User,M=x.AccessKeyMetadata||[],S=h.AttachedPolicies||[],B=N.Policies||[],k=new Set(S.map(t=>t.PolicyArn)),I=B.filter(t=>t.Arn&&!k.has(t.Arn)),E=async()=>{try{await y.mutateAsync(a),s({to:"/iam/list-users"})}finally{n(!1)}},H=async()=>{const t=await c.mutateAsync(a);t.AccessKey&&d({accessKeyId:t.AccessKey.AccessKeyId??"",secretAccessKey:t.AccessKey.SecretAccessKey??""})},O=async t=>{if(t.AccessKeyId){b(t.AccessKeyId);try{await j.mutateAsync({userName:a,accessKeyId:t.AccessKeyId,status:t.Status==="Active"?"Inactive":"Active"})}finally{b(null)}}},Q=async t=>{b(t);try{await A.mutateAsync({userName:a,accessKeyId:t})}finally{b(null)}},R=async t=>{await o.mutateAsync({userName:a,policyArn:t}),m(!1)},$=async t=>{U(t);try{await l.mutateAsync({userName:a,policyArn:t})}finally{U(null)}};return g?e.jsxs(e.Fragment,{children:[e.jsx(F,{to:"/iam/list-users",children:"Back to users"}),y.error&&e.jsx(C,{error:y.error,msg:"Failed to delete user"}),c.error&&e.jsx(C,{error:c.error,msg:"Failed to create access key"}),A.error&&e.jsx(C,{error:A.error,msg:"Failed to delete access key"}),o.error&&e.jsx(C,{error:o.error,msg:"Failed to attach policy"}),l.error&&e.jsx(C,{error:l.error,msg:"Failed to detach policy"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(Z,{actions:e.jsxs(K,{onClick:()=>n(!0),size:"sm",variant:"destructive",children:[e.jsx(je,{className:"size-4"}),"Delete"]}),subtitle:"IAM User Details",title:g.UserName??""}),e.jsxs(u,{children:[e.jsx(u.Header,{children:"User Information"}),e.jsxs(u.Content,{children:[e.jsx(P,{label:"User Name",value:g.UserName}),e.jsx(P,{label:"User ID",value:g.UserId}),e.jsx(P,{label:"ARN",value:g.Arn}),e.jsx(P,{label:"Path",value:g.Path}),e.jsx(P,{label:"Created",value:T(g.CreateDate)})]})]}),e.jsxs(u,{children:[e.jsx(u.Header,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{children:"Access Keys"}),e.jsx(K,{disabled:c.isPending,onClick:H,size:"sm",children:c.isPending?"Creating...":"Create Access Key"})]})}),e.jsx(u.Content,{children:M.length>0?e.jsx("div",{className:"col-span-2 space-y-3",children:M.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 ",T(t.CreateDate)]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_,{state:t.Status}),e.jsx(K,{disabled:f===t.AccessKeyId,onClick:()=>O(t),size:"sm",variant:"outline",children:t.Status==="Active"?"Deactivate":"Activate"}),e.jsx(K,{disabled:f===t.AccessKeyId,onClick:()=>t.AccessKeyId&&Q(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(u,{children:[e.jsx(u.Header,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{children:"Attached Policies"}),e.jsx(K,{onClick:()=>m(!i),size:"sm",children:"Attach Policy"})]})}),e.jsxs(u.Content,{children:[i&&I.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:I.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&&R(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&&I.length===0&&e.jsx("p",{className:"col-span-2 text-muted-foreground text-sm",children:"No policies available to attach."}),S.length>0?e.jsx("div",{className:"col-span-2 space-y-3",children:S.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(K,{disabled:z===t.PolicyArn,onClick:()=>t.PolicyArn&&$(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(X,{description:`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.`,isPending:y.isPending,onConfirm:E,onOpenChange:n,open:p,title:"Delete User"}),r&&e.jsx(pe,{accessKeyId:r.accessKeyId,onClose:()=>d(null),secretAccessKey:r.secretAccessKey})]}):e.jsxs(e.Fragment,{children:[e.jsx(F,{to:"/iam/list-users",children:"Back to users"}),e.jsx("p",{className:"text-muted-foreground",children:"User not found."})]})}export{Me as component}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./error-banner.js";import"./useRouterState.js";import{a as o}from"./utils.js";import{t as s}from"./useNavigate.js";import{t as c}from"./button.js";import{t as l}from"./back-link.js";import{t as u}from"./check.js";import{t as d}from"./trash-2.js";import{n as f,t as p}from"./use-copy-to-clipboard.js";import"./awsClient.js";import{a as m,c as h,l as g,n as _,s as v,t as y}from"./iam.js";import{n as b,o as x,r as S,t as C}from"./iam2.js";import{u as w}from"./index.js";import{t as T}from"./page-heading.js";import{t as E}from"./state-badge.js";import{n as D,t as O}from"./detail-row.js";import{a as k,c as A,i as j,l as M,o as N,r as P,s as F,t as I}from"./alert-dialog.js";import{t as L}from"./delete-confirmation-dialog.js";var R=e(n()),z=r(),B=t();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=p(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsxs)(F,{children:[(0,B.jsx)(A,{children:(0,B.jsx)(f,{className:`text-destructive`})}),(0,B.jsx)(M,{children:`Save Your Access Key`}),(0,B.jsx)(k,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=s):s=t[0];let l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=l):l=t[1];let d;t[2]===r?d=t[3]:(d=(0,B.jsxs)(`div`,{children:[l,r]}),t[2]=r,t[3]=d);let m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=m):m=t[4];let h;t[5]===i?h=t[6]:(h=(0,B.jsxs)(`div`,{children:[m,i]}),t[5]=i,t[6]=h);let g;t[7]!==d||t[8]!==h?(g=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[d,h]}),t[7]=d,t[8]=h,t[9]=g):g=t[9];let _;t[10]!==r||t[11]!==o||t[12]!==i?(_=()=>o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=_):_=t[13];let v;t[14]===a?v=t[15]:(v=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(u,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=v);let y;t[16]!==_||t[17]!==v?(y=(0,B.jsx)(c,{className:`w-full`,onClick:_,type:`button`,variant:`outline`,children:v}),t[16]=_,t[17]=v,t[18]=y):y=t[18];let b;t[19]!==g||t[20]!==y?(b=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[g,y]}),t[19]=g,t[20]=y,t[21]=b):b=t[21];let x;t[22]===n?x=t[23]:(x=(0,B.jsx)(N,{children:(0,B.jsx)(P,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=x);let S;return t[24]!==b||t[25]!==x?(S=(0,B.jsx)(I,{open:!0,children:(0,B.jsxs)(j,{className:`max-w-2xl`,children:[s,b,x]})}),t[24]=b,t[25]=x,t[26]=S):S=t[26],S}function H(){let{userName:e}=w.useParams(),t=s(),{data:n}=i(x(e)),{data:r}=i(C(e)),{data:u}=i(b(e)),{data:f}=i(S),p=v(),k=_(),A=m(),j=g(),M=y(),N=h(),[P,F]=(0,R.useState)(!1),[I,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=n.User,Y=r.AccessKeyMetadata||[],X=u.AttachedPolicies||[],Z=f.Policies||[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await p.mutateAsync(e),t({to:`/iam/list-users`})}finally{F(!1)}},te=async()=>{let t=await k.mutateAsync(e);t.AccessKey&&z({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},ne=async t=>{if(t.AccessKeyId){G(t.AccessKeyId);try{await j.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async t=>{G(t);try{await A.mutateAsync({userName:e,accessKeyId:t})}finally{G(null)}},ie=async t=>{await M.mutateAsync({userName:e,policyArn:t}),U(!1)},ae=async t=>{q(t);try{await N.mutateAsync({userName:e,policyArn:t})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l,{to:`/iam/list-users`,children:`Back to users`}),p.error&&(0,B.jsx)(a,{error:p.error,msg:`Failed to delete user`}),k.error&&(0,B.jsx)(a,{error:k.error,msg:`Failed to create access key`}),A.error&&(0,B.jsx)(a,{error:A.error,msg:`Failed to delete access key`}),M.error&&(0,B.jsx)(a,{error:M.error,msg:`Failed to attach policy`}),N.error&&(0,B.jsx)(a,{error:N.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(c,{onClick:()=>F(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(d,{className:`size-4`}),`Delete`]}),subtitle:`IAM User Details`,title:J.UserName??``}),(0,B.jsxs)(D,{children:[(0,B.jsx)(D.Header,{children:`User Information`}),(0,B.jsxs)(D.Content,{children:[(0,B.jsx)(O,{label:`User Name`,value:J.UserName}),(0,B.jsx)(O,{label:`User ID`,value:J.UserId}),(0,B.jsx)(O,{label:`ARN`,value:J.Arn}),(0,B.jsx)(O,{label:`Path`,value:J.Path}),(0,B.jsx)(O,{label:`Created`,value:o(J.CreateDate)})]})]}),(0,B.jsxs)(D,{children:[(0,B.jsx)(D.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(c,{disabled:k.isPending,onClick:te,size:`sm`,children:k.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(D.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,o(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(E,{state:e.Status}),(0,B.jsx)(c,{disabled:W===e.AccessKeyId,onClick:()=>ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(c,{disabled:W===e.AccessKeyId,onClick:()=>e.AccessKeyId&&re(e.AccessKeyId),size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(D,{children:[(0,B.jsx)(D.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(c,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(D.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:M.isPending,onClick:()=>e.Arn&&ie(e.Arn),type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(c,{disabled:K===e.PolicyArn,onClick:()=>e.PolicyArn&&ae(e.PolicyArn),size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(L,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:p.isPending,onConfirm:ee,onOpenChange:F,open:P,title:`Delete User`}),I&&(0,B.jsx)(V,{accessKeyId:I.accessKeyId,onClose:()=>z(null),secretAccessKey:I.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/alert-dialog.js b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js index 925be7d77..cb6478544 100644 --- a/hive/services/hiveui/frontend/dist/assets/alert-dialog.js +++ b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{cO as j,b0 as C,cP as N,cQ as h,r as b,j as i,cR as v,c as d,a as g,cS as A,cT as P,cU as y,cV as $,B as x,cW as w,cX 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=b.useMemo(()=>({store:u}),[u]);return i.jsx(v.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(y,{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($,{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}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{n as i}from"./utils.js";import{R as a,t as o}from"./button.js";import{C as s,D as c,E as l,T as u,_ as d,b as f,g as p,v as m,w as h,x as g}from"./index.js";var _=e(n()),v=t();function y(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:o,actionsRef:s,handle:u,triggerId:f,defaultTriggerId:p=null}=e,h=c(),g=!!h,y=a(()=>u?.store??new d({open:r,openProp:n,activeTriggerId:p,triggerIdProp:f,modal:!0,disablePointerDismissal:!0,nested:g,role:`alertdialog`})).current;y.useControlledProp(`openProp`,n),y.useControlledProp(`triggerIdProp`,f),y.useSyncedValue(`nested`,g),y.useContextCallback(`onOpenChange`,i),y.useContextCallback(`onOpenChangeComplete`,o);let b=y.useState(`payload`);m({store:y,actionsRef:s,parentContext:h?.store.context,onOpenChange:i,triggerIdProp:f});let x=_.useMemo(()=>({store:y}),[y]);return(0,v.jsx)(l.Provider,{value:x,children:typeof t==`function`?t({payload:b}):t})}var b=r();function x(e){let t=(0,b.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,v.jsx)(y,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function S(e){let t=(0,b.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,v.jsx)(f,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function C(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(u,{className:a,"data-slot":`alert-dialog-overlay`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function w(e){let t=(0,b.c)(11),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o=a===void 0?`default`:a,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,v.jsx)(C,{}),t[4]=s):s=t[4];let c;t[5]===n?c=t[6]:(c=i(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,n),t[5]=n,t[6]=c);let l;return t[7]!==r||t[8]!==o||t[9]!==c?(l=(0,v.jsxs)(S,{children:[s,(0,v.jsx)(g,{className:c,"data-size":o,"data-slot":`alert-dialog-content`,...r})]}),t[7]=r,t[8]=o,t[9]=c,t[10]=l):l=t[10],l}function T(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`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]`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function E(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`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`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function D(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`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`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function O(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(p,{className:a,"data-slot":`alert-dialog-title`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function k(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(s,{className:a,"data-slot":`alert-dialog-description`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function A(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(n),t[3]=n,t[4]=a);let s;return t[5]!==r||t[6]!==a?(s=(0,v.jsx)(o,{className:a,"data-slot":`alert-dialog-action`,...r}),t[5]=r,t[6]=a,t[7]=s):s=t[7],s}function j(e){let t=(0,b.c)(14),n,r,a,s;t[0]===e?(n=t[1],r=t[2],a=t[3],s=t[4]):({className:n,variant:a,size:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=s);let c=a===void 0?`outline`:a,l=s===void 0?`default`:s,u;t[5]===n?u=t[6]:(u=i(n),t[5]=n,t[6]=u);let d;t[7]!==l||t[8]!==c?(d=(0,v.jsx)(o,{size:l,variant:c}),t[7]=l,t[8]=c,t[9]=d):d=t[9];let f;return t[10]!==r||t[11]!==u||t[12]!==d?(f=(0,v.jsx)(h,{className:u,"data-slot":`alert-dialog-cancel`,render:d,...r}),t[10]=r,t[11]=u,t[12]=d,t[13]=f):f=t[13],f}export{k as a,D as c,w as i,O as l,A as n,E as o,j as r,T as s,x as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/ami-details.js b/hive/services/hiveui/frontend/dist/assets/ami-details.js index ec6e7d67d..a91b76cb2 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,i 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{n as e,t}from"./compiler-runtime.js";import{t as n}from"./link.js";import{a as r}from"./utils.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform||`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/awsClient.js b/hive/services/hiveui/frontend/dist/assets/awsClient.js new file mode 100644 index 000000000..2018db67a --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/awsClient.js @@ -0,0 +1,59 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/event-streams.js","assets/toUtf8.browser.js"])))=>i.map(i=>d[i]); +import"./compiler-runtime.js";import{n as e,t}from"./toUtf8.browser.js";Object.freeze({status:`aborted`});function n(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var r=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},i=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},a={};function o(e){return e&&Object.assign(a,e),a}function s(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function c(e,t){return typeof t==`bigint`?t.toString():t}function l(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function u(e){return e==null}function d(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function f(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var p=Symbol(`evaluating`);function m(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==p)return r===void 0&&(r=p,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ee(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function te(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function ne(e){return JSON.stringify(e)}function re(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ie=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ae(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var oe=l(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function se(e){if(ae(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ae(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ce(e){return se(e)?{...e}:Array.isArray(e)?[...e]:e}var le=new Set([`string`,`number`,`symbol`]);function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function de(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function h(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw 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 fe(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var pe={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function me(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return de(e,te(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ee(this,`shape`,e),e},checks:[]}))}function he(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return de(e,te(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ee(this,`shape`,r),r},checks:[]}))}function ge(e,t){if(!se(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return de(e,te(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ee(this,`shape`,n),n}}))}function _e(e,t){if(!se(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return de(e,te(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ee(this,`shape`,n),n}}))}function ve(e,t){return de(e,te(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ee(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function ye(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return de(t,te(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ee(this,`shape`,i),i},checks:[]}))}function be(e,t,n){return de(t,te(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ee(this,`shape`,i),i}}))}function xe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ce(e){return typeof e==`string`?e:e?.message}function we(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Ce(e.inst?._zod.def?.error?.(e))??Ce(t?.error?.(e))??Ce(n.customError?.(e))??Ce(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Te(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ee(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var De=(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,c,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Oe=n(`$ZodError`,De),ke=n(`$ZodError`,De,{Parent:Error});function Ae(e,t=e=>e.message){let n={},r=[];for(let 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 je(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r(t,n,i,a)=>{let s=i?Object.assign(i,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise)throw new r;if(c.issues.length){let t=new(a?.Err??e)(c.issues.map(e=>we(e,s,o())));throw ie(t,a?.callee),t}return c.value},Ne=Me(ke),Pe=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>we(e,a,o())));throw ie(t,i?.callee),t}return s.value},Fe=Pe(ke),Ie=e=>(t,n,i)=>{let a=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new r;return s.issues.length?{success:!1,error:new(e??Oe)(s.issues.map(e=>we(e,a,o())))}:{success:!0,data:s.value}},Le=Ie(ke),Re=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>we(e,i,o())))}:{success:!0,data:a.value}},ze=Re(ke),Be=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Me(e)(t,n,i)},Ve=e=>(t,n,r)=>Me(e)(t,n,r),He=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Pe(e)(t,n,i)},Ue=e=>async(t,n,r)=>Pe(e)(t,n,r),We=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ie(e)(t,n,i)},Ge=e=>(t,n,r)=>Ie(e)(t,n,r),Ke=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Re(e)(t,n,i)},qe=e=>async(t,n,r)=>Re(e)(t,n,r),Je=/^[cC][^\s-]{8,}$/,Ye=/^[0-9a-z]+$/,Xe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ze=/^[0-9a-vA-V]{20}$/,Qe=/^[A-Za-z0-9]{27}$/,$e=/^[a-zA-Z0-9_-]{21}$/,et=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,tt=/^([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})$/,nt=e=>e?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)$/,rt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,it=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function at(){return new RegExp(it,`u`)}var ot=/^(?:(?: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])$/,st=/^(([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}|:))$/,ct=/^((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])$/,lt=/^(([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])$/,ut=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,dt=/^[A-Za-z0-9_-]*$/,ft=/^\+[1-9]\d{6,14}$/,pt=`(?:(?:\\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])))`,mt=RegExp(`^${pt}$`);function ht(e){let 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 gt(e){return RegExp(`^${ht(e)}$`)}function _t(e){let t=ht({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${pt}T(?:${r})$`)}var vt=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},yt=/^-?\d+$/,bt=/^-?\d+(?:\.\d+)?$/,xt=/^(?:true|false)$/i,St=/^[^A-Z]*$/,Ct=/^[^a-z]*$/,wt=n(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Tt={number:`number`,bigint:`bigint`,object:`date`},Et=n(`$ZodCheckLessThan`,(e,t)=>{wt.init(e,t);let n=Tt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{wt.init(e,t);let n=Tt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.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})}}),Ot=n(`$ZodCheckMultipleOf`,(e,t)=>{wt.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):f(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})}}),kt=n(`$ZodCheckNumberFormat`,(e,t)=>{wt.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=pe[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=yt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),At=n(`$ZodCheckMaxLength`,(e,t)=>{var n;wt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Te(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),jt=n(`$ZodCheckMinLength`,(e,t)=>{var n;wt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Te(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Mt=n(`$ZodCheckLengthEquals`,(e,t)=>{var n;wt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Te(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Nt=n(`$ZodCheckStringFormat`,(e,t)=>{var n,r;wt.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Pt=n(`$ZodCheckRegex`,(e,t)=>{Nt.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})}}),Ft=n(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=St,Nt.init(e,t)}),It=n(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Ct,Nt.init(e,t)}),Lt=n(`$ZodCheckIncludes`,(e,t)=>{wt.init(e,t);let n=ue(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Rt=n(`$ZodCheckStartsWith`,(e,t)=>{wt.init(e,t);let n=RegExp(`^${ue(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),zt=n(`$ZodCheckEndsWith`,(e,t)=>{wt.init(e,t);let n=RegExp(`.*${ue(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Bt=n(`$ZodCheckOverwrite`,(e,t)=>{wt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Vt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` +`))}},Ht={major:4,minor:3,patch:6},Ut=n(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ht;let i=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&i.unshift(e);for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let i=xe(e),a;for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&n?.async===!1)throw new r;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||=xe(e,t))});else{if(e.issues.length===t)continue;i||=xe(e,t)}}return a?a.then(()=>e):e},n=(n,a,o)=>{if(xe(n))return n.aborted=!0,n;let s=t(a,i,o);if(s instanceof Promise){if(o.async===!1)throw new r;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if(o.direction===`backward`){let t=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,a,o)):n(t,a,o)}let s=e._zod.parse(a,o);if(s instanceof Promise){if(o.async===!1)throw new r;return s.then(e=>t(e,i,o))}return t(s,i,o)}}m(e,`~standard`,()=>({validate:t=>{try{let n=Le(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return ze(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Wt=n(`$ZodString`,(e,t)=>{Ut.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??vt(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}}),Gt=n(`$ZodStringFormat`,(e,t)=>{Nt.init(e,t),Wt.init(e,t)}),Kt=n(`$ZodGUID`,(e,t)=>{t.pattern??=tt,Gt.init(e,t)}),qt=n(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=nt(e)}else t.pattern??=nt();Gt.init(e,t)}),Jt=n(`$ZodEmail`,(e,t)=>{t.pattern??=rt,Gt.init(e,t)}),Yt=n(`$ZodURL`,(e,t)=>{Gt.init(e,t),e._zod.check=n=>{try{let 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})}}}),Xt=n(`$ZodEmoji`,(e,t)=>{t.pattern??=at(),Gt.init(e,t)}),Zt=n(`$ZodNanoID`,(e,t)=>{t.pattern??=$e,Gt.init(e,t)}),Qt=n(`$ZodCUID`,(e,t)=>{t.pattern??=Je,Gt.init(e,t)}),$t=n(`$ZodCUID2`,(e,t)=>{t.pattern??=Ye,Gt.init(e,t)}),en=n(`$ZodULID`,(e,t)=>{t.pattern??=Xe,Gt.init(e,t)}),tn=n(`$ZodXID`,(e,t)=>{t.pattern??=Ze,Gt.init(e,t)}),nn=n(`$ZodKSUID`,(e,t)=>{t.pattern??=Qe,Gt.init(e,t)}),rn=n(`$ZodISODateTime`,(e,t)=>{t.pattern??=_t(t),Gt.init(e,t)}),an=n(`$ZodISODate`,(e,t)=>{t.pattern??=mt,Gt.init(e,t)}),on=n(`$ZodISOTime`,(e,t)=>{t.pattern??=gt(t),Gt.init(e,t)}),sn=n(`$ZodISODuration`,(e,t)=>{t.pattern??=et,Gt.init(e,t)}),cn=n(`$ZodIPv4`,(e,t)=>{t.pattern??=ot,Gt.init(e,t),e._zod.bag.format=`ipv4`}),ln=n(`$ZodIPv6`,(e,t)=>{t.pattern??=st,Gt.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})}}}),un=n(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ct,Gt.init(e,t)}),dn=n(`$ZodCIDRv6`,(e,t)=>{t.pattern??=lt,Gt.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function fn(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var pn=n(`$ZodBase64`,(e,t)=>{t.pattern??=ut,Gt.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{fn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function mn(e){if(!dt.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return fn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var hn=n(`$ZodBase64URL`,(e,t)=>{t.pattern??=dt,Gt.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{mn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),gn=n(`$ZodE164`,(e,t)=>{t.pattern??=ft,Gt.init(e,t)});function _n(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var vn=n(`$ZodJWT`,(e,t)=>{Gt.init(e,t),e._zod.check=n=>{_n(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),yn=n(`$ZodNumber`,(e,t)=>{Ut.init(e,t),e._zod.pattern=e._zod.bag.pattern??bt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=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,...a?{received:a}:{}}),n}}),bn=n(`$ZodNumberFormat`,(e,t)=>{kt.init(e,t),yn.init(e,t)}),xn=n(`$ZodBoolean`,(e,t)=>{Ut.init(e,t),e._zod.pattern=xt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Sn=n(`$ZodUnknown`,(e,t)=>{Ut.init(e,t),e._zod.parse=e=>e}),Cn=n(`$ZodNever`,(e,t)=>{Ut.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function wn(e,t,n){e.issues.length&&t.issues.push(...Se(n,e.issues)),t.value[n]=e.value}var Tn=n(`$ZodArray`,(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{let 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);let a=[];for(let e=0;ewn(t,n,e))):wn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function En(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Se(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Dn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=fe(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function On(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>En(e,n,i,t,u))):En(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var kn=n(`$ZodObject`,(e,t)=>{if(Ut.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=l(()=>Dn(t));m(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ae,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>En(n,t,e,s,r))):En(i,t,e,s,r)}return i?On(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),An=n(`$ZodObjectJIT`,(e,t)=>{kn.init(e,t);let n=e._zod.parse,r=l(()=>Dn(t)),i=e=>{let t=new Vt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ne(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ne(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(` + if (${n}.issues.length) { + if (${o} in input) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `):t.write(` + if (${n}.issues.length) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},o,s=ae,c=!a.jitless,u=c&&oe.value,d=t.catchall,f;e._zod.parse=(a,l)=>{f??=r.value;let p=a.value;return s(p)?c&&u&&l?.async===!1&&l.jitless!==!0?(o||=i(t.shape),a=o(a,l),d?On([],p,a,l,f,e):a):n(a,l):(a.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),a)}});function jn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!xe(e));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(e=>e.issues.map(e=>we(e,r,o())))}),t)}var Mn=n(`$ZodUnion`,(e,t)=>{Ut.init(e,t),m(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),m(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),m(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),m(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>d(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>jn(t,i,e,a)):jn(s,i,e,a)}}),Nn=n(`$ZodIntersection`,(e,t)=>{Ut.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Fn(e,t,n)):Fn(e,i,a)}});function Pn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(se(e)&&se(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Pn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),xe(e))return e;let o=Pn(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var In=n(`$ZodEnum`,(e,t)=>{Ut.init(e,t);let n=s(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>le.has(typeof e)).map(e=>typeof e==`string`?ue(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ln=n(`$ZodTransform`,(e,t)=>{Ut.init(e,t),e._zod.parse=(n,a)=>{if(a.direction===`backward`)throw new i(e.constructor.name);let o=t.transform(n.value,n);if(a.async)return(o instanceof Promise?o:Promise.resolve(o)).then(e=>(n.value=e,n));if(o instanceof Promise)throw new r;return n.value=o,n}});function Rn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var zn=n(`$ZodOptional`,(e,t)=>{Ut.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,m(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),m(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${d(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Rn(t,e.value)):Rn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Bn=n(`$ZodExactOptional`,(e,t)=>{zn.init(e,t),m(e._zod,`values`,()=>t.innerType._zod.values),m(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Vn=n(`$ZodNullable`,(e,t)=>{Ut.init(e,t),m(e._zod,`optin`,()=>t.innerType._zod.optin),m(e._zod,`optout`,()=>t.innerType._zod.optout),m(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${d(e.source)}|null)$`):void 0}),m(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Hn=n(`$ZodDefault`,(e,t)=>{Ut.init(e,t),e._zod.optin=`optional`,m(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Un(e,t)):Un(r,t)}});function Un(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Wn=n(`$ZodPrefault`,(e,t)=>{Ut.init(e,t),e._zod.optin=`optional`,m(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Gn=n(`$ZodNonOptional`,(e,t)=>{Ut.init(e,t),m(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Kn(t,e)):Kn(i,e)}});function Kn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var qn=n(`$ZodCatch`,(e,t)=>{Ut.init(e,t),m(e._zod,`optin`,()=>t.innerType._zod.optin),m(e._zod,`optout`,()=>t.innerType._zod.optout),m(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>we(e,n,o()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>we(e,n,o()))},input:e.value}),e.issues=[]),e)}}),Jn=n(`$ZodPipe`,(e,t)=>{Ut.init(e,t),m(e._zod,`values`,()=>t.in._zod.values),m(e._zod,`optin`,()=>t.in._zod.optin),m(e._zod,`optout`,()=>t.out._zod.optout),m(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Yn(e,t.in,n)):Yn(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Yn(e,t.out,n)):Yn(r,t.out,n)}});function Yn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Xn=n(`$ZodReadonly`,(e,t)=>{Ut.init(e,t),m(e._zod,`propValues`,()=>t.innerType._zod.propValues),m(e._zod,`values`,()=>t.innerType._zod.values),m(e._zod,`optin`,()=>t.innerType?._zod?.optin),m(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Zn):Zn(r)}});function Zn(e){return e.value=Object.freeze(e.value),e}var Qn=n(`$ZodCustom`,(e,t)=>{wt.init(e,t),Ut.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>$n(t,n,r,e));$n(i,n,r,e)}});function $n(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ee(e))}}var er,tr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function nr(){return new tr}(er=globalThis).__zod_globalRegistry??(er.__zod_globalRegistry=nr());var rr=globalThis.__zod_globalRegistry;function ir(e,t){return new e({type:`string`,...h(t)})}function ar(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...h(t)})}function or(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...h(t)})}function sr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...h(t)})}function cr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...h(t)})}function lr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...h(t)})}function ur(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...h(t)})}function dr(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...h(t)})}function fr(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...h(t)})}function pr(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...h(t)})}function mr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...h(t)})}function hr(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...h(t)})}function gr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...h(t)})}function _r(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...h(t)})}function vr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...h(t)})}function yr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...h(t)})}function br(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...h(t)})}function xr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...h(t)})}function Sr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...h(t)})}function Cr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...h(t)})}function wr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...h(t)})}function Tr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...h(t)})}function Er(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...h(t)})}function Dr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...h(t)})}function Or(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...h(t)})}function kr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...h(t)})}function Ar(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...h(t)})}function jr(e,t){return new e({type:`number`,checks:[],...h(t)})}function Mr(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...h(t)})}function Nr(e,t){return new e({type:`boolean`,...h(t)})}function Pr(e){return new e({type:`unknown`})}function Fr(e,t){return new e({type:`never`,...h(t)})}function Ir(e,t){return new Et({check:`less_than`,...h(t),value:e,inclusive:!1})}function Lr(e,t){return new Et({check:`less_than`,...h(t),value:e,inclusive:!0})}function Rr(e,t){return new Dt({check:`greater_than`,...h(t),value:e,inclusive:!1})}function zr(e,t){return new Dt({check:`greater_than`,...h(t),value:e,inclusive:!0})}function Br(e,t){return new Ot({check:`multiple_of`,...h(t),value:e})}function Vr(e,t){return new At({check:`max_length`,...h(t),maximum:e})}function Hr(e,t){return new jt({check:`min_length`,...h(t),minimum:e})}function Ur(e,t){return new Mt({check:`length_equals`,...h(t),length:e})}function Wr(e,t){return new Pt({check:`string_format`,format:`regex`,...h(t),pattern:e})}function Gr(e){return new Ft({check:`string_format`,format:`lowercase`,...h(e)})}function Kr(e){return new It({check:`string_format`,format:`uppercase`,...h(e)})}function qr(e,t){return new Lt({check:`string_format`,format:`includes`,...h(t),includes:e})}function Jr(e,t){return new Rt({check:`string_format`,format:`starts_with`,...h(t),prefix:e})}function Yr(e,t){return new zt({check:`string_format`,format:`ends_with`,...h(t),suffix:e})}function Xr(e){return new Bt({check:`overwrite`,tx:e})}function Zr(e){return Xr(t=>t.normalize(e))}function Qr(){return Xr(e=>e.trim())}function $r(){return Xr(e=>e.toLowerCase())}function ei(){return Xr(e=>e.toUpperCase())}function ti(){return Xr(e=>re(e))}function ni(e,t,n){return new e({type:`array`,element:t,...h(n)})}function ri(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...h(n)})}function ii(e){let t=ai(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Ee(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Ee(r))}},e(n.value,n)));return t}function ai(e,t){let n=new wt({check:`custom`,...h(t)});return n._zod.check=e,n}function oi(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??rr,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 si(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,si(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&ui(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ci(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function li(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let 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){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:fi(t,`input`,e.processors),output:fi(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function ui(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return ui(r.element,n);if(r.type===`set`)return ui(r.valueType,n);if(r.type===`lazy`)return ui(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 ui(r.innerType,n);if(r.type===`intersection`)return ui(r.left,n)||ui(r.right,n);if(r.type===`record`||r.type===`map`)return ui(r.keyType,n)||ui(r.valueType,n);if(r.type===`pipe`)return ui(r.in,n)||ui(r.out,n);if(r.type===`object`){for(let e in r.shape)if(ui(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(ui(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(ui(e,n))return!0;return!!(r.rest&&ui(r.rest,n))}return!1}var di=(e,t={})=>n=>{let r=oi({...n,processors:t});return si(e,r),ci(r,e),li(r,e)},fi=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=oi({...i??{},target:a,io:t,processors:n});return si(e,o),ci(o,e),li(o,e)},pi={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},mi=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=pi[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},hi=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},gi=(e,t,n,r)=>{n.type=`boolean`},_i=(e,t,n,r)=>{n.not={}},vi=(e,t,n,r)=>{let i=e._zod.def,a=s(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},yi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},bi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},xi=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=si(a.element,t,{...r,path:[...r.path,`items`]})},Si=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=si(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=si(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Ci=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>si(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},wi=(e,t,n,r)=>{let i=e._zod.def,a=si(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=si(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Ti=(e,t,n,r)=>{let i=e._zod.def,a=si(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ei=(e,t,n,r)=>{let i=e._zod.def;si(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Di=(e,t,n,r)=>{let i=e._zod.def;si(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Oi=(e,t,n,r)=>{let i=e._zod.def;si(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},ki=(e,t,n,r)=>{let i=e._zod.def;si(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Ai=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;si(a,t,r);let o=t.seen.get(e);o.ref=a},ji=(e,t,n,r)=>{let i=e._zod.def;si(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Mi=(e,t,n,r)=>{let i=e._zod.def;si(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ni=n(`ZodISODateTime`,(e,t)=>{rn.init(e,t),aa.init(e,t)});function Pi(e){return Dr(Ni,e)}var Fi=n(`ZodISODate`,(e,t)=>{an.init(e,t),aa.init(e,t)});function Ii(e){return Or(Fi,e)}var Li=n(`ZodISOTime`,(e,t)=>{on.init(e,t),aa.init(e,t)});function Ri(e){return kr(Li,e)}var zi=n(`ZodISODuration`,(e,t)=>{sn.init(e,t),aa.init(e,t)});function Bi(e){return Ar(zi,e)}var Vi=(e,t)=>{Oe.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>je(e,t)},flatten:{value:t=>Ae(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,c,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,c,2)}},isEmpty:{get(){return e.issues.length===0}}})};n(`ZodError`,Vi);var Hi=n(`ZodError`,Vi,{Parent:Error}),Ui=Me(Hi),Wi=Pe(Hi),Gi=Ie(Hi),Ki=Re(Hi),qi=Be(Hi),Ji=Ve(Hi),Yi=He(Hi),Xi=Ue(Hi),Zi=We(Hi),Qi=Ge(Hi),$i=Ke(Hi),ea=qe(Hi),ta=n(`ZodType`,(e,t)=>(Ut.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:fi(e,`input`),output:fi(e,`output`)}}),e.toJSONSchema=di(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(te(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>de(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Ui(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Gi(e,t,n),e.parseAsync=async(t,n)=>Wi(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ki(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>qi(e,t,n),e.decode=(t,n)=>Ji(e,t,n),e.encodeAsync=async(t,n)=>Yi(e,t,n),e.decodeAsync=async(t,n)=>Xi(e,t,n),e.safeEncode=(t,n)=>Zi(e,t,n),e.safeDecode=(t,n)=>Qi(e,t,n),e.safeEncodeAsync=async(t,n)=>$i(e,t,n),e.safeDecodeAsync=async(t,n)=>ea(e,t,n),e.refine=(t,n)=>e.check(po(t,n)),e.superRefine=t=>e.check(mo(t)),e.overwrite=t=>e.check(Xr(t)),e.optional=()=>Ja(e),e.exactOptional=()=>Xa(e),e.nullable=()=>Qa(e),e.nullish=()=>Ja(Qa(e)),e.nonoptional=t=>io(e,t),e.array=()=>Ia(e),e.or=t=>Ba([e,t]),e.and=t=>Ha(e,t),e.transform=t=>co(e,Ka(t)),e.default=t=>eo(e,t),e.prefault=t=>no(e,t),e.catch=t=>oo(e,t),e.pipe=t=>co(e,t),e.readonly=()=>uo(e),e.describe=t=>{let n=e.clone();return rr.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return rr.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return rr.get(e);let n=e.clone();return rr.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),na=n(`_ZodString`,(e,t)=>{Wt.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mi(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Wr(...t)),e.includes=(...t)=>e.check(qr(...t)),e.startsWith=(...t)=>e.check(Jr(...t)),e.endsWith=(...t)=>e.check(Yr(...t)),e.min=(...t)=>e.check(Hr(...t)),e.max=(...t)=>e.check(Vr(...t)),e.length=(...t)=>e.check(Ur(...t)),e.nonempty=(...t)=>e.check(Hr(1,...t)),e.lowercase=t=>e.check(Gr(t)),e.uppercase=t=>e.check(Kr(t)),e.trim=()=>e.check(Qr()),e.normalize=(...t)=>e.check(Zr(...t)),e.toLowerCase=()=>e.check($r()),e.toUpperCase=()=>e.check(ei()),e.slugify=()=>e.check(ti())}),ra=n(`ZodString`,(e,t)=>{Wt.init(e,t),na.init(e,t),e.email=t=>e.check(ar(oa,t)),e.url=t=>e.check(dr(la,t)),e.jwt=t=>e.check(Er(wa,t)),e.emoji=t=>e.check(fr(ua,t)),e.guid=t=>e.check(or(sa,t)),e.uuid=t=>e.check(sr(ca,t)),e.uuidv4=t=>e.check(cr(ca,t)),e.uuidv6=t=>e.check(lr(ca,t)),e.uuidv7=t=>e.check(ur(ca,t)),e.nanoid=t=>e.check(pr(da,t)),e.guid=t=>e.check(or(sa,t)),e.cuid=t=>e.check(mr(fa,t)),e.cuid2=t=>e.check(hr(pa,t)),e.ulid=t=>e.check(gr(ma,t)),e.base64=t=>e.check(Cr(xa,t)),e.base64url=t=>e.check(wr(Sa,t)),e.xid=t=>e.check(_r(ha,t)),e.ksuid=t=>e.check(vr(ga,t)),e.ipv4=t=>e.check(yr(_a,t)),e.ipv6=t=>e.check(br(va,t)),e.cidrv4=t=>e.check(xr(ya,t)),e.cidrv6=t=>e.check(Sr(ba,t)),e.e164=t=>e.check(Tr(Ca,t)),e.datetime=t=>e.check(Pi(t)),e.date=t=>e.check(Ii(t)),e.time=t=>e.check(Ri(t)),e.duration=t=>e.check(Bi(t))});function ia(e){return ir(ra,e)}var aa=n(`ZodStringFormat`,(e,t)=>{Gt.init(e,t),na.init(e,t)}),oa=n(`ZodEmail`,(e,t)=>{Jt.init(e,t),aa.init(e,t)}),sa=n(`ZodGUID`,(e,t)=>{Kt.init(e,t),aa.init(e,t)}),ca=n(`ZodUUID`,(e,t)=>{qt.init(e,t),aa.init(e,t)}),la=n(`ZodURL`,(e,t)=>{Yt.init(e,t),aa.init(e,t)}),ua=n(`ZodEmoji`,(e,t)=>{Xt.init(e,t),aa.init(e,t)}),da=n(`ZodNanoID`,(e,t)=>{Zt.init(e,t),aa.init(e,t)}),fa=n(`ZodCUID`,(e,t)=>{Qt.init(e,t),aa.init(e,t)}),pa=n(`ZodCUID2`,(e,t)=>{$t.init(e,t),aa.init(e,t)}),ma=n(`ZodULID`,(e,t)=>{en.init(e,t),aa.init(e,t)}),ha=n(`ZodXID`,(e,t)=>{tn.init(e,t),aa.init(e,t)}),ga=n(`ZodKSUID`,(e,t)=>{nn.init(e,t),aa.init(e,t)}),_a=n(`ZodIPv4`,(e,t)=>{cn.init(e,t),aa.init(e,t)}),va=n(`ZodIPv6`,(e,t)=>{ln.init(e,t),aa.init(e,t)}),ya=n(`ZodCIDRv4`,(e,t)=>{un.init(e,t),aa.init(e,t)}),ba=n(`ZodCIDRv6`,(e,t)=>{dn.init(e,t),aa.init(e,t)}),xa=n(`ZodBase64`,(e,t)=>{pn.init(e,t),aa.init(e,t)}),Sa=n(`ZodBase64URL`,(e,t)=>{hn.init(e,t),aa.init(e,t)}),Ca=n(`ZodE164`,(e,t)=>{gn.init(e,t),aa.init(e,t)}),wa=n(`ZodJWT`,(e,t)=>{vn.init(e,t),aa.init(e,t)}),Ta=n(`ZodNumber`,(e,t)=>{yn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hi(e,t,n,r),e.gt=(t,n)=>e.check(Rr(t,n)),e.gte=(t,n)=>e.check(zr(t,n)),e.min=(t,n)=>e.check(zr(t,n)),e.lt=(t,n)=>e.check(Ir(t,n)),e.lte=(t,n)=>e.check(Lr(t,n)),e.max=(t,n)=>e.check(Lr(t,n)),e.int=t=>e.check(Oa(t)),e.safe=t=>e.check(Oa(t)),e.positive=t=>e.check(Rr(0,t)),e.nonnegative=t=>e.check(zr(0,t)),e.negative=t=>e.check(Ir(0,t)),e.nonpositive=t=>e.check(Lr(0,t)),e.multipleOf=(t,n)=>e.check(Br(t,n)),e.step=(t,n)=>e.check(Br(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Ea(e){return jr(Ta,e)}var Da=n(`ZodNumberFormat`,(e,t)=>{bn.init(e,t),Ta.init(e,t)});function Oa(e){return Mr(Da,e)}var ka=n(`ZodBoolean`,(e,t)=>{xn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gi(e,t,n,r)});function Aa(e){return Nr(ka,e)}var ja=n(`ZodUnknown`,(e,t)=>{Sn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ma(){return Pr(ja)}var Na=n(`ZodNever`,(e,t)=>{Cn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_i(e,t,n,r)});function Pa(e){return Fr(Na,e)}var Fa=n(`ZodArray`,(e,t)=>{Tn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xi(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(Hr(t,n)),e.nonempty=t=>e.check(Hr(1,t)),e.max=(t,n)=>e.check(Vr(t,n)),e.length=(t,n)=>e.check(Ur(t,n)),e.unwrap=()=>e.element});function Ia(e,t){return ni(Fa,e,t)}var La=n(`ZodObject`,(e,t)=>{An.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Si(e,t,n,r),m(e,`shape`,()=>t.shape),e.keyof=()=>Wa(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ma()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ma()}),e.strict=()=>e.clone({...e._zod.def,catchall:Pa()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ge(e,t),e.safeExtend=t=>_e(e,t),e.merge=t=>ve(e,t),e.pick=t=>me(e,t),e.omit=t=>he(e,t),e.partial=(...t)=>ye(qa,e,t[0]),e.required=(...t)=>be(ro,e,t[0])});function Ra(e,t){return new La({type:`object`,shape:e??{},...h(t)})}var za=n(`ZodUnion`,(e,t)=>{Mn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ci(e,t,n,r),e.options=t.options});function Ba(e,t){return new za({type:`union`,options:e,...h(t)})}var Va=n(`ZodIntersection`,(e,t)=>{Nn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wi(e,t,n,r)});function Ha(e,t){return new Va({type:`intersection`,left:e,right:t})}var Ua=n(`ZodEnum`,(e,t)=>{In.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vi(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ua({...t,checks:[],...h(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ua({...t,checks:[],...h(r),entries:i})}});function Wa(e,t){return new Ua({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...h(t)})}var Ga=n(`ZodTransform`,(e,t)=>{Ln.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bi(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new i(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ee(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ee(t))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(e=>(n.value=e,n)):(n.value=a,n)}});function Ka(e){return new Ga({type:`transform`,transform:e})}var qa=n(`ZodOptional`,(e,t)=>{zn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ja(e){return new qa({type:`optional`,innerType:e})}var Ya=n(`ZodExactOptional`,(e,t)=>{Bn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Xa(e){return new Ya({type:`optional`,innerType:e})}var Za=n(`ZodNullable`,(e,t)=>{Vn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Qa(e){return new Za({type:`nullable`,innerType:e})}var $a=n(`ZodDefault`,(e,t)=>{Hn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Di(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function eo(e,t){return new $a({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ce(t)}})}var to=n(`ZodPrefault`,(e,t)=>{Wn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function no(e,t){return new to({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ce(t)}})}var ro=n(`ZodNonOptional`,(e,t)=>{Gn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ei(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function io(e,t){return new ro({type:`nonoptional`,innerType:e,...h(t)})}var ao=n(`ZodCatch`,(e,t)=>{qn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function oo(e,t){return new ao({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var so=n(`ZodPipe`,(e,t)=>{Jn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai(e,t,n,r),e.in=t.in,e.out=t.out});function co(e,t){return new so({type:`pipe`,in:e,out:t})}var lo=n(`ZodReadonly`,(e,t)=>{Xn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function uo(e){return new lo({type:`readonly`,innerType:e})}var fo=n(`ZodCustom`,(e,t)=>{Qn.init(e,t),ta.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yi(e,t,n,r)});function po(e,t={}){return ri(fo,e,t)}function mo(e){return ii(e)}var ho=`hive:v1:aws-credentials`,go=Ra({accessKeyId:ia().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:ia().min(1,`Secret Access Key is required`)}),_o;function vo(){if(_o!==void 0)return _o;try{let e=localStorage.getItem(ho);if(!e)return _o=null,null;let t=JSON.parse(e),n=go.safeParse(t);return _o=n.success?n.data:null,_o}catch{return _o=null,null}}function yo(e){try{localStorage.setItem(ho,JSON.stringify(e)),_o=e}catch{_o=e}}function bo(){try{localStorage.removeItem(ho)}catch{}_o=null}var xo=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),So=e=>({httpHandler:e.httpHandler()}),Co;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Co||={});var wo;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(wo||={});var To=`__smithy_context`,Eo=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Do(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Do(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Oo=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}};function ko(e){return e}var Ao=e=>t=>async n=>{if(!Eo.isInstance(n.request))return t(n);let{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 e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},jo={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},Mo=e=>({applyToStack:t=>{t.add(Ao(e),jo)}}),No=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Po={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},Fo=e=>({applyToStack:e=>{e.add(No(),Po)}}),Io={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`},Lo=()=>e=>async t=>e(t),Ro=e=>({applyToStack:e=>{e.add(Lo(),Io)}}),zo=e=>e.__smithy_context||={},Bo=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},Vo=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function Ho(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Uo=(e,t)=>(n,r)=>async i=>{let a=Vo(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=Ho(e.httpAuthSchemes),s=zo(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` +`));return n(i)},Wo={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},Go=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Uo(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),Wo)}}),Ko={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0},qo=e=>e=>{throw e},Jo=(e,t)=>{},Yo=e=>(e,t)=>async n=>{if(!Eo.isInstance(n.request))return e(n);let r=zo(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||qo)(i));return(o.successHandler||Jo)(s.response,i),s},Xo={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},Zo=e=>({applyToStack:t=>{t.addRelativeTo(Yo(e),Xo)}}),Qo=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},$o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,es=Object.entries($o).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),ts=$o.split(``),ns=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)},rs=t=>typeof t==`string`?e(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t);function is(t){let n;n=typeof t==`string`?e(t):t;let r=typeof n==`object`&&typeof n.length==`number`,i=typeof n==`object`&&typeof n.byteOffset==`number`&&typeof n.byteLength==`number`;if(!r&&!i)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let a=``;for(let e=0;e>n]}a+=`==`.slice(0,4-i)}return a}var as=class n extends Uint8Array{static fromString(t,r=`utf-8`){if(typeof t==`string`)return r===`base64`?n.mutate(ns(t)):n.mutate(e(t));throw Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,n.prototype),e}transformToString(e=`utf-8`){return e===`base64`?is(this):t(this)}},os=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),ss=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:o}=t,s=n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0,c=s?o(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await l.read();if(i){if(e.enqueue(`0\r +`),s){let t=n(await c);e.enqueue(`${a}:${t}\r\n`),e.enqueue(`\r +`)}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})};async function cs(e,t){let n=0,r=[],i=e.getReader(),a=!1;for(;!a;){let{done:e,value:o}=await i.read();if(o&&(r.push(o),n+=o?.byteLength??0),n>=t)break;a=e}i.releaseLock();let o=new Uint8Array(Math.min(t,n)),s=0;for(let e of r){if(e.byteLength>o.byteLength-s){o.set(e.subarray(0,o.byteLength-s),s);break}else o.set(e,s);s+=e.length}return o}var ls=e=>encodeURIComponent(e).replace(/[!'()*]/g,us),us=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function ds(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=ls(n),Array.isArray(r))for(let e=0,i=r.length;e{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var ms={supported:void 0},hs=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),ms.supported===void 0&&(ms.supported=typeof Request<`u`&&`keepalive`in fs(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=gs(t);return Promise.reject(e)}let o=e.path,s=ds(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),ms.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},ee=fs(d,p),te=[fetch(ee).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new Oo({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Oo({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),ps(r)];return t&&te.push(new Promise((e,n)=>{let r=()=>{n(gs(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(te).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function gs(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error)return t;let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var _s=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?vs(e):new Uint8Array(await e.arrayBuffer()):ys(e);async function vs(e){let t=ns(await bs(e));return new Uint8Array(t)}async function ys(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function bs(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var xs={},Ss={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),xs[e]=t,Ss[t]=e}function Cs(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;n{if(!Ds(e)&&!os(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let n=!1,r=async()=>{if(n)throw Error(Ts);return n=!0,await _s(e)},i=e=>{if(typeof e.stream!=`function`)throw 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 e.stream()};return Object.assign(e,{transformToByteArray:r,transformToString:async e=>{let n=await r();if(e===`base64`)return is(n);if(e===`hex`)return ws(n);if(e===void 0||e===`utf8`||e===`utf-8`)return t(n);if(typeof TextDecoder==`function`)return new TextDecoder(e).decode(n);throw Error(`TextDecoder is not available, please make sure polyfill is provided.`)},transformToWebStream:()=>{if(n)throw Error(Ts);if(n=!0,Ds(e))return i(e);if(os(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},Ds=e=>typeof Blob==`function`&&e instanceof Blob;async function Os(e){return typeof e.stream==`function`&&(e=e.stream()),e.tee()}var ks=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return as.mutate(e);if(!e)return as.mutate(new Uint8Array);let n=t.streamCollector(e);return as.mutate(await n)};function As(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var js=e=>typeof e==`function`?e():e,Ms=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),Ns=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=zo(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(Ms(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,`$response`,{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + `+t}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(Oo.isInstance(i)){let{headers:t={}}=i,n=Object.entries(t);e.$metadata={httpStatusCode:i.statusCode,requestId:Ps(/^x-[\w-]+-request-?id$/,n),extendedRequestId:Ps(/^x-[\w-]+-id-2$/,n),cfId:Ps(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},Ps=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],Fs=e=>(t,n)=>async r=>{let{operationSchema:i}=zo(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,d=await e.protocol.serializeRequest(Ms(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},Is={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},Ls={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function Rs(e){return{applyToStack:t=>{t.add(Fs(e),Ls),t.add(Ns(e),Is),e.protocol.setSerdeContext(e)}}}function zs(e){if(typeof e==`object`)return e;e|=0;let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return t}var Bs={it:Symbol.for(`@smithy/nor-struct-it`)},Vs=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;Us(i);)r.push(i[1]),i=i[0],a=js(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,zs(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=js(a),Ws(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=js(t);if(n instanceof e)return n;if(Us(n)){let[r,i]=n;if(r instanceof e)return Object.assign(r.getMergedTraits(),zs(i)),r;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new e(n)}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=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(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return zs(this.memberTraits)}getOwnTraits(){return zs(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return Hs([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return Hs([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return Hs(Us(r)?r:[r,0],e)}if(this.isDocumentSchema())return Hs([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[Bs.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,Ws=e=>Array.isArray(e)&&e.length>=5,Gs=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},Ks=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&oc.warn(ac(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},qs=Math.ceil(2**127*(2-2**-23)),Js=e=>{let t=Ks(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>qs)throw TypeError(`Expected 32-bit float, got ${e}`);return t},Ys=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},Xs=e=>Qs(e,16),Zs=e=>Qs(e,8),Qs=(e,t)=>{let n=Ys(e);if(n!==void 0&&$s(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},$s=(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]}},ec=e=>Js(typeof e==`string`?nc(e):e),tc=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,nc=e=>{let t=e.match(tc);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},rc=e=>Xs(typeof e==`string`?nc(e):e),ic=e=>Zs(typeof e==`string`?nc(e):e),ac=e=>String(TypeError(e).stack||e).split(` +`).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` +`),oc={warn:console.warn},sc=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],cc=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function lc(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${sc[r]}, ${c} ${cc[n]} ${t} ${l}:${u}:${d} GMT`}var uc=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$/),dc=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$/),fc=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})$/),pc=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=uc.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return mc(rc(wc(i)),vc(r),Sc(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=dc.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return _c(mc(hc(i),vc(r),Sc(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=fc.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return mc(rc(wc(c)),vc(n),Sc(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},mc=(e,t,n,r)=>{let i=t-1;return bc(e,i,n),new Date(Date.UTC(e,i,n,Sc(r.hours,`hour`,0,23),Sc(r.minutes,`minute`,0,59),Sc(r.seconds,`seconds`,0,60),Cc(r.fractionalMilliseconds)))},hc=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+rc(wc(e));return ne.getTime()-new Date().getTime()>gc?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,vc=e=>{let t=cc.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},yc=[31,28,31,30,31,30,31,31,30,31,30,31],bc=(e,t,n)=>{let r=yc[t];if(t===1&&xc(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${cc[t]} in ${e}: ${n}`)},xc=e=>e%4==0&&(e%100!=0||e%400==0),Sc=(e,t,n,r)=>{let i=ic(wc(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Cc=e=>e==null?0:ec(`0.`+e)*1e3,wc=e=>{let t=0;for(;tt.toString(16).padStart(2,`0`)),Dc=()=>{if(Tc)return Tc();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ec[e[0]]+Ec[e[1]]+Ec[e[2]]+Ec[e[3]]+`-`+Ec[e[4]]+Ec[e[5]]+`-`+Ec[e[6]]+Ec[e[7]]+`-`+Ec[e[8]]+Ec[e[9]]+`-`+Ec[e[10]]+Ec[e[11]]+Ec[e[12]]+Ec[e[13]]+Ec[e[14]]+Ec[e[15]]},Oc=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};Oc.from=e=>e&&typeof e==`object`&&(e instanceof Oc||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?Oc(String(e)):Oc(JSON.stringify(e)),Oc.fromObject=Oc.from;function kc(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var Ac=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,jc=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,Mc=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,Nc=`(\\d?\\d)`,Pc=`(\\d{4})`,Fc=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Ic=RegExp(`^${Ac}, ${Nc} ${jc} ${Pc} ${Mc} GMT$`),Lc=RegExp(`^${Ac}, ${Nc}-${jc}-(\\d\\d) ${Mc} GMT$`),Rc=RegExp(`^${Ac} ${jc} ( [1-9]|\\d\\d) ${Mc} ${Pc}$`),zc=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Bc=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 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 TypeError(`Epoch timestamps must be valid finite numbers.`);return new Date(Math.round(t*1e3))},Vc=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=Fc.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;Uc(r,1,12),Uc(i,1,31),Uc(a,0,23),Uc(o,0,59),Uc(s,0,60);let u=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(n)),l.toUpperCase()!=`Z`){let[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,`+`,0,0],r=e===`-`?1:-1;u.setTime(u.getTime()+r*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return u},Hc=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC7231 timestamps must be strings.`);let t,n,r,i,a,o,s,c;if((c=Ic.exec(e))?[,t,n,r,i,a,o,s]=c:(c=Lc.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=Rc.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),zc.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);Uc(t,1,31),Uc(i,0,23),Uc(a,0,59),Uc(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)};function Uc(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}function Wc(e,t,n){if(n<=0||!Number.isInteger(n))throw Error(`Invalid number of delimiters (`+n+`) for splitEvery.`);let r=e.split(t);if(n===1)return r;let i=[],a=``;for(let e=0;e{let t=e.length,n=[],r=!1,i,a=0;for(let o=0;o{e=e.trim();let t=e.length;return t<2?e:(e[0]===`"`&&e[t-1]===`"`&&(e=e.slice(1,t-1)),e.replace(/\\"/g,`"`))})},Kc=/^-?\d*(\.\d+)?$/,qc=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!Kc.test(e))throw 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;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&Kc.test(n.string)}},Jc=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},Yc=`modulepreload`,Xc=function(e){return`/`+e},Zc={},Qc=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Xc(t,n),t in Zc)return;Zc[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Yc,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},$c=class extends Jc{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=Gs.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return Eo}getResponseType(){return Oo}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;return e}else return e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},e}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=Vs.of(t.input),i=zs(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){let i=[...r.structIterator()].filter(([,e])=>e.getMergedTraits().hostLabel);for(let[e]of i){let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await Qc(async()=>{let{EventStreamSerde:e}=await import(`./event-streams.js`);return{EventStreamSerde:e}},__vite__mapDeps([0,1]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},el=class extends $c{async serializeRequest(e,t,n){let r={...t??{}},i=this.serializer,a={},o={},s=await n.endpoint(),c=Vs.of(e?.input),l=[],u=[],d=!1,f,p=new Eo({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(p,s),this.setHostPrefix(p,e,r);let t=zs(e.traits);if(t.http){p.method=t.http[0];let[e,n]=t.http[1].split(`?`);p.path==`/`?p.path=e:p.path+=e;let r=new URLSearchParams(n??``);Object.assign(a,Object.fromEntries(r))}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(p.path.includes(`{${e}+}`)||p.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(f=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):f=s:(i.write(t,s),f=i.flush()),delete r[e];else if(n.httpLabel){i.write(t,s);let n=i.flush();p.path.includes(`{${e}+}`)?p.path=p.path.replace(`{${e}+}`,n.split(`/`).map(As).join(`/`)):p.path.includes(`{${e}}`)&&(p.path=p.path.replace(`{${e}}`,As(n))),delete r[e]}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush()),delete r[e];else if(typeof n.httpPrefixHeaders==`string`){for(let[e,r]of Object.entries(s)){let a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}delete r[e]}else n.httpQuery||n.httpQueryParams?(this.serializeQuery(t,s,a),delete r[e]):(d=!0,l.push(e),u.push(t))}if(d&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,u,void 0];n?a[6]=n:a.pop(),i.write(a,r),f=i.flush()}return p.headers=o,p.query=a,p.body=f,p}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let[r,a]of Object.entries(t))if(!(r in n)){let t=e.getValueSchema();Object.assign(t.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(t,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=Vs.of(e.output),a={};if(n.statusCode>=300){let i=await ks(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await ks(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await ks(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=Vs.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=Es(n.body);else if(n.body){let i=await ks(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?Wc(o,`,`,2):Gc(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let[t,o]of Object.entries(n.headers))if(t.startsWith(i.httpPrefixHeaders)){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(n,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},tl=class extends $c{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=Vs.of(e?.input),c=s.getSchema(),l,u=new Eo({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});o&&(this.updateServiceEndpoint(u,o),this.setHostPrefix(u,e,t));let d={...t};if(t){let e=s.getEventStreamMember();if(e){if(d[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&d[n]&&(r.write(i,d[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:d[e],requestSchema:s,initialRequest:t})}}else r.write(c,d),l=r.flush()}return u.headers=a,u.query=i,u.body=l,u.method=`POST`,u}async deserializeResponse(e,t,n){let r=this.deserializer,i=Vs.of(e.output),a={};if(n.statusCode>=300){let i=await ks(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await ks(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function nl(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var rl=class extends Jc{settings;constructor(e){super(),this.settings=e}read(e,t){let n=Vs.of(e);if(n.isListSchema())return Gc(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??ns)(t);if(n.isTimestampSchema())switch(nl(n,this.settings)){case 5:return Vc(t);case 6:return Hc(t);case 7:return Bc(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(n.isStringSchema()){let e=n.getMergedTraits().mediaType,r=t;if(e)return n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r)),(e===`application/json`||e.endsWith(`+json`))&&(r=Oc.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new qc(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??t)((this.serdeContext?.base64Decoder??ns)(e))}},il=class extends Jc{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new rl(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(n,r){let i=Vs.of(n),a=i.getMergedTraits(),o=this.serdeContext?.utf8Encoder??t;if(a.httpHeader||a.httpResponseCode)return this.stringDeserializer.read(i,o(r));if(a.httpPayload){if(i.isBlobSchema()){let t=this.serdeContext?.utf8Decoder??e;return typeof r==`string`?t(r):r}else if(i.isStringSchema())return`byteLength`in r?o(r):r}return this.codecDeserializer.read(i,r)}},al=class extends Jc{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=Vs.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(nl(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=lc(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??is)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:kc(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=Oc.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??is)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Dc():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},ol=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new al(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=Vs.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function sl(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}var cl=class{authSchemes=new Map;constructor(e){for(let[t,n]of Object.entries(e))n!==void 0&&this.authSchemes.set(t,n)}getIdentityProvider(e){return this.authSchemes.get(e)}},ll=(e=>function(t){return ul(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,dl=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function fl(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function pl(e){let t=Qo(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!fl(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var ml=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},hl=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}$`),gl=e=>hl.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),_l=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),vl=(e,t=!1)=>{if(!t)return _l.test(e);let n=e.split(`.`);for(let e of n)if(!vl(e))return!1;return!0},yl={},bl=`endpoints`;function xl(e){return typeof e!=`object`||!e?e:`ref`in e?`$${xl(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(xl).join(`, `)})`:JSON.stringify(e,null,2)}var Sl=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},Cl=(e,t)=>e===t,wl=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new Sl(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new Sl(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},Tl=(e,t)=>wl(t).reduce((n,r)=>{if(typeof n!=`object`)throw new Sl(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),El=e=>e!=null,Dl=e=>!e,Ol={[Co.HTTP]:80,[Co.HTTPS]:443},kl={booleanEquals:Cl,getAttr:Tl,isSet:El,isValidHostLabel:vl,not:Dl,parseURL:e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(Co).includes(c))return null;let l=gl(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${Ol[c]}`)||typeof e==`string`&&e.includes(`${r}:${Ol[c]}`)?`:${Ol[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}},stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},Al=(e,t)=>{let n=[],r={...t.endpointParams,...t.referenceRecord},i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Ml=(e,t,n)=>{if(typeof e==`string`)return Al(e,n);if(e.fn)return Pl.callFunction(e,n);if(e.ref)return jl(e,n);throw new Sl(`'${t}': ${String(e)} is not a string, function or reference.`)},Nl=({fn:e,argv:t},n)=>{let r=t.map(e=>[`boolean`,`number`].includes(typeof e)?e:Pl.evaluateExpression(e,`arg`,n)),i=e.split(`.`);return i[0]in yl&&i[1]!=null?yl[i[0]][i[1]](...r):kl[e](...r)},Pl={evaluateExpression:Ml,callFunction:Nl},Fl=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new Sl(`'${e}' is already defined in Reference Record.`);let r=Nl(t,n);return n.logger?.debug?.(`${bl} evaluateCondition: ${xl(t)} = ${xl(r)}`),{result:r===``?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},Il=(e=[],t)=>{let n={};for(let r of e){let{result:e,toAssign:i}=Fl(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e)return{result:e};i&&(n[i.name]=i.value,t.logger?.debug?.(`${bl} assign: ${i.name} := ${xl(i.value)}`))}return{result:!0,referenceRecord:n}},Ll=(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:r.map(e=>{let r=Ml(e,`Header value entry`,t);if(typeof r!=`string`)throw new Sl(`Header '${n}' value '${r}' is not a string`);return r})}),{}),Rl=(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:Bl.getEndpointProperty(r,t)}),{}),zl=(e,t)=>{if(Array.isArray(e))return e.map(e=>zl(e,t));switch(typeof e){case`string`:return Al(e,t);case`object`:if(e===null)throw new Sl(`Unexpected endpoint property: ${e}`);return Bl.getEndpointProperties(e,t);case`boolean`:return e;default:throw new Sl(`Unexpected endpoint property type: ${typeof e}`)}},Bl={getEndpointProperty:zl,getEndpointProperties:Rl},Vl=(e,t)=>{let n=Ml(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new Sl(`Endpoint URL must be a string, got ${typeof n}`)},Hl=(e,t)=>{let{conditions:n,endpoint:r}=e,{result:i,referenceRecord:a}=Il(n,t);if(!i)return;let o={...t,referenceRecord:{...t.referenceRecord,...a}},{url:s,properties:c,headers:l}=r;return t.logger?.debug?.(`${bl} Resolving endpoint from template: ${xl(r)}`),{...l!=null&&{headers:Ll(l,o)},...c!=null&&{properties:Rl(c,o)},url:Vl(s,o)}},Ul=(e,t)=>{let{conditions:n,error:r}=e,{result:i,referenceRecord:a}=Il(n,t);if(i)throw new Sl(Ml(r,`Error`,{...t,referenceRecord:{...t.referenceRecord,...a}}))},Wl=(e,t)=>{for(let n of e)if(n.type===`endpoint`){let e=Hl(n,t);if(e)return e}else if(n.type===`error`)Ul(n,t);else if(n.type===`tree`){let e=Gl.evaluateTreeRule(n,t);if(e)return e}else throw new Sl(`Unknown endpoint rule: ${n}`);throw new Sl(`Rules evaluation failed`)},Gl={evaluateRules:Wl,evaluateTreeRule:(e,t)=>{let{conditions:n,rules:r}=e,{result:i,referenceRecord:a}=Il(n,t);if(i)return Gl.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...a}})}},Kl=(e,t)=>{let{endpointParams:n,logger:r}=t,{parameters:i,rules:a}=e;t.logger?.debug?.(`${bl} Initial EndpointParams: ${xl(n)}`);let o=Object.entries(i).filter(([,e])=>e.default!=null).map(([e,t])=>[e,t.default]);if(o.length>0)for(let[e,t]of o)n[e]=n[e]??t;let s=Object.entries(i).filter(([,e])=>e.required).map(([e])=>e);for(let e of s)if(n[e]==null)throw new Sl(`Missing required parameter: '${e}'`);let c=Wl(a,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${bl} Resolved endpoint: ${xl(c)}`),c},ql=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!ql(t))return!1;return!0}return!(!vl(e)||e.length<3||e.length>63||e!==e.toLowerCase()||gl(e))},Jl=`:`,Yl=`/`,Xl=e=>{let t=e.split(Jl);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(Jl)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(Yl)).flat()}},Zl={partitions:[{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)`}}}],version:`1.1`},Ql=``,$l=e=>{let{partitions:t}=Zl;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},eu=()=>Ql,tu={isVirtualHostableS3Bucket:ql,parseArn:Xl,partition:$l};yl.aws=tu;function nu(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var ru=e=>{if(typeof e==`string`)return ru(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=nu(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};function iu(e,t,n){return e.$source||={},e.$source[t]=n,e}function au(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}var ou=e=>Oo.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,su=e=>new Date(Date.now()+e),cu=(e,t)=>Math.abs(su(t).getTime()-e)>=3e5,lu=(e,t)=>{let n=Date.parse(e);return cu(n,t)?n-Date.now():t},uu=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},du=async e=>{let t=uu(`context`,e.context),n=uu(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await uu(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},fu=class{async sign(e,t,n){if(!Eo.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await du(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:su(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??ou(t.$response);if(n){let r=uu(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=lu(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=ou(e);if(n){let e=uu(`config`,t.config);e.systemClockOffset=lu(n,e.systemClockOffset)}}},pu=class extends fu{async sign(e,t,n){if(!Eo.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await du(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return await i.sign(e,{signingDate:su(r.systemClockOffset),signingRegion:c,signingService:s})}},mu=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},hu=e=>(e.sigv4aSigningRegionSet=Qo(e.sigv4aSigningRegionSet),e),gu=`X-Amz-Algorithm`,_u=`X-Amz-Credential`,vu=`X-Amz-Date`,yu=`X-Amz-SignedHeaders`,bu=`X-Amz-Expires`,xu=`X-Amz-Signature`,Su=`X-Amz-Security-Token`,Cu=`authorization`,wu=vu.toLowerCase(),Tu=[Cu,wu,`date`];xu.toLowerCase();var Eu=`x-amz-content-sha256`,Du=Su.toLowerCase(),Ou={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},ku=/^proxy-/,Au=/^sec-/,ju=`AWS4-HMAC-SHA256`,Mu=`AWS4-HMAC-SHA256-PAYLOAD`,Nu=`UNSIGNED-PAYLOAD`,Pu=`aws4_request`,Fu={},Iu=[],Lu=(e,t,n)=>`${e}/${t}/${n}/${Pu}`,Ru=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${ws(await zu(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in Fu)return Fu[a];for(Iu.push(a);Iu.length>50;)delete Fu[Iu.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,Pu])o=await zu(e,o,t);return Fu[a]=o},zu=(e,t,n)=>{let r=new e(t);return r.update(rs(n)),r.digest()},Bu=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in Ou||t?.has(a)||ku.test(a)||Au.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},Vu=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,Hu=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||Vu(t)){let e=new n;return e.update(rs(t)),ws(await e.digest())}return Nu},Uu=class{format(t){let n=[];for(let r of Object.keys(t)){let i=e(r);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[r]))}let r=new Uint8Array(n.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of n)r.set(e,i),i+=e.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`:let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case`integer`:let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case`long`:let i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case`binary`:let a=new DataView(new ArrayBuffer(3+t.value.byteLength));a.setUint8(0,6),a.setUint16(1,t.value.byteLength,!1);let o=new Uint8Array(a.buffer);return o.set(t.value,3),o;case`string`:let s=e(t.value),c=new DataView(new ArrayBuffer(3+s.byteLength));c.setUint8(0,7),c.setUint16(1,s.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(s,3),l;case`timestamp`:let u=new Uint8Array(9);return u[0]=8,u.set(Ku.fromNumber(t.value.valueOf()).bytes,1),u;case`uuid`:if(!Gu.test(t.value))throw Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(Cs(t.value.replace(/\-/g,``)),1),d}}},Wu;(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`})(Wu||={});var Gu=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Ku=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&qu(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&qu(e),parseInt(ws(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function qu(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Ju=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},Yu=(e,t={})=>{let{headers:n,query:r={}}=Eo.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},Xu=e=>{e=Eo.clone(e);for(let t of Object.keys(e.headers))Tu.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Zu=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=ls(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${ls(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${ls(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},Qu=e=>$u(e).toISOString().replace(/\.\d{3}Z$/,`Z`),$u=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,ed=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=Bo(n),this.credentialProvider=Bo(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} +${this.getCanonicalPath(e)} +${Zu(e)} +${r.map(e=>`${e}:${t[e]}`).join(` +`)} + +${r.join(`;`)} +${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(rs(n)),`${r} +${e} +${t} +${ws(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return ls(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=Qu(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},td=class extends ed{headerFormatter=new Uu;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=Lu(p,d,l??this.service),ee=Yu(Xu(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(ee.query[Su]=u.sessionToken),ee.query[gu]=ju,ee.query[_u]=`${u.accessKeyId}/${m}`,ee.query[vu]=f,ee.query[bu]=r.toString(10);let te=Bu(ee,i,o);return ee.query[yu]=this.getCanonicalHeaderList(te),ee.query[xu]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(ee,te,await Hu(e,this.sha256))),ee}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a}){let o=i??await this.regionProvider(),{shortDate:s,longDate:c}=this.formatDate(n),l=Lu(s,o,a??this.service),u=await Hu({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);let f=[Mu,c,l,r,ws(await d.digest()),u].join(` +`);return this.signString(f,{signingDate:n,signingRegion:o,signingService:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:o}=this.formatDate(t),s=new this.sha256(await this.getSigningKey(i,a,o,r));return s.update(rs(e)),ws(await s.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=Xu(e),{longDate:l,shortDate:u}=this.formatDate(t),d=Lu(u,s,a??this.service);c.headers[wu]=l,o.sessionToken&&(c.headers[Du]=o.sessionToken);let f=await Hu(c,this.sha256);!Ju(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[Eu]=f);let p=Bu(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[Cu]=`${ju} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,ju),a=new this.sha256(await n);return a.update(rs(i)),ws(await a.digest())}getSigningKey(e,t,n,r){return Ru(this.sha256,e,n,t,r||this.service)}},nd={SignatureV4a:null},rd=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,`credentials`,{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=ad(e,id(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?iu(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?Qo(e.signer):e.regionInfoProvider?()=>Qo(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||td)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await Qo(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||td)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function id(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:dl(t,ll,ul):n?Qo(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function ad(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var od=typeof TextEncoder==`function`?new TextEncoder:null,sd=e=>{if(typeof e==`string`){if(od)return od.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let 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;else if(typeof e.size==`number`)return e.size;throw Error(`Body Length computation failed for ${e}`)},cd=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},ld=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,ud=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>dd[t.step]-dd[e.step]||fd[t.priority||`normal`]-fd[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=cd(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of cd(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of cd(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of cd(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${ld(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=cd(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${ld(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${ld(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${ld(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=cd(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${ld(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${ld(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${ld(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(ud()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=cd(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(ud());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return ld(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},dd={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},fd={high:3,normal:2,low:1},pd=class{config;middlewareStack=ud();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},md=`***SensitiveInformation***`;function hd(e,t){if(t==null)return t;let n=Vs.of(e);if(n.getMergedTraits().sensitive)return md;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return md}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return md}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=hd(i,e[t]));return r}return t}var gd=class{middlewareStack=ud();schema;static classBuilder(){return new _d}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[To]:{commandInstance:this,...c},...l},{requestHandler:m}=t;return d.resolve(e=>m.handle(e.request,n||{}),p)}},_d=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends gd{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?hd.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?hd.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},vd=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},yd=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),bd=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{}}},xd=Object.values(wo),Sd=e=>{let t=[];for(let n in wo){let r=wo[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();xd.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},Cd=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();xd.includes(n)&&(t[n]=e.checksumConstructor())}),t},wd=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),Td=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},Ed=e=>Object.assign(Sd(e),wd(e)),Dd=e=>Object.assign(Cd(e),Td(e)),Od=e=>{let t=`#text`;for(let 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]=Od(e[n]));return e},kd=class{trace(){}debug(){}info(){}warn(){}error(){}},Ad=class{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=t,s=e;e.includes(`#`)&&([o,s]=e.split(`#`));let c={$metadata:i,$fault:n.statusCode<500?`client`:`server`},l=Gs.for(o);try{return{errorSchema:a?.(l,s)??l.getSchema(e),errorMetadata:c}}catch{r.message=r.message??r.Message??`UnknownError`;let e=Gs.for(`smithy.ts.sdk.synthetic.`+o),t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:s}),c),r)}throw this.decorateServiceException(Object.assign(Error(s),c),r)}}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=yd(e,t);n&&(r.message=n),r.Error={...r.Error,Type:r.Error?.Type,Code:r.Error?.Code,Message:r.Error?.message??r.Error?.Message??n};let i=r.$metadata.requestId;return i&&(r.RequestId=i),r}return yd(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.entries(e),a={Code:t,Type:r};Object.assign(e,a);for(let[e,t]of i)a[e===`message`?`Message`:e]=t;delete a.__type,e.Error=a}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch{return e.find(e=>Vs.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},jd=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},Md=class{from;to;keys;constructor(e,t){this.from=e,this.to=t,this.keys=new Set(Object.keys(this.from).filter(e=>e!==`__type`))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}};function Nd(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`)}function Pd(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(//g,`>`).replace(/\r/g,` `).replace(/\n/g,` `).replace(/\u0085/g,`…`).replace(/\u2028/,`
`)}var Fd=class{value;constructor(e){this.value=e}toString(){return Pd(``+this.value)}},Id=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new Fd(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${Nd(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Ld;function Rd(e){Ld||=new DOMParser;let t=Ld.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var zd=class extends jd{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new rl(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,n,r){let i=Vs.of(e),a=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&Object.values(a).find(e=>!!e.getMemberTraits().eventPayload)){let e={},t=Object.keys(a)[0];return a[t].isBlobSchema()?e[t]=n:e[t]=this.read(a[t],n),e}let o=(this.serdeContext?.utf8Encoder??t)(n),s=this.parseXml(o);return this.readSchema(e,r?s[r]:s)}readSchema(e,t){let n=Vs.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new Md(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=Rd(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),Od(i)}return{}}},Bd=class extends jd{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=Vs.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??is)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Dc())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof qc?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),nl(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(lc(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let[r,s]of Object.entries(t)){if(s==null)continue;let t=e.getMergedTraits(),c=this.getKey(`key`,t.xmlName,t.ec2QueryName),l=a?`${n}${o}.${c}`:`${n}entry.${o}.${c}`,u=i.getMergedTraits(),d=this.getKey(`value`,u.xmlName,u.ec2QueryName),f=a?`${n}${o}.${d}`:`${n}entry.${o}.${d}`;this.write(e,r,l),this.write(i,s,f),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${As(e)}=`}writeValue(e){this.buffer+=As(e)}},Vd=class extends tl{options;serializer;deserializer;mixin=new Ad;constructor(e){super({defaultNamespace:e.defaultNamespace}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Bd(t),this.deserializer=new zd(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),Object.assign(r.headers,{"content-type":`application/x-www-form-urlencoded`}),(js(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=Vs.of(e.output),a={};if(n.statusCode>=300){let i=await ks(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await ks(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),{$metadata:this.deserializeMetadata(n),...a}}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`,o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=Vs.of(c),d=new((Gs.for(c[1]).getErrorCtor(c))??Error)(s),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},Hd=class extends Vd{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}useNestedResult(){return!1}},Ud=(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`},Wd=class extends jd{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=Vs.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??ns)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Id.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=Id.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=Id.of(e);if(typeof n!=`string`)if(t instanceof Id||t instanceof Fd)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,u]=this.getXmlnsAttribute(e,r),d=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,u);else if(a.isMapSchema())this.writeMap(a,n,t,u);else if(a.isStructSchema()){let r=this.writeStruct(a,n,u);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=Id.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,u),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&d(n,e);else{let r=Id.of(i.xmlName??e.getMemberName());u&&r.addAttribute(l,u);for(let e of t)(s||e!=null)&&d(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),u=l.xmlName??`value`,d=!!l.sparse,f=!!a.xmlFlattened,[p,m]=this.getXmlnsAttribute(e,r),ee=(e,t,n)=>{let r=Id.of(s,t),[i,a]=this.getXmlnsAttribute(o,m);a&&r.addAttribute(i,a),e.addChildNode(r);let l=Id.of(u);c.isListSchema()?this.writeList(c,n,l,m):c.isMapSchema()?this.writeMap(c,n,l,m,!0):c.isStructSchema()?l=this.writeStruct(c,n,m):this.writeSimpleInto(c,n,l,m),e.addChildNode(l)};if(f){for(let[r,i]of Object.entries(t))if(d||i!=null){let t=Id.of(a.xmlName??e.getMemberName());ee(t,r,i),n.addChildNode(t)}}else{let r;i||(r=Id.of(a.xmlName??e.getMemberName()),m&&r.addAttribute(p,m),n.addChildNode(r));for(let[e,a]of Object.entries(t))if(d||a!=null){let t=Id.of(`entry`);ee(t,e,a),(i?n:r).addChildNode(t)}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=Vs.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??is)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(nl(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=lc(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=lc(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof qc?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Dc():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=Vs.of(e),o=new Fd(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Gd=class extends jd{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Wd(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new zd(this.settings);return e.setSerdeContext(this.serdeContext),e}},Kd=class extends el{codec;serializer;deserializer;mixin=new Ad;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Gd(t),this.serializer=new ol(this.codec.createSerializer(),t),this.deserializer=new il(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=Vs.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Ud(n,r)??`Unknown`;if(r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=Vs.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`Unknown`,u=new((Gs.for(o[1]).getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={};for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];d[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},qd;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(qd||={});var Jd=qd.STANDARD,Yd=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],Xd=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],Zd=[500,502,503,504],Qd=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],$d=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`],ef=e=>e?.$retryable!==void 0,tf=e=>e.$metadata?.clockSkewCorrected,nf=e=>{let 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},rf=e=>e.$metadata?.httpStatusCode===429||Yd.includes(e.name)||e.$retryable?.throttling==1,af=(e,t=0)=>ef(e)||tf(e)||Xd.includes(e.name)||Qd.includes(e?.code||``)||$d.includes(e?.code||``)||Zd.includes(e.$metadata?.httpStatusCode||0)||nf(e)||e.cause!==void 0&&t<=10&&af(e.cause,t+1),of=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!af(e)}return!1},sf=class e{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(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),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){let n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n))}this.currentCapacity-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),rf(e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},cf=20*1e3,lf=`amz-sdk-invocation-id`,uf=`amz-sdk-request`,df=()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(cf,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}},ff=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(cf,e),getRetryCost:()=>n}),pf=class{maxAttempts;mode=qd.STANDARD;capacity=500;retryBackoffStrategy=df();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider=typeof e==`function`?e:async()=>e}async acquireInitialRetryToken(e){return ff({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?500:100);let r=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,r):r,a=this.getCapacityCost(n);return this.capacity-=a,ff({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:a})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}shouldRetry(e,t,n){return e.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e===`TRANSIENT`?10:5}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},mf=class{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=qd.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;let{rateLimiter:n}=t??{};this.rateLimiter=n??new sf,this.standardRetryStrategy=new pf(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}},hf=/\d{12}\.ddb/;async function gf(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&au(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case qd.ADAPTIVE:au(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case qd.STANDARD:au(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(hf)&&au(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:au(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:au(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:au(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&au(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))au(e,n,r)}}var _f=`user-agent`,vf=`x-amz-user-agent`,yf=/[^!$%&'*+\-.^_`|~\w]/g,bf=/[^!$%&'*+\-.^_`|~\w#]/g,xf=1024;function Sf(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=xf){t.length?t+=`,`+r:t+=r;continue}break}return t}var Cf=e=>(t,n)=>async r=>{let{request:i}=r;if(!Eo.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(wf)||[],s=(await e.defaultUserAgentProvider()).map(wf);await gf(n,e,r);let c=n;s.push(`m/${Sf(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(wf)||[],u=await e.userAgentAppId();u&&s.push(wf([`app`,`${u}`]));let d=eu(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[vf]=f:(p&&(a[vf]=a[`x-amz-user-agent`]?`${a[_f]} ${p}`:p),a[_f]=f),t({...r,request:i})},wf=e=>{let t=e[0].split(`/`).map(e=>e.replace(yf,`-`)).join(`/`),n=e[1]?.replace(bf,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},Tf={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},Ef=e=>({applyToStack:t=>{t.add(Cf(e),Tf)}}),Df=new Set,Of=(e,t=vl)=>{if(!Df.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 Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else Df.add(e)},kf=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),Af=e=>kf(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,jf=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=Af(typeof t==`function`?await t():t);return Of(e),e},useFipsEndpoint:async()=>kf(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},Mf=`content-length`;function Nf(e){return t=>async n=>{let r=n.request;if(Eo.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(Mf)===-1)try{let n=e(t);r.headers={...r.headers,[Mf]:String(n)}}catch{}}return t({...n,request:r})}}var Pf={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},Ff=e=>({applyToStack:t=>{t.add(Nf(e.bodyLengthChecker),Pf)}}),If=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),Vf(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Bf(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},Lf=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Rf=/(\d+\.){3}\d+/,zf=/\.\./,Bf=e=>Lf.test(e)&&!Rf.test(e)&&!zf.test(e),Vf=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},Hf=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i},Uf=async e=>void 0,Wf=e=>typeof e==`object`?`url`in e?ru(e.url):e:ru(e),Gf=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await Uf(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(Wf(e)),n.isCustomEndpoint=!0)}let i=await Kf(e,t,n);if(typeof n.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);return n.endpointProvider(i,r)},Kf=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await Hf(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await If(r),r},qf=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&sl(r,`ENDPOINT_OVERRIDE`,`N`);let a=await Gf(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=a,r.authSchemes=a.properties?.authSchemes;let o=r.authSchemes?.[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let e=zo(r)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})},Jf={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:Ko.name},Yf=(e,t)=>({applyToStack:n=>{n.addRelativeTo(qf({config:e,instructions:t}),Jf)}}),Xf=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,a=n==null?void 0:async()=>Wf(await Bo(n)()),o=!!n,s=Object.assign(e,{endpoint:a,tls:t,isCustomEndpoint:o,useDualstackEndpoint:Bo(r??!1),useFipsEndpoint:Bo(i??!1)}),c;return s.serviceConfiguredEndpoint=async()=>(e.serviceId&&!c&&(c=Uf(e.serviceId)),c),s},Zf=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):typeof e==`string`?Error(e):Error(`AWS SDK error wrapper for ${e}`),Qf=e=>{let{retryStrategy:t,retryMode:n,maxAttempts:r}=e,i=Bo(r??3);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Bo(n)()===qd.ADAPTIVE?new mf(i):new pf(i))})},$f=e=>e?.body instanceof ReadableStream,ep=e=>(t,n)=>async r=>{let i=await e.retryStrategy(),a=await e.maxAttempts();if(tp(i)){i=i;let e=await i.acquireInitialRetryToken(n.partition_id),o=Error(),s=0,c=0,{request:l}=r,u=Eo.isInstance(l);for(u&&(l.headers[lf]=Dc());;)try{u&&(l.headers[uf]=`attempt=${s+1}; max=${a}`);let{response:n,output:o}=await t(r);return i.recordSuccess(e),o.$metadata.attempts=s+1,o.$metadata.totalRetryDelay=c,{response:n,output:o}}catch(t){let r=np(t);if(o=Zf(t),u&&$f(l))throw(n.logger instanceof kd?console:n.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),o;try{e=await i.refreshRetryTokenForRetry(e,r)}catch{throw o.$metadata||={},o.$metadata.attempts=s+1,o.$metadata.totalRetryDelay=c,o}s=e.getRetryCount();let a=e.getRetryDelay();c+=a,await new Promise(e=>setTimeout(e,a))}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],[`cfg/retry-mode`,i.mode]]),i.retry(t,r)},tp=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,np=e=>{let t={error:e,errorType:rp(e)},n=op(e.$response);return n&&(t.retryAfterHint=n),t},rp=e=>rf(e)?`THROTTLING`:af(e)?`TRANSIENT`:of(e)?`SERVER_ERROR`:`CLIENT_ERROR`,ip={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0},ap=e=>({applyToStack:t=>{t.add(ep(e),ip)}}),op=e=>{if(!Oo.isInstance(e))return;let t=Object.keys(e.headers).find(e=>e.toLowerCase()===`retry-after`);if(!t)return;let n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},sp=async(e,t,n)=>({operation:zo(t).operation,region:await Bo(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function cp(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var lp=e=>{let t=[];switch(e.operation){default:t.push(cp(e))}return t},up=e=>{let t=rd(e);return Object.assign(t,{authSchemePreference:Bo(e.authSchemePreference??[])})},dp=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),fp={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},pp=`@aws-sdk/client-ec2`,mp=`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,hp=`3.1004.0`,gp={build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-ec2`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ec2`,test:`yarn g:vitest run --passWithNoTests`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},_p=`./dist-cjs/index.js`,vp=`./dist-types/index.d.ts`,yp=`./dist-es/index.js`,bp={"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.973.18`,"@aws-sdk/credential-provider-node":`^3.972.18`,"@aws-sdk/middleware-host-header":`^3.972.7`,"@aws-sdk/middleware-logger":`^3.972.7`,"@aws-sdk/middleware-recursion-detection":`^3.972.7`,"@aws-sdk/middleware-sdk-ec2":`^3.972.13`,"@aws-sdk/middleware-user-agent":`^3.972.19`,"@aws-sdk/region-config-resolver":`^3.972.7`,"@aws-sdk/types":`^3.973.5`,"@aws-sdk/util-endpoints":`^3.996.4`,"@aws-sdk/util-user-agent-browser":`^3.972.7`,"@aws-sdk/util-user-agent-node":`^3.973.4`,"@smithy/config-resolver":`^4.4.10`,"@smithy/core":`^3.23.8`,"@smithy/fetch-http-handler":`^5.3.13`,"@smithy/hash-node":`^4.2.11`,"@smithy/invalid-dependency":`^4.2.11`,"@smithy/middleware-content-length":`^4.2.11`,"@smithy/middleware-endpoint":`^4.4.22`,"@smithy/middleware-retry":`^4.4.39`,"@smithy/middleware-serde":`^4.2.12`,"@smithy/middleware-stack":`^4.2.11`,"@smithy/node-config-provider":`^4.3.11`,"@smithy/node-http-handler":`^4.4.14`,"@smithy/protocol-http":`^5.3.11`,"@smithy/smithy-client":`^4.12.2`,"@smithy/types":`^4.13.0`,"@smithy/url-parser":`^4.2.11`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.38`,"@smithy/util-defaults-mode-node":`^4.2.41`,"@smithy/util-endpoints":`^3.3.2`,"@smithy/util-middleware":`^4.2.11`,"@smithy/util-retry":`^4.2.11`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.2.11`,tslib:`^2.6.2`},xp={"@smithy/snapshot-testing":`^1.0.9`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},Sp={node:`>=20.0.0`},Cp={"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},wp=[`dist-*/**`],Tp={name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},Ep=`Apache-2.0`,Dp={"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},Op=`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,kp={type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`},Ap={name:pp,description:mp,version:hp,scripts:gp,main:_p,types:vp,module:yp,sideEffects:!1,dependencies:bp,devDependencies:xp,engines:Sp,typesVersions:Cp,files:wp,author:Tp,license:Ep,browser:Dp,"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:Op,repository:kp},jp=e=>new TextEncoder().encode(e),Mp=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:jp;function Np(e){return e instanceof Uint8Array?e:typeof e==`string`?Mp(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Pp(e){return typeof e==`string`?e.length===0:e.byteLength===0}function Fp(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function Ip(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var Kp=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]),qp=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Jp=2**53-1,Yp=function(){function e(){this.state=Int32Array.from(qp),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Jp)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var ee=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Kp[d]+this.temp[d]|0)|0)|0,te=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+ee|0,o=a,a=i,i=r,r=ee+te|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Xp=function(){function e(e){this.secret=e,this.hash=new Yp,this.reset()}return e.prototype.update=function(e){if(!(Pp(e)||this.error))try{this.hash.update(Np(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Up(this,void 0,void 0,function(){return Wp(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Yp,this.secret){this.outer=new Yp;var e=Zp(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new Yp;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Qp=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function $p(e){if(em(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return tm(t)}return!1}function em(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function tm(e){return e&&Qp.every(function(t){return typeof e[t]==`function`})}var nm=function(){function e(e){$p(Vp())?this.hash=new Hp(e):this.hash=new Xp(e)}return e.prototype.update=function(e,t){this.hash.update(Np(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),rm=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??im.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??im.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},im={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`}},am=e=>()=>Promise.reject(e),om=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],sm=({defaultsMode:e}={})=>mu(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(cm()?`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 Error(`Invalid parameter for "defaultsMode", expect ${om.join(`, `)}, got ${t}`)}}),cm=()=>{let e=window?.navigator;if(e?.connection){let{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},lm=`required`,um=`fn`,dm=`argv`,fm=`ref`,pm=!0,mm=`isSet`,hm=`booleanEquals`,gm=`error`,_m=`endpoint`,vm=`tree`,ym=`PartitionResult`,bm=`getAttr`,xm={[lm]:!1,type:`string`},Sm={[lm]:!0,default:!1,type:`boolean`},Cm={[fm]:`Endpoint`},wm={[um]:hm,[dm]:[{[fm]:`UseFIPS`},!0]},Tm={[um]:hm,[dm]:[{[fm]:`UseDualStack`},!0]},Em={},Dm={[um]:bm,[dm]:[{[fm]:ym},`supportsFIPS`]},Om={[fm]:ym},km={[um]:hm,[dm]:[!0,{[um]:bm,[dm]:[Om,`supportsDualStack`]}]},Am=[wm],jm=[Tm],Mm=[{[fm]:`Region`}],Nm={version:`1.0`,parameters:{Region:xm,UseDualStack:Sm,UseFIPS:Sm,Endpoint:xm},rules:[{conditions:[{[um]:mm,[dm]:[Cm]}],rules:[{conditions:Am,error:`Invalid Configuration: FIPS and custom endpoint are not supported`,type:gm},{conditions:jm,error:`Invalid Configuration: Dualstack and custom endpoint are not supported`,type:gm},{endpoint:{url:Cm,properties:Em,headers:Em},type:_m}],type:vm},{conditions:[{[um]:mm,[dm]:Mm}],rules:[{conditions:[{[um]:`aws.partition`,[dm]:Mm,assign:ym}],rules:[{conditions:[wm,Tm],rules:[{conditions:[{[um]:hm,[dm]:[pm,Dm]},km],rules:[{endpoint:{url:`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,properties:Em,headers:Em},type:_m}],type:vm},{error:`FIPS and DualStack are enabled, but this partition does not support one or both`,type:gm}],type:vm},{conditions:Am,rules:[{conditions:[{[um]:hm,[dm]:[Dm,pm]}],rules:[{conditions:[{[um]:`stringEquals`,[dm]:[{[um]:bm,[dm]:[Om,`name`]},`aws-us-gov`]}],endpoint:{url:`https://ec2.{Region}.amazonaws.com`,properties:Em,headers:Em},type:_m},{endpoint:{url:`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,properties:Em,headers:Em},type:_m}],type:vm},{error:`FIPS is enabled but this partition does not support FIPS`,type:gm}],type:vm},{conditions:jm,rules:[{conditions:[km],rules:[{endpoint:{url:`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,properties:Em,headers:Em},type:_m}],type:vm},{error:`DualStack is enabled but this partition does not support DualStack`,type:gm}],type:vm},{endpoint:{url:`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,properties:Em,headers:Em},type:_m}],type:vm}],type:vm},{error:`Invalid Configuration: Missing Region`,type:gm}]},Pm=new ml({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Fm=(e,t={})=>Pm.get(e,()=>Kl(Nm,{endpointParams:e,logger:t.logger}));yl.aws=tu;var Im=class e extends vd{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Lm=`AllAvailabilityZones`,Rm=`AttributeBooleanValue`,zm=`AssociateCarrierIpAddress`,Bm=`AdditionalFlexibleNetworkInterfaces`,Vm=`AvailableIpAddressCount`,Hm=`AssignIpv6AddressOnCreation`,Um=`AdditionalInfo`,Wm=`AssociationId`,Gm=`AttachmentId`,Km=`AmiLaunchIndex`,qm=`AttachmentLimitType`,Jm=`AssociatePublicIpAddress`,Ym=`AmazonProvidedIpv6CidrBlock`,Xm=`AutoRecoverySupported`,Zm=`AllRegions`,Qm=`AssociatedResource`,$m=`AutoRecovery`,eh=`AmdSevSnp`,th=`ArchitectureTypeList`,nh=`AttachTime`,rh=`AttachVolumeRequest`,ih=`AttributeValue`,ah=`AttachVolume`,oh=`AvailabilityZone`,sh=`AvailabilityZoneGeography`,ch=`AvailabilityZoneGeographyList`,lh=`AvailabilityZoneId`,uh=`AvailabilityZoneList`,dh=`AvailabilityZoneMessage`,fh=`AvailabilityZoneMessageList`,ph=`AvailabilityZoneSubGeography`,mh=`AvailabilityZoneSubGeographyList`,hh=`AvailabilityZones`,gh=`Accelerators`,_h=`Affinity`,vh=`Arn`,yh=`Architecture`,bh=`Association`,xh=`Attribute`,Sh=`Attachment`,Ch=`Attachments`,wh=`BlobAttributeValue`,Th=`BaselineBandwidthInGbps`,Eh=`BaselineBandwidthInMbps`,Dh=`BlockDeviceMapping`,Oh=`BlockDeviceMappingList`,kh=`BlockDeviceMappingRequestList`,Ah=`BlockDeviceMappings`,jh=`BlockDurationMinutes`,Mh=`BaselineIops`,Nh=`BootMode`,Ph=`BootModeTypeList`,Fh=`BareMetal`,Ih=`BlockPublicAccessStates`,Lh=`BurstablePerformanceSupported`,Rh=`BaselineThroughputInMBps`,zh=`BandwidthWeighting`,Bh=`BandwidthWeightingTypeList`,Vh=`BandwidthWeightings`,Hh=`CidrBlock`,Uh=`CidrBlockAssociationSet`,Wh=`CapacityBlockId`,Gh=`CidrBlockState`,Kh=`CoreCountList`,qh=`CoreCount`,Jh=`CpuCredits`,Yh=`CompletionDurationMinutes`,Xh=`CreationDate`,Zh=`CurrentGeneration`,Qh=`CarrierIp`,$h=`CurrentInstanceBootMode`,eg=`CreateImageRequest`,tg=`CreateImageResult`,ng=`CoreInfo`,rg=`CreateImage`,ig=`CreateKeyPair`,ag=`CreateKeyPairRequest`,og=`CpuOptions`,sg=`CustomerOwnedIp`,cg=`CustomerOwnedIpv4Pool`,lg=`CpuOptionsRequest`,ug=`CapacityReservationId`,dg=`CapacityReservationPreference`,fg=`CapacityReservationResourceGroupArn`,pg=`CapacityReservationSpecificationResponse`,mg=`CapacityReservationSpecification`,hg=`CapacityReservationTarget`,gg=`CapacityReservationTargetResponse`,_g=`CopySnapshotRequest`,vg=`CopySnapshotRequestPSU`,yg=`CopySnapshotResult`,bg=`CreateSnapshotRequest`,xg=`CreateSubnetRequest`,Sg=`CreateSubnetResult`,Cg=`CreditSpecificationRequest`,wg=`CopySnapshot`,Tg=`CreditSpecification`,Eg=`CreateSnapshot`,Dg=`CreateSubnet`,Og=`CurrentState`,kg=`ClientToken`,Ag=`ConnectionTrackingConfiguration`,jg=`ConnectionTrackingSpecification`,Mg=`ConnectionTrackingSpecificationRequest`,Ng=`ConnectionTrackingSpecificationResponse`,Pg=`CompletionTime`,Fg=`CreateTime`,Ig=`CreateVolumeRequest`,Lg=`CreateVpcRequest`,Rg=`CreateVpcResult`,zg=`CreateVolume`,Bg=`CreateVpc`,Vg=`Code`,Hg=`Configured`,Ug=`Count`,Wg=`DisableApiStop`,Gg=`DisableApiTermination`,Kg=`DestinationAvailabilityZone`,qg=`DescribeAvailabilityZonesRequest`,Jg=`DescribeAvailabilityZonesResult`,Yg=`DescribeAvailabilityZones`,Xg=`DefaultCores`,Zg=`DataEncryptionKeyId`,Qg=`DefaultEnaQueueCountPerInterface`,$g=`DefaultForAz`,e_=`DedicatedHostsSupported`,t_=`DeviceIndex`,n_=`DiskInfoList`,r_=`DescribeImagesRequest`,i_=`DescribeImagesResult`,a_=`DescribeInstancesRequest`,o_=`DescribeInstancesResult`,s_=`DescribeInstanceTypesRequest`,c_=`DescribeInstanceTypesResult`,l_=`DescribeInstanceTypes`,u_=`DescribeImages`,d_=`DescribeInstances`,f_=`DiskInfo`,p_=`DeleteKeyPair`,m_=`DeleteKeyPairRequest`,h_=`DeleteKeyPairResult`,g_=`DescribeKeyPairsRequest`,__=`DescribeKeyPairsResult`,v_=`DescribeKeyPairs`,y_=`DeviceName`,b_=`DefaultNetworkCardIndex`,x_=`DestinationOutpostArn`,S_=`DhcpOptionsId`,C_=`DeleteOnTermination`,w_=`DeregistrationProtection`,g=`DryRun`,T_=`DescribeRegionsRequest`,E_=`DescribeRegionsResult`,D_=`DestinationRegion`,O_=`DescribeRegions`,k_=`DeleteSnapshotRequest`,A_=`DeleteSubnetRequest`,j_=`DescribeSnapshotsRequest`,M_=`DescribeSnapshotsResult`,N_=`DescribeSubnetsRequest`,P_=`DescribeSubnetsResult`,F_=`DeleteSnapshot`,I_=`DeleteSubnet`,L_=`DescribeSnapshots`,R_=`DescribeSubnets`,z_=`DefaultThreadsPerCore`,B_=`DeprecationTime`,V_=`DefaultVCpus`,H_=`DeleteVolumeRequest`,U_=`DeleteVpcRequest`,W_=`DescribeVolumesRequest`,G_=`DescribeVolumesResult`,K_=`DescribeVpcsRequest`,q_=`DescribeVpcsResult`,J_=`DetachVolumeRequest`,Y_=`DeleteVolume`,X_=`DeleteVpc`,Z_=`DescribeVolumes`,Q_=`DescribeVpcs`,$_=`DetachVolume`,ev=`Description`,tv=`Device`,nv=`Disks`,rv=`EbsBlockDevice`,iv=`ExecutableByStringList`,av=`ExecutableBy`,ov=`EbsCardIndex`,sv=`EbsCardInfoList`,cv=`EbsCardInfo`,lv=`EbsCards`,uv=`EncryptionControl`,dv=`EnableDns64`,fv=`ElasticFileSystem`,pv=`ElasticFileSystemExclusion`,mv=`ElasticGpuAssociation`,hv=`ElasticGpuAssociationId`,gv=`ElasticGpuAssociationList`,_v=`ElasticGpuAssociationState`,vv=`ElasticGpuAssociationTime`,yv=`ElasticGpuAssociations`,bv=`ElasticGpuId`,xv=`ElasticGpuSpecification`,Sv=`ElasticGpuSpecifications`,Cv=`ElasticInferenceAccelerator`,wv=`ElasticInferenceAcceleratorAssociation`,Tv=`ElasticInferenceAcceleratorAssociationId`,Ev=`ElasticInferenceAcceleratorAssociationList`,Dv=`ElasticInferenceAcceleratorAssociationState`,Ov=`ElasticInferenceAcceleratorAssociationTime`,kv=`ElasticInferenceAcceleratorArn`,Av=`ElasticInferenceAcceleratorAssociations`,jv=`ElasticInferenceAccelerators`,Mv=`EbsInstanceBlockDevice`,Nv=`EbsInstanceBlockDeviceSpecification`,Pv=`EncryptionInTransitSupported`,Fv=`EbsInfo`,Iv=`EfaInfo`,Lv=`EnableLniAtDeviceIndex`,Rv=`EbsOptimized`,zv=`EbsOptimizedInfo`,Bv=`EgressOnlyInternetGateway`,Vv=`EgressOnlyInternetGatewayExclusion`,Hv=`EnclaveOptionsRequest`,Uv=`EbsOptimizedSupport`,Wv=`EnclaveOptions`,Gv=`EnablePrimaryIpv6`,Kv=`EnaQueueCount`,qv=`EnableResourceNameDnsAAAARecord`,Jv=`EnableResourceNameDnsARecord`,Yv=`EnaSrdEnabled`,Xv=`EnaSrdSpecification`,Zv=`EnaSrdSpecificationRequest`,Qv=`EnaSrdSupported`,$v=`EnaSrdUdpEnabled`,ey=`EnaSrdUdpSpecification`,ty=`EnaSrdUdpSpecificationRequest`,ny=`EfaSupported`,ry=`EncryptionSupport`,iy=`EnaSupport`,ay=`EndTime`,oy=`ExecutableUsers`,sy=`Ebs`,cy=`Enabled`,ly=`Encrypted`,uy=`Endpoint`,dy=`Force`,fy=`FpgaDeviceInfo`,py=`FpgaDeviceInfoList`,my=`FpgaDeviceMemoryInfo`,hy=`FlexibleEnaQueuesSupport`,gy=`FpgaInfo`,_y=`FilterList`,vy=`FastRestored`,yy=`FullSnapshotSizeInBytes`,by=`FreeTierEligible`,xy=`Filters`,Sy=`Filter`,Cy=`Fpgas`,wy=`Groups`,Ty=`GetConsoleOutput`,Ey=`GetConsoleOutputRequest`,Dy=`GetConsoleOutputResult`,Oy=`GpuDeviceInfo`,ky=`GpuDeviceInfoList`,Ay=`GpuDeviceMemoryInfo`,jy=`GroupIdentifierList`,My=`GroupIdStringList`,Ny=`GpuInfo`,Py=`GroupId`,Fy=`GroupIdentifier`,Iy=`GroupLongName`,Ly=`GroupName`,Ry=`GpuPartitionSize`,zy=`Geography`,By=`Gpus`,Vy=`HttpEndpoint`,Hy=`HostId`,Uy=`HibernationOptions`,Wy=`HibernationOptionsRequest`,Gy=`HttpProtocolIpv6`,Ky=`HttpPutResponseHopLimit`,qy=`HostResourceGroupArn`,Jy=`HibernationSupported`,Yy=`HttpTokens`,Xy=`HostnameType`,Zy=`Hibernate`,Qy=`Hypervisor`,$y=`Id`,eb=`Ipv6Addresses`,tb=`Ipv6AddressAttribute`,nb=`Ipv6AddressCount`,rb=`InstanceAttachmentEnaSrdSpecification`,ib=`InstanceAttachmentEnaSrdUdpSpecification`,ab=`InferenceAcceleratorInfo`,ob=`Ipv4AddressesPerInterface`,sb=`Ipv6AddressesPerInterface`,cb=`Ipv4AddressesPerSecondaryInterface`,lb=`ImageAllowed`,ub=`Ipv6Address`,db=`InstanceBlockDeviceMapping`,fb=`InstanceBlockDeviceMappingList`,pb=`InstanceBlockDeviceMappingSpecification`,mb=`InstanceBlockDeviceMappingSpecificationList`,hb=`Ipv6CidrBlock`,gb=`Ipv6CidrBlockAssociationSet`,_b=`Ipv6CidrBlockNetworkBorderGroup`,vb=`Ipv6CidrBlockState`,yb=`IncludeDeprecated`,bb=`InferenceDeviceInfo`,xb=`InferenceDeviceInfoList`,Sb=`InferenceDeviceMemoryInfo`,Cb=`IncludeDisabled`,wb=`IsDefault`,Tb=`InstanceFamily`,Eb=`InternetGateway`,Db=`InternetGatewayBlockMode`,Ob=`InternetGatewayExclusion`,kb=`InstanceId`,Ab=`InstanceIpv6Address`,jb=`InstanceIpv6AddressList`,Mb=`InstanceInterruptionBehavior`,Nb=`IamInstanceProfile`,Pb=`Ipv6IpamPoolId`,Fb=`Ipv4IpamPoolId`,Ib=`InstanceIpv4PrefixList`,Lb=`InstanceIpv6PrefixList`,Rb=`IamInstanceProfileSpecification`,zb=`InstanceIpv4Prefix`,Bb=`InstanceIpv6Prefix`,Vb=`InstanceInitiatedShutdownBehavior`,Hb=`ImageIdStringList`,Ub=`InstanceIdStringList`,Wb=`ImageId`,Gb=`ImageIds`,Kb=`InstanceIds`,qb=`ImportKeyPair`,Jb=`ImportKeyPairRequest`,Yb=`ImportKeyPairResult`,Xb=`ImageLocation`,Zb=`ImageList`,Qb=`InstanceLifecycle`,$b=`InstanceList`,ex=`InstanceMaintenanceOptions`,tx=`InstanceMaintenanceOptionsRequest`,nx=`InstanceMarketOptionsRequest`,rx=`InstanceMetadataOptionsRequest`,ix=`InstanceMetadataOptionsResponse`,ax=`InstanceMarketOptions`,ox=`InstanceMetadataTags`,sx=`Ipv6Native`,cx=`InstanceNetworkInterface`,lx=`InstanceNetworkInterfaceAssociation`,ux=`InstanceNetworkInterfaceAttachment`,dx=`InstanceNetworkInterfaceList`,fx=`InstanceNetworkInterfaceSpecification`,px=`InstanceNetworkInterfaceSpecificationList`,mx=`Ipv6NetmaskLength`,hx=`Ipv4NetmaskLength`,gx=`InstanceNetworkPerformanceOptions`,_x=`InstanceNetworkPerformanceOptionsRequest`,vx=`ImageOwnerAlias`,yx=`IpOwnerId`,bx=`InstanceOwningService`,xx=`Ipv6PrefixCount`,Sx=`Ipv4PrefixCount`,Cx=`InstancePrivateIpAddress`,wx=`InstancePrivateIpAddressList`,Tx=`IsPrimaryIpv6`,Ex=`IncludePublicKey`,Dx=`Ipv4PrefixList`,Ox=`Ipv6PrefixList`,kx=`Ipv4PrefixSpecificationRequest`,Ax=`Ipv6PrefixSpecificationRequest`,jx=`Ipv6Prefixes`,Mx=`Ipv6Prefix`,Nx=`Ipv6Pool`,Px=`Ipv4Prefixes`,Fx=`Ipv4Prefix`,Ix=`InstanceStateChange`,Lx=`InstanceStateChangeList`,Rx=`InstanceSecondaryInterfaceAttachment`,zx=`InstanceSecondaryInterfaceList`,Bx=`InstanceSecondaryInterfacePrivateIpAddress`,Vx=`InstanceSecondaryInterfacePrivateIpAddressList`,Hx=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,Ux=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Wx=`InstanceSecondaryInterfaceSpecificationListRequest`,Gx=`InstanceSecondaryInterfaceSpecificationRequest`,Kx=`InstanceSecondaryInterface`,qx=`InstanceStorageInfo`,Jx=`InstanceStorageSupported`,Yx=`ImdsSupport`,Xx=`InstanceState`,Zx=`IpSource`,Qx=`Ipv6Supported`,$x=`InstanceType`,eS=`InstanceTypeInfoList`,tS=`InstanceTypeInfo`,nS=`ImageType`,rS=`InstanceTenancy`,iS=`InstanceTypes`,aS=`InterfaceType`,oS=`Images`,sS=`Image`,cS=`Instance`,lS=`Instances`,uS=`Iops`,dS=`Key`,fS=`KeyFormat`,pS=`KeyFingerprint`,mS=`KernelId`,hS=`KmsKeyId`,gS=`KeyMaterial`,_S=`KeyName`,vS=`KeyNameStringList`,yS=`KeyNames`,bS=`KeyPairs`,xS=`KeyPairId`,SS=`KeyPairIdStringList`,CS=`KeyPairIds`,wS=`KeyPairInfo`,TS=`KeyPairList`,ES=`KeyPair`,DS=`KeyType`,OS=`Kernel`,kS=`LicenseConfigurationArn`,AS=`LicenseConfigurationRequest`,jS=`LicenseConfiguration`,MS=`LambdaExclusion`,NS=`LogicalGpuCount`,PS=`LicenseList`,FS=`LastLaunchedTime`,IS=`LicenseSpecifications`,LS=`LicenseSpecificationListRequest`,RS=`LicenseSpecification`,zS=`LaunchTemplate`,BS=`LaunchTemplateId`,VS=`LaunchTemplateName`,HS=`LaunchTemplateSpecification`,US=`LaunchTime`,WS=`Latest`,GS=`Lambda`,KS=`Licenses`,qS=`Location`,JS=`MultiAttachEnabled`,YS=`MediaAcceleratorInfo`,XS=`MacAddress`,ZS=`MaximumBandwidthInMbps`,QS=`MapCustomerOwnedIpOnLaunch`,$S=`MaxCount`,eC=`MinCount`,tC=`MediaDeviceInfo`,nC=`MediaDeviceInfoList`,rC=`MediaDeviceMemoryInfo`,iC=`MaximumEbsAttachments`,aC=`MaximumEbsCards`,oC=`MaximumEfaInterfaces`,sC=`MaximumEnaQueueCount`,cC=`MaximumEnaQueueCountPerInterface`,lC=`MaximumIops`,uC=`ModifyInstanceAttributeRequest`,dC=`ModifyInstanceAttribute`,fC=`MemoryInfo`,pC=`MaximumNetworkCards`,mC=`MaximumNetworkInterfaces`,hC=`MetadataOptions`,gC=`MaintenanceOptions`,_C=`MapPublicIpOnLaunch`,vC=`MaxPrice`,yC=`MaxResults`,bC=`MaximumSecondaryNetworkInterfaces`,xC=`ModificationState`,SC=`MarketType`,CC=`MaximumThroughputInMBps`,wC=`ModifyVolumeRequest`,TC=`ModifyVolumeResult`,EC=`ModifyVolume`,DC=`Manufacturer`,OC=`Managed`,kC=`Message`,AC=`Messages`,jC=`Mode`,MC=`Monitoring`,NC=`Name`,PC=`NetworkBorderGroup`,FC=`NetworkCards`,IC=`NetworkCardIndex`,LC=`NetworkCardInfoList`,RC=`NetworkCardInfo`,zC=`NoDevice`,BC=`NeuronDeviceCoreInfo`,VC=`NeuronDeviceInfo`,HC=`NeuronDeviceInfoList`,UC=`NeuronDeviceMemoryInfo`,WC=`NeuronDevices`,GC=`NitroEnclavesSupport`,KC=`NatGateway`,qC=`NatGatewayExclusion`,JC=`NetworkInterfaceId`,YC=`NetworkInterfaces`,XC=`NetworkInfo`,ZC=`NeuronInfo`,QC=`NetworkPerformanceOptions`,$C=`NetworkPerformance`,ew=`NoReboot`,tw=`NvmeSupport`,nw=`NitroTpmInfo`,rw=`NitroTpmSupport`,iw=`NitroTpmSupportedVersionsList`,aw=`NextToken`,ow=`NestedVirtualization`,sw=`OutpostArn`,cw=`OwnerAlias`,lw=`OwnerId`,uw=`OptInStatus`,dw=`OriginalIops`,fw=`OwnerIds`,pw=`OriginalMultiAttachEnabled`,mw=`OperatorRequest`,hw=`OperatorResponse`,gw=`OwnerStringList`,_w=`OriginalSize`,vw=`OriginalThroughput`,yw=`OriginalVolumeType`,bw=`Operator`,xw=`Output`,Sw=`Owners`,Cw=`Owner`,ww=`Principal`,Tw=`PeakBandwidthInGbps`,Ew=`ProductCodeId`,Dw=`ProductCodeList`,Ow=`ProductCodeType`,kw=`ProductCode`,Aw=`ProductCodes`,jw=`PrivateDnsName`,Mw=`PrivateDnsNameOptions`,Nw=`PrivateDnsNameOptionsOnLaunch`,Pw=`PrivateDnsNameOptionsRequest`,Fw=`PrivateDnsNameOptionsResponse`,Iw=`PublicDnsName`,Lw=`PlatformDetails`,Rw=`PerformanceFactorReference`,zw=`PerformanceFactorReferenceSet`,Bw=`PlacementGroupInfo`,Vw=`PlacementGroupStrategyList`,Hw=`PublicIp`,Uw=`PrivateIpAddressCount`,Ww=`PrivateIpAddressSpecification`,Gw=`PrivateIpAddressSpecificationList`,Kw=`PrivateIpAddress`,qw=`PrivateIpAddresses`,Jw=`PublicIpAddress`,Yw=`PrimaryIpv6`,Xw=`ProcessorInfo`,Zw=`PublicKey`,Qw=`PublicKeyMaterial`,$w=`PartitionNumber`,eT=`PhcSupport`,tT=`PreviousState`,nT=`PresignedUrl`,rT=`ParentZoneId`,iT=`ParentZoneName`,aT=`Platform`,oT=`Placement`,sT=`Primary`,cT=`Progress`,lT=`Public`,uT=`Return`,dT=`RestorableByUserIds`,fT=`RestorableBy`,pT=`RootDeviceName`,mT=`RootDeviceType`,hT=`RootDeviceTypeList`,gT=`RestoreExpiryTime`,_T=`ResourceExclusions`,vT=`RegionGeography`,yT=`RegionGeographyList`,bT=`RunInstancesMonitoringEnabled`,xT=`RebootInstancesRequest`,ST=`RunInstancesRequest`,CT=`RunInstancesUserData`,wT=`RamdiskId`,TT=`ReservationId`,ET=`RebootInstances`,DT=`RequesterId`,OT=`RunInstances`,kT=`RegionList`,AT=`ReservationList`,jT=`RebootMigrationSupport`,MT=`RebootMigration`,NT=`RegionName`,PT=`RegionNameStringList`,FT=`RegionNames`,IT=`ResourceType`,LT=`Ramdisk`,RT=`Regions`,zT=`Region`,BT=`Reservations`,VT=`Reservation`,HT=`SupportedAdditionalProcessorFeatureList`,UT=`SubnetArn`,WT=`SupportedArchitectures`,GT=`SupportedBootModes`,KT=`SubnetCidrBlockState`,qT=`SustainedClockSpeedInGhz`,JT=`SourceDestCheck`,YT=`SpreadDomain`,XT=`SupportedFeatures`,ZT=`SubGeography`,QT=`SecurityGroupId`,$T=`SecurityGroupIdStringList`,eE=`SecurityGroupIds`,tE=`SecurityGroupStringList`,nE=`SecurityGroups`,rE=`SecurityGroup`,iE=`SubnetIds`,aE=`SubnetIpv6CidrBlockAssociation`,oE=`SubnetIpv6CidrBlockAssociationSet`,sE=`SizeInGB`,cE=`SourceImageId`,lE=`SecondaryInterfaceId`,uE=`SourceInstanceId`,dE=`SizeInMiB`,fE=`SpotInstanceRequestId`,pE=`SourceImageRegion`,mE=`StartInstancesRequest`,hE=`StartInstancesResult`,gE=`StopInstancesRequest`,_E=`StopInstancesResult`,vE=`SnapshotIdStringList`,yE=`SubnetIdStringList`,bE=`SpotInstanceType`,xE=`SecondaryInterfaces`,SE=`SecondaryInterface`,CE=`SnapshotId`,wE=`SnapshotIds`,TE=`StartingInstances`,EE=`StartInstances`,DE=`StoppingInstances`,OE=`StopInstances`,kE=`SubnetId`,AE=`SnapshotLocation`,jE=`SnapshotList`,ME=`StringList`,NE=`SubnetList`,PE=`SpotMarketOptions`,FE=`StatusMessage`,IE=`StateMessage`,LE=`SecondaryNetworkId`,RE=`SriovNetSupport`,zE=`SecondaryNetworkSupported`,BE=`SpotOptions`,VE=`SkipOsShutdown`,HE=`SecondaryPrivateIpAddressCount`,UE=`SupportedRootDeviceTypes`,WE=`SourceRegion`,GE=`StateReason`,KE=`SourceSnapshotId`,qE=`SecondarySubnetId`,JE=`SupportedStrategies`,YE=`StartTime`,XE=`StateTransitionReason`,ZE=`SseType`,QE=`StorageTier`,$E=`SupportedUsageClasses`,eD=`SensitiveUserData`,tD=`SourceVolumeId`,nD=`SupportedVirtualizationTypes`,rD=`SupportedVersions`,iD=`Size`,aD=`Snapshots`,oD=`Snapshot`,sD=`State`,cD=`Status`,lD=`Subnet`,uD=`Subnets`,dD=`Tags`,fD=`TcpEstablishedTimeout`,pD=`TotalFpgaMemoryInMiB`,mD=`TotalGpuMemoryInMiB`,hD=`TerminateInstances`,gD=`TotalInferenceMemoryInMiB`,_D=`TerminateInstancesRequest`,vD=`TerminateInstancesResult`,yD=`TargetIops`,bD=`TerminatingInstances`,xD=`TagList`,SD=`TargetMultiAttachEnabled`,CD=`TotalMediaMemoryInMiB`,wD=`TotalNeuronDeviceMemoryInMiB`,TD=`ThreadsPerCore`,ED=`ThreadsPerCoreList`,DD=`TagSpecifications`,OD=`TotalSizeInGB`,kD=`TagSpecificationList`,AD=`TagSpecification`,jD=`TargetSize`,MD=`TpmSupport`,ND=`TargetThroughput`,PD=`TransferType`,FD=`TargetVolumeType`,ID=`Tag`,LD=`Tenancy`,RD=`Throughput`,zD=`Timestamp`,BD=`Type`,VD=`UsageClassTypeList`,HD=`UserData`,UD=`UsageOperation`,WD=`UsageOperationUpdateTime`,GD=`UdpStreamTimeout`,KD=`UdpTimeout`,qD=`Value`,JD=`VolumeAttachmentList`,YD=`VolumeAttachment`,XD=`VpcCidrBlockAssociation`,ZD=`VpcCidrBlockAssociationSet`,QD=`VpcCidrBlockState`,$D=`VCpuInfo`,eO=`ValidCores`,tO=`VpcEncryptionControl`,nO=`VpcEncryptionControlConfiguration`,rO=`VpcEncryptionControlExclusion`,iO=`VpcEncryptionControlExclusions`,aO=`VpcEncryptionControlId`,oO=`VpcId`,sO=`VpcIpv6CidrBlockAssociation`,cO=`VpcIpv6CidrBlockAssociationSet`,lO=`VolumeInitializationRate`,uO=`VolumeIdStringList`,dO=`VpcIdStringList`,fO=`VolumeId`,pO=`VolumeIds`,mO=`VpcIds`,hO=`VpcLattice`,gO=`VpcLatticeExclusion`,_O=`VolumeList`,vO=`VpcList`,yO=`VolumeModification`,bO=`VirtualName`,xO=`VolumeOwnerId`,SO=`VpcPeeringExclusion`,CO=`VirtualPrivateGateway`,wO=`VirtualPrivateGatewayExclusion`,TO=`VpcPeering`,EO=`ValueStringList`,DO=`VolumeSize`,OO=`VolumeType`,kO=`VirtualizationTypeList`,AO=`ValidThreadsPerCore`,jO=`VirtualizationType`,MO=`ValidUntil`,NO=`Values`,PO=`Version`,FO=`Volumes`,IO=`Volume`,LO=`Vpc`,RO=`Vpcs`,zO=`WorkloadsList`,BO=`Workloads`,VO=`ZoneId`,HO=`ZoneIdStringList`,UO=`ZoneIds`,WO=`ZoneName`,GO=`ZoneNameStringList`,KO=`ZoneNames`,qO=`ZoneType`,JO=`additionalFlexibleNetworkInterfaces`,YO=`availableIpAddressCount`,XO=`assignIpv6AddressOnCreation`,ZO=`additionalInfo`,QO=`associationId`,$O=`attachmentId`,ek=`amiLaunchIndex`,tk=`attachmentLimitType`,nk=`associatePublicIpAddress`,rk=`amazonProvidedIpv6CidrBlock`,ik=`autoRecoverySupported`,ak=`associatedResource`,ok=`autoRecovery`,sk=`amdSevSnp`,ck=`attachmentSet`,lk=`attachTime`,uk=`availabilityZone`,dk=`availabilityZoneId`,fk=`availabilityZoneInfo`,pk=`accelerators`,mk=`affinity`,hk=`arn`,gk=`architecture`,_k=`association`,vk=`attachment`,yk=`attribute`,bk=`baselineBandwidthInGbps`,xk=`baselineBandwidthInMbps`,Sk=`blockDeviceMapping`,Ck=`baselineIops`,wk=`bootMode`,Tk=`bareMetal`,Ek=`blockPublicAccessStates`,Dk=`burstablePerformanceSupported`,Ok=`baselineThroughputInMBps`,kk=`bandwidthWeighting`,Ak=`bandwidthWeightings`,jk=`cidrBlock`,Mk=`cidrBlockAssociationSet`,Nk=`capacityBlockId`,Pk=`cidrBlockState`,Fk=`coreCount`,Ik=`completionDurationMinutes`,Lk=`creationDate`,Rk=`currentGeneration`,zk=`carrierIp`,Bk=`currentInstanceBootMode`,Vk=`coreInfo`,Hk=`cpuOptions`,Uk=`customerOwnedIp`,Wk=`customerOwnedIpv4Pool`,Gk=`capacityReservationId`,Kk=`capacityReservationPreference`,qk=`capacityReservationResourceGroupArn`,Jk=`capacityReservationSpecification`,Yk=`capacityReservationTarget`,Xk=`currentState`,Zk=`clientToken`,Qk=`connectionTrackingConfiguration`,$k=`completionTime`,eA=`createTime`,tA=`code`,nA=`configured`,rA=`count`,iA=`disableApiTermination`,aA=`defaultCores`,oA=`dataEncryptionKeyId`,sA=`defaultEnaQueueCountPerInterface`,cA=`defaultForAz`,lA=`dedicatedHostsSupported`,uA=`deviceIndex`,dA=`deviceName`,fA=`defaultNetworkCardIndex`,pA=`dnsName`,mA=`dhcpOptionsId`,hA=`deleteOnTermination`,gA=`deregistrationProtection`,_=`dryRun`,_A=`destinationRegion`,vA=`defaultThreadsPerCore`,yA=`deprecationTime`,bA=`defaultVCpus`,xA=`description`,SA=`device`,CA=`disks`,wA=`ebsCardIndex`,TA=`ebsCardSet`,EA=`encryptionControl`,DA=`enableDns64`,OA=`elasticFileSystem`,kA=`elasticGpuAssociationId`,AA=`elasticGpuAssociationState`,jA=`elasticGpuAssociationSet`,MA=`elasticGpuAssociationTime`,NA=`elasticGpuId`,PA=`elasticInferenceAcceleratorArn`,FA=`elasticInferenceAcceleratorAssociationId`,IA=`elasticInferenceAcceleratorAssociationState`,LA=`elasticInferenceAcceleratorAssociationSet`,RA=`elasticInferenceAcceleratorAssociationTime`,zA=`encryptionInTransitSupported`,BA=`ebsInfo`,VA=`efaInfo`,HA=`enableLniAtDeviceIndex`,UA=`ebsOptimized`,WA=`ebsOptimizedInfo`,GA=`egressOnlyInternetGateway`,KA=`ebsOptimizedSupport`,qA=`enclaveOptions`,JA=`enaQueueCount`,v=`ec2QueryName`,YA=`enableResourceNameDnsAAAARecord`,XA=`enableResourceNameDnsARecord`,ZA=`enaSrdEnabled`,QA=`enaSrdSpecification`,$A=`enaSrdSupported`,ej=`enaSrdUdpEnabled`,tj=`enaSrdUdpSpecification`,nj=`efaSupported`,rj=`encryptionSupport`,ij=`enaSupport`,aj=`endTime`,oj=`ebs`,sj=`enabled`,cj=`encrypted`,lj=`flexibleEnaQueuesSupport`,uj=`fpgaInfo`,dj=`fastRestored`,fj=`fullSnapshotSizeInBytes`,pj=`freeTierEligible`,mj=`force`,hj=`fpgas`,gj=`gpuInfo`,_j=`groupId`,vj=`groupLongName`,yj=`groupName`,bj=`gpuPartitionSize`,xj=`geographySet`,Sj=`groupSet`,Cj=`gpus`,wj=`hypervisor`,Tj=`httpEndpoint`,Ej=`hostId`,Dj=`hibernationOptions`,Oj=`httpProtocolIpv6`,kj=`httpPutResponseHopLimit`,Aj=`hostResourceGroupArn`,jj=`hibernationSupported`,Mj=`httpTokens`,Nj=`hostnameType`,Pj=`id`,Fj=`ipv6AddressAttribute`,Ij=`ipv6AddressCount`,Lj=`inferenceAcceleratorInfo`,Rj=`ipv4AddressesPerInterface`,zj=`ipv6AddressesPerInterface`,Bj=`ipv4AddressesPerSecondaryInterface`,Vj=`ipv6AddressesSet`,Hj=`imageAllowed`,Uj=`ipAddress`,Wj=`ipv6Address`,Gj=`ipv6CidrBlock`,Kj=`ipv6CidrBlockAssociationSet`,qj=`ipv6CidrBlockState`,Jj=`isDefault`,Yj=`instanceFamily`,Xj=`internetGateway`,Zj=`internetGatewayBlockMode`,Qj=`instanceId`,$j=`iamInstanceProfile`,eM=`instanceInitiatedShutdownBehavior`,tM=`imageId`,nM=`imageLocation`,rM=`instanceLifecycle`,iM=`instanceMetadataTags`,aM=`ipv6Native`,oM=`imageOwnerAlias`,sM=`imageOwnerId`,cM=`ipOwnerId`,lM=`instanceOwningService`,uM=`isPrimaryIpv6`,dM=`ipv4PrefixSet`,fM=`ipv6PrefixSet`,pM=`ipv4Prefix`,mM=`ipv6Pool`,hM=`ipv6Prefix`,gM=`isPublic`,_M=`instanceStorageInfo`,vM=`instanceStorageSupported`,yM=`imagesSet`,bM=`imageState`,xM=`imdsSupport`,SM=`instancesSet`,CM=`instanceState`,wM=`ipSource`,TM=`ipv6Supported`,EM=`instanceType`,DM=`instanceTypeSet`,OM=`idempotencyToken`,kM=`imageType`,AM=`instanceTenancy`,jM=`interfaceType`,MM=`iops`,y=`item`,NM=`key`,PM=`keyFingerprint`,FM=`kernelId`,IM=`kmsKeyId`,LM=`keyMaterial`,RM=`keyName`,zM=`keyPairId`,BM=`keySet`,VM=`keyType`,HM=`kernel`,UM=`licenseConfigurationArn`,WM=`logicalGpuCount`,GM=`lastLaunchedTime`,KM=`licenseSet`,qM=`launchTime`,JM=`lambda`,YM=`multiAttachEnabled`,XM=`mediaAcceleratorInfo`,ZM=`macAddress`,QM=`maximumBandwidthInMbps`,$M=`mapCustomerOwnedIpOnLaunch`,eN=`maximumEbsAttachments`,tN=`maximumEbsCards`,nN=`maximumEfaInterfaces`,rN=`maximumEnaQueueCount`,iN=`maximumEnaQueueCountPerInterface`,aN=`maximumIops`,oN=`memoryInfo`,sN=`maximumNetworkCards`,cN=`maximumNetworkInterfaces`,lN=`metadataOptions`,uN=`maintenanceOptions`,dN=`mapPublicIpOnLaunch`,fN=`maxResults`,pN=`messageSet`,mN=`maximumSecondaryNetworkInterfaces`,hN=`modificationState`,gN=`maximumThroughputInMBps`,_N=`manufacturer`,vN=`managed`,yN=`message`,bN=`monitoring`,xN=`mode`,SN=`name`,CN=`networkBorderGroup`,wN=`networkCards`,TN=`networkCardIndex`,EN=`noDevice`,DN=`neuronDevices`,ON=`nitroEnclavesSupport`,kN=`natGateway`,AN=`networkInterfaceId`,jN=`networkInterfaceSet`,MN=`networkInterface`,NN=`networkInfo`,PN=`neuronInfo`,FN=`networkPerformanceOptions`,IN=`networkPerformance`,LN=`noReboot`,RN=`nvmeSupport`,zN=`nitroTpmInfo`,BN=`nitroTpmSupport`,VN=`nextToken`,HN=`nestedVirtualization`,UN=`outpostArn`,WN=`ownerAlias`,GN=`ownerId`,KN=`optInStatus`,qN=`originalIops`,JN=`originalMultiAttachEnabled`,YN=`originalSize`,XN=`originalThroughput`,ZN=`originalVolumeType`,QN=`operator`,$N=`output`,eP=`principal`,tP=`peakBandwidthInGbps`,nP=`productCodes`,rP=`productCode`,iP=`privateDnsNameOptions`,aP=`privateDnsNameOptionsOnLaunch`,oP=`privateDnsName`,sP=`publicDnsName`,cP=`platformDetails`,lP=`placementGroupInfo`,uP=`publicIp`,dP=`privateIpAddressesSet`,fP=`privateIpAddressSet`,pP=`privateIpAddress`,mP=`processorInfo`,hP=`publicKey`,gP=`publicKeyMaterial`,_P=`partitionNumber`,vP=`phcSupport`,yP=`previousState`,bP=`presignedUrl`,xP=`parentZoneId`,SP=`parentZoneName`,CP=`platform`,wP=`placement`,TP=`primary`,EP=`progress`,DP=`return`,OP=`rootDeviceName`,kP=`rootDeviceType`,AP=`restoreExpiryTime`,jP=`regionEndpoint`,MP=`resourceExclusions`,NP=`reservationId`,PP=`ramdiskId`,FP=`regionInfo`,IP=`requesterId`,LP=`rebootMigrationSupport`,RP=`rebootMigration`,zP=`regionName`,BP=`reservationSet`,VP=`resourceType`,HP=`ramdisk`,UP=`reason`,WP=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,GP=`supportedArchitectures`,KP=`subnetArn`,qP=`supportedBootModes`,JP=`sustainedClockSpeedInGhz`,YP=`sourceDestCheck`,XP=`spreadDomain`,ZP=`supportedFeatures`,QP=`subGeographySet`,$P=`sizeInGB`,eF=`sourceInstanceId`,tF=`secondaryInterfaceId`,nF=`sourceImageId`,rF=`sizeInMiB`,iF=`sourceImageRegion`,aF=`spotInstanceRequestId`,oF=`secondaryInterfaceSet`,sF=`snapshotId`,cF=`subnetId`,lF=`statusMessage`,uF=`stateMessage`,dF=`secondaryNetworkId`,fF=`secondaryNetworkSupported`,pF=`sriovNetSupport`,mF=`secondaryPrivateIpAddressCount`,hF=`supportedRootDeviceTypes`,gF=`stateReason`,_F=`secondarySubnetId`,vF=`snapshotSet`,yF=`subnetSet`,bF=`supportedStrategies`,xF=`startTime`,SF=`sseType`,CF=`storageTier`,wF=`supportedUsageClasses`,TF=`sourceVolumeId`,EF=`supportedVirtualizationTypes`,DF=`supportedVersions`,OF=`size`,kF=`state`,AF=`status`,jF=`subnet`,MF=`tenancy`,NF=`tcpEstablishedTimeout`,PF=`totalFpgaMemoryInMiB`,FF=`totalGpuMemoryInMiB`,IF=`totalInferenceMemoryInMiB`,LF=`targetIops`,RF=`targetMultiAttachEnabled`,zF=`totalMediaMemoryInMiB`,BF=`totalNeuronDeviceMemoryInMiB`,VF=`threadsPerCore`,HF=`tagSet`,UF=`totalSizeInGB`,WF=`targetSize`,GF=`tpmSupport`,KF=`targetThroughput`,qF=`transferType`,JF=`targetVolumeType`,YF=`throughput`,XF=`timestamp`,ZF=`type`,QF=`userData`,$F=`usageOperation`,eI=`usageOperationUpdateTime`,tI=`udpStreamTimeout`,nI=`udpTimeout`,rI=`value`,iI=`vCpuInfo`,aI=`validCores`,oI=`vpcEncryptionControlId`,sI=`vpcId`,cI=`volumeInitializationRate`,lI=`volumeId`,uI=`vpcLattice`,dI=`volumeModification`,fI=`virtualName`,pI=`volumeOwnerId`,mI=`virtualPrivateGateway`,hI=`vpcPeering`,gI=`volumeSet`,_I=`volumeSize`,vI=`vpcSet`,yI=`volumeType`,bI=`validThreadsPerCore`,xI=`virtualizationType`,SI=`version`,CI=`vpc`,wI=`workloadSet`,b=`xmlName`,TI=`zoneId`,EI=`zoneName`,DI=`zoneState`,OI=`zoneType`,x=`com.amazonaws.ec2`,kI=Gs.for(WP),AI=[-3,WP,`EC2ServiceException`,0,[],[]];kI.registerError(AI,Im);var jI=[kI],MI=[0,x,vg,8,0],NI=[0,x,CT,8,0],PI=[0,x,eD,8,0],FI=[3,x,rh,0,[tv,kb,fO,ov,g],[0,0,0,1,[2,{[v]:`DryRun`,[b]:_}]],3],II=[3,x,Rm,0,[qD],[[2,{[v]:`Value`,[b]:rI}]]],LI=[3,x,ih,0,[qD],[[0,{[v]:`Value`,[b]:rI}]]],RI=[3,x,oh,0,[uw,AC,NT,WO,VO,Ly,PC,qO,iT,rT,Iy,zy,ZT,sD],[[0,{[v]:`OptInStatus`,[b]:KN}],[()=>uB,{[v]:`MessageSet`,[b]:pN}],[0,{[v]:`RegionName`,[b]:zP}],[0,{[v]:`ZoneName`,[b]:EI}],[0,{[v]:`ZoneId`,[b]:TI}],[0,{[v]:`GroupName`,[b]:yj}],[0,{[v]:`NetworkBorderGroup`,[b]:CN}],[0,{[v]:`ZoneType`,[b]:OI}],[0,{[v]:`ParentZoneName`,[b]:SP}],[0,{[v]:`ParentZoneId`,[b]:xP}],[0,{[v]:`GroupLongName`,[b]:vj}],[()=>cB,{[v]:`GeographySet`,[b]:xj}],[()=>dB,{[v]:`SubGeographySet`,[b]:QP}],[0,{[v]:`ZoneState`,[b]:DI}]]],zI=[3,x,sh,0,[NC],[[0,{[v]:`Name`,[b]:SN}]]],BI=[3,x,dh,0,[kC],[[0,{[v]:`Message`,[b]:yN}]]],VI=[3,x,ph,0,[NC],[[0,{[v]:`Name`,[b]:SN}]]],HI=[3,x,wh,0,[qD],[[21,{[v]:`Value`,[b]:rI}]]],UI=[3,x,Dh,0,[sy,zC,y_,bO],[[()=>zL,{[v]:`Ebs`,[b]:oj}],[0,{[v]:`NoDevice`,[b]:EN}],[0,{[v]:`DeviceName`,[b]:dA}],[0,{[v]:`VirtualName`,[b]:fI}]]],WI=[3,x,Ih,0,[Db],[[0,{[v]:`InternetGatewayBlockMode`,[b]:Zj}]]],GI=[3,x,mg,0,[dg,hg],[0,()=>qI]],KI=[3,x,pg,0,[dg,hg],[[0,{[v]:`CapacityReservationPreference`,[b]:Kk}],[()=>JI,{[v]:`CapacityReservationTarget`,[b]:Yk}]]],qI=[3,x,hg,0,[ug,fg],[0,0]],JI=[3,x,gg,0,[ug,fg],[[0,{[v]:`CapacityReservationId`,[b]:Gk}],[0,{[v]:`CapacityReservationResourceGroupArn`,[b]:qk}]]],YI=[3,x,Mg,0,[fD,GD,KD],[1,1,1]],XI=[3,x,Ng,0,[fD,GD,KD],[[1,{[v]:`TcpEstablishedTimeout`,[b]:NF}],[1,{[v]:`UdpStreamTimeout`,[b]:tI}],[1,{[v]:`UdpTimeout`,[b]:nI}]]],ZI=[3,x,_g,0,[WE,KE,ev,x_,D_,ly,hS,nT,DD,Yh,Kg,g],[0,0,0,0,[0,{[v]:`DestinationRegion`,[b]:_A}],[2,{[v]:`Encrypted`,[b]:cj}],[0,{[v]:`KmsKeyId`,[b]:IM}],[()=>MI,{[v]:`PresignedUrl`,[b]:bP}],[()=>CV,{[b]:AD}],1,0,[2,{[v]:`DryRun`,[b]:_}]],2],QI=[3,x,yg,0,[dD,CE],[[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`SnapshotId`,[b]:sF}]]],$I=[3,x,og,0,[qh,TD,eh,ow],[[1,{[v]:`CoreCount`,[b]:Fk}],[1,{[v]:`ThreadsPerCore`,[b]:VF}],[0,{[v]:`AmdSevSnp`,[b]:sk}],[0,{[v]:`NestedVirtualization`,[b]:HN}]]],eL=[3,x,lg,0,[qh,TD,eh,ow],[1,1,0,0]],tL=[3,x,eg,0,[kb,NC,DD,AE,g,ev,ew,Ah],[[0,{[v]:`InstanceId`,[b]:Qj}],[0,{[v]:`Name`,[b]:SN}],[()=>CV,{[b]:AD}],0,[2,{[v]:`DryRun`,[b]:_}],[0,{[v]:`Description`,[b]:xA}],[2,{[v]:`NoReboot`,[b]:LN}],[()=>mB,{[v]:`BlockDeviceMapping`,[b]:Sk}]],2],nL=[3,x,tg,0,[Wb],[[0,{[v]:`ImageId`,[b]:tM}]]],rL=[3,x,ag,0,[_S,DS,DD,fS,g],[0,0,[()=>CV,{[b]:AD}],0,[2,{[v]:`DryRun`,[b]:_}]],1],iL=[3,x,bg,0,[fO,ev,sw,DD,qS,g],[0,0,0,[()=>CV,{[b]:AD}],0,[2,{[v]:`DryRun`,[b]:_}]],1],aL=[3,x,xg,0,[oO,DD,oh,lh,Hh,hb,sw,sx,Fb,hx,Pb,mx,g],[0,[()=>CV,{[b]:AD}],0,0,0,0,0,2,0,1,0,1,[2,{[v]:`DryRun`,[b]:_}]],1],oL=[3,x,Sg,0,[lD],[[()=>Vz,{[v]:`Subnet`,[b]:jF}]]],sL=[3,x,Ig,0,[oh,lh,ly,uS,hS,sw,iD,CE,OO,DD,JS,RD,kg,lO,bw,g],[0,0,[2,{[v]:`Encrypted`,[b]:cj}],1,0,0,1,0,0,[()=>CV,{[b]:AD}],2,1,[0,4],1,()=>_z,[2,{[v]:`DryRun`,[b]:_}]]],cL=[3,x,Lg,0,[Hh,Nx,hb,Fb,hx,Pb,mx,_b,tO,DD,g,rS,Ym],[0,0,0,0,1,0,1,0,()=>nB,[()=>CV,{[b]:AD}],[2,{[v]:`DryRun`,[b]:_}],[0,{[v]:`InstanceTenancy`,[b]:AM}],[2,{[v]:`AmazonProvidedIpv6CidrBlock`,[b]:rk}]]],lL=[3,x,Rg,0,[LO],[[()=>Qz,{[v]:`Vpc`,[b]:CI}]]],uL=[3,x,Cg,0,[Jh],[0],1],dL=[3,x,m_,0,[_S,xS,g],[0,0,[2,{[v]:`DryRun`,[b]:_}]]],fL=[3,x,h_,0,[uT,xS],[[2,{[v]:`Return`,[b]:DP}],[0,{[v]:`KeyPairId`,[b]:zM}]]],pL=[3,x,k_,0,[CE,g],[0,[2,{[v]:`DryRun`,[b]:_}]],1],mL=[3,x,A_,0,[kE,g],[0,[2,{[v]:`DryRun`,[b]:_}]],1],hL=[3,x,H_,0,[fO,g],[0,[2,{[v]:`DryRun`,[b]:_}]],1],gL=[3,x,U_,0,[oO,g],[0,[2,{[v]:`DryRun`,[b]:_}]],1],_L=[3,x,qg,0,[KO,UO,Lm,g,xy],[[()=>LV,{[b]:WO}],[()=>IV,{[b]:VO}],2,[2,{[v]:`DryRun`,[b]:_}],[()=>wB,{[b]:Sy}]]],vL=[3,x,Jg,0,[hh],[[()=>lB,{[v]:`AvailabilityZoneInfo`,[b]:fk}]]],yL=[3,x,r_,0,[oy,Gb,Sw,yb,Cb,yC,aw,g,xy],[[()=>CB,{[b]:av}],[()=>kB,{[b]:Wb}],[()=>aV,{[b]:Cw}],2,2,1,0,[2,{[v]:`DryRun`,[b]:_}],[()=>wB,{[b]:Sy}]]],bL=[3,x,i_,0,[aw,oS],[[0,{[v]:`NextToken`,[b]:VN}],[()=>AB,{[v]:`ImagesSet`,[b]:yM}]]],xL=[3,x,a_,0,[Kb,g,xy,aw,yC],[[()=>PB,{[b]:kb}],[2,{[v]:`DryRun`,[b]:_}],[()=>wB,{[b]:Sy}],[0,{[v]:`NextToken`,[b]:VN}],[1,{[v]:`MaxResults`,[b]:fN}]]],SL=[3,x,o_,0,[aw,BT],[[0,{[v]:`NextToken`,[b]:VN}],[()=>fV,{[v]:`ReservationSet`,[b]:BP}]]],CL=[3,x,s_,0,[g,iS,xy,yC,aw],[2,[64,{[b]:$x}],[()=>wB,{[b]:Sy}],1,0]],wL=[3,x,c_,0,[iS,aw],[[()=>qB,{[v]:`InstanceTypeSet`,[b]:DM}],[0,{[v]:`NextToken`,[b]:VN}]]],TL=[3,x,g_,0,[yS,CS,Ex,g,xy],[[()=>XB,{[b]:_S}],[()=>ZB,{[b]:xS}],2,[2,{[v]:`DryRun`,[b]:_}],[()=>wB,{[b]:Sy}]]],EL=[3,x,__,0,[bS],[[()=>QB,{[v]:`KeySet`,[b]:BM}]]],DL=[3,x,T_,0,[FT,Zm,g,xy],[[()=>dV,{[b]:NT}],2,[2,{[v]:`DryRun`,[b]:_}],[()=>wB,{[b]:Sy}]]],OL=[3,x,E_,0,[RT],[[()=>uV,{[v]:`RegionInfo`,[b]:FP}]]],kL=[3,x,j_,0,[yC,aw,fw,dT,wE,g,xy],[1,0,[()=>aV,{[b]:Cw}],[64,{[b]:fT}],[()=>gV,{[b]:CE}],[2,{[v]:`DryRun`,[b]:_}],[()=>wB,{[b]:Sy}]]],AL=[3,x,M_,0,[aw,aD],[[0,{[v]:`NextToken`,[b]:VN}],[()=>_V,{[v]:`SnapshotSet`,[b]:vF}]]],jL=[3,x,N_,0,[xy,iE,aw,yC,g],[[()=>wB,{[b]:Sy}],[()=>vV,{[b]:kE}],0,1,[2,{[v]:`DryRun`,[b]:_}]]],ML=[3,x,P_,0,[aw,uD],[[0,{[v]:`NextToken`,[b]:VN}],[()=>bV,{[v]:`SubnetSet`,[b]:yF}]]],NL=[3,x,W_,0,[pO,g,xy,aw,yC],[[()=>kV,{[b]:fO}],[2,{[v]:`DryRun`,[b]:_}],[()=>wB,{[b]:Sy}],[0,{[v]:`NextToken`,[b]:VN}],[1,{[v]:`MaxResults`,[b]:fN}]]],PL=[3,x,G_,0,[aw,FO],[[0,{[v]:`NextToken`,[b]:VN}],[()=>AV,{[v]:`VolumeSet`,[b]:gI}]]],FL=[3,x,K_,0,[xy,mO,aw,yC,g],[[()=>wB,{[b]:Sy}],[()=>MV,{[b]:oO}],0,1,[2,{[v]:`DryRun`,[b]:_}]]],IL=[3,x,q_,0,[aw,RO],[[0,{[v]:`NextToken`,[b]:VN}],[()=>PV,{[v]:`VpcSet`,[b]:vI}]]],LL=[3,x,J_,0,[fO,tv,dy,kb,g],[0,0,2,0,[2,{[v]:`DryRun`,[b]:_}]],1],RL=[3,x,f_,0,[sE,Ug,BD],[[1,{[v]:`SizeInGB`,[b]:$P}],[1,{[v]:`Count`,[b]:rA}],[0,{[v]:`Type`,[b]:ZF}]]],zL=[3,x,rv,0,[C_,uS,CE,DO,OO,hS,RD,sw,oh,ly,lO,lh,ov],[[2,{[v]:`DeleteOnTermination`,[b]:hA}],[1,{[v]:`Iops`,[b]:MM}],[0,{[v]:`SnapshotId`,[b]:sF}],[1,{[v]:`VolumeSize`,[b]:_I}],[0,{[v]:`VolumeType`,[b]:yI}],[0,{[v]:`KmsKeyId`,[b]:IM}],[1,{[v]:`Throughput`,[b]:YF}],[0,{[v]:`OutpostArn`,[b]:UN}],[0,{[v]:`AvailabilityZone`,[b]:uk}],[2,{[v]:`Encrypted`,[b]:cj}],1,0,1]],BL=[3,x,cv,0,[ov,Eh,Rh,Mh,ZS,CC,lC],[[1,{[v]:`EbsCardIndex`,[b]:wA}],[1,{[v]:`BaselineBandwidthInMbps`,[b]:xk}],[1,{[v]:`BaselineThroughputInMBps`,[b]:Ok}],[1,{[v]:`BaselineIops`,[b]:Ck}],[1,{[v]:`MaximumBandwidthInMbps`,[b]:QM}],[1,{[v]:`MaximumThroughputInMBps`,[b]:gN}],[1,{[v]:`MaximumIops`,[b]:aN}]]],VL=[3,x,Fv,0,[Uv,ry,zv,tw,iC,qm,aC,lv],[[0,{[v]:`EbsOptimizedSupport`,[b]:KA}],[0,{[v]:`EncryptionSupport`,[b]:rj}],[()=>WL,{[v]:`EbsOptimizedInfo`,[b]:WA}],[0,{[v]:`NvmeSupport`,[b]:RN}],[1,{[v]:`MaximumEbsAttachments`,[b]:eN}],[0,{[v]:`AttachmentLimitType`,[b]:tk}],[1,{[v]:`MaximumEbsCards`,[b]:tN}],[()=>vB,{[v]:`EbsCardSet`,[b]:TA}]]],HL=[3,x,Mv,0,[nh,C_,cD,fO,Qm,xO,bw,ov],[[4,{[v]:`AttachTime`,[b]:lk}],[2,{[v]:`DeleteOnTermination`,[b]:hA}],[0,{[v]:`Status`,[b]:AF}],[0,{[v]:`VolumeId`,[b]:lI}],[0,{[v]:`AssociatedResource`,[b]:ak}],[0,{[v]:`VolumeOwnerId`,[b]:pI}],[()=>vz,{[v]:`Operator`,[b]:QN}],[1,{[v]:`EbsCardIndex`,[b]:wA}]]],UL=[3,x,Nv,0,[fO,C_],[[0,{[v]:`VolumeId`,[b]:lI}],[2,{[v]:`DeleteOnTermination`,[b]:hA}]]],WL=[3,x,zv,0,[Eh,Rh,Mh,ZS,CC,lC],[[1,{[v]:`BaselineBandwidthInMbps`,[b]:xk}],[1,{[v]:`BaselineThroughputInMBps`,[b]:Ok}],[1,{[v]:`BaselineIops`,[b]:Ck}],[1,{[v]:`MaximumBandwidthInMbps`,[b]:QM}],[1,{[v]:`MaximumThroughputInMBps`,[b]:gN}],[1,{[v]:`MaximumIops`,[b]:aN}]]],GL=[3,x,Iv,0,[oC],[[1,{[v]:`MaximumEfaInterfaces`,[b]:nN}]]],KL=[3,x,mv,0,[bv,hv,_v,vv],[[0,{[v]:`ElasticGpuId`,[b]:NA}],[0,{[v]:`ElasticGpuAssociationId`,[b]:kA}],[0,{[v]:`ElasticGpuAssociationState`,[b]:AA}],[0,{[v]:`ElasticGpuAssociationTime`,[b]:MA}]]],qL=[3,x,xv,0,[BD],[0],1],JL=[3,x,Cv,0,[BD,Ug],[0,1],1],YL=[3,x,wv,0,[kv,Tv,Dv,Ov],[[0,{[v]:`ElasticInferenceAcceleratorArn`,[b]:PA}],[0,{[v]:`ElasticInferenceAcceleratorAssociationId`,[b]:FA}],[0,{[v]:`ElasticInferenceAcceleratorAssociationState`,[b]:IA}],[4,{[v]:`ElasticInferenceAcceleratorAssociationTime`,[b]:RA}]]],XL=[3,x,Zv,0,[Yv,ey],[2,()=>ZL]],ZL=[3,x,ty,0,[$v],[2]],QL=[3,x,Wv,0,[cy],[[2,{[v]:`Enabled`,[b]:sj}]]],$L=[3,x,Hv,0,[cy],[2]],eR=[3,x,Sy,0,[NC,NO],[0,[()=>EV,{[b]:qD}]]],tR=[3,x,fy,0,[NC,DC,Ug,fC],[[0,{[v]:`Name`,[b]:SN}],[0,{[v]:`Manufacturer`,[b]:_N}],[1,{[v]:`Count`,[b]:rA}],[()=>nR,{[v]:`MemoryInfo`,[b]:oN}]]],nR=[3,x,my,0,[dE],[[1,{[v]:`SizeInMiB`,[b]:rF}]]],rR=[3,x,gy,0,[Cy,pD],[[()=>TB,{[v]:`Fpgas`,[b]:hj}],[1,{[v]:`TotalFpgaMemoryInMiB`,[b]:PF}]]],iR=[3,x,Ey,0,[kb,WS,g],[0,2,[2,{[v]:`DryRun`,[b]:_}]],1],aR=[3,x,Dy,0,[kb,zD,xw],[[0,{[v]:`InstanceId`,[b]:Qj}],[4,{[v]:`Timestamp`,[b]:XF}],[0,{[v]:`Output`,[b]:$N}]]],oR=[3,x,Oy,0,[NC,DC,Ug,NS,Ry,BO,fC],[[0,{[v]:`Name`,[b]:SN}],[0,{[v]:`Manufacturer`,[b]:_N}],[1,{[v]:`Count`,[b]:rA}],[1,{[v]:`LogicalGpuCount`,[b]:WM}],[1,{[v]:`GpuPartitionSize`,[b]:bj}],[()=>FV,{[v]:`WorkloadSet`,[b]:wI}],[()=>sR,{[v]:`MemoryInfo`,[b]:oN}]]],sR=[3,x,Ay,0,[dE],[[1,{[v]:`SizeInMiB`,[b]:rF}]]],cR=[3,x,Ny,0,[By,mD],[[()=>EB,{[v]:`Gpus`,[b]:Cj}],[1,{[v]:`TotalGpuMemoryInMiB`,[b]:FF}]]],lR=[3,x,Fy,0,[Py,Ly],[[0,{[v]:`GroupId`,[b]:_j}],[0,{[v]:`GroupName`,[b]:yj}]]],uR=[3,x,Uy,0,[Hg],[[2,{[v]:`Configured`,[b]:nA}]]],dR=[3,x,Wy,0,[Hg],[2]],fR=[3,x,Nb,0,[vh,$y],[[0,{[v]:`Arn`,[b]:hk}],[0,{[v]:`Id`,[b]:Pj}]]],pR=[3,x,Rb,0,[vh,NC],[[0,{[v]:`Arn`,[b]:hk}],[0,{[v]:`Name`,[b]:SN}]]],mR=[3,x,sS,0,[Lw,UD,Ah,ev,iy,Qy,vx,NC,pT,mT,RE,GE,dD,jO,Nh,MD,B_,Yx,uE,w_,FS,lb,cE,pE,by,Wb,Xb,sD,lw,Xh,lT,Aw,yh,nS,mS,wT,aT],[[0,{[v]:`PlatformDetails`,[b]:cP}],[0,{[v]:`UsageOperation`,[b]:$F}],[()=>pB,{[v]:`BlockDeviceMapping`,[b]:Sk}],[0,{[v]:`Description`,[b]:xA}],[2,{[v]:`EnaSupport`,[b]:ij}],[0,{[v]:`Hypervisor`,[b]:wj}],[0,{[v]:`ImageOwnerAlias`,[b]:oM}],[0,{[v]:`Name`,[b]:SN}],[0,{[v]:`RootDeviceName`,[b]:OP}],[0,{[v]:`RootDeviceType`,[b]:kP}],[0,{[v]:`SriovNetSupport`,[b]:pF}],[()=>Rz,{[v]:`StateReason`,[b]:gF}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`VirtualizationType`,[b]:xI}],[0,{[v]:`BootMode`,[b]:wk}],[0,{[v]:`TpmSupport`,[b]:GF}],[0,{[v]:`DeprecationTime`,[b]:yA}],[0,{[v]:`ImdsSupport`,[b]:xM}],[0,{[v]:`SourceInstanceId`,[b]:eF}],[0,{[v]:`DeregistrationProtection`,[b]:gA}],[0,{[v]:`LastLaunchedTime`,[b]:GM}],[2,{[v]:`ImageAllowed`,[b]:Hj}],[0,{[v]:`SourceImageId`,[b]:nF}],[0,{[v]:`SourceImageRegion`,[b]:iF}],[2,{[v]:`FreeTierEligible`,[b]:pj}],[0,{[v]:`ImageId`,[b]:tM}],[0,{[v]:`ImageLocation`,[b]:nM}],[0,{[v]:`ImageState`,[b]:bM}],[0,{[v]:`ImageOwnerId`,[b]:sM}],[0,{[v]:`CreationDate`,[b]:Lk}],[2,{[v]:`IsPublic`,[b]:gM}],[()=>cV,{[v]:`ProductCodes`,[b]:nP}],[0,{[v]:`Architecture`,[b]:gk}],[0,{[v]:`ImageType`,[b]:kM}],[0,{[v]:`KernelId`,[b]:FM}],[0,{[v]:`RamdiskId`,[b]:PP}],[0,{[v]:`Platform`,[b]:CP}]]],hR=[3,x,Jb,0,[_S,Qw,DD,g],[[0,{[v]:`KeyName`,[b]:RM}],[21,{[v]:`PublicKeyMaterial`,[b]:gP}],[()=>CV,{[b]:AD}],[2,{[v]:`DryRun`,[b]:_}]],2],gR=[3,x,Yb,0,[pS,_S,xS,dD],[[0,{[v]:`KeyFingerprint`,[b]:PM}],[0,{[v]:`KeyName`,[b]:RM}],[0,{[v]:`KeyPairId`,[b]:zM}],[()=>SV,{[v]:`TagSet`,[b]:HF}]]],_R=[3,x,ab,0,[gh,gD],[[()=>jB,{[v]:`Accelerators`,[b]:pk}],[1,{[v]:`TotalInferenceMemoryInMiB`,[b]:IF}]]],vR=[3,x,bb,0,[Ug,NC,DC,fC],[[1,{[v]:`Count`,[b]:rA}],[0,{[v]:`Name`,[b]:SN}],[0,{[v]:`Manufacturer`,[b]:_N}],[()=>yR,{[v]:`MemoryInfo`,[b]:oN}]]],yR=[3,x,Sb,0,[dE],[[1,{[v]:`SizeInMiB`,[b]:rF}]]],bR=[3,x,cS,0,[yh,Ah,kg,Rv,iy,Qy,Nb,Qb,yv,Av,YC,sw,pT,mT,nE,JT,fE,RE,GE,dD,jO,og,Wh,ug,mg,Uy,KS,hC,Wv,Nh,Lw,UD,WD,Mw,ub,MD,gC,$h,QC,bw,xE,kb,Wb,sD,jw,Iw,XE,_S,Km,Aw,$x,US,oT,mS,wT,aT,MC,kE,oO,Kw,Jw],[[0,{[v]:`Architecture`,[b]:gk}],[()=>MB,{[v]:`BlockDeviceMapping`,[b]:Sk}],[0,{[v]:`ClientToken`,[b]:Zk}],[2,{[v]:`EbsOptimized`,[b]:UA}],[2,{[v]:`EnaSupport`,[b]:ij}],[0,{[v]:`Hypervisor`,[b]:wj}],[()=>fR,{[v]:`IamInstanceProfile`,[b]:$j}],[0,{[v]:`InstanceLifecycle`,[b]:rM}],[()=>yB,{[v]:`ElasticGpuAssociationSet`,[b]:jA}],[()=>xB,{[v]:`ElasticInferenceAcceleratorAssociationSet`,[b]:LA}],[()=>zB,{[v]:`NetworkInterfaceSet`,[b]:jN}],[0,{[v]:`OutpostArn`,[b]:UN}],[0,{[v]:`RootDeviceName`,[b]:OP}],[0,{[v]:`RootDeviceType`,[b]:kP}],[()=>DB,{[v]:`GroupSet`,[b]:Sj}],[2,{[v]:`SourceDestCheck`,[b]:YP}],[0,{[v]:`SpotInstanceRequestId`,[b]:aF}],[0,{[v]:`SriovNetSupport`,[b]:pF}],[()=>Rz,{[v]:`StateReason`,[b]:gF}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`VirtualizationType`,[b]:xI}],[()=>$I,{[v]:`CpuOptions`,[b]:Hk}],[0,{[v]:`CapacityBlockId`,[b]:Nk}],[0,{[v]:`CapacityReservationId`,[b]:Gk}],[()=>KI,{[v]:`CapacityReservationSpecification`,[b]:Jk}],[()=>uR,{[v]:`HibernationOptions`,[b]:Dj}],[()=>$B,{[v]:`LicenseSet`,[b]:KM}],[()=>MR,{[v]:`MetadataOptions`,[b]:lN}],[()=>QL,{[v]:`EnclaveOptions`,[b]:qA}],[0,{[v]:`BootMode`,[b]:wk}],[0,{[v]:`PlatformDetails`,[b]:cP}],[0,{[v]:`UsageOperation`,[b]:$F}],[4,{[v]:`UsageOperationUpdateTime`,[b]:eI}],[()=>wz,{[v]:`PrivateDnsNameOptions`,[b]:iP}],[0,{[v]:`Ipv6Address`,[b]:Wj}],[0,{[v]:`TpmSupport`,[b]:GF}],[()=>OR,{[v]:`MaintenanceOptions`,[b]:uN}],[0,{[v]:`CurrentInstanceBootMode`,[b]:Bk}],[()=>LR,{[v]:`NetworkPerformanceOptions`,[b]:FN}],[()=>vz,{[v]:`Operator`,[b]:QN}],[()=>HB,{[v]:`SecondaryInterfaceSet`,[b]:oF}],[0,{[v]:`InstanceId`,[b]:Qj}],[0,{[v]:`ImageId`,[b]:tM}],[()=>GR,{[v]:`InstanceState`,[b]:CM}],[0,{[v]:`PrivateDnsName`,[b]:oP}],[0,{[v]:`DnsName`,[b]:pA}],[0,{[v]:`Reason`,[b]:UP}],[0,{[v]:`KeyName`,[b]:RM}],[1,{[v]:`AmiLaunchIndex`,[b]:ek}],[()=>cV,{[v]:`ProductCodes`,[b]:nP}],[0,{[v]:`InstanceType`,[b]:EM}],[4,{[v]:`LaunchTime`,[b]:qM}],[()=>bz,{[v]:`Placement`,[b]:wP}],[0,{[v]:`KernelId`,[b]:FM}],[0,{[v]:`RamdiskId`,[b]:PP}],[0,{[v]:`Platform`,[b]:CP}],[()=>lz,{[v]:`Monitoring`,[b]:bN}],[0,{[v]:`SubnetId`,[b]:cF}],[0,{[v]:`VpcId`,[b]:sI}],[0,{[v]:`PrivateIpAddress`,[b]:pP}],[0,{[v]:`IpAddress`,[b]:Uj}]]],xR=[3,x,rb,0,[Yv,ey],[[2,{[v]:`EnaSrdEnabled`,[b]:ZA}],[()=>SR,{[v]:`EnaSrdUdpSpecification`,[b]:tj}]]],SR=[3,x,ib,0,[$v],[[2,{[v]:`EnaSrdUdpEnabled`,[b]:ej}]]],CR=[3,x,db,0,[y_,sy],[[0,{[v]:`DeviceName`,[b]:dA}],[()=>HL,{[v]:`Ebs`,[b]:oj}]]],wR=[3,x,pb,0,[y_,sy,bO,zC],[[0,{[v]:`DeviceName`,[b]:dA}],[()=>UL,{[v]:`Ebs`,[b]:oj}],[0,{[v]:`VirtualName`,[b]:fI}],[0,{[v]:`NoDevice`,[b]:EN}]]],TR=[3,x,zb,0,[Fx],[[0,{[v]:`Ipv4Prefix`,[b]:pM}]]],ER=[3,x,Ab,0,[ub,Tx],[[0,{[v]:`Ipv6Address`,[b]:Wj}],[2,{[v]:`IsPrimaryIpv6`,[b]:uM}]]],DR=[3,x,Bb,0,[Mx],[[0,{[v]:`Ipv6Prefix`,[b]:hM}]]],OR=[3,x,ex,0,[$m,MT],[[0,{[v]:`AutoRecovery`,[b]:ok}],[0,{[v]:`RebootMigration`,[b]:RP}]]],kR=[3,x,tx,0,[$m],[0]],AR=[3,x,nx,0,[SC,BE],[0,()=>Fz]],jR=[3,x,rx,0,[Yy,Ky,Vy,Gy,ox],[0,1,0,0,0]],MR=[3,x,ix,0,[sD,Yy,Ky,Vy,Gy,ox],[[0,{[v]:`State`,[b]:kF}],[0,{[v]:`HttpTokens`,[b]:Mj}],[1,{[v]:`HttpPutResponseHopLimit`,[b]:kj}],[0,{[v]:`HttpEndpoint`,[b]:Tj}],[0,{[v]:`HttpProtocolIpv6`,[b]:Oj}],[0,{[v]:`InstanceMetadataTags`,[b]:iM}]]],NR=[3,x,cx,0,[bh,Sh,ev,wy,eb,XS,JC,lw,jw,Kw,qw,JT,cD,kE,oO,aS,Px,jx,Ag,bw],[[()=>PR,{[v]:`Association`,[b]:_k}],[()=>FR,{[v]:`Attachment`,[b]:vk}],[0,{[v]:`Description`,[b]:xA}],[()=>DB,{[v]:`GroupSet`,[b]:Sj}],[()=>IB,{[v]:`Ipv6AddressesSet`,[b]:Vj}],[0,{[v]:`MacAddress`,[b]:ZM}],[0,{[v]:`NetworkInterfaceId`,[b]:AN}],[0,{[v]:`OwnerId`,[b]:GN}],[0,{[v]:`PrivateDnsName`,[b]:oP}],[0,{[v]:`PrivateIpAddress`,[b]:pP}],[()=>VB,{[v]:`PrivateIpAddressesSet`,[b]:dP}],[2,{[v]:`SourceDestCheck`,[b]:YP}],[0,{[v]:`Status`,[b]:AF}],[0,{[v]:`SubnetId`,[b]:cF}],[0,{[v]:`VpcId`,[b]:sI}],[0,{[v]:`InterfaceType`,[b]:jM}],[()=>FB,{[v]:`Ipv4PrefixSet`,[b]:dM}],[()=>LB,{[v]:`Ipv6PrefixSet`,[b]:fM}],[()=>XI,{[v]:`ConnectionTrackingConfiguration`,[b]:Qk}],[()=>vz,{[v]:`Operator`,[b]:QN}]]],PR=[3,x,lx,0,[Qh,sg,yx,Iw,Hw],[[0,{[v]:`CarrierIp`,[b]:zk}],[0,{[v]:`CustomerOwnedIp`,[b]:Uk}],[0,{[v]:`IpOwnerId`,[b]:cM}],[0,{[v]:`PublicDnsName`,[b]:sP}],[0,{[v]:`PublicIp`,[b]:uP}]]],FR=[3,x,ux,0,[nh,Gm,C_,t_,cD,IC,Xv,Kv],[[4,{[v]:`AttachTime`,[b]:lk}],[0,{[v]:`AttachmentId`,[b]:$O}],[2,{[v]:`DeleteOnTermination`,[b]:hA}],[1,{[v]:`DeviceIndex`,[b]:uA}],[0,{[v]:`Status`,[b]:AF}],[1,{[v]:`NetworkCardIndex`,[b]:TN}],[()=>xR,{[v]:`EnaSrdSpecification`,[b]:QA}],[1,{[v]:`EnaQueueCount`,[b]:JA}]]],IR=[3,x,fx,0,[Jm,C_,ev,t_,wy,nb,eb,JC,Kw,qw,HE,kE,zm,aS,IC,Px,Sx,jx,xx,Yw,Xv,jg,Kv],[[2,{[v]:`AssociatePublicIpAddress`,[b]:nk}],[2,{[v]:`DeleteOnTermination`,[b]:hA}],[0,{[v]:`Description`,[b]:xA}],[1,{[v]:`DeviceIndex`,[b]:uA}],[()=>mV,{[b]:QT}],[1,{[v]:`Ipv6AddressCount`,[b]:Ij}],[()=>IB,{[v]:`Ipv6Addresses`,[b]:Vj}],[0,{[v]:`NetworkInterfaceId`,[b]:AN}],[0,{[v]:`PrivateIpAddress`,[b]:pP}],[()=>sV,{[v]:`PrivateIpAddresses`,[b]:dP}],[1,{[v]:`SecondaryPrivateIpAddressCount`,[b]:mF}],[0,{[v]:`SubnetId`,[b]:cF}],2,0,1,[()=>JB,{[b]:Fx}],1,[()=>YB,{[b]:Mx}],1,2,()=>XL,()=>YI,1]],LR=[3,x,gx,0,[zh],[[0,{[v]:`BandwidthWeighting`,[b]:kk}]]],RR=[3,x,_x,0,[zh],[0]],zR=[3,x,Cx,0,[bh,sT,jw,Kw],[[()=>PR,{[v]:`Association`,[b]:_k}],[2,{[v]:`Primary`,[b]:TP}],[0,{[v]:`PrivateDnsName`,[b]:oP}],[0,{[v]:`PrivateIpAddress`,[b]:pP}]]],BR=[3,x,Kx,0,[Sh,XS,lE,lw,qw,JT,cD,qE,LE,aS],[[()=>VR,{[v]:`Attachment`,[b]:vk}],[0,{[v]:`MacAddress`,[b]:ZM}],[0,{[v]:`SecondaryInterfaceId`,[b]:tF}],[0,{[v]:`OwnerId`,[b]:GN}],[()=>UB,{[v]:`PrivateIpAddressSet`,[b]:fP}],[2,{[v]:`SourceDestCheck`,[b]:YP}],[0,{[v]:`Status`,[b]:AF}],[0,{[v]:`SecondarySubnetId`,[b]:_F}],[0,{[v]:`SecondaryNetworkId`,[b]:dF}],[0,{[v]:`InterfaceType`,[b]:jM}]]],VR=[3,x,Rx,0,[nh,Gm,C_,t_,cD,IC],[[4,{[v]:`AttachTime`,[b]:lk}],[0,{[v]:`AttachmentId`,[b]:$O}],[2,{[v]:`DeleteOnTermination`,[b]:hA}],[1,{[v]:`DeviceIndex`,[b]:uA}],[0,{[v]:`Status`,[b]:AF}],[1,{[v]:`NetworkCardIndex`,[b]:TN}]]],HR=[3,x,Bx,0,[Kw],[[0,{[v]:`PrivateIpAddress`,[b]:pP}]]],UR=[3,x,Ux,0,[Kw],[0],1],WR=[3,x,Gx,0,[C_,t_,qw,Uw,qE,aS,IC],[2,1,[()=>WB,{[b]:Kw}],1,0,0,1]],GR=[3,x,Xx,0,[Vg,NC],[[1,{[v]:`Code`,[b]:tA}],[0,{[v]:`Name`,[b]:SN}]]],KR=[3,x,Ix,0,[kb,Og,tT],[[0,{[v]:`InstanceId`,[b]:Qj}],[()=>GR,{[v]:`CurrentState`,[b]:Xk}],[()=>GR,{[v]:`PreviousState`,[b]:yP}]]],qR=[3,x,qx,0,[OD,nv,tw,ry],[[1,{[v]:`TotalSizeInGB`,[b]:UF}],[()=>_B,{[v]:`Disks`,[b]:CA}],[0,{[v]:`NvmeSupport`,[b]:RN}],[0,{[v]:`EncryptionSupport`,[b]:rj}]]],JR=[3,x,tS,0,[$x,Zh,by,$E,UE,nD,Fh,Qy,Xw,$D,fC,Jx,qx,Fv,XC,Ny,gy,Bw,ab,Jy,Lh,e_,Xm,GT,GC,rw,nw,YS,ZC,eT,jT],[[0,{[v]:`InstanceType`,[b]:EM}],[2,{[v]:`CurrentGeneration`,[b]:Rk}],[2,{[v]:`FreeTierEligible`,[b]:pj}],[()=>TV,{[v]:`SupportedUsageClasses`,[b]:wF}],[()=>pV,{[v]:`SupportedRootDeviceTypes`,[b]:hF}],[()=>DV,{[v]:`SupportedVirtualizationTypes`,[b]:EF}],[2,{[v]:`BareMetal`,[b]:Tk}],[0,{[v]:`Hypervisor`,[b]:wj}],[()=>Ez,{[v]:`ProcessorInfo`,[b]:mP}],[()=>Jz,{[v]:`VCpuInfo`,[b]:iI}],[()=>az,{[v]:`MemoryInfo`,[b]:oN}],[2,{[v]:`InstanceStorageSupported`,[b]:vM}],[()=>qR,{[v]:`InstanceStorageInfo`,[b]:_M}],[()=>VL,{[v]:`EbsInfo`,[b]:BA}],[()=>dz,{[v]:`NetworkInfo`,[b]:NN}],[()=>cR,{[v]:`GpuInfo`,[b]:gj}],[()=>rR,{[v]:`FpgaInfo`,[b]:uj}],[()=>xz,{[v]:`PlacementGroupInfo`,[b]:lP}],[()=>_R,{[v]:`InferenceAcceleratorInfo`,[b]:Lj}],[2,{[v]:`HibernationSupported`,[b]:jj}],[2,{[v]:`BurstablePerformanceSupported`,[b]:Dk}],[2,{[v]:`DedicatedHostsSupported`,[b]:lA}],[2,{[v]:`AutoRecoverySupported`,[b]:ik}],[()=>hB,{[v]:`SupportedBootModes`,[b]:qP}],[0,{[v]:`NitroEnclavesSupport`,[b]:ON}],[0,{[v]:`NitroTpmSupport`,[b]:BN}],[()=>gz,{[v]:`NitroTpmInfo`,[b]:zN}],[()=>nz,{[v]:`MediaAcceleratorInfo`,[b]:XM}],[()=>hz,{[v]:`NeuronInfo`,[b]:PN}],[0,{[v]:`PhcSupport`,[b]:vP}],[0,{[v]:`RebootMigrationSupport`,[b]:LP}]]],YR=[3,x,kx,0,[Fx],[0]],XR=[3,x,Ax,0,[Mx],[0]],ZR=[3,x,ES,0,[xS,dD,_S,pS,gS],[[0,{[v]:`KeyPairId`,[b]:zM}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`KeyName`,[b]:RM}],[0,{[v]:`KeyFingerprint`,[b]:PM}],[()=>PI,{[v]:`KeyMaterial`,[b]:LM}]]],QR=[3,x,wS,0,[xS,DS,dD,Zw,Fg,_S,pS],[[0,{[v]:`KeyPairId`,[b]:zM}],[0,{[v]:`KeyType`,[b]:VM}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`PublicKey`,[b]:hP}],[4,{[v]:`CreateTime`,[b]:eA}],[0,{[v]:`KeyName`,[b]:RM}],[0,{[v]:`KeyFingerprint`,[b]:PM}]]],$R=[3,x,HS,0,[BS,VS,PO],[0,0,0]],ez=[3,x,jS,0,[kS],[[0,{[v]:`LicenseConfigurationArn`,[b]:UM}]]],tz=[3,x,AS,0,[kS],[0]],nz=[3,x,YS,0,[gh,CD],[[()=>tV,{[v]:`Accelerators`,[b]:pk}],[1,{[v]:`TotalMediaMemoryInMiB`,[b]:zF}]]],rz=[3,x,tC,0,[Ug,NC,DC,fC],[[1,{[v]:`Count`,[b]:rA}],[0,{[v]:`Name`,[b]:SN}],[0,{[v]:`Manufacturer`,[b]:_N}],[()=>iz,{[v]:`MemoryInfo`,[b]:oN}]]],iz=[3,x,rC,0,[dE],[[1,{[v]:`SizeInMiB`,[b]:rF}]]],az=[3,x,fC,0,[dE],[[1,{[v]:`SizeInMiB`,[b]:rF}]]],oz=[3,x,uC,0,[kb,JT,Wg,g,xh,qD,Ah,Gg,$x,OS,LT,HD,Vb,wy,Rv,RE,iy],[[0,{[v]:`InstanceId`,[b]:Qj}],[()=>II,0],[()=>II,0],[2,{[v]:`DryRun`,[b]:_}],[0,{[v]:`Attribute`,[b]:yk}],[0,{[v]:`Value`,[b]:rI}],[()=>NB,{[v]:`BlockDeviceMapping`,[b]:Sk}],[()=>II,{[v]:`DisableApiTermination`,[b]:iA}],[()=>LI,{[v]:`InstanceType`,[b]:EM}],[()=>LI,{[v]:`Kernel`,[b]:HM}],[()=>LI,{[v]:`Ramdisk`,[b]:HP}],[()=>HI,{[v]:`UserData`,[b]:QF}],[()=>LI,{[v]:`InstanceInitiatedShutdownBehavior`,[b]:eM}],[()=>OB,{[b]:Py}],[()=>II,{[v]:`EbsOptimized`,[b]:UA}],[()=>LI,{[v]:`SriovNetSupport`,[b]:pF}],[()=>II,{[v]:`EnaSupport`,[b]:ij}]],1],sz=[3,x,wC,0,[fO,g,iD,OO,uS,RD,JS],[0,2,1,0,1,1,2],1],cz=[3,x,TC,0,[yO],[[()=>Zz,{[v]:`VolumeModification`,[b]:dI}]]],lz=[3,x,MC,0,[sD],[[0,{[v]:`State`,[b]:kF}]]],uz=[3,x,RC,0,[IC,$C,mC,Bm,Th,Tw,Qg,sC,cC],[[1,{[v]:`NetworkCardIndex`,[b]:TN}],[0,{[v]:`NetworkPerformance`,[b]:IN}],[1,{[v]:`MaximumNetworkInterfaces`,[b]:cN}],[1,{[v]:`AdditionalFlexibleNetworkInterfaces`,[b]:JO}],[1,{[v]:`BaselineBandwidthInGbps`,[b]:bk}],[1,{[v]:`PeakBandwidthInGbps`,[b]:tP}],[1,{[v]:`DefaultEnaQueueCountPerInterface`,[b]:sA}],[1,{[v]:`MaximumEnaQueueCount`,[b]:rN}],[1,{[v]:`MaximumEnaQueueCountPerInterface`,[b]:iN}]]],dz=[3,x,XC,0,[$C,mC,pC,b_,FC,ob,sb,Qx,iy,ny,Iv,Pv,Qv,Vh,hy,zE,bC,cb],[[0,{[v]:`NetworkPerformance`,[b]:IN}],[1,{[v]:`MaximumNetworkInterfaces`,[b]:cN}],[1,{[v]:`MaximumNetworkCards`,[b]:sN}],[1,{[v]:`DefaultNetworkCardIndex`,[b]:fA}],[()=>nV,{[v]:`NetworkCards`,[b]:wN}],[1,{[v]:`Ipv4AddressesPerInterface`,[b]:Rj}],[1,{[v]:`Ipv6AddressesPerInterface`,[b]:zj}],[2,{[v]:`Ipv6Supported`,[b]:TM}],[0,{[v]:`EnaSupport`,[b]:ij}],[2,{[v]:`EfaSupported`,[b]:nj}],[()=>GL,{[v]:`EfaInfo`,[b]:VA}],[2,{[v]:`EncryptionInTransitSupported`,[b]:zA}],[2,{[v]:`EnaSrdSupported`,[b]:$A}],[()=>fB,{[v]:`BandwidthWeightings`,[b]:Ak}],[0,{[v]:`FlexibleEnaQueuesSupport`,[b]:lj}],[2,{[v]:`SecondaryNetworkSupported`,[b]:fF}],[1,{[v]:`MaximumSecondaryNetworkInterfaces`,[b]:mN}],[1,{[v]:`Ipv4AddressesPerSecondaryInterface`,[b]:Bj}]]],fz=[3,x,BC,0,[Ug,PO],[[1,{[v]:`Count`,[b]:rA}],[1,{[v]:`Version`,[b]:SI}]]],pz=[3,x,VC,0,[Ug,NC,ng,fC],[[1,{[v]:`Count`,[b]:rA}],[0,{[v]:`Name`,[b]:SN}],[()=>fz,{[v]:`CoreInfo`,[b]:Vk}],[()=>mz,{[v]:`MemoryInfo`,[b]:oN}]]],mz=[3,x,UC,0,[dE],[[1,{[v]:`SizeInMiB`,[b]:rF}]]],hz=[3,x,ZC,0,[WC,wD],[[()=>rV,{[v]:`NeuronDevices`,[b]:DN}],[1,{[v]:`TotalNeuronDeviceMemoryInMiB`,[b]:BF}]]],gz=[3,x,nw,0,[rD],[[()=>iV,{[v]:`SupportedVersions`,[b]:DF}]]],_z=[3,x,mw,0,[ww],[0]],vz=[3,x,hw,0,[OC,ww],[[2,{[v]:`Managed`,[b]:vN}],[0,{[v]:`Principal`,[b]:eP}]]],yz=[3,x,Rw,0,[Tb],[[0,{[v]:`InstanceFamily`,[b]:Yj}]]],bz=[3,x,oT,0,[lh,_h,Ly,$w,Hy,LD,YT,qy,Py,oh],[[0,{[v]:`AvailabilityZoneId`,[b]:dk}],[0,{[v]:`Affinity`,[b]:mk}],[0,{[v]:`GroupName`,[b]:yj}],[1,{[v]:`PartitionNumber`,[b]:_P}],[0,{[v]:`HostId`,[b]:Ej}],[0,{[v]:`Tenancy`,[b]:MF}],[0,{[v]:`SpreadDomain`,[b]:XP}],[0,{[v]:`HostResourceGroupArn`,[b]:Aj}],[0,{[v]:`GroupId`,[b]:_j}],[0,{[v]:`AvailabilityZone`,[b]:uk}]]],xz=[3,x,Bw,0,[JE],[[()=>oV,{[v]:`SupportedStrategies`,[b]:bF}]]],Sz=[3,x,Nw,0,[Xy,Jv,qv],[[0,{[v]:`HostnameType`,[b]:Nj}],[2,{[v]:`EnableResourceNameDnsARecord`,[b]:XA}],[2,{[v]:`EnableResourceNameDnsAAAARecord`,[b]:YA}]]],Cz=[3,x,Pw,0,[Xy,Jv,qv],[0,2,2]],wz=[3,x,Fw,0,[Xy,Jv,qv],[[0,{[v]:`HostnameType`,[b]:Nj}],[2,{[v]:`EnableResourceNameDnsARecord`,[b]:XA}],[2,{[v]:`EnableResourceNameDnsAAAARecord`,[b]:YA}]]],Tz=[3,x,Ww,0,[sT,Kw],[[2,{[v]:`Primary`,[b]:TP}],[0,{[v]:`PrivateIpAddress`,[b]:pP}]]],Ez=[3,x,Xw,0,[WT,qT,XT,DC],[[()=>sB,{[v]:`SupportedArchitectures`,[b]:GP}],[1,{[v]:`SustainedClockSpeedInGhz`,[b]:JP}],[()=>xV,{[v]:`SupportedFeatures`,[b]:ZP}],[0,{[v]:`Manufacturer`,[b]:_N}]]],Dz=[3,x,kw,0,[Ew,Ow],[[0,{[v]:`ProductCode`,[b]:rP}],[0,{[v]:`Type`,[b]:ZF}]]],Oz=[3,x,xT,0,[Kb,g],[[()=>PB,{[b]:kb}],[2,{[v]:`DryRun`,[b]:_}]],1],kz=[3,x,zT,0,[uw,zy,NT,uy],[[0,{[v]:`OptInStatus`,[b]:KN}],[()=>lV,{[v]:`GeographySet`,[b]:xj}],[0,{[v]:`RegionName`,[b]:zP}],[0,{[v]:`RegionEndpoint`,[b]:jP}]]],Az=[3,x,vT,0,[NC],[[0,{[v]:`Name`,[b]:SN}]]],jz=[3,x,VT,0,[TT,lw,DT,wy,lS],[[0,{[v]:`ReservationId`,[b]:NP}],[0,{[v]:`OwnerId`,[b]:GN}],[0,{[v]:`RequesterId`,[b]:IP}],[()=>DB,{[v]:`GroupSet`,[b]:Sj}],[()=>RB,{[v]:`InstancesSet`,[b]:SM}]]],Mz=[3,x,bT,0,[cy],[[2,{[v]:`Enabled`,[b]:sj}]],1],Nz=[3,x,ST,0,[$S,eC,Ah,Wb,$x,nb,eb,mS,_S,MC,oT,wT,eE,nE,kE,HD,xv,jv,DD,zS,ax,Tg,og,mg,Uy,IS,hC,Wv,Mw,gC,Wg,Gv,QC,bw,xE,g,Gg,Vb,Kw,kg,Um,YC,Nb,Rv],[1,1,[()=>mB,{[b]:Dh}],0,0,1,[()=>IB,{[b]:ub}],0,0,[()=>Mz,0],[()=>bz,0],0,[()=>mV,{[b]:QT}],[()=>hV,{[b]:rE}],0,[()=>NI,0],[()=>bB,0],[()=>SB,{[b]:Cv}],[()=>CV,{[b]:AD}],()=>$R,()=>AR,()=>uL,()=>eL,()=>GI,()=>dR,[()=>eV,{[b]:RS}],()=>jR,()=>$L,()=>Cz,()=>kR,2,2,()=>RR,()=>_z,[()=>GB,{[b]:SE}],[2,{[v]:`DryRun`,[b]:_}],[2,{[v]:`DisableApiTermination`,[b]:iA}],[0,{[v]:`InstanceInitiatedShutdownBehavior`,[b]:eM}],[0,{[v]:`PrivateIpAddress`,[b]:pP}],[0,{[v]:`ClientToken`,[OM]:1,[b]:Zk}],[0,{[v]:`AdditionalInfo`,[b]:ZO}],[()=>BB,{[v]:`NetworkInterface`,[b]:MN}],[()=>pR,{[v]:`IamInstanceProfile`,[b]:$j}],[2,{[v]:`EbsOptimized`,[b]:UA}]],2],Pz=[3,x,oD,0,[cw,sw,dD,QE,gT,ZE,oh,PD,Yh,Pg,yy,CE,fO,sD,IE,YE,cT,lw,ev,DO,ly,hS,Zg],[[0,{[v]:`OwnerAlias`,[b]:WN}],[0,{[v]:`OutpostArn`,[b]:UN}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`StorageTier`,[b]:CF}],[4,{[v]:`RestoreExpiryTime`,[b]:AP}],[0,{[v]:`SseType`,[b]:SF}],[0,{[v]:`AvailabilityZone`,[b]:uk}],[0,{[v]:`TransferType`,[b]:qF}],[1,{[v]:`CompletionDurationMinutes`,[b]:Ik}],[4,{[v]:`CompletionTime`,[b]:$k}],[1,{[v]:`FullSnapshotSizeInBytes`,[b]:fj}],[0,{[v]:`SnapshotId`,[b]:sF}],[0,{[v]:`VolumeId`,[b]:lI}],[0,{[v]:`Status`,[b]:AF}],[0,{[v]:`StatusMessage`,[b]:lF}],[4,{[v]:`StartTime`,[b]:xF}],[0,{[v]:`Progress`,[b]:EP}],[0,{[v]:`OwnerId`,[b]:GN}],[0,{[v]:`Description`,[b]:xA}],[1,{[v]:`VolumeSize`,[b]:_I}],[2,{[v]:`Encrypted`,[b]:cj}],[0,{[v]:`KmsKeyId`,[b]:IM}],[0,{[v]:`DataEncryptionKeyId`,[b]:oA}]]],Fz=[3,x,PE,0,[vC,bE,jh,MO,Mb],[0,0,1,4,0]],Iz=[3,x,mE,0,[Kb,Um,g],[[()=>PB,{[b]:kb}],[0,{[v]:`AdditionalInfo`,[b]:ZO}],[2,{[v]:`DryRun`,[b]:_}]],1],Lz=[3,x,hE,0,[TE],[[()=>KB,{[v]:`InstancesSet`,[b]:SM}]]],Rz=[3,x,GE,0,[Vg,kC],[[0,{[v]:`Code`,[b]:tA}],[0,{[v]:`Message`,[b]:yN}]]],zz=[3,x,gE,0,[Kb,Zy,VE,g,dy],[[()=>PB,{[b]:kb}],2,2,[2,{[v]:`DryRun`,[b]:_}],[2,{[v]:`Force`,[b]:mj}]],1],Bz=[3,x,_E,0,[DE],[[()=>KB,{[v]:`InstancesSet`,[b]:SM}]]],Vz=[3,x,lD,0,[lh,Lv,QS,cg,lw,Hm,gb,dD,UT,sw,dv,sx,Nw,Ih,BD,kE,sD,oO,Hh,Vm,oh,$g,_C],[[0,{[v]:`AvailabilityZoneId`,[b]:dk}],[1,{[v]:`EnableLniAtDeviceIndex`,[b]:HA}],[2,{[v]:`MapCustomerOwnedIpOnLaunch`,[b]:$M}],[0,{[v]:`CustomerOwnedIpv4Pool`,[b]:Wk}],[0,{[v]:`OwnerId`,[b]:GN}],[2,{[v]:`AssignIpv6AddressOnCreation`,[b]:XO}],[()=>yV,{[v]:`Ipv6CidrBlockAssociationSet`,[b]:Kj}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`SubnetArn`,[b]:KP}],[0,{[v]:`OutpostArn`,[b]:UN}],[2,{[v]:`EnableDns64`,[b]:DA}],[2,{[v]:`Ipv6Native`,[b]:aM}],[()=>Sz,{[v]:`PrivateDnsNameOptionsOnLaunch`,[b]:aP}],[()=>WI,{[v]:`BlockPublicAccessStates`,[b]:Ek}],[0,{[v]:`Type`,[b]:ZF}],[0,{[v]:`SubnetId`,[b]:cF}],[0,{[v]:`State`,[b]:kF}],[0,{[v]:`VpcId`,[b]:sI}],[0,{[v]:`CidrBlock`,[b]:jk}],[1,{[v]:`AvailableIpAddressCount`,[b]:YO}],[0,{[v]:`AvailabilityZone`,[b]:uk}],[2,{[v]:`DefaultForAz`,[b]:cA}],[2,{[v]:`MapPublicIpOnLaunch`,[b]:dN}]]],Hz=[3,x,KT,0,[sD,FE],[[0,{[v]:`State`,[b]:kF}],[0,{[v]:`StatusMessage`,[b]:lF}]]],Uz=[3,x,aE,0,[Wm,hb,vb,tb,Zx],[[0,{[v]:`AssociationId`,[b]:QO}],[0,{[v]:`Ipv6CidrBlock`,[b]:Gj}],[()=>Hz,{[v]:`Ipv6CidrBlockState`,[b]:qj}],[0,{[v]:`Ipv6AddressAttribute`,[b]:Fj}],[0,{[v]:`IpSource`,[b]:wM}]]],Wz=[3,x,ID,0,[dS,qD],[[0,{[v]:`Key`,[b]:NM}],[0,{[v]:`Value`,[b]:rI}]]],Gz=[3,x,AD,0,[IT,dD],[[0,{[v]:`ResourceType`,[b]:VP}],[()=>SV,{[b]:ID}]]],Kz=[3,x,_D,0,[Kb,dy,VE,g],[[()=>PB,{[b]:kb}],2,2,[2,{[v]:`DryRun`,[b]:_}]],1],qz=[3,x,vD,0,[bD],[[()=>KB,{[v]:`InstancesSet`,[b]:SM}]]],Jz=[3,x,$D,0,[V_,Xg,z_,eO,AO],[[1,{[v]:`DefaultVCpus`,[b]:bA}],[1,{[v]:`DefaultCores`,[b]:aA}],[1,{[v]:`DefaultThreadsPerCore`,[b]:vA}],[()=>gB,{[v]:`ValidCores`,[b]:aI}],[()=>wV,{[v]:`ValidThreadsPerCore`,[b]:bI}]]],Yz=[3,x,IO,0,[lh,sw,tD,uS,dD,OO,vy,JS,RD,ZE,bw,lO,fO,iD,CE,oh,sD,Fg,Ch,ly,hS],[[0,{[v]:`AvailabilityZoneId`,[b]:dk}],[0,{[v]:`OutpostArn`,[b]:UN}],[0,{[v]:`SourceVolumeId`,[b]:TF}],[1,{[v]:`Iops`,[b]:MM}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[0,{[v]:`VolumeType`,[b]:yI}],[2,{[v]:`FastRestored`,[b]:dj}],[2,{[v]:`MultiAttachEnabled`,[b]:YM}],[1,{[v]:`Throughput`,[b]:YF}],[0,{[v]:`SseType`,[b]:SF}],[()=>vz,{[v]:`Operator`,[b]:QN}],[1,{[v]:`VolumeInitializationRate`,[b]:cI}],[0,{[v]:`VolumeId`,[b]:lI}],[1,{[v]:`Size`,[b]:OF}],[0,{[v]:`SnapshotId`,[b]:sF}],[0,{[v]:`AvailabilityZone`,[b]:uk}],[0,{[v]:`Status`,[b]:AF}],[4,{[v]:`CreateTime`,[b]:eA}],[()=>OV,{[v]:`AttachmentSet`,[b]:ck}],[2,{[v]:`Encrypted`,[b]:cj}],[0,{[v]:`KmsKeyId`,[b]:IM}]]],Xz=[3,x,YD,0,[C_,Qm,bx,ov,fO,kb,tv,sD,nh],[[2,{[v]:`DeleteOnTermination`,[b]:hA}],[0,{[v]:`AssociatedResource`,[b]:ak}],[0,{[v]:`InstanceOwningService`,[b]:lM}],[1,{[v]:`EbsCardIndex`,[b]:wA}],[0,{[v]:`VolumeId`,[b]:lI}],[0,{[v]:`InstanceId`,[b]:Qj}],[0,{[v]:`Device`,[b]:SA}],[0,{[v]:`Status`,[b]:AF}],[4,{[v]:`AttachTime`,[b]:lk}]]],Zz=[3,x,yO,0,[fO,xC,FE,jD,yD,FD,ND,SD,_w,dw,yw,vw,pw,cT,YE,ay],[[0,{[v]:`VolumeId`,[b]:lI}],[0,{[v]:`ModificationState`,[b]:hN}],[0,{[v]:`StatusMessage`,[b]:lF}],[1,{[v]:`TargetSize`,[b]:WF}],[1,{[v]:`TargetIops`,[b]:LF}],[0,{[v]:`TargetVolumeType`,[b]:JF}],[1,{[v]:`TargetThroughput`,[b]:KF}],[2,{[v]:`TargetMultiAttachEnabled`,[b]:RF}],[1,{[v]:`OriginalSize`,[b]:YN}],[1,{[v]:`OriginalIops`,[b]:qN}],[0,{[v]:`OriginalVolumeType`,[b]:ZN}],[1,{[v]:`OriginalThroughput`,[b]:XN}],[2,{[v]:`OriginalMultiAttachEnabled`,[b]:JN}],[1,{[v]:`Progress`,[b]:EP}],[4,{[v]:`StartTime`,[b]:xF}],[4,{[v]:`EndTime`,[b]:aj}]]],Qz=[3,x,LO,0,[lw,rS,gb,Uh,wb,uv,dD,Ih,oO,sD,Hh,S_],[[0,{[v]:`OwnerId`,[b]:GN}],[0,{[v]:`InstanceTenancy`,[b]:AM}],[()=>NV,{[v]:`Ipv6CidrBlockAssociationSet`,[b]:Kj}],[()=>jV,{[v]:`CidrBlockAssociationSet`,[b]:Mk}],[2,{[v]:`IsDefault`,[b]:Jj}],[()=>tB,{[v]:`EncryptionControl`,[b]:EA}],[()=>SV,{[v]:`TagSet`,[b]:HF}],[()=>WI,{[v]:`BlockPublicAccessStates`,[b]:Ek}],[0,{[v]:`VpcId`,[b]:sI}],[0,{[v]:`State`,[b]:kF}],[0,{[v]:`CidrBlock`,[b]:jk}],[0,{[v]:`DhcpOptionsId`,[b]:mA}]]],$z=[3,x,XD,0,[Wm,Hh,Gh],[[0,{[v]:`AssociationId`,[b]:QO}],[0,{[v]:`CidrBlock`,[b]:jk}],[()=>eB,{[v]:`CidrBlockState`,[b]:Pk}]]],eB=[3,x,QD,0,[sD,FE],[[0,{[v]:`State`,[b]:kF}],[0,{[v]:`StatusMessage`,[b]:lF}]]],tB=[3,x,tO,0,[oO,aO,jC,sD,IE,_T,dD],[[0,{[v]:`VpcId`,[b]:sI}],[0,{[v]:`VpcEncryptionControlId`,[b]:oI}],[0,{[v]:`Mode`,[b]:xN}],[0,{[v]:`State`,[b]:kF}],[0,{[v]:`StateMessage`,[b]:uF}],[()=>iB,{[v]:`ResourceExclusions`,[b]:MP}],[()=>SV,{[v]:`TagSet`,[b]:HF}]]],nB=[3,x,nO,0,[jC,Ob,Vv,qC,wO,SO,MS,gO,pv],[0,0,0,0,0,0,0,0,0],1],rB=[3,x,rO,0,[sD,IE],[[0,{[v]:`State`,[b]:kF}],[0,{[v]:`StateMessage`,[b]:uF}]]],iB=[3,x,iO,0,[Eb,Bv,KC,CO,TO,GS,hO,fv],[[()=>rB,{[v]:`InternetGateway`,[b]:Xj}],[()=>rB,{[v]:`EgressOnlyInternetGateway`,[b]:GA}],[()=>rB,{[v]:`NatGateway`,[b]:kN}],[()=>rB,{[v]:`VirtualPrivateGateway`,[b]:mI}],[()=>rB,{[v]:`VpcPeering`,[b]:hI}],[()=>rB,{[v]:`Lambda`,[b]:JM}],[()=>rB,{[v]:`VpcLattice`,[b]:uI}],[()=>rB,{[v]:`ElasticFileSystem`,[b]:OA}]]],aB=[3,x,sO,0,[Wm,hb,vb,PC,Nx,tb,Zx],[[0,{[v]:`AssociationId`,[b]:QO}],[0,{[v]:`Ipv6CidrBlock`,[b]:Gj}],[()=>eB,{[v]:`Ipv6CidrBlockState`,[b]:qj}],[0,{[v]:`NetworkBorderGroup`,[b]:CN}],[0,{[v]:`Ipv6Pool`,[b]:mM}],[0,{[v]:`Ipv6AddressAttribute`,[b]:Fj}],[0,{[v]:`IpSource`,[b]:wM}]]],oB=`unit`,sB=[1,x,th,0,[0,{[b]:y}]],cB=[1,x,ch,0,[()=>zI,{[b]:y}]],lB=[1,x,uh,0,[()=>RI,{[b]:y}]],uB=[1,x,fh,0,[()=>BI,{[b]:y}]],dB=[1,x,mh,0,[()=>VI,{[b]:y}]],fB=[1,x,Bh,0,[0,{[b]:y}]],pB=[1,x,Oh,0,[()=>UI,{[b]:y}]],mB=[1,x,kh,0,[()=>UI,{[b]:Dh}]],hB=[1,x,Ph,0,[0,{[b]:y}]],gB=[1,x,Kh,0,[1,{[b]:y}]],_B=[1,x,n_,0,[()=>RL,{[b]:y}]],vB=[1,x,sv,0,[()=>BL,{[b]:y}]],yB=[1,x,gv,0,[()=>KL,{[b]:y}]],bB=[1,x,Sv,0,[()=>qL,{[b]:y}]],xB=[1,x,Ev,0,[()=>YL,{[b]:y}]],SB=[1,x,jv,0,[()=>JL,{[b]:y}]],CB=[1,x,iv,0,[0,{[b]:av}]],wB=[1,x,_y,0,[()=>eR,{[b]:Sy}]],TB=[1,x,py,0,[()=>tR,{[b]:y}]],EB=[1,x,ky,0,[()=>oR,{[b]:y}]],DB=[1,x,jy,0,[()=>lR,{[b]:y}]],OB=[1,x,My,0,[0,{[b]:_j}]],kB=[1,x,Hb,0,[0,{[b]:Wb}]],AB=[1,x,Zb,0,[()=>mR,{[b]:y}]],jB=[1,x,xb,0,[()=>vR,0]],MB=[1,x,fb,0,[()=>CR,{[b]:y}]],NB=[1,x,mb,0,[()=>wR,{[b]:y}]],PB=[1,x,Ub,0,[0,{[b]:kb}]],FB=[1,x,Ib,0,[()=>TR,{[b]:y}]],IB=[1,x,jb,0,[()=>ER,{[b]:y}]],LB=[1,x,Lb,0,[()=>DR,{[b]:y}]],RB=[1,x,$b,0,[()=>bR,{[b]:y}]],zB=[1,x,dx,0,[()=>NR,{[b]:y}]],BB=[1,x,px,0,[()=>IR,{[b]:y}]],VB=[1,x,wx,0,[()=>zR,{[b]:y}]],HB=[1,x,zx,0,[()=>BR,{[b]:y}]],UB=[1,x,Vx,0,[()=>HR,{[b]:y}]],WB=[1,x,Hx,0,[()=>UR,{[b]:y}]],GB=[1,x,Wx,0,[()=>WR,{[b]:y}]],KB=[1,x,Lx,0,[()=>KR,{[b]:y}]],qB=[1,x,eS,0,[()=>JR,{[b]:y}]],JB=[1,x,Dx,0,[()=>YR,{[b]:y}]],YB=[1,x,Ox,0,[()=>XR,{[b]:y}]],XB=[1,x,vS,0,[0,{[b]:_S}]],ZB=[1,x,SS,0,[0,{[b]:xS}]],QB=[1,x,TS,0,[()=>QR,{[b]:y}]],$B=[1,x,PS,0,[()=>ez,{[b]:y}]],eV=[1,x,LS,0,[()=>tz,{[b]:y}]],tV=[1,x,nC,0,[()=>rz,{[b]:y}]],nV=[1,x,LC,0,[()=>uz,{[b]:y}]],rV=[1,x,HC,0,[()=>pz,{[b]:y}]],iV=[1,x,iw,0,[0,{[b]:y}]],aV=[1,x,gw,0,[0,{[b]:Cw}]],oV=[1,x,Vw,0,[0,{[b]:y}]],sV=[1,x,Gw,0,[()=>Tz,{[b]:y}]],cV=[1,x,Dw,0,[()=>Dz,{[b]:y}]],lV=[1,x,yT,0,[()=>Az,{[b]:y}]],uV=[1,x,kT,0,[()=>kz,{[b]:y}]],dV=[1,x,PT,0,[0,{[b]:NT}]],fV=[1,x,AT,0,[()=>jz,{[b]:y}]],pV=[1,x,hT,0,[0,{[b]:y}]],mV=[1,x,$T,0,[0,{[b]:QT}]],hV=[1,x,tE,0,[0,{[b]:rE}]],gV=[1,x,vE,0,[0,{[b]:CE}]],_V=[1,x,jE,0,[()=>Pz,{[b]:y}]],vV=[1,x,yE,0,[0,{[b]:kE}]],yV=[1,x,oE,0,[()=>Uz,{[b]:y}]],bV=[1,x,NE,0,[()=>Vz,{[b]:y}]],xV=[1,x,HT,0,[0,{[b]:y}]],SV=[1,x,xD,0,[()=>Wz,{[b]:y}]],CV=[1,x,kD,0,[()=>Gz,{[b]:y}]],wV=[1,x,ED,0,[1,{[b]:y}]],TV=[1,x,VD,0,[0,{[b]:y}]],EV=[1,x,EO,0,[0,{[b]:y}]],DV=[1,x,kO,0,[0,{[b]:y}]],OV=[1,x,JD,0,[()=>Xz,{[b]:y}]],kV=[1,x,uO,0,[0,{[b]:fO}]],AV=[1,x,_O,0,[()=>Yz,{[b]:y}]],jV=[1,x,ZD,0,[()=>$z,{[b]:y}]],MV=[1,x,dO,0,[0,{[b]:oO}]],NV=[1,x,cO,0,[()=>aB,{[b]:y}]],PV=[1,x,vO,0,[()=>Qz,{[b]:y}]],FV=[1,x,zO,0,[0,{[b]:y}]],IV=[1,x,HO,0,[0,{[b]:VO}]],LV=[1,x,GO,0,[0,{[b]:WO}]],RV=[9,x,ah,0,()=>FI,()=>Xz],zV=[9,x,wg,0,()=>ZI,()=>QI],BV=[9,x,rg,0,()=>tL,()=>nL],VV=[9,x,ig,0,()=>rL,()=>ZR],HV=[9,x,Eg,0,()=>iL,()=>Pz],UV=[9,x,Dg,0,()=>aL,()=>oL],WV=[9,x,zg,0,()=>sL,()=>Yz],GV=[9,x,Bg,0,()=>cL,()=>lL],KV=[9,x,p_,0,()=>dL,()=>fL],qV=[9,x,F_,0,()=>pL,()=>oB],JV=[9,x,I_,0,()=>mL,()=>oB],YV=[9,x,Y_,0,()=>hL,()=>oB],XV=[9,x,X_,0,()=>gL,()=>oB],ZV=[9,x,Yg,0,()=>_L,()=>vL],QV=[9,x,u_,0,()=>yL,()=>bL],$V=[9,x,d_,0,()=>xL,()=>SL],eH=[9,x,l_,0,()=>CL,()=>wL],tH=[9,x,v_,0,()=>TL,()=>EL],nH=[9,x,O_,0,()=>DL,()=>OL],rH=[9,x,L_,0,()=>kL,()=>AL],iH=[9,x,R_,0,()=>jL,()=>ML],aH=[9,x,Z_,0,()=>NL,()=>PL],oH=[9,x,Q_,0,()=>FL,()=>IL],sH=[9,x,$_,0,()=>LL,()=>Xz],cH=[9,x,Ty,0,()=>iR,()=>aR],lH=[9,x,qb,0,()=>hR,()=>gR],uH=[9,x,dC,0,()=>oz,()=>oB],dH=[9,x,EC,0,()=>sz,()=>cz],fH=[9,x,ET,0,()=>Oz,()=>oB],pH=[9,x,OT,0,()=>Nz,()=>jz],mH=[9,x,EE,0,()=>Iz,()=>Lz],hH=[9,x,OE,0,()=>zz,()=>Bz],gH=[9,x,hD,0,()=>Kz,()=>qz],_H=n=>({apiVersion:`2016-11-15`,base64Decoder:n?.base64Decoder??ns,base64Encoder:n?.base64Encoder??is,disableHostPrefix:n?.disableHostPrefix??!1,endpointProvider:n?.endpointProvider??Fm,extensions:n?.extensions??[],httpAuthSchemeProvider:n?.httpAuthSchemeProvider??lp,httpAuthSchemes:n?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new fu}],logger:n?.logger??new kd,protocol:n?.protocol??Hd,protocolSettings:n?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:jI,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:n?.serviceId??`EC2`,urlParser:n?.urlParser??ru,utf8Decoder:n?.utf8Decoder??e,utf8Encoder:n?.utf8Encoder??t}),vH=e=>{let t=sm(e),n=()=>t().then(bd),r=_H(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??sd,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??rm({serviceId:r.serviceId,clientVersion:Ap.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??am(`Region is missing`),requestHandler:hs.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Jd),sha256:e?.sha256??nm,streamCollector:e?.streamCollector??_s,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},yH=e=>({setRegion(t){e.region=t},region(){return e.region}}),bH=e=>({region:e.region()}),xH=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},SH=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),CH=(e,t)=>{let n=Object.assign(yH(e),Ed(e),xo(e),xH(e));return t.forEach(e=>e.configure(n)),Object.assign(e,bH(n),Dd(n),So(n),SH(n))},wH=class extends pd{config;constructor(...[e]){let t=vH(e||{});super(t),this.initConfig=t,this.config=CH(up(Xf(ko(jf(Qf(pl(dp(t))))))),e?.extensions||[]),this.middlewareStack.use(Rs(this.config)),this.middlewareStack.use(Ef(this.config)),this.middlewareStack.use(ap(this.config)),this.middlewareStack.use(Ff(this.config)),this.middlewareStack.use(Mo(this.config)),this.middlewareStack.use(Fo(this.config)),this.middlewareStack.use(Ro(this.config)),this.middlewareStack.use(Go(this.config,{httpAuthSchemeParametersProvider:sp,identityProviderConfigProvider:async e=>new cl({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Zo(this.config))}destroy(){super.destroy()}},TH=async(e,t,n)=>({operation:zo(t).operation,region:await Bo(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function EH(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var DH=e=>{let t=[];switch(e.operation){default:t.push(EH(e))}return t},OH=e=>{let t=rd(e);return Object.assign(t,{authSchemePreference:Bo(e.authSchemePreference??[])})},kH=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),AH={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},jH=`@aws-sdk/client-iam`,MH=`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,NH=`3.1004.0`,PH={build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-iam`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo iam`,test:`yarn g:vitest run --passWithNoTests`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},FH=`./dist-cjs/index.js`,IH=`./dist-types/index.d.ts`,LH=`./dist-es/index.js`,RH={"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.973.18`,"@aws-sdk/credential-provider-node":`^3.972.18`,"@aws-sdk/middleware-host-header":`^3.972.7`,"@aws-sdk/middleware-logger":`^3.972.7`,"@aws-sdk/middleware-recursion-detection":`^3.972.7`,"@aws-sdk/middleware-user-agent":`^3.972.19`,"@aws-sdk/region-config-resolver":`^3.972.7`,"@aws-sdk/types":`^3.973.5`,"@aws-sdk/util-endpoints":`^3.996.4`,"@aws-sdk/util-user-agent-browser":`^3.972.7`,"@aws-sdk/util-user-agent-node":`^3.973.4`,"@smithy/config-resolver":`^4.4.10`,"@smithy/core":`^3.23.8`,"@smithy/fetch-http-handler":`^5.3.13`,"@smithy/hash-node":`^4.2.11`,"@smithy/invalid-dependency":`^4.2.11`,"@smithy/middleware-content-length":`^4.2.11`,"@smithy/middleware-endpoint":`^4.4.22`,"@smithy/middleware-retry":`^4.4.39`,"@smithy/middleware-serde":`^4.2.12`,"@smithy/middleware-stack":`^4.2.11`,"@smithy/node-config-provider":`^4.3.11`,"@smithy/node-http-handler":`^4.4.14`,"@smithy/protocol-http":`^5.3.11`,"@smithy/smithy-client":`^4.12.2`,"@smithy/types":`^4.13.0`,"@smithy/url-parser":`^4.2.11`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.38`,"@smithy/util-defaults-mode-node":`^4.2.41`,"@smithy/util-endpoints":`^3.3.2`,"@smithy/util-middleware":`^4.2.11`,"@smithy/util-retry":`^4.2.11`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.2.11`,tslib:`^2.6.2`},zH={"@smithy/snapshot-testing":`^1.0.9`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},BH={node:`>=20.0.0`},VH={"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},HH=[`dist-*/**`],UH={name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},WH=`Apache-2.0`,GH={"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},KH=`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,qH={type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`},JH={name:jH,description:MH,version:NH,scripts:PH,main:FH,types:IH,module:LH,sideEffects:!1,dependencies:RH,devDependencies:zH,engines:BH,typesVersions:VH,files:HH,author:UH,license:WH,browser:GH,"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:KH,repository:qH},YH=`required`,XH=`fn`,ZH=`argv`,QH=`ref`,$H=`properties`,eU=`headers`,tU=`authSchemes`,nU=`name`,rU=`signingRegion`,iU=!0,aU=`isSet`,oU=`booleanEquals`,sU=`error`,cU=`endpoint`,lU=`tree`,uU=`PartitionResult`,dU=`stringEquals`,fU=`sigv4`,pU={[YH]:!0,default:!1,type:`boolean`},mU={[YH]:!1,type:`string`},hU={[QH]:`Endpoint`},gU={[XH]:oU,[ZH]:[{[QH]:`UseFIPS`},!0]},_U={[XH]:oU,[ZH]:[{[QH]:`UseDualStack`},!0]},vU={},yU={[XH]:dU,[ZH]:[{[XH]:`getAttr`,[ZH]:[{[QH]:uU},`name`]},`aws`]},bU={[XH]:`getAttr`,[ZH]:[{[QH]:uU},`name`]},xU={[XH]:oU,[ZH]:[{[QH]:`UseFIPS`},!1]},SU={[tU]:[{[nU]:fU,[rU]:`us-east-1`}]},CU={[XH]:dU,[ZH]:[bU,`aws-cn`]},wU={[tU]:[{[nU]:fU,[rU]:`cn-north-1`}]},TU={[XH]:oU,[ZH]:[{[QH]:`UseDualStack`},!1]},EU={[XH]:dU,[ZH]:[bU,`aws-us-gov`]},DU={url:`https://iam.us-gov.api.aws`,[$H]:{[tU]:[{[nU]:fU,[rU]:`us-gov-west-1`}]},[eU]:{}},OU={url:`https://iam.us-gov.amazonaws.com`,[$H]:{[tU]:[{[nU]:fU,[rU]:`us-gov-west-1`}]},[eU]:{}},kU={[XH]:dU,[ZH]:[bU,`aws-iso`]},AU={[tU]:[{[nU]:fU,[rU]:`us-iso-east-1`}]},jU={[XH]:dU,[ZH]:[bU,`aws-iso-b`]},MU={[tU]:[{[nU]:fU,[rU]:`us-isob-east-1`}]},NU={[XH]:`getAttr`,[ZH]:[{[QH]:uU},`supportsFIPS`]},PU={[XH]:oU,[ZH]:[!0,{[XH]:`getAttr`,[ZH]:[{[QH]:uU},`supportsDualStack`]}]},FU={[tU]:[{[nU]:fU,[rU]:`{PartitionResult#implicitGlobalRegion}`}]},IU=[{[QH]:`Region`}],LU={version:`1.0`,parameters:{UseDualStack:pU,UseFIPS:pU,Endpoint:mU,Region:mU},rules:[{conditions:[{[XH]:aU,[ZH]:[hU]}],rules:[{conditions:[gU],error:`Invalid Configuration: FIPS and custom endpoint are not supported`,type:sU},{rules:[{conditions:[_U],error:`Invalid Configuration: Dualstack and custom endpoint are not supported`,type:sU},{endpoint:{url:hU,[$H]:vU,[eU]:vU},type:cU}],type:lU}],type:lU},{rules:[{conditions:[{[XH]:aU,[ZH]:IU}],rules:[{conditions:[{[XH]:`aws.partition`,[ZH]:IU,assign:uU}],rules:[{conditions:[yU,xU,_U],endpoint:{url:`https://iam.global.api.aws`,[$H]:SU,[eU]:vU},type:cU},{conditions:[yU,gU,_U],endpoint:{url:`https://iam-fips.global.api.aws`,[$H]:SU,[eU]:vU},type:cU},{conditions:[CU,xU,_U],endpoint:{url:`https://iam.global.api.amazonwebservices.com.cn`,[$H]:wU,[eU]:vU},type:cU},{conditions:[CU,xU,TU],endpoint:{url:`https://iam.cn-north-1.amazonaws.com.cn`,[$H]:wU,[eU]:vU},type:cU},{conditions:[EU,xU,_U],endpoint:DU,type:cU},{conditions:[EU,gU,_U],endpoint:DU,type:cU},{conditions:[EU,xU,TU],endpoint:OU,type:cU},{conditions:[EU,gU,TU],endpoint:OU,type:cU},{conditions:[kU,xU,TU],endpoint:{url:`https://iam.us-iso-east-1.c2s.ic.gov`,[$H]:AU,[eU]:vU},type:cU},{conditions:[kU,gU,TU],endpoint:{url:`https://iam-fips.us-iso-east-1.c2s.ic.gov`,[$H]:AU,[eU]:vU},type:cU},{conditions:[jU,xU,TU],endpoint:{url:`https://iam.us-isob-east-1.sc2s.sgov.gov`,[$H]:MU,[eU]:vU},type:cU},{conditions:[jU,gU,TU],endpoint:{url:`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,[$H]:MU,[eU]:vU},type:cU},{conditions:[{[XH]:dU,[ZH]:[bU,`aws-iso-e`]},xU,TU],endpoint:{url:`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,[$H]:{[tU]:[{[nU]:fU,[rU]:`eu-isoe-west-1`}]},[eU]:vU},type:cU},{conditions:[{[XH]:dU,[ZH]:[bU,`aws-iso-f`]},xU,TU],endpoint:{url:`https://iam.us-isof-south-1.csp.hci.ic.gov`,[$H]:{[tU]:[{[nU]:fU,[rU]:`us-isof-south-1`}]},[eU]:vU},type:cU},{conditions:[{[XH]:dU,[ZH]:[bU,`aws-eusc`]},xU,TU],endpoint:{url:`https://iam.eusc-de-east-1.amazonaws.eu`,[$H]:{[tU]:[{[nU]:fU,[rU]:`eusc-de-east-1`}]},[eU]:vU},type:cU},{conditions:[gU,_U],rules:[{conditions:[{[XH]:oU,[ZH]:[iU,NU]},PU],rules:[{endpoint:{url:`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,[$H]:FU,[eU]:vU},type:cU}],type:lU},{error:`FIPS and DualStack are enabled, but this partition does not support one or both`,type:sU}],type:lU},{conditions:[gU,TU],rules:[{conditions:[{[XH]:oU,[ZH]:[NU,iU]}],rules:[{endpoint:{url:`https://iam-fips.{PartitionResult#dnsSuffix}`,[$H]:FU,[eU]:vU},type:cU}],type:lU},{error:`FIPS is enabled but this partition does not support FIPS`,type:sU}],type:lU},{conditions:[xU,_U],rules:[{conditions:[PU],rules:[{endpoint:{url:`https://iam.{PartitionResult#dualStackDnsSuffix}`,[$H]:FU,[eU]:vU},type:cU}],type:lU},{error:`DualStack is enabled but this partition does not support DualStack`,type:sU}],type:lU},{endpoint:{url:`https://iam.{PartitionResult#dnsSuffix}`,[$H]:FU,[eU]:vU},type:cU}],type:lU}],type:lU},{error:`Invalid Configuration: Missing Region`,type:sU}],type:lU}]},RU=new ml({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),zU=(e,t={})=>RU.get(e,()=>Kl(LU,{endpointParams:e,logger:t.logger}));yl.aws=tu;var S=class e extends vd{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},BU=class e extends S{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VU=class e extends S{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HU=class e extends S{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},UU=class e extends S{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WU=class e extends S{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GU=class e extends S{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KU=class e extends S{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qU=class e extends S{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JU=class e extends S{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YU=class e extends S{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XU=class e extends S{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZU=class e extends S{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QU=class e extends S{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$U=class e extends S{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eW=class e extends S{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tW=class e extends S{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nW=class e extends S{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rW=class e extends S{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iW=class e extends S{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aW=class e extends S{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oW=class e extends S{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sW=class e extends S{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cW=class e extends S{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lW=class e extends S{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uW=class e extends S{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dW=class e extends S{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fW=class e extends S{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pW=class e extends S{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mW=class e extends S{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},hW=class e extends S{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gW=class e extends S{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_W=class e extends S{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vW=class e extends S{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yW=class e extends S{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bW=class e extends S{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xW=`Arn`,SW=`AttachmentCount`,CW=`AccessKey`,wW=`AccessKeyId`,TW=`AccessKeyMetadata`,EW=`AccountNotManagementOrDelegatedAdministratorException`,DW=`AttachedPolicy`,OW=`AttachedPermissionsBoundary`,kW=`AttachedPolicies`,AW=`AttachUserPolicy`,jW=`AttachUserPolicyRequest`,MW=`CreateAccessKey`,NW=`CreateAccessKeyRequest`,PW=`CreateAccessKeyResponse`,FW=`CreateDate`,IW=`CallerIsNotManagementAccountException`,LW=`ConcurrentModificationException`,RW=`CreatePolicyRequest`,zW=`CreatePolicyResponse`,BW=`CreatePolicy`,VW=`CredentialReportExpiredException`,HW=`CredentialReportNotPresentException`,UW=`CredentialReportNotReadyException`,WW=`CreateUser`,GW=`CreateUserRequest`,KW=`CreateUserResponse`,qW=`Description`,JW=`DeleteAccessKey`,YW=`DeleteAccessKeyRequest`,XW=`DeleteConflictException`,ZW=`DuplicateCertificateException`,QW=`DeletePolicyRequest`,$W=`DeletePolicy`,eG=`DuplicateSSHPublicKeyException`,tG=`DeleteUser`,nG=`DetachUserPolicyRequest`,rG=`DetachUserPolicy`,iG=`DeleteUserRequest`,aG=`DefaultVersionId`,oG=`Document`,sG=`EntityAlreadyExistsException`,cG=`EntityTemporarilyUnmodifiableException`,lG=`FeatureDisabledException`,uG=`FeatureEnabledException`,dG=`GetPolicy`,fG=`GetPolicyRequest`,pG=`GetPolicyResponse`,mG=`GetPolicyVersion`,hG=`GetPolicyVersionRequest`,gG=`GetPolicyVersionResponse`,_G=`GetUser`,vG=`GetUserRequest`,yG=`GetUserResponse`,bG=`IsAttachable`,xG=`InvalidAuthenticationCodeException`,SG=`InvalidCertificateException`,CG=`IsDefaultVersion`,wG=`InvalidInputException`,TG=`InvalidPublicKeyException`,EG=`IsTruncated`,DG=`InvalidUserTypeException`,OG=`Key`,kG=`KeyPairMismatchException`,AG=`ListAccessKeys`,jG=`ListAccessKeysRequest`,MG=`ListAccessKeysResponse`,NG=`ListAttachedUserPolicies`,PG=`ListAttachedUserPoliciesRequest`,FG=`ListAttachedUserPoliciesResponse`,IG=`LimitExceededException`,LG=`ListPoliciesRequest`,RG=`ListPoliciesResponse`,zG=`ListPolicies`,BG=`ListUsers`,VG=`ListUsersRequest`,HG=`ListUsersResponse`,UG=`Message`,WG=`MalformedCertificateException`,GG=`MaxItems`,KG=`MalformedPolicyDocumentException`,qG=`Marker`,JG=`NoSuchEntityException`,YG=`OnlyAttached`,XG=`OpenIdIdpCommunicationErrorException`,ZG=`OrganizationNotFoundException`,QG=`OrganizationNotInAllFeaturesModeException`,$G=`PolicyArn`,eK=`PermissionsBoundary`,tK=`PermissionsBoundaryArn`,nK=`PermissionsBoundaryType`,rK=`PermissionsBoundaryUsageCount`,iK=`PolicyDocument`,aK=`PolicyEvaluationException`,oK=`PolicyId`,sK=`PasswordLastUsed`,cK=`PolicyName`,lK=`PolicyNotAttachableException`,uK=`PasswordPolicyViolationException`,dK=`PathPrefix`,fK=`PolicyUsageFilter`,pK=`PolicyVersion`,mK=`Path`,hK=`Policy`,gK=`Policies`,_K=`ReportGenerationLimitExceededException`,vK=`Status`,yK=`SecretAccessKey`,bK=`ServiceAccessNotEnabledException`,xK=`ServiceFailureException`,SK=`ServiceNotSupportedException`,CK=`Scope`,wK=`Tags`,TK=`Tag`,EK=`UpdateAccessKey`,DK=`UpdateAccessKeyRequest`,OK=`UpdateDate`,kK=`UnmodifiableEntityException`,AK=`UserId`,jK=`UserName`,MK=`UnrecognizedPublicKeyEncodingException`,NK=`User`,PK=`Users`,FK=`VersionId`,IK=`Value`,LK=`accessKeyMetadataListType`,RK=`accessKeySecretType`,zK=`attachedPoliciesListType`,C=`awsQueryError`,w=`client`,T=`error`,E=`httpError`,D=`message`,BK=`policyListType`,VK=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,HK=`server`,UK=`tagListType`,WK=`userListType`,O=`com.amazonaws.iam`,GK=Gs.for(VK),KK=[-3,VK,`IAMServiceException`,0,[],[]];GK.registerError(KK,S);var k=Gs.for(O),qK=[-3,O,EW,{[T]:w,[E]:400},[UG],[0]];k.registerError(qK,UU);var JK=[-3,O,IW,{[T]:w,[E]:400},[UG],[0]];k.registerError(JK,sW);var YK=[-3,O,LW,{[C]:[`ConcurrentModification`,409],[T]:w,[E]:409},[D],[0]];k.registerError(YK,BU);var XK=[-3,O,VW,{[C]:[`ReportExpired`,410],[T]:w,[E]:410},[D],[0]];k.registerError(XK,uW);var ZK=[-3,O,HW,{[C]:[`ReportNotPresent`,410],[T]:w,[E]:410},[D],[0]];k.registerError(ZK,dW);var QK=[-3,O,UW,{[C]:[`ReportInProgress`,404],[T]:w,[E]:404},[D],[0]];k.registerError(QK,fW);var $K=[-3,O,XW,{[C]:[`DeleteConflict`,409],[T]:w,[E]:409},[D],[0]];k.registerError($K,tW);var eq=[-3,O,ZW,{[C]:[`DuplicateCertificate`,409],[T]:w,[E]:409},[D],[0]];k.registerError(eq,_W);var tq=[-3,O,eG,{[C]:[`DuplicateSSHPublicKey`,400],[T]:w,[E]:400},[D],[0]];k.registerError(tq,yW);var nq=[-3,O,sG,{[C]:[`EntityAlreadyExists`,409],[T]:w,[E]:409},[D],[0]];k.registerError(nq,KU);var rq=[-3,O,cG,{[C]:[`EntityTemporarilyUnmodifiable`,409],[T]:w,[E]:409},[D],[0]];k.registerError(rq,YU);var iq=[-3,O,lG,{[C]:[`FeatureDisabled`,404],[T]:w,[E]:404},[D],[0]];k.registerError(iq,aW);var aq=[-3,O,uG,{[C]:[`FeatureEnabled`,409],[T]:w,[E]:409},[D],[0]];k.registerError(aq,cW);var oq=[-3,O,xG,{[C]:[`InvalidAuthenticationCode`,403],[T]:w,[E]:403},[D],[0]];k.registerError(oq,oW);var sq=[-3,O,SG,{[C]:[`InvalidCertificate`,400],[T]:w,[E]:400},[D],[0]];k.registerError(sq,vW);var cq=[-3,O,wG,{[C]:[`InvalidInput`,400],[T]:w,[E]:400},[D],[0]];k.registerError(cq,WU);var lq=[-3,O,TG,{[C]:[`InvalidPublicKey`,400],[T]:w,[E]:400},[D],[0]];k.registerError(lq,bW);var uq=[-3,O,DG,{[C]:[`InvalidUserType`,400],[T]:w,[E]:400},[D],[0]];k.registerError(uq,XU);var dq=[-3,O,kG,{[C]:[`KeyPairMismatch`,400],[T]:w,[E]:400},[D],[0]];k.registerError(dq,hW);var fq=[-3,O,IG,{[C]:[`LimitExceeded`,409],[T]:w,[E]:409},[D],[0]];k.registerError(fq,GU);var pq=[-3,O,WG,{[C]:[`MalformedCertificate`,400],[T]:w,[E]:400},[D],[0]];k.registerError(pq,gW);var mq=[-3,O,KG,{[C]:[`MalformedPolicyDocument`,400],[T]:w,[E]:400},[D],[0]];k.registerError(mq,$U);var hq=[-3,O,JG,{[C]:[`NoSuchEntity`,404],[T]:w,[E]:404},[D],[0]];k.registerError(hq,VU);var gq=[-3,O,XG,{[C]:[`OpenIdIdpCommunicationError`,400],[T]:w,[E]:400},[D],[0]];k.registerError(gq,QU);var _q=[-3,O,ZG,{[T]:w,[E]:400},[UG],[0]];k.registerError(_q,nW);var vq=[-3,O,QG,{[T]:w,[E]:400},[UG],[0]];k.registerError(vq,rW);var yq=[-3,O,uK,{[C]:[`PasswordPolicyViolation`,400],[T]:w,[E]:400},[D],[0]];k.registerError(yq,ZU);var bq=[-3,O,aK,{[C]:[`PolicyEvaluation`,500],[T]:HK,[E]:500},[D],[0]];k.registerError(bq,mW);var xq=[-3,O,lK,{[C]:[`PolicyNotAttachable`,400],[T]:w,[E]:400},[D],[0]];k.registerError(xq,JU);var Sq=[-3,O,_K,{[C]:[`ReportGenerationLimitExceeded`,409],[T]:w,[E]:409},[D],[0]];k.registerError(Sq,lW);var Cq=[-3,O,bK,{[T]:w,[E]:400},[UG],[0]];k.registerError(Cq,iW);var wq=[-3,O,xK,{[C]:[`ServiceFailure`,500],[T]:HK,[E]:500},[D],[0]];k.registerError(wq,HU);var Tq=[-3,O,SK,{[C]:[`NotSupportedService`,404],[T]:w,[E]:404},[D],[0]];k.registerError(Tq,eW);var Eq=[-3,O,kK,{[C]:[`UnmodifiableEntity`,400],[T]:w,[E]:400},[D],[0]];k.registerError(Eq,qU);var Dq=[-3,O,MK,{[C]:[`UnrecognizedPublicKeyEncoding`,400],[T]:w,[E]:400},[D],[0]];k.registerError(Dq,pW);var Oq=[GK,k],kq=[0,O,RK,8,0],Aq=[3,O,CW,0,[jK,wW,vK,yK,FW],[0,0,0,[()=>kq,0],4],4],jq=[3,O,TW,0,[jK,wW,vK,FW],[0,0,0,4]],Mq=[3,O,OW,0,[nK,tK],[0,0]],Nq=[3,O,DW,0,[cK,$G],[0,0]],Pq=[3,O,jW,0,[jK,$G],[0,0],2],Fq=[3,O,NW,0,[jK],[0]],Iq=[3,O,PW,0,[CW],[[()=>Aq,0]],1],Lq=[3,O,RW,0,[cK,iK,mK,qW,wK],[0,0,0,0,()=>mJ],2],Rq=[3,O,zW,0,[hK],[()=>aJ]],zq=[3,O,GW,0,[jK,mK,eK,wK],[0,0,0,()=>mJ],1],Bq=[3,O,KW,0,[NK],[()=>lJ]],Vq=[3,O,YW,0,[wW,jK],[0,0],1],Hq=[3,O,QW,0,[$G],[0],1],Uq=[3,O,iG,0,[jK],[0],1],Wq=[3,O,nG,0,[jK,$G],[0,0],2],Gq=[3,O,fG,0,[$G],[0],1],Kq=[3,O,pG,0,[hK],[()=>aJ]],qq=[3,O,hG,0,[$G,FK],[0,0],2],Jq=[3,O,gG,0,[pK],[()=>oJ]],Yq=[3,O,vG,0,[jK],[0]],Xq=[3,O,yG,0,[NK],[()=>lJ],1],Zq=[3,O,jG,0,[jK,qG,GG],[0,0,1]],Qq=[3,O,MG,0,[TW,EG,qG],[()=>dJ,2,0],1],$q=[3,O,PG,0,[jK,dK,qG,GG],[0,0,0,1],1],eJ=[3,O,FG,0,[kW,EG,qG],[()=>fJ,2,0]],tJ=[3,O,LG,0,[CK,YG,dK,fK,qG,GG],[0,2,0,0,0,1]],nJ=[3,O,RG,0,[gK,EG,qG],[()=>pJ,2,0]],rJ=[3,O,VG,0,[dK,qG,GG],[0,0,1]],iJ=[3,O,HG,0,[PK,EG,qG],[()=>hJ,2,0],1],aJ=[3,O,hK,0,[cK,oK,xW,mK,aG,SW,rK,bG,qW,FW,OK,wK],[0,0,0,0,0,1,1,2,0,4,4,()=>mJ]],oJ=[3,O,pK,0,[oG,FK,CG,FW],[0,0,2,4]],sJ=[3,O,TK,0,[OG,IK],[0,0],2],cJ=[3,O,DK,0,[wW,vK,jK],[0,0,0],2],lJ=[3,O,NK,0,[mK,jK,AK,xW,FW,sK,eK,wK],[0,0,0,0,4,4,()=>Mq,()=>mJ],5],uJ=`unit`,dJ=[1,O,LK,0,()=>jq],fJ=[1,O,zK,0,()=>Nq],pJ=[1,O,BK,0,()=>aJ],mJ=[1,O,UK,0,()=>sJ],hJ=[1,O,WK,0,()=>lJ],gJ=[9,O,AW,0,()=>Pq,()=>uJ],_J=[9,O,MW,0,()=>Fq,()=>Iq],vJ=[9,O,BW,0,()=>Lq,()=>Rq],yJ=[9,O,WW,0,()=>zq,()=>Bq],bJ=[9,O,JW,0,()=>Vq,()=>uJ],xJ=[9,O,$W,0,()=>Hq,()=>uJ],SJ=[9,O,tG,0,()=>Uq,()=>uJ],CJ=[9,O,rG,0,()=>Wq,()=>uJ],wJ=[9,O,dG,0,()=>Gq,()=>Kq],TJ=[9,O,mG,0,()=>qq,()=>Jq],EJ=[9,O,_G,0,()=>Yq,()=>Xq],DJ=[9,O,AG,0,()=>Zq,()=>Qq],OJ=[9,O,NG,0,()=>$q,()=>eJ],kJ=[9,O,zG,0,()=>tJ,()=>nJ],AJ=[9,O,BG,0,()=>rJ,()=>iJ],jJ=[9,O,EK,0,()=>cJ,()=>uJ],MJ=n=>({apiVersion:`2010-05-08`,base64Decoder:n?.base64Decoder??ns,base64Encoder:n?.base64Encoder??is,disableHostPrefix:n?.disableHostPrefix??!1,endpointProvider:n?.endpointProvider??zU,extensions:n?.extensions??[],httpAuthSchemeProvider:n?.httpAuthSchemeProvider??DH,httpAuthSchemes:n?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new fu}],logger:n?.logger??new kd,protocol:n?.protocol??Vd,protocolSettings:n?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:Oq,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:n?.serviceId??`IAM`,urlParser:n?.urlParser??ru,utf8Decoder:n?.utf8Decoder??e,utf8Encoder:n?.utf8Encoder??t}),NJ=e=>{let t=sm(e),n=()=>t().then(bd),r=MJ(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??sd,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??rm({serviceId:r.serviceId,clientVersion:JH.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??am(`Region is missing`),requestHandler:hs.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Jd),sha256:e?.sha256??nm,streamCollector:e?.streamCollector??_s,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},PJ=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},FJ=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),IJ=(e,t)=>{let n=Object.assign(yH(e),Ed(e),xo(e),PJ(e));return t.forEach(e=>e.configure(n)),Object.assign(e,bH(n),Dd(n),So(n),FJ(n))},LJ=class extends pd{config;constructor(...[e]){let t=NJ(e||{});super(t),this.initConfig=t,this.config=IJ(OH(Xf(ko(jf(Qf(pl(kH(t))))))),e?.extensions||[]),this.middlewareStack.use(Rs(this.config)),this.middlewareStack.use(Ef(this.config)),this.middlewareStack.use(ap(this.config)),this.middlewareStack.use(Ff(this.config)),this.middlewareStack.use(Mo(this.config)),this.middlewareStack.use(Fo(this.config)),this.middlewareStack.use(Ro(this.config)),this.middlewareStack.use(Go(this.config,{httpAuthSchemeParametersProvider:TH,identityProviderConfigProvider:async e=>new cl({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Zo(this.config))}destroy(){super.destroy()}};function RJ(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&Eo.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var zJ={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},BJ=e=>({applyToStack:t=>{t.add(RJ(e),zJ)}}),VJ={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},HJ=VJ.WHEN_SUPPORTED,UJ={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},WJ=VJ.WHEN_SUPPORTED,GJ;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(GJ||={});var KJ;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(KJ||={});var qJ=GJ.CRC32,JJ=function(){function e(){this.crc32=new YJ}return e.prototype.update=function(e){Pp(e)||this.crc32.update(Np(e))},e.prototype.digest=function(){return Up(this,void 0,void 0,function(){return Wp(this,function(e){return[2,Fp(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new YJ},e}(),YJ=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=Gp(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^XJ[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),XJ=Ip([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]),ZJ=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Bo(t??HJ),responseChecksumValidation:Bo(n??WJ),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},QJ=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,`region`,{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,`region`,{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},$J={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function eY(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var tY={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},nY=e=>({applyToStack:t=>{t.add(eY(e),tY),t.addRelativeTo(QJ(e),$J)}}),rY=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new iY(Promise.resolve(e)))})),t)):i.set(r,new iY(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},oY=`sigv4-s3express`,sY=`X-Amz-S3session-Token`,cY=sY.toLowerCase(),lY=class extends td{async signWithCredentials(e,t,n){let r=uY(t);e.headers[cY]=t.sessionToken;let i=this;return dY(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=uY(t);return delete e.headers[cY],e.headers[sY]=t.sessionToken,e.query=e.query??{},e.query[sY]=t.sessionToken,dY(this,r),this.presign(e,n)}};function uY(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function dY(e,t){let n=setTimeout(()=>{throw Error(`SignatureV4S3Express credential override was created but not called.`)},10),r=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t))}var fY=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===oY;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(au(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,Eo.isInstance(r.request)&&i.sessionToken&&(r.request.headers[cY]=i.sessionToken)}}}return t(r)},pY={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},mY=e=>({applyToStack:t=>{t.add(fY(e),pY)}}),hY=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},gY=e=>e=>{throw e},_Y=(e,t)=>{},vY=e=>(t,n)=>async r=>{if(!Eo.isInstance(r.request))return t(r);let i=zo(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await hY(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||gY)(a));return(s.successHandler||_Y)(l.response,a),l},yY=e=>({applyToStack:t=>{t.addRelativeTo(vY(e),Xo)}}),bY=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new aY(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})},xY={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},SY=3e3,CY=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Oo.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300||!(typeof s?.stream==`function`||typeof s?.pipe==`function`||typeof s?.tee==`function`))return i;let c=s,l=s;s&&typeof s==`object`&&!(s instanceof Uint8Array)&&([c,l]=await Os(s)),a.body=l;let u=await wY(c,{streamCollector:async e=>cs(e,SY)});typeof c?.destroy==`function`&&c.destroy();let d=e.utf8Encoder(u.subarray(u.length-16));if(u.length===0&&xY[n.commandName]){let e=Error(`S3 aborted request`);throw e.name=`InternalError`,e}return d&&d.endsWith(``)&&(a.statusCode=400),i},wY=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),TY={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},EY=e=>({applyToStack:t=>{t.addRelativeTo(CY(e),TY)}}),DY=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6;function OY(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var kY={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function AY({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!DY(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var jY={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},MY=e=>({applyToStack:t=>{t.add(AY(e),jY),t.addRelativeTo(OY(e),kY)}}),NY=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),PY={CrtSignerV4:null},FY=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof PY.CrtSignerV4==`function`?`crt`:typeof nd.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new lY(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=PY.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw 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(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=PY.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw 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(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=PY.CrtSignerV4,t=nd.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw 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`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @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`)}else{if(!t||typeof t!=`function`)throw 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`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},IY=`required`,A=`type`,j=`rules`,M=`conditions`,N=`fn`,P=`argv`,F=`ref`,I=`assign`,L=`url`,R=`properties`,LY=`backend`,RY=`authSchemes`,zY=`disableDoubleEncoding`,BY=`signingName`,VY=`signingRegion`,z=`headers`,HY=`signingRegionSet`,UY=6,WY=!1,GY=!0,KY=`isSet`,qY=`booleanEquals`,B=`error`,JY=`aws.partition`,V=`stringEquals`,YY=`getAttr`,XY=`name`,H=`substring`,ZY=`bucketSuffix`,QY=`parseURL`,U=`endpoint`,W=`tree`,$Y=`aws.isVirtualHostableS3Bucket`,eX=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,tX=`not`,nX=`accessPointSuffix`,rX=`{url#scheme}://{url#authority}{url#path}`,iX=`hardwareType`,aX=`regionPrefix`,oX=`bucketAliasSuffix`,sX=`outpostId`,cX=`isValidHostLabel`,lX=`sigv4a`,uX=`s3-outposts`,dX=`s3`,fX=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,pX=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,mX=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,hX=`aws.parseArn`,gX=`bucketArn`,_X=`arnType`,vX=``,yX=`s3-object-lambda`,bX=`accesspoint`,xX=`accessPointName`,SX=`{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}`,CX=`mrapPartition`,wX=`outpostType`,TX=`arnPrefix`,EX=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,DX=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,OX=`https://s3.{partitionResult#dnsSuffix}`,kX={[IY]:!1,[A]:`string`},AX={[IY]:!0,default:!1,[A]:`boolean`},jX={[IY]:!1,[A]:`boolean`},MX={[N]:qY,[P]:[{[F]:`Accelerate`},!0]},NX={[N]:qY,[P]:[{[F]:`UseFIPS`},!0]},G={[N]:qY,[P]:[{[F]:`UseDualStack`},!0]},PX={[N]:KY,[P]:[{[F]:`Endpoint`}]},FX={[N]:JY,[P]:[{[F]:`Region`}],[I]:`partitionResult`},IX={[N]:V,[P]:[{[N]:YY,[P]:[{[F]:`partitionResult`},XY]},`aws-cn`]},LX={[N]:KY,[P]:[{[F]:`Bucket`}]},K={[F]:`Bucket`},RX={[M]:[MX],[B]:`S3Express does not support S3 Accelerate.`,[A]:B},zX={[M]:[PX,{[N]:QY,[P]:[{[F]:`Endpoint`}],[I]:`url`}],[j]:[{[M]:[{[N]:KY,[P]:[{[F]:`DisableS3ExpressSessionAuth`}]},{[N]:qY,[P]:[{[F]:`DisableS3ExpressSessionAuth`},!0]}],[j]:[{[M]:[{[N]:qY,[P]:[{[N]:YY,[P]:[{[F]:`url`},`isIp`]},!0]}],[j]:[{[M]:[{[N]:`uriEncode`,[P]:[K],[I]:`uri_encoded_bucket`}],[j]:[{[U]:{[L]:`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U}],[A]:W}],[A]:W},{[M]:[{[N]:$Y,[P]:[K,!1]}],[j]:[{[U]:{[L]:eX,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U}],[A]:W},{[B]:`S3Express bucket name is not a valid virtual hostable name.`,[A]:B}],[A]:W},{[M]:[{[N]:qY,[P]:[{[N]:YY,[P]:[{[F]:`url`},`isIp`]},!0]}],[j]:[{[M]:[{[N]:`uriEncode`,[P]:[K],[I]:`uri_encoded_bucket`}],[j]:[{[U]:{[L]:`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4-s3express`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U}],[A]:W}],[A]:W},{[M]:[{[N]:$Y,[P]:[K,!1]}],[j]:[{[U]:{[L]:eX,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4-s3express`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U}],[A]:W},{[B]:`S3Express bucket name is not a valid virtual hostable name.`,[A]:B}],[A]:W},BX={[N]:QY,[P]:[{[F]:`Endpoint`}],[I]:`url`},VX={[N]:qY,[P]:[{[N]:YY,[P]:[{[F]:`url`},`isIp`]},!0]},HX={[F]:`url`},UX={[N]:`uriEncode`,[P]:[K],[I]:`uri_encoded_bucket`},WX={[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:`s3express`,[VY]:`{Region}`}]},q={},GX={[N]:$Y,[P]:[K,!1]},KX={[B]:`S3Express bucket name is not a valid virtual hostable name.`,[A]:B},qX={[N]:KY,[P]:[{[F]:`UseS3ExpressControlEndpoint`}]},JX={[N]:qY,[P]:[{[F]:`UseS3ExpressControlEndpoint`},!0]},J={[N]:tX,[P]:[PX]},Y={[N]:qY,[P]:[{[F]:`UseDualStack`},!1]},X={[N]:qY,[P]:[{[F]:`UseFIPS`},!1]},YX={[B]:`Unrecognized S3Express bucket name format.`,[A]:B},XX={[N]:tX,[P]:[LX]},ZX={[F]:iX},QX={[M]:[J],[B]:`Expected a endpoint to be specified but no endpoint was found`,[A]:B},$X={[RY]:[{[zY]:!0,[XY]:lX,[BY]:uX,[HY]:[`*`]},{[zY]:!0,[XY]:`sigv4`,[BY]:uX,[VY]:`{Region}`}]},eZ={[N]:qY,[P]:[{[F]:`ForcePathStyle`},!1]},tZ={[F]:`ForcePathStyle`},nZ={[N]:qY,[P]:[{[F]:`Accelerate`},!1]},rZ={[N]:V,[P]:[{[F]:`Region`},`aws-global`]},iZ={[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:dX,[VY]:`us-east-1`}]},Z={[N]:tX,[P]:[rZ]},aZ={[N]:qY,[P]:[{[F]:`UseGlobalEndpoint`},!0]},oZ={[L]:`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:{[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:dX,[VY]:`{Region}`}]},[z]:{}},sZ={[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:dX,[VY]:`{Region}`}]},cZ={[N]:qY,[P]:[{[F]:`UseGlobalEndpoint`},!1]},lZ={[L]:`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},uZ={[L]:`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},dZ={[L]:`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},fZ={[N]:qY,[P]:[{[N]:YY,[P]:[HX,`isIp`]},!1]},pZ={[L]:fX,[R]:sZ,[z]:{}},mZ={[L]:eX,[R]:sZ,[z]:{}},hZ={[U]:mZ,[A]:U},gZ={[L]:pX,[R]:sZ,[z]:{}},_Z={[L]:`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},vZ={[B]:`Invalid region: region was not a valid DNS name.`,[A]:B},yZ={[F]:gX},bZ={[F]:_X},xZ={[N]:YY,[P]:[yZ,`service`]},SZ={[F]:xX},CZ={[M]:[G],[B]:`S3 Object Lambda does not support Dual-stack`,[A]:B},wZ={[M]:[MX],[B]:`S3 Object Lambda does not support S3 Accelerate`,[A]:B},TZ={[M]:[{[N]:KY,[P]:[{[F]:`DisableAccessPoints`}]},{[N]:qY,[P]:[{[F]:`DisableAccessPoints`},!0]}],[B]:`Access points are not supported for this operation`,[A]:B},EZ={[M]:[{[N]:KY,[P]:[{[F]:`UseArnRegion`}]},{[N]:qY,[P]:[{[F]:`UseArnRegion`},!1]},{[N]:tX,[P]:[{[N]:V,[P]:[{[N]:YY,[P]:[yZ,`region`]},`{Region}`]}]}],[B]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[A]:B},DZ={[N]:YY,[P]:[{[F]:`bucketPartition`},XY]},OZ={[N]:YY,[P]:[yZ,`accountId`]},kZ={[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:yX,[VY]:`{bucketArn#region}`}]},AZ={[B]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[A]:B},jZ={[B]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[A]:B},MZ={[B]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[A]:B},NZ={[B]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[A]:B},PZ={[B]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[A]:B},FZ={[B]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[A]:B},IZ={[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:dX,[VY]:`{bucketArn#region}`}]},LZ={[RY]:[{[zY]:!0,[XY]:lX,[BY]:uX,[HY]:[`*`]},{[zY]:!0,[XY]:`sigv4`,[BY]:uX,[VY]:`{bucketArn#region}`}]},RZ={[N]:hX,[P]:[K]},zZ={[L]:`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:sZ,[z]:{}},BZ={[L]:`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:sZ,[z]:{}},VZ={[L]:`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:sZ,[z]:{}},HZ={[L]:EX,[R]:sZ,[z]:{}},UZ={[L]:`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:sZ,[z]:{}},WZ={[F]:`UseObjectLambdaEndpoint`},GZ={[RY]:[{[zY]:!0,[XY]:`sigv4`,[BY]:yX,[VY]:`{Region}`}]},KZ={[L]:`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},qZ={[L]:`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},JZ={[L]:`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},YZ={[L]:rX,[R]:sZ,[z]:{}},XZ={[L]:`https://s3.{Region}.{partitionResult#dnsSuffix}`,[R]:sZ,[z]:{}},ZZ=[{[F]:`Region`}],QZ=[{[F]:`Endpoint`}],$Z=[K],eQ=[MX],tQ=[PX,BX],nQ=[{[N]:KY,[P]:[{[F]:`DisableS3ExpressSessionAuth`}]},{[N]:qY,[P]:[{[F]:`DisableS3ExpressSessionAuth`},!0]}],rQ=[UX],iQ=[GX],aQ=[FX],oQ=[NX,G],sQ=[NX,Y],cQ=[X,G],lQ=[X,Y],uQ=[{[N]:H,[P]:[K,6,14,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,14,16,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],dQ=[{[M]:[NX,G],[U]:{[L]:`https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:{}},[A]:U},{[M]:sQ,[U]:{[L]:`https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:{}},[A]:U},{[M]:cQ,[U]:{[L]:`https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:{}},[A]:U},{[M]:lQ,[U]:{[L]:`https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:{}},[A]:U}],fQ=[{[N]:H,[P]:[K,6,15,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,15,17,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],pQ=[{[N]:H,[P]:[K,6,19,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,19,21,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],mQ=[{[N]:H,[P]:[K,6,20,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,20,22,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],hQ=[{[N]:H,[P]:[K,6,26,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,26,28,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],gQ=[{[M]:[NX,G],[U]:{[L]:`https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4-s3express`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U},{[M]:sQ,[U]:{[L]:`https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}`,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4-s3express`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U},{[M]:cQ,[U]:{[L]:`https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4-s3express`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U},{[M]:lQ,[U]:{[L]:`https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}`,[R]:{[LY]:`S3Express`,[RY]:[{[zY]:!0,[XY]:`sigv4-s3express`,[BY]:`s3express`,[VY]:`{Region}`}]},[z]:{}},[A]:U}],_Q=[K,0,7,!0],vQ=[{[N]:H,[P]:[K,7,15,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,15,17,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],yQ=[{[N]:H,[P]:[K,7,16,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,16,18,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],bQ=[{[N]:H,[P]:[K,7,20,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,20,22,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],xQ=[{[N]:H,[P]:[K,7,21,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,21,23,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],SQ=[{[N]:H,[P]:[K,7,27,!0],[I]:`s3expressAvailabilityZoneId`},{[N]:H,[P]:[K,27,29,!0],[I]:`s3expressAvailabilityZoneDelim`},{[N]:V,[P]:[{[F]:`s3expressAvailabilityZoneDelim`},`--`]}],CQ=[LX],wQ=[{[N]:cX,[P]:[{[F]:sX},!1]}],TQ=[{[N]:V,[P]:[{[F]:aX},`beta`]}],EQ=[`*`],DQ=[{[N]:cX,[P]:[{[F]:`Region`},!1]}],OQ=[{[N]:V,[P]:[{[F]:`Region`},`us-east-1`]}],kQ=[{[N]:V,[P]:[bZ,bX]}],AQ=[{[N]:YY,[P]:[yZ,`resourceId[1]`],[I]:xX},{[N]:tX,[P]:[{[N]:V,[P]:[SZ,vX]}]}],jQ=[yZ,`resourceId[1]`],MQ=[G],NQ=[{[N]:tX,[P]:[{[N]:V,[P]:[{[N]:YY,[P]:[yZ,`region`]},vX]}]}],PQ=[{[N]:tX,[P]:[{[N]:KY,[P]:[{[N]:YY,[P]:[yZ,`resourceId[2]`]}]}]}],FQ=[yZ,`resourceId[2]`],IQ=[{[N]:JY,[P]:[{[N]:YY,[P]:[yZ,`region`]}],[I]:`bucketPartition`}],LQ=[{[N]:V,[P]:[DZ,{[N]:YY,[P]:[{[F]:`partitionResult`},XY]}]}],RQ=[{[N]:cX,[P]:[{[N]:YY,[P]:[yZ,`region`]},!0]}],zQ=[{[N]:cX,[P]:[OZ,!1]}],BQ=[{[N]:cX,[P]:[SZ,!1]}],VQ=[NX],HQ=[{[N]:cX,[P]:[{[F]:`Region`},!0]}],UQ={version:`1.0`,parameters:{Bucket:kX,Region:kX,UseFIPS:AX,UseDualStack:AX,Endpoint:kX,ForcePathStyle:AX,Accelerate:AX,UseGlobalEndpoint:AX,UseObjectLambdaEndpoint:jX,Key:kX,Prefix:kX,CopySource:kX,DisableAccessPoints:jX,DisableMultiRegionAccessPoints:AX,UseArnRegion:jX,UseS3ExpressControlEndpoint:jX,DisableS3ExpressSessionAuth:jX},[j]:[{[M]:[{[N]:KY,[P]:ZZ}],[j]:[{[M]:[MX,NX],error:`Accelerate cannot be used with FIPS`,[A]:B},{[M]:[G,PX],error:`Cannot set dual-stack in combination with a custom endpoint.`,[A]:B},{[M]:[PX,NX],error:`A custom endpoint cannot be combined with FIPS`,[A]:B},{[M]:[PX,MX],error:`A custom endpoint cannot be combined with S3 Accelerate`,[A]:B},{[M]:[NX,FX,IX],error:`Partition does not support FIPS`,[A]:B},{[M]:[LX,{[N]:H,[P]:[K,0,UY,GY],[I]:ZY},{[N]:V,[P]:[{[F]:ZY},`--x-s3`]}],[j]:[RX,zX,{[M]:[qX,JX],[j]:[{[M]:aQ,[j]:[{[M]:[UX,J],[j]:[{[M]:oQ,endpoint:{[L]:`https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:WX,[z]:q},[A]:U},{[M]:sQ,endpoint:{[L]:`https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:WX,[z]:q},[A]:U},{[M]:cQ,endpoint:{[L]:`https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:WX,[z]:q},[A]:U},{[M]:lQ,endpoint:{[L]:`https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:WX,[z]:q},[A]:U}],[A]:W}],[A]:W}],[A]:W},{[M]:iQ,[j]:[{[M]:aQ,[j]:[{[M]:nQ,[j]:[{[M]:uQ,[j]:dQ,[A]:W},{[M]:fQ,[j]:dQ,[A]:W},{[M]:pQ,[j]:dQ,[A]:W},{[M]:mQ,[j]:dQ,[A]:W},{[M]:hQ,[j]:dQ,[A]:W},YX],[A]:W},{[M]:uQ,[j]:gQ,[A]:W},{[M]:fQ,[j]:gQ,[A]:W},{[M]:pQ,[j]:gQ,[A]:W},{[M]:mQ,[j]:gQ,[A]:W},{[M]:hQ,[j]:gQ,[A]:W},YX],[A]:W}],[A]:W},KX],[A]:W},{[M]:[LX,{[N]:H,[P]:_Q,[I]:nX},{[N]:V,[P]:[{[F]:nX},`--xa-s3`]}],[j]:[RX,zX,{[M]:iQ,[j]:[{[M]:aQ,[j]:[{[M]:nQ,[j]:[{[M]:vQ,[j]:dQ,[A]:W},{[M]:yQ,[j]:dQ,[A]:W},{[M]:bQ,[j]:dQ,[A]:W},{[M]:xQ,[j]:dQ,[A]:W},{[M]:SQ,[j]:dQ,[A]:W},YX],[A]:W},{[M]:vQ,[j]:gQ,[A]:W},{[M]:yQ,[j]:gQ,[A]:W},{[M]:bQ,[j]:gQ,[A]:W},{[M]:xQ,[j]:gQ,[A]:W},{[M]:SQ,[j]:gQ,[A]:W},YX],[A]:W}],[A]:W},KX],[A]:W},{[M]:[XX,qX,JX],[j]:[{[M]:aQ,[j]:[{[M]:tQ,endpoint:{[L]:rX,[R]:WX,[z]:q},[A]:U},{[M]:oQ,endpoint:{[L]:`https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:q},[A]:U},{[M]:sQ,endpoint:{[L]:`https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:q},[A]:U},{[M]:cQ,endpoint:{[L]:`https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:q},[A]:U},{[M]:lQ,endpoint:{[L]:`https://s3express-control.{Region}.{partitionResult#dnsSuffix}`,[R]:WX,[z]:q},[A]:U}],[A]:W}],[A]:W},{[M]:[LX,{[N]:H,[P]:[K,49,50,GY],[I]:iX},{[N]:H,[P]:[K,8,12,GY],[I]:aX},{[N]:H,[P]:_Q,[I]:oX},{[N]:H,[P]:[K,32,49,GY],[I]:sX},{[N]:JY,[P]:ZZ,[I]:`regionPartition`},{[N]:V,[P]:[{[F]:oX},`--op-s3`]}],[j]:[{[M]:wQ,[j]:[{[M]:iQ,[j]:[{[M]:[{[N]:V,[P]:[ZX,`e`]}],[j]:[{[M]:TQ,[j]:[QX,{[M]:tQ,endpoint:{[L]:`https://{Bucket}.ec2.{url#authority}`,[R]:$X,[z]:q},[A]:U}],[A]:W},{endpoint:{[L]:`https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}`,[R]:$X,[z]:q},[A]:U}],[A]:W},{[M]:[{[N]:V,[P]:[ZX,`o`]}],[j]:[{[M]:TQ,[j]:[QX,{[M]:tQ,endpoint:{[L]:`https://{Bucket}.op-{outpostId}.{url#authority}`,[R]:$X,[z]:q},[A]:U}],[A]:W},{endpoint:{[L]:`https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}`,[R]:$X,[z]:q},[A]:U}],[A]:W},{error:`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`,[A]:B}],[A]:W},{error:`Invalid Outposts Bucket alias - it must be a valid bucket name.`,[A]:B}],[A]:W},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[A]:B}],[A]:W},{[M]:CQ,[j]:[{[M]:[PX,{[N]:tX,[P]:[{[N]:KY,[P]:[{[N]:QY,[P]:QZ}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[A]:B},{[M]:[eZ,GX],[j]:[{[M]:aQ,[j]:[{[M]:DQ,[j]:[{[M]:[MX,IX],error:`S3 Accelerate cannot be used in this region`,[A]:B},{[M]:[G,NX,nZ,J,rZ],endpoint:{[L]:`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,[R]:iZ,[z]:q},[A]:U},{[M]:[G,NX,nZ,J,Z,aZ],[j]:[{endpoint:oZ,[A]:U}],[A]:W},{[M]:[G,NX,nZ,J,Z,cZ],endpoint:oZ,[A]:U},{[M]:[Y,NX,nZ,J,rZ],endpoint:{[L]:`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,NX,nZ,J,Z,aZ],[j]:[{endpoint:lZ,[A]:U}],[A]:W},{[M]:[Y,NX,nZ,J,Z,cZ],endpoint:lZ,[A]:U},{[M]:[G,X,MX,J,rZ],endpoint:{[L]:`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,[R]:iZ,[z]:q},[A]:U},{[M]:[G,X,MX,J,Z,aZ],[j]:[{endpoint:uZ,[A]:U}],[A]:W},{[M]:[G,X,MX,J,Z,cZ],endpoint:uZ,[A]:U},{[M]:[G,X,nZ,J,rZ],endpoint:{[L]:`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,[R]:iZ,[z]:q},[A]:U},{[M]:[G,X,nZ,J,Z,aZ],[j]:[{endpoint:dZ,[A]:U}],[A]:W},{[M]:[G,X,nZ,J,Z,cZ],endpoint:dZ,[A]:U},{[M]:[Y,X,nZ,PX,BX,VX,rZ],endpoint:{[L]:fX,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,X,nZ,PX,BX,fZ,rZ],endpoint:{[L]:eX,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,X,nZ,PX,BX,VX,Z,aZ],[j]:[{[M]:OQ,endpoint:pZ,[A]:U},{endpoint:pZ,[A]:U}],[A]:W},{[M]:[Y,X,nZ,PX,BX,fZ,Z,aZ],[j]:[{[M]:OQ,endpoint:mZ,[A]:U},hZ],[A]:W},{[M]:[Y,X,nZ,PX,BX,VX,Z,cZ],endpoint:pZ,[A]:U},{[M]:[Y,X,nZ,PX,BX,fZ,Z,cZ],endpoint:mZ,[A]:U},{[M]:[Y,X,MX,J,rZ],endpoint:{[L]:pX,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,X,MX,J,Z,aZ],[j]:[{[M]:OQ,endpoint:gZ,[A]:U},{endpoint:gZ,[A]:U}],[A]:W},{[M]:[Y,X,MX,J,Z,cZ],endpoint:gZ,[A]:U},{[M]:[Y,X,nZ,J,rZ],endpoint:{[L]:mX,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,X,nZ,J,Z,aZ],[j]:[{[M]:OQ,endpoint:{[L]:mX,[R]:sZ,[z]:q},[A]:U},{endpoint:_Z,[A]:U}],[A]:W},{[M]:[Y,X,nZ,J,Z,cZ],endpoint:_Z,[A]:U}],[A]:W},vZ],[A]:W}],[A]:W},{[M]:[PX,BX,{[N]:V,[P]:[{[N]:YY,[P]:[HX,`scheme`]},`http`]},{[N]:$Y,[P]:[K,GY]},eZ,X,Y,nZ],[j]:[{[M]:aQ,[j]:[{[M]:DQ,[j]:[hZ],[A]:W},vZ],[A]:W}],[A]:W},{[M]:[eZ,{[N]:hX,[P]:$Z,[I]:gX}],[j]:[{[M]:[{[N]:YY,[P]:[yZ,`resourceId[0]`],[I]:_X},{[N]:tX,[P]:[{[N]:V,[P]:[bZ,vX]}]}],[j]:[{[M]:[{[N]:V,[P]:[xZ,yX]}],[j]:[{[M]:kQ,[j]:[{[M]:AQ,[j]:[CZ,wZ,{[M]:NQ,[j]:[TZ,{[M]:PQ,[j]:[EZ,{[M]:IQ,[j]:[{[M]:aQ,[j]:[{[M]:LQ,[j]:[{[M]:RQ,[j]:[{[M]:[{[N]:V,[P]:[OZ,vX]}],error:`Invalid ARN: Missing account id`,[A]:B},{[M]:zQ,[j]:[{[M]:BQ,[j]:[{[M]:tQ,endpoint:{[L]:SX,[R]:kZ,[z]:q},[A]:U},{[M]:VQ,endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,[R]:kZ,[z]:q},[A]:U},{endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,[R]:kZ,[z]:q},[A]:U}],[A]:W},AZ],[A]:W},jZ],[A]:W},MZ],[A]:W},NZ],[A]:W}],[A]:W}],[A]:W},PZ],[A]:W},{error:`Invalid ARN: bucket ARN is missing a region`,[A]:B}],[A]:W},FZ],[A]:W},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[A]:B}],[A]:W},{[M]:kQ,[j]:[{[M]:AQ,[j]:[{[M]:NQ,[j]:[{[M]:kQ,[j]:[{[M]:NQ,[j]:[TZ,{[M]:PQ,[j]:[EZ,{[M]:IQ,[j]:[{[M]:aQ,[j]:[{[M]:[{[N]:V,[P]:[DZ,`{partitionResult#name}`]}],[j]:[{[M]:RQ,[j]:[{[M]:[{[N]:V,[P]:[xZ,dX]}],[j]:[{[M]:zQ,[j]:[{[M]:BQ,[j]:[{[M]:eQ,error:`Access Points do not support S3 Accelerate`,[A]:B},{[M]:oQ,endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,[R]:IZ,[z]:q},[A]:U},{[M]:sQ,endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,[R]:IZ,[z]:q},[A]:U},{[M]:cQ,endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,[R]:IZ,[z]:q},[A]:U},{[M]:[X,Y,PX,BX],endpoint:{[L]:SX,[R]:IZ,[z]:q},[A]:U},{[M]:lQ,endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,[R]:IZ,[z]:q},[A]:U}],[A]:W},AZ],[A]:W},jZ],[A]:W},{error:`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`,[A]:B}],[A]:W},MZ],[A]:W},NZ],[A]:W}],[A]:W}],[A]:W},PZ],[A]:W}],[A]:W}],[A]:W},{[M]:[{[N]:cX,[P]:[SZ,GY]}],[j]:[{[M]:MQ,error:`S3 MRAP does not support dual-stack`,[A]:B},{[M]:VQ,error:`S3 MRAP does not support FIPS`,[A]:B},{[M]:eQ,error:`S3 MRAP does not support S3 Accelerate`,[A]:B},{[M]:[{[N]:qY,[P]:[{[F]:`DisableMultiRegionAccessPoints`},GY]}],error:`Invalid configuration: Multi-Region Access Point ARNs are disabled.`,[A]:B},{[M]:[{[N]:JY,[P]:ZZ,[I]:CX}],[j]:[{[M]:[{[N]:V,[P]:[{[N]:YY,[P]:[{[F]:CX},XY]},{[N]:YY,[P]:[yZ,`partition`]}]}],[j]:[{endpoint:{[L]:`https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}`,[R]:{[RY]:[{[zY]:GY,name:lX,[BY]:dX,[HY]:EQ}]},[z]:q},[A]:U}],[A]:W},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[A]:B}],[A]:W}],[A]:W},{error:`Invalid Access Point Name`,[A]:B}],[A]:W},FZ],[A]:W},{[M]:[{[N]:V,[P]:[xZ,uX]}],[j]:[{[M]:MQ,error:`S3 Outposts does not support Dual-stack`,[A]:B},{[M]:VQ,error:`S3 Outposts does not support FIPS`,[A]:B},{[M]:eQ,error:`S3 Outposts does not support S3 Accelerate`,[A]:B},{[M]:[{[N]:KY,[P]:[{[N]:YY,[P]:[yZ,`resourceId[4]`]}]}],error:`Invalid Arn: Outpost Access Point ARN contains sub resources`,[A]:B},{[M]:[{[N]:YY,[P]:jQ,[I]:sX}],[j]:[{[M]:wQ,[j]:[EZ,{[M]:IQ,[j]:[{[M]:aQ,[j]:[{[M]:LQ,[j]:[{[M]:RQ,[j]:[{[M]:zQ,[j]:[{[M]:[{[N]:YY,[P]:FQ,[I]:wX}],[j]:[{[M]:[{[N]:YY,[P]:[yZ,`resourceId[3]`],[I]:xX}],[j]:[{[M]:[{[N]:V,[P]:[{[F]:wX},bX]}],[j]:[{[M]:tQ,endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}`,[R]:LZ,[z]:q},[A]:U},{endpoint:{[L]:`https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,[R]:LZ,[z]:q},[A]:U}],[A]:W},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[A]:B}],[A]:W},{error:`Invalid ARN: expected an access point name`,[A]:B}],[A]:W},{error:`Invalid ARN: Expected a 4-component resource`,[A]:B}],[A]:W},jZ],[A]:W},MZ],[A]:W},NZ],[A]:W}],[A]:W}],[A]:W},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[A]:B}],[A]:W},{error:`Invalid ARN: The Outpost Id was not set`,[A]:B}],[A]:W},{error:`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`,[A]:B}],[A]:W},{error:`Invalid ARN: No ARN type specified`,[A]:B}],[A]:W},{[M]:[{[N]:H,[P]:[K,0,4,WY],[I]:TX},{[N]:V,[P]:[{[F]:TX},`arn:`]},{[N]:tX,[P]:[{[N]:KY,[P]:[RZ]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[A]:B},{[M]:[{[N]:qY,[P]:[tZ,GY]},RZ],error:`Path-style addressing cannot be used with ARN buckets`,[A]:B},{[M]:rQ,[j]:[{[M]:aQ,[j]:[{[M]:[nZ],[j]:[{[M]:[G,J,NX,rZ],endpoint:{[L]:`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:iZ,[z]:q},[A]:U},{[M]:[G,J,NX,Z,aZ],[j]:[{endpoint:zZ,[A]:U}],[A]:W},{[M]:[G,J,NX,Z,cZ],endpoint:zZ,[A]:U},{[M]:[Y,J,NX,rZ],endpoint:{[L]:`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,J,NX,Z,aZ],[j]:[{endpoint:BZ,[A]:U}],[A]:W},{[M]:[Y,J,NX,Z,cZ],endpoint:BZ,[A]:U},{[M]:[G,J,X,rZ],endpoint:{[L]:`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,[R]:iZ,[z]:q},[A]:U},{[M]:[G,J,X,Z,aZ],[j]:[{endpoint:VZ,[A]:U}],[A]:W},{[M]:[G,J,X,Z,cZ],endpoint:VZ,[A]:U},{[M]:[Y,PX,BX,X,rZ],endpoint:{[L]:EX,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,PX,BX,X,Z,aZ],[j]:[{[M]:OQ,endpoint:HZ,[A]:U},{endpoint:HZ,[A]:U}],[A]:W},{[M]:[Y,PX,BX,X,Z,cZ],endpoint:HZ,[A]:U},{[M]:[Y,J,X,rZ],endpoint:{[L]:DX,[R]:iZ,[z]:q},[A]:U},{[M]:[Y,J,X,Z,aZ],[j]:[{[M]:OQ,endpoint:{[L]:DX,[R]:sZ,[z]:q},[A]:U},{endpoint:UZ,[A]:U}],[A]:W},{[M]:[Y,J,X,Z,cZ],endpoint:UZ,[A]:U}],[A]:W},{error:`Path-style addressing cannot be used with S3 Accelerate`,[A]:B}],[A]:W}],[A]:W}],[A]:W},{[M]:[{[N]:KY,[P]:[WZ]},{[N]:qY,[P]:[WZ,GY]}],[j]:[{[M]:aQ,[j]:[{[M]:HQ,[j]:[CZ,wZ,{[M]:tQ,endpoint:{[L]:rX,[R]:GZ,[z]:q},[A]:U},{[M]:VQ,endpoint:{[L]:`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,[R]:GZ,[z]:q},[A]:U},{endpoint:{[L]:`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,[R]:GZ,[z]:q},[A]:U}],[A]:W},vZ],[A]:W}],[A]:W},{[M]:[XX],[j]:[{[M]:aQ,[j]:[{[M]:HQ,[j]:[{[M]:[NX,G,J,rZ],endpoint:{[L]:`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,[R]:iZ,[z]:q},[A]:U},{[M]:[NX,G,J,Z,aZ],[j]:[{endpoint:KZ,[A]:U}],[A]:W},{[M]:[NX,G,J,Z,cZ],endpoint:KZ,[A]:U},{[M]:[NX,Y,J,rZ],endpoint:{[L]:`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,[R]:iZ,[z]:q},[A]:U},{[M]:[NX,Y,J,Z,aZ],[j]:[{endpoint:qZ,[A]:U}],[A]:W},{[M]:[NX,Y,J,Z,cZ],endpoint:qZ,[A]:U},{[M]:[X,G,J,rZ],endpoint:{[L]:`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,[R]:iZ,[z]:q},[A]:U},{[M]:[X,G,J,Z,aZ],[j]:[{endpoint:JZ,[A]:U}],[A]:W},{[M]:[X,G,J,Z,cZ],endpoint:JZ,[A]:U},{[M]:[X,Y,PX,BX,rZ],endpoint:{[L]:rX,[R]:iZ,[z]:q},[A]:U},{[M]:[X,Y,PX,BX,Z,aZ],[j]:[{[M]:OQ,endpoint:YZ,[A]:U},{endpoint:YZ,[A]:U}],[A]:W},{[M]:[X,Y,PX,BX,Z,cZ],endpoint:YZ,[A]:U},{[M]:[X,Y,J,rZ],endpoint:{[L]:OX,[R]:iZ,[z]:q},[A]:U},{[M]:[X,Y,J,Z,aZ],[j]:[{[M]:OQ,endpoint:{[L]:OX,[R]:sZ,[z]:q},[A]:U},{endpoint:XZ,[A]:U}],[A]:W},{[M]:[X,Y,J,Z,cZ],endpoint:XZ,[A]:U}],[A]:W},vZ],[A]:W}],[A]:W}],[A]:W},{error:`A region must be set when sending requests to S3.`,[A]:B}]},WQ=new ml({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),GQ=(e,t={})=>WQ.get(e,()=>Kl(UQ,{endpointParams:e,logger:t.logger}));yl.aws=tu;var KQ=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=zo(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Kf(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:zo(t).operation,region:await Bo(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function qQ(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function JQ(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var YQ=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(FY.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(GQ,e=>{let t=[];switch(e.operation){default:t.push(qQ(e)),t.push(JQ(e))}return t},{"aws.auth#sigv4":qQ,"aws.auth#sigv4a":JQ}),XQ=e=>{let t=hu(rd(e));return Object.assign(t,{authSchemePreference:Bo(e.authSchemePreference??[])})},ZQ=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??{}}),QQ={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`}},$Q=class e extends vd{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},e$=class e extends $Q{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},t$=class e extends $Q{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},n$=class e extends $Q{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},r$=class e extends $Q{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},i$=class e extends $Q{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},a$=class e extends $Q{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},o$=class e extends $Q{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},s$=class e extends $Q{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},c$=class e extends $Q{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},l$=class e extends $Q{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},u$=class e extends $Q{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},d$=class e extends $Q{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},f$=class e extends $Q{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},p$=class e extends $Q{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},m$=class e extends $Q{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},h$=`ACL`,g$=`AccessDenied`,_$=`AbortDate`,v$=`AccessKeyId`,y$=`AbortMultipartUpload`,b$=`AbortMultipartUploadOutput`,x$=`AbortMultipartUploadRequest`,S$=`AcceptRanges`,C$=`AbortRuleId`,w$=`AccessTier`,T$=`Bucket`,E$=`BucketArn`,D$=`BucketAlreadyExists`,O$=`BucketAlreadyOwnedByYou`,k$=`BypassGovernanceRetention`,A$=`BucketInfo`,j$=`BucketKeyEnabled`,M$=`BucketRegion`,N$=`Body`,P$=`Buckets`,F$=`ChecksumAlgorithm`,I$=`CreateBucket`,L$=`CreateBucketConfiguration`,R$=`CreateBucketOutput`,z$=`CreateBucketRequest`,B$=`CacheControl`,V$=`ChecksumCRC32`,H$=`ChecksumCRC32C`,U$=`ChecksumCRC64NVME`,W$=`Cache-Control`,G$=`CreationDate`,K$=`Content-Disposition`,q$=`ContentDisposition`,J$=`Content-Encoding`,Y$=`ContentEncoding`,X$=`ContentLanguage`,Z$=`Content-Language`,Q$=`Content-Length`,$$=`ContentLength`,e1=`Content-MD5`,t1=`ContentMD5`,n1=`CompletedMultipartUpload`,r1=`CompleteMultipartUploadOutput`,i1=`CreateMultipartUploadOutput`,a1=`CompleteMultipartUploadResult`,o1=`CompleteMultipartUploadRequest`,s1=`CreateMultipartUploadRequest`,c1=`CompleteMultipartUpload`,l1=`CreateMultipartUpload`,u1=`ChecksumMode`,d1=`CommonPrefix`,f1=`CommonPrefixList`,p1=`CompletedPartList`,m1=`CompletedPart`,h1=`CommonPrefixes`,g1=`ContentRange`,_1=`Content-Range`,v1=`ChecksumSHA1`,y1=`ChecksumSHA256`,b1=`CreateSessionOutput`,x1=`CreateSessionResult`,S1=`CreateSessionRequest`,C1=`CreateSession`,w1=`ChecksumType`,T1=`Content-Type`,E1=`ContentType`,D1=`ContinuationToken`,O1=`Contents`,k1=`Credentials`,A1=`DeleteMarker`,j1=`DisplayName`,M1=`DeleteObjectOutput`,N1=`DeleteObjectRequest`,P1=`DeleteObject`,F1=`DataRedundancy`,I1=`Delimiter`,L1=`Expiration`,R1=`ExpectedBucketOwner`,z1=`ExpiresString`,B1=`EncryptionTypeMismatch`,V1=`ETag`,H1=`EncodingType`,U1=`Expires`,W1=`FetchOwner`,G1=`GrantFullControl`,K1=`GetObject`,q1=`GetObjectOutput`,J1=`GetObjectRequest`,Y1=`GrantRead`,X1=`GrantReadACP`,Z1=`GrantWrite`,Q1=`GrantWriteACP`,$1=`ID`,e0=`IfMatch`,t0=`IfMatchInitiatedTime`,n0=`IfMatchLastModifiedTime`,r0=`IfMatchSize`,i0=`If-Modified-Since`,a0=`IfModifiedSince`,o0=`InitiateMultipartUploadResult`,s0=`If-Match`,c0=`IfNoneMatch`,l0=`If-None-Match`,u0=`InvalidObjectState`,d0=`IdempotencyParameterMismatch`,f0=`InvalidRequest`,p0=`IsRestoreInProgress`,m0=`IsTruncated`,h0=`IfUnmodifiedSince`,g0=`If-Unmodified-Since`,_0=`InvalidWriteOffset`,v0=`Key`,y0=`KeyCount`,b0=`Location`,x0=`ListAllMyBucketsResult`,S0=`ListBuckets`,C0=`ListBucketsOutput`,w0=`ListBucketsRequest`,T0=`ListBucketResult`,E0=`LocationConstraint`,D0=`LocationInfo`,O0=`LastModified`,k0=`Last-Modified`,A0=`ListObjectsV2`,j0=`ListObjectsV2Output`,M0=`ListObjectsV2Request`,N0=`Metadata`,P0=`MaxBuckets`,F0=`MFA`,I0=`MaxKeys`,L0=`MissingMeta`,R0=`MpuObjectSize`,z0=`MultipartUpload`,B0=`Name`,V0=`NextContinuationToken`,H0=`NotFound`,U0=`NoSuchBucket`,W0=`NoSuchKey`,G0=`NoSuchUpload`,K0=`Owner`,q0=`ObjectAlreadyInActiveTierError`,J0=`ObjectLockEnabledForBucket`,Y0=`ObjectLockLegalHoldStatus`,X0=`ObjectLockMode`,Z0=`ObjectLockRetainUntilDate`,Q0=`ObjectList`,$0=`ObjectNotInActiveTierError`,e2=`ObjectOwnership`,t2=`OptionalObjectAttributes`,n2=`Object`,r2=`Prefix`,i2=`PartsCount`,a2=`PartNumber`,o2=`PutObject`,s2=`PutObjectOutput`,c2=`PutObjectRequest`,l2=`PutObjectTagging`,u2=`PutObjectTaggingOutput`,d2=`PutObjectTaggingRequest`,f2=`Parts`,p2=`Part`,m2=`RequestCharged`,h2=`ResponseCacheControl`,g2=`ResponseContentDisposition`,_2=`ResponseContentEncoding`,v2=`ResponseContentLanguage`,y2=`ResponseContentType`,b2=`ResponseExpires`,x2=`RestoreExpiryDate`,S2=`RequestPayer`,C2=`ReplicationStatus`,w2=`RestoreStatus`,T2=`Range`,E2=`Restore`,D2=`StartAfter`,O2=`SecretAccessKey`,k2=`StreamingBlob`,A2=`StorageClass`,j2=`SessionCredentialValue`,M2=`SessionCredentials`,N2=`SessionMode`,P2=`ServerSideEncryption`,F2=`SSECustomerAlgorithm`,I2=`SSECustomerKey`,L2=`SSECustomerKeyMD5`,R2=`SSEKMSEncryptionContext`,z2=`SSEKMSKeyId`,B2=`SessionToken`,V2=`Size`,H2=`Tags`,U2=`TagCount`,W2=`TooManyParts`,G2=`TagSet`,K2=`Tag`,q2=`Tagging`,J2=`Type`,Y2=`UploadId`,X2=`UploadPart`,Z2=`UploadPartOutput`,Q2=`UploadPartRequest`,$2=`Value`,e4=`VersionId`,t4=`WriteOffsetBytes`,n4=`WebsiteRedirectLocation`,r4=`accept-ranges`,i4=`bucket-region`,a4=`client`,o4=`continuation-token`,s4=`delimiter`,c4=`error`,l4=`encoding-type`,u4=`fetch-owner`,d4=`http`,f4=`httpChecksum`,p4=`httpError`,Q=`httpHeader`,m4=`httpPayload`,h4=`httpPrefixHeaders`,g4=`httpQuery`,_4=`max-buckets`,v4=`max-keys`,y4=`prefix`,b4=`partNumber`,x4=`response-cache-control`,S4=`response-content-disposition`,C4=`response-content-encoding`,w4=`response-content-language`,T4=`response-content-type`,E4=`response-expires`,D4=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,O4=`start-after`,k4=`streaming`,A4=`uploadId`,j4=`versionId`,M4=`xmlFlattened`,N4=`xmlName`,P4=`x-amz-acl`,F4=`x-amz-abort-date`,I4=`x-amz-abort-rule-id`,L4=`x-amz-bucket-arn`,R4=`x-amz-bypass-governance-retention`,z4=`x-amz-bucket-object-lock-enabled`,B4=`x-amz-checksum-algorithm`,V4=`x-amz-checksum-crc32`,H4=`x-amz-checksum-crc32c`,U4=`x-amz-checksum-crc64nvme`,W4=`x-amz-checksum-mode`,G4=`x-amz-checksum-sha1`,K4=`x-amz-checksum-sha256`,q4=`x-amz-create-session-mode`,J4=`x-amz-checksum-type`,Y4=`x-amz-delete-marker`,X4=`x-amz-expiration`,Z4=`x-amz-expected-bucket-owner`,Q4=`x-amz-grant-full-control`,$4=`x-amz-grant-read`,e3=`x-amz-grant-read-acp`,t3=`x-amz-grant-write`,n3=`x-amz-grant-write-acp`,r3=`x-amz-if-match-initiated-time`,i3=`x-amz-if-match-last-modified-time`,a3=`x-amz-if-match-size`,o3=`x-amz-meta-`,s3=`x-amz-mfa`,c3=`x-amz-missing-meta`,l3=`x-amz-mp-object-size`,u3=`x-amz-mp-parts-count`,d3=`x-amz-object-lock-legal-hold`,f3=`x-amz-object-lock-mode`,p3=`x-amz-object-lock-retain-until-date`,m3=`x-amz-object-ownership`,h3=`x-amz-optional-object-attributes`,g3=`x-amz-object-size`,_3=`x-amz-restore`,v3=`x-amz-request-charged`,y3=`x-amz-request-payer`,b3=`x-amz-replication-status`,x3=`x-amz-storage-class`,S3=`x-amz-sdk-checksum-algorithm`,C3=`x-amz-server-side-encryption`,w3=`x-amz-server-side-encryption-aws-kms-key-id`,T3=`x-amz-server-side-encryption-bucket-key-enabled`,E3=`x-amz-server-side-encryption-context`,D3=`x-amz-server-side-encryption-customer-algorithm`,O3=`x-amz-server-side-encryption-customer-key`,k3=`x-amz-server-side-encryption-customer-key-MD5`,A3=`x-amz-tagging`,j3=`x-amz-tagging-count`,M3=`x-amz-version-id`,N3=`x-amz-write-offset-bytes`,P3=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,F3=Gs.for(D4),I3=[-3,D4,`S3ServiceException`,0,[],[]];F3.registerError(I3,$Q);var L3=Gs.for($),R3=[-3,$,g$,{[c4]:a4,[p4]:403},[],[]];L3.registerError(R3,t$);var z3=[-3,$,D$,{[c4]:a4,[p4]:409},[],[]];L3.registerError(z3,r$);var B3=[-3,$,O$,{[c4]:a4,[p4]:409},[],[]];L3.registerError(B3,i$);var V3=[-3,$,B1,{[c4]:a4,[p4]:400},[],[]];L3.registerError(V3,l$);var H3=[-3,$,d0,{[c4]:a4,[p4]:400},[],[]];L3.registerError(H3,p$);var U3=[-3,$,u0,{[c4]:a4,[p4]:403},[A2,w$],[0,0]];L3.registerError(U3,o$);var W3=[-3,$,f0,{[c4]:a4,[p4]:400},[],[]];L3.registerError(W3,u$);var G3=[-3,$,_0,{[c4]:a4,[p4]:400},[],[]];L3.registerError(G3,d$);var K3=[-3,$,U0,{[c4]:a4,[p4]:404},[],[]];L3.registerError(K3,a$);var q3=[-3,$,W0,{[c4]:a4,[p4]:404},[],[]];L3.registerError(q3,s$);var J3=[-3,$,G0,{[c4]:a4,[p4]:404},[],[]];L3.registerError(J3,e$);var Y3=[-3,$,H0,{[c4]:a4},[],[]];L3.registerError(Y3,c$);var X3=[-3,$,q0,{[c4]:a4,[p4]:403},[],[]];L3.registerError(X3,m$);var Z3=[-3,$,$0,{[c4]:a4,[p4]:403},[],[]];L3.registerError(Z3,n$);var Q3=[-3,$,W2,{[c4]:a4,[p4]:400},[],[]];L3.registerError(Q3,f$);var $3=[F3,L3],e6=[0,$,j2,8,0],t6=[0,$,I2,8,0],n6=[0,$,R2,8,0],r6=[0,$,z2,8,0],i6=[0,$,k2,{[k4]:1},42],a6=[3,$,b$,0,[m2],[[0,{[Q]:v3}]]],o6=[3,$,x$,0,[T$,v0,Y2,S2,R1,t0],[[0,1],[0,1],[0,{[g4]:A4}],[0,{[Q]:y3}],[0,{[Q]:Z4}],[6,{[Q]:r3}]],3],s6=[3,$,T$,0,[B0,G$,M$,E$],[0,4,0,0]],c6=[3,$,A$,0,[F1,J2],[0,0]],l6=[3,$,d1,0,[r2],[0]],u6=[3,$,n1,0,[f2],[[()=>W6,{[M4]:1,[N4]:p2}]]],d6=[3,$,m1,0,[V1,V$,H$,U$,v1,y1,a2],[0,0,0,0,0,0,1]],f6=[3,$,r1,{[N4]:a1},[b0,T$,v0,L1,V1,V$,H$,U$,v1,y1,w1,P2,e4,z2,j$,m2],[0,0,0,[0,{[Q]:X4}],0,0,0,0,0,0,0,[0,{[Q]:C3}],[0,{[Q]:M3}],[()=>r6,{[Q]:w3}],[2,{[Q]:T3}],[0,{[Q]:v3}]]],p6=[3,$,o1,0,[T$,v0,Y2,z0,V$,H$,U$,v1,y1,w1,R0,S2,R1,e0,c0,F2,I2,L2],[[0,1],[0,1],[0,{[g4]:A4}],[()=>u6,{[m4]:1,[N4]:c1}],[0,{[Q]:V4}],[0,{[Q]:H4}],[0,{[Q]:U4}],[0,{[Q]:G4}],[0,{[Q]:K4}],[0,{[Q]:J4}],[1,{[Q]:l3}],[0,{[Q]:y3}],[0,{[Q]:Z4}],[0,{[Q]:s0}],[0,{[Q]:l0}],[0,{[Q]:D3}],[()=>t6,{[Q]:O3}],[0,{[Q]:k3}]],3],m6=[3,$,L$,0,[E0,b0,T$,H2],[0,()=>k6,()=>c6,[()=>K6,0]]],h6=[3,$,R$,0,[b0,E$],[[0,{[Q]:b0}],[0,{[Q]:L4}]]],g6=[3,$,z$,0,[T$,h$,L$,G1,Y1,X1,Z1,Q1,J0,e2],[[0,1],[0,{[Q]:P4}],[()=>m6,{[m4]:1,[N4]:L$}],[0,{[Q]:Q4}],[0,{[Q]:$4}],[0,{[Q]:e3}],[0,{[Q]:t3}],[0,{[Q]:n3}],[2,{[Q]:z4}],[0,{[Q]:m3}]],1],_6=[3,$,i1,{[N4]:o0},[_$,C$,T$,v0,Y2,P2,F2,L2,z2,R2,j$,m2,F$,w1],[[4,{[Q]:F4}],[0,{[Q]:I4}],[0,{[N4]:T$}],0,0,[0,{[Q]:C3}],[0,{[Q]:D3}],[0,{[Q]:k3}],[()=>r6,{[Q]:w3}],[()=>n6,{[Q]:E3}],[2,{[Q]:T3}],[0,{[Q]:v3}],[0,{[Q]:B4}],[0,{[Q]:J4}]]],v6=[3,$,s1,0,[T$,v0,h$,B$,q$,Y$,X$,E1,U1,G1,Y1,X1,Q1,N0,P2,A2,n4,F2,I2,L2,z2,R2,j$,S2,q2,X0,Z0,Y0,R1,F$,w1],[[0,1],[0,1],[0,{[Q]:P4}],[0,{[Q]:W$}],[0,{[Q]:K$}],[0,{[Q]:J$}],[0,{[Q]:Z$}],[0,{[Q]:T1}],[4,{[Q]:U1}],[0,{[Q]:Q4}],[0,{[Q]:$4}],[0,{[Q]:e3}],[0,{[Q]:n3}],[128,{[h4]:o3}],[0,{[Q]:C3}],[0,{[Q]:x3}],[0,{[Q]:P3}],[0,{[Q]:D3}],[()=>t6,{[Q]:O3}],[0,{[Q]:k3}],[()=>r6,{[Q]:w3}],[()=>n6,{[Q]:E3}],[2,{[Q]:T3}],[0,{[Q]:y3}],[0,{[Q]:A3}],[0,{[Q]:f3}],[5,{[Q]:p3}],[0,{[Q]:d3}],[0,{[Q]:Z4}],[0,{[Q]:B4}],[0,{[Q]:J4}]],2],y6=[3,$,b1,{[N4]:x1},[k1,P2,z2,R2,j$],[[()=>L6,{[N4]:k1}],[0,{[Q]:C3}],[()=>r6,{[Q]:w3}],[()=>n6,{[Q]:E3}],[2,{[Q]:T3}]],1],b6=[3,$,S1,0,[T$,N2,P2,z2,R2,j$],[[0,1],[0,{[Q]:q4}],[0,{[Q]:C3}],[()=>r6,{[Q]:w3}],[()=>n6,{[Q]:E3}],[2,{[Q]:T3}]],1],x6=[3,$,M1,0,[A1,e4,m2],[[2,{[Q]:Y4}],[0,{[Q]:M3}],[0,{[Q]:v3}]]],S6=[3,$,N1,0,[T$,v0,F0,e4,S2,k$,R1,e0,n0,r0],[[0,1],[0,1],[0,{[Q]:s3}],[0,{[g4]:j4}],[0,{[Q]:y3}],[2,{[Q]:R4}],[0,{[Q]:Z4}],[0,{[Q]:s0}],[6,{[Q]:i3}],[1,{[Q]:a3}]],2],C6=[3,$,q1,0,[N$,A1,S$,L1,E2,O0,$$,V1,V$,H$,U$,v1,y1,w1,L0,e4,B$,q$,Y$,X$,g1,E1,U1,z1,n4,P2,N0,F2,L2,z2,j$,A2,m2,C2,i2,U2,X0,Z0,Y0],[[()=>i6,16],[2,{[Q]:Y4}],[0,{[Q]:r4}],[0,{[Q]:X4}],[0,{[Q]:_3}],[4,{[Q]:k0}],[1,{[Q]:Q$}],[0,{[Q]:V1}],[0,{[Q]:V4}],[0,{[Q]:H4}],[0,{[Q]:U4}],[0,{[Q]:G4}],[0,{[Q]:K4}],[0,{[Q]:J4}],[1,{[Q]:c3}],[0,{[Q]:M3}],[0,{[Q]:W$}],[0,{[Q]:K$}],[0,{[Q]:J$}],[0,{[Q]:Z$}],[0,{[Q]:_1}],[0,{[Q]:T1}],[4,{[Q]:U1}],[0,{[Q]:z1}],[0,{[Q]:P3}],[0,{[Q]:C3}],[128,{[h4]:o3}],[0,{[Q]:D3}],[0,{[Q]:k3}],[()=>r6,{[Q]:w3}],[2,{[Q]:T3}],[0,{[Q]:x3}],[0,{[Q]:v3}],[0,{[Q]:b3}],[1,{[Q]:u3}],[1,{[Q]:j3}],[0,{[Q]:f3}],[5,{[Q]:p3}],[0,{[Q]:d3}]]],w6=[3,$,J1,0,[T$,v0,e0,a0,c0,h0,T2,h2,g2,_2,v2,y2,b2,e4,F2,I2,L2,S2,a2,R1,u1],[[0,1],[0,1],[0,{[Q]:s0}],[4,{[Q]:i0}],[0,{[Q]:l0}],[4,{[Q]:g0}],[0,{[Q]:T2}],[0,{[g4]:x4}],[0,{[g4]:S4}],[0,{[g4]:C4}],[0,{[g4]:w4}],[0,{[g4]:T4}],[6,{[g4]:E4}],[0,{[g4]:j4}],[0,{[Q]:D3}],[()=>t6,{[Q]:O3}],[0,{[Q]:k3}],[0,{[Q]:y3}],[1,{[g4]:b4}],[0,{[Q]:Z4}],[0,{[Q]:W4}]],2],T6=[3,$,C0,{[N4]:x0},[P$,K0,D1,r2],[[()=>H6,0],()=>j6,0,0]],E6=[3,$,w0,0,[P0,D1,r2,M$],[[1,{[g4]:_4}],[0,{[g4]:o4}],[0,{[g4]:y4}],[0,{[g4]:i4}]]],D6=[3,$,j0,{[N4]:T0},[m0,O1,B0,r2,I1,I0,h1,H1,y0,D1,V0,D2,m2],[2,[()=>G6,{[M4]:1}],0,0,0,1,[()=>U6,{[M4]:1}],0,1,0,0,0,[0,{[Q]:v3}]]],O6=[3,$,M0,0,[T$,I1,H1,I0,r2,D1,W1,D2,S2,R1,t2],[[0,1],[0,{[g4]:s4}],[0,{[g4]:l4}],[1,{[g4]:v4}],[0,{[g4]:y4}],[0,{[g4]:o4}],[2,{[g4]:u4}],[0,{[g4]:O4}],[0,{[Q]:y3}],[0,{[Q]:Z4}],[64,{[Q]:h3}]],1],k6=[3,$,D0,0,[J2,B0],[0,0]],A6=[3,$,n2,0,[v0,O0,V1,F$,w1,V2,A2,K0,w2],[0,4,0,[64,{[M4]:1}],0,1,0,()=>j6,()=>I6]],j6=[3,$,K0,0,[j1,$1],[0,0]],M6=[3,$,s2,0,[L1,V1,V$,H$,U$,v1,y1,w1,P2,e4,F2,L2,z2,R2,j$,V2,m2],[[0,{[Q]:X4}],[0,{[Q]:V1}],[0,{[Q]:V4}],[0,{[Q]:H4}],[0,{[Q]:U4}],[0,{[Q]:G4}],[0,{[Q]:K4}],[0,{[Q]:J4}],[0,{[Q]:C3}],[0,{[Q]:M3}],[0,{[Q]:D3}],[0,{[Q]:k3}],[()=>r6,{[Q]:w3}],[()=>n6,{[Q]:E3}],[2,{[Q]:T3}],[1,{[Q]:g3}],[0,{[Q]:v3}]]],N6=[3,$,c2,0,[T$,v0,h$,N$,B$,q$,Y$,X$,$$,t1,E1,F$,V$,H$,U$,v1,y1,U1,e0,c0,G1,Y1,X1,Q1,t4,N0,P2,A2,n4,F2,I2,L2,z2,R2,j$,S2,q2,X0,Z0,Y0,R1],[[0,1],[0,1],[0,{[Q]:P4}],[()=>i6,16],[0,{[Q]:W$}],[0,{[Q]:K$}],[0,{[Q]:J$}],[0,{[Q]:Z$}],[1,{[Q]:Q$}],[0,{[Q]:e1}],[0,{[Q]:T1}],[0,{[Q]:S3}],[0,{[Q]:V4}],[0,{[Q]:H4}],[0,{[Q]:U4}],[0,{[Q]:G4}],[0,{[Q]:K4}],[4,{[Q]:U1}],[0,{[Q]:s0}],[0,{[Q]:l0}],[0,{[Q]:Q4}],[0,{[Q]:$4}],[0,{[Q]:e3}],[0,{[Q]:n3}],[1,{[Q]:N3}],[128,{[h4]:o3}],[0,{[Q]:C3}],[0,{[Q]:x3}],[0,{[Q]:P3}],[0,{[Q]:D3}],[()=>t6,{[Q]:O3}],[0,{[Q]:k3}],[()=>r6,{[Q]:w3}],[()=>n6,{[Q]:E3}],[2,{[Q]:T3}],[0,{[Q]:y3}],[0,{[Q]:A3}],[0,{[Q]:f3}],[5,{[Q]:p3}],[0,{[Q]:d3}],[0,{[Q]:Z4}]],2],P6=[3,$,u2,0,[e4],[[0,{[Q]:M3}]]],F6=[3,$,d2,0,[T$,v0,q2,e4,t1,F$,R1,S2],[[0,1],[0,1],[()=>z6,{[m4]:1,[N4]:q2}],[0,{[g4]:j4}],[0,{[Q]:e1}],[0,{[Q]:S3}],[0,{[Q]:Z4}],[0,{[Q]:y3}]],3],I6=[3,$,w2,0,[p0,x2],[2,4]],L6=[3,$,M2,0,[v$,O2,B2,L1],[[0,{[N4]:v$}],[()=>e6,{[N4]:O2}],[()=>e6,{[N4]:B2}],[4,{[N4]:L1}]],4],R6=[3,$,K2,0,[v0,$2],[0,0],2],z6=[3,$,q2,0,[G2],[[()=>K6,0]],1],B6=[3,$,Z2,0,[P2,V1,V$,H$,U$,v1,y1,F2,L2,z2,j$,m2],[[0,{[Q]:C3}],[0,{[Q]:V1}],[0,{[Q]:V4}],[0,{[Q]:H4}],[0,{[Q]:U4}],[0,{[Q]:G4}],[0,{[Q]:K4}],[0,{[Q]:D3}],[0,{[Q]:k3}],[()=>r6,{[Q]:w3}],[2,{[Q]:T3}],[0,{[Q]:v3}]]],V6=[3,$,Q2,0,[T$,v0,a2,Y2,N$,$$,t1,F$,V$,H$,U$,v1,y1,F2,I2,L2,S2,R1],[[0,1],[0,1],[1,{[g4]:b4}],[0,{[g4]:A4}],[()=>i6,16],[1,{[Q]:Q$}],[0,{[Q]:e1}],[0,{[Q]:S3}],[0,{[Q]:V4}],[0,{[Q]:H4}],[0,{[Q]:U4}],[0,{[Q]:G4}],[0,{[Q]:K4}],[0,{[Q]:D3}],[()=>t6,{[Q]:O3}],[0,{[Q]:k3}],[0,{[Q]:y3}],[0,{[Q]:Z4}]],4],H6=[1,$,P$,0,[()=>s6,{[N4]:T$}]],U6=[1,$,f1,0,()=>l6],W6=[1,$,p1,0,()=>d6],G6=[1,$,Q0,0,[()=>A6,0]],K6=[1,$,G2,0,[()=>R6,{[N4]:K2}]],q6=[9,$,y$,{[d4]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>o6,()=>a6],J6=[9,$,c1,{[d4]:[`POST`,`/{Key+}`,200]},()=>p6,()=>f6],Y6=[9,$,I$,{[d4]:[`PUT`,`/`,200]},()=>g6,()=>h6],X6=[9,$,l1,{[d4]:[`POST`,`/{Key+}?uploads`,200]},()=>v6,()=>_6],Z6=[9,$,C1,{[d4]:[`GET`,`/?session`,200]},()=>b6,()=>y6],Q6=[9,$,P1,{[d4]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>S6,()=>x6],$6=[9,$,K1,{[f4]:`-`,[d4]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>w6,()=>C6],e8=[9,$,S0,{[d4]:[`GET`,`/?x-id=ListBuckets`,200]},()=>E6,()=>T6],t8=[9,$,A0,{[d4]:[`GET`,`/?list-type=2`,200]},()=>O6,()=>D6],n8=[9,$,o2,{[f4]:`-`,[d4]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>N6,()=>M6],r8=[9,$,l2,{[f4]:`-`,[d4]:[`PUT`,`/{Key+}?tagging`,200]},()=>F6,()=>P6],i8=[9,$,X2,{[f4]:`-`,[d4]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>V6,()=>B6],a8=class extends gd.classBuilder().ep({...QQ,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[Yf(n,e.getEndpointParameterInstructions()),EY(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(Z6).build(){},o8=`@aws-sdk/client-s3`,s8=`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,c8=`3.1004.0`,l8={build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},u8=`./dist-cjs/index.js`,d8=`./dist-types/index.d.ts`,f8=`./dist-es/index.js`,p8={"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.973.18`,"@aws-sdk/credential-provider-node":`^3.972.18`,"@aws-sdk/middleware-bucket-endpoint":`^3.972.7`,"@aws-sdk/middleware-expect-continue":`^3.972.7`,"@aws-sdk/middleware-flexible-checksums":`^3.973.4`,"@aws-sdk/middleware-host-header":`^3.972.7`,"@aws-sdk/middleware-location-constraint":`^3.972.7`,"@aws-sdk/middleware-logger":`^3.972.7`,"@aws-sdk/middleware-recursion-detection":`^3.972.7`,"@aws-sdk/middleware-sdk-s3":`^3.972.18`,"@aws-sdk/middleware-ssec":`^3.972.7`,"@aws-sdk/middleware-user-agent":`^3.972.19`,"@aws-sdk/region-config-resolver":`^3.972.7`,"@aws-sdk/signature-v4-multi-region":`^3.996.6`,"@aws-sdk/types":`^3.973.5`,"@aws-sdk/util-endpoints":`^3.996.4`,"@aws-sdk/util-user-agent-browser":`^3.972.7`,"@aws-sdk/util-user-agent-node":`^3.973.4`,"@smithy/config-resolver":`^4.4.10`,"@smithy/core":`^3.23.8`,"@smithy/eventstream-serde-browser":`^4.2.11`,"@smithy/eventstream-serde-config-resolver":`^4.3.11`,"@smithy/eventstream-serde-node":`^4.2.11`,"@smithy/fetch-http-handler":`^5.3.13`,"@smithy/hash-blob-browser":`^4.2.12`,"@smithy/hash-node":`^4.2.11`,"@smithy/hash-stream-node":`^4.2.11`,"@smithy/invalid-dependency":`^4.2.11`,"@smithy/md5-js":`^4.2.11`,"@smithy/middleware-content-length":`^4.2.11`,"@smithy/middleware-endpoint":`^4.4.22`,"@smithy/middleware-retry":`^4.4.39`,"@smithy/middleware-serde":`^4.2.12`,"@smithy/middleware-stack":`^4.2.11`,"@smithy/node-config-provider":`^4.3.11`,"@smithy/node-http-handler":`^4.4.14`,"@smithy/protocol-http":`^5.3.11`,"@smithy/smithy-client":`^4.12.2`,"@smithy/types":`^4.13.0`,"@smithy/url-parser":`^4.2.11`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.38`,"@smithy/util-defaults-mode-node":`^4.2.41`,"@smithy/util-endpoints":`^3.3.2`,"@smithy/util-middleware":`^4.2.11`,"@smithy/util-retry":`^4.2.11`,"@smithy/util-stream":`^4.5.17`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.2.11`,tslib:`^2.6.2`},m8={"@aws-sdk/signature-v4-crt":`3.1004.0`,"@smithy/snapshot-testing":`^1.0.9`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},h8={node:`>=20.0.0`},g8={"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},_8=[`dist-*/**`],v8={name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},y8=`Apache-2.0`,b8={"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},x8=`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,S8={type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`},C8={name:o8,description:s8,version:c8,scripts:l8,main:u8,types:d8,module:f8,sideEffects:!1,dependencies:p8,devDependencies:m8,engines:h8,typesVersions:g8,files:_8,author:v8,license:y8,browser:b8,"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:x8,repository:S8};function w8(e){return typeof e==`string`?e.length===0:e.byteLength===0}var T8={name:`SHA-1`},E8={name:`HMAC`,hash:T8},D8=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),O8=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){Vp().crypto.subtle.importKey(`raw`,k8(e),E8,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!w8(e)){var t=k8(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Vp().crypto.subtle.sign(E8,t,e.toHash).then(function(e){return new Uint8Array(e)})}):w8(this.toHash)?Promise.resolve(D8):Promise.resolve().then(function(){return Vp().crypto.subtle.digest(T8,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function k8(e){return typeof e==`string`?jp(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var A8=function(){function e(e){if($p(Vp()))this.hash=new O8(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(Np(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),j8=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&M8(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&M8(e),parseInt(ws(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function M8(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var N8=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([e.value?0:1]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(j8.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!W8.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Cs(e.value.replace(/\-/g,``)),1),u}}parse(e){let t={},n=0;for(;n{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;l({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}}),a5=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{done:n,value:r}=await t.next();if(n)return e.close();e.enqueue(r)}})},o5=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new r5({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=s5(e)?i5(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){let n=this.universalMarshaller.serialize(e,t);return typeof ReadableStream==`function`?a5(n):n}},s5=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream,c5=e=>new o5(e);async function l5(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},d5=[1732584193,4023233417,2562383102,271733878],f5=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(v5(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=y5(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=m5(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=m5(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=m5(i,a,n,r,e.getUint32(8,!0),17,606105819),r=m5(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=m5(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=m5(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=m5(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=m5(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=m5(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=m5(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=m5(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=m5(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=m5(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=m5(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=m5(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=m5(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=h5(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=h5(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=h5(i,a,n,r,e.getUint32(44,!0),14,643717713),r=h5(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=h5(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=h5(a,n,r,i,e.getUint32(40,!0),9,38016083),i=h5(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=h5(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=h5(n,r,i,a,e.getUint32(36,!0),5,568446438),a=h5(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=h5(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=h5(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=h5(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=h5(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=h5(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=h5(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=g5(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=g5(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=g5(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=g5(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=g5(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=g5(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=g5(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=g5(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=g5(n,r,i,a,e.getUint32(52,!0),4,681279174),a=g5(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=g5(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=g5(r,i,a,n,e.getUint32(24,!0),23,76029189),n=g5(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=g5(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=g5(i,a,n,r,e.getUint32(60,!0),16,530742520),r=g5(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=_5(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=_5(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=_5(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=_5(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=_5(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=_5(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=_5(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=_5(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=_5(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=_5(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=_5(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=_5(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=_5(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=_5(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=_5(i,a,n,r,e.getUint32(8,!0),15,718787259),r=_5(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(d5),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function p5(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function m5(e,t,n,r,i,a,o){return p5(t&n|~t&r,e,t,i,a,o)}function h5(e,t,n,r,i,a,o){return p5(t&r|n&~r,e,t,i,a,o)}function g5(e,t,n,r,i,a,o){return p5(t^n^r,e,t,i,a,o)}function _5(e,t,n,r,i,a,o){return p5(n^(t|~r),e,t,i,a,o)}function v5(e){return typeof e==`string`?e.length===0:e.byteLength===0}function y5(t){return typeof t==`string`?e(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}var b5=n=>({apiVersion:`2006-03-01`,base64Decoder:n?.base64Decoder??ns,base64Encoder:n?.base64Encoder??is,disableHostPrefix:n?.disableHostPrefix??!1,endpointProvider:n?.endpointProvider??GQ,extensions:n?.extensions??[],getAwsChunkedEncodingStream:n?.getAwsChunkedEncodingStream??ss,httpAuthSchemeProvider:n?.httpAuthSchemeProvider??YQ,httpAuthSchemes:n?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new fu},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new pu}],logger:n?.logger??new kd,protocol:n?.protocol??Kd,protocolSettings:n?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:$3,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:n?.sdkStreamMixin??Es,serviceId:n?.serviceId??`S3`,signerConstructor:n?.signerConstructor??FY,signingEscapePath:n?.signingEscapePath??!1,urlParser:n?.urlParser??ru,useArnRegion:n?.useArnRegion??void 0,utf8Decoder:n?.utf8Decoder??e,utf8Encoder:n?.utf8Encoder??t}),x5=e=>{let t=sm(e),n=()=>t().then(bd),r=b5(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??sd,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??rm({serviceId:r.serviceId,clientVersion:C8.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??c5,maxAttempts:e?.maxAttempts??3,md5:e?.md5??f5,region:e?.region??am(`Region is missing`),requestHandler:hs.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Jd),sha1:e?.sha1??A8,sha256:e?.sha256??nm,streamCollector:e?.streamCollector??_s,streamHasher:e?.streamHasher??u5,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},S5=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},C5=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),w5=(e,t)=>{let n=Object.assign(yH(e),Ed(e),xo(e),S5(e));return t.forEach(e=>e.configure(n)),Object.assign(e,bH(n),Dd(n),So(n),C5(n))},T5=class extends pd{config;constructor(...[e]){let t=x5(e||{});super(t),this.initConfig=t,this.config=w5(bY(XQ(NY(Xf(ko(jf(Qf(ZJ(pl(ZQ(t))))))))),{session:[()=>this,a8]}),e?.extensions||[]),this.middlewareStack.use(Rs(this.config)),this.middlewareStack.use(Ef(this.config)),this.middlewareStack.use(ap(this.config)),this.middlewareStack.use(Ff(this.config)),this.middlewareStack.use(Mo(this.config)),this.middlewareStack.use(Fo(this.config)),this.middlewareStack.use(Ro(this.config)),this.middlewareStack.use(Go(this.config,{httpAuthSchemeParametersProvider:KQ,identityProviderConfigProvider:async e=>new cl({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Zo(this.config)),this.middlewareStack.use(MY(this.config)),this.middlewareStack.use(BJ(this.config)),this.middlewareStack.use(nY(this.config)),this.middlewareStack.use(mY(this.config)),this.middlewareStack.use(yY(this.config))}destroy(){super.destroy()}},E5=`ap-southeast-2`,D5=`${window.location.protocol}//${window.location.hostname}:9999`,O5=`${window.location.protocol}//${window.location.hostname}:8443`,k5=null,A5=null,j5=null;function M5(){if(!k5){let e=vo();if(!e)throw Error(`AWS credentials not configured`);k5=new wH({endpoint:D5,region:E5,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return k5}function N5(){if(!A5){let e=vo();if(!e)throw Error(`AWS credentials not configured`);A5=new LJ({endpoint:D5,region:E5,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return A5}function P5(){if(!j5){let e=vo();if(!e)throw Error(`AWS credentials not configured`);j5=new T5({endpoint:O5,region:E5,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),j5.middlewareStack.use({applyToStack:e=>{e.add(e=>t=>{let n=t.request;return n?.path?.endsWith(`/`)&&n.path!==`/`&&(n.path=n.path.slice(0,-1)),e(t)},{step:`build`,name:`removeTrailingSlash`})}})}return j5}function F5(){k5=null,A5=null,j5=null}export{ZV as $,Ne as $t,CJ as A,kd as At,RV as B,is as Bt,gJ as C,Fp as Ct,bJ as D,Yf as Dt,yJ as E,fp as Et,OJ as F,Qc as Ft,UV as G,bo as Gt,BV as H,Oo as Ht,kJ as I,pc as It,KV as J,Aa as Jt,WV as K,vo as Kt,AJ as L,As as Lt,TJ as M,td as Mt,EJ as N,Vu as Nt,xJ as O,Gf as Ot,DJ as P,au as Pt,XV as Q,ia as Qt,jJ as R,ds as Rt,UJ as S,Ip as St,vJ as T,Np as Tt,VV as U,Eo as Ut,zV as V,rs as Vt,HV as W,go as Wt,JV as X,Ea as Xt,qV as Y,Oa as Yt,YV as Z,Ra as Zt,EY as _,hH as _t,q6 as a,rH as at,qJ as b,Wp as bt,X6 as c,oH as ct,e8 as d,lH as dt,Fe as en,QV as et,t8 as f,uH as ft,QQ as g,mH as gt,i8 as h,pH as ht,P5 as i,nH as it,wJ as j,gd as jt,SJ as k,Wf as kt,Q6 as l,sH as lt,r8 as m,fH as mt,M5 as n,$V as nt,J6 as o,iH as ot,n8 as p,dH as pt,GV as q,yo as qt,N5 as r,tH as rt,Y6 as s,aH as st,F5 as t,Oe as tn,eH as tt,$6 as u,cH as ut,JJ as v,gH as vt,_J as w,Pp as wt,VJ as x,Gp as xt,GJ as y,Up as yt,AH as z,os as zt}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/back-link.js b/hive/services/hiveui/frontend/dist/assets/back-link.js index 2872b1e39..09450f776 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{n as e,t}from"./compiler-runtime.js";import{t as n}from"./link.js";import{t as r}from"./createLucideIcon.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/button.js b/hive/services/hiveui/frontend/dist/assets/button.js new file mode 100644 index 000000000..129843799 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/button.js @@ -0,0 +1 @@ +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{l as i,n as a}from"./utils.js";function o(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var s={};function c(e,t,n,r,i){let a={...m(e,s)};return t&&(a=u(a,t)),n&&(a=u(a,n)),r&&(a=u(a,r)),i&&(a=u(a,i)),a}function l(e){if(e.length===0)return s;if(e.length===1)return m(e[0],s);let t={...m(e[0],s)};for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function p(e){return typeof e==`function`}function m(e,t){return p(e)?e(t):e??s}function h(e,t){return t?e?n=>{if(ee(n)){let r=n;g(r);let i=t(r);return r.baseUIHandlerPrevented||e?.(r),i}let r=t(n);return e?.(n),r}:t:e}function g(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function _(e,t){return t?e?t+` `+e:t:e}function ee(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function v(e,...t){let n=new URL(`https://base-ui.com/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`Base UI error #${e}; visit ${n} for the full message.`}var y=e(n()),te={};function b(e,t){let n=y.useRef(te);return n.current===te&&(n.current=e(t)),n}function x(e,t,n,r){let i=b(S).current;return re(i,e,t,n,r)&&C(i,[e,t,n,r]),i.callback}function ne(e){let t=b(S).current;return ie(t,e)&&C(t,e),t.callback}function S(){return{callback:null,cleanup:null,refs:[]}}function re(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ie(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function C(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function T(e){if(!y.isValidElement(e))return null;let t=e,n=t.props;return(w(19)?n?.ref:t.ref)??null}function oe(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function se(e,t){return typeof e==`function`?e(t):e}function ce(e,t){return typeof e==`function`?e(t):e}function le(){}var ue=Object.freeze([]),E=Object.freeze({}),de={style:{transition:`none`}},fe=`data-base-ui-click-trigger`,pe={fallbackAxisSide:`none`},me={fallbackAxisSide:`end`},he={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function D(e,t,n={}){let r=t.render,i=ge(t,n);return n.enabled===!1?null:ve(e,r,i,n.state??E)}function ge(e,t={}){let{className:n,style:r,render:i}=e,{state:a=E,ref:s,props:c,stateAttributesMapping:u,enabled:d=!0}=t,f=d?se(n,a):void 0,p=d?ce(r,a):void 0,m=d?oe(a,u):E,h=d?o(m,Array.isArray(c)?l(c):c)??E:E;return typeof document<`u`&&(d?Array.isArray(s)?h.ref=ne([h.ref,T(i),...s]):h.ref=x(h.ref,T(i),s):x(null,null)),d?(f!==void 0&&(h.className=_(h.className,f)),p!==void 0&&(h.style=o(h.style,p)),h):E}var _e=Symbol.for(`react.lazy`);function ve(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=c(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===_e&&(i=y.Children.toArray(t)[0]),y.cloneElement(i,e)}if(e&&typeof e==`string`)return ye(e,n);throw Error(v(8))}function ye(e,t){return e===`button`?(0,y.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,y.createElement)(`img`,{alt:``,...t,key:t.key}):y.createElement(e,t)}var O=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,k=i,A=(e,t)=>n=>{if(t?.variants==null)return k(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=O(t)||O(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return k(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function j(){return typeof window<`u`}function M(e){return F(e)?(e.nodeName||``).toLowerCase():`#document`}function N(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function P(e){return((F(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function F(e){return j()?e instanceof Node||e instanceof N(e).Node:!1}function I(e){return j()?e instanceof Element||e instanceof N(e).Element:!1}function L(e){return j()?e instanceof HTMLElement||e instanceof N(e).HTMLElement:!1}function R(e){return!j()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof N(e).ShadowRoot}function z(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function be(e){return/^(table|td|th)$/.test(M(e))}function B(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var xe=/transform|translate|scale|rotate|perspective|filter/,Se=/paint|layout|strict|content/,V=e=>!!e&&e!==`none`,H;function U(e){let t=I(e)?K(e):e;return V(t.transform)||V(t.translate)||V(t.scale)||V(t.rotate)||V(t.perspective)||!W()&&(V(t.backdropFilter)||V(t.filter))||xe.test(t.willChange||``)||Se.test(t.contain||``)}function Ce(e){let t=q(e);for(;L(t)&&!G(t);){if(U(t))return t;if(B(t))return null;t=q(t)}return null}function W(){return H??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),H}function G(e){return/^(html|body|#document)$/.test(M(e))}function K(e){return N(e).getComputedStyle(e)}function we(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(M(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||R(e)&&e.host||P(e);return R(t)?t.host:t}function J(e){let t=q(e);return G(t)?e.ownerDocument?e.ownerDocument.body:e.body:L(t)&&z(t)?t:J(t)}function Y(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=J(e),i=r===e.ownerDocument?.body,a=N(r);if(i){let e=X(a);return t.concat(a,a.visualViewport||[],z(r)?r:[],e&&n?Y(e):[])}else return t.concat(r,Y(r,[],n))}function X(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Z=y[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Te=Z&&Z!==y.useLayoutEffect?Z:e=>e();function Q(e){let t=b(Ee).current;return t.next=e,Te(t.effect),t.trampoline}function Ee(){let e={next:void 0,callback:De,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function De(){}var Oe={...y},ke=typeof document<`u`?y.useLayoutEffect:()=>{},Ae=y.createContext(void 0);function je(e=!1){let t=y.useContext(Ae);if(t===void 0&&!e)throw Error(v(16));return t}function Me(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:y.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Ne(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,a=y.useRef(null),o=je(!0)!==void 0,s=Q(()=>{let e=a.current;return!!(e?.tagName===`A`&&e?.href)}),{props:l}=Me({focusableWhenDisabled:n,disabled:t,composite:o,tabIndex:r,isNativeButton:i}),u=y.useCallback(()=>{let e=a.current;Pe(e)&&o&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,o]);return ke(u,[u]),{getButtonProps:y.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:u,...d}=e;return c({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(g(e),o?.(e)),e.baseUIHandlerPrevented)return;let r=e.target===e.currentTarget&&!i&&!s()&&!t,a=e.key===`Enter`,c=e.key===` `;r&&((c||a)&&e.preventDefault(),a&&n?.(e))},onKeyUp(e){t||(g(e),a?.(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!t&&e.key===` `&&n?.(e)},onPointerDown(e){if(t){e.preventDefault();return}u?.(e)}},i?void 0:{role:`button`},l,d)},[t,l,i,s]),buttonRef:Q(e=>{a.current=e,u()})}}function Pe(e){return L(e)&&e.tagName===`BUTTON`}var Fe=y.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,...s}=e,{getButtonProps:c,buttonRef:l}=Ne({disabled:i,focusableWhenDisabled:a,native:o});return D(`button`,e,{state:{disabled:i},ref:[t,l],props:[s,c]})}),Ie=r(),Le=t(),$=A(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none 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]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{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:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,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 Re(e){let t=(0,Ie.c)(12),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({className:n,variant:i,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s=i===void 0?`default`:i,c=o===void 0?`default`:o,l;t[5]!==n||t[6]!==c||t[7]!==s?(l=a($({variant:s,size:c,className:n})),t[5]=n,t[6]=c,t[7]=s,t[8]=l):l=t[8];let u;return t[9]!==r||t[10]!==l?(u=(0,Le.jsx)(Fe,{className:l,"data-slot":`button`,...r}),t[9]=r,t[10]=l,t[11]=u):u=t[11],u}export{pe as A,c as B,be as C,D,A as E,le as F,w as I,x as L,he as M,ue as N,fe as O,E as P,b as R,R as S,W as T,I as _,Oe as a,F as b,Ce as c,M as d,we as f,U as g,N as h,ke as i,me as j,de as k,P as l,q as m,$ as n,Q as o,Y as p,Ne as r,K as s,Re as t,X as u,L as v,B as w,z as x,G as y,v as z}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/check.js b/hive/services/hiveui/frontend/dist/assets/check.js index 4bcfbbe65..5ddb6de60 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{t as e}from"./createLucideIcon.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/compiler-runtime.js b/hive/services/hiveui/frontend/dist/assets/compiler-runtime.js new file mode 100644 index 000000000..4ccc4aebc --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/compiler-runtime.js @@ -0,0 +1 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=l()})),d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),m=o(((e,t)=>{t.exports=p()}));export{c as a,o as i,f as n,u as r,m as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/create-bucket.js b/hive/services/hiveui/frontend/dist/assets/create-bucket.js index 33bfe8e6b..8450cbffa 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 C,k as P,c as _,u as v,j as t}from"./index.js";import{a as E,u as z}from"./zod.js";import{B as M}from"./back-link.js";import{E as L}from"./error-banner.js";import{F as $}from"./form-actions.js";import{P as A}from"./page-heading.js";import{F as I,a as R,b as H}from"./field.js";import{I as O}from"./input.js";import{u as T}from"./s3.js";const q=C({bucketName:P().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 Y(){const e=_.c(35),r=v(),s=T();let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={resolver:E(q)},e[0]=f):f=e[0];const{handleSubmit:j,register:B,formState:S}=z(f),{errors:b,isSubmitting:y}=S;let p;e[1]!==s||e[2]!==r?(p=async w=>{await s.mutateAsync(w),r({to:"/s3/ls"})},e[1]=s,e[2]=r,e[3]=p):p=e[3];const N=p;let k,x;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(M,{to:"/s3/ls",children:"Back to buckets"}),x=t.jsx(A,{title:"Create Bucket"}),e[4]=k,e[5]=x):(k=e[4],x=e[5]);let a;e[6]!==s.error?(a=s.error&&t.jsx(L,{error:s.error,msg:"Failed to create bucket"}),e[6]=s.error,e[7]=a):a=e[7];let i;e[8]!==j||e[9]!==N?(i=j(N),e[8]=j,e[9]=N,e[10]=i):i=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(R,{children:t.jsx("label",{htmlFor:"bucketName",children:"Bucket Name"})}),e[11]=h):h=e[11];const F=!!b.bucketName;let o;e[12]!==B?(o=B("bucketName"),e[12]=B,e[13]=o):o=e[13];let n;e[14]!==F||e[15]!==o?(n=t.jsx(O,{"aria-invalid":F,id:"bucketName",placeholder:"my-bucket",type:"text",...o}),e[14]=F,e[15]=o,e[16]=n):n=e[16];let c;e[17]!==b.bucketName?(c=t.jsx(I,{errors:[b.bucketName]}),e[17]=b.bucketName,e[18]=c):c=e[18];let l;e[19]!==n||e[20]!==c?(l=t.jsxs(H,{children:[h,n,c]}),e[19]=n,e[20]=c,e[21]=l):l=e[21];let m;e[22]!==r?(m=()=>r({to:"/s3/ls"}),e[22]=r,e[23]=m):m=e[23];let u;e[24]!==s.isPending||e[25]!==y||e[26]!==m?(u=t.jsx($,{isPending:s.isPending,isSubmitting:y,onCancel:m,pendingLabel:"Creating\\u2026",submitLabel:"Create Bucket"}),e[24]=s.isPending,e[25]=y,e[26]=m,e[27]=u):u=e[27];let d;e[28]!==l||e[29]!==u||e[30]!==i?(d=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[l,u]}),e[28]=l,e[29]=u,e[30]=i,e[31]=d):d=e[31];let g;return e[32]!==d||e[33]!==a?(g=t.jsxs(t.Fragment,{children:[k,x,a,d]}),e[32]=d,e[33]=a,e[34]=g):g=e[34],g}export{Y as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./useNavigate.js";import"./button.js";import{t as i}from"./back-link.js";import"./separator.js";import{Qt as a,Zt as o}from"./awsClient.js";import{t as s}from"./s3.js";import{O as c}from"./index.js";import{t as l}from"./page-heading.js";import{i as u,n as d,t as f}from"./field.js";import{r as p,t as m}from"./zod.js";import{t as h}from"./form-actions.js";var g=t(),_=o({bucketName:a().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`)}),v=e();function y(){let e=(0,g.c)(35),t=r(),a=s(),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:m(_)},e[0]=o):o=e[0];let{handleSubmit:y,register:b,formState:x}=p(o),{errors:S,isSubmitting:C}=x,w;e[1]!==a||e[2]!==t?(w=async e=>{await a.mutateAsync(e),t({to:`/s3/ls`})},e[1]=a,e[2]=t,e[3]=w):w=e[3];let T=w,E,D;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,v.jsx)(i,{to:`/s3/ls`,children:`Back to buckets`}),D=(0,v.jsx)(l,{title:`Create Bucket`}),e[4]=E,e[5]=D):(E=e[4],D=e[5]);let O;e[6]===a.error?O=e[7]:(O=a.error&&(0,v.jsx)(n,{error:a.error,msg:`Failed to create bucket`}),e[6]=a.error,e[7]=O);let k;e[8]!==y||e[9]!==T?(k=y(T),e[8]=y,e[9]=T,e[10]=k):k=e[10];let A;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,v.jsx)(u,{children:(0,v.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),e[11]=A):A=e[11];let j=!!S.bucketName,M;e[12]===b?M=e[13]:(M=b(`bucketName`),e[12]=b,e[13]=M);let N;e[14]!==j||e[15]!==M?(N=(0,v.jsx)(c,{"aria-invalid":j,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...M}),e[14]=j,e[15]=M,e[16]=N):N=e[16];let P;e[17]===S.bucketName?P=e[18]:(P=(0,v.jsx)(d,{errors:[S.bucketName]}),e[17]=S.bucketName,e[18]=P);let F;e[19]!==N||e[20]!==P?(F=(0,v.jsxs)(f,{children:[A,N,P]}),e[19]=N,e[20]=P,e[21]=F):F=e[21];let I;e[22]===t?I=e[23]:(I=()=>t({to:`/s3/ls`}),e[22]=t,e[23]=I);let L;e[24]!==a.isPending||e[25]!==C||e[26]!==I?(L=(0,v.jsx)(h,{isPending:a.isPending,isSubmitting:C,onCancel:I,pendingLabel:`Creating\\u2026`,submitLabel:`Create Bucket`}),e[24]=a.isPending,e[25]=C,e[26]=I,e[27]=L):L=e[27];let R;e[28]!==F||e[29]!==L||e[30]!==k?(R=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:k,children:[F,L]}),e[28]=F,e[29]=L,e[30]=k,e[31]=R):R=e[31];let z;return e[32]!==R||e[33]!==O?(z=(0,v.jsxs)(v.Fragment,{children:[E,D,O,R]}),e[32]=R,e[33]=O,e[34]=z):z=e[34],z}export{y as component}; \ No newline at end of file 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 fab81ff6a..4994f2b13 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{c as _,u as M,j as a,B as K,r as T}from"./index.js";import{a as B,u as E}from"./zod.js";import{B as L}from"./back-link.js";import{E as R}from"./error-banner.js";import{F as U}from"./form-actions.js";import{P as O}from"./page-heading.js";import{F as $,a as z,b as H}from"./field.js";import{I}from"./input.js";import{e as Y}from"./ec2.js";import{e as q}from"./ec22.js";import{A as G,a as J,b as Q,c as V,d as W,e as X,f as Z,g as ee}from"./alert-dialog.js";import{T as te}from"./textarea.js";import{u as ae,T as se}from"./use-copy-to-clipboard.js";import{C as le}from"./check.js";import{D as re}from"./download.js";function ie(t){const e=_.c(37),{open:s,keyName:l,keyMaterial:d}=t,k=M(),{copied:P,copy:D}=ae();let S;e[0]!==d||e[1]!==l?(S=()=>{const v=new Blob([d],{type:"text/plain"}),F=URL.createObjectURL(v),w=document.createElement("a");w.href=F,w.download=`${l}.pem`,w.click(),URL.revokeObjectURL(F)},e[0]=d,e[1]=l,e[2]=S):S=e[2];const b=S;let g;e[3]!==k?(g=()=>{k({to:"/ec2/describe-key-pairs"})},e[3]=k,e[4]=g):g=e[4];const N=g;let C,j;e[5]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(G,{children:a.jsx(se,{className:"text-destructive"})}),j=a.jsx(J,{children:"Save Your Private Key"}),e[5]=C,e[6]=j):(C=e[5],j=e[6]);let y;e[7]!==l?(y=a.jsxs(Q,{children:[C,j,a.jsxs(V,{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."]})]}),e[7]=l,e[8]=y):y=e[8];let r;e[9]!==d?(r=a.jsx(te,{className:"font-mono text-xs",readOnly:!0,rows:12,value:d}),e[9]=d,e[10]=r):r=e[10];let i;e[11]!==D||e[12]!==d?(i=()=>D(d),e[11]=D,e[12]=d,e[13]=i):i=e[13];let p;e[14]!==P?(p=P?a.jsxs(a.Fragment,{children:[a.jsx(le,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",e[14]=P,e[15]=p):p=e[15];let h;e[16]!==i||e[17]!==p?(h=a.jsx(K,{className:"flex-1",onClick:i,type:"button",variant:"outline",children:p}),e[16]=i,e[17]=p,e[18]=h):h=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(re,{className:"mr-2 size-4"}),e[19]=x):x=e[19];let o;e[20]!==b?(o=a.jsxs(K,{className:"flex-1",onClick:b,type:"button",variant:"outline",children:[x,"Download .pem File"]}),e[20]=b,e[21]=o):o=e[21];let n;e[22]!==o||e[23]!==h?(n=a.jsxs("div",{className:"flex gap-2",children:[h,o]}),e[22]=o,e[23]=h,e[24]=n):n=e[24];let c;e[25]!==n||e[26]!==r?(c=a.jsxs("div",{className:"space-y-3",children:[r,n]}),e[25]=n,e[26]=r,e[27]=c):c=e[27];let m;e[28]!==N?(m=a.jsx(W,{children:a.jsx(X,{onClick:N,children:"Close and Continue"})}),e[28]=N,e[29]=m):m=e[29];let f;e[30]!==c||e[31]!==m||e[32]!==y?(f=a.jsxs(Z,{className:"max-w-2xl",children:[y,c,m]}),e[30]=c,e[31]=m,e[32]=y,e[33]=f):f=e[33];let u;return e[34]!==s||e[35]!==f?(u=a.jsx(ee,{open:s,children:f}),e[34]=s,e[35]=f,e[36]=u):u=e[36],u}function Ne(){const t=_.c(37),e=M(),s=Y(),[l,d]=T.useState(null);let k;t[0]===Symbol.for("react.memo_cache_sentinel")?(k={resolver:B(q)},t[0]=k):k=t[0];const{handleSubmit:P,register:D,formState:S}=E(k),{errors:b,isSubmitting:g}=S;let N;t[1]!==s?(N=async w=>{const A=await s.mutateAsync(w);A.KeyMaterial&&d({keyName:w.keyName,material:A.KeyMaterial})},t[1]=s,t[2]=N):N=t[2];const C=N;let j,y;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(L,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),y=a.jsx(O,{title:"Create Key Pair"}),t[3]=j,t[4]=y):(j=t[3],y=t[4]);let r;t[5]!==s.error?(r=s.error&&a.jsx(R,{error:s.error,msg:"Failed to create key pair"}),t[5]=s.error,t[6]=r):r=t[6];let i;t[7]!==P||t[8]!==C?(i=P(C),t[7]=P,t[8]=C,t[9]=i):i=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(z,{children:a.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),t[10]=p):p=t[10];const h=!!b.keyName;let x;t[11]!==D?(x=D("keyName"),t[11]=D,t[12]=x):x=t[12];let o;t[13]!==h||t[14]!==x?(o=a.jsx(I,{"aria-invalid":h,id:"keyName",placeholder:"my-key-pair…",...x}),t[13]=h,t[14]=x,t[15]=o):o=t[15];let n;t[16]!==b.keyName?(n=a.jsx($,{errors:[b.keyName]}),t[16]=b.keyName,t[17]=n):n=t[17];let c;t[18]!==o||t[19]!==n?(c=a.jsxs(H,{children:[p,o,n]}),t[18]=o,t[19]=n,t[20]=c):c=t[20];let m;t[21]!==e?(m=()=>e({to:"/ec2/describe-key-pairs"}),t[21]=e,t[22]=m):m=t[22];let f;t[23]!==s.isPending||t[24]!==g||t[25]!==m?(f=a.jsx(U,{isPending:s.isPending,isSubmitting:g,onCancel:m,pendingLabel:"Creating…",submitLabel:"Create Key Pair"}),t[23]=s.isPending,t[24]=g,t[25]=m,t[26]=f):f=t[26];let u;t[27]!==c||t[28]!==f||t[29]!==i?(u=a.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[c,f]}),t[27]=c,t[28]=f,t[29]=i,t[30]=u):u=t[30];let v;t[31]!==l?(v=l&&a.jsx(ie,{keyMaterial:l.material,keyName:l.keyName,open:!!l}),t[31]=l,t[32]=v):v=t[32];let F;return t[33]!==u||t[34]!==v||t[35]!==r?(F=a.jsxs(a.Fragment,{children:[j,y,r,u,v]}),t[33]=u,t[34]=v,t[35]=r,t[36]=F):F=t[36],F}export{Ne as component}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as a}from"./useNavigate.js";import{t as o}from"./button.js";import{t as s}from"./back-link.js";import{t as c}from"./check.js";import{t as l}from"./download.js";import{n as u,t as d}from"./use-copy-to-clipboard.js";import"./separator.js";import"./awsClient.js";import{a as f}from"./ec2.js";import"./ec22.js";import{O as p}from"./index.js";import{t as m}from"./page-heading.js";import{a as h,c as g,i as _,l as v,o as y,r as b,s as x,t as S}from"./alert-dialog.js";import{i as C,n as w,t as T}from"./field.js";import{t as E}from"./textarea.js";import{r as D,t as O}from"./zod.js";import{n as k}from"./ec23.js";import{t as A}from"./form-actions.js";var j=e(n()),M=r(),N=t();function P(e){let t=(0,M.c)(37),{open:n,keyName:r,keyMaterial:i}=e,s=a(),{copied:f,copy:p}=d(),m;t[0]!==i||t[1]!==r?(m=()=>{let e=new Blob([i],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${r}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=i,t[1]=r,t[2]=m):m=t[2];let C=m,w;t[3]===s?w=t[4]:(w=()=>{s({to:`/ec2/describe-key-pairs`})},t[3]=s,t[4]=w);let T=w,D,O;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,N.jsx)(g,{children:(0,N.jsx)(u,{className:`text-destructive`})}),O=(0,N.jsx)(v,{children:`Save Your Private Key`}),t[5]=D,t[6]=O):(D=t[5],O=t[6]);let k;t[7]===r?k=t[8]:(k=(0,N.jsxs)(x,{children:[D,O,(0,N.jsxs)(h,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:r}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=r,t[8]=k);let A;t[9]===i?A=t[10]:(A=(0,N.jsx)(E,{className:`font-mono text-xs`,readOnly:!0,rows:12,value:i}),t[9]=i,t[10]=A);let j;t[11]!==p||t[12]!==i?(j=()=>p(i),t[11]=p,t[12]=i,t[13]=j):j=t[13];let P;t[14]===f?P=t[15]:(P=f?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=f,t[15]=P);let F;t[16]!==j||t[17]!==P?(F=(0,N.jsx)(o,{className:`flex-1`,onClick:j,type:`button`,variant:`outline`,children:P}),t[16]=j,t[17]=P,t[18]=F):F=t[18];let I;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,N.jsx)(l,{className:`mr-2 size-4`}),t[19]=I):I=t[19];let L;t[20]===C?L=t[21]:(L=(0,N.jsxs)(o,{className:`flex-1`,onClick:C,type:`button`,variant:`outline`,children:[I,`Download .pem File`]}),t[20]=C,t[21]=L);let R;t[22]!==L||t[23]!==F?(R=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[F,L]}),t[22]=L,t[23]=F,t[24]=R):R=t[24];let z;t[25]!==R||t[26]!==A?(z=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[A,R]}),t[25]=R,t[26]=A,t[27]=z):z=t[27];let B;t[28]===T?B=t[29]:(B=(0,N.jsx)(y,{children:(0,N.jsx)(b,{onClick:T,children:`Close and Continue`})}),t[28]=T,t[29]=B);let V;t[30]!==z||t[31]!==B||t[32]!==k?(V=(0,N.jsxs)(_,{className:`max-w-2xl`,children:[k,z,B]}),t[30]=z,t[31]=B,t[32]=k,t[33]=V):V=t[33];let H;return t[34]!==n||t[35]!==V?(H=(0,N.jsx)(S,{open:n,children:V}),t[34]=n,t[35]=V,t[36]=H):H=t[36],H}function F(){let e=(0,M.c)(37),t=a(),n=f(),[r,o]=(0,j.useState)(null),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={resolver:O(k)},e[0]=c):c=e[0];let{handleSubmit:l,register:u,formState:d}=D(c),{errors:h,isSubmitting:g}=d,_;e[1]===n?_=e[2]:(_=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&o({keyName:e.keyName,material:t.KeyMaterial})},e[1]=n,e[2]=_);let v=_,y,b;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,N.jsx)(s,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b=(0,N.jsx)(m,{title:`Create Key Pair`}),e[3]=y,e[4]=b):(y=e[3],b=e[4]);let x;e[5]===n.error?x=e[6]:(x=n.error&&(0,N.jsx)(i,{error:n.error,msg:`Failed to create key pair`}),e[5]=n.error,e[6]=x);let S;e[7]!==l||e[8]!==v?(S=l(v),e[7]=l,e[8]=v,e[9]=S):S=e[9];let E;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,N.jsx)(C,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[10]=E):E=e[10];let F=!!h.keyName,I;e[11]===u?I=e[12]:(I=u(`keyName`),e[11]=u,e[12]=I);let L;e[13]!==F||e[14]!==I?(L=(0,N.jsx)(p,{"aria-invalid":F,id:`keyName`,placeholder:`my-key-pair…`,...I}),e[13]=F,e[14]=I,e[15]=L):L=e[15];let R;e[16]===h.keyName?R=e[17]:(R=(0,N.jsx)(w,{errors:[h.keyName]}),e[16]=h.keyName,e[17]=R);let z;e[18]!==L||e[19]!==R?(z=(0,N.jsxs)(T,{children:[E,L,R]}),e[18]=L,e[19]=R,e[20]=z):z=e[20];let B;e[21]===t?B=e[22]:(B=()=>t({to:`/ec2/describe-key-pairs`}),e[21]=t,e[22]=B);let V;e[23]!==n.isPending||e[24]!==g||e[25]!==B?(V=(0,N.jsx)(A,{isPending:n.isPending,isSubmitting:g,onCancel:B,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[23]=n.isPending,e[24]=g,e[25]=B,e[26]=V):V=e[26];let H;e[27]!==z||e[28]!==V||e[29]!==S?(H=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:S,children:[z,V]}),e[27]=z,e[28]=V,e[29]=S,e[30]=H):H=e[30];let U;e[31]===r?U=e[32]:(U=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[31]=r,e[32]=U);let W;return e[33]!==H||e[34]!==U||e[35]!==x?(W=(0,N.jsxs)(N.Fragment,{children:[y,b,x,H,U]}),e[33]=H,e[34]=U,e[35]=x,e[36]=W):W=e[36],W}export{F as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/create-policy.js b/hive/services/hiveui/frontend/dist/assets/create-policy.js index dc92e2fa1..f16e033e3 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-policy.js +++ b/hive/services/hiveui/frontend/dist/assets/create-policy.js @@ -1 +1 @@ -import{c as V,u as H,j as t}from"./index.js";import{a as Y,u as $}from"./zod.js";import{B as q}from"./back-link.js";import{E as z}from"./error-banner.js";import{F as G}from"./form-actions.js";import{P as K}from"./page-heading.js";import{F as k,a as I,b as R}from"./field.js";import{I as J}from"./input.js";import{T as Q}from"./textarea.js";import{a as W}from"./iam.js";import{a as X}from"./iam2.js";const Z=JSON.stringify({Version:"2012-10-17",Statement:[{Effect:"Allow",Action:"*",Resource:"*"}]},null,2);function pe(){const e=V.c(58),s=H(),o=W();let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S={resolver:Y(X),defaultValues:{policyDocument:Z}},e[0]=S):S=e[0];const{handleSubmit:L,register:l,formState:M}=$(S),{errors:i,isSubmitting:T}=M;let F;e[1]!==o||e[2]!==s?(F=async U=>{await o.mutateAsync(U),s({to:"/iam/list-policies"})},e[1]=o,e[2]=s,e[3]=F):F=e[3];const w=F;let D,_;e[4]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(q,{to:"/iam/list-policies",children:"Back to policies"}),_=t.jsx(K,{title:"Create Policy"}),e[4]=D,e[5]=_):(D=e[4],_=e[5]);let r;e[6]!==o.error?(r=o.error&&t.jsx(z,{error:o.error,msg:"Failed to create policy"}),e[6]=o.error,e[7]=r):r=e[7];let c;e[8]!==L||e[9]!==w?(c=L(w),e[8]=L,e[9]=w,e[10]=c):c=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(I,{children:t.jsx("label",{htmlFor:"policyName",children:"Policy Name"})}),e[11]=C):C=e[11];const B=!!i.policyName;let a;e[12]!==l?(a=l("policyName"),e[12]=l,e[13]=a):a=e[13];let n;e[14]!==B||e[15]!==a?(n=t.jsx(J,{"aria-invalid":B,id:"policyName",placeholder:"my-policy...",...a}),e[14]=B,e[15]=a,e[16]=n):n=e[16];let m;e[17]!==i.policyName?(m=t.jsx(k,{errors:[i.policyName]}),e[17]=i.policyName,e[18]=m):m=e[18];let p;e[19]!==n||e[20]!==m?(p=t.jsxs(R,{children:[C,n,m]}),e[19]=n,e[20]=m,e[21]=p):p=e[21];let E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(I,{children:t.jsx("label",{htmlFor:"description",children:"Description (optional)"})}),e[22]=E):E=e[22];let f;e[23]!==l?(f=l("description"),e[23]=l,e[24]=f):f=e[24];let d;e[25]!==f?(d=t.jsx(J,{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(k,{errors:[i.description]}),e[27]=i.description,e[28]=y):y=e[28];let u;e[29]!==d||e[30]!==y?(u=t.jsxs(R,{children:[E,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(I,{children:t.jsx("label",{htmlFor:"policyDocument",children:"Policy Document (JSON)"})}),e[32]=A):A=e[32];const O=!!i.policyDocument;let x;e[33]!==l?(x=l("policyDocument"),e[33]=l,e[34]=x):x=e[34];let h;e[35]!==O||e[36]!==x?(h=t.jsx(Q,{"aria-invalid":O,className:"font-mono text-sm",id:"policyDocument",rows:15,...x}),e[35]=O,e[36]=x,e[37]=h):h=e[37];let j;e[38]!==i.policyDocument?(j=t.jsx(k,{errors:[i.policyDocument]}),e[38]=i.policyDocument,e[39]=j):j=e[39];let b;e[40]!==h||e[41]!==j?(b=t.jsxs(R,{children:[A,h,j]}),e[40]=h,e[41]=j,e[42]=b):b=e[42];let g;e[43]!==s?(g=()=>s({to:"/iam/list-policies"}),e[43]=s,e[44]=g):g=e[44];let N;e[45]!==o.isPending||e[46]!==T||e[47]!==g?(N=t.jsx(G,{isPending:o.isPending,isSubmitting:T,onCancel:g,pendingLabel:"Creating...",submitLabel:"Create Policy"}),e[45]=o.isPending,e[46]=T,e[47]=g,e[48]=N):N=e[48];let P;e[49]!==p||e[50]!==u||e[51]!==b||e[52]!==N||e[53]!==c?(P=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:c,children:[p,u,b,N]}),e[49]=p,e[50]=u,e[51]=b,e[52]=N,e[53]=c,e[54]=P):P=e[54];let v;return e[55]!==P||e[56]!==r?(v=t.jsxs(t.Fragment,{children:[D,_,r,P]}),e[55]=P,e[56]=r,e[57]=v):v=e[57],v}export{pe as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./useNavigate.js";import"./button.js";import{t as i}from"./back-link.js";import"./separator.js";import"./awsClient.js";import{r as a}from"./iam.js";import{O as o}from"./index.js";import{t as s}from"./page-heading.js";import{i as c,n as l,t as u}from"./field.js";import{t as d}from"./textarea.js";import{r as f,t as p}from"./zod.js";import{t as m}from"./form-actions.js";import{t as h}from"./iam3.js";var g=t(),_=e(),v=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function y(){let e=(0,g.c)(58),t=r(),y=a(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:p(h),defaultValues:{policyDocument:v}},e[0]=b):b=e[0];let{handleSubmit:x,register:S,formState:C}=f(b),{errors:w,isSubmitting:T}=C,E;e[1]!==y||e[2]!==t?(E=async e=>{await y.mutateAsync(e),t({to:`/iam/list-policies`})},e[1]=y,e[2]=t,e[3]=E):E=e[3];let D=E,O,k;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,_.jsx)(i,{to:`/iam/list-policies`,children:`Back to policies`}),k=(0,_.jsx)(s,{title:`Create Policy`}),e[4]=O,e[5]=k):(O=e[4],k=e[5]);let A;e[6]===y.error?A=e[7]:(A=y.error&&(0,_.jsx)(n,{error:y.error,msg:`Failed to create policy`}),e[6]=y.error,e[7]=A);let j;e[8]!==x||e[9]!==D?(j=x(D),e[8]=x,e[9]=D,e[10]=j):j=e[10];let M;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,_.jsx)(c,{children:(0,_.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),e[11]=M):M=e[11];let N=!!w.policyName,P;e[12]===S?P=e[13]:(P=S(`policyName`),e[12]=S,e[13]=P);let F;e[14]!==N||e[15]!==P?(F=(0,_.jsx)(o,{"aria-invalid":N,id:`policyName`,placeholder:`my-policy...`,...P}),e[14]=N,e[15]=P,e[16]=F):F=e[16];let I;e[17]===w.policyName?I=e[18]:(I=(0,_.jsx)(l,{errors:[w.policyName]}),e[17]=w.policyName,e[18]=I);let L;e[19]!==F||e[20]!==I?(L=(0,_.jsxs)(u,{children:[M,F,I]}),e[19]=F,e[20]=I,e[21]=L):L=e[21];let R;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,_.jsx)(c,{children:(0,_.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[22]=R):R=e[22];let z;e[23]===S?z=e[24]:(z=S(`description`),e[23]=S,e[24]=z);let B;e[25]===z?B=e[26]:(B=(0,_.jsx)(o,{id:`description`,placeholder:`A brief description of this policy...`,...z}),e[25]=z,e[26]=B);let V;e[27]===w.description?V=e[28]:(V=(0,_.jsx)(l,{errors:[w.description]}),e[27]=w.description,e[28]=V);let H;e[29]!==B||e[30]!==V?(H=(0,_.jsxs)(u,{children:[R,B,V]}),e[29]=B,e[30]=V,e[31]=H):H=e[31];let U;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(c,{children:(0,_.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),e[32]=U):U=e[32];let W=!!w.policyDocument,G;e[33]===S?G=e[34]:(G=S(`policyDocument`),e[33]=S,e[34]=G);let K;e[35]!==W||e[36]!==G?(K=(0,_.jsx)(d,{"aria-invalid":W,className:`font-mono text-sm`,id:`policyDocument`,rows:15,...G}),e[35]=W,e[36]=G,e[37]=K):K=e[37];let q;e[38]===w.policyDocument?q=e[39]:(q=(0,_.jsx)(l,{errors:[w.policyDocument]}),e[38]=w.policyDocument,e[39]=q);let J;e[40]!==K||e[41]!==q?(J=(0,_.jsxs)(u,{children:[U,K,q]}),e[40]=K,e[41]=q,e[42]=J):J=e[42];let Y;e[43]===t?Y=e[44]:(Y=()=>t({to:`/iam/list-policies`}),e[43]=t,e[44]=Y);let X;e[45]!==y.isPending||e[46]!==T||e[47]!==Y?(X=(0,_.jsx)(m,{isPending:y.isPending,isSubmitting:T,onCancel:Y,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),e[45]=y.isPending,e[46]=T,e[47]=Y,e[48]=X):X=e[48];let Z;e[49]!==L||e[50]!==H||e[51]!==J||e[52]!==X||e[53]!==j?(Z=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,J,X]}),e[49]=L,e[50]=H,e[51]=J,e[52]=X,e[53]=j,e[54]=Z):Z=e[54];let Q;return e[55]!==Z||e[56]!==A?(Q=(0,_.jsxs)(_.Fragment,{children:[O,k,A,Z]}),e[55]=Z,e[56]=A,e[57]=Q):Q=e[57],Q}export{y as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/create-snapshot.js b/hive/services/hiveui/frontend/dist/assets/create-snapshot.js index 795d828c9..b79b1159d 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 z,u as G,p as H,R as M,j as t}from"./index.js";import{a as O,u as $,C as q}from"./zod.js";import{u as J}from"./useSuspenseQuery.js";import{B as K}from"./back-link.js";import{E as U}from"./error-banner.js";import{F as W}from"./form-actions.js";import{P as X}from"./page-heading.js";import{F as Y,b as L,a as N}from"./field.js";import{S as Z,a as ee,b as te,c as se,d as oe}from"./select.js";import{T as re}from"./textarea.js";import{c as le}from"./ec2.js";import{d as ie}from"./ec22.js";import"./check.js";function Ie(){const e=z.c(46),o=G(),{data:y}=J(H),s=le();let x;e[0]!==y.Volumes?(x=y.Volumes??[],e[0]=y.Volumes,e[1]=x):x=e[1];const S=x,{volumeId:A}=M.useSearch(),_=A??S[0]?.VolumeId??"";let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=O(ie),e[2]=j):j=e[2];let b;e[3]!==_?(b={resolver:j,defaultValues:{volumeId:_,description:""}},e[3]=_,e[4]=b):b=e[4];const{control:P,handleSubmit:B,register:E,formState:D}=$(b),{errors:r,isSubmitting:R}=D;let g;e[5]!==s||e[6]!==o?(g=async k=>{await s.mutateAsync(k),o({to:"/ec2/describe-snapshots"})},e[5]=s,e[6]=o,e[7]=g):g=e[7];const T=g;let I,v;e[8]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(K,{to:"/ec2/describe-snapshots",children:"Back to snapshots"}),v=t.jsx(X,{title:"Create Snapshot"}),e[8]=I,e[9]=v):(I=e[8],v=e[9]);let l;e[10]!==s.error?(l=s.error&&t.jsx(U,{error:s.error,msg:"Failed to create snapshot"}),e[10]=s.error,e[11]=l):l=e[11];let i;e[12]!==B||e[13]!==T?(i=B(T),e[12]=B,e[13]=T,e[14]=i):i=e[14];let V;e[15]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(N,{children:t.jsx("label",{htmlFor:"volumeId",children:"Volume"})}),e[15]=V):V=e[15];let a;e[16]!==r.volumeId||e[17]!==S?(a=k=>{const{field:w}=k;return t.jsxs(Z,{onValueChange:Q=>w.onChange(Q),value:w.value??"",children:[t.jsx(ee,{"aria-invalid":!!r.volumeId,className:"w-full",id:"volumeId",children:t.jsx(te,{})}),t.jsx(se,{children:S.map(ae)})]})},e[16]=r.volumeId,e[17]=S,e[18]=a):a=e[18];let n;e[19]!==P||e[20]!==a?(n=t.jsx(q,{control:P,name:"volumeId",render:a}),e[19]=P,e[20]=a,e[21]=n):n=e[21];let m;e[22]!==r.volumeId?(m=t.jsx(Y,{errors:[r.volumeId]}),e[22]=r.volumeId,e[23]=m):m=e[23];let c;e[24]!==n||e[25]!==m?(c=t.jsxs(L,{children:[V,n,m]}),e[24]=n,e[25]=m,e[26]=c):c=e[26];let C;e[27]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(N,{children:t.jsx("label",{htmlFor:"description",children:"Description (optional)"})}),e[27]=C):C=e[27];let d;e[28]!==E?(d=E("description"),e[28]=E,e[29]=d):d=e[29];let u;e[30]!==d?(u=t.jsxs(L,{children:[C,t.jsx(re,{id:"description",placeholder:"Snapshot description",...d})]}),e[30]=d,e[31]=u):u=e[31];let p;e[32]!==o?(p=()=>o({to:"/ec2/describe-snapshots"}),e[32]=o,e[33]=p):p=e[33];let f;e[34]!==s.isPending||e[35]!==R||e[36]!==p?(f=t.jsx(W,{isPending:s.isPending,isSubmitting:R,onCancel:p,pendingLabel:"Creating\\u2026",submitLabel:"Create Snapshot"}),e[34]=s.isPending,e[35]=R,e[36]=p,e[37]=f):f=e[37];let h;e[38]!==c||e[39]!==u||e[40]!==f||e[41]!==i?(h=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[c,u,f]}),e[38]=c,e[39]=u,e[40]=f,e[41]=i,e[42]=h):h=e[42];let F;return e[43]!==h||e[44]!==l?(F=t.jsxs(t.Fragment,{children:[I,v,l,h]}),e[43]=h,e[44]=l,e[45]=F):F=e[45],F}function ae(e){return t.jsxs(oe,{value:e.VolumeId??"",children:[e.VolumeId," (",e.Size," GiB)"]},e.VolumeId)}export{Ie as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as ee}from"./useSuspenseQuery.js";import{t as n}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./useNavigate.js";import"./button.js";import{t as i}from"./back-link.js";import{a,i as o,n as s,r as c,t as l}from"./select.js";import"./separator.js";import"./awsClient.js";import{o as u}from"./ec2.js";import{h as d}from"./ec22.js";import{p as f}from"./index.js";import{t as p}from"./page-heading.js";import{i as m,n as te,t as h}from"./field.js";import{t as g}from"./textarea.js";import{n as _,r as v,t as y}from"./zod.js";import{r as b}from"./ec23.js";import{t as ne}from"./form-actions.js";var re=t(),x=e();function S(){let e=(0,re.c)(46),t=r(),{data:c}=ee(d),S=u(),w;e[0]===c.Volumes?w=e[1]:(w=c.Volumes??[],e[0]=c.Volumes,e[1]=w);let T=w,{volumeId:E}=f.useSearch(),D=E??T[0]?.VolumeId??``,O;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(O=y(b),e[2]=O):O=e[2];let k;e[3]===D?k=e[4]:(k={resolver:O,defaultValues:{volumeId:D,description:``}},e[3]=D,e[4]=k);let{control:A,handleSubmit:j,register:M,formState:N}=v(k),{errors:P,isSubmitting:F}=N,I;e[5]!==S||e[6]!==t?(I=async e=>{await S.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[5]=S,e[6]=t,e[7]=I):I=e[7];let L=I,R,z;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,x.jsx)(i,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),z=(0,x.jsx)(p,{title:`Create Snapshot`}),e[8]=R,e[9]=z):(R=e[8],z=e[9]);let B;e[10]===S.error?B=e[11]:(B=S.error&&(0,x.jsx)(n,{error:S.error,msg:`Failed to create snapshot`}),e[10]=S.error,e[11]=B);let V;e[12]!==j||e[13]!==L?(V=j(L),e[12]=j,e[13]=L,e[14]=V):V=e[14];let H;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,x.jsx)(m,{children:(0,x.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[15]=H):H=e[15];let U;e[16]!==P.volumeId||e[17]!==T?(U=e=>{let{field:t}=e;return(0,x.jsxs)(l,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,x.jsx)(o,{"aria-invalid":!!P.volumeId,className:`w-full`,id:`volumeId`,children:(0,x.jsx)(a,{})}),(0,x.jsx)(s,{children:T.map(C)})]})},e[16]=P.volumeId,e[17]=T,e[18]=U):U=e[18];let W;e[19]!==A||e[20]!==U?(W=(0,x.jsx)(_,{control:A,name:`volumeId`,render:U}),e[19]=A,e[20]=U,e[21]=W):W=e[21];let G;e[22]===P.volumeId?G=e[23]:(G=(0,x.jsx)(te,{errors:[P.volumeId]}),e[22]=P.volumeId,e[23]=G);let K;e[24]!==W||e[25]!==G?(K=(0,x.jsxs)(h,{children:[H,W,G]}),e[24]=W,e[25]=G,e[26]=K):K=e[26];let q;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,x.jsx)(m,{children:(0,x.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[27]=q):q=e[27];let J;e[28]===M?J=e[29]:(J=M(`description`),e[28]=M,e[29]=J);let Y;e[30]===J?Y=e[31]:(Y=(0,x.jsxs)(h,{children:[q,(0,x.jsx)(g,{id:`description`,placeholder:`Snapshot description`,...J})]}),e[30]=J,e[31]=Y);let X;e[32]===t?X=e[33]:(X=()=>t({to:`/ec2/describe-snapshots`}),e[32]=t,e[33]=X);let Z;e[34]!==S.isPending||e[35]!==F||e[36]!==X?(Z=(0,x.jsx)(ne,{isPending:S.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating\\u2026`,submitLabel:`Create Snapshot`}),e[34]=S.isPending,e[35]=F,e[36]=X,e[37]=Z):Z=e[37];let Q;e[38]!==K||e[39]!==Y||e[40]!==Z||e[41]!==V?(Q=(0,x.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[K,Y,Z]}),e[38]=K,e[39]=Y,e[40]=Z,e[41]=V,e[42]=Q):Q=e[42];let $;return e[43]!==Q||e[44]!==B?($=(0,x.jsxs)(x.Fragment,{children:[R,z,B,Q]}),e[43]=Q,e[44]=B,e[45]=$):$=e[45],$}function C(e){return(0,x.jsxs)(c,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}export{S as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/create-subnet.js b/hive/services/hiveui/frontend/dist/assets/create-subnet.js index 84323cd4b..483afc156 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 se,u as le,m as ie,l as re,j as t,n as ne}from"./index.js";import{a as ae,u as oe,C as J}from"./zod.js";import{u as K}from"./useSuspenseQuery.js";import{B as ce}from"./back-link.js";import{E as de}from"./error-banner.js";import{F as me}from"./form-actions.js";import{P as ue}from"./page-heading.js";import{F as U,a as q,b as z}from"./field.js";import{I as fe}from"./input.js";import{S as W,a as X,b as Y,c as ee,d as G}from"./select.js";import{b as pe}from"./ec2.js";import{b as be}from"./ec22.js";import"./check.js";function Ne(){const e=se.c(61),s=le(),{data:w}=K(ie),{data:T}=K(re),l=pe();let C;e[0]!==w.Vpcs?(C=w.Vpcs??[],e[0]=w.Vpcs,e[1]=C):C=e[1];const B=C;let V;e[2]!==T.AvailabilityZones?(V=T.AvailabilityZones??[],e[2]=T.AvailabilityZones,e[3]=V):V=e[3];const D=V;let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=ae(be),e[4]=k):k=e[4];const L=B[0]?.VpcId??"";let F;e[5]!==L?(F={resolver:k,defaultValues:{vpcId:L,cidrBlock:"10.0.1.0/24",availabilityZone:""}},e[5]=L,e[6]=F):F=e[6];const{control:n,handleSubmit:Q,register:R,formState:te}=oe(F),{errors:i,isSubmitting:O}=te;let Z;e[7]!==l||e[8]!==s?(Z=async y=>{const r=(await l.mutateAsync(y)).Subnet?.SubnetId;s(r?{to:"/ec2/describe-subnets/$id",params:{id:r}}:{to:"/ec2/describe-subnets"})},e[7]=l,e[8]=s,e[9]=Z):Z=e[9];const H=Z;let _,N;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(ce,{to:"/ec2/describe-subnets",children:"Back to Subnets"}),N=t.jsx(ue,{title:"Create Subnet"}),e[10]=_,e[11]=N):(_=e[10],N=e[11]);let a;e[12]!==l.error?(a=l.error&&t.jsx(de,{error:l.error,msg:"Failed to create subnet"}),e[12]=l.error,e[13]=a):a=e[13];let o;e[14]!==Q||e[15]!==H?(o=Q(H),e[14]=Q,e[15]=H,e[16]=o):o=e[16];let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(q,{children:t.jsx("label",{htmlFor:"vpcId",children:"VPC"})}),e[17]=A):A=e[17];let c;e[18]!==i.vpcId||e[19]!==B?(c=y=>{const{field:I}=y;return t.jsxs(W,{onValueChange:r=>I.onChange(r),value:I.value??"",children:[t.jsx(X,{"aria-invalid":!!i.vpcId,className:"w-full",id:"vpcId",children:t.jsx(Y,{})}),t.jsx(ee,{children:B.map(he)})]})},e[18]=i.vpcId,e[19]=B,e[20]=c):c=e[20];let d;e[21]!==n||e[22]!==c?(d=t.jsx(J,{control:n,name:"vpcId",render:c}),e[21]=n,e[22]=c,e[23]=d):d=e[23];let m;e[24]!==i.vpcId?(m=t.jsx(U,{errors:[i.vpcId]}),e[24]=i.vpcId,e[25]=m):m=e[25];let u;e[26]!==d||e[27]!==m?(u=t.jsxs(z,{children:[A,d,m]}),e[26]=d,e[27]=m,e[28]=u):u=e[28];let P;e[29]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(q,{children:t.jsx("label",{htmlFor:"cidrBlock",children:"CIDR Block"})}),e[29]=P):P=e[29];const M=!!i.cidrBlock;let f;e[30]!==R?(f=R("cidrBlock"),e[30]=R,e[31]=f):f=e[31];let p;e[32]!==M||e[33]!==f?(p=t.jsx(fe,{"aria-invalid":M,id:"cidrBlock",placeholder:"10.0.1.0/24",...f}),e[32]=M,e[33]=f,e[34]=p):p=e[34];let b;e[35]!==i.cidrBlock?(b=t.jsx(U,{errors:[i.cidrBlock]}),e[35]=i.cidrBlock,e[36]=b):b=e[36];let x;e[37]!==p||e[38]!==b?(x=t.jsxs(z,{children:[P,p,b]}),e[37]=p,e[38]=b,e[39]=x):x=e[39];let $;e[40]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(q,{children:t.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone (optional)"})}),e[40]=$):$=e[40];let h;e[41]!==D?(h=y=>{const{field:I}=y;return t.jsxs(W,{onValueChange:r=>I.onChange(r==="none"?"":r),value:I.value||"none",children:[t.jsx(X,{className:"w-full",id:"availabilityZone",children:t.jsx(Y,{})}),t.jsxs(ee,{children:[t.jsx(G,{value:"none",children:"none"}),D.map(xe)]})]})},e[41]=D,e[42]=h):h=e[42];let j;e[43]!==n||e[44]!==h?(j=t.jsxs(z,{children:[$,t.jsx(J,{control:n,name:"availabilityZone",render:h})]}),e[43]=n,e[44]=h,e[45]=j):j=e[45];let v;e[46]!==s?(v=()=>s({to:"/ec2/describe-subnets"}),e[46]=s,e[47]=v):v=e[47];let S;e[48]!==l.isPending||e[49]!==O||e[50]!==v?(S=t.jsx(me,{isPending:l.isPending,isSubmitting:O,onCancel:v,pendingLabel:"Creating\\u2026",submitLabel:"Create Subnet"}),e[48]=l.isPending,e[49]=O,e[50]=v,e[51]=S):S=e[51];let g;e[52]!==o||e[53]!==u||e[54]!==x||e[55]!==j||e[56]!==S?(g=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[u,x,j,S]}),e[52]=o,e[53]=u,e[54]=x,e[55]=j,e[56]=S,e[57]=g):g=e[57];let E;return e[58]!==g||e[59]!==a?(E=t.jsxs(t.Fragment,{children:[_,N,a,g]}),e[58]=g,e[59]=a,e[60]=E):E=e[60],E}function xe(e){return t.jsx(G,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}function he(e){const s=ne(e.Tags);return t.jsx(G,{value:e.VpcId??"",children:s?`${e.VpcId} (${s})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{Ne as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as ee}from"./error-banner.js";import"./useRouterState.js";import{s as r}from"./utils.js";import{t as te}from"./useNavigate.js";import"./button.js";import{t as i}from"./back-link.js";import{a,i as o,n as s,r as c,t as l}from"./select.js";import"./separator.js";import"./awsClient.js";import{s as ne}from"./ec2.js";import{_ as re,t as ie}from"./ec22.js";import{O as ae}from"./index.js";import{t as oe}from"./page-heading.js";import{i as u,n as d,t as f}from"./field.js";import{n as p,r as se,t as ce}from"./zod.js";import{i as m}from"./ec23.js";import{t as le}from"./form-actions.js";var ue=t(),h=e();function g(){let e=(0,ue.c)(61),t=te(),{data:r}=n(re),{data:g}=n(ie),_=ne(),v;e[0]===r.Vpcs?v=e[1]:(v=r.Vpcs??[],e[0]=r.Vpcs,e[1]=v);let y=v,b;e[2]===g.AvailabilityZones?b=e[3]:(b=g.AvailabilityZones??[],e[2]=g.AvailabilityZones,e[3]=b);let x=b,S;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=ce(m),e[4]=S):S=e[4];let C=y[0]?.VpcId??``,w;e[5]===C?w=e[6]:(w={resolver:S,defaultValues:{vpcId:C,cidrBlock:`10.0.1.0/24`,availabilityZone:``}},e[5]=C,e[6]=w);let{control:T,handleSubmit:E,register:D,formState:pe}=se(w),{errors:O,isSubmitting:k}=pe,A;e[7]!==_||e[8]!==t?(A=async e=>{let n=(await _.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[7]=_,e[8]=t,e[9]=A):A=e[9];let j=A,M,N;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,h.jsx)(i,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),N=(0,h.jsx)(oe,{title:`Create Subnet`}),e[10]=M,e[11]=N):(M=e[10],N=e[11]);let P;e[12]===_.error?P=e[13]:(P=_.error&&(0,h.jsx)(ee,{error:_.error,msg:`Failed to create subnet`}),e[12]=_.error,e[13]=P);let F;e[14]!==E||e[15]!==j?(F=E(j),e[14]=E,e[15]=j,e[16]=F):F=e[16];let I;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(u,{children:(0,h.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[17]=I):I=e[17];let L;e[18]!==O.vpcId||e[19]!==y?(L=e=>{let{field:t}=e;return(0,h.jsxs)(l,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,h.jsx)(o,{"aria-invalid":!!O.vpcId,className:`w-full`,id:`vpcId`,children:(0,h.jsx)(a,{})}),(0,h.jsx)(s,{children:y.map(fe)})]})},e[18]=O.vpcId,e[19]=y,e[20]=L):L=e[20];let R;e[21]!==T||e[22]!==L?(R=(0,h.jsx)(p,{control:T,name:`vpcId`,render:L}),e[21]=T,e[22]=L,e[23]=R):R=e[23];let z;e[24]===O.vpcId?z=e[25]:(z=(0,h.jsx)(d,{errors:[O.vpcId]}),e[24]=O.vpcId,e[25]=z);let B;e[26]!==R||e[27]!==z?(B=(0,h.jsxs)(f,{children:[I,R,z]}),e[26]=R,e[27]=z,e[28]=B):B=e[28];let V;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,h.jsx)(u,{children:(0,h.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[29]=V):V=e[29];let H=!!O.cidrBlock,U;e[30]===D?U=e[31]:(U=D(`cidrBlock`),e[30]=D,e[31]=U);let W;e[32]!==H||e[33]!==U?(W=(0,h.jsx)(ae,{"aria-invalid":H,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...U}),e[32]=H,e[33]=U,e[34]=W):W=e[34];let G;e[35]===O.cidrBlock?G=e[36]:(G=(0,h.jsx)(d,{errors:[O.cidrBlock]}),e[35]=O.cidrBlock,e[36]=G);let K;e[37]!==W||e[38]!==G?(K=(0,h.jsxs)(f,{children:[V,W,G]}),e[37]=W,e[38]=G,e[39]=K):K=e[39];let q;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,h.jsx)(u,{children:(0,h.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[40]=q):q=e[40];let J;e[41]===x?J=e[42]:(J=e=>{let{field:t}=e;return(0,h.jsxs)(l,{onValueChange:e=>t.onChange(e===`none`?``:e),value:t.value||`none`,children:[(0,h.jsx)(o,{className:`w-full`,id:`availabilityZone`,children:(0,h.jsx)(a,{})}),(0,h.jsxs)(s,{children:[(0,h.jsx)(c,{value:`none`,children:`none`}),x.map(de)]})]})},e[41]=x,e[42]=J);let Y;e[43]!==T||e[44]!==J?(Y=(0,h.jsxs)(f,{children:[q,(0,h.jsx)(p,{control:T,name:`availabilityZone`,render:J})]}),e[43]=T,e[44]=J,e[45]=Y):Y=e[45];let X;e[46]===t?X=e[47]:(X=()=>t({to:`/ec2/describe-subnets`}),e[46]=t,e[47]=X);let Z;e[48]!==_.isPending||e[49]!==k||e[50]!==X?(Z=(0,h.jsx)(le,{isPending:_.isPending,isSubmitting:k,onCancel:X,pendingLabel:`Creating\\u2026`,submitLabel:`Create Subnet`}),e[48]=_.isPending,e[49]=k,e[50]=X,e[51]=Z):Z=e[51];let Q;e[52]!==F||e[53]!==B||e[54]!==K||e[55]!==Y||e[56]!==Z?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[B,K,Y,Z]}),e[52]=F,e[53]=B,e[54]=K,e[55]=Y,e[56]=Z,e[57]=Q):Q=e[57];let $;return e[58]!==Q||e[59]!==P?($=(0,h.jsxs)(h.Fragment,{children:[M,N,P,Q]}),e[58]=Q,e[59]=P,e[60]=$):$=e[60],$}function de(e){return(0,h.jsx)(c,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function fe(e){let t=r(e.Tags);return(0,h.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{g as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/create-user.js b/hive/services/hiveui/frontend/dist/assets/create-user.js index 305531882..20b34bb06 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-user.js +++ b/hive/services/hiveui/frontend/dist/assets/create-user.js @@ -1 +1 @@ -import{c as R,u as H,j as t}from"./index.js";import{a as M,u as T}from"./zod.js";import{B as $}from"./back-link.js";import{E as q}from"./error-banner.js";import{F as z}from"./form-actions.js";import{P as D}from"./page-heading.js";import{F as B,a as k,b as L}from"./field.js";import{I as w}from"./input.js";import{u as G}from"./iam.js";import{c as J}from"./iam2.js";function re(){const e=R.c(46),i=H(),r=G();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={resolver:M(J)},e[0]=g):g=e[0];const{handleSubmit:C,register:a,formState:A}=T(g),{errors:s,isSubmitting:U}=A;let F;e[1]!==r||e[2]!==i?(F=async I=>{await r.mutateAsync(I),i({to:"/iam/list-users"})},e[1]=r,e[2]=i,e[3]=F):F=e[3];const E=F;let N,S;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx($,{to:"/iam/list-users",children:"Back to users"}),S=t.jsx(D,{title:"Create User"}),e[4]=N,e[5]=S):(N=e[4],S=e[5]);let l;e[6]!==r.error?(l=r.error&&t.jsx(q,{error:r.error,msg:"Failed to create user"}),e[6]=r.error,e[7]=l):l=e[7];let o;e[8]!==C||e[9]!==E?(o=C(E),e[8]=C,e[9]=E,e[10]=o):o=e[10];let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(k,{children:t.jsx("label",{htmlFor:"userName",children:"User Name"})}),e[11]=y):y=e[11];const v=!!s.userName;let m;e[12]!==a?(m=a("userName"),e[12]=a,e[13]=m):m=e[13];let n;e[14]!==v||e[15]!==m?(n=t.jsx(w,{"aria-invalid":v,id:"userName",placeholder:"my-user...",...m}),e[14]=v,e[15]=m,e[16]=n):n=e[16];let c;e[17]!==s.userName?(c=t.jsx(B,{errors:[s.userName]}),e[17]=s.userName,e[18]=c):c=e[18];let f;e[19]!==n||e[20]!==c?(f=t.jsxs(L,{children:[y,n,c]}),e[19]=n,e[20]=c,e[21]=f):f=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(k,{children:t.jsx("label",{htmlFor:"path",children:"Path (optional)"})}),e[22]=_):_=e[22];let u;e[23]!==a?(u=a("path"),e[23]=a,e[24]=u):u=e[24];let p;e[25]!==u?(p=t.jsx(w,{id:"path",placeholder:"/",...u}),e[25]=u,e[26]=p):p=e[26];let h;e[27]!==s.path?(h=t.jsx(B,{errors:[s.path]}),e[27]=s.path,e[28]=h):h=e[28];let d;e[29]!==p||e[30]!==h?(d=t.jsxs(L,{children:[_,p,h]}),e[29]=p,e[30]=h,e[31]=d):d=e[31];let x;e[32]!==i?(x=()=>i({to:"/iam/list-users"}),e[32]=i,e[33]=x):x=e[33];let j;e[34]!==r.isPending||e[35]!==U||e[36]!==x?(j=t.jsx(z,{isPending:r.isPending,isSubmitting:U,onCancel:x,pendingLabel:"Creating...",submitLabel:"Create User"}),e[34]=r.isPending,e[35]=U,e[36]=x,e[37]=j):j=e[37];let b;e[38]!==f||e[39]!==d||e[40]!==j||e[41]!==o?(b=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[f,d,j]}),e[38]=f,e[39]=d,e[40]=j,e[41]=o,e[42]=b):b=e[42];let P;return e[43]!==b||e[44]!==l?(P=t.jsxs(t.Fragment,{children:[N,S,l,b]}),e[43]=b,e[44]=l,e[45]=P):P=e[45],P}export{re as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./useNavigate.js";import"./button.js";import{t as i}from"./back-link.js";import"./separator.js";import"./awsClient.js";import{i as a}from"./iam.js";import{O as o}from"./index.js";import{t as s}from"./page-heading.js";import{i as c,n as l,t as u}from"./field.js";import{r as d,t as f}from"./zod.js";import{t as p}from"./form-actions.js";import{n as m}from"./iam3.js";var h=t(),g=e();function _(){let e=(0,h.c)(46),t=r(),_=a(),v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:f(m)},e[0]=v):v=e[0];let{handleSubmit:y,register:b,formState:x}=d(v),{errors:S,isSubmitting:C}=x,w;e[1]!==_||e[2]!==t?(w=async e=>{await _.mutateAsync(e),t({to:`/iam/list-users`})},e[1]=_,e[2]=t,e[3]=w):w=e[3];let T=w,E,D;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,g.jsx)(i,{to:`/iam/list-users`,children:`Back to users`}),D=(0,g.jsx)(s,{title:`Create User`}),e[4]=E,e[5]=D):(E=e[4],D=e[5]);let O;e[6]===_.error?O=e[7]:(O=_.error&&(0,g.jsx)(n,{error:_.error,msg:`Failed to create user`}),e[6]=_.error,e[7]=O);let k;e[8]!==y||e[9]!==T?(k=y(T),e[8]=y,e[9]=T,e[10]=k):k=e[10];let A;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,g.jsx)(c,{children:(0,g.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),e[11]=A):A=e[11];let j=!!S.userName,M;e[12]===b?M=e[13]:(M=b(`userName`),e[12]=b,e[13]=M);let N;e[14]!==j||e[15]!==M?(N=(0,g.jsx)(o,{"aria-invalid":j,id:`userName`,placeholder:`my-user...`,...M}),e[14]=j,e[15]=M,e[16]=N):N=e[16];let P;e[17]===S.userName?P=e[18]:(P=(0,g.jsx)(l,{errors:[S.userName]}),e[17]=S.userName,e[18]=P);let F;e[19]!==N||e[20]!==P?(F=(0,g.jsxs)(u,{children:[A,N,P]}),e[19]=N,e[20]=P,e[21]=F):F=e[21];let I;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,g.jsx)(c,{children:(0,g.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[22]=I):I=e[22];let L;e[23]===b?L=e[24]:(L=b(`path`),e[23]=b,e[24]=L);let R;e[25]===L?R=e[26]:(R=(0,g.jsx)(o,{id:`path`,placeholder:`/`,...L}),e[25]=L,e[26]=R);let z;e[27]===S.path?z=e[28]:(z=(0,g.jsx)(l,{errors:[S.path]}),e[27]=S.path,e[28]=z);let B;e[29]!==R||e[30]!==z?(B=(0,g.jsxs)(u,{children:[I,R,z]}),e[29]=R,e[30]=z,e[31]=B):B=e[31];let V;e[32]===t?V=e[33]:(V=()=>t({to:`/iam/list-users`}),e[32]=t,e[33]=V);let H;e[34]!==_.isPending||e[35]!==C||e[36]!==V?(H=(0,g.jsx)(p,{isPending:_.isPending,isSubmitting:C,onCancel:V,pendingLabel:`Creating...`,submitLabel:`Create User`}),e[34]=_.isPending,e[35]=C,e[36]=V,e[37]=H):H=e[37];let U;e[38]!==F||e[39]!==B||e[40]!==H||e[41]!==k?(U=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:k,children:[F,B,H]}),e[38]=F,e[39]=B,e[40]=H,e[41]=k,e[42]=U):U=e[42];let W;return e[43]!==U||e[44]!==O?(W=(0,g.jsxs)(g.Fragment,{children:[E,D,O,U]}),e[43]=U,e[44]=O,e[45]=W):W=e[45],W}export{_ as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/create-volume.js b/hive/services/hiveui/frontend/dist/assets/create-volume.js index 8e30e89a8..52afb4bd8 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 H,u as M,l as O,j as i}from"./index.js";import{a as $,u as q,C as J}from"./zod.js";import{u as K}from"./useSuspenseQuery.js";import{B as U}from"./back-link.js";import{E as W}from"./error-banner.js";import{F as X}from"./form-actions.js";import{P as Y}from"./page-heading.js";import{F as Q,a as R,b as T}from"./field.js";import{I as ee}from"./input.js";import{S as ie,a as te,b as le,c as ae,d as se}from"./select.js";import{a as re}from"./ec2.js";import{a as oe}from"./ec22.js";import"./check.js";function ge(){const e=H.c(52),a=M(),{data:_}=K(O),t=re();let y;e[0]!==_.AvailabilityZones?(y=_.AvailabilityZones??[],e[0]=_.AvailabilityZones,e[1]=y):y=e[1];const h=y,N=h[0]?.ZoneName??"";let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=$(oe),e[2]=j):j=e[2];let Z;e[3]!==N?(Z={resolver:j,defaultValues:{size:1,availabilityZone:N}},e[3]=N,e[4]=Z):Z=e[4];const{control:V,handleSubmit:P,register:B,formState:D}=q(Z),{errors:l,isSubmitting:E}=D;let g;e[5]!==t||e[6]!==a?(g=async I=>{await t.mutateAsync(I),a({to:"/ec2/describe-volumes"})},e[5]=t,e[6]=a,e[7]=g):g=e[7];const k=g;let S,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i.jsx(U,{to:"/ec2/describe-volumes",children:"Back to volumes"}),C=i.jsx(Y,{title:"Create Volume"}),e[8]=S,e[9]=C):(S=e[8],C=e[9]);let s;e[10]!==t.error?(s=t.error&&i.jsx(W,{error:t.error,msg:"Failed to create volume"}),e[10]=t.error,e[11]=s):s=e[11];let r;e[12]!==P||e[13]!==k?(r=P(k),e[12]=P,e[13]=k,e[14]=r):r=e[14];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(R,{children:i.jsx("label",{htmlFor:"size",children:"Size (GiB)"})}),e[15]=F):F=e[15];const w=!!l.size;let o;e[16]!==B?(o=B("size",{valueAsNumber:!0}),e[16]=B,e[17]=o):o=e[17];let n;e[18]!==w||e[19]!==o?(n=i.jsx(ee,{"aria-invalid":w,id:"size",max:16384,min:1,type:"number",...o}),e[18]=w,e[19]=o,e[20]=n):n=e[20];let m;e[21]!==l.size?(m=i.jsx(Q,{errors:[l.size]}),e[21]=l.size,e[22]=m):m=e[22];let c;e[23]!==n||e[24]!==m?(c=i.jsxs(T,{children:[F,n,m]}),e[23]=n,e[24]=m,e[25]=c):c=e[25];let z;e[26]===Symbol.for("react.memo_cache_sentinel")?(z=i.jsx(R,{children:i.jsx("label",{htmlFor:"availabilityZone",children:"Availability Zone"})}),e[26]=z):z=e[26];let u;e[27]!==h||e[28]!==l.availabilityZone?(u=I=>{const{field:L}=I;return i.jsxs(ie,{onValueChange:G=>L.onChange(G),value:L.value??"",children:[i.jsx(te,{"aria-invalid":!!l.availabilityZone,className:"w-full",id:"availabilityZone",children:i.jsx(le,{})}),i.jsx(ae,{children:h.map(ne)})]})},e[27]=h,e[28]=l.availabilityZone,e[29]=u):u=e[29];let f;e[30]!==V||e[31]!==u?(f=i.jsx(J,{control:V,name:"availabilityZone",render:u}),e[30]=V,e[31]=u,e[32]=f):f=e[32];let d;e[33]!==l.availabilityZone?(d=i.jsx(Q,{errors:[l.availabilityZone]}),e[33]=l.availabilityZone,e[34]=d):d=e[34];let b;e[35]!==f||e[36]!==d?(b=i.jsxs(T,{children:[z,f,d]}),e[35]=f,e[36]=d,e[37]=b):b=e[37];let v;e[38]!==a?(v=()=>a({to:"/ec2/describe-volumes"}),e[38]=a,e[39]=v):v=e[39];let x;e[40]!==t.isPending||e[41]!==E||e[42]!==v?(x=i.jsx(X,{isPending:t.isPending,isSubmitting:E,onCancel:v,pendingLabel:"Creating\\u2026",submitLabel:"Create Volume"}),e[40]=t.isPending,e[41]=E,e[42]=v,e[43]=x):x=e[43];let p;e[44]!==c||e[45]!==b||e[46]!==x||e[47]!==r?(p=i.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:r,children:[c,b,x]}),e[44]=c,e[45]=b,e[46]=x,e[47]=r,e[48]=p):p=e[48];let A;return e[49]!==p||e[50]!==s?(A=i.jsxs(i.Fragment,{children:[S,C,s,p]}),e[49]=p,e[50]=s,e[51]=A):A=e[51],A}function ne(e){return i.jsx(se,{value:e.ZoneName??"",children:e.ZoneName},e.ZoneName)}export{ge as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as i}from"./useNavigate.js";import"./button.js";import{t as a}from"./back-link.js";import{a as o,i as ee,n as s,r as c,t as l}from"./select.js";import"./separator.js";import"./awsClient.js";import{c as u}from"./ec2.js";import{t as d}from"./ec22.js";import{O as f}from"./index.js";import{t as te}from"./page-heading.js";import{i as p,n as m,t as h}from"./field.js";import{n as ne,r as re,t as g}from"./zod.js";import{a as _}from"./ec23.js";import{t as ie}from"./form-actions.js";var v=t(),y=e();function b(){let e=(0,v.c)(52),t=i(),{data:c}=n(d),b=u(),S;e[0]===c.AvailabilityZones?S=e[1]:(S=c.AvailabilityZones??[],e[0]=c.AvailabilityZones,e[1]=S);let C=S,w=C[0]?.ZoneName??``,T;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(T=g(_),e[2]=T):T=e[2];let E;e[3]===w?E=e[4]:(E={resolver:T,defaultValues:{size:1,availabilityZone:w}},e[3]=w,e[4]=E);let{control:D,handleSubmit:O,register:k,formState:A}=re(E),{errors:j,isSubmitting:M}=A,N;e[5]!==b||e[6]!==t?(N=async e=>{await b.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=b,e[6]=t,e[7]=N):N=e[7];let P=N,F,I;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,y.jsx)(a,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),I=(0,y.jsx)(te,{title:`Create Volume`}),e[8]=F,e[9]=I):(F=e[8],I=e[9]);let L;e[10]===b.error?L=e[11]:(L=b.error&&(0,y.jsx)(r,{error:b.error,msg:`Failed to create volume`}),e[10]=b.error,e[11]=L);let R;e[12]!==O||e[13]!==P?(R=O(P),e[12]=O,e[13]=P,e[14]=R):R=e[14];let z;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,y.jsx)(p,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),e[15]=z):z=e[15];let B=!!j.size,V;e[16]===k?V=e[17]:(V=k(`size`,{valueAsNumber:!0}),e[16]=k,e[17]=V);let H;e[18]!==B||e[19]!==V?(H=(0,y.jsx)(f,{"aria-invalid":B,id:`size`,max:16384,min:1,type:`number`,...V}),e[18]=B,e[19]=V,e[20]=H):H=e[20];let U;e[21]===j.size?U=e[22]:(U=(0,y.jsx)(m,{errors:[j.size]}),e[21]=j.size,e[22]=U);let W;e[23]!==H||e[24]!==U?(W=(0,y.jsxs)(h,{children:[z,H,U]}),e[23]=H,e[24]=U,e[25]=W):W=e[25];let G;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,y.jsx)(p,{children:(0,y.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),e[26]=G):G=e[26];let K;e[27]!==C||e[28]!==j.availabilityZone?(K=e=>{let{field:t}=e;return(0,y.jsxs)(l,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,y.jsx)(ee,{"aria-invalid":!!j.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,y.jsx)(o,{})}),(0,y.jsx)(s,{children:C.map(x)})]})},e[27]=C,e[28]=j.availabilityZone,e[29]=K):K=e[29];let q;e[30]!==D||e[31]!==K?(q=(0,y.jsx)(ne,{control:D,name:`availabilityZone`,render:K}),e[30]=D,e[31]=K,e[32]=q):q=e[32];let J;e[33]===j.availabilityZone?J=e[34]:(J=(0,y.jsx)(m,{errors:[j.availabilityZone]}),e[33]=j.availabilityZone,e[34]=J);let Y;e[35]!==q||e[36]!==J?(Y=(0,y.jsxs)(h,{children:[G,q,J]}),e[35]=q,e[36]=J,e[37]=Y):Y=e[37];let X;e[38]===t?X=e[39]:(X=()=>t({to:`/ec2/describe-volumes`}),e[38]=t,e[39]=X);let Z;e[40]!==b.isPending||e[41]!==M||e[42]!==X?(Z=(0,y.jsx)(ie,{isPending:b.isPending,isSubmitting:M,onCancel:X,pendingLabel:`Creating\\u2026`,submitLabel:`Create Volume`}),e[40]=b.isPending,e[41]=M,e[42]=X,e[43]=Z):Z=e[43];let Q;e[44]!==W||e[45]!==Y||e[46]!==Z||e[47]!==R?(Q=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:R,children:[W,Y,Z]}),e[44]=W,e[45]=Y,e[46]=Z,e[47]=R,e[48]=Q):Q=e[48];let $;return e[49]!==Q||e[50]!==L?($=(0,y.jsxs)(y.Fragment,{children:[F,I,L,Q]}),e[49]=Q,e[50]=L,e[51]=$):$=e[51],$}function x(e){return(0,y.jsx)(c,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}export{b as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/create-vpc.js b/hive/services/hiveui/frontend/dist/assets/create-vpc.js index ea651a173..af6906e03 100644 --- a/hive/services/hiveui/frontend/dist/assets/create-vpc.js +++ b/hive/services/hiveui/frontend/dist/assets/create-vpc.js @@ -1 +1 @@ -import{c as R,u as w,j as t}from"./index.js";import{a as A,u as $}from"./zod.js";import{B as D}from"./back-link.js";import{E as H}from"./error-banner.js";import{F as M}from"./form-actions.js";import{P as T}from"./page-heading.js";import{F as q,b as _,a as E}from"./field.js";import{I}from"./input.js";import{u as z}from"./ec2.js";import{c as G}from"./ec22.js";function re(){const e=R.c(41),s=w(),r=z();let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={resolver:A(G),defaultValues:{cidrBlock:"10.0.0.0/16",name:""}},e[0]=h):h=e[0];const{handleSubmit:v,register:i,formState:L}=$(h),{errors:b,isSubmitting:P}=L;let j;e[1]!==r||e[2]!==s?(j=async N=>{const y=(await r.mutateAsync(N)).Vpc?.VpcId;s(y?{to:"/ec2/describe-vpcs/$id",params:{id:y}}:{to:"/ec2/describe-vpcs"})},e[1]=r,e[2]=s,e[3]=j):j=e[3];const S=j;let g,B;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(D,{to:"/ec2/describe-vpcs",children:"Back to VPCs"}),B=t.jsx(T,{title:"Create VPC"}),e[4]=g,e[5]=B):(g=e[4],B=e[5]);let l;e[6]!==r.error?(l=r.error&&t.jsx(H,{error:r.error,msg:"Failed to create VPC"}),e[6]=r.error,e[7]=l):l=e[7];let o;e[8]!==v||e[9]!==S?(o=v(S),e[8]=v,e[9]=S,e[10]=o):o=e[10];let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(E,{children:t.jsx("label",{htmlFor:"cidrBlock",children:"CIDR Block"})}),e[11]=k):k=e[11];const V=!!b.cidrBlock;let c;e[12]!==i?(c=i("cidrBlock"),e[12]=i,e[13]=c):c=e[13];let a;e[14]!==V||e[15]!==c?(a=t.jsx(I,{"aria-invalid":V,id:"cidrBlock",placeholder:"10.0.0.0/16",...c}),e[14]=V,e[15]=c,e[16]=a):a=e[16];let n;e[17]!==b.cidrBlock?(n=t.jsx(q,{errors:[b.cidrBlock]}),e[17]=b.cidrBlock,e[18]=n):n=e[18];let m;e[19]!==a||e[20]!==n?(m=t.jsxs(_,{children:[k,a,n]}),e[19]=a,e[20]=n,e[21]=m):m=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(E,{children:t.jsx("label",{htmlFor:"name",children:"Name (optional)"})}),e[22]=C):C=e[22];let d;e[23]!==i?(d=i("name"),e[23]=i,e[24]=d):d=e[24];let f;e[25]!==d?(f=t.jsxs(_,{children:[C,t.jsx(I,{id:"name",placeholder:"my-vpc",...d})]}),e[25]=d,e[26]=f):f=e[26];let p;e[27]!==s?(p=()=>s({to:"/ec2/describe-vpcs"}),e[27]=s,e[28]=p):p=e[28];let u;e[29]!==r.isPending||e[30]!==P||e[31]!==p?(u=t.jsx(M,{isPending:r.isPending,isSubmitting:P,onCancel:p,pendingLabel:"Creating\\u2026",submitLabel:"Create VPC"}),e[29]=r.isPending,e[30]=P,e[31]=p,e[32]=u):u=e[32];let x;e[33]!==m||e[34]!==f||e[35]!==u||e[36]!==o?(x=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[m,f,u]}),e[33]=m,e[34]=f,e[35]=u,e[36]=o,e[37]=x):x=e[37];let F;return e[38]!==x||e[39]!==l?(F=t.jsxs(t.Fragment,{children:[g,B,l,x]}),e[38]=x,e[39]=l,e[40]=F):F=e[40],F}export{re as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./useNavigate.js";import"./button.js";import{t as i}from"./back-link.js";import"./separator.js";import"./awsClient.js";import{l as a}from"./ec2.js";import"./ec22.js";import{O as o}from"./index.js";import{t as s}from"./page-heading.js";import{i as c,n as l,t as u}from"./field.js";import{r as d,t as f}from"./zod.js";import{o as p}from"./ec23.js";import{t as m}from"./form-actions.js";var h=t(),g=e();function _(){let e=(0,h.c)(41),t=r(),_=a(),v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:f(p),defaultValues:{cidrBlock:`10.0.0.0/16`,name:``}},e[0]=v):v=e[0];let{handleSubmit:y,register:b,formState:x}=d(v),{errors:S,isSubmitting:C}=x,w;e[1]!==_||e[2]!==t?(w=async e=>{let n=(await _.mutateAsync(e)).Vpc?.VpcId;t(n?{to:`/ec2/describe-vpcs/$id`,params:{id:n}}:{to:`/ec2/describe-vpcs`})},e[1]=_,e[2]=t,e[3]=w):w=e[3];let T=w,E,D;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,g.jsx)(i,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),D=(0,g.jsx)(s,{title:`Create VPC`}),e[4]=E,e[5]=D):(E=e[4],D=e[5]);let O;e[6]===_.error?O=e[7]:(O=_.error&&(0,g.jsx)(n,{error:_.error,msg:`Failed to create VPC`}),e[6]=_.error,e[7]=O);let k;e[8]!==y||e[9]!==T?(k=y(T),e[8]=y,e[9]=T,e[10]=k):k=e[10];let A;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,g.jsx)(c,{children:(0,g.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[11]=A):A=e[11];let j=!!S.cidrBlock,M;e[12]===b?M=e[13]:(M=b(`cidrBlock`),e[12]=b,e[13]=M);let N;e[14]!==j||e[15]!==M?(N=(0,g.jsx)(o,{"aria-invalid":j,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...M}),e[14]=j,e[15]=M,e[16]=N):N=e[16];let P;e[17]===S.cidrBlock?P=e[18]:(P=(0,g.jsx)(l,{errors:[S.cidrBlock]}),e[17]=S.cidrBlock,e[18]=P);let F;e[19]!==N||e[20]!==P?(F=(0,g.jsxs)(u,{children:[A,N,P]}),e[19]=N,e[20]=P,e[21]=F):F=e[21];let I;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,g.jsx)(c,{children:(0,g.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[22]=I):I=e[22];let L;e[23]===b?L=e[24]:(L=b(`name`),e[23]=b,e[24]=L);let R;e[25]===L?R=e[26]:(R=(0,g.jsxs)(u,{children:[I,(0,g.jsx)(o,{id:`name`,placeholder:`my-vpc`,...L})]}),e[25]=L,e[26]=R);let z;e[27]===t?z=e[28]:(z=()=>t({to:`/ec2/describe-vpcs`}),e[27]=t,e[28]=z);let B;e[29]!==_.isPending||e[30]!==C||e[31]!==z?(B=(0,g.jsx)(m,{isPending:_.isPending,isSubmitting:C,onCancel:z,pendingLabel:`Creating\\u2026`,submitLabel:`Create VPC`}),e[29]=_.isPending,e[30]=C,e[31]=z,e[32]=B):B=e[32];let V;e[33]!==F||e[34]!==R||e[35]!==B||e[36]!==k?(V=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:k,children:[F,R,B]}),e[33]=F,e[34]=R,e[35]=B,e[36]=k,e[37]=V):V=e[37];let H;return e[38]!==V||e[39]!==O?(H=(0,g.jsxs)(g.Fragment,{children:[E,D,O,V]}),e[38]=V,e[39]=O,e[40]=H):H=e[40],H}export{_ as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/createBaseUIEventDetails.js b/hive/services/hiveui/frontend/dist/assets/createBaseUIEventDetails.js new file mode 100644 index 000000000..1f4fd08c1 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/createBaseUIEventDetails.js @@ -0,0 +1 @@ +import{a as e,r as t}from"./compiler-runtime.js";import{P as n,S as r,_ as i,a,v as o}from"./button.js";var s=e(t()),c=0;function l(e,t=`mui`){let[n,r]=s.useState(e),i=e||n;return s.useEffect(()=>{n??(c+=1,r(`${t}-${c}`))},[n,t]),i}var u=a.useId;function d(e,t){if(u!==void 0){let n=u();return e??(t?`${t}-${n}`:n)}return l(e,t)}function f(e){return d(e,`base-ui`)}function p(e){return e?.ownerDocument||document}var m=typeof navigator<`u`,h=w(),g=E(),_=T(),v=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),y=h.platform===`MacIntel`&&h.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(h.platform);m&&/firefox/i.test(_);var b=m&&/apple/i.test(navigator.vendor);m&&/Edg/i.test(_);var x=m&&/android/i.test(g)||/android/i.test(_),S=m&&g.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,C=_.includes(`jsdom/`);function w(){if(!m)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function T(){if(!m)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function E(){if(!m)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var D=`data-base-ui-focusable`,O=`active`,k=`selected`,A=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,j=`ArrowLeft`,M=`ArrowRight`,N=`ArrowUp`,P=`ArrowDown`;function F(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function I(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&r(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function L(e,t){if(!i(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(I(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function R(e){return`composedPath`in e?e.composedPath()[0]:e.target}function ee(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function z(e){return e.matches(`html,body`)}function B(e){return o(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function V(e){return e?e.getAttribute(`role`)===`combobox`&&B(e):!1}function H(e){if(!e||C)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function U(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}var W=`none`,G=`trigger-press`,K=`trigger-hover`,q=`trigger-focus`,J=`outside-press`,Y=`item-press`,X=`close-press`,Z=`focus-out`,Q=`escape-key`,$=`list-navigation`,te=`cancel-open`,ne=`disabled`,re=`imperative-action`,ie=`window-resize`;function ae(e,t,r,i){let a=!1,o=!1,s=i??n;return{reason:e,event:t??new Event(`base-ui`),cancel(){a=!0},allowPropagation(){o=!0},get isCanceled(){return a},get isPropagationAllowed(){return o},trigger:r,...s}}export{N as A,p as B,V as C,P as D,O as E,y as F,d as H,C as I,S as L,k as M,A as N,j as O,x as P,b as R,L as S,H as T,f as V,I as _,Q as a,ee as b,Y as c,J as d,q as f,F as g,ie as h,ne as i,D as j,M as k,$ as l,G as m,te as n,Z as o,K as p,X as r,re as s,ae as t,W as u,U as v,B as w,z as x,R as y,v as z}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/createLucideIcon.js b/hive/services/hiveui/frontend/dist/assets/createLucideIcon.js new file mode 100644 index 000000000..790197e86 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/createLucideIcon.js @@ -0,0 +1 @@ +import{a as e,r as t}from"./compiler-runtime.js";var n=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),r=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),a=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},o={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`},s=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},c=e(t()),l=(0,c.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a=``,children:l,iconNode:u,...d},f)=>(0,c.createElement)(`svg`,{ref:f,...o,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:n(`lucide`,a),...!l&&!s(d)&&{"aria-hidden":`true`},...d},[...u.map(([e,t])=>(0,c.createElement)(e,t)),...Array.isArray(l)?l:[l]])),u=(e,t)=>{let i=(0,c.forwardRef)(({className:i,...o},s)=>(0,c.createElement)(l,{ref:s,iconNode:t,className:n(`lucide-${r(a(e))}`,`lucide-${e}`,i),...o}));return i.displayName=a(e),i};export{u as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/delete-confirmation-dialog.js b/hive/services/hiveui/frontend/dist/assets/delete-confirmation-dialog.js index eeaea921f..c68daa20e 100644 --- a/hive/services/hiveui/frontend/dist/assets/delete-confirmation-dialog.js +++ b/hive/services/hiveui/frontend/dist/assets/delete-confirmation-dialog.js @@ -1 +1 @@ -import{c as j,j as l}from"./index.js";import{a as p,c as A,b as C,e as u,d as b,h as E,f as R,g as _}from"./alert-dialog.js";function F(h){const e=j.c(19),{open:d,onOpenChange:f,title:D,description:g,isPending:r,onConfirm:m}=h;let t;e[0]!==D?(t=l.jsx(p,{children:D}),e[0]=D,e[1]=t):t=e[1];let i;e[2]!==g?(i=l.jsx(A,{children:g}),e[2]=g,e[3]=i):i=e[3];let s;e[4]!==t||e[5]!==i?(s=l.jsxs(C,{children:[t,i]}),e[4]=t,e[5]=i,e[6]=s):s=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(u,{children:"Cancel"}),e[7]=a):a=e[7];const x=r?"Deleting…":"Delete";let n;e[8]!==r||e[9]!==m||e[10]!==x?(n=l.jsxs(b,{children:[a,l.jsx(E,{disabled:r,onClick:m,children:x})]}),e[8]=r,e[9]=m,e[10]=x,e[11]=n):n=e[11];let o;e[12]!==s||e[13]!==n?(o=l.jsxs(R,{children:[s,n]}),e[12]=s,e[13]=n,e[14]=o):o=e[14];let c;return e[15]!==f||e[16]!==d||e[17]!==o?(c=l.jsx(_,{onOpenChange:f,open:d,children:o}),e[15]=f,e[16]=d,e[17]=o,e[18]=c):c=e[18],c}export{F as D}; +import{n as e,t}from"./compiler-runtime.js";import{a as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./alert-dialog.js";var u=t(),d=e();function f(e){let t=(0,u.c)(19),{open:f,onOpenChange:p,title:m,description:h,isPending:g,onConfirm:_}=e,v;t[0]===m?v=t[1]:(v=(0,d.jsx)(i,{children:m}),t[0]=m,t[1]=v);let y;t[2]===h?y=t[3]:(y=(0,d.jsx)(n,{children:h}),t[2]=h,t[3]=y);let b;t[4]!==v||t[5]!==y?(b=(0,d.jsxs)(c,{children:[v,y]}),t[4]=v,t[5]=y,t[6]=b):b=t[6];let x;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,d.jsx)(s,{children:`Cancel`}),t[7]=x):x=t[7];let S=g?`Deleting…`:`Delete`,C;t[8]!==g||t[9]!==_||t[10]!==S?(C=(0,d.jsxs)(o,{children:[x,(0,d.jsx)(a,{disabled:g,onClick:_,children:S})]}),t[8]=g,t[9]=_,t[10]=S,t[11]=C):C=t[11];let w;t[12]!==b||t[13]!==C?(w=(0,d.jsxs)(r,{children:[b,C]}),t[12]=b,t[13]=C,t[14]=w):w=t[14];let T;return t[15]!==p||t[16]!==f||t[17]!==w?(T=(0,d.jsx)(l,{onOpenChange:p,open:f,children:w}),t[15]=p,t[16]=f,t[17]=w,t[18]=T):T=t[18],T}export{f as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/describe-images.js b/hive/services/hiveui/frontend/dist/assets/describe-images.js new file mode 100644 index 000000000..3f8c52f8b --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/describe-images.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import"./utils.js";import"./awsClient.js";import{r}from"./ec22.js";import{t as i}from"./page-heading.js";import{t as a}from"./state-badge.js";import{t as o}from"./list-card.js";var s=t(),c=e();function l(){let e=(0,s.c)(5),{data:t}=n(r),a;e[0]===t.Images?a=e[1]:(a=t.Images||[],e[0]=t.Images,e[1]=a);let o=a,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,c.jsx)(i,{title:`EC2 Images`}),e[2]=l):l=e[2];let d;return e[3]===o?d=e[4]:(d=(0,c.jsxs)(c.Fragment,{children:[l,o.length>0?(0,c.jsx)(`div`,{className:`space-y-4`,children:o.map(u)}):(0,c.jsx)(`p`,{className:`text-muted-foreground`,children:`No images found.`})]}),e[3]=o,e[4]=d),d}function u(e){return e.ImageId?(0,c.jsx)(o,{badge:(0,c.jsx)(a,{state:e.State}),params:{id:e.ImageId},subtitle:e.Name,title:e.ImageId,to:`/ec2/describe-images/$id`},e.ImageId):null}export{l as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/describe-instances.js b/hive/services/hiveui/frontend/dist/assets/describe-instances.js new file mode 100644 index 000000000..12f9f09c1 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/describe-instances.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import"./utils.js";import{t as i}from"./button.js";import"./awsClient.js";import{o as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=e(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let e=(0,l.c)(3),{data:t}=n(a),s;if(e[0]!==t.Reservations){let n=(t.Reservations?.flatMap(h)||[]).toSorted(m),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/run-instances`,children:(0,u.jsx)(i,{children:`Run Instances`})}),title:`EC2 Instances`}),e[2]=a):a=e[2],s=(0,u.jsxs)(u.Fragment,{children:[a,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),e[0]=t.Reservations,e[1]=s}else s=e[1];return s}function p(e){return e.InstanceId?(0,u.jsx)(c,{badge:(0,u.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 m(e,t){let n=d[e.State?.Name??``]??6,r=d[t.State?.Name??``]??6;return n===r?(e.InstanceId??``).localeCompare(t.InstanceId??``):n-r}function h(e){return e.Instances||[]}export{f as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/describe-key-pairs.js b/hive/services/hiveui/frontend/dist/assets/describe-key-pairs.js new file mode 100644 index 000000000..ff227c3af --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/describe-key-pairs.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import"./utils.js";import{t as i}from"./button.js";import"./awsClient.js";import{c as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(4),{data:t}=n(a),s;if(e[0]!==t.KeyPairs){let n=(t.KeyPairs||[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(i,{variant:`outline`,children:`Import Key Pair`})}),e[2]=a):a=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[a,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(i,{children:`Create Key Pair`})})]}),title:`EC2 Key Pairs`}),e[3]=c):c=e[3],s=(0,l.jsxs)(l.Fragment,{children:[c,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),e[0]=t.KeyPairs,e[1]=s}else s=e[1];return s}function d(e){return e.KeyPairId?(0,l.jsx)(s,{params:{id:e.KeyPairId},subtitle:`${e.KeyPairId} • ${e.KeyType}`,title:e.KeyName??``,to:`/ec2/describe-key-pairs/$id`},e.KeyPairId):null}function f(e,t){let n=e.KeyName?.toLowerCase()??``,r=t.KeyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/describe-snapshots.js b/hive/services/hiveui/frontend/dist/assets/describe-snapshots.js new file mode 100644 index 000000000..9fedd4baf --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/describe-snapshots.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import"./utils.js";import{t as i}from"./button.js";import"./awsClient.js";import{d as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Snapshots?s=e[1]:(s=t.Snapshots||[],e[0]=t.Snapshots,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(i,{children:`Create Snapshot`})}),title:`EC2 Snapshots`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No snapshots found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.SnapshotId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State}),params:{id:e.SnapshotId},subtitle:`${e.VolumeSize} GiB \u2022 ${e.VolumeId}`,title:e.SnapshotId,to:`/ec2/describe-snapshots/$id`},e.SnapshotId):null}export{d as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/describe-subnets.js b/hive/services/hiveui/frontend/dist/assets/describe-subnets.js new file mode 100644 index 000000000..014f8bd2a --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/describe-subnets.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import{s as i}from"./utils.js";import{t as a}from"./button.js";import"./awsClient.js";import{p as o}from"./ec22.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";import{t as l}from"./list-card.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets||[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(l,{badge:(0,d.jsx)(c,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/describe-volumes.js b/hive/services/hiveui/frontend/dist/assets/describe-volumes.js new file mode 100644 index 000000000..08750e1bc --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/describe-volumes.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import"./utils.js";import{t as i}from"./button.js";import"./awsClient.js";import{h as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Volumes?s=e[1]:(s=t.Volumes||[],e[0]=t.Volumes,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-volume`,children:(0,u.jsx)(i,{children:`Create Volume`})}),title:`EC2 Volumes`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No volumes found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.VolumeId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{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{d as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/describe-vpcs.js b/hive/services/hiveui/frontend/dist/assets/describe-vpcs.js new file mode 100644 index 000000000..53df46446 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/describe-vpcs.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import{s as i}from"./utils.js";import{t as a}from"./button.js";import"./awsClient.js";import{_ as o}from"./ec22.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";import{t as l}from"./list-card.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs||[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(l,{badge:(0,d.jsx)(c,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/detail-row.js b/hive/services/hiveui/frontend/dist/assets/detail-row.js index d0a9972c5..942dfe228 100644 --- a/hive/services/hiveui/frontend/dist/assets/detail-row.js +++ b/hive/services/hiveui/frontend/dist/assets/detail-row.js @@ -1 +1 @@ -import{c as i,j as n}from"./index.js";function d(l){const e=i.c(2),{children:s}=l;let t;return e[0]!==s?(t=n.jsx("div",{className:"rounded-lg border bg-card",children:s}),e[0]=s,e[1]=t):t=e[1],t}function m(l){const e=i.c(2),{children:s}=l;let t;return e[0]!==s?(t=n.jsx("div",{className:"border-b p-4",children:n.jsx("h2",{className:"font-semibold",children:s})}),e[0]=s,e[1]=t):t=e[1],t}function f(l){const e=i.c(2),{children:s}=l;let t;return e[0]!==s?(t=n.jsx("div",{className:"grid gap-4 p-4 sm:grid-cols-2",children:s}),e[0]=s,e[1]=t):t=e[1],t}const x=Object.assign(d,{Header:m,Content:f});function j(l){const e=i.c(9),{label:s,value:t}=l;let r;e[0]!==s?(r=n.jsx("dt",{className:"text-muted-foreground text-sm",children:s}),e[0]=s,e[1]=r):r=e[1];let c;e[2]!==t?(c=t||n.jsx("span",{className:"text-muted-foreground",children:"—"}),e[2]=t,e[3]=c):c=e[3];let o;e[4]!==c?(o=n.jsx("dd",{className:"mt-1 font-mono text-sm",children:c}),e[4]=c,e[5]=o):o=e[5];let a;return e[6]!==r||e[7]!==o?(a=n.jsxs("div",{children:[r,o]}),e[6]=r,e[7]=o,e[8]=a):a=e[8],a}export{x as D,j as a}; +import{n as e,t}from"./compiler-runtime.js";var n=t(),r=e();function i(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`rounded-lg border bg-card`,children:i}),t[0]=i,t[1]=a),a}function a(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`border-b p-4`,children:(0,r.jsx)(`h2`,{className:`font-semibold`,children:i})}),t[0]=i,t[1]=a),a}function o(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:i}),t[0]=i,t[1]=a),a}var s=Object.assign(i,{Header:a,Content:o});function c(e){let t=(0,n.c)(9),{label:i,value:a}=e,o;t[0]===i?o=t[1]:(o=(0,r.jsx)(`dt`,{className:`text-sm text-muted-foreground`,children:i}),t[0]=i,t[1]=o);let s;t[2]===a?s=t[3]:(s=a||(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`—`}),t[2]=a,t[3]=s);let c;t[4]===s?c=t[5]:(c=(0,r.jsx)(`dd`,{className:`mt-1 font-mono text-sm`,children:s}),t[4]=s,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,r.jsxs)(`div`,{children:[o,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}export{s as n,c as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/download.js b/hive/services/hiveui/frontend/dist/assets/download.js index c1daa0e66..637e84d9b 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{t as e}from"./createLucideIcon.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/ec2.js b/hive/services/hiveui/frontend/dist/assets/ec2.js index 42a283899..68765013b 100644 --- a/hive/services/hiveui/frontend/dist/assets/ec2.js +++ b/hive/services/hiveui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{P as i,bs as a,S as c,bt as $,bu as v,ap as h,ao as V,a9 as S,bv as K,aq as q,bw as D,bx as w,by as A,bz as x,bA as R,bB as z,bC as _,bD as B,bE as F,bF as Q,bG as M,bH as T,bI as U,bJ as k,bK as N,bL as O,bM as G,bN as Z,bO as j,bP as H,bQ as L,bR as J,c as u,ar as m,g as r,t 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(_).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(B).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(F).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(Q).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:_e,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","volumes"]})}},e[0]=n,e[1]=t):t=e[1],l(t)}function _e(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: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 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: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 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}; +import{t as e}from"./compiler-runtime.js";import{n as t}from"./QueryClientProvider.js";import{n}from"./error-banner.js";import{B as r,Dt as i,Et as a,G as o,H as s,J as c,K as l,Lt as u,Mt as d,Ot as f,Q as ee,Rt as te,U as ne,Ut as p,V as m,W as h,X as g,Y as _,Z as v,_t as y,dt as b,ft as x,gt as S,ht as C,jt as w,kt as T,lt as E,mt as D,n as O,pt as k,q as A,ut as j,vt as M}from"./awsClient.js";import{c as N}from"./ec22.js";var P=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(r).build(){};function F(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?te(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var I=`2016-11-15`;function L(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await f(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():T(i),o=new p({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:I,DestinationRegion:t}}),s=await new d({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:F(s)}},p.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${u(n.input.PresignedUrl)}`)}}return t(n)}}var R={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},z=e=>({applyToStack:t=>{t.add(L(e),R)}}),B=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions()),z(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(m).build(){},V=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(s).build(){},H=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(ne).build(){},U=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(h).build(){},W=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(o).build(){},G=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(l).build(){},K=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(A).build(){},q=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(c).build(){},J=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(_).build(){},Y=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(g).build(){},X=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(v).build(){},Z=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(ee).build(){},re=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(E).build(){},ie=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(j).build(){},ae=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(b).build(){},oe=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(x).build(){},se=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(k).build(){},ce=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(D).build(){},le=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(C).build(){},ue=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(S).build(){},de=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(y).build(){},fe=class extends w.classBuilder().ep(a).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(M).build(){},Q=e(),pe=/\s+/;function me(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:he,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function he(e){let t=new ue({InstanceIds:[e]});return O().send(t)}function ge(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:_e,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function _e(e){let t=new de({InstanceIds:[e]});return O().send(t)}function ve(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ye,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function ye(e){let t=new fe({InstanceIds:[e]});return O().send(t)}function be(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:xe,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function xe(e){let t=new ce({InstanceIds:[e]});return O().send(t)}function Se(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ce,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function Ce(e){let t=new le({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0});return O().send(t)}function we(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Te,onSuccess:()=>{r.invalidateQueries(N)}},e[0]=r,e[1]=i),n(i)}function Te(e){let t=new H({KeyName:e.keyName,KeyType:`rsa`});return O().send(t)}function Ee(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:De,onSuccess:()=>{r.invalidateQueries(N)}},e[0]=r,e[1]=i),n(i)}function De(e){let t=e.publicKeyMaterial.trim().split(pe).slice(0,2).join(` `),n=new ae({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return O().send(n)}function Oe(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ke,onSuccess:()=>{r.invalidateQueries(N)}},e[0]=r,e[1]=i),n(i)}function ke(e){let t=new q({KeyPairId:e});return O().send(t)}function Ae(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:je,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}function je(e){let t=new G({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return O().send(t)}function Me(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ne,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}function Ne(e){let t=new se({VolumeId:e.volumeId,Size:e.size});return O().send(t)}function Pe(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Fe,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}function Fe(e){let t=new X({VolumeId:e});return O().send(t)}function Ie(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Le,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}function Le(e){let t=new U({VolumeId:e.volumeId,Description:e.description||void 0});return O().send(t)}function Re(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ze,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}function ze(e){let t=new J({SnapshotId:e});return O().send(t)}function Be(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ve,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}function Ve(e){let t=new B({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return O().send(t)}function He(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ue,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function Ue(e){let t=new P({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return O().send(t)}function We(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ge,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function Ge(e){let t=new re({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return O().send(t)}function Ke(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:qe,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}function qe(e){let{instanceId:t,...n}=e,r=new oe({InstanceId:t,InstanceType:{Value:n.instanceType}});return O().send(r)}function Je(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={mutationFn:$},e[0]=t):t=e[0],n(t)}function $(e){let t=new ie({InstanceId:e});return O().send(t)}function Ye(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Xe,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}function Xe(e){let t=new V({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return O().send(t)}function Ze(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Qe,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}function Qe(e){let t=new K({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return O().send(t)}function $e(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:et,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}function et(e){let t=new Z({VpcId:e});return O().send(t)}function tt(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:nt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}function nt(e){let t=new W({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0});return O().send(t)}function rt(){let e=(0,Q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:it,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}function it(e){let t=new Y({SubnetId:e});return O().send(t)}export{ve as C,ge as S,Ee as _,we as a,be as b,Ae as c,Re as d,rt as f,Je as g,We as h,Se as i,Ze as l,$e as m,Be as n,Ie as o,Pe as p,Ye as r,tt as s,He as t,Oe as u,Ke as v,me as x,Me as y}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/ec22.js b/hive/services/hiveui/frontend/dist/assets/ec22.js index 57b874cfc..cf8912a1b 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,k as e,aO as a,aP as o,aQ as c}from"./index.js";const n=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,t=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({imageId:e("Please select an Image"),instanceType:e("Please select an instance type"),keyName:e("Please select a key pair"),subnetId:e().optional(),count:o("Instance count must be a whole number").min(1,"Instance count must be at least 1")}),l=i({keyName:t}),u=i({keyName:t,publicKeyMaterial:e().min(1,"Public key is required").refine(s=>s.trim().length>0,"Public key cannot be empty")}),d=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")}),b=i({size:a().int("Size must be a whole number").min(1,"Size must be at least 1 GiB")}),p=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:c().optional()});i({instanceType:e().min(1,"Instance type is required")});i({name:e().min(1,"Name is required"),description:e().optional()});const y=i({vpcId:e().min(1,"VPC is required"),cidrBlock:e().min(1,"CIDR block is required").regex(n,"Must be a valid CIDR block (e.g. 10.0.1.0/24)"),availabilityZone:e().optional()}),I=i({cidrBlock:e().min(1,"CIDR block is required").regex(n,"Must be a valid CIDR block (e.g. 10.0.0.0/16)"),name:e().optional()});export{d as a,y as b,I as c,p as d,l as e,m as f,u as i,b as m}; +import{t as e}from"./queryOptions.js";import{$ as t,Dt as n,Et as r,at as i,ct as a,et as o,it as s,jt as c,n as l,ot as u,rt as d,st as f,tt as p}from"./awsClient.js";import{t as m}from"./DescribeInstancesCommand.js";var h=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(t).build(){},g=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(o).build(){},_=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(p).build(){},v=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(d).build(){},y=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(s).build(){},b=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(i).build(){},x=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(u).build(){},S=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(f).build(){},C=class extends c.classBuilder().ep(r).m(function(e,t,r,i){return[n(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(a).build(){},w=e({queryKey:[`ec2`,`availabilityZones`],queryFn:()=>{let e=new h({});return l().send(e)},staleTime:3e5}),T=e({queryKey:[`ec2`,`instances`],queryFn:()=>{let e=new m({});return l().send(e)},refetchInterval:5e3}),E=t=>e({queryKey:[`ec2`,`instances`,t],queryFn:()=>{let e=new m({InstanceIds:[t]});return l().send(e)},refetchInterval:5e3}),D=e({queryKey:[`ec2`,`instances`,`types`],queryFn:()=>{let e=new _({Filters:[{Name:`capacity`,Values:[`true`]}]});return l().send(e)},refetchInterval:5e3}),O=e({queryKey:[`ec2`,`images`],queryFn:()=>{let e=new g({});return l().send(e)}}),k=t=>e({queryKey:[`ec2`,`images`,t??`none`],queryFn:()=>{if(!t)return{Images:[],$metadata:{}};let e=new g({ImageIds:[t]});return l().send(e)}}),A=e({queryKey:[`ec2`,`keypairs`],queryFn:()=>{let e=new v({});return l().send(e)}}),j=t=>e({queryKey:[`ec2`,`keypairs`,t],queryFn:()=>{let e=new v({KeyPairIds:[t]});return l().send(e)}}),M=e({queryKey:[`ec2`,`regions`],queryFn:()=>{let e=new y({});return l().send(e)},staleTime:3e5}),N=e({queryKey:[`ec2`,`subnets`],queryFn:()=>{let e=new x({});return l().send(e)}}),P=t=>e({queryKey:[`ec2`,`subnets`,t],queryFn:()=>{let e=new x({SubnetIds:[t]});return l().send(e)}}),F=e({queryKey:[`ec2`,`snapshots`],queryFn:()=>{let e=new b({});return l().send(e)},refetchInterval:5e3}),I=t=>e({queryKey:[`ec2`,`snapshots`,t],queryFn:()=>{let e=new b({SnapshotIds:[t]});return l().send(e)},refetchInterval:5e3}),L=e({queryKey:[`ec2`,`vpcs`],queryFn:()=>{let e=new C({});return l().send(e)}}),R=t=>e({queryKey:[`ec2`,`vpcs`,t],queryFn:()=>{let e=new C({VpcIds:[t]});return l().send(e)}}),z=e({queryKey:[`ec2`,`volumes`],queryFn:()=>{let e=new S({});return l().send(e)},refetchInterval:5e3}),B=t=>e({queryKey:[`ec2`,`volumes`,t],queryFn:()=>{let e=new S({VolumeIds:[t]});return l().send(e)},refetchInterval:5e3});export{L as _,D as a,A as c,F as d,P as f,R as g,z as h,E as i,M as l,B as m,k as n,T as o,N as p,O as r,j as s,w as t,I as u}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/ec23.js b/hive/services/hiveui/frontend/dist/assets/ec23.js new file mode 100644 index 000000000..4c06d494b --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/ec23.js @@ -0,0 +1 @@ +import{Jt as e,Qt as t,Xt as n,Yt as r,Zt as i}from"./awsClient.js";var a=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,o=t().min(1,`Key name is required`).max(255,`Key name must be 255 characters or less`).regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,`Key name contains invalid characters`),s=i({imageId:t(`Please select an Image`),instanceType:t(`Please select an instance type`),keyName:t(`Please select a key pair`),subnetId:t().optional(),count:r(`Instance count must be a whole number`).min(1,`Instance count must be at least 1`)}),c=i({keyName:o}),l=i({keyName:o,publicKeyMaterial:t().min(1,`Public key is required`).refine(e=>e.trim().length>0,`Public key cannot be empty`)}),u=i({size:n().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:t().min(1,`Availability zone is required`)}),d=i({size:n().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`)}),f=i({volumeId:t().min(1,`Volume is required`),description:t().optional()});i({sourceSnapshotId:t().min(1,`Source snapshot is required`),sourceRegion:t().min(1,`Source region is required`),description:t().optional()}),i({volumeId:t().min(1,`Volume is required`),instanceId:t().min(1,`Instance is required`),device:t().optional()}),i({volumeId:t().min(1,`Volume is required`),instanceId:t().optional(),force:e().optional()}),i({instanceType:t().min(1,`Instance type is required`)}),i({name:t().min(1,`Name is required`),description:t().optional()});var p=i({vpcId:t().min(1,`VPC is required`),cidrBlock:t().min(1,`CIDR block is required`).regex(a,`Must be a valid CIDR block (e.g. 10.0.1.0/24)`),availabilityZone:t().optional()}),m=i({cidrBlock:t().min(1,`CIDR block is required`).regex(a,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`),name:t().optional()});export{u as a,d as c,p as i,c as n,m as o,f as r,l as s,s as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/error-banner.js b/hive/services/hiveui/frontend/dist/assets/error-banner.js index ed4f9865d..c12868fbc 100644 --- a/hive/services/hiveui/frontend/dist/assets/error-banner.js +++ b/hive/services/hiveui/frontend/dist/assets/error-banner.js @@ -1 +1 @@ -import{bb as d,be as m,bq as c,br as b,bo as l,ar as p,r as h,bg as v,bp 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 g(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 E(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{E,g as u}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{D as i,M as a,O as o,S as s,c,g as l,n as u}from"./QueryClientProvider.js";import{j as d}from"./index.js";var f=class extends a{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),i(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&l(t.mutationKey)!==l(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??d();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){c.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},p=e(n(),1);function m(e,t){let n=u(t),[r]=p.useState(()=>new f(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);let i=p.useSyncExternalStore(p.useCallback(e=>r.subscribe(c.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=p.useCallback((e,t)=>{r.mutate(e,t).catch(s)},[r]);if(i.error&&o(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var h=r(),g=t();function _(e){let t=(0,h.c)(7),{msg:n,error:r}=e,i;r&&(i=r.name===`Error`?r.message:r.name);let a;t[0]===n?a=t[1]:(a=n&&(0,g.jsx)(`h2`,{className:`text-sm text-destructive`,children:n}),t[0]=n,t[1]=a);let o;t[2]===i?o=t[3]:(o=i&&(0,g.jsx)(`p`,{className:`text-sm text-destructive`,children:i}),t[2]=i,t[3]=o);let s;return t[4]!==a||t[5]!==o?(s=(0,g.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6],s}export{m as n,_ as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/event-streams.js b/hive/services/hiveui/frontend/dist/assets/event-streams.js new file mode 100644 index 000000000..2d1e744d4 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/event-streams.js @@ -0,0 +1 @@ +import{n as e,t}from"./toUtf8.browser.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=Object.keys(e).find(e=>e!==`__type`)??``,{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(e.body,async e=>{let r=Object.keys(e).find(e=>e!==`__type`)??``,i=e[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??t)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let t=e[r].headers[s]?.value;t!=null&&(c.isNumericSchema()?t&&typeof t==`object`&&`bytes`in t?a[s]=BigInt(t.toString()):a[s]=Number(t):a[s]=t)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let[e,t]of Object.entries(u.value))r[e]=t}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(t,n,r){let i=this.serializer,a=t,o=null,s,c=n.getSchema()[4].includes(t),l={};if(c){let e=n.getMemberSchema(t);if(e.isStructSchema()){for(let[n,i]of e.structIterator()){let{eventHeader:e,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(e){let e=r[t][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=e&&e<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),e!=null&&(l[n]={type:a,value:e},delete r[t][n])}}if(o!==null){let n=e.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[t][o])}else i.write(e,r[t])}else if(e.isUnitSchema())i.write(e,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[e,n]=r[t];a=e,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??e)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/field.js b/hive/services/hiveui/frontend/dist/assets/field.js index facfb68d5..77a5e9976 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,aY as m,aZ as E,a_ as y,a$ as w,b0 as C,b1 as V,b2 as b,b3 as M,b4 as k,c as h,j as v,a as I,b5 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 Z(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(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{H as F,Z 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}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{n as i}from"./utils.js";import{E as a}from"./button.js";var o=r(),s=t();e(n(),1);function c(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=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`,n),t[3]=n,t[4]=a);let c;return t[5]!==r||t[6]!==a?(c=(0,s.jsx)(`div`,{className:a,"data-slot":`field-group`,...r}),t[5]=r,t[6]=a,t[7]=c):c=t[7],c}var l=a(`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:`flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.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 u(e){let t=(0,o.c)(11),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,orientation:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let c=a===void 0?`vertical`:a,u;t[4]!==n||t[5]!==c?(u=i(l({orientation:c}),n),t[4]=n,t[5]=c,t[6]=u):u=t[6];let d;return t[7]!==c||t[8]!==r||t[9]!==u?(d=(0,s.jsx)(`div`,{className:u,"data-orientation":c,"data-slot":`field`,role:`group`,...r}),t[7]=c,t[8]=r,t[9]=u,t[10]=d):d=t[10],d}function d(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`flex w-fit items-center gap-2 text-xs/relaxed leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,n),t[3]=n,t[4]=a);let c;return t[5]!==r||t[6]!==a?(c=(0,s.jsx)(`div`,{className:a,"data-slot":`field-label`,...r}),t[5]=r,t[6]=a,t[7]=c):c=t[7],c}function f(e){let t=(0,o.c)(15),n,r,a,c;t[0]===e?(n=t[1],r=t[2],a=t[3],c=t[4]):({className:r,children:n,errors:a,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=c);let l;bb0:{if(n){l=n;break bb0}if(!a?.length){l=null;break bb0}let e;t[5]===a?e=t[6]:(e=[...new Map(a.map(m)).values()],t[5]=a,t[6]=e);let r=e;if(r?.length===1){l=r[0]?.message;break bb0}let i;t[7]===r?i=t[8]:(i=(0,s.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(p)}),t[7]=r,t[8]=i),l=i}let u=l;if(!u)return null;let d;t[9]===r?d=t[10]:(d=i(`text-xs/relaxed font-normal text-destructive`,r),t[9]=r,t[10]=d);let f;return t[11]!==u||t[12]!==c||t[13]!==d?(f=(0,s.jsx)(`div`,{className:d,"data-slot":`field-error`,role:`alert`,...c,children:u}),t[11]=u,t[12]=c,t[13]=d,t[14]=f):f=t[14],f}function p(e){return e?.message&&(0,s.jsx)(`li`,{children:e.message},e.message)}function m(e){return[e?.message,e]}export{d as i,f as n,c as r,u as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/form-actions.js b/hive/services/hiveui/frontend/dist/assets/form-actions.js index c43ab94f5..f2074c408 100644 --- a/hive/services/hiveui/frontend/dist/assets/form-actions.js +++ b/hive/services/hiveui/frontend/dist/assets/form-actions.js @@ -1 +1 @@ -import{c as x,j as c,B as a}from"./index.js";function f(r){const t=x.c(9),{isSubmitting:m,isPending:u,onCancel:l,submitLabel:p,pendingLabel:d}=r,e=m||u;let n;t[0]!==e||t[1]!==l?(n=c.jsx(a,{disabled:e,onClick:l,type:"button",variant:"outline",children:"Cancel"}),t[0]=e,t[1]=l,t[2]=n):n=t[2];const o=e?d:p;let s;t[3]!==e||t[4]!==o?(s=c.jsx(a,{disabled:e,type:"submit",children:o}),t[3]=e,t[4]=o,t[5]=s):s=t[5];let i;return t[6]!==n||t[7]!==s?(i=c.jsxs("div",{className:"flex gap-2",children:[n,s]}),t[6]=n,t[7]=s,t[8]=i):i=t[8],i}export{f as F}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./button.js";var r=t(),i=e();function a(e){let t=(0,r.c)(9),{isSubmitting:a,isPending:o,onCancel:s,submitLabel:c,pendingLabel:l}=e,u=a||o,d;t[0]!==u||t[1]!==s?(d=(0,i.jsx)(n,{disabled:u,onClick:s,type:`button`,variant:`outline`,children:`Cancel`}),t[0]=u,t[1]=s,t[2]=d):d=t[2];let f=u?l:c,p;t[3]!==u||t[4]!==f?(p=(0,i.jsx)(n,{disabled:u,type:`submit`,children:f}),t[3]=u,t[4]=f,t[5]=p):p=t[5];let m;return t[6]!==d||t[7]!==p?(m=(0,i.jsxs)(`div`,{className:`flex gap-2`,children:[d,p]}),t[6]=d,t[7]=p,t[8]=m):m=t[8],m}export{a as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/iam.js b/hive/services/hiveui/frontend/dist/assets/iam.js index b335cd8cc..e95a3bc19 100644 --- a/hive/services/hiveui/frontend/dist/assets/iam.js +++ b/hive/services/hiveui/frontend/dist/assets/iam.js @@ -1 +1 @@ -import{P as a,az as i,S as r,aA as d,aB as y,aC as C,aD as p,aE as A,aF as f,aG as P,aH as I,aI as U,c as o,ar as u,aJ 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[r(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[r(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[r(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","CreatePolicy",{}).n("IAMClient","CreatePolicyCommand").sc(C).build(){}class S extends a.classBuilder().ep(i).m(function(t,n,s,c){return[r(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[r(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","DeleteAccessKey",{}).n("IAMClient","DeleteAccessKeyCommand").sc(A).build(){}class q extends a.classBuilder().ep(i).m(function(t,n,s,c){return[r(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[r(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[r(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[r(s,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","UpdateAccessKey",{}).n("IAMClient","UpdateAccessKeyCommand").sc(U).build(){}function k(){const e=o.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 S({UserName:e.userName,Path:e.path||void 0});return l().send(t)}function z(){const e=o.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=o.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=o.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}=e,s=new M({UserName:t,AccessKeyId:n});return l().send(s)}function J(){const e=o.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 R(){const e=o.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 g({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return l().send(t)}function j(){const e=o.c(2),t=u();let n;return e[0]!==t?(n={mutationFn:Q,onSuccess:()=>{t.invalidateQueries({queryKey:["iam","policies"]})}},e[0]=t,e[1]=n):n=e[1],m(n)}function Q(e){const t=new q({PolicyArn:e});return l().send(t)}function L(){const e=o.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=o.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{R as a,z as b,G as c,H as d,J as e,L as f,O as g,j as h,k as u}; +import{t as e}from"./compiler-runtime.js";import{n as t}from"./QueryClientProvider.js";import{n}from"./error-banner.js";import{A as r,C as i,D as a,Dt as o,E as s,O as c,R as l,T as u,jt as d,k as f,r as p,w as m,z as h}from"./awsClient.js";var g=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(i).build(){},_=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(m).build(){},v=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(u).build(){},y=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(s).build(){},b=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(a).build(){},x=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(c).build(){},S=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(f).build(){},C=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(r).build(){},w=class extends d.classBuilder().ep(h).m(function(e,t,n,r){return[o(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(l).build(){},T=e();function E(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:D,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=r,e[1]=i),n(i)}function D(e){let t=new y({UserName:e.userName,Path:e.path||void 0});return p().send(t)}function O(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:k,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=r,e[1]=i),n(i)}function k(e){let t=new S({UserName:e});return p().send(t)}function A(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:j,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=r,e[1]=i),n(i)}function j(e){let t=new _({UserName:e});return p().send(t)}function M(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:N,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=r,e[1]=i),n(i)}function N(e){let{userName:t,accessKeyId:n}=e,r=new b({UserName:t,AccessKeyId:n});return p().send(r)}function P(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:F,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=r,e[1]=i),n(i)}function F(e){let{userName:t,accessKeyId:n,status:r}=e,i=new w({UserName:t,AccessKeyId:n,Status:r});return p().send(i)}function I(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:L,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=r,e[1]=i),n(i)}function L(e){let t=new v({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return p().send(t)}function R(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:z,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=r,e[1]=i),n(i)}function z(e){let t=new x({PolicyArn:e});return p().send(t)}function B(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:V,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=r,e[1]=i),n(i)}function V(e){let{userName:t,policyArn:n}=e,r=new g({UserName:t,PolicyArn:n});return p().send(r)}function H(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:U,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=r,e[1]=i),n(i)}function U(e){let{userName:t,policyArn:n}=e,r=new C({UserName:t,PolicyArn:n});return p().send(r)}export{M as a,H as c,E as i,P as l,A as n,R as o,I as r,O as s,B as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/iam2.js b/hive/services/hiveui/frontend/dist/assets/iam2.js index b1dd0ada0..684c9bb5d 100644 --- a/hive/services/hiveui/frontend/dist/assets/iam2.js +++ b/hive/services/hiveui/frontend/dist/assets/iam2.js @@ -1 +1 @@ -import{o as r,k 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}; +import{t as e}from"./queryOptions.js";import{Dt as t,F as n,I as r,L as i,M as a,N as o,P as s,j as c,jt as l,r as u,z as d}from"./awsClient.js";var f=class extends l.classBuilder().ep(d).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(c).build(){},p=class extends l.classBuilder().ep(d).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(a).build(){},m=class extends l.classBuilder().ep(d).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(o).build(){},h=class extends l.classBuilder().ep(d).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(s).build(){},g=class extends l.classBuilder().ep(d).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(n).build(){},_=class extends l.classBuilder().ep(d).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(r).build(){},v=class extends l.classBuilder().ep(d).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(i).build(){},y=e({queryKey:[`iam`,`users`],queryFn:()=>{let e=new v({});return u().send(e)},staleTime:3e5}),b=t=>e({queryKey:[`iam`,`users`,t],queryFn:()=>{let e=new m({UserName:t});return u().send(e)},staleTime:3e5}),x=t=>e({queryKey:[`iam`,`access-keys`,t],queryFn:()=>{let e=new h({UserName:t});return u().send(e)},staleTime:3e5}),S=e({queryKey:[`iam`,`policies`],queryFn:()=>{let e=new _({Scope:`Local`});return u().send(e)},staleTime:3e5}),C=t=>e({queryKey:[`iam`,`policies`,t],queryFn:()=>{let e=new f({PolicyArn:t});return u().send(e)},staleTime:3e5}),w=(t,n)=>e({queryKey:[`iam`,`policy-versions`,t,n],queryFn:()=>{let e=new p({PolicyArn:t,VersionId:n});return u().send(e)},staleTime:3e5}),T=t=>e({queryKey:[`iam`,`attached-user-policies`,t],queryFn:()=>{let e=new g({UserName:t});return u().send(e)},staleTime:3e5});export{w as a,C as i,T as n,b as o,S as r,y as s,x as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/iam3.js b/hive/services/hiveui/frontend/dist/assets/iam3.js new file mode 100644 index 000000000..38b1442d2 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/iam3.js @@ -0,0 +1 @@ +import{Qt as e,Zt as t}from"./awsClient.js";var n=t({userName:e().min(1,`User name is required`).max(64,`User name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`User name contains invalid characters`),path:e().optional()}),r=t({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(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:`Policy document must be valid JSON`})});export{n,r as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/import-key-pair.js b/hive/services/hiveui/frontend/dist/assets/import-key-pair.js index ec7d62d77..5e06e2000 100644 --- a/hive/services/hiveui/frontend/dist/assets/import-key-pair.js +++ b/hive/services/hiveui/frontend/dist/assets/import-key-pair.js @@ -1 +1 @@ -import{c as T,u as H,j as t}from"./index.js";import{a as Q,u as R}from"./zod.js";import{B as z}from"./back-link.js";import{E as D}from"./error-banner.js";import{F as O}from"./form-actions.js";import{P as $}from"./page-heading.js";import{F as E,a as v,b as w}from"./field.js";import{I as q}from"./input.js";import{T as G}from"./textarea.js";import{d as J}from"./ec2.js";import{i as U}from"./ec22.js";function le(){const e=T.c(48),s=H(),r=J();let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j={resolver:Q(U)},e[0]=j):j=e[0];const{handleSubmit:F,register:a,formState:C}=R(j),{errors:i,isSubmitting:_}=C;let k;e[1]!==r||e[2]!==s?(k=async L=>{await r.mutateAsync(L),s({to:"/ec2/describe-key-pairs"})},e[1]=r,e[2]=s,e[3]=k):k=e[3];const M=k;let g,A;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(z,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),A=t.jsx($,{title:"Import Key Pair"}),e[4]=g,e[5]=A):(g=e[4],A=e[5]);let l;e[6]!==r.error?(l=r.error&&t.jsx(D,{error:r.error,msg:"Failed to import key pair"}),e[6]=r.error,e[7]=l):l=e[7];let o;e[8]!==F||e[9]!==M?(o=F(M),e[8]=F,e[9]=M,e[10]=o):o=e[10];let K;e[11]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(v,{children:t.jsx("label",{htmlFor:"keyName",children:"Key Pair Name"})}),e[11]=K):K=e[11];const B=!!i.keyName;let m;e[12]!==a?(m=a("keyName"),e[12]=a,e[13]=m):m=e[13];let n;e[14]!==B||e[15]!==m?(n=t.jsx(q,{"aria-invalid":B,id:"keyName",placeholder:"my-key-pair…",...m}),e[14]=B,e[15]=m,e[16]=n):n=e[16];let c;e[17]!==i.keyName?(c=t.jsx(E,{errors:[i.keyName]}),e[17]=i.keyName,e[18]=c):c=e[18];let p;e[19]!==n||e[20]!==c?(p=t.jsxs(w,{children:[K,n,c]}),e[19]=n,e[20]=c,e[21]=p):p=e[21];let P,N;e[22]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(v,{children:t.jsx("label",{htmlFor:"publicKeyMaterial",children:"Public Key"})}),N=t.jsx("p",{className:"text-muted-foreground text-xs",id:"publicKey-description",children:"Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)"}),e[22]=P,e[23]=N):(P=e[22],N=e[23]);const I=!!i.publicKeyMaterial;let f;e[24]!==a?(f=a("publicKeyMaterial"),e[24]=a,e[25]=f):f=e[25];let y;e[26]!==I||e[27]!==f?(y=t.jsx(G,{"aria-invalid":I,id:"publicKeyMaterial",placeholder:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…",rows:8,...f}),e[26]=I,e[27]=f,e[28]=y):y=e[28];let d;e[29]!==i.publicKeyMaterial?(d=t.jsx(E,{errors:[i.publicKeyMaterial]}),e[29]=i.publicKeyMaterial,e[30]=d):d=e[30];let u;e[31]!==y||e[32]!==d?(u=t.jsxs(w,{children:[P,N,y,d]}),e[31]=y,e[32]=d,e[33]=u):u=e[33];let b;e[34]!==s?(b=()=>s({to:"/ec2/describe-key-pairs"}),e[34]=s,e[35]=b):b=e[35];let x;e[36]!==r.isPending||e[37]!==_||e[38]!==b?(x=t.jsx(O,{isPending:r.isPending,isSubmitting:_,onCancel:b,pendingLabel:"Importing…",submitLabel:"Import Key Pair"}),e[36]=r.isPending,e[37]=_,e[38]=b,e[39]=x):x=e[39];let h;e[40]!==p||e[41]!==u||e[42]!==x||e[43]!==o?(h=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[p,u,x]}),e[40]=p,e[41]=u,e[42]=x,e[43]=o,e[44]=h):h=e[44];let S;return e[45]!==h||e[46]!==l?(S=t.jsxs(t.Fragment,{children:[g,A,l,h]}),e[45]=h,e[46]=l,e[47]=S):S=e[47],S}export{le as component}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./useNavigate.js";import"./button.js";import{t as i}from"./back-link.js";import"./separator.js";import"./awsClient.js";import{_ as a}from"./ec2.js";import"./ec22.js";import{O as o}from"./index.js";import{t as s}from"./page-heading.js";import{i as c,n as l,t as u}from"./field.js";import{t as d}from"./textarea.js";import{r as f,t as p}from"./zod.js";import{s as m}from"./ec23.js";import{t as h}from"./form-actions.js";var g=t(),_=e();function v(){let e=(0,g.c)(48),t=r(),v=a(),y;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(y={resolver:p(m)},e[0]=y):y=e[0];let{handleSubmit:b,register:x,formState:S}=f(y),{errors:C,isSubmitting:w}=S,T;e[1]!==v||e[2]!==t?(T=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[1]=v,e[2]=t,e[3]=T):T=e[3];let E=T,D,O;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,_.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),O=(0,_.jsx)(s,{title:`Import Key Pair`}),e[4]=D,e[5]=O):(D=e[4],O=e[5]);let k;e[6]===v.error?k=e[7]:(k=v.error&&(0,_.jsx)(n,{error:v.error,msg:`Failed to import key pair`}),e[6]=v.error,e[7]=k);let A;e[8]!==b||e[9]!==E?(A=b(E),e[8]=b,e[9]=E,e[10]=A):A=e[10];let j;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(c,{children:(0,_.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[11]=j):j=e[11];let M=!!C.keyName,N;e[12]===x?N=e[13]:(N=x(`keyName`),e[12]=x,e[13]=N);let P;e[14]!==M||e[15]!==N?(P=(0,_.jsx)(o,{"aria-invalid":M,id:`keyName`,placeholder:`my-key-pair…`,...N}),e[14]=M,e[15]=N,e[16]=P):P=e[16];let F;e[17]===C.keyName?F=e[18]:(F=(0,_.jsx)(l,{errors:[C.keyName]}),e[17]=C.keyName,e[18]=F);let I;e[19]!==P||e[20]!==F?(I=(0,_.jsxs)(u,{children:[j,P,F]}),e[19]=P,e[20]=F,e[21]=I):I=e[21];let L,R;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(c,{children:(0,_.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),R=(0,_.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),e[22]=L,e[23]=R):(L=e[22],R=e[23]);let z=!!C.publicKeyMaterial,B;e[24]===x?B=e[25]:(B=x(`publicKeyMaterial`),e[24]=x,e[25]=B);let V;e[26]!==z||e[27]!==B?(V=(0,_.jsx)(d,{"aria-invalid":z,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...B}),e[26]=z,e[27]=B,e[28]=V):V=e[28];let H;e[29]===C.publicKeyMaterial?H=e[30]:(H=(0,_.jsx)(l,{errors:[C.publicKeyMaterial]}),e[29]=C.publicKeyMaterial,e[30]=H);let U;e[31]!==V||e[32]!==H?(U=(0,_.jsxs)(u,{children:[L,R,V,H]}),e[31]=V,e[32]=H,e[33]=U):U=e[33];let W;e[34]===t?W=e[35]:(W=()=>t({to:`/ec2/describe-key-pairs`}),e[34]=t,e[35]=W);let G;e[36]!==v.isPending||e[37]!==w||e[38]!==W?(G=(0,_.jsx)(h,{isPending:v.isPending,isSubmitting:w,onCancel:W,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[36]=v.isPending,e[37]=w,e[38]=W,e[39]=G):G=e[39];let K;e[40]!==I||e[41]!==U||e[42]!==G||e[43]!==A?(K=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,U,G]}),e[40]=I,e[41]=U,e[42]=G,e[43]=A,e[44]=K):K=e[44];let q;return e[45]!==K||e[46]!==k?(q=(0,_.jsxs)(_.Fragment,{children:[D,O,k,K]}),e[45]=K,e[46]=k,e[47]=q):q=e[47],q}export{v as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/index.css b/hive/services/hiveui/frontend/dist/assets/index.css index 9a2035ff4..18dfebd62 100644 --- a/hive/services/hiveui/frontend/dist/assets/index.css +++ b/hive/services/hiveui/frontend/dist/assets/index.css @@ -1 +1,2 @@ -@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-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\/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,)}.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-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}} +/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */ +@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:#ffe2e2;--color-red-800:#9f0712;--color-red-900:#82181a;--color-yellow-100:#fef9c2;--color-yellow-800:#874b00;--color-yellow-900:#733e0a;--color-green-100:#dcfce7;--color-green-800:#016630;--color-green-900:#0d542b;--color-gray-100:#f3f4f6;--color-gray-800:#1e2939;--color-zinc-100:#f4f4f5;--color-zinc-400:#9f9fa9;--color-zinc-500:#71717b;--color-zinc-800:#27272a;--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:calc(2.25 / 1.875);--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)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-800:lab(33.7174% 55.8993 41.0293);--color-red-900:lab(28.5139% 44.5539 29.0463);--color-yellow-100:lab(97.3564% -4.51407 27.344);--color-yellow-800:lab(38.7484% 23.5833 51.4916);--color-yellow-900:lab(32.3865% 21.1273 38.5959);--color-green-100:lab(96.1861% -13.8464 6.52365);--color-green-800:lab(37.4616% -36.7971 22.9692);--color-green-900:lab(30.797% -29.6927 17.382);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-800:lab(16.1051% -1.18239 -11.7533);--color-zinc-100:lab(96.1634% .0993311 -.364041);--color-zinc-400:lab(65.6464% 1.53497 -5.42429);--color-zinc-500:lab(47.8878% 1.65477 -5.77283);--color-zinc-800:lab(15.7305% .613764 -2.16959)}}}@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;-webkit-text-decoration:inherit;-webkit-text-decoration: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 (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (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:calc(calc(1 / 2 * 100%) * -1);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:calc(calc(1 / 2 * 100%) * -1);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\/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,)}.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-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:calc(calc(1 / 2 * 100%) * -1);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:calc(calc(1 / 2 * 100%) * -1);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 (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 (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 (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 (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 (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 (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 43cf8cdd4..1e93377ed 100644 --- a/hive/services/hiveui/frontend/dist/assets/index.js +++ b/hive/services/hiveui/frontend/dist/assets/index.js @@ -1,81 +1,10 @@ -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/form-actions.js","assets/s3.js","assets/create-user.js","assets/iam.js","assets/iam2.js","assets/create-policy.js","assets/textarea.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/import-key-pair.js","assets/create-key-pair.js","assets/alert-dialog.js","assets/use-copy-to-clipboard.js","assets/download.js","assets/run-instances.js","assets/index5.js","assets/upload-button.js","assets/delete-confirmation-dialog.js","assets/trash-2.js","assets/index6.js","assets/index7.js","assets/index8.js","assets/state-badge.js","assets/index9.js","assets/index10.js","assets/index11.js","assets/index12.js","assets/index13.js","assets/index14.js","assets/_.js","assets/_userName.js","assets/detail-row.js","assets/_policyArn.js","assets/_id.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 FU(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 dD(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 Av={exports:{}},Bf={};var MI;function GU(){if(MI)return Bf;MI=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 DI;function KU(){return DI||(DI=1,Av.exports=GU()),Av.exports}var k=KU(),tg=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(){}},ZU={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},QU=class{#e=ZU;#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)}},qb=new QU;function YU(e){setTimeout(e,0)}var ng=typeof window>"u"||"Deno"in globalThis;function eo(){}function XU(e,t){return typeof e=="function"?e(t):e}function WU(e){return typeof e=="number"&&e>=0&&e!==1/0}function JU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fb(e,t){return typeof e=="function"?e(t):e}function e5(e,t){return typeof e=="function"?e(t):e}function PI(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:c,queryKey:l,stale:f}=e;if(l){if(r){if(t.queryHash!==kS(l,t.options))return!1}else if(!md(t.queryKey,l))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||c&&!c(t))}function kI(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 kS(e,t){return(t?.queryKeyHashFn||hd)(e)}function hd(e){return JSON.stringify(e,(t,n)=>Gb(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 t5=Object.prototype.hasOwnProperty;function pD(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=NI(e)&&NI(t);if(!r&&!(Gb(e)&&Gb(t)))return t;const c=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),f=l.length,p=r?new Array(f):{};let d=0;for(let v=0;v{qb.setTimeout(t,e)})}function s5(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pD(e,t):t}function r5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function o5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var NS=Symbol();function hD(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===NS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function eMe(e,t){return typeof e=="function"?e(...t):!!e}function i5(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 a5=class extends tg{#e;#n;#t;constructor(){super(),this.#t=e=>{if(!ng&&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"}},mD=new a5;function c5(){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 l5=YU;function u5(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=l5;const c=f=>{t?e.push(f):i(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(p=>{n(p)})})})};return{batch:f=>{let p;t++;try{p=f()}finally{t--,t||l()}return p},batchCalls:f=>(...p)=>{c(()=>{f(...p)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{i=f}}}var As=u5(),f5=class extends tg{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(!ng&&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 f5;function d5(e){return Math.min(1e3*2**e,3e4)}function gD(e){return(e??"online")==="online"?hm.isOnline():!0}var Kb=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function yD(e){let t=!1,n=0,r;const i=c5(),c=()=>i.status!=="pending",l=x=>{if(!c()){const R=new Kb(x);b(R),e.onCancel?.(R)}},f=()=>{t=!0},p=()=>{t=!1},d=()=>mD.isFocused()&&(e.networkMode==="always"||hm.isOnline())&&e.canRun(),v=()=>gD(e.networkMode)&&e.canRun(),g=x=>{c()||(r?.(),i.resolve(x))},b=x=>{c()||(r?.(),i.reject(x))},S=()=>new Promise(x=>{r=R=>{(c()||d())&&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 I=e.retry??(ng?0:3),P=e.retryDelay??d5,T=typeof P=="function"?P(n,C):P,L=I===!0||typeof I=="number"&&nd()?void 0:S()).then(()=>{t?b(C):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r?.(),i),cancelRetry:f,continueRetry:p,canStart:v,start:()=>(v()?E():S().then(E),i)}}var vD=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),WU(this.gcTime)&&(this.#e=qb.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ng?1/0:300*1e3))}clearGcTimeout(){this.#e&&(qb.clearTimeout(this.#e),this.#e=void 0)}},p5=class extends vD{#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=zI(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=zI(this.options);t.data!==void 0&&(this.setState($I(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=s5(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(eo).catch(eo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>e5(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===NS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Fb(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:!JU(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(p=>p.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=hD(this.options,t),d=(()=>{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,d,this):f(d)},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=yD({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof Kb&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,p)=>{this.#o({type:"failed",failureCount:f,error:p})},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 Kb){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,...h5(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...$I(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 h5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gD(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $I(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zI(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 BI(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:[]},p=0;const d=async()=>{let v=!1;const g=E=>{i5(E,()=>t.signal,()=>v=!0)},b=hD(t.options,t.fetchOptions),S=async(E,x,R)=>{if(v)return Promise.reject();if(x==null&&E.pages.length)return Promise.resolve(E);const I=(()=>{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(I),{maxPages:T}=t.options,L=R?o5:r5;return{pages:L(E.pages,P,T),pageParams:L(E.pageParams,x,T)}};if(i&&c.length){const E=i==="backward",x=E?m5:UI,R={pages:c,pageParams:l},C=x(r,R);f=await S(R,C,E)}else{const E=e??c.length;do{const x=p===0?l[0]??r.initialPageParam:UI(r,f);if(p>0&&x==null)break;f=await S(f,x),p++}while(pt.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function UI(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 m5(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var g5=class extends vD{#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||y5(),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=yD({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 y5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var v5=class extends tg{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 g5({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=Mh(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=Mh(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=Mh(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=Mh(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=>kI(t,n))}findAll(e={}){return this.getAll().filter(t=>kI(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(eo))))}};function Mh(e){return e.options.scope?.id}var b5=class extends tg{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??kS(r,t);let c=this.get(i);return c||(c=new p5({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=>PI(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>PI(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()})})}},S5=class{#e;#n;#t;#r;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new b5,this.#n=e.mutationCache||new v5,this.#t=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=mD.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(Fb(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=XU(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(eo).catch(eo)}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(eo)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(eo)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Fb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(eo).catch(eo)}fetchInfiniteQuery(e){return e.behavior=BI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(eo).catch(eo)}ensureInfiniteQueryData(e){return e.behavior=BI(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=kS(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===NS&&(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()}},Iv={exports:{}},Qe={};var jI;function _5(){if(jI)return Qe;jI=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"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function S(z){return z===null||typeof z!="object"?null:(z=b&&z[b]||z["@@iterator"],typeof z=="function"?z:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,R={};function C(z,ee,ye){this.props=z,this.context=ee,this.refs=R,this.updater=ye||E}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 P(z,ee,ye){this.props=z,this.context=ee,this.refs=R,this.updater=ye||E}var T=P.prototype=new I;T.constructor=P,x(T,C.prototype),T.isPureReactComponent=!0;var L=Array.isArray;function j(){}var V={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function Q(z,ee,ye){var Ee=ye.ref;return{$$typeof:e,type:z,key:ee,ref:Ee!==void 0?Ee: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 H(z,ee,ye,Ee,xe){var Se=typeof z;(Se==="undefined"||Se==="boolean")&&(z=null);var Oe=!1;if(z===null)Oe=!0;else switch(Se){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(z.$$typeof){case e:case t:Oe=!0;break;case v:return Oe=z._init,H(Oe(z._payload),ee,ye,Ee,xe)}}if(Oe)return xe=xe(z),Oe=Ee===""?"."+me(z,0):Ee,L(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||z&&z.key===xe.key?"":(""+xe.key).replace(oe,"$&/")+"/")+Oe)),ee.push(xe)),1;Oe=0;var Fe=Ee===""?".":Ee+":";if(L(z))for(var be=0;be{const t=M.useContext(bD);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},E5=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(bD.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 _D({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:c,checkDirty:l,shallowPropagate:f};function r(d,v,g){const b=v.depsTail;if(b!==void 0&&b.dep===d)return;const S=b!==void 0?b.nextDep:v.deps;if(S!==void 0&&S.dep===d){S.version=g,v.depsTail=S;return}const E=d.subsTail;if(E!==void 0&&E.version===g&&E.sub===v)return;const x=v.depsTail=d.subsTail={version:g,dep:d,sub:v,prevDep:b,nextDep:S,prevSub:E,nextSub:void 0};S!==void 0&&(S.prevDep=x),b!==void 0?b.nextDep=x:v.deps=x,E!==void 0?E.nextSub=x:d.subs=x}function i(d,v=d.sub){const g=d.dep,b=d.prevDep,S=d.nextDep,E=d.nextSub,x=d.prevSub;return S!==void 0?S.prevDep=b:v.depsTail=b,b!==void 0?b.nextDep=S:v.deps=S,E!==void 0?E.prevSub=x:g.subsTail=x,x!==void 0?x.nextSub=E:(g.subs=E)===void 0&&n(g),S}function c(d){let v=d.nextSub,g;e:do{const b=d.sub;let S=b.flags;if(S&60?S&12?S&4?!(S&48)&&p(d,b)?(b.flags=S|40,S&=1):S=0:b.flags=S&-9|32:S=0:b.flags=S|32,S&2&&t(b),S&1){const E=b.subs;if(E!==void 0){const x=(d=E).nextSub;x!==void 0&&(g={value:v,prev:g},v=x);continue}}if((d=v)!==void 0){v=d.nextSub;continue}for(;g!==void 0;)if(d=g.value,g=g.prev,d!==void 0){v=d.nextSub;continue e}break}while(!0)}function l(d,v){let g,b=0,S=!1;e:do{const E=d.dep,x=E.flags;if(v.flags&16)S=!0;else if((x&17)===17){if(e(E)){const R=E.subs;R.nextSub!==void 0&&f(R),S=!0}}else if((x&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(g={value:d,prev:g}),d=E.deps,v=E,++b;continue}if(!S){const R=d.nextDep;if(R!==void 0){d=R;continue}}for(;b--;){const R=v.subs,C=R.nextSub!==void 0;if(C?(d=g.value,g=g.prev):d=R,S){if(e(v)){C&&f(R),v=d.sub;continue}S=!1}else v.flags&=-33;v=d.sub;const I=d.nextDep;if(I!==void 0){d=I;continue e}}return S}while(!0)}function f(d){do{const v=d.sub,g=v.flags;(g&48)===32&&(v.flags=g|16,(g&6)===2&&t(v))}while((d=d.nextSub)!==void 0)}function p(d,v){let g=v.depsTail;for(;g!==void 0;){if(g===d)return!0;g=g.prevDep}return!1}}let $S=0,Sc=0,sd=0;const oi=[],{link:tMe,unlink:ED,propagate:nMe,checkDirty:x5,shallowPropagate:sMe}=_D({update(e){return e.depsTail!==void 0?A5(e):I5(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,sg(e)):M5.call(e)}});function w5(){return $S}function R5(){++$S}function C5(){--$S||O5()}function A5(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,sg(e)}}function I5(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function T5(e){const t=e.flags;if(t&16||t&32&&x5(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,sg(e)}}else e.flags=2}function O5(){try{for(;Sc0)){for(;Dh{i.get(),f.current?l.next?.(i._snapshot):f.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(c){const l=fo,f=Object.is;if(n)fo=i,++nm,i.depsTail=void 0;else if(c===void 0)return!1;n&&(i.flags=on.Mutable|on.RecursedCheck);try{const p=i._snapshot,d=typeof c=="function"?c(p):c===void 0&&n?r(p):c;return p===void 0||!f(p,d)?(i._snapshot=d,!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&&xD(i.deps,i)){if(i._update()){const l=i.subs;l!==void 0&&qI(l)}}else c&on.Pending&&(i.flags=c&~on.Pending);return fo!==void 0&&HI(i,fo,nm),i._snapshot}):i.set=function(c){if(i._update(c)){const l=i.subs;l!==void 0&&(P5(l),qI(l),wD())}},i}function k5(e){const t=()=>{const r=fo;fo=n,++nm,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&&xD(this.deps,this)?t():this.flags=on.Watching},stop(){this.flags=on.None,this.depsTail=void 0,mm(this)}};return t(),n}let N5=class{constructor(t){this.atom=RD(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(zS(t))}};class L5{constructor(t){this.atom=RD(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(zS(t))}}function $5(e){return typeof e=="function"?new L5(e):new N5(e)}function z5(e){try{R5(),e()}finally{C5(),wD()}}const Ea="__TSR_index",FI="popstate",GI="beforeunload";function B5(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,...p})=>{if(f?.ignoreBlocker??!1){l();return}const v=e.getBlockers?.()??[],g=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&v.length&&g)for(const b of v){const S=gm(p.path,p.state);if(await b.blockerFn({currentLocation:t,nextLocation:S,action:p.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,p)=>{const d=t.state[Ea];f=KI(d+1,f),c({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:l,state:f})},replace:(l,f,p)=>{const d=t.state[Ea];f=KI(d,f),c({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:p,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[Ea]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const p=e.getBlockers?.()??[];e.setBlockers?.(p.filter(d=>d!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function KI(e,t){t||(t={});const n=BS();return{...t,key:n,__TSR_key:n,[Ea]:e}}function U5(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),p=(()=>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=BS();t.history.replaceState({[Ea]:0,key:N,__TSR_key:N},"")}let d=p(),v,g=!1,b=!1,S=!1,E=!1;const x=()=>d;let R,C;const I=()=>{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=d),d=gm(Q,ne),R={href:te,state:ne,isPush:R?.isPush||N==="push"},C||(C=Promise.resolve().then(()=>I()))},T=N=>{d=p(),V.notify({type:N})},L=async()=>{if(b){b=!1;return}const N=p(),Q=N.state[Ea]-d.state[Ea],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(S)S=!1;else{const ge=c();if(typeof document<"u"&&ge.length){for(const H of ge)if(await H.blockerFn({currentLocation:d,nextLocation:N,action:oe})){b=!0,t.history.go(1),V.notify(me);return}}}d=p(),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=B5({getLocation:x,getLength:()=>t.history.length,pushState:(N,Q)=>P("push",N,Q),replaceState:(N,Q)=>P("replace",N,Q),back:N=>(N&&(S=!0),E=!0,t.history.back()),forward:N=>{N&&(S=!0),E=!0,t.history.forward()},go:N=>{g=!0,t.history.go(N)},createHref:N=>f(N),flush:I,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(GI,j,{capture:!0}),t.removeEventListener(FI,L)},onBlocked:()=>{v&&d!==v&&(d=v)},getBlockers:c,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(GI,j,{capture:!0}),t.addEventListener(FI,L),t.history.pushState=function(...N){const Q=n.apply(t.history,N);return V._ignoreSubscribers||T("PUSH"),Q},t.history.replaceState=function(...N){const Q=r.apply(t.history,N);return V._ignoreSubscribers||T("REPLACE"),Q},V}function j5(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function gm(e,t){const n=j5(e),r=n.indexOf("#"),i=n.indexOf("?"),c=BS();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||{[Ea]:0,key:c,__TSR_key:c}}}function BS(){return(Math.random()+1).toString(36).substring(7)}const V5=!1;function rd(e){let t;return z5(()=>{t=e()}),t}function gd(e){return e[e.length-1]}function H5(e){return typeof e=="function"}function ga(e,t){return H5(e)?e(t):e}const q5=Object.prototype.hasOwnProperty,ZI=Object.prototype.propertyIsEnumerable;function sr(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=t,i=XI(e)&&XI(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,p=l.length,d=i?new Array(p):{};let v=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!YI(n)||!n.hasOwnProperty("isPrototypeOf"))}function YI(e){return Object.prototype.toString.call(e)==="[object Object]"}function XI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ic(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||!Ic(e[l],t[l],n)))return!1;return i===c}return!1}function au(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 F5(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 yd(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function G5(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function WI(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 G5(t)}const K5=["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 Z5={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Q5=/[&><\u2028\u2029]/g;function Y5(e){return e.replace(Q5,t=>Z5[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+=WI(e.slice(n,i.index))+i[0],n=t.lastIndex;r=r+WI(n?e.slice(n):e);let c=!1;return r.startsWith("//")&&(c=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:c}}function X5(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var W5="Invariant failed";function Aa(e,t){if(!e)throw new Error(W5)}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 p=n;t.delete(p.key),p.next&&(n=p.next,p.next.prev=void 0),p===r&&(r=void 0)}const f=t.get(c);if(f)f.value=l,i(f);else{const p={key:c,value:l,prev:r};r&&(r.next=p),r=p,n||(n=p),t.set(c,p)}},clear(){t.clear(),n=void 0,r=void 0}}}const cu=0,kc=1,Nc=2,vd=3,Rc=4,CD=5;function J5(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 US(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]=cu,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]=Nc,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(c.charCodeAt(0)===36)return n[0]=kc,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=J5(c);if(l){const[f,p]=l,d=c.charCodeAt(f+1);if(d===45){if(f+2!N.skipOnParamError&&N.caseSensitive===T&&N.prefix===L&&N.suffix===j);if(V)E=V;else{const N=Ov(kc,n.fullPath??n.from,T,L,j);E=N,N.depth=c,N.parent=i,i.dynamic??=[],i.dynamic.push(N)}break}case vd:{const I=p.substring(x,S[1]),P=p.substring(S[4],R),T=v&&!!(I||P),L=I?T?I:I.toLowerCase():void 0,j=P?T?P:P.toLowerCase():void 0,V=!g&&i.optional?.find(N=>!N.skipOnParamError&&N.caseSensitive===T&&N.prefix===L&&N.suffix===j);if(V)E=V;else{const N=Ov(vd,n.fullPath??n.from,T,L,j);E=N,N.parent=i,N.depth=c,i.optional??=[],i.optional.push(N)}break}case Nc:{const I=p.substring(x,S[1]),P=p.substring(S[4],R),T=v&&!!(I||P),L=I?T?I:I.toLowerCase():void 0,j=P?T?P:P.toLowerCase():void 0,V=Ov(Nc,n.fullPath??n.from,T,L,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 S=Cc(n.fullPath??n.from);S.kind=CD,S.parent=i,c++,S.depth=c,i.pathless??=[],i.pathless.push(S),i=S}const b=(n.path||!n.children)&&!n.isRoot;if(b&&p.endsWith("/")){const S=Cc(n.fullPath??n.from);S.kind=Rc,S.parent=i,c++,S.depth=c,i.index=S,i=S}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 p of n.children)rg(e,t,p,f,i,c,l)}function Tv(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 ma(e){if(e.pathless)for(const t of e.pathless)ma(t);if(e.static)for(const t of e.static.values())ma(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())ma(t);if(e.dynamic?.length){e.dynamic.sort(Tv);for(const t of e.dynamic)ma(t)}if(e.optional?.length){e.optional.sort(Tv);for(const t of e.optional)ma(t)}if(e.wildcard?.length){e.wildcard.sort(Tv);for(const t of e.wildcard)ma(t)}}function Cc(e){return{kind:cu,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 Ov(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 e8(e,t){const n=Cc("/"),r=new Uint16Array(6);for(const i of e)rg(!1,r,i,1,n,0);ma(n),t.masksTree=n,t.flatCache=bm(1e3)}function t8(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=jS(e,t.masksTree);return t.flatCache.set(e,r),r}function n8(e,t,n,r,i){e||="/",r||="/";const c=t?`case\0${e}`:e;let l=i.singleCache.get(c);if(!l){l=Cc("/");const f=new Uint16Array(6);rg(t,f,{from:e},1,l,0),i.singleCache.set(c,l)}return jS(r,l,n)}function s8(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=jS(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)c=null;else throw l}return c&&(c.branch=i8(c.route)),t.matchCache.set(r,c),c}function r8(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function o8(e,t=!1,n){const r=Cc(e.fullPath),i=new Uint16Array(6),c={},l={};let f=0;return rg(t,i,e,1,r,0,d=>{if(n?.(d,f),Aa(!(d.id in c),`Duplicate routes found with id: ${String(d.id)}`),c[d.id]=d,f!==0&&d.path){const v=r8(d.fullPath);(!l[v]||d.fullPath.endsWith("/"))&&(l[v]=d)}f++}),ma(r),{processedTree:{segmentTree:r,singleCache:bm(1e3),matchCache:bm(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:l}}function jS(e,t,n=!1){const r=e.split("/"),i=c8(e,r,t,n);if(!i)return null;const[c]=AD(e,r,i);return{route:i.node.route,rawParams:c,parsedParams:i.parsedParams}}function AD(e,t,n){const r=a8(n.node);let i=null;const c={};let l=n.extract?.part??0,f=n.extract?.node??0,p=n.extract?.path??0,d=n.extract?.segment??0;for(;f=0;te--){const F=b.optional[te];f.push({node:F,index:S,skipped:Q,depth:ne,statics:R,dynamics:C,optionals:I,extract:P,rawParams:T,parsedParams:L})}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:S+1,skipped:E,depth:ne,statics:R,dynamics:C,optionals:I+1,extract:P,rawParams:T,parsedParams:L})}}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:S+1,skipped:E,depth:x+1,statics:R,dynamics:C+1,optionals:I,extract:P,rawParams:T,parsedParams:L})}if(!j&&b.staticInsensitive){const Q=b.staticInsensitive.get(N??=V.toLowerCase());Q&&f.push({node:Q,index:S+1,skipped:E,depth:x+1,statics:R+1,dynamics:C,optionals:I,extract:P,rawParams:T,parsedParams:L})}if(!j&&b.static){const Q=b.static.get(V);Q&&f.push({node:Q,index:S+1,skipped:E,depth:x+1,statics:R+1,dynamics:C,optionals:I,extract:P,rawParams:T,parsedParams:L})}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:S,skipped:E,depth:Q,statics:R,dynamics:C,optionals:I,extract:P,rawParams:T,parsedParams:L})}}}if(v&&p)return jf(p,v)?v:p;if(v)return v;if(p)return p;if(r&&d){let g=d.index;for(let S=0;Se.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Rc)>(e.node.kind===Rc)||t.node.kind===Rc==(e.node.kind===Rc)&&t.depth>e.depth))):!0}function sm(e){return VS(e.filter(t=>t!==void 0).join("/"))}function VS(e){return e.replace(/\/{2,}/g,"/")}function ID(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function xa(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function TD(e){return xa(ID(e))}function Sm(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function l8(e,t,n){return Sm(e,n)===Sm(t,n)}function u8({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,S=g.length;b1&&(gd(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let p,d="";for(let g=0;g0&&(d+="/");const b=f[g];if(!b)continue;p=US(b,0,p);const S=p[0];if(S===cu){d+=b;continue}const E=p[5],x=b.substring(0,p[1]),R=b.substring(p[4],E),C=b.substring(p[2],p[3]);S===kc?d+=x||R?`${x}{$${C}}${R}`:`$${C}`:S===Nc?d+=x||R?`${x}{$}${R}`:"$":d+=`${x}{-$${C}}${R}`}d=VS(d);const v=d||"/";return l&&r&&r.set(l,v),v}function f8(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 Dv(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=>eT(i,n)).join("/"):eT(r,n)}function JI({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,p,d="";for(;f{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function h8(){const e=d8();if(!e)return null;const t=e.getItem(Yb);let n=t?JSON.parse(t):{};return{state:n,set:r=>{n=ga(r,n)||n;try{e.setItem(Yb,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Ph=h8(),m8=e=>e.state.__TSR_key||e.href;function g8(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 y8({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:c}){let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(d){console.error(d);return}const f=t||window.history.state?.__TSR_key,p=l[f];_m=!0;e:{if(r&&p&&Object.keys(p).length>0){for(const g in p){const b=p[g];if(g==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:n});else if(g){const S=document.querySelector(g);S&&(S.scrollLeft=b.scrollX,S.scrollTop=b.scrollY)}}break e}const d=(c??window.location).hash.split("#",2)[1];if(d){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const b=document.getElementById(d);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 v8(e,t){if(!Ph||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!Ph))return;e.isScrollRestorationSetup=!0,_m=!1;const r=e.options.getScrollRestorationKey||m8;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 p=c.target.getAttribute("data-scroll-restoration-id");p?l=`[data-scroll-restoration-id="${p}"]`:l=g8(c.target)}const f=r(e.state.location);Ph.set(p=>{const d=p[f]||={},v=d[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 p})};typeof document<"u"&&document.addEventListener("scroll",p8(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})||(y8({storageKey:Yb,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Ph.set(f=>(f[l]||={},f)))})}function b8(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 S8(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 Pv(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function _8(e){const t=new URLSearchParams(e),n={};for(const[r,i]of t.entries()){const c=n[r];c==null?n[r]=Pv(i):Array.isArray(c)?c.push(Pv(i)):n[r]=[c,Pv(i)]}return n}const E8=w8(JSON.parse),x8=R8(JSON.stringify,JSON.parse);function w8(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=_8(t);for(const r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch{}}return n}}function R8(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=S8(i,r);return c?`?${c}`:""}}const Pr="__root__";function HS(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 cr(e){return e instanceof Response&&!!e.options}const Xb=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},og=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Jl=(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},tT=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),i=r>=0?r:0;let c=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;c<0&&(c=i);for(let l=c;l>=0;l--){const f=e.matches[l];if(e.router.looseRoutesById[f.routeId].options.notFoundComponent)return l}return n?c:i},ya=(e,t,n)=>{if(!(!cr(n)&&!qs(n)))throw cr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:cr(n)?"redirected":r.status==="pending"?"success":r.status,context:Jl(e,t.index),isFetching:!1,error:n})),qs(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),cr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},OD=(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,ya(e,e.router.getMatch(i),n);try{l.options.onError?.(n)}catch(f){n=f,ya(e,e.router.getMatch(i),n)}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})),!e.preload&&!cr(n)&&!qs(n)&&(e.serialError??=n)},MD=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!og(e,t)&&(n.options.loader||n.options.beforeLoad||PD(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{Xb(e)},i);r._nonReactive.pendingTimeout=l}},C8=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;MD(e,t,n,r);const i=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&ya(e,c,c.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},A8=(e,t,n,r)=>{const i=e.router.getMatch(t),c=i._nonReactive.loadPromise;i._nonReactive.loadPromise=au(()=>{c?.resolve()});const{paramsError:l,searchError:f}=i;l&&Vf(e,n,l,"PARSE_PARAMS"),f&&Vf(e,n,f,"VALIDATE_SEARCH"),MD(e,t,r,i);const p=new AbortController;let d=!1;const v=()=>{d||(d=!0,e.updateMatch(t,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:p})))},g=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,T=>({...T,isFetching:!1}))};if(!r.options.beforeLoad){rd(()=>{v(),g()});return}i._nonReactive.beforeLoadPromise=au();const b={...Jl(e,n,!1),...i.__routeContext},{search:S,params:E,cause:x}=i,R=og(e,t),C={search:S,abortController:p,params:E,preload:R,context:b,location:e.location,navigate:T=>e.router.navigate({...T,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":x,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},I=T=>{if(T===void 0){rd(()=>{v(),g()});return}(cr(T)||qs(T))&&(v(),Vf(e,n,T,"BEFORE_LOAD")),rd(()=>{v(),e.updateMatch(t,L=>({...L,__beforeLoadContext:T})),g()})};let P;try{if(P=r.options.beforeLoad(C),yd(P))return v(),P.catch(T=>{Vf(e,n,T,"BEFORE_LOAD")}).then(I)}catch(T){v(),Vf(e,n,T,"BEFORE_LOAD")}I(P)},I8=(e,t)=>{const{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],c=()=>f(),l=()=>A8(e,n,t,i),f=()=>{if(OD(e,n))return;const p=C8(e,n,i);return yd(p)?p.then(l):l()};return c()},T8=(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 p=c?.meta,d=c?.links,v=c?.scripts,g=c?.styles;return{meta:p,links:d,headScripts:v,headers:f,scripts:l,styles:g}})},DD=(e,t,n,r,i)=>{const c=t[r-1],{params:l,loaderDeps:f,abortController:p,cause:d}=e.router.getMatch(n),v=Jl(e,r),g=og(e,n);return{params:l,deps:f,preload:!!g,parentMatchPromise:c,abortController:p,context:v,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:g?"preload":d,route:i,...e.router.options.additionalContext}},nT=async(e,t,n,r,i)=>{try{const c=e.router.getMatch(n);try{(!(V5??e.router.isServer)||c.ssr===!0)&&Em(i);const l=i.options.loader?.(DD(e,t,n,r,i)),f=i.options.loader&&yd(l);if((f||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||c._nonReactive.minPendingPromise)&&e.updateMatch(n,v=>({...v,isFetching:"loader"})),i.options.loader){const v=f?await l:l;ya(e,e.router.getMatch(n),v),v!==void 0&&e.updateMatch(n,g=>({...g,loaderData:v}))}i._lazyPromise&&await i._lazyPromise;const d=c._nonReactive.minPendingPromise;d&&await d,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,v=>({...v,error:void 0,context:Jl(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let f=l;if(f?.name==="AbortError"){if(c.abortController.signal.aborted){c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Jl(e,r)}));return}const p=c._nonReactive.minPendingPromise;p&&await p,qs(l)&&await i.options.notFoundComponent?.preload?.(),ya(e,e.router.getMatch(n),l);try{i.options.onError?.(l)}catch(d){f=d,ya(e,e.router.getMatch(n),d)}e.updateMatch(n,d=>({...d,error:f,context:Jl(e,r),status:"error",isFetching:!1}))}}catch(c){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),ya(e,l,c)}},O8=async(e,t,n)=>{async function r(g,b,S,E){const x=Date.now()-b.updatedAt,R=g?E.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??e.router.options.defaultStaleTime??0,C=E.options.shouldReload,I=typeof C=="function"?C(DD(e,t,i,n,E)):C,{status:P,invalid:T}=S;l=P==="success"&&(T||(I??x>R)),g&&E.options.preload===!1||(l&&!e.sync?(f=!0,(async()=>{try{await nT(e,t,i,n,E);const L=e.router.getMatch(i);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0}catch(L){cr(L)&&await e.router.navigate(L.options)}})()):(P!=="success"||l&&e.sync)&&await nT(e,t,i,n,E))}const{id:i,routeId:c}=e.matches[n];let l=!1,f=!1;const p=e.router.looseRoutesById[c];if(!OD(e,i)){const g=e.router.getMatch(i),b=og(e,i);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!e.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const S=e.router.getMatch(i),E=S._nonReactive.error||S.error;E&&ya(e,S,E),S.status==="pending"&&await r(b,g,S,p)}else{const S=b&&!e.router.state.matches.some(x=>x.id===i),E=e.router.getMatch(i);E._nonReactive.loaderPromise=au(),S!==E.preload&&e.updateMatch(i,x=>({...x,preload:S})),await r(b,g,E,p)}}const d=e.router.getMatch(i);f||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,f||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const v=f?d.isFetching:!1;return v!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,g=>({...g,isFetching:v,invalid:!1})),e.router.getMatch(i)):d};async function sT(e){const t=e,n=[];t.router.state.matches.some(b=>b._forcePending)&&Xb(t);let r;for(let b=0;b({...C,...R?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),v=b,await Em(E)}else if(!t.preload){const b=t.matches[0];b.globalNotFound||t.router.getMatch(b.id)?.globalNotFound&&t.updateMatch(b.id,E=>({...E,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const b=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Em(b)}for(let b=0;b<=v;b++){const S=t.matches[b],{id:E,routeId:x}=S,R=t.router.looseRoutesById[x];try{const C=T8(t,E,R);if(C){const I=await C;t.updateMatch(E,P=>({...P,...I}))}}catch(C){console.error(`Error executing head for route ${x}:`,C)}}const g=Xb(t);if(yd(g)&&await g,d)throw d;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}async function Em(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 kD){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 PD(e){for(const t of kD)if(e.options[t]?.preload)return!0;return!1}const kD=["component","errorComponent","pendingComponent","notFoundComponent"];function M8(e){return{input:({url:t})=>{for(const n of e)t=Wb(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=ND(e[n],t);return t}}}function D8(e){const t=TD(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=sm(["/",t,l.pathname]),l)}}function Wb(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 ND(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 Tc(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 P8(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class k8{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=f8(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=U5()),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=$5(L8(this.latestLocation)),v8(this));let f=!1;const p=this.options.basepath??"/",d=this.options.rewrite;if(c||i!==p||l!==d){this.basepath=p;const b=[],S=TD(p);S&&S!=="/"&&b.push(D8({basepath:p})),d&&b.push(d),this.rewrite=b.length===0?void 0:b.length===1?b[0]:M8(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=o8(this.routeTree,this.options.caseSensitive,(r,i)=>{r.init({originalIndex:i})});return this.options.routeMasks&&e8(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:p,search:d,hash:v,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const I=this.options.parseSearch(d),P=this.options.stringifySearch(I);return{href:p+P+v,publicHref:g,pathname:Uf(p).path,external:!1,searchStr:P,search:sr(r?.search,I),hash:Uf(v.slice(1)).path,state:sr(r?.state,b)}}const S=new URL(g,this.origin),E=Wb(this.rewrite,S),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:sr(r?.search,x),hash:Uf(E.hash.slice(1)).path,state:sr(r?.state,b)}},c=i(n),{__tempLocation:l,__tempKey:f}=c.state;if(l&&(!f||f===this.tempLocationKey)){const p=i(l);return p.state.key=c.state.key,p.state.__TSR_key=c.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:c}}return c},this.resolvePathWithBase=(n,r)=>u8({base:n,to:VS(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=>$8({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 p=c.unsafeRelative==="path"?l.pathname:c.from??f.fullPath,d=this.resolvePathWithBase(p,"."),v=f.search,g={...f.params},b=c.to?this.resolvePathWithBase(d,`${c.to}`):this.resolvePathWithBase(d,"."),S=c.params===!1||c.params===null?{}:(c.params??!0)===!0?g:Object.assign(g,ga(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(S).length>0)for(const te of x){const F=te.options.params?.stringify??te.options.stringifyParams;if(F)try{Object.assign(S,F(S))}catch{}}const C=n.leaveParams?b:Uf(JI({path:b,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let I=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,...I}))}catch{}}),I=te}I=z8({search:I,dest:c,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),I=sr(v,I);const P=this.options.stringifySearch(I),T=c.hash===!0?l.hash:c.hash?ga(c.hash,l.hash):void 0,L=T?`#${T}`:"";let j=c.state===!0?l.state:c.state?ga(c.state,l.state):{};j=sr(l.state,j);const V=`${C}${P}${L}`;let N,Q,ne=!1;if(this.rewrite){const te=new URL(V,this.origin),F=ND(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=X5(V),Q=N;return{publicHref:Q,href:N,pathname:C,search:I,searchStr:P,state:j,hash:T??"",external:ne,unmaskOnReload:c.unmaskOnReload}},i=(c={},l)=>{const f=r(c);let p=l?r(l):void 0;if(!p){const d={};if(this.options.routeMasks){const v=t8(f.pathname,this.processedTree);if(v){Object.assign(d,v.rawParams);const{from:g,params:b,...S}=v.route,E=b===!1||b===null?{}:(b??!0)===!0?d:Object.assign(d,ga(b,d));l={from:n.from,...S,params:E},p=r(l)}}}return p&&(f.maskedLocation=p),f};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...i})=>{const c=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(v=>{i.state[v]=this.latestLocation.state[v]});const d=Ic(i.state,this.latestLocation.state);return p.forEach(v=>{delete i.state[v]}),d},l=xa(this.latestLocation.href)===xa(i.href),f=this.commitLocationPromise;if(this.commitLocationPromise=au(()=>{f?.resolve()}),l&&c())this.load();else{let{maskedLocation:p,hashScrollIntoView:d,...v}=i;p&&(v={...p,state:{...p.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=d??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,...p}={})=>{if(f){const g=this.history.location.state.__TSR_index,b=gm(f,{__TSR_index:n?g:g+1}),S=new URL(b.pathname,this.origin),E=Wb(this.rewrite,S);p.to=E.pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const d=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const v=this.commitLocation({...d,viewTransition:c,replace:n,resetScroll:r,hashScrollIntoView:i,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(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 d=this.buildLocation({to:n,...l});i=i??d.publicHref,c=c??d.publicHref}const p=!f&&c?c:i;if(vm(p,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(p):window.location.href=p,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 p=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Tc({resolvedLocation:d,location:p})}),this.emit({type:"onBeforeLoad",...Tc({resolvedLocation:d,location:p})}),await sT({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],g=[],b=[],S=[];rd(()=>{this.__store.setState(E=>{const x=E.matches,R=E.pendingMatches||E.matches;return v=x.filter(C=>!R.some(I=>I.id===C.id)),g=x.filter(C=>!R.some(I=>I.routeId===C.routeId)),b=R.filter(C=>!x.some(I=>I.routeId===C.routeId)),S=R.filter(C=>x.some(I=>I.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"],[S,"onStay"]].forEach(([E,x])=>{E.forEach(R=>{this.looseRoutesById[R.routeId].options[x]?.(R)})})})})}})}catch(p){cr(p)?(r=p,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):qs(p)&&(i=p),this.__store.setState(d=>({...d,statusCode:r?r.status:i?404:d.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(Tc({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:P8(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=Em,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(p=>({...p,cachedMatches:[...p.cachedMatches,f]}))})});try{return i=await sT({router:this,matches:i,location:r,preload:!0,updateMatch:(f,p)=>{c.has(f)?i=i.map(d=>d.id===f?p(d):d):this.updateMatch(f,p)}}),i}catch(f){if(cr(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,p=n8(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!p||n.params&&!Ic(p.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Ic(f.search,c.search,{partial:!0})?p.rawParams:!1:p.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??x8,parseSearch:t.parseSearch??E8,protocolAllowlist:t.protocolAllowlist??K5}),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,p=!1;(i?i.path!=="/"&&c["**"]:xa(t.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:p=!0);const d=p?U8(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({...T,_fromLocation:t}),buildLocation:this.buildLocation,cause:S.cause,abortController:S.abortController,preload:!!S.preload,matches:v,routeId:E.id};S.__routeContext=E.options.context(P)??void 0}S.context={...I,...S.__routeContext,...S.__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),p=f&&f.routeId===c.id&&t.pathname===this.state.location.pathname;let d;if(p)d=f.params;else{const v={...r};for(const g of n)try{rT(g,r,i??{},v)}catch{}d=v}return{matchedRoutes:n,fullPath:c.fullPath,search:l,params:d}}}class xm extends Error{}class N8 extends Error{}function L8(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 xm("Async validation not supported");if(n.issues)throw new xm(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 $8({pathname:e,routesById:t,processedTree:n}){const r={},i=xa(e);let c,l;const f=s8(i,n,!0);return f&&(c=f.route,Object.assign(r,f.rawParams),l=Object.assign({},f.parsedParams)),{matchedRoutes:f?.branch||[t[Pr]],routeParams:r,foundRoute:c,parsedParams:l}}function z8({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return B8(n)(e,t,r??!1)}function B8(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 p=l;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(p=i.options.preSearchFilters.reduce((v,g)=>g(v),l));const d=f(p);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((v,g)=>g(v),d):d};t.middlewares.push(c)}if(i.options.validateSearch){const c=({search:l,next:f})=>{const p=f(l);if(!t._includeValidateSearch)return p;try{return{...p,...rm(i.options.validateSearch,p)??void 0}}catch{return p}};t.middlewares.push(c)}}const n=({search:i})=>{const c=t.dest;return c.search?c.search===!0?i:ga(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:d=>r(i+1,d,l)})};return function(c,l,f){return t.dest=l,t._includeValidateSearch=f,r(0,c,t.middlewares)}}function U8(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 Pr}function rT(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 j8="Error preloading route! ☝️";class LD{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=Pr:this.parentRoute||Aa(!1);let c=i?Pr:r?.path;c&&c!=="/"&&(c=ID(c));const l=r?.id||c;let f=i?Pr:sm([this.parentRoute.id===Pr?"":this.parentRoute.id,l]);c===Pr&&(c="/"),f!==Pr&&(f=sm(["/",f]));const p=f===Pr?"/":sm([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=p,this._to=xa(p)},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=>HS({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 V8 extends LD{constructor(t){super(t)}}const H8="use",oT=LS[H8],kh=typeof window<"u"?M.useLayoutEffect:M.useEffect;function kv(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 q8(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 F8(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}function qS(e){const t=e.errorComponent??FS;return k.jsx(G8,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}class G8 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 FS({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 K8({children:e,fallback:t=null}){return GS()?k.jsx(iu.Fragment,{children:e}):k.jsx(iu.Fragment,{children:t})}function GS(){return iu.useSyncExternalStore(Z8,()=>!0,()=>!1)}function Z8(){return()=>{}}var Nv={exports:{}},Lv={},$v={exports:{}},zv={};var iT;function Q8(){if(iT)return zv;iT=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 S=b(),E=r({inst:{value:S,getSnapshot:b}}),x=E[0].inst,R=E[1];return c(function(){x.value=S,x.getSnapshot=b,p(x)&&R({inst:x})},[g,S,b]),i(function(){return p(x)&&R({inst:x}),g(function(){p(x)&&R({inst:x})})},[g]),l(S),S}function p(g){var b=g.getSnapshot;g=g.value;try{var S=b();return!n(g,S)}catch{return!0}}function d(g,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return zv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,zv}var aT;function $D(){return aT||(aT=1,$v.exports=Q8()),$v.exports}var cT;function Y8(){if(cT)return Lv;cT=1;var e=bu(),t=$D();function n(d,v){return d===v&&(d!==0||1/d===1/v)||d!==d&&v!==v}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,c=e.useRef,l=e.useEffect,f=e.useMemo,p=e.useDebugValue;return Lv.useSyncExternalStoreWithSelector=function(d,v,g,b,S){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(!I){if(I=!0,P=j,j=b(j),S!==void 0&&x.hasValue){var V=x.value;if(S(V,j))return T=V}return T=j}if(V=T,r(P,j))return V;var N=b(j);return S!==void 0&&S(V,N)?(P=j,V):(P=j,T=N)}var I=!1,P,T,L=g===void 0?null:g;return[function(){return C(v())},L===null?void 0:function(){return C(L())}]},[v,g,b,S]);var R=i(d,E[0],E[1]);return l(function(){x.hasValue=!0,x.value=R},[R]),p(R),R},Lv}var lT;function X8(){return lT||(lT=1,Nv.exports=Y8()),Nv.exports}var zD=X8();function W8(e,t){return e===t}function J8(e,t,n=W8){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(l);return f},[e]),i=M.useCallback(()=>e?.get(),[e]);return zD.useSyncExternalStoreWithSelector(r,i,i,t,n)}const BD=M.createContext(null);function bs(e){const t=M.useContext(BD);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 J8(n.__store,i=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const c=sr(r.current,e.select(i));return r.current=c,c}return e.select(i)}return i})}const ig=M.createContext(void 0),ej=M.createContext(void 0);function _o(e){const t=M.useContext(e.from?ej:ig);return Kn({select:r=>{const i=r.matches.find(c=>e.from?e.from===c.routeId:c.id===t);if(Aa(!((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 KS(e){return _o({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ZS(e){const{select:t,...n}=e;return _o({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function QS(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 YS(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 ag(e){const t=bs();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var Bv={exports:{}},ps={};var uT;function tj(){if(uT)return ps;uT=1;var e=bu();function t(p){var d="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bv.exports=tj(),Bv.exports}var Ma=UD();function nj(e,t){const n=bs(),r=F8(t),{activeProps:i,inactiveProps:c,activeOptions:l,to:f,preload:p,preloadDelay:d,hashScrollIntoView:v,replace:g,startTransition:b,resetScroll:S,viewTransition:E,children:x,target:R,disabled:C,style:I,className:P,onClick:T,onBlur:L,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,z=GS(),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(()=>cj(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(!lj(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(!l8(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)&&!Ic(Je.location.search,xe.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?z&&Je.location.hash===xe.hash:!0}}),kt=tt?ga(i,{})??sj:Uv,he=tt?Uv:ga(c,{})??Uv,Re=[P,kt.className,he.className].filter(Boolean).join(" "),_e=(I||kt.style||he.style)&&{...I,...kt.style,...he.style},[Ze,Me]=M.useState(!1),Ve=M.useRef(!1),De=e.reloadDocument||be?!1:p??n.options.defaultPreload,nt=d??n.options.defaultPreloadDelay??0,ot=M.useCallback(()=>{n.preloadRoute({...Ee,_builtLocation:xe}).catch(Je=>{console.warn(Je),console.warn(j8)})},[n,Ee,xe]),Ge=M.useCallback(Je=>{Je?.isIntersecting&&ot()},[ot]);q8(r,Ge,aj,{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&&!uj(Je)&&!Je.defaultPrevented&&(!it||it==="_self")&&Je.button===0){Je.preventDefault(),Ma.flushSync(()=>{Me(!0)});const Ds=n.subscribe("onResolved",()=>{Ds(),Me(!1)});n.navigate({...Ee,replace:g,resetScroll:S,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},...I&&{style:I},...P&&{className:P},...T&&{onClick:T},...L&&{onBlur:L},...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:Vl([T,bt]),onBlur:Vl([L,Xn]),onFocus:Vl([j,Xt]),onMouseEnter:Vl([V,Xt]),onMouseLeave:Vl([N,Xn]),onTouchStart:Vl([Q,wt]),disabled:!!C,target:R,..._e&&{style:_e},...Re&&{className:Re},...C&&rj,...tt&&oj,...z&&Ze&&ij}}const Uv={},sj={className:"active"},rj={role:"link","aria-disabled":!0},oj={"data-status":"active","aria-current":"page"},ij={"data-transitioning":"transitioning"},Hf=new WeakMap,aj={rootMargin:"100px"},Vl=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function cj(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function lj(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}=nj(r,t),l=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...p}=c;return M.createElement("a",p,l)}return M.createElement(n,c,l)});function uj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let fj=class extends LD{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=>YS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>QS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>ZS({...n,from:this.id}),this.useLoaderData=n=>KS({...n,from:this.id}),this.useNavigate=()=>ag({from:this.fullPath}),this.Link=iu.forwardRef((n,r)=>k.jsx(Rs,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function dj(e){return new fj(e)}function pj(){return e=>mj(e)}class hj extends V8{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=>YS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>QS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>ZS({...n,from:this.id}),this.useLoaderData=n=>KS({...n,from:this.id}),this.useNavigate=()=>ag({from:this.fullPath}),this.Link=iu.forwardRef((n,r)=>k.jsx(Rs,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function mj(e){return new hj(e)}function at(e){return typeof e=="object"?new dT(e,{silent:!0}).createRoute(e):new dT(e,{silent:!0}).createRoute}class dT{constructor(t,n){this.path=t,this.createRoute=r=>{const i=dj(r);return i.isRoot=!1,i},this.silent=n?.silent}}class pT{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=>YS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>QS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>ZS({...n,from:this.options.id}),this.useLoaderData=n=>KS({...n,from:this.options.id}),this.useNavigate=()=>{const n=bs();return ag({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function hT(e){return typeof e=="object"?new pT(e):t=>new pT({id:e,...t})}function yt(e,t){let n,r,i,c;const l=()=>(n||(n=e().then(p=>{n=void 0,r=p[t]}).catch(p=>{if(i=p,F5(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const d=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(d)||(sessionStorage.setItem(d,"1"),c=!0)}})),n),f=function(d){if(c)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(oT)oT(l());else throw l();return M.createElement(r,d)};return f.preload=l,f}function gj(){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=kv(c),f=c||n||i,p=kv(f),d=c||i,v=kv(d);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 xa(e.latestLocation.publicHref)!==xa(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),kh(()=>{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]),kh(()=>{l&&!c&&e.emit({type:"onLoad",...Tc(e.state)})},[l,e,c]),kh(()=>{v&&!d&&e.emit({type:"onBeforeRouteMount",...Tc(e.state)})},[d,v,e]),kh(()=>{if(p&&!f){const g=Tc(e.state);e.emit({type:"onResolved",...g}),e.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),g.hrefChanged&&b8(e)}},[f,p,e]),null}function yj(e){const t=Kn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return k.jsx(qS,{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 vj(){return k.jsx("p",{children:"Not Found"})}function Yl(e){return k.jsx(k.Fragment,{children:e.children})}function jD(e,t,n){return t.options.notFoundComponent?k.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?k.jsx(e.options.defaultNotFoundComponent,{...n}):k.jsx(vj,{})}function bj(){return bs().isScrollRestoring,null}const VD=M.memo(function({matchId:t}){const n=bs(),r=Kn({select:x=>{const R=x.matches.findIndex(I=>I.id===t),C=x.matches[R];return Aa(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,p=i.options.onCatch??n.options.defaultOnCatch,d=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:Yl,b=f?qS:Yl,S=d?yj:Yl,E=i.isRoot?i.options.shellComponent??Yl:Yl;return k.jsxs(E,{children:[k.jsx(ig.Provider,{value:t,children:k.jsx(g,{fallback:l,children:k.jsx(b,{getResetKey:()=>r.resetKey,errorComponent:f||FS,onCatch:(x,R)=>{if(qs(x))throw x;p?.(x,R)},children:k.jsx(S,{fallback:x=>{if(!d||x.routeId&&x.routeId!==r.routeId||!x.routeId&&!i.isRoot)throw x;return M.createElement(d,x)},children:v||r._displayPending?k.jsx(K8,{fallback:l,children:k.jsx(mT,{matchId:t})}):k.jsx(mT,{matchId:t})})})})}),r.parentRouteId===Pr&&n.options.scrollRestoration?k.jsxs(k.Fragment,{children:[k.jsx(Sj,{}),k.jsx(bj,{})]}):null]})});function Sj(){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",...Tc(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const mT=M.memo(function({matchId:t}){const n=bs(),{match:r,key:i,routeId:c}=Kn({select:p=>{const d=p.matches.find(E=>E.id===t),v=d.routeId,b=(n.routesById[v].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:v,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:v,match:{id:d.id,status:d.status,error:d.error,invalid:d.invalid,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),l=n.routesById[c],f=M.useMemo(()=>{const p=l.options.component??n.options.defaultComponent;return p?k.jsx(p,{},i):k.jsx(HD,{})},[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 p=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(p){const d=n.getMatch(r.id);if(d&&!d._nonReactive.minPendingPromise){const v=au();d._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),d._nonReactive.minPendingPromise=void 0},p)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return Aa(qs(r.error)),jD(n,l,r.error);if(r.status==="redirected")throw Aa(cr(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return f}),HD=M.memo(function(){const t=bs(),n=M.useContext(ig),r=Kn({select:d=>d.matches.find(v=>v.id===n)?.routeId}),i=t.routesById[r],c=Kn({select:d=>{const g=d.matches.find(b=>b.id===n);return Aa(g),g.globalNotFound}}),l=Kn({select:d=>{const v=d.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 jD(t,i,void 0);if(!l)return null;const p=k.jsx(VD,{matchId:l});return r===Pr?k.jsx(M.Suspense,{fallback:f,children:p}):p});function _j(){const e=bs(),n=e.routesById[Pr].options.pendingComponent??e.options.defaultPendingComponent,r=n?k.jsx(n,{}):null,i=typeof document<"u"&&e.ssr?Yl:M.Suspense,c=k.jsxs(i,{fallback:r,children:[k.jsx(gj,{}),k.jsx(Ej,{})]});return e.options.InnerWrap?k.jsx(e.options.InnerWrap,{children:c}):c}function Ej(){const e=bs(),t=Kn({select:i=>i.matches[0]?.id}),n=Kn({select:i=>i.loadedAt}),r=t?k.jsx(VD,{matchId:t}):null;return k.jsx(ig.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:k.jsx(qS,{getResetKey:()=>n,errorComponent:FS,onCatch:void 0,children:r})})}const xj=e=>new wj(e);class wj extends k8{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=at,globalThis.createLazyFileRoute=hT):typeof window<"u"&&(window.createFileRoute=at,window.createLazyFileRoute=hT);function Rj({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(BD.Provider,{value:e,children:t});return e.options.Wrap?k.jsx(e.options.Wrap,{children:r}):r}function Cj({router:e,...t}){return k.jsx(Rj,{router:e,...t,children:k.jsx(_j,{})})}function Aj(e){return Kn({select:t=>e?.select?e.select(t.location):t.location})}function Ij({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(Tj,{attrs:t,children:n});default:return null}}function Tj({attrs:e,children:t}){bs();const n=GS(),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,p]of Object.entries(e))f!=="suppressHydrationWarning"&&p!==void 0&&p!==!1&&l.setAttribute(f,typeof p=="boolean"?"":String(p));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(p=>{if(!(p instanceof HTMLScriptElement))return!1;const d=p.getAttribute("type")??"text/javascript",v=p.getAttribute("nonce")??void 0;return p.textContent===t&&d===i&&v===c}))return;const f=document.createElement("script");if(f.textContent=t,e)for(const[p,d]of Object.entries(e))p!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&f.setAttribute(p,typeof d=="boolean"?"":String(d));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 Oj=()=>{const e=bs(),t=e.options.ssr?.nonce,n=Kn({select:p=>p.matches.map(d=>d.meta).filter(Boolean)}),r=M.useMemo(()=>{const p=[],d={};let v;for(let g=n.length-1;g>=0;g--){const b=n[g];for(let S=b.length-1;S>=0;S--){const E=b[S];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"]);p.push({tag:"script",attrs:{type:"application/ld+json"},children:Y5(x)})}catch{}else{const x=E.name??E.property;if(x){if(d[x])continue;d[x]=!0}p.push({tag:"meta",attrs:{...E,nonce:t}})}}}return v&&p.push(v),t&&p.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),p.reverse(),p},[n,t]),i=Kn({select:p=>{const d=p.matches.map(b=>b.links).filter(Boolean).flat(1).map(b=>({tag:"link",attrs:{...b,nonce:t}})),v=e.ssr?.manifest,g=p.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[...d,...g]},structuralSharing:!0}),c=Kn({select:p=>{const d=[];return p.matches.map(v=>e.looseRoutesById[v.routeId]).forEach(v=>e.ssr?.manifest?.routes[v.id]?.preloads?.filter(Boolean).forEach(g=>{d.push({tag:"link",attrs:{rel:"modulepreload",href:g,nonce:t}})})),d},structuralSharing:!0}),l=Kn({select:p=>p.matches.map(d=>d.styles).flat(1).filter(Boolean).map(({children:d,...v})=>({tag:"style",attrs:{...v,nonce:t},children:d})),structuralSharing:!0}),f=Kn({select:p=>p.matches.map(d=>d.headScripts).flat(1).filter(Boolean).map(({children:d,...v})=>({tag:"script",attrs:{...v,nonce:t},children:d})),structuralSharing:!0});return Mj([...r,...c,...i,...l,...f],p=>JSON.stringify(p))};function Mj(e,t){const n=new Set;return e.filter(r=>{const i=t(r);return n.has(i)?!1:(n.add(i),!0)})}function Dj(){const e=Oj(),n=bs().options.ssr?.nonce;return k.jsx(k.Fragment,{children:e.map(r=>M.createElement(Ij,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var jv={exports:{}},qf={},Vv={exports:{}},Hv={};var gT;function Pj(){return gT||(gT=1,(function(e){function t(H,re){var J=H.length;H.push(re);e:for(;0>>1,ue=H[ve];if(0>>1;vei(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 p=[],d=[],v=1,g=null,b=3,S=!1,E=!1,x=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function T(H){for(var re=n(d);re!==null;){if(re.callback===null)r(d);else if(re.startTime<=H)r(d),re.sortIndex=re.expirationTime,t(p,re);else break;re=n(d)}}function L(H){if(x=!1,T(H),!E)if(n(p)!==null)E=!0,j||(j=!0,F());else{var re=n(d);re!==null&&ge(L,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,T(H),re=!0;break t}g===n(p)&&r(p),T(H)}else r(p);g=n(p)}if(g!==null)re=!0;else{var z=n(d);z!==null&&ge(L,z.startTime-H),re=!1}}break e}finally{g=null,b=J,S=!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(d,H),n(p)===null&&H===n(d)&&(x?(I(V),V=-1):x=!0,ge(L,J-ve))):(H.sortIndex=ue,t(p,H),E||S||(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}}}})(Hv)),Hv}var yT;function kj(){return yT||(yT=1,Vv.exports=Pj()),Vv.exports}var vT;function Nj(){if(vT)return qf;vT=1;var e=kj(),t=bu(),n=UD();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=z(null),xe=z(null),Se=z(null),Oe=z(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)?eI(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=eI(o),s=tI(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=tI(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)":-1h||B[u]!==Z[h]){var ie=` -`+B[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 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,hr=e.unstable_IdlePriority,Po=e.log,pp=e.unstable_setDisableYieldValue,Pi=null,us=null;function Gr(s){if(typeof Po=="function"&&pp(s),us&&typeof us.setStrictMode=="function")try{us.setStrictMode(Pi,s)}catch{}}var fs=Math.clz32?Math.clz32:mr,Jt=Math.log,ds=Math.LN2;function mr(s){return s>>>=0,s===0?32:31-(Jt(s)/ds|0)|0}var Wn=256,Ps=262144,ko=4194304;function gr(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 ki(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=gr(u):(w&=A,w!==0?h=gr(w):a||(a=A&~s,a!==0&&(h=gr(a))))):(A=u&~m,A!==0?h=gr(A):w!==0?h=gr(w):a||(a=u&~s,a!==0&&(h=gr(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 Ni(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function yy(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 hp(){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 nc(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,B=s.expirationTimes,Z=s.hiddenUpdates;for(a=w&~a;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var BB=/[\n"\\]/g;function vr(s){return s.replace(BB,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function _y(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=""+yr(o)):s.value!==""+yr(o)&&(s.value=""+yr(o)):w!=="submit"&&w!=="reset"||s.removeAttribute("value"),o!=null?Ey(s,w,yr(o)):a!=null?Ey(s,w,yr(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=""+yr(A):s.removeAttribute("name")}function Z1(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)){Sy(s);return}a=a!=null?""+yr(a):"",o=o!=null?""+yr(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),Sy(s)}function Ey(s,o,a){o==="number"&&_p(s.ownerDocument)===s||s.defaultValue===""+a||(s.defaultValue=""+a)}function ll(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"),Ay=!1;if(zo)try{var Wu={};Object.defineProperty(Wu,"passive",{get:function(){Ay=!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{Ay=!1}var $i=null,Iy=null,xp=null;function tR(){if(xp)return xp;var s,o=Iy,a=o.length,u,h="value"in $i?$i.value:$i.textContent,m=h.length;for(s=0;s=tf),aR=" ",cR=!1;function lR(s,o){switch(s){case"keyup":return p6.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uR(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var pl=!1;function m6(s,o){switch(s){case"compositionend":return uR(o);case"keypress":return o.which!==32?null:(cR=!0,aR);case"textInput":return s=o.data,s===aR&&cR?null:s;default:return null}}function g6(s,o){if(pl)return s==="compositionend"||!Py&&lR(s,o)?(s=tR(),xp=Iy=$i=null,pl=!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=vR(a)}}function SR(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?SR(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function _R(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=_p(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=_p(s.document)}return o}function Ly(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 w6=zo&&"documentMode"in document&&11>=document.documentMode,hl=null,$y=null,of=null,zy=!1;function ER(s,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zy||hl==null||hl!==_p(u)||(u=hl,"selectionStart"in u&&Ly(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=gh($y,"onSelect"),0>=w,h-=w,so=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 oa=Y(G,Be,Pt.value,le);if(oa===null){Be===null&&(Be=mt);break}s&&Be&&oa.alternate===null&&o(G,Be),q=m(oa,q,et),Dt===null?Ue=oa:Dt.sibling=oa,Dt=oa,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(qU){return o(G,qU)}),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 S: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&&pc(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=cc(K.props.children,G.mode,le,K.key),le.return=G,G=le):(le=Pp(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=Fy(K,G.mode,le),le.return=G,G=le}return w(G);case N:return K=pc(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,Up(K),le);if(K.$$typeof===P)return Kt(G,q,Lp(G,K),le);jp(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=qy(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 Rl=null,Ue}catch(Be){if(Be===wl||Be===zp)throw Be;var Dt=Xs(29,Be,null,G.mode);return Dt.lanes=le,Dt.return=G,Dt}}}var mc=FR(!0),GR=FR(!1),Vi=!1;function s0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function r0(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 Hi(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function qi(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=Dp(s),TR(s,null,a),o}return Mp(s,u,o,a),Dp(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,mp(s,a)}}function o0(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 i0=!1;function hf(){if(i0){var s=xl;if(s!==null)throw s}}function mf(s,o,a,u){i0=!1;var h=s.updateQueue;Vi=!1;var m=h.firstBaseUpdate,w=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var B=A,Z=B.next;B.next=null,w===null?m=Z:w.next=Z,w=B;var ie=s.alternate;ie!==null&&(ie=ie.updateQueue,A=ie.lastBaseUpdate,A!==w&&(A===null?ie.firstBaseUpdate=Z:A.next=Z,ie.lastBaseUpdate=B))}if(m!==null){var fe=h.baseState;w=0,ie=Z=B=null,A=m;do{var Y=A.lane&-536870913,se=Y!==A.lane;if(se?(ht&Y)===Y:(u&Y)===Y){Y!==0&&Y===El&&(i0=!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:Vi=!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,B=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&&(B=fe),h.baseState=B,h.firstBaseUpdate=Z,h.lastBaseUpdate=ie,m===null&&(h.shared.lanes=0),Qi|=w,s.lanes=w,s.memoizedState=fe}}function KR(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function ZR(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,R0(s,!1,o,a);try{var B=h(),Z=H.S;if(Z!==null&&Z(A,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var ie=P6(B,u);vf(s,o,ie,nr(s))}else vf(s,o,u,nr(s))}catch(fe){vf(s,o,{then:function(){},status:"rejected",reason:fe},nr())}finally{re.p=m,w!==null&&A.types!==null&&(w.types=A.types),H.T=w}}function B6(){}function x0(s,o,a,u){if(s.tag!==5)throw Error(r(476));var h=CC(s).queue;RC(s,h,o,J,a===null?B6:function(){return AC(s),a(u)})}function CC(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 AC(s){var o=CC(s);o.next===null&&(o=s.alternate.memoizedState),vf(s,o.next.queue,{},nr())}function w0(){return ts(Nf)}function IC(){return yn().memoizedState}function TC(){return yn().memoizedState}function U6(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var a=nr();s=Hi(a);var u=qi(o,s,a);u!==null&&(Us(u,o,a),pf(u,o,a)),o={cache:Jy()},s.payload=o;return}o=o.return}}function j6(s,o,a){var u=nr();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xp(s)?MC(o,a):(a=Vy(s,o,a,u),a!==null&&(Us(a,s,u),DC(a,o,u)))}function OC(s,o,a){var u=nr();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(Xp(s))MC(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,Ys(A,w))return Mp(s,o,h,0),Qt===null&&Op(),!1}catch{}if(a=Vy(s,o,h,u),a!==null)return Us(a,s,u),DC(a,o,u),!0}return!1}function R0(s,o,a,u){if(u={lane:2,revertLane:sv(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Xp(s)){if(o)throw Error(r(479))}else o=Vy(s,a,u,2),o!==null&&Us(o,s,2)}function Xp(s){var o=s.alternate;return s===Xe||o!==null&&o===Xe}function MC(s,o){Al=qp=!0;var a=s.pending;a===null?o.next=o:(o.next=a.next,a.next=o),s.pending=o}function DC(s,o,a){if((a&4194048)!==0){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,mp(s,a)}}var bf={readContext:ts,use:Kp,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 PC={readContext:ts,use:Kp,useCallback:function(s,o){return Es().memoizedState=[s,o===void 0?null:o],s},useContext:ts,useEffect:gC,useImperativeHandle:function(s,o,a){a=a!=null?a.concat([s]):null,Qp(4194308,4,SC.bind(null,o,s),a)},useLayoutEffect:function(s,o){return Qp(4194308,4,s,o)},useInsertionEffect:function(s,o){Qp(4,2,s,o)},useMemo:function(s,o){var a=Es();o=o===void 0?null:o;var u=s();if(gc){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(gc){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=j6.bind(null,Xe,s),[u.memoizedState,s]},useRef:function(s){var o=Es();return s={current:s},o.memoizedState=s},useState:function(s){s=v0(s);var o=s.queue,a=OC.bind(null,Xe,o);return o.dispatch=a,[s.memoizedState,a]},useDebugValue:_0,useDeferredValue:function(s,o){var a=Es();return E0(a,s,o)},useTransition:function(){var s=v0(!1);return s=RC.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||eC(u,o,a)}h.memoizedState=a;var m={value:a,getSnapshot:o};return h.queue=m,gC(nC.bind(null,u,m,s),[s]),u.flags|=2048,Tl(9,{destroy:void 0},tC.bind(null,u,m,a,o),null),a},useId:function(){var s=Es(),o=Qt.identifierPrefix;if(St){var a=ro,u=so;a=(u&~(1<<32-fs(u)-1)).toString(32)+a,o="_"+o+"R_"+a,a=Fp++,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),B0(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,Sl(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||WA(s.nodeValue,a)),s||Ui(o,!0)}else s=yh(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=Sl(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 lc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;tn(o),s=!1}else a=Qy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=a),s=!0;if(!s)return o.flags&256?(Js(o),o):(Js(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=Sl(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 lc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;tn(o),h=!1}else h=Qy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=h),h=!0;if(!h)return o.flags&256?(Js(o),o):(Js(o),null)}return Js(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),nh(o,o.updateQueue),tn(o),null);case 4:return be(),s===null&&av(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=Hp(s),m!==null){for(o.flags|=128,_f(u,!1),s=m.updateQueue,o.updateQueue=s,nh(o,s),o.subtreeFlags=0,s=a,a=o.child;a!==null;)OR(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()>ah&&(o.flags|=128,h=!0,_f(u,!1),o.lanes=4194304)}else{if(!h)if(s=Hp(m),s!==null){if(o.flags|=128,h=!0,s=s.updateQueue,o.updateQueue=s,nh(o,s),_f(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!St)return tn(o),null}else 2*wt()-u.renderingStartTime>ah&&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 Js(o),c0(),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&&nh(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(dc),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 G6(s,o){switch(Ky(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(Js(o),o.alternate===null)throw Error(r(340));lc()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(Js(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));lc()}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 Js(o),c0(),s!==null&&ee(dc),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 sA(s,o){switch(Ky(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&&Js(o);break;case 13:Js(o);break;case 19:ee(gn);break;case 10:Vo(o.type);break;case 22:case 23:Js(o),c0(),s!==null&&ee(dc);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 Ki(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 B=a,Z=A;try{Z()}catch(ie){Vt(h,B,ie)}}}u=u.next}while(u!==m)}}catch(ie){Vt(o,o.return,ie)}}function rA(s){var o=s.updateQueue;if(o!==null){var a=s.stateNode;try{ZR(o,a)}catch(u){Vt(s,s.return,u)}}}function oA(s,o,a){a.props=yc(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 oo(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 iA(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 U0(s,o,a){try{var u=s.stateNode;hU(u,s.type,a,o),u[ks]=o}catch(h){Vt(s,s.return,h)}}function aA(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&ea(s.type)||s.tag===4}function j0(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||aA(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&&ea(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 V0(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&&ea(s.type)&&(a=s.stateNode,o=null),s=s.child,s!==null))for(V0(s,o,a),s=s.sibling;s!==null;)V0(s,o,a),s=s.sibling}function sh(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&&ea(s.type)&&(a=s.stateNode),s=s.child,s!==null))for(sh(s,o,a),s=s.sibling;s!==null;)sh(s,o,a),s=s.sibling}function cA(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,H0=!1,lA=typeof WeakSet=="function"?WeakSet:Set,Un=null;function K6(s,o){if(s=s.containerInfo,uv=wh,s=_R(s),Ly(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,B=-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||(B=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&&(B=w),(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(fv={focusedElem:s,selectionRange:a},wh=!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=mI("link","href",h).get(u+(a.href||""));if(w){for(var A=0;AKt&&(w=Kt,Kt=He,He=w);var G=bR(A,He),q=bR(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=Y0,Y0=null;var m=Xi,w=Wo;if(Nn=0,kl=Xi=null,Wo=0,(Nt&6)!==0)throw Error(r(331));var A=Nt;if(Nt|=4,SA(m.current),yA(m,m.current,w,a),Nt=A,Tf(0,!1),us&&typeof us.onPostCommitFiberRoot=="function")try{us.onPostCommitFiberRoot(Pi,m)}catch{}return!0}finally{re.p=h,H.T=u,zA(s,o)}}function UA(s,o,a){o=Sr(a,o),o=T0(s.stateNode,o,2),s=qi(s,o,2),s!==null&&(nc(s,2),io(s))}function Vt(s,o,a){if(s.tag===3)UA(s,s,a);else for(;o!==null;){if(o.tag===3){UA(o,s,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Yi===null||!Yi.has(u))){s=Sr(a,s),a=jC(2),u=qi(o,a,2),u!==null&&(VC(a,u,o,s),nc(u,2),io(u));break}}o=o.return}}function ev(s,o,a){var u=s.pingCache;if(u===null){u=s.pingCache=new Y6;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)||(G0=!0,h.add(a),s=tU.bind(null,s,o,a),o.then(s,s))}function tU(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()-ih?(Nt&2)===0&&Nl(s,0):K0|=a,Pl===ht&&(Pl=0)),io(s)}function jA(s,o){o===0&&(o=hp()),s=ac(s,o),s!==null&&(nc(s,o),io(s))}function nU(s){var o=s.memoizedState,a=0;o!==null&&(a=o.retryLane),jA(s,a)}function sU(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),jA(s,a)}function rU(s,o){return ot(s,o)}var ph=null,$l=null,tv=!1,hh=!1,nv=!1,Ji=0;function io(s){s!==$l&&s.next===null&&($l===null?ph=$l=s:$l=$l.next=s),hh=!0,tv||(tv=!0,iU())}function Tf(s,o){if(!nv&&hh){nv=!0;do for(var a=!1,u=ph;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,FA(u,m))}else m=ht,m=ki(u,u===Qt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Ni(u,m)||(a=!0,FA(u,m));u=u.next}while(a);nv=!1}}function oU(){VA()}function VA(){hh=tv=!1;var s=0;Ji!==0&&gU()&&(s=Ji);for(var o=wt(),a=null,u=ph;u!==null;){var h=u.next,m=HA(u,o);m===0?(u.next=null,a===null?ph=h:a.next=h,h===null&&($l=a)):(a=u,(s!==0||(m&3)!==0)&&(hh=!0)),u=h}Nn!==0&&Nn!==5||Tf(s),Ji!==0&&(Ji=0)}function HA(s,o){for(var a=s.suspendedLanes,u=s.pingedLanes,h=s.expirationTimes,m=s.pendingLanes&-62914561;0A)break;var ie=B.transferSize,fe=B.initiatorType;ie&&JA(fe)&&(B=B.responseEnd,w+=ie*(B"u"?null:document;function fI(s,o,a){var u=zl;if(u&&typeof o=="string"&&o){var h=vr(o);h='link[rel="'+s+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),uI.has(h)||(uI.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 RU(s){Jo.D(s),fI("dns-prefetch",s,null)}function CU(s,o){Jo.C(s,o),fI("preconnect",s,o)}function AU(s,o,a){Jo.L(s,o,a);var u=zl;if(u&&s&&o){var h='link[rel="preload"][as="'+vr(o)+'"]';o==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+vr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+vr(a.imageSizes)+'"]')):h+='[href="'+vr(s)+'"]';var m=h;switch(o){case"style":m=Bl(s);break;case"script":m=Ul(s)}Cr.has(m)||(s=g({rel:"preload",href:o==="image"&&a&&a.imageSrcSet?void 0:s,as:o},a),Cr.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 IU(s,o){Jo.m(s,o);var a=zl;if(a&&s){var u=o&&typeof o.as=="string"?o.as:"script",h='link[rel="modulepreload"][as="'+vr(u)+'"][href="'+vr(s)+'"]',m=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ul(s)}if(!Cr.has(m)&&(s=g({rel:"modulepreload",href:s},o),Cr.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 TU(s,o,a){Jo.S(s,o,a);var u=zl;if(u&&s){var h=al(u).hoistableStyles,m=Bl(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=Cr.get(m))&&vv(s,a);var B=w=u.createElement("link");Bn(B),ss(B,"link",s),B._p=new Promise(function(Z,ie){B.onload=Z,B.onerror=ie}),B.addEventListener("load",function(){A.loading|=1}),B.addEventListener("error",function(){A.loading|=2}),A.loading|=4,bh(w,o,u)}w={type:"stylesheet",instance:w,count:1,state:A},h.set(m,w)}}}function OU(s,o){Jo.X(s,o);var a=zl;if(a&&s){var u=al(a).hoistableScripts,h=Ul(s),m=u.get(h);m||(m=a.querySelector(kf(h)),m||(s=g({src:s,async:!0},o),(o=Cr.get(h))&&bv(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 MU(s,o){Jo.M(s,o);var a=zl;if(a&&s){var u=al(a).hoistableScripts,h=Ul(s),m=u.get(h);m||(m=a.querySelector(kf(h)),m||(s=g({src:s,async:!0,type:"module"},o),(o=Cr.get(h))&&bv(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 dI(s,o,a,u){var h=(h=Se.current)?vh(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=Bl(a.href),a=al(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=Bl(a.href);var m=al(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),Cr.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},Cr.set(s,a),m||DU(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=Ul(a),a=al(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 Bl(s){return'href="'+vr(s)+'"'}function Pf(s){return'link[rel="stylesheet"]['+s+"]"}function pI(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function DU(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 Ul(s){return'[src="'+vr(s)+'"]'}function kf(s){return"script[async]"+s}function hI(s,o,a){if(o.count++,o.instance===null)switch(o.type){case"style":var u=s.querySelector('style[data-href~="'+vr(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),bh(u,a.precedence,s),o.instance=u;case"stylesheet":h=Bl(a.href);var m=s.querySelector(Pf(h));if(m)return o.state.loading|=4,o.instance=m,Bn(m),m;u=pI(a),(h=Cr.get(h))&&vv(u,h),m=(s.ownerDocument||s).createElement("link"),Bn(m);var w=m;return w._p=new Promise(function(A,B){w.onload=A,w.onerror=B}),ss(m,"link",u),o.state.loading|=4,bh(m,a.precedence,s),o.instance=m;case"script":return m=Ul(a.src),(h=s.querySelector(kf(m)))?(o.instance=h,Bn(h),h):(u=a,(h=Cr.get(m))&&(u=g({},a),bv(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,bh(u,a.precedence,s));return o.instance}function bh(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 PU(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 yI(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function kU(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=Bl(u.href),m=o.querySelector(Pf(h));if(m){o=m._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=_h.bind(s),o.then(s,s)),a.state.loading|=4,a.instance=m,Bn(m);return}m=o.ownerDocument||o,u=pI(u),(h=Cr.get(h))&&vv(u,h),m=m.createElement("link"),Bn(m);var w=m;w._p=new Promise(function(A,B){w.onload=A,w.onerror=B}),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=_h.bind(s),o.addEventListener("load",a),o.addEventListener("error",a))}}var Sv=0;function NU(s,o){return s.stylesheets&&s.count===0&&xh(s,s.stylesheets),0Sv?50:800)+o);return s.unsuspend=a,function(){s.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function _h(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xh(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Eh=null;function xh(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Eh=new Map,o.forEach(LU,s),Eh=null,_h.call(s))}function LU(s,o){if(!(o.state.loading&4)){var a=Eh.get(s);if(a)var u=a.get(null);else{a=new Map,Eh.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(),jv.exports=Nj(),jv.exports}var $j=Lj();const zj=dD($j);var qv={exports:{}},Fv={};var ST;function Bj(){if(ST)return Fv;ST=1;var e=bu().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Fv.c=function(t){return e.H.useMemoCache(t)},Fv}var _T;function Uj(){return _T||(_T=1,qv.exports=Bj()),qv.exports}var qt=Uj();const qD=M.createContext(void 0);function jj(e,t){try{const n=localStorage.getItem(e);if(n==="light"||n==="dark"||n==="system")return n}catch{}return t}function Vj(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=()=>jj(l,c),t[0]=c,t[1]=l,t[2]=f):f=t[2];const[p,d]=M.useState(f);let v,g;t[3]!==p?(v=()=>{const R=window.document.documentElement;if(R.classList.remove("light","dark"),p==="system"){const C=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";R.classList.add(C);return}R.classList.add(p)},g=[p],t[3]=p,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{}d(R)},t[6]=l,t[7]=b):b=t[7];let S;t[8]!==b||t[9]!==p?(S={theme:p,setTheme:b},t[8]=b,t[9]=p,t[10]=S):S=t[10];const E=S;let x;return t[11]!==n||t[12]!==E?(x=k.jsx(qD.Provider,{value:E,children:n}),t[11]=n,t[12]=E,t[13]=x):x=t[13],x}function Hj(){const e=M.useContext(qD);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function Jb(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const od={};function cg(e,t,n,r,i){let c={...eS(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 qj(e){if(e.length===0)return od;if(e.length===1)return eS(e[0],od);let t={...eS(e[0],od)};for(let n=1;n=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function FD(e){return typeof e=="function"}function eS(e,t){return FD(e)?e(t):e??od}function Kj(e,t){return t?e?n=>{if(Zj(n)){const i=n;tS(i);const c=t(i);return i.baseUIHandlerPrevented||e?.(i),c}const r=t(n);return e?.(n),r}:t:e}function tS(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function GD(e,t){return t?e?t+" "+e:t:e}function Zj(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function pi(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 ET={};function $r(e,t){const n=M.useRef(ET);return n.current===ET&&(n.current=e(t)),n}function wm(e,t,n,r){const i=$r(KD).current;return Yj(i,e,t,n,r)&&ZD(i,[e,t,n,r]),i.callback}function Qj(e){const t=$r(KD).current;return Xj(t,e)&&ZD(t,e),t.callback}function KD(){return{callback:null,cleanup:null,refs:[]}}function Yj(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Xj(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function ZD(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 xT(e){if(!M.isValidElement(e))return null;const t=e,n=t.props;return(XS(19)?n?.ref:t.ref)??null}function Jj(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 e9(e,t){return typeof e=="function"?e(t):e}function t9(e,t){return typeof e=="function"?e(t):e}function QD(){}const iMe=Object.freeze([]),ir=Object.freeze({}),n9={style:{transition:"none"}},s9="data-base-ui-click-trigger",aMe={fallbackAxisSide:"none"},r9={fallbackAxisSide:"end"},o9={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function zr(e,t,n={}){const r=t.render,i=i9(t,n);if(n.enabled===!1)return null;const c=n.state??ir;return c9(e,r,i,c)}function i9(e,t={}){const{className:n,style:r,render:i}=e,{state:c=ir,ref:l,props:f,stateAttributesMapping:p,enabled:d=!0}=t,v=d?e9(n,c):void 0,g=d?t9(r,c):void 0,b=d?Jj(c,p):ir,S=d?Jb(b,Array.isArray(f)?qj(f):f)??ir:ir;return typeof document<"u"&&(d?Array.isArray(l)?S.ref=Qj([S.ref,xT(i),...l]):S.ref=wm(S.ref,xT(i),l):wm(null,null)),d?(v!==void 0&&(S.className=GD(S.className,v)),g!==void 0&&(S.style=Jb(S.style,g)),S):ir}const a9=Symbol.for("react.lazy");function c9(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=cg(n,t.props);i.ref=n.ref;let c=t;return c?.$$typeof===a9&&(c=M.Children.toArray(t)[0]),M.cloneElement(c,i)}if(e&&typeof e=="string")return l9(e,n);throw new Error(pi(8))}function l9(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 YD(e){return zr(e.defaultTagName??"div",e,e)}function XD(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,RT=WD,JD=(e,t)=>n=>{var r;if(t?.variants==null)return RT(e,n?.class,n?.className);const{variants:i,defaultVariants:c}=t,l=Object.keys(i).map(d=>{const v=n?.[d],g=c?.[d];if(v===null)return null;const b=wT(v)||wT(g);return i[d][b]}),f=n&&Object.entries(n).reduce((d,v)=>{let[g,b]=v;return b===void 0||(d[g]=b),d},{}),p=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,v)=>{let{class:g,className:b,...S}=v;return Object.entries(S).every(E=>{let[x,R]=E;return Array.isArray(R)?R.includes({...c,...f}[x]):{...c,...f}[x]===R})?[...d,g,b]:d},[]);return RT(e,l,p,n?.class,n?.className)};const eP=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const u9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const f9=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const CT=e=>{const t=f9(e);return t.charAt(0).toUpperCase()+t.slice(1)};var d9={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 p9=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const h9=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:l,...f},p)=>M.createElement("svg",{ref:p,...d9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:eP("lucide",i),...!c&&!p9(f)&&{"aria-hidden":"true"},...f},[...l.map(([d,v])=>M.createElement(d,v)),...Array.isArray(c)?c:[c]]));const Ss=(e,t)=>{const n=M.forwardRef(({className:r,...i},c)=>M.createElement(h9,{ref:c,iconNode:t,className:eP(`lucide-${u9(CT(e))}`,`lucide-${e}`,r),...i}));return n.displayName=CT(e),n};const m9=[["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"}]],g9=Ss("camera",m9);const y9=[["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"}]],v9=Ss("circle-alert",y9);const b9=[["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"}]],S9=Ss("hard-drive",b9);const _9=[["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"}]],E9=Ss("house",_9);const x9=[["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"}]],w9=Ss("image",x9);const R9=[["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"}]],C9=Ss("key",R9);const A9=[["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"}]],I9=Ss("layout-grid",A9);const T9=[["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"}]],O9=Ss("log-out",T9);const M9=[["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"}]],D9=Ss("moon",M9);const P9=[["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"}]],k9=Ss("network",P9);const N9=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],L9=Ss("panel-left",N9);const $9=[["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"}]],AT=Ss("server",$9);const z9=[["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"}]],B9=Ss("shield",z9);const U9=[["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"}]],j9=Ss("sun",U9);const V9=[["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"}]],H9=Ss("users",V9);const q9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],F9=Ss("x",q9);function lg(){return typeof window<"u"}function Da(e){return WS(e)?(e.nodeName||"").toLowerCase():"#document"}function Dn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wo(e){var t;return(t=(WS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function WS(e){return lg()?e instanceof Node||e instanceof Dn(e).Node:!1}function Lt(e){return lg()?e instanceof Element||e instanceof Dn(e).Element:!1}function zn(e){return lg()?e instanceof HTMLElement||e instanceof Dn(e).HTMLElement:!1}function nS(e){return!lg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dn(e).ShadowRoot}function Pa(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function G9(e){return/^(table|td|th)$/.test(Da(e))}function ug(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const K9=/transform|translate|scale|rotate|perspective|filter/,Z9=/paint|layout|strict|content/,_c=e=>!!e&&e!=="none";let Gv;function JS(e){const t=Lt(e)?lr(e):e;return _c(t.transform)||_c(t.translate)||_c(t.scale)||_c(t.rotate)||_c(t.perspective)||!fg()&&(_c(t.backdropFilter)||_c(t.filter))||K9.test(t.willChange||"")||Z9.test(t.contain||"")}function Q9(e){let t=li(e);for(;zn(t)&&!ci(t);){if(JS(t))return t;if(ug(t))return null;t=li(t)}return null}function fg(){return Gv==null&&(Gv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gv}function ci(e){return/^(html|body|#document)$/.test(Da(e))}function lr(e){return Dn(e).getComputedStyle(e)}function dg(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function li(e){if(Da(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nS(e)&&e.host||wo(e);return nS(t)?t.host:t}function tP(e){const t=li(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:zn(t)&&Pa(t)?t:tP(t)}function wa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=tP(e),c=i===((r=e.ownerDocument)==null?void 0:r.body),l=Dn(i);if(c){const f=sS(l);return t.concat(l,l.visualViewport||[],Pa(i)?i:[],f&&n?wa(f):[])}else return t.concat(i,wa(i,[],n))}function sS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Kv=LS[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Y9=Kv&&Kv!==M.useLayoutEffect?Kv:e=>e();function Ke(e){const t=$r(X9).current;return t.next=e,Y9(t.effect),t.trampoline}function X9(){const e={next:void 0,callback:W9,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function W9(){}const J9={...LS},eV=()=>{},Ct=typeof document<"u"?M.useLayoutEffect:eV,tV=M.createContext(void 0);function nV(e=!1){const t=M.useContext(tV);if(t===void 0&&!e)throw new Error(pi(16));return t}function sV(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 d={onKeyDown(v){n&&t&&v.key!=="Tab"&&v.preventDefault()}};return r||(d.tabIndex=i,!c&&n&&(d.tabIndex=t?i:-1)),(c&&(t||l)||!c&&n)&&(d["aria-disabled"]=n),c&&(!t||f)&&(d.disabled=n),d},[r,n,t,l,f,c,i])}}function nP(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,c=M.useRef(null),l=nV(!0)!==void 0,f=Ke(()=>{const b=c.current;return!!(b?.tagName==="A"&&b?.href)}),{props:p}=sV({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=M.useCallback(()=>{const b=c.current;rV(b)&&l&&t&&p.disabled===void 0&&b.disabled&&(b.disabled=!1)},[t,p.disabled,l]);Ct(d,[d]);const v=M.useCallback((b={})=>{const{onClick:S,onMouseDown:E,onKeyUp:x,onKeyDown:R,onPointerDown:C,...I}=b;return cg({type:i?"button":void 0,onClick(T){if(t){T.preventDefault();return}S?.(T)},onMouseDown(T){t||E?.(T)},onKeyDown(T){if(t||(tS(T),R?.(T)),T.baseUIHandlerPrevented)return;const L=T.target===T.currentTarget&&!i&&!f()&&!t,j=T.key==="Enter",V=T.key===" ";L&&((V||j)&&T.preventDefault(),j&&S?.(T))},onKeyUp(T){t||(tS(T),x?.(T)),!T.baseUIHandlerPrevented&&T.target===T.currentTarget&&!i&&!t&&T.key===" "&&S?.(T)},onPointerDown(T){if(t){T.preventDefault();return}C?.(T)}},i?void 0:{role:"button"},p,I)},[t,p,i,f]),g=Ke(b=>{c.current=b,d()});return{getButtonProps:v,buttonRef:g}}function rV(e){return zn(e)&&e.tagName==="BUTTON"}const oV=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,...p}=t,{getButtonProps:d,buttonRef:v}=nP({disabled:c,focusableWhenDisabled:l,native:f});return zr("button",t,{state:{disabled:c},ref:[n,v],props:[p,d]})}),iV=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),sP=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Rm="-",IT=[],cV="arbitrary..",lV=e=>{const t=fV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return uV(l);const f=l.split(Rm),p=f[0]===""&&f.length>1?1:0;return rP(f,p,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const p=r[l],d=n[l];return p?d?iV(d,p):p:d||IT}return n[l]||IT}}},rP=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],c=n.nextPart.get(i);if(c){const d=rP(e,t+1,c);if(d)return d}const l=n.validators;if(l===null)return;const f=t===0?e.join(Rm):e.slice(t).join(Rm),p=l.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?cV+r:void 0})(),fV=e=>{const{theme:t,classGroups:n}=e;return dV(n,t)},dV=(e,t)=>{const n=sP();for(const r in e){const i=e[r];e_(i,n,r,t)}return n},e_=(e,t,n,r)=>{const i=e.length;for(let c=0;c{if(typeof e=="string"){hV(e,t,n);return}if(typeof e=="function"){mV(e,t,n,r);return}gV(e,t,n,r)},hV=(e,t,n)=>{const r=e===""?t:oP(t,e);r.classGroupId=n},mV=(e,t,n,r)=>{if(yV(e)){e_(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(aV(n,e))},gV=(e,t,n,r)=>{const i=Object.entries(e),c=i.length;for(let l=0;l{let n=e;const r=t.split(Rm),i=r.length;for(let c=0;c"isThemeGetter"in e&&e.isThemeGetter===!0,vV=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)}}},rS="!",TT=":",bV=[],OT=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),SV=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const c=[];let l=0,f=0,p=0,d;const v=i.length;for(let x=0;xp?d-p:void 0;return OT(c,S,b,E)};if(t){const i=t+TT,c=r;r=l=>l.startsWith(i)?c(l.slice(i.length)):OT(bV,!1,l,void 0,!0)}if(n){const i=r;r=c=>n({className:c,parseClassName:i})}return r},_V=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}},EV=e=>({cache:vV(e.cacheSize),parseClassName:SV(e),sortModifiers:_V(e),...lV(e)}),xV=/\s+/,wV=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:c}=t,l=[],f=e.trim().split(xV);let p="";for(let d=f.length-1;d>=0;d-=1){const v=f[d],{isExternal:g,modifiers:b,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:x}=n(v);if(g){p=v+(p.length>0?" "+p:p);continue}let R=!!x,C=r(R?E.substring(0,x):E);if(!C){if(!R){p=v+(p.length>0?" "+p:p);continue}if(C=r(E),!C){p=v+(p.length>0?" "+p:p);continue}R=!1}const I=b.length===0?"":b.length===1?b[0]:c(b).join(":"),P=S?I+rS:I,T=P+C;if(l.indexOf(T)>-1)continue;l.push(T);const L=i(C,R);for(let j=0;j0?" "+p:p)}return p},RV=(...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=p=>{const d=t.reduce((v,g)=>g(v),e());return n=EV(d),r=n.cache.get,i=n.cache.set,c=f,f(p)},f=p=>{const d=r(p);if(d)return d;const v=wV(p,n);return i(p,v),v};return c=l,(...p)=>c(RV(...p))},AV=[],Ln=e=>{const t=n=>n[e]||AV;return t.isThemeGetter=!0,t},aP=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,IV=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,TV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OV=/\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$/,MV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DV=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,PV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ia=e=>IV.test(e),rt=e=>!!e&&!Number.isNaN(Number(e)),aa=e=>!!e&&Number.isInteger(Number(e)),Zv=e=>e.endsWith("%")&&rt(e.slice(0,-1)),ei=e=>TV.test(e),lP=()=>!0,kV=e=>OV.test(e)&&!MV.test(e),t_=()=>!1,NV=e=>DV.test(e),LV=e=>PV.test(e),$V=e=>!Le(e)&&!$e(e),zV=e=>ka(e,dP,t_),Le=e=>aP.test(e),Ec=e=>ka(e,pP,kV),MT=e=>ka(e,GV,rt),BV=e=>ka(e,mP,lP),UV=e=>ka(e,hP,t_),DT=e=>ka(e,uP,t_),jV=e=>ka(e,fP,LV),Nh=e=>ka(e,gP,NV),$e=e=>cP.test(e),Ff=e=>Vc(e,pP),VV=e=>Vc(e,hP),PT=e=>Vc(e,uP),HV=e=>Vc(e,dP),qV=e=>Vc(e,fP),Lh=e=>Vc(e,gP,!0),FV=e=>Vc(e,mP,!0),ka=(e,t,n)=>{const r=aP.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vc=(e,t,n=!1)=>{const r=cP.exec(e);return r?r[1]?t(r[1]):n:!1},uP=e=>e==="position"||e==="percentage",fP=e=>e==="image"||e==="url",dP=e=>e==="length"||e==="size"||e==="bg-size",pP=e=>e==="length",GV=e=>e==="number",hP=e=>e==="family-name",mP=e=>e==="number"||e==="weight",gP=e=>e==="shadow",KV=()=>{const e=Ln("color"),t=Ln("font"),n=Ln("text"),r=Ln("font-weight"),i=Ln("tracking"),c=Ln("leading"),l=Ln("breakpoint"),f=Ln("container"),p=Ln("spacing"),d=Ln("radius"),v=Ln("shadow"),g=Ln("inset-shadow"),b=Ln("text-shadow"),S=Ln("drop-shadow"),E=Ln("blur"),x=Ln("perspective"),R=Ln("aspect"),C=Ln("ease"),I=Ln("animate"),P=()=>["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"],L=()=>[...T(),$e,Le],j=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],N=()=>[$e,Le,p],Q=()=>[ia,"full","auto",...N()],ne=()=>[aa,"none","subgrid",$e,Le],te=()=>["auto",{span:["full",aa,$e,Le]},aa,$e,Le],F=()=>[aa,"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=()=>[ia,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],J=()=>[ia,"screen","full","dvw","lvw","svw","min","max","fit",...N()],ve=()=>[ia,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],ue=()=>[e,$e,Le],z=()=>[...T(),PT,DT,{position:[$e,Le]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",HV,zV,{size:[$e,Le]}],Ee=()=>[Zv,Ff,Ec],xe=()=>["","none","full",d,$e,Le],Se=()=>["",rt,Ff,Ec],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,Zv,PT,DT],tt=()=>["","none",E,$e,Le],kt=()=>["none",rt,$e,Le],he=()=>["none",rt,$e,Le],Re=()=>[rt,$e,Le],_e=()=>[ia,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ei],breakpoint:[ei],color:[lP],container:[ei],"drop-shadow":[ei],ease:["in","out","in-out"],font:[$V],"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",ia,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:L()}],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:[aa,"auto",$e,Le]}],basis:[{basis:[ia,"full","auto",f,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,ia,"auto","initial","none",Le]}],grow:[{grow:["",rt,$e,Le]}],shrink:[{shrink:["",rt,$e,Le]}],order:[{order:[aa,"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,Ec]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,FV,BV]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zv,Le]}],"font-family":[{font:[VV,UV,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,MT]}],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,Ec]}],"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:z()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},aa,$e,Le],radial:["",$e,Le],conic:[aa,$e,Le]},qV,jV]}],"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,Ec]}],"outline-color":[{outline:ue()}],shadow:[{shadow:["","none",v,Lh,Nh]}],"shadow-color":[{shadow:ue()}],"inset-shadow":[{"inset-shadow":["none",g,Lh,Nh]}],"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,Ec]}],"ring-offset-color":[{"ring-offset":ue()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":ue()}],"text-shadow":[{"text-shadow":["none",b,Lh,Nh]}],"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":T()}],"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:z()}],"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",S,Lh,Nh]}],"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",I,$e,Le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,$e,Le]}],"perspective-origin":[{"perspective-origin":L()}],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:L()}],"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,Ec,MT]}],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"]}},ZV=CV(KV);function bn(...e){return ZV(WD(e))}const QV=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"});function cMe(e){return e?QV.format(new Date(e)):"Unknown"}const YV=["B","KB","MB","GB","TB"];function lMe(e){if(e===0)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${YV[t]}`}function uMe(e){return e?.find(t=>t.Key==="Name")?.Value}const XV=/\/$/;function fMe(e){return e.replace(XV,"")}function WV(e){return e&&(e.endsWith("/")?e:`${e}/`)}function JV(e,t){return e.startsWith(t)?e:`${t}${e}`}function dMe(e,t){return e.startsWith(t)?e.slice(t.length):e}const eH=JD("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 lu(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 p;t[5]!==n||t[6]!==f||t[7]!==l?(p=bn(eH({variant:l,size:f,className:n})),t[5]=n,t[6]=f,t[7]=l,t[8]=p):p=t[8];let d;return t[9]!==r||t[10]!==p?(d=k.jsx(oV,{className:p,"data-slot":"button",...r}),t[9]=r,t[10]=p,t[11]=d):d=t[11],d}let kT=0;function tH(e,t="mui"){const[n,r]=M.useState(e),i=e||n;return M.useEffect(()=>{n==null&&(kT+=1,r(`${t}-${kT}`))},[n,t]),i}const NT=J9.useId;function Md(e,t){if(NT!==void 0){const n=NT();return e??(t?`${t}-${n}`:n)}return tH(e,t)}function n_(e){return Md(e,"base-ui")}const nH=[];function s_(e){M.useEffect(e,nH)}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 uu(){const e=$r(Eo.create).current;return s_(e.disposeEffect),e}function sn(e){return e?.ownerDocument||document}const Su=typeof navigator<"u",Qv=rH(),yP=iH(),vP=oH(),bP=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),SP=Qv.platform==="MacIntel"&&Qv.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Qv.platform),_P=Su&&/apple/i.test(navigator.vendor),oS=Su&&/android/i.test(yP)||/android/i.test(vP),sH=Su&&yP.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,EP=vP.includes("jsdom/");function rH(){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 oH(){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 iH(){if(!Su)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const iS="data-base-ui-focusable",xP="active",wP="selected",RP="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",pMe="ArrowLeft",hMe="ArrowRight",mMe="ArrowUp",gMe="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&&nS(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Cm(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 aH(e){return e.matches("html,body")}function r_(e){return zn(e)&&e.matches(RP)}function LT(e){return e?e.getAttribute("role")==="combobox"&&r_(e):!1}function cH(e){if(!e||EP)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function aS(e){return e?e.hasAttribute(iS)?e:e.querySelector(`[${iS}]`)||e:null}function Oc(e,t,n=!0){return e.filter(i=>i.parentId===t&&(!n||i.context?.open)).flatMap(i=>[i,...Oc(e,i.id,n)])}function $T(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 lH(e){e.preventDefault(),e.stopPropagation()}function uH(e){return"nativeEvent"in e}function fH(e){return e.pointerType===""&&e.isTrusted?!0:oS&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dH(e){return EP?!1:!oS&&e.width===0&&e.height===0||oS&&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 bd(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function pH(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const hH=["top","right","bottom","left"],fu=Math.min,or=Math.max,Am=Math.round,$h=Math.floor,mo=e=>({x:e,y:e}),mH={left:"right",right:"left",bottom:"top",top:"bottom"};function cS(e,t,n){return or(e,fu(t,n))}function ui(e,t){return typeof e=="function"?e(t):e}function Fs(e){return e.split("-")[0]}function Na(e){return e.split("-")[1]}function o_(e){return e==="x"?"y":"x"}function i_(e){return e==="y"?"height":"width"}function Lr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function a_(e){return o_(Lr(e))}function gH(e,t,n){n===void 0&&(n=!1);const r=Na(e),i=a_(e),c=i_(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=Im(l)),[l,Im(l)]}function yH(e){const t=Im(e);return[lS(e),t,lS(t)]}function lS(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zT=["left","right"],BT=["right","left"],vH=["top","bottom"],bH=["bottom","top"];function SH(e,t,n){switch(e){case"top":case"bottom":return n?t?BT:zT:t?zT:BT;case"left":case"right":return t?vH:bH;default:return[]}}function _H(e,t,n,r){const i=Na(e);let c=SH(Fs(e),n==="start",r);return i&&(c=c.map(l=>l+"-"+i),t&&(c=c.concat(c.map(lS)))),c}function Im(e){const t=Fs(e);return mH[t]+e.slice(t.length)}function EH(e){return{top:0,right:0,bottom:0,left:0,...e}}function CP(e){return typeof e!="number"?EH(e):{top:e,right:e,bottom:e,left:e}}function Tm(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 xH=["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] *)"],Om=xH.join(","),AP=typeof Element>"u",du=AP?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Mm=!AP&&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},Dm=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]"):Dm(t.parentNode));return l},wH=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},IP=function(t,n,r){if(Dm(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Om));return n&&du.call(t,Om)&&i.unshift(t),i=i.filter(r),i},Pm=function(t,n,r){for(var i=[],c=Array.from(t);c.length;){var l=c.shift();if(!Dm(l,!1))if(l.tagName==="SLOT"){var f=l.assignedElements(),p=f.length?f:l.children,d=Pm(p,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:l,candidates:d})}else{var v=du.call(l,Om);v&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),b=!Dm(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&b){var S=Pm(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,S):i.push({scopeParent:l,candidates:S})}else c.unshift.apply(c,l.children)}}return i},TP=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},OP=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||wH(t))&&!TP(t)?0:t.tabIndex},RH=function(t,n){var r=OP(t);return r<0&&n&&!TP(t)?0:r},CH=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},MP=function(t){return t.tagName==="INPUT"},AH=function(t){return MP(t)&&t.type==="hidden"},IH=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},TH=function(t,n){for(var r=0;rsummary:first-of-type"),f=l?t.parentElement:t;if(du.call(f,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var p=t;t;){var d=t.parentElement,v=Mm(t);if(d&&!d.shadowRoot&&i(d)===!0)return UT(t);t.assignedSlot?t=t.assignedSlot:!d&&v!==t.ownerDocument?t=v.host:t=d}t=p}if(PH(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return UT(t);return!1},NH=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)},DP=function(t){var n=[],r=[];return t.forEach(function(i,c){var l=!!i.scopeParent,f=l?i.scopeParent:i,p=RH(f,l),d=l?DP(i.candidates):f;p===0?l?n.push.apply(n,d):n.push(f):r.push({documentOrder:c,tabIndex:p,item:i,isScope:l,content:d})}),r.sort(CH).reduce(function(i,c){return c.isScope?i.push.apply(i,c.content):i.push(c.content),i},[]).concat(n)},pg=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Pm([t],n.includeContainer,{filter:fS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:LH}):r=IP(t,n.includeContainer,fS.bind(null,n)),DP(r)},$H=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Pm([t],n.includeContainer,{filter:uS.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=IP(t,n.includeContainer,uS.bind(null,n)),r},PP=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return du.call(t,Om)===!1?!1:fS(n,t)};const Dd=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function kP(e,t){const n=pg(e,Dd()),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 NP(e){return kP(sn(e).body,1)||e}function LP(e){return kP(sn(e).body,-1)||e}function id(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!At(n,r)}function zH(e){pg(e,Dd()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function jT(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 zh=null;class BH{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 Bh=new BH;class po{static create(){return new po}static request(t){return Bh.request(t)}static cancel(t){return Bh.cancel(t)}currentId=zh;request(t){this.cancel(),this.currentId=Bh.request(()=>{this.currentId=zh,t()})}cancel=()=>{this.currentId!==zh&&(Bh.cancel(this.currentId),this.currentId=zh)};disposeEffect=()=>this.cancel}function $P(){const e=$r(po.create).current;return s_(e.disposeEffect),e}function ni(e){return e==null?e:"current"in e?e.current:e}let Sd=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const UH={[Sd.startingStyle]:""},jH={[Sd.endingStyle]:""},c_={transitionStatus(e){return e==="starting"?UH:e==="ending"?jH:null}};function VH(e,t=!1,n=!0){const r=$P();return Ke((i,c=null)=>{r.cancel();function l(){Ma.flushSync(i)}const f=ni(e);if(f==null)return;const p=f;if(typeof p.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{let d=function(){const g=Sd.startingStyle;if(!p.hasAttribute(g)){r.request(v);return}const b=new MutationObserver(()=>{p.hasAttribute(g)||(b.disconnect(),v())});b.observe(p,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>b.disconnect(),{once:!0})},v=function(){Promise.all(p.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||l()}).catch(()=>{const g=p.getAnimations();if(n){if(c?.aborted)return;l()}else g.length>0&&g.some(b=>b.pending||b.playState!=="finished")&&v()})};if(t){d();return}r.request(v)}})}function l_(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,c=Ke(i),l=VH(r,n,!1);M.useEffect(()=>{if(!t)return;const f=new AbortController;return l(c,f.signal),()=>{f.abort()}},[t,n,c,l])}function HH(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 u_="none",km="trigger-press",to="trigger-hover",om="trigger-focus",zP="outside-press",yMe="item-press",qH="close-press",BP="focus-out",f_="escape-key",vMe="list-navigation",bMe="cancel-open",FH="disabled",UP="imperative-action",SMe="window-resize";function ln(e,t,n,r){let i=!1,c=!1;const l=ir;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 jP=M.createContext(void 0);function Hc(e){const t=M.useContext(jP);if(e===!1&&t===void 0)throw new Error(pi(27));return t}let Ac=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Sd.startingStyle]="startingStyle",e[e.endingStyle=Sd.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Nm=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const GH={[Nm.popupOpen]:""},KH={[Nm.popupOpen]:"",[Nm.pressed]:""},ZH={[Ac.open]:""},QH={[Ac.closed]:""},YH={[Ac.anchorHidden]:""},XH={open(e){return e?GH:null}},_Me={open(e){return e?KH:null}},Pd={open(e){return e?ZH:QH},anchorHidden(e){return e?YH:null}},WH={...Pd,...c_},JH=M.forwardRef(function(t,n){const{render:r,className:i,forceRender:c=!1,...l}=t,{store:f}=Hc(),p=f.useState("open"),d=f.useState("nested"),v=f.useState("mounted"),g=f.useState("transitionStatus");return zr("div",t,{state:{open:p,transitionStatus:g},ref:[f.context.backdropRef,n],stateAttributesMapping:WH,props:[{role:"presentation",hidden:!v,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!d})}),e7=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,nativeButton:l=!0,...f}=t,{store:p}=Hc(),d=p.useState("open");function v(E){d&&p.setOpen(!1,ln(qH,E.nativeEvent))}const{getButtonProps:g,buttonRef:b}=nP({disabled:c,native:l});return zr("button",t,{state:{disabled:c},ref:[n,b],props:[{onClick:v},f,g]})}),t7=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=Hc(),p=n_(c);return f.useSyncedValueWithCleanup("descriptionElementId",p),zr("p",t,{ref:n,props:[{id:p},l]})});function ho(e){const t=$r(n7,e).current;return t.next=e,Ct(t.effect),t}function n7(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function s7(){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 r7=M.createContext(null),o7=M.createContext(null),hg=()=>M.useContext(r7)?.id||null,kd=e=>{const t=M.useContext(o7);return e??t};function pu(e){return`data-base-ui-${e}`}function im(e,t,n){if(n&&!bd(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 VP=M.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Eo,currentIdRef:{current:null},currentContextRef:{current:null}});function i7(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),p=uu();return k.jsx(VP.Provider,{value:M.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:c,currentIdRef:l,timeoutMs:r,currentContextRef:f,timeout:p}),[r,p]),children:t})}function a7(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{open:i}=t,c=M.useContext(VP),{currentIdRef:l,delayRef:f,timeoutMs:p,initialDelayRef:d,currentContextRef:v,hasProvider:g,timeout:b}=c,[S,E]=M.useState(!1);return Ct(()=>{function x(){E(!1),v.current?.setIsInstantPhase(!1),l.current=null,v.current=null,f.current=d.current}if(l.current&&!i&&l.current===r){if(E(!1),p){const R=r;return b.start(p,()=>{n.select("open")||l.current&&l.current!==R||x()}),()=>{b.clear()}}x()}},[i,r,l,f,p,d,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(d.current,"close")},R!==null&&R!==r?(E(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1,ln(u_))):(E(!1),x?.setIsInstantPhase(!1))},[i,r,n,l,f,p,d,v,b]),Ct(()=>()=>{v.current=null},[v]),M.useMemo(()=>({hasProvider:g,delayRef:f,isInstantPhase:S}),[g,f,S])}const HP={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},qP={...HP,position:"fixed",top:0,left:0},EMe={...HP,position:"absolute"},Lm=M.forwardRef(function(t,n){const[r,i]=M.useState();Ct(()=>{_P&&i("button")},[]);const c={tabIndex:0,role:r};return k.jsx("span",{...t,ref:n,style:qP,"aria-hidden":r?void 0:!0,...c,"data-base-ui-focus-guard":""})});let VT=0;function Yv(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(VT);const c=()=>e?.focus({preventScroll:n});i?c():VT=requestAnimationFrame(c)}const eu={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function HT(e){return e==="inert"?eu.inert:e==="aria-hidden"?eu["aria-hidden"]:eu.none}let Uh=new WeakSet,jh={},Xv=0;const FP=e=>e&&(e.host||FP(e.parentNode)),c7=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=FP(n);return e.contains(r)?r:null}).filter(n=>n!=null);function l7(e,t,n,r){const i="data-base-ui-inert",c=r?"inert":n?"aria-hidden":null,l=c7(t,e),f=new Set,p=new Set(l),d=[];jh[i]||(jh[i]=new WeakMap);const v=jh[i];l.forEach(g),b(t),f.clear();function g(S){!S||f.has(S)||(f.add(S),S.parentNode&&g(S.parentNode))}function b(S){!S||p.has(S)||[].forEach.call(S.children,E=>{if(Da(E)!=="script")if(f.has(E))b(E);else{const x=c?E.getAttribute(c):null,R=x!==null&&x!=="false",C=HT(c),I=(C.get(E)||0)+1,P=(v.get(E)||0)+1;C.set(E,I),v.set(E,P),d.push(E),I===1&&R&&Uh.add(E),P===1&&E.setAttribute(i,""),!R&&c&&E.setAttribute(c,c==="inert"?"":"true")}})}return Xv+=1,()=>{d.forEach(S=>{const E=HT(c),R=(E.get(S)||0)-1,C=(v.get(S)||0)-1;E.set(S,R),v.set(S,C),R||(!Uh.has(S)&&c&&S.removeAttribute(c),Uh.delete(S)),C||S.removeAttribute(i)}),Xv-=1,Xv||(eu.inert=new WeakMap,eu["aria-hidden"]=new WeakMap,eu.none=new WeakMap,Uh=new WeakSet,jh={})}}function u7(e,t=!1,n=!1){const r=sn(e[0]).body;return l7(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const GP=M.createContext(null),KP=()=>M.useContext(GP),f7=pu("portal");function ZP(e={}){const{ref:t,container:n,componentProps:r=ir,elementProps:i}=e,c=Md(),f=KP()?.portalNode,[p,d]=M.useState(null),[v,g]=M.useState(null),b=Ke(R=>{R!==null&&g(R)}),S=M.useRef(null);Ct(()=>{if(n===null){S.current&&(S.current=null,g(null),d(null));return}if(c==null)return;const R=(n&&(WS(n)?n:n.current))??f??document.body;if(R==null){S.current&&(S.current=null,g(null),d(null));return}S.current!==R&&(S.current=R,g(null),d(R))},[n,f,c]);const E=zr("div",r,{ref:[t,b],props:[{id:c,[f7]:""},i]});return{portalNode:v,portalSubtree:p&&E?Ma.createPortal(E,p):null}}const d7=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,renderGuards:f,...p}=t,{portalNode:d,portalSubtree:v}=ZP({container:i,ref:n,componentProps:t,elementProps:p}),g=M.useRef(null),b=M.useRef(null),S=M.useRef(null),E=M.useRef(null),[x,R]=M.useState(null),C=x?.modal,I=x?.open,P=typeof f=="boolean"?f:!!x&&!x.modal&&x.open&&!!d;M.useEffect(()=>{if(!d||C)return;function L(j){d&&j.relatedTarget&&id(j)&&(j.type==="focusin"?jT:zH)(d)}return d.addEventListener("focusin",L,!0),d.addEventListener("focusout",L,!0),()=>{d.removeEventListener("focusin",L,!0),d.removeEventListener("focusout",L,!0)}},[d,C]),M.useEffect(()=>{!d||I||jT(d)},[I,d]);const T=M.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:b,beforeInsideRef:S,afterInsideRef:E,portalNode:d,setFocusManagerState:R}),[d]);return k.jsxs(M.Fragment,{children:[v,k.jsxs(GP.Provider,{value:T,children:[P&&d&&k.jsx(Lm,{"data-type":"outside",ref:g,onFocus:L=>{if(id(L,d))S.current?.focus();else{const j=x?x.domReference:null;LP(j)?.focus()}}}),P&&d&&k.jsx("span",{"aria-owns":d.id,style:o9}),d&&Ma.createPortal(r,d),P&&d&&k.jsx(Lm,{"data-type":"outside",ref:b,onFocus:L=>{if(id(L,d))E.current?.focus();else{const j=x?x.domReference:null;NP(j)?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,ln(BP,L.nativeEvent))}}})]})]})});function p7(e,t){const n=Dn(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 qT=20;let va=[];function d_(){va=va.filter(e=>e.deref()?.isConnected)}function h7(e){d_(),e&&Da(e)!=="body"&&(va.push(new WeakRef(e)),va.length>qT&&(va=va.slice(-qT)))}function Wv(){return d_(),va[va.length-1]?.deref()}function m7(e){if(!e)return null;const t=Dd();return PP(e,t)?e:pg(e,t)[0]||e}function g7(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():lr(e).display!=="none"}function FT(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Dd(),i=$H(e,n).filter(l=>{const f=l.getAttribute("data-tabindex")||"";return PP(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 y7(e){const{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:c=!0,restoreFocus:l=!1,modal:f=!0,closeOnFocusOut:p=!0,openInteractionType:d="",nextFocusableElement:v,previousFocusableElement:g,beforeContentFocusGuardRef:b,externalTree:S}=e,E="rootStore"in t?t.rootStore:t,x=E.useState("open"),R=E.useState("domReferenceElement"),C=E.useState("floatingElement"),{events:I,dataRef:P}=E.context,T=Ke(()=>P.current.floatingContext?.nodeId),L=i===!1,j=LT(R)&&L,V=M.useRef(["content"]),N=ho(i),Q=ho(c),ne=ho(d),te=kd(S),F=KP(),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(""),z=M.useRef(null),ee=M.useRef(null),ye=wm(z,b,F?.beforeInsideRef),Ee=wm(ee,F?.afterInsideRef),xe=uu(),Se=uu(),Oe=$P(),Fe=F!=null,be=aS(C),tt=Ke((Re=be)=>Re?pg(Re,Dd()):[]),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&&lH(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(`[${s9}]`)&&(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||!p)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=T(),Xn=E.context.triggerElements,Je=Ge?.hasAttribute(pu("focus-guard"))&&[z.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&&(Oc(te.nodesRef.current,wt).find(it=>At(it.context?.elements.floating,Ge)||At(it.context?.elements.domReference,Ge))||$T(te.nodesRef.current,wt).find(it=>[it.context?.elements.floating,aS(it.context?.elements.floating)].includes(Ge)||it.context?.elements.domReference===Ge)));if(bt===R&&be&&FT(be,V),l&&bt!==R&&!g7(Xt)&&si(Re)===Re.body){if(zn(be)&&(be.focus(),l==="popup")){Oe.request(()=>{be.focus()});return}const it=J.current,Ds=tt(),hr=Ds[it]||Ds[Ds.length-1]||be;zn(hr)&&hr.focus()}if(P.current.insideReactTree){P.current.insideReactTree=!1;return}(j||!f)&&Ge&&Mt&&!H.current&&(j||Ge!==Wv())&&(ge.current=!0,E.setOpen(!1,ln(BP,ot)))})}function Ve(){re.current||(P.current.insideReactTree=!0,xe.start(0,()=>{P.current.insideReactTree=!1}))}const De=zn(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,p,l,tt,j,T,V,P,xe,Se,Oe,v,g]),M.useEffect(()=>{if(r||!C||!x)return;const Re=Array.from(F?.portalNode?.querySelectorAll(`[${pu("portal")}]`)||[]),Ze=(te?$T(te.nodesRef.current,T()):[]).find(Ve=>LT(Ve.context?.elements.domReference||null))?.context?.elements.domReference,Me=[C,Ze,...Re,oe.current,me.current,z.current,ee.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,ni(g),ni(v),j?R:null].filter(Ve=>Ve!=null);return u7(Me,f||j)},[x,r,R,C,f,V,F,j,te,T,v,g]),Ct(()=>{if(!x||r||!zn(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)&&Yv(De,{preventScroll:De===be})})},[r,x,be,L,kt,N,ne]),Ct(()=>{if(r||!be)return;const Re=sn(be),_e=si(Re);h7(_e);function Ze(De){if(De.open||(ve.current=p7(De.nativeEvent,ue.current)),De.reason===to&&De.nativeEvent.type==="mouseleave"&&(ge.current=!0),De.reason===zP)if(De.nested)ge.current=!1;else if(fH(De.nativeEvent)||dH(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}}I.on("openchange",Ze);const Me=Re.createElement("span");Me.setAttribute("tabindex","-1"),Me.setAttribute("aria-hidden","true"),Object.assign(Me.style,qP),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||Wv();return Ge&&Ge.isConnected?Ge:Me}const ot=R||Wv()||Me;return ni(nt)||ot}return()=>{I.off("openchange",Ze);const De=si(Re),nt=At(C,De)||te&&Oc(te.nodesRef.current,T(),!1).some(Ge=>At(Ge.context?.elements.floating,De)),ot=Ve();queueMicrotask(()=>{const Ge=m7(ot),bt=typeof Q.current!="boolean";Q.current&&!ge.current&&zn(Ge)&&(!(!bt&&Ge!==De&&De!==Re.body)||nt)&&Ge.focus({preventScroll:!0}),Me.remove(),ge.current=!1})}},[r,C,be,Q,P,I,te,Fe,R,T]),Ct(()=>{if(!bP||x||!C)return;const Re=si(sn(C));!zn(Re)||!r_(Re)||At(C,Re)&&Re.blur()},[x,C]),Ct(()=>{if(!(r||!F))return F.setFocusManagerState({modal:f,closeOnFocusOut:p,open:x,onOpenChange:E.setOpen,domReference:R}),()=>{F.setFocusManagerState(null)}},[r,F,f,x,E,p,R]),Ct(()=>{if(!(r||!be))return FT(be,V),()=>{queueMicrotask(d_)}},[r,be,V]);const he=!r&&(f?!j:!0)&&(Fe||f);return k.jsxs(M.Fragment,{children:[he&&k.jsx(Lm,{"data-type":"inside",ref:ye,onFocus:Re=>{if(f){const _e=kt();Yv(_e[_e.length-1])}else F?.portalNode&&(ge.current=!1,id(Re,F.portalNode)?NP(R)?.focus():ni(g??F.beforeOutsideRef)?.focus())}}),n,he&&k.jsx(Lm,{"data-type":"inside",ref:Ee,onFocus:Re=>{f?Yv(kt()[0]):F?.portalNode&&(p&&(ge.current=!0),id(Re,F.portalNode)?LP(R)?.focus():ni(v??F.afterOutsideRef)?.focus())}})]})}function v7(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",p=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let d=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,d=0,v=0,!i||p?(d=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&&!p&&(v=t.axis==="x"?c.height:v,d=t.axis==="y"?c.width:d),i=!0,{width:d,height:v,x:g,y:b,top:b,right:g+d,bottom:b+v,left:g}}}}function GT(e){return e!=null&&e.clientX!=null}function b7(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:p="both"}=t,d=M.useRef(!1),v=M.useRef(null),[g,b]=M.useState(),[S,E]=M.useState([]),x=Ke((T,L,j)=>{d.current||l.current.openEvent&&!GT(l.current.openEvent)||n.set("positionReference",v7(j??c,{x:T,y:L,axis:p,dataRef:l,pointerType:g}))}),R=Ke(T=>{r?v.current||E([]):x(T.clientX,T.clientY,T.currentTarget)}),C=bd(g)?i:r,I=M.useCallback(()=>{if(!C||!f)return;const T=Dn(i);function L(j){const V=js(j);At(i,V)?(T.removeEventListener("mousemove",L),v.current=null):x(j.clientX,j.clientY)}if(!l.current.openEvent||GT(l.current.openEvent)){T.addEventListener("mousemove",L);const j=()=>{T.removeEventListener("mousemove",L),v.current=null};return v.current=j,j}n.set("positionReference",c)},[C,f,i,l,c,n,x]);M.useEffect(()=>I(),[I,S]),M.useEffect(()=>{f&&!i&&(d.current=!1)},[f,i]),M.useEffect(()=>{!f&&r&&(d.current=!0)},[f,r]);const P=M.useMemo(()=>{function T(L){b(L.pointerType)}return{onPointerDown:T,onPointerEnter:T,onMouseMove:R,onMouseEnter:R}},[R]);return M.useMemo(()=>f?{reference:P,trigger:P}:{},[f,P])}function KT(e,t,n){let{reference:r,floating:i}=e;const c=Lr(t),l=a_(t),f=i_(l),p=Fs(t),d=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 S;switch(p){case"top":S={x:v,y:r.y-i.height};break;case"bottom":S={x:v,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:g};break;case"left":S={x:r.x-i.width,y:g};break;default:S={x:r.x,y:r.y}}switch(Na(t)){case"start":S[l]-=b*(n&&d?-1:1);break;case"end":S[l]+=b*(n&&d?-1:1);break}return S}async function S7(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:c,rects:l,elements:f,strategy:p}=e,{boundary:d="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=ui(t,e),E=CP(S),R=f[b?g==="floating"?"reference":"floating":g],C=Tm(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:d,rootBoundary:v,strategy:p})),I=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)),T=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},L=Tm(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:I,offsetParent:P,strategy:p}):I);return{top:(C.top-L.top+E.top)/T.y,bottom:(L.bottom-C.bottom+E.bottom)/T.y,left:(C.left-L.left+E.left)/T.x,right:(L.right-C.right+E.right)/T.x}}const _7=50,E7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:c=[],platform:l}=n,f=l.detectOverflow?l:{...l,detectOverflow:S7},p=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:v,y:g}=KT(d,r,p),b=r,S=0;const E={};for(let x=0;xme<=0)){var te,F;const me=(((te=c.flip)==null?void 0:te.index)||0)+1,ge=V[me];if(ge&&(!(g==="alignment"?I!==Lr(ge):!1)||ne.every(J=>Lr(J.placement)===I?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(S){case"bestFit":{var oe;const re=(oe=ne.filter(J=>{if(j){const ve=Lr(J.placement);return ve===I||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 ZT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function QT(e){return hH.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}=ui(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...c,elementContext:"reference"}),f=ZT(l,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:QT(f)}}}case"escaped":{const l=await r.detectOverflow(t,{...c,altBoundary:!0}),f=ZT(l,n.floating);return{data:{escapedOffsets:f,escaped:QT(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=Fs(n),f=Na(n),p=Lr(n)==="y",d=QP.has(l)?-1:1,v=c&&p?-1:1,g=ui(t,e);let{mainAxis:b,crossAxis:S,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"&&(S=f==="end"?E*-1:E),p?{x:S*v,y:b*d}:{x:b*d,y:S*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,p=await R7(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+p.x,y:c+p.y,data:{...p,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:p={fn:C=>{let{x:I,y:P}=C;return{x:I,y:P}}},...d}=ui(e,t),v={x:n,y:r},g=await c.detectOverflow(t,d),b=Lr(Fs(i)),S=o_(b);let E=v[S],x=v[b];if(l){const C=S==="y"?"top":"left",I=S==="y"?"bottom":"right",P=E+g[C],T=E-g[I];E=cS(P,E,T)}if(f){const C=b==="y"?"top":"left",I=b==="y"?"bottom":"right",P=x+g[C],T=x-g[I];x=cS(P,x,T)}const R=p.fn({...t,[S]:E,[b]:x});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[S]: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:p=!0,crossAxis:d=!0}=ui(e,t),v={x:n,y:r},g=Lr(i),b=o_(g);let S=v[b],E=v[g];const x=ui(f,t),R=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(p){const P=b==="y"?"height":"width",T=c.reference[b]-c.floating[P]+R.mainAxis,L=c.reference[b]+c.reference[P]-R.mainAxis;SL&&(S=L)}if(d){var C,I;const P=b==="y"?"width":"height",T=QP.has(Fs(i)),L=c.reference[g]-c.floating[P]+(T&&((C=l.offset)==null?void 0:C[g])||0)+(T?0:R.crossAxis),j=c.reference[g]+c.reference[P]+(T?0:((I=l.offset)==null?void 0:I[g])||0)-(T?R.crossAxis:0);Ej&&(E=j)}return{[b]:S,[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:p=()=>{},...d}=ui(e,t),v=await l.detectOverflow(t,d),g=Fs(i),b=Na(i),S=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 I=x-v.top-v.bottom,P=E-v.left-v.right,T=fu(x-v[R],I),L=fu(E-v[C],P),j=!t.middlewareData.shift;let V=T,N=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=I),j&&!b){const ne=or(v.left,0),te=or(v.right,0),F=or(v.top,0),oe=or(v.bottom,0);S?N=E-2*(ne!==0||te!==0?ne+te:or(v.left,v.right)):V=x-2*(F!==0||oe!==0?F+oe:or(v.top,v.bottom))}await p({...t,availableWidth:N,availableHeight:V});const Q=await l.getDimensions(f.floating);return E!==Q.width||x!==Q.height?{reset:{rects:!0}}:{}}}};function YP(e){const t=lr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=zn(e),c=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=Am(n)!==c||Am(r)!==l;return f&&(n=c,r=l),{width:n,height:r,$:f}}function p_(e){return Lt(e)?e:e.contextElement}function tu(e){const t=p_(e);if(!zn(t))return mo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:c}=YP(t);let l=(c?Am(n.width):n.width)/r,f=(c?Am(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 XP(e){const t=Dn(e);return!fg()||!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!==Dn(e)?!1:t}function Lc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),c=p_(e);let l=mo(1);t&&(r?Lt(r)&&(l=tu(r)):l=tu(e));const f=M7(c,n,r)?XP(c):mo(0);let p=(i.left+f.x)/l.x,d=(i.top+f.y)/l.y,v=i.width/l.x,g=i.height/l.y;if(c){const b=Dn(c),S=r&&Lt(r)?Dn(r):r;let E=b,x=sS(E);for(;x&&r&&S!==E;){const R=tu(x),C=x.getBoundingClientRect(),I=lr(x),P=C.left+(x.clientLeft+parseFloat(I.paddingLeft))*R.x,T=C.top+(x.clientTop+parseFloat(I.paddingTop))*R.y;p*=R.x,d*=R.y,v*=R.x,g*=R.y,p+=P,d+=T,E=Dn(x),x=sS(E)}}return Tm({width:v,height:g,x:p,y:d})}function mg(e,t){const n=dg(e).scrollLeft;return t?t.left+n:Lc(wo(e)).left+n}function WP(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-mg(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?ug(t.floating):!1;if(r===l||f&&c)return n;let p={scrollLeft:0,scrollTop:0},d=mo(1);const v=mo(0),g=zn(r);if((g||!g&&!c)&&((Da(r)!=="body"||Pa(l))&&(p=dg(r)),g)){const S=Lc(r);d=tu(r),v.x=S.x+r.clientLeft,v.y=S.y+r.clientTop}const b=l&&!g&&!c?WP(l,p):mo(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-p.scrollLeft*d.x+v.x+b.x,y:n.y*d.y-p.scrollTop*d.y+v.y+b.y}}function P7(e){return Array.from(e.getClientRects())}function k7(e){const t=wo(e),n=dg(e),r=e.ownerDocument.body,i=or(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=or(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+mg(e);const f=-n.scrollTop;return lr(r).direction==="rtl"&&(l+=or(t.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:f}}const YT=25;function N7(e,t){const n=Dn(e),r=wo(e),i=n.visualViewport;let c=r.clientWidth,l=r.clientHeight,f=0,p=0;if(i){c=i.width,l=i.height;const v=fg();(!v||v&&t==="fixed")&&(f=i.offsetLeft,p=i.offsetTop)}const d=mg(r);if(d<=0){const v=r.ownerDocument,g=v.body,b=getComputedStyle(g),S=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-S);E<=YT&&(c-=E)}else d<=YT&&(c+=d);return{width:c,height:l,x:f,y:p}}function L7(e,t){const n=Lc(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,c=zn(e)?tu(e):mo(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,p=i*c.x,d=r*c.y;return{width:l,height:f,x:p,y:d}}function XT(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=L7(t,n);else{const i=XP(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Tm(r)}function JP(e,t){const n=li(e);return n===t||!Lt(n)||ci(n)?!1:lr(n).position==="fixed"||JP(n,t)}function $7(e,t){const n=t.get(e);if(n)return n;let r=wa(e,[],!1).filter(f=>Lt(f)&&Da(f)!=="body"),i=null;const c=lr(e).position==="fixed";let l=c?li(e):e;for(;Lt(l)&&!ci(l);){const f=lr(l),p=JS(l);!p&&f.position==="fixed"&&(i=null),(c?!p&&!i:!p&&f.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Pa(l)&&!p&&JP(e,l))?r=r.filter(v=>v!==l):i=f,l=li(l)}return t.set(e,r),r}function z7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?ug(t)?[]:$7(t,this._c):[].concat(n),r],f=XT(t,l[0],i);let p=f.top,d=f.right,v=f.bottom,g=f.left;for(let b=1;b{l(!1,1e-7)},1e3)}V===1&&!tk(d,e.getBoundingClientRect())&&l(),T=!1}try{n=new IntersectionObserver(L,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,P)}n.observe(e)}return l(!0),c}function JT(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:p=!1}=r,d=p_(e),v=i||c?[...d?wa(d):[],...t?wa(t):[]]:[];v.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),c&&C.addEventListener("resize",n)});const g=d&&f?q7(d,n):null;let b=-1,S=null;l&&(S=new ResizeObserver(C=>{let[I]=C;I&&I.target===d&&S&&t&&(S.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var P;(P=S)==null||P.observe(t)})),n()}),d&&!p&&S.observe(d),t&&S.observe(t));let E,x=p?Lc(e):null;p&&R();function R(){const C=Lc(e);x&&!tk(x,C)&&n(),x=C,E=requestAnimationFrame(R)}return n(),()=>{var C;v.forEach(I=>{i&&I.removeEventListener("scroll",n),c&&I.removeEventListener("resize",n)}),g?.(),(C=S)==null||C.disconnect(),S=null,p&&cancelAnimationFrame(E)}}const F7=C7,G7=A7,K7=x7,Z7=T7,Q7=w7,Y7=I7,X7=(e,t,n)=>{const r=new Map,i={platform:H7,...n},c={...i.platform,_c:r};return E7(e,t,{...i,platform:c})};var W7=typeof document<"u",J7=function(){},am=W7?M.useLayoutEffect:J7;function $m(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(!$m(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)&&!$m(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function nk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e2(e,t){const n=nk(e);return Math.round(t*n)/n}function eb(e){const t=M.useRef(e);return am(()=>{t.current=e}),t}function eq(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:p,open:d}=e,[v,g]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,S]=M.useState(r);$m(b,r)||S(r);const[E,x]=M.useState(null),[R,C]=M.useState(null),I=M.useCallback(J=>{J!==j.current&&(j.current=J,x(J))},[]),P=M.useCallback(J=>{J!==V.current&&(V.current=J,C(J))},[]),T=c||E,L=l||R,j=M.useRef(null),V=M.useRef(null),N=M.useRef(v),Q=p!=null,ne=eb(p),te=eb(i),F=eb(d),oe=M.useCallback(()=>{if(!j.current||!V.current)return;const J={placement:t,strategy:n,middleware:b};te.current&&(J.platform=te.current),X7(j.current,V.current,J).then(ve=>{const ue={...ve,isPositioned:F.current!==!1};me.current&&!$m(N.current,ue)&&(N.current=ue,Ma.flushSync(()=>{g(ue)}))})},[b,t,n,te,F]);am(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[d]);const me=M.useRef(!1);am(()=>(me.current=!0,()=>{me.current=!1}),[]),am(()=>{if(T&&(j.current=T),L&&(V.current=L),T&&L){if(ne.current)return ne.current(T,L,oe);oe()}},[T,L,oe,ne,Q]);const ge=M.useMemo(()=>({reference:j,floating:V,setReference:I,setFloating:P}),[I,P]),H=M.useMemo(()=>({reference:T,floating:L}),[T,L]),re=M.useMemo(()=>{const J={position:n,left:0,top:0};if(!H.floating)return J;const ve=e2(H.floating,v.x),ue=e2(H.floating,v.y);return f?{...J,transform:"translate("+ve+"px, "+ue+"px)",...nk(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 tq=(e,t)=>{const n=F7(e);return{name:n.name,fn:n.fn,options:[e,t]}},nq=(e,t)=>{const n=G7(e);return{name:n.name,fn:n.fn,options:[e,t]}},sq=(e,t)=>({fn:Y7(e).fn,options:[e,t]}),rq=(e,t)=>{const n=K7(e);return{name:n.name,fn:n.fn,options:[e,t]}},oq=(e,t)=>{const n=Z7(e);return{name:n.name,fn:n.fn,options:[e,t]}},iq=(e,t)=>{const n=Q7(e);return{name:n.name,fn:n.fn,options:[e,t]}},aq={intentional:"onClick",sloppy:"onPointerDown"};function cq(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function sk(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:p}=n.context,{enabled:d=!0,escapeKey:v=!0,outsidePress:g=!0,outsidePressEvent:b="sloppy",referencePress:S=!1,referencePressEvent:E="sloppy",ancestorScroll:x=!1,bubbles:R,externalTree:C}=t,I=kd(C),P=Ke(typeof g=="function"?g:()=>!1),T=typeof g=="function"?P:g,L=M.useRef(!1),{escapeKey:j,outsidePress:V}=cq(R),N=M.useRef(null),Q=uu(),ne=uu(),te=Ke(()=>{ne.clear(),p.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||!d||!v||he.key!=="Escape"||F.current)return;const Re=p.current.floatingContext?.nodeId,_e=I?Oc(I.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=uH(he)?he.nativeEvent:he,Me=ln(f_,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(()=>{p.current.insideReactTree=!0,ne.start(0,te)}),ve=Ke((he,Re=!1)=>{if(re(he)){te();return}if(p.current.insideReactTree){te();return}if(ge()==="intentional"&&Re||typeof T=="function"&&!T(he))return;const _e=js(he),Ze=`[${pu("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=li(De);if(ci(bt)||!Lt(bt))break;De=bt}if(Me.length&&Lt(_e)&&!aH(_e)&&!At(_e,n.select("floatingElement"))&&Array.from(Me).every(bt=>!At(De,bt)))return;if(zn(_e)&&!("touches"in he)){const bt=ci(_e),Xt=lr(_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",hr=it&&(Ds?he.offsetX<=_e.offsetWidth-_e.clientWidth:he.offsetX>_e.clientWidth),Po=Mt&&he.offsetY>_e.clientHeight;if(hr||Po)return}const nt=p.current.floatingContext?.nodeId,ot=I&&Oc(I.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=I?Oc(I.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(zP,he)),te()}),ue=Ke(he=>{ge()!=="sloppy"||he.pointerType==="touch"||!n.select("open")||!d||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement"))||ve(he)}),z=Ke(he=>{if(ge()!=="sloppy"||!n.select("open")||!d||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(){z(he),Re?.removeEventListener(he.type,_e)}Re?.addEventListener(he.type,_e)}),ye=Ke(he=>{const Re=L.current;if(L.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||!d)return;p.current.__escapeKeyBubbles=j,p.current.__outsidePressBubbles=V;const he=new Eo;function Re(De){n.setOpen(!1,ln(u_,De))}function _e(){he.clear(),F.current=!0}function Ze(){he.start(fg()?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)),T&&(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=wa(l)),Lt(i)&&(Ve=Ve.concat(wa(i))),!Lt(c)&&c&&c.contextElement&&(Ve=Ve.concat(wa(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)),T&&(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(),L.current=!1}},[p,i,c,l,v,T,r,f,x,d,j,V,H,ve,ye,ue,ee,xe,Oe,me,n]),M.useEffect(te,[T,te]);const Fe=M.useMemo(()=>({onKeyDown:H,...S&&{[aq[E]]:he=>{n.setOpen(!1,ln(km,he.nativeEvent))},...E!=="intentional"&&{onClick(he){n.setOpen(!1,ln(km,he.nativeEvent))}}}}),[H,n,S,E]),be=Ke(he=>{const Re=js(he.nativeEvent);!At(n.select("floatingElement"),Re)||he.button!==0||(L.current=!0)}),tt=Ke(he=>{!r||!d||he.button!==0||(L.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(()=>d?{reference:Fe,floating:kt,trigger:Fe}:{},[d,Fe,kt])}var zm=Symbol("NOT_FOUND");function lq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function uq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function fq(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 t2=e=>Array.isArray(e)?e:[e];function dq(e){const t=Array.isArray(e[0])?e[0]:e;return fq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function pq(e,t){const n=[],{length:r}=e;for(let i=0;it(f,d.key));if(p>-1){const d=n[p];return p>0&&(n.splice(p,1),n.unshift(d)),d.value}return zm}function i(f,p){r(f)===zm&&(n.unshift({key:f,value:p}),n.length>e&&n.pop())}function c(){return n}function l(){n=[]}return{get:r,put:i,getEntries:c,clear:l}}var gq=(e,t)=>e===t;function yq(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(S.value,v));b&&(v=b.value,f!==0&&f--)}p.put(arguments,v)}return v}return d.clearCache=()=>{p.clear(),d.resetResultsCount()},d.resultsCount=()=>f,d.resetResultsCount=()=>{f=0},d}var bq=class{constructor(e){this.value=e}deref(){return this.value}},Sq=typeof WeakRef<"u"?WeakRef:bq,_q=0,n2=1;function Vh(){return{s:_q,v:void 0,o:null,p:null}}function rk(e,t={}){let n=Vh();const{resultEqualityCheck:r}=t;let i,c=0;function l(){let f=n;const{length:p}=arguments;for(let g=0,b=p;g{n=Vh(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}function ok(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let c=0,l=0,f,p={},d=i.pop();typeof d=="object"&&(p=d,d=i.pop()),lq(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const v={...n,...p},{memoize:g,memoizeOptions:b=[],argsMemoize:S=rk,argsMemoizeOptions:E=[]}=v,x=t2(b),R=t2(E),C=dq(i),I=g(function(){return c++,d.apply(null,arguments)},...x),P=S(function(){l++;const L=pq(C,arguments);return f=I.apply(null,L),f},...R);return Object.assign(P,{resultFunc:d,memoizedResultFunc:I,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:g,argsMemoize:S})};return Object.assign(r,{withTypes:()=>r}),r}var Eq=ok(rk),xq=Object.assign((e,t=Eq)=>{uq(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,p)=>(l[n[p]]=f,l),{}))},{withTypes:()=>xq});ok({memoize:vq,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const dt=(e,t,n,r,i,c,...l)=>{if(l.length>0)throw new Error(pi(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var ik=$D();const dS=[];let pS;function wq(){return pS}function Rq(e){dS.push(e)}function ak(e){const t=(n,r)=>{const i=$r(Aq).current;let c;try{pS=i;for(const l of dS)l.before(i);c=e(n,r);for(const l of dS)l.after(i);i.didInitialize=!0}finally{pS=void 0}return c};return t.displayName=e.displayName||e.name,t}function Cq(e){return M.forwardRef(ak(e))}function Aq(){return{didInitialize:!1}}const Iq=XS(19),Tq=Iq?Mq:Dq;function ck(e,t,n,r,i){return Tq(e,t,n,r,i)}function Oq(e,t,n,r,i){const c=M.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return ik.useSyncExternalStore(e.subscribe,c,c)}Rq({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()}}),ik.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Mq(e,t,n,r,i){const c=wq();if(!c)return Oq(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 Dq(e,t,n,r,i){return zD.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>t(c,n,r,i))}class Pq{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 ck(this,t,n,r,i)}}class h_ extends Pq{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),ck(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 kq={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 m_ extends h_{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:s7(),nested:n,noEmit:r,triggerElements:c},kq)}setOpen=(t,n)=>{if((!t||!this.state.open||pH(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 Nq(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 Lq(e,t,n,r){const i=n.useState("isMountedByTrigger",e),c=Nq(e,n),l=Ke(f=>{if(c(f),!f||!n.select("open"))return;const p=n.select("activeTriggerId");if(p===e){n.update({activeTriggerElement:f,...r});return}p==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 lk(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 uk(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=HH(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 l_({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}class gg{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 $q(){return new m_({open:!1,floatingElement:null,referenceElement:null,triggerElements:new gg,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function fk(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:$q(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ir,inactiveTriggerProps:ir,popupProps:ir}}const Hh=dt(e=>e.triggerIdProp??e.activeTriggerId),dk={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:Hh,activeTriggerElement:dt(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:dt((e,t)=>t!==void 0&&Hh(e)===t),isOpenedByTrigger:dt((e,t)=>t!==void 0&&Hh(e)===t&&e.open),isMountedByTrigger:dt((e,t)=>t!==void 0&&Hh(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 zq(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Md(),c=hg()!=null,l=$r(()=>new m_({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new gg,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 Bq(e={}){const{nodeId:t,externalTree:n}=e,r=zq(e),i=e.rootContext||r,c={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,f]=M.useState(null),p=M.useRef(null),d=kd(n);Ct(()=>{c.domReference&&(p.current=c.domReference)},[c.domReference]);const v=eq({...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,S]=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)&&(p.current=V,S(V)),(Lt(v.refs.reference.current)||v.refs.reference.current===null||V!==null&&!Lt(V))&&v.refs.setReference(V)},[v.refs,S]),C=M.useCallback(V=>{x(V),v.refs.setFloating(V)},[v.refs]),I=M.useMemo(()=>({...v.refs,setReference:R,setFloating:C,setPositionReference:g,domReference:p}),[v.refs,R,C,g]),P=M.useMemo(()=>({...v.elements,domReference:c.domReference}),[v.elements,c.domReference]),T=i.useState("open"),L=i.useState("floatingId"),j=M.useMemo(()=>({...v,dataRef:i.context.dataRef,open:T,onOpenChange:i.setOpen,events:i.context.events,floatingId:L,refs:I,elements:P,nodeId:t,rootStore:i}),[v,I,P,t,i,T,L]);return Ct(()=>{i.context.dataRef.current.floatingContext=j;const V=d?.nodesRef.current.find(N=>N.id===t);V&&(V.context=j)}),M.useMemo(()=>({...v,context:j,refs:I,elements:P,rootStore:i}),[v,I,P,j,i])}function pk(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,c=Md(),l=hg()!=null,f=t.useState("open"),p=t.useState("activeTriggerElement"),d=t.useState(r?"popupElement":"positionerElement"),v=t.context.triggerElements,g=$r(()=>new m_({open:f,referenceElement:p,floatingElement:d,triggerElements:v,onOpenChange:i,floatingId:c,nested:l,noEmit:n})).current;return Ct(()=>{const b={open:f,floatingId:c,referenceElement:p,floatingElement:d};Lt(p)&&(b.domReferenceElement=p),g.state.positionReference===g.state.referenceElement&&(b.positionReference=p),g.update(b)},[f,c,p,d,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const tb=sH&&_P;function Uq(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),p=M.useRef(null),d=uu(),v=M.useRef(!0);M.useEffect(()=>{const b=n.select("domReferenceElement");if(!c)return;const S=Dn(b);function E(){const C=n.select("domReferenceElement");!n.select("open")&&zn(C)&&C===si(sn(C))&&(f.current=!0)}function x(){v.current=!0}function R(){v.current=!1}return S.addEventListener("blur",E),tb&&(S.addEventListener("keydown",x,!0),S.addEventListener("pointerdown",R,!0)),()=>{S.removeEventListener("blur",E),tb&&(S.removeEventListener("keydown",x,!0),S.removeEventListener("pointerdown",R,!0))}},[n,c]),M.useEffect(()=>{if(!c)return;function b(S){if(S.reason===km||S.reason===f_){const E=n.select("domReferenceElement");Lt(E)&&(p.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,p.current=null},onFocus(b){const S=b.currentTarget;if(f.current){if(p.current===S)return;f.current=!1,p.current=null}const E=js(b.nativeEvent);if(Lt(E)){if(tb&&!b.relatedTarget){if(!v.current&&!r_(E))return}else if(!cH(E))return}const x=Cm(b.relatedTarget,n.context.triggerElements),{nativeEvent:R,currentTarget:C}=b,I=typeof l=="function"?l():l;if(n.select("open")&&x||I===0||I===void 0){n.setOpen(!0,ln(om,R,C));return}d.start(I,()=>{f.current||n.setOpen(!0,ln(om,R,C))})},onBlur(b){f.current=!1,p.current=null;const S=b.relatedTarget,E=b.nativeEvent,x=Lt(S)&&S.hasAttribute(pu("focus-guard"))&&S.getAttribute("data-type")==="outside";d.start(0,()=>{const R=n.select("domReferenceElement"),C=si(R?R.ownerDocument:document);!S&&C===R||At(i.current.floatingContext?.refs.floating.current,C)||At(R,C)||x||Cm(S??C,n.context.triggerElements)||n.setOpen(!1,ln(om,E))})}}),[i,n,d,l]);return M.useMemo(()=>c?{reference:g,trigger:g}:{},[c,g])}const hS=pu("safe-polygon"),jq=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${RP}`;function Vq(e){return e?!!e.closest(jq):!1}class g_{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 g_}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function hk(e){const t=$r(g_.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),s_(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}const Hq=new Set(["click","mousedown"]);function qq(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:p=0}=t,d=hk(n),v=kd(),g=hg(),b=Ke(()=>d.interactedInside?!0:l.current.openEvent?Hq.has(l.current.openEvent.type):!1),S=Ke(()=>{const P=l.current.openEvent?.type;return P?.includes("mouse")&&P!=="mousedown"}),E=Ke(P=>Cm(P,n.context.triggerElements)),x=M.useCallback((P,T=!0)=>{const L=Fq(p,d.pointerType);L&&!d.handler?d.openChangeTimeout.start(L,()=>n.setOpen(!1,ln(to,P))):T&&(d.openChangeTimeout.clear(),n.setOpen(!1,ln(to,P)))},[p,n,d]),R=Ke(()=>{d.unbindMouseMove(),d.handler=void 0}),C=Ke(()=>{if(d.performedPointerEventsMutation){const P=sn(i).body;P.style.pointerEvents="",P.removeAttribute(hS),d.performedPointerEventsMutation=!1}}),I=Ke(P=>{const T=js(P);if(!Vq(T)){d.interactedInside=!1;return}d.interactedInside=!0});Ct(()=>{r||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,R(),C())},[r,d,R,C]),M.useEffect(()=>()=>{R()},[R]),M.useEffect(()=>C,[C]),Ct(()=>{if(f&&r&&d.handleCloseOptions?.blockPointerEvents&&S()&&Lt(c)&&i){d.performedPointerEventsMutation=!0;const P=sn(i).body;P.setAttribute(hS,"");const T=c,L=i,j=v?.nodesRef.current.find(V=>V.id===g)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),P.style.pointerEvents="none",T.style.pointerEvents="auto",L.style.pointerEvents="auto",()=>{P.style.pointerEvents="",T.style.pointerEvents="",L.style.pointerEvents=""}}},[f,r,c,i,d,S,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 T(V){d.openChangeTimeout.clear(),C(),d.handler?.(V),R()}function L(V){b()||x(V,!1)}const j=i;return j&&(j.addEventListener("mouseleave",P),j.addEventListener("mouseenter",T),j.addEventListener("mouseleave",L),j.addEventListener("pointerdown",I,!0)),()=>{j&&(j.removeEventListener("mouseleave",P),j.removeEventListener("mouseenter",T),j.removeEventListener("mouseleave",L),j.removeEventListener("pointerdown",I,!0))}},[f,i,n,l,b,E,x,C,R,I,d])}function Fq(e,t){return t&&!bd(t)?0:typeof e=="function"?e():e}function nb(e){return typeof e=="function"?e():e}const Gq={current:null};function Kq(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:p=!1,restMs:d=0,move:v=!0,triggerElementRef:g=Gq,externalTree:b,isActiveTrigger:S=!0}=t,E=kd(b),x=hk(n),R=ho(f),C=ho(l),I=ho(d),P=ho(c);S&&(x.handleCloseOptions=R.current?.__options);const T=Ke(()=>x.interactedInside?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),L=Ke(ne=>Cm(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(to,ne))):te&&(x.openChangeTimeout.clear(),n.setOpen(!1,ln(to,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(hS),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(T()||!r.current.floatingContext||L(ne.relatedTarget))return;const te=g.current;R.current?.({...r.current.floatingContext,tree:E,x:ne.clientX,y:ne.clientY,onClose(){N(),V(),!T()&&te===n.select("domReferenceElement")&&j(ne)}})(ne)});return M.useEffect(()=>{if(!c)return;const ne=g.current??(S?n.select("domReferenceElement"):null);if(!Lt(ne))return;function te(me){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,p&&!bd(x.pointerType)||nb(I.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"),z=!ue||J;J&&ue?n.setOpen(!0,ln(to,me,ve)):ge?x.openChangeTimeout.start(ge,()=>{z&&n.setOpen(!0,ln(to,me,ve))}):z&&n.setOpen(!0,ln(to,me,ve))}function F(me){if(T()){N();return}x.unbindMouseMove();const ge=n.select("domReferenceElement"),H=sn(ge);if(x.restTimeout.clear(),x.restTimeoutPending=!1,L(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&&!T()&&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,S,T,L,p,v,I,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(p&&!bd(x.pointerType)||H&&!re||nb(I.current)===0||!re&&x.restTimeoutPending&&te.movementX**2+te.movementY**2<2)return;x.restTimeout.clear();function J(){if(x.restTimeoutPending=!1,T())return;const ve=n.select("open");!x.blockMouseMove&&(!ve||re)&&n.setOpen(!0,ln(to,F,oe))}x.pointerType==="touch"?Ma.flushSync(()=>{J()}):re&&H?J():(x.restTimeoutPending=!0,x.restTimeout.start(nb(I.current),J))}}},[c,x,T,p,n,I])}function mk(e=[]){const t=e.map(d=>d?.reference),n=e.map(d=>d?.floating),r=e.map(d=>d?.item),i=e.map(d=>d?.trigger),c=M.useCallback(d=>qh(d,e,"reference"),t),l=M.useCallback(d=>qh(d,e,"floating"),n),f=M.useCallback(d=>qh(d,e,"item"),r),p=M.useCallback(d=>qh(d,e,"trigger"),i);return M.useMemo(()=>({getReferenceProps:c,getFloatingProps:l,getItemProps:f,getTriggerProps:p}),[c,l,f,p])}function qh(e,t,n){const r=new Map,i=n==="item",c={};n==="floating"&&(c.tabIndex=-1,c[iS]="");for(const l in e)i&&e&&(l===xP||l===wP)||(c[l]=e[l]);for(let l=0;lr.get(i)?.map(f=>f(...l)).find(f=>f!==void 0))):e[i]=c)}}const Zq=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Qq(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,p=Md(),d=c?.id||p,v=M.useMemo(()=>aS(l)?.id||i,[l,i]),g=Zq.get(f)??f,S=hg()!=null,E=M.useMemo(()=>g==="tooltip"||f==="label"?ir:{"aria-haspopup":g==="alertdialog"?"dialog":g,"aria-expanded":"false",...g==="listbox"&&{role:"combobox"},...g==="menu"&&S&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[g,S,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:d}},[g,v,r,d,f,E]),R=M.useMemo(()=>{const I={id:v,...g&&{role:g}};return g==="tooltip"||f==="label"?I:{...I,...g==="menu"&&{"aria-labelledby":d}}},[g,v,d,f]),C=M.useCallback(({active:I,selected:P})=>{const T={role:"option",...I&&{id:`${v}-fui-option`}};switch(f){case"select":case"combobox":return{...T,"aria-selected":P}}return{}},[v,f]);return M.useMemo(()=>({reference:x,floating:R,item:C,trigger:E}),[x,R,E,C])}function r2(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-p)*(r-d)/(g-d)+p&&(i=!i)}return i}function Yq(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Xq(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Eo;let c=!1,l=null,f=null,p=typeof performance<"u"?performance.now():0;function d(g,b){const S=performance.now(),E=S-p;if(l===null||f===null||E===0)return l=g,f=b,p=S,null;const x=g-l,R=b-f,I=Math.sqrt(x*x+R*R)/E;return l=g,f=b,p=S,I}const v=({x:g,y:b,placement:S,elements:E,onClose:x,nodeId:R,tree:C})=>function(P){function T(){i.clear(),x()}if(i.clear(),!E.domReference||!E.floating||S==null||g==null||b==null)return;const{clientX:L,clientY:j}=P,V=[L,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=S.split("-")[0],ge=g>oe.right-oe.width/2,H=b>oe.bottom-oe.height/2,re=Yq(V,F),J=oe.width>F.width,ve=oe.height>F.height,ue=(J?F:oe).left,z=(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&&Oc(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 T();let Ee=[];switch(me){case"top":Ee=[[ue,F.top+1],[ue,oe.bottom-1],[z,oe.bottom-1],[z,F.top+1]];break;case"bottom":Ee=[[ue,oe.top+1],[ue,F.bottom-1],[z,F.bottom-1],[z,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(!r2([L,j],Ee)){if(c&&!re)return T();if(!Q&&r){const Se=d(P.clientX,P.clientY);if(Se!==null&&Se<.1)return T()}r2([L,j],xe([g,b]))?!c&&r&&i.start(40,T):T()}};return v.__options={blockPointerEvents:n},v}let Wq=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),Jq=(function(e){return e[e.open=Ac.open]="open",e[e.closed=Ac.closed]="closed",e[e.startingStyle=Ac.startingStyle]="startingStyle",e[e.endingStyle=Ac.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const gk=M.createContext(void 0);function eF(){const e=M.useContext(gk);if(e===void 0)throw new Error(pi(26));return e}const yk="ArrowUp",vk="ArrowDown",bk="ArrowLeft",Sk="ArrowRight",_k="Home",Ek="End",tF=new Set([bk,Sk]),nF=new Set([yk,vk]),sF=new Set([...tF,...nF]);[...sF];const rF=new Set([yk,vk,bk,Sk,_k,Ek]),oF={...Pd,...c_,nestedDialogOpen(e){return e?{[Jq.nestedDialogOpen]:""}:null}},iF=M.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:c,render:l,...f}=t,{store:p}=Hc(),d=p.useState("descriptionElementId"),v=p.useState("disablePointerDismissal"),g=p.useState("floatingRootContext"),b=p.useState("popupProps"),S=p.useState("modal"),E=p.useState("mounted"),x=p.useState("nested"),R=p.useState("nestedOpenDialogCount"),C=p.useState("open"),I=p.useState("openMethod"),P=p.useState("titleElementId"),T=p.useState("transitionStatus"),L=p.useState("role");eF(),l_({open:C,ref:p.context.popupRef,onComplete(){C&&p.context.onOpenChangeComplete?.(!0)}});function j(te){return te==="touch"?p.context.popupRef.current:!0}const V=c===void 0?j:c,N=R>0,ne=zr("div",t,{state:{open:C,nested:x,transitionStatus:T,nestedDialogOpen:N},props:[b,{"aria-labelledby":P??void 0,"aria-describedby":d??void 0,role:L,tabIndex:-1,hidden:!E,onKeyDown(te){rF.has(te.key)&&te.stopPropagation()},style:{[Wq.nestedDialogs]:R}},f],ref:[n,p.context.popupRef,p.useStateSetter("popupElement")],stateAttributesMapping:oF});return k.jsx(y7,{context:g,openInteractionType:I,disabled:!E,closeOnFocusOut:!v,initialFocus:V,returnFocus:i,modal:S!==!1,restoreFocus:"popup",children:ne})});function aF(e){return XS(19)?e:e?"true":void 0}const cF=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%, - 0% 100%, - 0% 0%, - ${l.left}px ${l.top}px, - ${l.left}px ${l.bottom}px, - ${l.right}px ${l.bottom}px, - ${l.right}px ${l.top}px, - ${l.left}px ${l.top}px - )`}return k.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),lF=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:c}=Hc(),l=c.useState("mounted"),f=c.useState("modal"),p=c.useState("open");return l||r?k.jsx(gk.Provider,{value:r,children:k.jsxs(d7,{ref:n,...i,children:[l&&f===!0&&k.jsx(cF,{ref:c.context.internalBackdropRef,inert:aF(!p)}),t.children]})}):null});function xk(e){const t=M.useRef(!0);t.current&&(t.current=!1,e())}let o2={},i2={},a2="";function uF(e){if(typeof document>"u")return!1;const t=sn(e);return Dn(t).innerWidth-t.documentElement.clientWidth>0}function fF(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=Pa(r)?r:i,l=c.style.overflowY,f=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",c.style.overflowY="scroll";const p=c.offsetWidth;c.style.overflowY="hidden";const d=c.offsetWidth;return c.style.overflowY=l,r.style.scrollbarGutter=f,p===d}function dF(e){const t=sn(e),n=t.documentElement,r=t.body,i=Pa(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 pF(e){const t=sn(e),n=t.documentElement,r=t.body,i=Dn(n);let c=0,l=0,f=!1;const p=po.create();if(bP&&(i.visualViewport?.scale??1)!==1)return()=>{};function d(){const b=i.getComputedStyle(n),S=i.getComputedStyle(r),R=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=n.scrollTop,l=n.scrollLeft,o2={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},a2=n.style.scrollBehavior,i2={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,P=b.overflowY==="scroll"||S.overflowY==="scroll",T=b.overflowX==="scroll"||S.overflowX==="scroll",L=Math.max(0,i.innerWidth-r.clientWidth),j=Math.max(0,i.innerHeight-r.clientHeight),V=parseFloat(S.marginTop)+parseFloat(S.marginBottom),N=parseFloat(S.marginLeft)+parseFloat(S.marginRight),Q=Pa(n)?n:r;if(f=fF(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"),(I||T)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:V||j?`calc(100dvh - ${V+j}px)`:"100dvh",width:N||L?`calc(100vw - ${N+L}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,o2),Object.assign(r.style,i2),f||(n.scrollTop=c,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=a2)}function g(){v(),p.request(d)}return d(),i.addEventListener("resize",g),()=>{p.cancel(),v(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class hF{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=Dn(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=QD;return}const c=SP||!uF(t);this.restore=c?dF(t):pF(t)}}const mF=new hF;function gF(e=!0,t=null){Ct(()=>{if(e)return mF.acquire(t)},[e,t])}function yF(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 vF(e){const[t,n]=M.useState(null),r=Ke((f,p)=>{e||n(p||(SP?"touch":""))}),i=M.useCallback(()=>{n(null)},[]),{onClick:c,onPointerDown:l}=yF(r);return M.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:c,onPointerDown:l}}),[t,i,c,l])}function bF(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:p,triggerProps:d,reset:v}=vF(i);lk(t);const{forceUnmount:g}=uk(i,t,()=>{v()}),b=Ke(ne=>{const te=ln(ne);return te.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},te}),S=M.useCallback(()=>{t.setOpen(!1,b(UP))},[t,b]);M.useImperativeHandle(r,()=>({unmount:g,close:S}),[g,S]);const E=pk({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[x,R]=M.useState(0),C=x===0,I=Qq(E),P=sk(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});gF(i&&l===!0,f);const{getReferenceProps:T,getFloatingProps:L,getTriggerProps:j}=mk([I,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(()=>T(d),[T,d]),N=M.useMemo(()=>j(d),[j,d]),Q=M.useMemo(()=>L(),[L]);t.useSyncedValues({openMethod:p,activeTriggerProps:V,inactiveTriggerProps:N,popupProps:Q,floatingRootContext:E,nestedOpenDialogCount:x})}const SF={...dk,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 _F extends h_{constructor(t){super(EF(t),{popupRef:M.createRef(),backdropRef:M.createRef(),internalBackdropRef:M.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new gg,onOpenChange:void 0,onOpenChangeComplete:void 0},SF)}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 EF(e={}){return{...fk(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function xF(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:c,disablePointerDismissal:l=!1,modal:f=!0,actionsRef:p,handle:d,triggerId:v,defaultTriggerId:g=null}=e,b=Hc(!0),S=!!b,E=$r(()=>d?.store??new _F({open:r,openProp:n,activeTriggerId:g,triggerIdProp:v,modal:f,disablePointerDismissal:l,nested:S})).current;xk(()=>{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:S,modal:f}),E.useContextCallback("onOpenChange",i),E.useContextCallback("onOpenChangeComplete",c);const x=E.useState("payload");bF({store:E,actionsRef:p,parentContext:b?.store.context});const R=M.useMemo(()=>({store:E}),[E]);return k.jsx(jP.Provider,{value:R,children:typeof t=="function"?t({payload:x}):t})}const wF=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=Hc(),p=n_(c);return f.useSyncedValueWithCleanup("titleElementId",p),zr("h2",t,{ref:n,props:[{id:p},l]})});function RF(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(xF,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}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(lF,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}function AF(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(JH,{className:i,"data-slot":"sheet-overlay",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function IF(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,p=l===void 0?!0:l;let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=k.jsx(AF,{}),t[6]=d):d=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]!==p?(g=p&&k.jsxs(e7,{"data-slot":"sheet-close",render:k.jsx(lu,{className:"absolute top-4 right-4",size:"icon-sm",variant:"ghost"}),children:[k.jsx(F9,{}),k.jsx("span",{className:"sr-only",children:"Close"})]}),t[9]=p,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(CF,{children:[d,k.jsxs(iF,{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 TF(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 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("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(wF,{className:i,"data-slot":"sheet-title",...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("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(t7,{className:i,"data-slot":"sheet-description",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const wk=M.createContext(void 0);function Nd(e){const t=M.useContext(wk);if(t===void 0&&!e)throw new Error(pi(72));return t}const DF={...dk,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 y_ extends h_{constructor(t){super({...PF(),...t},{popupRef:M.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new gg},DF)}setOpen=(t,n)=>{const r=n.reason,i=r===to,c=t&&r===om,l=!t&&(r===km||r===f_);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const f=()=>{const p={open:t,openChangeReason:r};c?p.instantType="focus":l?p.instantType="dismiss":r===to&&(p.instantType=void 0);const d=n.trigger?.id??null;(d||t)&&(p.activeTriggerId=d,p.activeTriggerElement=n.trigger??null),this.update(p)};i?Ma.flushSync(f):f()};static useStore(t,n){const r=$r(()=>new y_(n)).current,i=t??r,c=pk({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=c,i}}function PF(){return{...fk(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const kF=ak(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:c=!1,trackCursorAxis:l="none",actionsRef:f,onOpenChange:p,onOpenChangeComplete:d,handle:v,triggerId:g,defaultTriggerId:b=null,children:S}=t,E=y_.useStore(v?.store,{open:r,openProp:i,activeTriggerId:b,triggerIdProp:g});xk(()=>{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",p),E.useContextCallback("onOpenChangeComplete",d);const x=E.useState("open"),R=!n&&x,C=E.useState("activeTriggerId"),I=E.useState("payload");E.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:c}),Ct(()=>{x&&n&&E.setOpen(!1,ln(FH))},[x,n,E]),E.useSyncedValue("disabled",n),lk(E);const{forceUnmount:P,transitionStatus:T}=uk(R,E),L=E.useState("isInstantPhase"),j=E.useState("instantType"),V=E.useState("lastOpenChangeReason"),N=M.useRef(null);Ct(()=>{T==="ending"&&V===u_||T!=="ending"&&L?(j!=="delay"&&(N.current=j),E.set("instantType","delay")):N.current!==null&&(E.set("instantType",N.current),N.current=null)},[T,L,V,j,E]),Ct(()=>{R&&C==null&&E.set("payload",void 0)},[E,C,R]);const Q=M.useCallback(()=>{E.setOpen(!1,NF(E,UP))},[E]);M.useImperativeHandle(f,()=>({unmount:P,close:Q}),[P,Q]);const ne=E.useState("floatingRootContext"),te=sk(ne,{enabled:!n,referencePress:!0}),F=b7(ne,{enabled:!n&&l!=="none",axis:l==="none"?void 0:l}),{getReferenceProps:oe,getFloatingProps:me,getTriggerProps:ge}=mk([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(wk.Provider,{value:E,children:typeof S=="function"?S({payload:I}):S})});function NF(e,t){const n=ln(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const Rk=M.createContext(void 0);function LF(){return M.useContext(Rk)}let $F=(function(e){return e[e.popupOpen=Nm.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const zF=600,BF=Cq(function(t,n){const{className:r,render:i,handle:c,payload:l,disabled:f,delay:p,closeDelay:d,id:v,...g}=t,b=Nd(!0),S=c?.store??b;if(!S)throw new Error(pi(82));const E=n_(v),x=S.useState("isTriggerActive",E),R=S.useState("isOpenedByTrigger",E),C=S.useState("floatingRootContext"),I=M.useRef(null),P=p??zF,T=d??0,{registerTrigger:L,isMountedByThisTrigger:j}=Lq(E,I,S,{payload:l,closeDelay:T}),V=LF(),{delayRef:N,isInstantPhase:Q,hasProvider:ne}=a7(C,{open:R});S.useSyncedValue("isInstantPhase",Q);const te=S.useState("disabled"),F=f??te,oe=S.useState("trackCursorAxis"),me=S.useState("disableHoverablePopup"),ge=Kq(C,{enabled:!F,mouseOnly:!0,move:!1,handleClose:!me&&oe!=="both"?Xq():null,restMs(){const ue=V?.delay,z=typeof N.current=="object"?N.current.open:void 0;let ee=P;return ne&&(z!==0?ee=p??ue??P:ee=0),ee},delay(){const ue=typeof N.current=="object"?N.current.close:void 0;let z=T;return d==null&&ne&&(z=ue),{close:z}},triggerElementRef:I,isActiveTrigger:x}),H=Uq(C,{enabled:!F}).reference,re={open:R},J=S.useState("triggerProps",j);return zr("button",t,{state:re,ref:[n,L,I],props:[ge,H,J,{id:E,[$F.triggerDisabled]:F?"":void 0},g],stateAttributesMapping:XH})}),Ck=M.createContext(void 0);function UF(){const e=M.useContext(Ck);if(e===void 0)throw new Error(pi(70));return e}const jF=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,...f}=t,{portalNode:p,portalSubtree:d}=ZP({container:i,ref:n,componentProps:t,elementProps:f});return!d&&!p?null:k.jsxs(M.Fragment,{children:[d,p&&Ma.createPortal(r,p)]})}),VF=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Nd().useState("mounted")||r?k.jsx(Ck.Provider,{value:r,children:k.jsx(jF,{ref:n,...i})}):null}),Ak=M.createContext(void 0);function Ik(){const e=M.useContext(Ak);if(e===void 0)throw new Error(pi(71));return e}const HF=M.createContext(void 0);function qF(){return M.useContext(HF)?.direction??"ltr"}const FF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:c,platform:l,elements:f,middlewareData:p}=t,{element:d,padding:v=0,offsetParent:g="real"}=ui(e,t)||{};if(d==null)return{};const b=CP(v),S={x:n,y:r},E=a_(i),x=i_(E),R=await l.getDimensions(d),C=E==="y",I=C?"top":"left",P=C?"bottom":"right",T=C?"clientHeight":"clientWidth",L=c.reference[x]+c.reference[E]-S[E]-c.floating[x],j=S[E]-c.reference[E],V=g==="real"?await l.getOffsetParent?.(d):f.floating;let N=f.floating[T]||c.floating[x];(!N||!await l.isElement?.(V))&&(N=f.floating[T]||c.floating[x]);const Q=L/2-j/2,ne=N/2-R[x]/2-1,te=Math.min(b[I],ne),F=Math.min(b[P],ne),oe=te,me=N-R[x]-F,ge=N/2-R[x]/2+Q,H=cS(oe,ge,me),re=!p.arrow&&Na(i)!=null&&ge!==H&&c.reference[x]/2-(ge({...FF(e),options:[e,t]}),KF={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 iq().fn(e)).data?.referenceHidden||c}}}},cm={sideX:"left",sideY:"top"},ZF={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:c,strategy:l,placement:f}=e,p=Dn(i),d=p.getComputedStyle(i);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:n,data:cm};const g=await c.getOffsetParent?.(i);let b={width:0,height:0};if(l==="fixed"&&p?.visualViewport)b={width:p.visualViewport.width,height:p.visualViewport.height};else if(g===p){const I=sn(i);b={width:I.documentElement.clientWidth,height:I.documentElement.clientHeight}}else await c.isElement?.(g)&&(b=await c.getDimensions(g));const S=Fs(f);let E=t,x=n;S==="left"&&(E=b.width-(t+r.width)),S==="top"&&(x=b.height-(n+r.height));const R=S==="left"?"right":cm.sideX,C=S==="top"?"bottom":cm.sideY;return{x:E,y:x,data:{sideX:R,sideY:C}}}};function Tk(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 c2(e,t,n){const{rects:r,placement:i}=e;return{side:Tk(t,Fs(i),n),align:Na(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function QF(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:p=5,sticky:d=!1,arrowPadding:v=5,disableAnchorTracking:g=!1,keepMounted:b=!1,floatingRootContext:S,mounted:E,collisionAvoidance:x,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:I,lazyFlip:P=!1,externalTree:T}=e,[L,j]=M.useState(null);!E&&L!==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=qF()==="rtl",H=L||{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=p;const ve=1,ue=r==="bottom"?ve:0,z=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+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 Ee={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:J},xe=M.useRef(null),Se=ho(i),Oe=ho(l),tt=[tq(Jt=>{const ds=c2(Jt,r,ge),mr=typeof Se.current=="function"?Se.current(ds):Se.current,Wn=typeof Oe.current=="function"?Oe.current(ds):Oe.current;return{mainAxis:mr,crossAxis:Wn,alignmentAxis:Wn}},[typeof i!="function"?i:0,typeof l!="function"?l:0,ge,r])],kt=N==="none"&&V!=="shift",he=!kt&&(d||R||V==="shift"),Re=V==="none"?null:rq({...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:nq(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:d||R?void 0:sq(mr=>{if(!xe.current)return{};const{width:Wn,height:Ps}=xe.current.getBoundingClientRect(),ko=Lr(Fs(mr.placement)),gr=ko==="y"?Wn:Ps,ki=ko==="y"?J.left+J.right:J.top+J.bottom;return{offset:gr/2+ki/2}})}},[Ee,d,R,J,N]);V==="shift"||N==="shift"||c==="center"?tt.push(_e,Re):tt.push(Re,_e),tt.push(oq({...Ee,apply({elements:{floating:Jt},rects:{reference:ds},availableWidth:mr,availableHeight:Wn}){const Ps=Jt.style;Ps.setProperty("--available-width",`${mr}px`),Ps.setProperty("--available-height",`${Wn}px`),Ps.setProperty("--anchor-width",`${ds.width}px`),Ps.setProperty("--anchor-height",`${ds.height}px`)}}),GF(()=>({element:xe.current||document.createElement("div"),padding:v,offsetParent:"floating"}),[v]),{name:"transformOrigin",fn(Jt){const{elements:ds,middlewareData:mr,placement:Wn,rects:Ps,y:ko}=Jt,gr=Fs(Wn),ki=Lr(gr),Ni=xe.current,yy=mr.arrow?.x||0,hp=mr.arrow?.y||0,Fu=Ni?.clientWidth||0,nc=Ni?.clientHeight||0,Gu=yy+Fu/2,Ku=hp+nc/2,mp=Math.abs(mr.shift?.y||0),gp=Ps.reference.height/2,No=typeof i=="function"?i(c2(Jt,r,ge)):i,Zu=mp>No,yp={top:`${Gu}px calc(100% + ${No}px)`,bottom:`${Gu}px ${-No}px`,left:`calc(100% + ${No}px) ${Ku}px`,right:`${-No}px ${Ku}px`}[gr],vp=`${Gu}px ${Ps.reference.y+gp-ko}px`;return ds.floating.style.setProperty("--transform-origin",he&&ki==="y"&&Zu?vp:yp),{}}},KF,I),Ct(()=>{!E&&S&&S.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,S]);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}=Bq({rootContext:S,placement:re,middleware:tt,strategy:n,whileElementsMounted:b?void 0:(...Jt)=>JT(...Jt,Ze),nodeId:C,externalTree:T}),{sideX:Je,sideY:Mt}=ot.adaptiveOrigin||cm,it=wt?n:"fixed",Ds=M.useMemo(()=>{const Jt=I?{position:it,[Je]:De,[Mt]:nt}:{position:it,...Xn};return wt||(Jt.opacity=0),Jt},[I,it,Je,De,Mt,nt,Xn,wt]),hr=M.useRef(null);Ct(()=>{if(!E)return;const Jt=oe.current,ds=typeof Jt=="function"?Jt():Jt,Wn=(l2(ds)?ds.current:ds)||null||null;Wn!==hr.current&&(Me.setPositionReference(Wn),hr.current=Wn)},[E,Me,F,oe]),M.useEffect(()=>{if(!E)return;const Jt=oe.current;typeof Jt!="function"&&l2(Jt)&&Jt.current!==hr.current&&(Me.setPositionReference(Jt.current),hr.current=Jt.current)},[E,Me,F,oe]),M.useEffect(()=>{if(b&&E&&Ve.domReference&&Ve.floating)return JT(Ve.domReference,Ve.floating,Ge,Ze)},[b,E,Ve,Ge,Ze]);const Po=Fs(bt),pp=Tk(r,Po,ge),Pi=Na(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:pp,align:Pi,physicalSide:Po,anchorHidden:us,refs:Me,context:Xt,isPositioned:wt,update:Ge}),[Ds,Gr,xe,fs,pp,Pi,Po,us,Me,Xt,wt,Ge])}function l2(e){return e!=null&&"current"in e}function Ok(e){return e==="starting"?n9:ir}const YF=M.forwardRef(function(t,n){const{render:r,className:i,anchor:c,positionMethod:l="absolute",side:f="top",align:p="center",sideOffset:d=0,alignOffset:v=0,collisionBoundary:g="clipping-ancestors",collisionPadding:b=5,arrowPadding:S=5,sticky:E=!1,disableAnchorTracking:x=!1,collisionAvoidance:R=r9,...C}=t,I=Nd(),P=UF(),T=I.useState("open"),L=I.useState("mounted"),j=I.useState("trackCursorAxis"),V=I.useState("disableHoverablePopup"),N=I.useState("floatingRootContext"),Q=I.useState("instantType"),ne=I.useState("transitionStatus"),te=I.useState("hasViewport"),F=QF({anchor:c,positionMethod:l,floatingRootContext:N,mounted:L,side:f,sideOffset:d,align:p,alignOffset:v,collisionBoundary:g,collisionPadding:b,sticky:E,arrowPadding:S,disableAnchorTracking:x,keepMounted:P,collisionAvoidance:R,adaptiveOrigin:te?ZF:void 0}),oe=M.useMemo(()=>{const re={};return(!T||j==="both"||V)&&(re.pointerEvents="none"),{role:"presentation",hidden:!L,style:{...F.positionerStyles,...re}}},[T,j,V,L,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]),H=zr("div",t,{state:me,props:[oe,Ok(ne),C],ref:[n,I.useStateSetter("positionerElement")],stateAttributesMapping:Pd});return k.jsx(Ak.Provider,{value:ge,children:H})}),XF={...Pd,...c_},WF=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,l=Nd(),{side:f,align:p}=Ik(),d=l.useState("open"),v=l.useState("instantType"),g=l.useState("transitionStatus"),b=l.useState("popupProps"),S=l.useState("floatingRootContext");l_({open:d,ref:l.context.popupRef,onComplete(){d&&l.context.onOpenChangeComplete?.(!0)}});const E=l.useState("disabled"),x=l.useState("closeDelay");return qq(S,{enabled:!E,closeDelay:x}),zr("div",t,{state:{open:d,side:f,align:p,instant:v,transitionStatus:g},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[b,Ok(g),c],stateAttributesMapping:XF})}),JF=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,f=Nd().useState("instantType"),{open:p,arrowRef:d,side:v,align:g,arrowUncentered:b,arrowStyles:S}=Ik();return zr("div",t,{state:{open:p,side:v,align:g,uncentered:b,instant:f},ref:[n,d],props:[{style:S,"aria-hidden":!0},c],stateAttributesMapping:Pd})}),eG=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(Rk.Provider,{value:c,children:k.jsx(i7,{delay:l,timeoutMs:i,children:t.children})})};function tG(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(eG,{"data-slot":"tooltip-provider",delay:i,...n}),t[3]=i,t[4]=n,t[5]=c):c=t[5],c}function nG(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(tG,{children:k.jsx(kF,{"data-slot":"tooltip",...n})}),t[2]=n,t[3]=r):r=t[3],r}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(BF,{"data-slot":"tooltip-trigger",...n}),t[2]=n,t[3]=r):r=t[3],r}function rG(e){const t=qt.c(21);let n,r,i,c,l,f,p;t[0]!==e?({className:r,side:c,sideOffset:l,align:f,alignOffset:p,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]=p):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],p=t[7]);const d=c===void 0?"top":c,v=l===void 0?4:l,g=f===void 0?"center":f,b=p===void 0?0:p;let S;t[8]!==r?(S=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]=S):S=t[9];let E;t[10]===Symbol.for("react.memo_cache_sentinel")?(E=k.jsx(JF,{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]!==S?(x=k.jsxs(WF,{className:S,"data-slot":"tooltip-content",...i,children:[n,E]}),t[11]=n,t[12]=i,t[13]=S,t[14]=x):x=t[14];let R;return t[15]!==g||t[16]!==b||t[17]!==d||t[18]!==v||t[19]!==x?(R=k.jsx(VF,{children:k.jsx(YF,{align:g,alignOffset:b,className:"isolate z-50",side:d,sideOffset:v,children:x})}),t[15]=g,t[16]=b,t[17]=d,t[18]=v,t[19]=x,t[20]=R):R=t[20],R}const oG=768,iG=`(max-width: ${oG-1}px)`,mS=window.matchMedia(iG);function aG(e){return mS.addEventListener("change",e),()=>mS.removeEventListener("change",e)}function cG(){return mS.matches}function lG(){return M.useSyncExternalStore(aG,cG)}const uG="sidebar_state",fG=3600*24*7,dG="12rem",pG="16rem",hG="3rem",mG="b",Mk=M.createContext(null);function yg(){const e=M.useContext(Mk);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,p;t[0]!==e?({defaultOpen:p,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]=p):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],p=t[7]);const d=p===void 0?!0:p,v=lG(),[g,b]=M.useState(!1),[S,E]=M.useState(d),x=i??S;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 I;t[11]!==v||t[12]!==C?(I=()=>v?b(vG):C(yG),t[11]=v,t[12]=C,t[13]=I):I=t[13];const P=I;let T,L;t[14]!==P?(T=()=>{const me=ge=>{ge.key===mG&&(ge.metaKey||ge.ctrlKey)&&(ge.preventDefault(),P())};return window.addEventListener("keydown",me),()=>window.removeEventListener("keydown",me)},L=[P],t[14]=P,t[15]=T,t[16]=L):(T=t[15],L=t[16]),M.useEffect(T,L);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(Mk.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 p=c===void 0?"left":c,d=l===void 0?"sidebar":l,v=f===void 0?"offExamples":f,{isMobile:g,state:b,openMobile:S,setOpenMobile:E}=yg();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(TF,{className:"sr-only",children:[k.jsx(OF,{children:"Sidebar"}),k.jsx(MF,{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]!==p||t[18]!==te?(F=k.jsxs(IF,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:p,style:Q,children:[ne,te]}),t[17]=p,t[18]=te,t[19]=F):F=t[19];let oe;return t[20]!==S||t[21]!==i||t[22]!==E||t[23]!==F?(oe=k.jsx(RF,{onOpenChange:E,open:S,...i,children:F}),t[20]=S,t[21]=i,t[22]=E,t[23]=F,t[24]=oe):oe=t[24],oe}const x=b==="collapsed"?v:"",R=d==="floating"||d==="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 I;t[27]!==C?(I=k.jsx("div",{className:C,"data-slot":"sidebar-gap"}),t[27]=C,t[28]=I):I=t[28];const P=p==="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=d==="floating"||d==="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 L;t[29]!==r||t[30]!==P||t[31]!==T?(L=bn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",P,T,r),t[29]=r,t[30]=P,t[31]=T,t[32]=L):L=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]!==L||t[37]!==j?(V=k.jsx("div",{className:L,"data-slot":"sidebar-container",...i,children:j}),t[35]=i,t[36]=L,t[37]=j,t[38]=V):V=t[38];let N;return t[39]!==p||t[40]!==b||t[41]!==V||t[42]!==x||t[43]!==I||t[44]!==d?(N=k.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":x,"data-side":p,"data-slot":"sidebar","data-state":b,"data-variant":d,children:[I,V]}),t[39]=p,t[40]=b,t[41]=V,t[42]=x,t[43]=I,t[44]=d,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}=yg();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 p,d;t[9]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(L9,{}),d=k.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),t[9]=p,t[10]=d):(p=t[9],d=t[10]);let v;return t[11]!==i||t[12]!==l||t[13]!==f?(v=k.jsxs(lu,{className:l,"data-sidebar":"trigger","data-slot":"sidebar-trigger",onClick:f,size:"icon-lg",variant:"ghost",...i,children:[p,d]}),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}=yg();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:p,render:d,...v}=e;n=d,c=YD,r="div",i=cg({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",p)},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 Hl(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 Ar(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=JD("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 Ir(e){const t=qt.c(15);let{render:n,isActive:r,variant:i,size:c,tooltip:l,className:f,...p}=e;const d=r===void 0?!1:r,v=i===void 0?"default":i,g=c===void 0?"default":c,{isMobile:b,state:S}=yg(),E="button",x=cg({className:bn(wG({variant:v,size:g}),f)},p),R=l?sG:n;let C;t[0]!==d||t[1]!==g?(C={slot:"sidebar-menu-button",sidebar:"menu-button",size:g,active:d},t[0]=d,t[1]=g,t[2]=C):C=t[2];let I;t[3]!==x||t[4]!==R||t[5]!==C?(I={defaultTagName:E,props:x,render:R,state:C},t[3]=x,t[4]=R,t[5]=C,t[6]=I):I=t[6];const P=YD(I);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 T=S!=="collapsed"||b;let L;t[9]!==T||t[10]!==l?(L=k.jsx(rG,{align:"center",hidden:T,side:"right",...l}),t[9]=T,t[10]=l,t[11]=L):L=t[11];let j;return t[12]!==P||t[13]!==L?(j=k.jsxs(nG,{children:[P,L]}),t[12]=P,t[13]=L,t[14]=j):j=t[14],j}function RG(){const e=qt.c(8),{theme:t,setTheme:n}=Hj();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(j9,{className:"size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),l=k.jsx(D9,{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 p;return e[6]!==i?(p=k.jsxs(lu,{className:"rounded-full",onClick:i,size:"icon-sm",variant:"ghost",children:[c,l,f]}),e[6]=i,e[7]=p):p=e[7],p}function Dk(){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(lu,{variant:"outline",children:"Go back home"})})]}),e[2]=r):r=e[2],r}function de(e,t,n){function r(f,p){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:p,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,p);const d=l.prototype,v=Object.keys(d);for(let g=0;gn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class nu extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Pk extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const kk={};function $c(e){return kk}function Nk(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 gS(e,t){return typeof t=="bigint"?t.toString():t}function v_(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function b_(e){return e==null}function S_(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 p=r.match(/\d?e-(\d?)/);p?.[1]&&(i=Number.parseInt(p[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 u2=Symbol("evaluating");function Ht(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==u2)return r===void 0&&(r=u2,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function qc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function La(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function f2(e){return JSON.stringify(e)}function IG(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Lk="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Bm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const TG=v_(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function _d(e){if(Bm(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Bm(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function $k(e){return _d(e)?{...e}:Array.isArray(e)?[...e]:e}const OG=new Set(["string","number","symbol"]);function vg(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $a(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=La(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 qc(this,"shape",l),l},checks:[]});return $a(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=La(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 qc(this,"shape",l),l},checks:[]});return $a(e,c)}function NG(e,t){if(!_d(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=La(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return qc(this,"shape",c),c}});return $a(e,i)}function LG(e,t){if(!_d(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=La(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return qc(this,"shape",r),r}});return $a(e,n)}function $G(e,t){const n=La(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return qc(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return $a(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=La(t._zod.def,{get shape(){const f=t._zod.def.shape,p={...f};if(n)for(const d in n){if(!(d in f))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(p[d]=e?new e({type:"optional",innerType:f[d]}):f[d])}else for(const d in f)p[d]=e?new e({type:"optional",innerType:f[d]}):f[d];return qc(this,"shape",p),p},checks:[]});return $a(t,l)}function BG(e,t,n){const r=La(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 qc(this,"shape",c),c}});return $a(t,r)}function Xl(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 Fh(e){return typeof e=="string"?e:e?.message}function zc(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=Fh(e.inst?._zod.def?.error?.(e))??Fh(t?.error?.(e))??Fh(n.customError?.(e))??Fh(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function __(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ed(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Bk=(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,gS,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Uk=de("$ZodError",Bk),bg=de("$ZodError",Bk,{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 nu;if(l.issues.length){const f=new(i?.Err??e)(l.issues.map(p=>zc(p,c,$c())));throw Lk(f,i?.callee),f}return l.value},xMe=Sg(bg),_g=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(p=>zc(p,c,$c())));throw Lk(f,i?.callee),f}return l.value},wMe=_g(bg),Eg=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 nu;return c.issues.length?{success:!1,error:new(e??Uk)(c.issues.map(l=>zc(l,i,$c())))}:{success:!0,data:c.value}},VG=Eg(bg),xg=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=>zc(l,i,$c())))}:{success:!0,data:c.value}},HG=xg(bg),qG=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Sg(e)(t,n,i)},FG=e=>(t,n,r)=>Sg(e)(t,n,r),GG=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return _g(e)(t,n,i)},KG=e=>async(t,n,r)=>_g(e)(t,n,r),ZG=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Eg(e)(t,n,i)},QG=e=>(t,n,r)=>Eg(e)(t,n,r),YG=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return xg(e)(t,n,i)},XG=e=>async(t,n,r)=>xg(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})$/,d2=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}=))?$/,jk=/^[A-Za-z0-9_-]*$/,hK=/^\+[1-9]\d{6,14}$/,Vk="(?:(?:\\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(`^${Vk}$`);function Hk(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(`^${Hk(e)}$`)}function yK(e){const t=Hk({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(`^${Vk}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]*$/,Gs=de("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qk={number:"number",bigint:"bigint",object:"date"},Fk=de("$ZodCheckLessThan",(e,t)=>{Gs.init(e,t);const n=qk[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{Gs.init(e,t);const n=qk[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)=>{Gs.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)=>{Gs.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;Gs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!b_(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=__(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;Gs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!b_(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=__(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;Gs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!b_(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=__(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})}}),wg=de("$ZodCheckStringFormat",(e,t)=>{var n,r;Gs.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)=>{wg.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),wg.init(e,t)}),MK=de("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xK),wg.init(e,t)}),DK=de("$ZodCheckIncludes",(e,t)=>{Gs.init(e,t);const n=vg(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)=>{Gs.init(e,t);const n=new RegExp(`^${vg(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)=>{Gs.init(e,t);const n=new RegExp(`.*${vg(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)=>{Gs.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 $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,p)=>{let d=Xl(l),v;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(l))continue}else if(d)continue;const b=l.issues.length,S=g._zod.check(l);if(S instanceof Promise&&p?.async===!1)throw new nu;if(v||S instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await S,l.issues.length!==b&&(d||(d=Xl(l,b)))});else{if(l.issues.length===b)continue;d||(d=Xl(l,b))}}return v?v.then(()=>l):l},c=(l,f,p)=>{if(Xl(l))return l.aborted=!0,l;const d=i(f,r,p);if(d instanceof Promise){if(p.async===!1)throw new nu;return d.then(v=>e._zod.parse(v,p))}return e._zod.parse(d,p)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const d=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return d instanceof Promise?d.then(v=>c(v,l,f)):c(d,l,f)}const p=e._zod.parse(l,f);if(p instanceof Promise){if(f.async===!1)throw new nu;return p.then(d=>i(d,r,f))}return i(p,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}))}),E_=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)=>{wg.init(e,t),E_.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=d2(r))}else t.pattern??(t.pattern=d2());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 Kk(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=>{Kk(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function rZ(e){if(!jk.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Kk(n)}const oZ=de("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=jk),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})}}),Zk=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),Zk.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 p2(e,t,n){e.issues.length&&t.issues.push(...zk(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;lp2(d,n,l))):p2(p,n,l)}return c.length?Promise.all(c).then(()=>n):n}});function Um(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...zk(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Qk(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 Yk(e,t,n,r,i,c){const l=[],f=i.keySet,p=i.catchall._zod,d=p.def.type,v=p.optout==="optional";for(const g in t){if(f.has(g))continue;if(d==="never"){l.push(g);continue}const b=p.run({value:t[g],issues:[]},r);b instanceof Promise?e.push(b.then(S=>Um(S,n,g,t,v))):Um(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 p={...f};return Object.defineProperty(t,"shape",{value:p}),p}})}const r=v_(()=>Qk(t));Ht(e._zod,"propValues",()=>{const f=t.shape,p={};for(const d in f){const v=f[d]._zod;if(v.values){p[d]??(p[d]=new Set);for(const g of v.values)p[d].add(g)}}return p});const i=Bm,c=t.catchall;let l;e._zod.parse=(f,p)=>{l??(l=r.value);const d=f.value;if(!i(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;f.value={};const v=[],g=l.shape;for(const b of l.keys){const S=g[b],E=S._zod.optout==="optional",x=S._zod.run({value:d[b],issues:[]},p);x instanceof Promise?v.push(x.then(R=>Um(R,f,b,d,E))):Um(x,f,b,d,E)}return c?Yk(v,d,f,p,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=v_(()=>Qk(t)),i=b=>{const S=new LK(["shape","payload","ctx"]),E=r.value,x=P=>{const T=f2(P);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};S.write("const input = payload.value;");const R=Object.create(null);let C=0;for(const P of E.keys)R[P]=`key_${C++}`;S.write("const newResult = {};");for(const P of E.keys){const T=R[P],L=f2(P),V=b[P]?._zod?.optout==="optional";S.write(`const ${T} = ${x(P)};`),V?S.write(` - if (${T}.issues.length) { - if (${L} in input) { - payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${L}, ...iss.path] : [${L}] - }))); - } - } - - if (${T}.value === undefined) { - if (${L} in input) { - newResult[${L}] = undefined; - } - } else { - newResult[${L}] = ${T}.value; - } - - `):S.write(` - if (${T}.issues.length) { - payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${L}, ...iss.path] : [${L}] - }))); - } - - if (${T}.value === undefined) { - if (${L} in input) { - newResult[${L}] = undefined; - } - } else { - newResult[${L}] = ${T}.value; - } - - `)}S.write("payload.value = newResult;"),S.write("return payload;");const I=S.compile();return(P,T)=>I(b,P,T)};let c;const l=Bm,f=!kk.jitless,d=f&&TG.value,v=t.catchall;let g;e._zod.parse=(b,S)=>{g??(g=r.value);const E=b.value;return l(E)?f&&d&&S?.async===!1&&S.jitless!==!0?(c||(c=i(t.shape)),b=c(b,S),v?Yk([],E,b,S,g,e):b):n(b,S):(b.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),b)}});function h2(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=>!Xl(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=>zc(l,r,$c())))}),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=>S_(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 p of t.options){const d=p._zod.run({value:i.value,issues:[]},c);if(d instanceof Promise)f.push(d),l=!0;else{if(d.issues.length===0)return d;f.push(d)}}return l?Promise.all(f).then(p=>h2(p,i,e,c)):h2(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(([p,d])=>m2(n,p,d)):m2(n,c,l)}});function yS(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(_d(e)&&_d(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=yS(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}),Xl(e))return e;const l=yS(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=Nk(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"?vg(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 Pk(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 nu;return n.value=i,n}});function g2(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Xk=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(`^(${S_(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=>g2(c,n.value)):g2(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),SZ=de("$ZodExactOptional",(e,t)=>{Xk.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(`^(${S_(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=>y2(c,t)):y2(i,t)}});function y2(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=>v2(c,e)):v2(i,e)}});function v2(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=>zc(l,r,$c()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>zc(c,r,$c()))},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=>Gh(l,t.in,r)):Gh(c,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(c=>Gh(c,t.out,r)):Gh(i,t.out,r)}});function Gh(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(b2):b2(i)}});function b2(e){return e.value=Object.freeze(e.value),e}const IZ=de("$ZodCustom",(e,t)=>{Gs.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=>S2(c,n,r,e));S2(i,n,r,e)}});function S2(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(Ed(i))}}var _2;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}(_2=globalThis).__zod_globalRegistry??(_2.__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 E2(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 x2(e,t){return new Fk({check:"less_than",...je(t),value:e,inclusive:!1})}function sb(e,t){return new Fk({check:"less_than",...je(t),value:e,inclusive:!0})}function w2(e,t){return new Gk({check:"greater_than",...je(t),value:e,inclusive:!1})}function rb(e,t){return new Gk({check:"greater_than",...je(t),value:e,inclusive:!0})}function R2(e,t){return new wK({check:"multiple_of",...je(t),value:e})}function Wk(e,t){return new CK({check:"max_length",...je(t),maximum:e})}function jm(e,t){return new AK({check:"min_length",...je(t),minimum:e})}function Jk(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(Ed(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(Ed(i))}},e(n.value,n)));return t}function EQ(e,t){const n=new Gs({check:"custom",...je(t)});return n._zod.check=e,n}function e3(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,S=t.processors[i.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);S(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 p=t.metadataRegistry.get(e);return p&&Object.assign(l.schema,p),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 t3(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 p=r.get(f);if(p&&p!==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 S=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=S,{defId:S,ref:`${b("__shared")}#/${f}/${S}`}}if(l[1]===n)return{ref:"#"};const d=`#/${f}/`,v=l[1].schema.id??`__schema${e.counter++}`;return{defId:v,ref:d+v}},c=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:p,defId:d}=i(l);f.def={...f.schema},d&&(f.defId=d);const v=f.schema;for(const g in v)delete v[g];v.$ref=p};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 d=e.external.registry.get(l[0])?.id;if(t!==l[0]&&d){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 n3(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 p=f.def??f.schema,d={...p},v=f.ref;if(f.ref=null,v){r(v);const b=e.seen.get(v),S=b.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(S)):Object.assign(p,S),Object.assign(p,d),l._zod.parent===v)for(const x in p)x==="$ref"||x==="allOf"||x in d||delete p[x];if(S.$ref&&b.def)for(const x in p)x==="$ref"||x==="allOf"||x in b.def&&JSON.stringify(p[x])===JSON.stringify(b.def[x])&&delete p[x]}const g=l._zod.parent;if(g&&g!==v){r(g);const b=e.seen.get(g);if(b?.schema.$ref&&(p.$ref=b.schema.$ref,b.def))for(const S in p)S==="$ref"||S==="allOf"||S in b.def&&JSON.stringify(p[S])===JSON.stringify(b.def[S])&&delete p[S]}e.override({zodSchema:l,jsonSchema:p,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:Vm(t,"input",e.processors),output:Vm(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=e3({...n,processors:t});return as(e,r),t3(r,e),n3(r,e)},Vm=(e,t,n={})=>r=>{const{libraryOptions:i,target:c}=r??{},l=e3({...i??{},target:c,io:t,processors:n});return as(e,l),t3(l,e),n3(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:p,contentEncoding:d}=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),d&&(i.contentEncoding=d),p&&p.size>0){const v=[...p];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:p,exclusiveMaximum:d,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 d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=d,i.exclusiveMaximum=!0):i.exclusiveMaximum=d),typeof l=="number"&&(i.maximum=l,typeof d=="number"&&t.target!=="draft-04"&&(d<=l?delete i.maximum:delete i.exclusiveMaximum)),typeof p=="number"&&(i.multipleOf=p)},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=Nk(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 d in l)i.properties[d]=as(l[d],t,{...r,path:[...r.path,"properties",d]});const f=new Set(Object.keys(l)),p=new Set([...f].filter(d=>{const v=c.shape[d]._zod;return t.io==="input"?v.optin===void 0:v.optout===void 0}));p.size>0&&(i.required=Array.from(p)),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,p)=>as(f,t,{...r,path:[...r.path,c?"oneOf":"anyOf",p]}));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=d=>"allOf"in d&&Object.keys(d).length===1,p=[...f(c)?c.allOf:[c],...f(l)?l.allOf:[l]];n.allOf=p},$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},s3=(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)=>{Uk.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,gS,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,gS,2)}},isEmpty:{get(){return e.issues.length===0}}})},Br=de("ZodError",WQ,{Parent:Error}),JQ=Sg(Br),eY=_g(Br),tY=Eg(Br),nY=xg(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:Vm(e,"input"),output:Vm(e,"output")}}),e.toJSONSchema=xQ(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(La(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)=>$a(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=()=>O2(e),e.exactOptional=()=>GY(e),e.nullable=()=>M2(e),e.nullish=()=>O2(M2(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=>D2(e,qY(n)),e.default=n=>QY(e,n),e.prefault=n=>XY(e,n),e.catch=n=>eX(e,n),e.pipe=n=>D2(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)),r3=de("_ZodString",(e,t)=>{E_.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(jm(...r)),e.max=(...r)=>e.check(Wk(...r)),e.length=(...r)=>e.check(Jk(...r)),e.nonempty=(...r)=>e.check(jm(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)=>{E_.init(e,t),r3.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(E2(A2,n)),e.uuid=n=>e.check(PZ(Kh,n)),e.uuidv4=n=>e.check(kZ(Kh,n)),e.uuidv6=n=>e.check(NZ(Kh,n)),e.uuidv7=n=>e.check(LZ(Kh,n)),e.nanoid=n=>e.check(BZ(mY,n)),e.guid=n=>e.check(E2(A2,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 C2(e){return MZ(fY,e)}const fn=de("ZodStringFormat",(e,t)=>{an.init(e,t),r3.init(e,t)}),dY=de("ZodEmail",(e,t)=>{UK.init(e,t),fn.init(e,t)}),A2=de("ZodGUID",(e,t)=>{zK.init(e,t),fn.init(e,t)}),Kh=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)}),o3=de("ZodNumber",(e,t)=>{Zk.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,i,c)=>CQ(e,r,i),e.gt=(r,i)=>e.check(w2(r,i)),e.gte=(r,i)=>e.check(rb(r,i)),e.min=(r,i)=>e.check(rb(r,i)),e.lt=(r,i)=>e.check(x2(r,i)),e.lte=(r,i)=>e.check(sb(r,i)),e.max=(r,i)=>e.check(sb(r,i)),e.int=r=>e.check(I2(r)),e.safe=r=>e.check(I2(r)),e.positive=r=>e.check(w2(0,r)),e.nonnegative=r=>e.check(rb(0,r)),e.negative=r=>e.check(x2(0,r)),e.nonpositive=r=>e.check(sb(0,r)),e.multipleOf=(r,i)=>e.check(R2(r,i)),e.step=(r,i)=>e.check(R2(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 RMe(e){return sQ(o3,e)}const TY=de("ZodNumberFormat",(e,t)=>{lZ.init(e,t),o3.init(e,t)});function I2(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 CMe(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 T2(){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(jm(n,r)),e.nonempty=n=>e.check(jm(1,n)),e.max=(n,r)=>e.check(Wk(n,r)),e.length=(n,r)=>e.check(Jk(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:T2()}),e.loose=()=>e.clone({...e._zod.def,catchall:T2()}),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(i3,e,n[0]),e.required=(...n)=>BG(a3,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 vS=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 vS({...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 vS({...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 vS({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 Pk(e.constructor.name);n.addIssue=c=>{if(typeof c=="string")n.issues.push(Ed(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(Ed(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 i3=de("ZodOptional",(e,t)=>{Xk.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>s3(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function O2(e){return new i3({type:"optional",innerType:e})}const FY=de("ZodExactOptional",(e,t)=>{SZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>s3(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 M2(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():$k(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():$k(t)}})}const a3=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 a3({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 D2(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 x_="hive:v1:aws-credentials",aX=$Y({accessKeyId:C2().min(16,"Access Key ID must be at least 16 characters"),secretAccessKey:C2().min(1,"Secret Access Key is required")});let ri;function Ld(){if(ri!==void 0)return ri;try{const e=localStorage.getItem(x_);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 AMe(e){try{localStorage.setItem(x_,JSON.stringify(e)),ri=e}catch{ri=e}}function cX(){try{localStorage.removeItem(x_)}catch{}ri=null}const w_=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),R_=e=>({httpHandler:e.httpHandler()});var xd;(function(e){e.HTTP="http",e.HTTPS="https"})(xd||(xd={}));var wd;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(wd||(wd={}));const bS="__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 Bc{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},C_=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:p,overrideOutputFilterSensitiveLog:d}=f,v=p??t.inputFilterSensitiveLog,g=d??t.outputFilterSensitiveLog,{$metadata:b,...S}=r.output;return l?.info?.({clientName:i,commandName:c,input:v(n.input),output:g(S),metadata:b}),r}catch(r){const{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:p}=f,d=p??t.inputFilterSensitiveLog;throw l?.error?.({clientName:i,commandName:c,input:d(n.input),error:r,metadata:r.$metadata}),r}},pX={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},A_=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),I_=e=>({applyToStack:t=>{t.add(mX(),hX)}}),Ro=e=>e[bS]||(e[bS]={}),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),p=yX(e.httpAuthSchemes),d=Ro(r),v=[];for(const g of f){const b=p.get(g.schemeId);if(!b){v.push(`HttpAuthScheme \`${g.schemeId}\` was not enabled for this service.`);continue}const S=b.identityProvider(await t.identityProviderConfigProvider(e));if(!S){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),d.selectedHttpAuthScheme={httpAuthOption:g,identity:await S(g.identityProperties),signer:b.signer};break}if(!d.selectedHttpAuthScheme)throw new Error(v.join(` -`));return n(i)},bX={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},T_=(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:p}=c,d=await t({...r,request:await p.sign(r.request,f,l)}).catch((p.errorHandler||_X)(l));return(p.successHandler||EX)(d.response,l),d},c3={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},O_=e=>({applyToStack:t=>{t.addRelativeTo(xX(),c3)}}),su=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},l3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P2=Object.entries(l3).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),wX=l3.split(""),ru=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>=ru;const f=i/4*3;c>>=l%ad;const p=Math.floor(l/ad);for(let d=0;d>v)}}return new Uint8Array(n)},xo=e=>new TextEncoder().encode(e),Rd=e=>typeof e=="string"?xo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),za=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 fi(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-p)}return i}class Mc extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?Mc.mutate(Ia(t)):Mc.mutate(xo(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,Mc.prototype),t}transformToString(t="utf-8"){return t==="base64"?fi(this):za(this)}}const k2=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,p=f?l(i,e):void 0,d=e.getReader();return new ReadableStream({async pull(v){const{value:g,done:b}=await d.read();if(b){if(v.enqueue(`0\r -`),f){const S=n(await p);v.enqueue(`${c}:${S}\r -`),v.enqueue(`\r -`)}v.close()}else v.enqueue(`${(r(g)||0).toString(16)}\r -${g}\r -`)}})};async function AX(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done:p,value:d}=await i.read();if(d&&(r.push(d),n+=d?.byteLength??0),n>=t)break;c=p}i.releaseLock();const l=new Uint8Array(Math.min(t,n));let f=0;for(const p of r){if(p.byteLength>l.byteLength-f){l.set(p.subarray(0,l.byteLength-f),f);break}else l.set(p,f);f+=p.length}return l}const Dc=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=Dc(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 ob={supported:void 0};class $d{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new $d(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),ob.supported===void 0&&(ob.supported=typeof Request<"u"&&"keepalive"in N2("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=L2(n);return Promise.reject(I)}let f=t.path;const p=TX(t.query||{});p&&(f+=`?${p}`),t.fragment&&(f+=`#${t.fragment}`);let d="";if(t.username!=null||t.password!=null){const I=t.username??"",P=t.password??"";d=`${I}:${P}@`}const{port:v,method:g}=t,b=`${t.protocol}//${d}${t.hostname}${v?`:${v}`:""}${f}`,S=g==="GET"||g==="HEAD"?void 0:t.body,E={body:S,headers:new Headers(t.headers),method:g,credentials:l};this.config?.cache&&(E.cache=this.config.cache),S&&(E.duplex="half"),typeof AbortController<"u"&&(E.signal=n),ob.supported&&(E.keepalive=c),typeof this.config.requestInit=="function"&&Object.assign(E,this.config.requestInit(t));let x=()=>{};const R=N2(b,E),C=[fetch(R).then(I=>{const P=I.headers,T={};for(const j of P.entries())T[j[0]]=j[1];return I.body!=null?{response:new Bc({headers:T,reason:I.statusText,statusCode:I.status,body:I.body})}:I.blob().then(j=>({response:new Bc({headers:T,reason:I.statusText,statusCode:I.status,body:j})}))}),OX(i)];return n&&C.push(new Promise((I,P)=>{const T=()=>{const L=L2(n);P(L)};if(typeof n.addEventListener=="function"){const L=n;L.addEventListener("abort",T,{once:!0}),x=()=>L.removeEventListener("abort",T)}else n.onabort=T})),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??{}}}function L2(e){const t=e&&typeof e=="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error)return t;const r=new Error(String(t));return r.name="AbortError",r}const n=new Error("Request aborted");return n.name="AbortError",n}const Rg=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:p}=await n.read();p&&(t.push(p),i+=p.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 u3={},SS={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),u3[e]=t,SS[t]=e}function f3(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(!z2(e)&&!k2(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($2);return t=!0,await Rg(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 fi(c);if(i==="hex")return Vs(c);if(i===void 0||i==="utf8"||i==="utf-8")return za(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($2);if(t=!0,z2(e))return r(e);if(k2(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},z2=e=>typeof Blob=="function"&&e instanceof Blob;async function kX(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const ba=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Mc.mutate(e);if(!e)return Mc.mutate(new Uint8Array);const n=t.streamCollector(e);return Mc.mutate(await n)};function Hm(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const lm=e=>typeof e=="function"?e():e,p3=(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,p,d,v]=c??[];try{const g=await e.protocol.deserializeResponse(p3(l,f,p,d,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(Bc.isInstance(i)){const{headers:S={}}=i,E=Object.entries(S);g.$metadata={httpStatusCode:i.statusCode,requestId:ib(/^x-[\w-]+-request-?id$/,E),extendedRequestId:ib(/^x-[\w-]+-id-2$/,E),cfId:ib(/^x-[\w-]+-cf-id$/,E)}}}catch{}}throw g}},ib=(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,p,d]=i??[],v=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,g=await e.protocol.serializeRequest(p3(c,l,f,p,d),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 M_(e){return{applyToStack:t=>{t.add(LX(e),zX),t.add(NX(e),$X),e.protocol.setSerdeContext(e)}}}function Wl(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 B2={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;ab(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,Wl(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(ab(n)){const[r,i]=n;if(r instanceof zt)return Object.assign(r.getMergedTraits(),Wl(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 Wl(this.memberTraits)}getOwnTraits(){return Wl(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(ab(i)?i:[i,0],t)}if(this.isDocumentSchema())return Qf([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has 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[B2.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)),U2=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}`)}},j2=e=>h3(e,16),V2=e=>h3(e,8),h3=(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=>U2(typeof e=="string"?D_(e):e),FX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,D_=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)},_S=e=>j2(typeof e=="string"?D_(e):e),GX=e=>V2(typeof e=="string"?D_(e):e),KX=e=>String(new TypeError(e).stack||e).split(` -`).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` -`),ZX={warn:console.warn},QX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],P_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qm(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),c=e.getUTCHours(),l=e.getUTCMinutes(),f=e.getUTCSeconds(),p=i<10?`0${i}`:`${i}`,d=c<10?`0${c}`:`${c}`,v=l<10?`0${l}`:`${l}`,g=f<10?`0${f}`:`${f}`;return`${QX[r]}, ${p} ${P_[n]} ${t} ${d}:${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})$/),IMe=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,p,d]=t;return cb(_S(Fm(c)),lb(i),ou(r,"day",1,31),{hours:l,minutes:f,seconds:p,fractionalMilliseconds:d})}if(t=XX.exec(e),t){const[n,r,i,c,l,f,p,d]=t;return tW(cb(JX(c),lb(i),ou(r,"day",1,31),{hours:l,minutes:f,seconds:p,fractionalMilliseconds:d}))}if(t=WX.exec(e),t){const[n,r,i,c,l,f,p,d]=t;return cb(_S(Fm(d)),lb(r),ou(i.trimLeft(),"day",1,31),{hours:c,minutes:l,seconds:f,fractionalMilliseconds:p})}throw new TypeError("Invalid RFC-7231 date-time value")},cb=(e,t,n,r)=>{const i=t-1;return sW(e,i,n),new Date(Date.UTC(e,i,n,ou(r.hours,"hour",0,23),ou(r.minutes,"minute",0,59),ou(r.seconds,"seconds",0,60),oW(r.fractionalMilliseconds)))},JX=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+_S(Fm(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,lb=e=>{const t=P_.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 ${P_[t]} in ${e}: ${n}`)},rW=e=>e%4===0&&(e%100!==0||e%400===0),ou=(e,t,n,r)=>{const i=GX(Fm(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,Fm=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),Cg=()=>{if(H2)return H2();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]]},Sa=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Sa.from=e=>e&&typeof e=="object"&&(e instanceof Sa||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Sa(String(e)):Sa(JSON.stringify(e));Sa.fromObject=Sa.from;function iW(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const k_="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",N_="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",L_="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",m3="(\\d?\\d)",g3="(\\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(`^${k_}, ${m3} ${N_} ${g3} ${L_} GMT$`),lW=new RegExp(`^${k_}, ${m3}-${N_}-(\\d\\d) ${L_} GMT$`),uW=new RegExp(`^${k_} ${N_} ( [1-9]|\\d\\d) ${L_} ${g3}$`),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,,p,d]=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(p)?Math.round(parseFloat(`0.${p}`)*1e3):0));if(v.setUTCFullYear(Number(n)),d.toUpperCase()!="Z"){const[,g,b,S]=/([+-])(\d\d):(\d\d)/.exec(d)||[void 0,"+",0,0],E=g==="-"?1:-1;v.setTime(v.getTime()+E*(Number(b)*60*60*1e3+Number(S)*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,p;if((p=cW.exec(e))?[,t,n,r,i,c,l,f]=p:(p=lW.exec(e))?([,t,n,r,i,c,l,f]=p,r=(Number(r)+1900).toString()):(p=uW.exec(e))&&([,n,t,i,c,l,f,r]=p),r&&l){const d=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(d);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,'"'))})},q2=/^-?\d*(\.\d+)?$/;class zd{string;type;constructor(t,n){if(this.string=t,this.type=n,!q2.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 zd.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&q2.test(n.string)}}const gW="modulepreload",yW=function(e){return"/"+e},F2={},pt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let p=function(d){return Promise.all(d.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=p(n.map(d=>{if(d=yW(d),d in F2)return;F2[d]=!0;const v=d.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${g}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":gW,v||(b.as="script"),b.crossOrigin="",b.href=d,f&&b.setAttribute("nonce",f),document.head.appendChild(b),v)return new Promise((S,E)=>{b.addEventListener("load",S),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${d}`)))})}))}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 Ag{serdeContext;setSerdeContext(t){this.serdeContext=t}}class v3 extends Ag{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 Bc}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=Wl(n.traits??{});if(c.endpoint){let l=c.endpoint?.[0];if(typeof l=="string"){const f=[...i.structIterator()].filter(([,p])=>p.getMergedTraits().hostLabel);for(const[p]of f){const d=r[p];if(typeof d!="string")throw new Error(`@smithy/core/schema - ${p} in input must be a string as hostLabel.`);l=l.replace(`{${p}}`,d)}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 v3{async serializeRequest(t,n,r){const i={...n??{}},c=this.serializer,l={},f={},p=await r.endpoint(),d=zt.of(t?.input),v=[],g=[];let b=!1,S;const E=new Qn({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:l,headers:f,body:void 0});if(p){this.updateServiceEndpoint(E,p),this.setHostPrefix(E,t,i);const x=Wl(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 I=new URLSearchParams(C??"");Object.assign(l,Object.fromEntries(I))}}for(const[x,R]of d.structIterator()){const C=R.getMergedTraits()??{},I=i[x];if(I==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]&&(S=await this.serializeEventStream({eventStream:i[x],requestSchema:d})):S=I:(c.write(R,I),S=c.flush()),delete i[x];else if(C.httpLabel){c.write(R,I);const P=c.flush();E.path.includes(`{${x}+}`)?E.path=E.path.replace(`{${x}+}`,P.split("/").map(Hm).join("/")):E.path.includes(`{${x}}`)&&(E.path=E.path.replace(`{${x}}`,Hm(P))),delete i[x]}else if(C.httpHeader)c.write(R,I),f[C.httpHeader.toLowerCase()]=String(c.flush()),delete i[x];else if(typeof C.httpPrefixHeaders=="string"){for(const[P,T]of Object.entries(I)){const L=C.httpPrefixHeaders+P;c.write([R.getValueSchema(),{httpHeader:L}],T),f[L.toLowerCase()]=c.flush()}delete i[x]}else C.httpQuery||C.httpQueryParams?(this.serializeQuery(R,I,l),delete i[x]):(b=!0,v.push(x),g.push(R))}if(b&&i){const[x,R]=(d.getName(!0)??"#Unknown").split("#"),C=d.getSchema()[6],I=[3,x,R,d.getMergedTraits(),v,g,void 0];C?I[6]=C:I.pop(),c.write(I,i),S=c.flush()}return E.headers=f,E.query=l,E.body=S,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 p=t.getValueSchema();Object.assign(p.getMergedTraits(),{...c,httpQuery:l,httpQueryParams:void 0}),this.serializeQuery(p,f,r)}return}if(t.isListSchema()){const l=!!t.getMergedTraits().sparse,f=[];for(const p of n){i.write([t.getValueSchema(),c],p);const d=i.flush();(l||d!==void 0)&&f.push(d)}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 p=await ba(r.body,n);throw p.byteLength>0&&Object.assign(l,await i.read(15,p)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const p in r.headers){const d=r.headers[p];delete r.headers[p],r.headers[p.toLowerCase()]=d}const f=await this.deserializeHttpMessage(c,n,r,l);if(f.length){const p=await ba(r.body,n);if(p.byteLength>0){const d=await i.read(c,p);for(const v of f)d[v]!=null&&(l[v]=d[v])}}else f.discardResponseBody&&await ba(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 p=this.deserializer,d=zt.of(t),v=[];for(const[g,b]of d.structIterator()){const S=b.getMemberTraits();if(S.httpPayload){if(f=!1,b.isStreaming())b.isStructSchema()?l[g]=await this.deserializeEventStream({response:r,responseSchema:d}):l[g]=d3(r.body);else if(r.body){const x=await ba(r.body,n);x.byteLength>0&&(l[g]=await p.read(b,x))}}else if(S.httpHeader){const E=String(S.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=y3(x);const I=[];for(const P of C)I.push(await p.read(R,P.trim()));l[g]=I}else l[g]=await p.read(b,x)}else if(S.httpPrefixHeaders!==void 0){l[g]={};for(const[E,x]of Object.entries(r.headers))if(E.startsWith(S.httpPrefixHeaders)){const R=b.getValueSchema();R.getMergedTraits().httpHeader=E,l[g][E.slice(S.httpPrefixHeaders.length)]=await p.read(R,x)}}else S.httpResponseCode?l[g]=r.statusCode:v.push(g)}return v.discardResponseBody=f,v}}class bW extends v3{async serializeRequest(t,n,r){const i=this.serializer,c={},l={},f=await r.endpoint(),p=zt.of(t?.input),d=p.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 S=p.getEventStreamMember();if(S){if(b[S]){const E={};for(const[x,R]of p.structIterator())x!==S&&b[x]&&(i.write(R,b[x]),E[x]=i.flush());v=await this.serializeEventStream({eventStream:b[S],requestSchema:p,initialRequest:E})}}else i.write(d,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 p=await ba(r.body,n);throw p.byteLength>0&&Object.assign(l,await i.read(15,p)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const p in r.headers){const d=r.headers[p];delete r.headers[p],r.headers[p.toLowerCase()]=d}const f=c.getEventStreamMember();if(f)l[f]=await this.deserializeEventStream({response:r,responseSchema:c,initialResponseContainer:l});else{const p=await ba(r.body,n);p.byteLength>0&&Object.assign(l,await i.read(c,p))}return l.$metadata=this.deserializeMetadata(r),l}}function Ig(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 b3 extends Ag{settings;constructor(t){super(),this.settings=t}read(t,n){const r=zt.of(t);if(r.isListSchema())return y3(n).map(i=>this.read(r.getValueSchema(),i));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??Ia)(n);if(r.isTimestampSchema())switch(Ig(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=Sa.from(c)),c}return r.isNumericSchema()?Number(n):r.isBigIntegerSchema()?BigInt(n):r.isBigDecimalSchema()?new zd(n,"bigDecimal"):r.isBooleanSchema()?String(n).toLowerCase()==="true":n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??za)((this.serdeContext?.base64Decoder??Ia)(t))}}class SW extends Ag{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new b3(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??za;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 Ag{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(Ig(r,this.settings)){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=qm(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??fi)(n);return}if(r.isListSchema()&&Array.isArray(n)){let l="";for(const f of n){this.write([r.getValueSchema(),r.getMergedTraits()],f);const p=this.flush(),d=r.getValueSchema().isTimestampSchema()?p:iW(p);l!==""&&(l+=", "),l+=d}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=Sa.from(c)),r.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??fi)(c.toString());return}this.stringBuffer=n;break;default:r.isIdempotencyToken()?this.stringBuffer=Cg():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 $_{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 S3(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 p=async d=>{c||(c=r(d));try{i=await c,l=!0,f=!1}finally{c=void 0}return i};return t===void 0?async d=>((!l||d?.forceRefresh)&&(i=await p(d)),i):async d=>((!l||d?.forceRefresh)&&(i=await p(d)),f?i:n(i)?(t(i)&&await p(d),i):(f=!0,i))},IW=void 0;function TW(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function z_(e){const t=su(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 B_{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}$"),_3=e=>OW.test(e)||e.startsWith("[")&&e.endsWith("]"),MW=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Tg=(e,t=!1)=>{if(!t)return MW.test(e);const n=e.split(".");for(const r of n)if(!Tg(r))return!1;return!0},hu={},Cd="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 ur 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 ur(`Path: '${e}' does not end with ']'`);const c=r.slice(i+1,-1);if(Number.isNaN(parseInt(c)))throw new ur(`Invalid array index: '${c}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(c)}else n.push(r)}return n},E3=(e,t)=>PW(t).reduce((n,r)=>{if(typeof n!="object")throw new ur(`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,ub={[xd.HTTP]:80,[xd.HTTPS]:443},LW=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:b,port:S,protocol:E="",path:x="",query:R={}}=e,C=new URL(`${E}//${b}${S?`:${S}`:""}${x}`);return C.search=Object.entries(R).map(([I,P])=>`${I}=${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 p=l.slice(0,-1);if(!Object.values(xd).includes(p))return null;const d=_3(i),v=n.includes(`${r}:${ub[p]}`)||typeof e=="string"&&e.includes(`${r}:${ub[p]}`),g=`${r}${v?`:${ub[p]}`:""}`;return{scheme:p,authority:g,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:d}},$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:E3,isSet:kW,isValidHostLabel:Tg,not:NW,parseURL:LW,stringEquals:$W,substring:zW,uriEncode:BW},x3=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Og=(e,t,n)=>{if(typeof e=="string")return x3(e,n);if(e.fn)return R3.callFunction(e,n);if(e.ref)return jW(e,n);throw new ur(`'${t}': ${String(e)} is not a string, function or reference.`)},w3=({fn:e,argv:t},n)=>{const r=t.map(c=>["boolean","number"].includes(typeof c)?c:R3.evaluateExpression(c,"arg",n)),i=e.split(".");return i[0]in hu&&i[1]!=null?hu[i[0]][i[1]](...r):UW[e](...r)},R3={evaluateExpression:Og,callFunction:w3},VW=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new ur(`'${e}' is already defined in Reference Record.`);const r=w3(t,n);return n.logger?.debug?.(`${Cd} evaluateCondition: ${Ta(t)} = ${Ta(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},U_=(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?.(`${Cd} 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=Og(c,"Header value entry",t);if(typeof l!="string")throw new ur(`Header '${r}' value '${l}' is not a string`);return l})}),{}),C3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:I3.getEndpointProperty(i,t)}),{}),A3=(e,t)=>{if(Array.isArray(e))return e.map(n=>A3(n,t));switch(typeof e){case"string":return x3(e,t);case"object":if(e===null)throw new ur(`Unexpected endpoint property: ${e}`);return I3.getEndpointProperties(e,t);case"boolean":return e;default:throw new ur(`Unexpected endpoint property type: ${typeof e}`)}},I3={getEndpointProperty:A3,getEndpointProperties:C3},qW=(e,t)=>{const n=Og(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 ur(`Endpoint URL must be a string, got ${typeof n}`)},FW=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:i,referenceRecord:c}=U_(n,t);if(!i)return;const l={...t,referenceRecord:{...t.referenceRecord,...c}},{url:f,properties:p,headers:d}=r;return t.logger?.debug?.(`${Cd} Resolving endpoint from template: ${Ta(r)}`),{...d!=null&&{headers:HW(d,l)},...p!=null&&{properties:C3(p,l)},url:qW(f,l)}},GW=(e,t)=>{const{conditions:n,error:r}=e,{result:i,referenceRecord:c}=U_(n,t);if(i)throw new ur(Og(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))},T3=(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=O3.evaluateTreeRule(n,t);if(r)return r}else throw new ur(`Unknown endpoint rule: ${n}`);throw new ur("Rules evaluation failed")},KW=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:c}=U_(n,t);if(i)return O3.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...c}})},O3={evaluateRules:T3,evaluateTreeRule:KW},j_=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:i,rules:c}=e;t.logger?.debug?.(`${Cd} Initial EndpointParams: ${Ta(n)}`);const l=Object.entries(i).filter(([,d])=>d.default!=null).map(([d,v])=>[d,v.default]);if(l.length>0)for(const[d,v]of l)n[d]=n[d]??v;const f=Object.entries(i).filter(([,d])=>d.required).map(([d])=>d);for(const d of f)if(n[d]==null)throw new ur(`Missing required parameter: '${d}'`);const p=T3(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${Cd} Resolved endpoint: ${Ta(p)}`),p},M3=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!M3(n))return!1;return!0}return!(!Tg(e)||e.length<3||e.length>63||e!==e.toLowerCase()||_3(e))},G2=":",ZW="/",QW=e=>{const t=e.split(G2);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(G2)==="")return null;const p=f.map(d=>d.split(ZW)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:p}},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}},Mg={isVirtualHostableS3Bucket:M3,parseArn:QW,partition:JW};hu.aws=Mg;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 mu=e=>{if(typeof e=="string")return mu(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 uo(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 K2=e=>Bc.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,V_=e=>new Date(Date.now()+e),nJ=(e,t)=>Math.abs(V_(t).getTime()-e)>=3e5,Z2=(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},D3=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,p=e?.signingName;return{config:n,signer:c,signingRegion:l,signingRegionSet:f,signingName:p}};class Dg{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 D3(r),{config:c,signer:l}=i;let{signingRegion:f,signingName:p}=i;const d=r.context;if(d?.authSchemes?.length??!1){const[g,b]=d.authSchemes;g?.name==="sigv4a"&&b?.name==="sigv4"&&(f=b?.signingRegion??f,p=b?.signingName??p)}return await l.sign(t,{signingDate:V_(c.systemClockOffset),signingRegion:f,signingService:p})}errorHandler(t){return n=>{const r=n.ServerTime??K2(n.$response);if(r){const i=cd("config",t.config),c=i.systemClockOffset;i.systemClockOffset=Z2(r,i.systemClockOffset),i.systemClockOffset!==c&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=K2(t);if(r){const i=cd("config",n.config);i.systemClockOffset=Z2(r,i.systemClockOffset)}}}class sJ extends Dg{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:p}=await D3(r),v=(await i.sigv4aSigningRegionSet?.()??f??[l]).join(",");return await c.sign(t,{signingDate:V_(i.systemClockOffset),signingRegion:v,signingService:p})}}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 p=>((!c||p?.forceRefresh)&&(r=await f()),r)},oJ=e=>(e.sigv4aSigningRegionSet=su(e.sigv4aSigningRegionSet),e),iJ="X-Amz-Algorithm",aJ="X-Amz-Credential",P3="X-Amz-Date",cJ="X-Amz-SignedHeaders",lJ="X-Amz-Expires",k3="X-Amz-Signature",N3="X-Amz-Security-Token",L3="authorization",$3=P3.toLowerCase(),uJ="date",fJ=[L3,$3,uJ],dJ=k3.toLowerCase(),ES="x-amz-content-sha256",pJ=N3.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-/,fb="AWS4-HMAC-SHA256",yJ="AWS4-HMAC-SHA256-PAYLOAD",vJ="UNSIGNED-PAYLOAD",bJ=50,z3="aws4_request",SJ=3600*24*7,Zh={},db=[],pb=(e,t,n)=>`${e}/${t}/${n}/${z3}`,_J=async(e,t,n,r,i)=>{const c=await Q2(e,t.secretAccessKey,t.accessKeyId),l=`${n}:${r}:${i}:${Vs(c)}:${t.sessionToken}`;if(l in Zh)return Zh[l];for(db.push(l);db.length>bJ;)delete Zh[db.shift()];let f=`AWS4${t.secretAccessKey}`;for(const p of[n,r,i,z3])f=await Q2(e,f,p);return Zh[l]=f},Q2=(e,t,n)=>{const r=new e(t);return r.update(Rd(n)),r.digest()},Y2=({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]",hb=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===ES)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||EJ(t)){const r=new n;return r.update(Rd(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),p=new DataView(new ArrayBuffer(3+f.byteLength));p.setUint8(0,7),p.setUint16(1,f.byteLength,!1);const d=new Uint8Array(p.buffer);return d.set(f,3),d;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(f3(t.value.replace(/\-/g,"")),1),g}}}var X2;(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"})(X2||(X2={}));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 B3{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&&W2(n),new B3(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&W2(t),parseInt(Vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function W2(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}},J2=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=Dc(r);t.push(i);const c=e[r];typeof c=="string"?n[i]=`${i}=${Dc(c)}`:Array.isArray(c)&&(n[i]=c.slice(0).reduce((l,f)=>l.concat([`${i}=${Dc(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)} -${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(Rd(r));const l=await c.digest();return`${i} -${t} -${n} -${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 Dc(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 xS 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:p,signingRegion:d,signingService:v}=n,g=await this.credentialProvider();this.validateResolvedCredentials(g);const b=d??await this.regionProvider(),{longDate:S,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=pb(E,b,v??this.service),R=AJ(J2(t),{unhoistableHeaders:l,hoistableHeaders:p});g.sessionToken&&(R.query[N3]=g.sessionToken),R.query[iJ]=fb,R.query[aJ]=`${g.accessKeyId}/${x}`,R.query[P3]=S,R.query[lJ]=i.toString(10);const C=Y2(R,c,f);return R.query[cJ]=this.getCanonicalHeaderList(C),R.query[k3]=await this.getSignature(S,x,this.getSigningKey(g,b,E,v),this.createCanonicalRequest(R,C,await hb(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:p,longDate:d}=this.formatDate(r),v=pb(p,f,l??this.service),g=await hb({headers:{},body:n},this.sha256),b=new this.sha256;b.update(t);const S=Vs(await b.digest()),E=[yJ,d,v,i,S,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),p=new this.sha256(await this.getSigningKey(c,l,f,i));return p.update(Rd(t)),Vs(await p.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 p=c??await this.regionProvider(),d=J2(t),{longDate:v,shortDate:g}=this.formatDate(n),b=pb(g,p,l??this.service);d.headers[$3]=v,f.sessionToken&&(d.headers[pJ]=f.sessionToken);const S=await hb(d,this.sha256);!CJ(ES,d.headers)&&this.applyChecksum&&(d.headers[ES]=S);const E=Y2(d,i,r),x=await this.getSignature(v,b,this.getSigningKey(f,p,g,l),this.createCanonicalRequest(d,E,S));return d.headers[L3]=`${fb} Credential=${f.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(E)}, Signature=${x}`,d}async getSignature(t,n,r,i){const c=await this.createStringToSign(t,n,i,fb),l=new this.sha256(await r);return l.update(Rd(c)),Vs(await l.digest())}getSigningKey(t,n,r,i){return _J(this.sha256,t,r,n,i||this.service)}}const H_=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(d){d&&d!==t&&d!==r&&(n=!0),t=d;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 S=>{const x=await g(S);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=su(e.signer):e.regionInfoProvider?f=()=>su(e.region)().then(async d=>[await e.regionInfoProvider(d,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},d]).then(([d,v])=>{const{signingRegion:g,signingService:b}=d;e.signingRegion=e.signingRegion||g||v,e.signingName=e.signingName||b||e.serviceId;const S={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},E=e.signerConstructor||xS;return new E(S)}):f=async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await su(e.region)(),properties:{}},d);const v=d.signingRegion,g=d.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},S=e.signerConstructor||xS;return new S(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,S3):n?r=su(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 eO=typeof TextEncoder=="function"?new TextEncoder:null,q_=e=>{if(typeof e=="string"){if(eO)return eO.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}`)},xc=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},ca=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Gm=()=>{let e=[],t=[],n=!1;const r=new Set,i=g=>g.sort((b,S)=>tO[S.step]-tO[b.step]||nO[S.priority||"normal"]-nO[b.priority||"normal"]),c=g=>{let b=!1;const S=E=>{const x=xc(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(S),t=t.filter(S),b},l=g=>{let b=!1;const S=E=>{if(E.middleware===g){b=!0;for(const x of xc(E.name,E.aliases))r.delete(x);return!1}return!0};return e=e.filter(S),t=t.filter(S),b},f=g=>(e.forEach(b=>{g.add(b.middleware,{...b})}),t.forEach(b=>{g.addRelativeTo(b.middleware,{...b})}),g.identifyOnResolve?.(v.identifyOnResolve()),g),p=g=>{const b=[];return g.before.forEach(S=>{S.before.length===0&&S.after.length===0?b.push(S):b.push(...p(S))}),b.push(g),g.after.reverse().forEach(S=>{S.before.length===0&&S.after.length===0?b.push(S):b.push(...p(S))}),b},d=(g=!1)=>{const b=[],S=[],E={};return e.forEach(R=>{const C={...R,before:[],after:[]};for(const I of xc(C.name,C.aliases))E[I]=C;b.push(C)}),t.forEach(R=>{const C={...R,before:[],after:[]};for(const I of xc(C.name,C.aliases))E[I]=C;S.push(C)}),S.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 ${ca(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(p).reduce((R,C)=>(R.push(...C),R),[])},v={add:(g,b={})=>{const{name:S,override:E,aliases:x}=b,R={step:"initialize",priority:"normal",middleware:g,...b},C=xc(S,x);if(C.length>0){if(C.some(I=>r.has(I))){if(!E)throw new Error(`Duplicate middleware name '${ca(S,x)}'`);for(const I of C){const P=e.findIndex(L=>L.name===I||L.aliases?.some(j=>j===I));if(P===-1)continue;const T=e[P];if(T.step!==R.step||R.priority!==T.priority)throw new Error(`"${ca(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${ca(S,x)}" middleware with ${R.priority} priority in ${R.step} step.`);e.splice(P,1)}}for(const I of C)r.add(I)}e.push(R)},addRelativeTo:(g,b)=>{const{name:S,override:E,aliases:x}=b,R={middleware:g,...b},C=xc(S,x);if(C.length>0){if(C.some(I=>r.has(I))){if(!E)throw new Error(`Duplicate middleware name '${ca(S,x)}'`);for(const I of C){const P=t.findIndex(L=>L.name===I||L.aliases?.some(j=>j===I));if(P===-1)continue;const T=t[P];if(T.toMiddleware!==R.toMiddleware||T.relation!==R.relation)throw new Error(`"${ca(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${ca(S,x)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);t.splice(P,1)}}for(const I of C)r.add(I)}t.push(R)},clone:()=>f(Gm()),use:g=>{g.applyToStack(v)},remove:g=>typeof g=="string"?c(g):l(g),removeByTag:g=>{let b=!1;const S=E=>{const{tags:x,name:R,aliases:C}=E;if(x&&x.includes(g)){const I=xc(R,C);for(const P of I)r.delete(P);return b=!0,!1}return!0};return e=e.filter(S),t=t.filter(S),b},concat:g=>{const b=f(Gm());return b.use(g),b.identifyOnResolve(n||b.identifyOnResolve()||(g.identifyOnResolve?.()??!1)),b},applyToStack:f,identify:()=>d(!0).map(g=>{const b=g.step??g.relation+" "+g.toMiddleware;return ca(g.name,g.aliases)+" - "+b}),identifyOnResolve(g){return typeof g=="boolean"&&(n=g),n},resolve:(g,b)=>{for(const S of d().map(E=>E.middleware).reverse())g=S(g,b);return n&&console.log(v.identify()),g}};return v},tO={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},nO={high:3,normal:2,low:1};class F_{config;middlewareStack=Gm();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 p=this.handlers;p.has(t.constructor)?f=p.get(t.constructor):(f=t.resolveMiddleware(this.middlewareStack,this.config,i),p.set(t.constructor,f))}else delete this.handlers,f=t.resolveMiddleware(this.middlewareStack,this.config,i);if(c)f(t).then(p=>c(null,p.output),p=>c(p)).catch(()=>{});else return f(t).then(p=>p.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const mb="***SensitiveInformation***";function wS(e,t){if(t==null)return t;const n=zt.of(e);if(n.getMergedTraits().sensitive)return mb;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return mb}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return mb}else if(n.isStructSchema()&&typeof t=="object"){const r=t,i={};for(const[c,l]of n.structIterator())r[c]!=null&&(i[c]=wS(l,r[c]));return i}return t}class xn{middlewareStack=Gm();schema;static classBuilder(){return new kJ}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:p,smithyContext:d,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:S}=n,E={logger:S,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:p,[bS]:{commandInstance:this,...d},...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,p=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?wS.bind(null,f):d=>d),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?wS.bind(null,p):d=>d),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class _a 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 _a.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===_a?_a.isInstance(t):_a.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const sO=(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},G_=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{}}},U3=Object.values(wd),NJ=e=>{const t=[];for(const n in wd){const r=wd[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();U3.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();U3.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},K_=e=>Object.assign(NJ(e),$J(e)),Z_=e=>Object.assign(LJ(e),zJ(e)),j3=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]=j3(e[n]));return e};class Pg{trace(){}debug(){}info(){}warn(){}error(){}}class V3{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:p,httpHeader:d,httpLabel:v,httpPrefixHeaders:g}=l.getMergedTraits();return!f&&!p&&!d&&!v&&g===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,c,l){let f=n,p=t;t.includes("#")&&([f,p]=t.split("#"));const d={$metadata:c,$fault:r.statusCode<500?"client":"server"},v=Gn.for(f);try{return{errorSchema:l?.(v,p)??v.getSchema(t),errorMetadata:d}}catch{i.message=i.message??i.Message??"UnknownError";const b=Gn.for("smithy.ts.sdk.synthetic."+f),S=b.getBaseException();if(S){const E=b.getErrorCtor(S)??Error;throw this.decorateServiceException(Object.assign(new E({name:p}),d),i)}throw this.decorateServiceException(Object.assign(new Error(p),d),i)}}decorateServiceException(t,n={}){if(this.queryCompat){const r=t.Message??n.Message,i=sO(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 sO(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[p,d]of l)f[p==="message"?"Message":p]=d;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 kg{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 RS{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 RS(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 gb;function VJ(e){gb||(gb=new DOMParser);const t=gb.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 p of l)c[`${p.name}`]=p.value;const f=Array.from(i.childNodes);for(const p of f){const d=n(p);if(d!=null){const v=p.nodeName;if(f.length===1&&l.length===0&&v==="#text")return d;c[v]?Array.isArray(c[v])?c[v].push(d):c[v]=[c[v],d]:c[v]=d}else if(f.length===1&&l.length===0)return i.textContent}return c}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}class H3 extends kg{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new b3(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(d=>!!d.getMemberTraits().eventPayload)){const d={},v=Object.keys(c)[0];return c[v].isBlobSchema()?d[v]=n:d[v]=this.read(c[v],n),d}const f=(this.serdeContext?.utf8Encoder??za)(n),p=this.parseXml(f);return this.readSchema(t,r?p[r]:p)}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.xmlFlattened;if(r.isListSchema()){const f=r.getValueSchema(),p=[],d=f.getMergedTraits().xmlName??"member",v=c?n:(n[0]??n)[d];if(v==null)return p;const g=Array.isArray(v)?v:[v];for(const b of g)p.push(this.readSchema(f,b));return p}const l={};if(r.isMapSchema()){const f=r.getKeySchema(),p=r.getValueSchema();let d;c?d=Array.isArray(n)?n:[n]:d=Array.isArray(n.entry)?n.entry:[n.entry];const v=f.getMergedTraits().xmlName??"key",g=p.getMergedTraits().xmlName??"value";for(const b of d){const S=b[v],E=b[g];l[S]=this.readSchema(p,E)}return l}if(r.isStructSchema()){const f=r.isUnionSchema();let p;f&&(p=new BJ(n,l));for(const[d,v]of r.structIterator()){const g=v.getMergedTraits(),b=g.httpPayload?g.xmlName??v.getName():v.getMemberTraits().xmlName??d;f&&p.mark(b),n[b]!=null&&(l[d]=this.readSchema(v,n[b]))}return f&&p.writeUnknown(),l}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]),j3(c)}return{}}}class HJ extends kg{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??fi)(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(Cg()));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 zd?n.string:String(n)));else if(i.isTimestampSchema()){if(n instanceof Date)switch(this.writeKey(r),Ig(i,this.settings)){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(qm(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 p of n){if(p==null)continue;const d=c.getMergedTraits(),v=this.getKey("member",d.xmlName,d.ec2QueryName),g=l?`${r}${f}`:`${r}${v}.${f}`;this.write(c,p,g),++f}}}else if(i.isMapSchema()){if(n&&typeof n=="object"){const c=i.getKeySchema(),l=i.getValueSchema(),f=i.getMergedTraits().xmlFlattened;let p=1;for(const[d,v]of Object.entries(n)){if(v==null)continue;const g=c.getMergedTraits(),b=this.getKey("key",g.xmlName,g.ec2QueryName),S=f?`${r}${p}.${b}`:`${r}entry.${p}.${b}`,E=l.getMergedTraits(),x=this.getKey("value",E.xmlName,E.ec2QueryName),R=f?`${r}${p}.${x}`:`${r}entry.${p}.${x}`;this.write(c,d,S),this.write(l,v,R),++p}}}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 p=f.getMergedTraits(),d=this.getKey(l,p.xmlName,p.ec2QueryName,"struct"),v=`${r}${d}`;this.write(f,n[l],v),c=!0}if(!c&&i.isUnionSchema()){const{$unknown:l}=n;if(Array.isArray(l)){const[f,p]=l,d=`${r}${f}`;this.write(15,p,d)}}}}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+=`&${Hm(t)}=`}writeValue(t){this.buffer+=Hm(t)}}class q3 extends bW{options;serializer;deserializer;mixin=new V3;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 H3(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 ba(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,p=c.isStructSchema()&&this.useNestedResult()?f+"Result":void 0,d=await ba(r.body,n);return d.byteLength>0&&Object.assign(l,await i.read(c,d,p)),{$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)??{},p=this.loadQueryErrorMessage(i);f.message=p,f.Error={Type:f.Type,Code:f.Code,Message:p};const{errorSchema:d,errorMetadata:v}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,f,c,this.mixin.findQueryCompatibleError),g=zt.of(d),b=Gn.for(d[1]).getErrorCtor(d)??Error,S=new b(p),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,I=f[C]??i[C];E[x]=this.deserializer.readSchema(R,I)}throw this.mixin.decorateServiceException(Object.assign(S,v,{$fault:g.getMergedTraits().error,message:p},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 q3{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 kg{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,p]=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,p);else if(g.isMapSchema())this.writeMap(g,b,l,p);else if(g.isStructSchema())l.addChildNode(this.writeStruct(g,b,p));else{const S=Cs.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,b,S,p),l.addChildNode(S)}}}const{$unknown:d}=n;if(d&&t.isUnionSchema()&&Array.isArray(d)&&Object.keys(n).length===1){const[v,g]=d,b=Cs.of(v);if(typeof g!="string")if(n instanceof Cs||n instanceof RS)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,p),l.addChildNode(b)}return p&&l.addAttribute(f,p),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(),p=!!f.sparse,d=!!c.xmlFlattened,[v,g]=this.getXmlnsAttribute(t,i),b=(S,E)=>{if(l.isListSchema())this.writeList(l,Array.isArray(E)?E:[E],S,g);else if(l.isMapSchema())this.writeMap(l,E,S,g);else if(l.isStructSchema()){const x=this.writeStruct(l,E,g);S.addChildNode(x.withName(d?c.xmlName??t.getMemberName():f.xmlName??"member"))}else{const x=Cs.of(d?c.xmlName??t.getMemberName():f.xmlName??"member");this.writeSimpleInto(l,E,x,g),S.addChildNode(x)}};if(d)for(const S of n)(p||S!=null)&&b(r,S);else{const S=Cs.of(c.xmlName??t.getMemberName());g&&S.addAttribute(v,g);for(const E of n)(p||E!=null)&&b(S,E);r.addChildNode(S)}}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(),d=f.getMergedTraits().xmlName??"key",v=t.getValueSchema(),g=v.getMergedTraits(),b=g.xmlName??"value",S=!!g.sparse,E=!!l.xmlFlattened,[x,R]=this.getXmlnsAttribute(t,i),C=(I,P,T)=>{const L=Cs.of(d,P),[j,V]=this.getXmlnsAttribute(f,R);V&&L.addAttribute(j,V),I.addChildNode(L);let N=Cs.of(b);v.isListSchema()?this.writeList(v,T,N,R):v.isMapSchema()?this.writeMap(v,T,N,R,!0):v.isStructSchema()?N=this.writeStruct(v,T,R):this.writeSimpleInto(v,T,N,R),I.addChildNode(N)};if(E){for(const[I,P]of Object.entries(n))if(S||P!=null){const T=Cs.of(l.xmlName??t.getMemberName());C(T,I,P),r.addChildNode(T)}}else{let I;c||(I=Cs.of(l.xmlName??t.getMemberName()),R&&I.addAttribute(x,R),r.addChildNode(I));for(const[P,T]of Object.entries(n))if(S||T!=null){const L=Cs.of("entry");C(L,P,T),(c?r:I).addChildNode(L)}}}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??fi)(n);else if(r.isTimestampSchema()&&n instanceof Date)switch(Ig(r,this.settings)){case 5:i=n.toISOString().replace(".000Z","Z");break;case 6:i=qm(n);break;case 7:i=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n),i=qm(n);break}else{if(r.isBigDecimalSchema()&&n)return n instanceof zd?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=Cg():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 RS(c),[p,d]=this.getXmlnsAttribute(l,i);d&&r.addAttribute(p,d),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 kg{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new GJ(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new H3(this.settings);return t.setSerdeContext(this.serdeContext),t}}class ZJ extends vW{codec;serializer;deserializer;mixin=new V3;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:p}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,i,c),d=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 S={};for(const[E,x]of d.structIterator()){const R=x.getMergedTraits().xmlName??E,C=i.Error?.[R]??i[R];S[E]=this.codec.createDeserializer().readSchema(x,C)}throw this.mixin.decorateServiceException(Object.assign(b,p,{$fault:d.getMergedTraits().error,message:v},S),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}}var Oa;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Oa||(Oa={}));const gu=3,Q_=Oa.STANDARD,QJ=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],YJ=["TimeoutError","RequestTimeout","RequestTimeoutException"],XJ=[500,502,503,504],WJ=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],JJ=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],eee=e=>e?.$retryable!==void 0,tee=e=>e.$metadata?.clockSkewCorrected,nee=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||QJ.includes(e.name)||e.$retryable?.throttling==!0,Y_=(e,t=0)=>eee(e)||tee(e)||YJ.includes(e.name)||WJ.includes(e?.code||"")||JJ.includes(e?.code||"")||XJ.includes(e.$metadata?.httpStatusCode||0)||nee(e)||e.cause!==void 0&&t<=10&&Y_(e.cause,t+1),see=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Y_(e)}return!1};class X_{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=>X_.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 CS=100,G3=20*1e3,ree=500,rO=500,oee=5,iee=10,aee=1,cee="amz-sdk-invocation-id",lee="amz-sdk-request",uee=()=>{let e=CS;return{computeNextBackoffDelay:r=>Math.floor(Math.min(G3,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},oO=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(G3,e),getRetryCost:()=>n});class K3{maxAttempts;mode=Oa.STANDARD;capacity=rO;retryBackoffStrategy=uee();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return oO({retryDelay:CS,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"?ree:CS);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,oO({retryDelay:l,retryCount:t.getRetryCount()+1,retryCost:f})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(rO,this.capacity+(t.getRetryCost()??aee))}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:oee}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class fee{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=Oa.ADAPTIVE;constructor(t,n){this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new X_,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 dee=/\d{12}\.ddb/;async function pee(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&uo(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const c=await t.retryStrategy();if(typeof c.mode=="string")switch(c.mode){case Oa.ADAPTIVE:uo(e,"RETRY_MODE_ADAPTIVE","F");break;case Oa.STANDARD:uo(e,"RETRY_MODE_STANDARD","E");break}}if(typeof t.accountIdEndpointMode=="function"){const c=e.endpointV2;switch(String(c?.url?.hostname).match(dee)&&uo(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":uo(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":uo(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":uo(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const c=i;c.accountId&&uo(e,"RESOLVED_ACCOUNT_ID","T");for(const[l,f]of Object.entries(c.$source??{}))uo(e,l,f)}}const iO="user-agent",yb="x-amz-user-agent",aO=" ",vb="/",hee=/[^!$%&'*+\-.^_`|~\w]/g,mee=/[^!$%&'*+\-.^_`|~\w#]/g,cO="-",gee=1024;function yee(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=gee){t.length?t+=","+r:t+=r;continue}break}return t}const vee=e=>(t,n)=>async r=>{const{request:i}=r;if(!Qn.isInstance(i))return t(r);const{headers:c}=i,l=n?.userAgent?.map(Qh)||[],f=(await e.defaultUserAgentProvider()).map(Qh);await pee(n,e,r);const p=n;f.push(`m/${yee(Object.assign({},n.__smithy_context?.features,p.__aws_sdk_context?.features))}`);const d=e?.customUserAgent?.map(Qh)||[],v=await e.userAgentAppId();v&&f.push(Qh(["app",`${v}`]));const g=[].concat([...f,...l,...d]).join(aO),b=[...f.filter(S=>S.startsWith("aws-sdk-")),...d].join(aO);return e.runtime!=="browser"?(b&&(c[yb]=c[yb]?`${c[iO]} ${b}`:b),c[iO]=g):c[yb]=g,t({...r,request:i})},Qh=e=>{const t=e[0].split(vb).map(l=>l.replace(hee,cO)).join(vb),n=e[1]?.replace(mee,cO),r=t.indexOf(vb),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,p)=>{switch(p){case 0:return f;case 1:return`${l}/${f}`;default:return`${l}#${f}`}},"")},bee={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},W_=e=>({applyToStack:t=>{t.add(vee(e),bee)}}),J_=!1,eE=!1,lO=new Set,See=(e,t=Tg)=>{if(!lO.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 lO.add(e)},Z3=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),_ee=e=>Z3(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,tE=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=_ee(r);return See(i),i},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return Z3(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},uO="content-length";function Eee(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(uO)===-1)try{const l=e(i);r.headers={...r.headers,[uO]:String(l)}}catch{}}return t({...n,request:r})}}const xee={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},nE=e=>({applyToStack:t=>{t.add(Eee(e.bodyLengthChecker),xee)}}),wee=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Tee(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Iee(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},Ree=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Cee=/(\d+\.){3}\d+/,Aee=/\.\./,Iee=e=>Ree.test(e)&&!Cee.test(e)&&!Aee.test(e),Tee=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},Oee=(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:p,path:d}=c;return`${l}//${f}${p?":"+p:""}${d}`}}return c}:i},Q3=async e=>{},Y3=e=>typeof e=="object"?"url"in e?mu(e.url):e:mu(e),Mee=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let l;n.serviceConfiguredEndpoint?l=await n.serviceConfiguredEndpoint():l=await Q3(n.serviceId),l&&(n.endpoint=()=>Promise.resolve(Y3(l)),n.isCustomEndpoint=!0)}const i=await X3(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},X3=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 Oee(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 wee(r),r},Dee=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&xW(r,"ENDPOINT_OVERRIDE","N");const c=await Mee(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 p=Ro(r)?.selectedHttpAuthScheme?.httpAuthOption;p&&(p.signingProperties=Object.assign(p.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...i})},Pee={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:SX.name},kn=(e,t)=>({applyToStack:n=>{n.addRelativeTo(Dee({config:e,instructions:t}),Pee)}}),sE=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,c=n!=null?async()=>Y3(await Is(n)()):void 0,f=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Is(r??!1),useFipsEndpoint:Is(i??!1)});let p;return f.serviceConfiguredEndpoint=async()=>(e.serviceId&&!p&&(p=Q3(e.serviceId)),p),f},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}`),rE=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)()===Oa.ADAPTIVE?new fee(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,p=0,d=0;const{request:v}=r,g=Qn.isInstance(v);for(g&&(v.headers[cee]=Cg());;)try{g&&(v.headers[lee]=`attempt=${p+1}; max=${c}`);const{response:b,output:S}=await t(r);return i.recordSuccess(l),S.$metadata.attempts=p+1,S.$metadata.totalRetryDelay=d,{response:b,output:S}}catch(b){const S=zee(b);if(f=kee(b),g&&Nee(v))throw(n.logger instanceof Pg?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{l=await i.refreshRetryTokenForRetry(l,S)}catch{throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=p+1,f.$metadata.totalRetryDelay=d,f}p=l.getRetryCount();const E=l.getRetryDelay();d+=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":Y_(e)?"TRANSIENT":see(e)?"SERVER_ERROR":"CLIENT_ERROR",Uee={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},oE=e=>({applyToStack:t=>{t.add(Lee(e),Uee)}}),jee=e=>{if(!Bc.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=H_(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.1004.0",Zee={version:Kee},W3=e=>new TextEncoder().encode(e);var Qee=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:W3;function Uc(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 Km(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])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!c||d[1]>c[0]&&d[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 Dr=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===Dr&&(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%Dr>=Dr-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],p=r[4],d=r[5],v=r[6],g=r[7],b=0;b>>17|S<<15)^(S>>>19|S<<13)^S>>>10;S=this.temp[b-15];var x=(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3;this.temp[b]=(E+this.temp[b-7]|0)+(x+this.temp[b-16]|0)}var R=(((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&d^~p&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=d,d=p,p=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]+=p,r[5]+=d,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(!(Km(t)||this.error))try{this.hash.update(Uc(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 eN(this,void 0,void 0,function(){return tN(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(Dr);n.set(t);for(var r=0;rDr){var n=new um;n.update(t),t=n.digest()}var r=new Uint8Array(Dr);return r.set(t),r}var cte=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function nN(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 iE=(function(){function e(t){nN(Ra())?this.hash=new ete(t):this.hash=new ite(t)}return e.prototype.update=function(t,n){this.hash.update(Uc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const aE=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"?window.navigator:void 0,i=r?.userAgent??"",c=r?.userAgentData?.platform??dO.os(i)??"other",l=void 0,f=r?.userAgentData?.brands??[],p=f[f.length-1],d=p?.brand??dO.browser(i)??"unknown",v=p?.version??"unknown",g=[["aws-sdk-js",t],["ua","2.1"],[`os/${c}`,l],["lang/js"],["md/browser",`${d}_${v}`]];e&&g.push([`api/${e}`,t]);const b=await n?.userAgentAppId?.();return b&&g.push([`app/${b}`]),g},dO={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"}},cE=e=>()=>Promise.reject(e),fte=["in-region","cross-region","mobile","standard","legacy"],lE=({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},sN="required",kr="fn",Nr="argv",Eu="ref",pO=!0,hO="isSet",Ad="booleanEquals",ql="error",Fl="endpoint",ti="tree",uE="PartitionResult",fE="getAttr",mO={[sN]:!1,type:"string"},gO={[sN]:!0,default:!1,type:"boolean"},yO={[Eu]:"Endpoint"},rN={[kr]:Ad,[Nr]:[{[Eu]:"UseFIPS"},!0]},oN={[kr]:Ad,[Nr]:[{[Eu]:"UseDualStack"},!0]},Tr={},vO={[kr]:fE,[Nr]:[{[Eu]:uE},"supportsFIPS"]},iN={[Eu]:uE},bO={[kr]:Ad,[Nr]:[!0,{[kr]:fE,[Nr]:[iN,"supportsDualStack"]}]},SO=[rN],_O=[oN],EO=[{[Eu]:"Region"}],pte={parameters:{Region:mO,UseDualStack:gO,UseFIPS:gO,Endpoint:mO},rules:[{conditions:[{[kr]:hO,[Nr]:[yO]}],rules:[{conditions:SO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ql},{conditions:_O,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ql},{endpoint:{url:yO,properties:Tr,headers:Tr},type:Fl}],type:ti},{conditions:[{[kr]:hO,[Nr]:EO}],rules:[{conditions:[{[kr]:"aws.partition",[Nr]:EO,assign:uE}],rules:[{conditions:[rN,oN],rules:[{conditions:[{[kr]:Ad,[Nr]:[pO,vO]},bO],rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Tr,headers:Tr},type:Fl}],type:ti},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ql}],type:ti},{conditions:SO,rules:[{conditions:[{[kr]:Ad,[Nr]:[vO,pO]}],rules:[{conditions:[{[kr]:"stringEquals",[Nr]:[{[kr]:fE,[Nr]:[iN,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:Tr,headers:Tr},type:Fl},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Tr,headers:Tr},type:Fl}],type:ti},{error:"FIPS is enabled but this partition does not support FIPS",type:ql}],type:ti},{conditions:_O,rules:[{conditions:[bO],rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Tr,headers:Tr},type:Fl}],type:ti},{error:"DualStack is enabled but this partition does not support DualStack",type:ql}],type:ti},{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:Tr,headers:Tr},type:Fl}],type:ti}],type:ti},{error:"Invalid Configuration: Missing Region",type:ql}]},hte=pte,mte=new B_({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),gte=(e,t={})=>mte.get(e,()=>j_(hte,{endpointParams:e,logger:t.logger}));hu.aws=Mg;class dE extends _a{constructor(t){super(t),Object.setPrototypeOf(this,dE.prototype)}}const yte="AllAvailabilityZones",vte="AttributeBooleanValue",bte="AssociateCarrierIpAddress",Ste="AdditionalFlexibleNetworkInterfaces",_te="AvailableIpAddressCount",Ete="AssignIpv6AddressOnCreation",aN="AdditionalInfo",pE="AssociationId",cN="AttachmentId",xte="AmiLaunchIndex",wte="AttachmentLimitType",Rte="AssociatePublicIpAddress",Cte="AmazonProvidedIpv6CidrBlock",Ate="AutoRecoverySupported",Ite="AllRegions",lN="AssociatedResource",uN="AutoRecovery",fN="AmdSevSnp",Tte="ArchitectureTypeList",Ng="AttachTime",Ote="AttachVolumeRequest",Mte="AttributeValue",Dte="AttachVolume",Ba="AvailabilityZone",Pte="AvailabilityZoneGeography",kte="AvailabilityZoneGeographyList",xu="AvailabilityZoneId",Nte="AvailabilityZoneList",Lte="AvailabilityZoneMessage",$te="AvailabilityZoneMessageList",zte="AvailabilityZoneSubGeography",Bte="AvailabilityZoneSubGeographyList",Ute="AvailabilityZones",dN="Accelerators",jte="Affinity",pN="Arn",hN="Architecture",mN="Association",Vte="Attribute",gN="Attachment",Hte="Attachments",qte="BlobAttributeValue",Fte="BaselineBandwidthInGbps",yN="BaselineBandwidthInMbps",hE="BlockDeviceMapping",Gte="BlockDeviceMappingList",Kte="BlockDeviceMappingRequestList",Bd="BlockDeviceMappings",Zte="BlockDurationMinutes",vN="BaselineIops",bN="BootMode",Qte="BootModeTypeList",Yte="BareMetal",mE="BlockPublicAccessStates",Xte="BurstablePerformanceSupported",SN="BaselineThroughputInMBps",_N="BandwidthWeighting",Wte="BandwidthWeightingTypeList",Jte="BandwidthWeightings",Ud="CidrBlock",ene="CidrBlockAssociationSet",tne="CapacityBlockId",nne="CidrBlockState",sne="CoreCountList",EN="CoreCount",rne="CpuCredits",xN="CompletionDurationMinutes",one="CreationDate",ine="CurrentGeneration",ane="CarrierIp",cne="CurrentInstanceBootMode",lne="CreateImageRequest",une="CreateImageResult",fne="CoreInfo",dne="CreateImage",pne="CreateKeyPair",hne="CreateKeyPairRequest",gE="CpuOptions",mne="CustomerOwnedIp",gne="CustomerOwnedIpv4Pool",yne="CpuOptionsRequest",yE="CapacityReservationId",wN="CapacityReservationPreference",RN="CapacityReservationResourceGroupArn",vne="CapacityReservationSpecificationResponse",vE="CapacityReservationSpecification",bE="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",SE="ClientToken",Dne="ConnectionTrackingConfiguration",Pne="ConnectionTrackingSpecification",kne="ConnectionTrackingSpecificationRequest",Nne="ConnectionTrackingSpecificationResponse",Lne="CompletionTime",CN="CreateTime",$ne="CreateVolumeRequest",zne="CreateVpcRequest",Bne="CreateVpcResult",Une="CreateVolume",jne="CreateVpc",AN="Code",IN="Configured",Ua="Count",TN="DisableApiStop",ON="DisableApiTermination",Vne="DestinationAvailabilityZone",Hne="DescribeAvailabilityZonesRequest",qne="DescribeAvailabilityZonesResult",Fne="DescribeAvailabilityZones",Gne="DefaultCores",Kne="DataEncryptionKeyId",Zne="DefaultEnaQueueCountPerInterface",Qne="DefaultForAz",Yne="DedicatedHostsSupported",Lg="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",_E="DeviceName",hse="DefaultNetworkCardIndex",mse="DestinationOutpostArn",gse="DhcpOptionsId",ja="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",Fc="Description",EE="Device",Kse="Disks",Zse="EbsBlockDevice",Qse="ExecutableByStringList",MN="ExecutableBy",jd="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",DN="ElasticGpuSpecification",ure="ElasticGpuSpecifications",PN="ElasticInferenceAccelerator",fre="ElasticInferenceAcceleratorAssociation",dre="ElasticInferenceAcceleratorAssociationId",pre="ElasticInferenceAcceleratorAssociationList",hre="ElasticInferenceAcceleratorAssociationState",mre="ElasticInferenceAcceleratorAssociationTime",gre="ElasticInferenceAcceleratorArn",yre="ElasticInferenceAcceleratorAssociations",kN="ElasticInferenceAccelerators",vre="EbsInstanceBlockDevice",bre="EbsInstanceBlockDeviceSpecification",Sre="EncryptionInTransitSupported",NN="EbsInfo",LN="EfaInfo",_re="EnableLniAtDeviceIndex",xE="EbsOptimized",$N="EbsOptimizedInfo",Ere="EgressOnlyInternetGateway",xre="EgressOnlyInternetGatewayExclusion",wre="EnclaveOptionsRequest",Rre="EbsOptimizedSupport",wE="EnclaveOptions",Cre="EnablePrimaryIpv6",zN="EnaQueueCount",RE="EnableResourceNameDnsAAAARecord",CE="EnableResourceNameDnsARecord",BN="EnaSrdEnabled",UN="EnaSrdSpecification",Are="EnaSrdSpecificationRequest",Ire="EnaSrdSupported",jN="EnaSrdUdpEnabled",VN="EnaSrdUdpSpecification",Tre="EnaSrdUdpSpecificationRequest",Ore="EfaSupported",HN="EncryptionSupport",$g="EnaSupport",Mre="EndTime",Dre="ExecutableUsers",AE="Ebs",IE="Enabled",Vd="Encrypted",Pre="Endpoint",TE="Force",kre="FpgaDeviceInfo",Nre="FpgaDeviceInfoList",Lre="FpgaDeviceMemoryInfo",$re="FlexibleEnaQueuesSupport",qN="FpgaInfo",zre="FilterList",Bre="FastRestored",Ure="FullSnapshotSizeInBytes",FN="FreeTierEligible",Ao="Filters",Ur="Filter",jre="Fpgas",zg="Groups",Vre="GetConsoleOutput",Hre="GetConsoleOutputRequest",qre="GetConsoleOutputResult",Fre="GpuDeviceInfo",Gre="GpuDeviceInfoList",Kre="GpuDeviceMemoryInfo",Zre="GroupIdentifierList",Qre="GroupIdStringList",GN="GpuInfo",OE="GroupId",Yre="GroupIdentifier",Xre="GroupLongName",ME="GroupName",Wre="GpuPartitionSize",KN="Geography",Jre="Gpus",ZN="HttpEndpoint",eoe="HostId",DE="HibernationOptions",toe="HibernationOptionsRequest",QN="HttpProtocolIpv6",YN="HttpPutResponseHopLimit",noe="HostResourceGroupArn",soe="HibernationSupported",XN="HttpTokens",PE="HostnameType",roe="Hibernate",kE="Hypervisor",ooe="Id",NE="Ipv6Addresses",WN="Ipv6AddressAttribute",JN="Ipv6AddressCount",ioe="InstanceAttachmentEnaSrdSpecification",aoe="InstanceAttachmentEnaSrdUdpSpecification",eL="InferenceAcceleratorInfo",coe="Ipv4AddressesPerInterface",loe="Ipv6AddressesPerInterface",uoe="Ipv4AddressesPerSecondaryInterface",foe="ImageAllowed",LE="Ipv6Address",doe="InstanceBlockDeviceMapping",poe="InstanceBlockDeviceMappingList",hoe="InstanceBlockDeviceMappingSpecification",moe="InstanceBlockDeviceMappingSpecificationList",Bg="Ipv6CidrBlock",tL="Ipv6CidrBlockAssociationSet",goe="Ipv6CidrBlockNetworkBorderGroup",nL="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",$E="IamInstanceProfile",sL="Ipv6IpamPoolId",rL="Ipv4IpamPoolId",Toe="InstanceIpv4PrefixList",Ooe="InstanceIpv6PrefixList",Moe="IamInstanceProfileSpecification",Doe="InstanceIpv4Prefix",Poe="InstanceIpv6Prefix",oL="InstanceInitiatedShutdownBehavior",koe="ImageIdStringList",Noe="InstanceIdStringList",wu="ImageId",Loe="ImageIds",Hd="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",iL="InstanceMetadataTags",aL="Ipv6Native",Yoe="InstanceNetworkInterface",Xoe="InstanceNetworkInterfaceAssociation",Woe="InstanceNetworkInterfaceAttachment",Joe="InstanceNetworkInterfaceList",eie="InstanceNetworkInterfaceSpecification",tie="InstanceNetworkInterfaceSpecificationList",cL="Ipv6NetmaskLength",lL="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",uL="Ipv6Prefixes",zE="Ipv6Prefix",fL="Ipv6Pool",dL="Ipv4Prefixes",BE="Ipv4Prefix",yie="InstanceStateChange",vie="InstanceStateChangeList",bie="InstanceSecondaryInterfaceAttachment",Sie="InstanceSecondaryInterfaceList",_ie="InstanceSecondaryInterfacePrivateIpAddress",Eie="InstanceSecondaryInterfacePrivateIpAddressList",xie="InstanceSecondaryInterfacePrivateIpAddressListRequest",wie="InstanceSecondaryInterfacePrivateIpAddressRequest",Rie="InstanceSecondaryInterfaceSpecificationListRequest",Cie="InstanceSecondaryInterfaceSpecificationRequest",Aie="InstanceSecondaryInterface",pL="InstanceStorageInfo",Iie="InstanceStorageSupported",Tie="ImdsSupport",Oie="InstanceState",hL="IpSource",Mie="Ipv6Supported",qd="InstanceType",Die="InstanceTypeInfoList",Pie="InstanceTypeInfo",kie="ImageType",mL="InstanceTenancy",gL="InstanceTypes",Ug="InterfaceType",Nie="Images",Lie="Image",$ie="Instance",zie="Instances",jg="Iops",Bie="Key",Uie="KeyFormat",UE="KeyFingerprint",jE="KernelId",Fd="KmsKeyId",jie="KeyMaterial",Io="KeyName",Vie="KeyNameStringList",Hie="KeyNames",qie="KeyPairs",Gc="KeyPairId",Fie="KeyPairIdStringList",Gie="KeyPairIds",Kie="KeyPairInfo",Zie="KeyPairList",Qie="KeyPair",yL="KeyType",Yie="Kernel",vL="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",VE="MultiAttachEnabled",bL="MediaAcceleratorInfo",SL="MacAddress",_L="MaximumBandwidthInMbps",mae="MapCustomerOwnedIpOnLaunch",gae="MaxCount",yae="MinCount",vae="MediaDeviceInfo",bae="MediaDeviceInfoList",Sae="MediaDeviceMemoryInfo",_ae="MaximumEbsAttachments",Eae="MaximumEbsCards",xae="MaximumEfaInterfaces",wae="MaximumEnaQueueCount",Rae="MaximumEnaQueueCountPerInterface",EL="MaximumIops",Cae="ModifyInstanceAttributeRequest",Aae="ModifyInstanceAttribute",Kc="MemoryInfo",Iae="MaximumNetworkCards",xL="MaximumNetworkInterfaces",wL="MetadataOptions",RL="MaintenanceOptions",Tae="MapPublicIpOnLaunch",Oae="MaxPrice",Zc="MaxResults",Mae="MaximumSecondaryNetworkInterfaces",Dae="ModificationState",Pae="MarketType",CL="MaximumThroughputInMBps",kae="ModifyVolumeRequest",Nae="ModifyVolumeResult",Lae="ModifyVolume",Gd="Manufacturer",$ae="Managed",AL="Message",zae="Messages",IL="Mode",HE="Monitoring",fr="Name",TL="NetworkBorderGroup",Bae="NetworkCards",Kd="NetworkCardIndex",Uae="NetworkCardInfoList",jae="NetworkCardInfo",OL="NoDevice",Vae="NeuronDeviceCoreInfo",Hae="NeuronDeviceInfo",qae="NeuronDeviceInfoList",Fae="NeuronDeviceMemoryInfo",Gae="NeuronDevices",Kae="NitroEnclavesSupport",Zae="NatGateway",Qae="NatGatewayExclusion",ML="NetworkInterfaceId",DL="NetworkInterfaces",PL="NetworkInfo",kL="NeuronInfo",NL="NetworkPerformanceOptions",LL="NetworkPerformance",Yae="NoReboot",$L="NvmeSupport",zL="NitroTpmInfo",Xae="NitroTpmSupport",Wae="NitroTpmSupportedVersionsList",Ks="NextToken",BL="NestedVirtualization",Va="OutpostArn",Jae="OwnerAlias",Qc="OwnerId",UL="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",qE="Owner",jL="Principal",fce="PeakBandwidthInGbps",dce="ProductCodeId",pce="ProductCodeList",hce="ProductCodeType",mce="ProductCode",VL="ProductCodes",FE="PrivateDnsName",HL="PrivateDnsNameOptions",qL="PrivateDnsNameOptionsOnLaunch",gce="PrivateDnsNameOptionsRequest",yce="PrivateDnsNameOptionsResponse",FL="PublicDnsName",GL="PlatformDetails",KL="PlacementGroupInfo",vce="PlacementGroupStrategyList",bce="PublicIp",Sce="PrivateIpAddressCount",_ce="PrivateIpAddressSpecification",Ece="PrivateIpAddressSpecificationList",hi="PrivateIpAddress",Vg="PrivateIpAddresses",xce="PublicIpAddress",wce="PrimaryIpv6",ZL="ProcessorInfo",Rce="PublicKey",Cce="PublicKeyMaterial",Ace="PartitionNumber",Ice="PhcSupport",Tce="PreviousState",Oce="PresignedUrl",Mce="ParentZoneId",Dce="ParentZoneName",QL="Platform",GE="Placement",YL="Primary",XL="Progress",Pce="Public",kce="Return",Nce="RestorableByUserIds",Lce="RestorableBy",WL="RootDeviceName",JL="RootDeviceType",$ce="RootDeviceTypeList",zce="RestoreExpiryTime",Bce="ResourceExclusions",Uce="RegionGeography",jce="RegionGeographyList",Vce="RunInstancesMonitoringEnabled",Hce="RebootInstancesRequest",qce="RunInstancesRequest",Fce="RunInstancesUserData",KE="RamdiskId",Gce="ReservationId",Kce="RebootInstances",Zce="RequesterId",Qce="RunInstances",Yce="RegionList",Xce="ReservationList",Wce="RebootMigrationSupport",Jce="RebootMigration",Hg="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",qg="SourceDestCheck",hle="SpreadDomain",mle="SupportedFeatures",gle="SubGeography",ZE="SecurityGroupId",yle="SecurityGroupIdStringList",vle="SecurityGroupIds",ble="SecurityGroupStringList",e$="SecurityGroups",t$="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",n$="SecondaryInterfaces",Lle="SecondaryInterface",Ha="SnapshotId",$le="SnapshotIds",zle="StartingInstances",Ble="StartInstances",Ule="StoppingInstances",jle="StopInstances",qa="SubnetId",Vle="SnapshotLocation",Hle="SnapshotList",qle="SubnetList",Fle="SpotMarketOptions",QE="StatusMessage",YE="StateMessage",Gle="SecondaryNetworkId",XE="SriovNetSupport",Kle="SecondaryNetworkSupported",Zle="SpotOptions",s$="SkipOsShutdown",Qle="SecondaryPrivateIpAddressCount",Yle="SupportedRootDeviceTypes",Xle="SourceRegion",WE="StateReason",Wle="SourceSnapshotId",r$="SecondarySubnetId",Jle="SupportedStrategies",o$="StartTime",eue="StateTransitionReason",i$="SseType",tue="StorageTier",nue="SupportedUsageClasses",sue="SensitiveUserData",rue="SourceVolumeId",oue="SupportedVirtualizationTypes",iue="SupportedVersions",JE="Size",aue="Snapshots",cue="Snapshot",Zs="State",Zd="Status",a$="Subnet",lue="Subnets",jr="Tags",c$="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",l$="ThreadsPerCore",Eue="ThreadsPerCoreList",mi="TagSpecifications",xue="TotalSizeInGB",wue="TagSpecificationList",To="TagSpecification",Rue="TargetSize",u$="TpmSupport",Cue="TargetThroughput",Aue="TransferType",Iue="TargetVolumeType",f$="Tag",Tue="Tenancy",Fg="Throughput",Oue="Timestamp",Gg="Type",Mue="UsageClassTypeList",d$="UserData",p$="UsageOperation",Due="UsageOperationUpdateTime",h$="UdpStreamTimeout",m$="UdpTimeout",Au="Value",Pue="VolumeAttachmentList",kue="VolumeAttachment",Nue="VpcCidrBlockAssociation",Lue="VpcCidrBlockAssociationSet",$ue="VpcCidrBlockState",g$="VCpuInfo",zue="ValidCores",y$="VpcEncryptionControl",Bue="VpcEncryptionControlConfiguration",Uue="VpcEncryptionControlExclusion",jue="VpcEncryptionControlExclusions",Vue="VpcEncryptionControlId",gi="VpcId",Hue="VpcIpv6CidrBlockAssociation",que="VpcIpv6CidrBlockAssociationSet",ex="VolumeInitializationRate",Fue="VolumeIdStringList",Gue="VpcIdStringList",dr="VolumeId",Kue="VolumeIds",Zue="VpcIds",Que="VpcLattice",Yue="VpcLatticeExclusion",Xue="VolumeList",Wue="VpcList",v$="VolumeModification",b$="VirtualName",Jue="VolumeOwnerId",efe="VpcPeeringExclusion",tfe="VirtualPrivateGateway",nfe="VirtualPrivateGatewayExclusion",sfe="VpcPeering",rfe="ValueStringList",S$="VolumeSize",Kg="VolumeType",ofe="VirtualizationTypeList",ife="ValidThreadsPerCore",_$="VirtualizationType",afe="ValidUntil",cfe="Values",E$="Version",lfe="Volumes",ufe="Volume",x$="Vpc",ffe="Vpcs",dfe="WorkloadsList",pfe="Workloads",tx="ZoneId",hfe="ZoneIdStringList",mfe="ZoneIds",nx="ZoneName",gfe="ZoneNameStringList",yfe="ZoneNames",vfe="ZoneType",bfe="additionalFlexibleNetworkInterfaces",Sfe="availableIpAddressCount",_fe="assignIpv6AddressOnCreation",w$="additionalInfo",sx="associationId",R$="attachmentId",Efe="amiLaunchIndex",xfe="attachmentLimitType",wfe="associatePublicIpAddress",Rfe="amazonProvidedIpv6CidrBlock",Cfe="autoRecoverySupported",C$="associatedResource",Afe="autoRecovery",Ife="amdSevSnp",Tfe="attachmentSet",Zg="attachTime",Qd="availabilityZone",rx="availabilityZoneId",Ofe="availabilityZoneInfo",A$="accelerators",Mfe="affinity",I$="arn",T$="architecture",O$="association",M$="attachment",Dfe="attribute",Pfe="baselineBandwidthInGbps",D$="baselineBandwidthInMbps",Qg="blockDeviceMapping",P$="baselineIops",k$="bootMode",kfe="bareMetal",N$="blockPublicAccessStates",Nfe="burstablePerformanceSupported",L$="baselineThroughputInMBps",Lfe="bandwidthWeighting",$fe="bandwidthWeightings",ox="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",$$="capacityReservationId",Xfe="capacityReservationPreference",Wfe="capacityReservationResourceGroupArn",Jfe="capacityReservationSpecification",ede="capacityReservationTarget",tde="currentState",z$="clientToken",nde="connectionTrackingConfiguration",sde="completionTime",B$="createTime",U$="code",rde="configured",Yc="count",j$="disableApiTermination",ode="defaultCores",ide="dataEncryptionKeyId",ade="defaultEnaQueueCountPerInterface",cde="defaultForAz",lde="dedicatedHostsSupported",ix="deviceIndex",ax="deviceName",ude="defaultNetworkCardIndex",fde="dnsName",dde="dhcpOptionsId",Xc="deleteOnTermination",pde="deregistrationProtection",$t="dryRun",hde="destinationRegion",mde="defaultThreadsPerCore",gde="deprecationTime",yde="defaultVCpus",Yd="description",vde="device",bde="disks",cx="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",lx="ebsOptimized",zde="ebsOptimizedInfo",Bde="egressOnlyInternetGateway",Ude="ebsOptimizedSupport",jde="enclaveOptions",Vde="enaQueueCount",_="ec2QueryName",V$="enableResourceNameDnsAAAARecord",H$="enableResourceNameDnsARecord",Hde="enaSrdEnabled",qde="enaSrdSpecification",Fde="enaSrdSupported",Gde="enaSrdUdpEnabled",Kde="enaSrdUdpSpecification",Zde="efaSupported",q$="encryptionSupport",Yg="enaSupport",Qde="endTime",ux="ebs",F$="enabled",Xd="encrypted",Yde="flexibleEnaQueuesSupport",Xde="fpgaInfo",Wde="fastRestored",Jde="fullSnapshotSizeInBytes",G$="freeTierEligible",epe="force",tpe="fpgas",npe="gpuInfo",fx="groupId",spe="groupLongName",dx="groupName",rpe="gpuPartitionSize",K$="geographySet",px="groupSet",ope="gpus",hx="hypervisor",ipe="httpEndpoint",ape="hostId",cpe="hibernationOptions",lpe="httpProtocolIpv6",upe="httpPutResponseHopLimit",fpe="hostResourceGroupArn",dpe="hibernationSupported",ppe="httpTokens",Z$="hostnameType",hpe="id",Q$="ipv6AddressAttribute",mpe="ipv6AddressCount",gpe="inferenceAcceleratorInfo",ype="ipv4AddressesPerInterface",vpe="ipv6AddressesPerInterface",bpe="ipv4AddressesPerSecondaryInterface",Y$="ipv6AddressesSet",Spe="imageAllowed",_pe="ipAddress",X$="ipv6Address",W$="ipv6CidrBlock",J$="ipv6CidrBlockAssociationSet",e4="ipv6CidrBlockState",Epe="isDefault",xpe="internetGateway",wpe="internetGatewayBlockMode",Iu="instanceId",t4="iamInstanceProfile",n4="instanceInitiatedShutdownBehavior",mx="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",Xg="instancesSet",Fpe="instanceState",s4="ipSource",Gpe="ipv6Supported",gx="instanceType",Kpe="instanceTypeSet",Zpe="idempotencyToken",Qpe="imageType",r4="instanceTenancy",o4="interfaceType",i4="iops",ke="item",Ype="key",yx="keyFingerprint",a4="kernelId",Wg="kmsKeyId",Xpe="keyMaterial",Wd="keyName",Jg="keyPairId",Wpe="keySet",Jpe="keyType",ehe="kernel",the="licenseConfigurationArn",nhe="logicalGpuCount",she="lastLaunchedTime",rhe="licenseSet",ohe="launchTime",ihe="lambda",ahe="multiAttachEnabled",che="mediaAcceleratorInfo",c4="macAddress",l4="maximumBandwidthInMbps",lhe="mapCustomerOwnedIpOnLaunch",uhe="maximumEbsAttachments",fhe="maximumEbsCards",dhe="maximumEfaInterfaces",phe="maximumEnaQueueCount",hhe="maximumEnaQueueCountPerInterface",u4="maximumIops",Tu="memoryInfo",mhe="maximumNetworkCards",f4="maximumNetworkInterfaces",ghe="metadataOptions",yhe="maintenanceOptions",vhe="mapPublicIpOnLaunch",d4="maxResults",bhe="messageSet",She="maximumSecondaryNetworkInterfaces",_he="modificationState",p4="maximumThroughputInMBps",Jd="manufacturer",Ehe="managed",h4="message",xhe="monitoring",whe="mode",Vr="name",m4="networkBorderGroup",Rhe="networkCards",vx="networkCardIndex",g4="noDevice",Che="neuronDevices",Ahe="nitroEnclavesSupport",Ihe="natGateway",y4="networkInterfaceId",The="networkInterfaceSet",Ohe="networkInterface",Mhe="networkInfo",Dhe="neuronInfo",Phe="networkPerformanceOptions",v4="networkPerformance",khe="noReboot",b4="nvmeSupport",Nhe="nitroTpmInfo",Lhe="nitroTpmSupport",yi="nextToken",$he="nestedVirtualization",ep="outpostArn",zhe="ownerAlias",Ou="ownerId",S4="optInStatus",Bhe="originalIops",Uhe="originalMultiAttachEnabled",jhe="originalSize",Vhe="originalThroughput",Hhe="originalVolumeType",ey="operator",qhe="output",Fhe="principal",Ghe="peakBandwidthInGbps",_4="productCodes",Khe="productCode",Zhe="privateDnsNameOptions",Qhe="privateDnsNameOptionsOnLaunch",bx="privateDnsName",Yhe="publicDnsName",E4="platformDetails",Xhe="placementGroupInfo",Whe="publicIp",x4="privateIpAddressesSet",Jhe="privateIpAddressSet",Wc="privateIpAddress",eme="processorInfo",tme="publicKey",nme="publicKeyMaterial",sme="partitionNumber",rme="phcSupport",ome="previousState",ime="presignedUrl",ame="parentZoneId",cme="parentZoneName",w4="platform",lme="placement",R4="primary",C4="progress",ume="return",A4="rootDeviceName",I4="rootDeviceType",fme="restoreExpiryTime",dme="regionEndpoint",pme="resourceExclusions",hme="reservationId",T4="ramdiskId",mme="regionInfo",gme="requesterId",yme="rebootMigrationSupport",vme="rebootMigration",O4="regionName",bme="reservationSet",Sme="resourceType",_me="ramdisk",Eme="reason",M4="smithy.ts.sdk.synthetic.com.amazonaws.ec2",xme="supportedArchitectures",wme="subnetArn",Rme="supportedBootModes",Cme="sustainedClockSpeedInGhz",Sx="sourceDestCheck",Ame="spreadDomain",Ime="supportedFeatures",Tme="subGeographySet",Ome="sizeInGB",Mme="sourceInstanceId",Dme="secondaryInterfaceId",Pme="sourceImageId",Mu="sizeInMiB",kme="sourceImageRegion",Nme="spotInstanceRequestId",Lme="secondaryInterfaceSet",ty="snapshotId",ny="subnetId",sy="statusMessage",D4="stateMessage",$me="secondaryNetworkId",zme="secondaryNetworkSupported",_x="sriovNetSupport",Bme="secondaryPrivateIpAddressCount",Ume="supportedRootDeviceTypes",P4="stateReason",jme="secondarySubnetId",Vme="snapshotSet",Hme="subnetSet",qme="supportedStrategies",k4="startTime",N4="sseType",Fme="storageTier",Gme="supportedUsageClasses",Kme="sourceVolumeId",Zme="supportedVirtualizationTypes",Qme="supportedVersions",Yme="size",Fa="state",Ga="status",Xme="subnet",Wme="tenancy",Jme="tcpEstablishedTimeout",ege="totalFpgaMemoryInMiB",tge="totalGpuMemoryInMiB",nge="totalInferenceMemoryInMiB",sge="targetIops",rge="targetMultiAttachEnabled",oge="totalMediaMemoryInMiB",ige="totalNeuronDeviceMemoryInMiB",age="threadsPerCore",no="tagSet",cge="totalSizeInGB",lge="targetSize",L4="tpmSupport",uge="targetThroughput",fge="transferType",dge="targetVolumeType",$4="throughput",pge="timestamp",Ex="type",hge="userData",z4="usageOperation",mge="usageOperationUpdateTime",gge="udpStreamTimeout",yge="udpTimeout",tp="value",vge="vCpuInfo",bge="validCores",Sge="vpcEncryptionControlId",np="vpcId",_ge="volumeInitializationRate",Du="volumeId",Ege="vpcLattice",xge="volumeModification",B4="virtualName",wge="volumeOwnerId",Rge="virtualPrivateGateway",Cge="vpcPeering",Age="volumeSet",U4="volumeSize",Ige="vpcSet",j4="volumeType",Tge="validThreadsPerCore",V4="virtualizationType",Oge="version",Mge="vpc",Dge="workloadSet",y="xmlName",Pge="zoneId",kge="zoneName",Nge="zoneState",Lge="zoneType",O="com.amazonaws.ec2",H4=Gn.for(M4);var $ge=[-3,M4,"EC2ServiceException",0,[],[]];H4.registerError($ge,dE);const zge=[H4];var Bge=[0,O,_ne,8,0],Uge=[0,O,Fce,8,0],jge=[0,O,sue,8,0],Vge=[3,O,Ote,0,[EE,Ts,dr,jd,It],[0,0,0,1,[2,{[_]:"DryRun",[y]:$t}]],3],Yf=[3,O,vte,0,[Au],[[2,{[_]:"Value",[y]:tp}]]],Xf=[3,O,Mte,0,[Au],[[0,{[_]:"Value",[y]:tp}]]],Hge=[3,O,Ba,0,[UL,zae,Hg,nx,tx,ME,TL,vfe,Dce,Mce,Xre,KN,gle,Zs],[[0,{[_]:"OptInStatus",[y]:S4}],[()=>Xve,{[_]:"MessageSet",[y]:bhe}],[0,{[_]:"RegionName",[y]:O4}],[0,{[_]:"ZoneName",[y]:kge}],[0,{[_]:"ZoneId",[y]:Pge}],[0,{[_]:"GroupName",[y]:dx}],[0,{[_]:"NetworkBorderGroup",[y]:m4}],[0,{[_]:"ZoneType",[y]:Lge}],[0,{[_]:"ParentZoneName",[y]:cme}],[0,{[_]:"ParentZoneId",[y]:ame}],[0,{[_]:"GroupLongName",[y]:spe}],[()=>Qve,{[_]:"GeographySet",[y]:K$}],[()=>Wve,{[_]:"SubGeographySet",[y]:Tme}],[0,{[_]:"ZoneState",[y]:Nge}]]],qge=[3,O,Pte,0,[fr],[[0,{[_]:"Name",[y]:Vr}]]],Fge=[3,O,Lte,0,[AL],[[0,{[_]:"Message",[y]:h4}]]],Gge=[3,O,zte,0,[fr],[[0,{[_]:"Name",[y]:Vr}]]],Kge=[3,O,qte,0,[Au],[[21,{[_]:"Value",[y]:tp}]]],q4=[3,O,hE,0,[AE,OL,_E,b$],[[()=>Vye,{[_]:"Ebs",[y]:ux}],[0,{[_]:"NoDevice",[y]:g4}],[0,{[_]:"DeviceName",[y]:ax}],[0,{[_]:"VirtualName",[y]:B4}]]],F4=[3,O,mE,0,[woe],[[0,{[_]:"InternetGatewayBlockMode",[y]:wpe}]]],Zge=[3,O,vE,0,[wN,bE],[0,()=>Yge]],Qge=[3,O,vne,0,[wN,bE],[[0,{[_]:"CapacityReservationPreference",[y]:Xfe}],[()=>Xge,{[_]:"CapacityReservationTarget",[y]:ede}]]],Yge=[3,O,bE,0,[yE,RN],[0,0]],Xge=[3,O,bne,0,[yE,RN],[[0,{[_]:"CapacityReservationId",[y]:$$}],[0,{[_]:"CapacityReservationResourceGroupArn",[y]:Wfe}]]],Wge=[3,O,kne,0,[c$,h$,m$],[1,1,1]],Jge=[3,O,Nne,0,[c$,h$,m$],[[1,{[_]:"TcpEstablishedTimeout",[y]:Jme}],[1,{[_]:"UdpStreamTimeout",[y]:gge}],[1,{[_]:"UdpTimeout",[y]:yge}]]],eye=[3,O,Sne,0,[Xle,Wle,Fc,mse,Sse,Vd,Fd,Oce,mi,xN,Vne,It],[0,0,0,0,[0,{[_]:"DestinationRegion",[y]:hde}],[2,{[_]:"Encrypted",[y]:Xd}],[0,{[_]:"KmsKeyId",[y]:Wg}],[()=>Bge,{[_]:"PresignedUrl",[y]:ime}],[()=>vi,{[y]:To}],1,0,[2,{[_]:"DryRun",[y]:$t}]],2],tye=[3,O,Ene,0,[jr,Ha],[[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"SnapshotId",[y]:ty}]]],nye=[3,O,gE,0,[EN,l$,fN,BL],[[1,{[_]:"CoreCount",[y]:jfe}],[1,{[_]:"ThreadsPerCore",[y]:age}],[0,{[_]:"AmdSevSnp",[y]:Ife}],[0,{[_]:"NestedVirtualization",[y]:$he}]]],sye=[3,O,yne,0,[EN,l$,fN,BL],[1,1,0,0]],rye=[3,O,lne,0,[Ts,fr,mi,Vle,It,Fc,Yae,Bd],[[0,{[_]:"InstanceId",[y]:Iu}],[0,{[_]:"Name",[y]:Vr}],[()=>vi,{[y]:To}],0,[2,{[_]:"DryRun",[y]:$t}],[0,{[_]:"Description",[y]:Yd}],[2,{[_]:"NoReboot",[y]:khe}],[()=>nz,{[_]:"BlockDeviceMapping",[y]:Qg}]],2],oye=[3,O,une,0,[wu],[[0,{[_]:"ImageId",[y]:mx}]]],iye=[3,O,hne,0,[Io,yL,mi,Uie,It],[0,0,[()=>vi,{[y]:To}],0,[2,{[_]:"DryRun",[y]:$t}]],1],aye=[3,O,xne,0,[dr,Fc,Va,mi,hae,It],[0,0,0,[()=>vi,{[y]:To}],0,[2,{[_]:"DryRun",[y]:$t}]],1],cye=[3,O,wne,0,[gi,mi,Ba,xu,Ud,Bg,Va,aL,rL,lL,sL,cL,It],[0,[()=>vi,{[y]:To}],0,0,0,0,0,2,0,1,0,1,[2,{[_]:"DryRun",[y]:$t}]],1],lye=[3,O,Rne,0,[a$],[[()=>W4,{[_]:"Subnet",[y]:Xme}]]],uye=[3,O,$ne,0,[Ba,xu,Vd,jg,Fd,Va,JE,Ha,Kg,mi,VE,Fg,SE,ex,Ru,It],[0,0,[2,{[_]:"Encrypted",[y]:Xd}],1,0,0,1,0,0,[()=>vi,{[y]:To}],2,1,[0,4],1,()=>K4,[2,{[_]:"DryRun",[y]:$t}]]],fye=[3,O,zne,0,[Ud,fL,Bg,rL,lL,sL,cL,goe,y$,mi,It,mL,Cte],[0,0,0,0,1,0,1,0,()=>Fve,[()=>vi,{[y]:To}],[2,{[_]:"DryRun",[y]:$t}],[0,{[_]:"InstanceTenancy",[y]:r4}],[2,{[_]:"AmazonProvidedIpv6CidrBlock",[y]:Rfe}]]],dye=[3,O,Bne,0,[x$],[[()=>ez,{[_]:"Vpc",[y]:Mge}]]],pye=[3,O,Cne,0,[rne],[0],1],hye=[3,O,lse,0,[Io,Gc,It],[0,0,[2,{[_]:"DryRun",[y]:$t}]]],mye=[3,O,use,0,[kce,Gc],[[2,{[_]:"Return",[y]:ume}],[0,{[_]:"KeyPairId",[y]:Jg}]]],gye=[3,O,Ese,0,[Ha,It],[0,[2,{[_]:"DryRun",[y]:$t}]],1],yye=[3,O,xse,0,[qa,It],[0,[2,{[_]:"DryRun",[y]:$t}]],1],vye=[3,O,Nse,0,[dr,It],[0,[2,{[_]:"DryRun",[y]:$t}]],1],bye=[3,O,Lse,0,[gi,It],[0,[2,{[_]:"DryRun",[y]:$t}]],1],Sye=[3,O,Hne,0,[yfe,mfe,yte,It,Ao],[[()=>pSe,{[y]:nx}],[()=>dSe,{[y]:tx}],2,[2,{[_]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],_ye=[3,O,qne,0,[Ute],[[()=>Yve,{[_]:"AvailabilityZoneInfo",[y]:Ofe}]]],Eye=[3,O,Wne,0,[Dre,Loe,uce,yoe,_oe,Zc,Ks,It,Ao],[[()=>lbe,{[y]:MN}],[()=>pbe,{[y]:wu}],[()=>sz,{[y]:qE}],2,2,1,0,[2,{[_]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],xye=[3,O,Jne,0,[Ks,Nie],[[0,{[_]:"NextToken",[y]:yi}],[()=>hbe,{[_]:"ImagesSet",[y]:Vpe}]]],wye=[3,O,ese,0,[Hd,It,Ao,Ks,Zc],[[()=>sp,{[y]:Ts}],[2,{[_]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}],[0,{[_]:"NextToken",[y]:yi}],[1,{[_]:"MaxResults",[y]:d4}]]],Rye=[3,O,tse,0,[Ks,ile],[[0,{[_]:"NextToken",[y]:yi}],[()=>Fbe,{[_]:"ReservationSet",[y]:bme}]]],Cye=[3,O,nse,0,[It,gL,Ao,Zc,Ks],[2,[64,{[y]:qd}],[()=>Oo,{[y]:Ur}],1,0]],Aye=[3,O,sse,0,[gL,Ks],[[()=>Ibe,{[_]:"InstanceTypeSet",[y]:Kpe}],[0,{[_]:"NextToken",[y]:yi}]]],Iye=[3,O,fse,0,[Hie,Gie,die,It,Ao],[[()=>Mbe,{[y]:Io}],[()=>Dbe,{[y]:Gc}],2,[2,{[_]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Tye=[3,O,dse,0,[qie],[[()=>Pbe,{[_]:"KeySet",[y]:Wpe}]]],Oye=[3,O,vse,0,[tle,Ite,It,Ao],[[()=>qbe,{[y]:Hg}],2,[2,{[_]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Mye=[3,O,bse,0,[rle],[[()=>Hbe,{[_]:"RegionInfo",[y]:mme}]]],Dye=[3,O,wse,0,[Zc,Ks,tce,Nce,$le,It,Ao],[1,0,[()=>sz,{[y]:qE}],[64,{[y]:Lce}],[()=>Zbe,{[y]:Ha}],[2,{[_]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Pye=[3,O,Rse,0,[Ks,aue],[[0,{[_]:"NextToken",[y]:yi}],[()=>Qbe,{[_]:"SnapshotSet",[y]:Vme}]]],kye=[3,O,Cse,0,[Ao,Sle,Ks,Zc,It],[[()=>Oo,{[y]:Ur}],[()=>Ybe,{[y]:qa}],0,1,[2,{[_]:"DryRun",[y]:$t}]]],Nye=[3,O,Ase,0,[Ks,lue],[[0,{[_]:"NextToken",[y]:yi}],[()=>Wbe,{[_]:"SubnetSet",[y]:Hme}]]],Lye=[3,O,$se,0,[Kue,It,Ao,Ks,Zc],[[()=>oSe,{[y]:dr}],[2,{[_]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}],[0,{[_]:"NextToken",[y]:yi}],[1,{[_]:"MaxResults",[y]:d4}]]],$ye=[3,O,zse,0,[Ks,lfe],[[0,{[_]:"NextToken",[y]:yi}],[()=>iSe,{[_]:"VolumeSet",[y]:Age}]]],zye=[3,O,Bse,0,[Ao,Zue,Ks,Zc,It],[[()=>Oo,{[y]:Ur}],[()=>cSe,{[y]:gi}],0,1,[2,{[_]:"DryRun",[y]:$t}]]],Bye=[3,O,Use,0,[Ks,ffe],[[0,{[_]:"NextToken",[y]:yi}],[()=>uSe,{[_]:"VpcSet",[y]:Ige}]]],Uye=[3,O,jse,0,[dr,EE,TE,Ts,It],[0,0,2,0,[2,{[_]:"DryRun",[y]:$t}]],1],jye=[3,O,ase,0,[xle,Ua,Gg],[[1,{[_]:"SizeInGB",[y]:Ome}],[1,{[_]:"Count",[y]:Yc}],[0,{[_]:"Type",[y]:Ex}]]],Vye=[3,O,Zse,0,[ja,jg,Ha,S$,Kg,Fd,Fg,Va,Ba,Vd,ex,xu,jd],[[2,{[_]:"DeleteOnTermination",[y]:Xc}],[1,{[_]:"Iops",[y]:i4}],[0,{[_]:"SnapshotId",[y]:ty}],[1,{[_]:"VolumeSize",[y]:U4}],[0,{[_]:"VolumeType",[y]:j4}],[0,{[_]:"KmsKeyId",[y]:Wg}],[1,{[_]:"Throughput",[y]:$4}],[0,{[_]:"OutpostArn",[y]:ep}],[0,{[_]:"AvailabilityZone",[y]:Qd}],[2,{[_]:"Encrypted",[y]:Xd}],1,0,1]],Hye=[3,O,Xse,0,[jd,yN,SN,vN,_L,CL,EL],[[1,{[_]:"EbsCardIndex",[y]:cx}],[1,{[_]:"BaselineBandwidthInMbps",[y]:D$}],[1,{[_]:"BaselineThroughputInMBps",[y]:L$}],[1,{[_]:"BaselineIops",[y]:P$}],[1,{[_]:"MaximumBandwidthInMbps",[y]:l4}],[1,{[_]:"MaximumThroughputInMBps",[y]:p4}],[1,{[_]:"MaximumIops",[y]:u4}]]],qye=[3,O,NN,0,[Rre,HN,$N,$L,_ae,wte,Eae,Wse],[[0,{[_]:"EbsOptimizedSupport",[y]:Ude}],[0,{[_]:"EncryptionSupport",[y]:q$}],[()=>Kye,{[_]:"EbsOptimizedInfo",[y]:zde}],[0,{[_]:"NvmeSupport",[y]:b4}],[1,{[_]:"MaximumEbsAttachments",[y]:uhe}],[0,{[_]:"AttachmentLimitType",[y]:xfe}],[1,{[_]:"MaximumEbsCards",[y]:fhe}],[()=>rbe,{[_]:"EbsCardSet",[y]:Sde}]]],Fye=[3,O,vre,0,[Ng,ja,Zd,dr,lN,Jue,Ru,jd],[[4,{[_]:"AttachTime",[y]:Zg}],[2,{[_]:"DeleteOnTermination",[y]:Xc}],[0,{[_]:"Status",[y]:Ga}],[0,{[_]:"VolumeId",[y]:Du}],[0,{[_]:"AssociatedResource",[y]:C$}],[0,{[_]:"VolumeOwnerId",[y]:wge}],[()=>ry,{[_]:"Operator",[y]:ey}],[1,{[_]:"EbsCardIndex",[y]:cx}]]],Gye=[3,O,bre,0,[dr,ja],[[0,{[_]:"VolumeId",[y]:Du}],[2,{[_]:"DeleteOnTermination",[y]:Xc}]]],Kye=[3,O,$N,0,[yN,SN,vN,_L,CL,EL],[[1,{[_]:"BaselineBandwidthInMbps",[y]:D$}],[1,{[_]:"BaselineThroughputInMBps",[y]:L$}],[1,{[_]:"BaselineIops",[y]:P$}],[1,{[_]:"MaximumBandwidthInMbps",[y]:l4}],[1,{[_]:"MaximumThroughputInMBps",[y]:p4}],[1,{[_]:"MaximumIops",[y]:u4}]]],Zye=[3,O,LN,0,[xae],[[1,{[_]:"MaximumEfaInterfaces",[y]:dhe}]]],Qye=[3,O,sre,0,[lre,rre,ire,are],[[0,{[_]:"ElasticGpuId",[y]:Ide}],[0,{[_]:"ElasticGpuAssociationId",[y]:wde}],[0,{[_]:"ElasticGpuAssociationState",[y]:Rde}],[0,{[_]:"ElasticGpuAssociationTime",[y]:Ade}]]],Yye=[3,O,DN,0,[Gg],[0],1],Xye=[3,O,PN,0,[Gg,Ua],[0,1],1],Wye=[3,O,fre,0,[gre,dre,hre,mre],[[0,{[_]:"ElasticInferenceAcceleratorArn",[y]:Tde}],[0,{[_]:"ElasticInferenceAcceleratorAssociationId",[y]:Ode}],[0,{[_]:"ElasticInferenceAcceleratorAssociationState",[y]:Mde}],[4,{[_]:"ElasticInferenceAcceleratorAssociationTime",[y]:Pde}]]],Jye=[3,O,Are,0,[BN,VN],[2,()=>e0e]],e0e=[3,O,Tre,0,[jN],[2]],t0e=[3,O,wE,0,[IE],[[2,{[_]:"Enabled",[y]:F$}]]],n0e=[3,O,wre,0,[IE],[2]],s0e=[3,O,Ur,0,[fr,cfe],[0,[()=>nSe,{[y]:Au}]]],r0e=[3,O,kre,0,[fr,Gd,Ua,Kc],[[0,{[_]:"Name",[y]:Vr}],[0,{[_]:"Manufacturer",[y]:Jd}],[1,{[_]:"Count",[y]:Yc}],[()=>o0e,{[_]:"MemoryInfo",[y]:Tu}]]],o0e=[3,O,Lre,0,[Cu],[[1,{[_]:"SizeInMiB",[y]:Mu}]]],i0e=[3,O,qN,0,[jre,uue],[[()=>ube,{[_]:"Fpgas",[y]:tpe}],[1,{[_]:"TotalFpgaMemoryInMiB",[y]:ege}]]],a0e=[3,O,Hre,0,[Ts,fae,It],[0,2,[2,{[_]:"DryRun",[y]:$t}]],1],c0e=[3,O,qre,0,[Ts,Oue,lce],[[0,{[_]:"InstanceId",[y]:Iu}],[4,{[_]:"Timestamp",[y]:pge}],[0,{[_]:"Output",[y]:qhe}]]],l0e=[3,O,Fre,0,[fr,Gd,Ua,eae,Wre,pfe,Kc],[[0,{[_]:"Name",[y]:Vr}],[0,{[_]:"Manufacturer",[y]:Jd}],[1,{[_]:"Count",[y]:Yc}],[1,{[_]:"LogicalGpuCount",[y]:nhe}],[1,{[_]:"GpuPartitionSize",[y]:rpe}],[()=>fSe,{[_]:"WorkloadSet",[y]:Dge}],[()=>u0e,{[_]:"MemoryInfo",[y]:Tu}]]],u0e=[3,O,Kre,0,[Cu],[[1,{[_]:"SizeInMiB",[y]:Mu}]]],f0e=[3,O,GN,0,[Jre,fue],[[()=>fbe,{[_]:"Gpus",[y]:ope}],[1,{[_]:"TotalGpuMemoryInMiB",[y]:tge}]]],d0e=[3,O,Yre,0,[OE,ME],[[0,{[_]:"GroupId",[y]:fx}],[0,{[_]:"GroupName",[y]:dx}]]],p0e=[3,O,DE,0,[IN],[[2,{[_]:"Configured",[y]:rde}]]],h0e=[3,O,toe,0,[IN],[2]],m0e=[3,O,$E,0,[pN,ooe],[[0,{[_]:"Arn",[y]:I$}],[0,{[_]:"Id",[y]:hpe}]]],g0e=[3,O,Moe,0,[pN,fr],[[0,{[_]:"Arn",[y]:I$}],[0,{[_]:"Name",[y]:Vr}]]],y0e=[3,O,Lie,0,[GL,p$,Bd,Fc,$g,kE,rie,fr,WL,JL,XE,WE,jr,_$,bN,u$,Pse,Tie,Cle,yse,nae,foe,wle,Ile,FN,wu,Uoe,Zs,Qc,one,Pce,VL,hN,kie,jE,KE,QL],[[0,{[_]:"PlatformDetails",[y]:E4}],[0,{[_]:"UsageOperation",[y]:z4}],[()=>ebe,{[_]:"BlockDeviceMapping",[y]:Qg}],[0,{[_]:"Description",[y]:Yd}],[2,{[_]:"EnaSupport",[y]:Yg}],[0,{[_]:"Hypervisor",[y]:hx}],[0,{[_]:"ImageOwnerAlias",[y]:Tpe}],[0,{[_]:"Name",[y]:Vr}],[0,{[_]:"RootDeviceName",[y]:A4}],[0,{[_]:"RootDeviceType",[y]:I4}],[0,{[_]:"SriovNetSupport",[y]:_x}],[()=>X4,{[_]:"StateReason",[y]:P4}],[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"VirtualizationType",[y]:V4}],[0,{[_]:"BootMode",[y]:k$}],[0,{[_]:"TpmSupport",[y]:L4}],[0,{[_]:"DeprecationTime",[y]:gde}],[0,{[_]:"ImdsSupport",[y]:qpe}],[0,{[_]:"SourceInstanceId",[y]:Mme}],[0,{[_]:"DeregistrationProtection",[y]:pde}],[0,{[_]:"LastLaunchedTime",[y]:she}],[2,{[_]:"ImageAllowed",[y]:Spe}],[0,{[_]:"SourceImageId",[y]:Pme}],[0,{[_]:"SourceImageRegion",[y]:kme}],[2,{[_]:"FreeTierEligible",[y]:G$}],[0,{[_]:"ImageId",[y]:mx}],[0,{[_]:"ImageLocation",[y]:Rpe}],[0,{[_]:"ImageState",[y]:Hpe}],[0,{[_]:"ImageOwnerId",[y]:Ope}],[0,{[_]:"CreationDate",[y]:Hfe}],[2,{[_]:"IsPublic",[y]:Bpe}],[()=>rz,{[_]:"ProductCodes",[y]:_4}],[0,{[_]:"Architecture",[y]:T$}],[0,{[_]:"ImageType",[y]:Qpe}],[0,{[_]:"KernelId",[y]:a4}],[0,{[_]:"RamdiskId",[y]:T4}],[0,{[_]:"Platform",[y]:w4}]]],v0e=[3,O,zoe,0,[Io,Cce,mi,It],[[0,{[_]:"KeyName",[y]:Wd}],[21,{[_]:"PublicKeyMaterial",[y]:nme}],[()=>vi,{[y]:To}],[2,{[_]:"DryRun",[y]:$t}]],2],b0e=[3,O,Boe,0,[UE,Io,Gc,jr],[[0,{[_]:"KeyFingerprint",[y]:yx}],[0,{[_]:"KeyName",[y]:Wd}],[0,{[_]:"KeyPairId",[y]:Jg}],[()=>Hr,{[_]:"TagSet",[y]:no}]]],S0e=[3,O,eL,0,[dN,pue],[[()=>mbe,{[_]:"Accelerators",[y]:A$}],[1,{[_]:"TotalInferenceMemoryInMiB",[y]:nge}]]],_0e=[3,O,voe,0,[Ua,fr,Gd,Kc],[[1,{[_]:"Count",[y]:Yc}],[0,{[_]:"Name",[y]:Vr}],[0,{[_]:"Manufacturer",[y]:Jd}],[()=>E0e,{[_]:"MemoryInfo",[y]:Tu}]]],E0e=[3,O,Soe,0,[Cu],[[1,{[_]:"SizeInMiB",[y]:Mu}]]],x0e=[3,O,$ie,0,[hN,Bd,SE,xE,$g,kE,$E,Voe,cre,yre,DL,Va,WL,JL,e$,qg,Ale,XE,WE,jr,_$,gE,tne,yE,vE,DE,pae,wL,wE,bN,GL,p$,Due,HL,LE,u$,RL,cne,NL,Ru,n$,Ts,wu,Zs,FE,FL,eue,Io,xte,VL,qd,uae,GE,jE,KE,QL,HE,qa,gi,hi,xce],[[0,{[_]:"Architecture",[y]:T$}],[()=>gbe,{[_]:"BlockDeviceMapping",[y]:Qg}],[0,{[_]:"ClientToken",[y]:z$}],[2,{[_]:"EbsOptimized",[y]:lx}],[2,{[_]:"EnaSupport",[y]:Yg}],[0,{[_]:"Hypervisor",[y]:hx}],[()=>m0e,{[_]:"IamInstanceProfile",[y]:t4}],[0,{[_]:"InstanceLifecycle",[y]:Cpe}],[()=>obe,{[_]:"ElasticGpuAssociationSet",[y]:Cde}],[()=>abe,{[_]:"ElasticInferenceAcceleratorAssociationSet",[y]:Dde}],[()=>_be,{[_]:"NetworkInterfaceSet",[y]:The}],[0,{[_]:"OutpostArn",[y]:ep}],[0,{[_]:"RootDeviceName",[y]:A4}],[0,{[_]:"RootDeviceType",[y]:I4}],[()=>wx,{[_]:"GroupSet",[y]:px}],[2,{[_]:"SourceDestCheck",[y]:Sx}],[0,{[_]:"SpotInstanceRequestId",[y]:Nme}],[0,{[_]:"SriovNetSupport",[y]:_x}],[()=>X4,{[_]:"StateReason",[y]:P4}],[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"VirtualizationType",[y]:V4}],[()=>nye,{[_]:"CpuOptions",[y]:Zfe}],[0,{[_]:"CapacityBlockId",[y]:Bfe}],[0,{[_]:"CapacityReservationId",[y]:$$}],[()=>Qge,{[_]:"CapacityReservationSpecification",[y]:Jfe}],[()=>p0e,{[_]:"HibernationOptions",[y]:cpe}],[()=>kbe,{[_]:"LicenseSet",[y]:rhe}],[()=>N0e,{[_]:"MetadataOptions",[y]:ghe}],[()=>t0e,{[_]:"EnclaveOptions",[y]:jde}],[0,{[_]:"BootMode",[y]:k$}],[0,{[_]:"PlatformDetails",[y]:E4}],[0,{[_]:"UsageOperation",[y]:z4}],[4,{[_]:"UsageOperationUpdateTime",[y]:mge}],[()=>_ve,{[_]:"PrivateDnsNameOptions",[y]:Zhe}],[0,{[_]:"Ipv6Address",[y]:X$}],[0,{[_]:"TpmSupport",[y]:L4}],[()=>M0e,{[_]:"MaintenanceOptions",[y]:yhe}],[0,{[_]:"CurrentInstanceBootMode",[y]:Gfe}],[()=>B0e,{[_]:"NetworkPerformanceOptions",[y]:Phe}],[()=>ry,{[_]:"Operator",[y]:ey}],[()=>wbe,{[_]:"SecondaryInterfaceSet",[y]:Lme}],[0,{[_]:"InstanceId",[y]:Iu}],[0,{[_]:"ImageId",[y]:mx}],[()=>AS,{[_]:"InstanceState",[y]:Fpe}],[0,{[_]:"PrivateDnsName",[y]:bx}],[0,{[_]:"DnsName",[y]:fde}],[0,{[_]:"Reason",[y]:Eme}],[0,{[_]:"KeyName",[y]:Wd}],[1,{[_]:"AmiLaunchIndex",[y]:Efe}],[()=>rz,{[_]:"ProductCodes",[y]:_4}],[0,{[_]:"InstanceType",[y]:gx}],[4,{[_]:"LaunchTime",[y]:ohe}],[()=>Z4,{[_]:"Placement",[y]:lme}],[0,{[_]:"KernelId",[y]:a4}],[0,{[_]:"RamdiskId",[y]:T4}],[0,{[_]:"Platform",[y]:w4}],[()=>uve,{[_]:"Monitoring",[y]:xhe}],[0,{[_]:"SubnetId",[y]:ny}],[0,{[_]:"VpcId",[y]:np}],[0,{[_]:"PrivateIpAddress",[y]:Wc}],[0,{[_]:"IpAddress",[y]:_pe}]]],w0e=[3,O,ioe,0,[BN,VN],[[2,{[_]:"EnaSrdEnabled",[y]:Hde}],[()=>R0e,{[_]:"EnaSrdUdpSpecification",[y]:Kde}]]],R0e=[3,O,aoe,0,[jN],[[2,{[_]:"EnaSrdUdpEnabled",[y]:Gde}]]],C0e=[3,O,doe,0,[_E,AE],[[0,{[_]:"DeviceName",[y]:ax}],[()=>Fye,{[_]:"Ebs",[y]:ux}]]],A0e=[3,O,hoe,0,[_E,AE,b$,OL],[[0,{[_]:"DeviceName",[y]:ax}],[()=>Gye,{[_]:"Ebs",[y]:ux}],[0,{[_]:"VirtualName",[y]:B4}],[0,{[_]:"NoDevice",[y]:g4}]]],I0e=[3,O,Doe,0,[BE],[[0,{[_]:"Ipv4Prefix",[y]:Lpe}]]],T0e=[3,O,Coe,0,[LE,fie],[[0,{[_]:"Ipv6Address",[y]:X$}],[2,{[_]:"IsPrimaryIpv6",[y]:Ppe}]]],O0e=[3,O,Poe,0,[zE],[[0,{[_]:"Ipv6Prefix",[y]:zpe}]]],M0e=[3,O,qoe,0,[uN,Jce],[[0,{[_]:"AutoRecovery",[y]:Afe}],[0,{[_]:"RebootMigration",[y]:vme}]]],D0e=[3,O,Foe,0,[uN],[0]],P0e=[3,O,Goe,0,[Pae,Zle],[0,()=>Ove]],k0e=[3,O,Koe,0,[XN,YN,ZN,QN,iL],[0,1,0,0,0]],N0e=[3,O,Zoe,0,[Zs,XN,YN,ZN,QN,iL],[[0,{[_]:"State",[y]:Fa}],[0,{[_]:"HttpTokens",[y]:ppe}],[1,{[_]:"HttpPutResponseHopLimit",[y]:upe}],[0,{[_]:"HttpEndpoint",[y]:ipe}],[0,{[_]:"HttpProtocolIpv6",[y]:lpe}],[0,{[_]:"InstanceMetadataTags",[y]:Ape}]]],L0e=[3,O,Yoe,0,[mN,gN,Fc,zg,NE,SL,ML,Qc,FE,hi,Vg,qg,Zd,qa,gi,Ug,dL,uL,Dne,Ru],[[()=>G4,{[_]:"Association",[y]:O$}],[()=>$0e,{[_]:"Attachment",[y]:M$}],[0,{[_]:"Description",[y]:Yd}],[()=>wx,{[_]:"GroupSet",[y]:px}],[()=>Rx,{[_]:"Ipv6AddressesSet",[y]:Y$}],[0,{[_]:"MacAddress",[y]:c4}],[0,{[_]:"NetworkInterfaceId",[y]:y4}],[0,{[_]:"OwnerId",[y]:Ou}],[0,{[_]:"PrivateDnsName",[y]:bx}],[0,{[_]:"PrivateIpAddress",[y]:Wc}],[()=>xbe,{[_]:"PrivateIpAddressesSet",[y]:x4}],[2,{[_]:"SourceDestCheck",[y]:Sx}],[0,{[_]:"Status",[y]:Ga}],[0,{[_]:"SubnetId",[y]:ny}],[0,{[_]:"VpcId",[y]:np}],[0,{[_]:"InterfaceType",[y]:o4}],[()=>vbe,{[_]:"Ipv4PrefixSet",[y]:kpe}],[()=>bbe,{[_]:"Ipv6PrefixSet",[y]:Npe}],[()=>Jge,{[_]:"ConnectionTrackingConfiguration",[y]:nde}],[()=>ry,{[_]:"Operator",[y]:ey}]]],G4=[3,O,Xoe,0,[ane,mne,oie,FL,bce],[[0,{[_]:"CarrierIp",[y]:Ffe}],[0,{[_]:"CustomerOwnedIp",[y]:Qfe}],[0,{[_]:"IpOwnerId",[y]:Mpe}],[0,{[_]:"PublicDnsName",[y]:Yhe}],[0,{[_]:"PublicIp",[y]:Whe}]]],$0e=[3,O,Woe,0,[Ng,cN,ja,Lg,Zd,Kd,UN,zN],[[4,{[_]:"AttachTime",[y]:Zg}],[0,{[_]:"AttachmentId",[y]:R$}],[2,{[_]:"DeleteOnTermination",[y]:Xc}],[1,{[_]:"DeviceIndex",[y]:ix}],[0,{[_]:"Status",[y]:Ga}],[1,{[_]:"NetworkCardIndex",[y]:vx}],[()=>w0e,{[_]:"EnaSrdSpecification",[y]:qde}],[1,{[_]:"EnaQueueCount",[y]:Vde}]]],z0e=[3,O,eie,0,[Rte,ja,Fc,Lg,zg,JN,NE,ML,hi,Vg,Qle,qa,bte,Ug,Kd,dL,cie,uL,aie,wce,UN,Pne,zN],[[2,{[_]:"AssociatePublicIpAddress",[y]:wfe}],[2,{[_]:"DeleteOnTermination",[y]:Xc}],[0,{[_]:"Description",[y]:Yd}],[1,{[_]:"DeviceIndex",[y]:ix}],[()=>oz,{[y]:ZE}],[1,{[_]:"Ipv6AddressCount",[y]:mpe}],[()=>Rx,{[_]:"Ipv6Addresses",[y]:Y$}],[0,{[_]:"NetworkInterfaceId",[y]:y4}],[0,{[_]:"PrivateIpAddress",[y]:Wc}],[()=>jbe,{[_]:"PrivateIpAddresses",[y]:x4}],[1,{[_]:"SecondaryPrivateIpAddressCount",[y]:Bme}],[0,{[_]:"SubnetId",[y]:ny}],2,0,1,[()=>Tbe,{[y]:BE}],1,[()=>Obe,{[y]:zE}],1,2,()=>Jye,()=>Wge,1]],B0e=[3,O,nie,0,[_N],[[0,{[_]:"BandwidthWeighting",[y]:Lfe}]]],U0e=[3,O,sie,0,[_N],[0]],j0e=[3,O,lie,0,[mN,YL,FE,hi],[[()=>G4,{[_]:"Association",[y]:O$}],[2,{[_]:"Primary",[y]:R4}],[0,{[_]:"PrivateDnsName",[y]:bx}],[0,{[_]:"PrivateIpAddress",[y]:Wc}]]],V0e=[3,O,Aie,0,[gN,SL,Rle,Qc,Vg,qg,Zd,r$,Gle,Ug],[[()=>H0e,{[_]:"Attachment",[y]:M$}],[0,{[_]:"MacAddress",[y]:c4}],[0,{[_]:"SecondaryInterfaceId",[y]:Dme}],[0,{[_]:"OwnerId",[y]:Ou}],[()=>Rbe,{[_]:"PrivateIpAddressSet",[y]:Jhe}],[2,{[_]:"SourceDestCheck",[y]:Sx}],[0,{[_]:"Status",[y]:Ga}],[0,{[_]:"SecondarySubnetId",[y]:jme}],[0,{[_]:"SecondaryNetworkId",[y]:$me}],[0,{[_]:"InterfaceType",[y]:o4}]]],H0e=[3,O,bie,0,[Ng,cN,ja,Lg,Zd,Kd],[[4,{[_]:"AttachTime",[y]:Zg}],[0,{[_]:"AttachmentId",[y]:R$}],[2,{[_]:"DeleteOnTermination",[y]:Xc}],[1,{[_]:"DeviceIndex",[y]:ix}],[0,{[_]:"Status",[y]:Ga}],[1,{[_]:"NetworkCardIndex",[y]:vx}]]],q0e=[3,O,_ie,0,[hi],[[0,{[_]:"PrivateIpAddress",[y]:Wc}]]],F0e=[3,O,wie,0,[hi],[0],1],G0e=[3,O,Cie,0,[ja,Lg,Vg,Sce,r$,Ug,Kd],[2,1,[()=>Cbe,{[y]:hi}],1,0,0,1]],AS=[3,O,Oie,0,[AN,fr],[[1,{[_]:"Code",[y]:U$}],[0,{[_]:"Name",[y]:Vr}]]],K0e=[3,O,yie,0,[Ts,Mne,Tce],[[0,{[_]:"InstanceId",[y]:Iu}],[()=>AS,{[_]:"CurrentState",[y]:tde}],[()=>AS,{[_]:"PreviousState",[y]:ome}]]],Z0e=[3,O,pL,0,[xue,Kse,$L,HN],[[1,{[_]:"TotalSizeInGB",[y]:cge}],[()=>sbe,{[_]:"Disks",[y]:bde}],[0,{[_]:"NvmeSupport",[y]:b4}],[0,{[_]:"EncryptionSupport",[y]:q$}]]],Q0e=[3,O,Pie,0,[qd,ine,FN,nue,Yle,oue,Yte,kE,ZL,g$,Kc,Iie,pL,NN,PL,GN,qN,KL,eL,soe,Xte,Yne,Ate,fle,Kae,Xae,zL,bL,kL,Ice,Wce],[[0,{[_]:"InstanceType",[y]:gx}],[2,{[_]:"CurrentGeneration",[y]:qfe}],[2,{[_]:"FreeTierEligible",[y]:G$}],[()=>tSe,{[_]:"SupportedUsageClasses",[y]:Gme}],[()=>Gbe,{[_]:"SupportedRootDeviceTypes",[y]:Ume}],[()=>sSe,{[_]:"SupportedVirtualizationTypes",[y]:Zme}],[2,{[_]:"BareMetal",[y]:kfe}],[0,{[_]:"Hypervisor",[y]:hx}],[()=>xve,{[_]:"ProcessorInfo",[y]:eme}],[()=>jve,{[_]:"VCpuInfo",[y]:vge}],[()=>ive,{[_]:"MemoryInfo",[y]:Tu}],[2,{[_]:"InstanceStorageSupported",[y]:jpe}],[()=>Z0e,{[_]:"InstanceStorageInfo",[y]:Upe}],[()=>qye,{[_]:"EbsInfo",[y]:Nde}],[()=>dve,{[_]:"NetworkInfo",[y]:Mhe}],[()=>f0e,{[_]:"GpuInfo",[y]:npe}],[()=>i0e,{[_]:"FpgaInfo",[y]:Xde}],[()=>vve,{[_]:"PlacementGroupInfo",[y]:Xhe}],[()=>S0e,{[_]:"InferenceAcceleratorInfo",[y]:gpe}],[2,{[_]:"HibernationSupported",[y]:dpe}],[2,{[_]:"BurstablePerformanceSupported",[y]:Nfe}],[2,{[_]:"DedicatedHostsSupported",[y]:lde}],[2,{[_]:"AutoRecoverySupported",[y]:Cfe}],[()=>tbe,{[_]:"SupportedBootModes",[y]:Rme}],[0,{[_]:"NitroEnclavesSupport",[y]:Ahe}],[0,{[_]:"NitroTpmSupport",[y]:Lhe}],[()=>yve,{[_]:"NitroTpmInfo",[y]:Nhe}],[()=>sve,{[_]:"MediaAcceleratorInfo",[y]:che}],[()=>gve,{[_]:"NeuronInfo",[y]:Dhe}],[0,{[_]:"PhcSupport",[y]:rme}],[0,{[_]:"RebootMigrationSupport",[y]:yme}]]],Y0e=[3,O,mie,0,[BE],[0]],X0e=[3,O,gie,0,[zE],[0]],W0e=[3,O,Qie,0,[Gc,jr,Io,UE,jie],[[0,{[_]:"KeyPairId",[y]:Jg}],[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"KeyName",[y]:Wd}],[0,{[_]:"KeyFingerprint",[y]:yx}],[()=>jge,{[_]:"KeyMaterial",[y]:Xpe}]]],J0e=[3,O,Kie,0,[Gc,yL,jr,Rce,CN,Io,UE],[[0,{[_]:"KeyPairId",[y]:Jg}],[0,{[_]:"KeyType",[y]:Jpe}],[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"PublicKey",[y]:tme}],[4,{[_]:"CreateTime",[y]:B$}],[0,{[_]:"KeyName",[y]:Wd}],[0,{[_]:"KeyFingerprint",[y]:yx}]]],eve=[3,O,lae,0,[aae,cae,E$],[0,0,0]],tve=[3,O,Wie,0,[vL],[[0,{[_]:"LicenseConfigurationArn",[y]:the}]]],nve=[3,O,Xie,0,[vL],[0]],sve=[3,O,bL,0,[dN,Sue],[[()=>Lbe,{[_]:"Accelerators",[y]:A$}],[1,{[_]:"TotalMediaMemoryInMiB",[y]:oge}]]],rve=[3,O,vae,0,[Ua,fr,Gd,Kc],[[1,{[_]:"Count",[y]:Yc}],[0,{[_]:"Name",[y]:Vr}],[0,{[_]:"Manufacturer",[y]:Jd}],[()=>ove,{[_]:"MemoryInfo",[y]:Tu}]]],ove=[3,O,Sae,0,[Cu],[[1,{[_]:"SizeInMiB",[y]:Mu}]]],ive=[3,O,Kc,0,[Cu],[[1,{[_]:"SizeInMiB",[y]:Mu}]]],ave=[3,O,Cae,0,[Ts,qg,TN,It,Vte,Au,Bd,ON,qd,Yie,sle,d$,oL,zg,xE,XE,$g],[[0,{[_]:"InstanceId",[y]:Iu}],[()=>Yf,0],[()=>Yf,0],[2,{[_]:"DryRun",[y]:$t}],[0,{[_]:"Attribute",[y]:Dfe}],[0,{[_]:"Value",[y]:tp}],[()=>ybe,{[_]:"BlockDeviceMapping",[y]:Qg}],[()=>Yf,{[_]:"DisableApiTermination",[y]:j$}],[()=>Xf,{[_]:"InstanceType",[y]:gx}],[()=>Xf,{[_]:"Kernel",[y]:ehe}],[()=>Xf,{[_]:"Ramdisk",[y]:_me}],[()=>Kge,{[_]:"UserData",[y]:hge}],[()=>Xf,{[_]:"InstanceInitiatedShutdownBehavior",[y]:n4}],[()=>dbe,{[y]:OE}],[()=>Yf,{[_]:"EbsOptimized",[y]:lx}],[()=>Xf,{[_]:"SriovNetSupport",[y]:_x}],[()=>Yf,{[_]:"EnaSupport",[y]:Yg}]],1],cve=[3,O,kae,0,[dr,It,JE,Kg,jg,Fg,VE],[0,2,1,0,1,1,2],1],lve=[3,O,Nae,0,[v$],[[()=>Vve,{[_]:"VolumeModification",[y]:xge}]]],uve=[3,O,HE,0,[Zs],[[0,{[_]:"State",[y]:Fa}]]],fve=[3,O,jae,0,[Kd,LL,xL,Ste,Fte,fce,Zne,wae,Rae],[[1,{[_]:"NetworkCardIndex",[y]:vx}],[0,{[_]:"NetworkPerformance",[y]:v4}],[1,{[_]:"MaximumNetworkInterfaces",[y]:f4}],[1,{[_]:"AdditionalFlexibleNetworkInterfaces",[y]:bfe}],[1,{[_]:"BaselineBandwidthInGbps",[y]:Pfe}],[1,{[_]:"PeakBandwidthInGbps",[y]:Ghe}],[1,{[_]:"DefaultEnaQueueCountPerInterface",[y]:ade}],[1,{[_]:"MaximumEnaQueueCount",[y]:phe}],[1,{[_]:"MaximumEnaQueueCountPerInterface",[y]:hhe}]]],dve=[3,O,PL,0,[LL,xL,Iae,hse,Bae,coe,loe,Mie,$g,Ore,LN,Sre,Ire,Jte,$re,Kle,Mae,uoe],[[0,{[_]:"NetworkPerformance",[y]:v4}],[1,{[_]:"MaximumNetworkInterfaces",[y]:f4}],[1,{[_]:"MaximumNetworkCards",[y]:mhe}],[1,{[_]:"DefaultNetworkCardIndex",[y]:ude}],[()=>$be,{[_]:"NetworkCards",[y]:Rhe}],[1,{[_]:"Ipv4AddressesPerInterface",[y]:ype}],[1,{[_]:"Ipv6AddressesPerInterface",[y]:vpe}],[2,{[_]:"Ipv6Supported",[y]:Gpe}],[0,{[_]:"EnaSupport",[y]:Yg}],[2,{[_]:"EfaSupported",[y]:Zde}],[()=>Zye,{[_]:"EfaInfo",[y]:Lde}],[2,{[_]:"EncryptionInTransitSupported",[y]:kde}],[2,{[_]:"EnaSrdSupported",[y]:Fde}],[()=>Jve,{[_]:"BandwidthWeightings",[y]:$fe}],[0,{[_]:"FlexibleEnaQueuesSupport",[y]:Yde}],[2,{[_]:"SecondaryNetworkSupported",[y]:zme}],[1,{[_]:"MaximumSecondaryNetworkInterfaces",[y]:She}],[1,{[_]:"Ipv4AddressesPerSecondaryInterface",[y]:bpe}]]],pve=[3,O,Vae,0,[Ua,E$],[[1,{[_]:"Count",[y]:Yc}],[1,{[_]:"Version",[y]:Oge}]]],hve=[3,O,Hae,0,[Ua,fr,fne,Kc],[[1,{[_]:"Count",[y]:Yc}],[0,{[_]:"Name",[y]:Vr}],[()=>pve,{[_]:"CoreInfo",[y]:Kfe}],[()=>mve,{[_]:"MemoryInfo",[y]:Tu}]]],mve=[3,O,Fae,0,[Cu],[[1,{[_]:"SizeInMiB",[y]:Mu}]]],gve=[3,O,kL,0,[Gae,_ue],[[()=>zbe,{[_]:"NeuronDevices",[y]:Che}],[1,{[_]:"TotalNeuronDeviceMemoryInMiB",[y]:ige}]]],yve=[3,O,zL,0,[iue],[[()=>Bbe,{[_]:"SupportedVersions",[y]:Qme}]]],K4=[3,O,sce,0,[jL],[0]],ry=[3,O,rce,0,[$ae,jL],[[2,{[_]:"Managed",[y]:Ehe}],[0,{[_]:"Principal",[y]:Fhe}]]],Z4=[3,O,GE,0,[xu,jte,ME,Ace,eoe,Tue,hle,noe,OE,Ba],[[0,{[_]:"AvailabilityZoneId",[y]:rx}],[0,{[_]:"Affinity",[y]:Mfe}],[0,{[_]:"GroupName",[y]:dx}],[1,{[_]:"PartitionNumber",[y]:sme}],[0,{[_]:"HostId",[y]:ape}],[0,{[_]:"Tenancy",[y]:Wme}],[0,{[_]:"SpreadDomain",[y]:Ame}],[0,{[_]:"HostResourceGroupArn",[y]:fpe}],[0,{[_]:"GroupId",[y]:fx}],[0,{[_]:"AvailabilityZone",[y]:Qd}]]],vve=[3,O,KL,0,[Jle],[[()=>Ube,{[_]:"SupportedStrategies",[y]:qme}]]],bve=[3,O,qL,0,[PE,CE,RE],[[0,{[_]:"HostnameType",[y]:Z$}],[2,{[_]:"EnableResourceNameDnsARecord",[y]:H$}],[2,{[_]:"EnableResourceNameDnsAAAARecord",[y]:V$}]]],Sve=[3,O,gce,0,[PE,CE,RE],[0,2,2]],_ve=[3,O,yce,0,[PE,CE,RE],[[0,{[_]:"HostnameType",[y]:Z$}],[2,{[_]:"EnableResourceNameDnsARecord",[y]:H$}],[2,{[_]:"EnableResourceNameDnsAAAARecord",[y]:V$}]]],Eve=[3,O,_ce,0,[YL,hi],[[2,{[_]:"Primary",[y]:R4}],[0,{[_]:"PrivateIpAddress",[y]:Wc}]]],xve=[3,O,ZL,0,[ule,ple,mle,Gd],[[()=>Zve,{[_]:"SupportedArchitectures",[y]:xme}],[1,{[_]:"SustainedClockSpeedInGhz",[y]:Cme}],[()=>Jbe,{[_]:"SupportedFeatures",[y]:Ime}],[0,{[_]:"Manufacturer",[y]:Jd}]]],wve=[3,O,mce,0,[dce,hce],[[0,{[_]:"ProductCode",[y]:Khe}],[0,{[_]:"Type",[y]:Ex}]]],Rve=[3,O,Hce,0,[Hd,It],[[()=>sp,{[y]:Ts}],[2,{[_]:"DryRun",[y]:$t}]],1],Cve=[3,O,ole,0,[UL,KN,Hg,Pre],[[0,{[_]:"OptInStatus",[y]:S4}],[()=>Vbe,{[_]:"GeographySet",[y]:K$}],[0,{[_]:"RegionName",[y]:O4}],[0,{[_]:"RegionEndpoint",[y]:dme}]]],Ave=[3,O,Uce,0,[fr],[[0,{[_]:"Name",[y]:Vr}]]],Q4=[3,O,ale,0,[Gce,Qc,Zce,zg,zie],[[0,{[_]:"ReservationId",[y]:hme}],[0,{[_]:"OwnerId",[y]:Ou}],[0,{[_]:"RequesterId",[y]:gme}],[()=>wx,{[_]:"GroupSet",[y]:px}],[()=>Sbe,{[_]:"InstancesSet",[y]:Xg}]]],Ive=[3,O,Vce,0,[IE],[[2,{[_]:"Enabled",[y]:F$}]],1],Tve=[3,O,qce,0,[gae,yae,Bd,wu,qd,JN,NE,jE,Io,HE,GE,KE,vle,e$,qa,d$,DN,kN,mi,iae,Qoe,Ine,gE,vE,DE,sae,wL,wE,HL,RL,TN,Cre,NL,Ru,n$,It,ON,oL,hi,SE,aN,DL,$E,xE],[1,1,[()=>nz,{[y]:hE}],0,0,1,[()=>Rx,{[y]:LE}],0,0,[()=>Ive,0],[()=>Z4,0],0,[()=>oz,{[y]:ZE}],[()=>Kbe,{[y]:t$}],0,[()=>Uge,0],[()=>ibe,0],[()=>cbe,{[y]:PN}],[()=>vi,{[y]:To}],()=>eve,()=>P0e,()=>pye,()=>sye,()=>Zge,()=>h0e,[()=>Nbe,{[y]:oae}],()=>k0e,()=>n0e,()=>Sve,()=>D0e,2,2,()=>U0e,()=>K4,[()=>Abe,{[y]:Lle}],[2,{[_]:"DryRun",[y]:$t}],[2,{[_]:"DisableApiTermination",[y]:j$}],[0,{[_]:"InstanceInitiatedShutdownBehavior",[y]:n4}],[0,{[_]:"PrivateIpAddress",[y]:Wc}],[0,{[_]:"ClientToken",[Zpe]:1,[y]:z$}],[0,{[_]:"AdditionalInfo",[y]:w$}],[()=>Ebe,{[_]:"NetworkInterface",[y]:Ohe}],[()=>g0e,{[_]:"IamInstanceProfile",[y]:t4}],[2,{[_]:"EbsOptimized",[y]:lx}]],2],Y4=[3,O,cue,0,[Jae,Va,jr,tue,zce,i$,Ba,Aue,xN,Lne,Ure,Ha,dr,Zs,YE,o$,XL,Qc,Fc,S$,Vd,Fd,Kne],[[0,{[_]:"OwnerAlias",[y]:zhe}],[0,{[_]:"OutpostArn",[y]:ep}],[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"StorageTier",[y]:Fme}],[4,{[_]:"RestoreExpiryTime",[y]:fme}],[0,{[_]:"SseType",[y]:N4}],[0,{[_]:"AvailabilityZone",[y]:Qd}],[0,{[_]:"TransferType",[y]:fge}],[1,{[_]:"CompletionDurationMinutes",[y]:Vfe}],[4,{[_]:"CompletionTime",[y]:sde}],[1,{[_]:"FullSnapshotSizeInBytes",[y]:Jde}],[0,{[_]:"SnapshotId",[y]:ty}],[0,{[_]:"VolumeId",[y]:Du}],[0,{[_]:"Status",[y]:Ga}],[0,{[_]:"StatusMessage",[y]:sy}],[4,{[_]:"StartTime",[y]:k4}],[0,{[_]:"Progress",[y]:C4}],[0,{[_]:"OwnerId",[y]:Ou}],[0,{[_]:"Description",[y]:Yd}],[1,{[_]:"VolumeSize",[y]:U4}],[2,{[_]:"Encrypted",[y]:Xd}],[0,{[_]:"KmsKeyId",[y]:Wg}],[0,{[_]:"DataEncryptionKeyId",[y]:ide}]]],Ove=[3,O,Fle,0,[Oae,Nle,Zte,afe,Ioe],[0,0,1,4,0]],Mve=[3,O,Tle,0,[Hd,aN,It],[[()=>sp,{[y]:Ts}],[0,{[_]:"AdditionalInfo",[y]:w$}],[2,{[_]:"DryRun",[y]:$t}]],1],Dve=[3,O,Ole,0,[zle],[[()=>Cx,{[_]:"InstancesSet",[y]:Xg}]]],X4=[3,O,WE,0,[AN,AL],[[0,{[_]:"Code",[y]:U$}],[0,{[_]:"Message",[y]:h4}]]],Pve=[3,O,Mle,0,[Hd,roe,s$,It,TE],[[()=>sp,{[y]:Ts}],2,2,[2,{[_]:"DryRun",[y]:$t}],[2,{[_]:"Force",[y]:epe}]],1],kve=[3,O,Dle,0,[Ule],[[()=>Cx,{[_]:"InstancesSet",[y]:Xg}]]],W4=[3,O,a$,0,[xu,_re,mae,gne,Qc,Ete,tL,jr,lle,Va,ere,aL,qL,mE,Gg,qa,Zs,gi,Ud,_te,Ba,Qne,Tae],[[0,{[_]:"AvailabilityZoneId",[y]:rx}],[1,{[_]:"EnableLniAtDeviceIndex",[y]:$de}],[2,{[_]:"MapCustomerOwnedIpOnLaunch",[y]:lhe}],[0,{[_]:"CustomerOwnedIpv4Pool",[y]:Yfe}],[0,{[_]:"OwnerId",[y]:Ou}],[2,{[_]:"AssignIpv6AddressOnCreation",[y]:_fe}],[()=>Xbe,{[_]:"Ipv6CidrBlockAssociationSet",[y]:J$}],[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"SubnetArn",[y]:wme}],[0,{[_]:"OutpostArn",[y]:ep}],[2,{[_]:"EnableDns64",[y]:Ede}],[2,{[_]:"Ipv6Native",[y]:Ipe}],[()=>bve,{[_]:"PrivateDnsNameOptionsOnLaunch",[y]:Qhe}],[()=>F4,{[_]:"BlockPublicAccessStates",[y]:N$}],[0,{[_]:"Type",[y]:Ex}],[0,{[_]:"SubnetId",[y]:ny}],[0,{[_]:"State",[y]:Fa}],[0,{[_]:"VpcId",[y]:np}],[0,{[_]:"CidrBlock",[y]:ox}],[1,{[_]:"AvailableIpAddressCount",[y]:Sfe}],[0,{[_]:"AvailabilityZone",[y]:Qd}],[2,{[_]:"DefaultForAz",[y]:cde}],[2,{[_]:"MapPublicIpOnLaunch",[y]:vhe}]]],Nve=[3,O,dle,0,[Zs,QE],[[0,{[_]:"State",[y]:Fa}],[0,{[_]:"StatusMessage",[y]:sy}]]],Lve=[3,O,_le,0,[pE,Bg,nL,WN,hL],[[0,{[_]:"AssociationId",[y]:sx}],[0,{[_]:"Ipv6CidrBlock",[y]:W$}],[()=>Nve,{[_]:"Ipv6CidrBlockState",[y]:e4}],[0,{[_]:"Ipv6AddressAttribute",[y]:Q$}],[0,{[_]:"IpSource",[y]:s4}]]],$ve=[3,O,f$,0,[Bie,Au],[[0,{[_]:"Key",[y]:Ype}],[0,{[_]:"Value",[y]:tp}]]],zve=[3,O,To,0,[nle,jr],[[0,{[_]:"ResourceType",[y]:Sme}],[()=>Hr,{[y]:f$}]]],Bve=[3,O,hue,0,[Hd,TE,s$,It],[[()=>sp,{[y]:Ts}],2,2,[2,{[_]:"DryRun",[y]:$t}]],1],Uve=[3,O,mue,0,[yue],[[()=>Cx,{[_]:"InstancesSet",[y]:Xg}]]],jve=[3,O,g$,0,[kse,Gne,Dse,zue,ife],[[1,{[_]:"DefaultVCpus",[y]:yde}],[1,{[_]:"DefaultCores",[y]:ode}],[1,{[_]:"DefaultThreadsPerCore",[y]:mde}],[()=>nbe,{[_]:"ValidCores",[y]:bge}],[()=>eSe,{[_]:"ValidThreadsPerCore",[y]:Tge}]]],J4=[3,O,ufe,0,[xu,Va,rue,jg,jr,Kg,Bre,VE,Fg,i$,Ru,ex,dr,JE,Ha,Ba,Zs,CN,Hte,Vd,Fd],[[0,{[_]:"AvailabilityZoneId",[y]:rx}],[0,{[_]:"OutpostArn",[y]:ep}],[0,{[_]:"SourceVolumeId",[y]:Kme}],[1,{[_]:"Iops",[y]:i4}],[()=>Hr,{[_]:"TagSet",[y]:no}],[0,{[_]:"VolumeType",[y]:j4}],[2,{[_]:"FastRestored",[y]:Wde}],[2,{[_]:"MultiAttachEnabled",[y]:ahe}],[1,{[_]:"Throughput",[y]:$4}],[0,{[_]:"SseType",[y]:N4}],[()=>ry,{[_]:"Operator",[y]:ey}],[1,{[_]:"VolumeInitializationRate",[y]:_ge}],[0,{[_]:"VolumeId",[y]:Du}],[1,{[_]:"Size",[y]:Yme}],[0,{[_]:"SnapshotId",[y]:ty}],[0,{[_]:"AvailabilityZone",[y]:Qd}],[0,{[_]:"Status",[y]:Ga}],[4,{[_]:"CreateTime",[y]:B$}],[()=>rSe,{[_]:"AttachmentSet",[y]:Tfe}],[2,{[_]:"Encrypted",[y]:Xd}],[0,{[_]:"KmsKeyId",[y]:Wg}]]],xx=[3,O,kue,0,[ja,lN,iie,jd,dr,Ts,EE,Zs,Ng],[[2,{[_]:"DeleteOnTermination",[y]:Xc}],[0,{[_]:"AssociatedResource",[y]:C$}],[0,{[_]:"InstanceOwningService",[y]:Dpe}],[1,{[_]:"EbsCardIndex",[y]:cx}],[0,{[_]:"VolumeId",[y]:Du}],[0,{[_]:"InstanceId",[y]:Iu}],[0,{[_]:"Device",[y]:vde}],[0,{[_]:"Status",[y]:Ga}],[4,{[_]:"AttachTime",[y]:Zg}]]],Vve=[3,O,v$,0,[dr,Dae,QE,Rue,gue,Iue,Cue,bue,ice,ece,cce,ace,nce,XL,o$,Mre],[[0,{[_]:"VolumeId",[y]:Du}],[0,{[_]:"ModificationState",[y]:_he}],[0,{[_]:"StatusMessage",[y]:sy}],[1,{[_]:"TargetSize",[y]:lge}],[1,{[_]:"TargetIops",[y]:sge}],[0,{[_]:"TargetVolumeType",[y]:dge}],[1,{[_]:"TargetThroughput",[y]:uge}],[2,{[_]:"TargetMultiAttachEnabled",[y]:rge}],[1,{[_]:"OriginalSize",[y]:jhe}],[1,{[_]:"OriginalIops",[y]:Bhe}],[0,{[_]:"OriginalVolumeType",[y]:Hhe}],[1,{[_]:"OriginalThroughput",[y]:Vhe}],[2,{[_]:"OriginalMultiAttachEnabled",[y]:Uhe}],[1,{[_]:"Progress",[y]:C4}],[4,{[_]:"StartTime",[y]:k4}],[4,{[_]:"EndTime",[y]:Qde}]]],ez=[3,O,x$,0,[Qc,mL,tL,ene,Eoe,Jse,jr,mE,gi,Zs,Ud,gse],[[0,{[_]:"OwnerId",[y]:Ou}],[0,{[_]:"InstanceTenancy",[y]:r4}],[()=>lSe,{[_]:"Ipv6CidrBlockAssociationSet",[y]:J$}],[()=>aSe,{[_]:"CidrBlockAssociationSet",[y]:zfe}],[2,{[_]:"IsDefault",[y]:Epe}],[()=>qve,{[_]:"EncryptionControl",[y]:_de}],[()=>Hr,{[_]:"TagSet",[y]:no}],[()=>F4,{[_]:"BlockPublicAccessStates",[y]:N$}],[0,{[_]:"VpcId",[y]:np}],[0,{[_]:"State",[y]:Fa}],[0,{[_]:"CidrBlock",[y]:ox}],[0,{[_]:"DhcpOptionsId",[y]:dde}]]],Hve=[3,O,Nue,0,[pE,Ud,nne],[[0,{[_]:"AssociationId",[y]:sx}],[0,{[_]:"CidrBlock",[y]:ox}],[()=>tz,{[_]:"CidrBlockState",[y]:Ufe}]]],tz=[3,O,$ue,0,[Zs,QE],[[0,{[_]:"State",[y]:Fa}],[0,{[_]:"StatusMessage",[y]:sy}]]],qve=[3,O,y$,0,[gi,Vue,IL,Zs,YE,Bce,jr],[[0,{[_]:"VpcId",[y]:np}],[0,{[_]:"VpcEncryptionControlId",[y]:Sge}],[0,{[_]:"Mode",[y]:whe}],[0,{[_]:"State",[y]:Fa}],[0,{[_]:"StateMessage",[y]:D4}],[()=>Gve,{[_]:"ResourceExclusions",[y]:pme}],[()=>Hr,{[_]:"TagSet",[y]:no}]]],Fve=[3,O,Bue,0,[IL,Roe,xre,Qae,nfe,efe,Jie,Yue,nre],[0,0,0,0,0,0,0,0,0],1],la=[3,O,Uue,0,[Zs,YE],[[0,{[_]:"State",[y]:Fa}],[0,{[_]:"StateMessage",[y]:D4}]]],Gve=[3,O,jue,0,[xoe,Ere,Zae,tfe,sfe,dae,Que,tre],[[()=>la,{[_]:"InternetGateway",[y]:xpe}],[()=>la,{[_]:"EgressOnlyInternetGateway",[y]:Bde}],[()=>la,{[_]:"NatGateway",[y]:Ihe}],[()=>la,{[_]:"VirtualPrivateGateway",[y]:Rge}],[()=>la,{[_]:"VpcPeering",[y]:Cge}],[()=>la,{[_]:"Lambda",[y]:ihe}],[()=>la,{[_]:"VpcLattice",[y]:Ege}],[()=>la,{[_]:"ElasticFileSystem",[y]:xde}]]],Kve=[3,O,Hue,0,[pE,Bg,nL,TL,fL,WN,hL],[[0,{[_]:"AssociationId",[y]:sx}],[0,{[_]:"Ipv6CidrBlock",[y]:W$}],[()=>tz,{[_]:"Ipv6CidrBlockState",[y]:e4}],[0,{[_]:"NetworkBorderGroup",[y]:m4}],[0,{[_]:"Ipv6Pool",[y]:$pe}],[0,{[_]:"Ipv6AddressAttribute",[y]:Q$}],[0,{[_]:"IpSource",[y]:s4}]]],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,[()=>q4,{[y]:ke}]],nz=[1,O,Kte,0,[()=>q4,{[y]:hE}]],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,kN,0,[()=>Xye,{[y]:ke}]],lbe=[1,O,Qse,0,[0,{[y]:MN}]],Oo=[1,O,zre,0,[()=>s0e,{[y]:Ur}]],ube=[1,O,Nre,0,[()=>r0e,{[y]:ke}]],fbe=[1,O,Gre,0,[()=>l0e,{[y]:ke}]],wx=[1,O,Zre,0,[()=>d0e,{[y]:ke}]],dbe=[1,O,Qre,0,[0,{[y]:fx}]],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}]],sp=[1,O,Noe,0,[0,{[y]:Ts}]],vbe=[1,O,Toe,0,[()=>I0e,{[y]:ke}]],Rx=[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}]],Cx=[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]:Gc}]],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}]],sz=[1,O,oce,0,[0,{[y]:qE}]],Ube=[1,O,vce,0,[0,{[y]:ke}]],jbe=[1,O,Ece,0,[()=>Eve,{[y]:ke}]],rz=[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]:Hg}]],Fbe=[1,O,Xce,0,[()=>Q4,{[y]:ke}]],Gbe=[1,O,$ce,0,[0,{[y]:ke}]],oz=[1,O,yle,0,[0,{[y]:ZE}]],Kbe=[1,O,ble,0,[0,{[y]:t$}]],Zbe=[1,O,Ple,0,[0,{[y]:Ha}]],Qbe=[1,O,Hle,0,[()=>Y4,{[y]:ke}]],Ybe=[1,O,kle,0,[0,{[y]:qa}]],Xbe=[1,O,Ele,0,[()=>Lve,{[y]:ke}]],Wbe=[1,O,qle,0,[()=>W4,{[y]:ke}]],Jbe=[1,O,cle,0,[0,{[y]:ke}]],Hr=[1,O,vue,0,[()=>$ve,{[y]:ke}]],vi=[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,[()=>xx,{[y]:ke}]],oSe=[1,O,Fue,0,[0,{[y]:dr}]],iSe=[1,O,Xue,0,[()=>J4,{[y]:ke}]],aSe=[1,O,Lue,0,[()=>Hve,{[y]:ke}]],cSe=[1,O,Gue,0,[0,{[y]:gi}]],lSe=[1,O,que,0,[()=>Kve,{[y]:ke}]],uSe=[1,O,Wue,0,[()=>ez,{[y]:ke}]],fSe=[1,O,dfe,0,[0,{[y]:ke}]],dSe=[1,O,hfe,0,[0,{[y]:tx}]],pSe=[1,O,gfe,0,[0,{[y]:nx}]],TMe=[9,O,Dte,0,()=>Vge,()=>xx],OMe=[9,O,Ane,0,()=>eye,()=>tye],MMe=[9,O,dne,0,()=>rye,()=>oye],DMe=[9,O,pne,0,()=>iye,()=>W0e],PMe=[9,O,Tne,0,()=>aye,()=>Y4],kMe=[9,O,One,0,()=>cye,()=>lye],NMe=[9,O,Une,0,()=>uye,()=>J4],LMe=[9,O,jne,0,()=>fye,()=>dye],$Me=[9,O,cse,0,()=>hye,()=>mye],zMe=[9,O,Ise,0,()=>gye,()=>Pu],BMe=[9,O,Tse,0,()=>yye,()=>Pu],UMe=[9,O,Vse,0,()=>vye,()=>Pu],jMe=[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],VMe=[9,O,Gse,0,()=>Uye,()=>xx],HMe=[9,O,Vre,0,()=>a0e,()=>c0e],qMe=[9,O,$oe,0,()=>v0e,()=>b0e],FMe=[9,O,Aae,0,()=>ave,()=>Pu],GMe=[9,O,Lae,0,()=>cve,()=>lve],KMe=[9,O,Kce,0,()=>Rve,()=>Pu],ZMe=[9,O,Qce,0,()=>Tve,()=>Q4],QMe=[9,O,Ble,0,()=>Mve,()=>Dve],YMe=[9,O,jle,0,()=>Pve,()=>kve],XMe=[9,O,due,0,()=>Bve,()=>Uve];const wSe=e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??fi,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 Dg}],logger:e?.logger??new Pg,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??mu,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??za}),RSe=e=>{const t=lE(e),n=()=>t().then(G_),r=wSe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??q_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??aE({serviceId:r.serviceId,clientVersion:Zee.version}),maxAttempts:e?.maxAttempts??gu,region:e?.region??cE("Region is missing"),requestHandler:$d.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Q_),sha256:e?.sha256??iE,streamCollector:e?.streamCollector??Rg,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(J_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(eE))}},Ax=e=>({setRegion(t){e.region=t},region(){return e.region}}),Ix=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(Ax(e),K_(e),w_(e),CSe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,Ix(n),Z_(n),R_(n),ASe(n))};class TSe extends F_{config;constructor(...[t]){const n=RSe(t||{});super(n),this.initConfig=n;const r=Gee(n),i=z_(r),c=rE(i),l=tE(c),f=l,p=sE(f),d=Fee(p),v=ISe(d,t?.extensions||[]);this.config=v,this.middlewareStack.use(M_(this.config)),this.middlewareStack.use(W_(this.config)),this.middlewareStack.use(oE(this.config)),this.middlewareStack.use(nE(this.config)),this.middlewareStack.use(C_(this.config)),this.middlewareStack.use(A_(this.config)),this.middlewareStack.use(I_(this.config)),this.middlewareStack.use(T_(this.config,{httpAuthSchemeParametersProvider:Vee,identityProviderConfigProvider:async g=>new $_({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(O_(this.config))}destroy(){super.destroy()}}class OSe extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeAvailabilityZones",{}).n("EC2Client","DescribeAvailabilityZonesCommand").sc(hSe).build(){}class iz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeImages",{}).n("EC2Client","DescribeImagesCommand").sc(mSe).build(){}class az extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(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[kn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstanceTypes",{}).n("EC2Client","DescribeInstanceTypesCommand").sc(ySe).build(){}class cz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(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[kn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeRegions",{}).n("EC2Client","DescribeRegionsCommand").sc(bSe).build(){}class lz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSnapshots",{}).n("EC2Client","DescribeSnapshotsCommand").sc(SSe).build(){}class uz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSubnets",{}).n("EC2Client","DescribeSubnetsCommand").sc(_Se).build(){}class fz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVolumes",{}).n("EC2Client","DescribeVolumesCommand").sc(ESe).build(){}class dz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[kn(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=H_(e);return Object.assign(t,{authSchemePreference:Is(e.authSchemePreference??[])})},$Se=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"iam"}),Jc={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},zSe="3.1004.0",BSe={version:zSe},pz="required",hn="fn",mn="argv",Mo="ref",qn="properties",Fn="headers",go="authSchemes",yo="name",vo="signingRegion",xO=!0,wO="isSet",jc="booleanEquals",Gl="error",In="endpoint",Xr="tree",rp="PartitionResult",Ca="stringEquals",bo="sigv4",RO={[pz]:!0,default:!1,type:"boolean"},CO={[pz]:!1,type:"string"},AO={[Mo]:"Endpoint"},ua={[hn]:jc,[mn]:[{[Mo]:"UseFIPS"},!0]},fa={[hn]:jc,[mn]:[{[Mo]:"UseDualStack"},!0]},rs={},IO={[hn]:Ca,[mn]:[{[hn]:"getAttr",[mn]:[{[Mo]:rp},"name"]},"aws"]},Pc={[hn]:"getAttr",[mn]:[{[Mo]:rp},"name"]},Wr={[hn]:jc,[mn]:[{[Mo]:"UseFIPS"},!1]},TO={[go]:[{[yo]:bo,[vo]:"us-east-1"}]},OO={[hn]:Ca,[mn]:[Pc,"aws-cn"]},MO={[go]:[{[yo]:bo,[vo]:"cn-north-1"}]},Jr={[hn]:jc,[mn]:[{[Mo]:"UseDualStack"},!1]},Yh={[hn]:Ca,[mn]:[Pc,"aws-us-gov"]},DO={url:"https://iam.us-gov.api.aws",[qn]:{[go]:[{[yo]:bo,[vo]:"us-gov-west-1"}]},[Fn]:{}},PO={url:"https://iam.us-gov.amazonaws.com",[qn]:{[go]:[{[yo]:bo,[vo]:"us-gov-west-1"}]},[Fn]:{}},kO={[hn]:Ca,[mn]:[Pc,"aws-iso"]},NO={[go]:[{[yo]:bo,[vo]:"us-iso-east-1"}]},LO={[hn]:Ca,[mn]:[Pc,"aws-iso-b"]},$O={[go]:[{[yo]:bo,[vo]:"us-isob-east-1"}]},zO={[hn]:"getAttr",[mn]:[{[Mo]:rp},"supportsFIPS"]},BO={[hn]:jc,[mn]:[!0,{[hn]:"getAttr",[mn]:[{[Mo]:rp},"supportsDualStack"]}]},Xh={[go]:[{[yo]:bo,[vo]:"{PartitionResult#implicitGlobalRegion}"}]},UO=[{[Mo]:"Region"}],USe={parameters:{UseDualStack:RO,UseFIPS:RO,Endpoint:CO,Region:CO},rules:[{conditions:[{[hn]:wO,[mn]:[AO]}],rules:[{conditions:[ua],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Gl},{rules:[{conditions:[fa],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Gl},{endpoint:{url:AO,[qn]:rs,[Fn]:rs},type:In}],type:Xr}],type:Xr},{rules:[{conditions:[{[hn]:wO,[mn]:UO}],rules:[{conditions:[{[hn]:"aws.partition",[mn]:UO,assign:rp}],rules:[{conditions:[IO,Wr,fa],endpoint:{url:"https://iam.global.api.aws",[qn]:TO,[Fn]:rs},type:In},{conditions:[IO,ua,fa],endpoint:{url:"https://iam-fips.global.api.aws",[qn]:TO,[Fn]:rs},type:In},{conditions:[OO,Wr,fa],endpoint:{url:"https://iam.global.api.amazonwebservices.com.cn",[qn]:MO,[Fn]:rs},type:In},{conditions:[OO,Wr,Jr],endpoint:{url:"https://iam.cn-north-1.amazonaws.com.cn",[qn]:MO,[Fn]:rs},type:In},{conditions:[Yh,Wr,fa],endpoint:DO,type:In},{conditions:[Yh,ua,fa],endpoint:DO,type:In},{conditions:[Yh,Wr,Jr],endpoint:PO,type:In},{conditions:[Yh,ua,Jr],endpoint:PO,type:In},{conditions:[kO,Wr,Jr],endpoint:{url:"https://iam.us-iso-east-1.c2s.ic.gov",[qn]:NO,[Fn]:rs},type:In},{conditions:[kO,ua,Jr],endpoint:{url:"https://iam-fips.us-iso-east-1.c2s.ic.gov",[qn]:NO,[Fn]:rs},type:In},{conditions:[LO,Wr,Jr],endpoint:{url:"https://iam.us-isob-east-1.sc2s.sgov.gov",[qn]:$O,[Fn]:rs},type:In},{conditions:[LO,ua,Jr],endpoint:{url:"https://iam-fips.us-isob-east-1.sc2s.sgov.gov",[qn]:$O,[Fn]:rs},type:In},{conditions:[{[hn]:Ca,[mn]:[Pc,"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]:Ca,[mn]:[Pc,"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]:Ca,[mn]:[Pc,"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:[ua,fa],rules:[{conditions:[{[hn]:jc,[mn]:[xO,zO]},BO],rules:[{endpoint:{url:"https://iam-fips.{PartitionResult#dualStackDnsSuffix}",[qn]:Xh,[Fn]:rs},type:In}],type:Xr},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Gl}],type:Xr},{conditions:[ua,Jr],rules:[{conditions:[{[hn]:jc,[mn]:[zO,xO]}],rules:[{endpoint:{url:"https://iam-fips.{PartitionResult#dnsSuffix}",[qn]:Xh,[Fn]:rs},type:In}],type:Xr},{error:"FIPS is enabled but this partition does not support FIPS",type:Gl}],type:Xr},{conditions:[Wr,fa],rules:[{conditions:[BO],rules:[{endpoint:{url:"https://iam.{PartitionResult#dualStackDnsSuffix}",[qn]:Xh,[Fn]:rs},type:In}],type:Xr},{error:"DualStack is enabled but this partition does not support DualStack",type:Gl}],type:Xr},{endpoint:{url:"https://iam.{PartitionResult#dnsSuffix}",[qn]:Xh,[Fn]:rs},type:In}],type:Xr}],type:Xr},{error:"Invalid Configuration: Missing Region",type:Gl}],type:Xr}]},jSe=USe,VSe=new B_({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),HSe=(e,t={})=>VSe.get(e,()=>j_(jSe,{endpointParams:e,logger:t.logger}));hu.aws=Mg;class ct extends _a{constructor(t){super(t),Object.setPrototypeOf(this,ct.prototype)}}class Tx extends ct{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,Tx.prototype)}}class Ox extends ct{name="NoSuchEntityException";$fault="client";constructor(t){super({name:"NoSuchEntityException",$fault:"client",...t}),Object.setPrototypeOf(this,Ox.prototype)}}class Mx extends ct{name="ServiceFailureException";$fault="server";constructor(t){super({name:"ServiceFailureException",$fault:"server",...t}),Object.setPrototypeOf(this,Mx.prototype)}}class Dx extends ct{name="AccountNotManagementOrDelegatedAdministratorException";$fault="client";Message;constructor(t){super({name:"AccountNotManagementOrDelegatedAdministratorException",$fault:"client",...t}),Object.setPrototypeOf(this,Dx.prototype),this.Message=t.Message}}class Px extends ct{name="InvalidInputException";$fault="client";constructor(t){super({name:"InvalidInputException",$fault:"client",...t}),Object.setPrototypeOf(this,Px.prototype)}}class kx extends ct{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,kx.prototype)}}class Nx extends ct{name="EntityAlreadyExistsException";$fault="client";constructor(t){super({name:"EntityAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,Nx.prototype)}}class Lx extends ct{name="UnmodifiableEntityException";$fault="client";constructor(t){super({name:"UnmodifiableEntityException",$fault:"client",...t}),Object.setPrototypeOf(this,Lx.prototype)}}class $x extends ct{name="PolicyNotAttachableException";$fault="client";constructor(t){super({name:"PolicyNotAttachableException",$fault:"client",...t}),Object.setPrototypeOf(this,$x.prototype)}}class zx extends ct{name="EntityTemporarilyUnmodifiableException";$fault="client";constructor(t){super({name:"EntityTemporarilyUnmodifiableException",$fault:"client",...t}),Object.setPrototypeOf(this,zx.prototype)}}class Bx extends ct{name="InvalidUserTypeException";$fault="client";constructor(t){super({name:"InvalidUserTypeException",$fault:"client",...t}),Object.setPrototypeOf(this,Bx.prototype)}}class Ux extends ct{name="PasswordPolicyViolationException";$fault="client";constructor(t){super({name:"PasswordPolicyViolationException",$fault:"client",...t}),Object.setPrototypeOf(this,Ux.prototype)}}class jx extends ct{name="OpenIdIdpCommunicationErrorException";$fault="client";constructor(t){super({name:"OpenIdIdpCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,jx.prototype)}}class Vx extends ct{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,Vx.prototype)}}class Hx extends ct{name="ServiceNotSupportedException";$fault="client";constructor(t){super({name:"ServiceNotSupportedException",$fault:"client",...t}),Object.setPrototypeOf(this,Hx.prototype)}}class qx extends ct{name="DeleteConflictException";$fault="client";constructor(t){super({name:"DeleteConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,qx.prototype)}}class Fx extends ct{name="OrganizationNotFoundException";$fault="client";Message;constructor(t){super({name:"OrganizationNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,Fx.prototype),this.Message=t.Message}}class Gx extends ct{name="OrganizationNotInAllFeaturesModeException";$fault="client";Message;constructor(t){super({name:"OrganizationNotInAllFeaturesModeException",$fault:"client",...t}),Object.setPrototypeOf(this,Gx.prototype),this.Message=t.Message}}class Kx extends ct{name="ServiceAccessNotEnabledException";$fault="client";Message;constructor(t){super({name:"ServiceAccessNotEnabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Kx.prototype),this.Message=t.Message}}class Zx extends ct{name="FeatureDisabledException";$fault="client";constructor(t){super({name:"FeatureDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Zx.prototype)}}class Qx extends ct{name="InvalidAuthenticationCodeException";$fault="client";constructor(t){super({name:"InvalidAuthenticationCodeException",$fault:"client",...t}),Object.setPrototypeOf(this,Qx.prototype)}}class Yx extends ct{name="CallerIsNotManagementAccountException";$fault="client";Message;constructor(t){super({name:"CallerIsNotManagementAccountException",$fault:"client",...t}),Object.setPrototypeOf(this,Yx.prototype),this.Message=t.Message}}class Xx extends ct{name="FeatureEnabledException";$fault="client";constructor(t){super({name:"FeatureEnabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Xx.prototype)}}class Wx extends ct{name="ReportGenerationLimitExceededException";$fault="client";constructor(t){super({name:"ReportGenerationLimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,Wx.prototype)}}class Jx extends ct{name="CredentialReportExpiredException";$fault="client";constructor(t){super({name:"CredentialReportExpiredException",$fault:"client",...t}),Object.setPrototypeOf(this,Jx.prototype)}}class ew extends ct{name="CredentialReportNotPresentException";$fault="client";constructor(t){super({name:"CredentialReportNotPresentException",$fault:"client",...t}),Object.setPrototypeOf(this,ew.prototype)}}class tw extends ct{name="CredentialReportNotReadyException";$fault="client";constructor(t){super({name:"CredentialReportNotReadyException",$fault:"client",...t}),Object.setPrototypeOf(this,tw.prototype)}}class nw extends ct{name="UnrecognizedPublicKeyEncodingException";$fault="client";constructor(t){super({name:"UnrecognizedPublicKeyEncodingException",$fault:"client",...t}),Object.setPrototypeOf(this,nw.prototype)}}class sw extends ct{name="PolicyEvaluationException";$fault="server";constructor(t){super({name:"PolicyEvaluationException",$fault:"server",...t}),Object.setPrototypeOf(this,sw.prototype)}}class rw extends ct{name="KeyPairMismatchException";$fault="client";constructor(t){super({name:"KeyPairMismatchException",$fault:"client",...t}),Object.setPrototypeOf(this,rw.prototype)}}class ow extends ct{name="MalformedCertificateException";$fault="client";constructor(t){super({name:"MalformedCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,ow.prototype)}}class iw extends ct{name="DuplicateCertificateException";$fault="client";constructor(t){super({name:"DuplicateCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,iw.prototype)}}class aw extends ct{name="InvalidCertificateException";$fault="client";constructor(t){super({name:"InvalidCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,aw.prototype)}}class cw extends ct{name="DuplicateSSHPublicKeyException";$fault="client";constructor(t){super({name:"DuplicateSSHPublicKeyException",$fault:"client",...t}),Object.setPrototypeOf(this,cw.prototype)}}class lw extends ct{name="InvalidPublicKeyException";$fault="client";constructor(t){super({name:"InvalidPublicKeyException",$fault:"client",...t}),Object.setPrototypeOf(this,lw.prototype)}}const hz="Arn",qSe="AttachmentCount",mz="AccessKey",oy="AccessKeyId",gz="AccessKeyMetadata",FSe="AccountNotManagementOrDelegatedAdministratorException",GSe="AttachedPolicy",KSe="AttachedPermissionsBoundary",ZSe="AttachedPolicies",QSe="AttachUserPolicy",YSe="AttachUserPolicyRequest",XSe="CreateAccessKey",WSe="CreateAccessKeyRequest",JSe="CreateAccessKeyResponse",op="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",yz="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",iy="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",ip="Message",oEe="MalformedCertificateException",ay="MaxItems",iEe="MalformedPolicyDocumentException",Ka="Marker",aEe="NoSuchEntityException",cEe="OnlyAttached",lEe="OpenIdIdpCommunicationErrorException",uEe="OrganizationNotFoundException",fEe="OrganizationNotInAllFeaturesModeException",ku="PolicyArn",vz="PermissionsBoundary",dEe="PermissionsBoundaryArn",pEe="PermissionsBoundaryType",hEe="PermissionsBoundaryUsageCount",mEe="PolicyDocument",gEe="PolicyEvaluationException",yEe="PolicyId",vEe="PasswordLastUsed",uw="PolicyName",bEe="PolicyNotAttachableException",SEe="PasswordPolicyViolationException",fw="PathPrefix",_Ee="PolicyUsageFilter",bz="PolicyVersion",cy="Path",dw="Policy",EEe="Policies",xEe="ReportGenerationLimitExceededException",pw="Status",wEe="SecretAccessKey",REe="ServiceAccessNotEnabledException",CEe="ServiceFailureException",AEe="ServiceNotSupportedException",IEe="Scope",ly="Tags",TEe="Tag",OEe="UpdateAccessKey",MEe="UpdateAccessKeyRequest",DEe="UpdateDate",PEe="UnmodifiableEntityException",kEe="UserId",pr="UserName",NEe="UnrecognizedPublicKeyEncodingException",hw="User",LEe="Users",Sz="VersionId",$Ee="Value",zEe="accessKeyMetadataListType",BEe="accessKeySecretType",UEe="attachedPoliciesListType",Bt="awsQueryError",Tt="client",Et="error",xt="httpError",Ut="message",jEe="policyListType",_z="smithy.ts.sdk.synthetic.com.amazonaws.iam",Ez="server",VEe="tagListType",HEe="userListType",we="com.amazonaws.iam",xz=Gn.for(_z);var qEe=[-3,_z,"IAMServiceException",0,[],[]];xz.registerError(qEe,ct);const vt=Gn.for(we);var FEe=[-3,we,FSe,{[Et]:Tt,[xt]:400},[ip],[0]];vt.registerError(FEe,Dx);var GEe=[-3,we,e_e,{[Et]:Tt,[xt]:400},[ip],[0]];vt.registerError(GEe,Yx);var KEe=[-3,we,t_e,{[Bt]:["ConcurrentModification",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(KEe,Tx);var ZEe=[-3,we,o_e,{[Bt]:["ReportExpired",410],[Et]:Tt,[xt]:410},[Ut],[0]];vt.registerError(ZEe,Jx);var QEe=[-3,we,i_e,{[Bt]:["ReportNotPresent",410],[Et]:Tt,[xt]:410},[Ut],[0]];vt.registerError(QEe,ew);var YEe=[-3,we,a_e,{[Bt]:["ReportInProgress",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(YEe,tw);var XEe=[-3,we,p_e,{[Bt]:["DeleteConflict",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(XEe,qx);var WEe=[-3,we,h_e,{[Bt]:["DuplicateCertificate",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(WEe,iw);var JEe=[-3,we,y_e,{[Bt]:["DuplicateSSHPublicKey",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(JEe,cw);var exe=[-3,we,w_e,{[Bt]:["EntityAlreadyExists",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(exe,Nx);var txe=[-3,we,R_e,{[Bt]:["EntityTemporarilyUnmodifiable",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(txe,zx);var nxe=[-3,we,C_e,{[Bt]:["FeatureDisabled",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(nxe,Zx);var sxe=[-3,we,A_e,{[Bt]:["FeatureEnabled",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(sxe,Xx);var rxe=[-3,we,z_e,{[Bt]:["InvalidAuthenticationCode",403],[Et]:Tt,[xt]:403},[Ut],[0]];vt.registerError(rxe,Qx);var oxe=[-3,we,B_e,{[Bt]:["InvalidCertificate",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(oxe,aw);var ixe=[-3,we,j_e,{[Bt]:["InvalidInput",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(ixe,Px);var axe=[-3,we,V_e,{[Bt]:["InvalidPublicKey",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(axe,lw);var cxe=[-3,we,H_e,{[Bt]:["InvalidUserType",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(cxe,Bx);var lxe=[-3,we,F_e,{[Bt]:["KeyPairMismatch",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(lxe,rw);var uxe=[-3,we,W_e,{[Bt]:["LimitExceeded",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(uxe,kx);var fxe=[-3,we,oEe,{[Bt]:["MalformedCertificate",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(fxe,ow);var dxe=[-3,we,iEe,{[Bt]:["MalformedPolicyDocument",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(dxe,Vx);var pxe=[-3,we,aEe,{[Bt]:["NoSuchEntity",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(pxe,Ox);var hxe=[-3,we,lEe,{[Bt]:["OpenIdIdpCommunicationError",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(hxe,jx);var mxe=[-3,we,uEe,{[Et]:Tt,[xt]:400},[ip],[0]];vt.registerError(mxe,Fx);var gxe=[-3,we,fEe,{[Et]:Tt,[xt]:400},[ip],[0]];vt.registerError(gxe,Gx);var yxe=[-3,we,SEe,{[Bt]:["PasswordPolicyViolation",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(yxe,Ux);var vxe=[-3,we,gEe,{[Bt]:["PolicyEvaluation",500],[Et]:Ez,[xt]:500},[Ut],[0]];vt.registerError(vxe,sw);var bxe=[-3,we,bEe,{[Bt]:["PolicyNotAttachable",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(bxe,$x);var Sxe=[-3,we,xEe,{[Bt]:["ReportGenerationLimitExceeded",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(Sxe,Wx);var _xe=[-3,we,REe,{[Et]:Tt,[xt]:400},[ip],[0]];vt.registerError(_xe,Kx);var Exe=[-3,we,CEe,{[Bt]:["ServiceFailure",500],[Et]:Ez,[xt]:500},[Ut],[0]];vt.registerError(Exe,Mx);var xxe=[-3,we,AEe,{[Bt]:["NotSupportedService",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(xxe,Hx);var wxe=[-3,we,PEe,{[Bt]:["UnmodifiableEntity",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(wxe,Lx);var Rxe=[-3,we,NEe,{[Bt]:["UnrecognizedPublicKeyEncoding",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(Rxe,nw);const Cxe=[xz,vt];var Axe=[0,we,BEe,8,0],Ixe=[3,we,mz,0,[pr,oy,pw,wEe,op],[0,0,0,[()=>Axe,0],4],4],Txe=[3,we,gz,0,[pr,oy,pw,op],[0,0,0,4]],Oxe=[3,we,KSe,0,[pEe,dEe],[0,0]],Mxe=[3,we,GSe,0,[uw,ku],[0,0]],Dxe=[3,we,YSe,0,[pr,ku],[0,0],2],Pxe=[3,we,WSe,0,[pr],[0]],kxe=[3,we,JSe,0,[mz],[[()=>Ixe,0]],1],Nxe=[3,we,n_e,0,[uw,mEe,cy,yz,ly],[0,0,0,0,()=>uy],2],Lxe=[3,we,s_e,0,[dw],[()=>mw]],$xe=[3,we,l_e,0,[pr,cy,vz,ly],[0,0,0,()=>uy],1],zxe=[3,we,u_e,0,[hw],[()=>gw]],Bxe=[3,we,d_e,0,[oy,pr],[0,0],1],Uxe=[3,we,m_e,0,[ku],[0],1],jxe=[3,we,__e,0,[pr],[0],1],Vxe=[3,we,b_e,0,[pr,ku],[0,0],2],Hxe=[3,we,T_e,0,[ku],[0],1],qxe=[3,we,O_e,0,[dw],[()=>mw]],Fxe=[3,we,D_e,0,[ku,Sz],[0,0],2],Gxe=[3,we,P_e,0,[bz],[()=>swe]],Kxe=[3,we,N_e,0,[pr],[0]],Zxe=[3,we,L_e,0,[hw],[()=>gw],1],Qxe=[3,we,K_e,0,[pr,Ka,ay],[0,0,1]],Yxe=[3,we,Z_e,0,[gz,iy,Ka],[()=>iwe,2,0],1],Xxe=[3,we,Y_e,0,[pr,fw,Ka,ay],[0,0,0,1],1],Wxe=[3,we,X_e,0,[ZSe,iy,Ka],[()=>awe,2,0]],Jxe=[3,we,J_e,0,[IEe,cEe,fw,_Ee,Ka,ay],[0,2,0,0,0,1]],ewe=[3,we,eEe,0,[EEe,iy,Ka],[()=>cwe,2,0]],twe=[3,we,sEe,0,[fw,Ka,ay],[0,0,1]],nwe=[3,we,rEe,0,[LEe,iy,Ka],[()=>lwe,2,0],1],mw=[3,we,dw,0,[uw,yEe,hz,cy,E_e,qSe,hEe,$_e,yz,op,DEe,ly],[0,0,0,0,0,1,1,2,0,4,4,()=>uy]],swe=[3,we,bz,0,[x_e,Sz,U_e,op],[0,0,2,4]],rwe=[3,we,TEe,0,[q_e,$Ee],[0,0],2],owe=[3,we,MEe,0,[oy,pw,pr],[0,0,0],2],gw=[3,we,hw,0,[cy,pr,kEe,hz,op,vEe,vz,ly],[0,0,0,0,4,4,()=>Oxe,()=>uy],5],Nu="unit",iwe=[1,we,zEe,0,()=>Txe],awe=[1,we,UEe,0,()=>Mxe],cwe=[1,we,jEe,0,()=>mw],uy=[1,we,VEe,0,()=>rwe],lwe=[1,we,HEe,0,()=>gw],WMe=[9,we,QSe,0,()=>Dxe,()=>Nu],JMe=[9,we,XSe,0,()=>Pxe,()=>kxe],eDe=[9,we,r_e,0,()=>Nxe,()=>Lxe],tDe=[9,we,c_e,0,()=>$xe,()=>zxe],nDe=[9,we,f_e,0,()=>Bxe,()=>Nu],sDe=[9,we,g_e,0,()=>Uxe,()=>Nu],rDe=[9,we,v_e,0,()=>jxe,()=>Nu],oDe=[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],iDe=[9,we,OEe,0,()=>owe,()=>Nu];const ywe=e=>({apiVersion:"2010-05-08",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??fi,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 Dg}],logger:e?.logger??new Pg,protocol:e?.protocol??q3,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??mu,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??za}),vwe=e=>{const t=lE(e),n=()=>t().then(G_),r=ywe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??q_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??aE({serviceId:r.serviceId,clientVersion:BSe.version}),maxAttempts:e?.maxAttempts??gu,region:e?.region??cE("Region is missing"),requestHandler:$d.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Q_),sha256:e?.sha256??iE,streamCollector:e?.streamCollector??Rg,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(J_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(eE))}},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(Ax(e),K_(e),w_(e),bwe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,Ix(n),Z_(n),R_(n),Swe(n))};class Ewe extends F_{config;constructor(...[t]){const n=vwe(t||{});super(n),this.initConfig=n;const r=$Se(n),i=z_(r),c=rE(i),l=tE(c),f=l,p=sE(f),d=LSe(p),v=_we(d,t?.extensions||[]);this.config=v,this.middlewareStack.use(M_(this.config)),this.middlewareStack.use(W_(this.config)),this.middlewareStack.use(oE(this.config)),this.middlewareStack.use(nE(this.config)),this.middlewareStack.use(C_(this.config)),this.middlewareStack.use(A_(this.config)),this.middlewareStack.use(I_(this.config)),this.middlewareStack.use(T_(this.config,{httpAuthSchemeParametersProvider:PSe,identityProviderConfigProvider:async g=>new $_({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(O_(this.config))}destroy(){super.destroy()}}class xwe extends xn.classBuilder().ep(Jc).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetPolicy",{}).n("IAMClient","GetPolicyCommand").sc(uwe).build(){}class wwe extends xn.classBuilder().ep(Jc).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetPolicyVersion",{}).n("IAMClient","GetPolicyVersionCommand").sc(fwe).build(){}class Rwe extends xn.classBuilder().ep(Jc).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetUser",{}).n("IAMClient","GetUserCommand").sc(dwe).build(){}class Cwe extends xn.classBuilder().ep(Jc).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListAccessKeys",{}).n("IAMClient","ListAccessKeysCommand").sc(pwe).build(){}class Awe extends xn.classBuilder().ep(Jc).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListAttachedUserPolicies",{}).n("IAMClient","ListAttachedUserPoliciesCommand").sc(hwe).build(){}class Iwe extends xn.classBuilder().ep(Jc).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListPolicies",{}).n("IAMClient","ListPoliciesCommand").sc(mwe).build(){}class Twe extends xn.classBuilder().ep(Jc).m(function(t,n,r,i){return[kn(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)}}),wz={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Pwe=wz.WHEN_SUPPORTED,aDe={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},kwe=wz.WHEN_SUPPORTED;var IS;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(IS||(IS={}));var jO;(function(e){e.HEADER="header",e.TRAILER="trailer"})(jO||(jO={}));const cDe=IS.CRC32;var lDe=(function(){function e(){this.crc32=new Zm}return e.prototype.update=function(t){Km(t)||this.crc32.update(Uc(t))},e.prototype.digest=function(){return eN(this,void 0,void 0,function(){return tN(this,function(t){return[2,Yee(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Zm},e})(),Zm=(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 p=await e.region();if(i!==p)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 p=f;n.logger?.debug(`Redirecting from ${await e.region()} to ${p}`),n.__s3RegionRedirect=p}catch(p){throw new Error("Region redirect failed: "+p)}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 yw{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+yw.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 bb(Promise.resolve(d)))})),l)):i.set(r,new bb(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",TS="X-Amz-S3session-Token",OS=TS.toLowerCase();class Gwe extends xS{async signWithCredentials(t,n,r){const i=VO(n);t.headers[OS]=n.sessionToken;const c=this;return HO(c,i),c.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const i=VO(n);return delete t.headers[OS],t.headers[TS]=n.sessionToken,t.query=t.query??{},t.query[TS]=n.sessionToken,HO(this,i),this.presign(t,r)}}function VO(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function HO(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)&&(uo(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),c){const f=r.input.Bucket;if(f){const p=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=p,Qn.isInstance(r.request)&&p.sessionToken&&(r.request.headers[OS]=p.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:p}=c;let d;n.s3ExpressIdentity?d=await Ywe(n.s3ExpressIdentity,l,r.request,await e.signer()):d=await p.sign(r.request,f,l);const v=await t({...r,request:d}).catch((p.errorHandler||Xwe)(l));return(p.successHandler||Wwe)(v.response,l),v},e1e=e=>({applyToStack:t=>{t.addRelativeTo(Jwe(e),c3)}}),t1e=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:c,disableMultiregionAccessPoints:l,followRegionRedirects:f,s3ExpressIdentityProvider:p,bucketEndpoint:d,expectContinueHeader:v}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:c??!1,disableMultiregionAccessPoints:l??!1,followRegionRedirects:f??!1,s3ExpressIdentityProvider:p??new vw(async g=>n().send(new r({Bucket:g}))),bucketEndpoint:d??!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(!Bc.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 d=f,v=f;f&&typeof f=="object"&&!(f instanceof Uint8Array)&&([d,v]=await kX(f)),c.body=v;const g=await o1e(d,{streamCollector:async S=>AX(S,s1e)});typeof d?.destroy=="function"&&d.destroy();const b=e.utf8Encoder(g.subarray(g.length-16));if(g.length===0&&n1e[n.commandName]){const S=new Error("S3 aborted request");throw S.name="InternalError",S}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},bw=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 Rz{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 Sw="required",D="type",ae="rules",U="conditions",X="fn",W="argv",ze="ref",We="assign",Ce="url",Ae="properties",ai="backend",Zn="authSchemes",On="disableDoubleEncoding",Mn="signingName",os="signingRegion",Ie="headers",_w="signingRegionSet",h1e=6,m1e=!1,ao=!0,ar="isSet",Sn="booleanEquals",Pe="error",Qm="aws.partition",Rt="stringEquals",cn="getAttr",un="name",Yt="substring",qO="bucketSuffix",Ew="parseURL",pe="endpoint",ce="tree",Ym="aws.isVirtualHostableS3Bucket",Xm="{url#scheme}://{Bucket}.{url#authority}{url#path}",So="not",FO="accessPointSuffix",fm="{url#scheme}://{url#authority}{url#path}",Cz="hardwareType",Az="regionPrefix",GO="bucketAliasSuffix",MS="outpostId",el="isValidHostLabel",xw="sigv4a",Id="s3-outposts",yu="s3",Iz="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",Tz="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",KO="https://{Bucket}.s3.{partitionResult#dnsSuffix}",Oz="aws.parseArn",Mz="bucketArn",Dz="arnType",Wm="",ww="s3-object-lambda",Pz="accesspoint",Rw="accessPointName",ZO="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",QO="mrapPartition",YO="outpostType",XO="arnPrefix",kz="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",WO="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",JO="https://s3.{partitionResult#dnsSuffix}",Kl={[Sw]:!1,[D]:"string"},Zl={[Sw]:!0,default:!1,[D]:"boolean"},Wf={[Sw]:!1,[D]:"boolean"},Mr={[X]:Sn,[W]:[{[ze]:"Accelerate"},!0]},Wt={[X]:Sn,[W]:[{[ze]:"UseFIPS"},!0]},Zt={[X]:Sn,[W]:[{[ze]:"UseDualStack"},!0]},vn={[X]:ar,[W]:[{[ze]:"Endpoint"}]},Nz={[X]:Qm,[W]:[{[ze]:"Region"}],[We]:"partitionResult"},eM={[X]:Rt,[W]:[{[X]:cn,[W]:[{[ze]:"partitionResult"},un]},"aws-cn"]},ld={[X]:ar,[W]:[{[ze]:"Bucket"}]},_t={[ze]:"Bucket"},tM={[U]:[Mr],[Pe]:"S3Express does not support S3 Accelerate.",[D]:Pe},nM={[U]:[vn,{[X]:Ew,[W]:[{[ze]:"Endpoint"}],[We]:"url"}],[ae]:[{[U]:[{[X]:ar,[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]:[{[On]:!0,[un]:"sigv4",[Mn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[{[X]:Ym,[W]:[_t,!1]}],[ae]:[{[pe]:{[Ce]:Xm,[Ae]:{[ai]:"S3Express",[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:"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]:[{[On]:!0,[un]:"sigv4-s3express",[Mn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[{[X]:Ym,[W]:[_t,!1]}],[ae]:[{[pe]:{[Ce]:Xm,[Ae]:{[ai]:"S3Express",[Zn]:[{[On]:!0,[un]:"sigv4-s3express",[Mn]:"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]:Ew,[W]:[{[ze]:"Endpoint"}],[We]:"url"},Sb={[X]:Sn,[W]:[{[X]:cn,[W]:[{[ze]:"url"},"isIp"]},!0]},Lz={[ze]:"url"},$z={[X]:"uriEncode",[W]:[_t],[We]:"uri_encoded_bucket"},rr={[ai]:"S3Express",[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:"s3express",[os]:"{Region}"}]},qe={},zz={[X]:Ym,[W]:[_t,!1]},sM={[Pe]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Pe},rM={[X]:ar,[W]:[{[ze]:"UseS3ExpressControlEndpoint"}]},oM={[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]},Wh={[Pe]:"Unrecognized S3Express bucket name format.",[D]:Pe},iM={[X]:So,[W]:[ld]},aM={[ze]:Cz},cM={[U]:[Ye],[Pe]:"Expected a endpoint to be specified but no endpoint was found",[D]:Pe},Jh={[Zn]:[{[On]:!0,[un]:xw,[Mn]:Id,[_w]:["*"]},{[On]:!0,[un]:"sigv4",[Mn]:Id,[os]:"{Region}"}]},_b={[X]:Sn,[W]:[{[ze]:"ForcePathStyle"},!1]},g1e={[ze]:"ForcePathStyle"},Tn={[X]:Sn,[W]:[{[ze]:"Accelerate"},!1]},$n={[X]:Rt,[W]:[{[ze]:"Region"},"aws-global"]},jn={[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:yu,[os]:"us-east-1"}]},gt={[X]:So,[W]:[$n]},Vn={[X]:Sn,[W]:[{[ze]:"UseGlobalEndpoint"},!0]},lM={[Ce]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:yu,[os]:"{Region}"}]},[Ie]:{}},Pn={[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:yu,[os]:"{Region}"}]},Hn={[X]:Sn,[W]:[{[ze]:"UseGlobalEndpoint"},!1]},uM={[Ce]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},fM={[Ce]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},dM={[Ce]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},Eb={[X]:Sn,[W]:[{[X]:cn,[W]:[Lz,"isIp"]},!1]},xb={[Ce]:Iz,[Ae]:Pn,[Ie]:{}},DS={[Ce]:Xm,[Ae]:Pn,[Ie]:{}},pM={[pe]:DS,[D]:pe},wb={[Ce]:Tz,[Ae]:Pn,[Ie]:{}},hM={[Ce]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},em={[Pe]:"Invalid region: region was not a valid DNS name.",[D]:Pe},Hs={[ze]:Mz},Bz={[ze]:Dz},Rb={[X]:cn,[W]:[Hs,"service"]},Cw={[ze]:Rw},mM={[U]:[Zt],[Pe]:"S3 Object Lambda does not support Dual-stack",[D]:Pe},gM={[U]:[Mr],[Pe]:"S3 Object Lambda does not support S3 Accelerate",[D]:Pe},yM={[U]:[{[X]:ar,[W]:[{[ze]:"DisableAccessPoints"}]},{[X]:Sn,[W]:[{[ze]:"DisableAccessPoints"},!0]}],[Pe]:"Access points are not supported for this operation",[D]:Pe},Cb={[U]:[{[X]:ar,[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},Uz={[X]:cn,[W]:[{[ze]:"bucketPartition"},un]},jz={[X]:cn,[W]:[Hs,"accountId"]},Ab={[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:ww,[os]:"{bucketArn#region}"}]},vM={[Pe]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[D]:Pe},Ib={[Pe]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[D]:Pe},Tb={[Pe]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[D]:Pe},Ob={[Pe]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[D]:Pe},bM={[Pe]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[D]:Pe},SM={[Pe]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[D]:Pe},Jf={[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:yu,[os]:"{bucketArn#region}"}]},_M={[Zn]:[{[On]:!0,[un]:xw,[Mn]:Id,[_w]:["*"]},{[On]:!0,[un]:"sigv4",[Mn]:Id,[os]:"{bucketArn#region}"}]},EM={[X]:Oz,[W]:[_t]},xM={[Ce]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:Pn,[Ie]:{}},wM={[Ce]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:Pn,[Ie]:{}},RM={[Ce]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:Pn,[Ie]:{}},Mb={[Ce]:kz,[Ae]:Pn,[Ie]:{}},CM={[Ce]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:Pn,[Ie]:{}},AM={[ze]:"UseObjectLambdaEndpoint"},Db={[Zn]:[{[On]:!0,[un]:"sigv4",[Mn]:ww,[os]:"{Region}"}]},IM={[Ce]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},TM={[Ce]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},OM={[Ce]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},Pb={[Ce]:fm,[Ae]:Pn,[Ie]:{}},MM={[Ce]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Ae]:Pn,[Ie]:{}},kb=[{[ze]:"Region"}],y1e=[{[ze]:"Endpoint"}],v1e=[_t],Nb=[Mr],Ql=[vn,ws],DM=[{[X]:ar,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:Sn,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],b1e=[$z],Lb=[zz],Or=[Nz],$b=[Wt,Zt],ud=[Wt,ft],fd=[st,Zt],dd=[st,ft],PM=[{[X]:Yt,[W]:[_t,6,14,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,14,16,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],co=[{[U]:[Wt,Zt],[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:{}},[D]:pe},{[U]:ud,[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:{}},[D]:pe},{[U]:fd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:{}},[D]:pe},{[U]:dd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:{}},[D]:pe}],kM=[{[X]:Yt,[W]:[_t,6,15,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],NM=[{[X]:Yt,[W]:[_t,6,19,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,19,21,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],LM=[{[X]:Yt,[W]:[_t,6,20,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],$M=[{[X]:Yt,[W]:[_t,6,26,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,26,28,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],lo=[{[U]:[Wt,Zt],[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[On]:!0,[un]:"sigv4-s3express",[Mn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:ud,[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[On]:!0,[un]:"sigv4-s3express",[Mn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:fd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[On]:!0,[un]:"sigv4-s3express",[Mn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:dd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[On]:!0,[un]:"sigv4-s3express",[Mn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],zM=[_t,0,7,!0],BM=[{[X]:Yt,[W]:[_t,7,15,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],UM=[{[X]:Yt,[W]:[_t,7,16,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,16,18,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],jM=[{[X]:Yt,[W]:[_t,7,20,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],VM=[{[X]:Yt,[W]:[_t,7,21,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,21,23,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],HM=[{[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],qM=[{[X]:el,[W]:[{[ze]:MS},!1]}],FM=[{[X]:Rt,[W]:[{[ze]:Az},"beta"]}],_1e=["*"],GM=[{[X]:el,[W]:[{[ze]:"Region"},!1]}],da=[{[X]:Rt,[W]:[{[ze]:"Region"},"us-east-1"]}],zb=[{[X]:Rt,[W]:[Bz,Pz]}],KM=[{[X]:cn,[W]:[Hs,"resourceId[1]"],[We]:Rw},{[X]:So,[W]:[{[X]:Rt,[W]:[Cw,Wm]}]}],E1e=[Hs,"resourceId[1]"],ZM=[Zt],Bb=[{[X]:So,[W]:[{[X]:Rt,[W]:[{[X]:cn,[W]:[Hs,"region"]},Wm]}]}],QM=[{[X]:So,[W]:[{[X]:ar,[W]:[{[X]:cn,[W]:[Hs,"resourceId[2]"]}]}]}],x1e=[Hs,"resourceId[2]"],Ub=[{[X]:Qm,[W]:[{[X]:cn,[W]:[Hs,"region"]}],[We]:"bucketPartition"}],YM=[{[X]:Rt,[W]:[Uz,{[X]:cn,[W]:[{[ze]:"partitionResult"},un]}]}],jb=[{[X]:el,[W]:[{[X]:cn,[W]:[Hs,"region"]},!0]}],Vb=[{[X]:el,[W]:[jz,!1]}],XM=[{[X]:el,[W]:[Cw,!1]}],tm=[Wt],WM=[{[X]:el,[W]:[{[ze]:"Region"},!0]}],w1e={parameters:{Bucket:Kl,Region:Kl,UseFIPS:Zl,UseDualStack:Zl,Endpoint:Kl,ForcePathStyle:Zl,Accelerate:Zl,UseGlobalEndpoint:Zl,UseObjectLambdaEndpoint:Wf,Key:Kl,Prefix:Kl,CopySource:Kl,DisableAccessPoints:Wf,DisableMultiRegionAccessPoints:Zl,UseArnRegion:Wf,UseS3ExpressControlEndpoint:Wf,DisableS3ExpressSessionAuth:Wf},[ae]:[{[U]:[{[X]:ar,[W]:kb}],[ae]:[{[U]:[Mr,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,Mr],error:"A custom endpoint cannot be combined with S3 Accelerate",[D]:Pe},{[U]:[Wt,Nz,eM],error:"Partition does not support FIPS",[D]:Pe},{[U]:[ld,{[X]:Yt,[W]:[_t,0,h1e,ao],[We]:qO},{[X]:Rt,[W]:[{[ze]:qO},"--x-s3"]}],[ae]:[tM,nM,{[U]:[rM,oM],[ae]:[{[U]:Or,[ae]:[{[U]:[$z,Ye],[ae]:[{[U]:$b,endpoint:{[Ce]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:rr,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:rr,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:rr,[Ie]:qe},[D]:pe},{[U]:dd,endpoint:{[Ce]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:rr,[Ie]:qe},[D]:pe}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:Lb,[ae]:[{[U]:Or,[ae]:[{[U]:DM,[ae]:[{[U]:PM,[ae]:co,[D]:ce},{[U]:kM,[ae]:co,[D]:ce},{[U]:NM,[ae]:co,[D]:ce},{[U]:LM,[ae]:co,[D]:ce},{[U]:$M,[ae]:co,[D]:ce},Wh],[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},{[U]:$M,[ae]:lo,[D]:ce},Wh],[D]:ce}],[D]:ce},sM],[D]:ce},{[U]:[ld,{[X]:Yt,[W]:zM,[We]:FO},{[X]:Rt,[W]:[{[ze]:FO},"--xa-s3"]}],[ae]:[tM,nM,{[U]:Lb,[ae]:[{[U]:Or,[ae]:[{[U]:DM,[ae]:[{[U]:BM,[ae]:co,[D]:ce},{[U]:UM,[ae]:co,[D]:ce},{[U]:jM,[ae]:co,[D]:ce},{[U]:VM,[ae]:co,[D]:ce},{[U]:HM,[ae]:co,[D]:ce},Wh],[D]:ce},{[U]:BM,[ae]:lo,[D]:ce},{[U]:UM,[ae]:lo,[D]:ce},{[U]:jM,[ae]:lo,[D]:ce},{[U]:VM,[ae]:lo,[D]:ce},{[U]:HM,[ae]:lo,[D]:ce},Wh],[D]:ce}],[D]:ce},sM],[D]:ce},{[U]:[iM,rM,oM],[ae]:[{[U]:Or,[ae]:[{[U]:Ql,endpoint:{[Ce]:fm,[Ae]:rr,[Ie]:qe},[D]:pe},{[U]:$b,endpoint:{[Ce]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:qe},[D]:pe},{[U]:dd,endpoint:{[Ce]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[Ae]:rr,[Ie]:qe},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[ld,{[X]:Yt,[W]:[_t,49,50,ao],[We]:Cz},{[X]:Yt,[W]:[_t,8,12,ao],[We]:Az},{[X]:Yt,[W]:zM,[We]:GO},{[X]:Yt,[W]:[_t,32,49,ao],[We]:MS},{[X]:Qm,[W]:kb,[We]:"regionPartition"},{[X]:Rt,[W]:[{[ze]:GO},"--op-s3"]}],[ae]:[{[U]:qM,[ae]:[{[U]:Lb,[ae]:[{[U]:[{[X]:Rt,[W]:[aM,"e"]}],[ae]:[{[U]:FM,[ae]:[cM,{[U]:Ql,endpoint:{[Ce]:"https://{Bucket}.ec2.{url#authority}",[Ae]:Jh,[Ie]:qe},[D]:pe}],[D]:ce},{endpoint:{[Ce]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ae]:Jh,[Ie]:qe},[D]:pe}],[D]:ce},{[U]:[{[X]:Rt,[W]:[aM,"o"]}],[ae]:[{[U]:FM,[ae]:[cM,{[U]:Ql,endpoint:{[Ce]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Ae]:Jh,[Ie]:qe},[D]:pe}],[D]:ce},{endpoint:{[Ce]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ae]:Jh,[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]:ar,[W]:[{[X]:Ew,[W]:y1e}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[D]:Pe},{[U]:[_b,zz],[ae]:[{[U]:Or,[ae]:[{[U]:GM,[ae]:[{[U]:[Mr,eM],error:"S3 Accelerate cannot be used in this region",[D]:Pe},{[U]:[Zt,Wt,Tn,Ye,$n],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:lM,[D]:pe}],[D]:ce},{[U]:[Zt,Wt,Tn,Ye,gt,Hn],endpoint:lM,[D]:pe},{[U]:[ft,Wt,Tn,Ye,$n],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:uM,[D]:pe}],[D]:ce},{[U]:[ft,Wt,Tn,Ye,gt,Hn],endpoint:uM,[D]:pe},{[U]:[Zt,st,Mr,Ye,$n],endpoint:{[Ce]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,st,Mr,Ye,gt,Vn],[ae]:[{endpoint:fM,[D]:pe}],[D]:ce},{[U]:[Zt,st,Mr,Ye,gt,Hn],endpoint:fM,[D]:pe},{[U]:[Zt,st,Tn,Ye,$n],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:dM,[D]:pe}],[D]:ce},{[U]:[Zt,st,Tn,Ye,gt,Hn],endpoint:dM,[D]:pe},{[U]:[ft,st,Tn,vn,ws,Sb,$n],endpoint:{[Ce]:Iz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,vn,ws,Eb,$n],endpoint:{[Ce]:Xm,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,vn,ws,Sb,gt,Vn],[ae]:[{[U]:da,endpoint:xb,[D]:pe},{endpoint:xb,[D]:pe}],[D]:ce},{[U]:[ft,st,Tn,vn,ws,Eb,gt,Vn],[ae]:[{[U]:da,endpoint:DS,[D]:pe},pM],[D]:ce},{[U]:[ft,st,Tn,vn,ws,Sb,gt,Hn],endpoint:xb,[D]:pe},{[U]:[ft,st,Tn,vn,ws,Eb,gt,Hn],endpoint:DS,[D]:pe},{[U]:[ft,st,Mr,Ye,$n],endpoint:{[Ce]:Tz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Mr,Ye,gt,Vn],[ae]:[{[U]:da,endpoint:wb,[D]:pe},{endpoint:wb,[D]:pe}],[D]:ce},{[U]:[ft,st,Mr,Ye,gt,Hn],endpoint:wb,[D]:pe},{[U]:[ft,st,Tn,Ye,$n],endpoint:{[Ce]:KO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,Ye,gt,Vn],[ae]:[{[U]:da,endpoint:{[Ce]:KO,[Ae]:Pn,[Ie]:qe},[D]:pe},{endpoint:hM,[D]:pe}],[D]:ce},{[U]:[ft,st,Tn,Ye,gt,Hn],endpoint:hM,[D]:pe}],[D]:ce},em],[D]:ce}],[D]:ce},{[U]:[vn,ws,{[X]:Rt,[W]:[{[X]:cn,[W]:[Lz,"scheme"]},"http"]},{[X]:Ym,[W]:[_t,ao]},_b,st,ft,Tn],[ae]:[{[U]:Or,[ae]:[{[U]:GM,[ae]:[pM],[D]:ce},em],[D]:ce}],[D]:ce},{[U]:[_b,{[X]:Oz,[W]:v1e,[We]:Mz}],[ae]:[{[U]:[{[X]:cn,[W]:[Hs,"resourceId[0]"],[We]:Dz},{[X]:So,[W]:[{[X]:Rt,[W]:[Bz,Wm]}]}],[ae]:[{[U]:[{[X]:Rt,[W]:[Rb,ww]}],[ae]:[{[U]:zb,[ae]:[{[U]:KM,[ae]:[mM,gM,{[U]:Bb,[ae]:[yM,{[U]:QM,[ae]:[Cb,{[U]:Ub,[ae]:[{[U]:Or,[ae]:[{[U]:YM,[ae]:[{[U]:jb,[ae]:[{[U]:[{[X]:Rt,[W]:[jz,Wm]}],error:"Invalid ARN: Missing account id",[D]:Pe},{[U]:Vb,[ae]:[{[U]:XM,[ae]:[{[U]:Ql,endpoint:{[Ce]:ZO,[Ae]:Ab,[Ie]:qe},[D]:pe},{[U]:tm,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Ab,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Ab,[Ie]:qe},[D]:pe}],[D]:ce},vM],[D]:ce},Ib],[D]:ce},Tb],[D]:ce},Ob],[D]:ce}],[D]:ce}],[D]:ce},bM],[D]:ce},{error:"Invalid ARN: bucket ARN is missing a region",[D]:Pe}],[D]:ce},SM],[D]:ce},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[D]:Pe}],[D]:ce},{[U]:zb,[ae]:[{[U]:KM,[ae]:[{[U]:Bb,[ae]:[{[U]:zb,[ae]:[{[U]:Bb,[ae]:[yM,{[U]:QM,[ae]:[Cb,{[U]:Ub,[ae]:[{[U]:Or,[ae]:[{[U]:[{[X]:Rt,[W]:[Uz,"{partitionResult#name}"]}],[ae]:[{[U]:jb,[ae]:[{[U]:[{[X]:Rt,[W]:[Rb,yu]}],[ae]:[{[U]:Vb,[ae]:[{[U]:XM,[ae]:[{[U]:Nb,error:"Access Points do not support S3 Accelerate",[D]:Pe},{[U]:$b,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]:ZO,[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},vM],[D]:ce},Ib],[D]:ce},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[D]:Pe}],[D]:ce},Tb],[D]:ce},Ob],[D]:ce}],[D]:ce}],[D]:ce},bM],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:el,[W]:[Cw,ao]}],[ae]:[{[U]:ZM,error:"S3 MRAP does not support dual-stack",[D]:Pe},{[U]:tm,error:"S3 MRAP does not support FIPS",[D]:Pe},{[U]:Nb,error:"S3 MRAP does not support S3 Accelerate",[D]:Pe},{[U]:[{[X]:Sn,[W]:[{[ze]:"DisableMultiRegionAccessPoints"},ao]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[D]:Pe},{[U]:[{[X]:Qm,[W]:kb,[We]:QO}],[ae]:[{[U]:[{[X]:Rt,[W]:[{[X]:cn,[W]:[{[ze]:QO},un]},{[X]:cn,[W]:[Hs,"partition"]}]}],[ae]:[{endpoint:{[Ce]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Ae]:{[Zn]:[{[On]:ao,name:xw,[Mn]:yu,[_w]:_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},SM],[D]:ce},{[U]:[{[X]:Rt,[W]:[Rb,Id]}],[ae]:[{[U]:ZM,error:"S3 Outposts does not support Dual-stack",[D]:Pe},{[U]:tm,error:"S3 Outposts does not support FIPS",[D]:Pe},{[U]:Nb,error:"S3 Outposts does not support S3 Accelerate",[D]:Pe},{[U]:[{[X]:ar,[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]:MS}],[ae]:[{[U]:qM,[ae]:[Cb,{[U]:Ub,[ae]:[{[U]:Or,[ae]:[{[U]:YM,[ae]:[{[U]:jb,[ae]:[{[U]:Vb,[ae]:[{[U]:[{[X]:cn,[W]:x1e,[We]:YO}],[ae]:[{[U]:[{[X]:cn,[W]:[Hs,"resourceId[3]"],[We]:Rw}],[ae]:[{[U]:[{[X]:Rt,[W]:[{[ze]:YO},Pz]}],[ae]:[{[U]:Ql,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Ae]:_M,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:_M,[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},Ib],[D]:ce},Tb],[D]:ce},Ob],[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]:XO},{[X]:Rt,[W]:[{[ze]:XO},"arn:"]},{[X]:So,[W]:[{[X]:ar,[W]:[EM]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[D]:Pe},{[U]:[{[X]:Sn,[W]:[g1e,ao]},EM],error:"Path-style addressing cannot be used with ARN buckets",[D]:Pe},{[U]:b1e,[ae]:[{[U]:Or,[ae]:[{[U]:[Tn],[ae]:[{[U]:[Zt,Ye,Wt,$n],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:xM,[D]:pe}],[D]:ce},{[U]:[Zt,Ye,Wt,gt,Hn],endpoint:xM,[D]:pe},{[U]:[ft,Ye,Wt,$n],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:wM,[D]:pe}],[D]:ce},{[U]:[ft,Ye,Wt,gt,Hn],endpoint:wM,[D]:pe},{[U]:[Zt,Ye,st,$n],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:RM,[D]:pe}],[D]:ce},{[U]:[Zt,Ye,st,gt,Hn],endpoint:RM,[D]:pe},{[U]:[ft,vn,ws,st,$n],endpoint:{[Ce]:kz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,vn,ws,st,gt,Vn],[ae]:[{[U]:da,endpoint:Mb,[D]:pe},{endpoint:Mb,[D]:pe}],[D]:ce},{[U]:[ft,vn,ws,st,gt,Hn],endpoint:Mb,[D]:pe},{[U]:[ft,Ye,st,$n],endpoint:{[Ce]:WO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,Ye,st,gt,Vn],[ae]:[{[U]:da,endpoint:{[Ce]:WO,[Ae]:Pn,[Ie]:qe},[D]:pe},{endpoint:CM,[D]:pe}],[D]:ce},{[U]:[ft,Ye,st,gt,Hn],endpoint:CM,[D]:pe}],[D]:ce},{error:"Path-style addressing cannot be used with S3 Accelerate",[D]:Pe}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:ar,[W]:[AM]},{[X]:Sn,[W]:[AM,ao]}],[ae]:[{[U]:Or,[ae]:[{[U]:WM,[ae]:[mM,gM,{[U]:Ql,endpoint:{[Ce]:fm,[Ae]:Db,[Ie]:qe},[D]:pe},{[U]:tm,endpoint:{[Ce]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:Db,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Ae]:Db,[Ie]:qe},[D]:pe}],[D]:ce},em],[D]:ce}],[D]:ce},{[U]:[iM],[ae]:[{[U]:Or,[ae]:[{[U]:WM,[ae]:[{[U]:[Wt,Zt,Ye,$n],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:IM,[D]:pe}],[D]:ce},{[U]:[Wt,Zt,Ye,gt,Hn],endpoint:IM,[D]:pe},{[U]:[Wt,ft,Ye,$n],endpoint:{[Ce]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Wt,ft,Ye,gt,Vn],[ae]:[{endpoint:TM,[D]:pe}],[D]:ce},{[U]:[Wt,ft,Ye,gt,Hn],endpoint:TM,[D]:pe},{[U]:[st,Zt,Ye,$n],endpoint:{[Ce]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,Zt,Ye,gt,Vn],[ae]:[{endpoint:OM,[D]:pe}],[D]:ce},{[U]:[st,Zt,Ye,gt,Hn],endpoint:OM,[D]:pe},{[U]:[st,ft,vn,ws,$n],endpoint:{[Ce]:fm,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,ft,vn,ws,gt,Vn],[ae]:[{[U]:da,endpoint:Pb,[D]:pe},{endpoint:Pb,[D]:pe}],[D]:ce},{[U]:[st,ft,vn,ws,gt,Hn],endpoint:Pb,[D]:pe},{[U]:[st,ft,Ye,$n],endpoint:{[Ce]:JO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,ft,Ye,gt,Vn],[ae]:[{[U]:da,endpoint:{[Ce]:JO,[Ae]:Pn,[Ie]:qe},[D]:pe},{endpoint:MM,[D]:pe}],[D]:ce},{[U]:[st,ft,Ye,gt,Hn],endpoint:MM,[D]:pe}],[D]:ce},em],[D]:ce}],[D]:ce}],[D]:ce},{error:"A region must be set when sending requests to S3.",[D]:Pe}]},R1e=w1e,C1e=new B_({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Vz=(e,t={})=>C1e.get(e,()=>j_(R1e,{endpointParams:e,logger:t.logger}));hu.aws=Mg;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 X3(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 Hz(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function qz(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 p of l){const{name:d,properties:v={},...g}=p,b=d.toLowerCase();d!==b&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${b}'`);let S;if(b==="sigv4a"){S="aws.auth#sigv4a";const R=l.find(C=>{const I=C.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(Rz.sigv4aDependency()==="none"&&R)continue}else if(b.startsWith("sigv4"))S="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${b}'`);const E=n[S];if(!E)throw new Error(`Could not find HttpAuthOption create function for '${S}'`);const x=E(i);x.schemeId=S,x.signingProperties={...x.signingProperties||{},...g,...v},f.push(x)}return f},M1e=e=>{const t=[];switch(e.operation){default:t.push(Hz(e)),t.push(qz(e))}return t},D1e=O1e(Vz,M1e,{"aws.auth#sigv4":Hz,"aws.auth#sigv4a":qz}),P1e=e=>{const t=H_(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??{}}),Aw={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 _a{constructor(t){super(t),Object.setPrototypeOf(this,Yn.prototype)}}class Iw extends Yn{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,Iw.prototype)}}class Tw extends Yn{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,Tw.prototype)}}class Ow extends Yn{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Ow.prototype)}}class Mw extends Yn{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,Mw.prototype)}}class Dw extends Yn{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,Dw.prototype)}}class Pw extends Yn{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,Pw.prototype)}}class kw extends Yn{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,kw.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class Nw extends Yn{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,Nw.prototype)}}class Lw extends Yn{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,Lw.prototype)}}class $w extends Yn{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,$w.prototype)}}class zw extends Yn{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,zw.prototype)}}class Bw extends Yn{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,Bw.prototype)}}class Uw extends Yn{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,Uw.prototype)}}class jw extends Yn{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,jw.prototype)}}class Vw extends Yn{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Vw.prototype)}}const Hw="ACL",N1e="AccessDenied",L1e="AbortDate",JM="AccessKeyId",$1e="AbortMultipartUpload",z1e="AbortMultipartUploadOutput",B1e="AbortMultipartUploadRequest",U1e="AcceptRanges",j1e="AbortRuleId",V1e="AccessTier",cs="Bucket",Fz="BucketArn",H1e="BucketAlreadyExists",q1e="BucketAlreadyOwnedByYou",F1e="BypassGovernanceRetention",G1e="BucketInfo",bi="BucketKeyEnabled",Gz="BucketRegion",qw="Body",Kz="Buckets",Lu="ChecksumAlgorithm",K1e="CreateBucket",PS="CreateBucketConfiguration",Z1e="CreateBucketOutput",Q1e="CreateBucketRequest",Fw="CacheControl",Za="ChecksumCRC32",Qa="ChecksumCRC32C",Ya="ChecksumCRC64NVME",Gw="Cache-Control",Y1e="CreationDate",Kw="Content-Disposition",Zw="ContentDisposition",Qw="Content-Encoding",Yw="ContentEncoding",Xw="ContentLanguage",Ww="Content-Language",Jw="Content-Length",e1="ContentLength",t1="Content-MD5",n1="ContentMD5",X1e="CompletedMultipartUpload",W1e="CompleteMultipartUploadOutput",J1e="CreateMultipartUploadOutput",eRe="CompleteMultipartUploadResult",tRe="CompleteMultipartUploadRequest",nRe="CreateMultipartUploadRequest",Zz="CompleteMultipartUpload",sRe="CreateMultipartUpload",rRe="ChecksumMode",oRe="CommonPrefix",iRe="CommonPrefixList",aRe="CompletedPartList",cRe="CompletedPart",lRe="CommonPrefixes",uRe="ContentRange",fRe="Content-Range",Xa="ChecksumSHA1",Wa="ChecksumSHA256",dRe="CreateSessionOutput",pRe="CreateSessionResult",hRe="CreateSessionRequest",mRe="CreateSession",tl="ChecksumType",s1="Content-Type",r1="ContentType",fy="ContinuationToken",gRe="Contents",eD="Credentials",Qz="DeleteMarker",yRe="DisplayName",vRe="DeleteObjectOutput",bRe="DeleteObjectRequest",SRe="DeleteObject",_Re="DataRedundancy",Yz="Delimiter",Td="Expiration",Si="ExpectedBucketOwner",tD="ExpiresString",ERe="EncryptionTypeMismatch",di="ETag",Xz="EncodingType",vu="Expires",xRe="FetchOwner",o1="GrantFullControl",wRe="GetObject",RRe="GetObjectOutput",CRe="GetObjectRequest",i1="GrantRead",a1="GrantReadACP",ARe="GrantWrite",c1="GrantWriteACP",IRe="ID",dy="IfMatch",TRe="IfMatchInitiatedTime",ORe="IfMatchLastModifiedTime",MRe="IfMatchSize",DRe="If-Modified-Since",PRe="IfModifiedSince",kRe="InitiateMultipartUploadResult",py="If-Match",l1="IfNoneMatch",u1="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",Jm="Location",qRe="ListAllMyBucketsResult",FRe="ListBuckets",GRe="ListBucketsOutput",KRe="ListBucketsRequest",ZRe="ListBucketResult",QRe="LocationConstraint",YRe="LocationInfo",Wz="LastModified",XRe="Last-Modified",WRe="ListObjectsV2",JRe="ListObjectsV2Output",eCe="ListObjectsV2Request",f1="Metadata",tCe="MaxBuckets",nCe="MFA",Jz="MaxKeys",sCe="MissingMeta",rCe="MpuObjectSize",oCe="MultipartUpload",d1="Name",iCe="NextContinuationToken",aCe="NotFound",cCe="NoSuchBucket",lCe="NoSuchKey",uCe="NoSuchUpload",p1="Owner",fCe="ObjectAlreadyInActiveTierError",dCe="ObjectLockEnabledForBucket",h1="ObjectLockLegalHoldStatus",m1="ObjectLockMode",g1="ObjectLockRetainUntilDate",pCe="ObjectList",hCe="ObjectNotInActiveTierError",mCe="ObjectOwnership",gCe="OptionalObjectAttributes",yCe="Object",ap="Prefix",vCe="PartsCount",y1="PartNumber",bCe="PutObject",SCe="PutObjectOutput",_Ce="PutObjectRequest",ECe="PutObjectTagging",xCe="PutObjectTaggingOutput",wCe="PutObjectTaggingRequest",RCe="Parts",CCe="Part",Ja="RequestCharged",ACe="ResponseCacheControl",ICe="ResponseContentDisposition",TCe="ResponseContentEncoding",OCe="ResponseContentLanguage",MCe="ResponseContentType",DCe="ResponseExpires",PCe="RestoreExpiryDate",_i="RequestPayer",kCe="ReplicationStatus",eB="RestoreStatus",nD="Range",NCe="Restore",tB="StartAfter",sD="SecretAccessKey",LCe="StreamingBlob",cp="StorageClass",$Ce="SessionCredentialValue",zCe="SessionCredentials",BCe="SessionMode",Ei="ServerSideEncryption",xi="SSECustomerAlgorithm",$u="SSECustomerKey",wi="SSECustomerKeyMD5",nl="SSEKMSEncryptionContext",Do="SSEKMSKeyId",rD="SessionToken",nB="Size",UCe="Tags",jCe="TagCount",VCe="TooManyParts",sB="TagSet",rB="Tag",Od="Tagging",oB="Type",hy="UploadId",HCe="UploadPart",qCe="UploadPartOutput",FCe="UploadPartRequest",GCe="Value",ec="VersionId",KCe="WriteOffsetBytes",v1="WebsiteRedirectLocation",ZCe="accept-ranges",QCe="bucket-region",Os="client",iB="continuation-token",YCe="delimiter",Ms="error",XCe="encoding-type",WCe="fetch-owner",Fr="http",my="httpChecksum",Qs="httpError",$="httpHeader",b1="httpPayload",S1="httpPrefixHeaders",nn="httpQuery",JCe="max-buckets",eAe="max-keys",aB="prefix",cB="partNumber",tAe="response-cache-control",nAe="response-content-disposition",sAe="response-content-encoding",rAe="response-content-language",oAe="response-content-type",iAe="response-expires",lB="smithy.ts.sdk.synthetic.com.amazonaws.s3",aAe="start-after",cAe="streaming",_1="uploadId",E1="versionId",eg="xmlFlattened",is="xmlName",x1="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",uB="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",lp="x-amz-checksum-type",fB="x-amz-delete-marker",w1="x-amz-expiration",Ri="x-amz-expected-bucket-owner",R1="x-amz-grant-full-control",C1="x-amz-grant-read",A1="x-amz-grant-read-acp",gAe="x-amz-grant-write",I1="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",T1="x-amz-meta-",SAe="x-amz-mfa",_Ae="x-amz-missing-meta",EAe="x-amz-mp-object-size",xAe="x-amz-mp-parts-count",O1="x-amz-object-lock-legal-hold",M1="x-amz-object-lock-mode",D1="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",tc="x-amz-request-charged",Ci="x-amz-request-payer",IAe="x-amz-replication-status",P1="x-amz-storage-class",k1="x-amz-sdk-checksum-algorithm",Ai="x-amz-server-side-encryption",Ii="x-amz-server-side-encryption-aws-kms-key-id",Ti="x-amz-server-side-encryption-bucket-key-enabled",Hu="x-amz-server-side-encryption-context",Oi="x-amz-server-side-encryption-customer-algorithm",up="x-amz-server-side-encryption-customer-key",Mi="x-amz-server-side-encryption-customer-key-MD5",dB="x-amz-tagging",TAe="x-amz-tagging-count",fp="x-amz-version-id",OAe="x-amz-write-offset-bytes",N1="x-amz-website-redirect-location",Te="com.amazonaws.s3",pB=Gn.for(lB);var MAe=[-3,lB,"S3ServiceException",0,[],[]];pB.registerError(MAe,Yn);const _s=Gn.for(Te);var DAe=[-3,Te,N1e,{[Ms]:Os,[Qs]:403},[],[]];_s.registerError(DAe,Tw);var PAe=[-3,Te,H1e,{[Ms]:Os,[Qs]:409},[],[]];_s.registerError(PAe,Mw);var kAe=[-3,Te,q1e,{[Ms]:Os,[Qs]:409},[],[]];_s.registerError(kAe,Dw);var NAe=[-3,Te,ERe,{[Ms]:Os,[Qs]:400},[],[]];_s.registerError(NAe,$w);var LAe=[-3,Te,LRe,{[Ms]:Os,[Qs]:400},[],[]];_s.registerError(LAe,jw);var $Ae=[-3,Te,NRe,{[Ms]:Os,[Qs]:403},[cp,V1e],[0,0]];_s.registerError($Ae,kw);var zAe=[-3,Te,$Re,{[Ms]:Os,[Qs]:400},[],[]];_s.registerError(zAe,zw);var BAe=[-3,Te,VRe,{[Ms]:Os,[Qs]:400},[],[]];_s.registerError(BAe,Bw);var UAe=[-3,Te,cCe,{[Ms]:Os,[Qs]:404},[],[]];_s.registerError(UAe,Pw);var jAe=[-3,Te,lCe,{[Ms]:Os,[Qs]:404},[],[]];_s.registerError(jAe,Nw);var VAe=[-3,Te,uCe,{[Ms]:Os,[Qs]:404},[],[]];_s.registerError(VAe,Iw);var HAe=[-3,Te,aCe,{[Ms]:Os},[],[]];_s.registerError(HAe,Lw);var qAe=[-3,Te,fCe,{[Ms]:Os,[Qs]:403},[],[]];_s.registerError(qAe,Vw);var FAe=[-3,Te,hCe,{[Ms]:Os,[Qs]:403},[],[]];_s.registerError(FAe,Ow);var GAe=[-3,Te,VCe,{[Ms]:Os,[Qs]:400},[],[]];_s.registerError(GAe,Uw);const KAe=[pB,_s];var oD=[0,Te,$Ce,8,0],dp=[0,Te,$u,8,0],qu=[0,Te,nl,8,0],Di=[0,Te,Do,8,0],L1=[0,Te,LCe,{[cAe]:1},42],ZAe=[3,Te,z1e,0,[Ja],[[0,{[$]:tc}]]],QAe=[3,Te,B1e,0,[cs,qr,hy,_i,Si,TRe],[[0,1],[0,1],[0,{[nn]:_1}],[0,{[$]:Ci}],[0,{[$]:Ri}],[6,{[$]:yAe}]],3],YAe=[3,Te,cs,0,[d1,Y1e,Gz,Fz],[0,4,0,0]],XAe=[3,Te,G1e,0,[_Re,oB],[0,0]],WAe=[3,Te,oRe,0,[ap],[0]],JAe=[3,Te,X1e,0,[RCe],[[()=>DIe,{[eg]:1,[is]:CCe}]]],eIe=[3,Te,cRe,0,[di,Za,Qa,Ya,Xa,Wa,y1],[0,0,0,0,0,0,1]],tIe=[3,Te,W1e,{[is]:eRe},[Jm,cs,qr,Td,di,Za,Qa,Ya,Xa,Wa,tl,Ei,ec,Do,bi,Ja],[0,0,0,[0,{[$]:w1}],0,0,0,0,0,0,0,[0,{[$]:Ai}],[0,{[$]:fp}],[()=>Di,{[$]:Ii}],[2,{[$]:Ti}],[0,{[$]:tc}]]],nIe=[3,Te,tRe,0,[cs,qr,hy,oCe,Za,Qa,Ya,Xa,Wa,tl,rCe,_i,Si,dy,l1,xi,$u,wi],[[0,1],[0,1],[0,{[nn]:_1}],[()=>JAe,{[b1]:1,[is]:Zz}],[0,{[$]:zu}],[0,{[$]:Bu}],[0,{[$]:Uu}],[0,{[$]:ju}],[0,{[$]:Vu}],[0,{[$]:lp}],[1,{[$]:EAe}],[0,{[$]:Ci}],[0,{[$]:Ri}],[0,{[$]:py}],[0,{[$]:u1}],[0,{[$]:Oi}],[()=>dp,{[$]:up}],[0,{[$]:Mi}]],3],sIe=[3,Te,PS,0,[QRe,Jm,cs,UCe],[0,()=>vIe,()=>XAe,[()=>mB,0]]],rIe=[3,Te,Z1e,0,[Jm,Fz],[[0,{[$]:Jm}],[0,{[$]:fAe}]]],oIe=[3,Te,Q1e,0,[cs,Hw,PS,o1,i1,a1,ARe,c1,dCe,mCe],[[0,1],[0,{[$]:x1}],[()=>sIe,{[b1]:1,[is]:PS}],[0,{[$]:R1}],[0,{[$]:C1}],[0,{[$]:A1}],[0,{[$]:gAe}],[0,{[$]:I1}],[2,{[$]:pAe}],[0,{[$]:wAe}]],1],iIe=[3,Te,J1e,{[is]:kRe},[L1e,j1e,cs,qr,hy,Ei,xi,wi,Do,nl,bi,Ja,Lu,tl],[[4,{[$]:lAe}],[0,{[$]:uAe}],[0,{[is]:cs}],0,0,[0,{[$]:Ai}],[0,{[$]:Oi}],[0,{[$]:Mi}],[()=>Di,{[$]:Ii}],[()=>qu,{[$]:Hu}],[2,{[$]:Ti}],[0,{[$]:tc}],[0,{[$]:uB}],[0,{[$]:lp}]]],aIe=[3,Te,nRe,0,[cs,qr,Hw,Fw,Zw,Yw,Xw,r1,vu,o1,i1,a1,c1,f1,Ei,cp,v1,xi,$u,wi,Do,nl,bi,_i,Od,m1,g1,h1,Si,Lu,tl],[[0,1],[0,1],[0,{[$]:x1}],[0,{[$]:Gw}],[0,{[$]:Kw}],[0,{[$]:Qw}],[0,{[$]:Ww}],[0,{[$]:s1}],[4,{[$]:vu}],[0,{[$]:R1}],[0,{[$]:C1}],[0,{[$]:A1}],[0,{[$]:I1}],[128,{[S1]:T1}],[0,{[$]:Ai}],[0,{[$]:P1}],[0,{[$]:N1}],[0,{[$]:Oi}],[()=>dp,{[$]:up}],[0,{[$]:Mi}],[()=>Di,{[$]:Ii}],[()=>qu,{[$]:Hu}],[2,{[$]:Ti}],[0,{[$]:Ci}],[0,{[$]:dB}],[0,{[$]:M1}],[5,{[$]:D1}],[0,{[$]:O1}],[0,{[$]:Ri}],[0,{[$]:uB}],[0,{[$]:lp}]],2],cIe=[3,Te,dRe,{[is]:pRe},[eD,Ei,Do,nl,bi],[[()=>RIe,{[is]:eD}],[0,{[$]:Ai}],[()=>Di,{[$]:Ii}],[()=>qu,{[$]:Hu}],[2,{[$]:Ti}]],1],lIe=[3,Te,hRe,0,[cs,BCe,Ei,Do,nl,bi],[[0,1],[0,{[$]:mAe}],[0,{[$]:Ai}],[()=>Di,{[$]:Ii}],[()=>qu,{[$]:Hu}],[2,{[$]:Ti}]],1],uIe=[3,Te,vRe,0,[Qz,ec,Ja],[[2,{[$]:fB}],[0,{[$]:fp}],[0,{[$]:tc}]]],fIe=[3,Te,bRe,0,[cs,qr,nCe,ec,_i,F1e,Si,dy,ORe,MRe],[[0,1],[0,1],[0,{[$]:SAe}],[0,{[nn]:E1}],[0,{[$]:Ci}],[2,{[$]:dAe}],[0,{[$]:Ri}],[0,{[$]:py}],[6,{[$]:vAe}],[1,{[$]:bAe}]],2],dIe=[3,Te,RRe,0,[qw,Qz,U1e,Td,NCe,Wz,e1,di,Za,Qa,Ya,Xa,Wa,tl,sCe,ec,Fw,Zw,Yw,Xw,uRe,r1,vu,tD,v1,Ei,f1,xi,wi,Do,bi,cp,Ja,kCe,vCe,jCe,m1,g1,h1],[[()=>L1,16],[2,{[$]:fB}],[0,{[$]:ZCe}],[0,{[$]:w1}],[0,{[$]:AAe}],[4,{[$]:XRe}],[1,{[$]:Jw}],[0,{[$]:di}],[0,{[$]:zu}],[0,{[$]:Bu}],[0,{[$]:Uu}],[0,{[$]:ju}],[0,{[$]:Vu}],[0,{[$]:lp}],[1,{[$]:_Ae}],[0,{[$]:fp}],[0,{[$]:Gw}],[0,{[$]:Kw}],[0,{[$]:Qw}],[0,{[$]:Ww}],[0,{[$]:fRe}],[0,{[$]:s1}],[4,{[$]:vu}],[0,{[$]:tD}],[0,{[$]:N1}],[0,{[$]:Ai}],[128,{[S1]:T1}],[0,{[$]:Oi}],[0,{[$]:Mi}],[()=>Di,{[$]:Ii}],[2,{[$]:Ti}],[0,{[$]:P1}],[0,{[$]:tc}],[0,{[$]:IAe}],[1,{[$]:xAe}],[1,{[$]:TAe}],[0,{[$]:M1}],[5,{[$]:D1}],[0,{[$]:O1}]]],pIe=[3,Te,CRe,0,[cs,qr,dy,PRe,l1,URe,nD,ACe,ICe,TCe,OCe,MCe,DCe,ec,xi,$u,wi,_i,y1,Si,rRe],[[0,1],[0,1],[0,{[$]:py}],[4,{[$]:DRe}],[0,{[$]:u1}],[4,{[$]:jRe}],[0,{[$]:nD}],[0,{[nn]:tAe}],[0,{[nn]:nAe}],[0,{[nn]:sAe}],[0,{[nn]:rAe}],[0,{[nn]:oAe}],[6,{[nn]:iAe}],[0,{[nn]:E1}],[0,{[$]:Oi}],[()=>dp,{[$]:up}],[0,{[$]:Mi}],[0,{[$]:Ci}],[1,{[nn]:cB}],[0,{[$]:Ri}],[0,{[$]:hAe}]],2],hIe=[3,Te,GRe,{[is]:qRe},[Kz,p1,fy,ap],[[()=>OIe,0],()=>hB,0,0]],mIe=[3,Te,KRe,0,[tCe,fy,ap,Gz],[[1,{[nn]:JCe}],[0,{[nn]:iB}],[0,{[nn]:aB}],[0,{[nn]:QCe}]]],gIe=[3,Te,JRe,{[is]:ZRe},[BRe,gRe,d1,ap,Yz,Jz,lRe,Xz,HRe,fy,iCe,tB,Ja],[2,[()=>PIe,{[eg]:1}],0,0,0,1,[()=>MIe,{[eg]:1}],0,1,0,0,0,[0,{[$]:tc}]]],yIe=[3,Te,eCe,0,[cs,Yz,Xz,Jz,ap,fy,xRe,tB,_i,Si,gCe],[[0,1],[0,{[nn]:YCe}],[0,{[nn]:XCe}],[1,{[nn]:eAe}],[0,{[nn]:aB}],[0,{[nn]:iB}],[2,{[nn]:WCe}],[0,{[nn]:aAe}],[0,{[$]:Ci}],[0,{[$]:Ri}],[64,{[$]:RAe}]],1],vIe=[3,Te,YRe,0,[oB,d1],[0,0]],bIe=[3,Te,yCe,0,[qr,Wz,di,Lu,tl,nB,cp,p1,eB],[0,4,0,[64,{[eg]:1}],0,1,0,()=>hB,()=>wIe]],hB=[3,Te,p1,0,[yRe,IRe],[0,0]],SIe=[3,Te,SCe,0,[Td,di,Za,Qa,Ya,Xa,Wa,tl,Ei,ec,xi,wi,Do,nl,bi,nB,Ja],[[0,{[$]:w1}],[0,{[$]:di}],[0,{[$]:zu}],[0,{[$]:Bu}],[0,{[$]:Uu}],[0,{[$]:ju}],[0,{[$]:Vu}],[0,{[$]:lp}],[0,{[$]:Ai}],[0,{[$]:fp}],[0,{[$]:Oi}],[0,{[$]:Mi}],[()=>Di,{[$]:Ii}],[()=>qu,{[$]:Hu}],[2,{[$]:Ti}],[1,{[$]:CAe}],[0,{[$]:tc}]]],_Ie=[3,Te,_Ce,0,[cs,qr,Hw,qw,Fw,Zw,Yw,Xw,e1,n1,r1,Lu,Za,Qa,Ya,Xa,Wa,vu,dy,l1,o1,i1,a1,c1,KCe,f1,Ei,cp,v1,xi,$u,wi,Do,nl,bi,_i,Od,m1,g1,h1,Si],[[0,1],[0,1],[0,{[$]:x1}],[()=>L1,16],[0,{[$]:Gw}],[0,{[$]:Kw}],[0,{[$]:Qw}],[0,{[$]:Ww}],[1,{[$]:Jw}],[0,{[$]:t1}],[0,{[$]:s1}],[0,{[$]:k1}],[0,{[$]:zu}],[0,{[$]:Bu}],[0,{[$]:Uu}],[0,{[$]:ju}],[0,{[$]:Vu}],[4,{[$]:vu}],[0,{[$]:py}],[0,{[$]:u1}],[0,{[$]:R1}],[0,{[$]:C1}],[0,{[$]:A1}],[0,{[$]:I1}],[1,{[$]:OAe}],[128,{[S1]:T1}],[0,{[$]:Ai}],[0,{[$]:P1}],[0,{[$]:N1}],[0,{[$]:Oi}],[()=>dp,{[$]:up}],[0,{[$]:Mi}],[()=>Di,{[$]:Ii}],[()=>qu,{[$]:Hu}],[2,{[$]:Ti}],[0,{[$]:Ci}],[0,{[$]:dB}],[0,{[$]:M1}],[5,{[$]:D1}],[0,{[$]:O1}],[0,{[$]:Ri}]],2],EIe=[3,Te,xCe,0,[ec],[[0,{[$]:fp}]]],xIe=[3,Te,wCe,0,[cs,qr,Od,ec,n1,Lu,Si,_i],[[0,1],[0,1],[()=>AIe,{[b1]:1,[is]:Od}],[0,{[nn]:E1}],[0,{[$]:t1}],[0,{[$]:k1}],[0,{[$]:Ri}],[0,{[$]:Ci}]],3],wIe=[3,Te,eB,0,[zRe,PCe],[2,4]],RIe=[3,Te,zCe,0,[JM,sD,rD,Td],[[0,{[is]:JM}],[()=>oD,{[is]:sD}],[()=>oD,{[is]:rD}],[4,{[is]:Td}]],4],CIe=[3,Te,rB,0,[qr,GCe],[0,0],2],AIe=[3,Te,Od,0,[sB],[[()=>mB,0]],1],IIe=[3,Te,qCe,0,[Ei,di,Za,Qa,Ya,Xa,Wa,xi,wi,Do,bi,Ja],[[0,{[$]:Ai}],[0,{[$]:di}],[0,{[$]:zu}],[0,{[$]:Bu}],[0,{[$]:Uu}],[0,{[$]:ju}],[0,{[$]:Vu}],[0,{[$]:Oi}],[0,{[$]:Mi}],[()=>Di,{[$]:Ii}],[2,{[$]:Ti}],[0,{[$]:tc}]]],TIe=[3,Te,FCe,0,[cs,qr,y1,hy,qw,e1,n1,Lu,Za,Qa,Ya,Xa,Wa,xi,$u,wi,_i,Si],[[0,1],[0,1],[1,{[nn]:cB}],[0,{[nn]:_1}],[()=>L1,16],[1,{[$]:Jw}],[0,{[$]:t1}],[0,{[$]:k1}],[0,{[$]:zu}],[0,{[$]:Bu}],[0,{[$]:Uu}],[0,{[$]:ju}],[0,{[$]:Vu}],[0,{[$]:Oi}],[()=>dp,{[$]:up}],[0,{[$]:Mi}],[0,{[$]:Ci}],[0,{[$]:Ri}]],4],OIe=[1,Te,Kz,0,[()=>YAe,{[is]:cs}]],MIe=[1,Te,iRe,0,()=>WAe],DIe=[1,Te,aRe,0,()=>eIe],PIe=[1,Te,pCe,0,[()=>bIe,0]],mB=[1,Te,sB,0,[()=>CIe,{[is]:rB}]],uDe=[9,Te,$1e,{[Fr]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>QAe,()=>ZAe],fDe=[9,Te,Zz,{[Fr]:["POST","/{Key+}",200]},()=>nIe,()=>tIe],dDe=[9,Te,K1e,{[Fr]:["PUT","/",200]},()=>oIe,()=>rIe],pDe=[9,Te,sRe,{[Fr]:["POST","/{Key+}?uploads",200]},()=>aIe,()=>iIe],kIe=[9,Te,mRe,{[Fr]:["GET","/?session",200]},()=>lIe,()=>cIe],hDe=[9,Te,SRe,{[Fr]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>fIe,()=>uIe],mDe=[9,Te,wRe,{[my]:"-",[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],gDe=[9,Te,bCe,{[my]:"-",[Fr]:["PUT","/{Key+}?x-id=PutObject",200]},()=>_Ie,()=>SIe],yDe=[9,Te,ECe,{[my]:"-",[Fr]:["PUT","/{Key+}?tagging",200]},()=>xIe,()=>EIe],vDe=[9,Te,HCe,{[my]:"-",[Fr]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>TIe,()=>IIe];class $Ie extends xn.classBuilder().ep({...Aw,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions()),bw(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(kIe).build(){}const zIe="3.1004.0",BIe={version:zIe};function iD(e){return typeof e=="string"?e.length===0:e.byteLength===0}var gB={name:"SHA-1"},aD={name:"HMAC",hash:gB},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){Ra().crypto.subtle.importKey("raw",cD(t),aD,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!iD(t)){var n=cD(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 Ra().crypto.subtle.sign(aD,n,t.toHash).then(function(r){return new Uint8Array(r)})}):iD(this.toHash)?Promise.resolve(UIe):Promise.resolve().then(function(){return Ra().crypto.subtle.digest(gB,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function cD(e){return typeof e=="string"?W3(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(nN(Ra()))this.hash=new jIe(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(Uc(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&&lD(n),new pd(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&lD(t),parseInt(Vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function lD(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),p=new DataView(new ArrayBuffer(3+f.byteLength));p.setUint8(0,7),p.setUint16(1,f.byteLength,!1);const d=new Uint8Array(p.buffer);return d.set(f,3),d;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(f3(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:p,done:d}=await f.next();if(d){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const v=p.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()},pa=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===pa&&(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%pa>=pa-8){for(let l=this.bufferLength;l>>0,!0),n.setUint32(pa-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(pa)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function gy(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 gy(t&n|~t&r,e,t,i,c,l)}function gs(e,t,n,r,i,c,l){return gy(t&r|n&~r,e,t,i,c,l)}function ys(e,t,n,r,i,c,l){return gy(t^n^r,e,t,i,c,l)}function vs(e,t,n,r,i,c,l){return gy(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??fi,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Vz,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 Dg},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new sJ}],logger:e?.logger??new Pg,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??d3,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??Rz,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??mu,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??za}),ETe=e=>{const t=lE(e),n=()=>t().then(G_),r=_Te(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??q_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??aE({serviceId:r.serviceId,clientVersion:BIe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??pTe,maxAttempts:e?.maxAttempts??gu,md5:e?.md5??vTe,region:e?.region??cE("Region is missing"),requestHandler:$d.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Q_),sha1:e?.sha1??VIe,sha256:e?.sha256??iE,streamCollector:e?.streamCollector??Rg,streamHasher:e?.streamHasher??mTe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(J_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(eE))}},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(Ax(e),K_(e),w_(e),xTe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,Ix(n),Z_(n),R_(n),wTe(n))};class CTe extends F_{config;constructor(...[t]){const n=ETe(t||{});super(n),this.initConfig=n;const r=k1e(n),i=z_(r),c=$we(i),l=rE(c),f=tE(l),p=f,d=sE(p),v=p1e(d),g=P1e(v),b=t1e(g,{session:[()=>this,$Ie]}),S=RTe(b,t?.extensions||[]);this.config=S,this.middlewareStack.use(M_(this.config)),this.middlewareStack.use(W_(this.config)),this.middlewareStack.use(oE(this.config)),this.middlewareStack.use(nE(this.config)),this.middlewareStack.use(C_(this.config)),this.middlewareStack.use(A_(this.config)),this.middlewareStack.use(I_(this.config)),this.middlewareStack.use(T_(this.config,{httpAuthSchemeParametersProvider:T1e,identityProviderConfigProvider:async E=>new $_({"aws.auth#sigv4":E.credentials,"aws.auth#sigv4a":E.credentials})})),this.middlewareStack.use(O_(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(Aw).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions()),bw(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(NIe).build(){}class ITe extends xn.classBuilder().ep({...Aw,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[kn(r,t.getEndpointParameterInstructions()),bw(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(LIe).build(){}const $1="ap-southeast-2",vB=`${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=Ld();if(!e)throw new Error("AWS credentials not configured");dm=new TSe({endpoint:vB,region:$1,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return dm}function sl(){if(!pm){const e=Ld();if(!e)throw new Error("AWS credentials not configured");pm=new Ewe({endpoint:vB,region:$1,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return pm}function bB(){if(!nd){const e=Ld();if(!e)throw new Error("AWS credentials not configured");nd=new CTe({endpoint:TTe,region:$1,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 SB(){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=Aj(t),r=ag(),i=SD();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 p=n==="/";let d,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=k.jsx(E9,{className:"size-4"}),v=k.jsx("span",{children:"Dashboard"}),e[5]=d,e[6]=v):(d=e[5],v=e[6]);let g;e[7]!==p?(g=k.jsxs(Kf,{children:[f,k.jsx(Hl,{children:k.jsx(Ar,{children:k.jsx(Rs,{to:"/",children:k.jsxs(Ir,{isActive:p,tooltip:"Dashboard",children:[d,v]})})})})]}),e[7]=p,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 S;e[10]!==n?(S=n.startsWith("/ec2/describe-instances")||n.startsWith("/ec2/run-instances"),e[10]=n,e[11]=S):S=e[11];let E,x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=k.jsx(AT,{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]!==S?(R=k.jsx(Ar,{children:k.jsx(Rs,{to:"/ec2/describe-instances",children:k.jsxs(Ir,{isActive:S,tooltip:"EC2 Instances",children:[x,E]})})}),e[14]=S,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,P;e[18]===Symbol.for("react.memo_cache_sentinel")?(I=k.jsx(w9,{className:"size-4"}),P=k.jsx("span",{children:"Images"}),e[18]=I,e[19]=P):(I=e[18],P=e[19]);let T;e[20]!==C?(T=k.jsx(Ar,{children:k.jsx(Rs,{to:"/ec2/describe-images",children:k.jsxs(Ir,{isActive:C,tooltip:"Images",children:[I,P]})})}),e[20]=C,e[21]=T):T=e[21];let L;e[22]!==n?(L=n.startsWith("/ec2/describe-key-pairs"),e[22]=n,e[23]=L):L=e[23];let j,V;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=k.jsx(C9,{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]!==L?(N=k.jsx(Ar,{children:k.jsx(Rs,{to:"/ec2/describe-key-pairs",children:k.jsxs(Ir,{isActive:L,tooltip:"Key Pairs",children:[j,V]})})}),e[26]=L,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(S9,{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(Ar,{children:k.jsx(Rs,{to:"/ec2/describe-volumes",children:k.jsxs(Ir,{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(g9,{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(Ar,{children:k.jsx(Rs,{to:"/ec2/describe-snapshots",children:k.jsxs(Ir,{isActive:oe,tooltip:"Snapshots",children:[me,ge]})})}),e[38]=oe,e[39]=H):H=e[39];let re;e[40]!==R||e[41]!==T||e[42]!==N||e[43]!==F||e[44]!==H?(re=k.jsxs(Kf,{children:[b,k.jsxs(Hl,{children:[R,T,N,F,H]})]}),e[40]=R,e[41]=T,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,z;e[49]===Symbol.for("react.memo_cache_sentinel")?(ue=k.jsx(k9,{className:"size-4"}),z=k.jsx("span",{children:"VPCs"}),e[49]=ue,e[50]=z):(ue=e[49],z=e[50]);let ee;e[51]!==ve?(ee=k.jsx(Ar,{children:k.jsx(Rs,{to:"/ec2/describe-vpcs",children:k.jsxs(Ir,{isActive:ve,tooltip:"VPCs",children:[ue,z]})})}),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(I9,{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(Ar,{children:k.jsx(Rs,{to:"/ec2/describe-subnets",children:k.jsxs(Ir,{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(Hl,{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(H9,{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(Ar,{children:k.jsx(Rs,{to:"/iam/list-users",children:k.jsxs(Ir,{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(B9,{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(Ar,{children:k.jsx(Rs,{to:"/iam/list-policies",children:k.jsxs(Ir,{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(Hl,{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(AT,{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(Hl,{children:k.jsx(Ar,{children:k.jsx(Rs,{to:"/s3/ls",children:k.jsxs(Ir,{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(O9,{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(Hl,{children:k.jsx(Ar,{children:k.jsxs(Ir,{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=SD();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 p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(SB,{}),t[4]=p):p=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=k.jsx(Dk,{}),t[5]=d):d=t[5];let v,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(v=k.jsx("div",{className:"flex justify-center",children:k.jsx(v9,{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 S;t[8]!==b?(S=k.jsx("p",{className:"text-muted-foreground",children:b}),t[8]=b,t[9]=S):S=t[9];let E;t[10]!==f?(E=k.jsx(lu,{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(lu,{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]!==S?(C=k.jsxs(k.Fragment,{children:[p,k.jsxs("main",{className:"flex flex-1 flex-col",children:[d,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,S,R]})})]})]}),t[15]=R,t[16]=S,t[17]=C):C=t[17],C}const z1=pj()({head:()=>({meta:[{title:"Mulga"}]}),component:()=>k.jsxs(k.Fragment,{children:[k.jsx(Dj,{}),k.jsx(SB,{}),k.jsxs("main",{className:"flex flex-1 flex-col",children:[k.jsx(Dk,{}),k.jsx("div",{className:"flex flex-1 flex-col p-8",children:k.jsx(HD,{})})]})]}),errorComponent:DTe,notFoundComponent:CG}),PTe=()=>pt(()=>import("./login.js"),__vite__mapDeps([0,1,2,3])),kTe=at("/login")({beforeLoad:()=>{if(Ld())throw HS({to:"/"})},component:yt(PTe,"component")}),NTe=()=>pt(()=>import("./route.js"),[]),LTe=at("/_auth")({beforeLoad:()=>{if(!Ld())throw HS({to:"/login"})},component:yt(NTe,"component")}),_B={queryKey:["ec2","availabilityZones"],queryFn:()=>{const e=new OSe({});return ls().send(e)},staleTime:3e5},EB={queryKey:["ec2","instances"],queryFn:()=>{const e=new az({});return ls().send(e)},refetchInterval:5e3},$Te=e=>({queryKey:["ec2","instances",e],queryFn:()=>{const t=new az({InstanceIds:[e]});return ls().send(t)},refetchInterval:5e3}),xB={queryKey:["ec2","instances","types"],queryFn:()=>{const e=new MSe({Filters:[{Name:"capacity",Values:["true"]}]});return ls().send(e)},refetchInterval:5e3},wB={queryKey:["ec2","images"],queryFn:()=>{const e=new iz({});return ls().send(e)}},RB=e=>({queryKey:["ec2","images",e??"none"],queryFn:()=>{if(!e)return{Images:[],$metadata:{}};const t=new iz({ImageIds:[e]});return ls().send(t)}}),CB={queryKey:["ec2","keypairs"],queryFn:()=>{const e=new cz({});return ls().send(e)}},zTe=e=>({queryKey:["ec2","keypairs",e],queryFn:()=>{const t=new cz({KeyPairIds:[e]});return ls().send(t)}}),AB={queryKey:["ec2","regions"],queryFn:()=>{const e=new DSe({});return ls().send(e)},staleTime:3e5},B1={queryKey:["ec2","subnets"],queryFn:()=>{const e=new uz({});return ls().send(e)}},BTe=e=>({queryKey:["ec2","subnets",e],queryFn:()=>{const t=new uz({SubnetIds:[e]});return ls().send(t)}}),UTe={queryKey:["ec2","snapshots"],queryFn:()=>{const e=new lz({});return ls().send(e)},refetchInterval:5e3},jTe=e=>({queryKey:["ec2","snapshots",e],queryFn:()=>{const t=new lz({SnapshotIds:[e]});return ls().send(t)},refetchInterval:5e3}),IB={queryKey:["ec2","vpcs"],queryFn:()=>{const e=new dz({});return ls().send(e)}},VTe=e=>({queryKey:["ec2","vpcs",e],queryFn:()=>{const t=new dz({VpcIds:[e]});return ls().send(t)}}),TB={queryKey:["ec2","volumes"],queryFn:()=>{const e=new fz({});return ls().send(e)},refetchInterval:5e3},OB=e=>({queryKey:["ec2","volumes",e],queryFn:()=>{const t=new fz({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(AB)},head:()=>({meta:[{title:"Dashboard | Mulga"}]}),component:yt(HTe,"component")}),FTe={queryKey:["s3","buckets"],queryFn:()=>{const e=new ATe({});return bB().send(e)}},MB=(e,t)=>({queryKey:["s3","buckets",e,"objects",t??""],queryFn:()=>{const n=new ITe({Bucket:e,Prefix:t,Delimiter:"/"});return bB().send(n)}}),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,12,6,2,3,13])),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([14,1,10,11,12,6,2,3,15,16])),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([17,1,10,11,12,6,2,3,18,15,16])),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([19,1,10,11,12,6,2,3,20,21])),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([22,1,5,10,11,12,6,2,3,23,24,20,21])),s2e=at("/_auth/ec2/(volumes)/create-volume")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_B)},head:()=>({meta:[{title:"Create Volume | EC2 | Mulga"}]}),component:yt(n2e,"component")}),r2e=()=>pt(()=>import("./create-subnet.js"),__vite__mapDeps([25,1,5,10,11,12,6,2,3,23,24,20,21])),o2e=at("/_auth/ec2/(subnet)/create-subnet")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(IB),e.queryClient.ensureQueryData(_B)])},head:()=>({meta:[{title:"Create Subnet | EC2 | Mulga"}]}),component:yt(r2e,"component")}),i2e=()=>pt(()=>import("./create-snapshot.js"),__vite__mapDeps([26,1,5,10,11,12,6,2,23,24,18,20,21])),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(TB)},head:()=>({meta:[{title:"Create Snapshot | EC2 | Mulga"}]}),component:yt(i2e,"component")}),c2e=()=>pt(()=>import("./import-key-pair.js"),__vite__mapDeps([27,1,10,11,12,6,2,3,18,20,21])),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([28,1,10,11,12,6,2,3,20,21,29,18,30,24,31])),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([32,1,5,10,11,6,2,3,23,24,20,21])),p2e=at("/_auth/ec2/(instances)/run-instances")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(wB),e.queryClient.ensureQueryData(CB),e.queryClient.ensureQueryData(xB),e.queryClient.ensureQueryData(B1)])},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([33,5,10,11,6,13,34,35,29,31,36])),y2e=at("/_auth/s3/ls/$bucket/")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(MB(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 sl().send(e)},staleTime:3e5},b2e=e=>({queryKey:["iam","users",e],queryFn:()=>{const t=new Rwe({UserName:e});return sl().send(t)},staleTime:3e5}),S2e=e=>({queryKey:["iam","access-keys",e],queryFn:()=>{const t=new Cwe({UserName:e});return sl().send(t)},staleTime:3e5}),DB={queryKey:["iam","policies"],queryFn:()=>{const e=new Iwe({Scope:"Local"});return sl().send(e)},staleTime:3e5},_2e=e=>({queryKey:["iam","policies",e],queryFn:()=>{const t=new xwe({PolicyArn:e});return sl().send(t)},staleTime:3e5}),E2e=(e,t)=>({queryKey:["iam","policy-versions",e,t],queryFn:()=>{const n=new wwe({PolicyArn:e,VersionId:t});return sl().send(n)},staleTime:3e5}),x2e=e=>({queryKey:["iam","attached-user-policies",e],queryFn:()=>{const t=new Awe({UserName:e});return sl().send(t)},staleTime:3e5}),w2e=()=>pt(()=>import("./index6.js"),__vite__mapDeps([37,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([38,5,8,6])),A2e=at("/_auth/iam/(policies)/list-policies/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(DB)},head:()=>({meta:[{title:"Policies | IAM | Mulga"}]}),component:yt(C2e,"component")}),I2e=()=>pt(()=>import("./index8.js"),__vite__mapDeps([39,5,8,6,40])),T2e=at("/_auth/ec2/(vpc)/describe-vpcs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(IB)},head:()=>({meta:[{title:"VPCs | EC2 | Mulga"}]}),component:yt(I2e,"component")}),O2e=()=>pt(()=>import("./index9.js"),__vite__mapDeps([41,5,8,6,40])),M2e=at("/_auth/ec2/(volumes)/describe-volumes/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(TB)},head:()=>({meta:[{title:"Volumes | EC2 | Mulga"}]}),component:yt(O2e,"component")}),D2e=()=>pt(()=>import("./index10.js"),__vite__mapDeps([42,5,8,6,40])),P2e=at("/_auth/ec2/(subnet)/describe-subnets/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(B1)},head:()=>({meta:[{title:"Subnets | EC2 | Mulga"}]}),component:yt(D2e,"component")}),k2e=()=>pt(()=>import("./index11.js"),__vite__mapDeps([43,5,8,6,40])),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([44,5,8,6])),$2e=at("/_auth/ec2/(key)/describe-key-pairs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(CB)},head:()=>({meta:[{title:"Key Pairs | EC2 | Mulga"}]}),component:yt(L2e,"component")}),z2e=()=>pt(()=>import("./index13.js"),__vite__mapDeps([45,5,8,6,40])),B2e=at("/_auth/ec2/(instances)/describe-instances/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(EB)},head:()=>({meta:[{title:"Instances | EC2 | Mulga"}]}),component:yt(z2e,"component")}),U2e=()=>pt(()=>import("./index14.js"),__vite__mapDeps([46,5,8,6,40])),j2e=at("/_auth/ec2/(images)/describe-images/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(wB)},head:()=>({meta:[{title:"Images | EC2 | Mulga"}]}),component:yt(U2e,"component")}),V2e=()=>pt(()=>import("./_.js"),__vite__mapDeps([47,5,10,11,13,34,35,29,31,36])),H2e=at("/_auth/s3/ls/$bucket/$")({loader:async({context:e,params:t})=>{const n=WV(t._splat||"");await e.queryClient.ensureQueryData(MB(t.bucket,n))},head:({params:e})=>({meta:[{title:`${JV(e._splat||"",`${e.bucket}/`)} | S3 | Mulga`}]}),component:yt(V2e,"component")}),q2e=()=>pt(()=>import("./_userName.js"),__vite__mapDeps([48,5,10,35,29,49,11,6,40,15,30,24,36])),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(DB)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:yt(q2e,"component")}),G2e=()=>pt(()=>import("./_policyArn.js"),__vite__mapDeps([50,5,10,35,29,49,11,6,15,36])),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([51,5,10,35,29,49,11,6,40,20,36])),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(B1)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:yt(Z2e,"component")}),Y2e=()=>pt(()=>import("./_id2.js"),__vite__mapDeps([52,1,5,10,11,12,6,2,3,20,21])),X2e=at("/_auth/ec2/(volumes)/modify-volume/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(OB(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:yt(Y2e,"component")}),W2e=()=>pt(()=>import("./_id3.js"),__vite__mapDeps([53,5,10,35,29,49,11,6,40,2,3,23,24,20,36])),J2e=at("/_auth/ec2/(volumes)/describe-volumes/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(OB(t.id)),e.queryClient.ensureQueryData(EB)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:yt(W2e,"component")}),eOe=()=>pt(()=>import("./_id4.js"),__vite__mapDeps([54,5,10,35,29,49,11,6,40,20,36])),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([55,5,10,35,29,49,11,6,40,2,3,20,36])),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(AB)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:yt(nOe,"component")}),rOe=()=>pt(()=>import("./_id6.js"),__vite__mapDeps([56,5,10,35,29,49,11,6,20,36])),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([57,5,10,49,11,6,40,29,2,23,24,20,58,3,18,36])),aOe=at("/_auth/ec2/(instances)/describe-instances/$id")({loader:async({context:e,params:t})=>{const[n]=await Promise.all([e.queryClient.ensureQueryData($Te(t.id)),e.queryClient.ensureQueryData(xB)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(RB(r)),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([59,5,10,6,40,58,49])),lOe=at("/_auth/ec2/(images)/describe-images/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(RB(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:()=>z1}),Ot=LTe.update({id:"/_auth",getParentRoute:()=>z1}),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}),U1=m2e.update({id:"/s3/ls/$bucket",path:"/s3/ls/$bucket",getParentRoute:()=>Ot}),xOe=y2e.update({id:"/",path:"/",getParentRoute:()=>U1}),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:()=>U1}),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=U1._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=z1._addFileChildren(ZOe)._addFileTypes(),PB=new S5({defaultOptions:{queries:{staleTime:5e3}}}),YOe=xj({routeTree:QOe,context:{queryClient:PB},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Hb=document.getElementById("app");Hb&&!Hb.innerHTML&&zj.createRoot(Hb).render(k.jsx(M.StrictMode,{children:k.jsx(Vj,{defaultTheme:"system",storageKey:"hive-ui-theme",children:k.jsx(E5,{client:PB,children:k.jsx(gG,{children:k.jsx(Cj,{router:YOe})})})})}));export{EJ as $,v2e as A,lu as B,DB as C,az as D,UTe as E,EB as F,H2e as G,WV as H,dMe as I,JV as J,Ss as K,Rs as L,Bc as M,IMe as N,HD as O,xn as P,Aw as Q,a2e as R,kn as S,mDe as T,lMe as U,bB as V,k2 as W,fi as X,cDe as Y,wz as Z,IS as _,bn as a,n_ as a$,Km as a0,Uc as a1,eN as a2,tN as a3,Yee as a4,tte as a5,Xee as a6,lDe as a7,Rd as a8,Qn 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,iDe as aI,sl as aJ,Q2e as aK,VTe as aL,X2e as aM,OB as aN,RMe as aO,I2 as aP,CMe as aQ,iu as aR,xMe as aS,wMe as aT,Uk as aU,J2e as aV,eH as aW,g9 as aX,QD as aY,pi as aZ,ir as a_,uo as aa,aDe as ab,Pg as ac,bw as ad,uDe as ae,fDe as af,dDe as ag,pDe as ah,hDe as ai,gDe as aj,yDe as ak,vDe as al,WOe as am,XOe as an,Y3 as ao,Mee as ap,Hm as aq,SD as ar,F2e as as,b2e as at,S2e as au,x2e as av,K2e as aw,_2e as ax,E2e as ay,Jc as az,aX as b,bd as b$,$r as b0,Ke as b1,Ct as b2,Lt as b3,Ma as b4,JD as b5,si as b6,sn as b7,zr as b8,ln 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,XMe as bR,mMe as bS,lH as bT,gMe as bU,pMe as bV,hMe as bW,$h as bX,km as bY,$P as bZ,uu as b_,u_ as ba,tg as bb,c5 as bc,e5 as bd,JOe as be,Fb as bf,eo as bg,ng as bh,WU as bi,JU as bj,qb as bk,mD as bl,h5 as bm,s5 as bn,As as bo,eMe as bp,hd as bq,y5 as br,Co as bs,TMe as bt,TX as bu,xS as bv,OMe as bw,MMe as bx,DMe as by,PMe as bz,qt as c,jTe as c$,pH as c0,r_ as c1,aS as c2,ho as c3,hg as c4,kd as c5,LT as c6,Yv as c7,At as c8,vMe as c9,aMe as cA,gF as cB,QF as cC,cF as cD,aF as cE,Pd as cF,Ok as cG,Dn as cH,bP as cI,y7 as cJ,SMe as cK,c_ as cL,rF as cM,yMe as cN,Hc as cO,_F as cP,bF as cQ,jP as cR,iF as cS,wF as cT,t7 as cU,e7 as cV,lF as cW,JH as cX,tOe as cY,BTe as cZ,sOe as c_,zn as ca,js as cb,BP as cc,fH as cd,dH as ce,dt as cf,iMe as cg,HH as ch,vF as ci,Pq as cj,ck,zP as cl,l_ as cm,zq as cn,sk as co,mk as cp,cg as cq,xk as cr,wm as cs,EMe as ct,qP as cu,nP as cv,_Me as cw,bMe as cx,XH as cy,d7 as cz,OTe as d,oOe as d0,zTe as d1,aOe as d2,$Te as d3,RB as d4,lOe as d5,za as d6,xo as d7,cX as e,AB as f,ls as g,FTe as h,cMe as i,k as j,C2 as k,_B as l,IB as m,uMe as n,$Y as o,TB as p,wB as q,M as r,AMe as s,CB as t,ag as u,xB as v,B1 as w,y2e as x,fMe as y,MB as z}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/compiler-runtime.js","assets/awsClient.js","assets/toUtf8.browser.js","assets/DescribeInstancesCommand.js","assets/button.js","assets/utils.js","assets/separator.js","assets/createBaseUIEventDetails.js","assets/zod.js","assets/useNavigate.js","assets/useRouter.js","assets/field.js","assets/route.js","assets/useRouterState.js","assets/_auth.js","assets/ec22.js","assets/queryOptions.js","assets/useSuspenseQuery.js","assets/QueryClientProvider.js","assets/page-heading.js","assets/ls.js","assets/s32.js","assets/link.js","assets/list-card.js","assets/create-bucket.js","assets/s3.js","assets/error-banner.js","assets/back-link.js","assets/createLucideIcon.js","assets/form-actions.js","assets/create-user.js","assets/iam.js","assets/iam3.js","assets/create-policy.js","assets/textarea.js","assets/create-vpc.js","assets/ec2.js","assets/ec23.js","assets/create-volume.js","assets/select.js","assets/useOpenInteractionType.js","assets/check.js","assets/create-subnet.js","assets/create-snapshot.js","assets/import-key-pair.js","assets/create-key-pair.js","assets/alert-dialog.js","assets/download.js","assets/use-copy-to-clipboard.js","assets/run-instances.js","assets/route2.js","assets/_bucket.js","assets/upload-button.js","assets/trash-2.js","assets/delete-confirmation-dialog.js","assets/list-users.js","assets/iam2.js","assets/list-policies.js","assets/describe-vpcs.js","assets/state-badge.js","assets/describe-volumes.js","assets/describe-subnets.js","assets/describe-snapshots.js","assets/describe-key-pairs.js","assets/describe-instances.js","assets/describe-images.js","assets/_.js","assets/_userName.js","assets/detail-row.js","assets/_policyArn.js","assets/_id8.js","assets/_id7.js","assets/_id6.js","assets/_id5.js","assets/_id4.js","assets/_id3.js","assets/_id2.js","assets/ami-details.js","assets/_id.js"])))=>i.map(i=>d[i]); +import{a as e,i as t,n,r,t as i}from"./compiler-runtime.js";import{A as a,C as o,E as s,M as c,S as l,T as u,_ as d,a as f,b as p,c as m,d as h,f as g,g as _,h as v,i as y,k as b,m as x,n as S,o as C,p as w,r as T,s as E,t as D,u as O,w as k,x as A}from"./QueryClientProvider.js";import{A as ee,C as te,D as j,E as M,M as N,N as ne,O as re,P as ie,S as ae,T as P,_ as F,a as oe,b as se,f as ce,g as le,h as ue,i as de,k as fe,l as pe,o as me,p as he,s as ge,t as _e,u as ve,v as ye,w as be,x as xe,y as Se}from"./useRouterState.js";import{a as Ce,i as we,n as Te,o as I,r as Ee}from"./matchContext.js";import{t as De}from"./link.js";import{i as Oe,n as L,r as ke,t as R}from"./lazyRouteComponent.js";import{h as Ae,m as je,n as Me,r as Ne,t as Pe,u as Fe}from"./utils.js";import{n as Ie,r as Le,t as Re}from"./useRouter.js";import{t as ze}from"./useNavigate.js";import{B as Be,D as Ve,E as He,P as Ue,R as We,_ as Ge,h as Ke,i as qe,j as Je,k as Ye,o as Xe,r as Ze,t as Qe,v as $e,z as et}from"./button.js";import{t as tt}from"./createLucideIcon.js";import{i as nt,n as rt,o as it,r as at,s as ot,t as st}from"./separator.js";import{B as ct,H as lt,L as ut,N as dt,R as ft,S as pt,T as mt,V as ht,_ as gt,f as _t,g as vt,i as yt,p as bt,r as xt,s as St,t as Ct,u as wt,v as Tt,w as Et,y as Dt}from"./createBaseUIEventDetails.js";import{$ as Ot,A as kt,B as At,C as jt,E as Mt,F as Nt,I as Pt,J as Ft,K as It,M as Lt,N as Rt,P as zt,R as Bt,S as Vt,T as Ht,U as Ut,V as Wt,W as Gt,X as Kt,Y as qt,Z as Jt,_ as Yt,a as Xt,at as Zt,b as Qt,c as $t,f as en,g as tn,h as nn,i as rn,it as an,j as on,l as sn,m as z,n as cn,o as ln,ot as un,p as dn,q as fn,r as pn,rt as mn,s as hn,t as gn,v as _n,w as vn,x as yn,y as bn,z as xn}from"./useOpenInteractionType.js";import{Ft as B,Gt as Sn,Kt as Cn,t as wn}from"./awsClient.js";import{_ as Tn,a as En,c as Dn,d as On,f as kn,g as An,h as jn,i as Mn,l as Nn,m as Pn,n as Fn,o as In,p as Ln,r as Rn,s as zn,t as Bn,u as Vn}from"./ec22.js";import{a as Hn,i as Un,n as Wn,o as Gn,r as Kn,s as qn,t as Jn}from"./iam2.js";import{n as Yn,t as Xn}from"./s32.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Zn=class extends T{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=er(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=er(this.options);e.data!==void 0&&(this.setState($n(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=k(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(l).catch(l):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>u(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===b||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>s(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:!a(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=x(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=C({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof y&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof y){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Qn(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...$n(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),m.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function Qn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:f(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function $n(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function er(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}function tr(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{h(e,()=>t.signal,()=>n=!0)},u=x(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?w:g;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?rr:nr,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:nr(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function nr(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function rr(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ir=class extends T{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||ar(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=C({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),m.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function ar(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var or=class extends c{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new ir({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=sr(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=sr(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=sr(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=sr(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){m.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>p(t,e))}findAll(e={}){return this.getAll().filter(t=>p(e,t))}notify(e){m.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return m.batch(()=>Promise.all(e.map(e=>e.continue().catch(l))))}};function sr(e){return e.options.scope?.id}var cr=class extends c{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??d(r,t),a=this.get(i);return a||(a=new Zn({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){m.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>A(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>A(e,t)):t}notify(e){m.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){m.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){m.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},lr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new cr,this.#t=e.mutationCache||new or,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=O.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=E.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(s(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=v(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return m.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;m.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return m.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=m.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(l).catch(l)}invalidateQueries(e,t={}){return m.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=m.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(l)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(l)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(s(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(l).catch(l)}fetchInfiniteQuery(e){return e.behavior=tr(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(l).catch(l)}ensureInfiniteQueryData(e){return e.behavior=tr(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return E.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{o(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{o(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=d(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===b&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ur=(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))(ur||{});function dr({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}var fr=0,pr=0,mr=0,hr=[],{link:gr,unlink:_r,propagate:vr,checkDirty:yr,shallowPropagate:br}=dr({update(e){return e.depsTail===void 0?Tr(e):wr(e)},notify(e){let t=mr,n=t;do if(hr[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(mr=t;n<--t;){let e=hr[n];hr[n++]=hr[t],hr[t]=e}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,kr(e)):Or.call(e)}});function xr(){return fr}function Sr(){++fr}function Cr(){--fr||Dr()}function wr(e){e.depsTail=void 0,e.flags=5;try{let t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,kr(e)}}function Tr(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function Er(e){let t=e.flags;if(t&16||t&32&&yr(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,kr(e)}}else e.flags=2}function Dr(){try{for(;pr0)){for(;Rr{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Br,o=t?.compare??Object.is;if(n)Br=i,++Mr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=ur.Mutable|ur.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Br=a,n&&(i.flags&=~ur.RecursedCheck),Vr(i)}}};return n?(i.flags=ur.Mutable|ur.Dirty,i.get=function(){let e=i.flags;if(e&ur.Dirty||e&ur.Pending&&Ir(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Lr(e)}}else e&ur.Pending&&(i.flags=e&~ur.Pending);return Br!==void 0&&Nr(i,Br,Mr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Fr(e),Lr(e),Hr())}},i}function Wr(e){let t=()=>{let t=Br;Br=n,++Mr,n.depsTail=void 0,n.flags=ur.Watching|ur.RecursedCheck;try{return e()}finally{Br=t,n.flags&=~ur.RecursedCheck,Vr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:ur.Watching|ur.RecursedCheck,notify(){let e=this.flags;e&ur.Dirty||e&ur.Pending&&Ir(this.deps,this)?t():this.flags=ur.Watching},stop(){this.flags=ur.None,this.depsTail=void 0,Vr(this)}};return t(),n}var Gr=class{constructor(e){this.atom=Ur(e)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Ar(e))}},Kr=class{constructor(e){this.atom=Ur(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Ar(e))}};function qr(e){return typeof e==`function`?new Kr(e):new Gr(e)}function Jr(e){try{Sr(),e()}finally{Cr(),Hr()}}var Yr=`__TSR_index`,Xr=`popstate`,Zr=`beforeunload`;function Qr(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ni(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Yr];i=$r(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Yr];i=$r(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Yr]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function $r(e,t){t||={};let n=ri();return{...t,key:n,__TSR_key:n,[Yr]:e}}function ei(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>ni(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ri();t.history.replaceState({[Yr]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=ni(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Yr]-l.state[Yr],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Qr({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Zr,S,{capture:!0}),t.removeEventListener(Xr,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Zr,S,{capture:!0}),t.addEventListener(Xr,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function ti(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function ni(e,t){let n=ti(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=ri();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||{[Yr]:0,key:a,__TSR_key:a}}}function ri(){return(Math.random()+1).toString(36).substring(7)}function ii(e){let t;return Jr(()=>{t=e()}),t}function ai(){try{if(typeof window<`u`&&typeof window.sessionStorage==`object`)return window.sessionStorage}catch{}}var oi=`tsr-scroll-restoration-v1_3`,si=(e,t)=>{let n;return(...r)=>{n||=setTimeout(()=>{e(...r),n=null},t)}};function ci(){let e=ai();if(!e)return null;let t=e.getItem(oi),n=t?JSON.parse(t):{};return{state:n,set:t=>{n=fe(t,n)||n;try{e.setItem(oi,JSON.stringify(n))}catch{console.warn(`[ts-router] Could not persist scroll restoration state to sessionStorage.`)}}}}var li=ci(),ui=e=>e.state.__TSR_key||e.href;function di(e){let t=[],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()}var fi=!1;function pi({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:a}){let o;try{o=JSON.parse(sessionStorage.getItem(e)||`{}`)}catch(e){console.error(e);return}let s=t||window.history.state?.__TSR_key,c=o[s];fi=!0;scroll:{if(r&&c&&Object.keys(c).length>0){for(let e in c){let t=c[e];if(e===`window`)window.scrollTo({top:t.scrollY,left:t.scrollX,behavior:n});else if(e){let n=document.querySelector(e);n&&(n.scrollLeft=t.scrollX,n.scrollTop=t.scrollY)}}break scroll}let e=(a??window.location).hash.split(`#`,2)[1];if(e){let t=window.history.state?.__hashScrollIntoViewOptions??!0;if(t){let n=document.getElementById(e);n&&n.scrollIntoView(t)}break scroll}let t={top:0,left:0,behavior:n};if(window.scrollTo(t),i)for(let e of i){if(e===`window`)continue;let n=typeof e==`function`?e():document.querySelector(e);n&&n.scrollTo(t)}}fi=!1}function mi(e,t){if(!li||((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!li))return;e.isScrollRestorationSetup=!0,fi=!1;let n=e.options.getScrollRestorationKey||ui;window.history.scrollRestoration=`manual`,typeof document<`u`&&document.addEventListener(`scroll`,si(t=>{if(fi||!e.isScrollRestoring)return;let r=``;if(t.target===document||t.target===window)r=`window`;else{let e=t.target.getAttribute(`data-scroll-restoration-id`);r=e?`[data-scroll-restoration-id="${e}"]`:di(t.target)}let i=n(e.state.location);li.set(e=>{let t=e[i]||={},n=t[r]||={};if(r===`window`)n.scrollX=window.scrollX||0,n.scrollY=window.scrollY||0;else if(r){let e=document.querySelector(r);e&&(n.scrollX=e.scrollLeft||0,n.scrollY=e.scrollTop||0)}return e})},100),!0),e.subscribe(`onRendered`,t=>{let r=n(t.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation})||(pi({storageKey:oi,key:r,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&li.set(e=>(e[r]||={},e)))})}function hi(e){if(typeof document<`u`&&document.querySelector){let t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==``){let n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function gi(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function _i(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function vi(e){let t=new URLSearchParams(e),n={};for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=_i(r):Array.isArray(t)?t.push(_i(r)):n[e]=[t,_i(r)]}return n}var yi=xi(JSON.parse),bi=Si(JSON.stringify,JSON.parse);function xi(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=vi(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Si(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=gi(e,r);return t?`?${t}`:``}}var Ci=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},wi=(e,t)=>!!(e.preload&&!e.router.state.matches.some(e=>e.id===t)),Ti=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Ei=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Di=(e,t,n)=>{if(!(!Ee(n)&&!I(n)))throw Ee(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Ee(n)?`redirected`:r.status===`pending`?`success`:r.status,context:Ti(e,t.index),isFetching:!1,error:n})),I(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Ee(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Oi=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,ki=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,Di(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,Di(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Ee(n)&&!I(n)&&(e.serialError??=n)},Ai=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!wi(e,t)&&(n.options.loader||n.options.beforeLoad||zi(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Ci(e)},i);r._nonReactive.pendingTimeout=t}},ji=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ai(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Di(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},V=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=be(()=>{a?.resolve()});let{paramsError:o,searchError:s}=i;o&&ki(e,n,o,`PARSE_PARAMS`),s&&ki(e,n,s,`VALIDATE_SEARCH`),Ai(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){ii(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=be();let f={...Ti(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=wi(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){ii(()=>{u(),d()});return}(Ee(r)||I(r))&&(u(),ki(e,n,r,`BEFORE_LOAD`)),ii(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),N(y))return u(),y.catch(t=>{ki(e,n,t,`BEFORE_LOAD`)}).then(v)}catch(t){u(),ki(e,n,t,`BEFORE_LOAD`)}v(y)},Mi=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>V(e,n,t,i),s=()=>{if(Oi(e,n))return;let t=ji(e,n,i);return N(t)?t.then(o):o()};return a()},Ni=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Pi=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Ti(e,r),d=wi(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Fi=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Ri(i);let o=i.options.loader?.(Pi(e,t,n,r,i)),s=i.options.loader&&N(o);if((s||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),i.options.loader){let t=s?await o:o;Di(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let c=a._nonReactive.minPendingPromise;c&&await c,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Ti(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Ti(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,I(t)&&await i.options.notFoundComponent?.preload?.(),Di(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Di(e,e.router.getMatch(n),t)}e.updateMatch(n,t=>({...t,error:o,context:Ti(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Di(e,r,t)}},Ii=async(e,t,n)=>{async function r(r,a,c,l){let u=Date.now()-a.updatedAt,d=r?l.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:l.options.staleTime??e.router.options.defaultStaleTime??0,f=l.options.shouldReload,p=typeof f==`function`?f(Pi(e,t,i,n,l)):f,{status:m,invalid:h}=c;o=m===`success`&&(h||(p??u>d)),r&&l.options.preload===!1||(o&&!e.sync?(s=!0,(async()=>{try{await Fi(e,t,i,n,l);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0}catch(t){Ee(t)&&await e.router.navigate(t.options)}})()):(m!==`success`||o&&e.sync)&&await Fi(e,t,i,n,l))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a];if(!Oi(e,i)){let t=e.router.getMatch(i),n=wi(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload)return t;await t._nonReactive.loaderPromise;let a=e.router.getMatch(i),o=a._nonReactive.error||a.error;o&&Di(e,a,o),a.status===`pending`&&await r(n,t,a,c)}else{let a=n&&!e.router.state.matches.some(e=>e.id===i),o=e.router.getMatch(i);o._nonReactive.loaderPromise=be(),a!==o.preload&&e.updateMatch(i,e=>({...e,preload:a})),await r(n,t,o,c)}}let l=e.router.getMatch(i);s||(l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loadPromise?.resolve()),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0,s||(l._nonReactive.loaderPromise=void 0),l._nonReactive.dehydrated=void 0;let u=s?l.isFetching:!1;return u!==l.isFetching||l.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:u,invalid:!1})),e.router.getMatch(i)):l};async function Li(e){let t=e,n=[];t.router.state.matches.some(e=>e._forcePending)&&Ci(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Ri(r)}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ri(e)}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Ni(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Ci(t);if(N(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}async function Ri(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){let t=()=>{let t=[];for(let n of Bi){let r=e.options[n]?.preload;r&&t.push(r())}if(t.length)return Promise.all(t).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 zi(e){for(let t of Bi)if(e.options[t]?.preload)return!0;return!1}var Bi=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Vi(e){return{input:({url:t})=>{for(let n of e)t=Ui(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Wi(e[n],t);return t}}}function Hi(e){let t=he(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=ve([`/`,t,e.pathname]),e)}}function Ui(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Wi(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Gi(e){let t=e.resolvedLocation,n=e.location;return{fromLocation:t,toLocation:n,pathChanged:t?.pathname!==n.pathname,hrefChanged:t?.href!==n.href,hashChanged:t?.hash!==n.hash}}function Ki(e){let t=e.filter(e=>e.status!==`redirected`);return t.length===e.length?e:t}var qi=class{constructor(e){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=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=ge(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=ei()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=xe(1e3),e=this.buildRouteTree(),this.setRoutes(e)}!this.__store&&this.latestLocation&&(this.__store=qr(Xi(this.latestLocation)),mi(this));let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=he(o);t&&t!==`/`&&e.push(Hi({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Vi(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.__store&&this.__store.setState(e=>({...e,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=()=>{let e=se(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&Se(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let o=this.options.parseSearch(n),s=this.options.stringifySearch(o);return{href:e+s+r,publicHref:i,pathname:P(e).path,external:!1,searchStr:s,search:ie(t?.search,o),hash:P(r.slice(1)).path,state:ie(t?.state,a)}}let o=new URL(i,this.origin),s=Ui(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:P(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:ie(t?.search,c),hash:P(s.hash.slice(1)).path,state:ie(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ce({base:e,to:me(t),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Qi({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{let e=this.state.matches.filter(e=>e.status===`pending`),t=this.state.matches.filter(e=>e.isFetching===`loader`);new Set([...this.state.pendingMatches??[],...e,...t]).forEach(e=>{this.cancelMatch(e.id)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=this.resolvePathWithBase(i,`.`),o=r.search,s={...r.params},c=t.to?this.resolvePathWithBase(a,`${t.to}`):this.resolvePathWithBase(a,`.`),l=t.params===!1||t.params===null?{}:(t.params??!0)===!0?s:Object.assign(s,fe(t.params,s)),u=this.getMatchedRoutes(c),d=u.matchedRoutes;if((!u.foundRoute||u.foundRoute.path!==`/`&&u.routeParams[`**`])&&this.options.notFoundRoute&&(d=[...d,this.options.notFoundRoute]),Object.keys(l).length>0)for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(l,t(l))}catch{}}let f=e.leaveParams?c:P(pe({path:c,params:l,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,p=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Zi(t.options.validateSearch,{...e,...p}))}catch{}}),p=e}p=$i({search:p,dest:t,destRoutes:d,_includeValidateSearch:e._includeValidateSearch}),p=ie(o,p);let m=this.options.stringifySearch(p),h=t.hash===!0?n.hash:t.hash?fe(t.hash,n.hash):void 0,g=h?`#${h}`:``,_=t.state===!0?n.state:t.state?fe(t.state,n.state):{};_=ie(n.state,_);let v=`${f}${m}${g}`,y,b,x=!1;if(this.rewrite){let e=new URL(v,this.origin),t=Wi(this.rewrite,e);y=e.href.replace(e.origin,``),t.origin===this.origin?b=t.pathname+t.search+t.hash:(b=t.href,x=!0)}else y=j(v),b=y;return{publicHref:b,href:y,pathname:f,search:p,searchStr:m,state:_,hash:h??``,external:x,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n={};if(this.options.routeMasks){let o=le(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?{}:(s??!0)===!0?n:Object.assign(n,fe(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=M(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=ue(this.latestLocation.href)===ue(n.href),a=this.commitLocationPromise;if(this.commitLocationPromise=be(()=>{a?.resolve()}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...a}=n;r&&(a={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](a.publicHref,a.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=ni(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Ui(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ee(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation);this.__store.setState(t=>({...t,status:`pending`,statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:e,cachedMatches:t.cachedMatches.filter(t=>!e.some(e=>e.id===t.id))}))},this.load=async e=>{let t,n,r;for(r=new Promise(i=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=this.state.resolvedLocation;this.state.redirect||this.emit({type:`onBeforeNavigate`,...Gi({resolvedLocation:n,location:t})}),this.emit({type:`onBeforeLoad`,...Gi({resolvedLocation:n,location:t})}),await Li({router:this,sync:e?.sync,matches:this.state.pendingMatches,location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=[],t=[],n=[],r=[];ii(()=>{this.__store.setState(i=>{let a=i.matches,o=i.pendingMatches||i.matches;return e=a.filter(e=>!o.some(t=>t.id===e.id)),t=a.filter(e=>!o.some(t=>t.routeId===e.routeId)),n=o.filter(e=>!a.some(t=>t.routeId===e.routeId)),r=o.filter(e=>a.some(t=>t.routeId===e.routeId)),{...i,isLoading:!1,loadedAt:Date.now(),matches:o,pendingMatches:void 0,cachedMatches:[...i.cachedMatches,...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]}}),this.clearExpiredCache()}),[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]].forEach(([e,t])=>{e.forEach(e=>{this.looseRoutesById[e.routeId].options[t]?.(e)})})})})}})}catch(e){Ee(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):I(e)&&(n=e),this.__store.setState(e=>({...e,statusCode:t?t.status:n?404:e.matches.some(e=>e.status===`error`)?500:200,redirect:t}))}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let i;this.hasNotFoundMatch()?i=404:this.__store.state.matches.some(e=>e.status===`error`)&&(i=500),i!==void 0&&this.__store.setState(e=>({...e,statusCode:i}))},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.state.resolvedLocation,a=typeof t.types==`function`?t.types(Gi({resolvedLocation:i,location:r})):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.state.pendingMatches?.some(t=>t.id===e)?`pendingMatches`:this.state.matches.some(t=>t.id===e)?`matches`:this.state.cachedMatches.some(t=>t.id===e)?`cachedMatches`:``;n&&(n===`cachedMatches`?this.__store.setState(n=>({...n,cachedMatches:Ki(n.cachedMatches.map(n=>n.id===e?t(n):n))})):this.__store.setState(r=>({...r,[n]:r[n]?.map(n=>n.id===e?t(n):n)})))})},this.getMatch=e=>{let t=t=>t.id===e;return this.state.cachedMatches.find(t)??this.state.pendingMatches?.find(t)??this.state.matches.find(t)},this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.__store.setState(e=>({...e,matches:e.matches.map(t),cachedMatches:e.cachedMatches.map(t),pendingMatches:e.pendingMatches?.map(t)})),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ee(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.__store.setState(e=>({...e,cachedMatches:[]})):this.__store.setState(e=>({...e,cachedMatches:e.cachedMatches.filter(e=>!t(e))}))},this.clearExpiredCache=()=>{this.clearCache({filter:e=>{let t=this.looseRoutesById[e.routeId];if(!t.options.loader)return!0;let n=(e.preload?t.options.preloadGcTime??this.options.defaultPreloadGcTime:t.options.gcTime??this.options.defaultGcTime)??300*1e3;return e.status===`error`?!0:Date.now()-e.updatedAt>=n}})},this.loadRouteChunk=Ri,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(e=>e.id)),i=new Set([...r,...this.state.cachedMatches.map(e=>e.id)]);ii(()=>{n.forEach(e=>{i.has(e.id)||this.__store.setState(t=>({...t,cachedMatches:[...t.cachedMatches,e]}))})});try{return n=await Li({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Ee(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});I(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.state.status!==`pending`)return!1;let i=(t?.pending===void 0?!this.state.isLoading:t.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,a=ye(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!M(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?M(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(e=>e.status===`notFound`||e.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??bi,parseSearch:e.parseSearch??yi,protocolAllowlist:e.protocolAllowlist??te}),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:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i,parsedParams:a}=n,{matchedRoutes:o}=n,s=!1;(r?r.path!==`/`&&i[`**`]:ue(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let c=s?ta(this.options.notFoundMode,o):void 0,l=Array(o.length),u=new Map(this.state.matches.map(e=>[e.routeId,e]));for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),i=ne(t),a={...e.search};for(let e of t)try{Object.assign(a,Zi(e.options.validateSearch,a))}catch{}let o=ne(this.state.matches),s=o&&o.routeId===i.id&&e.pathname===this.state.location.pathname,c;if(s)c=o.params;else{let e={...n};for(let i of t)try{na(i,n,r??{},e)}catch{}c=e}return{matchedRoutes:t,fullPath:i.fullPath,search:a,params:c}}},Ji=class extends Error{},Yi=class extends Error{};function Xi(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Zi(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Ji(`Async validation not supported`);if(n.issues)throw new Ji(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 Qi({pathname:e,routesById:t,processedTree:n}){let r={},i=ue(e),a,o,s=F(i,n,!0);return s&&(a=s.route,Object.assign(r,s.rawParams),o=Object.assign({},s.parsedParams)),{matchedRoutes:s?.branch||[t.__root__],routeParams:r,foundRoute:a,parsedParams:o}}function $i({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return ea(n)(e,t,r??!1)}function ea(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...Zi(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:fe(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function ta(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Ce}function na(e,t,n,r){let i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(let e in t)e in n&&(r[e]=n[e]);else{let e=i(r);Object.assign(r,e)}}var H=n(),U=e(r(),1);function ra(e){let t=e.errorComponent??aa;return(0,H.jsx)(ia,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?U.createElement(t,{error:n,reset:r}):e.children})}var ia=class extends U.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey===this.props.getResetKey()?this.state.error:null,reset:()=>{this.reset()}})}};function aa({error:e}){let[t,n]=U.useState(!1);return(0,H.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,H.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,H.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,H.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,H.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,H.jsx)(`div`,{children:(0,H.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,H.jsx)(`code`,{children:e.message}):null})}):null]})}function oa(){let e=Re(),t=U.useRef({router:e,mounted:!1}),[n,r]=U.useState(!1),{hasPendingMatches:i,isLoading:a}=_e({select:e=>({isLoading:e.isLoading,hasPendingMatches:e.matches.some(e=>e.status===`pending`)}),structuralSharing:!0}),o=Ae(a),s=a||n||i,c=Ae(s),l=a||i,u=Ae(l);return e.startTransition=e=>{r(!0),U.startTransition(()=>{e(),r(!1)})},U.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ue(e.latestLocation.publicHref)!==ue(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),je(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),je(()=>{o&&!a&&e.emit({type:`onLoad`,...Gi(e.state)})},[o,e,a]),je(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Gi(e.state)})},[l,u,e]),je(()=>{if(c&&!s){let t=Gi(e.state);e.emit({type:`onResolved`,...t}),e.__store.setState(e=>({...e,status:`idle`,resolvedLocation:e.location})),t.hrefChanged&&hi(e)}},[s,c,e]),null}function sa(e){let t=_e({select:e=>`not-found-${e.location.pathname}-${e.status}`});return(0,H.jsx)(ra,{getResetKey:()=>t,onCatch:(t,n)=>{if(I(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(I(t))return e.fallback?.(t);throw t},children:e.children})}function ca(){return(0,H.jsx)(`p`,{children:`Not Found`})}function la(e){return(0,H.jsx)(H.Fragment,{children:e.children})}function ua(e,t,n){return t.options.notFoundComponent?(0,H.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,H.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,H.jsx)(ca,{})}function da({children:e}){return Re(),null}function fa(){let e=Re();if(!e.isScrollRestoring||!0)return null;let t=(e.options.getScrollRestorationKey||ui)(e.latestLocation),n=t===ui(e.latestLocation)?void 0:t,r={storageKey:oi,shouldScrollRestoration:!0};return n&&(r.key=n),(0,H.jsx)(da,{children:`(${pi.toString()})(${re(JSON.stringify(r))})`})}var pa=U.memo(function({matchId:e}){let t=Re(),n=_e({select:t=>{let n=t.matches.findIndex(t=>t.id===e),r=t.matches[n];return ae(r,`Could not find match for matchId "${e}". Please file an issue!`),{routeId:r.routeId,ssr:r.ssr,_displayPending:r._displayPending,resetKey:t.loadedAt,parentRouteId:t.matches[n-1]?.routeId}},structuralSharing:!0}),r=t.routesById[n.routeId],i=r.options.pendingComponent??t.options.defaultPendingComponent,a=i?(0,H.jsx)(i,{}):null,o=r.options.errorComponent??t.options.defaultErrorComponent,s=r.options.onCatch??t.options.defaultOnCatch,c=r.isRoot?r.options.notFoundComponent??t.options.notFoundRoute?.options.component:r.options.notFoundComponent,l=n.ssr===!1||n.ssr===`data-only`,u=(!r.isRoot||r.options.wrapInSuspense||l)&&(r.options.wrapInSuspense??i??(r.options.errorComponent?.preload||l))?U.Suspense:la,d=o?ra:la,f=c?sa:la;return(0,H.jsxs)(r.isRoot?r.options.shellComponent??la:la,{children:[(0,H.jsx)(Te.Provider,{value:e,children:(0,H.jsx)(u,{fallback:a,children:(0,H.jsx)(d,{getResetKey:()=>n.resetKey,errorComponent:o||aa,onCatch:(t,n)=>{if(I(t))throw t;Le(!1,`Error in route match: ${e}`),s?.(t,n)},children:(0,H.jsx)(f,{fallback:e=>{if(!c||e.routeId&&e.routeId!==n.routeId||!e.routeId&&!r.isRoot)throw e;return U.createElement(c,e)},children:l||n._displayPending?(0,H.jsx)(de,{fallback:a,children:(0,H.jsx)(ha,{matchId:e})}):(0,H.jsx)(ha,{matchId:e})})})})}),n.parentRouteId===`__root__`&&t.options.scrollRestoration?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ma,{}),(0,H.jsx)(fa,{})]}):null]})});function ma(){let e=Re(),t=U.useRef(void 0);return(0,H.jsx)(`script`,{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:`onRendered`,...Gi(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}var ha=U.memo(function({matchId:e}){let t=Re(),{match:n,key:r,routeId:i}=_e({select:n=>{let r=n.matches.find(t=>t.id===e),i=r.routeId,a=(t.routesById[i].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:i,loaderDeps:r.loaderDeps,params:r._strictParams,search:r._strictSearch});return{key:a?JSON.stringify(a):void 0,routeId:i,match:{id:r.id,status:r.status,error:r.error,invalid:r.invalid,_forcePending:r._forcePending,_displayPending:r._displayPending}}},structuralSharing:!0}),a=t.routesById[i],o=U.useMemo(()=>{let e=a.options.component??t.options.defaultComponent;return e?(0,H.jsx)(e,{},r):(0,H.jsx)(ga,{})},[r,a.options.component,t.options.defaultComponent]);if(n._displayPending)throw t.getMatch(n.id)?._nonReactive.displayPendingPromise;if(n._forcePending)throw t.getMatch(n.id)?._nonReactive.minPendingPromise;if(n.status===`pending`){let e=a.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let r=t.getMatch(n.id);if(r&&!r._nonReactive.minPendingPromise){let t=be();r._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),r._nonReactive.minPendingPromise=void 0},e)}}throw t.getMatch(n.id)?._nonReactive.loadPromise}if(n.status===`notFound`)return ae(I(n.error),`Expected a notFound error`),ua(t,a,n.error);if(n.status===`redirected`)throw ae(Ee(n.error),`Expected a redirect error`),t.getMatch(n.id)?._nonReactive.loadPromise;if(n.status===`error`)throw n.error;return o}),ga=U.memo(function(){let e=Re(),t=U.useContext(Te),n=_e({select:e=>e.matches.find(e=>e.id===t)?.routeId}),r=e.routesById[n],i=_e({select:e=>{let n=e.matches.find(e=>e.id===t);return ae(n,`Could not find parent match for matchId "${t}"`),n.globalNotFound}}),a=_e({select:e=>{let n=e.matches;return n[n.findIndex(e=>e.id===t)+1]?.id}}),o=e.options.defaultPendingComponent?(0,H.jsx)(e.options.defaultPendingComponent,{}):null;if(i)return ua(e,r,void 0);if(!a)return null;let s=(0,H.jsx)(pa,{matchId:a});return n===`__root__`?(0,H.jsx)(U.Suspense,{fallback:o,children:s}):s});function _a(){let e=Re(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,H.jsx)(t,{}):null,r=(0,H.jsxs)(typeof document<`u`&&e.ssr?la:U.Suspense,{fallback:n,children:[(0,H.jsx)(oa,{}),(0,H.jsx)(va,{})]});return e.options.InnerWrap?(0,H.jsx)(e.options.InnerWrap,{children:r}):r}function va(){let e=Re(),t=_e({select:e=>e.matches[0]?.id}),n=_e({select:e=>e.loadedAt}),r=t?(0,H.jsx)(pa,{matchId:t}):null;return(0,H.jsx)(Te.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,H.jsx)(ra,{getResetKey:()=>n,errorComponent:aa,onCatch:void 0,children:r})})}var ya=e=>new ba(e),ba=class extends qi{constructor(e){super(e)}};typeof globalThis<`u`?(globalThis.createFileRoute=L,globalThis.createLazyFileRoute=ke):typeof window<`u`&&(window.createFileRoute=L,window.createLazyFileRoute=ke);function xa({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,H.jsx)(Ie.Provider,{value:e,children:t});return e.options.Wrap?(0,H.jsx)(e.options.Wrap,{children:r}):r}function Sa({router:e,...t}){return(0,H.jsx)(xa,{router:e,...t,children:(0,H.jsx)(_a,{})})}function Ca(e){return _e({select:t=>e?.select?e.select(t.location):t.location})}function wa({tag:e,attrs:t,children:n,nonce:r}){switch(e){case`title`:return(0,H.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,H.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,H.jsx)(`link`,{...t,nonce:r,suppressHydrationWarning:!0});case`style`:return(0,H.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,H.jsx)(Ta,{attrs:t,children:n});default:return null}}function Ta({attrs:e,children:t}){Re();let n=oe(),r=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(U.useEffect(()=>{if(!r){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();if(Array.from(document.querySelectorAll(`script[src]`)).find(e=>e.src===t))return;let n=document.createElement(`script`);for(let[t,r]of Object.entries(e))t!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&n.setAttribute(t,typeof r==`boolean`?``:String(r));return document.head.appendChild(n),()=>{n.parentNode&&n.parentNode.removeChild(n)}}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;if(Array.from(document.querySelectorAll(`script:not([src])`)).find(e=>{if(!(e instanceof HTMLScriptElement))return!1;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;return e.textContent===t&&i===n&&a===r}))return;let i=document.createElement(`script`);if(i.textContent=t,e)for(let[t,n]of Object.entries(e))t!==`suppressHydrationWarning`&&n!==void 0&&n!==!1&&i.setAttribute(t,typeof n==`boolean`?``:String(n));return document.head.appendChild(i),()=>{i.parentNode&&i.parentNode.removeChild(i)}}}},[e,t,r]),r&&typeof t==`string`)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,H.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Ea=()=>{let e=Re(),t=e.options.ssr?.nonce,n=_e({select:e=>e.matches.map(e=>e.meta).filter(Boolean)}),r=U.useMemo(()=>{let e=[],r={},i;for(let a=n.length-1;a>=0;a--){let o=n[a];for(let n=o.length-1;n>=0;n--){let a=o[n];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:re(t)})}catch{}else{let n=a.name??a.property;if(n){if(r[n])continue;r[n]=!0}e.push({tag:`meta`,attrs:{...a,nonce:t}})}}}return i&&e.push(i),t&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),e.reverse(),e},[n,t]),i=_e({select:n=>{let r=n.matches.map(e=>e.links).filter(Boolean).flat(1).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),i=e.ssr?.manifest,a=n.matches.map(e=>i?.routes[e.routeId]?.assets??[]).filter(Boolean).flat(1).filter(e=>e.tag===`link`).map(e=>({tag:`link`,attrs:{...e.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...r,...a]},structuralSharing:!0}),a=_e({select:n=>{let r=[];return n.matches.map(t=>e.looseRoutesById[t.routeId]).forEach(n=>e.ssr?.manifest?.routes[n.id]?.preloads?.filter(Boolean).forEach(e=>{r.push({tag:`link`,attrs:{rel:`modulepreload`,href:e,nonce:t}})})),r},structuralSharing:!0}),o=_e({select:e=>e.matches.map(e=>e.styles).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),structuralSharing:!0}),s=_e({select:e=>e.matches.map(e=>e.headScripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),structuralSharing:!0});return Da([...r,...a,...i,...o,...s],e=>JSON.stringify(e))};function Da(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function Oa(){let e=Ea(),t=Re().options.ssr?.nonce;return(0,H.jsx)(H.Fragment,{children:e.map(e=>(0,U.createElement)(wa,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:t}))})}var ka=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ee(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ee(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function ee(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ee(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Aa=t(((e,t)=>{t.exports=ka()})),ja=t((e=>{var t=Aa(),n=r(),i=Fe();function a(e){var t=`https://react.dev/errors/`+e;if(1ie||(e.current=re[ie],re[ie]=null,ie--)}function F(e,t){ie++,re[ie]=e.current,e.current=t}var oe=ae(null),se=ae(null),ce=ae(null),le=ae(null);function ue(e,t){switch(F(ce,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}P(oe),F(oe,e)}function de(){P(oe),P(se),P(ce)}function fe(e){e.memoizedState!==null&&F(le,e);var t=oe.current,n=Hd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function pe(e){se.current===e&&(P(oe),P(se)),le.current===e&&(P(le),Qf._currentValue=ne)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{_e=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ge(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return e.child!==t&&t!==null?ge(`Suspense Fallback`):ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return ge(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,I=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,L=t.unstable_NormalPriority,ke=t.unstable_LowPriority,R=t.unstable_IdlePriority,Ae=t.log,je=t.unstable_setDisableYieldValue,Me=null,Ne=null;function Pe(e){if(typeof Ae==`function`&&je(e),Ne&&typeof Ne.setStrictMode==`function`)try{Ne.setStrictMode(Me,e)}catch{}}var Ie=Math.clz32?Math.clz32:ze,Le=Math.log,Re=Math.LN2;function ze(e){return e>>>=0,e===0?32:31-(Le(e)/Re|0)|0}var Be=256,Ve=262144,He=4194304;function Ue(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function We(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ue(n))):i=Ue(o):i=Ue(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ue(n))):i=Ue(o)):i=Ue(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ge(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ke(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var e=He;return He<<=1,!(He&62914560)&&(He=4194304),e}function Je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),cn=!1;if(z)try{var ln={};Object.defineProperty(ln,`passive`,{get:function(){cn=!0}}),window.addEventListener(`test`,ln,ln),window.removeEventListener(`test`,ln,ln)}catch{cn=!1}var un=null,dn=null,fn=null;function pn(){if(fn)return fn;var e,t=dn,n=t.length,r,i=`value`in un?un.value:un.textContent,a=i.length;for(e=0;e=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=pn(),fn=dn=un=null,Zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ft(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ft(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Er=z&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Ft(r)||(r=Dr,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&br(kr,r)||(kr=r,r=Td(Or,`onSelect`),0>=o,i-=o,Ci=1<<32-Ie(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),V&&Ti(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),V&&Ti(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return V&&Ti(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),V&&Ti(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Ca(l)===r.type){n(e,r.sibling),c=i(r,o.props),ja(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ui(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=li(o.type,o.key,o.props,null,e.mode,c),ja(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=pi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Ca(o),b(e,r,o,c)}if(j(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ka(o),c);if(o.$$typeof===x)return b(e,r,$i(e,o),c);Ma(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=di(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=b(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=W(!0),Pa=W(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ha=!1;function Ua(){if(Ha){var e=ca;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(X&f)===f:(r&f)===f){f!==0&&f===sa&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Fa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Wl|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=M.T,s={};M.T=s,js(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?As(e,t,da(c,r),fu(e)):As(e,t,r,fu(e))}catch(n){As(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function bs(){}function xs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Ss(e).queue;ys(e,i,t,ne,n===null?bs:function(){return Cs(e),n(r)})}function Ss(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cs(e){var t=Ss(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},fu())}function ws(){return Qi(Qf)}function Ts(){return Do().memoizedState}function Es(){return Do().memoizedState}function Ds(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Ra(n);var r=za(t,e,n);r!==null&&(mu(r,t,n),Ba(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function Os(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Ns(t,n):(n=$r(e,t,n,r),n!==null&&(mu(n,e,r),Ps(n,t,r)))}function ks(e,t,n){As(e,t,n,fu())}function As(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Ns(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return Qr(e,t,i,0),Ll===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return mu(n,e,r),Ps(n,t,r),!0}return!1}function js(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(a(479))}else t=$r(e,n,r,2),t!==null&&mu(t,e,2)}function Ms(e){var t=e.alternate;return e===G||t!==null&&t===G}function Ns(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ps(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}var Fs={readContext:Qi,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Fs.useEffectEvent=_o;var Is={readContext:Qi,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:os,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),is(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){is(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Pe(!0);try{n(t)}finally{Pe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Os.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=ks.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ms,useDeferredValue:function(e,t){return _s(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=ys.bind(null,G,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,i=Eo();if(V){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ll===null)throw Error(a(349));X&127||Lo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,os(zo.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=Ll.identifierPrefix;if(V){var n=wi,r=Ci;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[at]=t,o[ot]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ac(t)}}return Fc(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=ce.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ai,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Fi(t,!0)}else e=Bd(e).createTextNode(r),e[at]=t,t.stateNode=e}return Fc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[at]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(a(558))}return Fc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[at]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),i=!1}else i=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(io(t),t):(io(t),null)}return io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Nc(t,t.updateQueue),Fc(t),null);case 4:return de(),e===null&&xd(t.stateNode.containerInfo),Fc(t),null;case 10:return Ki(t.type),Fc(t),null;case 19:if(P(ao),r=t.memoizedState,r===null)return Fc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Pc(r,!1);else{if(Ul!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,Pc(r,!1),e=o.updateQueue,t.updateQueue=e,Nc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return F(ao,ao.current&1|2),V&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&I()>eu&&(t.flags|=128,i=!0,Pc(r,!1),t.lanes=4194304)}else{if(!i)if(e=oo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Nc(t,e),Pc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!V)return Fc(t),null}else 2*I()-r.renderingStartTime>eu&&n!==536870912&&(t.flags|=128,i=!0,Pc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Fc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=I(),e.sibling=null,n=ao.current,F(ao,i?n&1|2:n&1),V&&Ti(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Fc(t),t.subtreeFlags&6&&(t.flags|=8192)):Fc(t),n=t.updateQueue,n!==null&&Nc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&P(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(U),Fc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Lc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(U),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(a(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(ao),null;case 4:return de(),null;case 10:return Ki(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&P(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(U),null;case 25:return null;default:return null}}function Rc(e,t){switch(Oi(t),t.tag){case 3:Ki(U),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:P(ao);break;case 10:Ki(t.type);break;case 22:case 23:io(t),Za(),e!==null&&P(pa);break;case 24:Ki(U)}}function zc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Q(t,t.return,e)}}function Bc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function Vc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Q(e,e.return,t)}}}function Hc(e,t,n){n.props=Us(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function Uc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Q(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Q(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Q(e,t,n)}else n.current=null}function Gc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Q(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ot]=t}catch(t){Q(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[at]=e,t[ot]=n}catch(t){Q(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Rd=sp,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(o,r,n),o[at]=e,vt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Sr(s,h),v=Sr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,M.T=null,n=cu,cu=null;var o=iu,s=ou;if(ru=0,au=iu=null,ou=0,J&6)throw Error(a(331));var c=J;if(J|=4,Ml(o.current),wl(o,o.current,s,n),J=c,rd(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot==`function`)try{Ne.onPostCommitFiberRoot(Me,o)}catch{}return!0}finally{N.p=i,M.T=r,Bu(e,t)}}function Uu(e,t,n){t=hi(n,t),t=Ys(e.stateNode,t,2),e=za(e,t,2),e!==null&&(Ye(e,2),nd(e))}function Q(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nu===null||!nu.has(r))){e=hi(n,e),n=Xs(2),r=za(t,n,2),r!==null&&(Zs(n,r,t,e),Ye(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Vl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(X&n)===n&&(Ul===4||Ul===3&&(X&62914560)===X&&300>I()-Ql?!(J&2)&&xu(e,0):Kl|=n,Jl===X&&(Jl=0)),nd(e)}function Ku(e,t){t===0&&(t=qe()),e=ei(e,t),e!==null&&(Ye(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return Se(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ie(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=X,a=We(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ge(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=I(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}ru!==0&&ru!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Lt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Lt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Lt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Lt(n.imageSizes)+`"]`)):i+=`[href="`+Lt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Lt(r)+`"][href="`+Lt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),vt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=_t(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);vt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=_t(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),vt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=_t(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),vt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ce.current)?gf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=_t(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=_t(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=_t(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Af(e){return`href="`+Lt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),vt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Lt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Lt(n.href)+`"]`);if(r)return t.instance=r,vt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),vt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var o=e.querySelector(jf(i));if(o)return t.state.loading|=4,t.instance=o,vt(o),o;r=Mf(n),(i=mf.get(i))&&Rf(r,i),o=(e.ownerDocument||e).createElement(`link`),vt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(i=e.querySelector(Ff(o)))?(t.instance=i,vt(i),i):(r=n,(i=mf.get(o))&&(r=p({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),vt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,vt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),vt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ja()}))(),1),W=i(),Na=(0,U.createContext)(void 0);function Pa(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function Fa(e){let t=(0,W.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`system`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>Pa(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,U.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,U.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,H.jsx)(Na.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function Ia(){let e=(0,U.useContext)(Na);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function La(e){return Ve(e.defaultTagName??`div`,e,e)}var Ra=tt(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),za=tt(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Ba=tt(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Va=tt(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Ha=tt(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Ua=tt(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Wa=tt(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Ga=tt(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Ka=tt(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),qa=tt(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Ja=tt(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ya=tt(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Xa=tt(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Za=tt(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Qa=tt(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),$a=tt(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),eo=U.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,...d}=e,{state:f,name:p,disabled:m,setTouched:h,setDirty:g,validityData:_,setFocused:v,setFilled:y,validationMode:b,validation:x}=it(),S=m||s,C=p??a,w={...f,disabled:S},{labelId:T}=nt(),E=rt({id:i});qe(()=>{let e=o!=null;x.inputRef.current?.value||e&&o!==``?y(!0):e&&o===``&&y(!1)},[x.inputRef,y,o]);let D=U.useRef(null);qe(()=>{u&&D.current===vt(ct(D.current))&&v(!0)},[u,v]);let[O]=at({controlled:o,default:l,name:`FieldControl`,state:`value`}),k=o!==void 0,A=k?O:void 0;return st({id:E,name:C,commit:x.commit,value:A,getValue:()=>x.inputRef.current?.value,controlRef:x.inputRef}),Ve(`input`,e,{ref:[t,D],state:w,props:[{id:E,disabled:S,name:C,ref:x.inputRef,"aria-labelledby":T,autoFocus:u,...k?{value:A}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Ct(wt,e.nativeEvent)),g(t!==_.initialValue),y(t!==``)},onFocus(){v(!0)},onBlur(e){h(!0),v(!1),b===`onBlur`&&x.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(h(!0),x.commit(e.currentTarget.value))}},x.getInputValidationProps(),d],stateAttributesMapping:ot})}),to=U.forwardRef(function(e,t){return(0,H.jsx)(eo,{ref:t,...e})});function no(e){let t=(0,W.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=Me(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,H.jsx)(to,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var ro=U.createContext(void 0);function io(e){let t=U.useContext(ro);if(e===!1&&t===void 0)throw Error(et(27));return t}var ao={...Pt,...Wt},oo=U.forwardRef(function(e,t){let{render:n,className:r,forceRender:i=!1,...a}=e,{store:o}=io(),s=o.useState(`open`),c=o.useState(`nested`),l=o.useState(`mounted`);return Ve(`div`,e,{state:{open:s,transitionStatus:o.useState(`transitionStatus`)},ref:[o.context.backdropRef,t],stateAttributesMapping:ao,props:[{role:`presentation`,hidden:!l,style:{userSelect:`none`,WebkitUserSelect:`none`}},a],enabled:i||!c})}),so=U.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,...o}=e,{store:s}=io(),c=s.useState(`open`);function l(e){c&&s.setOpen(!1,Ct(xt,e.nativeEvent))}let{getButtonProps:u,buttonRef:d}=Ze({disabled:i,native:a});return Ve(`button`,e,{state:{disabled:i},ref:[t,d],props:[{onClick:l},o,u]})}),G=U.forwardRef(function(e,t){let{render:n,className:r,id:i,...a}=e,{store:o}=io(),s=ht(i);return o.useSyncedValueWithCleanup(`descriptionElementId`,s),Ve(`p`,e,{ref:t,props:[{id:s},a]})});kt(`safe-polygon`),`${dt}`;function K(e,t,n){if(n&&!Ot(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}var co=U.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new an,currentIdRef:{current:null},currentContextRef:{current:null}});function lo(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=U.useRef(n),a=U.useRef(n),o=U.useRef(null),s=U.useRef(null),c=Zt();return(0,H.jsx)(co.Provider,{value:U.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function uo(e,t={open:!1}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`floatingId`),{open:i}=t,{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=U.useContext(co),[f,p]=U.useState(!1);return qe(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!i&&a.current===r){if(p(!1),s){let t=r;return d.start(s,()=>{n.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[i,r,a,o,s,c,l,d,n]),qe(()=>{if(!i)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:n.setOpen,setIsInstantPhase:p},a.current=r,o.current={open:0,close:K(c.current,`close`)},t!==null&&t!==r?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Ct(wt))):(p(!1),e?.setIsInstantPhase(!1))},[i,r,n,a,o,s,c,l,d]),qe(()=>()=>{l.current=null},[l]),U.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function fo(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function po(e){return e!=null&&e.clientX!=null}function mo(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{enabled:s=!0,axis:c=`both`}=t,l=U.useRef(!1),u=U.useRef(null),[d,f]=U.useState(),[p,m]=U.useState([]),h=Xe((e,t,r)=>{l.current||o.current.openEvent&&!po(o.current.openEvent)||n.set(`positionReference`,fo(r??a,{x:e,y:t,axis:c,dataRef:o,pointerType:d}))}),g=Xe(e=>{r?u.current||m([]):h(e.clientX,e.clientY,e.currentTarget)}),_=Ot(d)?i:r,v=U.useCallback(()=>{if(!_||!s)return;let e=Ke(i);function t(n){gt(i,Dt(n))?(e.removeEventListener(`mousemove`,t),u.current=null):h(n.clientX,n.clientY)}if(!o.current.openEvent||po(o.current.openEvent)){e.addEventListener(`mousemove`,t);let n=()=>{e.removeEventListener(`mousemove`,t),u.current=null};return u.current=n,n}n.set(`positionReference`,a)},[_,s,i,o,a,n,h]);U.useEffect(()=>v(),[v,p]),U.useEffect(()=>{s&&!i&&(l.current=!1)},[s,i]),U.useEffect(()=>{!s&&r&&(l.current=!0)},[s,r]);let y=U.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return U.useMemo(()=>s?{reference:y,trigger:y}:{},[s,y])}function ho(e,t){let n=U.useRef(null),r=U.useRef(null);return U.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function go(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=ho(e,n),o=Xe(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return qe(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function _o(e){let t=e.useState(`open`);qe(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function vo(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=xn(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=Xe(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return At({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function yo(){return new $t({open:!1,floatingElement:null,referenceElement:null,triggerElements:new hn,floatingId:``,nested:!1,noEmit:!1,onOpenChange:void 0})}function bo(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:`idle`,floatingRootContext:yo(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ue,inactiveTriggerProps:Ue,popupProps:Ue}}var xo=z(e=>e.triggerIdProp??e.activeTriggerId),So={open:z(e=>e.openProp??e.open),mounted:z(e=>e.mounted),transitionStatus:z(e=>e.transitionStatus),floatingRootContext:z(e=>e.floatingRootContext),preventUnmountingOnClose:z(e=>e.preventUnmountingOnClose),payload:z(e=>e.payload),activeTriggerId:xo,activeTriggerElement:z(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:z((e,t)=>t!==void 0&&xo(e)===t),isOpenedByTrigger:z((e,t)=>t!==void 0&&xo(e)===t&&e.open),isMountedByTrigger:z((e,t)=>t!==void 0&&xo(e)===t&&e.mounted),triggerProps:z((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:z(e=>e.popupProps),popupElement:z(e=>e.popupElement),positionerElement:z(e=>e.positionerElement)};function Co(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=lt(),a=on()!=null,o=We(()=>new $t({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new hn,floatingId:i,nested:a,noEmit:!1})).current;return qe(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Ge(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o.context.noEmit=!1,o}function wo(e={}){let{nodeId:t,externalTree:n}=e,r=Co(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=U.useState(null),c=U.useRef(null),l=Lt(n);qe(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=Vt({...e,elements:{...a,...o&&{reference:o}}}),d=U.useCallback(e=>{let t=Ge(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=U.useState(null),[m,h]=U.useState(null);i.useSyncedValue(`referenceElement`,f),i.useSyncedValue(`domReferenceElement`,Ge(f)?f:null),i.useSyncedValue(`floatingElement`,m);let g=U.useCallback(e=>{(Ge(e)||e===null)&&(c.current=e,p(e)),(Ge(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!Ge(e))&&u.refs.setReference(e)},[u.refs,p]),_=U.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),v=U.useMemo(()=>({...u.refs,setReference:g,setFloating:_,setPositionReference:d,domReference:c}),[u.refs,g,_,d]),y=U.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),b=i.useState(`open`),x=i.useState(`floatingId`),S=U.useMemo(()=>({...u,dataRef:i.context.dataRef,open:b,onOpenChange:i.setOpen,events:i.context.events,floatingId:x,refs:v,elements:y,nodeId:t,rootStore:i}),[u,v,y,t,i,b,x]);return qe(()=>{i.context.dataRef.current.floatingContext=S;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=S)}),U.useMemo(()=>({...u,context:S,refs:v,elements:y,rootStore:i}),[u,v,y,S,i])}function To(e){let{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,a=lt(),o=on()!=null,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(r?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=We(()=>new $t({open:s,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:i,floatingId:a,nested:o,noEmit:n})).current;return qe(()=>{let e={open:s,floatingId:a,referenceElement:c,floatingElement:l};Ge(c)&&(e.domReferenceElement=c),d.state.positionReference===d.state.referenceElement&&(e.positionReference=c),d.update(e)},[s,a,c,l,d]),d.context.onOpenChange=i,d.context.nested=o,d.context.noEmit=n,d}var Eo=ut&&ft;function Do(e,t={}){let n=`rootStore`in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:a=!0,delay:o}=t,s=U.useRef(!1),c=U.useRef(null),l=Zt(),u=U.useRef(!0);U.useEffect(()=>{let e=n.select(`domReferenceElement`);if(!a)return;let t=Ke(e);function r(){let e=n.select(`domReferenceElement`);!n.select(`open`)&&$e(e)&&e===vt(ct(e))&&(s.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return t.addEventListener(`blur`,r),Eo&&(t.addEventListener(`keydown`,i,!0),t.addEventListener(`pointerdown`,o,!0)),()=>{t.removeEventListener(`blur`,r),Eo&&(t.removeEventListener(`keydown`,i,!0),t.removeEventListener(`pointerdown`,o,!0))}},[n,a]),U.useEffect(()=>{if(!a)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=n.select(`domReferenceElement`);Ge(e)&&(c.current=e,s.current=!0)}}return r.on(`openchange`,e),()=>{r.off(`openchange`,e)}},[r,a,n]);let d=U.useMemo(()=>({onMouseLeave(){s.current=!1,c.current=null},onFocus(e){let t=e.currentTarget;if(s.current){if(c.current===t)return;s.current=!1,c.current=null}let r=Dt(e.nativeEvent);if(Ge(r)){if(Eo&&!e.relatedTarget){if(!u.current&&!Et(r))return}else if(!mt(r))return}let i=pt(e.relatedTarget,n.context.triggerElements),{nativeEvent:a,currentTarget:d}=e,f=typeof o==`function`?o():o;if(n.select(`open`)&&i||f===0||f===void 0){n.setOpen(!0,Ct(_t,a,d));return}l.start(f,()=>{s.current||n.setOpen(!0,Ct(_t,a,d))})},onBlur(e){s.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,a=Ge(t)&&t.hasAttribute(kt(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let e=n.select(`domReferenceElement`),o=vt(e?e.ownerDocument:document);!t&&o===e||gt(i.current.floatingContext?.refs.floating.current,o)||gt(e,o)||a||pt(t??o,n.context.triggerElements)||n.setOpen(!1,Ct(_t,r))})}}),[i,n,l,o]);return U.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var Oo=kt(`safe-polygon`),ko=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${dt}`;function Ao(e){return e?!!e.closest(ko):!1}var jo=class e{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 an,this.restTimeout=new an,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose};function Mo(e){let t=We(jo.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||=t,un(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}var No=new Set([`click`,`mousedown`]);function Po(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),{dataRef:o}=n.context,{enabled:s=!0,closeDelay:c=0}=t,l=Mo(n),u=Lt(),d=on(),f=Xe(()=>l.interactedInside?!0:o.current.openEvent?No.has(o.current.openEvent.type):!1),p=Xe(()=>{let e=o.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`}),m=Xe(e=>pt(e,n.context.triggerElements)),h=U.useCallback((e,t=!0)=>{let r=Fo(c,l.pointerType);r&&!l.handler?l.openChangeTimeout.start(r,()=>n.setOpen(!1,Ct(bt,e))):t&&(l.openChangeTimeout.clear(),n.setOpen(!1,Ct(bt,e)))},[c,n,l]),g=Xe(()=>{l.unbindMouseMove(),l.handler=void 0}),_=Xe(()=>{if(l.performedPointerEventsMutation){let e=ct(i).body;e.style.pointerEvents=``,e.removeAttribute(Oo),l.performedPointerEventsMutation=!1}}),v=Xe(e=>{if(!Ao(Dt(e))){l.interactedInside=!1;return}l.interactedInside=!0});qe(()=>{r||(l.pointerType=void 0,l.restTimeoutPending=!1,l.interactedInside=!1,g(),_())},[r,l,g,_]),U.useEffect(()=>()=>{g()},[g]),U.useEffect(()=>_,[_]),qe(()=>{if(s&&r&&l.handleCloseOptions?.blockPointerEvents&&p()&&Ge(a)&&i){l.performedPointerEventsMutation=!0;let e=ct(i).body;e.setAttribute(Oo,``);let t=a,n=i,r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;return r&&(r.style.pointerEvents=``),e.style.pointerEvents=`none`,t.style.pointerEvents=`auto`,n.style.pointerEvents=`auto`,()=>{e.style.pointerEvents=``,t.style.pointerEvents=``,n.style.pointerEvents=``}}},[s,r,a,i,l,p,u,d]),U.useEffect(()=>{if(!s)return;function e(e){f()||!o.current.floatingContext||!n.select(`open`)||m(e.relatedTarget)||(_(),g(),f()||h(e))}function t(e){l.openChangeTimeout.clear(),_(),l.handler?.(e),g()}function r(e){f()||h(e,!1)}let a=i;return a&&(a.addEventListener(`mouseleave`,e),a.addEventListener(`mouseenter`,t),a.addEventListener(`mouseleave`,r),a.addEventListener(`pointerdown`,v,!0)),()=>{a&&(a.removeEventListener(`mouseleave`,e),a.removeEventListener(`mouseenter`,t),a.removeEventListener(`mouseleave`,r),a.removeEventListener(`pointerdown`,v,!0))}},[s,i,n,o,f,m,h,_,g,v,l])}function Fo(e,t){return t&&!Ot(t)?0:typeof e==`function`?e():e}var Io=e(Fe());function Lo(e){return typeof e==`function`?e():e}var Ro={current:null};function zo(e,t={}){let n=`rootStore`in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:a=!0,delay:o=0,handleClose:s=null,mouseOnly:c=!1,restMs:l=0,move:u=!0,triggerElementRef:d=Ro,externalTree:f,isActiveTrigger:p=!0}=t,m=Lt(f),h=Mo(n),g=Rt(s),_=Rt(o),v=Rt(l),y=Rt(a);p&&(h.handleCloseOptions=g.current?.__options);let b=Xe(()=>h.interactedInside?!0:r.current.openEvent?[`click`,`mousedown`].includes(r.current.openEvent.type):!1),x=Xe(e=>pt(e,n.context.triggerElements)),S=U.useCallback((e,t=!0)=>{let r=K(_.current,`close`,h.pointerType);r&&!h.handler?h.openChangeTimeout.start(r,()=>n.setOpen(!1,Ct(bt,e))):t&&(h.openChangeTimeout.clear(),n.setOpen(!1,Ct(bt,e)))},[_,n,h]),C=Xe(()=>{h.unbindMouseMove(),h.handler=void 0}),w=Xe(()=>{if(h.performedPointerEventsMutation){let e=ct(n.select(`domReferenceElement`)).body;e.style.pointerEvents=``,e.removeAttribute(Oo),h.performedPointerEventsMutation=!1}});U.useEffect(()=>{if(!a)return;function e(e){e.open||(h.openChangeTimeout.clear(),h.restTimeout.clear(),h.blockMouseMove=!0,h.restTimeoutPending=!1)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[a,i,h]);let T=Xe(e=>{if(b()||!r.current.floatingContext||x(e.relatedTarget))return;let t=d.current;g.current?.({...r.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){w(),C(),!b()&&t===n.select(`domReferenceElement`)&&S(e)}})(e)});return U.useEffect(()=>{if(!a)return;let e=d.current??(p?n.select(`domReferenceElement`):null);if(!Ge(e))return;function t(e){if(h.openChangeTimeout.clear(),h.blockMouseMove=!1,c&&!Ot(h.pointerType)||Lo(v.current)>0&&!K(_.current,`open`))return;let t=K(_.current,`open`,h.pointerType),r=n.select(`domReferenceElement`),i=n.context.triggerElements,a=(i.hasElement(e.target)||i.hasMatchingElement(t=>gt(t,e.target)))&&(!r||!gt(r,e.target)),o=e.currentTarget??null,s=n.select(`open`),l=!s||a;a&&s?n.setOpen(!0,Ct(bt,e,o)):t?h.openChangeTimeout.start(t,()=>{l&&n.setOpen(!0,Ct(bt,e,o))}):l&&n.setOpen(!0,Ct(bt,e,o))}function i(e){if(b()){w();return}h.unbindMouseMove();let t=ct(n.select(`domReferenceElement`));if(h.restTimeout.clear(),h.restTimeoutPending=!1,!x(e.relatedTarget)){if(g.current&&r.current.floatingContext){n.select(`open`)||h.openChangeTimeout.clear();let i=d.current;h.handler=g.current({...r.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){w(),C(),y.current&&!b()&&i===n.select(`domReferenceElement`)&&S(e,!0)}});let a=h.handler;a(e),t.addEventListener(`mousemove`,a),h.unbindMouseMove=()=>{t.removeEventListener(`mousemove`,a)};return}(h.pointerType!==`touch`||!gt(n.select(`floatingElement`),e.relatedTarget))&&S(e)}}function o(e){T(e)}return n.select(`open`)&&e.addEventListener(`mouseleave`,o),u&&e.addEventListener(`mousemove`,t,{once:!0}),e.addEventListener(`mouseenter`,t),e.addEventListener(`mouseleave`,i),()=>{e.removeEventListener(`mouseleave`,o),u&&e.removeEventListener(`mousemove`,t),e.removeEventListener(`mouseenter`,t),e.removeEventListener(`mouseleave`,i)}},[C,w,r,_,S,n,a,g,T,h,p,b,x,c,u,v,d,m,y]),U.useMemo(()=>{if(!a)return;function e(e){h.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=n.select(`domReferenceElement`),a=n.context.triggerElements,o=n.select(`open`),s=(a.hasElement(e.target)||a.hasMatchingElement(t=>gt(t,e.target)))&&(!i||!gt(i,e.target));if(c&&!Ot(h.pointerType)||o&&!s||Lo(v.current)===0||!s&&h.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;h.restTimeout.clear();function l(){if(h.restTimeoutPending=!1,b())return;let e=n.select(`open`);!h.blockMouseMove&&(!e||s)&&n.setOpen(!0,Ct(bt,t,r))}h.pointerType===`touch`?Io.flushSync(()=>{l()}):s&&o?l():(h.restTimeoutPending=!0,h.restTimeout.start(Lo(v.current),l))}}},[a,h,b,c,n,v])}var Bo=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Vo(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingId`),a=n.useState(`domReferenceElement`),o=n.useState(`floatingElement`),{role:s=`dialog`}=t,c=lt(),l=a?.id||c,u=U.useMemo(()=>Tt(o)?.id||i,[o,i]),d=Bo.get(s)??s,f=on()!=null,p=U.useMemo(()=>d===`tooltip`||s===`label`?Ue:{"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-expanded":`false`,...d===`listbox`&&{role:`combobox`},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,f,s]),m=U.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-${s===`label`?`labelledby`:`describedby`}`]:r?u:void 0}:{...p,"aria-expanded":r?`true`:`false`,"aria-controls":r?u:void 0,...d===`menu`&&{id:l}},[d,u,r,l,s,p]),h=U.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),g=U.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${u}-fui-option`}};switch(s){case`select`:case`combobox`:return{...n,"aria-selected":t};default:}return{}},[u,s]);return U.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}function Ho(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Uo(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Wo(e={}){let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new an,a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=({x:e,y:n,placement:o,elements:s,onClose:c,nodeId:u,tree:d})=>function(f){function p(){i.clear(),c()}if(i.clear(),!s.domReference||!s.floating||o==null||e==null||n==null)return;let{clientX:m,clientY:h}=f,g=[m,h],_=Dt(f),v=f.type===`mouseleave`,y=gt(s.floating,_),b=gt(s.domReference,_),x=s.domReference.getBoundingClientRect(),S=s.floating.getBoundingClientRect(),C=o.split(`-`)[0],w=e>S.right-S.width/2,T=n>S.bottom-S.height/2,E=Uo(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,ee=(O?x:S).top,te=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&Ge(f.relatedTarget)&>(s.floating,f.relatedTarget)||d&&mn(d.nodesRef.current,u).some(({context:e})=>e?.open))return;if(C===`top`&&n>=x.bottom-1||C===`bottom`&&n<=x.top+1||C===`left`&&e>=x.right-1||C===`right`&&e<=x.left+1)return p();let j=[];switch(C){case`top`:j=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:j=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:j=[[S.right-1,te],[S.right-1,ee],[x.left+1,ee],[x.left+1,te]];break;case`right`:j=[[x.right-1,te],[x.right-1,ee],[S.left+1,ee],[S.left+1,te]];break;default:}function M([e,n]){switch(C){case`top`:return[[D?e+t/2:w?e+t*4:e-t*4,n+t+1],[D?e-t/2:w?e+t*4:e-t*4,n+t+1],...[[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]]];case`bottom`:return[[D?e+t/2:w?e+t*4:e-t*4,n-t],[D?e-t/2:w?e+t*4:e-t*4,n-t],...[[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]]];case`left`:{let r=[e+t+1,O?n+t/2:T?n+t*4:n-t*4],i=[e+t+1,O?n-t/2:T?n+t*4:n-t*4];return[...[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom]],r,i]}case`right`:return[[e-t,O?n+t/2:T?n+t*4:n-t*4],[e-t,O?n-t/2:T?n+t*4:n-t*4],...[[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]];default:return[]}}if(!Ho([m,h],j)){if(a&&!E)return p();if(!v&&r){let e=l(f.clientX,f.clientY);if(e!==null&&e<.1)return p()}Ho([m,h],M([e,n]))?!a&&r&&i.start(40,p):p()}};return u.__options={blockPointerEvents:n},u}var Go=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Ko=function(e){return e[e.open=zt.open]=`open`,e[e.closed=zt.closed]=`closed`,e[e.startingStyle=zt.startingStyle]=`startingStyle`,e[e.endingStyle=zt.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),qo=U.createContext(void 0);function Jo(){let e=U.useContext(qo);if(e===void 0)throw Error(et(26));return e}var Yo={...Pt,...Wt,nestedDialogOpen(e){return e?{[Ko.nestedDialogOpen]:``}:null}},Xo=U.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,...o}=e,{store:s}=io(),c=s.useState(`descriptionElementId`),l=s.useState(`disablePointerDismissal`),u=s.useState(`floatingRootContext`),d=s.useState(`popupProps`),f=s.useState(`modal`),p=s.useState(`mounted`),m=s.useState(`nested`),h=s.useState(`nestedOpenDialogCount`),g=s.useState(`open`),_=s.useState(`openMethod`),v=s.useState(`titleElementId`),y=s.useState(`transitionStatus`),b=s.useState(`role`);Jo(),At({open:g,ref:s.context.popupRef,onComplete(){g&&s.context.onOpenChangeComplete?.(!0)}});function x(e){return e===`touch`?s.context.popupRef.current:!0}let S=i===void 0?x:i,C=Ve(`div`,e,{state:{open:g,nested:m,transitionStatus:y,nestedDialogOpen:h>0},props:[d,{"aria-labelledby":v??void 0,"aria-describedby":c??void 0,role:b,tabIndex:-1,hidden:!p,onKeyDown(e){Xt.has(e.key)&&e.stopPropagation()},style:{[Go.nestedDialogs]:h}},o],ref:[t,s.context.popupRef,s.useStateSetter(`popupElement`)],stateAttributesMapping:Yo});return(0,H.jsx)(vn,{context:u,openInteractionType:_,disabled:!p,closeOnFocusOut:!l,initialFocus:S,returnFocus:r,modal:f!==!1,restoreFocus:`popup`,children:C})}),Zo=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=io(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,H.jsx)(qo.Provider,{value:n,children:(0,H.jsxs)(Ht,{ref:t,...r,children:[a&&o===!0&&(0,H.jsx)(pn,{ref:i.context.internalBackdropRef,inert:rn(!s)}),e.children]})}):null});function Qo(e){let t=U.useRef(!0);t.current&&(t.current=!1,e())}function $o(e){let{store:t,parentContext:n,actionsRef:r}=e,i=t.useState(`open`),a=t.useState(`disablePointerDismissal`),o=t.useState(`modal`),s=t.useState(`popupElement`),{openMethod:c,triggerProps:l,reset:u}=gn(i);_o(t);let{forceUnmount:d}=vo(i,t,()=>{u()}),f=Xe(e=>{let n=Ct(e);return n.preventUnmountOnClose=()=>{t.set(`preventUnmountingOnClose`,!0)},n}),p=U.useCallback(()=>{t.setOpen(!1,f(St))},[t,f]);U.useImperativeHandle(r,()=>({unmount:d,close:p}),[d,p]);let m=To({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[h,g]=U.useState(0),_=h===0,v=Vo(m),y=nn(m,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=Dt(e);if(_&&!a){let e=n;return o&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||gt(e,s)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:_});cn(i&&o===!0,s);let{getReferenceProps:b,getFloatingProps:x,getTriggerProps:S}=ln([v,y]);t.useContextCallback(`onNestedDialogOpen`,e=>{g(e+1)}),t.useContextCallback(`onNestedDialogClose`,()=>{g(0)}),U.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(h),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,h]);let C=U.useMemo(()=>b(l),[b,l]),w=U.useMemo(()=>S(l),[S,l]),T=U.useMemo(()=>x(),[x]);t.useSyncedValues({openMethod:c,activeTriggerProps:C,inactiveTriggerProps:w,popupProps:T,floatingRootContext:m,nestedOpenDialogCount:h})}var es={...So,modal:z(e=>e.modal),nested:z(e=>e.nested),nestedOpenDialogCount:z(e=>e.nestedOpenDialogCount),disablePointerDismissal:z(e=>e.disablePointerDismissal),openMethod:z(e=>e.openMethod),descriptionElementId:z(e=>e.descriptionElementId),titleElementId:z(e=>e.titleElementId),viewportElement:z(e=>e.viewportElement),role:z(e=>e.role)},ts=class extends sn{constructor(e){super(ns(e),{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new hn,onOpenChange:void 0,onOpenChangeComplete:void 0},es)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;let n={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit(`openchange`,n);let r={open:e},i=t.trigger?.id??null;(i||e)&&(r.activeTriggerId=i,r.activeTriggerElement=t.trigger??null),this.update(r)}};function ns(e={}){return{...bo(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:`dialog`,...e}}function rs(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=io(!0),p=!!f,m=We(()=>l?.store??new ts({open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:p})).current;Qo(()=>{n===void 0&&m.state.open===!1&&r===!0&&m.update({open:!0,activeTriggerId:d})}),m.useControlledProp(`openProp`,n),m.useControlledProp(`triggerIdProp`,u),m.useSyncedValues({disablePointerDismissal:o,nested:p,modal:s}),m.useContextCallback(`onOpenChange`,i),m.useContextCallback(`onOpenChangeComplete`,a);let h=m.useState(`payload`);$o({store:m,actionsRef:c,parentContext:f?.store.context,onOpenChange:i,triggerIdProp:u});let g=U.useMemo(()=>({store:m}),[m]);return(0,H.jsx)(ro.Provider,{value:g,children:typeof t==`function`?t({payload:h}):t})}var is=U.forwardRef(function(e,t){let{render:n,className:r,id:i,...a}=e,{store:o}=io(),s=ht(i);return o.useSyncedValueWithCleanup(`titleElementId`,s),Ve(`h2`,e,{ref:t,props:[{id:s},a]})});function as(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,H.jsx)(rs,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function os(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,H.jsx)(Zo,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function ss(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(oo,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function cs(e){let t=(0,W.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(ss,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=Me(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,H.jsxs)(so,{"data-slot":`sheet-close`,render:(0,H.jsx)(Qe,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,H.jsx)($a,{}),(0,H.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,H.jsxs)(os,{children:[l,(0,H.jsxs)(Xo,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function ls(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function us(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(is,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ds(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(G,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var fs=U.createContext(void 0);function ps(e){let t=U.useContext(fs);if(t===void 0&&!e)throw Error(et(72));return t}var ms={...So,disabled:z(e=>e.disabled),instantType:z(e=>e.instantType),isInstantPhase:z(e=>e.isInstantPhase),trackCursorAxis:z(e=>e.trackCursorAxis),disableHoverablePopup:z(e=>e.disableHoverablePopup),lastOpenChangeReason:z(e=>e.openChangeReason),closeDelay:z(e=>e.closeDelay),hasViewport:z(e=>e.hasViewport)},hs=class e extends sn{constructor(e){super({...gs(),...e},{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new hn},ms)}setOpen=(e,t)=>{let n=t.reason,r=n===bt,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0);let o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)};r?Io.flushSync(o):o()};static useStore(t,n){let r=We(()=>new e(n)).current,i=t??r,a=To({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=a,i}};function gs(){return{...bo(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}var _s=en(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=hs.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Qo(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),qe(()=>{m&&t&&p.setOpen(!1,Ct(yt))},[m,t,p]),p.useSyncedValue(`disabled`,t),_o(p);let{forceUnmount:v,transitionStatus:y}=vo(h,p),b=p.useState(`isInstantPhase`),x=p.useState(`instantType`),S=p.useState(`lastOpenChangeReason`),C=U.useRef(null);qe(()=>{y===`ending`&&S===`none`||y!==`ending`&&b?(x!==`delay`&&(C.current=x),p.set(`instantType`,`delay`)):C.current!==null&&(p.set(`instantType`,C.current),C.current=null)},[y,b,S,x,p]),qe(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let w=U.useCallback(()=>{p.setOpen(!1,vs(p,St))},[p]);U.useImperativeHandle(o,()=>({unmount:v,close:w}),[v,w]);let T=p.useState(`floatingRootContext`),{getReferenceProps:E,getFloatingProps:D,getTriggerProps:O}=ln([nn(T,{enabled:!t,referencePress:!0}),mo(T,{enabled:!t&&a!==`none`,axis:a===`none`?void 0:a})]),k=U.useMemo(()=>E(),[E]),A=U.useMemo(()=>O(),[O]),ee=U.useMemo(()=>D(),[D]);return p.useSyncedValues({activeTriggerProps:k,inactiveTriggerProps:A,popupProps:ee}),(0,H.jsx)(fs.Provider,{value:p,children:typeof f==`function`?f({payload:_}):f})});function vs(e,t){let n=Ct(t);return n.preventUnmountOnClose=()=>{e.set(`preventUnmountingOnClose`,!0)},n}var ys=U.createContext(void 0);function bs(){return U.useContext(ys)}var xs=function(e){return e[e.popupOpen=Nt.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Ss=dn(function(e,t){let{className:n,render:r,handle:i,payload:a,disabled:o,delay:s,closeDelay:c,id:l,...u}=e,d=ps(!0),f=i?.store??d;if(!f)throw Error(et(82));let p=ht(l),m=f.useState(`isTriggerActive`,p),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`floatingRootContext`),_=U.useRef(null),v=s??600,y=c??0,{registerTrigger:b,isMountedByThisTrigger:x}=go(p,_,f,{payload:a,closeDelay:y}),S=bs(),{delayRef:C,isInstantPhase:w,hasProvider:T}=uo(g,{open:h});f.useSyncedValue(`isInstantPhase`,w);let E=f.useState(`disabled`),D=o??E,O=f.useState(`trackCursorAxis`),k=f.useState(`disableHoverablePopup`),A=zo(g,{enabled:!D,mouseOnly:!0,move:!1,handleClose:!k&&O!==`both`?Wo():null,restMs(){let e=S?.delay,t=typeof C.current==`object`?C.current.open:void 0,n=v;return T&&(n=t===0?0:s??e??v),n},delay(){let e=typeof C.current==`object`?C.current.close:void 0,t=y;return c==null&&T&&(t=e),{close:t}},triggerElementRef:_,isActiveTrigger:m}),ee=Do(g,{enabled:!D}).reference,te={open:h},j=f.useState(`triggerProps`,x);return Ve(`button`,e,{state:te,ref:[t,b,_],props:[A,ee,j,{id:p,[xs.triggerDisabled]:D?``:void 0},u],stateAttributesMapping:Bt})}),Cs=U.createContext(void 0);function ws(){let e=U.useContext(Cs);if(e===void 0)throw Error(et(70));return e}var Ts=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,...o}=e,{portalNode:s,portalSubtree:c}=Mt({container:r,ref:t,componentProps:e,elementProps:o});return!c&&!s?null:(0,H.jsxs)(U.Fragment,{children:[c,s&&Io.createPortal(n,s)]})}),Es=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return ps().useState(`mounted`)||n?(0,H.jsx)(Cs.Provider,{value:n,children:(0,H.jsx)(Ts,{ref:t,...r})}):null}),Ds=U.createContext(void 0);function Os(){let e=U.useContext(Ds);if(e===void 0)throw Error(et(71));return e}var ks=U.createContext(void 0);function As(){return U.useContext(ks)?.direction??`ltr`}var js=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Gt(e,t)||{};if(l==null)return{};let f=qt(u),p={x:n,y:r},m=fn(i),h=Ft(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,ee=w/2-g[h]/2+T,te=Ut(k,ee,A),j=!c.arrow&&It(i)!=null&&ee!==te&&a.reference[h]/2-(ee({...js(e),options:[e,t]}),Ns={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Yt().fn(e)).data?.referenceHidden||a}}}},Ps={sideX:`left`,sideY:`top`},Fs={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Ke(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Ps};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=ct(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Kt(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Ps.sideX,g=f===`top`?`bottom`:Ps.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Is(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Ls(e,t,n){let{rects:r,placement:i}=e;return{side:Is(t,Kt(i),n),align:It(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Rs(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:_,adaptiveOrigin:v,lazyFlip:y=!1,externalTree:b}=e,[x,S]=U.useState(null);!m&&x!==null&&S(null);let C=h.side||`flip`,w=h.align||`flip`,T=h.fallbackAxisSide||`end`,E=typeof t==`function`?t:void 0,D=Xe(E),O=E?D:t,k=Rt(t),A=As()===`rtl`,ee=x||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":A?`left`:`right`,"inline-start":A?`right`:`left`}[r],te=a===`center`?ee:`${ee}-${a}`,j=c,M=r===`bottom`?1:0,N=r===`top`?1:0,ne=r===`right`?1:0,re=r===`left`?1:0;typeof j==`number`?j={top:j+M,right:j+re,bottom:j+N,left:j+ne}:j&&={top:(j.top||0)+M,right:(j.right||0)+re,bottom:(j.bottom||0)+N,left:(j.left||0)+ne};let ie={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:j},ae=U.useRef(null),P=Rt(i),F=Rt(o),oe=[bn(e=>{let t=Ls(e,r,A),n=typeof P.current==`function`?P.current(t):P.current,i=typeof F.current==`function`?F.current(t):F.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,A,r])],se=w===`none`&&C!==`shift`,ce=!se&&(l||g||C===`shift`),le=C===`none`?null:tn({...ie,padding:{top:j.top+1,right:j.right+1,bottom:j.bottom+1,left:j.left+1},mainAxis:!g&&C===`flip`,crossAxis:w===`flip`?`alignment`:!1,fallbackAxisSideDirection:T}),ue=se?null:Qt(e=>{let t=ct(e.elements.floating).documentElement;return{...ie,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:w!==`none`,crossAxis:ce,limiter:l||g?void 0:_n(e=>{if(!ae.current)return{};let{width:t,height:n}=ae.current.getBoundingClientRect(),r=Jt(Kt(e.placement)),i=r===`y`?t:n,a=r===`y`?j.left+j.right:j.top+j.bottom;return{offset:i/2+a/2}})}},[ie,l,g,j,w]);C===`shift`||w===`shift`||a===`center`?oe.push(ue,le):oe.push(le,ue),oe.push(yn({...ie,apply({elements:{floating:e},rects:{reference:t},availableWidth:n,availableHeight:r}){let i=e.style;i.setProperty(`--available-width`,`${n}px`),i.setProperty(`--available-height`,`${r}px`),i.setProperty(`--anchor-width`,`${t.width}px`),i.setProperty(`--anchor-height`,`${t.height}px`)}}),Ms(()=>({element:ae.current||document.createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Kt(a),l=Jt(c),u=ae.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Ls(e,r,A)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,ce&&l===`y`&&b?S:x),{}}},Ns,v),qe(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[m,p]);let de=U.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:fe,elements:pe,x:me,y:he,middlewareData:ge,update:_e,placement:ve,context:ye,isPositioned:be,floatingStyles:xe}=wo({rootContext:p,placement:te,middleware:oe,strategy:n,whileElementsMounted:f?void 0:(...e)=>jt(...e,de),nodeId:_,externalTree:b}),{sideX:Se,sideY:Ce}=ge.adaptiveOrigin||Ps,we=be?n:`fixed`,Te=U.useMemo(()=>{let e=v?{position:we,[Se]:me,[Ce]:he}:{position:we,...xe};return be||(e.opacity=0),e},[v,we,Se,me,Ce,he,xe,be]),I=U.useRef(null);qe(()=>{if(!m)return;let e=k.current,t=typeof e==`function`?e():e,n=(zs(t)?t.current:t)||null;n!==I.current&&(fe.setPositionReference(n),I.current=n)},[m,fe,O,k]),U.useEffect(()=>{if(!m)return;let e=k.current;typeof e!=`function`&&zs(e)&&e.current!==I.current&&(fe.setPositionReference(e.current),I.current=e.current)},[m,fe,O,k]),U.useEffect(()=>{if(f&&m&&pe.domReference&&pe.floating)return jt(pe.domReference,pe.floating,_e,de)},[f,m,pe,_e,de]);let Ee=Kt(ve),De=Is(r,Ee,A),Oe=It(ve)||`center`,L=!!ge.hide?.referenceHidden;qe(()=>{y&&m&&be&&S(Ee)},[y,m,be,Ee]);let ke=U.useMemo(()=>({position:`absolute`,top:ge.arrow?.y,left:ge.arrow?.x}),[ge.arrow]),R=ge.arrow?.centerOffset!==0;return U.useMemo(()=>({positionerStyles:Te,arrowStyles:ke,arrowRef:ae,arrowUncentered:R,side:De,align:Oe,physicalSide:Ee,anchorHidden:L,refs:fe,context:ye,isPositioned:be,update:_e}),[Te,ke,ae,R,De,Oe,Ee,L,fe,ye,be,_e])}function zs(e){return e!=null&&`current`in e}function Bs(e){return e===`starting`?Ye:Ue}var Vs=U.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Je,...g}=e,_=ps(),v=ws(),y=_.useState(`open`),b=_.useState(`mounted`),x=_.useState(`trackCursorAxis`),S=_.useState(`disableHoverablePopup`),C=_.useState(`floatingRootContext`),w=_.useState(`instantType`),T=_.useState(`transitionStatus`),E=Rs({anchor:i,positionMethod:a,floatingRootContext:C,mounted:b,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:v,collisionAvoidance:h,adaptiveOrigin:_.useState(`hasViewport`)?Fs:void 0}),D=U.useMemo(()=>{let e={};return(!y||x===`both`||S)&&(e.pointerEvents=`none`),{role:`presentation`,hidden:!b,style:{...E.positionerStyles,...e}}},[y,x,S,b,E.positionerStyles]),O=U.useMemo(()=>({open:y,side:E.side,align:E.align,anchorHidden:E.anchorHidden,instant:x===`none`?w:`tracking-cursor`}),[y,E.side,E.align,E.anchorHidden,x,w]),k=U.useMemo(()=>({...O,arrowRef:E.arrowRef,arrowStyles:E.arrowStyles,arrowUncentered:E.arrowUncentered}),[O,E.arrowRef,E.arrowStyles,E.arrowUncentered]),A=Ve(`div`,e,{state:O,props:[D,Bs(T),g],ref:[t,_.useStateSetter(`positionerElement`)],stateAttributesMapping:Pt});return(0,H.jsx)(Ds.Provider,{value:k,children:A})}),Hs={...Pt,...Wt},Us=U.forwardRef(function(e,t){let{className:n,render:r,...i}=e,a=ps(),{side:o,align:s}=Os(),c=a.useState(`open`),l=a.useState(`instantType`),u=a.useState(`transitionStatus`),d=a.useState(`popupProps`),f=a.useState(`floatingRootContext`);At({open:c,ref:a.context.popupRef,onComplete(){c&&a.context.onOpenChangeComplete?.(!0)}});let p=a.useState(`disabled`),m=a.useState(`closeDelay`);return Po(f,{enabled:!p,closeDelay:m}),Ve(`div`,e,{state:{open:c,side:o,align:s,instant:l,transitionStatus:u},ref:[t,a.context.popupRef,a.useStateSetter(`popupElement`)],props:[d,Bs(u),i],stateAttributesMapping:Hs})}),Ws=U.forwardRef(function(e,t){let{className:n,render:r,...i}=e,a=ps().useState(`instantType`),{open:o,arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Os();return Ve(`div`,e,{state:{open:o,side:c,align:l,uncentered:u,instant:a},ref:[t,s],props:[{style:d,"aria-hidden":!0},i],stateAttributesMapping:Pt})}),Gs=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=U.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=U.useMemo(()=>({open:t,close:n}),[t,n]);return(0,H.jsx)(ys.Provider,{value:i,children:(0,H.jsx)(lo,{delay:a,timeoutMs:r,children:e.children})})};function Ks(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,H.jsx)(Gs,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function qs(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,H.jsx)(Ks,{children:(0,H.jsx)(_s,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Js(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,H.jsx)(Ss,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Ys(e){let t=(0,W.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=Me(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,H.jsx)(Ws,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,H.jsxs)(Us,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,H.jsx)(Es,{children:(0,H.jsx)(Vs,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var Xs=window.matchMedia(`(max-width: 767px)`);function Zs(e){return Xs.addEventListener(`change`,e),()=>Xs.removeEventListener(`change`,e)}function Qs(){return Xs.matches}function $s(){return(0,U.useSyncExternalStore)(Zs,Qs)}var ec=`sidebar_state`,tc=3600*24*7,nc=`12rem`,rc=`16rem`,ic=`3rem`,ac=`b`,oc=U.createContext(null);function sc(){let e=U.useContext(oc);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function cc(e){let t=(0,W.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=$s(),[d,f]=U.useState(!1),[p,m]=U.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${ec}=${t}; path=/; max-age=${tc}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(uc):_(lc),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===ac&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),U.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=Me(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":nc,"--sidebar-width-icon":ic,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,H.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,H.jsx)(oc.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function lc(e){return!e}function uc(e){return!e}function dc(e){let t=(0,W.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=sc();if(u===`none`){let e;t[7]===r?e=t[8]:(e=Me(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,H.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":rc},t[13]=e):e=t[13];let r;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsxs)(ls,{className:`sr-only`,children:[(0,H.jsx)(us,{children:`Sidebar`}),(0,H.jsx)(ds,{children:`Displays the mobile sidebar.`})]}),t[14]=r):r=t[14];let a;t[15]===n?a=t[16]:(a=(0,H.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=a);let o;t[17]!==c||t[18]!==a?(o=(0,H.jsxs)(cs,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:e,children:[r,a]}),t[17]=c,t[18]=a,t[19]=o):o=t[19];let s;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==o?(s=(0,H.jsx)(as,{onOpenChange:m,open:p,...i,children:o}),t[20]=p,t[21]=i,t[22]=m,t[23]=o,t[24]=s):s=t[24],s}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=Me(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,H.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=Me(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,H.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,H.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,H.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function fc(e){let t=(0,W.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=sc(),o;t[4]===n?o=t[5]:(o=Me(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(Ja,{}),l=(0,H.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,H.jsxs)(Qe,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function pc(e){let t=(0,W.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=sc(),a;t[3]===n?a=t[4]:(a=Me(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,H.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function mc(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hc(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function gc(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _c(e){let t=(0,W.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=La,r=`div`,i=Be({className:Me(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function vc(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function yc(e){let t=(0,W.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Me(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var bc=He(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function xc(e){let t=(0,W.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=sc(),m=Be({className:Me(bc({variant:u,size:d}),s)},c),h=o?Js:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=La(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,H.jsx)(Ys,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,H.jsxs)(qs,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}function Sc(){let e=(0,W.c)(8),{theme:t,setTheme:n}=Ia(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(Za,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,H.jsx)(Ka,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,H.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,H.jsxs)(Qe,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function Cc(){let e=(0,W.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=Me(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),n=(0,H.jsx)(fc,{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=(0,H.jsxs)(`header`,{className:t,children:[n,(0,H.jsx)(`div`,{className:`flex w-full justify-end`,children:(0,H.jsx)(Sc,{})})]}),e[2]=r):r=e[2],r}function wc(){let e=(0,W.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,H.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,H.jsx)(De,{to:`/`,children:(0,H.jsx)(Qe,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function Tc(){let e=(0,W.c)(99),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Ec},e[0]=t):t=e[0];let n=Ca(t),r=ze(),i=S(),a;e[1]!==r||e[2]!==i?(a=function(){Sn(),wn(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=a):a=e[3];let o=a,s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(_c,{children:`General`}),e[4]=s):s=e[4];let c=n===`/`,l,u;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(Va,{className:`size-4`}),u=(0,H.jsx)(`span`,{children:`Dashboard`}),e[5]=l,e[6]=u):(l=e[5],u=e[6]);let d;e[7]===c?d=e[8]:(d=(0,H.jsxs)(gc,{children:[s,(0,H.jsx)(vc,{children:(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/`,children:(0,H.jsxs)(xc,{isActive:c,tooltip:`Dashboard`,children:[l,u]})})})})]}),e[7]=c,e[8]=d);let f;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,H.jsx)(_c,{children:`EC2`}),e[9]=f):f=e[9];let p;e[10]===n?p=e[11]:(p=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[10]=n,e[11]=p);let m,h;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,H.jsx)(Ya,{className:`size-4`}),m=(0,H.jsx)(`span`,{children:`Instances`}),e[12]=m,e[13]=h):(m=e[12],h=e[13]);let g;e[14]===p?g=e[15]:(g=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/ec2/describe-instances`,children:(0,H.jsxs)(xc,{isActive:p,tooltip:`EC2 Instances`,children:[h,m]})})}),e[14]=p,e[15]=g);let _;e[16]===n?_=e[17]:(_=n.startsWith(`/ec2/describe-images`),e[16]=n,e[17]=_);let v,y;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,H.jsx)(Ha,{className:`size-4`}),y=(0,H.jsx)(`span`,{children:`Images`}),e[18]=v,e[19]=y):(v=e[18],y=e[19]);let b;e[20]===_?b=e[21]:(b=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/ec2/describe-images`,children:(0,H.jsxs)(xc,{isActive:_,tooltip:`Images`,children:[v,y]})})}),e[20]=_,e[21]=b);let x;e[22]===n?x=e[23]:(x=n.startsWith(`/ec2/describe-key-pairs`),e[22]=n,e[23]=x);let C,w;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,H.jsx)(Ua,{className:`size-4`}),w=(0,H.jsx)(`span`,{children:`Key Pairs`}),e[24]=C,e[25]=w):(C=e[24],w=e[25]);let T;e[26]===x?T=e[27]:(T=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/ec2/describe-key-pairs`,children:(0,H.jsxs)(xc,{isActive:x,tooltip:`Key Pairs`,children:[C,w]})})}),e[26]=x,e[27]=T);let E;e[28]===n?E=e[29]:(E=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[28]=n,e[29]=E);let D,O;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,H.jsx)(Ba,{className:`size-4`}),O=(0,H.jsx)(`span`,{children:`Volumes`}),e[30]=D,e[31]=O):(D=e[30],O=e[31]);let k;e[32]===E?k=e[33]:(k=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/ec2/describe-volumes`,children:(0,H.jsxs)(xc,{isActive:E,tooltip:`Volumes`,children:[D,O]})})}),e[32]=E,e[33]=k);let A;e[34]===n?A=e[35]:(A=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[34]=n,e[35]=A);let ee,te;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,H.jsx)(Ra,{className:`size-4`}),te=(0,H.jsx)(`span`,{children:`Snapshots`}),e[36]=ee,e[37]=te):(ee=e[36],te=e[37]);let j;e[38]===A?j=e[39]:(j=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/ec2/describe-snapshots`,children:(0,H.jsxs)(xc,{isActive:A,tooltip:`Snapshots`,children:[ee,te]})})}),e[38]=A,e[39]=j);let M;e[40]!==g||e[41]!==b||e[42]!==T||e[43]!==k||e[44]!==j?(M=(0,H.jsxs)(gc,{children:[f,(0,H.jsxs)(vc,{children:[g,b,T,k,j]})]}),e[40]=g,e[41]=b,e[42]=T,e[43]=k,e[44]=j,e[45]=M):M=e[45];let N;e[46]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,H.jsx)(_c,{children:`Networking`}),e[46]=N):N=e[46];let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,H.jsx)(qa,{className:`size-4`}),ie=(0,H.jsx)(`span`,{children:`VPCs`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/ec2/describe-vpcs`,children:(0,H.jsxs)(xc,{isActive:ne,tooltip:`VPCs`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let P;e[53]===n?P=e[54]:(P=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[53]=n,e[54]=P);let F,oe;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,H.jsx)(Wa,{className:`size-4`}),oe=(0,H.jsx)(`span`,{children:`Subnets`}),e[55]=F,e[56]=oe):(F=e[55],oe=e[56]);let se;e[57]===P?se=e[58]:(se=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/ec2/describe-subnets`,children:(0,H.jsxs)(xc,{isActive:P,tooltip:`Subnets`,children:[F,oe]})})}),e[57]=P,e[58]=se);let ce;e[59]!==ae||e[60]!==se?(ce=(0,H.jsxs)(gc,{children:[N,(0,H.jsxs)(vc,{children:[ae,se]})]}),e[59]=ae,e[60]=se,e[61]=ce):ce=e[61];let le;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,H.jsx)(_c,{children:`IAM`}),e[62]=le):le=e[62];let ue;e[63]===n?ue=e[64]:(ue=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[63]=n,e[64]=ue);let de,fe;e[65]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,H.jsx)(Qa,{className:`size-4`}),fe=(0,H.jsx)(`span`,{children:`Users`}),e[65]=de,e[66]=fe):(de=e[65],fe=e[66]);let pe;e[67]===ue?pe=e[68]:(pe=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/iam/list-users`,children:(0,H.jsxs)(xc,{isActive:ue,tooltip:`Users`,children:[de,fe]})})}),e[67]=ue,e[68]=pe);let me;e[69]===n?me=e[70]:(me=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[69]=n,e[70]=me);let he,ge;e[71]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,H.jsx)(Xa,{className:`size-4`}),ge=(0,H.jsx)(`span`,{children:`Policies`}),e[71]=he,e[72]=ge):(he=e[71],ge=e[72]);let _e;e[73]===me?_e=e[74]:(_e=(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/iam/list-policies`,children:(0,H.jsxs)(xc,{isActive:me,tooltip:`Policies`,children:[he,ge]})})}),e[73]=me,e[74]=_e);let ve;e[75]!==pe||e[76]!==_e?(ve=(0,H.jsxs)(gc,{children:[le,(0,H.jsxs)(vc,{children:[pe,_e]})]}),e[75]=pe,e[76]=_e,e[77]=ve):ve=e[77];let ye;e[78]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,H.jsx)(_c,{children:`S3`}),e[78]=ye):ye=e[78];let be;e[79]===n?be=e[80]:(be=n.startsWith(`/s3/ls`),e[79]=n,e[80]=be);let xe,Se;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,H.jsx)(Ya,{className:`size-4`}),Se=(0,H.jsx)(`span`,{children:`Buckets`}),e[81]=xe,e[82]=Se):(xe=e[81],Se=e[82]);let Ce;e[83]===be?Ce=e[84]:(Ce=(0,H.jsxs)(gc,{children:[ye,(0,H.jsx)(vc,{children:(0,H.jsx)(yc,{children:(0,H.jsx)(De,{to:`/s3/ls`,children:(0,H.jsxs)(xc,{isActive:be,tooltip:`Buckets`,children:[xe,Se]})})})})]}),e[83]=be,e[84]=Ce);let we;e[85]!==M||e[86]!==ce||e[87]!==ve||e[88]!==Ce||e[89]!==d?(we=(0,H.jsxs)(hc,{children:[d,M,ce,ve,Ce]}),e[85]=M,e[86]=ce,e[87]=ve,e[88]=Ce,e[89]=d,e[90]=we):we=e[90];let Te,I;e[91]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,H.jsx)(Ga,{className:`size-4`}),I=(0,H.jsx)(`span`,{children:`Sign out`}),e[91]=Te,e[92]=I):(Te=e[91],I=e[92]);let Ee;e[93]===o?Ee=e[94]:(Ee=(0,H.jsx)(mc,{children:(0,H.jsx)(vc,{children:(0,H.jsx)(yc,{children:(0,H.jsxs)(xc,{onClick:o,tooltip:`Sign out`,children:[Te,I]})})})}),e[93]=o,e[94]=Ee);let Oe;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,H.jsx)(pc,{}),e[95]=Oe):Oe=e[95];let L;return e[96]!==we||e[97]!==Ee?(L=(0,H.jsxs)(dc,{collapsible:`icon`,children:[we,Ee,Oe]}),e[96]=we,e[97]=Ee,e[98]=L):L=e[98],L}function Ec(e){return e.pathname}function Dc(e){let t=(0,W.c)(18),{error:n,reset:r}=e,i=Re(),a=S(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(Tc,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(Cc,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,H.jsx)(`div`,{className:`flex justify-center`,children:(0,H.jsx)(za,{className:`size-12 text-destructive`})}),d=(0,H.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,H.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,H.jsx)(Qe,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,H.jsx)(De,{to:`/`,children:(0,H.jsx)(Qe,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,H.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,H.jsxs)(H.Fragment,{children:[c,(0,H.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,H.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,H.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var Oc=Oe()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Oa,{}),(0,H.jsx)(Tc,{}),(0,H.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,H.jsx)(Cc,{}),(0,H.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,H.jsx)(ga,{})})]})]}),errorComponent:Dc,notFoundComponent:wc}),kc=L(`/login`)({beforeLoad:()=>{if(Cn())throw we({to:`/`})},component:R(()=>B(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),`component`)}),Ac=L(`/_auth`)({beforeLoad:()=>{if(!Cn())throw we({to:`/login`})},component:R(()=>B(()=>import(`./route.js`),__vite__mapDeps([13,1,14,11])),`component`)}),jc=L(`/_auth/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Nn)},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:R(()=>B(()=>import(`./_auth.js`),__vite__mapDeps([15,1,2,3,16,4,17,18,19,20])),`component`)}),Mc=L(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Yn)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:R(()=>B(()=>import(`./ls.js`),__vite__mapDeps([21,1,2,3,22,17,5,6,18,19,14,11,23,24,20])),`component`)}),Nc=L(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:R(()=>B(()=>import(`./create-bucket.js`),__vite__mapDeps([25,1,2,3,26,19,27,5,6,7,8,9,14,11,10,28,23,29,30,20,12])),`component`)}),Pc=L(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:R(()=>B(()=>import(`./create-user.js`),__vite__mapDeps([31,1,2,3,32,19,27,5,6,7,8,9,14,11,10,28,23,29,30,20,12,33])),`component`)}),Fc=L(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:R(()=>B(()=>import(`./create-policy.js`),__vite__mapDeps([34,1,2,3,32,19,27,5,6,7,8,9,14,11,10,28,23,29,30,20,12,35,33])),`component`)}),Ic=L(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./create-vpc.js`),__vite__mapDeps([36,1,2,3,37,16,4,17,19,27,5,6,7,8,9,14,11,10,28,23,29,30,20,12,38])),`component`)}),Lc=L(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Bn)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./create-volume.js`),__vite__mapDeps([39,1,2,3,37,16,4,17,19,27,5,6,40,41,8,14,11,7,29,42,9,18,10,28,23,30,20,12,38])),`component`)}),Rc=L(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Tn),e.queryClient.ensureQueryData(Bn)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./create-subnet.js`),__vite__mapDeps([43,1,2,3,37,16,4,17,19,27,5,6,40,41,8,14,11,7,29,42,9,18,10,28,23,30,20,12,38])),`component`)}),zc=L(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(jn)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./create-snapshot.js`),__vite__mapDeps([44,1,2,3,37,16,4,17,19,27,5,6,40,41,8,14,11,7,29,42,9,18,10,28,23,30,20,12,35,38])),`component`)}),Bc=L(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./import-key-pair.js`),__vite__mapDeps([45,1,2,3,37,16,4,17,19,27,5,6,7,8,9,14,11,10,28,23,29,30,20,12,35,38])),`component`)}),Vc=L(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./create-key-pair.js`),__vite__mapDeps([46,1,2,3,37,16,4,17,19,27,47,5,6,7,8,9,14,11,10,28,23,29,42,48,49,30,20,12,35,38])),`component`)}),Hc=L(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Rn),e.queryClient.ensureQueryData(Dn),e.queryClient.ensureQueryData(En),e.queryClient.ensureQueryData(Ln)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./run-instances.js`),__vite__mapDeps([50,1,2,3,37,16,4,17,19,27,5,6,40,41,8,14,11,7,29,42,9,18,10,28,23,20,12,38])),`component`)}),Uc=L(`/_auth/s3/ls/$bucket`)({component:R(()=>B(()=>import(`./route2.js`),__vite__mapDeps([51,1,14,11])),`component`)}),Wc=L(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Xn(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:R(()=>B(()=>import(`./_bucket.js`),__vite__mapDeps([52,1,2,3,26,19,27,53,5,6,23,14,11,29,48,54,55,47,22,17,18,28,20])),`component`)}),Gc=L(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qn)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:R(()=>B(()=>import(`./list-users.js`),__vite__mapDeps([56,1,2,3,57,17,5,6,18,19,14,11,23,24,20])),`component`)}),Kc=L(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Kn)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:R(()=>B(()=>import(`./list-policies.js`),__vite__mapDeps([58,1,2,3,57,17,5,6,18,19,14,11,23,24,20])),`component`)}),qc=L(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tn)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./describe-vpcs.js`),__vite__mapDeps([59,1,2,3,16,4,17,5,6,18,19,14,11,23,24,20,60])),`component`)}),Jc=L(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jn)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./describe-volumes.js`),__vite__mapDeps([61,1,2,3,16,4,17,5,6,18,19,14,11,23,24,20,60])),`component`)}),Yc=L(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ln)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./describe-subnets.js`),__vite__mapDeps([62,1,2,3,16,4,17,5,6,18,19,14,11,23,24,20,60])),`component`)}),Xc=L(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(On)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./describe-snapshots.js`),__vite__mapDeps([63,1,2,3,16,4,17,5,6,18,19,14,11,23,24,20,60])),`component`)}),Zc=L(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Dn)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([64,1,2,3,16,4,17,5,6,18,19,14,11,23,24,20])),`component`)}),Qc=L(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(In)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./describe-instances.js`),__vite__mapDeps([65,1,2,3,16,4,17,5,6,18,19,14,11,23,24,20,60])),`component`)}),$c=L(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Rn)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./describe-images.js`),__vite__mapDeps([66,1,2,3,16,4,17,18,19,14,11,6,24,23,20,60])),`component`)}),el=L(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=Ne(t._splat||``);await e.queryClient.ensureQueryData(Xn(t.bucket,n))},head:({params:e})=>({meta:[{title:`${Pe(e._splat||``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:R(()=>B(()=>import(`./_.js`),__vite__mapDeps([67,1,2,3,26,19,27,53,5,6,23,14,11,29,48,54,55,47,22,17,18,28])),`component`)}),tl=L(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Gn(t.userName)),e.queryClient.ensureQueryData(Jn(t.userName)),e.queryClient.ensureQueryData(Wn(t.userName)),e.queryClient.ensureQueryData(Kn)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:R(()=>B(()=>import(`./_userName.js`),__vite__mapDeps([68,1,2,3,32,19,27,57,17,47,5,6,18,14,11,10,28,23,29,42,54,49,55,69,20,60])),`component`)}),nl=L(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(Un(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(Hn(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:R(()=>B(()=>import(`./_policyArn.js`),__vite__mapDeps([70,1,2,3,32,19,27,57,17,47,5,6,18,14,11,10,28,23,29,54,55,69,20])),`component`)}),rl=L(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(An(t.id)),e.queryClient.ensureQueryData(Ln)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:R(()=>B(()=>import(`./_id8.js`),__vite__mapDeps([71,1,2,3,37,16,4,17,19,27,47,5,6,18,14,11,23,10,28,29,54,55,69,20,60])),`component`)}),il=L(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Pn(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./_id7.js`),__vite__mapDeps([72,1,2,3,37,16,4,17,19,27,5,6,7,8,9,18,14,11,10,28,23,29,30,20,12,38])),`component`)}),al=L(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Pn(t.id)),e.queryClient.ensureQueryData(In)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./_id6.js`),__vite__mapDeps([73,1,2,3,37,16,4,17,19,27,47,5,6,40,41,8,14,11,7,29,42,18,23,10,28,54,55,69,20,60,12])),`component`)}),ol=L(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(kn(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:R(()=>B(()=>import(`./_id5.js`),__vite__mapDeps([74,1,2,3,37,16,4,17,19,27,47,5,6,18,14,11,23,10,28,29,54,55,69,20,60])),`component`)}),sl=L(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Vn(t.id)),e.queryClient.ensureQueryData(Nn)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./_id4.js`),__vite__mapDeps([75,1,2,3,37,16,4,17,19,27,47,5,6,7,8,18,14,11,23,10,29,28,54,55,69,20,60,12])),`component`)}),cl=L(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(zn(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./_id3.js`),__vite__mapDeps([76,1,2,3,37,16,4,17,19,27,47,5,6,18,14,11,10,28,23,29,54,55,69,20])),`component`)}),ll=L(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(Mn(t.id)),e.queryClient.ensureQueryData(En)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(Fn(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./_id2.js`),__vite__mapDeps([77,1,2,3,37,16,4,17,19,27,47,5,6,40,41,8,14,11,7,29,42,18,23,28,54,69,20,60,12,35,78])),`component`)}),ul=L(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Fn(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:R(()=>B(()=>import(`./_id.js`),__vite__mapDeps([79,1,2,3,16,4,17,18,19,14,11,6,28,23,29,69,20,60,78])),`component`)}),dl=kc.update({id:`/login`,path:`/login`,getParentRoute:()=>Oc}),q=Ac.update({id:`/_auth`,getParentRoute:()=>Oc}),fl=jc.update({id:`/`,path:`/`,getParentRoute:()=>q}),pl=Mc.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>q}),ml=Nc.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>q}),hl=Pc.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>q}),gl=Fc.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>q}),_l=Ic.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>q}),vl=Lc.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>q}),yl=Rc.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>q}),bl=zc.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>q}),xl=Bc.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>q}),Sl=Vc.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>q}),Cl=Hc.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>q}),wl=Uc.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>q}),Tl=Wc.update({id:`/`,path:`/`,getParentRoute:()=>wl}),El=Gc.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>q}),Dl=Kc.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>q}),Ol=qc.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>q}),kl=Jc.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>q}),Al=Yc.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>q}),jl=Xc.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>q}),Ml=Zc.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>q}),Nl=Qc.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>q}),Pl=$c.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>q}),Fl=el.update({id:`/$`,path:`/$`,getParentRoute:()=>wl}),Il=tl.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>q}),J=nl.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>q}),Ll=rl.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>q}),Y=il.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>q}),X=al.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>q}),Z=ol.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>q}),Rl=sl.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>q}),zl=cl.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>q}),Bl=ll.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>q}),Vl=ul.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>q}),Hl={AuthS3LsBucketSplatRoute:Fl,AuthS3LsBucketIndexRoute:Tl},Ul={AuthIndexRoute:fl,AuthS3LsBucketRouteRoute:wl._addFileChildren(Hl),AuthEc2instancesRunInstancesRoute:Cl,AuthEc2keyCreateKeyPairRoute:Sl,AuthEc2keyImportKeyPairRoute:xl,AuthEc2snapshotsCreateSnapshotRoute:bl,AuthEc2subnetCreateSubnetRoute:yl,AuthEc2volumesCreateVolumeRoute:vl,AuthEc2vpcCreateVpcRoute:_l,AuthIampoliciesCreatePolicyRoute:gl,AuthIamusersCreateUserRoute:hl,AuthS3bucketsCreateBucketRoute:ml,AuthS3LsIndexRoute:pl,AuthEc2imagesDescribeImagesIdRoute:Vl,AuthEc2instancesDescribeInstancesIdRoute:Bl,AuthEc2keyDescribeKeyPairsIdRoute:zl,AuthEc2snapshotsDescribeSnapshotsIdRoute:Rl,AuthEc2subnetDescribeSubnetsIdRoute:Z,AuthEc2volumesDescribeVolumesIdRoute:X,AuthEc2volumesModifyVolumeIdRoute:Y,AuthEc2vpcDescribeVpcsIdRoute:Ll,AuthIampoliciesListPoliciesPolicyArnRoute:J,AuthIamusersListUsersUserNameRoute:Il,AuthEc2imagesDescribeImagesIndexRoute:Pl,AuthEc2instancesDescribeInstancesIndexRoute:Nl,AuthEc2keyDescribeKeyPairsIndexRoute:Ml,AuthEc2snapshotsDescribeSnapshotsIndexRoute:jl,AuthEc2subnetDescribeSubnetsIndexRoute:Al,AuthEc2volumesDescribeVolumesIndexRoute:kl,AuthEc2vpcDescribeVpcsIndexRoute:Ol,AuthIampoliciesListPoliciesIndexRoute:Dl,AuthIamusersListUsersIndexRoute:El},Wl={AuthRouteRoute:q._addFileChildren(Ul),LoginRoute:dl},Gl=Oc._addFileChildren(Wl)._addFileTypes(),Kl=new lr({defaultOptions:{queries:{staleTime:5e3}}}),ql=ya({routeTree:Gl,context:{queryClient:Kl},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Jl=document.querySelector(`#app`);Jl&&!Jl.innerHTML&&Ma.createRoot(Jl).render((0,H.jsx)(U.StrictMode,{children:(0,H.jsx)(Fa,{defaultTheme:`system`,storageKey:`hive-ui-theme`,children:(0,H.jsx)(D,{client:Kl,children:(0,H.jsx)(cc,{children:(0,H.jsx)(Sa,{router:ql})})})})}));export{ga as A,G as C,io as D,ro as E,Qn as M,no as O,Co as S,oo as T,ts as _,ol as a,Zo as b,rl as c,el as d,Wc as f,is as g,Rs as h,sl as i,ar as j,Ra as k,nl as l,Bs as m,ll as n,al as o,zc as p,cl as r,il as s,ul as t,tl as u,$o as v,so as w,Xo as x,Qo as y}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/index10.js b/hive/services/hiveui/frontend/dist/assets/index10.js deleted file mode 100644 index b62462acf..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index10.js +++ /dev/null @@ -1 +0,0 @@ -import{c as o,w as c,j as t,n as m,L as u,B as l}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{L as p}from"./list-card.js";import{P as S}from"./page-heading.js";import{S as f}from"./state-badge.js";function y(){const e=o.c(5),{data:s}=d(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(S,{actions:t.jsx(u,{to:"/ec2/create-subnet",children:t.jsx(l,{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(b)}):t.jsx("p",{className:"text-muted-foreground",children:"No subnets found."})]}),e[3]=a,e[4]=i):i=e[4],i}function b(e){if(!e.SubnetId)return null;const s=m(e.Tags);return t.jsx(p,{badge:t.jsx(f,{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)}export{y as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index11.js b/hive/services/hiveui/frontend/dist/assets/index11.js deleted file mode 100644 index 39349fe31..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index11.js +++ /dev/null @@ -1 +0,0 @@ -import{c as i,E 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 deleted file mode 100644 index bca8c6c82..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index12.js +++ /dev/null @@ -1 +0,0 @@ -import{c as m,t 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 deleted file mode 100644 index 1548fb230..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index13.js +++ /dev/null @@ -1 +0,0 @@ -import{c as i,F as c,j as e,L as m,B as d}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as u}from"./list-card.js";import{P as l}from"./page-heading.js";import{S as I}from"./state-badge.js";const o={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function R(){const t=i.c(3),{data:s}=p(c);let n;if(t[0]!==s.Reservations){const a=(s.Reservations?.flatMap(g)||[]).toSorted(x);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(l,{actions:e.jsx(m,{to:"/ec2/run-instances",children:e.jsx(d,{children:"Run Instances"})}),title:"EC2 Instances"}),t[2]=r):r=t[2],n=e.jsxs(e.Fragment,{children:[r,a.length>0?e.jsx("div",{className:"space-y-4",children:a.map(f)}):e.jsx("p",{className:"text-muted-foreground",children:"No instances found."})]}),t[0]=s.Reservations,t[1]=n}else n=t[1];return n}function f(t){return t.InstanceId?e.jsx(u,{badge:e.jsx(I,{state:t.State?.Name}),params:{id:t.InstanceId},subtitle:`${t.InstanceType} • ${t.ImageId}`,title:t.InstanceId,to:"/ec2/describe-instances/$id"},t.InstanceId):null}function x(t,s){const n=o[t.State?.Name??""]??6,a=o[s.State?.Name??""]??6;return n!==a?n-a:(t.InstanceId??"").localeCompare(s.InstanceId??"")}function g(t){return t.Instances||[]}export{R as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index14.js b/hive/services/hiveui/frontend/dist/assets/index14.js deleted file mode 100644 index 1d05ede88..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index14.js +++ /dev/null @@ -1 +0,0 @@ -import{c as n,q 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 deleted file mode 100644 index 9441cd9a5..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index2.js +++ /dev/null @@ -1 +0,0 @@ -import{d6 as z,d7 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()??new Uint8Array;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 deleted file mode 100644 index f1e4c03a5..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index3.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 859b9e2d6..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index4.js +++ /dev/null @@ -1 +0,0 @@ -import{c as i,h as c,j as t,i as m,L as u,B as l}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as f}from"./page-heading.js";function N(){const e=i.c(5),{data:n}=p(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(f,{actions:t.jsx(u,{to:"/s3/create-bucket",children:t.jsx(l,{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(x)}):t.jsx("p",{className:"text-muted-foreground",children:"No buckets found."})]}),e[3]=a,e[4]=o):o=e[4],o}function x(e){return e.Name?t.jsx(d,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${m(e.CreationDate)}`:void 0,title:e.Name,to:"/s3/ls/$bucket"},e.Name):null}export{N as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index5.js b/hive/services/hiveui/frontend/dist/assets/index5.js deleted file mode 100644 index abad4e6d1..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index5.js +++ /dev/null @@ -1 +0,0 @@ -import{c as b,x as y,j as s,y as k,z 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 F}from"./page-heading.js";import{a as K}from"./s3.js";import{U as v,F as E,O as U}from"./upload-button.js";import"./delete-confirmation-dialog.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";function $(){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=K();let p;e[2]!==i.Contents?(p=i.Contents||[],e[2]=i.Contents,e[3]=p):p=e[3];const n=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(v,{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(F,{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(o=>{if(!o.Prefix)return null;const P=k(o.Prefix);return s.jsx(E,{bucketName:t,folderName:P,fullPrefix:o.Prefix},o.Prefix)})})]}),e[16]=t,e[17]=l,e[18]=u):u=e[18];let f;e[19]!==t||e[20]!==n?(f=n.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),n.map(o=>o.Key?s.jsx(U,{bucketName:t,displayName:o.Key,fullKey:o.Key,object:o},o.Key):null)]}),e[19]=t,e[20]=n,e[21]=f):f=e[21];let d;e[22]!==l.length||e[23]!==n.length?(d=n.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]=n.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{$ as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index6.js b/hive/services/hiveui/frontend/dist/assets/index6.js deleted file mode 100644 index fbee613fe..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index6.js +++ /dev/null @@ -1 +0,0 @@ -import{c as m,A as n,j as s,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 deleted file mode 100644 index 419cb65f4..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index7.js +++ /dev/null @@ -1 +0,0 @@ -import{c as n,C as a,j as t,i 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:i}=p(a);let o;if(e[0]!==i.Policies){const s=(i.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,s.length>0?t.jsx("div",{className:"space-y-4",children:s.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No IAM policies found."})]}),e[0]=i.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,i){const o=e.PolicyName?.toLowerCase()??"",s=i.PolicyName?.toLowerCase()??"";return o.localeCompare(s)}export{h as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index8.js b/hive/services/hiveui/frontend/dist/assets/index8.js deleted file mode 100644 index 43e495e83..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index8.js +++ /dev/null @@ -1 +0,0 @@ -import{c,m as i,j as t,n as m,L as d,B as l}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as u}from"./list-card.js";import{P as f}from"./page-heading.js";import{S as x}from"./state-badge.js";function P(){const e=c.c(5),{data:s}=p(i);let a;e[0]!==s.Vpcs?(a=s.Vpcs||[],e[0]=s.Vpcs,e[1]=a):a=e[1];const r=a;let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(f,{actions:t.jsx(d,{to:"/ec2/create-vpc",children:t.jsx(l,{children:"Create VPC"})}),title:"VPCs"}),e[2]=n):n=e[2];let o;return e[3]!==r?(o=t.jsxs(t.Fragment,{children:[n,r.length>0?t.jsx("div",{className:"space-y-4",children:r.map(V)}):t.jsx("p",{className:"text-muted-foreground",children:"No VPCs found."})]}),e[3]=r,e[4]=o):o=e[4],o}function V(e){if(!e.VpcId)return null;const s=m(e.Tags);return t.jsx(u,{badge:t.jsx(x,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??"",title:s?`${e.VpcId} (${s})`:e.VpcId,to:"/ec2/describe-vpcs/$id"},e.VpcId)}export{P as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index9.js b/hive/services/hiveui/frontend/dist/assets/index9.js deleted file mode 100644 index a8d4bf9f3..000000000 --- a/hive/services/hiveui/frontend/dist/assets/index9.js +++ /dev/null @@ -1 +0,0 @@ -import{c as m,p 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:i}=c(l);let s;e[0]!==i.Volumes?(s=i.Volumes||[],e[0]=i.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 a;return e[3]!==o?(a=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]=a):a=e[4],a}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 deleted file mode 100644 index 6fbe5295a..000000000 --- a/hive/services/hiveui/frontend/dist/assets/input.js +++ /dev/null @@ -1 +0,0 @@ -import{r as b,b2 as h,b6 as U,b7 as $,b8 as A,b9 as K,ba 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/lazyRouteComponent.js b/hive/services/hiveui/frontend/dist/assets/lazyRouteComponent.js new file mode 100644 index 000000000..90957b0cb --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/lazyRouteComponent.js @@ -0,0 +1 @@ +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{S as r,h as i,j as a,m as o,t as s,u as c}from"./useRouterState.js";import{a as l,i as u,n as d,t as f}from"./matchContext.js";import{t as p}from"./link.js";import{d as m}from"./utils.js";import{t as h}from"./useRouter.js";import{t as g}from"./useNavigate.js";var _=class{constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=l:this.parentRoute||r(!1,`Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.`);let a=n?l:t?.path;a&&a!==`/`&&(a=o(a));let s=t?.id||a,u=n?l:c([this.parentRoute.id===`__root__`?``:this.parentRoute.id,s]);a===`__root__`&&(a=`/`),u!==`__root__`&&(u=c([`/`,u]));let d=u===`__root__`?`/`:c([this.parentRoute.fullPath,a]);this._path=a,this._id=u,this._fullPath=d,this._to=i(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>u({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}},v=class extends _{constructor(e){super(e)}},y=e(n(),1);function b(e){let t=y.useContext(e.from?f:d);return s({select:n=>{let i=n.matches.find(n=>e.from?e.from===n.routeId:n.id===t);if(r(!((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 x(e){return b({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function S(e){let{select:t,...n}=e;return b({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function C(e){return b({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function w(e){return b({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var T=t(),E=class extends _{constructor(e){super(e),this.useMatch=e=>b({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>b({...e,from:this.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>w({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>C({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>S({...e,from:this.id}),this.useLoaderData=e=>x({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,T.jsx)(p,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function D(e){return new E(e)}function O(){return e=>A(e)}var k=class extends v{constructor(e){super(e),this.useMatch=e=>b({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>b({...e,from:this.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>w({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>C({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>S({...e,from:this.id}),this.useLoaderData=e=>x({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,T.jsx)(p,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function A(e){return new k(e)}function j(e){return typeof e==`object`?new M(e,{silent:!0}).createRoute(e):new M(e,{silent:!0}).createRoute}var M=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=D(e);return t.isRoot=!1,t},this.silent=t?.silent}},N=class{constructor(e){this.useMatch=e=>b({select:e?.select,from:this.options.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>b({from:this.options.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>w({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useParams=e=>C({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useLoaderDeps=e=>S({...e,from:this.options.id}),this.useLoaderData=e=>x({...e,from:this.options.id}),this.useNavigate=()=>g({from:h().routesById[this.options.id].fullPath}),this.options=e,this.$$typeof=Symbol.for(`react.memo`)}};function P(e){return typeof e==`object`?new N(e):t=>new N({id:e,...t})}function F(e,t){let n,r,i,o,s=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,a(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),o=!0)}}),n),c=function(e){if(o)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(m)m(s());else throw s();return y.createElement(r,e)};return c.preload=s,c}export{O as i,j as n,P as r,F as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/link.js b/hive/services/hiveui/frontend/dist/assets/link.js new file mode 100644 index 000000000..195e2de27 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/link.js @@ -0,0 +1 @@ +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{A as r,E as ee,a as i,c as a,d as o,k as s,t as c}from"./useRouterState.js";import{f as te,p as ne,u as l}from"./utils.js";import{t as u}from"./useRouter.js";var d=`Error preloading route! ☝️`;t();var f=e(n(),1),re=e(l(),1);function p(e,t){let n=u(),l=te(t),{activeProps:p,inactiveProps:_,activeOptions:v,to:y,preload:fe,preloadDelay:pe,hashScrollIntoView:b,replace:me,startTransition:he,resetScroll:ge,viewTransition:_e,children:x,target:S,disabled:C,style:w,className:T,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:ve,params:ye,search:be,hash:xe,state:Se,mask:Ce,reloadDocument:we,unsafeRelative:Te,from:Ee,_fromLocation:De,...M}=e,N=i(),Oe=c({select:e=>{let t=e.matches[e.matches.length-1];return{search:t?.search,hash:e.location.hash,path:t?.pathname}},structuralSharing:!0}),P=e.from,F=f.useMemo(()=>({...e,from:P}),[n,Oe,P,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),I=f.useMemo(()=>n.buildLocation({...F}),[n,F]),L=I.maskedLocation?I.maskedLocation.publicHref:I.publicHref,R=I.maskedLocation?I.maskedLocation.external:I.external,z=f.useMemo(()=>le(L,R,n.history,C),[C,R,L,n.history]),B=f.useMemo(()=>{if(z?.external)return r(z.href,n.protocolAllowlist)?void 0:z.href;if(!ue(y)&&!(typeof y!=`string`||y.indexOf(`:`)===-1))try{return new URL(y),r(y,n.protocolAllowlist)?void 0:y}catch{}},[y,z,n.protocolAllowlist]),V=c({select:e=>{if(B)return!1;if(v?.exact){if(!a(e.location.pathname,I.pathname,n.basepath))return!1}else{let t=o(e.location.pathname,n.basepath),r=o(I.pathname,n.basepath);if(!(t.startsWith(r)&&(t.length===r.length||t[r.length]===`/`)))return!1}return(v?.includeSearch??!0)&&!ee(e.location.search,I.search,{partial:!v?.exact,ignoreUndefined:!v?.explicitUndefined})?!1:v?.includeHash?N&&e.location.hash===I.hash:!0}}),H=V?s(p,{})??ie:m,U=V?m:s(_,{})??m,W=[T,H.className,U.className].filter(Boolean).join(` `),G=(w||H.style||U.style)&&{...w,...H.style,...U.style},[ke,K]=f.useState(!1),q=f.useRef(!1),J=e.reloadDocument||B?!1:fe??n.options.defaultPreload,Y=pe??n.options.defaultPreloadDelay??0,X=f.useCallback(()=>{n.preloadRoute({...F,_builtLocation:I}).catch(e=>{console.warn(e),console.warn(d)})},[n,F,I]);ne(l,f.useCallback(e=>{e?.isIntersecting&&X()},[X]),ce,{disabled:!!C||J!==`viewport`}),f.useEffect(()=>{q.current||!C&&J===`render`&&(X(),q.current=!0)},[C,X,J]);let Ae=e=>{let t=e.currentTarget.getAttribute(`target`),r=S===void 0?t:S;if(!C&&!de(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,re.flushSync)(()=>{K(!0)});let t=n.subscribe(`onResolved`,()=>{t(),K(!1)});n.navigate({...F,replace:me,resetScroll:ge,hashScrollIntoView:b,startTransition:he,viewTransition:_e,ignoreBlocker:ve})}};if(B)return{...M,ref:l,href:B,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...w&&{style:w},...T&&{className:T},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let Z=e=>{if(C||J!==`intent`)return;if(!Y){X();return}let t=e.currentTarget;if(h.has(t))return;let n=setTimeout(()=>{h.delete(t),X()},Y);h.set(t,n)},Q=e=>{C||J!==`intent`||X()},$=e=>{if(C||!J||!Y)return;let t=e.currentTarget,n=h.get(t);n&&(clearTimeout(n),h.delete(t))};return{...M,...H,...U,href:z?.href,ref:l,onClick:g([E,Ae]),onBlur:g([D,$]),onFocus:g([O,Z]),onMouseEnter:g([k,Z]),onMouseLeave:g([A,$]),onTouchStart:g([j,Q]),disabled:!!C,target:S,...G&&{style:G},...W&&{className:W},...C&&ae,...V&&oe,...N&&ke&&se}}var m={},ie={className:`active`},ae={role:`link`,"aria-disabled":!0},oe={"data-status":`active`,"aria-current":`page`},se={"data-transitioning":`transitioning`},h=new WeakMap,ce={rootMargin:`100px`},g=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function le(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function ue(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var _=f.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:ee,...i}=p(r,t),a=typeof r.children==`function`?r.children({isActive:i[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=i;return f.createElement(`a`,t,a)}return f.createElement(n,i,a)});function de(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}export{_ as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/list-card.js b/hive/services/hiveui/frontend/dist/assets/list-card.js index d568b46e1..1ead9e6ab 100644 --- a/hive/services/hiveui/frontend/dist/assets/list-card.js +++ b/hive/services/hiveui/frontend/dist/assets/list-card.js @@ -1 +1 @@ -import{c as u,j as m,L as h}from"./index.js";function b(x){const e=u.c(22);let s,l,i,t,r;e[0]!==x?({title:r,subtitle:t,badge:s,children:l,...i}=x,e[0]=x,e[1]=s,e[2]=l,e[3]=i,e[4]=t,e[5]=r):(s=e[1],l=e[2],i=e[3],t=e[4],r=e[5]);let c;e[6]!==r?(c=m.jsx("h3",{className:"font-semibold",children:r}),e[6]=r,e[7]=c):c=e[7];let n;e[8]!==t?(n=t&&m.jsx("p",{className:"mt-1 font-medium text-muted-foreground text-sm",children:t}),e[8]=t,e[9]=n):n=e[9];let a;e[10]!==l||e[11]!==c||e[12]!==n?(a=m.jsxs("div",{className:"flex-1",children:[c,n,l]}),e[10]=l,e[11]=c,e[12]=n,e[13]=a):a=e[13];let o;e[14]!==s?(o=s&&m.jsx("div",{className:"ml-4",children:s}),e[14]=s,e[15]=o):o=e[15];let d;e[16]!==a||e[17]!==o?(d=m.jsxs("div",{className:"flex items-start justify-between",children:[a,o]}),e[16]=a,e[17]=o,e[18]=d):d=e[18];let f;return e[19]!==i||e[20]!==d?(f=m.jsx(h,{className:"block rounded-lg border bg-card p-4 transition-colors hover:bg-accent",...i,children:d}),e[19]=i,e[20]=d,e[21]=f):f=e[21],f}export{b as L}; +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./link.js";var r=t(),i=e();function a(e){let t=(0,r.c)(22),a,o,s,c,l;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),t[6]=l,t[7]=u);let d;t[8]===c?d=t[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),t[8]=c,t[9]=d);let f;t[10]!==o||t[11]!==u||t[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),t[10]=o,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===a?p=t[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),t[14]=a,t[15]=p);let m;t[16]!==f||t[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==m?(h=(0,i.jsx)(n,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),t[19]=s,t[20]=m,t[21]=h):h=t[21],h}export{a as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/list-policies.js b/hive/services/hiveui/frontend/dist/assets/list-policies.js new file mode 100644 index 000000000..902be07a4 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/list-policies.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import{a as i}from"./utils.js";import{t as a}from"./button.js";import"./awsClient.js";import{r as o}from"./iam2.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(3),{data:t}=n(o),i;if(e[0]!==t.Policies){let n=(t.Policies||[]).toSorted(p),o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/iam/create-policy`,children:(0,u.jsx)(a,{children:`Create Policy`})}),title:`IAM Policies`}),e[2]=o):o=e[2],i=(0,u.jsxs)(u.Fragment,{children:[o,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),e[0]=t.Policies,e[1]=i}else i=e[1];return i}function f(e){return e.Arn?(0,u.jsx)(c,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:`${e.Arn} • Created ${i(e.CreateDate)}`,title:e.PolicyName??``,to:`/iam/list-policies/$policyArn`},e.Arn):null}function p(e,t){let n=e.PolicyName?.toLowerCase()??``,r=t.PolicyName?.toLowerCase()??``;return n.localeCompare(r)}export{d as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/list-users.js b/hive/services/hiveui/frontend/dist/assets/list-users.js new file mode 100644 index 000000000..20f19ee1f --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/list-users.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import{a as i}from"./utils.js";import{t as a}from"./button.js";import"./awsClient.js";import{s as o}from"./iam2.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(3),{data:t}=n(o),i;if(e[0]!==t.Users){let n=(t.Users||[]).toSorted(p),o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/iam/create-user`,children:(0,u.jsx)(a,{children:`Create User`})}),title:`IAM Users`}),e[2]=o):o=e[2],i=(0,u.jsxs)(u.Fragment,{children:[o,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),e[0]=t.Users,e[1]=i}else i=e[1];return i}function f(e){return e.UserName?(0,u.jsx)(c,{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 p(e,t){let n=e.UserName?.toLowerCase()??``,r=t.UserName?.toLowerCase()??``;return n.localeCompare(r)}export{d as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/login.js b/hive/services/hiveui/frontend/dist/assets/login.js index 6bdbcd5cf..1c0ced282 100644 --- a/hive/services/hiveui/frontend/dist/assets/login.js +++ b/hive/services/hiveui/frontend/dist/assets/login.js @@ -1 +1 @@ -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}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{n as i}from"./utils.js";import{t as a}from"./useNavigate.js";import{t as o}from"./button.js";import"./separator.js";import{Gt as s,Wt as c,n as l,qt as u,t as d}from"./awsClient.js";import{t as f}from"./DescribeInstancesCommand.js";import{O as p}from"./index.js";import{i as m,n as h,r as g,t as _}from"./field.js";import{r as v,t as y}from"./zod.js";var b=e(n()),x=r(),S=t();function C(e){let t=(0,x.c)(10),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o=a===void 0?`default`:a,s;t[4]===n?s=t[5]:(s=i(`group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground 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`,n),t[4]=n,t[5]=s);let c;return t[6]!==r||t[7]!==o||t[8]!==s?(c=(0,S.jsx)(`div`,{className:s,"data-size":o,"data-slot":`card`,...r}),t[6]=r,t[7]=o,t[8]=s,t[9]=c):c=t[9],c}function w(e){let t=(0,x.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,S.jsx)(`div`,{className:a,"data-slot":`card-header`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function T(e){let t=(0,x.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-sm font-medium`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,S.jsx)(`div`,{className:a,"data-slot":`card-title`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function E(e){let t=(0,x.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`px-4 group-data-[size=sm]/card:px-3`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,S.jsx)(`div`,{className:a,"data-slot":`card-content`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function D(){let e=(0,x.c)(44),t=a(),[n,r]=(0,b.useState)(null),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={resolver:y(c)},e[0]=i):i=e[0];let{register:D,handleSubmit:O,formState:k}=v(i),{errors:A,isSubmitting:j}=k,M;e[1]===t?M=e[2]:(M=async function(e){r(null),d(),u(e);try{await l().send(new f({})),t({to:`/`})}catch{s(),d(),r(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}},e[1]=t,e[2]=M);let N=M,P;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,S.jsx)(w,{children:(0,S.jsx)(T,{children:`AWS Credentials`})}),e[3]=P):P=e[3];let F;e[4]===n?F=e[5]:(F=n&&(0,S.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:n}),e[4]=n,e[5]=F);let I;e[6]!==O||e[7]!==N?(I=O(N),e[6]=O,e[7]=N,e[8]=I):I=e[8];let L;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,S.jsx)(m,{children:(0,S.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),e[9]=L):L=e[9];let R=!!A.accessKeyId,z;e[10]===D?z=e[11]:(z=D(`accessKeyId`),e[10]=D,e[11]=z);let B;e[12]!==R||e[13]!==z?(B=(0,S.jsx)(p,{"aria-invalid":R,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...z}),e[12]=R,e[13]=z,e[14]=B):B=e[14];let V;e[15]===A.accessKeyId?V=e[16]:(V=(0,S.jsx)(h,{errors:[A.accessKeyId]}),e[15]=A.accessKeyId,e[16]=V);let H;e[17]!==V||e[18]!==B?(H=(0,S.jsxs)(_,{children:[L,B,V]}),e[17]=V,e[18]=B,e[19]=H):H=e[19];let U;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,S.jsx)(m,{children:(0,S.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),e[20]=U):U=e[20];let W=!!A.secretAccessKey,G;e[21]===D?G=e[22]:(G=D(`secretAccessKey`),e[21]=D,e[22]=G);let K;e[23]!==W||e[24]!==G?(K=(0,S.jsx)(p,{"aria-invalid":W,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...G}),e[23]=W,e[24]=G,e[25]=K):K=e[25];let q;e[26]===A.secretAccessKey?q=e[27]:(q=(0,S.jsx)(h,{errors:[A.secretAccessKey]}),e[26]=A.secretAccessKey,e[27]=q);let J;e[28]!==K||e[29]!==q?(J=(0,S.jsxs)(_,{children:[U,K,q]}),e[28]=K,e[29]=q,e[30]=J):J=e[30];let Y=j?`Signing in...`:`Sign In`,X;e[31]!==j||e[32]!==Y?(X=(0,S.jsx)(o,{className:`w-full`,disabled:j,type:`submit`,children:Y}),e[31]=j,e[32]=Y,e[33]=X):X=e[33];let Z;e[34]!==H||e[35]!==J||e[36]!==X?(Z=(0,S.jsxs)(g,{children:[H,J,X]}),e[34]=H,e[35]=J,e[36]=X,e[37]=Z):Z=e[37];let Q;e[38]!==Z||e[39]!==I?(Q=(0,S.jsx)(`form`,{onSubmit:I,children:Z}),e[38]=Z,e[39]=I,e[40]=Q):Q=e[40];let $;return e[41]!==Q||e[42]!==F?($=(0,S.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,S.jsxs)(C,{className:`w-full max-w-sm`,children:[P,(0,S.jsxs)(E,{children:[F,Q]})]})}),e[41]=Q,e[42]=F,e[43]=$):$=e[43],$}export{D as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/ls.js b/hive/services/hiveui/frontend/dist/assets/ls.js new file mode 100644 index 000000000..b81674bc3 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/ls.js @@ -0,0 +1 @@ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import"./useRouterState.js";import{t as r}from"./link.js";import{a as i}from"./utils.js";import{t as a}from"./button.js";import"./awsClient.js";import{n as o}from"./s32.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets||[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`S3 Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/matchContext.js b/hive/services/hiveui/frontend/dist/assets/matchContext.js new file mode 100644 index 000000000..cae4cb6f4 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/matchContext.js @@ -0,0 +1 @@ +import{a as e,r as t}from"./compiler-runtime.js";function n(e){return!!e?.isNotFound}var r=`__root__`;function i(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{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function a(e){return e instanceof Response&&!!e.options}var o=e(t(),1),s=o.createContext(void 0),c=o.createContext(void 0);export{r as a,i,s as n,n as o,a as r,c as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/page-heading.js b/hive/services/hiveui/frontend/dist/assets/page-heading.js index bdf637290..228291c31 100644 --- a/hive/services/hiveui/frontend/dist/assets/page-heading.js +++ b/hive/services/hiveui/frontend/dist/assets/page-heading.js @@ -1 +1 @@ -import{c as o,j as n}from"./index.js";function f(m){const e=o.c(12),{title:x,subtitle:r,actions:c}=m;let t;e[0]!==x?(t=n.jsx("h1",{className:"text-3xl",children:x}),e[0]=x,e[1]=t):t=e[1];let s;e[2]!==r?(s=r&&n.jsx("p",{className:"mt-1 text-muted-foreground",children:r}),e[2]=r,e[3]=s):s=e[3];let i;e[4]!==t||e[5]!==s?(i=n.jsxs("div",{children:[t,s]}),e[4]=t,e[5]=s,e[6]=i):i=e[6];let l;e[7]!==c?(l=c&&n.jsx("div",{children:c}),e[7]=c,e[8]=l):l=e[8];let a;return e[9]!==i||e[10]!==l?(a=n.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[i,l]}),e[9]=i,e[10]=l,e[11]=a):a=e[11],a}export{f as P}; +import{n as e,t}from"./compiler-runtime.js";var n=t(),r=e();function i(e){let t=(0,n.c)(12),{title:i,subtitle:a,actions:o}=e,s;t[0]===i?s=t[1]:(s=(0,r.jsx)(`h1`,{className:`text-3xl`,children:i}),t[0]=i,t[1]=s);let c;t[2]===a?c=t[3]:(c=a&&(0,r.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:a}),t[2]=a,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,r.jsxs)(`div`,{children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]===o?u=t[8]:(u=o&&(0,r.jsx)(`div`,{children:o}),t[7]=o,t[8]=u);let d;return t[9]!==l||t[10]!==u?(d=(0,r.jsxs)(`div`,{className:`mb-6 flex items-start justify-between`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}export{i as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/queryOptions.js b/hive/services/hiveui/frontend/dist/assets/queryOptions.js new file mode 100644 index 000000000..a81db320d --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/queryOptions.js @@ -0,0 +1 @@ +function e(e){return e}export{e as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/route.js b/hive/services/hiveui/frontend/dist/assets/route.js index 493046d25..72f1eeb87 100644 --- a/hive/services/hiveui/frontend/dist/assets/route.js +++ b/hive/services/hiveui/frontend/dist/assets/route.js @@ -1 +1 @@ -import{c as o,j as s,O as n}from"./index.js";const r=()=>{const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(n,{}),e[0]=t):t=e[0],t};export{r as component}; +import{n as e,t}from"./compiler-runtime.js";import"./useRouterState.js";import{A as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/route2.js b/hive/services/hiveui/frontend/dist/assets/route2.js index 493046d25..72f1eeb87 100644 --- a/hive/services/hiveui/frontend/dist/assets/route2.js +++ b/hive/services/hiveui/frontend/dist/assets/route2.js @@ -1 +1 @@ -import{c as o,j as s,O as n}from"./index.js";const r=()=>{const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(n,{}),e[0]=t):t=e[0],t};export{r as component}; +import{n as e,t}from"./compiler-runtime.js";import"./useRouterState.js";import{A as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/run-instances.js b/hive/services/hiveui/frontend/dist/assets/run-instances.js index 867a17bbd..9c76aa246 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 $,q,t as R,v as U,w 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:w}=h(H),r=J(),b=T.Images??[],N=F.KeyPairs??[],P=w.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"}),P.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{n as e}from"./compiler-runtime.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./error-banner.js";import"./useRouterState.js";import"./utils.js";import{t as r}from"./useNavigate.js";import{t as i}from"./button.js";import{t as a}from"./back-link.js";import{a as o,i as s,n as c,r as l,t as u}from"./select.js";import"./separator.js";import"./awsClient.js";import{i as d}from"./ec2.js";import{a as f,c as p,p as m,r as h}from"./ec22.js";import{O as g}from"./index.js";import{t as _}from"./page-heading.js";import{i as v,n as y,t as b}from"./field.js";import{n as x,r as S,t as C}from"./zod.js";import{t as w}from"./ec23.js";var T=e();function E(){let e=r(),{data:E}=t(h),{data:D}=t(p),{data:O}=t(f),{data:k}=t(m),A=d(),j=E.Images??[],M=D.KeyPairs??[],N=k.Subnets??[],P={};for(let e of O.InstanceTypes??[]){let t=e.InstanceType;t&&(P[t]=(P[t]||0)+1)}let F=Object.keys(P).toSorted(),I=j[0]?.ImageId,L=M[0]?.KeyName,R=F.find(e=>e.endsWith(`.nano`))??F[0],{control:z,handleSubmit:B,register:V,watch:H,formState:{errors:U,isSubmitting:W}}=S({resolver:C(w.refine(e=>e.count<=(P[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]})),defaultValues:{count:1,imageId:I??``,keyName:L??``,instanceType:R??``}}),G=H(`instanceType`),K=G?P[G]??1:1;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(a,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,T.jsx)(_,{title:`Run EC2 Instances`}),F.length===0&&(0,T.jsx)(n,{msg:`No compute available. No new instances can be created until compute is available.`}),A.error&&(0,T.jsx)(n,{error:A.error,msg:`Failed to create instance`}),(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B(async t=>{await A.mutateAsync(t),e({to:`/ec2/describe-instances`})}),children:[(0,T.jsxs)(b,{children:[(0,T.jsx)(v,{children:(0,T.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,T.jsx)(x,{control:z,name:`imageId`,render:({field:e})=>{let t=j.find(t=>t.ImageId===e.value);return(0,T.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,T.jsx)(s,{"aria-invalid":!!U.imageId,className:`w-full`,id:`imageId`,children:(0,T.jsx)(o,{children:t?`${t.Name||`Unnamed`} (${t.Architecture})`:``})}),(0,T.jsx)(c,{children:j.map(e=>(0,T.jsxs)(l,{value:e.ImageId??``,children:[e.Name||`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,T.jsx)(y,{errors:[U.imageId]})]}),(0,T.jsxs)(b,{children:[(0,T.jsx)(v,{children:(0,T.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,T.jsx)(x,{control:z,name:`instanceType`,render:({field:e})=>(0,T.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,T.jsx)(s,{"aria-invalid":!!U.instanceType,className:`w-full`,id:`instanceType`,children:(0,T.jsx)(o,{})}),(0,T.jsx)(c,{children:F.map(e=>(0,T.jsxs)(l,{value:e,children:[e,` (`,P[e],` available)`]},e))})]})}),(0,T.jsx)(y,{errors:[U.instanceType]})]}),(0,T.jsxs)(b,{children:[(0,T.jsx)(v,{children:(0,T.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,T.jsx)(x,{control:z,name:`keyName`,render:({field:e})=>(0,T.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,T.jsx)(s,{"aria-invalid":!!U.keyName,className:`w-full`,id:`keyName`,children:(0,T.jsx)(o,{})}),(0,T.jsx)(c,{children:M.map(e=>(0,T.jsx)(l,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,T.jsx)(y,{errors:[U.keyName]})]}),(0,T.jsxs)(b,{children:[(0,T.jsx)(v,{children:(0,T.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,T.jsx)(x,{control:z,name:`subnetId`,render:({field:e})=>(0,T.jsxs)(u,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,T.jsx)(s,{className:`w-full`,id:`subnetId`,children:(0,T.jsx)(o,{})}),(0,T.jsxs)(c,{children:[(0,T.jsx)(l,{value:`none`,children:`none`}),N.map(e=>(0,T.jsx)(l,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,T.jsxs)(b,{children:[(0,T.jsx)(v,{children:(0,T.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,T.jsx)(g,{"aria-describedby":`count-description`,"aria-invalid":!!U.count,id:`count`,type:`number`,...V(`count`,{valueAsNumber:!0})}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:G&&`Available capacity for ${G}: ${K}`}),(0,T.jsx)(y,{errors:[U.count]})]}),(0,T.jsxs)(`div`,{className:`flex gap-2`,children:[(0,T.jsx)(i,{disabled:W||A.isPending,onClick:()=>e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,T.jsx)(i,{disabled:W||A.isPending||F.length===0,type:`submit`,children:W||A.isPending?`Creating…`:`Create Instance`})]})]})]})}export{E as component}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/s3.js b/hive/services/hiveui/frontend/dist/assets/s3.js index 6a3525c75..f0f6f17c8 100644 --- a/hive/services/hiveui/frontend/dist/assets/s3.js +++ b/hive/services/hiveui/frontend/dist/assets/s3.js @@ -1,6 +1,6 @@ -import{W as cr,X as hr,Y as ot,Z as Le,_ as G,$ as dr,a0 as pr,a1 as yr,a2 as mr,a3 as Er,a4 as gr,a5 as wr,a6 as br,a7 as vr,a8 as xr,a9 as pt,aa as ae,ab as Ie,ac as _r,P as fe,Q as le,S as ce,ad as he,ae as Cr,af as Sr,ag as Ar,ah as Rr,ai as Br,aj as Fr,ak as Tr,al as Dr,am as Mr,an as ge,ao as Lr,ap as kr,aq as Ct,c as yt,ar as mt,V as Et}from"./index.js";import{u as gt}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,w){n.update(d),w.enqueue(d)},async flush(d){const w=await n.digest(),F=c(w);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(w))];let i=-1;const d=async w=>{const{value:F,done:R}=await l.read(),B=F;if(R){if(i!==-1){const C=Ue(h,i);Se(C)>0&&w.enqueue(C)}w.close()}else{const C=jr(B,!1);if(i!==C&&(i>=0&&w.enqueue(Ue(h,i)),i=C),i===-1){w.enqueue(B);return}const _=Se(B);c+=_;const M=Se(h[i]);if(_>=n&&M===0)w.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?w.enqueue(Ue(h,i)):await d(w)}}};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,wt=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,gr(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=wr(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,w=((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[w]^ft[F]^ut[R]^st[B]^Ce[C],c=dt[h+1]^ht[i+1]^ct[d+1]^lt[w+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:w,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=wt(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:w,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]:w(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=wt(i),w=h[d];if(w){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:w,checksumSourceLocation:d,checksum:new F,source:c,base64Encoder:R});return}const B=await on(c,{checksumAlgorithmFn:F,base64Encoder:R});if(B===w)break;throw new Error(`Checksum mismatch: expected "${B}" but received "${w}" 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:w}=n;if(d&&c[d]==="ENABLED"){const{clientName:F,commandName:R}=l;if(F==="S3Client"&&R==="GetObjectCommand"&&nr(w).every(C=>{const _=wt(C),M=i.headers[_];return!M||an(M)}))return h;await sn(i,{config:a,responseAlgorithms:w,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"?gn(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 gn(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 wn 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 w(this,m,S,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(m,S){return w(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 w(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-w;else{if(c===d)return h?NaN:(C?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-w}return(C?-1:1)*h*Math.pow(2,c-l)},Fe.write=function(a,n,o,l,y,c){var h,i,d,w=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,w-=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 g=M(r);if(g)return g;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 w(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 w(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 w(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),g=u.write(r,e);return g!==t&&(u=u.slice(0,g)),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,g=t.length,L=0,k=Math.min(u,g);L2&&arguments[2]===!0;if(!u&&t===0)return 0;for(var g=!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(g)return u?-1:P(r).length;e=(""+e).toLowerCase(),g=!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,g,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),g===void 0&&(g=0),L===void 0&&(L=this.length),t<0||u>e.length||g<0||L>this.length)throw new RangeError("out of range index");if(g>=L&&t>=u)return 0;if(g>=L)return-1;if(t>=u)return 1;if(t>>>=0,u>>>=0,g>>>=0,L>>>=0,this===e)return 0;for(var k=L-g,W=u-t,K=Math.min(k,W),z=this.slice(g,L),X=e.slice(t,u),$=0;$2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,O(t)&&(t=g?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(g)return-1;t=r.length-1}else if(t<0)if(g)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,g);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):S(r,[e],t,u,g);throw new TypeError("val must be string, number or Buffer")}function S(r,e,t,u,g){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(g){var X=-1;for(z=t;zk&&(t=k-W),z=t;z>=0;z--){for(var $=!0,te=0;teg&&(u=g)):u=g;var L=e.length;u>L/2&&(u=L/2);for(var k=0;k>>0,isFinite(u)?(u=u>>>0,g===void 0&&(g="utf8")):(g=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");g||(g="utf8");for(var k=!1;;)switch(g){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: "+g);g=(""+g).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=[],g=e;g239?4:L>223?3:L>191?2:1;if(g+W<=t){var K,z,X,$;switch(W){case 1:L<128&&(k=L);break;case 2:K=r[g+1],(K&192)===128&&($=(L&31)<<6|K&63,$>127&&(k=$));break;case 3:K=r[g+1],z=r[g+2],(K&192)===128&&(z&192)===128&&($=(L&15)<<12|(K&63)<<6|z&63,$>2047&&($<55296||$>57343)&&(k=$));break;case 4:K=r[g+1],z=r[g+2],X=r[g+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),g+=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 g="",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 g=this[e],L=1,k=0;++k>>0,t=t>>>0,u||Y(e,t,this.length);for(var g=this[e+--t],L=1;t>0&&(L*=256);)g+=this[e+--t]*L;return g},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 g=this[e],L=1,k=0;++k=L&&(g-=Math.pow(2,8*t)),g},i.prototype.readIntBE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var g=t,L=1,k=this[e+--g];g>0&&(L*=256);)k+=this[e+--g]*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,g,L){if(!i.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>g||er.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(e,t,u,g){if(e=+e,t=t>>>0,u=u>>>0,!g){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,!g){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,g){if(e=+e,t=t>>>0,!g){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,g){if(e=+e,t=t>>>0,!g){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,g,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,g){return e=+e,t=t>>>0,g||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,g){return e=+e,t=t>>>0,g||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,g){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(u||(u=0),!g&&g!==0&&(g=this.length),t>=e.length&&(t=e.length),t||(t=0),g>0&&g=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),e.length-t=0;--k)e[k+t]=this[k+u];else Uint8Array.prototype.set.call(e,this.subarray(u,g),t);return L},i.prototype.fill=function(e,t,u,g){if(typeof e=="string"){if(typeof t=="string"?(g=t,t=0,u=this.length):typeof u=="string"&&(g=u,u=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!i.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(e.length===1){var L=e.charCodeAt(0);(g==="utf8"&&L<128||g==="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(!g){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}g=t;continue}if(t<56320){(e-=3)>-1&&L.push(239,191,189),g=t;continue}t=(g-55296<<10|t-56320)+65536}else g&&(e-=3)>-1&&L.push(239,191,189);if(g=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,g=t%256,L.push(g),L.push(u);return L}function s(r){return n.toByteArray(b(r))}function f(r,e,t,u){for(var g=0;g=e.length||g>=r.length);++g)e[g+t]=r[g];return g}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,g=0;g<16;++g)e[u+g]=r[t]+r[g];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 w.alloc(0);for(var p=w.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=w.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,w=this._readableState&&this._readableState.destroyed,F=this._writableState&&this._writableState.destroyed;return w||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,w=h._writableState;d&&d.autoDestroy||w&&w.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,w){w||(w=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})(w);R.prototype.name=w.name,R.prototype.code=i,n[i]=R}function l(i,d){if(Array.isArray(i)){var w=i.length;return i=i.map(function(F){return String(F)}),w>2?"one of ".concat(d," ").concat(i.slice(0,w-1).join(", "),", or ")+i[w-1]:w===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,w){return i.substr(0,d.length)===d}function c(i,d,w){return(w===void 0||w>i.length)&&(w=i.length),i.substring(w-d.length,w)===d}function h(i,d,w){return typeof w!="number"&&(w=0),w+d.length>i.length?!1:i.indexOf(d,w)!==-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,w){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 w),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(!ge.localStorage)return!1}catch{return!1}var l=ge.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 ge<"u"?ge: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(),w=sr(),F=w.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||we(),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||we();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 w(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),w=0;w0)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)&&!g&&(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(w)}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=we(),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",w),c.on("close",F));var d=!1;function w(){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",w),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 w=i[1];if(w||(w=Lr(await kr(o,At,{...l}))),!w)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 _=w.hostname.startsWith(`${R}.`),M=this.client.config.forcePathStyle,T=w.port?`:${w.port}`:"";return M?`${w.protocol}//${w.hostname}${T}/${R}/${F}`:_?`${w.protocol}//${w.hostname}${T}/${F}`:`${w.protocol}//${R}.${w.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:w}=await this.__createMultipartUpload();if(this.uploadId=w,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=(w,F)=>{(Number(F.query.partNumber)||-1)===o.partNumber&&(w.total&&l&&(this.bytesUploadedSoFar+=w.loaded-h,h=w.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{i as e,t}from"./compiler-runtime.js";import{n}from"./QueryClientProvider.js";import{n as r}from"./error-banner.js";import{At as i,Bt as a,Ct as o,Dt as s,Lt as c,Nt as l,Ot as u,Pt as d,S as f,St as p,Tt as m,Ut as h,Vt as g,_,a as v,b as y,bt as b,c as x,g as S,h as C,i as w,jt as T,kt as E,l as D,m as O,o as ee,p as k,s as te,v as A,wt as ne,x as j,xt as M,y as N,yt as P,zt as F}from"./awsClient.js";var I=typeof ReadableStream==`function`?ReadableStream:function(){},L=class extends I{},R=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:i})=>{if(!F(n))throw Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);let o=i??a;if(typeof TransformStream!=`function`)throw Error(`@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.`);let s=new TransformStream({start(){},async transform(e,n){t.update(e),n.enqueue(e)},async flush(n){let i=o(await t.digest());if(e!==i){let t=Error(`Checksum mismatch: expected "${e}" but received "${i}" in response header "${r}".`);n.error(t)}else n.terminate()}});n.pipeThrough(s);let c=s.readable;return Object.setPrototypeOf(c,L.prototype),c},re=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let e=this.byteArrays[0];return this.reset(),e}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;nnew Uint8Array(e))],s=-1,c=async e=>{let{value:l,done:u}=await r.read(),d=l;if(u){if(s!==-1){let t=ie(o,s);H(t)>0&&e.enqueue(t)}e.close()}else{let r=U(d,!1);if(s!==r&&(s>=0&&e.enqueue(ie(o,s)),s=r),s===-1){e.enqueue(d);return}let l=H(d);a+=l;let u=H(o[s]);if(l>=t&&u===0)e.enqueue(d);else{let r=V(o,s,d);!i&&a>t*2&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${l} is below threshold of ${t}, automatically buffering.`)),r>=t?e.enqueue(ie(o,s)):await c(e)}}};return new ReadableStream({pull:c})}var B=z;function V(e,t,n){switch(t){case 0:return e[0]+=n,H(e[0]);case 1:case 2:return e[t].push(n),H(e[t])}}function ie(e,t){switch(t){case 0:let n=e[0];return e[0]=``,n;case 1:case 2:return e[t].flush()}throw Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function H(e){return e?.byteLength??e?.length??0}function U(e,t=!0){return t&&typeof Buffer<`u`&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e==`string`?0:-1}var W=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===j.WHEN_SUPPORTED||t?y:void 0;if(e[n])return e[n]},G=e=>e===N.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,ae=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},oe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},se=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!l(e),ce=function(){function e(){this.crc32c=new le}return e.prototype.update=function(e){ne(e)||this.crc32c.update(m(e))},e.prototype.digest=function(){return P(this,void 0,void 0,function(){return b(this,function(e){return[2,o(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new le},e}(),le=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=M(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^ue[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),ue=p([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]),de=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},fe,K,pe,me,he,ge,_e,ve,ye,be=()=>{fe||(fe=de(),[K,pe,me,he,ge,_e,ve,ye]=fe)},xe=class{c1=0;c2=0;constructor(){be(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=ye[t]^ve[a]^_e[o]^ge[s]^he[c]^me[l]^pe[u]^K[d],i=ye[t+1]^ve[a+1]^_e[o+1]^ge[s+1]^he[c+1]^me[l+1]^pe[u+1]^K[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^K[t],i^=K[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},Se={CrtCrc64Nvme:null},Ce=()=>A,we=[N.CRC32,N.CRC32C,N.CRC64NVME,N.SHA1,N.SHA256],Te=[N.SHA256,N.SHA1,N.CRC32,N.CRC32C,N.CRC64NVME],Ee=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case N.MD5:return n?.MD5??t.md5;case N.CRC32:return n?.CRC32??Ce();case N.CRC32C:return n?.CRC32C??ce;case N.CRC64NVME:return typeof Se.CrtCrc64Nvme==`function`?n?.CRC64NVME??Se.CrtCrc64Nvme:n?.CRC64NVME??xe;case N.SHA1:return n?.SHA1??t.sha1;case N.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${we}, or provide an implementation to the client constructor checksums field.`)}},De=(e,t)=>{let n=new e;return n.update(g(t||``)),n.digest()},Oe={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ke=(e,t)=>(n,r)=>async i=>{if(!h.isInstance(i.request)||oe(`x-amz-checksum-`,i.request.headers))return n(i);let{request:a,input:o}=i,{body:s,headers:c}=a,{base64Encoder:l,streamHasher:u}=e,{requestChecksumRequired:f,requestAlgorithmMember:p}=t,m=await e.requestChecksumCalculation(),g=p?.name,_=p?.httpHeader;g&&!o[g]&&(m===j.WHEN_SUPPORTED||f)&&(o[g]=y,_&&(c[_]=y));let v=W(o,{requestChecksumRequired:f,requestAlgorithmMember:p?.name,requestChecksumCalculation:m}),b=s,x=c;if(v){switch(v){case N.CRC32:d(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case N.CRC32C:d(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case N.CRC64NVME:d(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case N.SHA1:d(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case N.SHA256:d(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=G(v),n=Ee(v,e);if(se(s)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;b=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?B(s,e.requestStreamBufferSize,r.logger):s,{base64Encoder:l,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:u}),x={...c,"content-encoding":c[`content-encoding`]?`${c[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":c[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete x[`content-length`]}else if(!ae(t,c)){let e=await De(n,s);x={...c,[t]:l(e)}}}try{return await n({...i,request:{...a,headers:x,body:b}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},Ae={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},je=(e,t)=>(n,r)=>async i=>{let a=i.input,{requestValidationModeMember:o}=t,s=await e.requestChecksumCalculation(),c=await e.responseChecksumValidation();switch(s){case j.WHEN_REQUIRED:d(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case j.WHEN_SUPPORTED:d(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(c){case f.WHEN_REQUIRED:d(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case f.WHEN_SUPPORTED:d(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return o&&!a[o]&&c===f.WHEN_SUPPORTED&&(a[o]=`ENABLED`),n(i)},Me=(e=[])=>{let t=[];for(let n of Te)!e.includes(n)||!we.includes(n)||t.push(n);return t},Ne=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},Pe=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await De(t,e)),Fe=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=Me(n),{body:a,headers:o}=e;for(let n of i){let i=G(n),s=o[i];if(s){let o;try{o=Ee(n,t)}catch(e){if(n===N.CRC64NVME){r?.warn(`Skipping ${N.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(se(a)){e.body=R({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await Pe(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},Ie={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},Le=(e,t)=>(n,r)=>async i=>{if(!h.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r;if(t===`S3Client`&&n===`GetObjectCommand`&&Me(l).every(e=>{let t=G(e),n=s.headers[t];return!n||Ne(n)}))return o;await Fe(s,{config:e,responseAlgorithms:l,logger:r.logger})}return o},Re=(e,t)=>({applyToStack:n=>{n.add(ke(e,t),Oe),n.addRelativeTo(je(e,t),Ae),n.addRelativeTo(Le(e,t),Ie)}}),ze=`content-length`,Be=`x-amz-decoded-content-length`;function Ve(){return(e,t)=>async n=>{let{request:r}=n;if(h.isInstance(r)&&!(ze in r.headers)&&!(Be in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof i)?t.logger.warn(e):console.warn(e)}return e({...n})}}var He={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ue=e=>({applyToStack:e=>{e.add(Ve(),He)}}),We=class extends T.classBuilder().ep({...S,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),_(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(v).build(){};function Ge(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?qe(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Ke={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Ge(e),Ke)}});function qe(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Je=class extends T.classBuilder().ep({...S,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),_(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(ee).build(){};function Ye(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Xe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ze=e=>({applyToStack:t=>{t.add(Ye(e),Xe)}}),Qe=class extends T.classBuilder().ep({...S,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),_(n),Ze(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(te).build(){},$e=class extends T.classBuilder().ep({...S,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),_(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(x).build(){},et=class extends T.classBuilder().ep({...S,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),_(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(D).build(){},tt=class extends T.classBuilder().ep({...S,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ue(n),_(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(k).build(){},nt=class extends T.classBuilder().ep({...S,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),_(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(O).build(){},rt=class extends T.classBuilder().ep({...S,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[s(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),_(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(C).build(){},it={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,SHA1:`SHA1`,SHA256:`SHA256`},at=class{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),null)}},ot=class{signal=new at;abort(){this.signal.abort()}},st=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),lt=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=e((e=>{var t=ct(),n=lt(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return B(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return H(e).length;default:if(i)return r?-1:B(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return M(this,t,n);case`utf8`:case`utf-8`:return k(this,t,n);case`ascii`:return ne(this,t,n);case`latin1`:case`binary`:return j(this,t,n);case`base64`:return ee(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,G(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ee(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return A(r)}var te=4096;function A(e){var t=e.length;if(t<=te)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!1,52,8)};function F(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(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 I(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)};function R(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function V(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function H(e){return t.toByteArray(z(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function G(e){return e!==e}var ae=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),ut={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},Y=J(),dt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var ft=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),pt=e(((e,t)=>{t.exports=st().EventEmitter})),mt=e(((e,t)=>{t.exports={}})),ht=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),gt=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),_t=e(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),vt=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),yt=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){re(t,e)}}var r;T.WritableState=C;var i={deprecate:vt()},a=pt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=gt(),d=_t().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=e.decodeStrings!==!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){ne(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=ee(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Tt(),i=yt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),xt=e((e=>{var t=bt().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),St=e(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Ct=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=St(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),wt=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Tt=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,st().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=pt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=mt(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=ht(),f=gt(),p=_t().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=xt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,ne(e,o);else{var c;if(i||(c=ee(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):N(e,o)):O(e,o,t,!1);else r||(o.reading=!1,N(e,o))}return!o.ended&&(o.length=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=te(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?V(this):j(this),null;if(e=A(e,t),e===0&&t.ended)return t.length===0&&V(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?B(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&V(this)),i!==null&&this.emit(`data`,i),i};function ne(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}function j(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function N(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length1&&H(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,z(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?j(this):r.reading||process.nextTick(L,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(I,this),t};function I(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function L(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,R(this,e)),e.paused=!1,this};function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(re,e,t))}function re(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),z(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function z(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function V(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(ie,t,e))}function ie(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=wt()),x(E,e,t)});function H(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=Et();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Ot=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=St()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),kt=e(((e,t)=>{t.exports=r;var n=st().EventEmitter;Z()(r,n),r.Readable=Tt(),r.Writable=yt(),r.Duplex=$(),r.Transform=Et(),r.PassThrough=Dt(),r.finished=St(),r.pipeline=Ot(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}));async function*At(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*jt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return jt(e,t);if(e instanceof Pt.Readable)return At(e,t,Mt);if(e instanceof String||typeof e==`string`)return jt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return At(e.stream(),t,Nt);if(e instanceof ReadableStream)return At(e,t,Nt);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},It=st(),Lt=class e extends It.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??dt(this.params.Body),this.totalBytesSource=ft(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new ot,this.partSize=t.partSize||Math.max(e.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 Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof It.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new tt(t)),n?.endpoint?.()]),s=o[0],l=o[1];if(l||=E(await u(t,tt,{...n})),!l)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let d=this.params.Key.split(`/`).map(e=>c(e)).join(`/`),f=c(this.params.Bucket),p=(()=>{let e=l.hostname.startsWith(`${f}.`),t=this.client.config.forcePathStyle,n=l.port?`:${l.port}`:``;return t?`${l.protocol}//${l.hostname}${n}/${f}/${d}`:e?`${l.protocol}//${l.hostname}${n}/${d}`:`${l.protocol}//${f}.${l.hostname}${n}/${d}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:p};let m=dt(e.data);this.__notifyProgress({loaded:m,total:m,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||it.CRC32),this.createMultiPartPromise=this.client.send(new $e(t)).then(e=>(this.abortMultipartUploadCommand=new We({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=dt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof It.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new rt({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=Ft(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). The expected part count is based on the byte-count of the input.params.Body, -which was read from ${i} and is ${h}. +which was read from ${i} and is ${r}. If this is not correct, provide an override value by setting a number to input.params.ContentLength in bytes. -`);this.uploadedParts.sort((w,F)=>w.PartNumber-F.PartNumber);const d={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};l=await this.client.send(new wn(d)),typeof l?.Location=="string"&&l.Location.includes("%2F")&&(l.Location=l.Location.replace(/%2F/g,"/"))}else l=this.singleUploadResult;return this.abortMultipartUploadCommand=null,this.tags.length&&await this.client.send(new An({...this.params,Tagging:{TagSet:this.tags}})),l}async markUploadAsAborted(){this.uploadId&&!this.leavePartsOnError&&this.abortMultipartUploadCommand!==null&&(await this.client.send(this.abortMultipartUploadCommand),this.abortMultipartUploadCommand=null)}__notifyProgress(n){this.uploadEvent&&this.emit(this.uploadEvent,n)}async __abortTimeout(n){return new Promise((o,l)=>{n.onabort=()=>{const y=new Error("Upload aborted.");y.name="AbortError",l(y)}})}__validateUploadPart(n){const o=Te(n.data);if(o===void 0)throw new Error(`A dataPart was generated without a measurable data chunk size for part number ${n.partNumber}`);if(!(n.partNumber===1&&n.lastPart)&&!n.lastPart&&o!==this.partSize)throw new Error(`The byte size for part number ${n.partNumber}, size ${o} does not match expected size ${this.partSize}`)}__validateInput(){if(!this.client)throw new Error("InputError: Upload requires a AWS client to do uploads with.");if(this.partSize{n.invalidateQueries({queryKey:["s3","buckets",y.bucket,"objects"]})}},a[0]=n,a[1]=o):o=a[1],gt(o)}async function Gn(a){const{bucket:n,key:o,file:l}=a;return await new Ae({client:Et(),params:{Bucket:n,Key:o,Body:l,ContentType:l.type}}).done()}function ei(){const a=yt.c(2),n=mt();let o;return a[0]!==n?(o={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:["s3","buckets"]})}},a[0]=n,a[1]=o):o=a[1],gt(o)}function Yn(a){const{bucketName:n}=a,o=new _n({Bucket:n});return Et().send(o)}function ti(){const a=yt.c(2),n=mt();let o;return a[0]!==n?(o={mutationFn:Xn,onSuccess:(l,y)=>{n.invalidateQueries({queryKey:["s3","buckets",y.bucket,"objects"]})}},a[0]=n,a[1]=o):o=a[1],gt(o)}function Xn(a){const{bucket:n,key:o}=a,l=new Sn({Bucket:n,Key:o});return Et().send(l)}export{Jn as a,Pe as b,ti as c,bt as g,ei as u}; +`);this.uploadedParts.sort((e,t)=>e.PartNumber-t.PartNumber);let a={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};n=await this.client.send(new Je(a)),typeof n?.Location==`string`&&n.Location.includes(`%2F`)&&(n.Location=n.Location.replace(/%2F/g,`/`))}else n=this.singleUploadResult;return this.abortMultipartUploadCommand=null,this.tags.length&&await this.client.send(new nt({...this.params,Tagging:{TagSet:this.tags}})),n}async markUploadAsAborted(){this.uploadId&&!this.leavePartsOnError&&this.abortMultipartUploadCommand!==null&&(await this.client.send(this.abortMultipartUploadCommand),this.abortMultipartUploadCommand=null)}__notifyProgress(e){this.uploadEvent&&this.emit(this.uploadEvent,e)}async __abortTimeout(e){return new Promise((t,n)=>{e.onabort=()=>{let e=Error(`Upload aborted.`);e.name=`AbortError`,n(e)}})}__validateUploadPart(e){let t=dt(e.data);if(t===void 0)throw Error(`A dataPart was generated without a measurable data chunk size for part number ${e.partNumber}`);if(!(e.partNumber===1&&e.lastPart)&&!e.lastPart&&t!==this.partSize)throw Error(`The byte size for part number ${e.partNumber}, size ${t} does not match expected size ${this.partSize}`)}__validateInput(){if(!this.client)throw Error(`InputError: Upload requires a AWS client to do uploads with.`);if(this.partSize{t.invalidateQueries({queryKey:[`s3`,`buckets`,n.bucket,`objects`]})}},e[0]=t,e[1]=i),r(i)}async function Bt(e){let{bucket:t,key:n,file:r}=e;return await new Lt({client:w(),params:{Bucket:t,Key:n,Body:r,ContentType:r.type}}).done()}function Vt(){let e=(0,Rt.c)(2),t=n(),i;return e[0]===t?i=e[1]:(i={mutationFn:Ht,onSuccess:()=>{t.invalidateQueries({queryKey:[`s3`,`buckets`]})}},e[0]=t,e[1]=i),r(i)}function Ht(e){let{bucketName:t}=e,n=new Qe({Bucket:t});return w().send(n)}function Ut(){let e=(0,Rt.c)(2),t=n(),i;return e[0]===t?i=e[1]:(i={mutationFn:Wt,onSuccess:(e,n)=>{t.invalidateQueries({queryKey:[`s3`,`buckets`,n.bucket,`objects`]})}},e[0]=t,e[1]=i),r(i)}function Wt(e){let{bucket:t,key:n}=e,r=new et({Bucket:t,Key:n});return w().send(r)}export{Re as a,q as i,Ut as n,zt as r,Vt as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/s32.js b/hive/services/hiveui/frontend/dist/assets/s32.js new file mode 100644 index 000000000..e2dcb356f --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/s32.js @@ -0,0 +1 @@ +import{t as e}from"./queryOptions.js";import{Dt as t,_ as n,d as r,f as i,g as a,i as o,jt as s}from"./awsClient.js";var c=class extends s.classBuilder().ep(a).m(function(e,r,i,a){return[t(i,e.getEndpointParameterInstructions()),n(i)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(r).build(){},l=class extends s.classBuilder().ep({...a,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,r,i,a){return[t(i,e.getEndpointParameterInstructions()),n(i)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(i).build(){},u=e({queryKey:[`s3`,`buckets`],queryFn:()=>{let e=new c({});return o().send(e)}}),d=(t,n)=>e({queryKey:[`s3`,`buckets`,t,`objects`,n??``],queryFn:()=>{let e=new l({Bucket:t,Prefix:n,Delimiter:`/`});return o().send(e)}});export{u as n,d as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/select.js b/hive/services/hiveui/frontend/dist/assets/select.js index 83ce805a3..5e34b49f3 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,bS as Et,bT as Se,bU as tt,bV as De,bW as He,bX as Nt,bY as bn,r as i,bZ as $t,b_ as Le,b$ as Vt,c0 as yn,b9 as be,c1 as Rn,a_ as qt,c2 as Yt,c3 as ke,c4 as Sn,c5 as wn,b2 as Q,c6 as vn,b1 as pe,c7 as Lt,b6 as kt,b7 as ft,c8 as Ue,c9 as yt,ca as Dt,cb as Mn,cc as Gt,cd as Tn,ce as In,aZ as pt,j as U,cf as Z,cg as Ht,ch as Ct,ci as En,b0 as Mt,cj as Cn,ck as L,cl as An,cm as gt,cn as Pn,co as On,cp as Nn,cq as Xt,cr as Vn,cs as Jt,ct as Ln,cu as kn,ba as At,cv as Zt,b8 as Ne,cw as Dn,cx as Hn,cy as Fn,cz as _n,cA as Un,cB as jn,cC as Bn,cD as zn,cE as Wn,cF as Qt,cG as en,cH as Ft,cI as Kn,b4 as $n,cJ as qn,cK as Yn,cL as tn,cM as Gn,cN 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=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 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=$[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=$t(),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,$=g&&h||!(g&&l&&(!(m&&f)||d==="click"||d==="mousedown"));if(Rn(a.target)){const D=be(x,a,a.target);$&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen($,D);return}const F=b.currentTarget;y.request(()=>{const D=be(x,a,F);$&&w==="touch"&&p>0?v.start(p,()=>{n.setOpen(!0,D)}):n.setOpen($,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:$,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(()=>{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(!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,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 $(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=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=$(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 $=h.relatedTarget,F=n.select("domReferenceElement"),D=n.select("floatingElement"),ee=Ue(F,$),ce=Ue(D,$);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 $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 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 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 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:Ke(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=>$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: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:$=!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([]),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(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=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=be(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&&!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:$,keyboardActiveRef:F}=Ve(),D=v||$||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(),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){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:$,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:x,arrowPadding:v,collisionBoundary:c,collisionPadding:y,sticky:T,disableAnchorTracking:b??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=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(()=>({...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: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:$,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){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,()=>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(b),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 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,$,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||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),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(),$=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];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)||$.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: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:$,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(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($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]!==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}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{n as i,u as a}from"./utils.js";import{A as o,B as s,D as c,L as l,N as u,P as d,R as f,h as p,i as m,o as h,r as g,v as _,z as v}from"./button.js";import{t as y}from"./createLucideIcon.js";import{t as b}from"./check.js";import{a as x,i as S,n as C,o as w,r as ee,s as T,t as te}from"./separator.js";import{A as ne,B as E,C as D,D as O,O as k,_ as A,c as j,g as M,h as N,k as P,l as F,m as I,n as L,o as R,t as z,u as re,v as ie,w as ae,y as oe,z as B}from"./createBaseUIEventDetails.js";import{$ as V,B as H,D as se,G as ce,H as U,I as W,L as le,M as G,N as ue,O as de,Q as fe,R as pe,T as me,V as he,a as ge,at as _e,d as K,et as ve,h as ye,i as be,j as xe,k as Se,m as q,n as Ce,nt as J,o as we,r as Te,t as Ee,tt as De,u as Oe,w as ke,z as Ae}from"./useOpenInteractionType.js";import{S as je,h as Me,m as Ne,y as Pe}from"./index.js";var Fe=y(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ie=y(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function Y(e,t,n){return Math.floor(e/t)!==n}function Le(e,t){return t<0||t>=e.current.length}function Re(e,t){return X(e,{disabledIndices:t})}function ze(e,t){return X(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function X(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.current.length-1&&We(e,a,r));return a}function Be(e,{event:t,orientation:n,loopFocus:r,rtl:i,cols:a,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:l,stopEvent:u=!1}){let d=l,f=[],p={},m=!1;{let t=null,n=-1;e.current.forEach((e,r)=>{if(e==null)return;let i=e.closest(`[role="row"]`);i&&(m=!0),(i!==t||n===-1)&&(t=i,n+=1,f[n]=[]),f[n].push(r),p[r]=n})}let h=m&&f.length>0&&f.some(e=>e.length!==a);function g(t){if(!h||l===-1)return;let n=p[l];if(n==null)return;let i=f[n].indexOf(l),a=t===`up`?n-1:n+1;r&&(a<0?a=f.length-1:a>=f.length&&(a=0));let s=new Set;for(;a>=0&&a=0;--t){let r=n[t];if(!We(e,r,o))return r}a=t===`up`?a-1:a+1,r&&(a<0?a=f.length-1:a>=f.length&&(a=0))}}if(t.key===`ArrowUp`){let n=g(`up`);if(n!==void 0)u&&J(t),d=n;else{if(u&&J(t),l===-1)d=c;else if(d=X(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:o}),r&&(l-ae?n:n-a}Le(e,d)&&(d=l)}}if(t.key===`ArrowDown`){let n=g(`down`);n===void 0?(u&&J(t),l===-1?d=s:(d=X(e,{startingIndex:l,amount:a,disabledIndices:o}),r&&l+a>c&&(d=X(e,{startingIndex:l%a-a,amount:a,disabledIndices:o}))),Le(e,d)&&(d=l)):(u&&J(t),d=n)}if(n===`both`){let n=ce(l/a);t.key===(i?`ArrowLeft`:`ArrowRight`)&&(u&&J(t),l%a===a-1?r&&(d=X(e,{startingIndex:l-l%a-1,disabledIndices:o})):(d=X(e,{startingIndex:l,disabledIndices:o}),r&&Y(d,a,n)&&(d=X(e,{startingIndex:l-l%a-1,disabledIndices:o}))),Y(d,a,n)&&(d=l)),t.key===(i?`ArrowRight`:`ArrowLeft`)&&(u&&J(t),l%a===0?r&&(d=X(e,{startingIndex:l+(a-l%a),decrement:!0,disabledIndices:o})):(d=X(e,{startingIndex:l,decrement:!0,disabledIndices:o}),r&&Y(d,a,n)&&(d=X(e,{startingIndex:l+(a-l%a),decrement:!0,disabledIndices:o}))),Y(d,a,n)&&(d=l));let s=ce(c/a)===n;Le(e,d)&&(d=r&&s?t.key===(i?`ArrowRight`:`ArrowLeft`)?c:X(e,{startingIndex:l-l%a-1,disabledIndices:o}):l)}return d}function Ve(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function He(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Ue(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function We(e,t,n){if(typeof n==`function`)return n(t);if(n)return n.includes(t);let r=e.current[t];return r?r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`:!1}var Z=e(n());function Ge(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=I}=t,f=Z.useRef(void 0),p=U(),m=_e(),h=Z.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){let t=f.current,i=e.nativeEvent,d=n.select(`open`);if(e.button!==0||a===`click`||V(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=d&&_||!(d&&o&&(!(h&&c)||g===`click`||g===`mousedown`));if(ae(i.target)){let e=z(u,i,i.target);v&&t===`touch`&&l>0?m.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let y=e.currentTarget;p.request(()=>{let e=z(u,i,y);v&&t===`touch`&&l>0?m.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=f.current;if(a===`mousedown`&&t){f.current=void 0;return}if(V(t,!0)&&s)return;let i=n.select(`open`),d=r.current.openEvent,p=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&p||!(i&&o&&(!(d&&c)||fe(d))),g=z(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?m.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){f.current=void 0}}),[r,a,s,n,c,o,p,m,l,u]);return Z.useMemo(()=>i?{reference:h}:d,[i,h])}var Ke=`Escape`;function qe(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Je(e,t){return qe(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Ye(e,t,n){return qe(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Xe(e,t,n){return qe(t,n?e===k:e===P,e===O)}function Ze(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Ke:qe(t,n?e===P:e===k,e===ne)}function Qe(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loopFocus:p=!1,nested:g=!1,rtl:v=!1,virtual:y=!1,focusItemOnOpen:b=`auto`,focusItemOnHover:x=!0,openOnArrowKeyDown:S=!0,disabledIndices:C=void 0,orientation:w=`vertical`,parentOrientation:ee,cols:T=1,id:te,resetOnPointerLeave:ne=!0,externalTree:O}=t,k=ue(ie(i)),j=xe(),N=G(O);m(()=>{o.current.orientation=w},[o,w]);let P=D(a),I=Z.useRef(b),L=Z.useRef(d??-1),re=Z.useRef(null),ae=Z.useRef(!0),B=h(e=>{l(L.current===-1?null:L.current,e)}),V=Z.useRef(B),H=Z.useRef(!!i),ce=Z.useRef(r),U=Z.useRef(!1),W=Z.useRef(!1),le=ue(C),de=ue(r),fe=ue(d),pe=ue(ne),me=h(()=>{function e(e){y?N?.events.emit(`virtualfocus`,e):se(e,{sync:U.current,preventScroll:!0})}let t=s.current[L.current],n=W.current;t&&e(t),(U.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[L.current]||t;r&&(t||e(r),ge&&(n||!ae.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});m(()=>{u&&(r&&i?(L.current=d??-1,I.current&&d!=null&&(W.current=!0,B())):H.current&&(L.current=-1,V.current()))},[u,r,i,d,B]),m(()=>{if(u){if(!r){U.current=!1;return}if(i)if(c==null){if(U.current=!1,fe.current!=null)return;if(H.current&&(L.current=-1,me()),(!ce.current||!H.current)&&I.current&&(re.current!=null||I.current===!0&&re.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(L.current=re.current==null||Ye(re.current,w,v)||g?Re(s):ze(s),re.current=null,B())};t()}}else Le(s,c)||(L.current=c,me(),W.current=!1)}},[u,r,i,c,fe,g,s,w,v,B,me,le]),m(()=>{if(!u||i||!N||y||!H.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===j)?.context?.elements.floating,n=M(E(i)),r=e.some(e=>e.context&&A(e.context.elements.floating,n));t&&!r&&ae.current&&t.focus({preventScroll:!0})},[u,i,N,j,y]),m(()=>{V.current=B,ce.current=r,H.current=!!i}),m(()=>{r||(re.current=null,I.current=b)},[r,b]);let he=c!=null,ge=Z.useMemo(()=>{function e(e){if(!de.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&L.current!==t&&(L.current=t,B(e))}return{onFocus(t){U.current=!0,e(t)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(t){U.current=!0,W.current=!1,x&&e(t)},onPointerLeave(e){if(!de.current||!ae.current||e.pointerType===`touch`)return;U.current=!0;let t=e.relatedTarget;!x||s.current.includes(t)||pe.current&&(se(null,{sync:!0}),L.current=-1,B(e),y||k.current?.focus({preventScroll:!0}))}}},[de,k,x,s,B,pe,y]),_e=Z.useCallback(()=>ee??N?.nodesRef.current.find(e=>e.id===j)?.context?.dataRef?.current.orientation,[j,N,ee]),K=h(e=>{if(ae.current=!1,U.current=!0,e.which===229||!de.current&&e.currentTarget===k.current)return;if(g&&Ze(e.key,w,v,T)){Je(e.key,_e())||J(e),n.setOpen(!1,z(F,e.nativeEvent)),_(a)&&(y?N?.events.emit(`virtualfocus`,a):a.focus());return}let t=L.current,i=Re(s,C),o=ze(s,C);if(P||(e.key===`Home`&&(J(e),L.current=i,B(e)),e.key===`End`&&(J(e),L.current=o,B(e))),T>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=Ve(t,T,!1),r=n.findIndex(e=>e!=null&&!We(s,e,C)),a=n.reduce((e,t,n)=>t!=null&&!We(s,t,C)?n:e,-1),c=n[Be({current:n.map(e=>e==null?null:s.current[e])},{event:e,orientation:w,loopFocus:p,rtl:v,cols:T,disabledIndices:Ue([...(typeof C==`function`?null:C)||s.current.map((e,t)=>We(s,t,C)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:He(L.current>o?i:L.current,t,n,T,e.key===`ArrowDown`?`bl`:e.key===(v?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(L.current=c,B(e)),w===`both`)return}if(Je(e.key,w)){if(J(e),r&&!y&&M(e.currentTarget.ownerDocument)===e.currentTarget){L.current=Ye(e.key,w,v)?i:o,B(e);return}Ye(e.key,w,v)?p?t>=o?f&&t!==s.current.length?L.current=-1:(U.current=!1,L.current=i):L.current=X(s,{startingIndex:t,disabledIndices:C}):L.current=Math.min(o,X(s,{startingIndex:t,disabledIndices:C})):p?t<=i?f&&t!==-1?L.current=s.current.length:(U.current=!1,L.current=o):L.current=X(s,{startingIndex:t,decrement:!0,disabledIndices:C}):L.current=Math.max(i,X(s,{startingIndex:t,decrement:!0,disabledIndices:C})),Le(s,L.current)&&(L.current=-1),B(e)}}),ye=Z.useMemo(()=>y&&r&&he&&{"aria-activedescendant":`${te}-${c}`},[y,r,he,te,c]),be=Z.useMemo(()=>({"aria-orientation":w===`both`?void 0:w,...P?{}:ye,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!y){let t=oe(e.nativeEvent);if(t&&!A(k.current,t))return;J(e),n.setOpen(!1,z(R,e.nativeEvent)),_(a)&&a.focus();return}K(e)},onPointerMove(){ae.current=!0}}),[ye,K,k,w,P,n,r,y,a]),Se=Z.useMemo(()=>{function e(e){b===`auto`&&ve(e.nativeEvent)&&(I.current=!y)}function t(e){I.current=b,b===`auto`&&De(e.nativeEvent)&&(I.current=!0)}return{onKeyDown(e){let t=n.select(`open`);ae.current=!1;let r=e.key.startsWith(`Arrow`),i=Xe(e.key,_e(),v),a=Je(e.key,w),o=(g?i:a)||e.key===`Enter`||e.key.trim()===``;if(y&&t)return K(e);if(!(!t&&!S&&r)){if(o){let t=Je(e.key,_e());re.current=g&&t?null:e.key}if(g){i&&(J(e),t?(L.current=Re(s,le.current),B(e)):n.setOpen(!0,z(F,e.nativeEvent,e.currentTarget)));return}a&&(fe.current!=null&&(L.current=fe.current),J(e),!t&&S?n.setOpen(!0,z(F,e.nativeEvent,e.currentTarget)):K(e),t&&B(e))}},onFocus(e){n.select(`open`)&&!y&&(L.current=-1,B(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[K,le,b,s,g,B,n,S,w,_e,v,fe,y]),q=Z.useMemo(()=>({...ye,...Se}),[ye,Se]);return Z.useMemo(()=>u?{reference:q,floating:be,item:ge,trigger:Se}:{},[u,q,be,Se,ge])}function $e(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,activeIndex:o,onMatch:s,onTypingChange:c,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f=_e(),p=Z.useRef(``),g=Z.useRef(d??o??-1),_=Z.useRef(null);m(()=>{!i&&d!==null||(f.clear(),_.current=null,p.current!==``&&(p.current=``))},[i,d,f]),m(()=>{i&&p.current===``&&(g.current=d??o??-1)},[i,d,o]);let v=h(e=>{e?r.current.typing||(r.current.typing=e,c?.(e)):r.current.typing&&(r.current.typing=e,c?.(e))}),y=h(e=>{function t(e,t,n){let r=t.find(e=>e?.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())===0);return r?e.indexOf(r):-1}let n=a.current;if(p.current.length>0&&p.current[0]!==` `&&(t(n,n,p.current)===-1?v(!1):e.key===` `&&J(e)),n==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(J(e),v(!0));let r=p.current===``;r&&(g.current=d??o??-1),n.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&p.current===e.key&&(p.current=``,g.current=_.current),p.current+=e.key,f.start(u,()=>{p.current=``,g.current=_.current,v(!1)});let c=r?d??o??-1:g.current,l=t(n,[...n.slice((c||0)+1),...n.slice(0,(c||0)+1)],p.current);l===-1?e.key!==` `&&(p.current=``,v(!1)):(s?.(l),_.current=l)}),b=h(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=A(r,t),o=A(i,t);a||o||(f.clear(),p.current=``,g.current=_.current,v(!1))}),x=Z.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]),S=Z.useMemo(()=>({onKeyDown:y,onKeyUp(e){e.key===` `&&v(!1)},onBlur:b}),[y,b,v]);return Z.useMemo(()=>l?{reference:x,floating:S}:{},[l,x,S])}var et=Z.createContext(null),tt=Z.createContext(null);function nt(){let e=Z.useContext(et);if(e===null)throw Error(v(60));return e}function rt(){let e=Z.useContext(tt);if(e===null)throw Error(v(61));return e}var it=(e,t)=>Object.is(e,t);function at(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ot(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:at(t,e,n))}function st(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:at(e,t,n))}function ct(e,t,n){return e.filter(e=>!at(t,e,n))}function lt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var Q=t();function ut(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function dt(e){if(!Array.isArray(e))return e!=null&&!(`null`in e);if(ut(e)){for(let t of e)for(let e of t.items)if(e&&e.value==null&&e.label!=null)return!0;return!1}for(let t of e)if(t&&t.value==null&&t.label!=null)return!0;return!1}function ft(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return lt(e)}function pt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?lt(e.value):lt(e)}function mt(e,t,n){function r(){return ft(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=ut(t)?t.flatMap(e=>e.items):t;if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function ht(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(Z.Fragment,{children:mt(r,t,n)},i)),e),[])}var $={id:q(e=>e.id),modal:q(e=>e.modal),multiple:q(e=>e.multiple),items:q(e=>e.items),itemToStringLabel:q(e=>e.itemToStringLabel),itemToStringValue:q(e=>e.itemToStringValue),isItemEqualToValue:q(e=>e.isItemEqualToValue),value:q(e=>e.value),hasSelectedValue:q(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:pt(t,r)!==``}),hasNullItemLabel:q((e,t)=>t?dt(e.items):!1),open:q(e=>e.open),mounted:q(e=>e.mounted),forceMount:q(e=>e.forceMount),transitionStatus:q(e=>e.transitionStatus),openMethod:q(e=>e.openMethod),activeIndex:q(e=>e.activeIndex),selectedIndex:q(e=>e.selectedIndex),isActive:q((e,t)=>e.activeIndex===t),isSelected:q((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>at(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:at(n,i,r)}),isSelectedByFocus:q((e,t)=>e.selectedIndex===t),popupProps:q(e=>e.popupProps),triggerProps:q(e=>e.triggerProps),triggerElement:q(e=>e.triggerElement),positionerElement:q(e=>e.positionerElement),listElement:q(e=>e.listElement),scrollUpArrowVisible:q(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:q(e=>e.scrollDownArrowVisible),hasScrollArrows:q(e=>e.hasScrollArrows)};function gt(e,t){let n=Z.useRef(e),r=h(t);m(()=>{n.current!==e&&r(n.current)},[e,r]),m(()=>{n.current=e},[e])}function _t(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:c,name:p,autoComplete:g,disabled:_=!1,readOnly:v=!1,required:y=!1,modal:b=!0,actionsRef:S,inputRef:T,onOpenChangeComplete:ne,items:E,multiple:D=!1,itemToStringLabel:O,itemToStringValue:k,isItemEqualToValue:A=it,highlightItemOnHover:j=!0,children:M}=e,{clearErrors:N}=x(),{setDirty:P,setTouched:F,setFocused:I,shouldValidateOnChange:L,validityData:R,setFilled:ie,name:ae,disabled:oe,validation:B,validationMode:V}=w(),se=C({id:t}),ce=oe||_,U=ae??p,[W,le]=ee({controlled:n,default:D?r??u:r,name:`Select`,state:`value`}),[G,fe]=ee({controlled:a,default:o,name:`Select`,state:`open`}),pe=Z.useRef([]),me=Z.useRef([]),he=Z.useRef(null),ge=Z.useRef(null),_e=Z.useRef(0),ve=Z.useRef(null),be=Z.useRef([]),xe=Z.useRef(!1),q=Z.useRef(!1),Ce=Z.useRef(null),J=Z.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Te=Z.useRef(!1),{mounted:De,setMounted:ke,transitionStatus:Me}=Ae(G),{openMethod:Ne,triggerProps:Fe,reset:Ie}=Ee(G),Y=f(()=>new Oe({id:se,modal:b,multiple:D,itemToStringLabel:O,itemToStringValue:k,isItemEqualToValue:A,value:W,open:G,mounted:De,transitionStatus:Me,items:E,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Le=K(Y,$.activeIndex),Re=K(Y,$.selectedIndex),ze=K(Y,$.triggerElement),X=K(Y,$.positionerElement),Be=Z.useMemo(()=>D&&Array.isArray(W)&&W.length===0?``:pt(W,k),[D,W,k]),Ve=Z.useMemo(()=>D&&Array.isArray(W)?W.map(e=>pt(e,k)):pt(W,k),[D,W,k]),He=ue(Y.state.triggerElement);te({id:se,commit:B.commit,value:W,controlRef:He,name:U,getValue:()=>Ve});let Ue=Z.useRef(W);m(()=>{W!==Ue.current&&Y.set(`forceMount`,!0)},[Y,W]),m(()=>{ie(D?Array.isArray(W)&&W.length>0:W!=null)},[D,W,ie]),m(function(){if(G)return;let e=be.current;if(D){let t=Array.isArray(W)?W:[];if(t.length===0){Y.set(`selectedIndex`,null);return}let n=t[t.length-1],r=st(e,n,A);Y.set(`selectedIndex`,r===-1?null:r);return}let t=st(e,W,A);Y.set(`selectedIndex`,t===-1?null:t)},[D,G,W,be,A,Y]),gt(W,()=>{N(U),P(W!==R.initialValue),L()?B.commit(W):B.commit(W,!0)});let We=h((e,t)=>{if(c?.(e,t),!t.isCanceled&&(fe(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(F(!0),I(!1),V===`onBlur`&&B.commit(W)),!e&&Y.state.activeIndex!==null)){let e=pe.current[Y.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ke=h(()=>{ke(!1),Y.set(`activeIndex`,null),Ie(),ne?.(!1)});H({enabled:!S,open:G,ref:he,onComplete(){G||Ke()}}),Z.useImperativeHandle(S,()=>({unmount:Ke}),[Ke]);let qe=h((e,t)=>{i?.(e,t),!t.isCanceled&&le(e)}),Je=h(()=>{let e=Y.state.listElement||he.current;if(!e)return;let t=e.scrollTop,n=e.scrollTop+e.clientHeight,r=t>1,i=ns(Xe(),Fe,se?{id:se}:d),[Xe,Fe,se]);Pe(()=>{Y.update({popupProps:Ze(),triggerProps:rt})}),m(()=>{Y.update({id:se,modal:b,multiple:D,value:W,open:G,mounted:De,transitionStatus:Me,popupProps:Ze(),triggerProps:rt,items:E,itemToStringLabel:O,itemToStringValue:k,isItemEqualToValue:A,openMethod:Ne})},[Y,se,b,D,W,G,De,Me,Ze,rt,E,O,k,A,Ne]);let at=Z.useMemo(()=>({store:Y,name:U,required:y,disabled:ce,readOnly:v,multiple:D,itemToStringLabel:O,itemToStringValue:k,highlightItemOnHover:j,setValue:qe,setOpen:We,listRef:pe,popupRef:he,scrollHandlerRef:ge,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:_e,getItemProps:nt,events:Ye.context.events,valueRef:ve,valuesRef:be,labelsRef:me,typingRef:xe,selectionRef:J,selectedItemTextRef:Ce,validation:B,onOpenChangeComplete:ne,keyboardActiveRef:q,alignItemWithTriggerActiveRef:Te,initialValueRef:Ue}),[Y,U,y,ce,v,D,O,k,j,qe,We,nt,Ye.context.events,B,ne,Je]),ot=l(T,B.inputRef),ct=D&&Array.isArray(W)&&W.length>0,lt=Z.useMemo(()=>!D||!Array.isArray(W)||!U?null:W.map(e=>{let t=pt(e,k);return(0,Q.jsx)(`input`,{type:`hidden`,name:U,value:t},t)}),[D,W,U,k]);return(0,Q.jsx)(et.Provider,{value:at,children:(0,Q.jsxs)(tt.Provider,{value:Ye,children:[M,(0,Q.jsx)(`input`,{...B.getInputValidationProps({onFocus(){Y.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.target.value,n=z(re,e.nativeEvent);function r(){if(D)return;let e=be.current.find(e=>pt(e,k).toLowerCase()===t.toLowerCase());e!=null&&(P(e!==R.initialValue),qe(e,n),L()&&B.commit(e))}Y.set(`forceMount`,!0),queueMicrotask(r)}}),name:D?void 0:U,autoComplete:g,value:Be,disabled:ce,required:y&&!ct,readOnly:v,ref:ot,style:U?Se:de,tabIndex:-1,"aria-hidden":!0}),lt]})})}function vt(e){let t=e.getBoundingClientRect(),n=window.getComputedStyle(e,`::before`),r=window.getComputedStyle(e,`::after`);if(!(n.content!==`none`||r.content!==`none`))return t;let i=parseFloat(n.width)||0,a=parseFloat(n.height)||0,o=parseFloat(r.width)||0,s=parseFloat(r.height)||0,c=Math.max(t.width,i,o),l=Math.max(t.height,a,s),u=c-t.width,d=l-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-d/2,bottom:t.bottom+d/2}}var yt=2,bt=400,xt=200,St={...le,...T,value:()=>null},Ct=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,...u}=e,{setTouched:d,setFocused:f,validationMode:p,state:m,disabled:_}=w(),{labelId:v}=S(),{store:y,setOpen:b,selectionRef:x,validation:ee,readOnly:T,required:te,alignItemWithTriggerActiveRef:ne,disabled:D,keyboardActiveRef:O}=nt(),k=_||D||a,j=K(y,$.open),M=K(y,$.value),N=K(y,$.triggerProps),P=K(y,$.positionerElement),F=K(y,$.listElement),I=K(y,$.id),R=K(y,$.hasSelectedValue),ae=!R&&j,oe=K(y,$.hasNullItemLabel,ae),B=i??I;C({id:B});let V=ue(P),H=Z.useRef(null),{getButtonProps:se,buttonRef:ce}=g({disabled:k,native:o}),U=l(t,H,ce,h(e=>{y.set(`triggerElement`,e)})),W=_e(),le=_e(),G=_e(),de=_e();Z.useEffect(()=>{if(j)return R||oe?de.start(xt,()=>{x.current.allowUnselectedMouseUp=!0,G.start(xt,()=>{x.current.allowSelectedMouseUp=!0})}):G.start(bt,()=>{x.current.allowUnselectedMouseUp=!0,x.current.allowSelectedMouseUp=!0}),()=>{G.clear(),de.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},le.clear()},[j,R,oe,x,le,G,de]);let fe=Z.useMemo(()=>F?.id??ie(P)?.id,[F,P]),pe=s(N,{id:B,role:`combobox`,"aria-expanded":j?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":j?fe:void 0,"aria-labelledby":v,"aria-readonly":T||void 0,"aria-required":te||void 0,tabIndex:k?-1:0,ref:U,onFocus(e){f(!0),j&&ne.current&&b(!1,z(re,e.nativeEvent)),W.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){A(P,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&ee.commit(M))},onPointerMove(){O.current=!1},onKeyDown(){O.current=!0},onMouseDown(e){if(j)return;let t=E(e.currentTarget);function n(e){if(!H.current)return;let t=e.target;if(A(H.current,t)||A(V.current,t)||t===H.current)return;let n=vt(H.current);e.clientX>=n.left-yt&&e.clientX<=n.right+yt&&e.clientY>=n.top-yt&&e.clientY<=n.bottom+yt||b(!1,z(L,e))}le.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},ee.getValidationProps,u,se);pe.role=`combobox`;let me={...m,open:j,disabled:k,value:M,readOnly:T,placeholder:!R};return c(`button`,e,{ref:[t,H],state:me,stateAttributesMapping:St,props:pe})}),wt={value:()=>null},Tt=Z.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,...o}=e,{store:s,valueRef:l}=nt(),u=K(s,$.value),d=K(s,$.items),f=K(s,$.itemToStringLabel),p=K(s,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=K(s,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?ht(u,d,f):mt(u,d,f)),c(`span`,e,{state:g,ref:[t,l],props:[{children:_},o],stateAttributesMapping:wt})}),Et=Z.forwardRef(function(e,t){let{className:n,render:r,...i}=e,{store:a}=nt();return c(`span`,e,{state:{open:K(a,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},i],stateAttributesMapping:pe})}),Dt=Z.createContext(void 0),Ot=Z.forwardRef(function(e,t){let{store:n}=nt(),r=K(n,$.mounted),i=K(n,$.forceMount);return r||i?(0,Q.jsx)(Dt.Provider,{value:!0,children:(0,Q.jsx)(me,{ref:t,...e})}):null}),kt=Z.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function At(){return Z.useContext(kt)}function jt(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=h(i),o=Z.useRef(0),s=f(Nt).current,c=f(Mt).current,[l,u]=Z.useState(0),d=Z.useRef(l),p=h((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),g=h(e=>{c.delete(e),d.current+=1,u(d.current)}),_=Z.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Pt).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);m(()=>{if(typeof MutationObserver!=`function`||_.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return _.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[_]),m(()=>{d.current===l&&(n.current.length!==_.size&&(n.current.length=_.size),r&&r.current.length!==_.size&&(r.current.length=_.size),o.current=_.size),a(_)},[a,_,n,r,l]),m(()=>()=>{n.current=[]},[n]),m(()=>()=>{r&&(r.current=[])},[r]);let v=h(e=>(s.add(e),()=>{s.delete(e)}));m(()=>{s.forEach(e=>e(_))},[s,_]);let y=Z.useMemo(()=>({register:p,unregister:g,subscribeMapChange:v,elementsRef:n,labelsRef:r,nextIndexRef:o}),[p,g,v,n,r,o]);return(0,Q.jsx)(kt.Provider,{value:y,children:t})}function Mt(){return new Map}function Nt(){return new Set}function Pt(e,t){let n=e.compareDocumentPosition(t);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}var Ft=Z.createContext(void 0);function It(){let e=Z.useContext(Ft);if(!e)throw Error(v(59));return e}function Lt(e,t){e&&Object.assign(e.style,t)}var Rt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},zt={position:`fixed`},Bt=Z.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:s=`bottom`,align:l=`center`,sideOffset:u=0,alignOffset:d=0,collisionBoundary:f=`clipping-ancestors`,collisionPadding:p,arrowPadding:g=5,sticky:_=!1,disableAnchorTracking:v,alignItemWithTrigger:y=!0,collisionAvoidance:b=o,...x}=e,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:ee,selectedItemTextRef:T,valuesRef:te,initialValueRef:ne,popupRef:E,setValue:D}=nt(),O=rt(),k=K(S,$.open),A=K(S,$.mounted),j=K(S,$.modal),M=K(S,$.value),N=K(S,$.openMethod),P=K(S,$.positionerElement),F=K(S,$.triggerElement),I=K(S,$.isItemEqualToValue),L=K(S,$.transitionStatus),R=Z.useRef(null),ie=Z.useRef(null),[ae,oe]=Z.useState(y),B=A&&ae&&N!==`touch`;!A&&ae!==y&&oe(y),m(()=>{A||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,A]),Z.useImperativeHandle(ee,()=>B),Ce((B||j)&&k&&N!==`touch`,F);let V=Me({anchor:n,floatingRootContext:O,positionMethod:r,mounted:A,side:s,sideOffset:u,align:l,alignOffset:d,arrowPadding:g,collisionBoundary:f,collisionPadding:p,sticky:_,disableAnchorTracking:v??B,collisionAvoidance:b,keepMounted:!0}),H=B?`none`:V.side,se=B?zt:V.positionerStyles,ce=Z.useMemo(()=>{let e={};return k||(e.pointerEvents=`none`),{role:`presentation`,hidden:!A,style:{...se,...e}}},[k,A,se]),U={open:k,side:H,align:V.align,anchorHidden:V.anchorHidden},le=c(`div`,e,{ref:[t,h(e=>{S.set(`positionerElement`,e)})],state:U,stateAttributesMapping:W,props:[ce,Ne(L),x]}),G=Z.useRef(0),ue=h(e=>{if(e.size===0&&G.current===0||te.current.length===0)return;let t=G.current;if(G.current=e.size,e.size===t)return;let n=z(re);if(t!==0&&!S.state.multiple&&M!==null&&st(te.current,M,I)===-1){let e=ne.current,t=e!=null&&st(te.current,e,I)!==-1?e:null;D(t,n),t===null&&(S.set(`selectedIndex`,null),T.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(M)){let e=e=>st(te.current,e,I)!==-1,t=M.filter(t=>e(t));(t.length!==M.length||t.some(e=>!ot(M,e,I)))&&(D(t,n),t.length===0&&(S.set(`selectedIndex`,null),T.current=null))}if(k&&B){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Lt(P,e),Lt(E.current,e)}}),de=Z.useMemo(()=>({...V,side:H,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:oe,scrollUpArrowRef:R,scrollDownArrowRef:ie}),[V,H,B,oe]);return(0,Q.jsx)(jt,{elementsRef:C,labelsRef:w,onMapChange:ue,children:(0,Q.jsxs)(Ft.Provider,{value:de,children:[A&&j&&(0,Q.jsx)(Te,{inert:be(!k),cutout:F}),le]})})});function Vt(e){let t=e.currentTarget.getBoundingClientRect();return t.top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1}var Ht=`base-ui-disable-scrollbar`,Ut={className:Ht,getElement(e){return(0,Q.jsx)(`style`,{nonce:e,href:Ht,precedence:`base-ui:low`,children:`.${Ht}{scrollbar-width:none}.${Ht}::-webkit-scrollbar{display:none}`})}},Wt=Z.createContext(void 0);function Gt(e){let t=Z.useContext(Wt);if(t===void 0&&!e)throw Error(v(69));return t}function Kt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var qt=Z.createContext(void 0),Jt={disableStyleElements:!1};function Yt(){return Z.useContext(qt)??Jt}var Xt=e(a()),Zt=1,Qt={...W,...he},$t=Z.forwardRef(function(e,t){let{render:n,className:r,finalFocus:i,...a}=e,{store:o,popupRef:s,onOpenChangeComplete:l,setOpen:u,valueRef:d,selectedItemTextRef:f,keyboardActiveRef:g,multiple:_,handleScrollArrowVisibility:v,scrollHandlerRef:y,highlightItemOnHover:b}=nt(),{side:x,align:S,alignItemWithTriggerActive:C,setControlledAlignItemWithTrigger:w,scrollDownArrowRef:ee,scrollUpArrowRef:T}=It(),te=Gt(!0)!=null,ne=rt(),{nonce:D,disableStyleElements:O}=Yt(),k=_e(),A=K(o,$.id),j=K(o,$.open),M=K(o,$.mounted),P=K(o,$.popupProps),F=K(o,$.transitionStatus),I=K(o,$.triggerElement),L=K(o,$.positionerElement),R=K(o,$.listElement),re=Z.useRef(0),ie=Z.useRef(!1),ae=Z.useRef(0),oe=Z.useRef(!1),V=Z.useRef({}),se=U(),ce=h(e=>{if(!L||!s.current||!oe.current)return;if(ie.current||!C){v();return}let t=L.style.top===`0px`,n=L.style.bottom===`0px`,r=L.getBoundingClientRect().height,i=E(L),a=getComputedStyle(L),o=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),l=en(getComputedStyle(s.current)),u=Math.min(i.documentElement.clientHeight-o-c,l),d=e.scrollTop,f=tn(e),p=0,m=null,h=!1,g=!1,_=e=>{L.style.height=`${e}px`},y=(t,n)=>{let i=Kt(t,0,u-r);i>0&&_(r+i),e.scrollTop=n,u-(r+i)<=Zt&&(ie.current=!0),v()};if(t){let e=f-d,t=r+e,n=Math.min(t,u);if(p=n,e<=Zt){y(e,f);return}u-n>Zt?g=!0:h=!0}else if(n){let e=d,t=r+e,n=Math.min(t,u),i=t-u;if(p=n,e<=Zt){y(e,0);return}u-n>Zt?m=0:(h=!0,dZt&&(e.scrollTop=n)}(h||p>=u-Zt)&&(ie.current=!0),v()});Z.useImperativeHandle(y,()=>ce,[ce]),H({open:j,ref:s,onComplete(){j&&l?.(!0)}});let W={open:j,transitionStatus:F,side:x,align:S};m(()=>{!L||!s.current||Object.keys(V.current).length||(V.current={top:L.style.top||`0`,left:L.style.left||`0`,right:L.style.right,height:L.style.height,bottom:L.style.bottom,minHeight:L.style.minHeight,maxHeight:L.style.maxHeight,marginTop:L.style.marginTop,marginBottom:L.style.marginBottom})},[s,L]),m(()=>{j||C||(oe.current=!1,ie.current=!1,re.current=0,ae.current=0,Lt(L,V.current))},[j,C,L,s]),m(()=>{let e=s.current;if(!(!j||!I||!L||!e||o.state.transitionStatus===`ending`)){if(!C){oe.current=!0,se.request(v),e.style.removeProperty(`--transform-origin`);return}queueMicrotask(()=>{let t=rn(e);e.style.removeProperty(`--transform-origin`);try{let t=getComputedStyle(L),n=getComputedStyle(e),r=E(I),i=p(L),a=I.getBoundingClientRect(),o=L.getBoundingClientRect(),s=a.left,c=a.height,l=R||e,u=l.scrollHeight,m=parseFloat(n.borderBottomWidth),h=parseFloat(t.marginTop)||10,g=parseFloat(t.marginBottom)||10,_=parseFloat(t.minHeight)||100,y=en(n),b=r.documentElement.clientHeight-h-g,x=r.documentElement.clientWidth,S=b-a.bottom+c,C=f.current,ee=d.current,T,te=0,ne=0;if(C&&ee){let e=ee.getBoundingClientRect();T=C.getBoundingClientRect();let t=e.left-s,n=T.left-o.left,r=e.top-a.top+e.height/2,i=T.top-o.top+T.height/2;te=t-n,ne=i-r}let D=S+ne+g+m,O=Math.min(b,D),k=b-h-g,A=D-O,j=Math.max(5,s+te),M=x-5,N=Math.max(0,j+o.width-M);L.style.left=`${j-N}px`,L.style.height=`${O}px`,L.style.maxHeight=`auto`,L.style.marginTop=`${h}px`,L.style.marginBottom=`${g}px`,e.style.height=`100%`;let P=l.scrollHeight-l.clientHeight,F=A>=P;F&&(O=Math.min(b,o.height)-(A-P));let z=a.top<20||a.bottom>b-20||Ow(!1));return}if(F){let e=Math.max(0,b-D);L.style.top=o.height>=k?`0`:`${e}px`,L.style.height=`${O}px`,l.scrollTop=l.scrollHeight-l.clientHeight,re.current=Math.max(_,O)}else L.style.bottom=`0`,re.current=Math.max(_,O),l.scrollTop=A;if(T){let t=o.top,n=o.height,r=T.top+T.height/2,i=Kt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(re.current===b||O>=y)&&(ie.current=!0),v(),setTimeout(()=>{oe.current=!0})}finally{t()}})}},[o,j,L,I,d,f,s,v,C,w,se,ee,T,R]),Z.useEffect(()=>{if(!C||!L||!j)return;let e=p(L);function t(e){u(!1,z(N,e))}return e.addEventListener(`resize`,t),()=>{e.removeEventListener(`resize`,t)}},[u,C,L,j]);let le={...R?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":_||void 0,id:`${A}-list`},onKeyDown(e){g.current=!0,te&&ge.has(e.key)&&e.stopPropagation()},onMouseMove(){g.current=!1},onPointerLeave(e){if(!b||Vt(e)||e.pointerType===`touch`)return;let t=e.currentTarget;k.start(0,()=>{o.set(`activeIndex`,null),t.focus({preventScroll:!0})})},onScroll(e){R||ce(e.currentTarget)},...C&&{style:R?{height:`100%`}:Rt}},G=c(`div`,e,{ref:[t,s],state:W,stateAttributesMapping:Qt,props:[P,le,Ne(F),{className:!R&&C?Ut.className:void 0},a]});return(0,Q.jsxs)(Z.Fragment,{children:[!O&&Ut.getElement(D),(0,Q.jsx)(ke,{context:ne,modal:!1,disabled:!M,returnFocus:i,restoreFocus:!0,children:G})]})});function en(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function tn(e){return Math.max(0,e.scrollHeight-e.clientHeight)}var nn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function rn(e){let{style:t}=e,n={};for(let[e,r]of nn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of nn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var an=Z.forwardRef(function(e,t){let{className:n,render:r,...i}=e,{store:a,scrollHandlerRef:o}=nt(),{alignItemWithTriggerActive:s}=It(),l=K(a,$.hasScrollArrows),u=K(a,$.openMethod),d=K(a,$.multiple),f={id:`${K(a,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){o.current?.(e.currentTarget)},...s&&{style:Rt},className:l&&u!==`touch`?Ut.className:void 0};return c(`div`,e,{ref:[t,h(e=>{a.set(`listElement`,e)})],props:[f,i]})}),on=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function sn(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=At(),f=Z.useRef(-1),[p,h]=Z.useState(a??(i===on.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),g=Z.useRef(null),_=Z.useCallback(e=>{if(g.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return m(()=>{if(a!=null)return;let e=g.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),m(()=>{if(a==null)return c(e=>{let t=g.current?e.get(g.current)?.index:null;t!=null&&h(t)})},[a,c,h]),Z.useMemo(()=>({ref:_,index:p}),[p,_])}var cn=Z.createContext(void 0);function ln(){let e=Z.useContext(cn);if(!e)throw Error(v(57));return e}var un=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,value:i=null,label:a,disabled:o=!1,nativeButton:s=!1,...l}=e,u=Z.useRef(null),d=sn({label:a,textRef:u,indexGuessBehavior:on.GuessFromOrder}),{store:f,getItemProps:p,setOpen:h,setValue:_,selectionRef:v,typingRef:y,valuesRef:b,keyboardActiveRef:x,multiple:S,highlightItemOnHover:C}=nt(),w=_e(),ee=K(f,$.isActive,d.index),T=K(f,$.isSelected,d.index,i),te=K(f,$.isSelectedByFocus,d.index),ne=K(f,$.isItemEqualToValue),E=d.index,D=E!==-1,O=Z.useRef(null),k=ue(E);m(()=>{if(!D)return;let e=b.current;return e[E]=i,()=>{delete e[E]}},[D,E,i,b]),m(()=>{if(!D)return;let e=f.state.value,t=e;S&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&at(i,t,ne)&&f.set(`selectedIndex`,E)},[D,E,S,ne,f,i]);let A={disabled:o,selected:T,highlighted:ee},M=p({active:ee,selected:T});M.onFocus=void 0,M.id=void 0;let N=Z.useRef(null),P=Z.useRef(`mouse`),F=Z.useRef(!1),{getButtonProps:I,buttonRef:L}=g({disabled:o,focusableWhenDisabled:!0,native:s});function R(e){let t=f.state.value;if(S){let n=Array.isArray(t)?t:[];_(T?ct(n,i,ne):[...n,i],z(j,e))}else _(i,z(j,e)),h(!1,z(j,e))}let re={role:`option`,"aria-selected":T,tabIndex:ee?0:-1,onFocus(){f.set(`activeIndex`,E)},onMouseEnter(){!x.current&&f.state.selectedIndex===null&&C&&f.set(`activeIndex`,E)},onMouseMove(){C&&f.set(`activeIndex`,E)},onMouseLeave(e){!C||x.current||Vt(e)||w.start(0,()=>{f.state.activeIndex===E&&f.set(`activeIndex`,null)})},onTouchStart(){v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){N.current=e.key,f.set(`activeIndex`,E)},onClick(e){F.current=!1,!(e.type===`keydown`&&N.current===null)&&(o||N.current===` `&&y.current||P.current!==`touch`&&!ee||(N.current=null,R(e.nativeEvent)))},onPointerEnter(e){P.current=e.pointerType},onPointerDown(e){P.current=e.pointerType,F.current=!0},onMouseUp(e){if(o)return;if(F.current){F.current=!1;return}let t=!v.current.allowSelectedMouseUp&&T,n=!v.current.allowUnselectedMouseUp&&!T;t||n||P.current!==`touch`&&!ee||R(e.nativeEvent)}},ie=c(`div`,e,{ref:[L,t,d.ref,O],state:A,props:[M,re,l,I]}),ae=Z.useMemo(()=>({selected:T,indexRef:k,textRef:u,selectedByFocus:te,hasRegistered:D}),[T,k,u,te,D]);return(0,Q.jsx)(cn.Provider,{value:ae,children:ie})})),dn=Z.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=ln();return n||r?(0,Q.jsx)(fn,{...e,ref:t}):null}),fn=Z.memo(Z.forwardRef((e,t)=>{let{render:n,className:r,keepMounted:i,...a}=e,{selected:o}=ln(),s=Z.useRef(null),{transitionStatus:l,setMounted:u}=Ae(o),d=c(`span`,e,{ref:[t,s],state:{selected:o,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},a],stateAttributesMapping:he});return H({open:o,ref:s,onComplete(){o||u(!1)}}),d})),pn=Z.memo(Z.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:a}=ln(),{selectedItemTextRef:o}=nt(),{className:s,render:l,...u}=e;return c(`div`,e,{ref:[Z.useCallback(e=>{if(!e||!a)return;let t=o.current===null||!o.current.isConnected;(i||t&&n.current===0)&&(o.current=e)},[o,n,i,a]),t,r],props:u})})),mn=Z.forwardRef(function(e,t){let{render:n,className:r,direction:i,keepMounted:a=!1,...o}=e,{store:s,popupRef:l,listRef:u,handleScrollArrowVisibility:d,scrollArrowsMountedCountRef:f}=nt(),{side:p,scrollDownArrowRef:h,scrollUpArrowRef:g}=It(),_=K(s,i===`up`?$.scrollUpArrowVisible:$.scrollDownArrowVisible),v=K(s,$.openMethod),y=_&&v!==`touch`,b=_e(),x=i===`up`?g:h,{transitionStatus:S,setMounted:C}=Ae(y);m(()=>(f.current+=1,s.state.hasScrollArrows||s.set(`hasScrollArrows`,!0),()=>{f.current=Math.max(0,f.current-1),f.current===0&&s.state.hasScrollArrows&&s.set(`hasScrollArrows`,!1)}),[s,f]),H({open:y,ref:x,onComplete(){y||C(!1)}});let w=c(`div`,e,{ref:[t,x],state:{direction:i,visible:y,side:p,transitionStatus:S},props:[{"aria-hidden":!0,children:i===`up`?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||b.isStarted())return;s.set(`activeIndex`,null);function t(){let e=s.state.listElement??l.current;if(!e)return;s.set(`activeIndex`,null),d();let n=e.scrollTop===0,r=Math.round(e.scrollTop+e.clientHeight)>=e.scrollHeight;if(u.current.length===0&&(i===`up`?s.set(`scrollUpArrowVisible`,!n):s.set(`scrollDownArrowVisible`,!r)),i===`up`&&n||i===`down`&&r){b.clear();return}if((s.state.listElement||l.current)&&u.current&&u.current.length>0){let t=u.current,n=x.current?.offsetHeight||0;if(i===`up`){let r=0,i=e.scrollTop+n;for(let e=0;e=i){r=e;break}}let a=Math.max(0,r-1);if(ai){r=Math.max(0,e-1);break}}let a=Math.min(t.length-1,r+1);if(a>r){let r=t[a];r&&(e.scrollTop=r.offsetTop+r.offsetHeight-e.clientHeight+n)}else e.scrollTop=e.scrollHeight-e.clientHeight}}b.start(40,t)}b.start(40,t)},onMouseLeave(){b.clear()}},o]});return y||a?w:null}),hn=Z.forwardRef(function(e,t){return(0,Q.jsx)(mn,{...e,ref:t,direction:`down`})}),gn=Z.forwardRef(function(e,t){return(0,Q.jsx)(mn,{...e,ref:t,direction:`up`})}),_n=r(),vn=_t;function yn(e){let t=(0,_n.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`flex flex-1 text-left`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Q.jsx)(Tt,{className:a,"data-slot":`select-value`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function bn(e){let t=(0,_n.c)(15),n,r,a,o,s;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5]):({className:r,size:s,id:a,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s);let c=s===void 0?`default`:s,l;t[6]===r?l=t[7]:(l=i(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=l);let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Q.jsx)(Et,{render:(0,Q.jsx)(Fe,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=u):u=t[8];let d;return t[9]!==n||t[10]!==a||t[11]!==o||t[12]!==c||t[13]!==l?(d=(0,Q.jsxs)(Ct,{className:l,"data-size":c,"data-slot":`select-trigger`,id:a,...o,children:[n,u]}),t[9]=n,t[10]=a,t[11]=o,t[12]=c,t[13]=l,t[14]=d):d=t[14],d}function xn(e){let t=(0,_n.c)(26),n,r,a,o,s,c,l,u;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8]):({className:r,children:n,side:o,sideOffset:s,align:c,alignOffset:l,alignItemWithTrigger:u,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u);let d=o===void 0?`bottom`:o,f=s===void 0?4:s,p=c===void 0?`center`:c,m=l===void 0?0:l,h=u===void 0?!0:u,g;t[9]===r?g=t[10]:(g=i(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Q.jsx)(Cn,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Q.jsx)(an,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(wn,{}),t[14]=y):y=t[14];let b;t[15]!==a||t[16]!==g||t[17]!==v?(b=(0,Q.jsxs)($t,{className:g,"data-slot":`select-content`,...a,children:[_,v,y]}),t[15]=a,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==d||t[23]!==f||t[24]!==b?(x=(0,Q.jsx)(Ot,{children:(0,Q.jsx)(Bt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:d,sideOffset:f,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=d,t[23]=f,t[24]=b,t[25]=x):x=t[25],x}function Sn(e){let t=(0,_n.c)(13),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:r,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o;t[4]===r?o=t[5]:(o=i(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=o);let s;t[6]===n?s=t[7]:(s=(0,Q.jsx)(pn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=s);let c;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(dn,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Q.jsx)(b,{className:`pointer-events-none`})}),t[8]=c):c=t[8];let l;return t[9]!==a||t[10]!==o||t[11]!==s?(l=(0,Q.jsxs)(un,{className:o,"data-slot":`select-item`,...a,children:[s,c]}),t[9]=a,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function Cn(e){let t=(0,_n.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=a);let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Q.jsx)(Ie,{}),t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==a?(s=(0,Q.jsx)(gn,{className:a,"data-slot":`select-scroll-up-button`,...r,children:o}),t[6]=r,t[7]=a,t[8]=s):s=t[8],s}function wn(e){let t=(0,_n.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=a);let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Q.jsx)(Fe,{}),t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==a?(s=(0,Q.jsx)(hn,{className:a,"data-slot":`select-scroll-down-button`,...r,children:o}),t[6]=r,t[7]=a,t[8]=s):s=t[8],s}export{yn as a,bn as i,xn as n,Sn as r,vn as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/separator.js b/hive/services/hiveui/frontend/dist/assets/separator.js new file mode 100644 index 000000000..205ea1e88 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/separator.js @@ -0,0 +1 @@ +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{u as i}from"./utils.js";import{F as a,P as o,R as s,_ as c,i as l,o as u,z as d}from"./button.js";import{V as f}from"./createBaseUIEventDetails.js";var p=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),m={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},h={valid(e){return e===null?null:e?{[p.valid]:``}:{[p.invalid]:``}}},g=e(n()),_=g.createContext({invalid:void 0,name:void 0,validityData:{state:m,errors:[],error:``,value:``,initialValue:null},setValidityData:a,disabled:void 0,touched:!1,setTouched:a,dirty:!1,setDirty:a,filled:!1,setFilled:a,focused:!1,setFocused:a,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:(e=o)=>e,getInputValidationProps:(e=o)=>e,inputRef:{current:null},commit:async()=>{}}});function v(e=!0){let t=g.useContext(_);if(t.setValidityData===a&&!e)throw Error(d(28));return t}var y=g.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:a,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function b(){return g.useContext(y)}var x=g.createContext({controlId:void 0,registerControlId:a,labelId:void 0,setLabelId:a,messageIds:[],setMessageIds:a,getDescriptionProps:e=>e});function S(){return g.useContext(x)}function C(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}function w({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=g.useRef(e!==void 0),[a,o]=g.useState(t);return[i?e:a,g.useCallback(e=>{i||o(e)},[])]}function T(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:o}=S(),d=f(t),p=n?i:void 0,m=s(()=>Symbol(`labelable-control`)),h=g.useRef(!1),_=g.useRef(t!=null),v=u(()=>{!h.current||o===a||(h.current=!1,o(m.current,void 0))});return l(()=>{if(o===a)return;let e;if(n){let n=r?.current;e=c(n)&&n.closest(`label`)!=null?t??null:p??d}else if(t!=null)_.current=!0,e=t;else if(_.current)e=d;else{v();return}if(e===void 0){v();return}h.current=!0,o(m.current,e)},[t,r,p,o,n,d,m,v]),g.useEffect(()=>v,[v]),i??d}var E=e(i());function D(e){let{enabled:t=!0,value:n,id:r,name:i,controlRef:a,commit:o}=e,{formRef:s}=b(),{invalid:c,markedDirtyRef:d,validityData:f,setValidityData:p}=v(),m=u(e.getValue);l(()=>{if(!t)return;let e=n;e===void 0&&(e=m()),f.initialValue===null&&e!==null&&p(t=>({...t,initialValue:e}))},[t,p,n,f.initialValue,m]),l(()=>{!t||!r||s.current.fields.set(r,{getValue:m,name:i,controlRef:a,validityData:C(f,c),validate(e=!0){let t=n;t===void 0&&(t=m()),d.current=!0,e?E.flushSync(()=>o(t)):o(t)}})},[o,a,t,s,m,r,c,d,i,f,n]),l(()=>{let e=s.current.fields;return()=>{r&&e.delete(r)}},[s,r])}r(),t();export{b as a,S as i,T as n,v as o,w as r,h as s,D as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/state-badge.js b/hive/services/hiveui/frontend/dist/assets/state-badge.js index b8d909b5a..d410dfe29 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 d,a,j as g}from"./index.js";const l=["running","available","completed","Active"],o=["stopped","error"],c=["pending","shutting-down","stopping"];function s(t){return t&&l.includes(t)?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100":t&&o.includes(t)?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100":t&&c.includes(t)?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100":t==="terminated"?"bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400":"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100"}function u(t){const e=d.c(5),{state:r}=t;let n;e[0]!==r?(n=a("rounded-full px-2 py-1 text-xs",s(r)),e[0]=r,e[1]=n):n=e[1];let i;return e[2]!==r||e[3]!==n?(i=g.jsx("div",{className:n,children:r}),e[2]=r,e[3]=n,e[4]=i):i=e[4],i}export{u as S}; +import{n as e,t}from"./compiler-runtime.js";import{n}from"./utils.js";var r=t(),i=e(),a=new Set([`running`,`available`,`completed`,`Active`]),o=new Set([`stopped`,`error`]),s=new Set([`pending`,`shutting-down`,`stopping`]);function c(e){return e&&a.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&o.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&s.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:e===`terminated`?`bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function l(e){let t=(0,r.c)(5),{state:a}=e,o;t[0]===a?o=t[1]:(o=n(`rounded-full px-2 py-1 text-xs`,c(a)),t[0]=a,t[1]=o);let s;return t[2]!==a||t[3]!==o?(s=(0,i.jsx)(`div`,{className:o,children:a}),t[2]=a,t[3]=o,t[4]=s):s=t[4],s}export{l as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/textarea.js b/hive/services/hiveui/frontend/dist/assets/textarea.js index afa9530e4..d95bee2ce 100644 --- a/hive/services/hiveui/frontend/dist/assets/textarea.js +++ b/hive/services/hiveui/frontend/dist/assets/textarea.js @@ -1 +1 @@ -import{c as n,a as o,j as d}from"./index.js";function c(s){const e=n.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=o("field-sizing-content flex min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm outline-none transition-colors placeholder:text-muted-foreground 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 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=d.jsx("textarea",{className:t,"data-slot":"textarea",...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T}; +import{n as e,t}from"./compiler-runtime.js";import{n}from"./utils.js";var r=t(),i=e();function a(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`flex field-sizing-content min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm transition-colors outline-none placeholder:text-muted-foreground 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 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`textarea`,{className:s,"data-slot":`textarea`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{a as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/toUtf8.browser.js b/hive/services/hiveui/frontend/dist/assets/toUtf8.browser.js new file mode 100644 index 000000000..b9d271f69 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/toUtf8.browser.js @@ -0,0 +1 @@ +var e=e=>new TextEncoder().encode(e),t=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)};export{e as n,t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/trash-2.js b/hive/services/hiveui/frontend/dist/assets/trash-2.js index f20621c6e..390471417 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{t as e}from"./createLucideIcon.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/upload-button.js b/hive/services/hiveui/frontend/dist/assets/upload-button.js index 4143c976d..5f31ae633 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,M as g,N as j,P as b,Q as y,S as k,T as C,c as w,j as t,L as N,r as h,i as v,U as M,V as S,B as D}from"./index.js";import{D as R}from"./delete-confirmation-dialog.js";import{E}from"./error-banner.js";import{g as L,b as O,c as z}from"./s3.js";import{D as B}from"./download.js";import{T as P}from"./trash-2.js";const $=[["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"}]],A=u("file",$);const F=[["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"}]],U=u("folder",F);const T=[["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"}]],_=u("upload",T),I=c=>(e,a)=>async n=>{const r=await e(n),{response:s}=r;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 r},H={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},K=c=>({applyToStack:e=>{e.addRelativeTo(I(),H)}});class V extends b.classBuilder().ep({...y,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,a,n,r){return[k(n,e.getEndpointParameterInstructions()),L(n,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),O(n),K()]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(C).build(){}function X(c){const e=w.c(9),{folderName:a,fullPrefix:n,bucketName:r}=c;let s;e[0]!==r||e[1]!==n?(s={bucket:r,_splat:n},e[0]=r,e[1]=n,e[2]=s):s=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(U,{className:"size-5 text-muted-foreground"}),e[3]=o):o=e[3];let i;e[4]!==a?(i=t.jsx("span",{className:"font-medium",children:a}),e[4]=a,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==i?(l=t.jsxs(N,{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]}),e[6]=s,e[7]=i,e[8]=l):l=e[8],l}function Y({object:c,bucketName:e,displayName:a,fullKey:n}){const[r,s]=h.useState(!1),o=z();async function i(){try{const m=new V({Bucket:e,Key:n}),p=await S().send(m);if(p.Body){const x=await p.Body.transformToByteArray(),f=URL.createObjectURL(new Blob([x])),d=document.createElement("a");d.href=f,d.download=a,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(f)}}catch{throw new Error("Failed to download object")}}async function l(){try{await o.mutateAsync({bucket:e,key:n})}finally{s(!1)}}return t.jsxs("div",{children:[o.error&&t.jsx(E,{error:o.error,msg:"Failed to delete object"}),t.jsxs("div",{className:"flex items-center justify-between rounded-lg border bg-card p-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(A,{className:"size-5 text-muted-foreground"}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-medium",children:a}),c.LastModified&&t.jsxs("p",{className:"text-muted-foreground text-sm",children:["Last Modified: ",v(c.LastModified)]})]})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"text-muted-foreground text-sm",children:M(c.Size||0)}),t.jsx("button",{className:"rounded-md p-2 transition-colors hover:bg-accent",onClick:i,type:"button",children:t.jsx(B,{className:"size-4"})}),t.jsx("button",{className:"rounded-md p-2 text-destructive transition-colors hover:bg-accent",onClick:()=>s(!0),type:"button",children:t.jsx(P,{className:"size-4"})})]}),t.jsx(R,{description:t.jsxs(t.Fragment,{children:["Are you sure you want to delete ",t.jsx("strong",{children:a}),"? This action cannot be undone."]}),isPending:o.isPending,onConfirm:l,onOpenChange:s,open:r,title:"Delete Object"})]})]},c.Key)}function ee({bucket:c,prefix:e="",isPending:a,onUpload:n}){const r=h.useRef(null);async function s(o){const i=o.target.files;if(!(!i||i.length===0))try{await Promise.all(Array.from(i).map(l=>{const m=`${e}${l.name}`;return n({bucket:c,key:m,file:l})}))}finally{r.current&&(r.current.value="")}}return t.jsxs(t.Fragment,{children:[t.jsx("input",{accept:"*/*","aria-label":"Choose files to upload",className:"hidden",multiple:!0,onChange:s,ref:r,type:"file"}),t.jsxs(D,{disabled:a,onClick:()=>r.current?.click(),size:"sm",children:[t.jsx(_,{className:"mr-2 size-4"}),a?"Uploading…":"Upload Files"]})]})}export{X as F,Y as O,ee as U}; +import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./link.js";import{a as o,o as s}from"./utils.js";import{t as c}from"./button.js";import{t as l}from"./createLucideIcon.js";import{t as u}from"./download.js";import{t as d}from"./trash-2.js";import{Dt as f,Ht as p,It as m,g as h,i as g,jt as _,u as v}from"./awsClient.js";import{a as y,i as b,n as x}from"./s3.js";import{t as S}from"./delete-confirmation-dialog.js";var C=l(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=l(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=l(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(p.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{m(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends _.classBuilder().ep({...h,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[f(n,e.getEndpointParameterInstructions()),y(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`]}),b(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(v).build(){},A=r(),j=t();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,o;t[0]!==i||t[1]!==r?(o={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=o):o=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,j.jsxs)(a,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:o,to:`/s3/ls/$bucket/$`,children:[s,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}var N=e(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[a,c]=(0,N.useState)(!1),l=x();async function f(){try{let e=new k({Bucket:t,Key:r}),i=await g().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch{throw Error(`Failed to download object`)}}async function p(){try{await l.mutateAsync({bucket:t,key:r})}finally{c(!1)}}return(0,j.jsxs)(`div`,{children:[l.error&&(0,j.jsx)(i,{error:l.error,msg:`Failed to delete object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,o(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:s(e.Size||0)}),(0,j.jsx)(`button`,{className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:f,type:`button`,children:(0,j.jsx)(u,{className:`size-4`})}),(0,j.jsx)(`button`,{className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>c(!0),type:`button`,children:(0,j.jsx)(d,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:l.isPending,onConfirm:p,onOpenChange:c,open:a,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(n=>r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(c,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/use-copy-to-clipboard.js b/hive/services/hiveui/frontend/dist/assets/use-copy-to-clipboard.js index c04f4a508..a8fcb3686 100644 --- a/hive/services/hiveui/frontend/dist/assets/use-copy-to-clipboard.js +++ b/hive/services/hiveui/frontend/dist/assets/use-copy-to-clipboard.js @@ -1 +1 @@ -import{K as p,c as m,r as s}from"./index.js";const f=[["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"}]],y=p("triangle-alert",f),d=2e3;function T(){const e=m.c(5),[n,i]=s.useState(!1),t=s.useRef(null);let r,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>()=>{t.current&&clearTimeout(t.current)},o=[],e[0]=r,e[1]=o):(r=e[0],o=e[1]),s.useEffect(r,o);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=async u=>{await navigator.clipboard.writeText(u),i(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>i(!1),d)},e[2]=c):c=e[2];const l=c;let a;return e[3]!==n?(a={copied:n,copy:l},e[3]=n,e[4]=a):a=e[4],a}export{y as T,T as u}; +import{a as e,r as t,t as n}from"./compiler-runtime.js";import{t as r}from"./createLucideIcon.js";var i=r(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),a=n(),o=e(t(),1),s=2e3;function c(){let e=(0,a.c)(5),[t,n]=(0,o.useState)(!1),r=(0,o.useRef)(null),i,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>()=>{r.current&&clearTimeout(r.current)},c=[],e[0]=i,e[1]=c):(i=e[0],c=e[1]),(0,o.useEffect)(i,c);let l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=async e=>{await navigator.clipboard.writeText(e),n(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>n(!1),s)},e[2]=l):l=e[2];let u=l,d;return e[3]===t?d=e[4]:(d={copied:t,copy:u},e[3]=t,e[4]=d),d}export{i as n,c as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/useNavigate.js b/hive/services/hiveui/frontend/dist/assets/useNavigate.js new file mode 100644 index 000000000..b8a29217e --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/useNavigate.js @@ -0,0 +1 @@ +import{a as e,r as t}from"./compiler-runtime.js";import{t as n}from"./useRouter.js";var r=e(t(),1);function i(e){let t=n();return r.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}export{i as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/useOpenInteractionType.js b/hive/services/hiveui/frontend/dist/assets/useOpenInteractionType.js new file mode 100644 index 000000000..0950bb91b --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/useOpenInteractionType.js @@ -0,0 +1,12 @@ +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{n as r,r as i}from"./useRouterState.js";import{u as a}from"./utils.js";import{C as o,D as s,F as c,I as l,L as u,M as d,P as f,R as p,T as m,_ as h,b as g,c as _,d as v,f as y,g as b,h as x,i as S,l as C,m as w,o as T,p as E,s as D,u as O,v as k,w as A,x as j,y as M,z as ee}from"./button.js";import{B as N,C as te,F as P,H as F,I as ne,P as I,R as L,_ as R,a as re,b as z,d as ie,g as B,j as ae,o as oe,t as se,u as ce,v as le,w as ue,x as de,y as V,z as fe}from"./createBaseUIEventDetails.js";var H=e(n()),pe=[];function U(e){H.useEffect(e,pe)}var me=0,he=class e{static create(){return new e}currentId=me;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=me,t()},e)}isStarted(){return this.currentId!==me}clear=()=>{this.currentId!==me&&(clearTimeout(this.currentId),this.currentId=me)};disposeEffect=()=>this.clear};function ge(){let e=p(he.create).current;return U(e.disposeEffect),e}function _e(e,t,n=!0){return e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,..._e(e,t.id,n)])}function ve(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function ye(e){e.preventDefault(),e.stopPropagation()}function W(e){return`nativeEvent`in e}function be(e){return e.pointerType===``&&e.isTrusted?!0:I&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function xe(e){return ne?!1:!I&&e.width===0&&e.height===0||I&&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 G(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function K(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Se=[`top`,`right`,`bottom`,`left`],Ce=Math.min,q=Math.max,we=Math.round,Te=Math.floor,J=e=>({x:e,y:e}),Ee={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function De(e,t,n){return q(e,Ce(t,n))}function Y(e,t){return typeof e==`function`?e(t):e}function X(e){return e.split(`-`)[0]}function Oe(e){return e.split(`-`)[1]}function ke(e){return e===`x`?`y`:`x`}function Ae(e){return e===`y`?`height`:`width`}function Z(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function je(e){return ke(Z(e))}function Me(e,t,n){n===void 0&&(n=!1);let r=Oe(e),i=je(e),a=Ae(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ve(o)),[o,Ve(o)]}function Ne(e){let t=Ve(e);return[Pe(e),t,Pe(t)]}function Pe(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Fe=[`left`,`right`],Ie=[`right`,`left`],Le=[`top`,`bottom`],Re=[`bottom`,`top`];function ze(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ie:Fe:t?Fe:Ie;case`left`:case`right`:return t?Le:Re;default:return[]}}function Be(e,t,n,r){let i=Oe(e),a=ze(X(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Pe)))),a}function Ve(e){let t=X(e);return Ee[t]+e.slice(t.length)}function He(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ue(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:He(e)}function We(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var Ge=[`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] *)`].join(`,`),Ke=typeof Element>`u`,qe=Ke?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Je=!Ke&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},Ye=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Ye(e.parentNode))},Xe=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Ze=function(e,t,n){if(Ye(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ge));return t&&qe.call(e,Ge)&&r.unshift(e),r=r.filter(n),r},Qe=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Ye(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Qe(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{qe.call(a,Ge)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Ye(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Qe(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},$e=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},et=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Xe(e))&&!$e(e)?0:e.tabIndex},tt=function(e,t){var n=et(e);return n<0&&t&&!$e(e)?0:n},nt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},rt=function(e){return e.tagName===`INPUT`},it=function(e){return rt(e)&&e.type===`hidden`},at=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},ot=function(e,t){for(var n=0;nsummary:first-of-type`)?e.parentElement:e;if(qe.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=Je(e);if(o&&!o.shadowRoot&&r(o)===!0)return dt(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(ut(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return dt(e);return!1},pt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n=0)},_t=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=tt(a,i),s=i?_t(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(nt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},vt=function(e,t){return t||={},_t(t.getShadowRoot?Qe([e],t.includeContainer,{filter:ht.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gt}):Ze(e,t.includeContainer,ht.bind(null,t)))},yt=function(e,t){return t||={},t.getShadowRoot?Qe([e],t.includeContainer,{filter:mt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Ze(e,t.includeContainer,mt.bind(null,t))},bt=function(e,t){if(t||={},!e)throw Error(`No node provided`);return qe.call(e,Ge)===!1?!1:ht(t,e)},xt=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`});function St(e,t){let n=vt(e,xt()),r=n.length;if(r===0)return;let i=B(N(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Ct(e){return St(N(e).body,1)||e}function wt(e){return St(N(e).body,-1)||e}function Tt(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!R(n,r)}function Et(e){vt(e,xt()).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Dt(e){e.querySelectorAll(`[data-tabindex]`).forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Ot=null;globalThis.requestAnimationFrame;var kt=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},At=class e{static create(){return new e}static request(e){return kt.request(e)}static cancel(e){return kt.cancel(e)}currentId=Ot;request(e){this.cancel(),this.currentId=kt.request(()=>{this.currentId=Ot,e()})}cancel=()=>{this.currentId!==Ot&&(kt.cancel(this.currentId),this.currentId=Ot)};disposeEffect=()=>this.cancel};function jt(){let e=p(At.create).current;return U(e.disposeEffect),e}function Q(e){return e==null?e:`current`in e?e.current:e}var Mt=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Nt={[Mt.startingStyle]:``},Pt={[Mt.endingStyle]:``},Ft={transitionStatus(e){return e===`starting`?Nt:e===`ending`?Pt:null}},It=e(a());function Lt(e,t=!1,n=!0){let r=jt();return T((i,a=null)=>{r.cancel();function o(){It.flushSync(i)}let s=Q(e);if(s==null)return;let c=s;if(typeof c.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{function e(){let e=Mt.startingStyle;if(!c.hasAttribute(e)){r.request(i);return}let t=new MutationObserver(()=>{c.hasAttribute(e)||(t.disconnect(),i())});t.observe(c,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}function i(){Promise.all(c.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||o()}).catch(()=>{let e=c.getAnimations();if(n){if(a?.aborted)return;o()}else e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&i()})}if(t){e();return}r.request(i)}})}function Rt(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=T(i),o=Lt(r,n,!1);H.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function zt(e,t=!1,n=!1){let[r,i]=H.useState(e&&t?`idle`:void 0),[a,o]=H.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),S(()=>{if(!e&&a&&r!==`ending`&&n){let e=At.request(()=>{i(`ending`)});return()=>{At.cancel(e)}}},[e,a,r,n]),S(()=>{if(!e||t)return;let n=At.request(()=>{i(void 0)});return()=>{At.cancel(n)}},[t,e]),S(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=At.request(()=>{i(`idle`)});return()=>{At.cancel(n)}},[t,e,a,i,r]),H.useMemo(()=>({mounted:a,setMounted:o,transitionStatus:r}),[a,r])}var Bt=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Mt.startingStyle]=`startingStyle`,e[e.endingStyle=Mt.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Vt=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Ht={[Vt.popupOpen]:``},Ut={[Vt.popupOpen]:``,[Vt.pressed]:``},Wt={[Bt.open]:``},Gt={[Bt.closed]:``},Kt={[Bt.anchorHidden]:``},qt={open(e){return e?Ht:null}},Jt={open(e){return e?Ut:null}},Yt={open(e){return e?Wt:Gt},anchorHidden(e){return e?Kt:null}};function Xt(e){let t=p(Zt,e).current;return t.next=e,S(t.effect),t}function Zt(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Qt(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var $=t(),$t=H.createContext(null),en=H.createContext(null),tn=()=>H.useContext($t)?.id||null,nn=e=>{let t=H.useContext(en);return e??t};function rn(e){return`data-base-ui-${e}`}var an={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},on={...an,position:`fixed`,top:0,left:0},sn={...an,position:`absolute`},cn=H.forwardRef(function(e,t){let[n,r]=H.useState();S(()=>{L&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,$.jsx)(`span`,{...e,ref:t,style:on,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})}),ln=0;function un(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(ln);let a=()=>e?.focus({preventScroll:n});i?a():ln=requestAnimationFrame(a)}var dn={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function fn(e){return e===`inert`?dn.inert:e===`aria-hidden`?dn[`aria-hidden`]:dn.none}var pn=new WeakSet,mn={},hn=0,gn=e=>e&&(e.host||gn(e.parentNode)),_n=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=gn(t);return e.contains(n)?n:null}).filter(e=>e!=null);function vn(e,t,n,r){let i=`data-base-ui-inert`,a=r?`inert`:n?`aria-hidden`:null,o=_n(t,e),s=new Set,c=new Set(o),l=[];mn[i]||(mn[i]=new WeakMap);let u=mn[i];o.forEach(d),f(t),s.clear();function d(e){!e||s.has(e)||(s.add(e),e.parentNode&&d(e.parentNode))}function f(e){!e||c.has(e)||[].forEach.call(e.children,e=>{if(v(e)!==`script`)if(s.has(e))f(e);else{let t=a?e.getAttribute(a):null,n=t!==null&&t!==`false`,r=fn(a),o=(r.get(e)||0)+1,s=(u.get(e)||0)+1;r.set(e,o),u.set(e,s),l.push(e),o===1&&n&&pn.add(e),s===1&&e.setAttribute(i,``),!n&&a&&e.setAttribute(a,a===`inert`?``:`true`)}})}return hn+=1,()=>{l.forEach(e=>{let t=fn(a),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!pn.has(e)&&a&&e.removeAttribute(a),pn.delete(e)),r||e.removeAttribute(i)}),--hn,hn||(dn.inert=new WeakMap,dn[`aria-hidden`]=new WeakMap,dn.none=new WeakMap,pn=new WeakSet,mn={})}}function yn(e,t=!1,n=!1){let r=N(e[0]).body;return vn(e.concat(Array.from(r.querySelectorAll(`[aria-live]`))),r,t,n)}var bn=H.createContext(null),xn=()=>H.useContext(bn),Sn=rn(`portal`);function Cn(e={}){let{ref:t,container:n,componentProps:r=f,elementProps:i}=e,a=F(),o=xn()?.portalNode,[c,l]=H.useState(null),[u,d]=H.useState(null),p=T(e=>{e!==null&&d(e)}),m=H.useRef(null);S(()=>{if(n===null){m.current&&(m.current=null,d(null),l(null));return}if(a==null)return;let e=(n&&(g(n)?n:n.current))??o??document.body;if(e==null){m.current&&(m.current=null,d(null),l(null));return}m.current!==e&&(m.current=e,d(null),l(e))},[n,o,a]);let h=s(`div`,r,{ref:[t,p],props:[{id:a,[Sn]:``},i]});return{portalNode:u,portalSubtree:c&&h?It.createPortal(h,c):null}}var wn=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,...s}=e,{portalNode:c,portalSubtree:l}=Cn({container:r,ref:t,componentProps:e,elementProps:s}),u=H.useRef(null),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),[h,g]=H.useState(null),_=h?.modal,v=h?.open,y=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!c;H.useEffect(()=>{if(!c||_)return;function e(e){c&&e.relatedTarget&&Tt(e)&&(e.type===`focusin`?Dt:Et)(c)}return c.addEventListener(`focusin`,e,!0),c.addEventListener(`focusout`,e,!0),()=>{c.removeEventListener(`focusin`,e,!0),c.removeEventListener(`focusout`,e,!0)}},[c,_]),H.useEffect(()=>{!c||v||Dt(c)},[v,c]);let b=H.useMemo(()=>({beforeOutsideRef:u,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:c,setFocusManagerState:g}),[c]);return(0,$.jsxs)(H.Fragment,{children:[l,(0,$.jsxs)(bn.Provider,{value:b,children:[y&&c&&(0,$.jsx)(cn,{"data-type":`outside`,ref:u,onFocus:e=>{Tt(e,c)?p.current?.focus():wt(h?h.domReference:null)?.focus()}}),y&&c&&(0,$.jsx)(`span`,{"aria-owns":c.id,style:d}),c&&It.createPortal(n,c),y&&c&&(0,$.jsx)(cn,{"data-type":`outside`,ref:f,onFocus:e=>{Tt(e,c)?m.current?.focus():(Ct(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,se(`focus-out`,e.nativeEvent)))}})]})]})});function Tn(e,t){let n=x(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`):``}var En=20,Dn=[];function On(){Dn=Dn.filter(e=>e.deref()?.isConnected)}function kn(e){On(),e&&v(e)!==`body`&&(Dn.push(new WeakRef(e)),Dn.length>En&&(Dn=Dn.slice(-En)))}function An(){return On(),Dn[Dn.length-1]?.deref()}function jn(e){if(!e)return null;let t=xt();return bt(e,t)?e:vt(e,t)[0]||e}function Mn(e){return!e||!e.isConnected?!1:typeof e.checkVisibility==`function`?e.checkVisibility():D(e).display!==`none`}function Nn(e,t){if(!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=xt(),r=yt(e,n).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return bt(e,n)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),i=e.getAttribute(`tabindex`);t.current.includes(`floating`)||r.length===0?i!==`0`&&e.setAttribute(`tabindex`,`0`):(i!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Pn(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=T(()=>b.current.floatingContext?.nodeId),C=i===!1,w=te(_)&&C,E=H.useRef([`content`]),D=Xt(i),O=Xt(a),A=Xt(l),j=nn(m),M=xn(),ee=H.useRef(null),P=H.useRef(null),F=H.useRef(!1),ne=H.useRef(!1),I=H.useRef(!1),L=H.useRef(-1),re=H.useRef(``),z=H.useRef(``),ie=H.useRef(null),ae=H.useRef(null),ce=u(ie,p,M?.beforeInsideRef),de=u(ae,M?.afterInsideRef),pe=ge(),U=ge(),me=jt(),he=M!=null,W=le(v),G=T((e=W)=>e?vt(e,xt()):[]),K=T(e=>{let t=G(e);return E.current.map(()=>t).filter(Boolean).flat()});H.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&R(W,B(N(W)))&&G().length===0&&!w&&ye(e)}let t=N(W);return t.addEventListener(`keydown`,e),()=>{t.removeEventListener(`keydown`,e)}},[r,_,W,s,E,w,G,K]),H.useEffect(()=>{if(r||!g)return;let e=N(W);function t(){I.current=!1}function n(e){let t=V(e);I.current=!(R(v,t)||R(_,t)||R(M?.portalNode,t)),z.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(ne.current=!0)}function i(){z.current=`keyboard`}return e.addEventListener(`pointerdown`,n,!0),e.addEventListener(`pointerup`,t,!0),e.addEventListener(`pointercancel`,t,!0),e.addEventListener(`keydown`,i,!0),()=>{e.removeEventListener(`pointerdown`,n,!0),e.removeEventListener(`pointerup`,t,!0),e.removeEventListener(`pointercancel`,t,!0),e.removeEventListener(`keydown`,i,!0)}},[r,v,_,W,g,M]),H.useEffect(()=>{if(r||!c)return;let e=N(W);function t(){ne.current=!0,U.start(0,()=>{ne.current=!1})}function n(e){let t=V(e),n=G().indexOf(t);n!==-1&&(L.current=n)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=V(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=n?.hasAttribute(rn(`focus-guard`))&&[ie.current,ae.current,M?.beforeInsideRef.current,M?.afterInsideRef.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,Q(f),Q(d)].includes(n),u=!(R(_,n)||R(v,n)||R(n,v)||R(M?.portalNode,n)||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>R(e,n))||l||j&&(_e(j.nodesRef.current,a).find(e=>R(e.context?.elements.floating,n)||R(e.context?.elements.domReference,n))||ve(j.nodesRef.current,a).find(e=>[e.context?.elements.floating,le(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&W&&Nn(W,E),o&&r!==_&&!Mn(i)&&B(e)===e.body){if(k(W)&&(W.focus(),o===`popup`)){me.request(()=>{W.focus()});return}let e=L.current,t=G(),n=t[e]||t[t.length-1]||W;k(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(w||!s)&&n&&u&&!ne.current&&(w||n!==An())&&(F.current=!0,h.setOpen(!1,se(oe,t)))})}function a(){I.current||(b.current.insideReactTree=!0,pe.start(0,()=>{b.current.insideReactTree=!1}))}let l=k(_)?_:null,u=[];if(!(!v&&!l))return l&&(l.addEventListener(`focusout`,i),l.addEventListener(`pointerdown`,t),u.push(()=>{l.removeEventListener(`focusout`,i),l.removeEventListener(`pointerdown`,t)})),v&&(v.addEventListener(`focusin`,n),v.addEventListener(`focusout`,i),M&&(v.addEventListener(`focusout`,a,!0),u.push(()=>{v.removeEventListener(`focusout`,a,!0)})),u.push(()=>{v.removeEventListener(`focusin`,n),v.removeEventListener(`focusout`,i)})),()=>{u.forEach(e=>{e()})}},[r,_,v,W,s,j,M,h,c,o,G,w,x,E,b,pe,U,me,d,f]),H.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(M?.portalNode?.querySelectorAll(`[${rn(`portal`)}]`)||[]);return yn([v,(j?ve(j.nodesRef.current,x()):[]).find(e=>te(e.context?.elements.domReference||null))?.context?.elements.domReference,...e,ee.current,P.current,ie.current,ae.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,Q(f),Q(d),w?_:null].filter(e=>e!=null),s||w)},[g,r,_,v,s,E,M,w,j,x,d,f]),S(()=>{if(!g||r||!k(W))return;let e=B(N(W));queueMicrotask(()=>{let t=K(W),n=D.current,r=typeof n==`function`?n(A.current||``):n;if(r===void 0||r===!1)return;let i;i=r===!0||r===null?t[0]||W:Q(r),i=i||t[0]||W,!R(W,e)&&un(i,{preventScroll:i===W})})},[r,g,W,C,K,D,A]),S(()=>{if(r||!W)return;let e=N(W);kn(B(e));function t(e){if(e.open||(re.current=Tn(e.nativeEvent,z.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(F.current=!0),e.reason===`outside-press`)if(e.nested)F.current=!1;else if(be(e.nativeEvent)||xe(e.nativeEvent))F.current=!1;else{let e=!1;document.createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?F.current=!1:F.current=!0}}y.on(`openchange`,t);let n=e.createElement(`span`);n.setAttribute(`tabindex`,`-1`),n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,on),he&&_&&_.insertAdjacentElement(`afterend`,n);function i(){let e=O.current,t=typeof e==`function`?e(re.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||An();return e&&e.isConnected?e:n}let r=_||An()||n;return Q(t)||r}return()=>{y.off(`openchange`,t);let r=B(e),a=R(v,r)||j&&_e(j.nodesRef.current,x(),!1).some(e=>R(e.context?.elements.floating,r)),o=i();queueMicrotask(()=>{let t=jn(o),i=typeof O.current!=`boolean`;O.current&&!F.current&&k(t)&&(!(!i&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),n.remove(),F.current=!1})}},[r,v,W,O,b,y,j,he,_,x]),S(()=>{if(!fe||g||!v)return;let e=B(N(v));!k(e)||!ue(e)||R(v,e)&&e.blur()},[g,v]),S(()=>{if(!(r||!M))return M.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{M.setFocusManagerState(null)}},[r,M,s,g,h,c,_]),S(()=>{if(!(r||!W))return Nn(W,E),()=>{queueMicrotask(On)}},[r,W,E]);let Se=!r&&(s?!w:!0)&&(he||s);return(0,$.jsxs)(H.Fragment,{children:[Se&&(0,$.jsx)(cn,{"data-type":`inside`,ref:ce,onFocus:e=>{if(s){let e=K();un(e[e.length-1])}else M?.portalNode&&(F.current=!1,Tt(e,M.portalNode)?Ct(_)?.focus():Q(f??M.beforeOutsideRef)?.focus())}}),n,Se&&(0,$.jsx)(cn,{"data-type":`inside`,ref:de,onFocus:e=>{s?un(K()[0]):M?.portalNode&&(c&&(F.current=!0),Tt(e,M.portalNode)?wt(_)?.focus():Q(d??M.afterOutsideRef)?.focus())}})]})}function Fn(e,t,n){let{reference:r,floating:i}=e,a=Z(t),o=je(t),s=Ae(o),c=X(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Oe(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function In(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Y(t,e),p=Ue(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=We(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=We(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ln=50,Rn=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:In},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Fn(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Z(t))||T.every(e=>Z(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Z(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Bn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vn(e){return Se.some(t=>e[t]>=0)}var Hn=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Y(e,t);switch(i){case`referenceHidden`:{let e=Bn(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vn(e)}}}case`escaped`:{let e=Bn(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vn(e)}}}default:return{}}}}},Un=new Set([`left`,`top`]);async function Wn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=X(n),s=Oe(n),c=Z(n)===`y`,l=Un.has(o)?-1:1,u=a&&c?-1:1,d=Y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Gn=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Wn(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Kn=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Y(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Z(X(i)),p=ke(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=De(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=De(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},qn=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Y(e,t),u={x:n,y:r},d=Z(i),f=ke(d),p=u[f],m=u[d],h=Y(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Un.has(X(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Jn=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Y(e,t),u=await o.detectOverflow(t,l),d=X(i),f=Oe(i),p=Z(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ce(h-u[g],v),x=Ce(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=q(u.left,0),t=q(u.right,0),n=q(u.top,0),r=q(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:q(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:q(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Yn(e){let t=D(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=k(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=we(n)!==a||we(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Xn(e){return h(e)?e:e.contextElement}function Zn(e){let t=Xn(e);if(!k(t))return J(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Yn(t),o=(a?we(n.width):n.width)/r,s=(a?we(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Qn=J(0);function $n(e){let t=x(e);return!m()||!t.visualViewport?Qn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function er(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==x(e)?!1:t}function tr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Xn(e),o=J(1);t&&(r?h(r)&&(o=Zn(r)):o=Zn(e));let s=er(a,n,r)?$n(a):J(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=x(a),t=r&&h(r)?x(r):r,n=e,i=O(n);for(;i&&r&&t!==n;){let e=Zn(i),t=i.getBoundingClientRect(),r=D(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=x(i),i=O(n)}}return We({width:u,height:d,x:c,y:l})}function nr(e,t){let n=y(e).scrollLeft;return t?t.left+n:tr(C(e)).left+n}function rr(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-nr(e,n),y:n.top+t.scrollTop}}function ir(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=C(r),s=t?A(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=J(1),u=J(0),d=k(r);if((d||!d&&!a)&&((v(r)!==`body`||j(o))&&(c=y(r)),d)){let e=tr(r);l=Zn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?rr(o,c):J(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ar(e){return Array.from(e.getClientRects())}function or(e){let t=C(e),n=y(e),r=e.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+nr(e),s=-n.scrollTop;return D(r).direction===`rtl`&&(o+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var sr=25;function cr(e,t){let n=x(e),r=C(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=m();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=nr(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=sr&&(a-=o)}else l<=sr&&(a+=l);return{width:a,height:o,x:s,y:c}}function lr(e,t){let n=tr(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=k(e)?Zn(e):J(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ur(e,t,n){let r;if(t===`viewport`)r=cr(e,n);else if(t===`document`)r=or(C(e));else if(h(t))r=lr(t,n);else{let n=$n(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return We(r)}function dr(e,t){let n=w(e);return n===t||!h(n)||M(n)?!1:D(n).position===`fixed`||dr(n,t)}function fr(e,t){let n=t.get(e);if(n)return n;let r=E(e,[],!1).filter(e=>h(e)&&v(e)!==`body`),i=null,a=D(e).position===`fixed`,o=a?w(e):e;for(;h(o)&&!M(o);){let t=D(o),n=b(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||j(o)&&!n&&dr(e,o))?r=r.filter(e=>e!==o):i=t,o=w(o)}return t.set(e,r),r}function pr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?A(t)?[]:fr(t,this._c):[].concat(n),r],o=ur(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!Sr(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function wr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Xn(e),u=i||a?[...l?E(l):[],...t?E(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Cr(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?tr(e):null;c&&g();function g(){let t=tr(e);h&&!Sr(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Tr=Gn,Er=Kn,Dr=zn,Or=Jn,kr=Hn,Ar=qn,jr=(e,t,n)=>{let r=new Map,i={platform:xr,...n},a={...i.platform,_c:r};return Rn(e,t,{...i,platform:a})},Mr=typeof document<`u`?H.useLayoutEffect:function(){};function Nr(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(!Nr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Nr(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Pr(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fr(e,t){let n=Pr(e);return Math.round(t*n)/n}function Ir(e){let t=H.useRef(e);return Mr(()=>{t.current=e}),t}function Lr(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Nr(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=Ir(c),D=Ir(i),O=Ir(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),jr(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Nr(w.current,t)&&(w.current=t,It.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Mr(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=H.useRef(!1);Mr(()=>(A.current=!0,()=>{A.current=!1}),[]),Mr(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=H.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Fr(M.floating,u.x),r=Fr(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Pr(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var Rr=(e,t)=>{let n=Tr(e);return{name:n.name,fn:n.fn,options:[e,t]}},zr=(e,t)=>{let n=Er(e);return{name:n.name,fn:n.fn,options:[e,t]}},Br=(e,t)=>({fn:Ar(e).fn,options:[e,t]}),Vr=(e,t)=>{let n=Dr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hr=(e,t)=>{let n=Or(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ur=(e,t)=>{let n=kr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wr={intentional:`onClick`,sloppy:`onPointerDown`};function Gr(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Kr(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`referenceElement`),o=n.useState(`domReferenceElement`),{onOpenChange:s,dataRef:c}=n.context,{enabled:l=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:f=`sloppy`,referencePress:p=!1,referencePressEvent:g=`sloppy`,ancestorScroll:_=!1,bubbles:v,externalTree:y}=t,b=nn(y),x=T(typeof d==`function`?d:()=>!1),S=typeof d==`function`?x:d,C=H.useRef(!1),{escapeKey:O,outsidePress:A}=Gr(v),j=H.useRef(null),ee=ge(),te=ge(),P=T(()=>{te.clear(),c.current.insideReactTree=!1}),F=H.useRef(!1),ne=H.useRef(``),I=T(e=>{ne.current=e.pointerType}),L=T(()=>{let e=ne.current,t=e===`pen`||!e?`mouse`:e,n=typeof f==`function`?f():f;return typeof n==`string`?n:n[t]}),B=T(e=>{if(!r||!l||!u||e.key!==`Escape`||F.current)return;let t=c.current.floatingContext?.nodeId,i=b?_e(b.nodesRef.current,t):[];if(!O&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let a=se(re,W(e)?e.nativeEvent:e);n.setOpen(!1,a),!O&&!a.isPropagationAllowed&&e.stopPropagation()}),ae=T(e=>{let t=L();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}),oe=T(()=>{c.current.insideReactTree=!0,te.start(0,P)}),le=T((e,t=!1)=>{if(ae(e)){P();return}if(c.current.insideReactTree){P();return}if(L()===`intentional`&&t||typeof S==`function`&&!S(e))return;let r=V(e),i=`[${rn(`inert`)}]`,a=N(n.select(`floatingElement`)).querySelectorAll(i),o=n.context.triggerElements;if(r&&(o.hasElement(r)||o.hasMatchingElement(e=>R(e,r))))return;let s=h(r)?r:null;for(;s&&!M(s);){let e=w(s);if(M(e)||!h(e))break;s=e}if(a.length&&h(r)&&!de(r)&&!R(r,n.select(`floatingElement`))&&Array.from(a).every(e=>!R(s,e)))return;if(k(r)&&!(`touches`in e)){let t=M(r),n=D(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}let l=c.current.floatingContext?.nodeId,u=b&&_e(b.nodesRef.current,l).some(t=>z(e,t.context?.elements.floating));if(z(e,n.select(`floatingElement`))||z(e,n.select(`domReferenceElement`))||u)return;let d=b?_e(b.nodesRef.current,l):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,se(ie,e)),P()}),ue=T(e=>{L()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!l||z(e,n.select(`floatingElement`))||z(e,n.select(`domReferenceElement`))||le(e)}),fe=T(e=>{if(L()!==`sloppy`||!n.select(`open`)||!l||z(e,n.select(`floatingElement`))||z(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(j.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},ee.start(1e3,()=>{j.current&&(j.current.dismissOnTouchEnd=!1,j.current.dismissOnMouseDown=!1)}))}),pe=T(e=>{let t=V(e);function n(){fe(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}),U=T(e=>{let t=C.current;if(C.current=!1,ee.clear(),e.type===`mousedown`&&j.current&&!j.current.dismissOnMouseDown)return;let n=V(e);function r(){e.type===`pointerdown`?ue(e):le(e,t),n?.removeEventListener(e.type,r)}n?.addEventListener(e.type,r)}),me=T(e=>{if(L()!==`sloppy`||!j.current||z(e,n.select(`floatingElement`))||z(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-j.current.startX),i=Math.abs(t.clientY-j.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(j.current.dismissOnTouchEnd=!0),a>10&&(le(e),ee.clear(),j.current=null)}),ve=T(e=>{let t=V(e);function n(){me(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}),ye=T(e=>{L()!==`sloppy`||!j.current||z(e,n.select(`floatingElement`))||z(e,n.select(`domReferenceElement`))||(j.current.dismissOnTouchEnd&&le(e),ee.clear(),j.current=null)}),be=T(e=>{let t=V(e);function n(){ye(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)});H.useEffect(()=>{if(!r||!l)return;c.current.__escapeKeyBubbles=O,c.current.__outsidePressBubbles=A;let e=new he;function t(e){n.setOpen(!1,se(ce,e))}function s(){e.clear(),F.current=!0}function d(){e.start(m()?5:0,()=>{F.current=!1})}let f=N(i);f.addEventListener(`pointerdown`,I,!0),u&&(f.addEventListener(`keydown`,B),f.addEventListener(`compositionstart`,s),f.addEventListener(`compositionend`,d)),S&&(f.addEventListener(`click`,U,!0),f.addEventListener(`pointerdown`,U,!0),f.addEventListener(`touchstart`,pe,!0),f.addEventListener(`touchmove`,ve,!0),f.addEventListener(`touchend`,be,!0),f.addEventListener(`mousedown`,U,!0));let p=[];return _&&(h(o)&&(p=E(o)),h(i)&&(p=p.concat(E(i))),!h(a)&&a&&a.contextElement&&(p=p.concat(E(a.contextElement)))),p=p.filter(e=>e!==f.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t,{passive:!0})}),()=>{f.removeEventListener(`pointerdown`,I,!0),u&&(f.removeEventListener(`keydown`,B),f.removeEventListener(`compositionstart`,s),f.removeEventListener(`compositionend`,d)),S&&(f.removeEventListener(`click`,U,!0),f.removeEventListener(`pointerdown`,U,!0),f.removeEventListener(`touchstart`,pe,!0),f.removeEventListener(`touchmove`,ve,!0),f.removeEventListener(`touchend`,be,!0),f.removeEventListener(`mousedown`,U,!0)),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),e.clear(),C.current=!1}},[c,i,a,o,u,S,r,s,_,l,O,A,B,le,U,ue,pe,ve,be,I,n]),H.useEffect(P,[S,P]);let xe=H.useMemo(()=>({onKeyDown:B,...p&&{[Wr[g]]:e=>{n.setOpen(!1,se(`trigger-press`,e.nativeEvent))},...g!==`intentional`&&{onClick(e){n.setOpen(!1,se(`trigger-press`,e.nativeEvent))}}}}),[B,n,p,g]),G=T(e=>{let t=V(e.nativeEvent);!R(n.select(`floatingElement`),t)||e.button!==0||(C.current=!0)}),K=T(e=>{!r||!l||e.button!==0||(C.current=!0)}),Se=H.useMemo(()=>({onKeyDown:B,onPointerDown:G,onMouseDown:G,onMouseUp:G,onClickCapture:oe,onMouseDownCapture(e){oe(),K(e)},onPointerDownCapture(e){oe(),K(e)},onMouseUpCapture:oe,onTouchEndCapture:oe,onTouchMoveCapture:oe}),[B,G,oe,K]);return H.useMemo(()=>l?{reference:xe,floating:Se,trigger:xe}:{},[l,xe,Se])}var qr=Symbol(`NOT_FOUND`);function Jr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Yr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function Xr(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Zr=e=>Array.isArray(e)?e:[e];function Qr(e){let t=Array.isArray(e[0])?e[0]:e;return Xr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function $r(e,t){let n=[],{length:r}=e;for(let i=0;it(e,n.key));if(r>-1){let e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return qr}function i(t,i){r(t)===qr&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var ni=(e,t)=>e===t;function ri(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;let{length:r}=t;for(let i=0;ii(e.value,t));e&&(t=e.value,o!==0&&o--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}var ai=class{constructor(e){this.value=e}deref(){return this.value}},oi=typeof WeakRef<`u`?WeakRef:ai,si=0,ci=1;function li(){return{s:si,v:void 0,o:null,p:null}}function ui(e,t={}){let n=li(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e{n=li(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function di(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Jr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=ui,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=Zr(c),p=Zr(u),m=Qr(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=$r(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var fi=di(ui),pi=Object.assign((e,t=fi)=>{Yr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>pi});di({memoize:ii,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});var mi=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(ee(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},hi=[],gi=void 0;function _i(){return gi}function vi(e){hi.push(e)}function yi(e){let t=(t,n)=>{let r=p(xi).current,i;try{gi=r;for(let e of hi)e.before(r);i=e(t,n);for(let e of hi)e.after(r);r.didInitialize=!0}finally{gi=void 0}return i};return t.displayName=e.displayName||e.name,t}function bi(e){return H.forwardRef(yi(e))}function xi(){return{didInitialize:!1}}var Si=i(),Ci=r(),wi=l(19)?Di:Oi;function Ti(e,t,n,r,i){return wi(e,t,n,r,i)}function Ei(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Si.useSyncExternalStore)(e.subscribe,a,a)}vi({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Si.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Di(e,t,n,r,i){let a=_i();if(!a)return Ei(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Oi(e,t,n,r,i){return(0,Ci.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ki=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Ti(this,e,t,n,r)}},Ai=class extends ki{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e),S(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;S(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;S(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=t!==void 0;S(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),Ti(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=T(t??c);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},ji={open:mi(e=>e.open),domReferenceElement:mi(e=>e.domReferenceElement),referenceElement:mi(e=>e.positionReference??e.referenceElement),floatingElement:mi(e=>e.floatingElement),floatingId:mi(e=>e.floatingId)},Mi=class extends Ai{constructor(e){let{nested:t,noEmit:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Qt(),nested:t,noEmit:n,triggerElements:i},ji)}setOpen=(e,t)=>{if((!e||!this.state.open||K(t.event))&&(this.context.dataRef.current.openEvent=e?t.event:void 0),!this.context.noEmit){let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)}this.context.onOpenChange?.(e,t)}},Ni=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Pi(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=H.useCallback(t=>Fi(t,e,`reference`),t),o=H.useCallback(t=>Fi(t,e,`floating`),n),s=H.useCallback(t=>Fi(t,e,`item`),r),c=H.useCallback(t=>Fi(t,e,`trigger`),i);return H.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function Fi(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[ae]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var Li=`ArrowUp`,Ri=`ArrowDown`,zi=`ArrowLeft`,Bi=`ArrowRight`,Vi=`Home`,Hi=new Set([zi,Bi]),Ui=new Set([Li,Ri]),Wi=new Set([...Hi,...Ui]);new Set([...Wi,Vi,`End`]);var Gi=new Set([Li,Ri,zi,Bi,Vi,`End`]);function Ki(e){return l(19)?e:e?`true`:void 0}var qi=H.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n?.getBoundingClientRect();i=`polygon( + 0% 0%, + 100% 0%, + 100% 100%, + 0% 100%, + 0% 0%, + ${e.left}px ${e.top}px, + ${e.left}px ${e.bottom}px, + ${e.right}px ${e.bottom}px, + ${e.right}px ${e.top}px, + ${e.left}px ${e.top}px + )`}return(0,$.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Ji={},Yi={},Xi=``;function Zi(e){if(typeof document>`u`)return!1;let t=N(e);return x(t).innerWidth-t.documentElement.clientWidth>0}function Qi(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=N(e),n=t.documentElement,r=t.body,i=j(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function $i(e){let t=N(e),n=t.documentElement,r=t.body,i=j(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function ea(e){let t=N(e),n=t.documentElement,r=t.body,i=x(n),a=0,o=0,s=!1,c=At.create();if(fe&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Ji={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Xi=n.style.scrollBehavior,Yi={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=j(n)?n:r;if(s=Qi(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Ji),Object.assign(r.style,Yi),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Xi)}function d(){u(),c.request(l)}return l(),i.addEventListener(`resize`,d),()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&i.removeEventListener(`resize`,d)}}var ta=new class{lockCount=0;restore=null;timeoutLock=he.create();timeoutUnlock=he.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=N(e).documentElement,n=x(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=c;return}this.restore=P||!Zi(e)?$i(e):ea(e)}};function na(e=!0,t=null){S(()=>{if(e)return ta.acquire(t)},[e,t])}function ra(e){let t=H.useRef(``),n=H.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:H.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ia(e){let[t,n]=H.useState(null),r=T((t,r)=>{e||n(r||(P?`touch`:``))}),i=H.useCallback(()=>{n(null)},[]),{onClick:a,onPointerDown:o}=ra(r);return H.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:a,onPointerDown:o}}),[t,i,a,o])}export{G as $,rn as A,Rt as B,wr as C,un as D,Cn as E,Vt as F,Te as G,jt as H,Yt as I,Ae as J,Oe as K,Jt as L,nn as M,Xt as N,on as O,Bt as P,K as Q,qt as R,Lr as S,wn as T,De as U,Ft as V,Y as W,X,Ue as Y,Z,Ur as _,Gi as a,ge as at,zr as b,Mi as c,Ti as d,be as et,yi as f,Vr as g,Kr as h,Ki as i,he as it,tn as j,sn as k,Ai as l,mi as m,na as n,ye as nt,Pi as o,U as ot,bi as p,je as q,qi as r,_e as rt,Ni as s,ia as t,xe as tt,ki as u,Br as v,Pn as w,Hr as x,Rr as y,zt as z}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/useRouter.js b/hive/services/hiveui/frontend/dist/assets/useRouter.js new file mode 100644 index 000000000..5d95b9649 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/useRouter.js @@ -0,0 +1 @@ +import{a as e,r as t}from"./compiler-runtime.js";var n=!0;function r(e,t){if(!n){if(e)return;var r=`Warning: `+t;typeof console<`u`&&console.warn(r);try{throw Error(r)}catch{}}}var i=e(t(),1),a=i.createContext(null);function o(e){let t=i.useContext(a);return r(!((e?.warn??!0)&&!t),`useRouter must be used inside a component!`),t}export{a as n,r,o as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/useRouterState.js b/hive/services/hiveui/frontend/dist/assets/useRouterState.js new file mode 100644 index 000000000..2b663c13f --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/useRouterState.js @@ -0,0 +1 @@ +import{a as e,i as t,n,r}from"./compiler-runtime.js";import{t as i}from"./useRouter.js";function a(e){return e[e.length-1]}function o(e){return typeof e==`function`}function s(e,t){return o(e)?e(t):e}var c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function u(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=t,i=m(e)&&m(r);if(!i&&!(f(e)&&f(r)))return r;let a=i?e:d(e);if(!a)return r;let o=i?r:d(r);if(!o)return r;let s=a.length,l=o.length,p=i?Array(l):{},h=0;for(let t=0;ti||!h(e[o],t[o],n)))return!1;return i===a}return!1}function g(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function _(e){return typeof e?.message==`string`?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`):!1}function v(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function y(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function b(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return y(t)}var x=[`http:`,`https:`,`mailto:`,`tel:`];function S(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var ee={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},C=/[&><\u2028\u2029]/g;function te(e){return e.replace(C,e=>ee[e])}function ne(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=b(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=b(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function w(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var T=!0,E=`Invariant failed`;function D(e,t){if(!e){if(T)throw Error(E);var n=typeof t==`function`?t():t,r=n?`${E}: ${n}`:E;throw Error(r)}}function O(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var k=4,A=5;function re(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function j(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=re(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.skipOnParamError&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=I(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.skipOnParamError&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=I(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=I(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=F(n.fullPath??n.from);e.kind=A,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=F(n.fullPath??n.from);e.kind=k,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=n.options?.params?.parse??null,i.skipOnParamError=l,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)M(e,t,r,s,i,a,o)}function N(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 P(e){if(e.pathless)for(let t of e.pathless)P(t);if(e.static)for(let t of e.static.values())P(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())P(t);if(e.dynamic?.length){e.dynamic.sort(N);for(let t of e.dynamic)P(t)}if(e.optional?.length){e.optional.sort(N);for(let t of e.optional)P(t)}if(e.wildcard?.length){e.wildcard.sort(N);for(let t of e.wildcard)P(t)}}function F(e){return{kind:0,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 I(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 ie(e,t){let n=F(`/`),r=new Uint16Array(6);for(let t of e)M(!1,r,t,1,n,0);P(n),t.masksTree=n,t.flatCache=O(1e3)}function ae(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=L(e,t.masksTree);return t.flatCache.set(e,r),r}function oe(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=F(`/`),M(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),L(r,o,n)}function se(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=L(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=ue(a.route)),t.matchCache.set(r,a),a}function ce(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function le(e,t=!1,n){let r=F(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return M(t,i,e,1,r,0,e=>{if(n?.(e,s),D(!(e.id in a),`Duplicate routes found with id: ${String(e.id)}`),a[e.id]=e,s!==0&&e.path){let t=ce(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),P(r),{processedTree:{segmentTree:r,singleCache:O(1e3),matchCache:O(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function L(e,t,n=!1){let r=e.split(`/`),i=z(e,r,t,n);if(!i)return null;let[a]=R(e,r,i);return{route:i.node.route,rawParams:a,parsedParams:i.parsedParams}}function R(e,t,n){let r=de(n.node),i=null,a={},o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s=0;n--){let r=i.optional[n];c.push({node:r,index:a,skipped:e,depth:t,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v,parsedParams:y})}if(!b)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:o}=n;if(r||o){let e=n.caseSensitive?x:S??=x.toLowerCase();if(r&&!e.startsWith(r)||o&&!e.endsWith(o))continue}c.push({node:n,index:a+1,skipped:f,depth:t,statics:m,dynamics:h,optionals:g+1,extract:_,rawParams:v,parsedParams:y})}}if(!b&&i.dynamic&&x)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?x:S??=x.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}c.push({node:t,index:a+1,skipped:f,depth:p+1,statics:m,dynamics:h+1,optionals:g,extract:_,rawParams:v,parsedParams:y})}if(!b&&i.staticInsensitive){let e=i.staticInsensitive.get(S??=x.toLowerCase());e&&c.push({node:e,index:a+1,skipped:f,depth:p+1,statics:m+1,dynamics:h,optionals:g,extract:_,rawParams:v,parsedParams:y})}if(!b&&i.static){let e=i.static.get(x);e&&c.push({node:e,index:a+1,skipped:f,depth:p+1,statics:m+1,dynamics:h,optionals:g,extract:_,rawParams:v,parsedParams:y})}if(i.pathless){let e=p+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];c.push({node:n,index:a,skipped:f,depth:e,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v,parsedParams:y})}}}if(d&&l)return V(l,d)?d:l;if(d)return d;if(l)return l;if(r&&u){let n=u.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===k)>(e.node.kind===k)||t.node.kind===k==(e.node.kind===k)&&t.depth>e.depth))):!0}function fe(e){return H(e.filter(e=>e!==void 0).join(`/`))}function H(e){return e.replace(/\/{2,}/g,`/`)}function U(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function W(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function pe(e){return W(U(e))}function G(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function me(e,t,n){return G(e,n)===G(t,n)}function he({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),o=!i&&t===`.`,s;if(r){s=i?t:o?e:e+`\0`+t;let n=r.get(s);if(n)return n}let c;if(o)c=e.split(`/`);else if(i)c=t.split(`/`);else{for(c=e.split(`/`);c.length>1&&a(c)===``;)c.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(a(c)===``?n===`never`&&c.pop():n===`always`&&c.push(``));let l,u=``;for(let e=0;e0&&(u+=`/`);let t=c[e];if(!t)continue;l=j(t,0,l);let n=l[0];if(n===0){u+=t;continue}let r=l[5],i=t.substring(0,l[1]),a=t.substring(l[4],r),o=t.substring(l[2],l[3]);n===1?u+=i||a?`${i}{$${o}}${a}`:`$${o}`:n===2?u+=i||a?`${i}{$}${a}`:`$`:u+=`${i}{-$${o}}${a}`}u=H(u);let d=u||`/`;return s&&r&&r.set(s,d),d}function ge(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function K(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>q(e,n)).join(`/`):q(r,n):r}function _e({path:e,params:t,decoder:n,...r}){let i=!1,a={};if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s!0,()=>!1)}function ye(){return()=>{}}var be=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Z=t(((e,t)=>{t.exports=be()})),Q=t((e=>{var t=r(),n=Z();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),$=t(((e,t)=>{t.exports=Q()})),xe=$();function Se(e,t){return e===t}function Ce(e,t,n=Se){let r=(0,Y.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,Y.useCallback)(()=>e?.get(),[e]);return(0,xe.useSyncExternalStoreWithSelector)(r,i,i,t,n)}function we(e){let t=i({warn:e?.router===void 0}),n=e?.router||t,r=(0,Y.useRef)(void 0);return Ce(n.__store,t=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){let n=u(r.current,e.select(t));return r.current=n,n}return e.select(t)}return t})}export{S as A,x as C,w as D,h as E,v as M,a as N,te as O,u as P,D as S,ne as T,se as _,X as a,le as b,me as c,G as d,he as f,ae as g,W as h,ve as i,_ as j,s as k,_e as l,U as m,$ as n,H as o,pe as p,Z as r,ge as s,we as t,fe as u,oe as v,g as w,O as x,ie as y}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js index 6c0b0436d..36b642bca 100644 --- a/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js +++ b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js @@ -1 +1 @@ -import{bb as G,bc as N,bd as l,be as Q,bf as g,bg as M,bh as _,bi as B,bj as J,bk as C,bl as X,bm as Y,bn as j,bo as z,r as d,bp as V,ar 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}; +import{a as e,n as t,r as n}from"./compiler-runtime.js";import{A as r,D as i,E as a,M as o,O as s,S as c,T as l,c as u,j as d,l as f,n as p,u as m,v as h,w as g,y as _}from"./QueryClientProvider.js";import{M as v}from"./index.js";var y=class extends o{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=f(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof l(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!i(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||l(this.options.enabled,this.#t)!==l(t.enabled,this.#t)||a(this.options.staleTime,this.#t)!==a(t.staleTime,this.#t))&&this.#g();let o=this.#_();r&&(this.#t!==n||l(this.options.enabled,this.#t)!==l(t.enabled,this.#t)||o!==this.#p)&&this.#v(o)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c)),t}#g(){this.#b();let e=a(this.options.staleTime,this.#t);if(h||this.#r.isStale||!_(e))return;let t=r(this.#r.dataUpdatedAt,e)+1;this.#d=d.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(h||l(this.options.enabled,this.#t)===!1||!_(this.#p)||this.#p===0)&&(this.#f=d.setInterval(()=>{(this.options.refetchIntervalInBackground||m.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(d.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(d.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,u={...c},d=!1,p;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&x(e,t),o=i&&C(e,n,t,r);(a||o)&&(u={...u,...v(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(u.fetchStatus=`idle`)}let{error:m,errorUpdatedAt:h,status:_}=u;p=u.data;let y=!1;if(t.placeholderData!==void 0&&p===void 0&&_===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,y=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(_=`success`,p=g(i?.data,e,t),d=!0)}if(t.select&&p!==void 0&&!y)if(i&&p===a?.data&&t.select===this.#c)p=this.#l;else try{this.#c=t.select,p=t.select(p),p=g(i?.data,p,t),this.#l=p,this.#s=null}catch(e){this.#s=e}this.#s&&(m=this.#s,p=this.#l,h=Date.now(),_=`error`);let b=u.fetchStatus===`fetching`,S=_===`pending`,T=_===`error`,E=S&&b,D=p!==void 0,O={status:_,fetchStatus:u.fetchStatus,isPending:S,isSuccess:_===`success`,isError:T,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:u.fetchStatus===`paused`,isPlaceholderData:d,isRefetchError:T&&D,isStale:w(e,t),refetch:this.refetch,promise:this.#o,isEnabled:l(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,i=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},a=()=>{i(this.#o=O.promise=f())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||O.data!==o.value)&&a();break;case`rejected`:(!r||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!i(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){u.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return l(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(l(t.enabled,e)!==!1&&a(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||l(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return l(t.enabled,e)!==!1&&e.isStaleByTime(a(t.staleTime,e))}function T(e,t){return!i(e.getCurrentResult(),t)}var E=e(n(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider,t();function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?s(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||s(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let r=O(),i=j(),a=p(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,I(o),M(o,i,s),N(i);let l=!a.getQueryCache().get(o.queryHash),[d]=E.useState(()=>new t(a,o)),f=d.getOptimisticResult(o),m=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(e=>{let t=m?d.subscribe(u.batchCalls(e)):c;return d.updateResult(),t},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(o)},[o,d]),R(o,f))throw z(o,d,i);if(P({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,f),o.experimental_prefetchInRender&&!h&&L(f,r)&&(l?z(o,d,i):s?.promise)?.catch(c).finally(()=>{d.updateResult()}),o.notifyOnChangeProps?f:d.trackResult(f)}function V(e,t){return B({...e,enabled:!0,suspense:!0,throwOnError:F,placeholderData:void 0},y,t)}export{V as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/utils.js b/hive/services/hiveui/frontend/dist/assets/utils.js new file mode 100644 index 000000000..91553b13e --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/utils.js @@ -0,0 +1 @@ +import{a as e,i as t,r as n}from"./compiler-runtime.js";var r=e(n(),1),i=r.use,a=typeof window<`u`?r.useLayoutEffect:r.useEffect;function o(e){let t=r.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function s(e,t,n={},i={}){r.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!=`function`)return;let r=new IntersectionObserver(([e])=>{t(e)},n);return r.observe(e.current),()=>{r.disconnect()}},[t,n,i.disabled,e])}function c(e){let t=r.useRef(null);return r.useImperativeHandle(e,()=>t.current,[]),t}var l=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=l()}));function d(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;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),m=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),h=`-`,g=[],_=`arbitrary..`,v=e=>{let t=x(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return b(e);let n=e.split(h);return y(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ee(i,t):t:i||g}return n[e]||g}}},y=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=y(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(h):e.slice(t).join(h),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?_+r:void 0})(),x=e=>{let{theme:t,classGroups:n}=e;return S(n,t)},S=(e,t)=>{let n=m();for(let r in e){let i=e[r];C(i,n,r,t)}return n},C=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){te(e,t,n);return}if(typeof e==`function`){ne(e,t,n,r);return}T(e,t,n,r)},te=(e,t,n)=>{let r=e===``?t:re(t,e);r.classGroupId=n},ne=(e,t,n,r)=>{if(E(e)){C(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(p(n,e))},T=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(h),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,D=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},O=`!`,k=`:`,A=[],j=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),M=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return j(t,l,c,u)};if(t){let e=t+k,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):j(A,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ie=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ae=e=>({cache:D(e.cacheSize),parseClassName:M(e),sortModifiers:ie(e),...v(e)}),oe=/\s+/,se=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(oe),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:ee}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let p=!!ee,m=r(p?f.substring(0,ee):f);if(!m){if(!p){c=t+(c.length>0?` `+c:c);continue}if(m=r(f),!m){c=t+(c.length>0?` `+c:c);continue}p=!1}let h=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),g=d?h+O:h,_=g+m;if(o.indexOf(_)>-1)continue;o.push(_);let v=i(m,p);for(let e=0;e0?` `+c:c)}return c},N=(...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,a,o=o=>(n=ae(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=se(e,n);return i(e,a),a};return a=o,(...e)=>a(N(...e))},ce=[],I=e=>{let t=t=>t[e]||ce;return t.isThemeGetter=!0,t},L=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R=/^\((?:(\w[\w-]*):)?(.+)\)$/i,z=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V=/\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$/,H=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,le=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>z.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),de=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>B.test(e),fe=()=>!0,pe=e=>V.test(e)&&!H.test(e),me=()=>!1,he=e=>le.test(e),ge=e=>ue.test(e),_e=e=>!q(e)&&!Y(e),ve=e=>Q(e,Me,me),q=e=>L.test(e),J=e=>Q(e,Ne,pe),ye=e=>Q(e,Pe,W),be=e=>Q(e,Ie,fe),xe=e=>Q(e,Fe,me),Se=e=>Q(e,Ae,me),Ce=e=>Q(e,je,ge),we=e=>Q(e,Le,he),Y=e=>R.test(e),X=e=>$(e,Ne),Te=e=>$(e,Fe),Ee=e=>$(e,Ae),De=e=>$(e,Me),Oe=e=>$(e,je),Z=e=>$(e,Le,!0),ke=e=>$(e,Ie,!0),Q=(e,t,n)=>{let r=L.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=R.exec(e);return r?r[1]?t(r[1]):n:!1},Ae=e=>e===`position`||e===`percentage`,je=e=>e===`image`||e===`url`,Me=e=>e===`length`||e===`size`||e===`bg-size`,Ne=e=>e===`length`,Pe=e=>e===`number`,Fe=e=>e===`family-name`,Ie=e=>e===`number`||e===`weight`,Le=e=>e===`shadow`,Re=F(()=>{let e=I(`color`),t=I(`font`),n=I(`text`),r=I(`font-weight`),i=I(`tracking`),a=I(`leading`),o=I(`breakpoint`),s=I(`container`),c=I(`spacing`),l=I(`radius`),u=I(`shadow`),d=I(`inset-shadow`),f=I(`text-shadow`),ee=I(`drop-shadow`),p=I(`blur`),m=I(`perspective`),h=I(`aspect`),g=I(`ease`),_=I(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),Y,q],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],S=()=>[`auto`,`contain`,`none`],C=()=>[Y,q,c],w=()=>[U,`full`,`auto`,...C()],te=()=>[G,`none`,`subgrid`,Y,q],ne=()=>[`auto`,{span:[`full`,G,Y,q]},G,Y,q],T=()=>[G,`auto`,Y,q],re=()=>[`auto`,`min`,`max`,`fr`,Y,q],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...C()],k=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],A=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],j=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],M=()=>[e,Y,q],ie=()=>[...y(),Ee,Se,{position:[Y,q]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,De,ve,{size:[Y,q]}],se=()=>[de,X,J],N=()=>[``,`none`,`full`,l,Y,q],P=()=>[``,W,X,J],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[W,de,Ee,Se],R=()=>[``,`none`,p,Y,q],z=()=>[`none`,W,Y,q],B=()=>[`none`,W,Y,q],V=()=>[W,Y,q],H=()=>[U,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[fe],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[_e],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,Y,h]}],container:[`container`],columns:[{columns:[W,q,Y,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,Y,q]}],basis:[{basis:[U,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,Y,q]}],shrink:[{shrink:[``,W,Y,q]}],order:[{order:[G,`first`,`last`,`none`,Y,q]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...A()]}],"min-inline-size":[{"min-inline":[`auto`,...A()]}],"max-inline-size":[{"max-inline":[`none`,...A()]}],"block-size":[{block:[`auto`,...j()]}],"min-block-size":[{"min-block":[`auto`,...j()]}],"max-block-size":[{"max-block":[`none`,...j()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,X,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ke,be]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,de,q]}],"font-family":[{font:[Te,xe,t]}],"font-features":[{"font-features":[q]}],"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,Y,q]}],"line-clamp":[{"line-clamp":[W,`none`,Y,ye]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":[`none`,Y,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Y,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,Y,J]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[W,`auto`,Y,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Y,q]}],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`,Y,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,Y,q],radial:[``,Y,q],conic:[G,Y,q]},Oe,Ce]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,Y,q]}],"outline-w":[{outline:[``,W,X,J]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,Z,we]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,Z,we]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,Z,we]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[W,Y,q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Y,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Y,q]}],filter:[{filter:[``,`none`,Y,q]}],blur:[{blur:R()}],brightness:[{brightness:[W,Y,q]}],contrast:[{contrast:[W,Y,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,ee,Z,we]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,W,Y,q]}],"hue-rotate":[{"hue-rotate":[W,Y,q]}],invert:[{invert:[``,W,Y,q]}],saturate:[{saturate:[W,Y,q]}],sepia:[{sepia:[``,W,Y,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Y,q]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[W,Y,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,Y,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,Y,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,Y,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,Y,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,Y,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,Y,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,Y,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Y,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,Y,q]}],ease:[{ease:[`linear`,`initial`,g,Y,q]}],delay:[{delay:[W,Y,q]}],animate:[{animate:[`none`,_,Y,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,Y,q]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":[`scale-3d`],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[Y,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":[`translate-none`],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"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`,Y,q]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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`,Y,q]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[W,X,J,ye]}],stroke:[{stroke:[`none`,...M()]}],"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`]}});function ze(...e){return Re(f(e))}var Be=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function Ve(e){return e?Be.format(new Date(e)):`Unknown`}var He=[`B`,`KB`,`MB`,`GB`,`TB`];function Ue(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${He[t]}`}function We(e){return e?.find(e=>e.Key===`Name`)?.Value}var Ge=/\/$/;function Ke(e){return e.replace(Ge,``)}function qe(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function Je(e,t){return e.startsWith(t)?e:`${t}${e}`}function Ye(e,t){return e.startsWith(t)?e.slice(t.length):e}export{Ve as a,Ke as c,i as d,c as f,o as h,Ye as i,f as l,a as m,ze as n,Ue as o,s as p,qe as r,We as s,Je as t,u}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/assets/zod.js b/hive/services/hiveui/frontend/dist/assets/zod.js index 94efb9888..1f03472a6 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{a as e,r as t}from"./compiler-runtime.js";import{$t as n,en as r,tn as i}from"./awsClient.js";var a=e(t(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,p=(e,t)=>e.has(f(t)),m=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},h=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function g(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(h&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&m(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=g(e[t]));return r}var _=e=>/^\w*$/.test(e),v=e=>e===void 0,y=e=>Array.isArray(e)?e.filter(Boolean):[],b=e=>y(e.replace(/["|']|\]/g,``).split(/\.|\[/)),x=(e,t,n)=>{if(!t||!u(e))return n;let r=(_(t)?[t]:b(t)).reduce((e,t)=>c(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r},S=e=>typeof e==`boolean`,C=e=>typeof e==`function`,w=(e,t,n)=>{let r=-1,i=_(t)?[t]:b(t),a=i.length,o=a-1;for(;++ra.useContext(O),A=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==E.all&&(t._proxyFormState[i]=!r||E.all),n&&(n[i]=!0),e[i]}});return i},j=typeof window<`u`?a.useLayoutEffect:a.useEffect;function M(e){let t=k(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(n._formState),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return j(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>A(s,n,l.current,!1),[s,n])}var N=e=>typeof e==`string`,P=(e,t,n,r,i)=>N(e)?(r&&t.watch.add(e),x(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),x(n,e))):(r&&(t.watchAll=!0),n),F=e=>c(e)||!l(e);function I(e,t,n=new WeakSet){if(F(e)||F(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let a of r){let r=e[a];if(!i.includes(a))return!1;if(a!==`ref`){let e=t[a];if(s(r)&&s(e)||u(r)&&u(e)||Array.isArray(r)&&Array.isArray(e)?!I(r,e,n):!Object.is(r,e))return!1}}return!0}function ee(e){let t=k(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=P(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=P(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);I(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);j(()=>((f.current!==n||!I(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!I(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function te(e){let t=k(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=p(i._names.array,n),u=ee({control:i,name:n,defaultValue:a.useMemo(()=>x(i._formValues,n,x(i._defaultValues,n,s)),[i,n,s]),exact:c}),f=M({control:i,name:n,exact:c}),m=a.useRef(e),h=a.useRef(void 0),_=a.useRef(i.register(n,{...e.rules,value:u,...S(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let y=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!x(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!x(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!x(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!x(f.validatingFields,n)},error:{enumerable:!0,get:()=>x(f.errors,n)}}),[f,n]),b=a.useCallback(e=>_.current.onChange({target:{value:d(e),name:n},type:T.CHANGE}),[n]),E=a.useCallback(()=>_.current.onBlur({target:{value:x(i._formValues,n),name:n},type:T.BLUR}),[n,i._formValues]),D=a.useCallback(e=>{let t=x(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>C(e.focus)&&e.focus(),select:()=>C(e.select)&&e.select(),setCustomValidity:t=>C(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>C(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),O=a.useMemo(()=>({name:n,value:u,...S(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:b,onBlur:E,ref:D}),[n,r,f.disabled,b,E,D,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o,t=h.current;t&&t!==n&&!l&&i.unregister(t),i.register(n,{...m.current.rules,...S(m.current.disabled)?{disabled:m.current.disabled}:{}});let r=(e,t)=>{let n=x(i._fields,e);n&&n._f&&(n._f.mount=t)};if(r(n,!0),e){let e=g(x(i._options.defaultValues,n,m.current.defaultValue));w(i._defaultValues,n,e),v(x(i._formValues,n))&&w(i._formValues,n,e)}return!l&&i.register(n),h.current=n,()=>{(l?e&&!i._state.action:e)?i.unregister(n):r(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:O,formState:f,fieldState:y}),[O,f,y])}var ne=e=>e.render(te(e)),re=a.createContext(null);re.displayName=`HookFormContext`;var L=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},R=e=>Array.isArray(e)?e:[e],ie=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function ae(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=ae(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var z=e=>u(e)&&!Object.keys(e).length,oe=e=>e.type===`file`,se=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ce=e=>e.type===`select-multiple`,le=e=>e.type===`radio`,ue=e=>le(e)||o(e),de=e=>se(e)&&e.isConnected;function B(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(C(e[t]))return!0;return!1};function pe(e){return Array.isArray(e)||u(e)&&!H(e)}function U(e,t={}){for(let n in e){let r=e[n];pe(r)?(t[n]=Array.isArray(r)?[]:{},U(r,t[n])):v(r)||(t[n]=!0)}return t}function W(e,t,n){n||=U(t);for(let r in e){let i=e[r];if(pe(i))v(t)||F(n[r])?n[r]=U(i,Array.isArray(i)?[]:{}):W(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!I(i,e)}}return n}var G={value:!1,isValid:!1},me={value:!0,isValid:!0},K=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||e[0].value===``?me:{value:e[0].value,isValid:!0}:me:G}return G},he=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?e===``?NaN:e&&+e:n&&N(e)?new Date(e):r?r(e):e,ge={isValid:!1,value:null},q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ge):ge;function _e(e){let t=e.ref;return oe(t)?t.files:le(t)?q(e.refs).value:ce(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?K(e.refs).value:he(v(t.value)?e.ref.value:t.value,e)}var ve=(e,t,n,r)=>{let i={};for(let n of e){let e=x(t,n);e&&w(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},J=e=>e instanceof RegExp,Y=e=>v(e)?e:J(e)?e.source:u(e)?J(e.value)?e.value.source:e.value:e,ye=e=>({isOnSubmit:!e||e===E.onSubmit,isOnBlur:e===E.onBlur,isOnChange:e===E.onChange,isOnAll:e===E.all,isOnTouch:e===E.onTouched}),be=`AsyncFunction`,xe=e=>!!e&&!!e.validate&&!!(C(e.validate)&&e.validate.constructor.name===be||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===be)),Se=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ce=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),X=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=x(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(X(a,t))break}else if(u(a)&&X(a,t))break}}};function we(e,t,n){let r=x(e,n);if(r||_(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=x(t,r),o=x(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Te=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return z(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||E.all))},Ee=(e,t,n)=>!e||!t||e===t||R(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),De=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Oe=(e,t)=>!y(x(e,t)).length&&V(e,t),ke=(e,t,n)=>{let r=R(x(e,n));return w(r,`root`,t[n]),w(e,n,r),e};function Z(e,t,n=`validate`){if(N(e)||Array.isArray(e)&&e.every(N)||S(e)&&!e)return{type:n,message:N(e)?e:``,ref:t}}var Q=e=>u(e)&&!J(e)?e:{value:e,message:``},Ae=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:_,name:y,valueAsNumber:b,mount:w}=e._f,T=x(n,y);if(!w||t.has(y))return{};let E=l?l[0]:s,O=e=>{i&&E.reportValidity&&(E.setCustomValidity(S(e)?``:e||``),E.reportValidity())},k={},A=le(s),j=o(s),M=A||j,P=(b||oe(s))&&v(s.value)&&v(T)||se(s)&&s.value===``||T===``||Array.isArray(T)&&!T.length,F=L.bind(null,y,r,k),I=(e,t,n,r=D.maxLength,i=D.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(T)||!T.length:d&&(!M&&(P||c(T))||S(T)&&!T||j&&!K(l).isValid||A&&!q(l).isValid)){let{value:e,message:t}=N(d)?{value:!!d,message:d}:Q(d);if(e&&(k[y]={type:D.required,message:t,ref:E,...F(D.required,t)},!r))return O(t),k}if(!P&&(!c(m)||!c(h))){let e,t,n=Q(h),i=Q(m);if(!c(T)&&!isNaN(T)){let r=s.valueAsNumber||T&&+T;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;N(n.value)&&T&&(e=o?a(T)>a(n.value):c?T>n.value:r>new Date(n.value)),N(i.value)&&T&&(t=o?a(T)+e.value,i=!c(t.value)&&T.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!P&&N(T)){let{value:e,message:t}=Q(g);if(J(e)&&!T.match(e)&&(k[y]={type:D.pattern,message:t,ref:s,...F(D.pattern,t)},!r))return O(t),k}if(_){if(C(_)){let e=Z(await _(T,n),E);if(e&&(k[y]={...e,...F(D.validate,e.message)},!r))return O(e.message),k}else if(u(_)){let e={};for(let t in _){if(!z(e)&&!r)break;let i=Z(await _[t](T,n),E,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!z(e)&&(k[y]={ref:E,...e},!r))return k}}return O(!0),k},je={mode:E.onSubmit,reValidateMode:E.onChange,shouldFocusError:!0};function Me(e={}){let t={...je,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:C(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&g(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:g(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},m,_=0,b={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},D={...b},O={...D},k={array:ie(),state:ie()},A=t.criteriaMode===E.all,j=e=>t=>{clearTimeout(_),_=setTimeout(e,t)},M=async e=>{if(!l.keepIsValid&&!t.disabled&&(D.isValid||O.isValid||e)){let e;t.resolver?(e=z((await B()).errors),F()):e=await H(r,!0),e!==n.isValid&&k.state.next({isValid:e})}},F=(e,r)=>{!t.disabled&&(D.isValidating||D.validatingFields||O.isValidating||O.validatingFields)&&((e||Array.from(f.mount)).forEach(e=>{e&&(r?w(n.validatingFields,e,r):V(n.validatingFields,e))}),k.state.next({validatingFields:n.validatingFields,isValidating:!z(n.validatingFields)}))},ee=(e,o=[],s,c,u=!0,d=!0)=>{if(c&&s&&!t.disabled){if(l.action=!0,d&&Array.isArray(x(r,e))){let t=s(x(r,e),c.argA,c.argB);u&&w(r,e,t)}if(d&&Array.isArray(x(n.errors,e))){let t=s(x(n.errors,e),c.argA,c.argB);u&&w(n.errors,e,t),Oe(n.errors,e)}if((D.touchedFields||O.touchedFields)&&d&&Array.isArray(x(n.touchedFields,e))){let t=s(x(n.touchedFields,e),c.argA,c.argB);u&&w(n.touchedFields,e,t)}(D.dirtyFields||O.dirtyFields)&&(n.dirtyFields=W(i,a)),k.state.next({name:e,isDirty:U(e,o),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else w(a,e,o)},te=(e,t)=>{w(n.errors,e,t),k.state.next({errors:n.errors})},ne=e=>{n.errors=e,k.state.next({errors:n.errors,isValid:!1})},re=(e,t,n,o)=>{let s=x(r,e);if(s){let r=x(a,e,v(n)?x(i,e):n);v(r)||o&&o.defaultChecked||t?w(a,e,t?r:_e(s._f)):K(e,r),l.mount&&!l.action&&M()}},L=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(D.isDirty||O.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=U(),c=l!==u.isDirty);let t=I(x(i,e),r);l=!!x(n.dirtyFields,e),t?V(n.dirtyFields,e):w(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(D.dirtyFields||O.dirtyFields)&&l!==!t}if(a){let t=x(n.touchedFields,e);t||(w(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(D.touchedFields||O.touchedFields)&&t!==a)}c&&s&&k.state.next(u)}return c?u:{}},le=(e,r,i,a)=>{let o=x(n.errors,e),s=(D.isValid||O.isValid)&&S(r)&&n.isValid!==r;if(t.delayError&&i?(m=j(()=>te(e,i)),m(t.delayError)):(clearTimeout(_),m=null,i?w(n.errors,e,i):V(n.errors,e)),(i?!I(o,i):o)||!z(a)||s){let t={...a,...s&&S(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},k.state.next(t)}},B=async e=>(F(e,!0),await t.resolver(a,t.context,ve(e||f.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),fe=async e=>{let{errors:t}=await B(e);if(F(e),e)for(let r of e){let e=x(t,r);e?w(n.errors,r,e):V(n.errors,r)}else n.errors=t;return t},H=async(r,i,o={valid:!0})=>{for(let s in r){let c=r[s];if(c){let{_f:r,...s}=c;if(r){let s=f.array.has(r.name),l=c._f&&xe(c._f);l&&D.validatingFields&&F([r.name],!0);let u=await Ae(c,f.disabled,a,A,t.shouldUseNativeValidation&&!i,s);if(l&&D.validatingFields&&F([r.name]),u[r.name]&&(o.valid=!1,i||e.shouldUseNativeValidation))break;!i&&(x(u,r.name)?s?ke(n.errors,u,r.name):w(n.errors,r.name,u[r.name]):V(n.errors,r.name))}!z(s)&&await H(s,i,o)}}return o.valid},pe=()=>{for(let e of f.unMount){let t=x(r,e);t&&(t._f.refs?t._f.refs.every(e=>!de(e)):!de(t._f.ref))&&$(e)}f.unMount=new Set},U=(e,n)=>!t.disabled&&(e&&n&&w(a,e,n),!I(Q(),i)),G=(e,t,n)=>P(e,f,{...l.mount?a:v(t)?i:N(e)?{[e]:t}:t},n,t),me=e=>y(x(l.mount?a:i,e,t.shouldUnregister?x(i,e,[]):[])),K=(e,t,n={})=>{let i=x(r,e),s=t;if(i){let n=i._f;n&&(!n.disabled&&w(a,e,he(t,n)),s=se(n.ref)&&c(t)?``:t,ce(n.ref)?[...n.ref.options].forEach(e=>e.selected=s.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(s)?e.checked=!!s.find(t=>t===e.value):e.checked=s===e.value||!!s)}):n.refs.forEach(e=>e.checked=e.value===s):oe(n.ref)?n.ref.value=``:(n.ref.value=s,n.ref.type||k.state.next({name:e,values:g(a)})))}(n.shouldDirty||n.shouldTouch)&&L(e,s,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Z(e)},ge=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=x(r,o);(f.array.has(e)||u(a)||c&&!c._f)&&!s(a)?ge(o,a,n):K(o,a,n)}},q=(e,t,o={})=>{let s=x(r,e),u=f.array.has(e),d=g(t);w(a,e,d),u?(k.array.next({name:e,values:g(a)}),(D.isDirty||D.dirtyFields||O.isDirty||O.dirtyFields)&&o.shouldDirty&&k.state.next({name:e,dirtyFields:W(i,a),isDirty:U(e,d)})):s&&!s._f&&!c(d)?ge(e,d,o):K(e,d,o),Ce(e,f)?k.state.next({...n,name:e,values:g(a)}):k.state.next({name:l.mount?e:void 0,values:g(a)})},J=async e=>{l.mount=!0;let i=e.target,o=i.name,c=!0,u=x(r,o),p=e=>{c=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||I(e,x(a,o,e))},h=ye(t.mode),_=ye(t.reValidateMode);if(u){let s,l,v=i.type?_e(u._f):d(e),y=e.type===T.BLUR||e.type===T.FOCUS_OUT,b=!Se(u._f)&&!t.resolver&&!x(n.errors,o)&&!u._f.deps||De(y,x(n.touchedFields,o),n.isSubmitted,_,h),S=Ce(o,f,y);w(a,o,v),y?(!i||!i.readOnly)&&(u._f.onBlur&&u._f.onBlur(e),m&&m(0)):u._f.onChange&&u._f.onChange(e);let C=L(o,v,y),E=!z(C)||S;if(!y&&k.state.next({name:o,type:e.type,values:g(a)}),b)return(D.isValid||O.isValid)&&(t.mode===`onBlur`?y&&M():y||M()),E&&k.state.next({name:o,...S?{}:C});if(!y&&S&&k.state.next({...n}),t.resolver){let{errors:e}=await B([o]);if(F([o]),p(v),c){let t=we(n.errors,r,o),i=we(e,r,t.name||o);s=i.error,o=i.name,l=z(e)}}else F([o],!0),s=(await Ae(u,f.disabled,a,A,t.shouldUseNativeValidation))[o],F([o]),p(v),c&&(s?l=!1:(D.isValid||O.isValid)&&(l=await H(r,!0)));c&&(u._f.deps&&(!Array.isArray(u._f.deps)||u._f.deps.length>0)&&Z(u._f.deps),le(o,l,s,C))}},be=(e,t)=>{if(x(n.errors,t)&&e.focus)return e.focus(),1},Z=async(e,i={})=>{let a,o,s=R(e);if(t.resolver){let t=await fe(v(e)?e:s);a=z(t),o=e?!s.some(e=>x(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=x(r,e);return await H(t&&t._f?{[e]:t}:t)}))).every(Boolean),!(!o&&!n.isValid)&&M()):o=a=await H(r);return k.state.next({...!N(e)||(D.isValid||O.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&X(r,be,e?s:f.mount),o},Q=(e,t)=>{let r={...l.mount?a:i};return t&&(r=ae(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),v(e)?r:N(e)?x(r,e):e.map(e=>x(r,e))},Me=(e,t)=>({invalid:!!x((t||n).errors,e),isDirty:!!x((t||n).dirtyFields,e),error:x((t||n).errors,e),isValidating:!!x(n.validatingFields,e),isTouched:!!x((t||n).touchedFields,e)}),Ne=e=>{let t=e?R(e):void 0;t?.forEach(e=>V(n.errors,e)),t?t.forEach(e=>{k.state.next({name:e,errors:n.errors})}):k.state.next({errors:{}})},Pe=(e,t,i)=>{let a=(x(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=x(n.errors,e)||{};w(n.errors,e,{...l,...t,ref:a}),k.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Fe=(e,t)=>C(e)?k.state.subscribe({next:n=>`values`in n&&e(G(void 0,t),n)}):G(e,t,!0),Ie=e=>k.state.subscribe({next:t=>{Ee(e.name,t.name,e.exact)&&Te(t,e.formState||D,qe,e.reRenderRoot)&&e.callback({values:{...a},...n,...t,defaultValues:i})}}).unsubscribe,Le=e=>(l.mount=!0,O={...O,...e.formState},Ie({...e,formState:{...b,...e.formState}})),$=(e,o={})=>{for(let s of e?R(e):f.mount)f.mount.delete(s),f.array.delete(s),o.keepValue||(V(r,s),V(a,s)),!o.keepError&&V(n.errors,s),!o.keepDirty&&V(n.dirtyFields,s),!o.keepTouched&&V(n.touchedFields,s),!o.keepIsValidating&&V(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&V(i,s);k.state.next({values:g(a)}),k.state.next({...n,...o.keepDirty?{isDirty:U()}:{}}),!o.keepIsValid&&M()},Re=({disabled:e,name:t})=>{if(S(e)&&l.mount||e||f.disabled.has(t)){let n=f.disabled.has(t)!==!!e;e?f.disabled.add(t):f.disabled.delete(t),n&&l.mount&&!l.action&&M()}},ze=(e,n={})=>{let a=x(r,e),o=S(n.disabled)||S(t.disabled);return w(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),f.mount.add(e),a?Re({disabled:S(n.disabled)?n.disabled:t.disabled,name:e}):re(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Y(n.min),max:Y(n.max),minLength:Y(n.minLength),maxLength:Y(n.maxLength),pattern:Y(n.pattern)}:{},name:e,onChange:J,onBlur:J,ref:o=>{if(o){ze(e,n),a=x(r,e);let t=v(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=ue(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;w(r,e,{_f:{...a._f,...s?{refs:[...c.filter(de),t,...Array.isArray(x(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),re(e,!1,void 0,t)}else a=x(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(p(f.array,e)&&l.action)&&f.unMount.add(e)}}},Be=()=>t.shouldFocusError&&X(r,be,f.mount),Ve=e=>{S(e)&&(k.state.next({disabled:e}),X(r,(t,n)=>{let i=x(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},He=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=g(a);if(k.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await B();F(),n.errors=e,c=g(t)}else await H(r);if(f.disabled.size)for(let e of f.disabled)V(c,e);if(V(n.errors,`root`),z(n.errors)){k.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),Be(),setTimeout(Be);if(k.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:z(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},Ue=(e,t={})=>{x(r,e)&&(v(t.defaultValue)?q(e,g(x(i,e))):(q(e,t.defaultValue),w(i,e,g(t.defaultValue))),t.keepTouched||V(n.touchedFields,e),t.keepDirty||(V(n.dirtyFields,e),n.isDirty=t.defaultValue?U(e,g(x(i,e))):U()),t.keepError||(V(n.errors,e),D.isValid&&M()),k.state.next({...n}))},We=(e,o={})=>{let s=e?g(e):i,c=g(s),u=z(e),d=u?i:c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...f.mount,...Object.keys(W(i,a))]);for(let t of Array.from(e)){let e=x(n.dirtyFields,t),r=x(a,t),i=x(d,t);e&&!v(r)?w(d,t,r):!e&&!v(i)&&q(t,i)}}else{if(h&&v(e))for(let e of f.mount){let t=x(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(se(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of f.mount)q(e,x(d,e));else r={}}a=t.shouldUnregister?o.keepDefaultValues?g(i):{}:g(d),k.array.next({values:{...d}}),k.state.next({values:{...d}})}f={mount:o.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!D.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!z(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),k.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:!!(o.keepDefaultValues&&!I(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?W(i,a):n.dirtyFields:o.keepDefaultValues&&e?W(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ge=(e,n)=>We(C(e)?e(a):e,{...t.resetOptions,...n}),Ke=(e,t={})=>{let n=x(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&C(e.select)&&e.select()})}},qe=e=>{n={...n,...e}},Je={control:{register:ze,unregister:$,getFieldState:Me,handleSubmit:He,setError:Pe,_subscribe:Ie,_runSchema:B,_updateIsValidating:F,_focusError:Be,_getWatch:G,_getDirty:U,_setValid:M,_setFieldArray:ee,_setDisabledField:Re,_setErrors:ne,_getFieldArray:me,_reset:We,_resetDefaultValues:()=>C(t.defaultValues)&&t.defaultValues().then(e=>{Ge(e,t.resetOptions),k.state.next({isLoading:!1})}),_removeUnmounted:pe,_disableForm:Ve,_subjects:k,_proxyFormState:D,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return f},set _names(e){f=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:Le,trigger:Z,register:ze,handleSubmit:He,watch:Fe,setValue:q,getValues:Q,reset:Ge,resetField:Ue,clearErrors:Ne,unregister:$,setError:Pe,setFocus:Ke,getFieldState:Me};return{...Je,formControl:Je}}function Ne(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),[r,i]=a.useState({isDirty:!1,isValidating:!1,isLoading:C(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:C(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!C(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Me(e);t.current={...i,formState:r}}let o=t.current.control;return o._options=e,j(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),a.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),a.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),a.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),a.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),a.useEffect(()=>{e.values&&!I(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,i(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),a.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=a.useMemo(()=>A(r,o),[o,r]),t.current}var Pe=(e,t,n)=>{if(e&&`reportValidity`in e){let r=x(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},Fe=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Pe(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Pe(t,n,e))}},Ie=(e,t)=>{t.shouldUseNativeValidation&&Fe(e,t);let n={};for(let r in e){let i=x(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Le(t.names||Object.keys(e),r)){let e=Object.assign({},x(n,r));w(e,`root`,a),w(n,r,e)}else w(n,r,a)}return n},Le=(e,t)=>{let n=$(t);return e.some(e=>$(e).match(`^${n}\\.\\d+`))};function $(e){return e.replace(/\]|\[/g,``)}function Re(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function ze(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=L(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Be(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=L(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Ve(e,t,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(n,r,i){try{return Promise.resolve(Re(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](n,t)).then(function(e){return i.shouldUseNativeValidation&&Fe({},i),{errors:{},values:a.raw?Object.assign({},n):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Ie(ze(e.errors,!i.shouldUseNativeValidation&&i.criteriaMode===`all`),i)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve(Re(function(){return Promise.resolve((a.mode===`sync`?n:r)(e,o,t)).then(function(e){return c.shouldUseNativeValidation&&Fe({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof i}(e))return{values:{},errors:Ie(Be(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{ne as n,Ne as r,Ve as t}; \ No newline at end of file diff --git a/hive/services/hiveui/frontend/dist/index.html b/hive/services/hiveui/frontend/dist/index.html index e29f196d6..5d3ebb677 100644 --- a/hive/services/hiveui/frontend/dist/index.html +++ b/hive/services/hiveui/frontend/dist/index.html @@ -1,12 +1,33 @@ - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hive/services/hiveui/frontend/package.json b/hive/services/hiveui/frontend/package.json index 1084c6e80..af8fe53c4 100644 --- a/hive/services/hiveui/frontend/package.json +++ b/hive/services/hiveui/frontend/package.json @@ -45,7 +45,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@typescript/native-preview": "7.0.0-dev.20260307.1", - "@vitejs/plugin-basic-ssl": "^2.1.4", + "@vitejs/plugin-basic-ssl": "^2.2.0", "@vitejs/plugin-react": "^5.1.4", "@vitest/coverage-v8": "^4.0.18", "babel-plugin-react-compiler": "^1.0.0", @@ -54,7 +54,7 @@ "oxlint": "^1.51.0", "oxlint-tsgolint": "^0.16.0", "typescript": "^5.9.3", - "vite": "^7.3.1", + "vite": "^8.0.0", "vitest": "^4.0.18" }, "packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017" diff --git a/hive/services/hiveui/frontend/pnpm-lock.yaml b/hive/services/hiveui/frontend/pnpm-lock.yaml index 49dbac877..0c093029c 100644 --- a/hive/services/hiveui/frontend/pnpm-lock.yaml +++ b/hive/services/hiveui/frontend/pnpm-lock.yaml @@ -68,7 +68,7 @@ importers: devDependencies: '@tailwindcss/vite': specifier: ^4.2.1 - version: 4.2.1(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + version: 4.2.1(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)) '@tanstack/eslint-plugin-query': specifier: ^5.91.4 version: 5.91.4(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) @@ -77,7 +77,7 @@ importers: version: 1.161.4(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) '@tanstack/router-plugin': specifier: ^1.166.2 - version: 1.166.2(@tanstack/react-router@1.166.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + version: 1.166.2(@tanstack/react-router@1.166.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)) '@testing-library/jest-dom': specifier: ^6.9.1 version: 6.9.1 @@ -100,14 +100,14 @@ importers: specifier: 7.0.0-dev.20260307.1 version: 7.0.0-dev.20260307.1 '@vitejs/plugin-basic-ssl': - specifier: ^2.1.4 - version: 2.1.4(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + specifier: ^2.2.0 + version: 2.2.0(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)) '@vitejs/plugin-react': specifier: ^5.1.4 - version: 5.1.4(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + version: 5.2.0(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)) '@vitest/coverage-v8': specifier: ^4.0.18 - version: 4.0.18(vitest@4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.31.1)(tsx@4.21.0)) + version: 4.0.18(vitest@4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.32.0)(tsx@4.21.0)) babel-plugin-react-compiler: specifier: ^1.0.0 version: 1.0.0 @@ -127,11 +127,11 @@ importers: specifier: ^5.9.3 version: 5.9.3 vite: - specifier: ^7.3.1 - version: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + specifier: ^8.0.0 + version: 8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0) vitest: specifier: ^4.0.18 - version: 4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.31.1)(tsx@4.21.0) + version: 4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.32.0)(tsx@4.21.0) packages: @@ -491,6 +491,15 @@ packages: resolution: {integrity: sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==} engines: {node: '>=20.19.0'} + '@emnapi/core@1.9.0': + resolution: {integrity: sha512-0DQ98G9ZQZOxfUcQn1waV2yS8aWdZ6kJMbYCJB3oUBecjWYO1fqJ+a1DRfPF3O5JEkwqwP1A9QEN/9mYm2Yd0w==} + + '@emnapi/runtime@1.9.0': + resolution: {integrity: sha512-QN75eB0IH2ywSpRpNddCRfQIhmJYBCJ1x5Lb3IscKAL8bMnVAKnRg8dCoXbHzVLLH7P38N2Z3mtulB7W0J0FKw==} + + '@emnapi/wasi-threads@1.2.0': + resolution: {integrity: sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==} + '@esbuild/aix-ppc64@0.27.3': resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} engines: {node: '>=18'} @@ -752,6 +761,16 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + '@napi-rs/wasm-runtime@1.1.1': + resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==} + + '@oxc-project/runtime@0.115.0': + resolution: {integrity: sha512-Rg8Wlt5dCbXhQnsXPrkOjL1DTSvXLgb2R/KYfnf1/K+R0k6UMLEmbQXPM+kwrWqSmWA2t0B1EtHy2/3zikQpvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + + '@oxc-project/types@0.115.0': + resolution: {integrity: sha512-4n91DKnebUS4yjUHl2g3/b2T+IUdCfmoZGhmwsovZCDaJSs+QkVAM+0AqqTxHSsHfeiMuueT75cZaZcT/m0pSw==} + '@oxfmt/binding-android-arm-eabi@0.36.0': resolution: {integrity: sha512-Z4yVHJWx/swHHjtr0dXrBZb6LxS+qNz1qdza222mWwPTUK4L790+5i3LTgjx3KYGBzcYpjaiZBw4vOx94dH7MQ==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1026,9 +1045,107 @@ packages: cpu: [x64] os: [win32] + '@rolldown/binding-android-arm64@1.0.0-rc.9': + resolution: {integrity: sha512-lcJL0bN5hpgJfSIz/8PIf02irmyL43P+j1pTCfbD1DbLkmGRuFIA4DD3B3ZOvGqG0XiVvRznbKtN0COQVaKUTg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.0.0-rc.9': + resolution: {integrity: sha512-J7Zk3kLYFsLtuH6U+F4pS2sYVzac0qkjcO5QxHS7OS7yZu2LRs+IXo+uvJ/mvpyUljDJ3LROZPoQfgBIpCMhdQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.0.0-rc.9': + resolution: {integrity: sha512-iwtmmghy8nhfRGeNAIltcNXzD0QMNaaA5U/NyZc1Ia4bxrzFByNMDoppoC+hl7cDiUq5/1CnFthpT9n+UtfFyg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.0.0-rc.9': + resolution: {integrity: sha512-DLFYI78SCiZr5VvdEplsVC2Vx53lnA4/Ga5C65iyldMVaErr86aiqCoNBLl92PXPfDtUYjUh+xFFor40ueNs4Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.9': + resolution: {integrity: sha512-CsjTmTwd0Hri6iTw/DRMK7kOZ7FwAkrO4h8YWKoX/kcj833e4coqo2wzIFywtch/8Eb5enQ/lwLM7w6JX1W5RQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.9': + resolution: {integrity: sha512-2x9O2JbSPxpxMDhP9Z74mahAStibTlrBMW0520+epJH5sac7/LwZW5Bmg/E6CXuEF53JJFW509uP+lSedaUNxg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.9': + resolution: {integrity: sha512-JA1QRW31ogheAIRhIg9tjMfsYbglXXYGNPLdPEYrwFxdbkQCAzvpSCSHCDWNl4hTtrol8WeboCSEpjdZK8qrCg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.9': + resolution: {integrity: sha512-aOKU9dJheda8Kj8Y3w9gnt9QFOO+qKPAl8SWd7JPHP+Cu0EuDAE5wokQubLzIDQWg2myXq2XhTpOVS07qqvT+w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.9': + resolution: {integrity: sha512-OalO94fqj7IWRn3VdXWty75jC5dk4C197AWEuMhIpvVv2lw9fiPhud0+bW2ctCxb3YoBZor71QHbY+9/WToadA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.9': + resolution: {integrity: sha512-cVEl1vZtBsBZna3YMjGXNvnYYrOJ7RzuWvZU0ffvJUexWkukMaDuGhUXn0rjnV0ptzGVkvc+vW9Yqy6h8YX4pg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.0.0-rc.9': + resolution: {integrity: sha512-UzYnKCIIc4heAKgI4PZ3dfBGUZefGCJ1TPDuLHoCzgrMYPb5Rv6TLFuYtyM4rWyHM7hymNdsg5ik2C+UD9VDbA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.0.0-rc.9': + resolution: {integrity: sha512-+6zoiF+RRyf5cdlFQP7nm58mq7+/2PFaY2DNQeD4B87N36JzfF/l9mdBkkmTvSYcYPE8tMh/o3cRlsx1ldLfog==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.0.0-rc.9': + resolution: {integrity: sha512-rgFN6sA/dyebil3YTlL2evvi/M+ivhfnyxec7AccTpRPccno/rPoNlqybEZQBkcbZu8Hy+eqNJCqfBR8P7Pg8g==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.9': + resolution: {integrity: sha512-lHVNUG/8nlF1IQk1C0Ci574qKYyty2goMiPlRqkC5R+3LkXDkL5Dhx8ytbxq35m+pkHVIvIxviD+TWLdfeuadA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.9': + resolution: {integrity: sha512-G0oA4+w1iY5AGi5HcDTxWsoxF509hrFIPB2rduV5aDqS9FtDg1CAfa7V34qImbjfhIcA8C+RekocJZA96EarwQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + '@rolldown/pluginutils@1.0.0-rc.3': resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==} + '@rolldown/pluginutils@1.0.0-rc.9': + resolution: {integrity: sha512-w6oiRWgEBl04QkFZgmW+jnU1EC9b57Oihi2ot3HNWIQRqgHp5PnYDia5iZ5FF7rpa4EQdiqMDXjlqKGXBhsoXw==} + '@rollup/rollup-android-arm-eabi@4.59.0': resolution: {integrity: sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==} cpu: [arm] @@ -1591,6 +1708,9 @@ packages: peerDependencies: '@testing-library/dom': '>=7.21.4' + '@tybys/wasm-util@0.10.1': + resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} + '@types/aria-query@5.0.4': resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} @@ -1711,17 +1831,17 @@ packages: resolution: {integrity: sha512-NcKdPiGjxxxdh7fLgRKTrn5hLntbt89NOodNaSrMChTfJwvLaDkgrRlnO7v5x+m7nQc87Qf1y7UoT1ZEZUBB4Q==} hasBin: true - '@vitejs/plugin-basic-ssl@2.1.4': - resolution: {integrity: sha512-HXciTXN/sDBYWgeAD4V4s0DN0g72x5mlxQhHxtYu3Tt8BLa6MzcJZUyDVFCdtjNs3bfENVHVzOsmooTVuNgAAw==} + '@vitejs/plugin-basic-ssl@2.2.0': + resolution: {integrity: sha512-nmyQ1HGRkfUxjsv3jw0+hMhEdZdrtkvMTdkzRUaRWfiO6PCWw2V2Pz3gldCq96Tn9S8htcgdTxw/gmbLLEbfYw==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} peerDependencies: - vite: ^6.0.0 || ^7.0.0 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@vitejs/plugin-react@5.1.4': - resolution: {integrity: sha512-VIcFLdRi/VYRU8OL/puL7QXMYafHmqOnwTZY50U1JPlCNj30PxCMx65c494b1K9be9hX83KVt0+gTEwTWLqToA==} + '@vitejs/plugin-react@5.2.0': + resolution: {integrity: sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==} engines: {node: ^20.19.0 || >=22.12.0} peerDependencies: - vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 '@vitest/coverage-v8@4.0.18': resolution: {integrity: sha512-7i+N2i0+ME+2JFZhfuz7Tg/FqKtilHjGyGvoHYQ6iLV0zahbsJ9sljC9OcFcPDbhYKCet+sG8SsVqlyGvPflZg==} @@ -2268,30 +2388,60 @@ packages: cpu: [arm64] os: [android] + lightningcss-android-arm64@1.32.0: + resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + lightningcss-darwin-arm64@1.31.1: resolution: {integrity: sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [darwin] + lightningcss-darwin-arm64@1.32.0: + resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + lightningcss-darwin-x64@1.31.1: resolution: {integrity: sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [darwin] + lightningcss-darwin-x64@1.32.0: + resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + lightningcss-freebsd-x64@1.31.1: resolution: {integrity: sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [freebsd] + lightningcss-freebsd-x64@1.32.0: + resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + lightningcss-linux-arm-gnueabihf@1.31.1: resolution: {integrity: sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==} engines: {node: '>= 12.0.0'} cpu: [arm] os: [linux] + lightningcss-linux-arm-gnueabihf@1.32.0: + resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + lightningcss-linux-arm64-gnu@1.31.1: resolution: {integrity: sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==} engines: {node: '>= 12.0.0'} @@ -2299,6 +2449,13 @@ packages: os: [linux] libc: [glibc] + lightningcss-linux-arm64-gnu@1.32.0: + resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + lightningcss-linux-arm64-musl@1.31.1: resolution: {integrity: sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==} engines: {node: '>= 12.0.0'} @@ -2306,6 +2463,13 @@ packages: os: [linux] libc: [musl] + lightningcss-linux-arm64-musl@1.32.0: + resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + lightningcss-linux-x64-gnu@1.31.1: resolution: {integrity: sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==} engines: {node: '>= 12.0.0'} @@ -2313,6 +2477,13 @@ packages: os: [linux] libc: [glibc] + lightningcss-linux-x64-gnu@1.32.0: + resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + lightningcss-linux-x64-musl@1.31.1: resolution: {integrity: sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==} engines: {node: '>= 12.0.0'} @@ -2320,22 +2491,45 @@ packages: os: [linux] libc: [musl] + lightningcss-linux-x64-musl@1.32.0: + resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + lightningcss-win32-arm64-msvc@1.31.1: resolution: {integrity: sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [win32] + lightningcss-win32-arm64-msvc@1.32.0: + resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + lightningcss-win32-x64-msvc@1.31.1: resolution: {integrity: sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [win32] + lightningcss-win32-x64-msvc@1.32.0: + resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + lightningcss@1.31.1: resolution: {integrity: sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==} engines: {node: '>= 12.0.0'} + lightningcss@1.32.0: + resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==} + engines: {node: '>= 12.0.0'} + locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -2537,6 +2731,11 @@ packages: resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + rolldown@1.0.0-rc.9: + resolution: {integrity: sha512-9EbgWge7ZH+yqb4d2EnELAntgPTWbfL8ajiTW+SyhJEC4qhBbkCKbqFV4Ge4zmu5ziQuVbWxb/XwLZ+RIO7E8Q==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + rollup@4.59.0: resolution: {integrity: sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -2772,6 +2971,49 @@ packages: yaml: optional: true + vite@8.0.0: + resolution: {integrity: sha512-fPGaRNj9Zytaf8LEiBhY7Z6ijnFKdzU/+mL8EFBaKr7Vw1/FWcTBAMW0wLPJAGMPX38ZPVCVgLceWiEqeoqL2Q==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.0.0-alpha.31 + esbuild: ^0.27.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + vitest@4.0.18: resolution: {integrity: sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ==} engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -3649,6 +3891,22 @@ snapshots: '@csstools/css-tokenizer@4.0.0': optional: true + '@emnapi/core@1.9.0': + dependencies: + '@emnapi/wasi-threads': 1.2.0 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.9.0': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@1.2.0': + dependencies: + tslib: 2.8.1 + optional: true + '@esbuild/aix-ppc64@0.27.3': optional: true @@ -3832,6 +4090,17 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 + '@napi-rs/wasm-runtime@1.1.1': + dependencies: + '@emnapi/core': 1.9.0 + '@emnapi/runtime': 1.9.0 + '@tybys/wasm-util': 0.10.1 + optional: true + + '@oxc-project/runtime@0.115.0': {} + + '@oxc-project/types@0.115.0': {} + '@oxfmt/binding-android-arm-eabi@0.36.0': optional: true @@ -3964,8 +4233,57 @@ snapshots: '@oxlint/binding-win32-x64-msvc@1.51.0': optional: true + '@rolldown/binding-android-arm64@1.0.0-rc.9': + optional: true + + '@rolldown/binding-darwin-arm64@1.0.0-rc.9': + optional: true + + '@rolldown/binding-darwin-x64@1.0.0-rc.9': + optional: true + + '@rolldown/binding-freebsd-x64@1.0.0-rc.9': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.9': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.9': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.9': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.9': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.9': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.9': + optional: true + + '@rolldown/binding-linux-x64-musl@1.0.0-rc.9': + optional: true + + '@rolldown/binding-openharmony-arm64@1.0.0-rc.9': + optional: true + + '@rolldown/binding-wasm32-wasi@1.0.0-rc.9': + dependencies: + '@napi-rs/wasm-runtime': 1.1.1 + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.9': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.9': + optional: true + '@rolldown/pluginutils@1.0.0-rc.3': {} + '@rolldown/pluginutils@1.0.0-rc.9': {} + '@rollup/rollup-android-arm-eabi@4.59.0': optional: true @@ -4444,12 +4762,12 @@ snapshots: '@tailwindcss/oxide-win32-arm64-msvc': 4.2.1 '@tailwindcss/oxide-win32-x64-msvc': 4.2.1 - '@tailwindcss/vite@4.2.1(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@tailwindcss/vite@4.2.1(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))': dependencies: '@tailwindcss/node': 4.2.1 '@tailwindcss/oxide': 4.2.1 tailwindcss: 4.2.1 - vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vite: 8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0) '@tanstack/eslint-plugin-query@5.91.4(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)': dependencies: @@ -4518,7 +4836,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@tanstack/router-plugin@1.166.2(@tanstack/react-router@1.166.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@tanstack/router-plugin@1.166.2(@tanstack/react-router@1.166.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))': dependencies: '@babel/core': 7.29.0 '@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0) @@ -4535,7 +4853,7 @@ snapshots: zod: 3.25.76 optionalDependencies: '@tanstack/react-router': 1.166.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vite: 8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0) transitivePeerDependencies: - supports-color @@ -4591,6 +4909,11 @@ snapshots: dependencies: '@testing-library/dom': 10.4.1 + '@tybys/wasm-util@0.10.1': + dependencies: + tslib: 2.8.1 + optional: true + '@types/aria-query@5.0.4': {} '@types/babel__core@7.20.5': @@ -4725,11 +5048,11 @@ snapshots: '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260307.1 '@typescript/native-preview-win32-x64': 7.0.0-dev.20260307.1 - '@vitejs/plugin-basic-ssl@2.1.4(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@vitejs/plugin-basic-ssl@2.2.0(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))': dependencies: - vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vite: 8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0) - '@vitejs/plugin-react@5.1.4(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@vitejs/plugin-react@5.2.0(vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))': dependencies: '@babel/core': 7.29.0 '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.29.0) @@ -4737,11 +5060,11 @@ snapshots: '@rolldown/pluginutils': 1.0.0-rc.3 '@types/babel__core': 7.20.5 react-refresh: 0.18.0 - vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vite: 8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@4.0.18(vitest@4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.31.1)(tsx@4.21.0))': + '@vitest/coverage-v8@4.0.18(vitest@4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.32.0)(tsx@4.21.0))': dependencies: '@bcoe/v8-coverage': 1.0.2 '@vitest/utils': 4.0.18 @@ -4753,7 +5076,7 @@ snapshots: obug: 2.1.1 std-env: 3.10.0 tinyrainbow: 3.0.3 - vitest: 4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.31.1)(tsx@4.21.0) + vitest: 4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.32.0)(tsx@4.21.0) '@vitest/expect@4.0.18': dependencies: @@ -4764,13 +5087,13 @@ snapshots: chai: 6.2.2 tinyrainbow: 3.0.3 - '@vitest/mocker@4.0.18(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@vitest/mocker@4.0.18(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(tsx@4.21.0))': dependencies: '@vitest/spy': 4.0.18 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(tsx@4.21.0) '@vitest/pretty-format@4.0.18': dependencies: @@ -5324,36 +5647,69 @@ snapshots: lightningcss-android-arm64@1.31.1: optional: true + lightningcss-android-arm64@1.32.0: + optional: true + lightningcss-darwin-arm64@1.31.1: optional: true + lightningcss-darwin-arm64@1.32.0: + optional: true + lightningcss-darwin-x64@1.31.1: optional: true + lightningcss-darwin-x64@1.32.0: + optional: true + lightningcss-freebsd-x64@1.31.1: optional: true + lightningcss-freebsd-x64@1.32.0: + optional: true + lightningcss-linux-arm-gnueabihf@1.31.1: optional: true + lightningcss-linux-arm-gnueabihf@1.32.0: + optional: true + lightningcss-linux-arm64-gnu@1.31.1: optional: true + lightningcss-linux-arm64-gnu@1.32.0: + optional: true + lightningcss-linux-arm64-musl@1.31.1: optional: true + lightningcss-linux-arm64-musl@1.32.0: + optional: true + lightningcss-linux-x64-gnu@1.31.1: optional: true + lightningcss-linux-x64-gnu@1.32.0: + optional: true + lightningcss-linux-x64-musl@1.31.1: optional: true + lightningcss-linux-x64-musl@1.32.0: + optional: true + lightningcss-win32-arm64-msvc@1.31.1: optional: true + lightningcss-win32-arm64-msvc@1.32.0: + optional: true + lightningcss-win32-x64-msvc@1.31.1: optional: true + lightningcss-win32-x64-msvc@1.32.0: + optional: true + lightningcss@1.31.1: dependencies: detect-libc: 2.1.2 @@ -5370,6 +5726,22 @@ snapshots: lightningcss-win32-arm64-msvc: 1.31.1 lightningcss-win32-x64-msvc: 1.31.1 + lightningcss@1.32.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.32.0 + lightningcss-darwin-arm64: 1.32.0 + lightningcss-darwin-x64: 1.32.0 + lightningcss-freebsd-x64: 1.32.0 + lightningcss-linux-arm-gnueabihf: 1.32.0 + lightningcss-linux-arm64-gnu: 1.32.0 + lightningcss-linux-arm64-musl: 1.32.0 + lightningcss-linux-x64-gnu: 1.32.0 + lightningcss-linux-x64-musl: 1.32.0 + lightningcss-win32-arm64-msvc: 1.32.0 + lightningcss-win32-x64-msvc: 1.32.0 + locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -5587,6 +5959,27 @@ snapshots: resolve-pkg-maps@1.0.0: {} + rolldown@1.0.0-rc.9: + dependencies: + '@oxc-project/types': 0.115.0 + '@rolldown/pluginutils': 1.0.0-rc.9 + optionalDependencies: + '@rolldown/binding-android-arm64': 1.0.0-rc.9 + '@rolldown/binding-darwin-arm64': 1.0.0-rc.9 + '@rolldown/binding-darwin-x64': 1.0.0-rc.9 + '@rolldown/binding-freebsd-x64': 1.0.0-rc.9 + '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-rc.9 + '@rolldown/binding-linux-arm64-gnu': 1.0.0-rc.9 + '@rolldown/binding-linux-arm64-musl': 1.0.0-rc.9 + '@rolldown/binding-linux-ppc64-gnu': 1.0.0-rc.9 + '@rolldown/binding-linux-s390x-gnu': 1.0.0-rc.9 + '@rolldown/binding-linux-x64-gnu': 1.0.0-rc.9 + '@rolldown/binding-linux-x64-musl': 1.0.0-rc.9 + '@rolldown/binding-openharmony-arm64': 1.0.0-rc.9 + '@rolldown/binding-wasm32-wasi': 1.0.0-rc.9 + '@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.9 + '@rolldown/binding-win32-x64-msvc': 1.0.0-rc.9 + rollup@4.59.0: dependencies: '@types/estree': 1.0.8 @@ -5773,7 +6166,7 @@ snapshots: util-deprecate@1.0.2: {} - vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0): + vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(tsx@4.21.0): dependencies: esbuild: 0.27.3 fdir: 6.5.0(picomatch@4.0.3) @@ -5785,13 +6178,28 @@ snapshots: '@types/node': 24.12.0 fsevents: 2.3.3 jiti: 2.6.1 - lightningcss: 1.31.1 + lightningcss: 1.32.0 tsx: 4.21.0 - vitest@4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.31.1)(tsx@4.21.0): + vite@8.0.0(@types/node@24.12.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0): + dependencies: + '@oxc-project/runtime': 0.115.0 + lightningcss: 1.32.0 + picomatch: 4.0.3 + postcss: 8.5.8 + rolldown: 1.0.0-rc.9 + tinyglobby: 0.2.15 + optionalDependencies: + '@types/node': 24.12.0 + esbuild: 0.27.3 + fsevents: 2.3.3 + jiti: 2.6.1 + tsx: 4.21.0 + + vitest@4.0.18(@types/node@24.12.0)(happy-dom@20.8.3)(jiti@2.6.1)(jsdom@28.1.0)(lightningcss@1.32.0)(tsx@4.21.0): dependencies: '@vitest/expect': 4.0.18 - '@vitest/mocker': 4.0.18(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + '@vitest/mocker': 4.0.18(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(tsx@4.21.0)) '@vitest/pretty-format': 4.0.18 '@vitest/runner': 4.0.18 '@vitest/snapshot': 4.0.18 @@ -5808,7 +6216,7 @@ snapshots: tinyexec: 1.0.2 tinyglobby: 0.2.15 tinyrainbow: 3.0.3 - vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vite: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(tsx@4.21.0) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 24.12.0 diff --git a/hive/services/hiveui/frontend/pnpm-workspace.yaml b/hive/services/hiveui/frontend/pnpm-workspace.yaml deleted file mode 100644 index 4ff9cc2cb..000000000 --- a/hive/services/hiveui/frontend/pnpm-workspace.yaml +++ /dev/null @@ -1 +0,0 @@ -minimumReleaseAge: 4320 diff --git a/hive/services/hiveui/frontend/vite.config.ts b/hive/services/hiveui/frontend/vite.config.ts index 219923904..dcb8d0b76 100644 --- a/hive/services/hiveui/frontend/vite.config.ts +++ b/hive/services/hiveui/frontend/vite.config.ts @@ -4,7 +4,7 @@ import { fileURLToPath, URL } from "node:url" import tailwindcss from "@tailwindcss/vite" import { tanstackRouter } from "@tanstack/router-plugin/vite" import basicSsl from "@vitejs/plugin-basic-ssl" -import viteReact from "@vitejs/plugin-react" +import react from "@vitejs/plugin-react" import { defineConfig } from "vite" export default defineConfig({ @@ -12,7 +12,7 @@ export default defineConfig({ build: { target: "es2023", chunkSizeWarningLimit: 1500, - rollupOptions: { + rolldownOptions: { output: { entryFileNames: "assets/[name].js", chunkFileNames: "assets/[name].js", @@ -26,7 +26,7 @@ export default defineConfig({ target: "react", autoCodeSplitting: true, }), - viteReact({ + react({ babel: { plugins: ["babel-plugin-react-compiler"], },