diff --git a/hive/services/hiveui/frontend/dist/assets/index.js b/hive/services/hiveui/frontend/dist/assets/index.js index 329758551..43cf8cdd4 100644 --- a/hive/services/hiveui/frontend/dist/assets/index.js +++ b/hive/services/hiveui/frontend/dist/assets/index.js @@ -1,13 +1,13 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/zod.js","assets/field.js","assets/input.js","assets/index3.js","assets/useSuspenseQuery.js","assets/page-heading.js","assets/index4.js","assets/list-card.js","assets/create-bucket.js","assets/back-link.js","assets/error-banner.js","assets/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 VU(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 tMe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nMe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Cv={exports:{}},Bf={};var II;function HU(){if(II)return Bf;II=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 TI;function qU(){return TI||(TI=1,Cv.exports=HU()),Cv.exports}var k=qU(),eg=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},FU={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},GU=class{#e=FU;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Vb=new GU;function KU(e){setTimeout(e,0)}var tg=typeof window>"u"||"Deno"in globalThis;function to(){}function ZU(e,t){return typeof e=="function"?e(t):e}function QU(e){return typeof e=="number"&&e>=0&&e!==1/0}function YU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Hb(e,t){return typeof e=="function"?e(t):e}function XU(e,t){return typeof e=="function"?e(t):e}function OI(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:c,queryKey:l,stale:f}=e;if(l){if(r){if(t.queryHash!==MS(l,t.options))return!1}else if(!md(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||c&&!c(t))}function MI(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 MS(e,t){return(t?.queryKeyHashFn||hd)(e)}function hd(e){return JSON.stringify(e,(t,n)=>qb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function md(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>md(e[n],t[n])):!1}var WU=Object.prototype.hasOwnProperty;function cD(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=DI(e)&&DI(t);if(!r&&!(qb(e)&&qb(t)))return t;const c=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),f=l.length,d=r?new Array(f):{};let p=0;for(let v=0;v{Vb.setTimeout(t,e)})}function e5(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?cD(e,t):t}function t5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function n5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var DS=Symbol();function lD(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===DS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function rMe(e,t){return typeof e=="function"?e(...t):!!e}function s5(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 r5=class extends eg{#e;#n;#t;constructor(){super(),this.#t=e=>{if(!tg&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},uD=new r5;function o5(){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 i5=KU;function a5(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=i5;const c=f=>{t?e.push(f):i(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||l()}return d},batchCalls:f=>(...d)=>{c(()=>{f(...d)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{i=f}}}var As=a5(),c5=class extends eg{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(!tg&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},hm=new c5;function l5(e){return Math.min(1e3*2**e,3e4)}function fD(e){return(e??"online")==="online"?hm.isOnline():!0}var Fb=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function dD(e){let t=!1,n=0,r;const i=o5(),c=()=>i.status!=="pending",l=x=>{if(!c()){const R=new Fb(x);b(R),e.onCancel?.(R)}},f=()=>{t=!0},d=()=>{t=!1},p=()=>uD.isFocused()&&(e.networkMode==="always"||hm.isOnline())&&e.canRun(),v=()=>fD(e.networkMode)&&e.canRun(),g=x=>{c()||(r?.(),i.resolve(x))},b=x=>{c()||(r?.(),i.reject(x))},_=()=>new Promise(x=>{r=R=>{(c()||p())&&x(R)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),E=()=>{if(c())return;let x;const R=n===0?e.initialPromise:void 0;try{x=R??e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(g).catch(C=>{if(c())return;const T=e.retry??(tg?0:3),P=e.retryDelay??l5,I=typeof P=="function"?P(n,C):P,B=T===!0||typeof T=="number"&&np()?void 0:_()).then(()=>{t?b(C):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r?.(),i),cancelRetry:f,continueRetry:d,canStart:v,start:()=>(v()?E():_().then(E),i)}}var pD=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),QU(this.gcTime)&&(this.#e=Vb.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tg?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Vb.clearTimeout(this.#e),this.#e=void 0)}},u5=class extends pD{#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=NI(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=NI(this.options);t.data!==void 0&&(this.setState(kI(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=e5(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(to).catch(to):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>XU(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===DS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Hb(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!YU(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#a?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const f=lD(this.options,t),p=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(v),v})();return this.#a=!1,this.options.persister?this.options.persister(f,p,this):f(p)},l=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(f),f})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=dD({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof Fb&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,d)=>{this.#o({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#t.config.onSuccess?.(f,this),this.#t.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Fb){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#t.config.onError?.(f,this),this.#t.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...f5(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...kI(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 f5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fD(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kI(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function NI(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 LI(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const p=async()=>{let v=!1;const g=E=>{s5(E,()=>t.signal,()=>v=!0)},b=lD(t.options,t.fetchOptions),_=async(E,x,R)=>{if(v)return Promise.reject();if(x==null&&E.pages.length)return Promise.resolve(E);const T=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:x,direction:R?"backward":"forward",meta:t.options.meta};return g(j),j})(),P=await b(T),{maxPages:I}=t.options,B=R?n5:t5;return{pages:B(E.pages,P,I),pageParams:B(E.pageParams,x,I)}};if(i&&c.length){const E=i==="backward",x=E?d5:$I,R={pages:c,pageParams:l},C=x(r,R);f=await _(R,C,E)}else{const E=e??c.length;do{const x=d===0?l[0]??r.initialPageParam:$I(r,f);if(d>0&&x==null)break;f=await _(f,x),d++}while(dt.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function $I(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 d5(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var p5=class extends pD{#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||h5(),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=dD({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 h5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var m5=class extends eg{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const r=new p5({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Oh(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Oh(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Oh(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Oh(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){As.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>MI(t,n))}findAll(e={}){return this.getAll().filter(t=>MI(e,t))}notify(e){As.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return As.batch(()=>Promise.all(e.map(t=>t.continue().catch(to))))}};function Oh(e){return e.options.scope?.id}var g5=class extends eg{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??MS(r,t);let c=this.get(i);return c||(c=new u5({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=>OI(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>OI(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()})})}},y5=class{#e;#n;#t;#r;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new g5,this.#n=e.mutationCache||new m5,this.#t=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=uD.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=hm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Hb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,l=ZU(t,c);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return As.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;As.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return As.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=As.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(to).catch(to)}invalidateQueries(e,t={}){return As.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=As.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let c=i.fetch(void 0,n);return n.throwOnError||(c=c.catch(to)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(to)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Hb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(to).catch(to)}fetchInfiniteQuery(e){return e.behavior=LI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(to).catch(to)}ensureInfiniteQueryData(e){return e.behavior=LI(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=MS(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===DS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},Av={exports:{}},Qe={};var zI;function v5(){if(zI)return Qe;zI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function _($){return $===null||typeof $!="object"?null:($=b&&$[b]||$["@@iterator"],typeof $=="function"?$:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,R={};function C($,ee,ye){this.props=$,this.context=ee,this.refs=R,this.updater=ye||E}C.prototype.isReactComponent={},C.prototype.setState=function($,ee){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,ee,"setState")},C.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function T(){}T.prototype=C.prototype;function P($,ee,ye){this.props=$,this.context=ee,this.refs=R,this.updater=ye||E}var I=P.prototype=new T;I.constructor=P,x(I,C.prototype),I.isPureReactComponent=!0;var B=Array.isArray;function j(){}var V={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function Q($,ee,ye){var Ee=ye.ref;return{$$typeof:e,type:$,key:ee,ref:Ee!==void 0?Ee:null,props:ye}}function ne($,ee){return Q($.type,ee,$.props)}function te($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function F($){var ee={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(ye){return ee[ye]})}var oe=/\/+/g;function me($,ee){return typeof $=="object"&&$!==null&&$.key!=null?F(""+$.key):ee.toString(36)}function ge($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(j,j):($.status="pending",$.then(function(ee){$.status==="pending"&&($.status="fulfilled",$.value=ee)},function(ee){$.status==="pending"&&($.status="rejected",$.reason=ee)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function H($,ee,ye,Ee,xe){var Se=typeof $;(Se==="undefined"||Se==="boolean")&&($=null);var Oe=!1;if($===null)Oe=!0;else switch(Se){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch($.$$typeof){case e:case t:Oe=!0;break;case v:return Oe=$._init,H(Oe($._payload),ee,ye,Ee,xe)}}if(Oe)return xe=xe($),Oe=Ee===""?"."+me($,0):Ee,B(xe)?(ye="",Oe!=null&&(ye=Oe.replace(oe,"$&/")+"/"),H(xe,ee,ye,"",function(tt){return tt})):xe!=null&&(te(xe)&&(xe=ne(xe,ye+(xe.key==null||$&&$.key===xe.key?"":(""+xe.key).replace(oe,"$&/")+"/")+Oe)),ee.push(xe)),1;Oe=0;var Fe=Ee===""?".":Ee+":";if(B($))for(var be=0;be<$.length;be++)Ee=$[be],Se=Fe+me(Ee,be),Oe+=H(Ee,ee,ye,Se,xe);else if(be=_($),typeof be=="function")for($=be.call($),be=0;!(Ee=$.next()).done;)Ee=Ee.value,Se=Fe+me(Ee,be++),Oe+=H(Ee,ee,ye,Se,xe);else if(Se==="object"){if(typeof $.then=="function")return H(ge($),ee,ye,Ee,xe);throw ee=String($),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function re($,ee,ye){if($==null)return $;var Ee=[],xe=0;return H($,Ee,"","",function(Se){return ee.call(ye,Se,xe++)}),Ee}function J($){if($._status===-1){var ee=$._result;ee=ee(),ee.then(function(ye){($._status===0||$._status===-1)&&($._status=1,$._result=ye)},function(ye){($._status===0||$._status===-1)&&($._status=2,$._result=ye)}),$._status===-1&&($._status=0,$._result=ee)}if($._status===1)return $._result.default;throw $._result}var ve=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ue={map:re,forEach:function($,ee,ye){re($,function(){ee.apply(this,arguments)},ye)},count:function($){var ee=0;return re($,function(){ee++}),ee},toArray:function($){return re($,function(ee){return ee})||[]},only:function($){if(!te($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Qe.Activity=g,Qe.Children=ue,Qe.Component=C,Qe.Fragment=n,Qe.Profiler=i,Qe.PureComponent=P,Qe.StrictMode=r,Qe.Suspense=d,Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Qe.__COMPILER_RUNTIME={__proto__:null,c:function($){return V.H.useMemoCache($)}},Qe.cache=function($){return function(){return $.apply(null,arguments)}},Qe.cacheSignal=function(){return null},Qe.cloneElement=function($,ee,ye){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var Ee=x({},$.props),xe=$.key;if(ee!=null)for(Se in ee.key!==void 0&&(xe=""+ee.key),ee)!N.call(ee,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&ee.ref===void 0||(Ee[Se]=ee[Se]);var Se=arguments.length-2;if(Se===1)Ee.children=ye;else if(1{const t=M.useContext(hD);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},b5=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(hD.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 gD({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:c,checkDirty:l,shallowPropagate:f};function r(p,v,g){const b=v.depsTail;if(b!==void 0&&b.dep===p)return;const _=b!==void 0?b.nextDep:v.deps;if(_!==void 0&&_.dep===p){_.version=g,v.depsTail=_;return}const E=p.subsTail;if(E!==void 0&&E.version===g&&E.sub===v)return;const x=v.depsTail=p.subsTail={version:g,dep:p,sub:v,prevDep:b,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=x),b!==void 0?b.nextDep=x:v.deps=x,E!==void 0?E.nextSub=x:p.subs=x}function i(p,v=p.sub){const g=p.dep,b=p.prevDep,_=p.nextDep,E=p.nextSub,x=p.prevSub;return _!==void 0?_.prevDep=b:v.depsTail=b,b!==void 0?b.nextDep=_:v.deps=_,E!==void 0?E.prevSub=x:g.subsTail=x,x!==void 0?x.nextSub=E:(g.subs=E)===void 0&&n(g),_}function c(p){let v=p.nextSub,g;e:do{const b=p.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&d(p,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&t(b),_&1){const E=b.subs;if(E!==void 0){const x=(p=E).nextSub;x!==void 0&&(g={value:v,prev:g},v=x);continue}}if((p=v)!==void 0){v=p.nextSub;continue}for(;g!==void 0;)if(p=g.value,g=g.prev,p!==void 0){v=p.nextSub;continue e}break}while(!0)}function l(p,v){let g,b=0,_=!1;e:do{const E=p.dep,x=E.flags;if(v.flags&16)_=!0;else if((x&17)===17){if(e(E)){const R=E.subs;R.nextSub!==void 0&&f(R),_=!0}}else if((x&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(g={value:p,prev:g}),p=E.deps,v=E,++b;continue}if(!_){const R=p.nextDep;if(R!==void 0){p=R;continue}}for(;b--;){const R=v.subs,C=R.nextSub!==void 0;if(C?(p=g.value,g=g.prev):p=R,_){if(e(v)){C&&f(R),v=p.sub;continue}_=!1}else v.flags&=-33;v=p.sub;const T=p.nextDep;if(T!==void 0){p=T;continue e}}return _}while(!0)}function f(p){do{const v=p.sub,g=v.flags;(g&48)===32&&(v.flags=g|16,(g&6)===2&&t(v))}while((p=p.nextSub)!==void 0)}function d(p,v){let g=v.depsTail;for(;g!==void 0;){if(g===p)return!0;g=g.prevDep}return!1}}let kS=0,bc=0,sd=0;const oi=[],{link:oMe,unlink:yD,propagate:iMe,checkDirty:S5,shallowPropagate:aMe}=gD({update(e){return e.depsTail!==void 0?w5(e):R5(e)},notify(e){let t=sd,n=t;do if(oi[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(sd=t;n<--t;){const r=oi[n];oi[n++]=oi[t],oi[t]=r}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ng(e)):I5.call(e)}});function _5(){return kS}function E5(){++kS}function x5(){--kS||A5()}function w5(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,ng(e)}}function R5(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function C5(e){const t=e.flags;if(t&16||t&32&&S5(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,ng(e)}}else e.flags=2}function A5(){try{for(;bc0)){for(;Mh{i.get(),f.current?l.next?.(i._snapshot):f.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(c){const l=fo,f=Object.is;fo=i,++tm,i.depsTail=void 0,n&&(i.flags=on.Mutable|on.RecursedCheck);try{const d=i._snapshot,p=typeof c=="function"?c(d):c===void 0&&n?r(d):c;return d===void 0||!f(d,p)?(i._snapshot=p,!0):!1}finally{fo=l,n&&(i.flags&=~on.RecursedCheck),mm(i)}}};return n?(i.flags=on.Mutable|on.Dirty,i.get=function(){const c=i.flags;if(c&on.Dirty||c&on.Pending&&vD(i.deps,i)){if(i._update()){const l=i.subs;l!==void 0&&jI(l)}}else c&on.Pending&&(i.flags=c&~on.Pending);return fo!==void 0&&UI(i,fo,tm),i._snapshot}):i.set=function(c){if(i._update(c)){const l=i.subs;l!==void 0&&(O5(l),jI(l),bD())}},i}function M5(e){const t=()=>{const r=fo;fo=n,++tm,n.depsTail=void 0,n.flags=on.Watching|on.RecursedCheck;try{return e()}finally{fo=r,n.flags&=~on.RecursedCheck,mm(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:on.Watching|on.RecursedCheck,notify(){const r=this.flags;r&on.Dirty||r&on.Pending&&vD(this.deps,this)?t():this.flags=on.Watching},stop(){this.flags=on.None,this.depsTail=void 0,mm(this)}};return t(),n}let D5=class{constructor(t){this.atom=SD(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(NS(t))}};class P5{constructor(t){this.atom=SD(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(NS(t))}}function k5(e){return typeof e=="function"?new P5(e):new D5(e)}function N5(e){try{E5(),e()}finally{x5(),bD()}}const xa="__TSR_index",VI="popstate",HI="beforeunload";function L5(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},i=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},c=async({task:l,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){l();return}const v=e.getBlockers?.()??[],g=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&v.length&&g)for(const b of v){const _=gm(d.path,d.state);if(await b.blockerFn({currentLocation:t,nextLocation:_,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,d)=>{const p=t.state[xa];f=qI(p+1,f),c({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:f})},replace:(l,f,d)=>{const p=t.state[xa];f=qI(p,f),c({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:f})},go:(l,f)=>{c({task:()=>{e.go(l),i({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{c({task:()=>{e.back(l?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{c({task:()=>{e.forward(l?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[xa]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(p=>p!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function qI(e,t){t||(t={});const n=LS();return{...t,key:n,__TSR_key:n,[xa]:e}}function $5(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let i=[];const c=()=>i,l=N=>i=N,f=(N=>N),d=(()=>gm(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const N=LS();t.history.replaceState({[xa]:0,key:N,__TSR_key:N},"")}let p=d(),v,g=!1,b=!1,_=!1,E=!1;const x=()=>p;let R,C;const T=()=>{R&&(V._ignoreSubscribers=!0,(R.isPush?t.history.pushState:t.history.replaceState)(R.state,"",R.href),V._ignoreSubscribers=!1,R=void 0,C=void 0,v=void 0)},P=(N,Q,ne)=>{const te=f(Q);C||(v=p),p=gm(Q,ne),R={href:te,state:ne,isPush:R?.isPush||N==="push"},C||(C=Promise.resolve().then(()=>T()))},I=N=>{p=d(),V.notify({type:N})},B=async()=>{if(b){b=!1;return}const N=d(),Q=N.state[xa]-p.state[xa],ne=Q===1,te=Q===-1,F=!ne&&!te||g;g=!1;const oe=F?"GO":te?"BACK":"FORWARD",me=F?{type:"GO",index:Q}:{type:te?"BACK":"FORWARD"};if(_)_=!1;else{const ge=c();if(typeof document<"u"&&ge.length){for(const H of ge)if(await H.blockerFn({currentLocation:p,nextLocation:N,action:oe})){b=!0,t.history.go(1),V.notify(me);return}}}p=d(),V.notify(me)},j=N=>{if(E){E=!1;return}let Q=!1;const ne=c();if(typeof document<"u"&&ne.length)for(const te of ne){const F=te.enableBeforeUnload??!0;if(F===!0){Q=!0;break}if(typeof F=="function"&&F()===!0){Q=!0;break}}if(Q)return N.preventDefault(),N.returnValue=""},V=L5({getLocation:x,getLength:()=>t.history.length,pushState:(N,Q)=>P("push",N,Q),replaceState:(N,Q)=>P("replace",N,Q),back:N=>(N&&(_=!0),E=!0,t.history.back()),forward:N=>{N&&(_=!0),E=!0,t.history.forward()},go:N=>{g=!0,t.history.go(N)},createHref:N=>f(N),flush:T,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(HI,j,{capture:!0}),t.removeEventListener(VI,B)},onBlocked:()=>{v&&p!==v&&(p=v)},getBlockers:c,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(HI,j,{capture:!0}),t.addEventListener(VI,B),t.history.pushState=function(...N){const Q=n.apply(t.history,N);return V._ignoreSubscribers||I("PUSH"),Q},t.history.replaceState=function(...N){const Q=r.apply(t.history,N);return V._ignoreSubscribers||I("REPLACE"),Q},V}function z5(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function gm(e,t){const n=z5(e),r=n.indexOf("#"),i=n.indexOf("?"),c=LS();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):"",search:i>-1?n.slice(i,r===-1?void 0:r):"",state:t||{[xa]:0,key:c,__TSR_key:c}}}function LS(){return(Math.random()+1).toString(36).substring(7)}const B5=!1;function rd(e){let t;return N5(()=>{t=e()}),t}function gd(e){return e[e.length-1]}function U5(e){return typeof e=="function"}function ya(e,t){return U5(e)?e(t):e}const j5=Object.prototype.hasOwnProperty,FI=Object.prototype.propertyIsEnumerable;function nr(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=t,i=ZI(e)&&ZI(r);if(!i&&!(ym(e)&&ym(r)))return r;const c=i?e:GI(e);if(!c)return r;const l=i?r:GI(r);if(!l)return r;const f=c.length,d=l.length,p=i?new Array(d):{};let v=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!KI(n)||!n.hasOwnProperty("isPrototypeOf"))}function KI(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cc(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;ri||!Cc(e[l],t[l],n)))return!1;return i===c}return!1}function iu(e){let t,n;const r=new Promise((i,c)=>{t=i,n=c});return r.status="pending",r.resolve=i=>{r.status="resolved",r.value=i,t(i),e?.(i)},r.reject=i=>{r.status="rejected",n(i)},r}function V5(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Xl(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function H5(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function QI(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 H5(t)}const q5=["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 F5={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},G5=/[&><\u2028\u2029]/g;function K5(e){return e.replace(G5,t=>F5[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+=QI(e.slice(n,i.index))+i[0],n=t.lastIndex;r=r+QI(n?e.slice(n):e);let c=!1;return r.startsWith("//")&&(c=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:c}}function Z5(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var Q5="Invariant failed";function li(e,t){if(!e)throw new Error(Q5)}function bm(e){const t=new Map;let n,r;const i=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,r&&(r.next=c,c.prev=r)):(c.next.prev=void 0,n=c.next,c.next=void 0,r&&(c.prev=r,r.next=c)),r=c)};return{get(c){const l=t.get(c);if(l)return i(l),l.value},set(c,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const f=t.get(c);if(f)f.value=l,i(f);else{const d={key:c,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(c,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const au=0,Dc=1,Pc=2,yd=3,xc=4,_D=5;function Y5(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 $S(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),i=r===-1?e.length:r,c=e.substring(t,i);if(!c||!c.includes("$"))return n[0]=au,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(c==="$"){const f=e.length;return n[0]=Pc,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(c.charCodeAt(0)===36)return n[0]=Dc,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=Y5(c);if(l){const[f,d]=l,p=c.charCodeAt(f+1);if(p===45){if(f+2!N.skipOnParamError&&N.caseSensitive===I&&N.prefix===B&&N.suffix===j);if(V)E=V;else{const N=Tv(Dc,n.fullPath??n.from,I,B,j);E=N,N.depth=c,N.parent=i,i.dynamic??=[],i.dynamic.push(N)}break}case yd:{const T=d.substring(x,_[1]),P=d.substring(_[4],R),I=v&&!!(T||P),B=T?I?T:T.toLowerCase():void 0,j=P?I?P:P.toLowerCase():void 0,V=!g&&i.optional?.find(N=>!N.skipOnParamError&&N.caseSensitive===I&&N.prefix===B&&N.suffix===j);if(V)E=V;else{const N=Tv(yd,n.fullPath??n.from,I,B,j);E=N,N.parent=i,N.depth=c,i.optional??=[],i.optional.push(N)}break}case Pc:{const T=d.substring(x,_[1]),P=d.substring(_[4],R),I=v&&!!(T||P),B=T?I?T:T.toLowerCase():void 0,j=P?I?P:P.toLowerCase():void 0,V=Tv(Pc,n.fullPath??n.from,I,B,j);E=V,V.parent=i,V.depth=c,i.wildcard??=[],i.wildcard.push(V)}}i=E}if(g&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const _=wc(n.fullPath??n.from);_.kind=_D,_.parent=i,c++,_.depth=c,i.pathless??=[],i.pathless.push(_),i=_}const b=(n.path||!n.children)&&!n.isRoot;if(b&&d.endsWith("/")){const _=wc(n.fullPath??n.from);_.kind=xc,_.parent=i,c++,_.depth=c,i.index=_,i=_}i.parse=n.options?.params?.parse??null,i.skipOnParamError=g,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,b&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)sg(e,t,d,f,i,c,l)}function Iv(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function ga(e){if(e.pathless)for(const t of e.pathless)ga(t);if(e.static)for(const t of e.static.values())ga(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())ga(t);if(e.dynamic?.length){e.dynamic.sort(Iv);for(const t of e.dynamic)ga(t)}if(e.optional?.length){e.optional.sort(Iv);for(const t of e.optional)ga(t)}if(e.wildcard?.length){e.wildcard.sort(Iv);for(const t of e.wildcard)ga(t)}}function wc(e){return{kind:au,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Tv(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function X5(e,t){const n=wc("/"),r=new Uint16Array(6);for(const i of e)sg(!1,r,i,1,n,0);ga(n),t.masksTree=n,t.flatCache=bm(1e3)}function W5(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=zS(e,t.masksTree);return t.flatCache.set(e,r),r}function J5(e,t,n,r,i){e||="/",r||="/";const c=t?`case\0${e}`:e;let l=i.singleCache.get(c);if(!l){l=wc("/");const f=new Uint16Array(6);sg(t,f,{from:e},1,l,0),i.singleCache.set(c,l)}return zS(r,l,n)}function e8(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=zS(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)c=null;else throw l}return c&&(c.branch=s8(c.route)),t.matchCache.set(r,c),c}function t8(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function n8(e,t=!1,n){const r=wc(e.fullPath),i=new Uint16Array(6),c={},l={};let f=0;return sg(t,i,e,1,r,0,p=>{if(n?.(p,f),li(!(p.id in c),`Duplicate routes found with id: ${String(p.id)}`),c[p.id]=p,f!==0&&p.path){const v=t8(p.fullPath);(!l[v]||p.fullPath.endsWith("/"))&&(l[v]=p)}f++}),ga(r),{processedTree:{segmentTree:r,singleCache:bm(1e3),matchCache:bm(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:l}}function zS(e,t,n=!1){const r=e.split("/"),i=o8(e,r,t,n);if(!i)return null;const[c]=ED(e,r,i);return{route:i.node.route,rawParams:c,parsedParams:i.parsedParams}}function ED(e,t,n){const r=r8(n.node);let i=null;const c={};let l=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,p=n.extract?.segment??0;for(;f=0;te--){const F=b.optional[te];f.push({node:F,index:_,skipped:Q,depth:ne,statics:R,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(!j)for(let te=b.optional.length-1;te>=0;te--){const F=b.optional[te],{prefix:oe,suffix:me}=F;if(oe||me){const ge=F.caseSensitive?V:N??=V.toLowerCase();if(oe&&!ge.startsWith(oe)||me&&!ge.endsWith(me))continue}f.push({node:F,index:_+1,skipped:E,depth:ne,statics:R,dynamics:C,optionals:T+1,extract:P,rawParams:I,parsedParams:B})}}if(!j&&b.dynamic&&V)for(let Q=b.dynamic.length-1;Q>=0;Q--){const ne=b.dynamic[Q],{prefix:te,suffix:F}=ne;if(te||F){const oe=ne.caseSensitive?V:N??=V.toLowerCase();if(te&&!oe.startsWith(te)||F&&!oe.endsWith(F))continue}f.push({node:ne,index:_+1,skipped:E,depth:x+1,statics:R,dynamics:C+1,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(!j&&b.staticInsensitive){const Q=b.staticInsensitive.get(N??=V.toLowerCase());Q&&f.push({node:Q,index:_+1,skipped:E,depth:x+1,statics:R+1,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(!j&&b.static){const Q=b.static.get(V);Q&&f.push({node:Q,index:_+1,skipped:E,depth:x+1,statics:R+1,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}if(b.pathless){const Q=x+1;for(let ne=b.pathless.length-1;ne>=0;ne--){const te=b.pathless[ne];f.push({node:te,index:_,skipped:E,depth:Q,statics:R,dynamics:C,optionals:T,extract:P,rawParams:I,parsedParams:B})}}}if(v&&d)return jf(d,v)?v:d;if(v)return v;if(d)return d;if(r&&p){let g=p.index;for(let _=0;_e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===xc)>(e.node.kind===xc)||t.node.kind===xc==(e.node.kind===xc)&&t.depth>e.depth))):!0}function nm(e){return BS(e.filter(t=>t!==void 0).join("/"))}function BS(e){return e.replace(/\/{2,}/g,"/")}function xD(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function wa(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function wD(e){return wa(xD(e))}function Sm(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function i8(e,t,n){return Sm(e,n)===Sm(t,n)}function a8({base:e,to:t,trailingSlash:n="never",cache:r}){const i=t.startsWith("/"),c=!i&&t===".";let l;if(r){l=i?t:c?e:e+"\0"+t;const g=r.get(l);if(g)return g}let f;if(c)f=e.split("/");else if(i)f=t.split("/");else{for(f=e.split("/");f.length>1&&gd(f)==="";)f.pop();const g=t.split("/");for(let b=0,_=g.length;b<_;b++){const E=g[b];E===""?b?b===_-1&&f.push(E):f=[E]:E===".."?f.pop():E==="."||f.push(E)}}f.length>1&&(gd(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let d,p="";for(let g=0;g0&&(p+="/");const b=f[g];if(!b)continue;d=$S(b,0,d);const _=d[0];if(_===au){p+=b;continue}const E=d[5],x=b.substring(0,d[1]),R=b.substring(d[4],E),C=b.substring(d[2],d[3]);_===Dc?p+=x||R?`${x}{$${C}}${R}`:`$${C}`:_===Pc?p+=x||R?`${x}{$}${R}`:"$":p+=`${x}{-$${C}}${R}`}p=BS(p);const v=p||"/";return l&&r&&r.set(l,v),v}function c8(e){const t=new Map(e.map(i=>[encodeURIComponent(i),i])),n=Array.from(t.keys()).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return i=>i.replace(r,c=>t.get(c)??c)}function Mv(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(i=>XI(i,n)).join("/"):XI(r,n)}function YI({path:e,params:t,decoder:n,...r}){let i=!1;const c={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:c,isMissingParams:i};const l=e.length;let f=0,d,p="";for(;f{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function f8(){const e=l8();if(!e)return null;const t=e.getItem(Zb);let n=t?JSON.parse(t):{};return{state:n,set:r=>{n=ya(r,n)||n;try{e.setItem(Zb,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Dh=f8(),d8=e=>e.state.__TSR_key||e.href;function p8(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 h8({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:c}){let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||window.history.state?.__TSR_key,d=l[f];_m=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const g in d){const b=d[g];if(g==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:n});else if(g){const _=document.querySelector(g);_&&(_.scrollLeft=b.scrollX,_.scrollTop=b.scrollY)}}break e}const p=(c??window.location).hash.split("#",2)[1];if(p){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const b=document.getElementById(p);b&&b.scrollIntoView(g)}break e}const v={top:0,left:0,behavior:n};if(window.scrollTo(v),i)for(const g of i){if(g==="window")continue;const b=typeof g=="function"?g():document.querySelector(g);b&&b.scrollTo(v)}}_m=!1}function m8(e,t){if(!Dh||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!Dh))return;e.isScrollRestorationSetup=!0,_m=!1;const r=e.options.getScrollRestorationKey||d8;window.history.scrollRestoration="manual";const i=c=>{if(_m||!e.isScrollRestoring)return;let l="";if(c.target===document||c.target===window)l="window";else{const d=c.target.getAttribute("data-scroll-restoration-id");d?l=`[data-scroll-restoration-id="${d}"]`:l=p8(c.target)}const f=r(e.state.location);Dh.set(d=>{const p=d[f]||={},v=p[l]||={};if(l==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(v.scrollX=g.scrollLeft||0,v.scrollY=g.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",u8(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})||(h8({storageKey:Zb,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Dh.set(f=>(f[l]||={},f)))})}function g8(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 y8(e,t=String){const n=new URLSearchParams;for(const r in e){const i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Dv(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function v8(e){const t=new URLSearchParams(e),n={};for(const[r,i]of t.entries()){const c=n[r];c==null?n[r]=Dv(i):Array.isArray(c)?c.push(Dv(i)):n[r]=[c,Dv(i)]}return n}const b8=_8(JSON.parse),S8=E8(JSON.stringify,JSON.parse);function _8(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=v8(t);for(const r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch{}}return n}}function E8(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=y8(i,r);return c?`?${c}`:""}}const Dr="__root__";function US(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Nr(e){return e instanceof Response&&!!e.options}const sm=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},rg=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Wl=(e,t,n=!0)=>{const r={...e.router.options.context??{}},i=n?t:t-1;for(let c=0;c<=i;c++){const l=e.matches[c];if(!l)continue;const f=e.router.getMatch(l.id);f&&Object.assign(r,f.__routeContext,f.__beforeLoadContext)}return r},RD=(e,t,n)=>{const r=e.router.routesById[t.routeId??""]??e.router.routeTree;!r.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(r.options.notFoundComponent=e.router.options.defaultNotFoundComponent);const i=n==="BEFORE_LOAD"&&r.parentRoute;i||li(r.options.notFoundComponent);const c=e.matches.find(l=>l.routeId===r.id);li(c,"Could not find match for route: "+r.id),e.updateMatch(c.id,l=>({...l,status:"notFound",error:t,isFetching:!1})),i&&(t.routeId=r.parentRoute.id,RD(e,t,n))},va=(e,t,n,r)=>{if(!(!Nr(n)&&!ar(n))){if(Nr(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const i=Nr(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,c=>({...c,status:i,context:Wl(e,t.index),isFetching:!1,error:n})),ar(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw Nr(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(RD(e,n,r),n)}},CD=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,Vf=(e,t,n,r)=>{const{id:i,routeId:c}=e.matches[t],l=e.router.looseRoutesById[c];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,va(e,e.router.getMatch(i),n,r);try{l.options.onError?.(n)}catch(f){n=f,va(e,e.router.getMatch(i),n,r)}e.updateMatch(i,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},AD=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!rg(e,t)&&(n.options.loader||n.options.beforeLoad||OD(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{sm(e)},i);r._nonReactive.pendingTimeout=l}},x8=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;AD(e,t,n,r);const i=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&va(e,c,c.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},w8=(e,t,n,r)=>{const i=e.router.getMatch(t),c=i._nonReactive.loadPromise;i._nonReactive.loadPromise=iu(()=>{c?.resolve()});const{paramsError:l,searchError:f}=i;l&&Vf(e,n,l,"PARSE_PARAMS"),f&&Vf(e,n,f,"VALIDATE_SEARCH"),AD(e,t,r,i);const d=new AbortController;let p=!1;const v=()=>{p||(p=!0,e.updateMatch(t,I=>({...I,isFetching:"beforeLoad",fetchCount:I.fetchCount+1,abortController:d})))},g=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,I=>({...I,isFetching:!1}))};if(!r.options.beforeLoad){rd(()=>{v(),g()});return}i._nonReactive.beforeLoadPromise=iu();const b={...Wl(e,n,!1),...i.__routeContext},{search:_,params:E,cause:x}=i,R=rg(e,t),C={search:_,abortController:d,params:E,preload:R,context:b,location:e.location,navigate:I=>e.router.navigate({...I,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":x,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},T=I=>{if(I===void 0){rd(()=>{v(),g()});return}(Nr(I)||ar(I))&&(v(),Vf(e,n,I,"BEFORE_LOAD")),rd(()=>{v(),e.updateMatch(t,B=>({...B,__beforeLoadContext:I})),g()})};let P;try{if(P=r.options.beforeLoad(C),Xl(P))return v(),P.catch(I=>{Vf(e,n,I,"BEFORE_LOAD")}).then(T)}catch(I){v(),Vf(e,n,I,"BEFORE_LOAD")}T(P)},R8=(e,t)=>{const{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],c=()=>f(),l=()=>w8(e,n,t,i),f=()=>{if(CD(e,n))return;const d=x8(e,n,i);return Xl(d)?d.then(l):l()};return c()},C8=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([c,l,f])=>{const d=c?.meta,p=c?.links,v=c?.scripts,g=c?.styles;return{meta:d,links:p,headScripts:v,headers:f,scripts:l,styles:g}})},ID=(e,t,n,r)=>{const i=e.matchPromises[n-1],{params:c,loaderDeps:l,abortController:f,cause:d}=e.router.getMatch(t),p=Wl(e,n),v=rg(e,t);return{params:c,deps:l,preload:!!v,parentMatchPromise:i,abortController:f,context:p,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:v?"preload":d,route:r,...e.router.options.additionalContext}},WI=async(e,t,n,r)=>{try{const i=e.router.getMatch(t);try{(!(B5??e.router.isServer)||i.ssr===!0)&&TD(r);const c=r.options.loader?.(ID(e,t,n,r)),l=r.options.loader&&Xl(c);if((l||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,p=>({...p,isFetching:"loader"})),r.options.loader){const p=l?await c:c;va(e,e.router.getMatch(t),p),p!==void 0&&e.updateMatch(t,v=>({...v,loaderData:p}))}r._lazyPromise&&await r._lazyPromise;const d=i._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,p=>({...p,error:void 0,context:Wl(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let l=c;if(l?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(t,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Wl(e,n)}));return}const f=i._nonReactive.minPendingPromise;f&&await f,ar(c)&&await r.options.notFoundComponent?.preload?.(),va(e,e.router.getMatch(t),c);try{r.options.onError?.(c)}catch(d){l=d,va(e,e.router.getMatch(t),d)}e.updateMatch(t,d=>({...d,error:l,context:Wl(e,n),status:"error",isFetching:!1}))}}catch(i){const c=e.router.getMatch(t);c&&(c._nonReactive.loaderPromise=void 0),va(e,c,i)}},A8=async(e,t)=>{async function n(v,g,b,_){const E=Date.now()-g.updatedAt,x=v?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,R=_.options.shouldReload,C=typeof R=="function"?R(ID(e,r,t,_)):R,{status:T,invalid:P}=b;c=T==="success"&&(P||(C??E>x)),v&&_.options.preload===!1||(c&&!e.sync?(l=!0,(async()=>{try{await WI(e,r,t,_);const I=e.router.getMatch(r);I._nonReactive.loaderPromise?.resolve(),I._nonReactive.loadPromise?.resolve(),I._nonReactive.loaderPromise=void 0}catch(I){Nr(I)&&await e.router.navigate(I.options)}})()):(T!=="success"||c&&e.sync)&&await WI(e,r,t,_))}const{id:r,routeId:i}=e.matches[t];let c=!1,l=!1;const f=e.router.looseRoutesById[i];if(!CD(e,r)){const v=e.router.getMatch(r),g=rg(e,r);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload)return v;await v._nonReactive.loaderPromise;const b=e.router.getMatch(r),_=b._nonReactive.error||b.error;_&&va(e,b,_),b.status==="pending"&&await n(g,v,b,f)}else{const b=g&&!e.router.state.matches.some(E=>E.id===r),_=e.router.getMatch(r);_._nonReactive.loaderPromise=iu(),b!==_.preload&&e.updateMatch(r,E=>({...E,preload:b})),await n(g,v,_,f)}}const d=e.router.getMatch(r);l||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,l||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const p=l?d.isFetching:!1;return p!==d.isFetching||d.invalid!==!1?(e.updateMatch(r,v=>({...v,isFetching:p,invalid:!1})),e.router.getMatch(r)):d};async function JI(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&sm(t);try{for(let f=0;ff.status==="rejected").map(f=>f.reason);let c;for(const f of i){if(Nr(f))throw f;!c&&ar(f)&&(c=f)}for(const f of t.matches){const{id:d,routeId:p}=f,v=t.router.looseRoutesById[p];try{const g=C8(t,d,v);if(g){const b=await g;t.updateMatch(d,_=>({..._,...b}))}}catch(g){console.error(`Error executing head for route ${p}:`,g)}}if(c)throw c;const l=sm(t);Xl(l)&&await l}catch(n){if(ar(n)&&!t.preload){const r=sm(t);throw Xl(r)&&await r,n}if(Nr(n))throw n}return t.matches}async function TD(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 MD){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 OD(e){for(const t of MD)if(e.options[t]?.preload)return!0;return!1}const MD=["component","errorComponent","pendingComponent","notFoundComponent"];function I8(e){return{input:({url:t})=>{for(const n of e)t=Qb(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=DD(e[n],t);return t}}}function T8(e){const t=wD(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),c=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const f=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return f===i?l.pathname="/":f.startsWith(c)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=nm(["/",t,l.pathname]),l)}}function Qb(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function DD(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Ac(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,i=t?.href!==n.href,c=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:i,hashChanged:c}}function O8(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class M8{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=c8(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=$5()),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=k5(P8(this.latestLocation)),m8(this));let f=!1;const d=this.options.basepath??"/",p=this.options.rewrite;if(c||i!==d||l!==p){this.basepath=d;const b=[],_=wD(d);_&&_!=="/"&&b.push(T8({basepath:d})),p&&b.push(p),this.rewrite=b.length===0?void 0:b.length===1?b[0]:I8(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=n8(this.routeTree,this.options.caseSensitive,(r,i)=>{r.init({originalIndex:i})});return this.options.routeMasks&&X5(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const i={eventType:n,fn:r};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const i=({pathname:d,search:p,hash:v,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const T=this.options.parseSearch(p),P=this.options.stringifySearch(T);return{href:d+P+v,publicHref:g,pathname:Uf(d).path,external:!1,searchStr:P,search:nr(r?.search,T),hash:Uf(v.slice(1)).path,state:nr(r?.state,b)}}const _=new URL(g,this.origin),E=Qb(this.rewrite,_),x=this.options.parseSearch(E.search),R=this.options.stringifySearch(x);return E.search=R,{href:E.href.replace(E.origin,""),publicHref:g,pathname:Uf(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:R,search:nr(r?.search,x),hash:Uf(E.hash.slice(1)).path,state:nr(r?.state,b)}},c=i(n),{__tempLocation:l,__tempKey:f}=c.state;if(l&&(!f||f===this.tempLocationKey)){const d=i(l);return d.state.key=c.state.key,d.state.__TSR_key=c.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:c}}return c},this.resolvePathWithBase=(n,r)=>a8({base:n,to:BS(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=>k8({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(c=>c.status==="pending"),r=this.state.matches.filter(c=>c.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(c=>{this.cancelMatch(c.id)})},this.buildLocation=n=>{const r=(c={})=>{const l=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(l);c.from;const d=c.unsafeRelative==="path"?l.pathname:c.from??f.fullPath,p=this.resolvePathWithBase(d,"."),v=f.search,g={...f.params},b=c.to?this.resolvePathWithBase(p,`${c.to}`):this.resolvePathWithBase(p,"."),_=c.params===!1||c.params===null?{}:(c.params??!0)===!0?g:Object.assign(g,ya(c.params,g)),E=this.getMatchedRoutes(b);let x=E.matchedRoutes;if((!E.foundRoute||E.foundRoute.path!=="/"&&E.routeParams["**"])&&this.options.notFoundRoute&&(x=[...x,this.options.notFoundRoute]),Object.keys(_).length>0)for(const te of x){const F=te.options.params?.stringify??te.options.stringifyParams;if(F)try{Object.assign(_,F(_))}catch{}}const C=n.leaveParams?b:Uf(YI({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let T=v;if(n._includeValidateSearch&&this.options.search?.strict){const te={};x.forEach(F=>{if(F.options.validateSearch)try{Object.assign(te,rm(F.options.validateSearch,{...te,...T}))}catch{}}),T=te}T=N8({search:T,dest:c,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),T=nr(v,T);const P=this.options.stringifySearch(T),I=c.hash===!0?l.hash:c.hash?ya(c.hash,l.hash):void 0,B=I?`#${I}`:"";let j=c.state===!0?l.state:c.state?ya(c.state,l.state):{};j=nr(l.state,j);const V=`${C}${P}${B}`;let N,Q,ne=!1;if(this.rewrite){const te=new URL(V,this.origin),F=DD(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=Z5(V),Q=N;return{publicHref:Q,href:N,pathname:C,search:T,searchStr:P,state:j,hash:I??"",external:ne,unmaskOnReload:c.unmaskOnReload}},i=(c={},l)=>{const f=r(c);let d=l?r(l):void 0;if(!d){const p={};if(this.options.routeMasks){const v=W5(f.pathname,this.processedTree);if(v){Object.assign(p,v.rawParams);const{from:g,params:b,..._}=v.route,E=b===!1||b===null?{}:(b??!0)===!0?p:Object.assign(p,ya(b,p));l={from:n.from,..._,params:E},d=r(l)}}}return d&&(f.maskedLocation=d),f};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...i})=>{const c=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(v=>{i.state[v]=this.latestLocation.state[v]});const p=Cc(i.state,this.latestLocation.state);return d.forEach(v=>{delete i.state[v]}),p},l=wa(this.latestLocation.href)===wa(i.href),f=this.commitLocationPromise;if(this.commitLocationPromise=iu(()=>{f?.resolve()}),l&&c())this.load();else{let{maskedLocation:d,hashScrollIntoView:p,...v}=i;d&&(v={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[i.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:r})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:i,viewTransition:c,ignoreBlocker:l,href:f,...d}={})=>{if(f){const g=this.history.location.state.__TSR_index,b=gm(f,{__TSR_index:n?g:g+1}),_=new URL(b.pathname,this.origin),E=Qb(this.rewrite,_);d.to=E.pathname,d.search=this.options.parseSearch(b.search),d.hash=b.hash.slice(1)}const p=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const v=this.commitLocation({...p,viewTransition:c,replace:n,resetScroll:r,hashScrollIntoView:i,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:n,reloadDocument:r,href:i,publicHref:c,...l})=>{let f=!1;if(i)try{new URL(`${i}`),f=!0}catch{}if(f&&!r&&(r=!0),r){if(n!==void 0||!i){const p=this.buildLocation({to:n,...l});i=i??p.publicHref,c=c??p.publicHref}const d=!f&&c?c:i;if(vm(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const v=this.history.getBlockers?.()??[];for(const g of v)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:i,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(i=>!n.some(c=>c.id===i.id))}))},this.load=async n=>{let r,i,c;for(c=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,p=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ac({resolvedLocation:p,location:d})}),this.emit({type:"onBeforeLoad",...Ac({resolvedLocation:p,location:d})}),await JI({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],g=[],b=[],_=[];rd(()=>{this.__store.setState(E=>{const x=E.matches,R=E.pendingMatches||E.matches;return v=x.filter(C=>!R.some(T=>T.id===C.id)),g=x.filter(C=>!R.some(T=>T.routeId===C.routeId)),b=R.filter(C=>!x.some(T=>T.routeId===C.routeId)),_=R.filter(C=>x.some(T=>T.routeId===C.routeId)),{...E,isLoading:!1,loadedAt:Date.now(),matches:R,pendingMatches:void 0,cachedMatches:[...E.cachedMatches,...v.filter(C=>C.status!=="error"&&C.status!=="notFound"&&C.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[b,"onEnter"],[_,"onStay"]].forEach(([E,x])=>{E.forEach(R=>{this.looseRoutesById[R.routeId].options[x]?.(R)})})})})}})}catch(d){Nr(d)?(r=d,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ar(d)&&(i=d),this.__store.setState(p=>({...p,statusCode:r?r.status:i?404:p.matches.some(v=>v.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(f=>f.status==="error")&&(l=500),l!==void 0&&this.__store.setState(f=>({...f,statusCode:l}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,l=this.state.resolvedLocation,f=typeof r.types=="function"?r.types(Ac({resolvedLocation:l,location:c})):r.types;if(f===!1){n();return}i={update:n,types:f}}else i=n;document.startViewTransition(i)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const i=this.state.pendingMatches?.some(c=>c.id===n)?"pendingMatches":this.state.matches.some(c=>c.id===n)?"matches":this.state.cachedMatches.some(c=>c.id===n)?"cachedMatches":"";i&&(i==="cachedMatches"?this.__store.setState(c=>({...c,cachedMatches:O8(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=TD,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let i=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),l=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);rd(()=>{i.forEach(f=>{l.has(f.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,f]}))})});try{return i=await JI({router:this,matches:i,location:r,preload:!0,updateMatch:(f,d)=>{c.has(f)?i=i.map(p=>p.id===f?d(p):p):this.updateMatch(f,d)}}),i}catch(f){if(Nr(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:r});ar(f)||console.error(f);return}},this.matchRoute=(n,r)=>{const i={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},c=this.buildLocation(i);if(r?.pending&&this.state.status!=="pending")return!1;const f=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=J5(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!d||n.params&&!Cc(d.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Cc(f.search,c.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??S8,parseSearch:t.parseSearch??b8,protocolAllowlist:t.protocolAllowlist??q5}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:r}){this.routesById=t,this.routesByPath=n,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:c,parsedParams:l}=r;let{matchedRoutes:f}=r,d=!1;(i?i.path!=="/"&&c["**"]:wa(t.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const p=d?$8(this.options.notFoundMode,f):void 0,v=new Array(f.length),g=new Map(this.state.matches.map(b=>[b.routeId,b]));for(let b=0;bthis.navigate({...I,_fromLocation:t}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:v,routeId:E.id};_.__routeContext=E.options.context(P)??void 0}_.context={...T,..._.__routeContext,..._.__beforeLoadContext}}}return v}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:r,parsedParams:i}=this.getMatchedRoutes(t.pathname),c=gd(n),l={...t.search};for(const v of n)try{Object.assign(l,rm(v.options.validateSearch,l))}catch{}const f=gd(this.state.matches),d=f&&f.routeId===c.id&&t.pathname===this.state.location.pathname;let p;if(d)p=f.params;else{const v={...r};for(const g of n)try{eT(g,r,i??{},v)}catch{}p=v}return{matchedRoutes:n,fullPath:c.fullPath,search:l,params:p}}}class Em extends Error{}class D8 extends Error{}function P8(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function rm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Em("Async validation not supported");if(n.issues)throw new Em(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function k8({pathname:e,routesById:t,processedTree:n}){const r={},i=wa(e);let c,l;const f=e8(i,n,!0);return f&&(c=f.route,Object.assign(r,f.rawParams),l=Object.assign({},f.parsedParams)),{matchedRoutes:f?.branch||[t[Dr]],routeParams:r,foundRoute:c,parsedParams:l}}function N8({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return L8(n)(e,t,r??!1)}function L8(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const i of e){if("search"in i.options)i.options.search?.middlewares&&t.middlewares.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const c=({search:l,next:f})=>{let d=l;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(d=i.options.preSearchFilters.reduce((v,g)=>g(v),l));const p=f(d);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((v,g)=>g(v),p):p};t.middlewares.push(c)}if(i.options.validateSearch){const c=({search:l,next:f})=>{const d=f(l);if(!t._includeValidateSearch)return d;try{return{...d,...rm(i.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(c)}}const n=({search:i})=>{const c=t.dest;return c.search?c.search===!0?i:ya(c.search,i):{}};t.middlewares.push(n);const r=(i,c,l)=>{if(i>=l.length)return c;const f=l[i];return f({search:c,next:p=>r(i+1,p,l)})};return function(c,l,f){return t.dest=l,t._includeValidateSearch=f,r(0,c,t.middlewares)}}function $8(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return Dr}function eT(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 z8="Error preloading route! ☝️";class PD{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,i=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=Dr:this.parentRoute||li(!1);let c=i?Dr:r?.path;c&&c!=="/"&&(c=xD(c));const l=r?.id||c;let f=i?Dr:nm([this.parentRoute.id===Dr?"":this.parentRoute.id,l]);c===Dr&&(c="/"),f!==Dr&&(f=nm(["/",f]));const d=f===Dr?"/":nm([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=d,this._to=wa(d)},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.redirect=n=>US({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 B8 extends PD{constructor(t){super(t)}}const U8="use",tT=PS[U8],Ph=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Pv(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function j8(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 V8(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}function jS(e){const t=e.errorComponent??VS;return k.jsx(H8,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}class H8 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 VS({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 q8({children:e,fallback:t=null}){return HS()?k.jsx(ou.Fragment,{children:e}):k.jsx(ou.Fragment,{children:t})}function HS(){return ou.useSyncExternalStore(F8,()=>!0,()=>!1)}function F8(){return()=>{}}var kv={exports:{}},Nv={},Lv={exports:{}},$v={};var nT;function G8(){if(nT)return $v;nT=1;var e=bu();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,c=e.useLayoutEffect,l=e.useDebugValue;function f(g,b){var _=b(),E=r({inst:{value:_,getSnapshot:b}}),x=E[0].inst,R=E[1];return c(function(){x.value=_,x.getSnapshot=b,d(x)&&R({inst:x})},[g,_,b]),i(function(){return d(x)&&R({inst:x}),g(function(){d(x)&&R({inst:x})})},[g]),l(_),_}function d(g){var b=g.getSnapshot;g=g.value;try{var _=b();return!n(g,_)}catch{return!0}}function p(g,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return $v.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,$v}var sT;function kD(){return sT||(sT=1,Lv.exports=G8()),Lv.exports}var rT;function K8(){if(rT)return Nv;rT=1;var e=bu(),t=kD();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,c=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;return Nv.useSyncExternalStoreWithSelector=function(p,v,g,b,_){var E=c(null);if(E.current===null){var x={hasValue:!1,value:null};E.current=x}else x=E.current;E=f(function(){function C(j){if(!T){if(T=!0,P=j,j=b(j),_!==void 0&&x.hasValue){var V=x.value;if(_(V,j))return I=V}return I=j}if(V=I,r(P,j))return V;var N=b(j);return _!==void 0&&_(V,N)?(P=j,V):(P=j,I=N)}var T=!1,P,I,B=g===void 0?null:g;return[function(){return C(v())},B===null?void 0:function(){return C(B())}]},[v,g,b,_]);var R=i(p,E[0],E[1]);return l(function(){x.hasValue=!0,x.value=R},[R]),d(R),R},Nv}var oT;function Z8(){return oT||(oT=1,kv.exports=K8()),kv.exports}var ND=Z8();function Q8(e,t){return e===t}function Y8(e,t,n=Q8){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(l);return f},[e]),i=M.useCallback(()=>e?.get(),[e]);return ND.useSyncExternalStoreWithSelector(r,i,i,t,n)}const LD=M.createContext(null);function bs(e){const t=M.useContext(LD);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 Y8(n.__store,i=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const c=nr(r.current,e.select(i));return r.current=c,c}return e.select(i)}return i})}const og=M.createContext(void 0),X8=M.createContext(void 0);function _o(e){const t=M.useContext(e.from?X8:og);return Kn({select:r=>{const i=r.matches.find(c=>e.from?e.from===c.routeId:c.id===t);if(li(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function qS(e){return _o({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function FS(e){const{select:t,...n}=e;return _o({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function GS(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 KS(e){return _o({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function ig(e){const t=bs();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var zv={exports:{}},ps={};var iT;function W8(){if(iT)return ps;iT=1;var e=bu();function t(d){var p="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),zv.exports=W8(),zv.exports}var Oa=$D();function J8(e,t){const n=bs(),r=V8(t),{activeProps:i,inactiveProps:c,activeOptions:l,to:f,preload:d,preloadDelay:p,hashScrollIntoView:v,replace:g,startTransition:b,resetScroll:_,viewTransition:E,children:x,target:R,disabled:C,style:T,className:P,onClick:I,onBlur:B,onFocus:j,onMouseEnter:V,onMouseLeave:N,onTouchStart:Q,ignoreBlocker:ne,params:te,search:F,hash:oe,state:me,mask:ge,reloadDocument:H,unsafeRelative:re,from:J,_fromLocation:ve,...ue}=e,$=HS(),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(()=>oj(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(!ij(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(!i8(Je.location.pathname,xe.pathname,n.basepath))return!1}else{const Mt=Sm(Je.location.pathname,n.basepath),it=Sm(xe.pathname,n.basepath);if(!(Mt.startsWith(it)&&(Mt.length===it.length||Mt[it.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Cc(Je.location.search,xe.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?$&&Je.location.hash===xe.hash:!0}}),kt=tt?ya(i,{})??ej:Bv,he=tt?Bv:ya(c,{})??Bv,Re=[P,kt.className,he.className].filter(Boolean).join(" "),_e=(T||kt.style||he.style)&&{...T,...kt.style,...he.style},[Ze,Me]=M.useState(!1),Ve=M.useRef(!1),De=e.reloadDocument||be?!1:d??n.options.defaultPreload,nt=p??n.options.defaultPreloadDelay??0,ot=M.useCallback(()=>{n.preloadRoute({...Ee,_builtLocation:xe}).catch(Je=>{console.warn(Je),console.warn(z8)})},[n,Ee,xe]),Ge=M.useCallback(Je=>{Je?.isIntersecting&&ot()},[ot]);j8(r,Ge,rj,{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&&!aj(Je)&&!Je.defaultPrevented&&(!it||it==="_self")&&Je.button===0){Je.preventDefault(),Oa.flushSync(()=>{Me(!0)});const Ds=n.subscribe("onResolved",()=>{Ds(),Me(!1)});n.navigate({...Ee,replace:g,resetScroll:_,hashScrollIntoView:v,startTransition:b,viewTransition:E,ignoreBlocker:ne})}};if(be)return{...ue,ref:r,href:be,...x&&{children:x},...R&&{target:R},...C&&{disabled:C},...T&&{style:T},...P&&{className:P},...I&&{onClick:I},...B&&{onBlur:B},...j&&{onFocus:j},...V&&{onMouseEnter:V},...N&&{onMouseLeave:N},...Q&&{onTouchStart:Q}};const Xt=Je=>{if(C||De!=="intent")return;if(!nt){ot();return}const Mt=Je.currentTarget;if(Hf.has(Mt))return;const it=setTimeout(()=>{Hf.delete(Mt),ot()},nt);Hf.set(Mt,it)},wt=Je=>{C||De!=="intent"||ot()},Xn=Je=>{if(C||!De||!nt)return;const Mt=Je.currentTarget,it=Hf.get(Mt);it&&(clearTimeout(it),Hf.delete(Mt))};return{...ue,...kt,...he,href:Fe?.href,ref:r,onClick:Ul([I,bt]),onBlur:Ul([B,Xn]),onFocus:Ul([j,Xt]),onMouseEnter:Ul([V,Xt]),onMouseLeave:Ul([N,Xn]),onTouchStart:Ul([Q,wt]),disabled:!!C,target:R,..._e&&{style:_e},...Re&&{className:Re},...C&&tj,...tt&&nj,...$&&Ze&&sj}}const Bv={},ej={className:"active"},tj={role:"link","aria-disabled":!0},nj={"data-status":"active","aria-current":"page"},sj={"data-transitioning":"transitioning"},Hf=new WeakMap,rj={rootMargin:"100px"},Ul=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function oj(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function ij(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}=J8(r,t),l=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...d}=c;return M.createElement("a",d,l)}return M.createElement(n,c,l)});function aj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let cj=class extends PD{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=>KS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>GS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>FS({...n,from:this.id}),this.useLoaderData=n=>qS({...n,from:this.id}),this.useNavigate=()=>ig({from:this.fullPath}),this.Link=ou.forwardRef((n,r)=>k.jsx(Rs,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function lj(e){return new cj(e)}function uj(){return e=>dj(e)}class fj extends B8{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=>KS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>GS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>FS({...n,from:this.id}),this.useLoaderData=n=>qS({...n,from:this.id}),this.useNavigate=()=>ig({from:this.fullPath}),this.Link=ou.forwardRef((n,r)=>k.jsx(Rs,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function dj(e){return new fj(e)}function at(e){return typeof e=="object"?new cT(e,{silent:!0}).createRoute(e):new cT(e,{silent:!0}).createRoute}class cT{constructor(t,n){this.path=t,this.createRoute=r=>{const i=lj(r);return i.isRoot=!1,i},this.silent=n?.silent}}class lT{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=>KS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>GS({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>FS({...n,from:this.options.id}),this.useLoaderData=n=>qS({...n,from:this.options.id}),this.useNavigate=()=>{const n=bs();return ig({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function uT(e){return typeof e=="object"?new lT(e):t=>new lT({id:e,...t})}function yt(e,t){let n,r,i,c;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t]}).catch(d=>{if(i=d,V5(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(p)||(sessionStorage.setItem(p,"1"),c=!0)}})),n),f=function(p){if(c)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(tT)tT(l());else throw l();return M.createElement(r,p)};return f.preload=l,f}function pj(){const e=bs(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),{hasPendingMatches:i,isLoading:c}=Kn({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),l=Pv(c),f=c||n||i,d=Pv(f),p=c||i,v=Pv(p);return e.startTransition=g=>{r(!0),M.startTransition(()=>{g(),r(!1)})},M.useEffect(()=>{const g=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return wa(e.latestLocation.publicHref)!==wa(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),Ph(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),Ph(()=>{l&&!c&&e.emit({type:"onLoad",...Ac(e.state)})},[l,e,c]),Ph(()=>{v&&!p&&e.emit({type:"onBeforeRouteMount",...Ac(e.state)})},[p,v,e]),Ph(()=>{if(d&&!f){const g=Ac(e.state);e.emit({type:"onResolved",...g}),e.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),g.hrefChanged&&g8(e)}},[f,d,e]),null}function hj(e){const t=Kn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return k.jsx(jS,{getResetKey:()=>t,onCatch:(n,r)=>{if(ar(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(ar(n))return e.fallback?.(n);throw n},children:e.children})}function mj(){return k.jsx("p",{children:"Not Found"})}function Zl(e){return k.jsx(k.Fragment,{children:e.children})}function zD(e,t,n){return t.options.notFoundComponent?k.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?k.jsx(e.options.defaultNotFoundComponent,{...n}):k.jsx(mj,{})}function gj(){return bs().isScrollRestoring,null}const BD=M.memo(function({matchId:t}){const n=bs(),r=Kn({select:x=>{const R=x.matches.findIndex(T=>T.id===t),C=x.matches[R];return li(C),{routeId:C.routeId,ssr:C.ssr,_displayPending:C._displayPending,resetKey:x.loadedAt,parentRouteId:x.matches[R-1]?.routeId}},structuralSharing:!0}),i=n.routesById[r.routeId],c=i.options.pendingComponent??n.options.defaultPendingComponent,l=c?k.jsx(c,{}):null,f=i.options.errorComponent??n.options.defaultErrorComponent,d=i.options.onCatch??n.options.defaultOnCatch,p=i.isRoot?i.options.notFoundComponent??n.options.notFoundRoute?.options.component:i.options.notFoundComponent,v=r.ssr===!1||r.ssr==="data-only",g=(!i.isRoot||i.options.wrapInSuspense||v)&&(i.options.wrapInSuspense??c??(i.options.errorComponent?.preload||v))?M.Suspense:Zl,b=f?jS:Zl,_=p?hj:Zl,E=i.isRoot?i.options.shellComponent??Zl:Zl;return k.jsxs(E,{children:[k.jsx(og.Provider,{value:t,children:k.jsx(g,{fallback:l,children:k.jsx(b,{getResetKey:()=>r.resetKey,errorComponent:f||VS,onCatch:(x,R)=>{if(ar(x))throw x;d?.(x,R)},children:k.jsx(_,{fallback:x=>{if(!p||x.routeId&&x.routeId!==r.routeId||!x.routeId&&!i.isRoot)throw x;return M.createElement(p,x)},children:v||r._displayPending?k.jsx(q8,{fallback:l,children:k.jsx(fT,{matchId:t})}):k.jsx(fT,{matchId:t})})})})}),r.parentRouteId===Dr&&n.options.scrollRestoration?k.jsxs(k.Fragment,{children:[k.jsx(yj,{}),k.jsx(gj,{})]}):null]})});function yj(){const e=bs(),t=M.useRef(void 0);return k.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Ac(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const fT=M.memo(function({matchId:t}){const n=bs(),{match:r,key:i,routeId:c}=Kn({select:d=>{const p=d.matches.find(E=>E.id===t),v=p.routeId,b=(n.routesById[v].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:v,loaderDeps:p.loaderDeps,params:p._strictParams,search:p._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:v,match:{id:p.id,status:p.status,error:p.error,invalid:p.invalid,_forcePending:p._forcePending,_displayPending:p._displayPending}}},structuralSharing:!0}),l=n.routesById[c],f=M.useMemo(()=>{const d=l.options.component??n.options.defaultComponent;return d?k.jsx(d,{},i):k.jsx(UD,{})},[i,l.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const p=n.getMatch(r.id);if(p&&!p._nonReactive.minPendingPromise){const v=iu();p._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),p._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return li(ar(r.error)),zD(n,l,r.error);if(r.status==="redirected")throw li(Nr(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return f}),UD=M.memo(function(){const t=bs(),n=M.useContext(og),r=Kn({select:p=>p.matches.find(v=>v.id===n)?.routeId}),i=t.routesById[r],c=Kn({select:p=>{const g=p.matches.find(b=>b.id===n);return li(g),g.globalNotFound}}),l=Kn({select:p=>{const v=p.matches,g=v.findIndex(b=>b.id===n);return v[g+1]?.id}}),f=t.options.defaultPendingComponent?k.jsx(t.options.defaultPendingComponent,{}):null;if(c)return zD(t,i,void 0);if(!l)return null;const d=k.jsx(BD,{matchId:l});return r===Dr?k.jsx(M.Suspense,{fallback:f,children:d}):d});function vj(){const e=bs(),n=e.routesById[Dr].options.pendingComponent??e.options.defaultPendingComponent,r=n?k.jsx(n,{}):null,i=typeof document<"u"&&e.ssr?Zl:M.Suspense,c=k.jsxs(i,{fallback:r,children:[k.jsx(pj,{}),k.jsx(bj,{})]});return e.options.InnerWrap?k.jsx(e.options.InnerWrap,{children:c}):c}function bj(){const e=bs(),t=Kn({select:i=>i.matches[0]?.id}),n=Kn({select:i=>i.loadedAt}),r=t?k.jsx(BD,{matchId:t}):null;return k.jsx(og.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:k.jsx(jS,{getResetKey:()=>n,errorComponent:VS,onCatch:void 0,children:r})})}const Sj=e=>new _j(e);class _j extends M8{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=at,globalThis.createLazyFileRoute=uT):typeof window<"u"&&(window.createFileRoute=at,window.createLazyFileRoute=uT);function Ej({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(LD.Provider,{value:e,children:t});return e.options.Wrap?k.jsx(e.options.Wrap,{children:r}):r}function xj({router:e,...t}){return k.jsx(Ej,{router:e,...t,children:k.jsx(vj,{})})}function wj(e){return Kn({select:t=>e?.select?e.select(t.location):t.location})}function Rj({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(Cj,{attrs:t,children:n});default:return null}}function Cj({attrs:e,children:t}){bs();const n=HS(),r=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(M.useEffect(()=>{if(!r){if(e?.src){const i=(()=>{try{const f=document.baseURI||window.location.href;return new URL(e.src,f).href}catch{return e.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(f=>f.src===i))return;const l=document.createElement("script");for(const[f,d]of Object.entries(e))f!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&l.setAttribute(f,typeof d=="boolean"?"":String(d));return document.head.appendChild(l),()=>{l.parentNode&&l.parentNode.removeChild(l)}}if(typeof t=="string"){const i=typeof e?.type=="string"?e.type:"text/javascript",c=typeof e?.nonce=="string"?e.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(d=>{if(!(d instanceof HTMLScriptElement))return!1;const p=d.getAttribute("type")??"text/javascript",v=d.getAttribute("nonce")??void 0;return d.textContent===t&&p===i&&v===c}))return;const f=document.createElement("script");if(f.textContent=t,e)for(const[d,p]of Object.entries(e))d!=="suppressHydrationWarning"&&p!==void 0&&p!==!1&&f.setAttribute(d,typeof p=="boolean"?"":String(p));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}}},[e,t,r]),r&&typeof t=="string")return k.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return k.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return k.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}const Aj=()=>{const e=bs(),t=e.options.ssr?.nonce,n=Kn({select:d=>d.matches.map(p=>p.meta).filter(Boolean)}),r=M.useMemo(()=>{const d=[],p={};let v;for(let g=n.length-1;g>=0;g--){const b=n[g];for(let _=b.length-1;_>=0;_--){const E=b[_];if(E)if(E.title)v||(v={tag:"title",children:E.title});else if("script:ld+json"in E)try{const x=JSON.stringify(E["script:ld+json"]);d.push({tag:"script",attrs:{type:"application/ld+json"},children:K5(x)})}catch{}else{const x=E.name??E.property;if(x){if(p[x])continue;p[x]=!0}d.push({tag:"meta",attrs:{...E,nonce:t}})}}}return v&&d.push(v),t&&d.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),d.reverse(),d},[n,t]),i=Kn({select:d=>{const p=d.matches.map(b=>b.links).filter(Boolean).flat(1).map(b=>({tag:"link",attrs:{...b,nonce:t}})),v=e.ssr?.manifest,g=d.matches.map(b=>v?.routes[b.routeId]?.assets??[]).filter(Boolean).flat(1).filter(b=>b.tag==="link").map(b=>({tag:"link",attrs:{...b.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...p,...g]},structuralSharing:!0}),c=Kn({select:d=>{const p=[];return d.matches.map(v=>e.looseRoutesById[v.routeId]).forEach(v=>e.ssr?.manifest?.routes[v.id]?.preloads?.filter(Boolean).forEach(g=>{p.push({tag:"link",attrs:{rel:"modulepreload",href:g,nonce:t}})})),p},structuralSharing:!0}),l=Kn({select:d=>d.matches.map(p=>p.styles).flat(1).filter(Boolean).map(({children:p,...v})=>({tag:"style",attrs:{...v,nonce:t},children:p})),structuralSharing:!0}),f=Kn({select:d=>d.matches.map(p=>p.headScripts).flat(1).filter(Boolean).map(({children:p,...v})=>({tag:"script",attrs:{...v,nonce:t},children:p})),structuralSharing:!0});return Ij([...r,...c,...i,...l,...f],d=>JSON.stringify(d))};function Ij(e,t){const n=new Set;return e.filter(r=>{const i=t(r);return n.has(i)?!1:(n.add(i),!0)})}function Tj(){const e=Aj(),n=bs().options.ssr?.nonce;return k.jsx(k.Fragment,{children:e.map(r=>M.createElement(Rj,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var Uv={exports:{}},qf={},jv={exports:{}},Vv={};var dT;function Oj(){return dT||(dT=1,(function(e){function t(H,re){var J=H.length;H.push(re);e:for(;0>>1,ue=H[ve];if(0>>1;ve<$;){var ee=2*(ve+1)-1,ye=H[ee],Ee=ee+1,xe=H[Ee];if(0>i(ye,J))Eei(xe,ye)?(H[ve]=xe,H[Ee]=J,ve=Ee):(H[ve]=ye,H[ee]=J,ve=ee);else if(Eei(xe,J))H[ve]=xe,H[Ee]=J,ve=Ee;else break e}}return re}function i(H,re){var J=H.sortIndex-re.sortIndex;return J!==0?J:H.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],p=[],v=1,g=null,b=3,_=!1,E=!1,x=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function I(H){for(var re=n(p);re!==null;){if(re.callback===null)r(p);else if(re.startTime<=H)r(p),re.sortIndex=re.expirationTime,t(d,re);else break;re=n(p)}}function B(H){if(x=!1,I(H),!E)if(n(d)!==null)E=!0,j||(j=!0,F());else{var re=n(p);re!==null&&ge(B,re.startTime-H)}}var j=!1,V=-1,N=5,Q=-1;function ne(){return R?!0:!(e.unstable_now()-QH&&ne());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,b=g.priorityLevel;var ue=ve(g.expirationTime<=H);if(H=e.unstable_now(),typeof ue=="function"){g.callback=ue,I(H),re=!0;break t}g===n(d)&&r(d),I(H)}else r(d);g=n(d)}if(g!==null)re=!0;else{var $=n(p);$!==null&&ge(B,$.startTime-H),re=!1}}break e}finally{g=null,b=J,_=!1}re=void 0}}finally{re?F():j=!1}}}var F;if(typeof P=="function")F=function(){P(te)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,me=oe.port2;oe.port1.onmessage=te,F=function(){me.postMessage(null)}}else F=function(){C(te,0)};function ge(H,re){V=C(function(){H(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125ve?(H.sortIndex=J,t(p,H),n(d)===null&&H===n(p)&&(x?(T(V),V=-1):x=!0,ge(B,J-ve))):(H.sortIndex=ue,t(d,H),E||_||(E=!0,j||(j=!0,F()))),H},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(H){var re=b;return function(){var J=b;b=re;try{return H.apply(this,arguments)}finally{b=J}}}})(Vv)),Vv}var pT;function Mj(){return pT||(pT=1,jv.exports=Oj()),jv.exports}var hT;function Dj(){if(hT)return qf;hT=1;var e=Mj(),t=bu(),n=$D();function r(s){var o="https://react.dev/errors/"+s;if(1ue||(s.current=ve[ue],ve[ue]=null,ue--)}function ye(s,o){ue++,ve[ue]=s.current,s.current=o}var Ee=$(null),xe=$(null),Se=$(null),Oe=$(null);function Fe(s,o){switch(ye(Se,o),ye(xe,s),ye(Ee,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?XA(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=XA(o),s=WA(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=WA(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=-1r[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||z[u]!==Z[h]){var ie=` -`+z[u].replace(" at new "," at ");return s.displayName&&ie.includes("")&&(ie=ie.replace("",s.displayName)),ie}while(1<=u&&0<=h);break}}}finally{Ze=!1,Error.prepareStackTrace=a}return(a=s?s.displayName||s.name:"")?_e(a):""}function Ve(s,o){switch(s.tag){case 26:case 27:case 5:return _e(s.type);case 16:return _e("Lazy");case 13:return s.child!==o&&o!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return Me(s.type,!1);case 11:return Me(s.type.render,!1);case 1:return Me(s.type,!0);case 31:return _e("Activity");default:return""}}function De(s){try{var o="",a=null;do o+=Ve(s,a),a=s,s=s.return;while(s);return o}catch(u){return` +`);for(h=u=0;uh||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,pr=e.unstable_IdlePriority,Po=e.log,dp=e.unstable_setDisableYieldValue,ki=null,us=null;function Gr(s){if(typeof Po=="function"&&dp(s),us&&typeof us.setStrictMode=="function")try{us.setStrictMode(ki,s)}catch{}}var fs=Math.clz32?Math.clz32:hr,Jt=Math.log,ds=Math.LN2;function hr(s){return s>>>=0,s===0?32:31-(Jt(s)/ds|0)|0}var Wn=256,Ps=262144,ko=4194304;function mr(s){var o=s&42;if(o!==0)return o;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ni(s,o,a){var u=s.pendingLanes;if(u===0)return 0;var h=0,m=s.suspendedLanes,w=s.pingedLanes;s=s.warmLanes;var A=u&134217727;return A!==0?(u=A&~m,u!==0?h=mr(u):(w&=A,w!==0?h=mr(w):a||(a=A&~s,a!==0&&(h=mr(a))))):(A=u&~m,A!==0?h=mr(A):w!==0?h=mr(w):a||(a=u&~s,a!==0&&(h=mr(a)))),h===0?0:o!==0&&o!==h&&(o&m)===0&&(m=h&-h,a=o&-o,m>=a||m===32&&(a&4194048)!==0)?o:h}function Li(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function gy(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pp(){var s=ko;return ko<<=1,(ko&62914560)===0&&(ko=4194304),s}function Fu(s){for(var o=[],a=0;31>a;a++)o.push(s);return o}function tc(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Gu(s,o,a,u,h,m){var w=s.pendingLanes;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=a,s.entangledLanes&=a,s.errorRecoveryDisabledLanes&=a,s.shellSuspendCounter=0;var A=s.entanglements,z=s.expirationTimes,Z=s.hiddenUpdates;for(a=w&~a;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var LB=/[\n"\\]/g;function yr(s){return s.replace(LB,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Sy(s,o,a,u,h,m,w,A){s.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?s.type=w:s.removeAttribute("type"),o!=null?w==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+gr(o)):s.value!==""+gr(o)&&(s.value=""+gr(o)):w!=="submit"&&w!=="reset"||s.removeAttribute("value"),o!=null?_y(s,w,gr(o)):a!=null?_y(s,w,gr(a)):u!=null&&s.removeAttribute("value"),h==null&&m!=null&&(s.defaultChecked=!!m),h!=null&&(s.checked=h&&typeof h!="function"&&typeof h!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?s.name=""+gr(A):s.removeAttribute("name")}function F1(s,o,a,u,h,m,w,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(s.type=m),o!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||o!=null)){by(s);return}a=a!=null?""+gr(a):"",o=o!=null?""+gr(o):a,A||o===s.value||(s.value=o),s.defaultValue=o}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,s.checked=A?s.checked:!!u,s.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(s.name=w),by(s)}function _y(s,o,a){o==="number"&&Sp(s.ownerDocument)===s||s.defaultValue===""+a||(s.defaultValue=""+a)}function al(s,o,a,u){if(s=s.options,o){o={};for(var h=0;h"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cy=!1;if(zo)try{var Wu={};Object.defineProperty(Wu,"passive",{get:function(){Cy=!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{Cy=!1}var zi=null,Ay=null,Ep=null;function W1(){if(Ep)return Ep;var s,o=Ay,a=o.length,u,h="value"in zi?zi.value:zi.textContent,m=h.length;for(s=0;s=tf),rR=" ",oR=!1;function iR(s,o){switch(s){case"keyup":return u6.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aR(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var fl=!1;function d6(s,o){switch(s){case"compositionend":return aR(o);case"keypress":return o.which!==32?null:(oR=!0,rR);case"textInput":return s=o.data,s===rR&&oR?null:s;default:return null}}function p6(s,o){if(fl)return s==="compositionend"||!Dy&&iR(s,o)?(s=W1(),Ep=Ay=zi=null,fl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:a,offset:o-s};s=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=mR(a)}}function yR(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?yR(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function vR(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=Sp(s.document);o instanceof s.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)s=o.contentWindow;else break;o=Sp(s.document)}return o}function Ny(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var _6=zo&&"documentMode"in document&&11>=document.documentMode,dl=null,Ly=null,of=null,$y=!1;function bR(s,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$y||dl==null||dl!==Sp(u)||(u=dl,"selectionStart"in u&&Ny(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),of&&rf(of,u)||(of=u,u=mh(Ly,"onSelect"),0>=w,h-=w,ro=1<<32-fs(o)+h|a<et?(mt=Be,Be=null):mt=Be.sibling;var Pt=Y(G,Be,K[et],le);if(Pt===null){Be===null&&(Be=mt);break}s&&Be&&Pt.alternate===null&&o(G,Be),q=m(Pt,q,et),Dt===null?Ue=Pt:Dt.sibling=Pt,Dt=Pt,Be=mt}if(et===K.length)return a(G,Be),St&&Uo(G,et),Ue;if(Be===null){for(;etet?(mt=Be,Be=null):mt=Be.sibling;var ia=Y(G,Be,Pt.value,le);if(ia===null){Be===null&&(Be=mt);break}s&&Be&&ia.alternate===null&&o(G,Be),q=m(ia,q,et),Dt===null?Ue=ia:Dt.sibling=ia,Dt=ia,Be=mt}if(Pt.done)return a(G,Be),St&&Uo(G,et),Ue;if(Be===null){for(;!Pt.done;et++,Pt=K.next())Pt=fe(G,Pt.value,le),Pt!==null&&(q=m(Pt,q,et),Dt===null?Ue=Pt:Dt.sibling=Pt,Dt=Pt);return St&&Uo(G,et),Ue}for(Be=u(Be);!Pt.done;et++,Pt=K.next())Pt=se(Be,G,et,Pt.value,le),Pt!==null&&(s&&Pt.alternate!==null&&Be.delete(Pt.key===null?et:Pt.key),q=m(Pt,q,et),Dt===null?Ue=Pt:Dt.sibling=Pt,Dt=Pt);return s&&Be.forEach(function(jU){return o(G,jU)}),St&&Uo(G,et),Ue}function Kt(G,q,K,le){if(typeof K=="object"&&K!==null&&K.type===x&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case _:e:{for(var Ue=K.key;q!==null;){if(q.key===Ue){if(Ue=K.type,Ue===x){if(q.tag===7){a(G,q.sibling),le=h(q,K.props.children),le.return=G,G=le;break e}}else if(q.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===N&&dc(Ue)===q.type){a(G,q.sibling),le=h(q,K.props),df(le,K),le.return=G,G=le;break e}a(G,q);break}else o(G,q);q=q.sibling}K.type===x?(le=ac(K.props.children,G.mode,le,K.key),le.return=G,G=le):(le=Dp(K.type,K.key,K.props,null,G.mode,le),df(le,K),le.return=G,G=le)}return w(G);case E:e:{for(Ue=K.key;q!==null;){if(q.key===Ue)if(q.tag===4&&q.stateNode.containerInfo===K.containerInfo&&q.stateNode.implementation===K.implementation){a(G,q.sibling),le=h(q,K.children||[]),le.return=G,G=le;break e}else{a(G,q);break}else o(G,q);q=q.sibling}le=qy(K,G.mode,le),le.return=G,G=le}return w(G);case N:return K=dc(K),Kt(G,q,K,le)}if(ge(K))return Ne(G,q,K,le);if(F(K)){if(Ue=F(K),typeof Ue!="function")throw Error(r(150));return K=Ue.call(K),He(G,q,K,le)}if(typeof K.then=="function")return Kt(G,q,Bp(K),le);if(K.$$typeof===P)return Kt(G,q,Np(G,K),le);Up(G,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,q!==null&&q.tag===6?(a(G,q.sibling),le=h(q,K),le.return=G,G=le):(a(G,q),le=Hy(K,G.mode,le),le.return=G,G=le),w(G)):a(G,q)}return function(G,q,K,le){try{ff=0;var Ue=Kt(G,q,K,le);return xl=null,Ue}catch(Be){if(Be===El||Be===$p)throw Be;var Dt=Ys(29,Be,null,G.mode);return Dt.lanes=le,Dt.return=G,Dt}}}var hc=VR(!0),HR=VR(!1),Hi=!1;function n0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function s0(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function qi(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Fi(s,o,a){var u=s.updateQueue;if(u===null)return null;if(u=u.shared,(Nt&2)!==0){var h=u.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),u.pending=o,o=Mp(s),CR(s,null,a),o}return Op(s,u,o,a),Mp(s)}function pf(s,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194048)!==0)){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,hp(s,a)}}function r0(s,o){var a=s.updateQueue,u=s.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var w={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?h=m=w:m=m.next=w,a=a.next}while(a!==null);m===null?h=m=o:m=m.next=o}else h=m=o;a={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},s.updateQueue=a;return}s=a.lastBaseUpdate,s===null?a.firstBaseUpdate=o:s.next=o,a.lastBaseUpdate=o}var o0=!1;function hf(){if(o0){var s=_l;if(s!==null)throw s}}function mf(s,o,a,u){o0=!1;var h=s.updateQueue;Hi=!1;var m=h.firstBaseUpdate,w=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var z=A,Z=z.next;z.next=null,w===null?m=Z:w.next=Z,w=z;var ie=s.alternate;ie!==null&&(ie=ie.updateQueue,A=ie.lastBaseUpdate,A!==w&&(A===null?ie.firstBaseUpdate=Z:A.next=Z,ie.lastBaseUpdate=z))}if(m!==null){var fe=h.baseState;w=0,ie=Z=z=null,A=m;do{var Y=A.lane&-536870913,se=Y!==A.lane;if(se?(ht&Y)===Y:(u&Y)===Y){Y!==0&&Y===Sl&&(o0=!0),ie!==null&&(ie=ie.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ne=s,He=A;Y=o;var Kt=a;switch(He.tag){case 1:if(Ne=He.payload,typeof Ne=="function"){fe=Ne.call(Kt,fe,Y);break e}fe=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=He.payload,Y=typeof Ne=="function"?Ne.call(Kt,fe,Y):Ne,Y==null)break e;fe=g({},fe,Y);break e;case 2:Hi=!0}}Y=A.callback,Y!==null&&(s.flags|=64,se&&(s.flags|=8192),se=h.callbacks,se===null?h.callbacks=[Y]:se.push(Y))}else se={lane:Y,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ie===null?(Z=ie=se,z=fe):ie=ie.next=se,w|=Y;if(A=A.next,A===null){if(A=h.shared.pending,A===null)break;se=A,A=se.next,se.next=null,h.lastBaseUpdate=se,h.shared.pending=null}}while(!0);ie===null&&(z=fe),h.baseState=z,h.firstBaseUpdate=Z,h.lastBaseUpdate=ie,m===null&&(h.shared.lanes=0),Yi|=w,s.lanes=w,s.memoizedState=fe}}function qR(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function FR(s,o){var a=s.callbacks;if(a!==null)for(s.callbacks=null,s=0;sm?m:8;var w=H.T,A={};H.T=A,w0(s,!1,o,a);try{var z=h(),Z=H.S;if(Z!==null&&Z(A,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ie=O6(z,u);vf(s,o,ie,tr(s))}else vf(s,o,u,tr(s))}catch(fe){vf(s,o,{then:function(){},status:"rejected",reason:fe},tr())}finally{re.p=m,w!==null&&A.types!==null&&(w.types=A.types),H.T=w}}function L6(){}function E0(s,o,a,u){if(s.tag!==5)throw Error(r(476));var h=xC(s).queue;EC(s,h,o,J,a===null?L6:function(){return wC(s),a(u)})}function xC(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 wC(s){var o=xC(s);o.next===null&&(o=s.alternate.memoizedState),vf(s,o.next.queue,{},tr())}function x0(){return ts(Nf)}function RC(){return yn().memoizedState}function CC(){return yn().memoizedState}function $6(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var a=tr();s=qi(a);var u=Fi(o,s,a);u!==null&&(Us(u,o,a),pf(u,o,a)),o={cache:Wy()},s.payload=o;return}o=o.return}}function z6(s,o,a){var u=tr();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Yp(s)?IC(o,a):(a=jy(s,o,a,u),a!==null&&(Us(a,s,u),TC(a,o,u)))}function AC(s,o,a){var u=tr();vf(s,o,a,u)}function vf(s,o,a,u){var h={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Yp(s))IC(o,h);else{var m=s.alternate;if(s.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var w=o.lastRenderedState,A=m(w,a);if(h.hasEagerState=!0,h.eagerState=A,Qs(A,w))return Op(s,o,h,0),Qt===null&&Tp(),!1}catch{}if(a=jy(s,o,h,u),a!==null)return Us(a,s,u),TC(a,o,u),!0}return!1}function w0(s,o,a,u){if(u={lane:2,revertLane:nv(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Yp(s)){if(o)throw Error(r(479))}else o=jy(s,a,u,2),o!==null&&Us(o,s,2)}function Yp(s){var o=s.alternate;return s===Xe||o!==null&&o===Xe}function IC(s,o){Rl=Hp=!0;var a=s.pending;a===null?o.next=o:(o.next=a.next,a.next=o),s.pending=o}function TC(s,o,a){if((a&4194048)!==0){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,hp(s,a)}}var bf={readContext:ts,use:Gp,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn,useHostTransitionStatus:dn,useFormState:dn,useActionState:dn,useOptimistic:dn,useMemoCache:dn,useCacheRefresh:dn};bf.useEffectEvent=dn;var OC={readContext:ts,use:Gp,useCallback:function(s,o){return Es().memoizedState=[s,o===void 0?null:o],s},useContext:ts,useEffect:pC,useImperativeHandle:function(s,o,a){a=a!=null?a.concat([s]):null,Zp(4194308,4,yC.bind(null,o,s),a)},useLayoutEffect:function(s,o){return Zp(4194308,4,s,o)},useInsertionEffect:function(s,o){Zp(4,2,s,o)},useMemo:function(s,o){var a=Es();o=o===void 0?null:o;var u=s();if(mc){Gr(!0);try{s()}finally{Gr(!1)}}return a.memoizedState=[u,o],u},useReducer:function(s,o,a){var u=Es();if(a!==void 0){var h=a(o);if(mc){Gr(!0);try{a(o)}finally{Gr(!1)}}}else h=o;return u.memoizedState=u.baseState=h,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:h},u.queue=s,s=s.dispatch=z6.bind(null,Xe,s),[u.memoizedState,s]},useRef:function(s){var o=Es();return s={current:s},o.memoizedState=s},useState:function(s){s=y0(s);var o=s.queue,a=AC.bind(null,Xe,o);return o.dispatch=a,[s.memoizedState,a]},useDebugValue:S0,useDeferredValue:function(s,o){var a=Es();return _0(a,s,o)},useTransition:function(){var s=y0(!1);return s=EC.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||XR(u,o,a)}h.memoizedState=a;var m={value:a,getSnapshot:o};return h.queue=m,pC(JR.bind(null,u,m,s),[s]),u.flags|=2048,Al(9,{destroy:void 0},WR.bind(null,u,m,a,o),null),a},useId:function(){var s=Es(),o=Qt.identifierPrefix;if(St){var a=oo,u=ro;a=(u&~(1<<32-fs(u)-1)).toString(32)+a,o="_"+o+"R_"+a,a=qp++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?w.createElement("select",{is:u.is}):w.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?w.createElement(h,{is:u.is}):w.createElement(h)}}m[Jn]=o,m[ks]=u;e:for(w=o.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===o)break e;for(;w.sibling===null;){if(w.return===null||w.return===o)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}o.stateNode=m;e:switch(ss(m,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Go(o)}}return tn(o),z0(o,o.type,s===null?null:s.memoizedProps,o.pendingProps,a),null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==u&&Go(o);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(s=Se.current,vl(o)){if(s=o.stateNode,a=o.memoizedProps,u=null,h=es,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}s[Jn]=o,s=!!(s.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||QA(s.nodeValue,a)),s||ji(o,!0)}else s=gh(s).createTextNode(u),s[Jn]=o,o.stateNode=s}return tn(o),null;case 31:if(a=o.memoizedState,s===null||s.memoizedState!==null){if(u=vl(o),a!==null){if(s===null){if(!u)throw Error(r(318));if(s=o.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Jn]=o}else cc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;tn(o),s=!1}else a=Zy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=a),s=!0;if(!s)return o.flags&256?(Ws(o),o):(Ws(o),null);if((o.flags&128)!==0)throw Error(r(558))}return tn(o),null;case 13:if(u=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(h=vl(o),u!==null&&u.dehydrated!==null){if(s===null){if(!h)throw Error(r(318));if(h=o.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[Jn]=o}else cc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;tn(o),h=!1}else h=Zy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=h),h=!0;if(!h)return o.flags&256?(Ws(o),o):(Ws(o),null)}return Ws(o),(o.flags&128)!==0?(o.lanes=a,o):(a=u!==null,s=s!==null&&s.memoizedState!==null,a&&(u=o.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==h&&(u.flags|=2048)),a!==s&&a&&(o.child.flags|=8192),th(o,o.updateQueue),tn(o),null);case 4:return be(),s===null&&iv(o.stateNode.containerInfo),tn(o),null;case 10:return Vo(o.type),tn(o),null;case 19:if(ee(gn),u=o.memoizedState,u===null)return tn(o),null;if(h=(o.flags&128)!==0,m=u.rendering,m===null)if(h)_f(u,!1);else{if(pn!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(m=Vp(s),m!==null){for(o.flags|=128,_f(u,!1),s=m.updateQueue,o.updateQueue=s,th(o,s),o.subtreeFlags=0,s=a,a=o.child;a!==null;)AR(a,s),a=a.sibling;return ye(gn,gn.current&1|2),St&&Uo(o,u.treeForkCount),o.child}s=s.sibling}u.tail!==null&&wt()>ih&&(o.flags|=128,h=!0,_f(u,!1),o.lanes=4194304)}else{if(!h)if(s=Vp(m),s!==null){if(o.flags|=128,h=!0,s=s.updateQueue,o.updateQueue=s,th(o,s),_f(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!St)return tn(o),null}else 2*wt()-u.renderingStartTime>ih&&a!==536870912&&(o.flags|=128,h=!0,_f(u,!1),o.lanes=4194304);u.isBackwards?(m.sibling=o.child,o.child=m):(s=u.last,s!==null?s.sibling=m:o.child=m,u.last=m)}return u.tail!==null?(s=u.tail,u.rendering=s,u.tail=s.sibling,u.renderingStartTime=wt(),s.sibling=null,a=gn.current,ye(gn,h?a&1|2:a&1),St&&Uo(o,u.treeForkCount),s):(tn(o),null);case 22:case 23:return Ws(o),a0(),u=o.memoizedState!==null,s!==null?s.memoizedState!==null!==u&&(o.flags|=8192):u&&(o.flags|=8192),u?(a&536870912)!==0&&(o.flags&128)===0&&(tn(o),o.subtreeFlags&6&&(o.flags|=8192)):tn(o),a=o.updateQueue,a!==null&&th(o,a.retryQueue),a=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==a&&(o.flags|=2048),s!==null&&ee(fc),null;case 24:return a=null,s!==null&&(a=s.memoizedState.cache),o.memoizedState.cache!==a&&(o.flags|=2048),Vo(wn),tn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function H6(s,o){switch(Gy(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return Vo(wn),be(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return kt(o),null;case 31:if(o.memoizedState!==null){if(Ws(o),o.alternate===null)throw Error(r(340));cc()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(Ws(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));cc()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ee(gn),null;case 4:return be(),null;case 10:return Vo(o.type),null;case 22:case 23:return Ws(o),a0(),s!==null&&ee(fc),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return Vo(wn),null;case 25:return null;default:return null}}function eA(s,o){switch(Gy(o),o.tag){case 3:Vo(wn),be();break;case 26:case 27:case 5:kt(o);break;case 4:be();break;case 31:o.memoizedState!==null&&Ws(o);break;case 13:Ws(o);break;case 19:ee(gn);break;case 10:Vo(o.type);break;case 22:case 23:Ws(o),a0(),s!==null&&ee(fc);break;case 24:Vo(wn)}}function Ef(s,o){try{var a=o.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var h=u.next;a=h;do{if((a.tag&s)===s){u=void 0;var m=a.create,w=a.inst;u=m(),w.destroy=u}a=a.next}while(a!==h)}}catch(A){Vt(o,o.return,A)}}function Zi(s,o,a){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var m=h.next;u=m;do{if((u.tag&s)===s){var w=u.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,h=o;var z=a,Z=A;try{Z()}catch(ie){Vt(h,z,ie)}}}u=u.next}while(u!==m)}}catch(ie){Vt(o,o.return,ie)}}function tA(s){var o=s.updateQueue;if(o!==null){var a=s.stateNode;try{FR(o,a)}catch(u){Vt(s,s.return,u)}}}function nA(s,o,a){a.props=gc(s.type,s.memoizedProps),a.state=s.memoizedState;try{a.componentWillUnmount()}catch(u){Vt(s,o,u)}}function xf(s,o){try{var a=s.ref;if(a!==null){switch(s.tag){case 26:case 27:case 5:var u=s.stateNode;break;case 30:u=s.stateNode;break;default:u=s.stateNode}typeof a=="function"?s.refCleanup=a(u):a.current=u}}catch(h){Vt(s,o,h)}}function io(s,o){var a=s.ref,u=s.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(h){Vt(s,o,h)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){Vt(s,o,h)}else a.current=null}function sA(s){var o=s.type,a=s.memoizedProps,u=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(h){Vt(s,s.return,h)}}function B0(s,o,a){try{var u=s.stateNode;fU(u,s.type,a,o),u[ks]=o}catch(h){Vt(s,s.return,h)}}function rA(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&ta(s.type)||s.tag===4}function U0(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||rA(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&ta(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function j0(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(s,o):(o=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.appendChild(s),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=$o));else if(u!==4&&(u===27&&ta(s.type)&&(a=s.stateNode,o=null),s=s.child,s!==null))for(j0(s,o,a),s=s.sibling;s!==null;)j0(s,o,a),s=s.sibling}function nh(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?a.insertBefore(s,o):a.appendChild(s);else if(u!==4&&(u===27&&ta(s.type)&&(a=s.stateNode),s=s.child,s!==null))for(nh(s,o,a),s=s.sibling;s!==null;)nh(s,o,a),s=s.sibling}function oA(s){var o=s.stateNode,a=s.memoizedProps;try{for(var u=s.type,h=o.attributes;h.length;)o.removeAttributeNode(h[0]);ss(o,u,a),o[Jn]=s,o[ks]=a}catch(m){Vt(s,s.return,m)}}var Ko=!1,An=!1,V0=!1,iA=typeof WeakSet=="function"?WeakSet:Set,Un=null;function q6(s,o){if(s=s.containerInfo,lv=xh,s=vR(s),Ny(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var h=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var w=0,A=-1,z=-1,Z=0,ie=0,fe=s,Y=null;t:for(;;){for(var se;fe!==a||h!==0&&fe.nodeType!==3||(A=w+h),fe!==m||u!==0&&fe.nodeType!==3||(z=w+u),fe.nodeType===3&&(w+=fe.nodeValue.length),(se=fe.firstChild)!==null;)Y=fe,fe=se;for(;;){if(fe===s)break t;if(Y===a&&++Z===h&&(A=w),Y===m&&++ie===u&&(z=w),(se=fe.nextSibling)!==null)break;fe=Y,Y=fe.parentNode}fe=se}a=A===-1||z===-1?null:{start:A,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(uv={focusedElem:s,selectionRange:a},xh=!1,Un=o;Un!==null;)if(o=Un,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,Un=s;else for(;Un!==null;){switch(o=Un,m=o.alternate,s=o.flags,o.tag){case 0:if((s&4)!==0&&(s=o.updateQueue,s=s!==null?s.events:null,s!==null))for(a=0;a title"))),ss(m,u,a),m[Jn]=s,Bn(m),u=m;break e;case"link":var w=dI("link","href",h).get(u+(a.href||""));if(w){for(var A=0;AKt&&(w=Kt,Kt=He,He=w);var G=gR(A,He),q=gR(A,Kt);if(G&&q&&(se.rangeCount!==1||se.anchorNode!==G.node||se.anchorOffset!==G.offset||se.focusNode!==q.node||se.focusOffset!==q.offset)){var K=fe.createRange();K.setStart(G.node,G.offset),se.removeAllRanges(),He>Kt?(se.addRange(K),se.extend(q.node,q.offset)):(K.setEnd(q.node,q.offset),se.addRange(K))}}}}for(fe=[],se=A;se=se.parentNode;)se.nodeType===1&&fe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;Aa?32:a,H.T=null,a=Q0,Q0=null;var m=Wi,w=Wo;if(Ln=0,Dl=Wi=null,Wo=0,(Nt&6)!==0)throw Error(r(331));var A=Nt;if(Nt|=4,yA(m.current),hA(m,m.current,w,a),Nt=A,Tf(0,!1),us&&typeof us.onPostCommitFiberRoot=="function")try{us.onPostCommitFiberRoot(ki,m)}catch{}return!0}finally{re.p=h,H.T=u,NA(s,o)}}function $A(s,o,a){o=br(a,o),o=I0(s.stateNode,o,2),s=Fi(s,o,2),s!==null&&(tc(s,2),ao(s))}function Vt(s,o,a){if(s.tag===3)$A(s,s,a);else for(;o!==null;){if(o.tag===3){$A(o,s,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Xi===null||!Xi.has(u))){s=br(a,s),a=zC(2),u=Fi(o,a,2),u!==null&&(BC(a,u,o,s),tc(u,2),ao(u));break}}o=o.return}}function J0(s,o,a){var u=s.pingCache;if(u===null){u=s.pingCache=new K6;var h=new Set;u.set(o,h)}else h=u.get(o),h===void 0&&(h=new Set,u.set(o,h));h.has(a)||(F0=!0,h.add(a),s=W6.bind(null,s,o,a),o.then(s,s))}function W6(s,o,a){var u=s.pingCache;u!==null&&u.delete(o),s.pingedLanes|=s.suspendedLanes&a,s.warmLanes&=~a,Qt===s&&(ht&a)===a&&(pn===4||pn===3&&(ht&62914560)===ht&&300>wt()-oh?(Nt&2)===0&&Pl(s,0):G0|=a,Ml===ht&&(Ml=0)),ao(s)}function zA(s,o){o===0&&(o=pp()),s=ic(s,o),s!==null&&(tc(s,o),ao(s))}function J6(s){var o=s.memoizedState,a=0;o!==null&&(a=o.retryLane),zA(s,a)}function eU(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),zA(s,a)}function tU(s,o){return ot(s,o)}var dh=null,Nl=null,ev=!1,ph=!1,tv=!1,ea=0;function ao(s){s!==Nl&&s.next===null&&(Nl===null?dh=Nl=s:Nl=Nl.next=s),ph=!0,ev||(ev=!0,sU())}function Tf(s,o){if(!tv&&ph){tv=!0;do for(var a=!1,u=dh;u!==null;){if(s!==0){var h=u.pendingLanes;if(h===0)var m=0;else{var w=u.suspendedLanes,A=u.pingedLanes;m=(1<<31-fs(42|s)+1)-1,m&=h&~(w&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,VA(u,m))}else m=ht,m=Ni(u,u===Qt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Li(u,m)||(a=!0,VA(u,m));u=u.next}while(a);tv=!1}}function nU(){BA()}function BA(){ph=ev=!1;var s=0;ea!==0&&pU()&&(s=ea);for(var o=wt(),a=null,u=dh;u!==null;){var h=u.next,m=UA(u,o);m===0?(u.next=null,a===null?dh=h:a.next=h,h===null&&(Nl=a)):(a=u,(s!==0||(m&3)!==0)&&(ph=!0)),u=h}Ln!==0&&Ln!==5||Tf(s),ea!==0&&(ea=0)}function UA(s,o){for(var a=s.suspendedLanes,u=s.pingedLanes,h=s.expirationTimes,m=s.pendingLanes&-62914561;0A)break;var ie=z.transferSize,fe=z.initiatorType;ie&&YA(fe)&&(z=z.responseEnd,w+=ie*(z"u"?null:document;function cI(s,o,a){var u=Ll;if(u&&typeof o=="string"&&o){var h=yr(o);h='link[rel="'+s+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),aI.has(h)||(aI.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 EU(s){Jo.D(s),cI("dns-prefetch",s,null)}function xU(s,o){Jo.C(s,o),cI("preconnect",s,o)}function wU(s,o,a){Jo.L(s,o,a);var u=Ll;if(u&&s&&o){var h='link[rel="preload"][as="'+yr(o)+'"]';o==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+yr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+yr(a.imageSizes)+'"]')):h+='[href="'+yr(s)+'"]';var m=h;switch(o){case"style":m=$l(s);break;case"script":m=zl(s)}Rr.has(m)||(s=g({rel:"preload",href:o==="image"&&a&&a.imageSrcSet?void 0:s,as:o},a),Rr.set(m,s),u.querySelector(h)!==null||o==="style"&&u.querySelector(Pf(m))||o==="script"&&u.querySelector(kf(m))||(o=u.createElement("link"),ss(o,"link",s),Bn(o),u.head.appendChild(o)))}}function RU(s,o){Jo.m(s,o);var a=Ll;if(a&&s){var u=o&&typeof o.as=="string"?o.as:"script",h='link[rel="modulepreload"][as="'+yr(u)+'"][href="'+yr(s)+'"]',m=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=zl(s)}if(!Rr.has(m)&&(s=g({rel:"modulepreload",href:s},o),Rr.set(m,s),a.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(kf(m)))return}u=a.createElement("link"),ss(u,"link",s),Bn(u),a.head.appendChild(u)}}}function CU(s,o,a){Jo.S(s,o,a);var u=Ll;if(u&&s){var h=ol(u).hoistableStyles,m=$l(s);o=o||"default";var w=h.get(m);if(!w){var A={loading:0,preload:null};if(w=u.querySelector(Pf(m)))A.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":o},a),(a=Rr.get(m))&&yv(s,a);var z=w=u.createElement("link");Bn(z),ss(z,"link",s),z._p=new Promise(function(Z,ie){z.onload=Z,z.onerror=ie}),z.addEventListener("load",function(){A.loading|=1}),z.addEventListener("error",function(){A.loading|=2}),A.loading|=4,vh(w,o,u)}w={type:"stylesheet",instance:w,count:1,state:A},h.set(m,w)}}}function AU(s,o){Jo.X(s,o);var a=Ll;if(a&&s){var u=ol(a).hoistableScripts,h=zl(s),m=u.get(h);m||(m=a.querySelector(kf(h)),m||(s=g({src:s,async:!0},o),(o=Rr.get(h))&&vv(s,o),m=a.createElement("script"),Bn(m),ss(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function IU(s,o){Jo.M(s,o);var a=Ll;if(a&&s){var u=ol(a).hoistableScripts,h=zl(s),m=u.get(h);m||(m=a.querySelector(kf(h)),m||(s=g({src:s,async:!0,type:"module"},o),(o=Rr.get(h))&&vv(s,o),m=a.createElement("script"),Bn(m),ss(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function lI(s,o,a,u){var h=(h=Se.current)?yh(h):null;if(!h)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(o=$l(a.href),a=ol(h).hoistableStyles,u=a.get(o),u||(u={type:"style",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){s=$l(a.href);var m=ol(h).hoistableStyles,w=m.get(s);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(s,w),(m=h.querySelector(Pf(s)))&&!m._p&&(w.instance=m,w.state.loading=5),Rr.has(s)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Rr.set(s,a),m||TU(h,s,a,w.state))),o&&u===null)throw Error(r(528,""));return w}if(o&&u!==null)throw Error(r(529,""));return null;case"script":return o=a.async,a=a.src,typeof a=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=zl(a),a=ol(h).hoistableScripts,u=a.get(o),u||(u={type:"script",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function $l(s){return'href="'+yr(s)+'"'}function Pf(s){return'link[rel="stylesheet"]['+s+"]"}function uI(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function TU(s,o,a,u){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(o=s.createElement("link"),u.preload=o,o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),ss(o,"link",a),Bn(o),s.head.appendChild(o))}function zl(s){return'[src="'+yr(s)+'"]'}function kf(s){return"script[async]"+s}function fI(s,o,a){if(o.count++,o.instance===null)switch(o.type){case"style":var u=s.querySelector('style[data-href~="'+yr(a.href)+'"]');if(u)return o.instance=u,Bn(u),u;var h=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(s.ownerDocument||s).createElement("style"),Bn(u),ss(u,"style",h),vh(u,a.precedence,s),o.instance=u;case"stylesheet":h=$l(a.href);var m=s.querySelector(Pf(h));if(m)return o.state.loading|=4,o.instance=m,Bn(m),m;u=uI(a),(h=Rr.get(h))&&yv(u,h),m=(s.ownerDocument||s).createElement("link"),Bn(m);var w=m;return w._p=new Promise(function(A,z){w.onload=A,w.onerror=z}),ss(m,"link",u),o.state.loading|=4,vh(m,a.precedence,s),o.instance=m;case"script":return m=zl(a.src),(h=s.querySelector(kf(m)))?(o.instance=h,Bn(h),h):(u=a,(h=Rr.get(m))&&(u=g({},a),vv(u,h)),s=s.ownerDocument||s,h=s.createElement("script"),Bn(h),ss(h,"link",u),s.head.appendChild(h),o.instance=h);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(u=o.instance,o.state.loading|=4,vh(u,a.precedence,s));return o.instance}function vh(s,o,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,m=h,w=0;w title"):null)}function OU(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 hI(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function MU(s,o,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=$l(u.href),m=o.querySelector(Pf(h));if(m){o=m._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=Sh.bind(s),o.then(s,s)),a.state.loading|=4,a.instance=m,Bn(m);return}m=o.ownerDocument||o,u=uI(u),(h=Rr.get(h))&&yv(u,h),m=m.createElement("link"),Bn(m);var w=m;w._p=new Promise(function(A,z){w.onload=A,w.onerror=z}),ss(m,"link",u),a.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(a,o),(o=a.state.preload)&&(a.state.loading&3)===0&&(s.count++,a=Sh.bind(s),o.addEventListener("load",a),o.addEventListener("error",a))}}var bv=0;function DU(s,o){return s.stylesheets&&s.count===0&&Eh(s,s.stylesheets),0bv?50:800)+o);return s.unsuspend=a,function(){s.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function Sh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eh(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var _h=null;function Eh(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,_h=new Map,o.forEach(PU,s),_h=null,Sh.call(s))}function PU(s,o){if(!(o.state.loading&4)){var a=_h.get(s);if(a)var u=a.get(null);else{a=new Map,_h.set(s,a);for(var h=s.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Uv.exports=Dj(),Uv.exports}var kj=Pj();const Nj=aD(kj);var Hv={exports:{}},qv={};var gT;function Lj(){if(gT)return qv;gT=1;var e=bu().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return qv.c=function(t){return e.H.useMemoCache(t)},qv}var yT;function $j(){return yT||(yT=1,Hv.exports=Lj()),Hv.exports}var qt=$j();const jD=M.createContext(void 0);function zj(e,t){try{const n=localStorage.getItem(e);if(n==="light"||n==="dark"||n==="system")return n}catch{}return t}function Bj(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=()=>zj(l,c),t[0]=c,t[1]=l,t[2]=f):f=t[2];const[d,p]=M.useState(f);let v,g;t[3]!==d?(v=()=>{const R=window.document.documentElement;if(R.classList.remove("light","dark"),d==="system"){const C=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";R.classList.add(C);return}R.classList.add(d)},g=[d],t[3]=d,t[4]=v,t[5]=g):(v=t[4],g=t[5]),M.useEffect(v,g);let b;t[6]!==l?(b=R=>{try{localStorage.setItem(l,R)}catch{}p(R)},t[6]=l,t[7]=b):b=t[7];let _;t[8]!==b||t[9]!==d?(_={theme:d,setTheme:b},t[8]=b,t[9]=d,t[10]=_):_=t[10];const E=_;let x;return t[11]!==n||t[12]!==E?(x=k.jsx(jD.Provider,{value:E,children:n}),t[11]=n,t[12]=E,t[13]=x):x=t[13],x}function Uj(){const e=M.useContext(jD);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function Yb(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const od={};function ag(e,t,n,r,i){let c={...Xb(e,od)};return t&&(c=ed(c,t)),n&&(c=ed(c,n)),r&&(c=ed(c,r)),i&&(c=ed(c,i)),c}function jj(e){if(e.length===0)return od;if(e.length===1)return Xb(e[0],od);let t={...Xb(e[0],od)};for(let n=1;n=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function VD(e){return typeof e=="function"}function Xb(e,t){return VD(e)?e(t):e??od}function qj(e,t){return t?e?n=>{if(Fj(n)){const i=n;Wb(i);const c=t(i);return i.baseUIHandlerPrevented||e?.(i),c}const r=t(n);return e?.(n),r}:t:e}function Wb(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function HD(e,t){return t?e?t+" "+e:t:e}function Fj(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function hi(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const vT={};function $r(e,t){const n=M.useRef(vT);return n.current===vT&&(n.current=e(t)),n}function xm(e,t,n,r){const i=$r(qD).current;return Kj(i,e,t,n,r)&&FD(i,[e,t,n,r]),i.callback}function Gj(e){const t=$r(qD).current;return Zj(t,e)&&FD(t,e),t.callback}function qD(){return{callback:null,cleanup:null,refs:[]}}function Kj(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Zj(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function FD(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 bT(e){if(!M.isValidElement(e))return null;const t=e,n=t.props;return(ZS(19)?n?.ref:t.ref)??null}function Yj(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 Xj(e,t){return typeof e=="function"?e(t):e}function Wj(e,t){return typeof e=="function"?e(t):e}function GD(){}const uMe=Object.freeze([]),or=Object.freeze({}),Jj={style:{transition:"none"}},e9="data-base-ui-click-trigger",fMe={fallbackAxisSide:"none"},t9={fallbackAxisSide:"end"},n9={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function zr(e,t,n={}){const r=t.render,i=s9(t,n);if(n.enabled===!1)return null;const c=n.state??or;return o9(e,r,i,c)}function s9(e,t={}){const{className:n,style:r,render:i}=e,{state:c=or,ref:l,props:f,stateAttributesMapping:d,enabled:p=!0}=t,v=p?Xj(n,c):void 0,g=p?Wj(r,c):void 0,b=p?Yj(c,d):or,_=p?Yb(b,Array.isArray(f)?jj(f):f)??or:or;return typeof document<"u"&&(p?Array.isArray(l)?_.ref=Gj([_.ref,bT(i),...l]):_.ref=xm(_.ref,bT(i),l):xm(null,null)),p?(v!==void 0&&(_.className=HD(_.className,v)),g!==void 0&&(_.style=Yb(_.style,g)),_):or}const r9=Symbol.for("react.lazy");function o9(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=ag(n,t.props);i.ref=n.ref;let c=t;return c?.$$typeof===r9&&(c=M.Children.toArray(t)[0]),M.cloneElement(c,i)}if(e&&typeof e=="string")return i9(e,n);throw new Error(hi(8))}function i9(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 KD(e){return zr(e.defaultTagName??"div",e,e)}function ZD(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,_T=QD,YD=(e,t)=>n=>{var r;if(t?.variants==null)return _T(e,n?.class,n?.className);const{variants:i,defaultVariants:c}=t,l=Object.keys(i).map(p=>{const v=n?.[p],g=c?.[p];if(v===null)return null;const b=ST(v)||ST(g);return i[p][b]}),f=n&&Object.entries(n).reduce((p,v)=>{let[g,b]=v;return b===void 0||(p[g]=b),p},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:g,className:b,..._}=v;return Object.entries(_).every(E=>{let[x,R]=E;return Array.isArray(R)?R.includes({...c,...f}[x]):{...c,...f}[x]===R})?[...p,g,b]:p},[]);return _T(e,l,d,n?.class,n?.className)};const XD=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const a9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const c9=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const ET=e=>{const t=c9(e);return t.charAt(0).toUpperCase()+t.slice(1)};var l9={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 u9=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const f9=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:l,...f},d)=>M.createElement("svg",{ref:d,...l9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:XD("lucide",i),...!c&&!u9(f)&&{"aria-hidden":"true"},...f},[...l.map(([p,v])=>M.createElement(p,v)),...Array.isArray(c)?c:[c]]));const Ss=(e,t)=>{const n=M.forwardRef(({className:r,...i},c)=>M.createElement(f9,{ref:c,iconNode:t,className:XD(`lucide-${a9(ET(e))}`,`lucide-${e}`,r),...i}));return n.displayName=ET(e),n};const d9=[["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"}]],p9=Ss("camera",d9);const h9=[["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"}]],m9=Ss("circle-alert",h9);const g9=[["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"}]],y9=Ss("hard-drive",g9);const v9=[["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"}]],b9=Ss("house",v9);const S9=[["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"}]],_9=Ss("image",S9);const E9=[["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"}]],x9=Ss("key",E9);const w9=[["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"}]],R9=Ss("layout-grid",w9);const C9=[["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"}]],A9=Ss("log-out",C9);const I9=[["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"}]],T9=Ss("moon",I9);const O9=[["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"}]],M9=Ss("network",O9);const D9=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],P9=Ss("panel-left",D9);const k9=[["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"}]],xT=Ss("server",k9);const N9=[["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"}]],L9=Ss("shield",N9);const $9=[["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"}]],z9=Ss("sun",$9);const B9=[["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"}]],U9=Ss("users",B9);const j9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],V9=Ss("x",j9);function cg(){return typeof window<"u"}function Ma(e){return QS(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wo(e){var t;return(t=(QS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function QS(e){return cg()?e instanceof Node||e instanceof Pn(e).Node:!1}function Lt(e){return cg()?e instanceof Element||e instanceof Pn(e).Element:!1}function On(e){return cg()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function Jb(e){return!cg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const H9=new Set(["inline","contents"]);function Da(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H9.has(i)}const q9=new Set(["table","td","th"]);function F9(e){return q9.has(Ma(e))}const G9=[":popover-open",":modal"];function lg(e){return G9.some(t=>{try{return e.matches(t)}catch{return!1}})}const K9=["transform","translate","scale","rotate","perspective"],Z9=["transform","translate","scale","rotate","perspective","filter"],Q9=["paint","layout","strict","content"];function YS(e){const t=ug(),n=Lt(e)?cr(e):e;return K9.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Z9.some(r=>(n.willChange||"").includes(r))||Q9.some(r=>(n.contain||"").includes(r))}function Y9(e){let t=ui(e);for(;On(t)&&!ci(t);){if(YS(t))return t;if(lg(t))return null;t=ui(t)}return null}function ug(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const X9=new Set(["html","body","#document"]);function ci(e){return X9.has(Ma(e))}function cr(e){return Pn(e).getComputedStyle(e)}function fg(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ui(e){if(Ma(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jb(e)&&e.host||wo(e);return Jb(t)?t.host:t}function WD(e){const t=ui(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&Da(t)?t:WD(t)}function Ra(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=WD(e),c=i===((r=e.ownerDocument)==null?void 0:r.body),l=Pn(i);if(c){const f=eS(l);return t.concat(l,l.visualViewport||[],Da(i)?i:[],f&&n?Ra(f):[])}return t.concat(i,Ra(i,[],n))}function eS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Fv=PS[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],W9=Fv&&Fv!==M.useLayoutEffect?Fv:e=>e();function Ke(e){const t=$r(J9).current;return t.next=e,W9(t.effect),t.trampoline}function J9(){const e={next:void 0,callback:eV,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function eV(){}const tV={...PS},nV=()=>{},Ct=typeof document<"u"?M.useLayoutEffect:nV,sV=M.createContext(void 0);function rV(e=!1){const t=M.useContext(sV);if(t===void 0&&!e)throw new Error(hi(16));return t}function oV(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:c}=e,l=r&&t!==!1,f=r&&t===!1;return{props:M.useMemo(()=>{const p={onKeyDown(v){n&&t&&v.key!=="Tab"&&v.preventDefault()}};return r||(p.tabIndex=i,!c&&n&&(p.tabIndex=t?i:-1)),(c&&(t||l)||!c&&n)&&(p["aria-disabled"]=n),c&&(!t||f)&&(p.disabled=n),p},[r,n,t,l,f,c,i])}}function JD(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,c=M.useRef(null),l=rV(!0)!==void 0,f=Ke(()=>{const b=c.current;return!!(b?.tagName==="A"&&b?.href)}),{props:d}=oV({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),p=M.useCallback(()=>{const b=c.current;iV(b)&&l&&t&&d.disabled===void 0&&b.disabled&&(b.disabled=!1)},[t,d.disabled,l]);Ct(p,[p]);const v=M.useCallback((b={})=>{const{onClick:_,onMouseDown:E,onKeyUp:x,onKeyDown:R,onPointerDown:C,...T}=b;return ag({type:i?"button":void 0,onClick(I){if(t){I.preventDefault();return}_?.(I)},onMouseDown(I){t||E?.(I)},onKeyDown(I){if(t||(Wb(I),R?.(I)),I.baseUIHandlerPrevented)return;const B=I.target===I.currentTarget&&!i&&!f()&&!t,j=I.key==="Enter",V=I.key===" ";B&&((V||j)&&I.preventDefault(),j&&_?.(I))},onKeyUp(I){t||(Wb(I),x?.(I)),!I.baseUIHandlerPrevented&&I.target===I.currentTarget&&!i&&!t&&I.key===" "&&_?.(I)},onPointerDown(I){if(t){I.preventDefault();return}C?.(I)}},i?void 0:{role:"button"},d,T)},[t,d,i,f]),g=Ke(b=>{c.current=b,p()});return{getButtonProps:v,buttonRef:g}}function iV(e){return On(e)&&e.tagName==="BUTTON"}const aV=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,...d}=t,{getButtonProps:p,buttonRef:v}=JD({disabled:c,focusableWhenDisabled:l,native:f});return zr("button",t,{state:{disabled:c},ref:[n,v],props:[d,p]})}),cV=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),eP=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),wm="-",wT=[],uV="arbitrary..",fV=e=>{const t=pV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return dV(l);const f=l.split(wm),d=f[0]===""&&f.length>1?1:0;return tP(f,d,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const d=r[l],p=n[l];return d?p?cV(p,d):d:p||wT}return n[l]||wT}}},tP=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],c=n.nextPart.get(i);if(c){const p=tP(e,t+1,c);if(p)return p}const l=n.validators;if(l===null)return;const f=t===0?e.join(wm):e.slice(t).join(wm),d=l.length;for(let p=0;pe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?uV+r:void 0})(),pV=e=>{const{theme:t,classGroups:n}=e;return hV(n,t)},hV=(e,t)=>{const n=eP();for(const r in e){const i=e[r];XS(i,n,r,t)}return n},XS=(e,t,n,r)=>{const i=e.length;for(let c=0;c{if(typeof e=="string"){gV(e,t,n);return}if(typeof e=="function"){yV(e,t,n,r);return}vV(e,t,n,r)},gV=(e,t,n)=>{const r=e===""?t:nP(t,e);r.classGroupId=n},yV=(e,t,n,r)=>{if(bV(e)){XS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(lV(n,e))},vV=(e,t,n,r)=>{const i=Object.entries(e),c=i.length;for(let l=0;l{let n=e;const r=t.split(wm),i=r.length;for(let c=0;c"isThemeGetter"in e&&e.isThemeGetter===!0,SV=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(c,l)=>{n[c]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(c){let l=n[c];if(l!==void 0)return l;if((l=r[c])!==void 0)return i(c,l),l},set(c,l){c in n?n[c]=l:i(c,l)}}},tS="!",RT=":",_V=[],CT=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),EV=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const c=[];let l=0,f=0,d=0,p;const v=i.length;for(let x=0;xd?p-d:void 0;return CT(c,_,b,E)};if(t){const i=t+RT,c=r;r=l=>l.startsWith(i)?c(l.slice(i.length)):CT(_V,!1,l,void 0,!0)}if(n){const i=r;r=c=>n({className:c,parseClassName:i})}return r},xV=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}},wV=e=>({cache:SV(e.cacheSize),parseClassName:EV(e),sortModifiers:xV(e),...fV(e)}),RV=/\s+/,CV=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:c}=t,l=[],f=e.trim().split(RV);let d="";for(let p=f.length-1;p>=0;p-=1){const v=f[p],{isExternal:g,modifiers:b,hasImportantModifier:_,baseClassName:E,maybePostfixModifierPosition:x}=n(v);if(g){d=v+(d.length>0?" "+d:d);continue}let R=!!x,C=r(R?E.substring(0,x):E);if(!C){if(!R){d=v+(d.length>0?" "+d:d);continue}if(C=r(E),!C){d=v+(d.length>0?" "+d:d);continue}R=!1}const T=b.length===0?"":b.length===1?b[0]:c(b).join(":"),P=_?T+tS:T,I=P+C;if(l.indexOf(I)>-1)continue;l.push(I);const B=i(C,R);for(let j=0;j0?" "+d:d)}return d},AV=(...e)=>{let t=0,n,r,i="";for(;t{if(typeof e=="string")return e;let t,n="";for(let r=0;r{let n,r,i,c;const l=d=>{const p=t.reduce((v,g)=>g(v),e());return n=wV(p),r=n.cache.get,i=n.cache.set,c=f,f(d)},f=d=>{const p=r(d);if(p)return p;const v=CV(d,n);return i(d,v),v};return c=l,(...d)=>c(AV(...d))},TV=[],$n=e=>{const t=n=>n[e]||TV;return t.isThemeGetter=!0,t},rP=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,OV=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,MV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DV=/\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$/,PV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kV=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,aa=e=>OV.test(e),rt=e=>!!e&&!Number.isNaN(Number(e)),ca=e=>!!e&&Number.isInteger(Number(e)),Gv=e=>e.endsWith("%")&&rt(e.slice(0,-1)),ei=e=>MV.test(e),iP=()=>!0,LV=e=>DV.test(e)&&!PV.test(e),WS=()=>!1,$V=e=>kV.test(e),zV=e=>NV.test(e),BV=e=>!Le(e)&&!$e(e),UV=e=>Pa(e,lP,WS),Le=e=>rP.test(e),Sc=e=>Pa(e,uP,LV),AT=e=>Pa(e,ZV,rt),jV=e=>Pa(e,dP,iP),VV=e=>Pa(e,fP,WS),IT=e=>Pa(e,aP,WS),HV=e=>Pa(e,cP,zV),kh=e=>Pa(e,pP,$V),$e=e=>oP.test(e),Ff=e=>Uc(e,uP),qV=e=>Uc(e,fP),TT=e=>Uc(e,aP),FV=e=>Uc(e,lP),GV=e=>Uc(e,cP),Nh=e=>Uc(e,pP,!0),KV=e=>Uc(e,dP,!0),Pa=(e,t,n)=>{const r=rP.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Uc=(e,t,n=!1)=>{const r=oP.exec(e);return r?r[1]?t(r[1]):n:!1},aP=e=>e==="position"||e==="percentage",cP=e=>e==="image"||e==="url",lP=e=>e==="length"||e==="size"||e==="bg-size",uP=e=>e==="length",ZV=e=>e==="number",fP=e=>e==="family-name",dP=e=>e==="number"||e==="weight",pP=e=>e==="shadow",QV=()=>{const e=$n("color"),t=$n("font"),n=$n("text"),r=$n("font-weight"),i=$n("tracking"),c=$n("leading"),l=$n("breakpoint"),f=$n("container"),d=$n("spacing"),p=$n("radius"),v=$n("shadow"),g=$n("inset-shadow"),b=$n("text-shadow"),_=$n("drop-shadow"),E=$n("blur"),x=$n("perspective"),R=$n("aspect"),C=$n("ease"),T=$n("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...I(),$e,Le],j=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],N=()=>[$e,Le,d],Q=()=>[aa,"full","auto",...N()],ne=()=>[ca,"none","subgrid",$e,Le],te=()=>["auto",{span:["full",ca,$e,Le]},ca,$e,Le],F=()=>[ca,"auto",$e,Le],oe=()=>["auto","min","max","fr",$e,Le],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],re=()=>[aa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],J=()=>[aa,"screen","full","dvw","lvw","svw","min","max","fit",...N()],ve=()=>[aa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],ue=()=>[e,$e,Le],$=()=>[...I(),TT,IT,{position:[$e,Le]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",FV,UV,{size:[$e,Le]}],Ee=()=>[Gv,Ff,Sc],xe=()=>["","none","full",p,$e,Le],Se=()=>["",rt,Ff,Sc],Oe=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[rt,Gv,TT,IT],tt=()=>["","none",E,$e,Le],kt=()=>["none",rt,$e,Le],he=()=>["none",rt,$e,Le],Re=()=>[rt,$e,Le],_e=()=>[aa,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ei],breakpoint:[ei],color:[iP],container:[ei],"drop-shadow":[ei],ease:["in","out","in-out"],font:[BV],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ei],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ei],shadow:[ei],spacing:["px",rt],text:[ei],"text-shadow":[ei],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",aa,Le,$e,R]}],container:["container"],columns:[{columns:[rt,Le,$e,f]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[ca,"auto",$e,Le]}],basis:[{basis:[aa,"full","auto",f,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,aa,"auto","initial","none",Le]}],grow:[{grow:["",rt,$e,Le]}],shrink:[{shrink:["",rt,$e,Le]}],order:[{order:[ca,"first","last","none",$e,Le]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[f,"screen",...re()]}],"min-w":[{"min-w":[f,"screen","none",...re()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,Ff,Sc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,KV,jV]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gv,Le]}],"font-family":[{font:[qV,VV,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,AT]}],leading:[{leading:[c,...N()]}],"list-image":[{"list-image":["none",$e,Le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$e,Le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ue()}],"text-color":[{text:ue()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[rt,"from-font","auto",$e,Sc]}],"text-decoration-color":[{decoration:ue()}],"underline-offset":[{"underline-offset":[rt,"auto",$e,Le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$e,Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$e,Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ca,$e,Le],radial:["",$e,Le],conic:[ca,$e,Le]},GV,HV]}],"bg-color":[{bg:ue()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:ue()}],"gradient-via":[{via:ue()}],"gradient-to":[{to:ue()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Oe(),"hidden","none"]}],"divide-style":[{divide:[...Oe(),"hidden","none"]}],"border-color":[{border:ue()}],"border-color-x":[{"border-x":ue()}],"border-color-y":[{"border-y":ue()}],"border-color-s":[{"border-s":ue()}],"border-color-e":[{"border-e":ue()}],"border-color-bs":[{"border-bs":ue()}],"border-color-be":[{"border-be":ue()}],"border-color-t":[{"border-t":ue()}],"border-color-r":[{"border-r":ue()}],"border-color-b":[{"border-b":ue()}],"border-color-l":[{"border-l":ue()}],"divide-color":[{divide:ue()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rt,$e,Le]}],"outline-w":[{outline:["",rt,Ff,Sc]}],"outline-color":[{outline:ue()}],shadow:[{shadow:["","none",v,Nh,kh]}],"shadow-color":[{shadow:ue()}],"inset-shadow":[{"inset-shadow":["none",g,Nh,kh]}],"inset-shadow-color":[{"inset-shadow":ue()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ue()}],"ring-offset-w":[{"ring-offset":[rt,Sc]}],"ring-offset-color":[{"ring-offset":ue()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":ue()}],"text-shadow":[{"text-shadow":["none",b,Nh,kh]}],"text-shadow-color":[{"text-shadow":ue()}],opacity:[{opacity:[rt,$e,Le]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":ue()}],"mask-image-linear-to-color":[{"mask-linear-to":ue()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":ue()}],"mask-image-t-to-color":[{"mask-t-to":ue()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":ue()}],"mask-image-r-to-color":[{"mask-r-to":ue()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":ue()}],"mask-image-b-to-color":[{"mask-b-to":ue()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":ue()}],"mask-image-l-to-color":[{"mask-l-to":ue()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":ue()}],"mask-image-x-to-color":[{"mask-x-to":ue()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":ue()}],"mask-image-y-to-color":[{"mask-y-to":ue()}],"mask-image-radial":[{"mask-radial":[$e,Le]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":ue()}],"mask-image-radial-to-color":[{"mask-radial-to":ue()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":ue()}],"mask-image-conic-to-color":[{"mask-conic-to":ue()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$e,Le]}],filter:[{filter:["","none",$e,Le]}],blur:[{blur:tt()}],brightness:[{brightness:[rt,$e,Le]}],contrast:[{contrast:[rt,$e,Le]}],"drop-shadow":[{"drop-shadow":["","none",_,Nh,kh]}],"drop-shadow-color":[{"drop-shadow":ue()}],grayscale:[{grayscale:["",rt,$e,Le]}],"hue-rotate":[{"hue-rotate":[rt,$e,Le]}],invert:[{invert:["",rt,$e,Le]}],saturate:[{saturate:[rt,$e,Le]}],sepia:[{sepia:["",rt,$e,Le]}],"backdrop-filter":[{"backdrop-filter":["","none",$e,Le]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[rt,$e,Le]}],"backdrop-contrast":[{"backdrop-contrast":[rt,$e,Le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rt,$e,Le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rt,$e,Le]}],"backdrop-invert":[{"backdrop-invert":["",rt,$e,Le]}],"backdrop-opacity":[{"backdrop-opacity":[rt,$e,Le]}],"backdrop-saturate":[{"backdrop-saturate":[rt,$e,Le]}],"backdrop-sepia":[{"backdrop-sepia":["",rt,$e,Le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$e,Le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rt,"initial",$e,Le]}],ease:[{ease:["linear","initial",C,$e,Le]}],delay:[{delay:[rt,$e,Le]}],animate:[{animate:["none",T,$e,Le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,$e,Le]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:kt()}],"rotate-x":[{"rotate-x":kt()}],"rotate-y":[{"rotate-y":kt()}],"rotate-z":[{"rotate-z":kt()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:Re()}],"skew-x":[{"skew-x":Re()}],"skew-y":[{"skew-y":Re()}],transform:[{transform:[$e,Le,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":["translate-none"],accent:[{accent:ue()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ue()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$e,Le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$e,Le]}],fill:[{fill:["none",...ue()]}],"stroke-w":[{stroke:[rt,Ff,Sc,AT]}],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"]}},YV=IV(QV);function bn(...e){return YV(QD(e))}const XV=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"});function dMe(e){return e?XV.format(new Date(e)):"Unknown"}const WV=["B","KB","MB","GB","TB"];function pMe(e){if(e===0)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${WV[t]}`}function hMe(e){return e?.find(t=>t.Key==="Name")?.Value}const JV=/\/$/;function mMe(e){return e.replace(JV,"")}function eH(e){return e&&(e.endsWith("/")?e:`${e}/`)}function tH(e,t){return e.startsWith(t)?e:`${t}${e}`}function gMe(e,t){return e.startsWith(t)?e.slice(t.length):e}const nH=YD("group/button inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md border border-transparent bg-clip-padding font-medium text-xs/relaxed outline-none transition-all focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function cu(e){const t=qt.c(12);let n,r,i,c;t[0]!==e?({className:n,variant:i,size:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c):(n=t[1],r=t[2],i=t[3],c=t[4]);const l=i===void 0?"default":i,f=c===void 0?"default":c;let d;t[5]!==n||t[6]!==f||t[7]!==l?(d=bn(nH({variant:l,size:f,className:n})),t[5]=n,t[6]=f,t[7]=l,t[8]=d):d=t[8];let p;return t[9]!==r||t[10]!==d?(p=k.jsx(aV,{className:d,"data-slot":"button",...r}),t[9]=r,t[10]=d,t[11]=p):p=t[11],p}let OT=0;function sH(e,t="mui"){const[n,r]=M.useState(e),i=e||n;return M.useEffect(()=>{n==null&&(OT+=1,r(`${t}-${OT}`))},[n,t]),i}const MT=tV.useId;function Od(e,t){if(MT!==void 0){const n=MT();return e??(t?`${t}-${n}`:n)}return sH(e,t)}function JS(e){return Od(e,"base-ui")}const rH=[];function e_(e){M.useEffect(e,rH)}const Gf=0;class Eo{static create(){return new Eo}currentId=Gf;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Gf,n()},t)}isStarted(){return this.currentId!==Gf}clear=()=>{this.currentId!==Gf&&(clearTimeout(this.currentId),this.currentId=Gf)};disposeEffect=()=>this.clear}function lu(){const e=$r(Eo.create).current;return e_(e.disposeEffect),e}function sn(e){return e?.ownerDocument||document}const Su=typeof navigator<"u",Kv=iH(),hP=cH(),mP=aH(),gP=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),yP=Kv.platform==="MacIntel"&&Kv.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Kv.platform),vP=Su&&/apple/i.test(navigator.vendor),nS=Su&&/android/i.test(hP)||/android/i.test(mP),oH=Su&&hP.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,bP=mP.includes("jsdom/");function iH(){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 aH(){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 cH(){if(!Su)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const sS="data-base-ui-focusable",SP="active",_P="selected",EP="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",yMe="ArrowLeft",vMe="ArrowRight",bMe="ArrowUp",SMe="ArrowDown";function si(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function At(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Jb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Rm(e,t){if(!Lt(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(At(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function js(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Yr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function lH(e){return e.matches("html,body")}function t_(e){return On(e)&&e.matches(EP)}function DT(e){return e?e.getAttribute("role")==="combobox"&&t_(e):!1}function uH(e){if(!e||bP)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function rS(e){return e?e.hasAttribute(sS)?e:e.querySelector(`[${sS}]`)||e:null}function Ic(e,t,n=!0){return e.filter(i=>i.parentId===t&&(!n||i.context?.open)).flatMap(i=>[i,...Ic(e,i.id,n)])}function PT(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 fH(e){e.preventDefault(),e.stopPropagation()}function dH(e){return"nativeEvent"in e}function pH(e){return e.pointerType===""&&e.isTrusted?!0:nS&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function hH(e){return bP?!1:!nS&&e.width===0&&e.height===0||nS&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function vd(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function mH(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const gH=["top","right","bottom","left"],uu=Math.min,rr=Math.max,Cm=Math.round,Lh=Math.floor,mo=e=>({x:e,y:e}),yH={left:"right",right:"left",bottom:"top",top:"bottom"},vH={start:"end",end:"start"};function oS(e,t,n){return rr(e,uu(t,n))}function fi(e,t){return typeof e=="function"?e(t):e}function qs(e){return e.split("-")[0]}function ka(e){return e.split("-")[1]}function n_(e){return e==="x"?"y":"x"}function s_(e){return e==="y"?"height":"width"}const bH=new Set(["top","bottom"]);function Lr(e){return bH.has(qs(e))?"y":"x"}function r_(e){return n_(Lr(e))}function SH(e,t,n){n===void 0&&(n=!1);const r=ka(e),i=r_(e),c=s_(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=Am(l)),[l,Am(l)]}function _H(e){const t=Am(e);return[iS(e),t,iS(t)]}function iS(e){return e.replace(/start|end/g,t=>vH[t])}const kT=["left","right"],NT=["right","left"],EH=["top","bottom"],xH=["bottom","top"];function wH(e,t,n){switch(e){case"top":case"bottom":return n?t?NT:kT:t?kT:NT;case"left":case"right":return t?EH:xH;default:return[]}}function RH(e,t,n,r){const i=ka(e);let c=wH(qs(e),n==="start",r);return i&&(c=c.map(l=>l+"-"+i),t&&(c=c.concat(c.map(iS)))),c}function Am(e){return e.replace(/left|right|bottom|top/g,t=>yH[t])}function CH(e){return{top:0,right:0,bottom:0,left:0,...e}}function xP(e){return typeof e!="number"?CH(e):{top:e,right:e,bottom:e,left:e}}function Im(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var AH=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Tm=AH.join(","),wP=typeof Element>"u",fu=wP?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Om=!wP&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Mm=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),c=i===""||i==="true",l=c||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Mm(t.parentNode));return l},IH=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},RP=function(t,n,r){if(Mm(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Tm));return n&&fu.call(t,Tm)&&i.unshift(t),i=i.filter(r),i},Dm=function(t,n,r){for(var i=[],c=Array.from(t);c.length;){var l=c.shift();if(!Mm(l,!1))if(l.tagName==="SLOT"){var f=l.assignedElements(),d=f.length?f:l.children,p=Dm(d,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:l,candidates:p})}else{var v=fu.call(l,Tm);v&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),b=!Mm(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&b){var _=Dm(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,_):i.push({scopeParent:l,candidates:_})}else c.unshift.apply(c,l.children)}}return i},CP=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},AP=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||IH(t))&&!CP(t)?0:t.tabIndex},TH=function(t,n){var r=AP(t);return r<0&&n&&!CP(t)?0:r},OH=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},IP=function(t){return t.tagName==="INPUT"},MH=function(t){return IP(t)&&t.type==="hidden"},DH=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},PH=function(t,n){for(var r=0;rsummary:first-of-type"),f=l?t.parentElement:t;if(fu.call(f,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var d=t;t;){var p=t.parentElement,v=Om(t);if(p&&!p.shadowRoot&&i(p)===!0)return LT(t);t.assignedSlot?t=t.assignedSlot:!p&&v!==t.ownerDocument?t=v.host:t=p}t=d}if($H(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return LT(t);return!1},BH=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)},TP=function(t){var n=[],r=[];return t.forEach(function(i,c){var l=!!i.scopeParent,f=l?i.scopeParent:i,d=TH(f,l),p=l?TP(i.candidates):f;d===0?l?n.push.apply(n,p):n.push(f):r.push({documentOrder:c,tabIndex:d,item:i,isScope:l,content:p})}),r.sort(OH).reduce(function(i,c){return c.isScope?i.push.apply(i,c.content):i.push(c.content),i},[]).concat(n)},dg=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Dm([t],n.includeContainer,{filter:cS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:UH}):r=RP(t,n.includeContainer,cS.bind(null,n)),TP(r)},jH=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Dm([t],n.includeContainer,{filter:aS.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=RP(t,n.includeContainer,aS.bind(null,n)),r},OP=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return fu.call(t,Tm)===!1?!1:cS(n,t)};const Md=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function MP(e,t){const n=dg(e,Md()),r=n.length;if(r===0)return;const i=si(sn(e)),c=n.indexOf(i),l=c===-1?t===1?0:r-1:c+t;return n[l]}function DP(e){return MP(sn(e).body,1)||e}function PP(e){return MP(sn(e).body,-1)||e}function id(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!At(n,r)}function VH(e){dg(e,Md()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function $T(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const $h=null;class HH{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const zh=new HH;class po{static create(){return new po}static request(t){return zh.request(t)}static cancel(t){return zh.cancel(t)}currentId=$h;request(t){this.cancel(),this.currentId=zh.request(()=>{this.currentId=$h,t()})}cancel=()=>{this.currentId!==$h&&(zh.cancel(this.currentId),this.currentId=$h)};disposeEffect=()=>this.cancel}function kP(){const e=$r(po.create).current;return e_(e.disposeEffect),e}function ni(e){return e==null?e:"current"in e?e.current:e}let bd=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const qH={[bd.startingStyle]:""},FH={[bd.endingStyle]:""},o_={transitionStatus(e){return e==="starting"?qH:e==="ending"?FH:null}};function GH(e,t=!1,n=!0){const r=kP();return Ke((i,c=null)=>{r.cancel();function l(){Oa.flushSync(i)}const f=ni(e);if(f==null)return;const d=f;if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{let p=function(){const g=bd.startingStyle;if(!d.hasAttribute(g)){r.request(v);return}const b=new MutationObserver(()=>{d.hasAttribute(g)||(b.disconnect(),v())});b.observe(d,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>b.disconnect(),{once:!0})},v=function(){Promise.all(d.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||l()}).catch(()=>{const g=d.getAnimations();if(n){if(c?.aborted)return;l()}else g.length>0&&g.some(b=>b.pending||b.playState!=="finished")&&v()})};if(t){p();return}r.request(v)}})}function i_(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,c=Ke(i),l=GH(r,n,!1);M.useEffect(()=>{if(!t)return;const f=new AbortController;return l(c,f.signal),()=>{f.abort()}},[t,n,c,l])}function KH(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 a_="none",Pm="trigger-press",no="trigger-hover",om="trigger-focus",NP="outside-press",_Me="item-press",ZH="close-press",LP="focus-out",c_="escape-key",EMe="list-navigation",xMe="cancel-open",QH="disabled",$P="imperative-action",wMe="window-resize";function ln(e,t,n,r){let i=!1,c=!1;const l=or;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){c=!0},get isCanceled(){return i},get isPropagationAllowed(){return c},trigger:n,...l}}const zP=M.createContext(void 0);function jc(e){const t=M.useContext(zP);if(e===!1&&t===void 0)throw new Error(hi(27));return t}let Rc=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=bd.startingStyle]="startingStyle",e[e.endingStyle=bd.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),km=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const YH={[km.popupOpen]:""},XH={[km.popupOpen]:"",[km.pressed]:""},WH={[Rc.open]:""},JH={[Rc.closed]:""},e7={[Rc.anchorHidden]:""},t7={open(e){return e?YH:null}},RMe={open(e){return e?XH:null}},Dd={open(e){return e?WH:JH},anchorHidden(e){return e?e7:null}},n7={...Dd,...o_},s7=M.forwardRef(function(t,n){const{render:r,className:i,forceRender:c=!1,...l}=t,{store:f}=jc(),d=f.useState("open"),p=f.useState("nested"),v=f.useState("mounted"),g=f.useState("transitionStatus");return zr("div",t,{state:{open:d,transitionStatus:g},ref:[f.context.backdropRef,n],stateAttributesMapping:n7,props:[{role:"presentation",hidden:!v,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!p})}),r7=M.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,nativeButton:l=!0,...f}=t,{store:d}=jc(),p=d.useState("open");function v(E){p&&d.setOpen(!1,ln(ZH,E.nativeEvent))}const{getButtonProps:g,buttonRef:b}=JD({disabled:c,native:l});return zr("button",t,{state:{disabled:c},ref:[n,b],props:[{onClick:v},f,g]})}),o7=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=jc(),d=JS(c);return f.useSyncedValueWithCleanup("descriptionElementId",d),zr("p",t,{ref:n,props:[{id:d},l]})});function ho(e){const t=$r(i7,e).current;return t.next=e,Ct(t.effect),t}function i7(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function a7(){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 c7=M.createContext(null),l7=M.createContext(null),pg=()=>M.useContext(c7)?.id||null,Pd=e=>{const t=M.useContext(l7);return e??t};function du(e){return`data-base-ui-${e}`}function im(e,t,n){if(n&&!vd(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const BP=M.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Eo,currentIdRef:{current:null},currentContextRef:{current:null}});function u7(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=M.useRef(n),c=M.useRef(n),l=M.useRef(null),f=M.useRef(null),d=lu();return k.jsx(BP.Provider,{value:M.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:c,currentIdRef:l,timeoutMs:r,currentContextRef:f,timeout:d}),[r,d]),children:t})}function f7(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{open:i}=t,c=M.useContext(BP),{currentIdRef:l,delayRef:f,timeoutMs:d,initialDelayRef:p,currentContextRef:v,hasProvider:g,timeout:b}=c,[_,E]=M.useState(!1);return Ct(()=>{function x(){E(!1),v.current?.setIsInstantPhase(!1),l.current=null,v.current=null,f.current=p.current}if(l.current&&!i&&l.current===r){if(E(!1),d){const R=r;return b.start(d,()=>{n.select("open")||l.current&&l.current!==R||x()}),()=>{b.clear()}}x()}},[i,r,l,f,d,p,v,b,n]),Ct(()=>{if(!i)return;const x=v.current,R=l.current;b.clear(),v.current={onOpenChange:n.setOpen,setIsInstantPhase:E},l.current=r,f.current={open:0,close:im(p.current,"close")},R!==null&&R!==r?(E(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1,ln(a_))):(E(!1),x?.setIsInstantPhase(!1))},[i,r,n,l,f,d,p,v,b]),Ct(()=>()=>{v.current=null},[v]),M.useMemo(()=>({hasProvider:g,delayRef:f,isInstantPhase:_}),[g,f,_])}const UP={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},jP={...UP,position:"fixed",top:0,left:0},CMe={...UP,position:"absolute"},Nm=M.forwardRef(function(t,n){const[r,i]=M.useState();Ct(()=>{vP&&i("button")},[]);const c={tabIndex:0,role:r};return k.jsx("span",{...t,ref:n,style:jP,"aria-hidden":r?void 0:!0,...c,"data-base-ui-focus-guard":""})});let zT=0;function Zv(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(zT);const c=()=>e?.focus({preventScroll:n});i?c():zT=requestAnimationFrame(c)}const Jl={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function BT(e){return e==="inert"?Jl.inert:e==="aria-hidden"?Jl["aria-hidden"]:Jl.none}let Bh=new WeakSet,Uh={},Qv=0;const VP=e=>e&&(e.host||VP(e.parentNode)),d7=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=VP(n);return e.contains(r)?r:null}).filter(n=>n!=null);function p7(e,t,n,r){const i="data-base-ui-inert",c=r?"inert":n?"aria-hidden":null,l=d7(t,e),f=new Set,d=new Set(l),p=[];Uh[i]||(Uh[i]=new WeakMap);const v=Uh[i];l.forEach(g),b(t),f.clear();function g(_){!_||f.has(_)||(f.add(_),_.parentNode&&g(_.parentNode))}function b(_){!_||d.has(_)||[].forEach.call(_.children,E=>{if(Ma(E)!=="script")if(f.has(E))b(E);else{const x=c?E.getAttribute(c):null,R=x!==null&&x!=="false",C=BT(c),T=(C.get(E)||0)+1,P=(v.get(E)||0)+1;C.set(E,T),v.set(E,P),p.push(E),T===1&&R&&Bh.add(E),P===1&&E.setAttribute(i,""),!R&&c&&E.setAttribute(c,c==="inert"?"":"true")}})}return Qv+=1,()=>{p.forEach(_=>{const E=BT(c),R=(E.get(_)||0)-1,C=(v.get(_)||0)-1;E.set(_,R),v.set(_,C),R||(!Bh.has(_)&&c&&_.removeAttribute(c),Bh.delete(_)),C||_.removeAttribute(i)}),Qv-=1,Qv||(Jl.inert=new WeakMap,Jl["aria-hidden"]=new WeakMap,Jl.none=new WeakMap,Bh=new WeakSet,Uh={})}}function h7(e,t=!1,n=!1){const r=sn(e[0]).body;return p7(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const HP=M.createContext(null),qP=()=>M.useContext(HP),m7=du("portal");function FP(e={}){const{ref:t,container:n,componentProps:r=or,elementProps:i}=e,c=Od(),f=qP()?.portalNode,[d,p]=M.useState(null),[v,g]=M.useState(null),b=Ke(R=>{R!==null&&g(R)}),_=M.useRef(null);Ct(()=>{if(n===null){_.current&&(_.current=null,g(null),p(null));return}if(c==null)return;const R=(n&&(QS(n)?n:n.current))??f??document.body;if(R==null){_.current&&(_.current=null,g(null),p(null));return}_.current!==R&&(_.current=R,g(null),p(R))},[n,f,c]);const E=zr("div",r,{ref:[t,b],props:[{id:c,[m7]:""},i]});return{portalNode:v,portalSubtree:d&&E?Oa.createPortal(E,d):null}}const g7=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,renderGuards:f,...d}=t,{portalNode:p,portalSubtree:v}=FP({container:i,ref:n,componentProps:t,elementProps:d}),g=M.useRef(null),b=M.useRef(null),_=M.useRef(null),E=M.useRef(null),[x,R]=M.useState(null),C=x?.modal,T=x?.open,P=typeof f=="boolean"?f:!!x&&!x.modal&&x.open&&!!p;M.useEffect(()=>{if(!p||C)return;function B(j){p&&j.relatedTarget&&id(j)&&(j.type==="focusin"?$T:VH)(p)}return p.addEventListener("focusin",B,!0),p.addEventListener("focusout",B,!0),()=>{p.removeEventListener("focusin",B,!0),p.removeEventListener("focusout",B,!0)}},[p,C]),M.useEffect(()=>{!p||T||$T(p)},[T,p]);const I=M.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:b,beforeInsideRef:_,afterInsideRef:E,portalNode:p,setFocusManagerState:R}),[p]);return k.jsxs(M.Fragment,{children:[v,k.jsxs(HP.Provider,{value:I,children:[P&&p&&k.jsx(Nm,{"data-type":"outside",ref:g,onFocus:B=>{if(id(B,p))_.current?.focus();else{const j=x?x.domReference:null;PP(j)?.focus()}}}),P&&p&&k.jsx("span",{"aria-owns":p.id,style:n9}),p&&Oa.createPortal(r,p),P&&p&&k.jsx(Nm,{"data-type":"outside",ref:b,onFocus:B=>{if(id(B,p))E.current?.focus();else{const j=x?x.domReference:null;DP(j)?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,ln(LP,B.nativeEvent))}}})]})]})});function y7(e,t){const n=Pn(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const UT=20;let ba=[];function l_(){ba=ba.filter(e=>e.deref()?.isConnected)}function v7(e){l_(),e&&Ma(e)!=="body"&&(ba.push(new WeakRef(e)),ba.length>UT&&(ba=ba.slice(-UT)))}function Yv(){return l_(),ba[ba.length-1]?.deref()}function b7(e){if(!e)return null;const t=Md();return OP(e,t)?e:dg(e,t)[0]||e}function S7(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():cr(e).display!=="none"}function jT(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Md(),i=jH(e,n).filter(l=>{const f=l.getAttribute("data-tabindex")||"";return OP(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 _7(e){const{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:c=!0,restoreFocus:l=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:p="",nextFocusableElement:v,previousFocusableElement:g,beforeContentFocusGuardRef:b,externalTree:_}=e,E="rootStore"in t?t.rootStore:t,x=E.useState("open"),R=E.useState("domReferenceElement"),C=E.useState("floatingElement"),{events:T,dataRef:P}=E.context,I=Ke(()=>P.current.floatingContext?.nodeId),B=i===!1,j=DT(R)&&B,V=M.useRef(["content"]),N=ho(i),Q=ho(c),ne=ho(p),te=Pd(_),F=qP(),oe=M.useRef(null),me=M.useRef(null),ge=M.useRef(!1),H=M.useRef(!1),re=M.useRef(!1),J=M.useRef(-1),ve=M.useRef(""),ue=M.useRef(""),$=M.useRef(null),ee=M.useRef(null),ye=xm($,b,F?.beforeInsideRef),Ee=xm(ee,F?.afterInsideRef),xe=lu(),Se=lu(),Oe=kP(),Fe=F!=null,be=rS(C),tt=Ke((Re=be)=>Re?dg(Re,Md()):[]),kt=Ke(Re=>{const _e=tt(Re);return V.current.map(()=>_e).filter(Boolean).flat()});M.useEffect(()=>{if(r||!f)return;function Re(Ze){Ze.key==="Tab"&&At(be,si(sn(be)))&&tt().length===0&&!j&&fH(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(`[${e9}]`)&&(H.current=!0)}function Me(){ue.current="keyboard"}return Re.addEventListener("pointerdown",Ze,!0),Re.addEventListener("pointerup",_e,!0),Re.addEventListener("pointercancel",_e,!0),Re.addEventListener("keydown",Me,!0),()=>{Re.removeEventListener("pointerdown",Ze,!0),Re.removeEventListener("pointerup",_e,!0),Re.removeEventListener("pointercancel",_e,!0),Re.removeEventListener("keydown",Me,!0)}},[r,C,R,be,x,F]),M.useEffect(()=>{if(r||!d)return;const Re=sn(be);function _e(){H.current=!0,Se.start(0,()=>{H.current=!1})}function Ze(ot){const Ge=js(ot),Xt=tt().indexOf(Ge);Xt!==-1&&(J.current=Xt)}function Me(ot){const Ge=ot.relatedTarget,bt=ot.currentTarget,Xt=js(ot);queueMicrotask(()=>{const wt=I(),Xn=E.context.triggerElements,Je=Ge?.hasAttribute(du("focus-guard"))&&[$.current,ee.current,F?.beforeInsideRef.current,F?.afterInsideRef.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,ni(g),ni(v)].includes(Ge),Mt=!(At(R,Ge)||At(C,Ge)||At(Ge,C)||At(F?.portalNode,Ge)||Ge!=null&&Xn.hasElement(Ge)||Xn.hasMatchingElement(it=>At(it,Ge))||Je||te&&(Ic(te.nodesRef.current,wt).find(it=>At(it.context?.elements.floating,Ge)||At(it.context?.elements.domReference,Ge))||PT(te.nodesRef.current,wt).find(it=>[it.context?.elements.floating,rS(it.context?.elements.floating)].includes(Ge)||it.context?.elements.domReference===Ge)));if(bt===R&&be&&jT(be,V),l&&bt!==R&&!S7(Xt)&&si(Re)===Re.body){if(On(be)&&(be.focus(),l==="popup")){Oe.request(()=>{be.focus()});return}const it=J.current,Ds=tt(),pr=Ds[it]||Ds[Ds.length-1]||be;On(pr)&&pr.focus()}if(P.current.insideReactTree){P.current.insideReactTree=!1;return}(j||!f)&&Ge&&Mt&&!H.current&&(j||Ge!==Yv())&&(ge.current=!0,E.setOpen(!1,ln(LP,ot)))})}function Ve(){re.current||(P.current.insideReactTree=!0,xe.start(0,()=>{P.current.insideReactTree=!1}))}const De=On(R)?R:null,nt=[];if(!(!C&&!De))return De&&(De.addEventListener("focusout",Me),De.addEventListener("pointerdown",_e),nt.push(()=>{De.removeEventListener("focusout",Me),De.removeEventListener("pointerdown",_e)})),C&&(C.addEventListener("focusin",Ze),C.addEventListener("focusout",Me),F&&(C.addEventListener("focusout",Ve,!0),nt.push(()=>{C.removeEventListener("focusout",Ve,!0)})),nt.push(()=>{C.removeEventListener("focusin",Ze),C.removeEventListener("focusout",Me)})),()=>{nt.forEach(ot=>{ot()})}},[r,R,C,be,f,te,F,E,d,l,tt,j,I,V,P,xe,Se,Oe,v,g]),M.useEffect(()=>{if(r||!C||!x)return;const Re=Array.from(F?.portalNode?.querySelectorAll(`[${du("portal")}]`)||[]),Ze=(te?PT(te.nodesRef.current,I()):[]).find(Ve=>DT(Ve.context?.elements.domReference||null))?.context?.elements.domReference,Me=[C,Ze,...Re,oe.current,me.current,$.current,ee.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,ni(g),ni(v),j?R:null].filter(Ve=>Ve!=null);return h7(Me,f||j)},[x,r,R,C,f,V,F,j,te,I,v,g]),Ct(()=>{if(!x||r||!On(be))return;const Re=sn(be),_e=si(Re);queueMicrotask(()=>{const Ze=kt(be),Me=N.current,Ve=typeof Me=="function"?Me(ne.current||""):Me;if(Ve===void 0||Ve===!1)return;let De;Ve===!0||Ve===null?De=Ze[0]||be:De=ni(Ve),De=De||Ze[0]||be,!At(be,_e)&&Zv(De,{preventScroll:De===be})})},[r,x,be,B,kt,N,ne]),Ct(()=>{if(r||!be)return;const Re=sn(be),_e=si(Re);v7(_e);function Ze(De){if(De.open||(ve.current=y7(De.nativeEvent,ue.current)),De.reason===no&&De.nativeEvent.type==="mouseleave"&&(ge.current=!0),De.reason===NP)if(De.nested)ge.current=!1;else if(pH(De.nativeEvent)||hH(De.nativeEvent))ge.current=!1;else{let nt=!1;document.createElement("div").focus({get preventScroll(){return nt=!0,!1}}),nt?ge.current=!1:ge.current=!0}}T.on("openchange",Ze);const Me=Re.createElement("span");Me.setAttribute("tabindex","-1"),Me.setAttribute("aria-hidden","true"),Object.assign(Me.style,jP),Fe&&R&&R.insertAdjacentElement("afterend",Me);function Ve(){const De=Q.current;let nt=typeof De=="function"?De(ve.current):De;if(nt===void 0||nt===!1)return null;if(nt===null&&(nt=!0),typeof nt=="boolean"){const Ge=R||Yv();return Ge&&Ge.isConnected?Ge:Me}const ot=R||Yv()||Me;return ni(nt)||ot}return()=>{T.off("openchange",Ze);const De=si(Re),nt=At(C,De)||te&&Ic(te.nodesRef.current,I(),!1).some(Ge=>At(Ge.context?.elements.floating,De)),ot=Ve();queueMicrotask(()=>{const Ge=b7(ot),bt=typeof Q.current!="boolean";Q.current&&!ge.current&&On(Ge)&&(!(!bt&&Ge!==De&&De!==Re.body)||nt)&&Ge.focus({preventScroll:!0}),Me.remove(),ge.current=!1})}},[r,C,be,Q,P,T,te,Fe,R,I]),Ct(()=>{if(!gP||x||!C)return;const Re=si(sn(C));!On(Re)||!t_(Re)||At(C,Re)&&Re.blur()},[x,C]),Ct(()=>{if(!(r||!F))return F.setFocusManagerState({modal:f,closeOnFocusOut:d,open:x,onOpenChange:E.setOpen,domReference:R}),()=>{F.setFocusManagerState(null)}},[r,F,f,x,E,d,R]),Ct(()=>{if(!(r||!be))return jT(be,V),()=>{queueMicrotask(l_)}},[r,be,V]);const he=!r&&(f?!j:!0)&&(Fe||f);return k.jsxs(M.Fragment,{children:[he&&k.jsx(Nm,{"data-type":"inside",ref:ye,onFocus:Re=>{if(f){const _e=kt();Zv(_e[_e.length-1])}else F?.portalNode&&(ge.current=!1,id(Re,F.portalNode)?DP(R)?.focus():ni(g??F.beforeOutsideRef)?.focus())}}),n,he&&k.jsx(Nm,{"data-type":"inside",ref:Ee,onFocus:Re=>{f?Zv(kt()[0]):F?.portalNode&&(d&&(ge.current=!0),id(Re,F.portalNode)?PP(R)?.focus():ni(v??F.afterOutsideRef)?.focus())}})]})}function E7(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){const c=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",f=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let p=c.width,v=c.height,g=c.x,b=c.y;return n==null&&t.x&&l&&(n=c.x-t.x),r==null&&t.y&&f&&(r=c.y-t.y),g-=n||0,b-=r||0,p=0,v=0,!i||d?(p=t.axis==="y"?c.width:0,v=t.axis==="x"?c.height:0,g=l&&t.x!=null?t.x:g,b=f&&t.y!=null?t.y:b):i&&!d&&(v=t.axis==="x"?c.height:v,p=t.axis==="y"?c.width:p),i=!0,{width:p,height:v,x:g,y:b,top:b,right:g+p,bottom:b+v,left:g}}}}function VT(e){return e!=null&&e.clientX!=null}function x7(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:f=!0,axis:d="both"}=t,p=M.useRef(!1),v=M.useRef(null),[g,b]=M.useState(),[_,E]=M.useState([]),x=Ke((I,B,j)=>{p.current||l.current.openEvent&&!VT(l.current.openEvent)||n.set("positionReference",E7(j??c,{x:I,y:B,axis:d,dataRef:l,pointerType:g}))}),R=Ke(I=>{r?v.current||E([]):x(I.clientX,I.clientY,I.currentTarget)}),C=vd(g)?i:r,T=M.useCallback(()=>{if(!C||!f)return;const I=Pn(i);function B(j){const V=js(j);At(i,V)?(I.removeEventListener("mousemove",B),v.current=null):x(j.clientX,j.clientY)}if(!l.current.openEvent||VT(l.current.openEvent)){I.addEventListener("mousemove",B);const j=()=>{I.removeEventListener("mousemove",B),v.current=null};return v.current=j,j}n.set("positionReference",c)},[C,f,i,l,c,n,x]);M.useEffect(()=>T(),[T,_]),M.useEffect(()=>{f&&!i&&(p.current=!1)},[f,i]),M.useEffect(()=>{!f&&r&&(p.current=!0)},[f,r]);const P=M.useMemo(()=>{function I(B){b(B.pointerType)}return{onPointerDown:I,onPointerEnter:I,onMouseMove:R,onMouseEnter:R}},[R]);return M.useMemo(()=>f?{reference:P,trigger:P}:{},[f,P])}function HT(e,t,n){let{reference:r,floating:i}=e;const c=Lr(t),l=r_(t),f=s_(l),d=qs(t),p=c==="y",v=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,b=r[f]/2-i[f]/2;let _;switch(d){case"top":_={x:v,y:r.y-i.height};break;case"bottom":_={x:v,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:g};break;case"left":_={x:r.x-i.width,y:g};break;default:_={x:r.x,y:r.y}}switch(ka(t)){case"start":_[l]-=b*(n&&p?-1:1);break;case"end":_[l]+=b*(n&&p?-1:1);break}return _}async function w7(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:c,rects:l,elements:f,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:b=!1,padding:_=0}=fi(t,e),E=xP(_),R=f[b?g==="floating"?"reference":"floating":g],C=Im(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(R)))==null||n?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:p,rootBoundary:v,strategy:d})),T=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),I=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=Im(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:T,offsetParent:P,strategy:d}):T);return{top:(C.top-B.top+E.top)/I.y,bottom:(B.bottom-C.bottom+E.bottom)/I.y,left:(C.left-B.left+E.left)/I.x,right:(B.right-C.right+E.right)/I.x}}const R7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:c=[],platform:l}=n,f=c.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:v,y:g}=HT(p,r,d),b=r,_={},E=0;for(let R=0;Rme<=0)){var te,F;const me=(((te=c.flip)==null?void 0:te.index)||0)+1,ge=V[me];if(ge&&(!(g==="alignment"?T!==Lr(ge):!1)||ne.every(J=>Lr(J.placement)===T?J.overflows[0]>0:!0)))return{data:{index:me,overflows:ne},reset:{placement:ge}};let H=(F=ne.filter(re=>re.overflows[0]<=0).sort((re,J)=>re.overflows[1]-J.overflows[1])[0])==null?void 0:F.placement;if(!H)switch(_){case"bestFit":{var oe;const re=(oe=ne.filter(J=>{if(j){const ve=Lr(J.placement);return ve===T||ve==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(ve=>ve>0).reduce((ve,ue)=>ve+ue,0)]).sort((J,ve)=>J[1]-ve[1])[0])==null?void 0:oe[0];re&&(H=re);break}case"initialPlacement":H=f;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function qT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function FT(e){return gH.some(t=>e[t]>=0)}const A7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...c}=fi(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...c,elementContext:"reference"}),f=qT(l,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:FT(f)}}}case"escaped":{const l=await r.detectOverflow(t,{...c,altBoundary:!0}),f=qT(l,n.floating);return{data:{escapedOffsets:f,escaped:FT(f)}}}default:return{}}}}},GP=new Set(["left","top"]);async function I7(e,t){const{placement:n,platform:r,elements:i}=e,c=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=qs(n),f=ka(n),d=Lr(n)==="y",p=GP.has(l)?-1:1,v=c&&d?-1:1,g=fi(t,e);let{mainAxis:b,crossAxis:_,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof E=="number"&&(_=f==="end"?E*-1:E),d?{x:_*v,y:b*p}:{x:b*p,y:_*v}}const T7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:c,placement:l,middlewareData:f}=t,d=await I7(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:c+d.y,data:{...d,placement:l}}}}},O7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:c}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:d={fn:C=>{let{x:T,y:P}=C;return{x:T,y:P}}},...p}=fi(e,t),v={x:n,y:r},g=await c.detectOverflow(t,p),b=Lr(qs(i)),_=n_(b);let E=v[_],x=v[b];if(l){const C=_==="y"?"top":"left",T=_==="y"?"bottom":"right",P=E+g[C],I=E-g[T];E=oS(P,E,I)}if(f){const C=b==="y"?"top":"left",T=b==="y"?"bottom":"right",P=x+g[C],I=x-g[T];x=oS(P,x,I)}const R=d.fn({...t,[_]:E,[b]:x});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[_]:l,[b]:f}}}}}},M7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=fi(e,t),v={x:n,y:r},g=Lr(i),b=n_(g);let _=v[b],E=v[g];const x=fi(f,t),R=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const P=b==="y"?"height":"width",I=c.reference[b]-c.floating[P]+R.mainAxis,B=c.reference[b]+c.reference[P]-R.mainAxis;_B&&(_=B)}if(p){var C,T;const P=b==="y"?"width":"height",I=GP.has(qs(i)),B=c.reference[g]-c.floating[P]+(I&&((C=l.offset)==null?void 0:C[g])||0)+(I?0:R.crossAxis),j=c.reference[g]+c.reference[P]+(I?0:((T=l.offset)==null?void 0:T[g])||0)-(I?R.crossAxis:0);Ej&&(E=j)}return{[b]:_,[g]:E}}}},D7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:c,platform:l,elements:f}=t,{apply:d=()=>{},...p}=fi(e,t),v=await l.detectOverflow(t,p),g=qs(i),b=ka(i),_=Lr(i)==="y",{width:E,height:x}=c.floating;let R,C;g==="top"||g==="bottom"?(R=g,C=b===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(C=g,R=b==="end"?"top":"bottom");const T=x-v.top-v.bottom,P=E-v.left-v.right,I=uu(x-v[R],T),B=uu(E-v[C],P),j=!t.middlewareData.shift;let V=I,N=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=T),j&&!b){const ne=rr(v.left,0),te=rr(v.right,0),F=rr(v.top,0),oe=rr(v.bottom,0);_?N=E-2*(ne!==0||te!==0?ne+te:rr(v.left,v.right)):V=x-2*(F!==0||oe!==0?F+oe:rr(v.top,v.bottom))}await d({...t,availableWidth:N,availableHeight:V});const Q=await l.getDimensions(f.floating);return E!==Q.width||x!==Q.height?{reset:{rects:!0}}:{}}}};function KP(e){const t=cr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=On(e),c=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=Cm(n)!==c||Cm(r)!==l;return f&&(n=c,r=l),{width:n,height:r,$:f}}function u_(e){return Lt(e)?e:e.contextElement}function eu(e){const t=u_(e);if(!On(t))return mo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:c}=KP(t);let l=(c?Cm(n.width):n.width)/r,f=(c?Cm(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const P7=mo(0);function ZP(e){const t=Pn(e);return!ug()||!t.visualViewport?P7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pn(e)?!1:t}function kc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),c=u_(e);let l=mo(1);t&&(r?Lt(r)&&(l=eu(r)):l=eu(e));const f=k7(c,n,r)?ZP(c):mo(0);let d=(i.left+f.x)/l.x,p=(i.top+f.y)/l.y,v=i.width/l.x,g=i.height/l.y;if(c){const b=Pn(c),_=r&&Lt(r)?Pn(r):r;let E=b,x=eS(E);for(;x&&r&&_!==E;){const R=eu(x),C=x.getBoundingClientRect(),T=cr(x),P=C.left+(x.clientLeft+parseFloat(T.paddingLeft))*R.x,I=C.top+(x.clientTop+parseFloat(T.paddingTop))*R.y;d*=R.x,p*=R.y,v*=R.x,g*=R.y,d+=P,p+=I,E=Pn(x),x=eS(E)}}return Im({width:v,height:g,x:d,y:p})}function hg(e,t){const n=fg(e).scrollLeft;return t?t.left+n:kc(wo(e)).left+n}function QP(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hg(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function N7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const c=i==="fixed",l=wo(r),f=t?lg(t.floating):!1;if(r===l||f&&c)return n;let d={scrollLeft:0,scrollTop:0},p=mo(1);const v=mo(0),g=On(r);if((g||!g&&!c)&&((Ma(r)!=="body"||Da(l))&&(d=fg(r)),On(r))){const _=kc(r);p=eu(r),v.x=_.x+r.clientLeft,v.y=_.y+r.clientTop}const b=l&&!g&&!c?QP(l,d):mo(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-d.scrollLeft*p.x+v.x+b.x,y:n.y*p.y-d.scrollTop*p.y+v.y+b.y}}function L7(e){return Array.from(e.getClientRects())}function $7(e){const t=wo(e),n=fg(e),r=e.ownerDocument.body,i=rr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=rr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+hg(e);const f=-n.scrollTop;return cr(r).direction==="rtl"&&(l+=rr(t.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:f}}const GT=25;function z7(e,t){const n=Pn(e),r=wo(e),i=n.visualViewport;let c=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){c=i.width,l=i.height;const v=ug();(!v||v&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}const p=hg(r);if(p<=0){const v=r.ownerDocument,g=v.body,b=getComputedStyle(g),_=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-_);E<=GT&&(c-=E)}else p<=GT&&(c+=p);return{width:c,height:l,x:f,y:d}}const B7=new Set(["absolute","fixed"]);function U7(e,t){const n=kc(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,c=On(e)?eu(e):mo(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,d=i*c.x,p=r*c.y;return{width:l,height:f,x:d,y:p}}function KT(e,t,n){let r;if(t==="viewport")r=z7(e,n);else if(t==="document")r=$7(wo(e));else if(Lt(t))r=U7(t,n);else{const i=ZP(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Im(r)}function YP(e,t){const n=ui(e);return n===t||!Lt(n)||ci(n)?!1:cr(n).position==="fixed"||YP(n,t)}function j7(e,t){const n=t.get(e);if(n)return n;let r=Ra(e,[],!1).filter(f=>Lt(f)&&Ma(f)!=="body"),i=null;const c=cr(e).position==="fixed";let l=c?ui(e):e;for(;Lt(l)&&!ci(l);){const f=cr(l),d=YS(l);!d&&f.position==="fixed"&&(i=null),(c?!d&&!i:!d&&f.position==="static"&&!!i&&B7.has(i.position)||Da(l)&&!d&&YP(e,l))?r=r.filter(v=>v!==l):i=f,l=ui(l)}return t.set(e,r),r}function V7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?lg(t)?[]:j7(t,this._c):[].concat(n),r],f=l[0],d=l.reduce((p,v)=>{const g=KT(t,v,i);return p.top=rr(g.top,p.top),p.right=uu(g.right,p.right),p.bottom=uu(g.bottom,p.bottom),p.left=rr(g.left,p.left),p},KT(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function H7(e){const{width:t,height:n}=KP(e);return{width:t,height:n}}function q7(e,t,n){const r=On(t),i=wo(t),c=n==="fixed",l=kc(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const d=mo(0);function p(){d.x=hg(i)}if(r||!r&&!c)if((Ma(t)!=="body"||Da(i))&&(f=fg(t)),r){const _=kc(t,!0,c,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else i&&p();c&&!r&&i&&p();const v=i&&!r&&!c?QP(i,f):mo(0),g=l.left+f.scrollLeft-d.x-v.x,b=l.top+f.scrollTop-d.y-v.y;return{x:g,y:b,width:l.width,height:l.height}}function Xv(e){return cr(e).position==="static"}function ZT(e,t){if(!On(e)||cr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wo(e)===n&&(n=n.ownerDocument.body),n}function XP(e,t){const n=Pn(e);if(lg(e))return n;if(!On(e)){let i=ui(e);for(;i&&!ci(i);){if(Lt(i)&&!Xv(i))return i;i=ui(i)}return n}let r=ZT(e,t);for(;r&&F9(r)&&Xv(r);)r=ZT(r,t);return r&&ci(r)&&Xv(r)&&!YS(r)?n:r||Y9(e)||n}const F7=async function(e){const t=this.getOffsetParent||XP,n=this.getDimensions,r=await n(e.floating);return{reference:q7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function G7(e){return cr(e).direction==="rtl"}const K7={convertOffsetParentRelativeRectToViewportRelativeRect:N7,getDocumentElement:wo,getClippingRect:V7,getOffsetParent:XP,getElementRects:F7,getClientRects:L7,getDimensions:H7,getScale:eu,isElement:Lt,isRTL:G7};function WP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Z7(e,t){let n=null,r;const i=wo(e);function c(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function l(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),c();const p=e.getBoundingClientRect(),{left:v,top:g,width:b,height:_}=p;if(f||t(),!b||!_)return;const E=Lh(g),x=Lh(i.clientWidth-(v+b)),R=Lh(i.clientHeight-(g+_)),C=Lh(v),P={rootMargin:-E+"px "+-x+"px "+-R+"px "+-C+"px",threshold:rr(0,uu(1,d))||1};let I=!0;function B(j){const V=j[0].intersectionRatio;if(V!==d){if(!I)return l();V?l(!1,V):r=setTimeout(()=>{l(!1,1e-7)},1e3)}V===1&&!WP(p,e.getBoundingClientRect())&&l(),I=!1}try{n=new IntersectionObserver(B,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(B,P)}n.observe(e)}return l(!0),c}function QT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=u_(e),v=i||c?[...p?Ra(p):[],...Ra(t)]:[];v.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),c&&C.addEventListener("resize",n)});const g=p&&f?Z7(p,n):null;let b=-1,_=null;l&&(_=new ResizeObserver(C=>{let[T]=C;T&&T.target===p&&_&&(_.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var P;(P=_)==null||P.observe(t)})),n()}),p&&!d&&_.observe(p),_.observe(t));let E,x=d?kc(e):null;d&&R();function R(){const C=kc(e);x&&!WP(x,C)&&n(),x=C,E=requestAnimationFrame(R)}return n(),()=>{var C;v.forEach(T=>{i&&T.removeEventListener("scroll",n),c&&T.removeEventListener("resize",n)}),g?.(),(C=_)==null||C.disconnect(),_=null,d&&cancelAnimationFrame(E)}}const Q7=T7,Y7=O7,X7=C7,W7=D7,J7=A7,eq=M7,tq=(e,t,n)=>{const r=new Map,i={platform:K7,...n},c={...i.platform,_c:r};return R7(e,t,{...i,platform:c})};var nq=typeof document<"u",sq=function(){},am=nq?M.useLayoutEffect:sq;function Lm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lm(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const c=i[r];if(!(c==="_owner"&&e.$$typeof)&&!Lm(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function JP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function YT(e,t){const n=JP(e);return Math.round(t*n)/n}function Wv(e){const t=M.useRef(e);return am(()=>{t.current=e}),t}function rq(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:c,floating:l}={},transform:f=!0,whileElementsMounted:d,open:p}=e,[v,g]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,_]=M.useState(r);Lm(b,r)||_(r);const[E,x]=M.useState(null),[R,C]=M.useState(null),T=M.useCallback(J=>{J!==j.current&&(j.current=J,x(J))},[]),P=M.useCallback(J=>{J!==V.current&&(V.current=J,C(J))},[]),I=c||E,B=l||R,j=M.useRef(null),V=M.useRef(null),N=M.useRef(v),Q=d!=null,ne=Wv(d),te=Wv(i),F=Wv(p),oe=M.useCallback(()=>{if(!j.current||!V.current)return;const J={placement:t,strategy:n,middleware:b};te.current&&(J.platform=te.current),tq(j.current,V.current,J).then(ve=>{const ue={...ve,isPositioned:F.current!==!1};me.current&&!Lm(N.current,ue)&&(N.current=ue,Oa.flushSync(()=>{g(ue)}))})},[b,t,n,te,F]);am(()=>{p===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[p]);const me=M.useRef(!1);am(()=>(me.current=!0,()=>{me.current=!1}),[]),am(()=>{if(I&&(j.current=I),B&&(V.current=B),I&&B){if(ne.current)return ne.current(I,B,oe);oe()}},[I,B,oe,ne,Q]);const ge=M.useMemo(()=>({reference:j,floating:V,setReference:T,setFloating:P}),[T,P]),H=M.useMemo(()=>({reference:I,floating:B}),[I,B]),re=M.useMemo(()=>{const J={position:n,left:0,top:0};if(!H.floating)return J;const ve=YT(H.floating,v.x),ue=YT(H.floating,v.y);return f?{...J,transform:"translate("+ve+"px, "+ue+"px)",...JP(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 oq=(e,t)=>({...Q7(e),options:[e,t]}),iq=(e,t)=>({...Y7(e),options:[e,t]}),aq=(e,t)=>({...eq(e),options:[e,t]}),cq=(e,t)=>({...X7(e),options:[e,t]}),lq=(e,t)=>({...W7(e),options:[e,t]}),uq=(e,t)=>({...J7(e),options:[e,t]}),fq={intentional:"onClick",sloppy:"onPointerDown"};function dq(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function ek(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:f,dataRef:d}=n.context,{enabled:p=!0,escapeKey:v=!0,outsidePress:g=!0,outsidePressEvent:b="sloppy",referencePress:_=!1,referencePressEvent:E="sloppy",ancestorScroll:x=!1,bubbles:R,externalTree:C}=t,T=Pd(C),P=Ke(typeof g=="function"?g:()=>!1),I=typeof g=="function"?P:g,B=M.useRef(!1),{escapeKey:j,outsidePress:V}=dq(R),N=M.useRef(null),Q=lu(),ne=lu(),te=Ke(()=>{ne.clear(),d.current.insideReactTree=!1}),F=M.useRef(!1),oe=M.useRef(""),me=Ke(he=>{oe.current=he.pointerType}),ge=Ke(()=>{const he=oe.current,Re=he==="pen"||!he?"mouse":he,_e=typeof b=="function"?b():b;return typeof _e=="string"?_e:_e[Re]}),H=Ke(he=>{if(!r||!p||!v||he.key!=="Escape"||F.current)return;const Re=d.current.floatingContext?.nodeId,_e=T?Ic(T.nodesRef.current,Re):[];if(!j&&_e.length>0){let Ve=!0;if(_e.forEach(De=>{De.context?.open&&!De.context.dataRef.current.__escapeKeyBubbles&&(Ve=!1)}),!Ve)return}const Ze=dH(he)?he.nativeEvent:he,Me=ln(c_,Ze);n.setOpen(!1,Me),!j&&!Me.isPropagationAllowed&&he.stopPropagation()}),re=Ke(he=>{const Re=ge();return Re==="intentional"&&he.type!=="click"||Re==="sloppy"&&he.type==="click"}),J=Ke(()=>{d.current.insideReactTree=!0,ne.start(0,te)}),ve=Ke((he,Re=!1)=>{if(re(he)){te();return}if(d.current.insideReactTree){te();return}if(ge()==="intentional"&&Re||typeof I=="function"&&!I(he))return;const _e=js(he),Ze=`[${du("inert")}]`,Me=sn(n.select("floatingElement")).querySelectorAll(Ze),Ve=n.context.triggerElements;if(_e&&(Ve.hasElement(_e)||Ve.hasMatchingElement(bt=>At(bt,_e))))return;let De=Lt(_e)?_e:null;for(;De&&!ci(De);){const bt=ui(De);if(ci(bt)||!Lt(bt))break;De=bt}if(Me.length&&Lt(_e)&&!lH(_e)&&!At(_e,n.select("floatingElement"))&&Array.from(Me).every(bt=>!At(De,bt)))return;if(On(_e)&&!("touches"in he)){const bt=ci(_e),Xt=cr(_e),wt=/auto|scroll/,Xn=bt||wt.test(Xt.overflowX),Je=bt||wt.test(Xt.overflowY),Mt=Xn&&_e.clientWidth>0&&_e.scrollWidth>_e.clientWidth,it=Je&&_e.clientHeight>0&&_e.scrollHeight>_e.clientHeight,Ds=Xt.direction==="rtl",pr=it&&(Ds?he.offsetX<=_e.offsetWidth-_e.clientWidth:he.offsetX>_e.clientWidth),Po=Mt&&he.offsetY>_e.clientHeight;if(pr||Po)return}const nt=d.current.floatingContext?.nodeId,ot=T&&Ic(T.nodesRef.current,nt).some(bt=>Yr(he,bt.context?.elements.floating));if(Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement"))||ot)return;const Ge=T?Ic(T.nodesRef.current,nt):[];if(Ge.length>0){let bt=!0;if(Ge.forEach(Xt=>{Xt.context?.open&&!Xt.context.dataRef.current.__outsidePressBubbles&&(bt=!1)}),!bt)return}n.setOpen(!1,ln(NP,he)),te()}),ue=Ke(he=>{ge()!=="sloppy"||he.pointerType==="touch"||!n.select("open")||!p||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement"))||ve(he)}),$=Ke(he=>{if(ge()!=="sloppy"||!n.select("open")||!p||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement")))return;const Re=he.touches[0];Re&&(N.current={startTime:Date.now(),startX:Re.clientX,startY:Re.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Q.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}),ee=Ke(he=>{const Re=js(he);function _e(){$(he),Re?.removeEventListener(he.type,_e)}Re?.addEventListener(he.type,_e)}),ye=Ke(he=>{const Re=B.current;if(B.current=!1,Q.clear(),he.type==="mousedown"&&N.current&&!N.current.dismissOnMouseDown)return;const _e=js(he);function Ze(){he.type==="pointerdown"?ue(he):ve(he,Re),_e?.removeEventListener(he.type,Ze)}_e?.addEventListener(he.type,Ze)}),Ee=Ke(he=>{if(ge()!=="sloppy"||!N.current||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement")))return;const Re=he.touches[0];if(!Re)return;const _e=Math.abs(Re.clientX-N.current.startX),Ze=Math.abs(Re.clientY-N.current.startY),Me=Math.sqrt(_e*_e+Ze*Ze);Me>5&&(N.current.dismissOnTouchEnd=!0),Me>10&&(ve(he),Q.clear(),N.current=null)}),xe=Ke(he=>{const Re=js(he);function _e(){Ee(he),Re?.removeEventListener(he.type,_e)}Re?.addEventListener(he.type,_e)}),Se=Ke(he=>{ge()!=="sloppy"||!N.current||Yr(he,n.select("floatingElement"))||Yr(he,n.select("domReferenceElement"))||(N.current.dismissOnTouchEnd&&ve(he),Q.clear(),N.current=null)}),Oe=Ke(he=>{const Re=js(he);function _e(){Se(he),Re?.removeEventListener(he.type,_e)}Re?.addEventListener(he.type,_e)});M.useEffect(()=>{if(!r||!p)return;d.current.__escapeKeyBubbles=j,d.current.__outsidePressBubbles=V;const he=new Eo;function Re(De){n.setOpen(!1,ln(a_,De))}function _e(){he.clear(),F.current=!0}function Ze(){he.start(ug()?5:0,()=>{F.current=!1})}const Me=sn(i);Me.addEventListener("pointerdown",me,!0),v&&(Me.addEventListener("keydown",H),Me.addEventListener("compositionstart",_e),Me.addEventListener("compositionend",Ze)),I&&(Me.addEventListener("click",ye,!0),Me.addEventListener("pointerdown",ye,!0),Me.addEventListener("touchstart",ee,!0),Me.addEventListener("touchmove",xe,!0),Me.addEventListener("touchend",Oe,!0),Me.addEventListener("mousedown",ye,!0));let Ve=[];return x&&(Lt(l)&&(Ve=Ra(l)),Lt(i)&&(Ve=Ve.concat(Ra(i))),!Lt(c)&&c&&c.contextElement&&(Ve=Ve.concat(Ra(c.contextElement)))),Ve=Ve.filter(De=>De!==Me.defaultView?.visualViewport),Ve.forEach(De=>{De.addEventListener("scroll",Re,{passive:!0})}),()=>{Me.removeEventListener("pointerdown",me,!0),v&&(Me.removeEventListener("keydown",H),Me.removeEventListener("compositionstart",_e),Me.removeEventListener("compositionend",Ze)),I&&(Me.removeEventListener("click",ye,!0),Me.removeEventListener("pointerdown",ye,!0),Me.removeEventListener("touchstart",ee,!0),Me.removeEventListener("touchmove",xe,!0),Me.removeEventListener("touchend",Oe,!0),Me.removeEventListener("mousedown",ye,!0)),Ve.forEach(De=>{De.removeEventListener("scroll",Re)}),he.clear(),B.current=!1}},[d,i,c,l,v,I,r,f,x,p,j,V,H,ve,ye,ue,ee,xe,Oe,me,n]),M.useEffect(te,[I,te]);const Fe=M.useMemo(()=>({onKeyDown:H,..._&&{[fq[E]]:he=>{n.setOpen(!1,ln(Pm,he.nativeEvent))},...E!=="intentional"&&{onClick(he){n.setOpen(!1,ln(Pm,he.nativeEvent))}}}}),[H,n,_,E]),be=Ke(he=>{const Re=js(he.nativeEvent);!At(n.select("floatingElement"),Re)||he.button!==0||(B.current=!0)}),tt=Ke(he=>{!r||!p||he.button!==0||(B.current=!0)}),kt=M.useMemo(()=>({onKeyDown:H,onPointerDown:be,onMouseDown:be,onMouseUp:be,onClickCapture:J,onMouseDownCapture(he){J(),tt(he)},onPointerDownCapture(he){J(),tt(he)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[H,be,J,tt]);return M.useMemo(()=>p?{reference:Fe,floating:kt,trigger:Fe}:{},[p,Fe,kt])}var $m=Symbol("NOT_FOUND");function pq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function hq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function mq(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 XT=e=>Array.isArray(e)?e:[e];function gq(e){const t=Array.isArray(e[0])?e[0]:e;return mq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function yq(e,t){const n=[],{length:r}=e;for(let i=0;it(f,p.key));if(d>-1){const p=n[d];return d>0&&(n.splice(d,1),n.unshift(p)),p.value}return $m}function i(f,d){r(f)===$m&&(n.unshift({key:f,value:d}),n.length>e&&n.pop())}function c(){return n}function l(){n=[]}return{get:r,put:i,getEntries:c,clear:l}}var Sq=(e,t)=>e===t;function _q(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let c=0;cc(_.value,v));b&&(v=b.value,f!==0&&f--)}d.put(arguments,v)}return v}return p.clearCache=()=>{d.clear(),p.resetResultsCount()},p.resultsCount=()=>f,p.resetResultsCount=()=>{f=0},p}var xq=class{constructor(e){this.value=e}deref(){return this.value}},wq=typeof WeakRef<"u"?WeakRef:xq,Rq=0,WT=1;function jh(){return{s:Rq,v:void 0,o:null,p:null}}function tk(e,t={}){let n=jh();const{resultEqualityCheck:r}=t;let i,c=0;function l(){let f=n;const{length:d}=arguments;for(let g=0,b=d;g{n=jh(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}function nk(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let c=0,l=0,f,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),pq(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const v={...n,...d},{memoize:g,memoizeOptions:b=[],argsMemoize:_=tk,argsMemoizeOptions:E=[]}=v,x=XT(b),R=XT(E),C=gq(i),T=g(function(){return c++,p.apply(null,arguments)},...x),P=_(function(){l++;const B=yq(C,arguments);return f=T.apply(null,B),f},...R);return Object.assign(P,{resultFunc:p,memoizedResultFunc:T,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:g,argsMemoize:_})};return Object.assign(r,{withTypes:()=>r}),r}var Cq=nk(tk),Aq=Object.assign((e,t=Cq)=>{hq(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(c=>e[c]);return t(r,(...c)=>c.reduce((l,f,d)=>(l[n[d]]=f,l),{}))},{withTypes:()=>Aq});nk({memoize:Eq,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const dt=(e,t,n,r,i,c,...l)=>{if(l.length>0)throw new Error(hi(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var sk=kD();const lS=[];let uS;function Iq(){return uS}function Tq(e){lS.push(e)}function rk(e){const t=(n,r)=>{const i=$r(Mq).current;let c;try{uS=i;for(const l of lS)l.before(i);c=e(n,r);for(const l of lS)l.after(i);i.didInitialize=!0}finally{uS=void 0}return c};return t.displayName=e.displayName||e.name,t}function Oq(e){return M.forwardRef(rk(e))}function Mq(){return{didInitialize:!1}}const Dq=ZS(19),Pq=Dq?Nq:Lq;function ok(e,t,n,r,i){return Pq(e,t,n,r,i)}function kq(e,t,n,r,i){const c=M.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return sk.useSyncExternalStore(e.subscribe,c,c)}Tq({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()}}),sk.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Nq(e,t,n,r,i){const c=Iq();if(!c)return kq(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 Lq(e,t,n,r,i){return ND.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>t(c,n,r,i))}class $q{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 ok(this,t,n,r,i)}}class f_ extends $q{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),ok(this,this.selectors[t],n,r,i)}useContextCallback(t,n){M.useDebugValue(t);const r=Ke(n??GD);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 zq={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 d_ extends f_{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:a7(),nested:n,noEmit:r,triggerElements:c},zq)}setOpen=(t,n)=>{if((!t||!this.state.open||mH(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 Bq(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 Uq(e,t,n,r){const i=n.useState("isMountedByTrigger",e),c=Bq(e,n),l=Ke(f=>{if(c(f),!f||!n.select("open"))return;const d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:f,...r});return}d==null&&n.update({activeTriggerId:e,activeTriggerElement:f,...r})});return Ct(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function ik(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 ak(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=KH(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 i_({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}class mg{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function jq(){return new d_({open:!1,floatingElement:null,referenceElement:null,triggerElements:new mg,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function ck(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:jq(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:or,inactiveTriggerProps:or,popupProps:or}}const Vh=dt(e=>e.triggerIdProp??e.activeTriggerId),lk={open:dt(e=>e.openProp??e.open),mounted:dt(e=>e.mounted),transitionStatus:dt(e=>e.transitionStatus),floatingRootContext:dt(e=>e.floatingRootContext),preventUnmountingOnClose:dt(e=>e.preventUnmountingOnClose),payload:dt(e=>e.payload),activeTriggerId:Vh,activeTriggerElement:dt(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:dt((e,t)=>t!==void 0&&Vh(e)===t),isOpenedByTrigger:dt((e,t)=>t!==void 0&&Vh(e)===t&&e.open),isMountedByTrigger:dt((e,t)=>t!==void 0&&Vh(e)===t&&e.mounted),triggerProps:dt((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:dt(e=>e.popupProps),popupElement:dt(e=>e.popupElement),positionerElement:dt(e=>e.positionerElement)};function Vq(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Od(),c=pg()!=null,l=$r(()=>new d_({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new mg,floatingId:i,nested:c,noEmit:!1})).current;return Ct(()=>{const f={open:t,floatingId:i};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=Lt(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=c,l.context.noEmit=!1,l}function Hq(e={}){const{nodeId:t,externalTree:n}=e,r=Vq(e),i=e.rootContext||r,c={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,f]=M.useState(null),d=M.useRef(null),p=Pd(n);Ct(()=>{c.domReference&&(d.current=c.domReference)},[c.domReference]);const v=rq({...e,elements:{...c,...l&&{reference:l}}}),g=M.useCallback(V=>{const N=Lt(V)?{getBoundingClientRect:()=>V.getBoundingClientRect(),getClientRects:()=>V.getClientRects(),contextElement:V}:V;f(N),v.refs.setReference(N)},[v.refs]),[b,_]=M.useState(null),[E,x]=M.useState(null);i.useSyncedValue("referenceElement",b),i.useSyncedValue("domReferenceElement",Lt(b)?b:null),i.useSyncedValue("floatingElement",E);const R=M.useCallback(V=>{(Lt(V)||V===null)&&(d.current=V,_(V)),(Lt(v.refs.reference.current)||v.refs.reference.current===null||V!==null&&!Lt(V))&&v.refs.setReference(V)},[v.refs,_]),C=M.useCallback(V=>{x(V),v.refs.setFloating(V)},[v.refs]),T=M.useMemo(()=>({...v.refs,setReference:R,setFloating:C,setPositionReference:g,domReference:d}),[v.refs,R,C,g]),P=M.useMemo(()=>({...v.elements,domReference:c.domReference}),[v.elements,c.domReference]),I=i.useState("open"),B=i.useState("floatingId"),j=M.useMemo(()=>({...v,dataRef:i.context.dataRef,open:I,onOpenChange:i.setOpen,events:i.context.events,floatingId:B,refs:T,elements:P,nodeId:t,rootStore:i}),[v,T,P,t,i,I,B]);return Ct(()=>{i.context.dataRef.current.floatingContext=j;const V=p?.nodesRef.current.find(N=>N.id===t);V&&(V.context=j)}),M.useMemo(()=>({...v,context:j,refs:T,elements:P,rootStore:i}),[v,T,P,j,i])}function uk(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,c=Od(),l=pg()!=null,f=t.useState("open"),d=t.useState("activeTriggerElement"),p=t.useState(r?"popupElement":"positionerElement"),v=t.context.triggerElements,g=$r(()=>new d_({open:f,referenceElement:d,floatingElement:p,triggerElements:v,onOpenChange:i,floatingId:c,nested:l,noEmit:n})).current;return Ct(()=>{const b={open:f,floatingId:c,referenceElement:d,floatingElement:p};Lt(d)&&(b.domReferenceElement=d),g.state.positionReference===g.state.referenceElement&&(b.positionReference=d),g.update(b)},[f,c,d,p,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const Jv=oH&&vP;function qq(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:c=!0,delay:l}=t,f=M.useRef(!1),d=M.useRef(null),p=lu(),v=M.useRef(!0);M.useEffect(()=>{const b=n.select("domReferenceElement");if(!c)return;const _=Pn(b);function E(){const C=n.select("domReferenceElement");!n.select("open")&&On(C)&&C===si(sn(C))&&(f.current=!0)}function x(){v.current=!0}function R(){v.current=!1}return _.addEventListener("blur",E),Jv&&(_.addEventListener("keydown",x,!0),_.addEventListener("pointerdown",R,!0)),()=>{_.removeEventListener("blur",E),Jv&&(_.removeEventListener("keydown",x,!0),_.removeEventListener("pointerdown",R,!0))}},[n,c]),M.useEffect(()=>{if(!c)return;function b(_){if(_.reason===Pm||_.reason===c_){const E=n.select("domReferenceElement");Lt(E)&&(d.current=E,f.current=!0)}}return r.on("openchange",b),()=>{r.off("openchange",b)}},[r,c,n]);const g=M.useMemo(()=>({onMouseLeave(){f.current=!1,d.current=null},onFocus(b){const _=b.currentTarget;if(f.current){if(d.current===_)return;f.current=!1,d.current=null}const E=js(b.nativeEvent);if(Lt(E)){if(Jv&&!b.relatedTarget){if(!v.current&&!t_(E))return}else if(!uH(E))return}const x=Rm(b.relatedTarget,n.context.triggerElements),{nativeEvent:R,currentTarget:C}=b,T=typeof l=="function"?l():l;if(n.select("open")&&x||T===0||T===void 0){n.setOpen(!0,ln(om,R,C));return}p.start(T,()=>{f.current||n.setOpen(!0,ln(om,R,C))})},onBlur(b){f.current=!1,d.current=null;const _=b.relatedTarget,E=b.nativeEvent,x=Lt(_)&&_.hasAttribute(du("focus-guard"))&&_.getAttribute("data-type")==="outside";p.start(0,()=>{const R=n.select("domReferenceElement"),C=si(R?R.ownerDocument:document);!_&&C===R||At(i.current.floatingContext?.refs.floating.current,C)||At(R,C)||x||Rm(_??C,n.context.triggerElements)||n.setOpen(!1,ln(om,E))})}}),[i,n,p,l]);return M.useMemo(()=>c?{reference:g,trigger:g}:{},[c,g])}const fS=du("safe-polygon"),Fq=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${EP}`;function Gq(e){return e?!!e.closest(Fq):!1}class p_{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 p_}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function fk(e){const t=$r(p_.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),e_(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}const Kq=new Set(["click","mousedown"]);function Zq(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:f=!0,closeDelay:d=0}=t,p=fk(n),v=Pd(),g=pg(),b=Ke(()=>p.interactedInside?!0:l.current.openEvent?Kq.has(l.current.openEvent.type):!1),_=Ke(()=>{const P=l.current.openEvent?.type;return P?.includes("mouse")&&P!=="mousedown"}),E=Ke(P=>Rm(P,n.context.triggerElements)),x=M.useCallback((P,I=!0)=>{const B=Qq(d,p.pointerType);B&&!p.handler?p.openChangeTimeout.start(B,()=>n.setOpen(!1,ln(no,P))):I&&(p.openChangeTimeout.clear(),n.setOpen(!1,ln(no,P)))},[d,n,p]),R=Ke(()=>{p.unbindMouseMove(),p.handler=void 0}),C=Ke(()=>{if(p.performedPointerEventsMutation){const P=sn(i).body;P.style.pointerEvents="",P.removeAttribute(fS),p.performedPointerEventsMutation=!1}}),T=Ke(P=>{const I=js(P);if(!Gq(I)){p.interactedInside=!1;return}p.interactedInside=!0});Ct(()=>{r||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,R(),C())},[r,p,R,C]),M.useEffect(()=>()=>{R()},[R]),M.useEffect(()=>C,[C]),Ct(()=>{if(f&&r&&p.handleCloseOptions?.blockPointerEvents&&_()&&Lt(c)&&i){p.performedPointerEventsMutation=!0;const P=sn(i).body;P.setAttribute(fS,"");const I=c,B=i,j=v?.nodesRef.current.find(V=>V.id===g)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),P.style.pointerEvents="none",I.style.pointerEvents="auto",B.style.pointerEvents="auto",()=>{P.style.pointerEvents="",I.style.pointerEvents="",B.style.pointerEvents=""}}},[f,r,c,i,p,_,v,g]),M.useEffect(()=>{if(!f)return;function P(V){b()||!l.current.floatingContext||!n.select("open")||E(V.relatedTarget)||(C(),R(),b()||x(V))}function I(V){p.openChangeTimeout.clear(),C(),p.handler?.(V),R()}function B(V){b()||x(V,!1)}const j=i;return j&&(j.addEventListener("mouseleave",P),j.addEventListener("mouseenter",I),j.addEventListener("mouseleave",B),j.addEventListener("pointerdown",T,!0)),()=>{j&&(j.removeEventListener("mouseleave",P),j.removeEventListener("mouseenter",I),j.removeEventListener("mouseleave",B),j.removeEventListener("pointerdown",T,!0))}},[f,i,n,l,b,E,x,C,R,T,p])}function Qq(e,t){return t&&!vd(t)?0:typeof e=="function"?e():e}function eb(e){return typeof e=="function"?e():e}const Yq={current:null};function Xq(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:c=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:p=0,move:v=!0,triggerElementRef:g=Yq,externalTree:b,isActiveTrigger:_=!0}=t,E=Pd(b),x=fk(n),R=ho(f),C=ho(l),T=ho(p),P=ho(c);_&&(x.handleCloseOptions=R.current?.__options);const I=Ke(()=>x.interactedInside?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),B=Ke(ne=>Rm(ne,n.context.triggerElements)),j=M.useCallback((ne,te=!0)=>{const F=im(C.current,"close",x.pointerType);F&&!x.handler?x.openChangeTimeout.start(F,()=>n.setOpen(!1,ln(no,ne))):te&&(x.openChangeTimeout.clear(),n.setOpen(!1,ln(no,ne)))},[C,n,x]),V=Ke(()=>{x.unbindMouseMove(),x.handler=void 0}),N=Ke(()=>{if(x.performedPointerEventsMutation){const ne=sn(n.select("domReferenceElement")).body;ne.style.pointerEvents="",ne.removeAttribute(fS),x.performedPointerEventsMutation=!1}});M.useEffect(()=>{if(!c)return;function ne(te){te.open||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return i.on("openchange",ne),()=>{i.off("openchange",ne)}},[c,i,x]);const Q=Ke(ne=>{if(I()||!r.current.floatingContext||B(ne.relatedTarget))return;const te=g.current;R.current?.({...r.current.floatingContext,tree:E,x:ne.clientX,y:ne.clientY,onClose(){N(),V(),!I()&&te===n.select("domReferenceElement")&&j(ne)}})(ne)});return M.useEffect(()=>{if(!c)return;const ne=g.current??(_?n.select("domReferenceElement"):null);if(!Lt(ne))return;function te(me){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,d&&!vd(x.pointerType)||eb(T.current)>0&&!im(C.current,"open"))return;const ge=im(C.current,"open",x.pointerType),H=n.select("domReferenceElement"),re=n.context.triggerElements,J=(re.hasElement(me.target)||re.hasMatchingElement(ee=>At(ee,me.target)))&&(!H||!At(H,me.target)),ve=me.currentTarget??null,ue=n.select("open"),$=!ue||J;J&&ue?n.setOpen(!0,ln(no,me,ve)):ge?x.openChangeTimeout.start(ge,()=>{$&&n.setOpen(!0,ln(no,me,ve))}):$&&n.setOpen(!0,ln(no,me,ve))}function F(me){if(I()){N();return}x.unbindMouseMove();const ge=n.select("domReferenceElement"),H=sn(ge);if(x.restTimeout.clear(),x.restTimeoutPending=!1,B(me.relatedTarget))return;if(R.current&&r.current.floatingContext){n.select("open")||x.openChangeTimeout.clear();const J=g.current;x.handler=R.current({...r.current.floatingContext,tree:E,x:me.clientX,y:me.clientY,onClose(){N(),V(),P.current&&!I()&&J===n.select("domReferenceElement")&&j(me,!0)}});const ve=x.handler;ve(me),H.addEventListener("mousemove",ve),x.unbindMouseMove=()=>{H.removeEventListener("mousemove",ve)};return}(x.pointerType!=="touch"||!At(n.select("floatingElement"),me.relatedTarget))&&j(me)}function oe(me){Q(me)}return n.select("open")&&ne.addEventListener("mouseleave",oe),v&&ne.addEventListener("mousemove",te,{once:!0}),ne.addEventListener("mouseenter",te),ne.addEventListener("mouseleave",F),()=>{ne.removeEventListener("mouseleave",oe),v&&ne.removeEventListener("mousemove",te),ne.removeEventListener("mouseenter",te),ne.removeEventListener("mouseleave",F)}},[V,N,r,C,j,n,c,R,Q,x,_,I,B,d,v,T,g,E,P]),M.useMemo(()=>{if(!c)return;function ne(te){x.pointerType=te.pointerType}return{onPointerDown:ne,onPointerEnter:ne,onMouseMove(te){const{nativeEvent:F}=te,oe=te.currentTarget,me=n.select("domReferenceElement"),ge=n.context.triggerElements,H=n.select("open"),re=(ge.hasElement(te.target)||ge.hasMatchingElement(ve=>At(ve,te.target)))&&(!me||!At(me,te.target));if(d&&!vd(x.pointerType)||H&&!re||eb(T.current)===0||!re&&x.restTimeoutPending&&te.movementX**2+te.movementY**2<2)return;x.restTimeout.clear();function J(){if(x.restTimeoutPending=!1,I())return;const ve=n.select("open");!x.blockMouseMove&&(!ve||re)&&n.setOpen(!0,ln(no,F,oe))}x.pointerType==="touch"?Oa.flushSync(()=>{J()}):re&&H?J():(x.restTimeoutPending=!0,x.restTimeout.start(eb(T.current),J))}}},[c,x,I,d,n,T])}function dk(e=[]){const t=e.map(p=>p?.reference),n=e.map(p=>p?.floating),r=e.map(p=>p?.item),i=e.map(p=>p?.trigger),c=M.useCallback(p=>Hh(p,e,"reference"),t),l=M.useCallback(p=>Hh(p,e,"floating"),n),f=M.useCallback(p=>Hh(p,e,"item"),r),d=M.useCallback(p=>Hh(p,e,"trigger"),i);return M.useMemo(()=>({getReferenceProps:c,getFloatingProps:l,getItemProps:f,getTriggerProps:d}),[c,l,f,d])}function Hh(e,t,n){const r=new Map,i=n==="item",c={};n==="floating"&&(c.tabIndex=-1,c[sS]="");for(const l in e)i&&e&&(l===SP||l===_P)||(c[l]=e[l]);for(let l=0;lr.get(i)?.map(f=>f(...l)).find(f=>f!==void 0))):e[i]=c)}}const Wq=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Jq(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),c=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{role:f="dialog"}=t,d=Od(),p=c?.id||d,v=M.useMemo(()=>rS(l)?.id||i,[l,i]),g=Wq.get(f)??f,_=pg()!=null,E=M.useMemo(()=>g==="tooltip"||f==="label"?or:{"aria-haspopup":g==="alertdialog"?"dialog":g,"aria-expanded":"false",...g==="listbox"&&{role:"combobox"},...g==="menu"&&_&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[g,_,f]),x=M.useMemo(()=>g==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?v:void 0}:{...E,"aria-expanded":r?"true":"false","aria-controls":r?v:void 0,...g==="menu"&&{id:p}},[g,v,r,p,f,E]),R=M.useMemo(()=>{const T={id:v,...g&&{role:g}};return g==="tooltip"||f==="label"?T:{...T,...g==="menu"&&{"aria-labelledby":p}}},[g,v,p,f]),C=M.useCallback(({active:T,selected:P})=>{const I={role:"option",...T&&{id:`${v}-fui-option`}};switch(f){case"select":case"combobox":return{...I,"aria-selected":P}}return{}},[v,f]);return M.useMemo(()=>({reference:x,floating:R,item:C,trigger:E}),[x,R,E,C])}function e2(e,t){const[n,r]=e;let i=!1;const c=t.length;for(let l=0,f=c-1;l=r!=g>=r&&n<=(v-d)*(r-p)/(g-p)+d&&(i=!i)}return i}function eF(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function tF(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Eo;let c=!1,l=null,f=null,d=typeof performance<"u"?performance.now():0;function p(g,b){const _=performance.now(),E=_-d;if(l===null||f===null||E===0)return l=g,f=b,d=_,null;const x=g-l,R=b-f,T=Math.sqrt(x*x+R*R)/E;return l=g,f=b,d=_,T}const v=({x:g,y:b,placement:_,elements:E,onClose:x,nodeId:R,tree:C})=>function(P){function I(){i.clear(),x()}if(i.clear(),!E.domReference||!E.floating||_==null||g==null||b==null)return;const{clientX:B,clientY:j}=P,V=[B,j],N=js(P),Q=P.type==="mouseleave",ne=At(E.floating,N),te=At(E.domReference,N),F=E.domReference.getBoundingClientRect(),oe=E.floating.getBoundingClientRect(),me=_.split("-")[0],ge=g>oe.right-oe.width/2,H=b>oe.bottom-oe.height/2,re=eF(V,F),J=oe.width>F.width,ve=oe.height>F.height,ue=(J?F:oe).left,$=(J?F:oe).right,ee=(ve?F:oe).top,ye=(ve?F:oe).bottom;if(ne&&(c=!0,!Q))return;if(te&&(c=!1),te&&!Q){c=!0;return}if(Q&&Lt(P.relatedTarget)&&At(E.floating,P.relatedTarget)||C&&Ic(C.nodesRef.current,R).some(({context:Se})=>Se?.open))return;if(me==="top"&&b>=F.bottom-1||me==="bottom"&&b<=F.top+1||me==="left"&&g>=F.right-1||me==="right"&&g<=F.left+1)return I();let Ee=[];switch(me){case"top":Ee=[[ue,F.top+1],[ue,oe.bottom-1],[$,oe.bottom-1],[$,F.top+1]];break;case"bottom":Ee=[[ue,oe.top+1],[ue,F.bottom-1],[$,F.bottom-1],[$,oe.top+1]];break;case"left":Ee=[[oe.right-1,ye],[oe.right-1,ee],[F.left+1,ee],[F.left+1,ye]];break;case"right":Ee=[[F.right-1,ye],[F.right-1,ee],[oe.left+1,ee],[oe.left+1,ye]];break}function xe([Se,Oe]){switch(me){case"top":{const Fe=[J?Se+t/2:ge?Se+t*4:Se-t*4,Oe+t+1],be=[J?Se-t/2:ge?Se+t*4:Se-t*4,Oe+t+1],tt=[[oe.left,ge||J?oe.bottom-t:oe.top],[oe.right,ge?J?oe.bottom-t:oe.top:oe.bottom-t]];return[Fe,be,...tt]}case"bottom":{const Fe=[J?Se+t/2:ge?Se+t*4:Se-t*4,Oe-t],be=[J?Se-t/2:ge?Se+t*4:Se-t*4,Oe-t],tt=[[oe.left,ge||J?oe.top+t:oe.bottom],[oe.right,ge?J?oe.top+t:oe.bottom:oe.top+t]];return[Fe,be,...tt]}case"left":{const Fe=[Se+t+1,ve?Oe+t/2:H?Oe+t*4:Oe-t*4],be=[Se+t+1,ve?Oe-t/2:H?Oe+t*4:Oe-t*4];return[...[[H||ve?oe.right-t:oe.left,oe.top],[H?ve?oe.right-t:oe.left:oe.right-t,oe.bottom]],Fe,be]}case"right":{const Fe=[Se-t,ve?Oe+t/2:H?Oe+t*4:Oe-t*4],be=[Se-t,ve?Oe-t/2:H?Oe+t*4:Oe-t*4],tt=[[H||ve?oe.left+t:oe.right,oe.top],[H?ve?oe.left+t:oe.right:oe.left+t,oe.bottom]];return[Fe,be,...tt]}default:return[]}}if(!e2([B,j],Ee)){if(c&&!re)return I();if(!Q&&r){const Se=p(P.clientX,P.clientY);if(Se!==null&&Se<.1)return I()}e2([B,j],xe([g,b]))?!c&&r&&i.start(40,I):I()}};return v.__options={blockPointerEvents:n},v}let nF=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),sF=(function(e){return e[e.open=Rc.open]="open",e[e.closed=Rc.closed]="closed",e[e.startingStyle=Rc.startingStyle]="startingStyle",e[e.endingStyle=Rc.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const pk=M.createContext(void 0);function rF(){const e=M.useContext(pk);if(e===void 0)throw new Error(hi(26));return e}const hk="ArrowUp",mk="ArrowDown",gk="ArrowLeft",yk="ArrowRight",vk="Home",bk="End",oF=new Set([gk,yk]),iF=new Set([hk,mk]),aF=new Set([...oF,...iF]);[...aF];const cF=new Set([hk,mk,gk,yk,vk,bk]),lF={...Dd,...o_,nestedDialogOpen(e){return e?{[sF.nestedDialogOpen]:""}:null}},uF=M.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:c,render:l,...f}=t,{store:d}=jc(),p=d.useState("descriptionElementId"),v=d.useState("disablePointerDismissal"),g=d.useState("floatingRootContext"),b=d.useState("popupProps"),_=d.useState("modal"),E=d.useState("mounted"),x=d.useState("nested"),R=d.useState("nestedOpenDialogCount"),C=d.useState("open"),T=d.useState("openMethod"),P=d.useState("titleElementId"),I=d.useState("transitionStatus"),B=d.useState("role");rF(),i_({open:C,ref:d.context.popupRef,onComplete(){C&&d.context.onOpenChangeComplete?.(!0)}});function j(te){return te==="touch"?d.context.popupRef.current:!0}const V=c===void 0?j:c,N=R>0,ne=zr("div",t,{state:{open:C,nested:x,transitionStatus:I,nestedDialogOpen:N},props:[b,{"aria-labelledby":P??void 0,"aria-describedby":p??void 0,role:B,tabIndex:-1,hidden:!E,onKeyDown(te){cF.has(te.key)&&te.stopPropagation()},style:{[nF.nestedDialogs]:R}},f],ref:[n,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:lF});return k.jsx(_7,{context:g,openInteractionType:T,disabled:!E,closeOnFocusOut:!v,initialFocus:V,returnFocus:i,modal:_!==!1,restoreFocus:"popup",children:ne})});function fF(e){return ZS(19)?e:e?"true":void 0}const dF=M.forwardRef(function(t,n){const{cutout:r,...i}=t;let c;if(r){const l=r?.getBoundingClientRect();c=`polygon( +`+u.stack}}var nt=Object.prototype.hasOwnProperty,ot=e.unstable_scheduleCallback,Ge=e.unstable_cancelCallback,bt=e.unstable_shouldYield,Xt=e.unstable_requestPaint,wt=e.unstable_now,Xn=e.unstable_getCurrentPriorityLevel,Je=e.unstable_ImmediatePriority,Mt=e.unstable_UserBlockingPriority,it=e.unstable_NormalPriority,Ds=e.unstable_LowPriority,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%, @@ -18,64 +18,64 @@ Error generating stack: `+u.message+` ${l.right}px ${l.bottom}px, ${l.right}px ${l.top}px, ${l.left}px ${l.top}px - )`}return k.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),pF=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:c}=jc(),l=c.useState("mounted"),f=c.useState("modal"),d=c.useState("open");return l||r?k.jsx(pk.Provider,{value:r,children:k.jsxs(g7,{ref:n,...i,children:[l&&f===!0&&k.jsx(dF,{ref:c.context.internalBackdropRef,inert:fF(!d)}),t.children]})}):null});function Sk(e){const t=M.useRef(!0);t.current&&(t.current=!1,e())}let t2={},n2={},s2="";function hF(e){if(typeof document>"u")return!1;const t=sn(e);return Pn(t).innerWidth-t.documentElement.clientWidth>0}function mF(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=sn(e),r=n.documentElement,i=n.body,c=Da(r)?r:i,l=c.style.overflowY,f=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",c.style.overflowY="scroll";const d=c.offsetWidth;c.style.overflowY="hidden";const p=c.offsetWidth;return c.style.overflowY=l,r.style.scrollbarGutter=f,d===p}function gF(e){const t=sn(e),n=t.documentElement,r=t.body,i=Da(n)?n:r,c={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,c)}}function yF(e){const t=sn(e),n=t.documentElement,r=t.body,i=Pn(n);let c=0,l=0,f=!1;const d=po.create();if(gP&&(i.visualViewport?.scale??1)!==1)return()=>{};function p(){const b=i.getComputedStyle(n),_=i.getComputedStyle(r),R=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=n.scrollTop,l=n.scrollLeft,t2={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},s2=n.style.scrollBehavior,n2={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const C=n.scrollHeight>n.clientHeight,T=n.scrollWidth>n.clientWidth,P=b.overflowY==="scroll"||_.overflowY==="scroll",I=b.overflowX==="scroll"||_.overflowX==="scroll",B=Math.max(0,i.innerWidth-r.clientWidth),j=Math.max(0,i.innerHeight-r.clientHeight),V=parseFloat(_.marginTop)+parseFloat(_.marginBottom),N=parseFloat(_.marginLeft)+parseFloat(_.marginRight),Q=Da(n)?n:r;if(f=mF(e),f){n.style.scrollbarGutter=R,Q.style.overflowY="hidden",Q.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:R,overflowY:"hidden",overflowX:"hidden"}),(C||P)&&(n.style.overflowY="scroll"),(T||I)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:V||j?`calc(100dvh - ${V+j}px)`:"100dvh",width:N||B?`calc(100vw - ${N+B}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=c,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function v(){Object.assign(n.style,t2),Object.assign(r.style,n2),f||(n.scrollTop=c,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=s2)}function g(){v(),d.request(p)}return p(),i.addEventListener("resize",g),()=>{d.cancel(),v(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class vF{lockCount=0;restore=null;timeoutLock=Eo.create();timeoutUnlock=Eo.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=sn(t).documentElement,i=Pn(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=GD;return}const c=yP||!hF(t);this.restore=c?gF(t):yF(t)}}const bF=new vF;function SF(e=!0,t=null){Ct(()=>{if(e)return bF.acquire(t)},[e,t])}function _F(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 EF(e){const[t,n]=M.useState(null),r=Ke((f,d)=>{e||n(d||(yP?"touch":""))}),i=M.useCallback(()=>{n(null)},[]),{onClick:c,onPointerDown:l}=_F(r);return M.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:c,onPointerDown:l}}),[t,i,c,l])}function xF(e){const{store:t,parentContext:n,actionsRef:r}=e,i=t.useState("open"),c=t.useState("disablePointerDismissal"),l=t.useState("modal"),f=t.useState("popupElement"),{openMethod:d,triggerProps:p,reset:v}=EF(i);ik(t);const{forceUnmount:g}=ak(i,t,()=>{v()}),b=Ke(ne=>{const te=ln(ne);return te.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},te}),_=M.useCallback(()=>{t.setOpen(!1,b($P))},[t,b]);M.useImperativeHandle(r,()=>({unmount:g,close:_}),[g,_]);const E=uk({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[x,R]=M.useState(0),C=x===0,T=Jq(E),P=ek(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});SF(i&&l===!0,f);const{getReferenceProps:I,getFloatingProps:B,getTriggerProps:j}=dk([T,P]);t.useContextCallback("onNestedDialogOpen",ne=>{R(ne+1)}),t.useContextCallback("onNestedDialogClose",()=>{R(0)}),M.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(x),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,x]);const V=M.useMemo(()=>I(p),[I,p]),N=M.useMemo(()=>j(p),[j,p]),Q=M.useMemo(()=>B(),[B]);t.useSyncedValues({openMethod:d,activeTriggerProps:V,inactiveTriggerProps:N,popupProps:Q,floatingRootContext:E,nestedOpenDialogCount:x})}const wF={...lk,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 RF extends f_{constructor(t){super(CF(t),{popupRef:M.createRef(),backdropRef:M.createRef(),internalBackdropRef:M.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new mg,onOpenChange:void 0,onOpenChangeComplete:void 0},wF)}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 CF(e={}){return{...ck(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function AF(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:c,disablePointerDismissal:l=!1,modal:f=!0,actionsRef:d,handle:p,triggerId:v,defaultTriggerId:g=null}=e,b=jc(!0),_=!!b,E=$r(()=>p?.store??new RF({open:r,openProp:n,activeTriggerId:g,triggerIdProp:v,modal:f,disablePointerDismissal:l,nested:_})).current;Sk(()=>{n===void 0&&E.state.open===!1&&r===!0&&E.update({open:!0,activeTriggerId:g})}),E.useControlledProp("openProp",n),E.useControlledProp("triggerIdProp",v),E.useSyncedValues({disablePointerDismissal:l,nested:_,modal:f}),E.useContextCallback("onOpenChange",i),E.useContextCallback("onOpenChangeComplete",c);const x=E.useState("payload");xF({store:E,actionsRef:d,parentContext:b?.store.context});const R=M.useMemo(()=>({store:E}),[E]);return k.jsx(zP.Provider,{value:R,children:typeof t=="function"?t({payload:x}):t})}const IF=M.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=jc(),d=JS(c);return f.useSyncedValueWithCleanup("titleElementId",d),zr("h2",t,{ref:n,props:[{id:d},l]})});function TF(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(AF,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}function OF(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(pF,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}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("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(s7,{className:i,"data-slot":"sheet-overlay",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function DF(e){const t=qt.c(17);let n,r,i,c,l;t[0]!==e?({className:r,children:n,side:c,showCloseButton:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5]);const f=c===void 0?"right":c,d=l===void 0?!0:l;let p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(MF,{}),t[6]=p):p=t[6];let v;t[7]!==r?(v=bn("data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",r),t[7]=r,t[8]=v):v=t[8];let g;t[9]!==d?(g=d&&k.jsxs(r7,{"data-slot":"sheet-close",render:k.jsx(cu,{className:"absolute top-4 right-4",size:"icon-sm",variant:"ghost"}),children:[k.jsx(V9,{}),k.jsx("span",{className:"sr-only",children:"Close"})]}),t[9]=d,t[10]=g):g=t[10];let b;return t[11]!==n||t[12]!==i||t[13]!==f||t[14]!==v||t[15]!==g?(b=k.jsxs(OF,{children:[p,k.jsxs(uF,{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 PF(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 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("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(IF,{className:i,"data-slot":"sheet-title",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function NF(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(o7,{className:i,"data-slot":"sheet-description",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const _k=M.createContext(void 0);function kd(e){const t=M.useContext(_k);if(t===void 0&&!e)throw new Error(hi(72));return t}const LF={...lk,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 h_ extends f_{constructor(t){super({...$F(),...t},{popupRef:M.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new mg},LF)}setOpen=(t,n)=>{const r=n.reason,i=r===no,c=t&&r===om,l=!t&&(r===Pm||r===c_);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const f=()=>{const d={open:t,openChangeReason:r};c?d.instantType="focus":l?d.instantType="dismiss":r===no&&(d.instantType=void 0);const p=n.trigger?.id??null;(p||t)&&(d.activeTriggerId=p,d.activeTriggerElement=n.trigger??null),this.update(d)};i?Oa.flushSync(f):f()};static useStore(t,n){const r=$r(()=>new h_(n)).current,i=t??r,c=uk({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=c,i}}function $F(){return{...ck(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const zF=rk(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:c=!1,trackCursorAxis:l="none",actionsRef:f,onOpenChange:d,onOpenChangeComplete:p,handle:v,triggerId:g,defaultTriggerId:b=null,children:_}=t,E=h_.useStore(v?.store,{open:r,openProp:i,activeTriggerId:b,triggerIdProp:g});Sk(()=>{i===void 0&&E.state.open===!1&&r===!0&&E.update({open:!0,activeTriggerId:b})}),E.useControlledProp("openProp",i),E.useControlledProp("triggerIdProp",g),E.useContextCallback("onOpenChange",d),E.useContextCallback("onOpenChangeComplete",p);const x=E.useState("open"),R=!n&&x,C=E.useState("activeTriggerId"),T=E.useState("payload");E.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:c}),Ct(()=>{x&&n&&E.setOpen(!1,ln(QH))},[x,n,E]),E.useSyncedValue("disabled",n),ik(E);const{forceUnmount:P,transitionStatus:I}=ak(R,E),B=E.useState("isInstantPhase"),j=E.useState("instantType"),V=E.useState("lastOpenChangeReason"),N=M.useRef(null);Ct(()=>{I==="ending"&&V===a_||I!=="ending"&&B?(j!=="delay"&&(N.current=j),E.set("instantType","delay")):N.current!==null&&(E.set("instantType",N.current),N.current=null)},[I,B,V,j,E]),Ct(()=>{R&&C==null&&E.set("payload",void 0)},[E,C,R]);const Q=M.useCallback(()=>{E.setOpen(!1,BF(E,$P))},[E]);M.useImperativeHandle(f,()=>({unmount:P,close:Q}),[P,Q]);const ne=E.useState("floatingRootContext"),te=ek(ne,{enabled:!n,referencePress:!0}),F=x7(ne,{enabled:!n&&l!=="none",axis:l==="none"?void 0:l}),{getReferenceProps:oe,getFloatingProps:me,getTriggerProps:ge}=dk([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(_k.Provider,{value:E,children:typeof _=="function"?_({payload:T}):_})});function BF(e,t){const n=ln(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const Ek=M.createContext(void 0);function UF(){return M.useContext(Ek)}let jF=(function(e){return e[e.popupOpen=km.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const VF=600,HF=Oq(function(t,n){const{className:r,render:i,handle:c,payload:l,disabled:f,delay:d,closeDelay:p,id:v,...g}=t,b=kd(!0),_=c?.store??b;if(!_)throw new Error(hi(82));const E=JS(v),x=_.useState("isTriggerActive",E),R=_.useState("isOpenedByTrigger",E),C=_.useState("floatingRootContext"),T=M.useRef(null),P=d??VF,I=p??0,{registerTrigger:B,isMountedByThisTrigger:j}=Uq(E,T,_,{payload:l,closeDelay:I}),V=UF(),{delayRef:N,isInstantPhase:Q,hasProvider:ne}=f7(C,{open:R});_.useSyncedValue("isInstantPhase",Q);const te=_.useState("disabled"),F=f??te,oe=_.useState("trackCursorAxis"),me=_.useState("disableHoverablePopup"),ge=Xq(C,{enabled:!F,mouseOnly:!0,move:!1,handleClose:!me&&oe!=="both"?tF():null,restMs(){const ue=V?.delay,$=typeof N.current=="object"?N.current.open:void 0;let ee=P;return ne&&($!==0?ee=d??ue??P:ee=0),ee},delay(){const ue=typeof N.current=="object"?N.current.close:void 0;let $=I;return p==null&&ne&&($=ue),{close:$}},triggerElementRef:T,isActiveTrigger:x}),H=qq(C,{enabled:!F}).reference,re={open:R},J=_.useState("triggerProps",j);return zr("button",t,{state:re,ref:[n,B,T],props:[ge,H,J,{id:E,[jF.triggerDisabled]:F?"":void 0},g],stateAttributesMapping:t7})}),xk=M.createContext(void 0);function qF(){const e=M.useContext(xk);if(e===void 0)throw new Error(hi(70));return e}const FF=M.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,...f}=t,{portalNode:d,portalSubtree:p}=FP({container:i,ref:n,componentProps:t,elementProps:f});return!p&&!d?null:k.jsxs(M.Fragment,{children:[p,d&&Oa.createPortal(r,d)]})}),GF=M.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return kd().useState("mounted")||r?k.jsx(xk.Provider,{value:r,children:k.jsx(FF,{ref:n,...i})}):null}),wk=M.createContext(void 0);function Rk(){const e=M.useContext(wk);if(e===void 0)throw new Error(hi(71));return e}const KF=M.createContext(void 0);function ZF(){return M.useContext(KF)?.direction??"ltr"}const QF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:c,platform:l,elements:f,middlewareData:d}=t,{element:p,padding:v=0,offsetParent:g="real"}=fi(e,t)||{};if(p==null)return{};const b=xP(v),_={x:n,y:r},E=r_(i),x=s_(E),R=await l.getDimensions(p),C=E==="y",T=C?"top":"left",P=C?"bottom":"right",I=C?"clientHeight":"clientWidth",B=c.reference[x]+c.reference[E]-_[E]-c.floating[x],j=_[E]-c.reference[E],V=g==="real"?await l.getOffsetParent?.(p):f.floating;let N=f.floating[I]||c.floating[x];(!N||!await l.isElement?.(V))&&(N=f.floating[I]||c.floating[x]);const Q=B/2-j/2,ne=N/2-R[x]/2-1,te=Math.min(b[T],ne),F=Math.min(b[P],ne),oe=te,me=N-R[x]-F,ge=N/2-R[x]/2+Q,H=oS(oe,ge,me),re=!d.arrow&&ka(i)!=null&&ge!==H&&c.reference[x]/2-(ge({...QF(e),options:[e,t]}),XF={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 uq().fn(e)).data?.referenceHidden||c}}}},cm={sideX:"left",sideY:"top"},WF={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:c,strategy:l,placement:f}=e,d=Pn(i),p=d.getComputedStyle(i);if(!(p.transitionDuration!=="0s"&&p.transitionDuration!==""))return{x:t,y:n,data:cm};const g=await c.getOffsetParent?.(i);let b={width:0,height:0};if(l==="fixed"&&d?.visualViewport)b={width:d.visualViewport.width,height:d.visualViewport.height};else if(g===d){const T=sn(i);b={width:T.documentElement.clientWidth,height:T.documentElement.clientHeight}}else await c.isElement?.(g)&&(b=await c.getDimensions(g));const _=qs(f);let E=t,x=n;_==="left"&&(E=b.width-(t+r.width)),_==="top"&&(x=b.height-(n+r.height));const R=_==="left"?"right":cm.sideX,C=_==="top"?"bottom":cm.sideY;return{x:E,y:x,data:{sideX:R,sideY:C}}}};function Ck(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 r2(e,t,n){const{rects:r,placement:i}=e;return{side:Ck(t,qs(i),n),align:ka(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function JF(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:d=5,sticky:p=!1,arrowPadding:v=5,disableAnchorTracking:g=!1,keepMounted:b=!1,floatingRootContext:_,mounted:E,collisionAvoidance:x,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:T,lazyFlip:P=!1,externalTree:I}=e,[B,j]=M.useState(null);!E&&B!==null&&j(null);const V=x.side||"flip",N=x.align||"flip",Q=x.fallbackAxisSide||"end",ne=typeof t=="function"?t:void 0,te=Ke(ne),F=ne?te:t,oe=ho(t),ge=ZF()==="rtl",H=B||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ge?"left":"right","inline-start":ge?"right":"left"}[r],re=c==="center"?H:`${H}-${c}`;let J=d;const ve=1,ue=r==="bottom"?ve:0,$=r==="top"?ve:0,ee=r==="right"?ve:0,ye=r==="left"?ve:0;typeof J=="number"?J={top:J+ue,right:J+ye,bottom:J+$,left:J+ee}:J&&(J={top:(J.top||0)+ue,right:(J.right||0)+ye,bottom:(J.bottom||0)+$,left:(J.left||0)+ee});const Ee={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:J},xe=M.useRef(null),Se=ho(i),Oe=ho(l),tt=[oq(Jt=>{const ds=r2(Jt,r,ge),hr=typeof Se.current=="function"?Se.current(ds):Se.current,Wn=typeof Oe.current=="function"?Oe.current(ds):Oe.current;return{mainAxis:hr,crossAxis:Wn,alignmentAxis:Wn}},[typeof i!="function"?i:0,typeof l!="function"?l:0,ge,r])],kt=N==="none"&&V!=="shift",he=!kt&&(p||R||V==="shift"),Re=V==="none"?null:cq({...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:iq(Jt=>{const ds=sn(Jt.elements.floating).documentElement;return{...Ee,rootBoundary:R?{x:0,y:0,width:ds.clientWidth,height:ds.clientHeight}:void 0,mainAxis:N!=="none",crossAxis:he,limiter:p||R?void 0:aq(hr=>{if(!xe.current)return{};const{width:Wn,height:Ps}=xe.current.getBoundingClientRect(),ko=Lr(qs(hr.placement)),mr=ko==="y"?Wn:Ps,Ni=ko==="y"?J.left+J.right:J.top+J.bottom;return{offset:mr/2+Ni/2}})}},[Ee,p,R,J,N]);V==="shift"||N==="shift"||c==="center"?tt.push(_e,Re):tt.push(Re,_e),tt.push(lq({...Ee,apply({elements:{floating:Jt},rects:{reference:ds},availableWidth:hr,availableHeight:Wn}){const Ps=Jt.style;Ps.setProperty("--available-width",`${hr}px`),Ps.setProperty("--available-height",`${Wn}px`),Ps.setProperty("--anchor-width",`${ds.width}px`),Ps.setProperty("--anchor-height",`${ds.height}px`)}}),YF(()=>({element:xe.current||document.createElement("div"),padding:v,offsetParent:"floating"}),[v]),{name:"transformOrigin",fn(Jt){const{elements:ds,middlewareData:hr,placement:Wn,rects:Ps,y:ko}=Jt,mr=qs(Wn),Ni=Lr(mr),Li=xe.current,gy=hr.arrow?.x||0,pp=hr.arrow?.y||0,Fu=Li?.clientWidth||0,tc=Li?.clientHeight||0,Gu=gy+Fu/2,Ku=pp+tc/2,hp=Math.abs(hr.shift?.y||0),mp=Ps.reference.height/2,No=typeof i=="function"?i(r2(Jt,r,ge)):i,Zu=hp>No,gp={top:`${Gu}px calc(100% + ${No}px)`,bottom:`${Gu}px ${-No}px`,left:`calc(100% + ${No}px) ${Ku}px`,right:`${-No}px ${Ku}px`}[mr],yp=`${Gu}px ${Ps.reference.y+mp-ko}px`;return ds.floating.style.setProperty("--transform-origin",he&&Ni==="y"&&Zu?yp:gp),{}}},XF,T),Ct(()=>{!E&&_&&_.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,_]);const Ze=M.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Me,elements:Ve,x:De,y:nt,middlewareData:ot,update:Ge,placement:bt,context:Xt,isPositioned:wt,floatingStyles:Xn}=Hq({rootContext:_,placement:re,middleware:tt,strategy:n,whileElementsMounted:b?void 0:(...Jt)=>QT(...Jt,Ze),nodeId:C,externalTree:I}),{sideX:Je,sideY:Mt}=ot.adaptiveOrigin||cm,it=wt?n:"fixed",Ds=M.useMemo(()=>{const Jt=T?{position:it,[Je]:De,[Mt]:nt}:{position:it,...Xn};return wt||(Jt.opacity=0),Jt},[T,it,Je,De,Mt,nt,Xn,wt]),pr=M.useRef(null);Ct(()=>{if(!E)return;const Jt=oe.current,ds=typeof Jt=="function"?Jt():Jt,Wn=(o2(ds)?ds.current:ds)||null||null;Wn!==pr.current&&(Me.setPositionReference(Wn),pr.current=Wn)},[E,Me,F,oe]),M.useEffect(()=>{if(!E)return;const Jt=oe.current;typeof Jt!="function"&&o2(Jt)&&Jt.current!==pr.current&&(Me.setPositionReference(Jt.current),pr.current=Jt.current)},[E,Me,F,oe]),M.useEffect(()=>{if(b&&E&&Ve.domReference&&Ve.floating)return QT(Ve.domReference,Ve.floating,Ge,Ze)},[b,E,Ve,Ge,Ze]);const Po=qs(bt),dp=Ck(r,Po,ge),ki=ka(bt)||"center",us=!!ot.hide?.referenceHidden;Ct(()=>{P&&E&&wt&&j(Po)},[P,E,wt,Po]);const Gr=M.useMemo(()=>({position:"absolute",top:ot.arrow?.y,left:ot.arrow?.x}),[ot.arrow]),fs=ot.arrow?.centerOffset!==0;return M.useMemo(()=>({positionerStyles:Ds,arrowStyles:Gr,arrowRef:xe,arrowUncentered:fs,side:dp,align:ki,physicalSide:Po,anchorHidden:us,refs:Me,context:Xt,isPositioned:wt,update:Ge}),[Ds,Gr,xe,fs,dp,ki,Po,us,Me,Xt,wt,Ge])}function o2(e){return e!=null&&"current"in e}function Ak(e){return e==="starting"?Jj:or}const eG=M.forwardRef(function(t,n){const{render:r,className:i,anchor:c,positionMethod:l="absolute",side:f="top",align:d="center",sideOffset:p=0,alignOffset:v=0,collisionBoundary:g="clipping-ancestors",collisionPadding:b=5,arrowPadding:_=5,sticky:E=!1,disableAnchorTracking:x=!1,collisionAvoidance:R=t9,...C}=t,T=kd(),P=qF(),I=T.useState("open"),B=T.useState("mounted"),j=T.useState("trackCursorAxis"),V=T.useState("disableHoverablePopup"),N=T.useState("floatingRootContext"),Q=T.useState("instantType"),ne=T.useState("transitionStatus"),te=T.useState("hasViewport"),F=JF({anchor:c,positionMethod:l,floatingRootContext:N,mounted:B,side:f,sideOffset:p,align:d,alignOffset:v,collisionBoundary:g,collisionPadding:b,sticky:E,arrowPadding:_,disableAnchorTracking:x,keepMounted:P,collisionAvoidance:R,adaptiveOrigin:te?WF:void 0}),oe=M.useMemo(()=>{const re={};return(!I||j==="both"||V)&&(re.pointerEvents="none"),{role:"presentation",hidden:!B,style:{...F.positionerStyles,...re}}},[I,j,V,B,F.positionerStyles]),me=M.useMemo(()=>({open:I,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:j!=="none"?"tracking-cursor":Q}),[I,F.side,F.align,F.anchorHidden,j,Q]),ge=M.useMemo(()=>({...me,arrowRef:F.arrowRef,arrowStyles:F.arrowStyles,arrowUncentered:F.arrowUncentered}),[me,F.arrowRef,F.arrowStyles,F.arrowUncentered]),H=zr("div",t,{state:me,props:[oe,Ak(ne),C],ref:[n,T.useStateSetter("positionerElement")],stateAttributesMapping:Dd});return k.jsx(wk.Provider,{value:ge,children:H})}),tG={...Dd,...o_},nG=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,l=kd(),{side:f,align:d}=Rk(),p=l.useState("open"),v=l.useState("instantType"),g=l.useState("transitionStatus"),b=l.useState("popupProps"),_=l.useState("floatingRootContext");i_({open:p,ref:l.context.popupRef,onComplete(){p&&l.context.onOpenChangeComplete?.(!0)}});const E=l.useState("disabled"),x=l.useState("closeDelay");return Zq(_,{enabled:!E,closeDelay:x}),zr("div",t,{state:{open:p,side:f,align:d,instant:v,transitionStatus:g},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[b,Ak(g),c],stateAttributesMapping:tG})}),sG=M.forwardRef(function(t,n){const{className:r,render:i,...c}=t,f=kd().useState("instantType"),{open:d,arrowRef:p,side:v,align:g,arrowUncentered:b,arrowStyles:_}=Rk();return zr("div",t,{state:{open:d,side:v,align:g,uncentered:b,instant:f},ref:[n,p],props:[{style:_,"aria-hidden":!0},c],stateAttributesMapping:Dd})}),rG=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(Ek.Provider,{value:c,children:k.jsx(u7,{delay:l,timeoutMs:i,children:t.children})})};function oG(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(rG,{"data-slot":"tooltip-provider",delay:i,...n}),t[3]=i,t[4]=n,t[5]=c):c=t[5],c}function iG(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(oG,{children:k.jsx(zF,{"data-slot":"tooltip",...n})}),t[2]=n,t[3]=r):r=t[3],r}function aG(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(HF,{"data-slot":"tooltip-trigger",...n}),t[2]=n,t[3]=r):r=t[3],r}function cG(e){const t=qt.c(21);let n,r,i,c,l,f,d;t[0]!==e?({className:r,side:c,sideOffset:l,align:f,alignOffset:d,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const p=c===void 0?"top":c,v=l===void 0?4:l,g=f===void 0?"center":f,b=d===void 0?0:d;let _;t[8]!==r?(_=bn("data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:rounded-md",r),t[8]=r,t[9]=_):_=t[9];let E;t[10]===Symbol.for("react.memo_cache_sentinel")?(E=k.jsx(sG,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=right]:top-1/2! data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=right]:-left-1 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2"}),t[10]=E):E=t[10];let x;t[11]!==n||t[12]!==i||t[13]!==_?(x=k.jsxs(nG,{className:_,"data-slot":"tooltip-content",...i,children:[n,E]}),t[11]=n,t[12]=i,t[13]=_,t[14]=x):x=t[14];let R;return t[15]!==g||t[16]!==b||t[17]!==p||t[18]!==v||t[19]!==x?(R=k.jsx(GF,{children:k.jsx(eG,{align:g,alignOffset:b,className:"isolate z-50",side:p,sideOffset:v,children:x})}),t[15]=g,t[16]=b,t[17]=p,t[18]=v,t[19]=x,t[20]=R):R=t[20],R}const lG=768,uG=`(max-width: ${lG-1}px)`,dS=window.matchMedia(uG);function fG(e){return dS.addEventListener("change",e),()=>dS.removeEventListener("change",e)}function dG(){return dS.matches}function pG(){return M.useSyncExternalStore(fG,dG)}const hG="sidebar_state",mG=3600*24*7,gG="12rem",yG="16rem",vG="3rem",bG="b",Ik=M.createContext(null);function gg(){const e=M.useContext(Ik);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function SG(e){const t=qt.c(36);let n,r,i,c,l,f,d;t[0]!==e?({defaultOpen:d,open:i,onOpenChange:l,className:r,style:f,children:n,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const p=d===void 0?!0:d,v=pG(),[g,b]=M.useState(!1),[_,E]=M.useState(p),x=i??_;let R;t[8]!==x||t[9]!==l?(R=me=>{const ge=typeof me=="function"?me(x):me;l?l(ge):E(ge),document.cookie=`${hG}=${ge}; path=/; max-age=${mG}`},t[8]=x,t[9]=l,t[10]=R):R=t[10];const C=R;let T;t[11]!==v||t[12]!==C?(T=()=>v?b(EG):C(_G),t[11]=v,t[12]=C,t[13]=T):T=t[13];const P=T;let I,B;t[14]!==P?(I=()=>{const me=ge=>{ge.key===bG&&(ge.metaKey||ge.ctrlKey)&&(ge.preventDefault(),P())};return window.addEventListener("keydown",me),()=>window.removeEventListener("keydown",me)},B=[P],t[14]=P,t[15]=I,t[16]=B):(I=t[15],B=t[16]),M.useEffect(I,B);const j=x?"expanded":"collapsed";let V;t[17]!==v||t[18]!==x||t[19]!==g||t[20]!==C||t[21]!==j||t[22]!==P?(V={state:j,open:x,setOpen:C,isMobile:v,openMobile:g,setOpenMobile:b,toggleSidebar:P},t[17]=v,t[18]=x,t[19]=g,t[20]=C,t[21]=j,t[22]=P,t[23]=V):V=t[23];const N=V;let Q;t[24]!==r?(Q=bn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),t[24]=r,t[25]=Q):Q=t[25];let ne;t[26]!==f?(ne={"--sidebar-width":gG,"--sidebar-width-icon":vG,...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(Ik.Provider,{value:N,children:F}),t[33]=N,t[34]=F,t[35]=oe):oe=t[35],oe}function _G(e){return!e}function EG(e){return!e}function xG(e){const t=qt.c(46);let n,r,i,c,l,f;t[0]!==e?({side:c,variant:l,collapsible:f,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6]);const d=c===void 0?"left":c,p=l===void 0?"sidebar":l,v=f===void 0?"offExamples":f,{isMobile:g,state:b,openMobile:_,setOpenMobile:E}=gg();if(v==="none"){let Q;t[7]!==r?(Q=bn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),t[7]=r,t[8]=Q):Q=t[8];let ne;return t[9]!==n||t[10]!==i||t[11]!==Q?(ne=k.jsx("div",{className:Q,"data-slot":"sidebar",...i,children:n}),t[9]=n,t[10]=i,t[11]=Q,t[12]=ne):ne=t[12],ne}if(g){let Q;t[13]===Symbol.for("react.memo_cache_sentinel")?(Q={"--sidebar-width":yG},t[13]=Q):Q=t[13];let ne;t[14]===Symbol.for("react.memo_cache_sentinel")?(ne=k.jsxs(PF,{className:"sr-only",children:[k.jsx(kF,{children:"Sidebar"}),k.jsx(NF,{children:"Displays the mobile sidebar."})]}),t[14]=ne):ne=t[14];let te;t[15]!==n?(te=k.jsx("div",{className:"flex h-full w-full flex-col",children:n}),t[15]=n,t[16]=te):te=t[16];let F;t[17]!==d||t[18]!==te?(F=k.jsxs(DF,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:d,style:Q,children:[ne,te]}),t[17]=d,t[18]=te,t[19]=F):F=t[19];let oe;return t[20]!==_||t[21]!==i||t[22]!==E||t[23]!==F?(oe=k.jsx(TF,{onOpenChange:E,open:_,...i,children:F}),t[20]=_,t[21]=i,t[22]=E,t[23]=F,t[24]=oe):oe=t[24],oe}const x=b==="collapsed"?v:"",R=p==="floating"||p==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let C;t[25]!==R?(C=bn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",R),t[25]=R,t[26]=C):C=t[26];let T;t[27]!==C?(T=k.jsx("div",{className:C,"data-slot":"sidebar-gap"}),t[27]=C,t[28]=T):T=t[28];const P=d==="left"?"left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",I=p==="floating"||p==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let B;t[29]!==r||t[30]!==P||t[31]!==I?(B=bn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",P,I,r),t[29]=r,t[30]=P,t[31]=I,t[32]=B):B=t[32];let j;t[33]!==n?(j=k.jsx("div",{className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:n}),t[33]=n,t[34]=j):j=t[34];let V;t[35]!==i||t[36]!==B||t[37]!==j?(V=k.jsx("div",{className:B,"data-slot":"sidebar-container",...i,children:j}),t[35]=i,t[36]=B,t[37]=j,t[38]=V):V=t[38];let N;return t[39]!==d||t[40]!==b||t[41]!==V||t[42]!==x||t[43]!==T||t[44]!==p?(N=k.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":x,"data-side":d,"data-slot":"sidebar","data-state":b,"data-variant":p,children:[T,V]}),t[39]=d,t[40]=b,t[41]=V,t[42]=x,t[43]=T,t[44]=p,t[45]=N):N=t[45],N}function wG(e){const t=qt.c(15);let n,r,i;t[0]!==e?({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{toggleSidebar:c}=gg();let l;t[4]!==n?(l=bn(n),t[4]=n,t[5]=l):l=t[5];let f;t[6]!==r||t[7]!==c?(f=g=>{r?.(g),c()},t[6]=r,t[7]=c,t[8]=f):f=t[8];let d,p;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=k.jsx(P9,{}),p=k.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),t[9]=d,t[10]=p):(d=t[9],p=t[10]);let v;return t[11]!==i||t[12]!==l||t[13]!==f?(v=k.jsxs(cu,{className:l,"data-sidebar":"trigger","data-slot":"sidebar-trigger",onClick:f,size:"icon-lg",variant:"ghost",...i,children:[d,p]}),t[11]=i,t[12]=l,t[13]=f,t[14]=v):v=t[14],v}function RG(e){const t=qt.c(9);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{toggleSidebar:i}=gg();let c;t[3]!==n?(c=bn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offExamples]:translate-x-0 hover:group-data-[collapsible=offExamples]:bg-sidebar group-data-[collapsible=offExamples]:after:left-full","[[data-side=left][data-collapsible=offExamples]_&]:-right-2","[[data-side=right][data-collapsible=offExamples]_&]:-left-2",n),t[3]=n,t[4]=c):c=t[4];let l;return t[5]!==r||t[6]!==c||t[7]!==i?(l=k.jsx("button",{"aria-label":"Toggle Sidebar",className:c,"data-sidebar":"rail","data-slot":"sidebar-rail",onClick:i,tabIndex:-1,title:"Toggle Sidebar",...r}),t[5]=r,t[6]=c,t[7]=i,t[8]=l):l=t[8],l}function CG(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 AG(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("div",{className:i,"data-sidebar":"content","data-slot":"sidebar-content",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Kf(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("relative flex w-full min-w-0 flex-col px-2 py-1",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("div",{className:i,"data-sidebar":"group","data-slot":"sidebar-group",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Zf(e){const t=qt.c(10);let n,r,i,c;if(t[0]!==e){const{className:d,render:p,...v}=e;n=p,c=KD,r="div",i=ag({className:bn("flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",d)},v),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c}else n=t[1],r=t[2],i=t[3],c=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},t[5]=l):l=t[5];let f;return t[6]!==n||t[7]!==r||t[8]!==i?(f={defaultTagName:r,props:i,render:n,state:l},t[6]=n,t[7]=r,t[8]=i,t[9]=f):f=t[9],c(f)}function jl(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("flex w-full min-w-0 flex-col gap-px",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("ul",{className:i,"data-sidebar":"menu","data-slot":"sidebar-menu",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Cr(e){const t=qt.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=bn("group/menu-item relative",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=k.jsx("li",{className:i,"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const IG=YD("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ar(e){const t=qt.c(15);let{render:n,isActive:r,variant:i,size:c,tooltip:l,className:f,...d}=e;const p=r===void 0?!1:r,v=i===void 0?"default":i,g=c===void 0?"default":c,{isMobile:b,state:_}=gg(),E="button",x=ag({className:bn(IG({variant:v,size:g}),f)},d),R=l?aG:n;let C;t[0]!==p||t[1]!==g?(C={slot:"sidebar-menu-button",sidebar:"menu-button",size:g,active:p},t[0]=p,t[1]=g,t[2]=C):C=t[2];let T;t[3]!==x||t[4]!==R||t[5]!==C?(T={defaultTagName:E,props:x,render:R,state:C},t[3]=x,t[4]=R,t[5]=C,t[6]=T):T=t[6];const P=KD(T);if(!l)return P;if(typeof l=="string"){let V;t[7]!==l?(V={children:l},t[7]=l,t[8]=V):V=t[8],l=V}const I=_!=="collapsed"||b;let B;t[9]!==I||t[10]!==l?(B=k.jsx(cG,{align:"center",hidden:I,side:"right",...l}),t[9]=I,t[10]=l,t[11]=B):B=t[11];let j;return t[12]!==P||t[13]!==B?(j=k.jsxs(iG,{children:[P,B]}),t[12]=P,t[13]=B,t[14]=j):j=t[14],j}function TG(){const e=qt.c(8),{theme:t,setTheme:n}=Uj();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(z9,{className:"size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),l=k.jsx(T9,{className:"absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),f=k.jsx("span",{className:"sr-only",children:"Toggle theme"}),e[3]=c,e[4]=l,e[5]=f):(c=e[3],l=e[4],f=e[5]);let d;return e[6]!==i?(d=k.jsxs(cu,{className:"rounded-full",onClick:i,size:"icon-sm",variant:"ghost",children:[c,l,f]}),e[6]=i,e[7]=d):d=e[7],d}function Tk(){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(wG,{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(TG,{})})]}),e[2]=r):r=e[2],r}function OG(){const e=qt.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=k.jsx("h1",{className:"font-bold text-4xl",children:"404"}),n=k.jsx("p",{className:"text-muted-foreground",children:"Page not found"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=k.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4",children:[t,n,k.jsx(Rs,{to:"/",children:k.jsx(cu,{variant:"outline",children:"Go back home"})})]}),e[2]=r):r=e[2],r}function de(e,t,n){function r(f,d){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const p=l.prototype,v=Object.keys(p);for(let g=0;gn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class tu extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ok extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Mk={};function Nc(e){return Mk}function Dk(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 pS(e,t){return typeof t=="bigint"?t.toString():t}function m_(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function g_(e){return e==null}function y_(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function MG(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]))}const c=n>i?n:i,l=Number.parseInt(e.toFixed(c).replace(".","")),f=Number.parseInt(t.toFixed(c).replace(".",""));return l%f/10**c}const i2=Symbol("evaluating");function Ht(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==i2)return r===void 0&&(r=i2,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Vc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Na(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function a2(e){return JSON.stringify(e)}function DG(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Pk="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function zm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const PG=m_(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Sd(e){if(zm(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(zm(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function kk(e){return Sd(e)?{...e}:Array.isArray(e)?[...e]:e}const kG=new Set(["string","number","symbol"]);function yg(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function La(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function je(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function NG(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const LG={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 $G(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=Na(e._zod.def,{get shape(){const l={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(l[f]=n.shape[f])}return Vc(this,"shape",l),l},checks:[]});return La(e,c)}function zG(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=Na(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete l[f]}return Vc(this,"shape",l),l},checks:[]});return La(e,c)}function BG(e,t){if(!Sd(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const c=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(c,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=Na(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return Vc(this,"shape",c),c}});return La(e,i)}function UG(e,t){if(!Sd(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Na(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Vc(this,"shape",r),r}});return La(e,n)}function jG(e,t){const n=Na(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Vc(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return La(e,n)}function VG(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=Na(t._zod.def,{get shape(){const f=t._zod.def.shape,d={...f};if(n)for(const p in n){if(!(p in f))throw new Error(`Unrecognized key: "${p}"`);n[p]&&(d[p]=e?new e({type:"optional",innerType:f[p]}):f[p])}else for(const p in f)d[p]=e?new e({type:"optional",innerType:f[p]}):f[p];return Vc(this,"shape",d),d},checks:[]});return La(t,l)}function HG(e,t,n){const r=Na(t._zod.def,{get shape(){const i=t._zod.def.shape,c={...i};if(n)for(const l in n){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=new e({type:"nonoptional",innerType:i[l]}))}else for(const l in i)c[l]=new e({type:"nonoptional",innerType:i[l]});return Vc(this,"shape",c),c}});return La(t,r)}function Ql(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function qh(e){return typeof e=="string"?e:e?.message}function Lc(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=qh(e.inst?._zod.def?.error?.(e))??qh(t?.error?.(e))??qh(n.customError?.(e))??qh(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function v_(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _d(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Lk=(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,pS,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$k=de("$ZodError",Lk),vg=de("$ZodError",Lk,{Parent:Error});function qG(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 FG(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l}));else if(c.code==="invalid_key")r({issues:c.issues});else if(c.code==="invalid_element")r({issues:c.issues});else if(c.path.length===0)n._errors.push(t(c));else{let l=n,f=0;for(;f(t,n,r,i)=>{const c=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise)throw new tu;if(l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>Lc(d,c,Nc())));throw Pk(f,i?.callee),f}return l.value},AMe=bg(vg),Sg=e=>async(t,n,r,i)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise&&(l=await l),l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>Lc(d,c,Nc())));throw Pk(f,i?.callee),f}return l.value},IMe=Sg(vg),_g=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new tu;return c.issues.length?{success:!1,error:new(e??$k)(c.issues.map(l=>Lc(l,i,Nc())))}:{success:!0,data:c.value}},GG=_g(vg),Eg=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(l=>Lc(l,i,Nc())))}:{success:!0,data:c.value}},KG=Eg(vg),ZG=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return bg(e)(t,n,i)},QG=e=>(t,n,r)=>bg(e)(t,n,r),YG=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Sg(e)(t,n,i)},XG=e=>async(t,n,r)=>Sg(e)(t,n,r),WG=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return _g(e)(t,n,i)},JG=e=>(t,n,r)=>_g(e)(t,n,r),eK=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Eg(e)(t,n,i)},tK=e=>async(t,n,r)=>Eg(e)(t,n,r),nK=/^[cC][^\s-]{8,}$/,sK=/^[0-9a-z]+$/,rK=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,oK=/^[0-9a-vA-V]{20}$/,iK=/^[A-Za-z0-9]{27}$/,aK=/^[a-zA-Z0-9_-]{21}$/,cK=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lK=/^([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})$/,c2=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)$/,uK=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,fK="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function dK(){return new RegExp(fK,"u")}const pK=/^(?:(?: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])$/,hK=/^(([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}|:))$/,mK=/^((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])$/,gK=/^(([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])$/,yK=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zk=/^[A-Za-z0-9_-]*$/,vK=/^\+[1-9]\d{6,14}$/,Bk="(?:(?:\\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])))",bK=new RegExp(`^${Bk}$`);function Uk(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 SK(e){return new RegExp(`^${Uk(e)}$`)}function _K(e){const t=Uk({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(`^${Bk}T(?:${r})$`)}const EK=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},xK=/^-?\d+$/,wK=/^-?\d+(?:\.\d+)?$/,RK=/^(?:true|false)$/i,CK=/^[^A-Z]*$/,AK=/^[^a-z]*$/,Fs=de("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),jk={number:"number",bigint:"bigint",object:"date"},Vk=de("$ZodCheckLessThan",(e,t)=>{Fs.init(e,t);const n=jk[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{Fs.init(e,t);const n=jk[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})}}),IK=de("$ZodCheckMultipleOf",(e,t)=>{Fs.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):MG(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})}}),TK=de("$ZodCheckNumberFormat",(e,t)=>{Fs.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,c]=LG[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=xK)}),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})}}),OK=de("$ZodCheckMaxLength",(e,t)=>{var n;Fs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!g_(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=v_(i);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),MK=de("$ZodCheckMinLength",(e,t)=>{var n;Fs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!g_(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=v_(i);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),DK=de("$ZodCheckLengthEquals",(e,t)=>{var n;Fs.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!g_(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=v_(i),f=c>t.length;r.issues.push({origin:l,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),xg=de("$ZodCheckStringFormat",(e,t)=>{var n,r;Fs.init(e,t),e._zod.onattach.push(i=>{const c=i._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),PK=de("$ZodCheckRegex",(e,t)=>{xg.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),kK=de("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=CK),xg.init(e,t)}),NK=de("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=AK),xg.init(e,t)}),LK=de("$ZodCheckIncludes",(e,t)=>{Fs.init(e,t);const n=yg(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),$K=de("$ZodCheckStartsWith",(e,t)=>{Fs.init(e,t);const n=new RegExp(`^${yg(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),zK=de("$ZodCheckEndsWith",(e,t)=>{Fs.init(e,t);const n=new RegExp(`.*${yg(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),BK=de("$ZodCheckOverwrite",(e,t)=>{Fs.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class UK{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` + )`}return k.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),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 jK={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=jK;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const c of i._zod.onattach)c(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,f,d)=>{let p=Ql(l),v;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(l))continue}else if(p)continue;const b=l.issues.length,_=g._zod.check(l);if(_ instanceof Promise&&d?.async===!1)throw new tu;if(v||_ instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await _,l.issues.length!==b&&(p||(p=Ql(l,b)))});else{if(l.issues.length===b)continue;p||(p=Ql(l,b))}}return v?v.then(()=>l):l},c=(l,f,d)=>{if(Ql(l))return l.aborted=!0,l;const p=i(f,r,d);if(p instanceof Promise){if(d.async===!1)throw new tu;return p.then(v=>e._zod.parse(v,d))}return e._zod.parse(p,d)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const p=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(v=>c(v,l,f)):c(p,l,f)}const d=e._zod.parse(l,f);if(d instanceof Promise){if(f.async===!1)throw new tu;return d.then(p=>i(p,r,f))}return i(d,r,f)}}Ht(e,"~standard",()=>({validate:i=>{try{const c=GG(e,i);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return KG(e,i).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),b_=de("$ZodString",(e,t)=>{_n.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??EK(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),an=de("$ZodStringFormat",(e,t)=>{xg.init(e,t),b_.init(e,t)}),VK=de("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=lK),an.init(e,t)}),HK=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=c2(r))}else t.pattern??(t.pattern=c2());an.init(e,t)}),qK=de("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=uK),an.init(e,t)}),FK=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})}}}),GK=de("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=dK()),an.init(e,t)}),KK=de("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=aK),an.init(e,t)}),ZK=de("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nK),an.init(e,t)}),QK=de("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=sK),an.init(e,t)}),YK=de("$ZodULID",(e,t)=>{t.pattern??(t.pattern=rK),an.init(e,t)}),XK=de("$ZodXID",(e,t)=>{t.pattern??(t.pattern=oK),an.init(e,t)}),WK=de("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=iK),an.init(e,t)}),JK=de("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_K(t)),an.init(e,t)}),eZ=de("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bK),an.init(e,t)}),tZ=de("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=SK(t)),an.init(e,t)}),nZ=de("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cK),an.init(e,t)}),sZ=de("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=pK),an.init(e,t),e._zod.bag.format="ipv4"}),rZ=de("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=hK),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})}}}),oZ=de("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=mK),an.init(e,t)}),iZ=de("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gK),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 qk(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const aZ=de("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=yK),an.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{qk(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function cZ(e){if(!zk.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return qk(n)}const lZ=de("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=zk),an.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{cZ(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),uZ=de("$ZodE164",(e,t)=>{t.pattern??(t.pattern=vK),an.init(e,t)});function fZ(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 dZ=de("$ZodJWT",(e,t)=>{an.init(e,t),e._zod.check=n=>{fZ(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Fk=de("$ZodNumber",(e,t)=>{_n.init(e,t),e._zod.pattern=e._zod.bag.pattern??wK,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}}),pZ=de("$ZodNumberFormat",(e,t)=>{TK.init(e,t),Fk.init(e,t)}),hZ=de("$ZodBoolean",(e,t)=>{_n.init(e,t),e._zod.pattern=RK,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}}),mZ=de("$ZodUnknown",(e,t)=>{_n.init(e,t),e._zod.parse=n=>n}),gZ=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 l2(e,t,n){e.issues.length&&t.issues.push(...Nk(n,e.issues)),t.value[n]=e.value}const yZ=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;ll2(p,n,l))):l2(d,n,l)}return c.length?Promise.all(c).then(()=>n):n}});function Bm(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Nk(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Gk(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=NG(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Kk(e,t,n,r,i,c){const l=[],f=i.keySet,d=i.catchall._zod,p=d.def.type,v=d.optout==="optional";for(const g in t){if(f.has(g))continue;if(p==="never"){l.push(g);continue}const b=d.run({value:t[g],issues:[]},r);b instanceof Promise?e.push(b.then(_=>Bm(_,n,g,t,v))):Bm(b,n,g,t,v)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:c}),e.length?Promise.all(e).then(()=>n):n}const vZ=de("$ZodObject",(e,t)=>{if(_n.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...f};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=m_(()=>Gk(t));Ht(e._zod,"propValues",()=>{const f=t.shape,d={};for(const p in f){const v=f[p]._zod;if(v.values){d[p]??(d[p]=new Set);for(const g of v.values)d[p].add(g)}}return d});const i=zm,c=t.catchall;let l;e._zod.parse=(f,d)=>{l??(l=r.value);const p=f.value;if(!i(p))return f.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),f;f.value={};const v=[],g=l.shape;for(const b of l.keys){const _=g[b],E=_._zod.optout==="optional",x=_._zod.run({value:p[b],issues:[]},d);x instanceof Promise?v.push(x.then(R=>Bm(R,f,b,p,E))):Bm(x,f,b,p,E)}return c?Kk(v,p,f,d,r.value,e):v.length?Promise.all(v).then(()=>f):f}}),bZ=de("$ZodObjectJIT",(e,t)=>{vZ.init(e,t);const n=e._zod.parse,r=m_(()=>Gk(t)),i=b=>{const _=new UK(["shape","payload","ctx"]),E=r.value,x=P=>{const I=a2(P);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};_.write("const input = payload.value;");const R=Object.create(null);let C=0;for(const P of E.keys)R[P]=`key_${C++}`;_.write("const newResult = {};");for(const P of E.keys){const I=R[P],B=a2(P),V=b[P]?._zod?.optout==="optional";_.write(`const ${I} = ${x(P)};`),V?_.write(` - if (${I}.issues.length) { - if (${B} in input) { - payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ +`))}}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 ? [${B}, ...iss.path] : [${B}] + path: iss.path ? [${L}, ...iss.path] : [${L}] }))); } } - if (${I}.value === undefined) { - if (${B} in input) { - newResult[${B}] = undefined; + if (${T}.value === undefined) { + if (${L} in input) { + newResult[${L}] = undefined; } } else { - newResult[${B}] = ${I}.value; + newResult[${L}] = ${T}.value; } - `):_.write(` - if (${I}.issues.length) { - payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ + `):S.write(` + if (${T}.issues.length) { + payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ ...iss, - path: iss.path ? [${B}, ...iss.path] : [${B}] + path: iss.path ? [${L}, ...iss.path] : [${L}] }))); } - if (${I}.value === undefined) { - if (${B} in input) { - newResult[${B}] = undefined; + if (${T}.value === undefined) { + if (${L} in input) { + newResult[${L}] = undefined; } } else { - newResult[${B}] = ${I}.value; + newResult[${L}] = ${T}.value; } - `)}_.write("payload.value = newResult;"),_.write("return payload;");const T=_.compile();return(P,I)=>T(b,P,I)};let c;const l=zm,f=!Mk.jitless,p=f&&PG.value,v=t.catchall;let g;e._zod.parse=(b,_)=>{g??(g=r.value);const E=b.value;return l(E)?f&&p&&_?.async===!1&&_.jitless!==!0?(c||(c=i(t.shape)),b=c(b,_),v?Kk([],E,b,_,g,e):b):n(b,_):(b.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),b)}});function u2(e,t,n,r){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const i=e.filter(c=>!Ql(c));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(c=>c.issues.map(l=>Lc(l,r,Nc())))}),t)}const SZ=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=>y_(c.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,c)=>{if(n)return r(i,c);let l=!1;const f=[];for(const d of t.options){const p=d._zod.run({value:i.value,issues:[]},c);if(p instanceof Promise)f.push(p),l=!0;else{if(p.issues.length===0)return p;f.push(p)}}return l?Promise.all(f).then(d=>u2(d,i,e,c)):u2(f,i,e,c)}}),_Z=de("$ZodIntersection",(e,t)=>{_n.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,c=t.left._zod.run({value:i,issues:[]},r),l=t.right._zod.run({value:i,issues:[]},r);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(([d,p])=>f2(n,d,p)):f2(n,c,l)}});function hS(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Sd(e)&&Sd(t)){const n=Object.keys(t),r=Object.keys(e).filter(c=>n.indexOf(c)!==-1),i={...e,...t};for(const c of r){const l=hS(e[c],t[c]);if(!l.valid)return{valid:!1,mergeErrorPath:[c,...l.mergeErrorPath]};i[c]=l.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;rf.l&&f.r).map(([f])=>f);if(c.length&&i&&e.issues.push({...i,keys:c}),Ql(e))return e;const l=hS(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 EZ=de("$ZodEnum",(e,t)=>{_n.init(e,t);const n=Dk(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>kG.has(typeof i)).map(i=>typeof i=="string"?yg(i):i.toString()).join("|")})$`),e._zod.parse=(i,c)=>{const l=i.value;return r.has(l)||i.issues.push({code:"invalid_value",values:n,input:l,inst:e}),i}}),xZ=de("$ZodTransform",(e,t)=>{_n.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ok(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(l=>(n.value=l,n));if(i instanceof Promise)throw new tu;return n.value=i,n}});function d2(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Zk=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(`^(${y_(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=>d2(c,n.value)):d2(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),wZ=de("$ZodExactOptional",(e,t)=>{Zk.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)}),RZ=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(`^(${y_(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)}),CZ=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=>p2(c,t)):p2(i,t)}});function p2(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const AZ=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))}),IZ=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=>h2(c,e)):h2(i,e)}});function h2(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 TZ=de("$ZodCatch",(e,t)=>{_n.init(e,t),Ht(e._zod,"optin",()=>t.innerType._zod.optin),Ht(e._zod,"optout",()=>t.innerType._zod.optout),Ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>(n.value=c.value,c.issues.length&&(n.value=t.catchValue({...n,error:{issues:c.issues.map(l=>Lc(l,r,Nc()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>Lc(c,r,Nc()))},input:n.value}),n.issues=[]),n)}}),OZ=de("$ZodPipe",(e,t)=>{_n.init(e,t),Ht(e._zod,"values",()=>t.in._zod.values),Ht(e._zod,"optin",()=>t.in._zod.optin),Ht(e._zod,"optout",()=>t.out._zod.optout),Ht(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const c=t.out._zod.run(n,r);return c instanceof Promise?c.then(l=>Fh(l,t.in,r)):Fh(c,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(c=>Fh(c,t.out,r)):Fh(i,t.out,r)}});function Fh(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const MZ=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(m2):m2(i)}});function m2(e){return e.value=Object.freeze(e.value),e}const DZ=de("$ZodCustom",(e,t)=>{Fs.init(e,t),_n.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(c=>g2(c,n,r,e));g2(i,n,r,e)}});function g2(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(_d(i))}}var y2;class PZ{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 kZ(){return new PZ}(y2=globalThis).__zod_globalRegistry??(y2.__zod_globalRegistry=kZ());const td=globalThis.__zod_globalRegistry;function NZ(e,t){return new e({type:"string",...je(t)})}function LZ(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(t)})}function v2(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(t)})}function $Z(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(t)})}function zZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(t)})}function BZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(t)})}function UZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(t)})}function jZ(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(t)})}function VZ(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(t)})}function HZ(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(t)})}function qZ(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(t)})}function FZ(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(t)})}function GZ(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(t)})}function KZ(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(t)})}function ZZ(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(t)})}function QZ(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(t)})}function YZ(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(t)})}function XZ(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(t)})}function WZ(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(t)})}function JZ(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(t)})}function eQ(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(t)})}function tQ(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(t)})}function nQ(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(t)})}function sQ(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(t)})}function rQ(e,t){return new e({type:"string",format:"date",check:"string_format",...je(t)})}function oQ(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(t)})}function iQ(e,t){return new e({type:"string",format:"duration",check:"string_format",...je(t)})}function aQ(e,t){return new e({type:"number",checks:[],...je(t)})}function cQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(t)})}function lQ(e,t){return new e({type:"boolean",...je(t)})}function uQ(e){return new e({type:"unknown"})}function fQ(e,t){return new e({type:"never",...je(t)})}function b2(e,t){return new Vk({check:"less_than",...je(t),value:e,inclusive:!1})}function tb(e,t){return new Vk({check:"less_than",...je(t),value:e,inclusive:!0})}function S2(e,t){return new Hk({check:"greater_than",...je(t),value:e,inclusive:!1})}function nb(e,t){return new Hk({check:"greater_than",...je(t),value:e,inclusive:!0})}function _2(e,t){return new IK({check:"multiple_of",...je(t),value:e})}function Qk(e,t){return new OK({check:"max_length",...je(t),maximum:e})}function Um(e,t){return new MK({check:"min_length",...je(t),minimum:e})}function Yk(e,t){return new DK({check:"length_equals",...je(t),length:e})}function dQ(e,t){return new PK({check:"string_format",format:"regex",...je(t),pattern:e})}function pQ(e){return new kK({check:"string_format",format:"lowercase",...je(e)})}function hQ(e){return new NK({check:"string_format",format:"uppercase",...je(e)})}function mQ(e,t){return new LK({check:"string_format",format:"includes",...je(t),includes:e})}function gQ(e,t){return new $K({check:"string_format",format:"starts_with",...je(t),prefix:e})}function yQ(e,t){return new zK({check:"string_format",format:"ends_with",...je(t),suffix:e})}function _u(e){return new BK({check:"overwrite",tx:e})}function vQ(e){return _u(t=>t.normalize(e))}function bQ(){return _u(e=>e.trim())}function SQ(){return _u(e=>e.toLowerCase())}function _Q(){return _u(e=>e.toUpperCase())}function EQ(){return _u(e=>DG(e))}function xQ(e,t,n){return new e({type:"array",element:t,...je(n)})}function wQ(e,t,n){return new e({type:"custom",check:"custom",fn:t,...je(n)})}function RQ(e){const t=CQ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(_d(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(_d(i))}},e(n.value,n)));return t}function CQ(e,t){const n=new Fs({check:"custom",...je(t)});return n._zod.check=e,n}function Xk(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??td,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function as(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,c=t.seen.get(e);if(c)return c.count++,n.schemaPath.includes(e)&&(c.cycle=n.path),c.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const f=e._zod.toJSONSchema?.();if(f)l.schema=f;else{const v={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,v);else{const b=l.schema,_=t.processors[i.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);_(e,t,b,v)}const g=e._zod.parent;g&&(l.ref||(l.ref=g),as(g,t,v),t.seen.get(g).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(l.schema,d),t.io==="input"&&xs(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&l.schema._prefault&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function Wk(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const f=e.metadataRegistry.get(l[0])?.id;if(f){const d=r.get(f);if(d&&d!==l[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,l[0])}}const i=l=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(l[0])?.id,b=e.external.uri??(E=>E);if(g)return{ref:b(g)};const _=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=_,{defId:_,ref:`${b("__shared")}#/${f}/${_}`}}if(l[1]===n)return{ref:"#"};const p=`#/${f}/`,v=l[1].schema.id??`__schema${e.counter++}`;return{defId:v,ref:p+v}},c=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:d,defId:p}=i(l);f.def={...f.schema},p&&(f.defId=p);const v=f.schema;for(const g in v)delete v[g];v.$ref=d};if(e.cycles==="throw")for(const l of e.seen.entries()){const f=l[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/ + `)}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 p=e.external.registry.get(l[0])?.id;if(t!==l[0]&&p){c(l);continue}}if(e.metadataRegistry.get(l[0])?.id){c(l);continue}if(f.cycle){c(l);continue}if(f.count>1&&e.reused==="ref"){c(l);continue}}}function Jk(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{const f=e.seen.get(l);if(f.ref===null)return;const d=f.def??f.schema,p={...d},v=f.ref;if(f.ref=null,v){r(v);const b=e.seen.get(v),_=b.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(_)):Object.assign(d,_),Object.assign(d,p),l._zod.parent===v)for(const x in d)x==="$ref"||x==="allOf"||x in p||delete d[x];if(_.$ref&&b.def)for(const x in d)x==="$ref"||x==="allOf"||x in b.def&&JSON.stringify(d[x])===JSON.stringify(b.def[x])&&delete d[x]}const g=l._zod.parent;if(g&&g!==v){r(g);const b=e.seen.get(g);if(b?.schema.$ref&&(d.$ref=b.schema.$ref,b.def))for(const _ in d)_==="$ref"||_==="allOf"||_ in b.def&&JSON.stringify(d[_])===JSON.stringify(b.def[_])&&delete d[_]}e.override({zodSchema:l,jsonSchema:d,path:f.path??[]})};for(const l of[...e.seen.entries()].reverse())r(l[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);const c=e.external?.defs??{};for(const l of e.seen.entries()){const f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}e.external||Object.keys(c).length>0&&(e.target==="draft-2020-12"?i.$defs=c:i.definitions=c);try{const l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:jm(t,"input",e.processors),output:jm(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function xs(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return xs(r.element,n);if(r.type==="set")return xs(r.valueType,n);if(r.type==="lazy")return xs(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return xs(r.innerType,n);if(r.type==="intersection")return xs(r.left,n)||xs(r.right,n);if(r.type==="record"||r.type==="map")return xs(r.keyType,n)||xs(r.valueType,n);if(r.type==="pipe")return xs(r.in,n)||xs(r.out,n);if(r.type==="object"){for(const i in r.shape)if(xs(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(xs(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(xs(i,n))return!0;return!!(r.rest&&xs(r.rest,n))}return!1}const AQ=(e,t={})=>n=>{const r=Xk({...n,processors:t});return as(e,r),Wk(r,e),Jk(r,e)},jm=(e,t,n={})=>r=>{const{libraryOptions:i,target:c}=r??{},l=Xk({...i??{},target:c,io:t,processors:n});return as(e,l),Wk(l,e),Jk(l,e)},IQ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},TQ=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:c,maximum:l,format:f,patterns:d,contentEncoding:p}=e._zod.bag;if(typeof c=="number"&&(i.minLength=c),typeof l=="number"&&(i.maxLength=l),f&&(i.format=IQ[f]??f,i.format===""&&delete i.format,f==="time"&&delete i.format),p&&(i.contentEncoding=p),d&&d.size>0){const v=[...d];v.length===1?i.pattern=v[0].source:v.length>1&&(i.allOf=[...v.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},OQ=(e,t,n,r)=>{const i=n,{minimum:c,maximum:l,format:f,multipleOf:d,exclusiveMaximum:p,exclusiveMinimum:v}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof v=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=v,i.exclusiveMinimum=!0):i.exclusiveMinimum=v),typeof c=="number"&&(i.minimum=c,typeof v=="number"&&t.target!=="draft-04"&&(v>=c?delete i.minimum:delete i.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=p,i.exclusiveMaximum=!0):i.exclusiveMaximum=p),typeof l=="number"&&(i.maximum=l,typeof p=="number"&&t.target!=="draft-04"&&(p<=l?delete i.maximum:delete i.exclusiveMaximum)),typeof d=="number"&&(i.multipleOf=d)},MQ=(e,t,n,r)=>{n.type="boolean"},DQ=(e,t,n,r)=>{n.not={}},PQ=(e,t,n,r)=>{},kQ=(e,t,n,r)=>{const i=e._zod.def,c=Dk(i.entries);c.every(l=>typeof l=="number")&&(n.type="number"),c.every(l=>typeof l=="string")&&(n.type="string"),n.enum=c},NQ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},LQ=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},$Q=(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"]})},zQ=(e,t,n,r)=>{const i=n,c=e._zod.def;i.type="object",i.properties={};const l=c.shape;for(const p in l)i.properties[p]=as(l[p],t,{...r,path:[...r.path,"properties",p]});const f=new Set(Object.keys(l)),d=new Set([...f].filter(p=>{const v=c.shape[p]._zod;return t.io==="input"?v.optin===void 0:v.optout===void 0}));d.size>0&&(i.required=Array.from(d)),c.catchall?._zod.def.type==="never"?i.additionalProperties=!1:c.catchall?c.catchall&&(i.additionalProperties=as(c.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},BQ=(e,t,n,r)=>{const i=e._zod.def,c=i.inclusive===!1,l=i.options.map((f,d)=>as(f,t,{...r,path:[...r.path,c?"oneOf":"anyOf",d]}));c?n.oneOf=l:n.anyOf=l},UQ=(e,t,n,r)=>{const i=e._zod.def,c=as(i.left,t,{...r,path:[...r.path,"allOf",0]}),l=as(i.right,t,{...r,path:[...r.path,"allOf",1]}),f=p=>"allOf"in p&&Object.keys(p).length===1,d=[...f(c)?c.allOf:[c],...f(l)?l.allOf:[l]];n.allOf=d},jQ=(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"}]},VQ=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},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.default=JSON.parse(JSON.stringify(i.defaultValue))},qQ=(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)))},FQ=(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},GQ=(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},KQ=(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},e3=(e,t,n,r)=>{const i=e._zod.def;as(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},ZQ=de("ZodISODateTime",(e,t)=>{JK.init(e,t),fn.init(e,t)});function QQ(e){return sQ(ZQ,e)}const YQ=de("ZodISODate",(e,t)=>{eZ.init(e,t),fn.init(e,t)});function XQ(e){return rQ(YQ,e)}const WQ=de("ZodISOTime",(e,t)=>{tZ.init(e,t),fn.init(e,t)});function JQ(e){return oQ(WQ,e)}const eY=de("ZodISODuration",(e,t)=>{nZ.init(e,t),fn.init(e,t)});function tY(e){return iQ(eY,e)}const nY=(e,t)=>{$k.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>FG(e,n)},flatten:{value:n=>qG(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,pS,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,pS,2)}},isEmpty:{get(){return e.issues.length===0}}})},Br=de("ZodError",nY,{Parent:Error}),sY=bg(Br),rY=Sg(Br),oY=_g(Br),iY=Eg(Br),aY=ZG(Br),cY=QG(Br),lY=YG(Br),uY=XG(Br),fY=WG(Br),dY=JG(Br),pY=eK(Br),hY=tK(Br),En=de("ZodType",(e,t)=>(_n.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:jm(e,"input"),output:jm(e,"output")}}),e.toJSONSchema=AQ(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Na(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>La(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>sY(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>oY(e,n,r),e.parseAsync=async(n,r)=>rY(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>iY(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>aY(e,n,r),e.decode=(n,r)=>cY(e,n,r),e.encodeAsync=async(n,r)=>lY(e,n,r),e.decodeAsync=async(n,r)=>uY(e,n,r),e.safeEncode=(n,r)=>fY(e,n,r),e.safeDecode=(n,r)=>dY(e,n,r),e.safeEncodeAsync=async(n,r)=>pY(e,n,r),e.safeDecodeAsync=async(n,r)=>hY(e,n,r),e.refine=(n,r)=>e.check(lX(n,r)),e.superRefine=n=>e.check(uX(n)),e.overwrite=n=>e.check(_u(n)),e.optional=()=>C2(e),e.exactOptional=()=>YY(e),e.nullable=()=>A2(e),e.nullish=()=>C2(A2(e)),e.nonoptional=n=>nX(e,n),e.array=()=>BY(e),e.or=n=>HY([e,n]),e.and=n=>FY(e,n),e.transform=n=>I2(e,ZY(n)),e.default=n=>JY(e,n),e.prefault=n=>tX(e,n),e.catch=n=>rX(e,n),e.pipe=n=>I2(e,n),e.readonly=()=>aX(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)),t3=de("_ZodString",(e,t)=>{b_.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,i,c)=>TQ(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(dQ(...r)),e.includes=(...r)=>e.check(mQ(...r)),e.startsWith=(...r)=>e.check(gQ(...r)),e.endsWith=(...r)=>e.check(yQ(...r)),e.min=(...r)=>e.check(Um(...r)),e.max=(...r)=>e.check(Qk(...r)),e.length=(...r)=>e.check(Yk(...r)),e.nonempty=(...r)=>e.check(Um(1,...r)),e.lowercase=r=>e.check(pQ(r)),e.uppercase=r=>e.check(hQ(r)),e.trim=()=>e.check(bQ()),e.normalize=(...r)=>e.check(vQ(...r)),e.toLowerCase=()=>e.check(SQ()),e.toUpperCase=()=>e.check(_Q()),e.slugify=()=>e.check(EQ())}),mY=de("ZodString",(e,t)=>{b_.init(e,t),t3.init(e,t),e.email=n=>e.check(LZ(gY,n)),e.url=n=>e.check(jZ(yY,n)),e.jwt=n=>e.check(nQ(DY,n)),e.emoji=n=>e.check(VZ(vY,n)),e.guid=n=>e.check(v2(x2,n)),e.uuid=n=>e.check($Z(Gh,n)),e.uuidv4=n=>e.check(zZ(Gh,n)),e.uuidv6=n=>e.check(BZ(Gh,n)),e.uuidv7=n=>e.check(UZ(Gh,n)),e.nanoid=n=>e.check(HZ(bY,n)),e.guid=n=>e.check(v2(x2,n)),e.cuid=n=>e.check(qZ(SY,n)),e.cuid2=n=>e.check(FZ(_Y,n)),e.ulid=n=>e.check(GZ(EY,n)),e.base64=n=>e.check(JZ(TY,n)),e.base64url=n=>e.check(eQ(OY,n)),e.xid=n=>e.check(KZ(xY,n)),e.ksuid=n=>e.check(ZZ(wY,n)),e.ipv4=n=>e.check(QZ(RY,n)),e.ipv6=n=>e.check(YZ(CY,n)),e.cidrv4=n=>e.check(XZ(AY,n)),e.cidrv6=n=>e.check(WZ(IY,n)),e.e164=n=>e.check(tQ(MY,n)),e.datetime=n=>e.check(QQ(n)),e.date=n=>e.check(XQ(n)),e.time=n=>e.check(JQ(n)),e.duration=n=>e.check(tY(n))});function E2(e){return NZ(mY,e)}const fn=de("ZodStringFormat",(e,t)=>{an.init(e,t),t3.init(e,t)}),gY=de("ZodEmail",(e,t)=>{qK.init(e,t),fn.init(e,t)}),x2=de("ZodGUID",(e,t)=>{VK.init(e,t),fn.init(e,t)}),Gh=de("ZodUUID",(e,t)=>{HK.init(e,t),fn.init(e,t)}),yY=de("ZodURL",(e,t)=>{FK.init(e,t),fn.init(e,t)}),vY=de("ZodEmoji",(e,t)=>{GK.init(e,t),fn.init(e,t)}),bY=de("ZodNanoID",(e,t)=>{KK.init(e,t),fn.init(e,t)}),SY=de("ZodCUID",(e,t)=>{ZK.init(e,t),fn.init(e,t)}),_Y=de("ZodCUID2",(e,t)=>{QK.init(e,t),fn.init(e,t)}),EY=de("ZodULID",(e,t)=>{YK.init(e,t),fn.init(e,t)}),xY=de("ZodXID",(e,t)=>{XK.init(e,t),fn.init(e,t)}),wY=de("ZodKSUID",(e,t)=>{WK.init(e,t),fn.init(e,t)}),RY=de("ZodIPv4",(e,t)=>{sZ.init(e,t),fn.init(e,t)}),CY=de("ZodIPv6",(e,t)=>{rZ.init(e,t),fn.init(e,t)}),AY=de("ZodCIDRv4",(e,t)=>{oZ.init(e,t),fn.init(e,t)}),IY=de("ZodCIDRv6",(e,t)=>{iZ.init(e,t),fn.init(e,t)}),TY=de("ZodBase64",(e,t)=>{aZ.init(e,t),fn.init(e,t)}),OY=de("ZodBase64URL",(e,t)=>{lZ.init(e,t),fn.init(e,t)}),MY=de("ZodE164",(e,t)=>{uZ.init(e,t),fn.init(e,t)}),DY=de("ZodJWT",(e,t)=>{dZ.init(e,t),fn.init(e,t)}),n3=de("ZodNumber",(e,t)=>{Fk.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,i,c)=>OQ(e,r,i),e.gt=(r,i)=>e.check(S2(r,i)),e.gte=(r,i)=>e.check(nb(r,i)),e.min=(r,i)=>e.check(nb(r,i)),e.lt=(r,i)=>e.check(b2(r,i)),e.lte=(r,i)=>e.check(tb(r,i)),e.max=(r,i)=>e.check(tb(r,i)),e.int=r=>e.check(w2(r)),e.safe=r=>e.check(w2(r)),e.positive=r=>e.check(S2(0,r)),e.nonnegative=r=>e.check(nb(0,r)),e.negative=r=>e.check(b2(0,r)),e.nonpositive=r=>e.check(tb(0,r)),e.multipleOf=(r,i)=>e.check(_2(r,i)),e.step=(r,i)=>e.check(_2(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 TMe(e){return aQ(n3,e)}const PY=de("ZodNumberFormat",(e,t)=>{pZ.init(e,t),n3.init(e,t)});function w2(e){return cQ(PY,e)}const kY=de("ZodBoolean",(e,t)=>{hZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>MQ(e,n,r)});function OMe(e){return lQ(kY,e)}const NY=de("ZodUnknown",(e,t)=>{mZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>PQ()});function R2(){return uQ(NY)}const LY=de("ZodNever",(e,t)=>{gZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>DQ(e,n,r)});function $Y(e){return fQ(LY,e)}const zY=de("ZodArray",(e,t)=>{yZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$Q(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(Um(n,r)),e.nonempty=n=>e.check(Um(1,n)),e.max=(n,r)=>e.check(Qk(n,r)),e.length=(n,r)=>e.check(Yk(n,r)),e.unwrap=()=>e.element});function BY(e,t){return xQ(zY,e,t)}const UY=de("ZodObject",(e,t)=>{bZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zQ(e,n,r,i),Ht(e,"shape",()=>t.shape),e.keyof=()=>GY(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:R2()}),e.loose=()=>e.clone({...e._zod.def,catchall:R2()}),e.strict=()=>e.clone({...e._zod.def,catchall:$Y()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>BG(e,n),e.safeExtend=n=>UG(e,n),e.merge=n=>jG(e,n),e.pick=n=>$G(e,n),e.omit=n=>zG(e,n),e.partial=(...n)=>VG(s3,e,n[0]),e.required=(...n)=>HG(r3,e,n[0])});function jY(e,t){const n={type:"object",shape:e??{},...je(t)};return new UY(n)}const VY=de("ZodUnion",(e,t)=>{SZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>BQ(e,n,r,i),e.options=t.options});function HY(e,t){return new VY({type:"union",options:e,...je(t)})}const qY=de("ZodIntersection",(e,t)=>{_Z.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>UQ(e,n,r,i)});function FY(e,t){return new qY({type:"intersection",left:e,right:t})}const mS=de("ZodEnum",(e,t)=>{EZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,i,c)=>kQ(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 mS({...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 mS({...t,checks:[],...je(i),entries:c})}});function GY(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new mS({type:"enum",entries:n,...je(t)})}const KY=de("ZodTransform",(e,t)=>{xZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>LQ(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ok(e.constructor.name);n.addIssue=c=>{if(typeof c=="string")n.issues.push(_d(c,n.value,t));else{const l=c;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(_d(l))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(c=>(n.value=c,n)):(n.value=i,n)}});function ZY(e){return new KY({type:"transform",transform:e})}const s3=de("ZodOptional",(e,t)=>{Zk.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>e3(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function C2(e){return new s3({type:"optional",innerType:e})}const QY=de("ZodExactOptional",(e,t)=>{wZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>e3(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function YY(e){return new QY({type:"optional",innerType:e})}const XY=de("ZodNullable",(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});function A2(e){return new XY({type:"nullable",innerType:e})}const WY=de("ZodDefault",(e,t)=>{CZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>HQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function JY(e,t){return new WY({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():kk(t)}})}const eX=de("ZodPrefault",(e,t)=>{AZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>qQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function tX(e,t){return new eX({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():kk(t)}})}const r3=de("ZodNonOptional",(e,t)=>{IZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>VQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function nX(e,t){return new r3({type:"nonoptional",innerType:e,...je(t)})}const sX=de("ZodCatch",(e,t)=>{TZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>FQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function rX(e,t){return new sX({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const oX=de("ZodPipe",(e,t)=>{OZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>GQ(e,n,r,i),e.in=t.in,e.out=t.out});function I2(e,t){return new oX({type:"pipe",in:e,out:t})}const iX=de("ZodReadonly",(e,t)=>{MZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>KQ(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function aX(e){return new iX({type:"readonly",innerType:e})}const cX=de("ZodCustom",(e,t)=>{DZ.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,i)=>NQ(e,n)});function lX(e,t={}){return wQ(cX,e,t)}function uX(e){return RQ(e)}const S_="hive:v1:aws-credentials",fX=jY({accessKeyId:E2().min(16,"Access Key ID must be at least 16 characters"),secretAccessKey:E2().min(1,"Secret Access Key is required")});let ri;function Nd(){if(ri!==void 0)return ri;try{const e=localStorage.getItem(S_);if(!e)return ri=null,null;const t=JSON.parse(e),n=fX.safeParse(t);return ri=n.success?n.data:null,ri}catch{return ri=null,null}}function MMe(e){try{localStorage.setItem(S_,JSON.stringify(e)),ri=e}catch{ri=e}}function dX(){try{localStorage.removeItem(S_)}catch{}ri=null}const __=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),E_=e=>({httpHandler:e.httpHandler()});var Ed;(function(e){e.HTTP="http",e.HTTPS="https"})(Ed||(Ed={}));var xd;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(xd||(xd={}));const gS="__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=pX(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 pX(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class $c{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const hX=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)},mX={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},x_=e=>({applyToStack:t=>{t.add(hX(e),mX)}}),gX=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:p}=f,v=d??t.inputFilterSensitiveLog,g=p??t.outputFilterSensitiveLog,{$metadata:b,..._}=r.output;return l?.info?.({clientName:i,commandName:c,input:v(n.input),output:g(_),metadata:b}),r}catch(r){const{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d}=f,p=d??t.inputFilterSensitiveLog;throw l?.error?.({clientName:i,commandName:c,input:p(n.input),error:r,metadata:r.$metadata}),r}},yX={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},w_=e=>({applyToStack:t=>{t.add(gX(),yX)}}),vX={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},bX=()=>e=>async t=>e(t),R_=e=>({applyToStack:t=>{t.add(bX(),vX)}}),Ro=e=>e[gS]||(e[gS]={}),Is=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},SX=(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 _X(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const EX=(e,t)=>(n,r)=>async i=>{const c=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),l=e.authSchemePreference?await e.authSchemePreference():[],f=SX(c,l),d=_X(e.httpAuthSchemes),p=Ro(r),v=[];for(const g of f){const b=d.get(g.schemeId);if(!b){v.push(`HttpAuthScheme \`${g.schemeId}\` was not enabled for this service.`);continue}const _=b.identityProvider(await t.identityProviderConfigProvider(e));if(!_){v.push(`HttpAuthScheme \`${g.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:E={},signingProperties:x={}}=g.propertiesExtractor?.(e,r)||{};g.identityProperties=Object.assign(g.identityProperties||{},E),g.signingProperties=Object.assign(g.signingProperties||{},x),p.selectedHttpAuthScheme={httpAuthOption:g,identity:await _(g.identityProperties),signer:b.signer};break}if(!p.selectedHttpAuthScheme)throw new Error(v.join(` -`));return n(i)},xX={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},C_=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(EX(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),xX)}}),wX={name:"serializerMiddleware"},RX=e=>t=>{throw t},CX=(e,t)=>{},AX=e=>(t,n)=>async r=>{if(!Qn.isInstance(r.request))return t(r);const c=Ro(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c,p=await t({...r,request:await d.sign(r.request,f,l)}).catch((d.errorHandler||RX)(l));return(d.successHandler||CX)(p.response,l),p},o3={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},A_=e=>({applyToStack:t=>{t.addRelativeTo(AX(),o3)}}),nu=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},i3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T2=Object.entries(i3).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),IX=i3.split(""),su=6,ad=8,TX=63,Ia=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=su;const f=i/4*3;c>>=l%ad;const d=Math.floor(l/ad);for(let p=0;p>v)}}return new Uint8Array(n)},xo=e=>new TextEncoder().encode(e),wd=e=>typeof e=="string"?xo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),$a=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function di(e){let t;typeof e=="string"?t=xo(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let c=0;c>v]}i+="==".slice(0,4-d)}return i}class Tc extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?Tc.mutate(Ia(t)):Tc.mutate(xo(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,Tc.prototype),t}transformToString(t="utf-8"){return t==="base64"?di(this):$a(this)}}const O2=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),OX=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:l}=t,f=n!==void 0&&r!==void 0&&i!==void 0&&c!==void 0&&l!==void 0,d=f?l(i,e):void 0,p=e.getReader();return new ReadableStream({async pull(v){const{value:g,done:b}=await p.read();if(b){if(v.enqueue(`0\r -`),f){const _=n(await d);v.enqueue(`${c}:${_}\r +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 MX(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done:d,value:p}=await i.read();if(p&&(r.push(p),n+=p?.byteLength??0),n>=t)break;c=d}i.releaseLock();const l=new Uint8Array(Math.min(t,n));let f=0;for(const d of r){if(d.byteLength>l.byteLength-f){l.set(d.subarray(0,l.byteLength-f),f);break}else l.set(d,f);f+=d.length}return l}const Oc=e=>encodeURIComponent(e).replace(/[!'()*]/g,DX),DX=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function PX(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=Oc(n),Array.isArray(r))for(let i=0,c=r.length;i{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const sb={supported:void 0};class Ld{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new Ld(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),sb.supported===void 0&&(sb.supported=typeof Request<"u"&&"keepalive"in M2("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const i=r??this.config.requestTimeout,c=this.config.keepAlive===!0,l=this.config.credentials;if(n?.aborted){const T=new Error("Request aborted");return T.name="AbortError",Promise.reject(T)}let f=t.path;const d=PX(t.query||{});d&&(f+=`?${d}`),t.fragment&&(f+=`#${t.fragment}`);let p="";if(t.username!=null||t.password!=null){const T=t.username??"",P=t.password??"";p=`${T}:${P}@`}const{port:v,method:g}=t,b=`${t.protocol}//${p}${t.hostname}${v?`:${v}`:""}${f}`,_=g==="GET"||g==="HEAD"?void 0:t.body,E={body:_,headers:new Headers(t.headers),method:g,credentials:l};this.config?.cache&&(E.cache=this.config.cache),_&&(E.duplex="half"),typeof AbortController<"u"&&(E.signal=n),sb.supported&&(E.keepalive=c),typeof this.config.requestInit=="function"&&Object.assign(E,this.config.requestInit(t));let x=()=>{};const R=M2(b,E),C=[fetch(R).then(T=>{const P=T.headers,I={};for(const j of P.entries())I[j[0]]=j[1];return T.body!=null?{response:new $c({headers:I,reason:T.statusText,statusCode:T.status,body:T.body})}:T.blob().then(j=>({response:new $c({headers:I,reason:T.statusText,statusCode:T.status,body:j})}))}),kX(i)];return n&&C.push(new Promise((T,P)=>{const I=()=>{const B=new Error("Request aborted");B.name="AbortError",P(B)};if(typeof n.addEventListener=="function"){const B=n;B.addEventListener("abort",I,{once:!0}),x=()=>B.removeEventListener("abort",I)}else n.onabort=I})),Promise.race(C).finally(x)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const wg=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):NX(e):LX(e);async function NX(e){const t=await $X(e),n=Ia(t);return new Uint8Array(n)}async function LX(e){const t=[],n=e.getReader();let r=!1,i=0;for(;!r;){const{done:f,value:d}=await n.read();d&&(t.push(d),i+=d.length),r=f}const c=new Uint8Array(i);let l=0;for(const f of t)c.set(f,l),l+=f.length;return c}function $X(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 a3={},yS={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),a3[e]=t,yS[t]=e}function c3(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(!P2(e)&&!O2(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(D2);return t=!0,await wg(e)},r=i=>{if(typeof i.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async i=>{const c=await n();if(i==="base64")return di(c);if(i==="hex")return Vs(c);if(i===void 0||i==="utf8"||i==="utf-8")return $a(c);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(c);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(D2);if(t=!0,P2(e))return r(e);if(O2(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},P2=e=>typeof Blob=="function"&&e instanceof Blob;async function zX(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const Sa=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Tc.mutate(e);if(!e)return Tc.mutate(new Uint8Array);const n=t.streamCollector(e);return Tc.mutate(await n)};function Vm(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const lm=e=>typeof e=="function"?e():e,u3=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),BX=e=>(t,n)=>async r=>{const{response:i}=await t(r),{operationSchema:c}=Ro(n),[,l,f,d,p,v]=c??[];try{const g=await e.protocol.deserializeResponse(u3(l,f,d,p,v),{...e,...n},i);return{response:i,output:g}}catch(g){if(Object.defineProperty(g,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in g)){const b="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{g.message+=` - `+b}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(b):n.logger?.warn?.(b)}typeof g.$responseBodyText<"u"&&g.$response&&(g.$response.body=g.$responseBodyText);try{if($c.isInstance(i)){const{headers:_={}}=i,E=Object.entries(_);g.$metadata={httpStatusCode:i.statusCode,requestId:rb(/^x-[\w-]+-request-?id$/,E),extendedRequestId:rb(/^x-[\w-]+-id-2$/,E),cfId:rb(/^x-[\w-]+-cf-id$/,E)}}}catch{}}throw g}},rb=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],UX=e=>(t,n)=>async r=>{const{operationSchema:i}=Ro(n),[,c,l,f,d,p]=i??[],v=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,g=await e.protocol.serializeRequest(u3(c,l,f,d,p),r.input,{...e,...n,endpoint:v});return t({...r,request:g})},jX={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},VX={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function I_(e){return{applyToStack:t=>{t.add(UX(e),VX),t.add(BX(e),jX),e.protocol.setSerdeContext(e)}}}function Yl(e){if(typeof e=="object")return e;e=e|0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return t}const k2={it:Symbol.for("@smithy/nor-struct-it")};class zt{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=zt.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;const r=[];let i=t,c=t;for(this._isMemberSchema=!1;ob(i);)r.push(i[1]),i=i[0],c=lm(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let l=r.length-1;l>=0;--l){const f=r[l];Object.assign(this.memberTraits,Yl(f))}}else this.memberTraits=0;if(c instanceof zt){const l=this.memberTraits;Object.assign(this,c),this.memberTraits=Object.assign({},l,c.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??c.memberName;return}if(this.schema=lm(c),HX(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(c),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){const n=lm(t);if(n instanceof zt)return n;if(ob(n)){const[r,i]=n;if(r instanceof zt)return Object.assign(r.getMergedTraits(),Yl(i)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new zt(n)}getSchema(){const t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){const{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!="object")return!1;const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Yl(this.memberTraits)}getOwnTraits(){return Yl(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema(),i=t?15:r[4]??0;return Qf([i,0],"key")}getValueSchema(){const t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],c=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(c!=null)return Qf([c,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const r=n[4].indexOf(t),i=n[5][r];return Qf(ob(i)?i:[i,0],t)}if(this.isDocumentSchema())return Qf([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,r]of this.structIterator())t[n]=r}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),n=t[4].length;let r=t[k2.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,HX=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 qX=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&WX.warn(XX(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},FX=Math.ceil(2**127*(2-2**-23)),N2=e=>{const t=qX(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>FX)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},GX=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},L2=e=>f3(e,16),$2=e=>f3(e,8),f3=(e,t)=>{const n=GX(e);if(n!==void 0&&KX(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},KX=(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]}},ZX=e=>N2(typeof e=="string"?T_(e):e),QX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,T_=e=>{const t=e.match(QX);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},vS=e=>L2(typeof e=="string"?T_(e):e),YX=e=>$2(typeof e=="string"?T_(e):e),XX=e=>String(new TypeError(e).stack||e).split(` +`)}})};async function AX(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done: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(` -`),WX={warn:console.warn},JX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],O_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Hm(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),c=e.getUTCHours(),l=e.getUTCMinutes(),f=e.getUTCSeconds(),d=i<10?`0${i}`:`${i}`,p=c<10?`0${c}`:`${c}`,v=l<10?`0${l}`:`${l}`,g=f<10?`0${f}`:`${f}`;return`${JX[r]}, ${d} ${O_[n]} ${t} ${p}:${v}:${g} GMT`}const eW=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$/),tW=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$/),nW=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})$/),DMe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=eW.exec(e);if(t){const[n,r,i,c,l,f,d,p]=t;return ib(vS(qm(c)),ab(i),ru(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:p})}if(t=tW.exec(e),t){const[n,r,i,c,l,f,d,p]=t;return oW(ib(sW(c),ab(i),ru(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:p}))}if(t=nW.exec(e),t){const[n,r,i,c,l,f,d,p]=t;return ib(vS(qm(p)),ab(r),ru(i.trimLeft(),"day",1,31),{hours:c,minutes:l,seconds:f,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},ib=(e,t,n,r)=>{const i=t-1;return aW(e,i,n),new Date(Date.UTC(e,i,n,ru(r.hours,"hour",0,23),ru(r.minutes,"minute",0,59),ru(r.seconds,"seconds",0,60),lW(r.fractionalMilliseconds)))},sW=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+vS(qm(e));return ne.getTime()-new Date().getTime()>rW?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,ab=e=>{const t=O_.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},iW=[31,28,31,30,31,30,31,31,30,31,30,31],aW=(e,t,n)=>{let r=iW[t];if(t===1&&cW(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${O_[t]} in ${e}: ${n}`)},cW=e=>e%4===0&&(e%100!==0||e%400===0),ru=(e,t,n,r)=>{const i=YX(qm(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},lW=e=>e==null?0:ZX("0."+e)*1e3,qm=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),Rg=()=>{if(z2)return z2();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,hs[e[0]]+hs[e[1]]+hs[e[2]]+hs[e[3]]+"-"+hs[e[4]]+hs[e[5]]+"-"+hs[e[6]]+hs[e[7]]+"-"+hs[e[8]]+hs[e[9]]+"-"+hs[e[10]]+hs[e[11]]+hs[e[12]]+hs[e[13]]+hs[e[14]]+hs[e[15]]},_a=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};_a.from=e=>e&&typeof e=="object"&&(e instanceof _a||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?_a(String(e)):_a(JSON.stringify(e));_a.fromObject=_a.from;function uW(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const M_="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",D_="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",P_="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",d3="(\\d?\\d)",p3="(\\d{4})",fW=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dW=new RegExp(`^${M_}, ${d3} ${D_} ${p3} ${P_} GMT$`),pW=new RegExp(`^${M_}, ${d3}-${D_}-(\\d\\d) ${P_} GMT$`),hW=new RegExp(`^${M_} ${D_} ( [1-9]|\\d\\d) ${P_} ${p3}$`),mW=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gW=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))},yW=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=fW.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,n,r,i,c,l,f,,d,p]=t;ii(r,1,12),ii(i,1,31),ii(c,0,23),ii(l,0,59),ii(f,0,60);const v=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(c),Number(l),Number(f),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(v.setUTCFullYear(Number(n)),p.toUpperCase()!="Z"){const[,g,b,_]=/([+-])(\d\d):(\d\d)/.exec(p)||[void 0,"+",0,0],E=g==="-"?1:-1;v.setTime(v.getTime()+E*(Number(b)*60*60*1e3+Number(_)*60*1e3))}return v},vW=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,c,l,f,d;if((d=dW.exec(e))?[,t,n,r,i,c,l,f]=d:(d=pW.exec(e))?([,t,n,r,i,c,l,f]=d,r=(Number(r)+1900).toString()):(d=hW.exec(e))&&([,n,t,i,c,l,f,r]=d),r&&l){const p=Date.UTC(Number(r),mW.indexOf(n),Number(t),Number(i),Number(c),Number(l),f?Math.round(parseFloat(`0.${f}`)*1e3):0);ii(t,1,31),ii(i,0,23),ii(c,0,59),ii(l,0,60);const v=new Date(p);return v.setUTCFullYear(Number(r)),v}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function ii(e,t,n){const r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}function bW(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,'"'))})},B2=/^-?\d*(\.\d+)?$/;class $d{string;type;constructor(t,n){if(this.string=t,this.type=n,!B2.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const n=t;return $d.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&B2.test(n.string)}}const SW="modulepreload",_W=function(e){return"/"+e},U2={},pt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");i=d(n.map(p=>{if(p=_W(p),p in U2)return;U2[p]=!0;const v=p.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":SW,v||(b.as="script"),b.crossOrigin="",b.href=p,f&&b.setAttribute("nonce",f),document.head.appendChild(b),v)return new Promise((_,E)=>{b.addEventListener("load",_),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return i.then(l=>{for(const f of l||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};class Cg{serdeContext;setSerdeContext(t){this.serdeContext=t}}class m3 extends Cg{options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=Gn.for(t.defaultNamespace);for(const n of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(n)}getRequestType(){return Qn}getResponseType(){return $c}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol,t.hostname=n.url.hostname,t.port=n.url.port?Number(n.url.port):void 0,t.path=n.url.pathname,t.fragment=n.url.hash||void 0,t.username=n.url.username||void 0,t.password=n.url.password||void 0,t.query||(t.query={});for(const[r,i]of n.url.searchParams.entries())t.query[r]=i;return t}else return t.protocol=n.protocol,t.hostname=n.hostname,t.port=n.port?Number(n.port):void 0,t.path=n.path,t.query={...n.query},t}setHostPrefix(t,n,r){if(this.serdeContext?.disableHostPrefix)return;const i=zt.of(n.input),c=Yl(n.traits??{});if(c.endpoint){let l=c.endpoint?.[0];if(typeof l=="string"){const f=[...i.structIterator()].filter(([,d])=>d.getMergedTraits().hostLabel);for(const[d]of f){const p=r[d];if(typeof p!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);l=l.replace(`{${d}}`,p)}t.hostname=l+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await pt(async()=>{const{EventStreamSerde:n}=await import("./index2.js");return{EventStreamSerde:n}},[]);return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,r,i,c){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class EW extends m3{async serializeRequest(t,n,r){const i={...n??{}},c=this.serializer,l={},f={},d=await r.endpoint(),p=zt.of(t?.input),v=[],g=[];let b=!1,_;const E=new Qn({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:l,headers:f,body:void 0});if(d){this.updateServiceEndpoint(E,d),this.setHostPrefix(E,t,i);const x=Yl(t.traits);if(x.http){E.method=x.http[0];const[R,C]=x.http[1].split("?");E.path=="/"?E.path=R:E.path+=R;const T=new URLSearchParams(C??"");Object.assign(l,Object.fromEntries(T))}}for(const[x,R]of p.structIterator()){const C=R.getMergedTraits()??{},T=i[x];if(T==null&&!R.isIdempotencyToken()){if(C.httpLabel&&(E.path.includes(`{${x}+}`)||E.path.includes(`{${x}}`)))throw new Error(`No value provided for input HTTP label: ${x}.`);continue}if(C.httpPayload)R.isStreaming()?R.isStructSchema()?i[x]&&(_=await this.serializeEventStream({eventStream:i[x],requestSchema:p})):_=T:(c.write(R,T),_=c.flush()),delete i[x];else if(C.httpLabel){c.write(R,T);const P=c.flush();E.path.includes(`{${x}+}`)?E.path=E.path.replace(`{${x}+}`,P.split("/").map(Vm).join("/")):E.path.includes(`{${x}}`)&&(E.path=E.path.replace(`{${x}}`,Vm(P))),delete i[x]}else if(C.httpHeader)c.write(R,T),f[C.httpHeader.toLowerCase()]=String(c.flush()),delete i[x];else if(typeof C.httpPrefixHeaders=="string"){for(const[P,I]of Object.entries(T)){const B=C.httpPrefixHeaders+P;c.write([R.getValueSchema(),{httpHeader:B}],I),f[B.toLowerCase()]=c.flush()}delete i[x]}else C.httpQuery||C.httpQueryParams?(this.serializeQuery(R,T,l),delete i[x]):(b=!0,v.push(x),g.push(R))}if(b&&i){const[x,R]=(p.getName(!0)??"#Unknown").split("#"),C=p.getSchema()[6],T=[3,x,R,p.getMergedTraits(),v,g,void 0];C?T[6]=C:T.pop(),c.write(T,i),_=c.flush()}return E.headers=f,E.query=l,E.body=_,E}serializeQuery(t,n,r){const i=this.serializer,c=t.getMergedTraits();if(c.httpQueryParams){for(const[l,f]of Object.entries(n))if(!(l in r)){const d=t.getValueSchema();Object.assign(d.getMergedTraits(),{...c,httpQuery:l,httpQueryParams:void 0}),this.serializeQuery(d,f,r)}return}if(t.isListSchema()){const l=!!t.getMergedTraits().sparse,f=[];for(const d of n){i.write([t.getValueSchema(),c],d);const p=i.flush();(l||p!==void 0)&&f.push(p)}r[c.httpQuery]=f}else i.write([t,c],n),r[c.httpQuery]=i.flush()}async deserializeResponse(t,n,r){const i=this.deserializer,c=zt.of(t.output),l={};if(r.statusCode>=300){const d=await Sa(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const d in r.headers){const p=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=p}const f=await this.deserializeHttpMessage(c,n,r,l);if(f.length){const d=await Sa(r.body,n);if(d.byteLength>0){const p=await i.read(c,d);for(const v of f)p[v]!=null&&(l[v]=p[v])}}else f.discardResponseBody&&await Sa(r.body,n);return l.$metadata=this.deserializeMetadata(r),l}async deserializeHttpMessage(t,n,r,i,c){let l;i instanceof Set?l=c:l=i;let f=!0;const d=this.deserializer,p=zt.of(t),v=[];for(const[g,b]of p.structIterator()){const _=b.getMemberTraits();if(_.httpPayload){if(f=!1,b.isStreaming())b.isStructSchema()?l[g]=await this.deserializeEventStream({response:r,responseSchema:p}):l[g]=l3(r.body);else if(r.body){const x=await Sa(r.body,n);x.byteLength>0&&(l[g]=await d.read(b,x))}}else if(_.httpHeader){const E=String(_.httpHeader).toLowerCase(),x=r.headers[E];if(x!=null)if(b.isListSchema()){const R=b.getValueSchema();R.getMergedTraits().httpHeader=E;let C;R.isTimestampSchema()&&R.getSchema()===4?C=bW(x,",",2):C=h3(x);const T=[];for(const P of C)T.push(await d.read(R,P.trim()));l[g]=T}else l[g]=await d.read(b,x)}else if(_.httpPrefixHeaders!==void 0){l[g]={};for(const[E,x]of Object.entries(r.headers))if(E.startsWith(_.httpPrefixHeaders)){const R=b.getValueSchema();R.getMergedTraits().httpHeader=E,l[g][E.slice(_.httpPrefixHeaders.length)]=await d.read(R,x)}}else _.httpResponseCode?l[g]=r.statusCode:v.push(g)}return v.discardResponseBody=f,v}}class xW extends m3{async serializeRequest(t,n,r){const i=this.serializer,c={},l={},f=await r.endpoint(),d=zt.of(t?.input),p=d.getSchema();let v;const g=new Qn({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:c,headers:l,body:void 0});f&&(this.updateServiceEndpoint(g,f),this.setHostPrefix(g,t,n));const b={...n};if(n){const _=d.getEventStreamMember();if(_){if(b[_]){const E={};for(const[x,R]of d.structIterator())x!==_&&b[x]&&(i.write(R,b[x]),E[x]=i.flush());v=await this.serializeEventStream({eventStream:b[_],requestSchema:d,initialRequest:E})}}else i.write(p,b),v=i.flush()}return g.headers=l,g.query=c,g.body=v,g.method="POST",g}async deserializeResponse(t,n,r){const i=this.deserializer,c=zt.of(t.output),l={};if(r.statusCode>=300){const d=await Sa(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const d in r.headers){const p=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=p}const f=c.getEventStreamMember();if(f)l[f]=await this.deserializeEventStream({response:r,responseSchema:c,initialResponseContainer:l});else{const d=await Sa(r.body,n);d.byteLength>0&&Object.assign(l,await i.read(c,d))}return l.$metadata=this.deserializeMetadata(r),l}}function Ag(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:c}=e.getMergedTraits();return(t.httpBindings?typeof r=="string"||i?6:c||n?5:void 0:void 0)??t.timestampFormat.default}class g3 extends Cg{settings;constructor(t){super(),this.settings=t}read(t,n){const r=zt.of(t);if(r.isListSchema())return h3(n).map(i=>this.read(r.getValueSchema(),i));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??Ia)(n);if(r.isTimestampSchema())switch(Ag(r,this.settings)){case 5:return yW(n);case 6:return vW(n);case 7:return gW(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isStringSchema()){const i=r.getMergedTraits().mediaType;let c=n;if(i)return r.getMergedTraits().httpHeader&&(c=this.base64ToUtf8(c)),(i==="application/json"||i.endsWith("+json"))&&(c=_a.from(c)),c}return r.isNumericSchema()?Number(n):r.isBigIntegerSchema()?BigInt(n):r.isBigDecimalSchema()?new $d(n,"bigDecimal"):r.isBooleanSchema()?String(n).toLowerCase()==="true":n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??$a)((this.serdeContext?.base64Decoder??Ia)(t))}}class wW extends Cg{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new g3(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,n){const r=zt.of(t),i=r.getMergedTraits(),c=this.serdeContext?.utf8Encoder??$a;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(r,c(n));if(i.httpPayload){if(r.isBlobSchema()){const l=this.serdeContext?.utf8Decoder??xo;return typeof n=="string"?l(n):n}else if(r.isStringSchema())return"byteLength"in n?c(n):n}return this.codecDeserializer.read(r,n)}}class RW extends Cg{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,n){const r=zt.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(n instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${r.getName(!0)}`);switch(Ag(r,this.settings)){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Hm(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n),this.stringBuffer=String(n.getTime()/1e3)}return}if(r.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??di)(n);return}if(r.isListSchema()&&Array.isArray(n)){let l="";for(const f of n){this.write([r.getValueSchema(),r.getMergedTraits()],f);const d=this.flush(),p=r.getValueSchema().isTimestampSchema()?d:uW(d);l!==""&&(l+=", "),l+=p}this.stringBuffer=l;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const i=r.getMergedTraits().mediaType;let c=n;if(i&&((i==="application/json"||i.endsWith("+json"))&&(c=_a.from(c)),r.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??di)(c.toString());return}this.stringBuffer=n;break;default:r.isIdempotencyToken()?this.stringBuffer=Rg():this.stringBuffer=String(n)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class CW{codecSerializer;stringSerializer;buffer;constructor(t,n,r=new RW(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 AW(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 k_{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 IW=e=>function(n){return y3(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,MW=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let i,c,l,f=!1;const d=async p=>{c||(c=r(p));try{i=await c,l=!0,f=!1}finally{c=void 0}return i};return t===void 0?async p=>((!l||p?.forceRefresh)&&(i=await d(p)),i):async p=>((!l||p?.forceRefresh)&&(i=await d(p)),f?i:n(i)?(t(i)&&await d(p),i):(f=!0,i))},DW=void 0;function PW(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function N_(e){const t=nu(e.userAgentAppId??DW),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const r=await t();if(!PW(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 L_{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 kW=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}$"),v3=e=>kW.test(e)||e.startsWith("[")&&e.endsWith("]"),NW=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Ig=(e,t=!1)=>{if(!t)return NW.test(e);const n=e.split(".");for(const r of n)if(!Ig(r))return!1;return!0},pu={},Rd="endpoints";function Ta(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Ta(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Ta).join(", ")})`:JSON.stringify(e,null,2)}class lr extends Error{constructor(t){super(t),this.name="EndpointError"}}const LW=(e,t)=>e===t,$W=e=>{const t=e.split("."),n=[];for(const r of t){const i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new lr(`Path: '${e}' does not end with ']'`);const c=r.slice(i+1,-1);if(Number.isNaN(parseInt(c)))throw new lr(`Invalid array index: '${c}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(c)}else n.push(r)}return n},b3=(e,t)=>$W(t).reduce((n,r)=>{if(typeof n!="object")throw new lr(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),zW=e=>e!=null,BW=e=>!e,cb={[Ed.HTTP]:80,[Ed.HTTPS]:443},UW=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:b,port:_,protocol:E="",path:x="",query:R={}}=e,C=new URL(`${E}//${b}${_?`:${_}`:""}${x}`);return C.search=Object.entries(R).map(([T,P])=>`${T}=${P}`).join("&"),C}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:i,pathname:c,protocol:l,search:f}=t;if(f)return null;const d=l.slice(0,-1);if(!Object.values(Ed).includes(d))return null;const p=v3(i),v=n.includes(`${r}:${cb[d]}`)||typeof e=="string"&&e.includes(`${r}:${cb[d]}`),g=`${r}${v?`:${cb[d]}`:""}`;return{scheme:d,authority:g,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:p}},jW=(e,t)=>e===t,VW=(e,t,n,r)=>t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),qW={booleanEquals:LW,getAttr:b3,isSet:zW,isValidHostLabel:Ig,not:BW,parseURL:UW,stringEquals:jW,substring:VW,uriEncode:HW},S3=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Tg=(e,t,n)=>{if(typeof e=="string")return S3(e,n);if(e.fn)return E3.callFunction(e,n);if(e.ref)return FW(e,n);throw new lr(`'${t}': ${String(e)} is not a string, function or reference.`)},_3=({fn:e,argv:t},n)=>{const r=t.map(c=>["boolean","number"].includes(typeof c)?c:E3.evaluateExpression(c,"arg",n)),i=e.split(".");return i[0]in pu&&i[1]!=null?pu[i[0]][i[1]](...r):qW[e](...r)},E3={evaluateExpression:Tg,callFunction:_3},GW=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new lr(`'${e}' is already defined in Reference Record.`);const r=_3(t,n);return n.logger?.debug?.(`${Rd} evaluateCondition: ${Ta(t)} = ${Ta(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},$_=(e=[],t)=>{const n={};for(const r of e){const{result:i,toAssign:c}=GW(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!i)return{result:i};c&&(n[c.name]=c.value,t.logger?.debug?.(`${Rd} assign: ${c.name} := ${Ta(c.value)}`))}return{result:!0,referenceRecord:n}},KW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:i.map(c=>{const l=Tg(c,"Header value entry",t);if(typeof l!="string")throw new lr(`Header '${r}' value '${l}' is not a string`);return l})}),{}),x3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:R3.getEndpointProperty(i,t)}),{}),w3=(e,t)=>{if(Array.isArray(e))return e.map(n=>w3(n,t));switch(typeof e){case"string":return S3(e,t);case"object":if(e===null)throw new lr(`Unexpected endpoint property: ${e}`);return R3.getEndpointProperties(e,t);case"boolean":return e;default:throw new lr(`Unexpected endpoint property type: ${typeof e}`)}},R3={getEndpointProperty:w3,getEndpointProperties:x3},ZW=(e,t)=>{const n=Tg(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new lr(`Endpoint URL must be a string, got ${typeof n}`)},QW=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:i,referenceRecord:c}=$_(n,t);if(!i)return;const l={...t,referenceRecord:{...t.referenceRecord,...c}},{url:f,properties:d,headers:p}=r;return t.logger?.debug?.(`${Rd} Resolving endpoint from template: ${Ta(r)}`),{...p!=null&&{headers:KW(p,l)},...d!=null&&{properties:x3(d,l)},url:ZW(f,l)}},YW=(e,t)=>{const{conditions:n,error:r}=e,{result:i,referenceRecord:c}=$_(n,t);if(i)throw new lr(Tg(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))},C3=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=QW(n,t);if(r)return r}else if(n.type==="error")YW(n,t);else if(n.type==="tree"){const r=A3.evaluateTreeRule(n,t);if(r)return r}else throw new lr(`Unknown endpoint rule: ${n}`);throw new lr("Rules evaluation failed")},XW=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:c}=$_(n,t);if(i)return A3.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...c}})},A3={evaluateRules:C3,evaluateTreeRule:XW},z_=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:i,rules:c}=e;t.logger?.debug?.(`${Rd} Initial EndpointParams: ${Ta(n)}`);const l=Object.entries(i).filter(([,p])=>p.default!=null).map(([p,v])=>[p,v.default]);if(l.length>0)for(const[p,v]of l)n[p]=n[p]??v;const f=Object.entries(i).filter(([,p])=>p.required).map(([p])=>p);for(const p of f)if(n[p]==null)throw new lr(`Missing required parameter: '${p}'`);const d=C3(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${Rd} Resolved endpoint: ${Ta(d)}`),d},I3=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!I3(n))return!1;return!0}return!(!Ig(e)||e.length<3||e.length>63||e!==e.toLowerCase()||v3(e))},j2=":",WW="/",JW=e=>{const t=e.split(j2);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(j2)==="")return null;const d=f.map(p=>p.split(WW)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},eJ=[{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)"}}}],tJ={partitions:eJ};let nJ=tJ;const sJ=e=>{const{partitions:t}=nJ;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},Og={isVirtualHostableS3Bucket:I3,parseArn:JW,partition:sJ};pu.aws=Og;function rJ(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}const hu=e=>{if(typeof e=="string")return hu(new URL(e));const{hostname:t,pathname:n,port:r,protocol:i,search:c}=e;let l;return c&&(l=rJ(c)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:l}};function oJ(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function eo(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const V2=e=>$c.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,B_=e=>new Date(Date.now()+e),iJ=(e,t)=>Math.abs(B_(t).getTime()-e)>=3e5,H2=(e,t)=>{const n=Date.parse(e);return iJ(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},T3=async e=>{const t=cd("context",e.context),n=cd("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],c=await cd("signer",n.signer)(r),l=e?.signingRegion,f=e?.signingRegionSet,d=e?.signingName;return{config:n,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}};class Mg{async sign(t,n,r){if(!Qn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await T3(r),{config:c,signer:l}=i;let{signingRegion:f,signingName:d}=i;const p=r.context;if(p?.authSchemes?.length??!1){const[g,b]=p.authSchemes;g?.name==="sigv4a"&&b?.name==="sigv4"&&(f=b?.signingRegion??f,d=b?.signingName??d)}return await l.sign(t,{signingDate:B_(c.systemClockOffset),signingRegion:f,signingService:d})}errorHandler(t){return n=>{const r=n.ServerTime??V2(n.$response);if(r){const i=cd("config",t.config),c=i.systemClockOffset;i.systemClockOffset=H2(r,i.systemClockOffset),i.systemClockOffset!==c&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=V2(t);if(r){const i=cd("config",n.config);i.systemClockOffset=H2(r,i.systemClockOffset)}}}class aJ extends Mg{async sign(t,n,r){if(!Qn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}=await T3(r),v=(await i.sigv4aSigningRegionSet?.()??f??[l]).join(",");return await c.sign(t,{signingDate:B_(i.systemClockOffset),signingRegion:v,signingService:d})}}const cJ=(e,t,n)=>{let r,i,c,l=!1;const f=async()=>{i||(i=e());try{r=await i,c=!0,l=!1}finally{i=void 0}return r};return async d=>((!c||d?.forceRefresh)&&(r=await f()),r)},lJ=e=>(e.sigv4aSigningRegionSet=nu(e.sigv4aSigningRegionSet),e),uJ="X-Amz-Algorithm",fJ="X-Amz-Credential",O3="X-Amz-Date",dJ="X-Amz-SignedHeaders",pJ="X-Amz-Expires",M3="X-Amz-Signature",D3="X-Amz-Security-Token",P3="authorization",k3=O3.toLowerCase(),hJ="date",mJ=[P3,k3,hJ],gJ=M3.toLowerCase(),bS="x-amz-content-sha256",yJ=D3.toLowerCase(),vJ={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},bJ=/^proxy-/,SJ=/^sec-/,lb="AWS4-HMAC-SHA256",_J="AWS4-HMAC-SHA256-PAYLOAD",EJ="UNSIGNED-PAYLOAD",xJ=50,N3="aws4_request",wJ=3600*24*7,Kh={},ub=[],fb=(e,t,n)=>`${e}/${t}/${n}/${N3}`,RJ=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 Kh)return Kh[l];for(ub.push(l);ub.length>xJ;)delete Kh[ub.shift()];let f=`AWS4${t.secretAccessKey}`;for(const d of[n,r,i,N3])f=await q2(e,f,d);return Kh[l]=f},q2=(e,t,n)=>{const r=new e(t);return r.update(wd(n)),r.digest()},F2=({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 vJ||t?.has(c)||bJ.test(c)||SJ.test(c))&&(!n||n&&!n.has(c))||(r[c]=e[i].trim().replace(/\s+/g," "))}return r},CJ=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",db=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===bS)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||CJ(t)){const r=new n;return r.update(wd(t)),Vs(await r.digest())}return EJ};class AJ{format(t){const n=[];for(const c of Object.keys(t)){const l=xo(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=xo(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const p=new Uint8Array(d.buffer);return p.set(f,3),p;case"timestamp":const v=new Uint8Array(9);return v[0]=8,v.set(TJ.fromNumber(t.value.valueOf()).bytes,1),v;case"uuid":if(!IJ.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(c3(t.value.replace(/\-/g,"")),1),g}}}var G2;(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"})(G2||(G2={}));const IJ=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let TJ=class L3{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&&K2(n),new L3(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&K2(t),parseInt(Vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function K2(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const OJ=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},MJ=(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}},Z2=e=>{e=Qn.clone(e);for(const t of Object.keys(e.headers))mJ.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},DJ=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===gJ)continue;const i=Oc(r);t.push(i);const c=e[r];typeof c=="string"?n[i]=`${i}=${Oc(c)}`:Array.isArray(c)&&(n[i]=c.slice(0).reduce((l,f)=>l.concat([`${i}=${Oc(f)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},PJ=e=>kJ(e).toISOString().replace(/\.\d{3}Z$/,"Z"),kJ=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class NJ{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} +`),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)} -${DJ(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(wd(r));const l=await c.digest();return`${i} +${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 Oc(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=PJ(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class SS extends NJ{headerFormatter=new AJ;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){super({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:c,unhoistableHeaders:l,signableHeaders:f,hoistableHeaders:d,signingRegion:p,signingService:v}=n,g=await this.credentialProvider();this.validateResolvedCredentials(g);const b=p??await this.regionProvider(),{longDate:_,shortDate:E}=this.formatDate(r);if(i>wJ)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const x=fb(E,b,v??this.service),R=MJ(Z2(t),{unhoistableHeaders:l,hoistableHeaders:d});g.sessionToken&&(R.query[D3]=g.sessionToken),R.query[uJ]=lb,R.query[fJ]=`${g.accessKeyId}/${x}`,R.query[O3]=_,R.query[pJ]=i.toString(10);const C=F2(R,c,f);return R.query[dJ]=this.getCanonicalHeaderList(C),R.query[M3]=await this.getSignature(_,x,this.getSigningKey(g,b,E,v),this.createCanonicalRequest(R,C,await db(t,this.sha256))),R}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:c,signingService:l}){const f=c??await this.regionProvider(),{shortDate:d,longDate:p}=this.formatDate(r),v=fb(d,f,l??this.service),g=await db({headers:{},body:n},this.sha256),b=new this.sha256;b.update(t);const _=Vs(await b.digest()),E=[_J,p,v,i,_,g].join(` -`);return this.signString(E,{signingDate:r,signingRegion:f,signingService:l})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:i,priorSignature:t.priorSignature}).then(l=>({message:t.message,signature:l}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=r??await this.regionProvider(),{shortDate:f}=this.formatDate(n),d=new this.sha256(await this.getSigningKey(c,l,f,i));return d.update(wd(t)),Vs(await d.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:c,signingService:l}={}){const f=await this.credentialProvider();this.validateResolvedCredentials(f);const d=c??await this.regionProvider(),p=Z2(t),{longDate:v,shortDate:g}=this.formatDate(n),b=fb(g,d,l??this.service);p.headers[k3]=v,f.sessionToken&&(p.headers[yJ]=f.sessionToken);const _=await db(p,this.sha256);!OJ(bS,p.headers)&&this.applyChecksum&&(p.headers[bS]=_);const E=F2(p,i,r),x=await this.getSignature(v,b,this.getSigningKey(f,d,g,l),this.createCanonicalRequest(p,E,_));return p.headers[P3]=`${lb} Credential=${f.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(E)}, Signature=${x}`,p}async getSignature(t,n,r,i){const c=await this.createStringToSign(t,n,i,lb),l=new this.sha256(await r);return l.update(wd(c)),Vs(await l.digest())}getSigningKey(t,n,r,i){return RJ(this.sha256,t,r,n,i||this.service)}}const U_=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(p){p&&p!==t&&p!==r&&(n=!0),t=p;const v=LJ(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),g=$J(e,v);if(n&&!g.attributed){const b=typeof t=="object"&&t!==null;r=async _=>{const x=await g(_);return b&&(!x.$source||Object.keys(x.$source).length===0)?oJ(x,"CREDENTIALS_CODE","e"):x},r.memoized=g.memoized,r.configBound=g.configBound,r.attributed=!0}else r=g},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:i=!0,systemClockOffset:c=e.systemClockOffset||0,sha256:l}=e;let f;return e.signer?f=nu(e.signer):e.regionInfoProvider?f=()=>nu(e.region)().then(async p=>[await e.regionInfoProvider(p,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},p]).then(([p,v])=>{const{signingRegion:g,signingService:b}=p;e.signingRegion=e.signingRegion||g||v,e.signingName=e.signingName||b||e.serviceId;const _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},E=e.signerConstructor||SS;return new E(_)}):f=async p=>{p=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await nu(e.region)(),properties:{}},p);const v=p.signingRegion,g=p.signingName;e.signingRegion=e.signingRegion||v,e.signingName=e.signingName||g||e.serviceId;const b={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},_=e.signerConstructor||SS;return new _(b)},Object.assign(e,{systemClockOffset:c,signingEscapePath:i,signer:f})};function LJ(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t?.memoized?r=t:r=MW(t,OW,y3):n?r=nu(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function $J(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 Q2=typeof TextEncoder=="function"?new TextEncoder:null,j_=e=>{if(typeof e=="string"){if(Q2)return Q2.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},_c=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},la=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Fm=()=>{let e=[],t=[],n=!1;const r=new Set,i=g=>g.sort((b,_)=>Y2[_.step]-Y2[b.step]||X2[_.priority||"normal"]-X2[b.priority||"normal"]),c=g=>{let b=!1;const _=E=>{const x=_c(E.name,E.aliases);if(x.includes(g)){b=!0;for(const R of x)r.delete(R);return!1}return!0};return e=e.filter(_),t=t.filter(_),b},l=g=>{let b=!1;const _=E=>{if(E.middleware===g){b=!0;for(const x of _c(E.name,E.aliases))r.delete(x);return!1}return!0};return e=e.filter(_),t=t.filter(_),b},f=g=>(e.forEach(b=>{g.add(b.middleware,{...b})}),t.forEach(b=>{g.addRelativeTo(b.middleware,{...b})}),g.identifyOnResolve?.(v.identifyOnResolve()),g),d=g=>{const b=[];return g.before.forEach(_=>{_.before.length===0&&_.after.length===0?b.push(_):b.push(...d(_))}),b.push(g),g.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?b.push(_):b.push(...d(_))}),b},p=(g=!1)=>{const b=[],_=[],E={};return e.forEach(R=>{const C={...R,before:[],after:[]};for(const T of _c(C.name,C.aliases))E[T]=C;b.push(C)}),t.forEach(R=>{const C={...R,before:[],after:[]};for(const T of _c(C.name,C.aliases))E[T]=C;_.push(C)}),_.forEach(R=>{if(R.toMiddleware){const C=E[R.toMiddleware];if(C===void 0){if(g)return;throw new Error(`${R.toMiddleware} is not found when adding ${la(R.name,R.aliases)} middleware ${R.relation} ${R.toMiddleware}`)}R.relation==="after"&&C.after.push(R),R.relation==="before"&&C.before.push(R)}}),i(b).map(d).reduce((R,C)=>(R.push(...C),R),[])},v={add:(g,b={})=>{const{name:_,override:E,aliases:x}=b,R={step:"initialize",priority:"normal",middleware:g,...b},C=_c(_,x);if(C.length>0){if(C.some(T=>r.has(T))){if(!E)throw new Error(`Duplicate middleware name '${la(_,x)}'`);for(const T of C){const P=e.findIndex(B=>B.name===T||B.aliases?.some(j=>j===T));if(P===-1)continue;const I=e[P];if(I.step!==R.step||R.priority!==I.priority)throw new Error(`"${la(I.name,I.aliases)}" middleware with ${I.priority} priority in ${I.step} step cannot be overridden by "${la(_,x)}" middleware with ${R.priority} priority in ${R.step} step.`);e.splice(P,1)}}for(const T of C)r.add(T)}e.push(R)},addRelativeTo:(g,b)=>{const{name:_,override:E,aliases:x}=b,R={middleware:g,...b},C=_c(_,x);if(C.length>0){if(C.some(T=>r.has(T))){if(!E)throw new Error(`Duplicate middleware name '${la(_,x)}'`);for(const T of C){const P=t.findIndex(B=>B.name===T||B.aliases?.some(j=>j===T));if(P===-1)continue;const I=t[P];if(I.toMiddleware!==R.toMiddleware||I.relation!==R.relation)throw new Error(`"${la(I.name,I.aliases)}" middleware ${I.relation} "${I.toMiddleware}" middleware cannot be overridden by "${la(_,x)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);t.splice(P,1)}}for(const T of C)r.add(T)}t.push(R)},clone:()=>f(Fm()),use:g=>{g.applyToStack(v)},remove:g=>typeof g=="string"?c(g):l(g),removeByTag:g=>{let b=!1;const _=E=>{const{tags:x,name:R,aliases:C}=E;if(x&&x.includes(g)){const T=_c(R,C);for(const P of T)r.delete(P);return b=!0,!1}return!0};return e=e.filter(_),t=t.filter(_),b},concat:g=>{const b=f(Fm());return b.use(g),b.identifyOnResolve(n||b.identifyOnResolve()||(g.identifyOnResolve?.()??!1)),b},applyToStack:f,identify:()=>p(!0).map(g=>{const b=g.step??g.relation+" "+g.toMiddleware;return la(g.name,g.aliases)+" - "+b}),identifyOnResolve(g){return typeof g=="boolean"&&(n=g),n},resolve:(g,b)=>{for(const _ of p().map(E=>E.middleware).reverse())g=_(g,b);return n&&console.log(v.identify()),g}};return v},Y2={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},X2={high:3,normal:2,low:1};class V_{config;middlewareStack=Fm();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){const i=typeof n!="function"?n:void 0,c=typeof n=="function"?n:r,l=i===void 0&&this.config.cacheMiddleware===!0;let f;if(l){this.handlers||(this.handlers=new WeakMap);const d=this.handlers;d.has(t.constructor)?f=d.get(t.constructor):(f=t.resolveMiddleware(this.middlewareStack,this.config,i),d.set(t.constructor,f))}else delete this.handlers,f=t.resolveMiddleware(this.middlewareStack,this.config,i);if(c)f(t).then(d=>c(null,d.output),d=>c(d)).catch(()=>{});else return f(t).then(d=>d.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const pb="***SensitiveInformation***";function _S(e,t){if(t==null)return t;const n=zt.of(e);if(n.getMergedTraits().sensitive)return pb;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return pb}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return pb}else if(n.isStructSchema()&&typeof t=="object"){const r=t,i={};for(const[c,l]of n.structIterator())r[c]!=null&&(i[c]=_S(l,r[c]));return i}return t}class xn{middlewareStack=Fm();schema;static classBuilder(){return new zJ}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,smithyContext:p,additionalContext:v,CommandCtor:g}){for(const R of i.bind(this)(g,t,n,r))this.middlewareStack.use(R);const b=t.concat(this.middlewareStack),{logger:_}=n,E={logger:_,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,[gS]:{commandInstance:this,...p},...v},{requestHandler:x}=n;return b.resolve(R=>x.handle(R.request,r||{}),E)}}class zJ{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends xn{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super(),this.input=r??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,c){const l=t._operationSchema,f=l?.[4]??l?.input,d=l?.[5]??l?.output;return this.resolveMiddlewareWithContext(r,i,c,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(l?_S.bind(null,f):p=>p),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?_S.bind(null,d):p=>p),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class Ea extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const n=t;return Ea.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const n=t;return this===Ea?Ea.isInstance(t):Ea.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const W2=(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},H_=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{}}},$3=Object.values(xd),BJ=e=>{const t=[];for(const n in xd){const r=xd[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(const[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const r=n.algorithmId(),i=n.checksumConstructor();$3.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},UJ=e=>{const t={};return e.checksumAlgorithms().forEach(n=>{const r=n.algorithmId();$3.includes(r)&&(t[r]=n.checksumConstructor())}),t},jJ=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),VJ=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},q_=e=>Object.assign(BJ(e),jJ(e)),F_=e=>Object.assign(UJ(e),VJ(e)),z3=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]=z3(e[n]));return e};class Dg{trace(){}debug(){}info(){}warn(){}error(){}}class B3{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,n){const r=n.getMemberSchemas(),i=Object.values(r).find(c=>!!c.getMergedTraits().httpPayload);if(i){const c=i.getMergedTraits().mediaType;return c||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(l=>{const{httpQuery:f,httpQueryParams:d,httpHeader:p,httpLabel:v,httpPrefixHeaders:g}=l.getMergedTraits();return!f&&!d&&!p&&!v&&g===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,c,l){let f=n,d=t;t.includes("#")&&([f,d]=t.split("#"));const p={$metadata:c,$fault:r.statusCode<500?"client":"server"},v=Gn.for(f);try{return{errorSchema:l?.(v,d)??v.getSchema(t),errorMetadata:p}}catch{i.message=i.message??i.Message??"UnknownError";const b=Gn.for("smithy.ts.sdk.synthetic."+f),_=b.getBaseException();if(_){const E=b.getErrorCtor(_)??Error;throw this.decorateServiceException(Object.assign(new E({name:d}),p),i)}throw this.decorateServiceException(Object.assign(new Error(d),p),i)}}decorateServiceException(t,n={}){if(this.queryCompat){const r=t.Message??n.Message,i=W2(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 W2(t,n)}setQueryCompatError(t,n){const r=n.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[i,c]=r.split(";"),l=Object.entries(t),f={Code:i,Type:c};Object.assign(t,f);for(const[d,p]of l)f[d==="message"?"Message":d]=p;delete f.__type,t.Error=f}}queryCompatOutput(t,n){t.Error&&(n.Error=t.Error),t.Type&&(n.Type=t.Type),t.Code&&(n.Code=t.Code)}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch{return t.find(i=>zt.of(i).getMergedTraits().awsQueryError?.[0]===n)}}}class Pg{serdeContext;setSerdeContext(t){this.serdeContext=t}}class HJ{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 qJ(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function FJ(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class ES{value;constructor(t){this.value=t}toString(){return FJ(""+this.value)}}class Cs{name;children;attributes={};static of(t,n,r){const i=new Cs(t);return n!==void 0&&i.addChildNode(new ES(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}="${qJ(""+c)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}}let hb;function GJ(e){hb||(hb=new DOMParser);const t=hb.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const n=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const i=r;if(i.attributes.length===0&&i.childNodes.length===0)return"";const c={},l=Array.from(i.attributes);for(const d of l)c[`${d.name}`]=d.value;const f=Array.from(i.childNodes);for(const d of f){const p=n(d);if(p!=null){const v=d.nodeName;if(f.length===1&&l.length===0&&v==="#text")return p;c[v]?Array.isArray(c[v])?c[v].push(p):c[v]=[c[v],p]:c[v]=p}else if(f.length===1&&l.length===0)return i.textContent}return c}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}class U3 extends Pg{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new g3(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,n,r){const i=zt.of(t),c=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(c).find(p=>!!p.getMemberTraits().eventPayload)){const p={},v=Object.keys(c)[0];return c[v].isBlobSchema()?p[v]=n:p[v]=this.read(c[v],n),p}const f=(this.serdeContext?.utf8Encoder??$a)(n),d=this.parseXml(f);return this.readSchema(t,r?d[r]:d)}readSchema(t,n){const r=zt.of(t);if(r.isUnitSchema())return;const i=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(n))return this.readSchema(r,[n]);if(n==null)return n;if(typeof n=="object"){const c=!!i.sparse,l=!!i.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),p=[],v=d.getMergedTraits().xmlName??"member",g=l?n:(n[0]??n)[v],b=Array.isArray(g)?g:[g];for(const _ of b)(_!=null||c)&&p.push(this.readSchema(d,_));return p}const f={};if(r.isMapSchema()){const d=r.getKeySchema(),p=r.getValueSchema();let v;l?v=Array.isArray(n)?n:[n]:v=Array.isArray(n.entry)?n.entry:[n.entry];const g=d.getMergedTraits().xmlName??"key",b=p.getMergedTraits().xmlName??"value";for(const _ of v){const E=_[g],x=_[b];(x!=null||c)&&(f[E]=this.readSchema(p,x))}return f}if(r.isStructSchema()){const d=r.isUnionSchema();let p;d&&(p=new HJ(n,f));for(const[v,g]of r.structIterator()){const b=g.getMergedTraits(),_=b.httpPayload?b.xmlName??g.getName():g.getMemberTraits().xmlName??v;d&&p.mark(_),n[_]!=null&&(f[v]=this.readSchema(g,n[_]))}return d&&p.writeUnknown(),f}if(r.isDocumentSchema())return n;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,n)}parseXml(t){if(t.length){let n;try{n=GJ(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]),z3(c)}return{}}}class KJ extends Pg{settings;buffer;constructor(t){super(),this.settings=t}write(t,n,r=""){this.buffer===void 0&&(this.buffer="");const i=zt.of(t);if(r&&!r.endsWith(".")&&(r+="."),i.isBlobSchema())(typeof n=="string"||n instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??di)(n)));else if(i.isBooleanSchema()||i.isNumericSchema()||i.isStringSchema())n!=null?(this.writeKey(r),this.writeValue(String(n))):i.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(Rg()));else if(i.isBigIntegerSchema())n!=null&&(this.writeKey(r),this.writeValue(String(n)));else if(i.isBigDecimalSchema())n!=null&&(this.writeKey(r),this.writeValue(n instanceof $d?n.string:String(n)));else if(i.isTimestampSchema()){if(n instanceof Date)switch(this.writeKey(r),Ag(i,this.settings)){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Hm(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}else if(i.isDocumentSchema())Array.isArray(n)?this.write(79,n,r):n instanceof Date?this.write(4,n,r):n instanceof Uint8Array?this.write(21,n,r):n&&typeof n=="object"?this.write(143,n,r):(this.writeKey(r),this.writeValue(String(n)));else if(i.isListSchema()){if(Array.isArray(n))if(n.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const c=i.getValueSchema(),l=this.settings.flattenLists||i.getMergedTraits().xmlFlattened;let f=1;for(const d of n){if(d==null)continue;const p=c.getMergedTraits(),v=this.getKey("member",p.xmlName,p.ec2QueryName),g=l?`${r}${f}`:`${r}${v}.${f}`;this.write(c,d,g),++f}}}else if(i.isMapSchema()){if(n&&typeof n=="object"){const c=i.getKeySchema(),l=i.getValueSchema(),f=i.getMergedTraits().xmlFlattened;let d=1;for(const[p,v]of Object.entries(n)){if(v==null)continue;const g=c.getMergedTraits(),b=this.getKey("key",g.xmlName,g.ec2QueryName),_=f?`${r}${d}.${b}`:`${r}entry.${d}.${b}`,E=l.getMergedTraits(),x=this.getKey("value",E.xmlName,E.ec2QueryName),R=f?`${r}${d}.${x}`:`${r}entry.${d}.${x}`;this.write(c,p,_),this.write(l,v,R),++d}}}else if(i.isStructSchema()){if(n&&typeof n=="object"){let c=!1;for(const[l,f]of i.structIterator()){if(n[l]==null&&!f.isIdempotencyToken())continue;const d=f.getMergedTraits(),p=this.getKey(l,d.xmlName,d.ec2QueryName,"struct"),v=`${r}${p}`;this.write(f,n[l],v),c=!0}if(!c&&i.isUnionSchema()){const{$unknown:l}=n;if(Array.isArray(l)){const[f,d]=l,p=`${r}${f}`;this.write(15,d,p)}}}}else if(!i.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${i.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,n,r,i){const{ec2:c,capitalizeKeys:l}=this.settings;if(c&&r)return r;const f=n??t;return l&&i==="struct"?f[0].toUpperCase()+f.slice(1):f}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${Vm(t)}=`}writeValue(t){this.buffer+=Vm(t)}}class j3 extends xW{options;serializer;deserializer;mixin=new B3;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 KJ(n),this.deserializer=new U3(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r);i.path.endsWith("/")||(i.path+="/"),Object.assign(i.headers,{"content-type":"application/x-www-form-urlencoded"}),(lm(t.input)==="unit"||!i.body)&&(i.body="");const c=t.name.split("#")[1]??t.name;return i.body=`Action=${c}&Version=${this.options.version}`+i.body,i.body.endsWith("&")&&(i.body=i.body.slice(-1)),i}async deserializeResponse(t,n,r){const i=this.deserializer,c=zt.of(t.output),l={};if(r.statusCode>=300){const g=await Sa(r.body,n);g.byteLength>0&&Object.assign(l,await i.read(15,g)),await this.handleError(t,n,r,l,this.deserializeMetadata(r))}for(const g in r.headers){const b=r.headers[g];delete r.headers[g],r.headers[g.toLowerCase()]=b}const f=t.name.split("#")[1]??t.name,d=c.isStructSchema()&&this.useNestedResult()?f+"Result":void 0,p=await Sa(r.body,n);return p.byteLength>0&&Object.assign(l,await i.read(c,p,d)),{$metadata:this.deserializeMetadata(r),...l}}useNestedResult(){return!0}async handleError(t,n,r,i,c){const l=this.loadQueryErrorCode(r,i)??"Unknown",f=this.loadQueryError(i)??{},d=this.loadQueryErrorMessage(i);f.message=d,f.Error={Type:f.Type,Code:f.Code,Message:d};const{errorSchema:p,errorMetadata:v}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,f,c,this.mixin.findQueryCompatibleError),g=zt.of(p),b=Gn.for(p[1]).getErrorCtor(p)??Error,_=new b(d),E={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[x,R]of g.structIterator()){const C=R.getMergedTraits().xmlName??x,T=f[C]??i[C];E[x]=this.deserializer.readSchema(R,T)}throw this.mixin.decorateServiceException(Object.assign(_,v,{$fault:g.getMergedTraits().error,message:d},E),i)}loadQueryErrorCode(t,n){const r=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class ZJ extends j3{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 QJ=(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 YJ extends Pg{settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,n){const r=zt.of(t);if(r.isStringSchema()&&typeof n=="string")this.stringBuffer=n;else if(r.isBlobSchema())this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??Ia)(n);else{this.buffer=this.writeStruct(r,n,void 0);const i=r.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){const n=this.byteBuffer;return delete this.byteBuffer,n}if(this.stringBuffer!==void 0){const n=this.stringBuffer;return delete this.stringBuffer,n}const t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,n,r){const i=t.getMergedTraits(),c=t.isMemberSchema()&&!i.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():i.xmlName??t.getName();if(!c||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);const l=Cs.of(c),[f,d]=this.getXmlnsAttribute(t,r);for(const[v,g]of t.structIterator()){const b=n[v];if(b!=null||g.isIdempotencyToken()){if(g.getMergedTraits().xmlAttribute){l.addAttribute(g.getMergedTraits().xmlName??v,this.writeSimple(g,b));continue}if(g.isListSchema())this.writeList(g,b,l,d);else if(g.isMapSchema())this.writeMap(g,b,l,d);else if(g.isStructSchema())l.addChildNode(this.writeStruct(g,b,d));else{const _=Cs.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,b,_,d),l.addChildNode(_)}}}const{$unknown:p}=n;if(p&&t.isUnionSchema()&&Array.isArray(p)&&Object.keys(n).length===1){const[v,g]=p,b=Cs.of(v);if(typeof g!="string")if(n instanceof Cs||n instanceof ES)l.addChildNode(n);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,g,b,d),l.addChildNode(b)}return d&&l.addAttribute(f,d),l}writeList(t,n,r,i){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);const c=t.getMergedTraits(),l=t.getValueSchema(),f=l.getMergedTraits(),d=!!f.sparse,p=!!c.xmlFlattened,[v,g]=this.getXmlnsAttribute(t,i),b=(_,E)=>{if(l.isListSchema())this.writeList(l,Array.isArray(E)?E:[E],_,g);else if(l.isMapSchema())this.writeMap(l,E,_,g);else if(l.isStructSchema()){const x=this.writeStruct(l,E,g);_.addChildNode(x.withName(p?c.xmlName??t.getMemberName():f.xmlName??"member"))}else{const x=Cs.of(p?c.xmlName??t.getMemberName():f.xmlName??"member");this.writeSimpleInto(l,E,x,g),_.addChildNode(x)}};if(p)for(const _ of n)(d||_!=null)&&b(r,_);else{const _=Cs.of(c.xmlName??t.getMemberName());g&&_.addAttribute(v,g);for(const E of n)(d||E!=null)&&b(_,E);r.addChildNode(_)}}writeMap(t,n,r,i,c=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);const l=t.getMergedTraits(),f=t.getKeySchema(),p=f.getMergedTraits().xmlName??"key",v=t.getValueSchema(),g=v.getMergedTraits(),b=g.xmlName??"value",_=!!g.sparse,E=!!l.xmlFlattened,[x,R]=this.getXmlnsAttribute(t,i),C=(T,P,I)=>{const B=Cs.of(p,P),[j,V]=this.getXmlnsAttribute(f,R);V&&B.addAttribute(j,V),T.addChildNode(B);let N=Cs.of(b);v.isListSchema()?this.writeList(v,I,N,R):v.isMapSchema()?this.writeMap(v,I,N,R,!0):v.isStructSchema()?N=this.writeStruct(v,I,R):this.writeSimpleInto(v,I,N,R),T.addChildNode(N)};if(E){for(const[T,P]of Object.entries(n))if(_||P!=null){const I=Cs.of(l.xmlName??t.getMemberName());C(I,T,P),r.addChildNode(I)}}else{let T;c||(T=Cs.of(l.xmlName??t.getMemberName()),R&&T.addAttribute(x,R),r.addChildNode(T));for(const[P,I]of Object.entries(n))if(_||I!=null){const B=Cs.of("entry");C(B,P,I),(c?r:T).addChildNode(B)}}}writeSimple(t,n){if(n===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const r=zt.of(t);let i=null;if(n&&typeof n=="object")if(r.isBlobSchema())i=(this.serdeContext?.base64Encoder??di)(n);else if(r.isTimestampSchema()&&n instanceof Date)switch(Ag(r,this.settings)){case 5:i=n.toISOString().replace(".000Z","Z");break;case 6:i=Hm(n);break;case 7:i=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n),i=Hm(n);break}else{if(r.isBigDecimalSchema()&&n)return n instanceof $d?n.string:String(n);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(i=String(n)),r.isStringSchema()&&(n===void 0&&r.isIdempotencyToken()?i=Rg():i=String(n)),i===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${n}`);return i}writeSimpleInto(t,n,r,i){const c=this.writeSimple(t,n),l=zt.of(t),f=new ES(c),[d,p]=this.getXmlnsAttribute(l,i);p&&r.addAttribute(d,p),r.addChildNode(f)}getXmlnsAttribute(t,n){const r=t.getMergedTraits(),[i,c]=r.xmlNamespace??[];return c&&c!==n?[i?`xmlns:${i}`:"xmlns",c]:[void 0,void 0]}}class XJ extends Pg{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new YJ(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new U3(this.settings);return t.setSerdeContext(this.serdeContext),t}}class WJ extends EW{codec;serializer;deserializer;mixin=new B3;constructor(t){super(t);const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new XJ(n),this.serializer=new CW(this.codec.createSerializer(),n),this.deserializer=new wW(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=QJ(r,i)??"Unknown";if(i.Error&&typeof i.Error=="object")for(const E of Object.keys(i.Error))i[E]=i.Error[E],E.toLowerCase()==="message"&&(i.message=i.Error[E]);i.RequestId&&!c.requestId&&(c.requestId=i.RequestId);const{errorSchema:f,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,i,c),p=zt.of(f),v=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",g=Gn.for(f[1]).getErrorCtor(f)??Error,b=new g(v);await this.deserializeHttpMessage(f,n,r,i);const _={};for(const[E,x]of p.structIterator()){const R=x.getMergedTraits().xmlName??E,C=i.Error?.[R]??i[R];_[E]=this.codec.createDeserializer().readSchema(x,C)}throw this.mixin.decorateServiceException(Object.assign(b,d,{$fault:p.getMergedTraits().error,message:v},_),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator())if(n.getMergedTraits().httpPayload)return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema());return!1}}const JJ=/\d{12}\.ddb/;async function eee(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&eo(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const c=await t.retryStrategy();typeof c.acquireInitialRetryToken=="function"?c.constructor?.name?.includes("Adaptive")?eo(e,"RETRY_MODE_ADAPTIVE","F"):eo(e,"RETRY_MODE_STANDARD","E"):eo(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const c=e.endpointV2;switch(String(c?.url?.hostname).match(JJ)&&eo(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":eo(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":eo(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":eo(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const c=i;c.accountId&&eo(e,"RESOLVED_ACCOUNT_ID","T");for(const[l,f]of Object.entries(c.$source??{}))eo(e,l,f)}}const J2="user-agent",mb="x-amz-user-agent",eO=" ",gb="/",tee=/[^!$%&'*+\-.^_`|~\w]/g,nee=/[^!$%&'*+\-.^_`|~\w#]/g,tO="-",see=1024;function ree(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=see){t.length?t+=","+r:t+=r;continue}break}return t}const oee=e=>(t,n)=>async r=>{const{request:i}=r;if(!Qn.isInstance(i))return t(r);const{headers:c}=i,l=n?.userAgent?.map(Zh)||[],f=(await e.defaultUserAgentProvider()).map(Zh);await eee(n,e,r);const d=n;f.push(`m/${ree(Object.assign({},n.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const p=e?.customUserAgent?.map(Zh)||[],v=await e.userAgentAppId();v&&f.push(Zh(["app",`${v}`]));const g=[].concat([...f,...l,...p]).join(eO),b=[...f.filter(_=>_.startsWith("aws-sdk-")),...p].join(eO);return e.runtime!=="browser"?(b&&(c[mb]=c[mb]?`${c[J2]} ${b}`:b),c[J2]=g):c[mb]=g,t({...r,request:i})},Zh=e=>{const t=e[0].split(gb).map(l=>l.replace(tee,tO)).join(gb),n=e[1]?.replace(nee,tO),r=t.indexOf(gb),i=t.substring(0,r);let c=t.substring(r+1);return i==="api"&&(c=c.toLowerCase()),[i,c,n].filter(l=>l&&l.length>0).reduce((l,f,d)=>{switch(d){case 0:return f;case 1:return`${l}/${f}`;default:return`${l}#${f}`}},"")},iee={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},G_=e=>({applyToStack:t=>{t.add(oee(e),iee)}}),K_=!1,Z_=!1,nO=new Set,aee=(e,t=Ig)=>{if(!nO.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 nO.add(e)},V3=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),cee=e=>V3(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,Q_=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=cee(r);return aee(i),i},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return V3(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},sO="content-length";function lee(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(sO)===-1)try{const l=e(i);r.headers={...r.headers,[sO]:String(l)}}catch{}}return t({...n,request:r})}}const uee={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Y_=e=>({applyToStack:t=>{t.add(lee(e.bodyLengthChecker),uee)}}),fee=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),gee(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!mee(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},dee=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,pee=/(\d+\.){3}\d+/,hee=/\.\./,mee=e=>dee.test(e)&&!pee.test(e)&&!hee.test(e),gee=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},yee=(e,t,n,r=!1)=>{const i=async()=>{let c;return r?c=n.clientContextParams?.[e]??n[e]??n[t]:c=n[e]??n[t],typeof c=="function"?c():c};return e==="credentialScope"||t==="CredentialScope"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.credentialScope??c?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.accountId??c?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const c=await i();if(c&&typeof c=="object"){if("url"in c)return c.url.href;if("hostname"in c){const{protocol:l,hostname:f,port:d,path:p}=c;return`${l}//${f}${d?":"+d:""}${p}`}}return c}:i},H3=async e=>{},q3=e=>typeof e=="object"?"url"in e?hu(e.url):e:hu(e),vee=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let l;n.serviceConfiguredEndpoint?l=await n.serviceConfiguredEndpoint():l=await H3(n.serviceId),l&&(n.endpoint=()=>Promise.resolve(q3(l)),n.isCustomEndpoint=!0)}const i=await F3(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},F3=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 yee(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 fee(r),r},bee=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&AW(r,"ENDPOINT_OVERRIDE","N");const c=await vee(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c,r.authSchemes=c.properties?.authSchemes;const l=r.authSchemes?.[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;const d=Ro(r)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...i})},See={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:wX.name},Nn=(e,t)=>({applyToStack:n=>{n.addRelativeTo(bee({config:e,instructions:t}),See)}}),X_=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,c=n!=null?async()=>q3(await Is(n)()):void 0,f=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Is(r??!1),useFipsEndpoint:Is(i??!1)});let d;return f.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=H3(e.serviceId)),d),f};var mu;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(mu||(mu={}));const gu=3,W_=mu.STANDARD,_ee=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Eee=["TimeoutError","RequestTimeout","RequestTimeoutException"],xee=[500,502,503,504],wee=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Ree=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],Cee=e=>e?.$retryable!==void 0,Aee=e=>e.$metadata?.clockSkewCorrected,Iee=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},G3=e=>e.$metadata?.httpStatusCode===429||_ee.includes(e.name)||e.$retryable?.throttling==!0,J_=(e,t=0)=>Cee(e)||Aee(e)||Eee.includes(e.name)||wee.includes(e?.code||"")||Ree.includes(e?.code||"")||xee.includes(e.$metadata?.httpStatusCode||0)||Iee(e)||e.cause!==void 0&&t<=10&&J_(e.cause,t+1),Tee=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!J_(e)}return!1};class eE{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=>eE.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(),G3(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 xS=100,K3=20*1e3,Oee=500,rO=500,Mee=5,Dee=10,Pee=1,kee="amz-sdk-invocation-id",Nee="amz-sdk-request",Lee=()=>{let e=xS;return{computeNextBackoffDelay:r=>Math.floor(Math.min(K3,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},oO=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(K3,e),getRetryCost:()=>n});class Z3{maxAttempts;mode=mu.STANDARD;capacity=rO;retryBackoffStrategy=Lee();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return oO({retryDelay:xS,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"?Oee:xS);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()??Pee))}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"?Dee:Mee}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class $ee{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=mu.ADAPTIVE;constructor(t,n){this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new eE,this.standardRetryStrategy=new Z3(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 zee=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}`),tE=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,i=Is(r??gu);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Is(n)()===mu.ADAPTIVE?new $ee(i):new Z3(i))})},Bee=e=>e?.body instanceof ReadableStream,Uee=e=>(t,n)=>async r=>{let i=await e.retryStrategy();const c=await e.maxAttempts();if(jee(i)){i=i;let l=await i.acquireInitialRetryToken(n.partition_id),f=new Error,d=0,p=0;const{request:v}=r,g=Qn.isInstance(v);for(g&&(v.headers[kee]=Rg());;)try{g&&(v.headers[Nee]=`attempt=${d+1}; max=${c}`);const{response:b,output:_}=await t(r);return i.recordSuccess(l),_.$metadata.attempts=d+1,_.$metadata.totalRetryDelay=p,{response:b,output:_}}catch(b){const _=Vee(b);if(f=zee(b),g&&Bee(v))throw(n.logger instanceof Dg?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{l=await i.refreshRetryTokenForRetry(l,_)}catch{throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=d+1,f.$metadata.totalRetryDelay=p,f}d=l.getRetryCount();const E=l.getRetryDelay();p+=E,await new Promise(x=>setTimeout(x,E))}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},jee=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",Vee=e=>{const t={error:e,errorType:Hee(e)},n=Fee(e.$response);return n&&(t.retryAfterHint=n),t},Hee=e=>G3(e)?"THROTTLING":J_(e)?"TRANSIENT":Tee(e)?"SERVER_ERROR":"CLIENT_ERROR",qee={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},nE=e=>({applyToStack:t=>{t.add(Uee(e),qee)}}),Fee=e=>{if(!$c.isInstance(e))return;const t=Object.keys(e.headers).find(c=>c.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},Gee=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 Kee(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ec2",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const Zee=e=>{const t=[];switch(e.operation){default:t.push(Kee(e))}return t},Qee=e=>{const t=U_(e);return Object.assign(t,{authSchemePreference:Is(e.authSchemePreference??[])})},Yee=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"}},Xee="3.1000.0",Wee={version:Xee},Q3=e=>new TextEncoder().encode(e);var Jee=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:Q3;function zc(e){return e instanceof Uint8Array?e:typeof e=="string"?Jee(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Gm(e){return typeof e=="string"?e.length===0:e.byteLength===0}function ete(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function tte(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&c[c.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Mr=64,ite=32,ate=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]),cte=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],lte=Math.pow(2,53)-1,um=(function(){function e(){this.state=Int32Array.from(cte),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>lte)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Mr&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Mr>=Mr-8){for(var i=this.bufferLength;i>>24&255,c[i*4+1]=this.state[i]>>>16&255,c[i*4+2]=this.state[i]>>>8&255,c[i*4+3]=this.state[i]>>>0&255;return c},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],c=r[1],l=r[2],f=r[3],d=r[4],p=r[5],v=r[6],g=r[7],b=0;b>>17|_<<15)^(_>>>19|_<<13)^_>>>10;_=this.temp[b-15];var x=(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3;this.temp[b]=(E+this.temp[b-7]|0)+(x+this.temp[b-16]|0)}var R=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&v)|0)+(g+(ate[b]+this.temp[b]|0)|0)|0,C=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&c^i&l^c&l)|0;g=v,v=p,p=d,d=f+R|0,f=l,l=c,c=i,i=R+C|0}r[0]+=i,r[1]+=c,r[2]+=l,r[3]+=f,r[4]+=d,r[5]+=p,r[6]+=v,r[7]+=g},e})(),ute=(function(){function e(t){this.secret=t,this.hash=new um,this.reset()}return e.prototype.update=function(t){if(!(Gm(t)||this.error))try{this.hash.update(zc(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return X3(this,void 0,void 0,function(){return W3(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new um,this.secret){this.outer=new um;var t=fte(this.secret),n=new Uint8Array(Mr);n.set(t);for(var r=0;rMr){var n=new um;n.update(t),t=n.digest()}var r=new Uint8Array(Mr);return r.set(t),r}var dte=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function J3(e){if(pte(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return hte(t)}return!1}function pte(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function hte(e){return e&&dte.every(function(t){return typeof e[t]=="function"})}var sE=(function(){function e(t){J3(Ca())?this.hash=new rte(t):this.hash=new ute(t)}return e.prototype.update=function(t,n){this.hash.update(zc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const rE=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"?window.navigator:void 0,i=r?.userAgent??"",c=r?.userAgentData?.platform??aO.os(i)??"other",l=void 0,f=r?.userAgentData?.brands??[],d=f[f.length-1],p=d?.brand??aO.browser(i)??"unknown",v=d?.version??"unknown",g=[["aws-sdk-js",t],["ua","2.1"],[`os/${c}`,l],["lang/js"],["md/browser",`${p}_${v}`]];e&&g.push([`api/${e}`,t]);const b=await n?.userAgentAppId?.();return b&&g.push([`app/${b}`]),g},aO={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"}},oE=e=>()=>Promise.reject(e),mte=["in-region","cross-region","mobile","standard","legacy"],iE=({defaultsMode:e}={})=>cJ(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(gte()?"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 ${mte.join(", ")}, got ${t}`)}}),gte=()=>{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},eN="required",Pr="fn",kr="argv",Eu="ref",cO=!0,lO="isSet",Cd="booleanEquals",Vl="error",Hl="endpoint",ti="tree",aE="PartitionResult",cE="getAttr",uO={[eN]:!1,type:"string"},fO={[eN]:!0,default:!1,type:"boolean"},dO={[Eu]:"Endpoint"},tN={[Pr]:Cd,[kr]:[{[Eu]:"UseFIPS"},!0]},nN={[Pr]:Cd,[kr]:[{[Eu]:"UseDualStack"},!0]},Ir={},pO={[Pr]:cE,[kr]:[{[Eu]:aE},"supportsFIPS"]},sN={[Eu]:aE},hO={[Pr]:Cd,[kr]:[!0,{[Pr]:cE,[kr]:[sN,"supportsDualStack"]}]},mO=[tN],gO=[nN],yO=[{[Eu]:"Region"}],yte={parameters:{Region:uO,UseDualStack:fO,UseFIPS:fO,Endpoint:uO},rules:[{conditions:[{[Pr]:lO,[kr]:[dO]}],rules:[{conditions:mO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Vl},{conditions:gO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Vl},{endpoint:{url:dO,properties:Ir,headers:Ir},type:Hl}],type:ti},{conditions:[{[Pr]:lO,[kr]:yO}],rules:[{conditions:[{[Pr]:"aws.partition",[kr]:yO,assign:aE}],rules:[{conditions:[tN,nN],rules:[{conditions:[{[Pr]:Cd,[kr]:[cO,pO]},hO],rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Vl}],type:ti},{conditions:mO,rules:[{conditions:[{[Pr]:Cd,[kr]:[pO,cO]}],rules:[{conditions:[{[Pr]:"stringEquals",[kr]:[{[Pr]:cE,[kr]:[sN,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:Ir,headers:Ir},type:Hl},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti},{error:"FIPS is enabled but this partition does not support FIPS",type:Vl}],type:ti},{conditions:gO,rules:[{conditions:[hO],rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti},{error:"DualStack is enabled but this partition does not support DualStack",type:Vl}],type:ti},{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:Ir,headers:Ir},type:Hl}],type:ti}],type:ti},{error:"Invalid Configuration: Missing Region",type:Vl}]},vte=yte,bte=new L_({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ste=(e,t={})=>bte.get(e,()=>z_(vte,{endpointParams:e,logger:t.logger}));pu.aws=Og;class lE extends Ea{constructor(t){super(t),Object.setPrototypeOf(this,lE.prototype)}}const _te="AllAvailabilityZones",Ete="AttributeBooleanValue",xte="AssociateCarrierIpAddress",wte="AdditionalFlexibleNetworkInterfaces",Rte="AvailableIpAddressCount",Cte="AssignIpv6AddressOnCreation",rN="AdditionalInfo",uE="AssociationId",oN="AttachmentId",Ate="AmiLaunchIndex",Ite="AttachmentLimitType",Tte="AssociatePublicIpAddress",Ote="AmazonProvidedIpv6CidrBlock",Mte="AutoRecoverySupported",Dte="AllRegions",iN="AssociatedResource",aN="AutoRecovery",cN="AmdSevSnp",Pte="ArchitectureTypeList",kg="AttachTime",kte="AttachVolumeRequest",Nte="AttributeValue",Lte="AttachVolume",za="AvailabilityZone",$te="AvailabilityZoneGeography",zte="AvailabilityZoneGeographyList",xu="AvailabilityZoneId",Bte="AvailabilityZoneList",Ute="AvailabilityZoneMessage",jte="AvailabilityZoneMessageList",Vte="AvailabilityZoneSubGeography",Hte="AvailabilityZoneSubGeographyList",qte="AvailabilityZones",lN="Accelerators",Fte="Affinity",uN="Arn",fN="Architecture",dN="Association",Gte="Attribute",pN="Attachment",Kte="Attachments",Zte="BlobAttributeValue",Qte="BaselineBandwidthInGbps",hN="BaselineBandwidthInMbps",fE="BlockDeviceMapping",Yte="BlockDeviceMappingList",Xte="BlockDeviceMappingRequestList",zd="BlockDeviceMappings",Wte="BlockDurationMinutes",mN="BaselineIops",gN="BootMode",Jte="BootModeTypeList",ene="BareMetal",dE="BlockPublicAccessStates",tne="BurstablePerformanceSupported",yN="BaselineThroughputInMBps",vN="BandwidthWeighting",nne="BandwidthWeightingTypeList",sne="BandwidthWeightings",Bd="CidrBlock",rne="CidrBlockAssociationSet",one="CapacityBlockId",ine="CidrBlockState",ane="CoreCountList",bN="CoreCount",cne="CpuCredits",SN="CompletionDurationMinutes",lne="CreationDate",une="CurrentGeneration",fne="CarrierIp",dne="CurrentInstanceBootMode",pne="CreateImageRequest",hne="CreateImageResult",mne="CoreInfo",gne="CreateImage",yne="CreateKeyPair",vne="CreateKeyPairRequest",pE="CpuOptions",bne="CustomerOwnedIp",Sne="CustomerOwnedIpv4Pool",_ne="CpuOptionsRequest",hE="CapacityReservationId",_N="CapacityReservationPreference",EN="CapacityReservationResourceGroupArn",Ene="CapacityReservationSpecificationResponse",mE="CapacityReservationSpecification",gE="CapacityReservationTarget",xne="CapacityReservationTargetResponse",wne="CopySnapshotRequest",Rne="CopySnapshotRequestPSU",Cne="CopySnapshotResult",Ane="CreateSnapshotRequest",Ine="CreateSubnetRequest",Tne="CreateSubnetResult",One="CreditSpecificationRequest",Mne="CopySnapshot",Dne="CreditSpecification",Pne="CreateSnapshot",kne="CreateSubnet",Nne="CurrentState",yE="ClientToken",Lne="ConnectionTrackingConfiguration",$ne="ConnectionTrackingSpecification",zne="ConnectionTrackingSpecificationRequest",Bne="ConnectionTrackingSpecificationResponse",Une="CompletionTime",xN="CreateTime",jne="CreateVolumeRequest",Vne="CreateVpcRequest",Hne="CreateVpcResult",qne="CreateVolume",Fne="CreateVpc",wN="Code",RN="Configured",Ba="Count",CN="DisableApiStop",AN="DisableApiTermination",Gne="DestinationAvailabilityZone",Kne="DescribeAvailabilityZonesRequest",Zne="DescribeAvailabilityZonesResult",Qne="DescribeAvailabilityZones",Yne="DefaultCores",Xne="DataEncryptionKeyId",Wne="DefaultEnaQueueCountPerInterface",Jne="DefaultForAz",ese="DedicatedHostsSupported",Ng="DeviceIndex",tse="DiskInfoList",nse="DescribeImagesRequest",sse="DescribeImagesResult",rse="DescribeInstancesRequest",ose="DescribeInstancesResult",ise="DescribeInstanceTypesRequest",ase="DescribeInstanceTypesResult",cse="DescribeInstanceTypes",lse="DescribeImages",use="DescribeInstances",fse="DiskInfo",dse="DeleteKeyPair",pse="DeleteKeyPairRequest",hse="DeleteKeyPairResult",mse="DescribeKeyPairsRequest",gse="DescribeKeyPairsResult",yse="DescribeKeyPairs",vE="DeviceName",vse="DefaultNetworkCardIndex",bse="DestinationOutpostArn",Sse="DhcpOptionsId",Ua="DeleteOnTermination",_se="DeregistrationProtection",It="DryRun",Ese="DescribeRegionsRequest",xse="DescribeRegionsResult",wse="DestinationRegion",Rse="DescribeRegions",Cse="DeleteSnapshotRequest",Ase="DeleteSubnetRequest",Ise="DescribeSnapshotsRequest",Tse="DescribeSnapshotsResult",Ose="DescribeSubnetsRequest",Mse="DescribeSubnetsResult",Dse="DeleteSnapshot",Pse="DeleteSubnet",kse="DescribeSnapshots",Nse="DescribeSubnets",Lse="DefaultThreadsPerCore",$se="DeprecationTime",zse="DefaultVCpus",Bse="DeleteVolumeRequest",Use="DeleteVpcRequest",jse="DescribeVolumesRequest",Vse="DescribeVolumesResult",Hse="DescribeVpcsRequest",qse="DescribeVpcsResult",Fse="DetachVolumeRequest",Gse="DeleteVolume",Kse="DeleteVpc",Zse="DescribeVolumes",Qse="DescribeVpcs",Yse="DetachVolume",Hc="Description",bE="Device",Xse="Disks",Wse="EbsBlockDevice",Jse="ExecutableByStringList",IN="ExecutableBy",Ud="EbsCardIndex",ere="EbsCardInfoList",tre="EbsCardInfo",nre="EbsCards",sre="EncryptionControl",rre="EnableDns64",ore="ElasticFileSystem",ire="ElasticFileSystemExclusion",are="ElasticGpuAssociation",cre="ElasticGpuAssociationId",lre="ElasticGpuAssociationList",ure="ElasticGpuAssociationState",fre="ElasticGpuAssociationTime",dre="ElasticGpuAssociations",pre="ElasticGpuId",TN="ElasticGpuSpecification",hre="ElasticGpuSpecifications",ON="ElasticInferenceAccelerator",mre="ElasticInferenceAcceleratorAssociation",gre="ElasticInferenceAcceleratorAssociationId",yre="ElasticInferenceAcceleratorAssociationList",vre="ElasticInferenceAcceleratorAssociationState",bre="ElasticInferenceAcceleratorAssociationTime",Sre="ElasticInferenceAcceleratorArn",_re="ElasticInferenceAcceleratorAssociations",MN="ElasticInferenceAccelerators",Ere="EbsInstanceBlockDevice",xre="EbsInstanceBlockDeviceSpecification",wre="EncryptionInTransitSupported",DN="EbsInfo",PN="EfaInfo",Rre="EnableLniAtDeviceIndex",SE="EbsOptimized",kN="EbsOptimizedInfo",Cre="EgressOnlyInternetGateway",Are="EgressOnlyInternetGatewayExclusion",Ire="EnclaveOptionsRequest",Tre="EbsOptimizedSupport",_E="EnclaveOptions",Ore="EnablePrimaryIpv6",NN="EnaQueueCount",EE="EnableResourceNameDnsAAAARecord",xE="EnableResourceNameDnsARecord",LN="EnaSrdEnabled",$N="EnaSrdSpecification",Mre="EnaSrdSpecificationRequest",Dre="EnaSrdSupported",zN="EnaSrdUdpEnabled",BN="EnaSrdUdpSpecification",Pre="EnaSrdUdpSpecificationRequest",kre="EfaSupported",UN="EncryptionSupport",Lg="EnaSupport",Nre="EndTime",Lre="ExecutableUsers",wE="Ebs",RE="Enabled",jd="Encrypted",$re="Endpoint",CE="Force",zre="FpgaDeviceInfo",Bre="FpgaDeviceInfoList",Ure="FpgaDeviceMemoryInfo",jre="FlexibleEnaQueuesSupport",jN="FpgaInfo",Vre="FilterList",Hre="FastRestored",qre="FullSnapshotSizeInBytes",VN="FreeTierEligible",Ao="Filters",Ur="Filter",Fre="Fpgas",$g="Groups",Gre="GetConsoleOutput",Kre="GetConsoleOutputRequest",Zre="GetConsoleOutputResult",Qre="GpuDeviceInfo",Yre="GpuDeviceInfoList",Xre="GpuDeviceMemoryInfo",Wre="GroupIdentifierList",Jre="GroupIdStringList",HN="GpuInfo",AE="GroupId",eoe="GroupIdentifier",toe="GroupLongName",IE="GroupName",noe="GpuPartitionSize",qN="Geography",soe="Gpus",FN="HttpEndpoint",roe="HostId",TE="HibernationOptions",ooe="HibernationOptionsRequest",GN="HttpProtocolIpv6",KN="HttpPutResponseHopLimit",ioe="HostResourceGroupArn",aoe="HibernationSupported",ZN="HttpTokens",OE="HostnameType",coe="Hibernate",ME="Hypervisor",loe="Id",DE="Ipv6Addresses",QN="Ipv6AddressAttribute",YN="Ipv6AddressCount",uoe="InstanceAttachmentEnaSrdSpecification",foe="InstanceAttachmentEnaSrdUdpSpecification",XN="InferenceAcceleratorInfo",doe="Ipv4AddressesPerInterface",poe="Ipv6AddressesPerInterface",hoe="Ipv4AddressesPerSecondaryInterface",moe="ImageAllowed",PE="Ipv6Address",goe="InstanceBlockDeviceMapping",yoe="InstanceBlockDeviceMappingList",voe="InstanceBlockDeviceMappingSpecification",boe="InstanceBlockDeviceMappingSpecificationList",zg="Ipv6CidrBlock",WN="Ipv6CidrBlockAssociationSet",Soe="Ipv6CidrBlockNetworkBorderGroup",JN="Ipv6CidrBlockState",_oe="IncludeDeprecated",Eoe="InferenceDeviceInfo",xoe="InferenceDeviceInfoList",woe="InferenceDeviceMemoryInfo",Roe="IncludeDisabled",Coe="IsDefault",Aoe="InternetGateway",Ioe="InternetGatewayBlockMode",Toe="InternetGatewayExclusion",Ts="InstanceId",Ooe="InstanceIpv6Address",Moe="InstanceIpv6AddressList",Doe="InstanceInterruptionBehavior",kE="IamInstanceProfile",eL="Ipv6IpamPoolId",tL="Ipv4IpamPoolId",Poe="InstanceIpv4PrefixList",koe="InstanceIpv6PrefixList",Noe="IamInstanceProfileSpecification",Loe="InstanceIpv4Prefix",$oe="InstanceIpv6Prefix",nL="InstanceInitiatedShutdownBehavior",zoe="ImageIdStringList",Boe="InstanceIdStringList",wu="ImageId",Uoe="ImageIds",Vd="InstanceIds",joe="ImportKeyPair",Voe="ImportKeyPairRequest",Hoe="ImportKeyPairResult",qoe="ImageLocation",Foe="ImageList",Goe="InstanceLifecycle",Koe="InstanceList",Zoe="InstanceMaintenanceOptions",Qoe="InstanceMaintenanceOptionsRequest",Yoe="InstanceMarketOptionsRequest",Xoe="InstanceMetadataOptionsRequest",Woe="InstanceMetadataOptionsResponse",Joe="InstanceMarketOptions",sL="InstanceMetadataTags",rL="Ipv6Native",eie="InstanceNetworkInterface",tie="InstanceNetworkInterfaceAssociation",nie="InstanceNetworkInterfaceAttachment",sie="InstanceNetworkInterfaceList",rie="InstanceNetworkInterfaceSpecification",oie="InstanceNetworkInterfaceSpecificationList",oL="Ipv6NetmaskLength",iL="Ipv4NetmaskLength",iie="InstanceNetworkPerformanceOptions",aie="InstanceNetworkPerformanceOptionsRequest",cie="ImageOwnerAlias",lie="IpOwnerId",uie="InstanceOwningService",fie="Ipv6PrefixCount",die="Ipv4PrefixCount",pie="InstancePrivateIpAddress",hie="InstancePrivateIpAddressList",mie="IsPrimaryIpv6",gie="IncludePublicKey",yie="Ipv4PrefixList",vie="Ipv6PrefixList",bie="Ipv4PrefixSpecificationRequest",Sie="Ipv6PrefixSpecificationRequest",aL="Ipv6Prefixes",NE="Ipv6Prefix",cL="Ipv6Pool",lL="Ipv4Prefixes",LE="Ipv4Prefix",_ie="InstanceStateChange",Eie="InstanceStateChangeList",xie="InstanceSecondaryInterfaceAttachment",wie="InstanceSecondaryInterfaceList",Rie="InstanceSecondaryInterfacePrivateIpAddress",Cie="InstanceSecondaryInterfacePrivateIpAddressList",Aie="InstanceSecondaryInterfacePrivateIpAddressListRequest",Iie="InstanceSecondaryInterfacePrivateIpAddressRequest",Tie="InstanceSecondaryInterfaceSpecificationListRequest",Oie="InstanceSecondaryInterfaceSpecificationRequest",Mie="InstanceSecondaryInterface",uL="InstanceStorageInfo",Die="InstanceStorageSupported",Pie="ImdsSupport",kie="InstanceState",fL="IpSource",Nie="Ipv6Supported",Hd="InstanceType",Lie="InstanceTypeInfoList",$ie="InstanceTypeInfo",zie="ImageType",dL="InstanceTenancy",pL="InstanceTypes",Bg="InterfaceType",Bie="Images",Uie="Image",jie="Instance",Vie="Instances",Ug="Iops",Hie="Key",qie="KeyFormat",$E="KeyFingerprint",zE="KernelId",qd="KmsKeyId",Fie="KeyMaterial",Io="KeyName",Gie="KeyNameStringList",Kie="KeyNames",Zie="KeyPairs",qc="KeyPairId",Qie="KeyPairIdStringList",Yie="KeyPairIds",Xie="KeyPairInfo",Wie="KeyPairList",Jie="KeyPair",hL="KeyType",eae="Kernel",mL="LicenseConfigurationArn",tae="LicenseConfigurationRequest",nae="LicenseConfiguration",sae="LambdaExclusion",rae="LogicalGpuCount",oae="LicenseList",iae="LastLaunchedTime",aae="LicenseSpecifications",cae="LicenseSpecificationListRequest",lae="LicenseSpecification",uae="LaunchTemplate",fae="LaunchTemplateId",dae="LaunchTemplateName",pae="LaunchTemplateSpecification",hae="LaunchTime",mae="Latest",gae="Lambda",yae="Licenses",vae="Location",BE="MultiAttachEnabled",gL="MediaAcceleratorInfo",yL="MacAddress",vL="MaximumBandwidthInMbps",bae="MapCustomerOwnedIpOnLaunch",Sae="MaxCount",_ae="MinCount",Eae="MediaDeviceInfo",xae="MediaDeviceInfoList",wae="MediaDeviceMemoryInfo",Rae="MaximumEbsAttachments",Cae="MaximumEbsCards",Aae="MaximumEfaInterfaces",Iae="MaximumEnaQueueCount",Tae="MaximumEnaQueueCountPerInterface",bL="MaximumIops",Oae="ModifyInstanceAttributeRequest",Mae="ModifyInstanceAttribute",Fc="MemoryInfo",Dae="MaximumNetworkCards",SL="MaximumNetworkInterfaces",_L="MetadataOptions",EL="MaintenanceOptions",Pae="MapPublicIpOnLaunch",kae="MaxPrice",Gc="MaxResults",Nae="MaximumSecondaryNetworkInterfaces",Lae="ModificationState",$ae="MarketType",xL="MaximumThroughputInMBps",zae="ModifyVolumeRequest",Bae="ModifyVolumeResult",Uae="ModifyVolume",Fd="Manufacturer",jae="Managed",wL="Message",Vae="Messages",RL="Mode",UE="Monitoring",ur="Name",CL="NetworkBorderGroup",Hae="NetworkCards",Gd="NetworkCardIndex",qae="NetworkCardInfoList",Fae="NetworkCardInfo",AL="NoDevice",Gae="NeuronDeviceCoreInfo",Kae="NeuronDeviceInfo",Zae="NeuronDeviceInfoList",Qae="NeuronDeviceMemoryInfo",Yae="NeuronDevices",Xae="NitroEnclavesSupport",Wae="NatGateway",Jae="NatGatewayExclusion",IL="NetworkInterfaceId",TL="NetworkInterfaces",OL="NetworkInfo",ML="NeuronInfo",DL="NetworkPerformanceOptions",PL="NetworkPerformance",ece="NoReboot",kL="NvmeSupport",NL="NitroTpmInfo",tce="NitroTpmSupport",nce="NitroTpmSupportedVersionsList",Gs="NextToken",LL="NestedVirtualization",ja="OutpostArn",sce="OwnerAlias",Kc="OwnerId",$L="OptInStatus",rce="OriginalIops",oce="OwnerIds",ice="OriginalMultiAttachEnabled",ace="OperatorRequest",cce="OperatorResponse",lce="OwnerStringList",uce="OriginalSize",fce="OriginalThroughput",dce="OriginalVolumeType",Ru="Operator",pce="Output",hce="Owners",jE="Owner",zL="Principal",mce="PeakBandwidthInGbps",gce="ProductCodeId",yce="ProductCodeList",vce="ProductCodeType",bce="ProductCode",BL="ProductCodes",VE="PrivateDnsName",UL="PrivateDnsNameOptions",jL="PrivateDnsNameOptionsOnLaunch",Sce="PrivateDnsNameOptionsRequest",_ce="PrivateDnsNameOptionsResponse",VL="PublicDnsName",HL="PlatformDetails",qL="PlacementGroupInfo",Ece="PlacementGroupStrategyList",xce="PublicIp",wce="PrivateIpAddressCount",Rce="PrivateIpAddressSpecification",Cce="PrivateIpAddressSpecificationList",mi="PrivateIpAddress",jg="PrivateIpAddresses",Ace="PublicIpAddress",Ice="PrimaryIpv6",FL="ProcessorInfo",Tce="PublicKey",Oce="PublicKeyMaterial",Mce="PartitionNumber",Dce="PhcSupport",Pce="PreviousState",kce="PresignedUrl",Nce="ParentZoneId",Lce="ParentZoneName",GL="Platform",HE="Placement",KL="Primary",ZL="Progress",$ce="Public",zce="Return",Bce="RestorableByUserIds",Uce="RestorableBy",QL="RootDeviceName",YL="RootDeviceType",jce="RootDeviceTypeList",Vce="RestoreExpiryTime",Hce="ResourceExclusions",qce="RegionGeography",Fce="RegionGeographyList",Gce="RunInstancesMonitoringEnabled",Kce="RebootInstancesRequest",Zce="RunInstancesRequest",Qce="RunInstancesUserData",qE="RamdiskId",Yce="ReservationId",Xce="RebootInstances",Wce="RequesterId",Jce="RunInstances",ele="RegionList",tle="ReservationList",nle="RebootMigrationSupport",sle="RebootMigration",Vg="RegionName",rle="RegionNameStringList",ole="RegionNames",ile="ResourceType",ale="Ramdisk",cle="Regions",lle="Region",ule="Reservations",fle="Reservation",dle="SupportedAdditionalProcessorFeatureList",ple="SubnetArn",hle="SupportedArchitectures",mle="SupportedBootModes",gle="SubnetCidrBlockState",yle="SustainedClockSpeedInGhz",Hg="SourceDestCheck",vle="SpreadDomain",ble="SupportedFeatures",Sle="SubGeography",FE="SecurityGroupId",_le="SecurityGroupIdStringList",Ele="SecurityGroupIds",xle="SecurityGroupStringList",XL="SecurityGroups",WL="SecurityGroup",wle="SubnetIds",Rle="SubnetIpv6CidrBlockAssociation",Cle="SubnetIpv6CidrBlockAssociationSet",Ale="SizeInGB",Ile="SourceImageId",Tle="SecondaryInterfaceId",Ole="SourceInstanceId",Cu="SizeInMiB",Mle="SpotInstanceRequestId",Dle="SourceImageRegion",Ple="StartInstancesRequest",kle="StartInstancesResult",Nle="StopInstancesRequest",Lle="StopInstancesResult",$le="SnapshotIdStringList",zle="SubnetIdStringList",Ble="SpotInstanceType",JL="SecondaryInterfaces",Ule="SecondaryInterface",Va="SnapshotId",jle="SnapshotIds",Vle="StartingInstances",Hle="StartInstances",qle="StoppingInstances",Fle="StopInstances",Ha="SubnetId",Gle="SnapshotLocation",Kle="SnapshotList",Zle="SubnetList",Qle="SpotMarketOptions",GE="StatusMessage",KE="StateMessage",Yle="SecondaryNetworkId",ZE="SriovNetSupport",Xle="SecondaryNetworkSupported",Wle="SpotOptions",e$="SkipOsShutdown",Jle="SecondaryPrivateIpAddressCount",eue="SupportedRootDeviceTypes",tue="SourceRegion",QE="StateReason",nue="SourceSnapshotId",t$="SecondarySubnetId",sue="SupportedStrategies",n$="StartTime",rue="StateTransitionReason",s$="SseType",oue="StorageTier",iue="SupportedUsageClasses",aue="SensitiveUserData",cue="SourceVolumeId",lue="SupportedVirtualizationTypes",uue="SupportedVersions",YE="Size",fue="Snapshots",due="Snapshot",Ks="State",Kd="Status",r$="Subnet",pue="Subnets",jr="Tags",o$="TcpEstablishedTimeout",hue="TotalFpgaMemoryInMiB",mue="TotalGpuMemoryInMiB",gue="TerminateInstances",yue="TotalInferenceMemoryInMiB",vue="TerminateInstancesRequest",bue="TerminateInstancesResult",Sue="TargetIops",_ue="TerminatingInstances",Eue="TagList",xue="TargetMultiAttachEnabled",wue="TotalMediaMemoryInMiB",Rue="TotalNeuronDeviceMemoryInMiB",i$="ThreadsPerCore",Cue="ThreadsPerCoreList",gi="TagSpecifications",Aue="TotalSizeInGB",Iue="TagSpecificationList",To="TagSpecification",Tue="TargetSize",a$="TpmSupport",Oue="TargetThroughput",Mue="TransferType",Due="TargetVolumeType",c$="Tag",Pue="Tenancy",qg="Throughput",kue="Timestamp",Fg="Type",Nue="UsageClassTypeList",l$="UserData",u$="UsageOperation",Lue="UsageOperationUpdateTime",f$="UdpStreamTimeout",d$="UdpTimeout",Au="Value",$ue="VolumeAttachmentList",zue="VolumeAttachment",Bue="VpcCidrBlockAssociation",Uue="VpcCidrBlockAssociationSet",jue="VpcCidrBlockState",p$="VCpuInfo",Vue="ValidCores",h$="VpcEncryptionControl",Hue="VpcEncryptionControlConfiguration",que="VpcEncryptionControlExclusion",Fue="VpcEncryptionControlExclusions",Gue="VpcEncryptionControlId",yi="VpcId",Kue="VpcIpv6CidrBlockAssociation",Zue="VpcIpv6CidrBlockAssociationSet",XE="VolumeInitializationRate",Que="VolumeIdStringList",Yue="VpcIdStringList",fr="VolumeId",Xue="VolumeIds",Wue="VpcIds",Jue="VpcLattice",efe="VpcLatticeExclusion",tfe="VolumeList",nfe="VpcList",m$="VolumeModification",g$="VirtualName",sfe="VolumeOwnerId",rfe="VpcPeeringExclusion",ofe="VirtualPrivateGateway",ife="VirtualPrivateGatewayExclusion",afe="VpcPeering",cfe="ValueStringList",y$="VolumeSize",Gg="VolumeType",lfe="VirtualizationTypeList",ufe="ValidThreadsPerCore",v$="VirtualizationType",ffe="ValidUntil",dfe="Values",b$="Version",pfe="Volumes",hfe="Volume",S$="Vpc",mfe="Vpcs",gfe="WorkloadsList",yfe="Workloads",WE="ZoneId",vfe="ZoneIdStringList",bfe="ZoneIds",JE="ZoneName",Sfe="ZoneNameStringList",_fe="ZoneNames",Efe="ZoneType",xfe="additionalFlexibleNetworkInterfaces",wfe="availableIpAddressCount",Rfe="assignIpv6AddressOnCreation",_$="additionalInfo",ex="associationId",E$="attachmentId",Cfe="amiLaunchIndex",Afe="attachmentLimitType",Ife="associatePublicIpAddress",Tfe="amazonProvidedIpv6CidrBlock",Ofe="autoRecoverySupported",x$="associatedResource",Mfe="autoRecovery",Dfe="amdSevSnp",Pfe="attachmentSet",Kg="attachTime",Zd="availabilityZone",tx="availabilityZoneId",kfe="availabilityZoneInfo",w$="accelerators",Nfe="affinity",R$="arn",C$="architecture",A$="association",I$="attachment",Lfe="attribute",$fe="baselineBandwidthInGbps",T$="baselineBandwidthInMbps",Zg="blockDeviceMapping",O$="baselineIops",M$="bootMode",zfe="bareMetal",D$="blockPublicAccessStates",Bfe="burstablePerformanceSupported",P$="baselineThroughputInMBps",Ufe="bandwidthWeighting",jfe="bandwidthWeightings",nx="cidrBlock",Vfe="cidrBlockAssociationSet",Hfe="capacityBlockId",qfe="cidrBlockState",Ffe="coreCount",Gfe="completionDurationMinutes",Kfe="creationDate",Zfe="currentGeneration",Qfe="carrierIp",Yfe="currentInstanceBootMode",Xfe="coreInfo",Wfe="cpuOptions",Jfe="customerOwnedIp",ede="customerOwnedIpv4Pool",k$="capacityReservationId",tde="capacityReservationPreference",nde="capacityReservationResourceGroupArn",sde="capacityReservationSpecification",rde="capacityReservationTarget",ode="currentState",N$="clientToken",ide="connectionTrackingConfiguration",ade="completionTime",L$="createTime",$$="code",cde="configured",Zc="count",z$="disableApiTermination",lde="defaultCores",ude="dataEncryptionKeyId",fde="defaultEnaQueueCountPerInterface",dde="defaultForAz",pde="dedicatedHostsSupported",sx="deviceIndex",rx="deviceName",hde="defaultNetworkCardIndex",mde="dnsName",gde="dhcpOptionsId",Qc="deleteOnTermination",yde="deregistrationProtection",$t="dryRun",vde="destinationRegion",bde="defaultThreadsPerCore",Sde="deprecationTime",_de="defaultVCpus",Qd="description",Ede="device",xde="disks",ox="ebsCardIndex",wde="ebsCardSet",Rde="encryptionControl",Cde="enableDns64",Ade="elasticFileSystem",Ide="elasticGpuAssociationId",Tde="elasticGpuAssociationState",Ode="elasticGpuAssociationSet",Mde="elasticGpuAssociationTime",Dde="elasticGpuId",Pde="elasticInferenceAcceleratorArn",kde="elasticInferenceAcceleratorAssociationId",Nde="elasticInferenceAcceleratorAssociationState",Lde="elasticInferenceAcceleratorAssociationSet",$de="elasticInferenceAcceleratorAssociationTime",zde="encryptionInTransitSupported",Bde="ebsInfo",Ude="efaInfo",jde="enableLniAtDeviceIndex",ix="ebsOptimized",Vde="ebsOptimizedInfo",Hde="egressOnlyInternetGateway",qde="ebsOptimizedSupport",Fde="enclaveOptions",Gde="enaQueueCount",S="ec2QueryName",B$="enableResourceNameDnsAAAARecord",U$="enableResourceNameDnsARecord",Kde="enaSrdEnabled",Zde="enaSrdSpecification",Qde="enaSrdSupported",Yde="enaSrdUdpEnabled",Xde="enaSrdUdpSpecification",Wde="efaSupported",j$="encryptionSupport",Qg="enaSupport",Jde="endTime",ax="ebs",V$="enabled",Yd="encrypted",epe="flexibleEnaQueuesSupport",tpe="fpgaInfo",npe="fastRestored",spe="fullSnapshotSizeInBytes",H$="freeTierEligible",rpe="force",ope="fpgas",ipe="gpuInfo",cx="groupId",ape="groupLongName",lx="groupName",cpe="gpuPartitionSize",q$="geographySet",ux="groupSet",lpe="gpus",fx="hypervisor",upe="httpEndpoint",fpe="hostId",dpe="hibernationOptions",ppe="httpProtocolIpv6",hpe="httpPutResponseHopLimit",mpe="hostResourceGroupArn",gpe="hibernationSupported",ype="httpTokens",F$="hostnameType",vpe="id",G$="ipv6AddressAttribute",bpe="ipv6AddressCount",Spe="inferenceAcceleratorInfo",_pe="ipv4AddressesPerInterface",Epe="ipv6AddressesPerInterface",xpe="ipv4AddressesPerSecondaryInterface",K$="ipv6AddressesSet",wpe="imageAllowed",Rpe="ipAddress",Z$="ipv6Address",Q$="ipv6CidrBlock",Y$="ipv6CidrBlockAssociationSet",X$="ipv6CidrBlockState",Cpe="isDefault",Ape="internetGateway",Ipe="internetGatewayBlockMode",Iu="instanceId",W$="iamInstanceProfile",J$="instanceInitiatedShutdownBehavior",dx="imageId",Tpe="imageLocation",Ope="instanceLifecycle",Mpe="instanceMetadataTags",Dpe="ipv6Native",Ppe="imageOwnerAlias",kpe="imageOwnerId",Npe="ipOwnerId",Lpe="instanceOwningService",$pe="isPrimaryIpv6",zpe="ipv4PrefixSet",Bpe="ipv6PrefixSet",Upe="ipv4Prefix",jpe="ipv6Pool",Vpe="ipv6Prefix",Hpe="isPublic",qpe="instanceStorageInfo",Fpe="instanceStorageSupported",Gpe="imagesSet",Kpe="imageState",Zpe="imdsSupport",Yg="instancesSet",Qpe="instanceState",e4="ipSource",Ype="ipv6Supported",px="instanceType",Xpe="instanceTypeSet",Wpe="idempotencyToken",Jpe="imageType",t4="instanceTenancy",n4="interfaceType",s4="iops",ke="item",ehe="key",hx="keyFingerprint",r4="kernelId",Xg="kmsKeyId",the="keyMaterial",Xd="keyName",Wg="keyPairId",nhe="keySet",she="keyType",rhe="kernel",ohe="licenseConfigurationArn",ihe="logicalGpuCount",ahe="lastLaunchedTime",che="licenseSet",lhe="launchTime",uhe="lambda",fhe="multiAttachEnabled",dhe="mediaAcceleratorInfo",o4="macAddress",i4="maximumBandwidthInMbps",phe="mapCustomerOwnedIpOnLaunch",hhe="maximumEbsAttachments",mhe="maximumEbsCards",ghe="maximumEfaInterfaces",yhe="maximumEnaQueueCount",vhe="maximumEnaQueueCountPerInterface",a4="maximumIops",Tu="memoryInfo",bhe="maximumNetworkCards",c4="maximumNetworkInterfaces",She="metadataOptions",_he="maintenanceOptions",Ehe="mapPublicIpOnLaunch",l4="maxResults",xhe="messageSet",whe="maximumSecondaryNetworkInterfaces",Rhe="modificationState",u4="maximumThroughputInMBps",Wd="manufacturer",Che="managed",f4="message",Ahe="monitoring",Ihe="mode",Vr="name",d4="networkBorderGroup",The="networkCards",mx="networkCardIndex",p4="noDevice",Ohe="neuronDevices",Mhe="nitroEnclavesSupport",Dhe="natGateway",h4="networkInterfaceId",Phe="networkInterfaceSet",khe="networkInterface",Nhe="networkInfo",Lhe="neuronInfo",$he="networkPerformanceOptions",m4="networkPerformance",zhe="noReboot",g4="nvmeSupport",Bhe="nitroTpmInfo",Uhe="nitroTpmSupport",vi="nextToken",jhe="nestedVirtualization",Jd="outpostArn",Vhe="ownerAlias",Ou="ownerId",y4="optInStatus",Hhe="originalIops",qhe="originalMultiAttachEnabled",Fhe="originalSize",Ghe="originalThroughput",Khe="originalVolumeType",Jg="operator",Zhe="output",Qhe="principal",Yhe="peakBandwidthInGbps",v4="productCodes",Xhe="productCode",Whe="privateDnsNameOptions",Jhe="privateDnsNameOptionsOnLaunch",gx="privateDnsName",eme="publicDnsName",b4="platformDetails",tme="placementGroupInfo",nme="publicIp",S4="privateIpAddressesSet",sme="privateIpAddressSet",Yc="privateIpAddress",rme="processorInfo",ome="publicKey",ime="publicKeyMaterial",ame="partitionNumber",cme="phcSupport",lme="previousState",ume="presignedUrl",fme="parentZoneId",dme="parentZoneName",_4="platform",pme="placement",E4="primary",x4="progress",hme="return",w4="rootDeviceName",R4="rootDeviceType",mme="restoreExpiryTime",gme="regionEndpoint",yme="resourceExclusions",vme="reservationId",C4="ramdiskId",bme="regionInfo",Sme="requesterId",_me="rebootMigrationSupport",Eme="rebootMigration",A4="regionName",xme="reservationSet",wme="resourceType",Rme="ramdisk",Cme="reason",I4="smithy.ts.sdk.synthetic.com.amazonaws.ec2",Ame="supportedArchitectures",Ime="subnetArn",Tme="supportedBootModes",Ome="sustainedClockSpeedInGhz",yx="sourceDestCheck",Mme="spreadDomain",Dme="supportedFeatures",Pme="subGeographySet",kme="sizeInGB",Nme="sourceInstanceId",Lme="secondaryInterfaceId",$me="sourceImageId",Mu="sizeInMiB",zme="sourceImageRegion",Bme="spotInstanceRequestId",Ume="secondaryInterfaceSet",ey="snapshotId",ty="subnetId",ny="statusMessage",T4="stateMessage",jme="secondaryNetworkId",Vme="secondaryNetworkSupported",vx="sriovNetSupport",Hme="secondaryPrivateIpAddressCount",qme="supportedRootDeviceTypes",O4="stateReason",Fme="secondarySubnetId",Gme="snapshotSet",Kme="subnetSet",Zme="supportedStrategies",M4="startTime",D4="sseType",Qme="storageTier",Yme="supportedUsageClasses",Xme="sourceVolumeId",Wme="supportedVirtualizationTypes",Jme="supportedVersions",ege="size",qa="state",Fa="status",tge="subnet",nge="tenancy",sge="tcpEstablishedTimeout",rge="totalFpgaMemoryInMiB",oge="totalGpuMemoryInMiB",ige="totalInferenceMemoryInMiB",age="targetIops",cge="targetMultiAttachEnabled",lge="totalMediaMemoryInMiB",uge="totalNeuronDeviceMemoryInMiB",fge="threadsPerCore",so="tagSet",dge="totalSizeInGB",pge="targetSize",P4="tpmSupport",hge="targetThroughput",mge="transferType",gge="targetVolumeType",k4="throughput",yge="timestamp",bx="type",vge="userData",N4="usageOperation",bge="usageOperationUpdateTime",Sge="udpStreamTimeout",_ge="udpTimeout",ep="value",Ege="vCpuInfo",xge="validCores",wge="vpcEncryptionControlId",tp="vpcId",Rge="volumeInitializationRate",Du="volumeId",Cge="vpcLattice",Age="volumeModification",L4="virtualName",Ige="volumeOwnerId",Tge="virtualPrivateGateway",Oge="vpcPeering",Mge="volumeSet",$4="volumeSize",Dge="vpcSet",z4="volumeType",Pge="validThreadsPerCore",B4="virtualizationType",kge="version",Nge="vpc",Lge="workloadSet",y="xmlName",$ge="zoneId",zge="zoneName",Bge="zoneState",Uge="zoneType",O="com.amazonaws.ec2",U4=Gn.for(I4);var jge=[-3,I4,"EC2ServiceException",0,[],[]];U4.registerError(jge,lE);const Vge=[U4];var Hge=[0,O,Rne,8,0],qge=[0,O,Qce,8,0],Fge=[0,O,aue,8,0],Gge=[3,O,kte,0,[bE,Ts,fr,Ud,It],[0,0,0,1,[2,{[S]:"DryRun",[y]:$t}]],3],Yf=[3,O,Ete,0,[Au],[[2,{[S]:"Value",[y]:ep}]]],Xf=[3,O,Nte,0,[Au],[[0,{[S]:"Value",[y]:ep}]]],Kge=[3,O,za,0,[$L,Vae,Vg,JE,WE,IE,CL,Efe,Lce,Nce,toe,qN,Sle,Ks],[[0,{[S]:"OptInStatus",[y]:y4}],[()=>tbe,{[S]:"MessageSet",[y]:xhe}],[0,{[S]:"RegionName",[y]:A4}],[0,{[S]:"ZoneName",[y]:zge}],[0,{[S]:"ZoneId",[y]:$ge}],[0,{[S]:"GroupName",[y]:lx}],[0,{[S]:"NetworkBorderGroup",[y]:d4}],[0,{[S]:"ZoneType",[y]:Uge}],[0,{[S]:"ParentZoneName",[y]:dme}],[0,{[S]:"ParentZoneId",[y]:fme}],[0,{[S]:"GroupLongName",[y]:ape}],[()=>Jve,{[S]:"GeographySet",[y]:q$}],[()=>nbe,{[S]:"SubGeographySet",[y]:Pme}],[0,{[S]:"ZoneState",[y]:Bge}]]],Zge=[3,O,$te,0,[ur],[[0,{[S]:"Name",[y]:Vr}]]],Qge=[3,O,Ute,0,[wL],[[0,{[S]:"Message",[y]:f4}]]],Yge=[3,O,Vte,0,[ur],[[0,{[S]:"Name",[y]:Vr}]]],Xge=[3,O,Zte,0,[Au],[[21,{[S]:"Value",[y]:ep}]]],j4=[3,O,fE,0,[wE,AL,vE,g$],[[()=>Gye,{[S]:"Ebs",[y]:ax}],[0,{[S]:"NoDevice",[y]:p4}],[0,{[S]:"DeviceName",[y]:rx}],[0,{[S]:"VirtualName",[y]:L4}]]],V4=[3,O,dE,0,[Ioe],[[0,{[S]:"InternetGatewayBlockMode",[y]:Ipe}]]],Wge=[3,O,mE,0,[_N,gE],[0,()=>eye]],Jge=[3,O,Ene,0,[_N,gE],[[0,{[S]:"CapacityReservationPreference",[y]:tde}],[()=>tye,{[S]:"CapacityReservationTarget",[y]:rde}]]],eye=[3,O,gE,0,[hE,EN],[0,0]],tye=[3,O,xne,0,[hE,EN],[[0,{[S]:"CapacityReservationId",[y]:k$}],[0,{[S]:"CapacityReservationResourceGroupArn",[y]:nde}]]],nye=[3,O,zne,0,[o$,f$,d$],[1,1,1]],sye=[3,O,Bne,0,[o$,f$,d$],[[1,{[S]:"TcpEstablishedTimeout",[y]:sge}],[1,{[S]:"UdpStreamTimeout",[y]:Sge}],[1,{[S]:"UdpTimeout",[y]:_ge}]]],rye=[3,O,wne,0,[tue,nue,Hc,bse,wse,jd,qd,kce,gi,SN,Gne,It],[0,0,0,0,[0,{[S]:"DestinationRegion",[y]:vde}],[2,{[S]:"Encrypted",[y]:Yd}],[0,{[S]:"KmsKeyId",[y]:Xg}],[()=>Hge,{[S]:"PresignedUrl",[y]:ume}],[()=>bi,{[y]:To}],1,0,[2,{[S]:"DryRun",[y]:$t}]],2],oye=[3,O,Cne,0,[jr,Va],[[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"SnapshotId",[y]:ey}]]],iye=[3,O,pE,0,[bN,i$,cN,LL],[[1,{[S]:"CoreCount",[y]:Ffe}],[1,{[S]:"ThreadsPerCore",[y]:fge}],[0,{[S]:"AmdSevSnp",[y]:Dfe}],[0,{[S]:"NestedVirtualization",[y]:jhe}]]],aye=[3,O,_ne,0,[bN,i$,cN,LL],[1,1,0,0]],cye=[3,O,pne,0,[Ts,ur,gi,Gle,It,Hc,ece,zd],[[0,{[S]:"InstanceId",[y]:Iu}],[0,{[S]:"Name",[y]:Vr}],[()=>bi,{[y]:To}],0,[2,{[S]:"DryRun",[y]:$t}],[0,{[S]:"Description",[y]:Qd}],[2,{[S]:"NoReboot",[y]:zhe}],[()=>J4,{[S]:"BlockDeviceMapping",[y]:Zg}]],2],lye=[3,O,hne,0,[wu],[[0,{[S]:"ImageId",[y]:dx}]]],uye=[3,O,vne,0,[Io,hL,gi,qie,It],[0,0,[()=>bi,{[y]:To}],0,[2,{[S]:"DryRun",[y]:$t}]],1],fye=[3,O,Ane,0,[fr,Hc,ja,gi,vae,It],[0,0,0,[()=>bi,{[y]:To}],0,[2,{[S]:"DryRun",[y]:$t}]],1],dye=[3,O,Ine,0,[yi,gi,za,xu,Bd,zg,ja,rL,tL,iL,eL,oL,It],[0,[()=>bi,{[y]:To}],0,0,0,0,0,2,0,1,0,1,[2,{[S]:"DryRun",[y]:$t}]],1],pye=[3,O,Tne,0,[r$],[[()=>Q4,{[S]:"Subnet",[y]:tge}]]],hye=[3,O,jne,0,[za,xu,jd,Ug,qd,ja,YE,Va,Gg,gi,BE,qg,yE,XE,Ru,It],[0,0,[2,{[S]:"Encrypted",[y]:Yd}],1,0,0,1,0,0,[()=>bi,{[y]:To}],2,1,[0,4],1,()=>q4,[2,{[S]:"DryRun",[y]:$t}]]],mye=[3,O,Vne,0,[Bd,cL,zg,tL,iL,eL,oL,Soe,h$,gi,It,dL,Ote],[0,0,0,0,1,0,1,0,()=>Qve,[()=>bi,{[y]:To}],[2,{[S]:"DryRun",[y]:$t}],[0,{[S]:"InstanceTenancy",[y]:t4}],[2,{[S]:"AmazonProvidedIpv6CidrBlock",[y]:Tfe}]]],gye=[3,O,Hne,0,[S$],[[()=>X4,{[S]:"Vpc",[y]:Nge}]]],yye=[3,O,One,0,[cne],[0],1],vye=[3,O,pse,0,[Io,qc,It],[0,0,[2,{[S]:"DryRun",[y]:$t}]]],bye=[3,O,hse,0,[zce,qc],[[2,{[S]:"Return",[y]:hme}],[0,{[S]:"KeyPairId",[y]:Wg}]]],Sye=[3,O,Cse,0,[Va,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],_ye=[3,O,Ase,0,[Ha,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],Eye=[3,O,Bse,0,[fr,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],xye=[3,O,Use,0,[yi,It],[0,[2,{[S]:"DryRun",[y]:$t}]],1],wye=[3,O,Kne,0,[_fe,bfe,_te,It,Ao],[[()=>ySe,{[y]:JE}],[()=>gSe,{[y]:WE}],2,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Rye=[3,O,Zne,0,[qte],[[()=>ebe,{[S]:"AvailabilityZoneInfo",[y]:kfe}]]],Cye=[3,O,nse,0,[Lre,Uoe,hce,_oe,Roe,Gc,Gs,It,Ao],[[()=>pbe,{[y]:IN}],[()=>ybe,{[y]:wu}],[()=>ez,{[y]:jE}],2,2,1,0,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Aye=[3,O,sse,0,[Gs,Bie],[[0,{[S]:"NextToken",[y]:vi}],[()=>vbe,{[S]:"ImagesSet",[y]:Gpe}]]],Iye=[3,O,rse,0,[Vd,It,Ao,Gs,Gc],[[()=>np,{[y]:Ts}],[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}],[0,{[S]:"NextToken",[y]:vi}],[1,{[S]:"MaxResults",[y]:l4}]]],Tye=[3,O,ose,0,[Gs,ule],[[0,{[S]:"NextToken",[y]:vi}],[()=>Qbe,{[S]:"ReservationSet",[y]:xme}]]],Oye=[3,O,ise,0,[It,pL,Ao,Gc,Gs],[2,[64,{[y]:Hd}],[()=>Oo,{[y]:Ur}],1,0]],Mye=[3,O,ase,0,[pL,Gs],[[()=>Dbe,{[S]:"InstanceTypeSet",[y]:Xpe}],[0,{[S]:"NextToken",[y]:vi}]]],Dye=[3,O,mse,0,[Kie,Yie,gie,It,Ao],[[()=>Nbe,{[y]:Io}],[()=>Lbe,{[y]:qc}],2,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Pye=[3,O,gse,0,[Zie],[[()=>$be,{[S]:"KeySet",[y]:nhe}]]],kye=[3,O,Ese,0,[ole,Dte,It,Ao],[[()=>Zbe,{[y]:Vg}],2,[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],Nye=[3,O,xse,0,[cle],[[()=>Kbe,{[S]:"RegionInfo",[y]:bme}]]],Lye=[3,O,Ise,0,[Gc,Gs,oce,Bce,jle,It,Ao],[1,0,[()=>ez,{[y]:jE}],[64,{[y]:Uce}],[()=>Wbe,{[y]:Va}],[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}]]],$ye=[3,O,Tse,0,[Gs,fue],[[0,{[S]:"NextToken",[y]:vi}],[()=>Jbe,{[S]:"SnapshotSet",[y]:Gme}]]],zye=[3,O,Ose,0,[Ao,wle,Gs,Gc,It],[[()=>Oo,{[y]:Ur}],[()=>eSe,{[y]:Ha}],0,1,[2,{[S]:"DryRun",[y]:$t}]]],Bye=[3,O,Mse,0,[Gs,pue],[[0,{[S]:"NextToken",[y]:vi}],[()=>nSe,{[S]:"SubnetSet",[y]:Kme}]]],Uye=[3,O,jse,0,[Xue,It,Ao,Gs,Gc],[[()=>lSe,{[y]:fr}],[2,{[S]:"DryRun",[y]:$t}],[()=>Oo,{[y]:Ur}],[0,{[S]:"NextToken",[y]:vi}],[1,{[S]:"MaxResults",[y]:l4}]]],jye=[3,O,Vse,0,[Gs,pfe],[[0,{[S]:"NextToken",[y]:vi}],[()=>uSe,{[S]:"VolumeSet",[y]:Mge}]]],Vye=[3,O,Hse,0,[Ao,Wue,Gs,Gc,It],[[()=>Oo,{[y]:Ur}],[()=>dSe,{[y]:yi}],0,1,[2,{[S]:"DryRun",[y]:$t}]]],Hye=[3,O,qse,0,[Gs,mfe],[[0,{[S]:"NextToken",[y]:vi}],[()=>hSe,{[S]:"VpcSet",[y]:Dge}]]],qye=[3,O,Fse,0,[fr,bE,CE,Ts,It],[0,0,2,0,[2,{[S]:"DryRun",[y]:$t}]],1],Fye=[3,O,fse,0,[Ale,Ba,Fg],[[1,{[S]:"SizeInGB",[y]:kme}],[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Type",[y]:bx}]]],Gye=[3,O,Wse,0,[Ua,Ug,Va,y$,Gg,qd,qg,ja,za,jd,XE,xu,Ud],[[2,{[S]:"DeleteOnTermination",[y]:Qc}],[1,{[S]:"Iops",[y]:s4}],[0,{[S]:"SnapshotId",[y]:ey}],[1,{[S]:"VolumeSize",[y]:$4}],[0,{[S]:"VolumeType",[y]:z4}],[0,{[S]:"KmsKeyId",[y]:Xg}],[1,{[S]:"Throughput",[y]:k4}],[0,{[S]:"OutpostArn",[y]:Jd}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[2,{[S]:"Encrypted",[y]:Yd}],1,0,1]],Kye=[3,O,tre,0,[Ud,hN,yN,mN,vL,xL,bL],[[1,{[S]:"EbsCardIndex",[y]:ox}],[1,{[S]:"BaselineBandwidthInMbps",[y]:T$}],[1,{[S]:"BaselineThroughputInMBps",[y]:P$}],[1,{[S]:"BaselineIops",[y]:O$}],[1,{[S]:"MaximumBandwidthInMbps",[y]:i4}],[1,{[S]:"MaximumThroughputInMBps",[y]:u4}],[1,{[S]:"MaximumIops",[y]:a4}]]],Zye=[3,O,DN,0,[Tre,UN,kN,kL,Rae,Ite,Cae,nre],[[0,{[S]:"EbsOptimizedSupport",[y]:qde}],[0,{[S]:"EncryptionSupport",[y]:j$}],[()=>Xye,{[S]:"EbsOptimizedInfo",[y]:Vde}],[0,{[S]:"NvmeSupport",[y]:g4}],[1,{[S]:"MaximumEbsAttachments",[y]:hhe}],[0,{[S]:"AttachmentLimitType",[y]:Afe}],[1,{[S]:"MaximumEbsCards",[y]:mhe}],[()=>cbe,{[S]:"EbsCardSet",[y]:wde}]]],Qye=[3,O,Ere,0,[kg,Ua,Kd,fr,iN,sfe,Ru,Ud],[[4,{[S]:"AttachTime",[y]:Kg}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"AssociatedResource",[y]:x$}],[0,{[S]:"VolumeOwnerId",[y]:Ige}],[()=>sy,{[S]:"Operator",[y]:Jg}],[1,{[S]:"EbsCardIndex",[y]:ox}]]],Yye=[3,O,xre,0,[fr,Ua],[[0,{[S]:"VolumeId",[y]:Du}],[2,{[S]:"DeleteOnTermination",[y]:Qc}]]],Xye=[3,O,kN,0,[hN,yN,mN,vL,xL,bL],[[1,{[S]:"BaselineBandwidthInMbps",[y]:T$}],[1,{[S]:"BaselineThroughputInMBps",[y]:P$}],[1,{[S]:"BaselineIops",[y]:O$}],[1,{[S]:"MaximumBandwidthInMbps",[y]:i4}],[1,{[S]:"MaximumThroughputInMBps",[y]:u4}],[1,{[S]:"MaximumIops",[y]:a4}]]],Wye=[3,O,PN,0,[Aae],[[1,{[S]:"MaximumEfaInterfaces",[y]:ghe}]]],Jye=[3,O,are,0,[pre,cre,ure,fre],[[0,{[S]:"ElasticGpuId",[y]:Dde}],[0,{[S]:"ElasticGpuAssociationId",[y]:Ide}],[0,{[S]:"ElasticGpuAssociationState",[y]:Tde}],[0,{[S]:"ElasticGpuAssociationTime",[y]:Mde}]]],e0e=[3,O,TN,0,[Fg],[0],1],t0e=[3,O,ON,0,[Fg,Ba],[0,1],1],n0e=[3,O,mre,0,[Sre,gre,vre,bre],[[0,{[S]:"ElasticInferenceAcceleratorArn",[y]:Pde}],[0,{[S]:"ElasticInferenceAcceleratorAssociationId",[y]:kde}],[0,{[S]:"ElasticInferenceAcceleratorAssociationState",[y]:Nde}],[4,{[S]:"ElasticInferenceAcceleratorAssociationTime",[y]:$de}]]],s0e=[3,O,Mre,0,[LN,BN],[2,()=>r0e]],r0e=[3,O,Pre,0,[zN],[2]],o0e=[3,O,_E,0,[RE],[[2,{[S]:"Enabled",[y]:V$}]]],i0e=[3,O,Ire,0,[RE],[2]],a0e=[3,O,Ur,0,[ur,dfe],[0,[()=>iSe,{[y]:Au}]]],c0e=[3,O,zre,0,[ur,Fd,Ba,Fc],[[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[1,{[S]:"Count",[y]:Zc}],[()=>l0e,{[S]:"MemoryInfo",[y]:Tu}]]],l0e=[3,O,Ure,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],u0e=[3,O,jN,0,[Fre,hue],[[()=>hbe,{[S]:"Fpgas",[y]:ope}],[1,{[S]:"TotalFpgaMemoryInMiB",[y]:rge}]]],f0e=[3,O,Kre,0,[Ts,mae,It],[0,2,[2,{[S]:"DryRun",[y]:$t}]],1],d0e=[3,O,Zre,0,[Ts,kue,pce],[[0,{[S]:"InstanceId",[y]:Iu}],[4,{[S]:"Timestamp",[y]:yge}],[0,{[S]:"Output",[y]:Zhe}]]],p0e=[3,O,Qre,0,[ur,Fd,Ba,rae,noe,yfe,Fc],[[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[1,{[S]:"Count",[y]:Zc}],[1,{[S]:"LogicalGpuCount",[y]:ihe}],[1,{[S]:"GpuPartitionSize",[y]:cpe}],[()=>mSe,{[S]:"WorkloadSet",[y]:Lge}],[()=>h0e,{[S]:"MemoryInfo",[y]:Tu}]]],h0e=[3,O,Xre,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],m0e=[3,O,HN,0,[soe,mue],[[()=>mbe,{[S]:"Gpus",[y]:lpe}],[1,{[S]:"TotalGpuMemoryInMiB",[y]:oge}]]],g0e=[3,O,eoe,0,[AE,IE],[[0,{[S]:"GroupId",[y]:cx}],[0,{[S]:"GroupName",[y]:lx}]]],y0e=[3,O,TE,0,[RN],[[2,{[S]:"Configured",[y]:cde}]]],v0e=[3,O,ooe,0,[RN],[2]],b0e=[3,O,kE,0,[uN,loe],[[0,{[S]:"Arn",[y]:R$}],[0,{[S]:"Id",[y]:vpe}]]],S0e=[3,O,Noe,0,[uN,ur],[[0,{[S]:"Arn",[y]:R$}],[0,{[S]:"Name",[y]:Vr}]]],_0e=[3,O,Uie,0,[HL,u$,zd,Hc,Lg,ME,cie,ur,QL,YL,ZE,QE,jr,v$,gN,a$,$se,Pie,Ole,_se,iae,moe,Ile,Dle,VN,wu,qoe,Ks,Kc,lne,$ce,BL,fN,zie,zE,qE,GL],[[0,{[S]:"PlatformDetails",[y]:b4}],[0,{[S]:"UsageOperation",[y]:N4}],[()=>rbe,{[S]:"BlockDeviceMapping",[y]:Zg}],[0,{[S]:"Description",[y]:Qd}],[2,{[S]:"EnaSupport",[y]:Qg}],[0,{[S]:"Hypervisor",[y]:fx}],[0,{[S]:"ImageOwnerAlias",[y]:Ppe}],[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"RootDeviceName",[y]:w4}],[0,{[S]:"RootDeviceType",[y]:R4}],[0,{[S]:"SriovNetSupport",[y]:vx}],[()=>Z4,{[S]:"StateReason",[y]:O4}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"VirtualizationType",[y]:B4}],[0,{[S]:"BootMode",[y]:M$}],[0,{[S]:"TpmSupport",[y]:P4}],[0,{[S]:"DeprecationTime",[y]:Sde}],[0,{[S]:"ImdsSupport",[y]:Zpe}],[0,{[S]:"SourceInstanceId",[y]:Nme}],[0,{[S]:"DeregistrationProtection",[y]:yde}],[0,{[S]:"LastLaunchedTime",[y]:ahe}],[2,{[S]:"ImageAllowed",[y]:wpe}],[0,{[S]:"SourceImageId",[y]:$me}],[0,{[S]:"SourceImageRegion",[y]:zme}],[2,{[S]:"FreeTierEligible",[y]:H$}],[0,{[S]:"ImageId",[y]:dx}],[0,{[S]:"ImageLocation",[y]:Tpe}],[0,{[S]:"ImageState",[y]:Kpe}],[0,{[S]:"ImageOwnerId",[y]:kpe}],[0,{[S]:"CreationDate",[y]:Kfe}],[2,{[S]:"IsPublic",[y]:Hpe}],[()=>tz,{[S]:"ProductCodes",[y]:v4}],[0,{[S]:"Architecture",[y]:C$}],[0,{[S]:"ImageType",[y]:Jpe}],[0,{[S]:"KernelId",[y]:r4}],[0,{[S]:"RamdiskId",[y]:C4}],[0,{[S]:"Platform",[y]:_4}]]],E0e=[3,O,Voe,0,[Io,Oce,gi,It],[[0,{[S]:"KeyName",[y]:Xd}],[21,{[S]:"PublicKeyMaterial",[y]:ime}],[()=>bi,{[y]:To}],[2,{[S]:"DryRun",[y]:$t}]],2],x0e=[3,O,Hoe,0,[$E,Io,qc,jr],[[0,{[S]:"KeyFingerprint",[y]:hx}],[0,{[S]:"KeyName",[y]:Xd}],[0,{[S]:"KeyPairId",[y]:Wg}],[()=>Hr,{[S]:"TagSet",[y]:so}]]],w0e=[3,O,XN,0,[lN,yue],[[()=>bbe,{[S]:"Accelerators",[y]:w$}],[1,{[S]:"TotalInferenceMemoryInMiB",[y]:ige}]]],R0e=[3,O,Eoe,0,[Ba,ur,Fd,Fc],[[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[()=>C0e,{[S]:"MemoryInfo",[y]:Tu}]]],C0e=[3,O,woe,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],A0e=[3,O,jie,0,[fN,zd,yE,SE,Lg,ME,kE,Goe,dre,_re,TL,ja,QL,YL,XL,Hg,Mle,ZE,QE,jr,v$,pE,one,hE,mE,TE,yae,_L,_E,gN,HL,u$,Lue,UL,PE,a$,EL,dne,DL,Ru,JL,Ts,wu,Ks,VE,VL,rue,Io,Ate,BL,Hd,hae,HE,zE,qE,GL,UE,Ha,yi,mi,Ace],[[0,{[S]:"Architecture",[y]:C$}],[()=>Sbe,{[S]:"BlockDeviceMapping",[y]:Zg}],[0,{[S]:"ClientToken",[y]:N$}],[2,{[S]:"EbsOptimized",[y]:ix}],[2,{[S]:"EnaSupport",[y]:Qg}],[0,{[S]:"Hypervisor",[y]:fx}],[()=>b0e,{[S]:"IamInstanceProfile",[y]:W$}],[0,{[S]:"InstanceLifecycle",[y]:Ope}],[()=>lbe,{[S]:"ElasticGpuAssociationSet",[y]:Ode}],[()=>fbe,{[S]:"ElasticInferenceAcceleratorAssociationSet",[y]:Lde}],[()=>Rbe,{[S]:"NetworkInterfaceSet",[y]:Phe}],[0,{[S]:"OutpostArn",[y]:Jd}],[0,{[S]:"RootDeviceName",[y]:w4}],[0,{[S]:"RootDeviceType",[y]:R4}],[()=>_x,{[S]:"GroupSet",[y]:ux}],[2,{[S]:"SourceDestCheck",[y]:yx}],[0,{[S]:"SpotInstanceRequestId",[y]:Bme}],[0,{[S]:"SriovNetSupport",[y]:vx}],[()=>Z4,{[S]:"StateReason",[y]:O4}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"VirtualizationType",[y]:B4}],[()=>iye,{[S]:"CpuOptions",[y]:Wfe}],[0,{[S]:"CapacityBlockId",[y]:Hfe}],[0,{[S]:"CapacityReservationId",[y]:k$}],[()=>Jge,{[S]:"CapacityReservationSpecification",[y]:sde}],[()=>y0e,{[S]:"HibernationOptions",[y]:dpe}],[()=>zbe,{[S]:"LicenseSet",[y]:che}],[()=>B0e,{[S]:"MetadataOptions",[y]:She}],[()=>o0e,{[S]:"EnclaveOptions",[y]:Fde}],[0,{[S]:"BootMode",[y]:M$}],[0,{[S]:"PlatformDetails",[y]:b4}],[0,{[S]:"UsageOperation",[y]:N4}],[4,{[S]:"UsageOperationUpdateTime",[y]:bge}],[()=>Rve,{[S]:"PrivateDnsNameOptions",[y]:Whe}],[0,{[S]:"Ipv6Address",[y]:Z$}],[0,{[S]:"TpmSupport",[y]:P4}],[()=>N0e,{[S]:"MaintenanceOptions",[y]:_he}],[0,{[S]:"CurrentInstanceBootMode",[y]:Yfe}],[()=>H0e,{[S]:"NetworkPerformanceOptions",[y]:$he}],[()=>sy,{[S]:"Operator",[y]:Jg}],[()=>Ibe,{[S]:"SecondaryInterfaceSet",[y]:Ume}],[0,{[S]:"InstanceId",[y]:Iu}],[0,{[S]:"ImageId",[y]:dx}],[()=>wS,{[S]:"InstanceState",[y]:Qpe}],[0,{[S]:"PrivateDnsName",[y]:gx}],[0,{[S]:"DnsName",[y]:mde}],[0,{[S]:"Reason",[y]:Cme}],[0,{[S]:"KeyName",[y]:Xd}],[1,{[S]:"AmiLaunchIndex",[y]:Cfe}],[()=>tz,{[S]:"ProductCodes",[y]:v4}],[0,{[S]:"InstanceType",[y]:px}],[4,{[S]:"LaunchTime",[y]:lhe}],[()=>F4,{[S]:"Placement",[y]:pme}],[0,{[S]:"KernelId",[y]:r4}],[0,{[S]:"RamdiskId",[y]:C4}],[0,{[S]:"Platform",[y]:_4}],[()=>hve,{[S]:"Monitoring",[y]:Ahe}],[0,{[S]:"SubnetId",[y]:ty}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[0,{[S]:"IpAddress",[y]:Rpe}]]],I0e=[3,O,uoe,0,[LN,BN],[[2,{[S]:"EnaSrdEnabled",[y]:Kde}],[()=>T0e,{[S]:"EnaSrdUdpSpecification",[y]:Xde}]]],T0e=[3,O,foe,0,[zN],[[2,{[S]:"EnaSrdUdpEnabled",[y]:Yde}]]],O0e=[3,O,goe,0,[vE,wE],[[0,{[S]:"DeviceName",[y]:rx}],[()=>Qye,{[S]:"Ebs",[y]:ax}]]],M0e=[3,O,voe,0,[vE,wE,g$,AL],[[0,{[S]:"DeviceName",[y]:rx}],[()=>Yye,{[S]:"Ebs",[y]:ax}],[0,{[S]:"VirtualName",[y]:L4}],[0,{[S]:"NoDevice",[y]:p4}]]],D0e=[3,O,Loe,0,[LE],[[0,{[S]:"Ipv4Prefix",[y]:Upe}]]],P0e=[3,O,Ooe,0,[PE,mie],[[0,{[S]:"Ipv6Address",[y]:Z$}],[2,{[S]:"IsPrimaryIpv6",[y]:$pe}]]],k0e=[3,O,$oe,0,[NE],[[0,{[S]:"Ipv6Prefix",[y]:Vpe}]]],N0e=[3,O,Zoe,0,[aN,sle],[[0,{[S]:"AutoRecovery",[y]:Mfe}],[0,{[S]:"RebootMigration",[y]:Eme}]]],L0e=[3,O,Qoe,0,[aN],[0]],$0e=[3,O,Yoe,0,[$ae,Wle],[0,()=>kve]],z0e=[3,O,Xoe,0,[ZN,KN,FN,GN,sL],[0,1,0,0,0]],B0e=[3,O,Woe,0,[Ks,ZN,KN,FN,GN,sL],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"HttpTokens",[y]:ype}],[1,{[S]:"HttpPutResponseHopLimit",[y]:hpe}],[0,{[S]:"HttpEndpoint",[y]:upe}],[0,{[S]:"HttpProtocolIpv6",[y]:ppe}],[0,{[S]:"InstanceMetadataTags",[y]:Mpe}]]],U0e=[3,O,eie,0,[dN,pN,Hc,$g,DE,yL,IL,Kc,VE,mi,jg,Hg,Kd,Ha,yi,Bg,lL,aL,Lne,Ru],[[()=>H4,{[S]:"Association",[y]:A$}],[()=>j0e,{[S]:"Attachment",[y]:I$}],[0,{[S]:"Description",[y]:Qd}],[()=>_x,{[S]:"GroupSet",[y]:ux}],[()=>Ex,{[S]:"Ipv6AddressesSet",[y]:K$}],[0,{[S]:"MacAddress",[y]:o4}],[0,{[S]:"NetworkInterfaceId",[y]:h4}],[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"PrivateDnsName",[y]:gx}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[()=>Abe,{[S]:"PrivateIpAddressesSet",[y]:S4}],[2,{[S]:"SourceDestCheck",[y]:yx}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"SubnetId",[y]:ty}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"InterfaceType",[y]:n4}],[()=>Ebe,{[S]:"Ipv4PrefixSet",[y]:zpe}],[()=>xbe,{[S]:"Ipv6PrefixSet",[y]:Bpe}],[()=>sye,{[S]:"ConnectionTrackingConfiguration",[y]:ide}],[()=>sy,{[S]:"Operator",[y]:Jg}]]],H4=[3,O,tie,0,[fne,bne,lie,VL,xce],[[0,{[S]:"CarrierIp",[y]:Qfe}],[0,{[S]:"CustomerOwnedIp",[y]:Jfe}],[0,{[S]:"IpOwnerId",[y]:Npe}],[0,{[S]:"PublicDnsName",[y]:eme}],[0,{[S]:"PublicIp",[y]:nme}]]],j0e=[3,O,nie,0,[kg,oN,Ua,Ng,Kd,Gd,$N,NN],[[4,{[S]:"AttachTime",[y]:Kg}],[0,{[S]:"AttachmentId",[y]:E$}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[1,{[S]:"DeviceIndex",[y]:sx}],[0,{[S]:"Status",[y]:Fa}],[1,{[S]:"NetworkCardIndex",[y]:mx}],[()=>I0e,{[S]:"EnaSrdSpecification",[y]:Zde}],[1,{[S]:"EnaQueueCount",[y]:Gde}]]],V0e=[3,O,rie,0,[Tte,Ua,Hc,Ng,$g,YN,DE,IL,mi,jg,Jle,Ha,xte,Bg,Gd,lL,die,aL,fie,Ice,$N,$ne,NN],[[2,{[S]:"AssociatePublicIpAddress",[y]:Ife}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[0,{[S]:"Description",[y]:Qd}],[1,{[S]:"DeviceIndex",[y]:sx}],[()=>nz,{[y]:FE}],[1,{[S]:"Ipv6AddressCount",[y]:bpe}],[()=>Ex,{[S]:"Ipv6Addresses",[y]:K$}],[0,{[S]:"NetworkInterfaceId",[y]:h4}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[()=>Fbe,{[S]:"PrivateIpAddresses",[y]:S4}],[1,{[S]:"SecondaryPrivateIpAddressCount",[y]:Hme}],[0,{[S]:"SubnetId",[y]:ty}],2,0,1,[()=>Pbe,{[y]:LE}],1,[()=>kbe,{[y]:NE}],1,2,()=>s0e,()=>nye,1]],H0e=[3,O,iie,0,[vN],[[0,{[S]:"BandwidthWeighting",[y]:Ufe}]]],q0e=[3,O,aie,0,[vN],[0]],F0e=[3,O,pie,0,[dN,KL,VE,mi],[[()=>H4,{[S]:"Association",[y]:A$}],[2,{[S]:"Primary",[y]:E4}],[0,{[S]:"PrivateDnsName",[y]:gx}],[0,{[S]:"PrivateIpAddress",[y]:Yc}]]],G0e=[3,O,Mie,0,[pN,yL,Tle,Kc,jg,Hg,Kd,t$,Yle,Bg],[[()=>K0e,{[S]:"Attachment",[y]:I$}],[0,{[S]:"MacAddress",[y]:o4}],[0,{[S]:"SecondaryInterfaceId",[y]:Lme}],[0,{[S]:"OwnerId",[y]:Ou}],[()=>Tbe,{[S]:"PrivateIpAddressSet",[y]:sme}],[2,{[S]:"SourceDestCheck",[y]:yx}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"SecondarySubnetId",[y]:Fme}],[0,{[S]:"SecondaryNetworkId",[y]:jme}],[0,{[S]:"InterfaceType",[y]:n4}]]],K0e=[3,O,xie,0,[kg,oN,Ua,Ng,Kd,Gd],[[4,{[S]:"AttachTime",[y]:Kg}],[0,{[S]:"AttachmentId",[y]:E$}],[2,{[S]:"DeleteOnTermination",[y]:Qc}],[1,{[S]:"DeviceIndex",[y]:sx}],[0,{[S]:"Status",[y]:Fa}],[1,{[S]:"NetworkCardIndex",[y]:mx}]]],Z0e=[3,O,Rie,0,[mi],[[0,{[S]:"PrivateIpAddress",[y]:Yc}]]],Q0e=[3,O,Iie,0,[mi],[0],1],Y0e=[3,O,Oie,0,[Ua,Ng,jg,wce,t$,Bg,Gd],[2,1,[()=>Obe,{[y]:mi}],1,0,0,1]],wS=[3,O,kie,0,[wN,ur],[[1,{[S]:"Code",[y]:$$}],[0,{[S]:"Name",[y]:Vr}]]],X0e=[3,O,_ie,0,[Ts,Nne,Pce],[[0,{[S]:"InstanceId",[y]:Iu}],[()=>wS,{[S]:"CurrentState",[y]:ode}],[()=>wS,{[S]:"PreviousState",[y]:lme}]]],W0e=[3,O,uL,0,[Aue,Xse,kL,UN],[[1,{[S]:"TotalSizeInGB",[y]:dge}],[()=>abe,{[S]:"Disks",[y]:xde}],[0,{[S]:"NvmeSupport",[y]:g4}],[0,{[S]:"EncryptionSupport",[y]:j$}]]],J0e=[3,O,$ie,0,[Hd,une,VN,iue,eue,lue,ene,ME,FL,p$,Fc,Die,uL,DN,OL,HN,jN,qL,XN,aoe,tne,ese,Mte,mle,Xae,tce,NL,gL,ML,Dce,nle],[[0,{[S]:"InstanceType",[y]:px}],[2,{[S]:"CurrentGeneration",[y]:Zfe}],[2,{[S]:"FreeTierEligible",[y]:H$}],[()=>oSe,{[S]:"SupportedUsageClasses",[y]:Yme}],[()=>Ybe,{[S]:"SupportedRootDeviceTypes",[y]:qme}],[()=>aSe,{[S]:"SupportedVirtualizationTypes",[y]:Wme}],[2,{[S]:"BareMetal",[y]:zfe}],[0,{[S]:"Hypervisor",[y]:fx}],[()=>Ave,{[S]:"ProcessorInfo",[y]:rme}],[()=>Fve,{[S]:"VCpuInfo",[y]:Ege}],[()=>uve,{[S]:"MemoryInfo",[y]:Tu}],[2,{[S]:"InstanceStorageSupported",[y]:Fpe}],[()=>W0e,{[S]:"InstanceStorageInfo",[y]:qpe}],[()=>Zye,{[S]:"EbsInfo",[y]:Bde}],[()=>gve,{[S]:"NetworkInfo",[y]:Nhe}],[()=>m0e,{[S]:"GpuInfo",[y]:ipe}],[()=>u0e,{[S]:"FpgaInfo",[y]:tpe}],[()=>Eve,{[S]:"PlacementGroupInfo",[y]:tme}],[()=>w0e,{[S]:"InferenceAcceleratorInfo",[y]:Spe}],[2,{[S]:"HibernationSupported",[y]:gpe}],[2,{[S]:"BurstablePerformanceSupported",[y]:Bfe}],[2,{[S]:"DedicatedHostsSupported",[y]:pde}],[2,{[S]:"AutoRecoverySupported",[y]:Ofe}],[()=>obe,{[S]:"SupportedBootModes",[y]:Tme}],[0,{[S]:"NitroEnclavesSupport",[y]:Mhe}],[0,{[S]:"NitroTpmSupport",[y]:Uhe}],[()=>_ve,{[S]:"NitroTpmInfo",[y]:Bhe}],[()=>ave,{[S]:"MediaAcceleratorInfo",[y]:dhe}],[()=>Sve,{[S]:"NeuronInfo",[y]:Lhe}],[0,{[S]:"PhcSupport",[y]:cme}],[0,{[S]:"RebootMigrationSupport",[y]:_me}]]],eve=[3,O,bie,0,[LE],[0]],tve=[3,O,Sie,0,[NE],[0]],nve=[3,O,Jie,0,[qc,jr,Io,$E,Fie],[[0,{[S]:"KeyPairId",[y]:Wg}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"KeyName",[y]:Xd}],[0,{[S]:"KeyFingerprint",[y]:hx}],[()=>Fge,{[S]:"KeyMaterial",[y]:the}]]],sve=[3,O,Xie,0,[qc,hL,jr,Tce,xN,Io,$E],[[0,{[S]:"KeyPairId",[y]:Wg}],[0,{[S]:"KeyType",[y]:she}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"PublicKey",[y]:ome}],[4,{[S]:"CreateTime",[y]:L$}],[0,{[S]:"KeyName",[y]:Xd}],[0,{[S]:"KeyFingerprint",[y]:hx}]]],rve=[3,O,pae,0,[fae,dae,b$],[0,0,0]],ove=[3,O,nae,0,[mL],[[0,{[S]:"LicenseConfigurationArn",[y]:ohe}]]],ive=[3,O,tae,0,[mL],[0]],ave=[3,O,gL,0,[lN,wue],[[()=>Ube,{[S]:"Accelerators",[y]:w$}],[1,{[S]:"TotalMediaMemoryInMiB",[y]:lge}]]],cve=[3,O,Eae,0,[Ba,ur,Fd,Fc],[[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Name",[y]:Vr}],[0,{[S]:"Manufacturer",[y]:Wd}],[()=>lve,{[S]:"MemoryInfo",[y]:Tu}]]],lve=[3,O,wae,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],uve=[3,O,Fc,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],fve=[3,O,Oae,0,[Ts,Hg,CN,It,Gte,Au,zd,AN,Hd,eae,ale,l$,nL,$g,SE,ZE,Lg],[[0,{[S]:"InstanceId",[y]:Iu}],[()=>Yf,0],[()=>Yf,0],[2,{[S]:"DryRun",[y]:$t}],[0,{[S]:"Attribute",[y]:Lfe}],[0,{[S]:"Value",[y]:ep}],[()=>_be,{[S]:"BlockDeviceMapping",[y]:Zg}],[()=>Yf,{[S]:"DisableApiTermination",[y]:z$}],[()=>Xf,{[S]:"InstanceType",[y]:px}],[()=>Xf,{[S]:"Kernel",[y]:rhe}],[()=>Xf,{[S]:"Ramdisk",[y]:Rme}],[()=>Xge,{[S]:"UserData",[y]:vge}],[()=>Xf,{[S]:"InstanceInitiatedShutdownBehavior",[y]:J$}],[()=>gbe,{[y]:AE}],[()=>Yf,{[S]:"EbsOptimized",[y]:ix}],[()=>Xf,{[S]:"SriovNetSupport",[y]:vx}],[()=>Yf,{[S]:"EnaSupport",[y]:Qg}]],1],dve=[3,O,zae,0,[fr,It,YE,Gg,Ug,qg,BE],[0,2,1,0,1,1,2],1],pve=[3,O,Bae,0,[m$],[[()=>Gve,{[S]:"VolumeModification",[y]:Age}]]],hve=[3,O,UE,0,[Ks],[[0,{[S]:"State",[y]:qa}]]],mve=[3,O,Fae,0,[Gd,PL,SL,wte,Qte,mce,Wne,Iae,Tae],[[1,{[S]:"NetworkCardIndex",[y]:mx}],[0,{[S]:"NetworkPerformance",[y]:m4}],[1,{[S]:"MaximumNetworkInterfaces",[y]:c4}],[1,{[S]:"AdditionalFlexibleNetworkInterfaces",[y]:xfe}],[1,{[S]:"BaselineBandwidthInGbps",[y]:$fe}],[1,{[S]:"PeakBandwidthInGbps",[y]:Yhe}],[1,{[S]:"DefaultEnaQueueCountPerInterface",[y]:fde}],[1,{[S]:"MaximumEnaQueueCount",[y]:yhe}],[1,{[S]:"MaximumEnaQueueCountPerInterface",[y]:vhe}]]],gve=[3,O,OL,0,[PL,SL,Dae,vse,Hae,doe,poe,Nie,Lg,kre,PN,wre,Dre,sne,jre,Xle,Nae,hoe],[[0,{[S]:"NetworkPerformance",[y]:m4}],[1,{[S]:"MaximumNetworkInterfaces",[y]:c4}],[1,{[S]:"MaximumNetworkCards",[y]:bhe}],[1,{[S]:"DefaultNetworkCardIndex",[y]:hde}],[()=>jbe,{[S]:"NetworkCards",[y]:The}],[1,{[S]:"Ipv4AddressesPerInterface",[y]:_pe}],[1,{[S]:"Ipv6AddressesPerInterface",[y]:Epe}],[2,{[S]:"Ipv6Supported",[y]:Ype}],[0,{[S]:"EnaSupport",[y]:Qg}],[2,{[S]:"EfaSupported",[y]:Wde}],[()=>Wye,{[S]:"EfaInfo",[y]:Ude}],[2,{[S]:"EncryptionInTransitSupported",[y]:zde}],[2,{[S]:"EnaSrdSupported",[y]:Qde}],[()=>sbe,{[S]:"BandwidthWeightings",[y]:jfe}],[0,{[S]:"FlexibleEnaQueuesSupport",[y]:epe}],[2,{[S]:"SecondaryNetworkSupported",[y]:Vme}],[1,{[S]:"MaximumSecondaryNetworkInterfaces",[y]:whe}],[1,{[S]:"Ipv4AddressesPerSecondaryInterface",[y]:xpe}]]],yve=[3,O,Gae,0,[Ba,b$],[[1,{[S]:"Count",[y]:Zc}],[1,{[S]:"Version",[y]:kge}]]],vve=[3,O,Kae,0,[Ba,ur,mne,Fc],[[1,{[S]:"Count",[y]:Zc}],[0,{[S]:"Name",[y]:Vr}],[()=>yve,{[S]:"CoreInfo",[y]:Xfe}],[()=>bve,{[S]:"MemoryInfo",[y]:Tu}]]],bve=[3,O,Qae,0,[Cu],[[1,{[S]:"SizeInMiB",[y]:Mu}]]],Sve=[3,O,ML,0,[Yae,Rue],[[()=>Vbe,{[S]:"NeuronDevices",[y]:Ohe}],[1,{[S]:"TotalNeuronDeviceMemoryInMiB",[y]:uge}]]],_ve=[3,O,NL,0,[uue],[[()=>Hbe,{[S]:"SupportedVersions",[y]:Jme}]]],q4=[3,O,ace,0,[zL],[0]],sy=[3,O,cce,0,[jae,zL],[[2,{[S]:"Managed",[y]:Che}],[0,{[S]:"Principal",[y]:Qhe}]]],F4=[3,O,HE,0,[xu,Fte,IE,Mce,roe,Pue,vle,ioe,AE,za],[[0,{[S]:"AvailabilityZoneId",[y]:tx}],[0,{[S]:"Affinity",[y]:Nfe}],[0,{[S]:"GroupName",[y]:lx}],[1,{[S]:"PartitionNumber",[y]:ame}],[0,{[S]:"HostId",[y]:fpe}],[0,{[S]:"Tenancy",[y]:nge}],[0,{[S]:"SpreadDomain",[y]:Mme}],[0,{[S]:"HostResourceGroupArn",[y]:mpe}],[0,{[S]:"GroupId",[y]:cx}],[0,{[S]:"AvailabilityZone",[y]:Zd}]]],Eve=[3,O,qL,0,[sue],[[()=>qbe,{[S]:"SupportedStrategies",[y]:Zme}]]],xve=[3,O,jL,0,[OE,xE,EE],[[0,{[S]:"HostnameType",[y]:F$}],[2,{[S]:"EnableResourceNameDnsARecord",[y]:U$}],[2,{[S]:"EnableResourceNameDnsAAAARecord",[y]:B$}]]],wve=[3,O,Sce,0,[OE,xE,EE],[0,2,2]],Rve=[3,O,_ce,0,[OE,xE,EE],[[0,{[S]:"HostnameType",[y]:F$}],[2,{[S]:"EnableResourceNameDnsARecord",[y]:U$}],[2,{[S]:"EnableResourceNameDnsAAAARecord",[y]:B$}]]],Cve=[3,O,Rce,0,[KL,mi],[[2,{[S]:"Primary",[y]:E4}],[0,{[S]:"PrivateIpAddress",[y]:Yc}]]],Ave=[3,O,FL,0,[hle,yle,ble,Fd],[[()=>Wve,{[S]:"SupportedArchitectures",[y]:Ame}],[1,{[S]:"SustainedClockSpeedInGhz",[y]:Ome}],[()=>sSe,{[S]:"SupportedFeatures",[y]:Dme}],[0,{[S]:"Manufacturer",[y]:Wd}]]],Ive=[3,O,bce,0,[gce,vce],[[0,{[S]:"ProductCode",[y]:Xhe}],[0,{[S]:"Type",[y]:bx}]]],Tve=[3,O,Kce,0,[Vd,It],[[()=>np,{[y]:Ts}],[2,{[S]:"DryRun",[y]:$t}]],1],Ove=[3,O,lle,0,[$L,qN,Vg,$re],[[0,{[S]:"OptInStatus",[y]:y4}],[()=>Gbe,{[S]:"GeographySet",[y]:q$}],[0,{[S]:"RegionName",[y]:A4}],[0,{[S]:"RegionEndpoint",[y]:gme}]]],Mve=[3,O,qce,0,[ur],[[0,{[S]:"Name",[y]:Vr}]]],G4=[3,O,fle,0,[Yce,Kc,Wce,$g,Vie],[[0,{[S]:"ReservationId",[y]:vme}],[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"RequesterId",[y]:Sme}],[()=>_x,{[S]:"GroupSet",[y]:ux}],[()=>wbe,{[S]:"InstancesSet",[y]:Yg}]]],Dve=[3,O,Gce,0,[RE],[[2,{[S]:"Enabled",[y]:V$}]],1],Pve=[3,O,Zce,0,[Sae,_ae,zd,wu,Hd,YN,DE,zE,Io,UE,HE,qE,Ele,XL,Ha,l$,TN,MN,gi,uae,Joe,Dne,pE,mE,TE,aae,_L,_E,UL,EL,CN,Ore,DL,Ru,JL,It,AN,nL,mi,yE,rN,TL,kE,SE],[1,1,[()=>J4,{[y]:fE}],0,0,1,[()=>Ex,{[y]:PE}],0,0,[()=>Dve,0],[()=>F4,0],0,[()=>nz,{[y]:FE}],[()=>Xbe,{[y]:WL}],0,[()=>qge,0],[()=>ube,0],[()=>dbe,{[y]:ON}],[()=>bi,{[y]:To}],()=>rve,()=>$0e,()=>yye,()=>aye,()=>Wge,()=>v0e,[()=>Bbe,{[y]:lae}],()=>z0e,()=>i0e,()=>wve,()=>L0e,2,2,()=>q0e,()=>q4,[()=>Mbe,{[y]:Ule}],[2,{[S]:"DryRun",[y]:$t}],[2,{[S]:"DisableApiTermination",[y]:z$}],[0,{[S]:"InstanceInitiatedShutdownBehavior",[y]:J$}],[0,{[S]:"PrivateIpAddress",[y]:Yc}],[0,{[S]:"ClientToken",[Wpe]:1,[y]:N$}],[0,{[S]:"AdditionalInfo",[y]:_$}],[()=>Cbe,{[S]:"NetworkInterface",[y]:khe}],[()=>S0e,{[S]:"IamInstanceProfile",[y]:W$}],[2,{[S]:"EbsOptimized",[y]:ix}]],2],K4=[3,O,due,0,[sce,ja,jr,oue,Vce,s$,za,Mue,SN,Une,qre,Va,fr,Ks,KE,n$,ZL,Kc,Hc,y$,jd,qd,Xne],[[0,{[S]:"OwnerAlias",[y]:Vhe}],[0,{[S]:"OutpostArn",[y]:Jd}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"StorageTier",[y]:Qme}],[4,{[S]:"RestoreExpiryTime",[y]:mme}],[0,{[S]:"SseType",[y]:D4}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[0,{[S]:"TransferType",[y]:mge}],[1,{[S]:"CompletionDurationMinutes",[y]:Gfe}],[4,{[S]:"CompletionTime",[y]:ade}],[1,{[S]:"FullSnapshotSizeInBytes",[y]:spe}],[0,{[S]:"SnapshotId",[y]:ey}],[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"Status",[y]:Fa}],[0,{[S]:"StatusMessage",[y]:ny}],[4,{[S]:"StartTime",[y]:M4}],[0,{[S]:"Progress",[y]:x4}],[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"Description",[y]:Qd}],[1,{[S]:"VolumeSize",[y]:$4}],[2,{[S]:"Encrypted",[y]:Yd}],[0,{[S]:"KmsKeyId",[y]:Xg}],[0,{[S]:"DataEncryptionKeyId",[y]:ude}]]],kve=[3,O,Qle,0,[kae,Ble,Wte,ffe,Doe],[0,0,1,4,0]],Nve=[3,O,Ple,0,[Vd,rN,It],[[()=>np,{[y]:Ts}],[0,{[S]:"AdditionalInfo",[y]:_$}],[2,{[S]:"DryRun",[y]:$t}]],1],Lve=[3,O,kle,0,[Vle],[[()=>xx,{[S]:"InstancesSet",[y]:Yg}]]],Z4=[3,O,QE,0,[wN,wL],[[0,{[S]:"Code",[y]:$$}],[0,{[S]:"Message",[y]:f4}]]],$ve=[3,O,Nle,0,[Vd,coe,e$,It,CE],[[()=>np,{[y]:Ts}],2,2,[2,{[S]:"DryRun",[y]:$t}],[2,{[S]:"Force",[y]:rpe}]],1],zve=[3,O,Lle,0,[qle],[[()=>xx,{[S]:"InstancesSet",[y]:Yg}]]],Q4=[3,O,r$,0,[xu,Rre,bae,Sne,Kc,Cte,WN,jr,ple,ja,rre,rL,jL,dE,Fg,Ha,Ks,yi,Bd,Rte,za,Jne,Pae],[[0,{[S]:"AvailabilityZoneId",[y]:tx}],[1,{[S]:"EnableLniAtDeviceIndex",[y]:jde}],[2,{[S]:"MapCustomerOwnedIpOnLaunch",[y]:phe}],[0,{[S]:"CustomerOwnedIpv4Pool",[y]:ede}],[0,{[S]:"OwnerId",[y]:Ou}],[2,{[S]:"AssignIpv6AddressOnCreation",[y]:Rfe}],[()=>tSe,{[S]:"Ipv6CidrBlockAssociationSet",[y]:Y$}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"SubnetArn",[y]:Ime}],[0,{[S]:"OutpostArn",[y]:Jd}],[2,{[S]:"EnableDns64",[y]:Cde}],[2,{[S]:"Ipv6Native",[y]:Dpe}],[()=>xve,{[S]:"PrivateDnsNameOptionsOnLaunch",[y]:Jhe}],[()=>V4,{[S]:"BlockPublicAccessStates",[y]:D$}],[0,{[S]:"Type",[y]:bx}],[0,{[S]:"SubnetId",[y]:ty}],[0,{[S]:"State",[y]:qa}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"CidrBlock",[y]:nx}],[1,{[S]:"AvailableIpAddressCount",[y]:wfe}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[2,{[S]:"DefaultForAz",[y]:dde}],[2,{[S]:"MapPublicIpOnLaunch",[y]:Ehe}]]],Bve=[3,O,gle,0,[Ks,GE],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"StatusMessage",[y]:ny}]]],Uve=[3,O,Rle,0,[uE,zg,JN,QN,fL],[[0,{[S]:"AssociationId",[y]:ex}],[0,{[S]:"Ipv6CidrBlock",[y]:Q$}],[()=>Bve,{[S]:"Ipv6CidrBlockState",[y]:X$}],[0,{[S]:"Ipv6AddressAttribute",[y]:G$}],[0,{[S]:"IpSource",[y]:e4}]]],jve=[3,O,c$,0,[Hie,Au],[[0,{[S]:"Key",[y]:ehe}],[0,{[S]:"Value",[y]:ep}]]],Vve=[3,O,To,0,[ile,jr],[[0,{[S]:"ResourceType",[y]:wme}],[()=>Hr,{[y]:c$}]]],Hve=[3,O,vue,0,[Vd,CE,e$,It],[[()=>np,{[y]:Ts}],2,2,[2,{[S]:"DryRun",[y]:$t}]],1],qve=[3,O,bue,0,[_ue],[[()=>xx,{[S]:"InstancesSet",[y]:Yg}]]],Fve=[3,O,p$,0,[zse,Yne,Lse,Vue,ufe],[[1,{[S]:"DefaultVCpus",[y]:_de}],[1,{[S]:"DefaultCores",[y]:lde}],[1,{[S]:"DefaultThreadsPerCore",[y]:bde}],[()=>ibe,{[S]:"ValidCores",[y]:xge}],[()=>rSe,{[S]:"ValidThreadsPerCore",[y]:Pge}]]],Y4=[3,O,hfe,0,[xu,ja,cue,Ug,jr,Gg,Hre,BE,qg,s$,Ru,XE,fr,YE,Va,za,Ks,xN,Kte,jd,qd],[[0,{[S]:"AvailabilityZoneId",[y]:tx}],[0,{[S]:"OutpostArn",[y]:Jd}],[0,{[S]:"SourceVolumeId",[y]:Xme}],[1,{[S]:"Iops",[y]:s4}],[()=>Hr,{[S]:"TagSet",[y]:so}],[0,{[S]:"VolumeType",[y]:z4}],[2,{[S]:"FastRestored",[y]:npe}],[2,{[S]:"MultiAttachEnabled",[y]:fhe}],[1,{[S]:"Throughput",[y]:k4}],[0,{[S]:"SseType",[y]:D4}],[()=>sy,{[S]:"Operator",[y]:Jg}],[1,{[S]:"VolumeInitializationRate",[y]:Rge}],[0,{[S]:"VolumeId",[y]:Du}],[1,{[S]:"Size",[y]:ege}],[0,{[S]:"SnapshotId",[y]:ey}],[0,{[S]:"AvailabilityZone",[y]:Zd}],[0,{[S]:"Status",[y]:Fa}],[4,{[S]:"CreateTime",[y]:L$}],[()=>cSe,{[S]:"AttachmentSet",[y]:Pfe}],[2,{[S]:"Encrypted",[y]:Yd}],[0,{[S]:"KmsKeyId",[y]:Xg}]]],Sx=[3,O,zue,0,[Ua,iN,uie,Ud,fr,Ts,bE,Ks,kg],[[2,{[S]:"DeleteOnTermination",[y]:Qc}],[0,{[S]:"AssociatedResource",[y]:x$}],[0,{[S]:"InstanceOwningService",[y]:Lpe}],[1,{[S]:"EbsCardIndex",[y]:ox}],[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"InstanceId",[y]:Iu}],[0,{[S]:"Device",[y]:Ede}],[0,{[S]:"Status",[y]:Fa}],[4,{[S]:"AttachTime",[y]:Kg}]]],Gve=[3,O,m$,0,[fr,Lae,GE,Tue,Sue,Due,Oue,xue,uce,rce,dce,fce,ice,ZL,n$,Nre],[[0,{[S]:"VolumeId",[y]:Du}],[0,{[S]:"ModificationState",[y]:Rhe}],[0,{[S]:"StatusMessage",[y]:ny}],[1,{[S]:"TargetSize",[y]:pge}],[1,{[S]:"TargetIops",[y]:age}],[0,{[S]:"TargetVolumeType",[y]:gge}],[1,{[S]:"TargetThroughput",[y]:hge}],[2,{[S]:"TargetMultiAttachEnabled",[y]:cge}],[1,{[S]:"OriginalSize",[y]:Fhe}],[1,{[S]:"OriginalIops",[y]:Hhe}],[0,{[S]:"OriginalVolumeType",[y]:Khe}],[1,{[S]:"OriginalThroughput",[y]:Ghe}],[2,{[S]:"OriginalMultiAttachEnabled",[y]:qhe}],[1,{[S]:"Progress",[y]:x4}],[4,{[S]:"StartTime",[y]:M4}],[4,{[S]:"EndTime",[y]:Jde}]]],X4=[3,O,S$,0,[Kc,dL,WN,rne,Coe,sre,jr,dE,yi,Ks,Bd,Sse],[[0,{[S]:"OwnerId",[y]:Ou}],[0,{[S]:"InstanceTenancy",[y]:t4}],[()=>pSe,{[S]:"Ipv6CidrBlockAssociationSet",[y]:Y$}],[()=>fSe,{[S]:"CidrBlockAssociationSet",[y]:Vfe}],[2,{[S]:"IsDefault",[y]:Cpe}],[()=>Zve,{[S]:"EncryptionControl",[y]:Rde}],[()=>Hr,{[S]:"TagSet",[y]:so}],[()=>V4,{[S]:"BlockPublicAccessStates",[y]:D$}],[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"State",[y]:qa}],[0,{[S]:"CidrBlock",[y]:nx}],[0,{[S]:"DhcpOptionsId",[y]:gde}]]],Kve=[3,O,Bue,0,[uE,Bd,ine],[[0,{[S]:"AssociationId",[y]:ex}],[0,{[S]:"CidrBlock",[y]:nx}],[()=>W4,{[S]:"CidrBlockState",[y]:qfe}]]],W4=[3,O,jue,0,[Ks,GE],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"StatusMessage",[y]:ny}]]],Zve=[3,O,h$,0,[yi,Gue,RL,Ks,KE,Hce,jr],[[0,{[S]:"VpcId",[y]:tp}],[0,{[S]:"VpcEncryptionControlId",[y]:wge}],[0,{[S]:"Mode",[y]:Ihe}],[0,{[S]:"State",[y]:qa}],[0,{[S]:"StateMessage",[y]:T4}],[()=>Yve,{[S]:"ResourceExclusions",[y]:yme}],[()=>Hr,{[S]:"TagSet",[y]:so}]]],Qve=[3,O,Hue,0,[RL,Toe,Are,Jae,ife,rfe,sae,efe,ire],[0,0,0,0,0,0,0,0,0],1],ua=[3,O,que,0,[Ks,KE],[[0,{[S]:"State",[y]:qa}],[0,{[S]:"StateMessage",[y]:T4}]]],Yve=[3,O,Fue,0,[Aoe,Cre,Wae,ofe,afe,gae,Jue,ore],[[()=>ua,{[S]:"InternetGateway",[y]:Ape}],[()=>ua,{[S]:"EgressOnlyInternetGateway",[y]:Hde}],[()=>ua,{[S]:"NatGateway",[y]:Dhe}],[()=>ua,{[S]:"VirtualPrivateGateway",[y]:Tge}],[()=>ua,{[S]:"VpcPeering",[y]:Oge}],[()=>ua,{[S]:"Lambda",[y]:uhe}],[()=>ua,{[S]:"VpcLattice",[y]:Cge}],[()=>ua,{[S]:"ElasticFileSystem",[y]:Ade}]]],Xve=[3,O,Kue,0,[uE,zg,JN,CL,cL,QN,fL],[[0,{[S]:"AssociationId",[y]:ex}],[0,{[S]:"Ipv6CidrBlock",[y]:Q$}],[()=>W4,{[S]:"Ipv6CidrBlockState",[y]:X$}],[0,{[S]:"NetworkBorderGroup",[y]:d4}],[0,{[S]:"Ipv6Pool",[y]:jpe}],[0,{[S]:"Ipv6AddressAttribute",[y]:G$}],[0,{[S]:"IpSource",[y]:e4}]]],Pu="unit",Wve=[1,O,Pte,0,[0,{[y]:ke}]],Jve=[1,O,zte,0,[()=>Zge,{[y]:ke}]],ebe=[1,O,Bte,0,[()=>Kge,{[y]:ke}]],tbe=[1,O,jte,0,[()=>Qge,{[y]:ke}]],nbe=[1,O,Hte,0,[()=>Yge,{[y]:ke}]],sbe=[1,O,nne,0,[0,{[y]:ke}]],rbe=[1,O,Yte,0,[()=>j4,{[y]:ke}]],J4=[1,O,Xte,0,[()=>j4,{[y]:fE}]],obe=[1,O,Jte,0,[0,{[y]:ke}]],ibe=[1,O,ane,0,[1,{[y]:ke}]],abe=[1,O,tse,0,[()=>Fye,{[y]:ke}]],cbe=[1,O,ere,0,[()=>Kye,{[y]:ke}]],lbe=[1,O,lre,0,[()=>Jye,{[y]:ke}]],ube=[1,O,hre,0,[()=>e0e,{[y]:ke}]],fbe=[1,O,yre,0,[()=>n0e,{[y]:ke}]],dbe=[1,O,MN,0,[()=>t0e,{[y]:ke}]],pbe=[1,O,Jse,0,[0,{[y]:IN}]],Oo=[1,O,Vre,0,[()=>a0e,{[y]:Ur}]],hbe=[1,O,Bre,0,[()=>c0e,{[y]:ke}]],mbe=[1,O,Yre,0,[()=>p0e,{[y]:ke}]],_x=[1,O,Wre,0,[()=>g0e,{[y]:ke}]],gbe=[1,O,Jre,0,[0,{[y]:cx}]],ybe=[1,O,zoe,0,[0,{[y]:wu}]],vbe=[1,O,Foe,0,[()=>_0e,{[y]:ke}]],bbe=[1,O,xoe,0,[()=>R0e,0]],Sbe=[1,O,yoe,0,[()=>O0e,{[y]:ke}]],_be=[1,O,boe,0,[()=>M0e,{[y]:ke}]],np=[1,O,Boe,0,[0,{[y]:Ts}]],Ebe=[1,O,Poe,0,[()=>D0e,{[y]:ke}]],Ex=[1,O,Moe,0,[()=>P0e,{[y]:ke}]],xbe=[1,O,koe,0,[()=>k0e,{[y]:ke}]],wbe=[1,O,Koe,0,[()=>A0e,{[y]:ke}]],Rbe=[1,O,sie,0,[()=>U0e,{[y]:ke}]],Cbe=[1,O,oie,0,[()=>V0e,{[y]:ke}]],Abe=[1,O,hie,0,[()=>F0e,{[y]:ke}]],Ibe=[1,O,wie,0,[()=>G0e,{[y]:ke}]],Tbe=[1,O,Cie,0,[()=>Z0e,{[y]:ke}]],Obe=[1,O,Aie,0,[()=>Q0e,{[y]:ke}]],Mbe=[1,O,Tie,0,[()=>Y0e,{[y]:ke}]],xx=[1,O,Eie,0,[()=>X0e,{[y]:ke}]],Dbe=[1,O,Lie,0,[()=>J0e,{[y]:ke}]],Pbe=[1,O,yie,0,[()=>eve,{[y]:ke}]],kbe=[1,O,vie,0,[()=>tve,{[y]:ke}]],Nbe=[1,O,Gie,0,[0,{[y]:Io}]],Lbe=[1,O,Qie,0,[0,{[y]:qc}]],$be=[1,O,Wie,0,[()=>sve,{[y]:ke}]],zbe=[1,O,oae,0,[()=>ove,{[y]:ke}]],Bbe=[1,O,cae,0,[()=>ive,{[y]:ke}]],Ube=[1,O,xae,0,[()=>cve,{[y]:ke}]],jbe=[1,O,qae,0,[()=>mve,{[y]:ke}]],Vbe=[1,O,Zae,0,[()=>vve,{[y]:ke}]],Hbe=[1,O,nce,0,[0,{[y]:ke}]],ez=[1,O,lce,0,[0,{[y]:jE}]],qbe=[1,O,Ece,0,[0,{[y]:ke}]],Fbe=[1,O,Cce,0,[()=>Cve,{[y]:ke}]],tz=[1,O,yce,0,[()=>Ive,{[y]:ke}]],Gbe=[1,O,Fce,0,[()=>Mve,{[y]:ke}]],Kbe=[1,O,ele,0,[()=>Ove,{[y]:ke}]],Zbe=[1,O,rle,0,[0,{[y]:Vg}]],Qbe=[1,O,tle,0,[()=>G4,{[y]:ke}]],Ybe=[1,O,jce,0,[0,{[y]:ke}]],nz=[1,O,_le,0,[0,{[y]:FE}]],Xbe=[1,O,xle,0,[0,{[y]:WL}]],Wbe=[1,O,$le,0,[0,{[y]:Va}]],Jbe=[1,O,Kle,0,[()=>K4,{[y]:ke}]],eSe=[1,O,zle,0,[0,{[y]:Ha}]],tSe=[1,O,Cle,0,[()=>Uve,{[y]:ke}]],nSe=[1,O,Zle,0,[()=>Q4,{[y]:ke}]],sSe=[1,O,dle,0,[0,{[y]:ke}]],Hr=[1,O,Eue,0,[()=>jve,{[y]:ke}]],bi=[1,O,Iue,0,[()=>Vve,{[y]:ke}]],rSe=[1,O,Cue,0,[1,{[y]:ke}]],oSe=[1,O,Nue,0,[0,{[y]:ke}]],iSe=[1,O,cfe,0,[0,{[y]:ke}]],aSe=[1,O,lfe,0,[0,{[y]:ke}]],cSe=[1,O,$ue,0,[()=>Sx,{[y]:ke}]],lSe=[1,O,Que,0,[0,{[y]:fr}]],uSe=[1,O,tfe,0,[()=>Y4,{[y]:ke}]],fSe=[1,O,Uue,0,[()=>Kve,{[y]:ke}]],dSe=[1,O,Yue,0,[0,{[y]:yi}]],pSe=[1,O,Zue,0,[()=>Xve,{[y]:ke}]],hSe=[1,O,nfe,0,[()=>X4,{[y]:ke}]],mSe=[1,O,gfe,0,[0,{[y]:ke}]],gSe=[1,O,vfe,0,[0,{[y]:WE}]],ySe=[1,O,Sfe,0,[0,{[y]:JE}]],PMe=[9,O,Lte,0,()=>Gge,()=>Sx],kMe=[9,O,Mne,0,()=>rye,()=>oye],NMe=[9,O,gne,0,()=>cye,()=>lye],LMe=[9,O,yne,0,()=>uye,()=>nve],$Me=[9,O,Pne,0,()=>fye,()=>K4],zMe=[9,O,kne,0,()=>dye,()=>pye],BMe=[9,O,qne,0,()=>hye,()=>Y4],UMe=[9,O,Fne,0,()=>mye,()=>gye],jMe=[9,O,dse,0,()=>vye,()=>bye],VMe=[9,O,Dse,0,()=>Sye,()=>Pu],HMe=[9,O,Pse,0,()=>_ye,()=>Pu],qMe=[9,O,Gse,0,()=>Eye,()=>Pu],FMe=[9,O,Kse,0,()=>xye,()=>Pu],vSe=[9,O,Qne,0,()=>wye,()=>Rye],bSe=[9,O,lse,0,()=>Cye,()=>Aye],SSe=[9,O,use,0,()=>Iye,()=>Tye],_Se=[9,O,cse,0,()=>Oye,()=>Mye],ESe=[9,O,yse,0,()=>Dye,()=>Pye],xSe=[9,O,Rse,0,()=>kye,()=>Nye],wSe=[9,O,kse,0,()=>Lye,()=>$ye],RSe=[9,O,Nse,0,()=>zye,()=>Bye],CSe=[9,O,Zse,0,()=>Uye,()=>jye],ASe=[9,O,Qse,0,()=>Vye,()=>Hye],GMe=[9,O,Yse,0,()=>qye,()=>Sx],KMe=[9,O,Gre,0,()=>f0e,()=>d0e],ZMe=[9,O,joe,0,()=>E0e,()=>x0e],QMe=[9,O,Mae,0,()=>fve,()=>Pu],YMe=[9,O,Uae,0,()=>dve,()=>pve],XMe=[9,O,Xce,0,()=>Tve,()=>Pu],WMe=[9,O,Jce,0,()=>Pve,()=>G4],JMe=[9,O,Hle,0,()=>Nve,()=>Lve],eDe=[9,O,Fle,0,()=>$ve,()=>zve],tDe=[9,O,gue,0,()=>Hve,()=>qve];const ISe=e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ste,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Zee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Mg}],logger:e?.logger??new Dg,protocol:e?.protocol??ZJ,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ec2",errorTypeRegistries:Vge,xmlNamespace:"http://ec2.amazonaws.com/doc/2016-11-15",version:"2016-11-15",serviceTarget:"AmazonEC2"},serviceId:e?.serviceId??"EC2",urlParser:e?.urlParser??hu,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??$a}),TSe=e=>{const t=iE(e),n=()=>t().then(H_),r=ISe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??j_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??rE({serviceId:r.serviceId,clientVersion:Wee.version}),maxAttempts:e?.maxAttempts??gu,region:e?.region??oE("Region is missing"),requestHandler:Ld.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||W_),sha256:e?.sha256??sE,streamCollector:e?.streamCollector??wg,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(K_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Z_))}},wx=e=>({setRegion(t){e.region=t},region(){return e.region}}),Rx=e=>({region:e.region()}),OSe=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}}},MSe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),DSe=(e,t)=>{const n=Object.assign(wx(e),q_(e),__(e),OSe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,Rx(n),F_(n),E_(n),MSe(n))};class PSe extends V_{config;constructor(...[t]){const n=TSe(t||{});super(n),this.initConfig=n;const r=Yee(n),i=N_(r),c=tE(i),l=Q_(c),f=l,d=X_(f),p=Qee(d),v=DSe(p,t?.extensions||[]);this.config=v,this.middlewareStack.use(I_(this.config)),this.middlewareStack.use(G_(this.config)),this.middlewareStack.use(nE(this.config)),this.middlewareStack.use(Y_(this.config)),this.middlewareStack.use(x_(this.config)),this.middlewareStack.use(w_(this.config)),this.middlewareStack.use(R_(this.config)),this.middlewareStack.use(C_(this.config,{httpAuthSchemeParametersProvider:Gee,identityProviderConfigProvider:async g=>new k_({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(A_(this.config))}destroy(){super.destroy()}}class kSe extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeAvailabilityZones",{}).n("EC2Client","DescribeAvailabilityZonesCommand").sc(vSe).build(){}class sz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeImages",{}).n("EC2Client","DescribeImagesCommand").sc(bSe).build(){}class rz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstances",{}).n("EC2Client","DescribeInstancesCommand").sc(SSe).build(){}class NSe extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstanceTypes",{}).n("EC2Client","DescribeInstanceTypesCommand").sc(_Se).build(){}class oz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeKeyPairs",{}).n("EC2Client","DescribeKeyPairsCommand").sc(ESe).build(){}class LSe extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeRegions",{}).n("EC2Client","DescribeRegionsCommand").sc(xSe).build(){}class iz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSnapshots",{}).n("EC2Client","DescribeSnapshotsCommand").sc(wSe).build(){}class az extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeSubnets",{}).n("EC2Client","DescribeSubnetsCommand").sc(RSe).build(){}class cz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVolumes",{}).n("EC2Client","DescribeVolumesCommand").sc(CSe).build(){}class lz extends xn.classBuilder().ep(Co).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVpcs",{}).n("EC2Client","DescribeVpcsCommand").sc(ASe).build(){}const $Se=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 zSe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"iam",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const BSe=e=>{const t=[];switch(e.operation){default:t.push(zSe(e))}return t},USe=e=>{const t=U_(e);return Object.assign(t,{authSchemePreference:Is(e.authSchemePreference??[])})},jSe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"iam"}),Xc={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},VSe="3.1000.0",HSe={version:VSe},uz="required",hn="fn",mn="argv",Mo="ref",qn="properties",Fn="headers",go="authSchemes",yo="name",vo="signingRegion",vO=!0,bO="isSet",Bc="booleanEquals",ql="error",In="endpoint",Xr="tree",sp="PartitionResult",Aa="stringEquals",bo="sigv4",SO={[uz]:!0,default:!1,type:"boolean"},_O={[uz]:!1,type:"string"},EO={[Mo]:"Endpoint"},fa={[hn]:Bc,[mn]:[{[Mo]:"UseFIPS"},!0]},da={[hn]:Bc,[mn]:[{[Mo]:"UseDualStack"},!0]},rs={},xO={[hn]:Aa,[mn]:[{[hn]:"getAttr",[mn]:[{[Mo]:sp},"name"]},"aws"]},Mc={[hn]:"getAttr",[mn]:[{[Mo]:sp},"name"]},Wr={[hn]:Bc,[mn]:[{[Mo]:"UseFIPS"},!1]},wO={[go]:[{[yo]:bo,[vo]:"us-east-1"}]},RO={[hn]:Aa,[mn]:[Mc,"aws-cn"]},CO={[go]:[{[yo]:bo,[vo]:"cn-north-1"}]},Jr={[hn]:Bc,[mn]:[{[Mo]:"UseDualStack"},!1]},Qh={[hn]:Aa,[mn]:[Mc,"aws-us-gov"]},AO={url:"https://iam.us-gov.api.aws",[qn]:{[go]:[{[yo]:bo,[vo]:"us-gov-west-1"}]},[Fn]:{}},IO={url:"https://iam.us-gov.amazonaws.com",[qn]:{[go]:[{[yo]:bo,[vo]:"us-gov-west-1"}]},[Fn]:{}},TO={[hn]:Aa,[mn]:[Mc,"aws-iso"]},OO={[go]:[{[yo]:bo,[vo]:"us-iso-east-1"}]},MO={[hn]:Aa,[mn]:[Mc,"aws-iso-b"]},DO={[go]:[{[yo]:bo,[vo]:"us-isob-east-1"}]},PO={[hn]:"getAttr",[mn]:[{[Mo]:sp},"supportsFIPS"]},kO={[hn]:Bc,[mn]:[!0,{[hn]:"getAttr",[mn]:[{[Mo]:sp},"supportsDualStack"]}]},Yh={[go]:[{[yo]:bo,[vo]:"{PartitionResult#implicitGlobalRegion}"}]},NO=[{[Mo]:"Region"}],qSe={parameters:{UseDualStack:SO,UseFIPS:SO,Endpoint:_O,Region:_O},rules:[{conditions:[{[hn]:bO,[mn]:[EO]}],rules:[{conditions:[fa],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ql},{rules:[{conditions:[da],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ql},{endpoint:{url:EO,[qn]:rs,[Fn]:rs},type:In}],type:Xr}],type:Xr},{rules:[{conditions:[{[hn]:bO,[mn]:NO}],rules:[{conditions:[{[hn]:"aws.partition",[mn]:NO,assign:sp}],rules:[{conditions:[xO,Wr,da],endpoint:{url:"https://iam.global.api.aws",[qn]:wO,[Fn]:rs},type:In},{conditions:[xO,fa,da],endpoint:{url:"https://iam-fips.global.api.aws",[qn]:wO,[Fn]:rs},type:In},{conditions:[RO,Wr,da],endpoint:{url:"https://iam.global.api.amazonwebservices.com.cn",[qn]:CO,[Fn]:rs},type:In},{conditions:[RO,Wr,Jr],endpoint:{url:"https://iam.cn-north-1.amazonaws.com.cn",[qn]:CO,[Fn]:rs},type:In},{conditions:[Qh,Wr,da],endpoint:AO,type:In},{conditions:[Qh,fa,da],endpoint:AO,type:In},{conditions:[Qh,Wr,Jr],endpoint:IO,type:In},{conditions:[Qh,fa,Jr],endpoint:IO,type:In},{conditions:[TO,Wr,Jr],endpoint:{url:"https://iam.us-iso-east-1.c2s.ic.gov",[qn]:OO,[Fn]:rs},type:In},{conditions:[TO,fa,Jr],endpoint:{url:"https://iam-fips.us-iso-east-1.c2s.ic.gov",[qn]:OO,[Fn]:rs},type:In},{conditions:[MO,Wr,Jr],endpoint:{url:"https://iam.us-isob-east-1.sc2s.sgov.gov",[qn]:DO,[Fn]:rs},type:In},{conditions:[MO,fa,Jr],endpoint:{url:"https://iam-fips.us-isob-east-1.sc2s.sgov.gov",[qn]:DO,[Fn]:rs},type:In},{conditions:[{[hn]:Aa,[mn]:[Mc,"aws-iso-e"]},Wr,Jr],endpoint:{url:"https://iam.eu-isoe-west-1.cloud.adc-e.uk",[qn]:{[go]:[{[yo]:bo,[vo]:"eu-isoe-west-1"}]},[Fn]:rs},type:In},{conditions:[{[hn]:Aa,[mn]:[Mc,"aws-iso-f"]},Wr,Jr],endpoint:{url:"https://iam.us-isof-south-1.csp.hci.ic.gov",[qn]:{[go]:[{[yo]:bo,[vo]:"us-isof-south-1"}]},[Fn]:rs},type:In},{conditions:[{[hn]:Aa,[mn]:[Mc,"aws-eusc"]},Wr,Jr],endpoint:{url:"https://iam.eusc-de-east-1.amazonaws.eu",[qn]:{[go]:[{[yo]:bo,[vo]:"eusc-de-east-1"}]},[Fn]:rs},type:In},{conditions:[fa,da],rules:[{conditions:[{[hn]:Bc,[mn]:[vO,PO]},kO],rules:[{endpoint:{url:"https://iam-fips.{PartitionResult#dualStackDnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ql}],type:Xr},{conditions:[fa,Jr],rules:[{conditions:[{[hn]:Bc,[mn]:[PO,vO]}],rules:[{endpoint:{url:"https://iam-fips.{PartitionResult#dnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr},{error:"FIPS is enabled but this partition does not support FIPS",type:ql}],type:Xr},{conditions:[Wr,da],rules:[{conditions:[kO],rules:[{endpoint:{url:"https://iam.{PartitionResult#dualStackDnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr},{error:"DualStack is enabled but this partition does not support DualStack",type:ql}],type:Xr},{endpoint:{url:"https://iam.{PartitionResult#dnsSuffix}",[qn]:Yh,[Fn]:rs},type:In}],type:Xr}],type:Xr},{error:"Invalid Configuration: Missing Region",type:ql}],type:Xr}]},FSe=qSe,GSe=new L_({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),KSe=(e,t={})=>GSe.get(e,()=>z_(FSe,{endpointParams:e,logger:t.logger}));pu.aws=Og;class ct extends Ea{constructor(t){super(t),Object.setPrototypeOf(this,ct.prototype)}}class Cx extends ct{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,Cx.prototype)}}class Ax extends ct{name="NoSuchEntityException";$fault="client";constructor(t){super({name:"NoSuchEntityException",$fault:"client",...t}),Object.setPrototypeOf(this,Ax.prototype)}}class Ix extends ct{name="ServiceFailureException";$fault="server";constructor(t){super({name:"ServiceFailureException",$fault:"server",...t}),Object.setPrototypeOf(this,Ix.prototype)}}class Tx extends ct{name="AccountNotManagementOrDelegatedAdministratorException";$fault="client";Message;constructor(t){super({name:"AccountNotManagementOrDelegatedAdministratorException",$fault:"client",...t}),Object.setPrototypeOf(this,Tx.prototype),this.Message=t.Message}}class Ox extends ct{name="InvalidInputException";$fault="client";constructor(t){super({name:"InvalidInputException",$fault:"client",...t}),Object.setPrototypeOf(this,Ox.prototype)}}class Mx extends ct{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,Mx.prototype)}}class Dx extends ct{name="EntityAlreadyExistsException";$fault="client";constructor(t){super({name:"EntityAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,Dx.prototype)}}class Px extends ct{name="UnmodifiableEntityException";$fault="client";constructor(t){super({name:"UnmodifiableEntityException",$fault:"client",...t}),Object.setPrototypeOf(this,Px.prototype)}}class kx extends ct{name="PolicyNotAttachableException";$fault="client";constructor(t){super({name:"PolicyNotAttachableException",$fault:"client",...t}),Object.setPrototypeOf(this,kx.prototype)}}class Nx extends ct{name="EntityTemporarilyUnmodifiableException";$fault="client";constructor(t){super({name:"EntityTemporarilyUnmodifiableException",$fault:"client",...t}),Object.setPrototypeOf(this,Nx.prototype)}}class Lx extends ct{name="InvalidUserTypeException";$fault="client";constructor(t){super({name:"InvalidUserTypeException",$fault:"client",...t}),Object.setPrototypeOf(this,Lx.prototype)}}class $x extends ct{name="PasswordPolicyViolationException";$fault="client";constructor(t){super({name:"PasswordPolicyViolationException",$fault:"client",...t}),Object.setPrototypeOf(this,$x.prototype)}}class zx extends ct{name="OpenIdIdpCommunicationErrorException";$fault="client";constructor(t){super({name:"OpenIdIdpCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,zx.prototype)}}class Bx extends ct{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,Bx.prototype)}}class Ux extends ct{name="ServiceNotSupportedException";$fault="client";constructor(t){super({name:"ServiceNotSupportedException",$fault:"client",...t}),Object.setPrototypeOf(this,Ux.prototype)}}class jx extends ct{name="DeleteConflictException";$fault="client";constructor(t){super({name:"DeleteConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,jx.prototype)}}class Vx extends ct{name="OrganizationNotFoundException";$fault="client";Message;constructor(t){super({name:"OrganizationNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,Vx.prototype),this.Message=t.Message}}class Hx extends ct{name="OrganizationNotInAllFeaturesModeException";$fault="client";Message;constructor(t){super({name:"OrganizationNotInAllFeaturesModeException",$fault:"client",...t}),Object.setPrototypeOf(this,Hx.prototype),this.Message=t.Message}}class qx extends ct{name="ServiceAccessNotEnabledException";$fault="client";Message;constructor(t){super({name:"ServiceAccessNotEnabledException",$fault:"client",...t}),Object.setPrototypeOf(this,qx.prototype),this.Message=t.Message}}class Fx extends ct{name="FeatureDisabledException";$fault="client";constructor(t){super({name:"FeatureDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Fx.prototype)}}class Gx extends ct{name="InvalidAuthenticationCodeException";$fault="client";constructor(t){super({name:"InvalidAuthenticationCodeException",$fault:"client",...t}),Object.setPrototypeOf(this,Gx.prototype)}}class Kx extends ct{name="CallerIsNotManagementAccountException";$fault="client";Message;constructor(t){super({name:"CallerIsNotManagementAccountException",$fault:"client",...t}),Object.setPrototypeOf(this,Kx.prototype),this.Message=t.Message}}class Zx extends ct{name="FeatureEnabledException";$fault="client";constructor(t){super({name:"FeatureEnabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Zx.prototype)}}class Qx extends ct{name="ReportGenerationLimitExceededException";$fault="client";constructor(t){super({name:"ReportGenerationLimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,Qx.prototype)}}class Yx extends ct{name="CredentialReportExpiredException";$fault="client";constructor(t){super({name:"CredentialReportExpiredException",$fault:"client",...t}),Object.setPrototypeOf(this,Yx.prototype)}}class Xx extends ct{name="CredentialReportNotPresentException";$fault="client";constructor(t){super({name:"CredentialReportNotPresentException",$fault:"client",...t}),Object.setPrototypeOf(this,Xx.prototype)}}class Wx extends ct{name="CredentialReportNotReadyException";$fault="client";constructor(t){super({name:"CredentialReportNotReadyException",$fault:"client",...t}),Object.setPrototypeOf(this,Wx.prototype)}}class Jx extends ct{name="UnrecognizedPublicKeyEncodingException";$fault="client";constructor(t){super({name:"UnrecognizedPublicKeyEncodingException",$fault:"client",...t}),Object.setPrototypeOf(this,Jx.prototype)}}class ew extends ct{name="PolicyEvaluationException";$fault="server";constructor(t){super({name:"PolicyEvaluationException",$fault:"server",...t}),Object.setPrototypeOf(this,ew.prototype)}}class tw extends ct{name="KeyPairMismatchException";$fault="client";constructor(t){super({name:"KeyPairMismatchException",$fault:"client",...t}),Object.setPrototypeOf(this,tw.prototype)}}class nw extends ct{name="MalformedCertificateException";$fault="client";constructor(t){super({name:"MalformedCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,nw.prototype)}}class sw extends ct{name="DuplicateCertificateException";$fault="client";constructor(t){super({name:"DuplicateCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,sw.prototype)}}class rw extends ct{name="InvalidCertificateException";$fault="client";constructor(t){super({name:"InvalidCertificateException",$fault:"client",...t}),Object.setPrototypeOf(this,rw.prototype)}}class ow extends ct{name="DuplicateSSHPublicKeyException";$fault="client";constructor(t){super({name:"DuplicateSSHPublicKeyException",$fault:"client",...t}),Object.setPrototypeOf(this,ow.prototype)}}class iw extends ct{name="InvalidPublicKeyException";$fault="client";constructor(t){super({name:"InvalidPublicKeyException",$fault:"client",...t}),Object.setPrototypeOf(this,iw.prototype)}}const fz="Arn",ZSe="AttachmentCount",dz="AccessKey",ry="AccessKeyId",pz="AccessKeyMetadata",QSe="AccountNotManagementOrDelegatedAdministratorException",YSe="AttachedPolicy",XSe="AttachedPermissionsBoundary",WSe="AttachedPolicies",JSe="AttachUserPolicy",e_e="AttachUserPolicyRequest",t_e="CreateAccessKey",n_e="CreateAccessKeyRequest",s_e="CreateAccessKeyResponse",rp="CreateDate",r_e="CallerIsNotManagementAccountException",o_e="ConcurrentModificationException",i_e="CreatePolicyRequest",a_e="CreatePolicyResponse",c_e="CreatePolicy",l_e="CredentialReportExpiredException",u_e="CredentialReportNotPresentException",f_e="CredentialReportNotReadyException",d_e="CreateUser",p_e="CreateUserRequest",h_e="CreateUserResponse",hz="Description",m_e="DeleteAccessKey",g_e="DeleteAccessKeyRequest",y_e="DeleteConflictException",v_e="DuplicateCertificateException",b_e="DeletePolicyRequest",S_e="DeletePolicy",__e="DuplicateSSHPublicKeyException",E_e="DeleteUser",x_e="DetachUserPolicyRequest",w_e="DetachUserPolicy",R_e="DeleteUserRequest",C_e="DefaultVersionId",A_e="Document",I_e="EntityAlreadyExistsException",T_e="EntityTemporarilyUnmodifiableException",O_e="FeatureDisabledException",M_e="FeatureEnabledException",D_e="GetPolicy",P_e="GetPolicyRequest",k_e="GetPolicyResponse",N_e="GetPolicyVersion",L_e="GetPolicyVersionRequest",$_e="GetPolicyVersionResponse",z_e="GetUser",B_e="GetUserRequest",U_e="GetUserResponse",j_e="IsAttachable",V_e="InvalidAuthenticationCodeException",H_e="InvalidCertificateException",q_e="IsDefaultVersion",F_e="InvalidInputException",G_e="InvalidPublicKeyException",oy="IsTruncated",K_e="InvalidUserTypeException",Z_e="Key",Q_e="KeyPairMismatchException",Y_e="ListAccessKeys",X_e="ListAccessKeysRequest",W_e="ListAccessKeysResponse",J_e="ListAttachedUserPolicies",eEe="ListAttachedUserPoliciesRequest",tEe="ListAttachedUserPoliciesResponse",nEe="LimitExceededException",sEe="ListPoliciesRequest",rEe="ListPoliciesResponse",oEe="ListPolicies",iEe="ListUsers",aEe="ListUsersRequest",cEe="ListUsersResponse",op="Message",lEe="MalformedCertificateException",iy="MaxItems",uEe="MalformedPolicyDocumentException",Ga="Marker",fEe="NoSuchEntityException",dEe="OnlyAttached",pEe="OpenIdIdpCommunicationErrorException",hEe="OrganizationNotFoundException",mEe="OrganizationNotInAllFeaturesModeException",ku="PolicyArn",mz="PermissionsBoundary",gEe="PermissionsBoundaryArn",yEe="PermissionsBoundaryType",vEe="PermissionsBoundaryUsageCount",bEe="PolicyDocument",SEe="PolicyEvaluationException",_Ee="PolicyId",EEe="PasswordLastUsed",aw="PolicyName",xEe="PolicyNotAttachableException",wEe="PasswordPolicyViolationException",cw="PathPrefix",REe="PolicyUsageFilter",gz="PolicyVersion",ay="Path",lw="Policy",CEe="Policies",AEe="ReportGenerationLimitExceededException",uw="Status",IEe="SecretAccessKey",TEe="ServiceAccessNotEnabledException",OEe="ServiceFailureException",MEe="ServiceNotSupportedException",DEe="Scope",cy="Tags",PEe="Tag",kEe="UpdateAccessKey",NEe="UpdateAccessKeyRequest",LEe="UpdateDate",$Ee="UnmodifiableEntityException",zEe="UserId",dr="UserName",BEe="UnrecognizedPublicKeyEncodingException",fw="User",UEe="Users",yz="VersionId",jEe="Value",VEe="accessKeyMetadataListType",HEe="accessKeySecretType",qEe="attachedPoliciesListType",Bt="awsQueryError",Tt="client",Et="error",xt="httpError",Ut="message",FEe="policyListType",vz="smithy.ts.sdk.synthetic.com.amazonaws.iam",bz="server",GEe="tagListType",KEe="userListType",we="com.amazonaws.iam",Sz=Gn.for(vz);var ZEe=[-3,vz,"IAMServiceException",0,[],[]];Sz.registerError(ZEe,ct);const vt=Gn.for(we);var QEe=[-3,we,QSe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(QEe,Tx);var YEe=[-3,we,r_e,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(YEe,Kx);var XEe=[-3,we,o_e,{[Bt]:["ConcurrentModification",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(XEe,Cx);var WEe=[-3,we,l_e,{[Bt]:["ReportExpired",410],[Et]:Tt,[xt]:410},[Ut],[0]];vt.registerError(WEe,Yx);var JEe=[-3,we,u_e,{[Bt]:["ReportNotPresent",410],[Et]:Tt,[xt]:410},[Ut],[0]];vt.registerError(JEe,Xx);var exe=[-3,we,f_e,{[Bt]:["ReportInProgress",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(exe,Wx);var txe=[-3,we,y_e,{[Bt]:["DeleteConflict",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(txe,jx);var nxe=[-3,we,v_e,{[Bt]:["DuplicateCertificate",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(nxe,sw);var sxe=[-3,we,__e,{[Bt]:["DuplicateSSHPublicKey",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(sxe,ow);var rxe=[-3,we,I_e,{[Bt]:["EntityAlreadyExists",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(rxe,Dx);var oxe=[-3,we,T_e,{[Bt]:["EntityTemporarilyUnmodifiable",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(oxe,Nx);var ixe=[-3,we,O_e,{[Bt]:["FeatureDisabled",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(ixe,Fx);var axe=[-3,we,M_e,{[Bt]:["FeatureEnabled",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(axe,Zx);var cxe=[-3,we,V_e,{[Bt]:["InvalidAuthenticationCode",403],[Et]:Tt,[xt]:403},[Ut],[0]];vt.registerError(cxe,Gx);var lxe=[-3,we,H_e,{[Bt]:["InvalidCertificate",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(lxe,rw);var uxe=[-3,we,F_e,{[Bt]:["InvalidInput",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(uxe,Ox);var fxe=[-3,we,G_e,{[Bt]:["InvalidPublicKey",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(fxe,iw);var dxe=[-3,we,K_e,{[Bt]:["InvalidUserType",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(dxe,Lx);var pxe=[-3,we,Q_e,{[Bt]:["KeyPairMismatch",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(pxe,tw);var hxe=[-3,we,nEe,{[Bt]:["LimitExceeded",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(hxe,Mx);var mxe=[-3,we,lEe,{[Bt]:["MalformedCertificate",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(mxe,nw);var gxe=[-3,we,uEe,{[Bt]:["MalformedPolicyDocument",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(gxe,Bx);var yxe=[-3,we,fEe,{[Bt]:["NoSuchEntity",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(yxe,Ax);var vxe=[-3,we,pEe,{[Bt]:["OpenIdIdpCommunicationError",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(vxe,zx);var bxe=[-3,we,hEe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(bxe,Vx);var Sxe=[-3,we,mEe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(Sxe,Hx);var _xe=[-3,we,wEe,{[Bt]:["PasswordPolicyViolation",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(_xe,$x);var Exe=[-3,we,SEe,{[Bt]:["PolicyEvaluation",500],[Et]:bz,[xt]:500},[Ut],[0]];vt.registerError(Exe,ew);var xxe=[-3,we,xEe,{[Bt]:["PolicyNotAttachable",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(xxe,kx);var wxe=[-3,we,AEe,{[Bt]:["ReportGenerationLimitExceeded",409],[Et]:Tt,[xt]:409},[Ut],[0]];vt.registerError(wxe,Qx);var Rxe=[-3,we,TEe,{[Et]:Tt,[xt]:400},[op],[0]];vt.registerError(Rxe,qx);var Cxe=[-3,we,OEe,{[Bt]:["ServiceFailure",500],[Et]:bz,[xt]:500},[Ut],[0]];vt.registerError(Cxe,Ix);var Axe=[-3,we,MEe,{[Bt]:["NotSupportedService",404],[Et]:Tt,[xt]:404},[Ut],[0]];vt.registerError(Axe,Ux);var Ixe=[-3,we,$Ee,{[Bt]:["UnmodifiableEntity",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(Ixe,Px);var Txe=[-3,we,BEe,{[Bt]:["UnrecognizedPublicKeyEncoding",400],[Et]:Tt,[xt]:400},[Ut],[0]];vt.registerError(Txe,Jx);const Oxe=[Sz,vt];var Mxe=[0,we,HEe,8,0],Dxe=[3,we,dz,0,[dr,ry,uw,IEe,rp],[0,0,0,[()=>Mxe,0],4],4],Pxe=[3,we,pz,0,[dr,ry,uw,rp],[0,0,0,4]],kxe=[3,we,XSe,0,[yEe,gEe],[0,0]],Nxe=[3,we,YSe,0,[aw,ku],[0,0]],Lxe=[3,we,e_e,0,[dr,ku],[0,0],2],$xe=[3,we,n_e,0,[dr],[0]],zxe=[3,we,s_e,0,[dz],[[()=>Dxe,0]],1],Bxe=[3,we,i_e,0,[aw,bEe,ay,hz,cy],[0,0,0,0,()=>ly],2],Uxe=[3,we,a_e,0,[lw],[()=>dw]],jxe=[3,we,p_e,0,[dr,ay,mz,cy],[0,0,0,()=>ly],1],Vxe=[3,we,h_e,0,[fw],[()=>pw]],Hxe=[3,we,g_e,0,[ry,dr],[0,0],1],qxe=[3,we,b_e,0,[ku],[0],1],Fxe=[3,we,R_e,0,[dr],[0],1],Gxe=[3,we,x_e,0,[dr,ku],[0,0],2],Kxe=[3,we,P_e,0,[ku],[0],1],Zxe=[3,we,k_e,0,[lw],[()=>dw]],Qxe=[3,we,L_e,0,[ku,yz],[0,0],2],Yxe=[3,we,$_e,0,[gz],[()=>awe]],Xxe=[3,we,B_e,0,[dr],[0]],Wxe=[3,we,U_e,0,[fw],[()=>pw],1],Jxe=[3,we,X_e,0,[dr,Ga,iy],[0,0,1]],ewe=[3,we,W_e,0,[pz,oy,Ga],[()=>uwe,2,0],1],twe=[3,we,eEe,0,[dr,cw,Ga,iy],[0,0,0,1],1],nwe=[3,we,tEe,0,[WSe,oy,Ga],[()=>fwe,2,0]],swe=[3,we,sEe,0,[DEe,dEe,cw,REe,Ga,iy],[0,2,0,0,0,1]],rwe=[3,we,rEe,0,[CEe,oy,Ga],[()=>dwe,2,0]],owe=[3,we,aEe,0,[cw,Ga,iy],[0,0,1]],iwe=[3,we,cEe,0,[UEe,oy,Ga],[()=>pwe,2,0],1],dw=[3,we,lw,0,[aw,_Ee,fz,ay,C_e,ZSe,vEe,j_e,hz,rp,LEe,cy],[0,0,0,0,0,1,1,2,0,4,4,()=>ly]],awe=[3,we,gz,0,[A_e,yz,q_e,rp],[0,0,2,4]],cwe=[3,we,PEe,0,[Z_e,jEe],[0,0],2],lwe=[3,we,NEe,0,[ry,uw,dr],[0,0,0],2],pw=[3,we,fw,0,[ay,dr,zEe,fz,rp,EEe,mz,cy],[0,0,0,0,4,4,()=>kxe,()=>ly],5],Nu="unit",uwe=[1,we,VEe,0,()=>Pxe],fwe=[1,we,qEe,0,()=>Nxe],dwe=[1,we,FEe,0,()=>dw],ly=[1,we,GEe,0,()=>cwe],pwe=[1,we,KEe,0,()=>pw],nDe=[9,we,JSe,0,()=>Lxe,()=>Nu],sDe=[9,we,t_e,0,()=>$xe,()=>zxe],rDe=[9,we,c_e,0,()=>Bxe,()=>Uxe],oDe=[9,we,d_e,0,()=>jxe,()=>Vxe],iDe=[9,we,m_e,0,()=>Hxe,()=>Nu],aDe=[9,we,S_e,0,()=>qxe,()=>Nu],cDe=[9,we,E_e,0,()=>Fxe,()=>Nu],lDe=[9,we,w_e,0,()=>Gxe,()=>Nu],hwe=[9,we,D_e,0,()=>Kxe,()=>Zxe],mwe=[9,we,N_e,0,()=>Qxe,()=>Yxe],gwe=[9,we,z_e,0,()=>Xxe,()=>Wxe],ywe=[9,we,Y_e,0,()=>Jxe,()=>ewe],vwe=[9,we,J_e,0,()=>twe,()=>nwe],bwe=[9,we,oEe,0,()=>swe,()=>rwe],Swe=[9,we,iEe,0,()=>owe,()=>iwe],uDe=[9,we,kEe,0,()=>lwe,()=>Nu];const _we=e=>({apiVersion:"2010-05-08",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??KSe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??BSe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Mg}],logger:e?.logger??new Dg,protocol:e?.protocol??j3,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.iam",errorTypeRegistries:Oxe,xmlNamespace:"https://iam.amazonaws.com/doc/2010-05-08/",version:"2010-05-08",serviceTarget:"AWSIdentityManagementV20100508"},serviceId:e?.serviceId??"IAM",urlParser:e?.urlParser??hu,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??$a}),Ewe=e=>{const t=iE(e),n=()=>t().then(H_),r=_we(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??j_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??rE({serviceId:r.serviceId,clientVersion:HSe.version}),maxAttempts:e?.maxAttempts??gu,region:e?.region??oE("Region is missing"),requestHandler:Ld.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||W_),sha256:e?.sha256??sE,streamCollector:e?.streamCollector??wg,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(K_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Z_))}},xwe=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}}},wwe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Rwe=(e,t)=>{const n=Object.assign(wx(e),q_(e),__(e),xwe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,Rx(n),F_(n),E_(n),wwe(n))};class Cwe extends V_{config;constructor(...[t]){const n=Ewe(t||{});super(n),this.initConfig=n;const r=jSe(n),i=N_(r),c=tE(i),l=Q_(c),f=l,d=X_(f),p=USe(d),v=Rwe(p,t?.extensions||[]);this.config=v,this.middlewareStack.use(I_(this.config)),this.middlewareStack.use(G_(this.config)),this.middlewareStack.use(nE(this.config)),this.middlewareStack.use(Y_(this.config)),this.middlewareStack.use(x_(this.config)),this.middlewareStack.use(w_(this.config)),this.middlewareStack.use(R_(this.config)),this.middlewareStack.use(C_(this.config,{httpAuthSchemeParametersProvider:$Se,identityProviderConfigProvider:async g=>new k_({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(A_(this.config))}destroy(){super.destroy()}}class Awe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetPolicy",{}).n("IAMClient","GetPolicyCommand").sc(hwe).build(){}class Iwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetPolicyVersion",{}).n("IAMClient","GetPolicyVersionCommand").sc(mwe).build(){}class Twe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","GetUser",{}).n("IAMClient","GetUserCommand").sc(gwe).build(){}class Owe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListAccessKeys",{}).n("IAMClient","ListAccessKeysCommand").sc(ywe).build(){}class Mwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListAttachedUserPolicies",{}).n("IAMClient","ListAttachedUserPoliciesCommand").sc(vwe).build(){}class Dwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListPolicies",{}).n("IAMClient","ListPoliciesCommand").sc(bwe).build(){}class Pwe extends xn.classBuilder().ep(Xc).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions())]}).s("AWSIdentityManagementV20100508","ListUsers",{}).n("IAMClient","ListUsersCommand").sc(Swe).build(){}function kwe(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 Nwe={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Lwe=e=>({applyToStack:t=>{t.add(kwe(e),Nwe)}}),_z={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},$we=_z.WHEN_SUPPORTED,fDe={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},zwe=_z.WHEN_SUPPORTED;var RS;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(RS||(RS={}));var LO;(function(e){e.HEADER="header",e.TRAILER="trailer"})(LO||(LO={}));const dDe=RS.CRC32;var pDe=(function(){function e(){this.crc32=new Km}return e.prototype.update=function(t){Gm(t)||this.crc32.update(zc(t))},e.prototype.digest=function(){return X3(this,void 0,void 0,function(){return W3(this,function(t){return[2,ete(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Km},e})(),Km=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=ote(t),c=i.next();!c.done;c=i.next()){var l=c.value;this.checksum=this.checksum>>>8^Uwe[(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})(),Bwe=[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],Uwe=tte(Bwe);const jwe=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Is(t??$we),responseChecksumValidation:Is(n??zwe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},Vwe=e=>(t,n)=>async r=>{const i=await e.region(),c=e.region;let l=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),l=()=>Object.defineProperty(e,"region",{writable:!0,value:c}));try{const f=await t(r);if(n.__s3RegionRedirect){l();const d=await e.region();if(i!==d)throw new Error("Region was not restored following S3 region redirect.")}return f}catch(f){throw l(),f}},Hwe={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function qwe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){const c=i?.$metadata?.httpStatusCode,l=n.commandName==="HeadBucketCommand",f=i?.$response?.headers?.["x-amz-bucket-region"];if(f&&(c===301||c===400&&(i?.name==="IllegalLocationConstraintException"||l))){try{const d=f;n.logger?.debug(`Redirecting from ${await e.region()} to ${d}`),n.__s3RegionRedirect=d}catch(d){throw new Error("Region redirect failed: "+d)}return t(r)}}throw i}}}const Fwe={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},Gwe=e=>({applyToStack:t=>{t.add(qwe(e),Fwe),t.addRelativeTo(Vwe(e),Hwe)}});class hw{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+hw.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const n in this.data){const r=this.data[n];if(!r.isRefreshing){const i=await r.identity;i.expiration&&i.expiration.getTime()(l.expiration?.getTime()??0){i.set(r,new yb(Promise.resolve(p)))})),l)):i.set(r,new yb(this.getIdentity(r))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(i=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+i)});const n=await this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}}const Kwe="Directory",Zwe="S3Express",Qwe="sigv4-s3express",CS="X-Amz-S3session-Token",AS=CS.toLowerCase();class Ywe extends SS{async signWithCredentials(t,n,r){const i=$O(n);t.headers[AS]=n.sessionToken;const c=this;return zO(c,i),c.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const i=$O(n);return delete t.headers[AS],t.headers[CS]=n.sessionToken,t.query=t.query??{},t.query[CS]=n.sessionToken,zO(this,i),this.presign(t,r)}}function $O(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function zO(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 Xwe=e=>(t,n)=>async r=>{if(n.endpointV2){const i=n.endpointV2,c=i.properties?.authSchemes?.[0]?.name===Qwe;if((i.properties?.backend===Zwe||i.properties?.bucketType===Kwe)&&(eo(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),c){const f=r.input.Bucket;if(f){const d=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=d,Qn.isInstance(r.request)&&d.sessionToken&&(r.request.headers[AS]=d.sessionToken)}}}return t(r)},Wwe={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Jwe=e=>({applyToStack:t=>{t.add(Xwe(e),Wwe)}}),e1e=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},t1e=e=>t=>{throw t},n1e=(e,t)=>{},s1e=e=>(t,n)=>async r=>{if(!Qn.isInstance(r.request))return t(r);const c=Ro(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c;let p;n.s3ExpressIdentity?p=await e1e(n.s3ExpressIdentity,l,r.request,await e.signer()):p=await d.sign(r.request,f,l);const v=await t({...r,request:p}).catch((d.errorHandler||t1e)(l));return(d.successHandler||n1e)(v.response,l),v},r1e=e=>({applyToStack:t=>{t.addRelativeTo(s1e(e),o3)}}),o1e=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:c,disableMultiregionAccessPoints:l,followRegionRedirects:f,s3ExpressIdentityProvider:d,bucketEndpoint:p,expectContinueHeader:v}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:c??!1,disableMultiregionAccessPoints:l??!1,followRegionRedirects:f??!1,s3ExpressIdentityProvider:d??new mw(async g=>n().send(new r({Bucket:g}))),bucketEndpoint:p??!1,expectContinueHeader:v??2097152})},i1e={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},a1e=3e3,c1e=e=>(t,n)=>async r=>{const i=await t(r),{response:c}=i;if(!$c.isInstance(c))return i;const{statusCode:l,body:f}=c;if(l<200||l>=300||!(typeof f?.stream=="function"||typeof f?.pipe=="function"||typeof f?.tee=="function"))return i;let p=f,v=f;f&&typeof f=="object"&&!(f instanceof Uint8Array)&&([p,v]=await zX(f)),c.body=v;const g=await l1e(p,{streamCollector:async _=>MX(_,a1e)});typeof p?.destroy=="function"&&p.destroy();const b=e.utf8Encoder(g.subarray(g.length-16));if(g.length===0&&i1e[n.commandName]){const _=new Error("S3 aborted request");throw _.name="InternalError",_}return b&&b.endsWith("")&&(c.statusCode=400),i},l1e=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),u1e={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},gw=e=>({applyToStack:t=>{t.addRelativeTo(c1e(e),u1e)}}),f1e=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function d1e(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 p1e={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function h1e({bucketEndpoint:e}){return t=>async n=>{const{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!f1e(r)&&r.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}const m1e={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},g1e=e=>({applyToStack:t=>{t.add(h1e(e),m1e),t.addRelativeTo(d1e(e),p1e)}}),y1e=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});class Ez{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new Ywe(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 yw="required",D="type",ae="rules",U="conditions",X="fn",W="argv",ze="ref",We="assign",Ce="url",Ae="properties",ai="backend",Zn="authSchemes",Mn="disableDoubleEncoding",Dn="signingName",os="signingRegion",Ie="headers",vw="signingRegionSet",v1e=6,b1e=!1,co=!0,ir="isSet",Sn="booleanEquals",Pe="error",Zm="aws.partition",Rt="stringEquals",cn="getAttr",un="name",Yt="substring",BO="bucketSuffix",bw="parseURL",pe="endpoint",ce="tree",Qm="aws.isVirtualHostableS3Bucket",Ym="{url#scheme}://{Bucket}.{url#authority}{url#path}",So="not",UO="accessPointSuffix",fm="{url#scheme}://{url#authority}{url#path}",xz="hardwareType",wz="regionPrefix",jO="bucketAliasSuffix",IS="outpostId",Wc="isValidHostLabel",Sw="sigv4a",Ad="s3-outposts",yu="s3",Rz="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",Cz="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",VO="https://{Bucket}.s3.{partitionResult#dnsSuffix}",Az="aws.parseArn",Iz="bucketArn",Tz="arnType",Xm="",_w="s3-object-lambda",Oz="accesspoint",Ew="accessPointName",HO="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",qO="mrapPartition",FO="outpostType",GO="arnPrefix",Mz="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",KO="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ZO="https://s3.{partitionResult#dnsSuffix}",Fl={[yw]:!1,[D]:"string"},Gl={[yw]:!0,default:!1,[D]:"boolean"},Wf={[yw]:!1,[D]:"boolean"},Or={[X]:Sn,[W]:[{[ze]:"Accelerate"},!0]},Wt={[X]:Sn,[W]:[{[ze]:"UseFIPS"},!0]},Zt={[X]:Sn,[W]:[{[ze]:"UseDualStack"},!0]},vn={[X]:ir,[W]:[{[ze]:"Endpoint"}]},Dz={[X]:Zm,[W]:[{[ze]:"Region"}],[We]:"partitionResult"},QO={[X]:Rt,[W]:[{[X]:cn,[W]:[{[ze]:"partitionResult"},un]},"aws-cn"]},ld={[X]:ir,[W]:[{[ze]:"Bucket"}]},_t={[ze]:"Bucket"},YO={[U]:[Or],[Pe]:"S3Express does not support S3 Accelerate.",[D]:Pe},XO={[U]:[vn,{[X]:bw,[W]:[{[ze]:"Endpoint"}],[We]:"url"}],[ae]:[{[U]:[{[X]:ir,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:Sn,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],[ae]:[{[U]:[{[X]:Sn,[W]:[{[X]:cn,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[_t],[We]:"uri_encoded_bucket"}],[ae]:[{[pe]:{[Ce]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[{[X]:Qm,[W]:[_t,!1]}],[ae]:[{[pe]:{[Ce]:Ym,[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce},{[Pe]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Pe}],[D]:ce},{[U]:[{[X]:Sn,[W]:[{[X]:cn,[W]:[{[ze]:"url"},"isIp"]},!0]}],[ae]:[{[U]:[{[X]:"uriEncode",[W]:[_t],[We]:"uri_encoded_bucket"}],[ae]:[{[pe]:{[Ce]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[{[X]:Qm,[W]:[_t,!1]}],[ae]:[{[pe]:{[Ce]:Ym,[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],[D]:ce},{[Pe]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Pe}],[D]:ce},ws={[X]:bw,[W]:[{[ze]:"Endpoint"}],[We]:"url"},vb={[X]:Sn,[W]:[{[X]:cn,[W]:[{[ze]:"url"},"isIp"]},!0]},Pz={[ze]:"url"},kz={[X]:"uriEncode",[W]:[_t],[We]:"uri_encoded_bucket"},sr={[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:"s3express",[os]:"{Region}"}]},qe={},Nz={[X]:Qm,[W]:[_t,!1]},WO={[Pe]:"S3Express bucket name is not a valid virtual hostable name.",[D]:Pe},JO={[X]:ir,[W]:[{[ze]:"UseS3ExpressControlEndpoint"}]},eM={[X]:Sn,[W]:[{[ze]:"UseS3ExpressControlEndpoint"},!0]},Ye={[X]:So,[W]:[vn]},ft={[X]:Sn,[W]:[{[ze]:"UseDualStack"},!1]},st={[X]:Sn,[W]:[{[ze]:"UseFIPS"},!1]},Xh={[Pe]:"Unrecognized S3Express bucket name format.",[D]:Pe},tM={[X]:So,[W]:[ld]},nM={[ze]:xz},sM={[U]:[Ye],[Pe]:"Expected a endpoint to be specified but no endpoint was found",[D]:Pe},Wh={[Zn]:[{[Mn]:!0,[un]:Sw,[Dn]:Ad,[vw]:["*"]},{[Mn]:!0,[un]:"sigv4",[Dn]:Ad,[os]:"{Region}"}]},bb={[X]:Sn,[W]:[{[ze]:"ForcePathStyle"},!1]},S1e={[ze]:"ForcePathStyle"},Tn={[X]:Sn,[W]:[{[ze]:"Accelerate"},!1]},zn={[X]:Rt,[W]:[{[ze]:"Region"},"aws-global"]},jn={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"us-east-1"}]},gt={[X]:So,[W]:[zn]},Vn={[X]:Sn,[W]:[{[ze]:"UseGlobalEndpoint"},!0]},rM={[Ce]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"{Region}"}]},[Ie]:{}},kn={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"{Region}"}]},Hn={[X]:Sn,[W]:[{[ze]:"UseGlobalEndpoint"},!1]},oM={[Ce]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},iM={[Ce]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},aM={[Ce]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Sb={[X]:Sn,[W]:[{[X]:cn,[W]:[Pz,"isIp"]},!1]},_b={[Ce]:Rz,[Ae]:kn,[Ie]:{}},TS={[Ce]:Ym,[Ae]:kn,[Ie]:{}},cM={[pe]:TS,[D]:pe},Eb={[Ce]:Cz,[Ae]:kn,[Ie]:{}},lM={[Ce]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Jh={[Pe]:"Invalid region: region was not a valid DNS name.",[D]:Pe},Hs={[ze]:Iz},Lz={[ze]:Tz},xb={[X]:cn,[W]:[Hs,"service"]},xw={[ze]:Ew},uM={[U]:[Zt],[Pe]:"S3 Object Lambda does not support Dual-stack",[D]:Pe},fM={[U]:[Or],[Pe]:"S3 Object Lambda does not support S3 Accelerate",[D]:Pe},dM={[U]:[{[X]:ir,[W]:[{[ze]:"DisableAccessPoints"}]},{[X]:Sn,[W]:[{[ze]:"DisableAccessPoints"},!0]}],[Pe]:"Access points are not supported for this operation",[D]:Pe},wb={[U]:[{[X]:ir,[W]:[{[ze]:"UseArnRegion"}]},{[X]:Sn,[W]:[{[ze]:"UseArnRegion"},!1]},{[X]:So,[W]:[{[X]:Rt,[W]:[{[X]:cn,[W]:[Hs,"region"]},"{Region}"]}]}],[Pe]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[D]:Pe},$z={[X]:cn,[W]:[{[ze]:"bucketPartition"},un]},zz={[X]:cn,[W]:[Hs,"accountId"]},Rb={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:_w,[os]:"{bucketArn#region}"}]},pM={[Pe]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[D]:Pe},Cb={[Pe]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[D]:Pe},Ab={[Pe]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[D]:Pe},Ib={[Pe]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[D]:Pe},hM={[Pe]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[D]:Pe},mM={[Pe]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[D]:Pe},Jf={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:yu,[os]:"{bucketArn#region}"}]},gM={[Zn]:[{[Mn]:!0,[un]:Sw,[Dn]:Ad,[vw]:["*"]},{[Mn]:!0,[un]:"sigv4",[Dn]:Ad,[os]:"{bucketArn#region}"}]},yM={[X]:Az,[W]:[_t]},vM={[Ce]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},bM={[Ce]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},SM={[Ce]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},Tb={[Ce]:Mz,[Ae]:kn,[Ie]:{}},_M={[Ce]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:kn,[Ie]:{}},EM={[ze]:"UseObjectLambdaEndpoint"},Ob={[Zn]:[{[Mn]:!0,[un]:"sigv4",[Dn]:_w,[os]:"{Region}"}]},xM={[Ce]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},wM={[Ce]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},RM={[Ce]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Mb={[Ce]:fm,[Ae]:kn,[Ie]:{}},CM={[Ce]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Ae]:kn,[Ie]:{}},Db=[{[ze]:"Region"}],_1e=[{[ze]:"Endpoint"}],E1e=[_t],Pb=[Or],Kl=[vn,ws],AM=[{[X]:ir,[W]:[{[ze]:"DisableS3ExpressSessionAuth"}]},{[X]:Sn,[W]:[{[ze]:"DisableS3ExpressSessionAuth"},!0]}],x1e=[kz],kb=[Nz],Tr=[Dz],Nb=[Wt,Zt],ud=[Wt,ft],fd=[st,Zt],dd=[st,ft],IM=[{[X]:Yt,[W]:[_t,6,14,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,14,16,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],lo=[{[U]:[Wt,Zt],[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe},{[U]:ud,[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe},{[U]:fd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe},{[U]:dd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:{}},[D]:pe}],TM=[{[X]:Yt,[W]:[_t,6,15,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],OM=[{[X]:Yt,[W]:[_t,6,19,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,19,21,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],MM=[{[X]:Yt,[W]:[_t,6,20,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],DM=[{[X]:Yt,[W]:[_t,6,26,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,26,28,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],uo=[{[U]:[Wt,Zt],[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:ud,[pe]:{[Ce]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:fd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe},{[U]:dd,[pe]:{[Ce]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ae]:{[ai]:"S3Express",[Zn]:[{[Mn]:!0,[un]:"sigv4-s3express",[Dn]:"s3express",[os]:"{Region}"}]},[Ie]:{}},[D]:pe}],PM=[_t,0,7,!0],kM=[{[X]:Yt,[W]:[_t,7,15,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],NM=[{[X]:Yt,[W]:[_t,7,16,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,16,18,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],LM=[{[X]:Yt,[W]:[_t,7,20,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],$M=[{[X]:Yt,[W]:[_t,7,21,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,21,23,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],zM=[{[X]:Yt,[W]:[_t,7,27,!0],[We]:"s3expressAvailabilityZoneId"},{[X]:Yt,[W]:[_t,27,29,!0],[We]:"s3expressAvailabilityZoneDelim"},{[X]:Rt,[W]:[{[ze]:"s3expressAvailabilityZoneDelim"},"--"]}],w1e=[ld],BM=[{[X]:Wc,[W]:[{[ze]:IS},!1]}],UM=[{[X]:Rt,[W]:[{[ze]:wz},"beta"]}],R1e=["*"],jM=[{[X]:Wc,[W]:[{[ze]:"Region"},!1]}],pa=[{[X]:Rt,[W]:[{[ze]:"Region"},"us-east-1"]}],Lb=[{[X]:Rt,[W]:[Lz,Oz]}],VM=[{[X]:cn,[W]:[Hs,"resourceId[1]"],[We]:Ew},{[X]:So,[W]:[{[X]:Rt,[W]:[xw,Xm]}]}],C1e=[Hs,"resourceId[1]"],HM=[Zt],$b=[{[X]:So,[W]:[{[X]:Rt,[W]:[{[X]:cn,[W]:[Hs,"region"]},Xm]}]}],qM=[{[X]:So,[W]:[{[X]:ir,[W]:[{[X]:cn,[W]:[Hs,"resourceId[2]"]}]}]}],A1e=[Hs,"resourceId[2]"],zb=[{[X]:Zm,[W]:[{[X]:cn,[W]:[Hs,"region"]}],[We]:"bucketPartition"}],FM=[{[X]:Rt,[W]:[$z,{[X]:cn,[W]:[{[ze]:"partitionResult"},un]}]}],Bb=[{[X]:Wc,[W]:[{[X]:cn,[W]:[Hs,"region"]},!0]}],Ub=[{[X]:Wc,[W]:[zz,!1]}],GM=[{[X]:Wc,[W]:[xw,!1]}],em=[Wt],KM=[{[X]:Wc,[W]:[{[ze]:"Region"},!0]}],I1e={parameters:{Bucket:Fl,Region:Fl,UseFIPS:Gl,UseDualStack:Gl,Endpoint:Fl,ForcePathStyle:Gl,Accelerate:Gl,UseGlobalEndpoint:Gl,UseObjectLambdaEndpoint:Wf,Key:Fl,Prefix:Fl,CopySource:Fl,DisableAccessPoints:Wf,DisableMultiRegionAccessPoints:Gl,UseArnRegion:Wf,UseS3ExpressControlEndpoint:Wf,DisableS3ExpressSessionAuth:Wf},[ae]:[{[U]:[{[X]:ir,[W]:Db}],[ae]:[{[U]:[Or,Wt],error:"Accelerate cannot be used with FIPS",[D]:Pe},{[U]:[Zt,vn],error:"Cannot set dual-stack in combination with a custom endpoint.",[D]:Pe},{[U]:[vn,Wt],error:"A custom endpoint cannot be combined with FIPS",[D]:Pe},{[U]:[vn,Or],error:"A custom endpoint cannot be combined with S3 Accelerate",[D]:Pe},{[U]:[Wt,Dz,QO],error:"Partition does not support FIPS",[D]:Pe},{[U]:[ld,{[X]:Yt,[W]:[_t,0,v1e,co],[We]:BO},{[X]:Rt,[W]:[{[ze]:BO},"--x-s3"]}],[ae]:[YO,XO,{[U]:[JO,eM],[ae]:[{[U]:Tr,[ae]:[{[U]:[kz,Ye],[ae]:[{[U]:Nb,endpoint:{[Ce]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:dd,endpoint:{[Ce]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:sr,[Ie]:qe},[D]:pe}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:kb,[ae]:[{[U]:Tr,[ae]:[{[U]:AM,[ae]:[{[U]:IM,[ae]:lo,[D]:ce},{[U]:TM,[ae]:lo,[D]:ce},{[U]:OM,[ae]:lo,[D]:ce},{[U]:MM,[ae]:lo,[D]:ce},{[U]:DM,[ae]:lo,[D]:ce},Xh],[D]:ce},{[U]:IM,[ae]:uo,[D]:ce},{[U]:TM,[ae]:uo,[D]:ce},{[U]:OM,[ae]:uo,[D]:ce},{[U]:MM,[ae]:uo,[D]:ce},{[U]:DM,[ae]:uo,[D]:ce},Xh],[D]:ce}],[D]:ce},WO],[D]:ce},{[U]:[ld,{[X]:Yt,[W]:PM,[We]:UO},{[X]:Rt,[W]:[{[ze]:UO},"--xa-s3"]}],[ae]:[YO,XO,{[U]:kb,[ae]:[{[U]:Tr,[ae]:[{[U]:AM,[ae]:[{[U]:kM,[ae]:lo,[D]:ce},{[U]:NM,[ae]:lo,[D]:ce},{[U]:LM,[ae]:lo,[D]:ce},{[U]:$M,[ae]:lo,[D]:ce},{[U]:zM,[ae]:lo,[D]:ce},Xh],[D]:ce},{[U]:kM,[ae]:uo,[D]:ce},{[U]:NM,[ae]:uo,[D]:ce},{[U]:LM,[ae]:uo,[D]:ce},{[U]:$M,[ae]:uo,[D]:ce},{[U]:zM,[ae]:uo,[D]:ce},Xh],[D]:ce}],[D]:ce},WO],[D]:ce},{[U]:[tM,JO,eM],[ae]:[{[U]:Tr,[ae]:[{[U]:Kl,endpoint:{[Ce]:fm,[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:Nb,endpoint:{[Ce]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe},{[U]:dd,endpoint:{[Ce]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[Ae]:sr,[Ie]:qe},[D]:pe}],[D]:ce}],[D]:ce},{[U]:[ld,{[X]:Yt,[W]:[_t,49,50,co],[We]:xz},{[X]:Yt,[W]:[_t,8,12,co],[We]:wz},{[X]:Yt,[W]:PM,[We]:jO},{[X]:Yt,[W]:[_t,32,49,co],[We]:IS},{[X]:Zm,[W]:Db,[We]:"regionPartition"},{[X]:Rt,[W]:[{[ze]:jO},"--op-s3"]}],[ae]:[{[U]:BM,[ae]:[{[U]:kb,[ae]:[{[U]:[{[X]:Rt,[W]:[nM,"e"]}],[ae]:[{[U]:UM,[ae]:[sM,{[U]:Kl,endpoint:{[Ce]:"https://{Bucket}.ec2.{url#authority}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{endpoint:{[Ce]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{[U]:[{[X]:Rt,[W]:[nM,"o"]}],[ae]:[{[U]:UM,[ae]:[sM,{[U]:Kl,endpoint:{[Ce]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{endpoint:{[Ce]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ae]:Wh,[Ie]:qe},[D]:pe}],[D]:ce},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[D]:Pe}],[D]:ce},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[D]:Pe}],[D]:ce},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[D]:Pe}],[D]:ce},{[U]:w1e,[ae]:[{[U]:[vn,{[X]:So,[W]:[{[X]:ir,[W]:[{[X]:bw,[W]:_1e}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[D]:Pe},{[U]:[bb,Nz],[ae]:[{[U]:Tr,[ae]:[{[U]:jM,[ae]:[{[U]:[Or,QO],error:"S3 Accelerate cannot be used in this region",[D]:Pe},{[U]:[Zt,Wt,Tn,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,Wt,Tn,Ye,gt,Vn],[ae]:[{endpoint:rM,[D]:pe}],[D]:ce},{[U]:[Zt,Wt,Tn,Ye,gt,Hn],endpoint:rM,[D]:pe},{[U]:[ft,Wt,Tn,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,Wt,Tn,Ye,gt,Vn],[ae]:[{endpoint:oM,[D]:pe}],[D]:ce},{[U]:[ft,Wt,Tn,Ye,gt,Hn],endpoint:oM,[D]:pe},{[U]:[Zt,st,Or,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,st,Or,Ye,gt,Vn],[ae]:[{endpoint:iM,[D]:pe}],[D]:ce},{[U]:[Zt,st,Or,Ye,gt,Hn],endpoint:iM,[D]:pe},{[U]:[Zt,st,Tn,Ye,zn],endpoint:{[Ce]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,st,Tn,Ye,gt,Vn],[ae]:[{endpoint:aM,[D]:pe}],[D]:ce},{[U]:[Zt,st,Tn,Ye,gt,Hn],endpoint:aM,[D]:pe},{[U]:[ft,st,Tn,vn,ws,vb,zn],endpoint:{[Ce]:Rz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,vn,ws,Sb,zn],endpoint:{[Ce]:Ym,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,vn,ws,vb,gt,Vn],[ae]:[{[U]:pa,endpoint:_b,[D]:pe},{endpoint:_b,[D]:pe}],[D]:ce},{[U]:[ft,st,Tn,vn,ws,Sb,gt,Vn],[ae]:[{[U]:pa,endpoint:TS,[D]:pe},cM],[D]:ce},{[U]:[ft,st,Tn,vn,ws,vb,gt,Hn],endpoint:_b,[D]:pe},{[U]:[ft,st,Tn,vn,ws,Sb,gt,Hn],endpoint:TS,[D]:pe},{[U]:[ft,st,Or,Ye,zn],endpoint:{[Ce]:Cz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Or,Ye,gt,Vn],[ae]:[{[U]:pa,endpoint:Eb,[D]:pe},{endpoint:Eb,[D]:pe}],[D]:ce},{[U]:[ft,st,Or,Ye,gt,Hn],endpoint:Eb,[D]:pe},{[U]:[ft,st,Tn,Ye,zn],endpoint:{[Ce]:VO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,st,Tn,Ye,gt,Vn],[ae]:[{[U]:pa,endpoint:{[Ce]:VO,[Ae]:kn,[Ie]:qe},[D]:pe},{endpoint:lM,[D]:pe}],[D]:ce},{[U]:[ft,st,Tn,Ye,gt,Hn],endpoint:lM,[D]:pe}],[D]:ce},Jh],[D]:ce}],[D]:ce},{[U]:[vn,ws,{[X]:Rt,[W]:[{[X]:cn,[W]:[Pz,"scheme"]},"http"]},{[X]:Qm,[W]:[_t,co]},bb,st,ft,Tn],[ae]:[{[U]:Tr,[ae]:[{[U]:jM,[ae]:[cM],[D]:ce},Jh],[D]:ce}],[D]:ce},{[U]:[bb,{[X]:Az,[W]:E1e,[We]:Iz}],[ae]:[{[U]:[{[X]:cn,[W]:[Hs,"resourceId[0]"],[We]:Tz},{[X]:So,[W]:[{[X]:Rt,[W]:[Lz,Xm]}]}],[ae]:[{[U]:[{[X]:Rt,[W]:[xb,_w]}],[ae]:[{[U]:Lb,[ae]:[{[U]:VM,[ae]:[uM,fM,{[U]:$b,[ae]:[dM,{[U]:qM,[ae]:[wb,{[U]:zb,[ae]:[{[U]:Tr,[ae]:[{[U]:FM,[ae]:[{[U]:Bb,[ae]:[{[U]:[{[X]:Rt,[W]:[zz,Xm]}],error:"Invalid ARN: Missing account id",[D]:Pe},{[U]:Ub,[ae]:[{[U]:GM,[ae]:[{[U]:Kl,endpoint:{[Ce]:HO,[Ae]:Rb,[Ie]:qe},[D]:pe},{[U]:em,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Rb,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Rb,[Ie]:qe},[D]:pe}],[D]:ce},pM],[D]:ce},Cb],[D]:ce},Ab],[D]:ce},Ib],[D]:ce}],[D]:ce}],[D]:ce},hM],[D]:ce},{error:"Invalid ARN: bucket ARN is missing a region",[D]:Pe}],[D]:ce},mM],[D]:ce},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[D]:Pe}],[D]:ce},{[U]:Lb,[ae]:[{[U]:VM,[ae]:[{[U]:$b,[ae]:[{[U]:Lb,[ae]:[{[U]:$b,[ae]:[dM,{[U]:qM,[ae]:[wb,{[U]:zb,[ae]:[{[U]:Tr,[ae]:[{[U]:[{[X]:Rt,[W]:[$z,"{partitionResult#name}"]}],[ae]:[{[U]:Bb,[ae]:[{[U]:[{[X]:Rt,[W]:[xb,yu]}],[ae]:[{[U]:Ub,[ae]:[{[U]:GM,[ae]:[{[U]:Pb,error:"Access Points do not support S3 Accelerate",[D]:Pe},{[U]:Nb,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Jf,[Ie]:qe},[D]:pe},{[U]:ud,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Jf,[Ie]:qe},[D]:pe},{[U]:fd,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:Jf,[Ie]:qe},[D]:pe},{[U]:[st,ft,vn,ws],endpoint:{[Ce]:HO,[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},pM],[D]:ce},Cb],[D]:ce},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[D]:Pe}],[D]:ce},Ab],[D]:ce},Ib],[D]:ce}],[D]:ce}],[D]:ce},hM],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:Wc,[W]:[xw,co]}],[ae]:[{[U]:HM,error:"S3 MRAP does not support dual-stack",[D]:Pe},{[U]:em,error:"S3 MRAP does not support FIPS",[D]:Pe},{[U]:Pb,error:"S3 MRAP does not support S3 Accelerate",[D]:Pe},{[U]:[{[X]:Sn,[W]:[{[ze]:"DisableMultiRegionAccessPoints"},co]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[D]:Pe},{[U]:[{[X]:Zm,[W]:Db,[We]: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]:[{[Mn]:co,name:Sw,[Dn]:yu,[vw]:R1e}]},[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},mM],[D]:ce},{[U]:[{[X]:Rt,[W]:[xb,Ad]}],[ae]:[{[U]:HM,error:"S3 Outposts does not support Dual-stack",[D]:Pe},{[U]:em,error:"S3 Outposts does not support FIPS",[D]:Pe},{[U]:Pb,error:"S3 Outposts does not support S3 Accelerate",[D]:Pe},{[U]:[{[X]:ir,[W]:[{[X]:cn,[W]:[Hs,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[D]:Pe},{[U]:[{[X]:cn,[W]:C1e,[We]:IS}],[ae]:[{[U]:BM,[ae]:[wb,{[U]:zb,[ae]:[{[U]:Tr,[ae]:[{[U]:FM,[ae]:[{[U]:Bb,[ae]:[{[U]:Ub,[ae]:[{[U]:[{[X]:cn,[W]:A1e,[We]:FO}],[ae]:[{[U]:[{[X]:cn,[W]:[Hs,"resourceId[3]"],[We]:Ew}],[ae]:[{[U]:[{[X]:Rt,[W]:[{[ze]:FO},Oz]}],[ae]:[{[U]:Kl,endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Ae]:gM,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ae]:gM,[Ie]:qe},[D]:pe}],[D]:ce},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[D]:Pe}],[D]:ce},{error:"Invalid ARN: expected an access point name",[D]:Pe}],[D]:ce},{error:"Invalid ARN: Expected a 4-component resource",[D]:Pe}],[D]:ce},Cb],[D]:ce},Ab],[D]:ce},Ib],[D]:ce}],[D]:ce}],[D]:ce},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[D]:Pe}],[D]:ce},{error:"Invalid ARN: The Outpost Id was not set",[D]:Pe}],[D]:ce},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[D]:Pe}],[D]:ce},{error:"Invalid ARN: No ARN type specified",[D]:Pe}],[D]:ce},{[U]:[{[X]:Yt,[W]:[_t,0,4,b1e],[We]:GO},{[X]:Rt,[W]:[{[ze]:GO},"arn:"]},{[X]:So,[W]:[{[X]:ir,[W]:[yM]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[D]:Pe},{[U]:[{[X]:Sn,[W]:[S1e,co]},yM],error:"Path-style addressing cannot be used with ARN buckets",[D]:Pe},{[U]:x1e,[ae]:[{[U]:Tr,[ae]:[{[U]:[Tn],[ae]:[{[U]:[Zt,Ye,Wt,zn],endpoint:{[Ce]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,Ye,Wt,gt,Vn],[ae]:[{endpoint:vM,[D]:pe}],[D]:ce},{[U]:[Zt,Ye,Wt,gt,Hn],endpoint:vM,[D]:pe},{[U]:[ft,Ye,Wt,zn],endpoint:{[Ce]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,Ye,Wt,gt,Vn],[ae]:[{endpoint:bM,[D]:pe}],[D]:ce},{[U]:[ft,Ye,Wt,gt,Hn],endpoint:bM,[D]:pe},{[U]:[Zt,Ye,st,zn],endpoint:{[Ce]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Zt,Ye,st,gt,Vn],[ae]:[{endpoint:SM,[D]:pe}],[D]:ce},{[U]:[Zt,Ye,st,gt,Hn],endpoint:SM,[D]:pe},{[U]:[ft,vn,ws,st,zn],endpoint:{[Ce]:Mz,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,vn,ws,st,gt,Vn],[ae]:[{[U]:pa,endpoint:Tb,[D]:pe},{endpoint:Tb,[D]:pe}],[D]:ce},{[U]:[ft,vn,ws,st,gt,Hn],endpoint:Tb,[D]:pe},{[U]:[ft,Ye,st,zn],endpoint:{[Ce]:KO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[ft,Ye,st,gt,Vn],[ae]:[{[U]:pa,endpoint:{[Ce]:KO,[Ae]:kn,[Ie]:qe},[D]:pe},{endpoint:_M,[D]:pe}],[D]:ce},{[U]:[ft,Ye,st,gt,Hn],endpoint:_M,[D]:pe}],[D]:ce},{error:"Path-style addressing cannot be used with S3 Accelerate",[D]:Pe}],[D]:ce}],[D]:ce}],[D]:ce},{[U]:[{[X]:ir,[W]:[EM]},{[X]:Sn,[W]:[EM,co]}],[ae]:[{[U]:Tr,[ae]:[{[U]:KM,[ae]:[uM,fM,{[U]:Kl,endpoint:{[Ce]:fm,[Ae]:Ob,[Ie]:qe},[D]:pe},{[U]:em,endpoint:{[Ce]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Ae]:Ob,[Ie]:qe},[D]:pe},{endpoint:{[Ce]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Ae]:Ob,[Ie]:qe},[D]:pe}],[D]:ce},Jh],[D]:ce}],[D]:ce},{[U]:[tM],[ae]:[{[U]:Tr,[ae]:[{[U]:KM,[ae]:[{[U]:[Wt,Zt,Ye,zn],endpoint:{[Ce]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Wt,Zt,Ye,gt,Vn],[ae]:[{endpoint:xM,[D]:pe}],[D]:ce},{[U]:[Wt,Zt,Ye,gt,Hn],endpoint:xM,[D]:pe},{[U]:[Wt,ft,Ye,zn],endpoint:{[Ce]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[Wt,ft,Ye,gt,Vn],[ae]:[{endpoint:wM,[D]:pe}],[D]:ce},{[U]:[Wt,ft,Ye,gt,Hn],endpoint:wM,[D]:pe},{[U]:[st,Zt,Ye,zn],endpoint:{[Ce]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,Zt,Ye,gt,Vn],[ae]:[{endpoint:RM,[D]:pe}],[D]:ce},{[U]:[st,Zt,Ye,gt,Hn],endpoint:RM,[D]:pe},{[U]:[st,ft,vn,ws,zn],endpoint:{[Ce]:fm,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,ft,vn,ws,gt,Vn],[ae]:[{[U]:pa,endpoint:Mb,[D]:pe},{endpoint:Mb,[D]:pe}],[D]:ce},{[U]:[st,ft,vn,ws,gt,Hn],endpoint:Mb,[D]:pe},{[U]:[st,ft,Ye,zn],endpoint:{[Ce]:ZO,[Ae]:jn,[Ie]:qe},[D]:pe},{[U]:[st,ft,Ye,gt,Vn],[ae]:[{[U]:pa,endpoint:{[Ce]:ZO,[Ae]:kn,[Ie]:qe},[D]:pe},{endpoint:CM,[D]:pe}],[D]:ce},{[U]:[st,ft,Ye,gt,Hn],endpoint:CM,[D]:pe}],[D]:ce},Jh],[D]:ce}],[D]:ce}],[D]:ce},{error:"A region must be set when sending requests to S3.",[D]:Pe}]},T1e=I1e,O1e=new L_({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Bz=(e,t={})=>O1e.get(e,()=>z_(T1e,{endpointParams:e,logger:t.logger}));pu.aws=Og;const M1e=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 F3(r,{getEndpointParameterInstructions:c},t);return Object.assign(i,l)},D1e=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`")})()}),P1e=M1e(D1e);function Uz(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function jz(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const k1e=(e,t,n)=>i=>{const l=e(i).properties?.authSchemes;if(!l)return t(i);const f=[];for(const d of l){const{name:p,properties:v={},...g}=d,b=p.toLowerCase();p!==b&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${b}'`);let _;if(b==="sigv4a"){_="aws.auth#sigv4a";const R=l.find(C=>{const T=C.name.toLowerCase();return T!=="sigv4a"&&T.startsWith("sigv4")});if(Ez.sigv4aDependency()==="none"&&R)continue}else if(b.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${b}'`);const E=n[_];if(!E)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);const x=E(i);x.schemeId=_,x.signingProperties={...x.signingProperties||{},...g,...v},f.push(x)}return f},N1e=e=>{const t=[];switch(e.operation){default:t.push(Uz(e)),t.push(jz(e))}return t},L1e=k1e(Bz,N1e,{"aws.auth#sigv4":Uz,"aws.auth#sigv4a":jz}),$1e=e=>{const t=U_(e),n=lJ(t);return Object.assign(n,{authSchemePreference:Is(e.authSchemePreference??[])})},z1e=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??{}}),ww={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class Yn extends Ea{constructor(t){super(t),Object.setPrototypeOf(this,Yn.prototype)}}class Rw extends Yn{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,Rw.prototype)}}class Cw extends Yn{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,Cw.prototype)}}class Aw extends Yn{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Aw.prototype)}}class Iw extends Yn{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,Iw.prototype)}}class Tw extends Yn{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,Tw.prototype)}}class Ow extends Yn{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,Ow.prototype)}}class Mw extends Yn{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,Mw.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class Dw extends Yn{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,Dw.prototype)}}class Pw extends Yn{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,Pw.prototype)}}class kw extends Yn{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,kw.prototype)}}class Nw extends Yn{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,Nw.prototype)}}class Lw extends Yn{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,Lw.prototype)}}class $w extends Yn{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,$w.prototype)}}class zw extends Yn{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,zw.prototype)}}class Bw extends Yn{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Bw.prototype)}}const Uw="ACL",B1e="AccessDenied",U1e="AbortDate",ZM="AccessKeyId",j1e="AbortMultipartUpload",V1e="AbortMultipartUploadOutput",H1e="AbortMultipartUploadRequest",q1e="AcceptRanges",F1e="AbortRuleId",G1e="AccessTier",cs="Bucket",Vz="BucketArn",K1e="BucketAlreadyExists",Z1e="BucketAlreadyOwnedByYou",Q1e="BypassGovernanceRetention",Y1e="BucketInfo",Si="BucketKeyEnabled",Hz="BucketRegion",jw="Body",qz="Buckets",Lu="ChecksumAlgorithm",X1e="CreateBucket",OS="CreateBucketConfiguration",W1e="CreateBucketOutput",J1e="CreateBucketRequest",Vw="CacheControl",Ka="ChecksumCRC32",Za="ChecksumCRC32C",Qa="ChecksumCRC64NVME",Hw="Cache-Control",eRe="CreationDate",qw="Content-Disposition",Fw="ContentDisposition",Gw="Content-Encoding",Kw="ContentEncoding",Zw="ContentLanguage",Qw="Content-Language",Yw="Content-Length",Xw="ContentLength",Ww="Content-MD5",Jw="ContentMD5",tRe="CompletedMultipartUpload",nRe="CompleteMultipartUploadOutput",sRe="CreateMultipartUploadOutput",rRe="CompleteMultipartUploadResult",oRe="CompleteMultipartUploadRequest",iRe="CreateMultipartUploadRequest",Fz="CompleteMultipartUpload",aRe="CreateMultipartUpload",cRe="ChecksumMode",lRe="CommonPrefix",uRe="CommonPrefixList",fRe="CompletedPartList",dRe="CompletedPart",pRe="CommonPrefixes",hRe="ContentRange",mRe="Content-Range",Ya="ChecksumSHA1",Xa="ChecksumSHA256",gRe="CreateSessionOutput",yRe="CreateSessionResult",vRe="CreateSessionRequest",bRe="CreateSession",Jc="ChecksumType",e1="Content-Type",t1="ContentType",uy="ContinuationToken",SRe="Contents",QM="Credentials",Gz="DeleteMarker",_Re="DisplayName",ERe="DeleteObjectOutput",xRe="DeleteObjectRequest",wRe="DeleteObject",RRe="DataRedundancy",Kz="Delimiter",Id="Expiration",_i="ExpectedBucketOwner",YM="ExpiresString",CRe="EncryptionTypeMismatch",pi="ETag",Zz="EncodingType",vu="Expires",ARe="FetchOwner",n1="GrantFullControl",IRe="GetObject",TRe="GetObjectOutput",ORe="GetObjectRequest",s1="GrantRead",r1="GrantReadACP",MRe="GrantWrite",o1="GrantWriteACP",DRe="ID",fy="IfMatch",PRe="IfMatchInitiatedTime",kRe="IfMatchLastModifiedTime",NRe="IfMatchSize",LRe="If-Modified-Since",$Re="IfModifiedSince",zRe="InitiateMultipartUploadResult",dy="If-Match",i1="IfNoneMatch",a1="If-None-Match",BRe="InvalidObjectState",URe="IdempotencyParameterMismatch",jRe="InvalidRequest",VRe="IsRestoreInProgress",HRe="IsTruncated",qRe="IfUnmodifiedSince",FRe="If-Unmodified-Since",GRe="InvalidWriteOffset",qr="Key",KRe="KeyCount",Wm="Location",ZRe="ListAllMyBucketsResult",QRe="ListBuckets",YRe="ListBucketsOutput",XRe="ListBucketsRequest",WRe="ListBucketResult",JRe="LocationConstraint",eCe="LocationInfo",Qz="LastModified",tCe="Last-Modified",nCe="ListObjectsV2",sCe="ListObjectsV2Output",rCe="ListObjectsV2Request",c1="Metadata",oCe="MaxBuckets",iCe="MFA",Yz="MaxKeys",aCe="MissingMeta",cCe="MpuObjectSize",lCe="MultipartUpload",l1="Name",uCe="NextContinuationToken",fCe="NotFound",dCe="NoSuchBucket",pCe="NoSuchKey",hCe="NoSuchUpload",u1="Owner",mCe="ObjectAlreadyInActiveTierError",gCe="ObjectLockEnabledForBucket",f1="ObjectLockLegalHoldStatus",d1="ObjectLockMode",p1="ObjectLockRetainUntilDate",yCe="ObjectList",vCe="ObjectNotInActiveTierError",bCe="ObjectOwnership",SCe="OptionalObjectAttributes",_Ce="Object",ip="Prefix",ECe="PartsCount",h1="PartNumber",xCe="PutObject",wCe="PutObjectOutput",RCe="PutObjectRequest",CCe="PutObjectTagging",ACe="PutObjectTaggingOutput",ICe="PutObjectTaggingRequest",TCe="Parts",OCe="Part",Wa="RequestCharged",MCe="ResponseCacheControl",DCe="ResponseContentDisposition",PCe="ResponseContentEncoding",kCe="ResponseContentLanguage",NCe="ResponseContentType",LCe="ResponseExpires",$Ce="RestoreExpiryDate",Ei="RequestPayer",zCe="ReplicationStatus",Xz="RestoreStatus",XM="Range",BCe="Restore",Wz="StartAfter",WM="SecretAccessKey",UCe="StreamingBlob",ap="StorageClass",jCe="SessionCredentialValue",VCe="SessionCredentials",HCe="SessionMode",xi="ServerSideEncryption",wi="SSECustomerAlgorithm",$u="SSECustomerKey",Ri="SSECustomerKeyMD5",el="SSEKMSEncryptionContext",Do="SSEKMSKeyId",JM="SessionToken",Jz="Size",qCe="Tags",FCe="TagCount",GCe="TooManyParts",eB="TagSet",tB="Tag",Td="Tagging",nB="Type",py="UploadId",KCe="UploadPart",ZCe="UploadPartOutput",QCe="UploadPartRequest",YCe="Value",Ja="VersionId",XCe="WriteOffsetBytes",m1="WebsiteRedirectLocation",WCe="accept-ranges",JCe="bucket-region",Os="client",sB="continuation-token",eAe="delimiter",Ms="error",tAe="encoding-type",nAe="fetch-owner",Fr="http",hy="httpChecksum",Zs="httpError",L="httpHeader",g1="httpPayload",y1="httpPrefixHeaders",nn="httpQuery",sAe="max-buckets",rAe="max-keys",rB="prefix",oB="partNumber",oAe="response-cache-control",iAe="response-content-disposition",aAe="response-content-encoding",cAe="response-content-language",lAe="response-content-type",uAe="response-expires",iB="smithy.ts.sdk.synthetic.com.amazonaws.s3",fAe="start-after",dAe="streaming",v1="uploadId",b1="versionId",Jm="xmlFlattened",is="xmlName",S1="x-amz-acl",pAe="x-amz-abort-date",hAe="x-amz-abort-rule-id",mAe="x-amz-bucket-arn",gAe="x-amz-bypass-governance-retention",yAe="x-amz-bucket-object-lock-enabled",aB="x-amz-checksum-algorithm",zu="x-amz-checksum-crc32",Bu="x-amz-checksum-crc32c",Uu="x-amz-checksum-crc64nvme",vAe="x-amz-checksum-mode",ju="x-amz-checksum-sha1",Vu="x-amz-checksum-sha256",bAe="x-amz-create-session-mode",cp="x-amz-checksum-type",cB="x-amz-delete-marker",_1="x-amz-expiration",Ci="x-amz-expected-bucket-owner",E1="x-amz-grant-full-control",x1="x-amz-grant-read",w1="x-amz-grant-read-acp",SAe="x-amz-grant-write",R1="x-amz-grant-write-acp",_Ae="x-amz-if-match-initiated-time",EAe="x-amz-if-match-last-modified-time",xAe="x-amz-if-match-size",C1="x-amz-meta-",wAe="x-amz-mfa",RAe="x-amz-missing-meta",CAe="x-amz-mp-object-size",AAe="x-amz-mp-parts-count",A1="x-amz-object-lock-legal-hold",I1="x-amz-object-lock-mode",T1="x-amz-object-lock-retain-until-date",IAe="x-amz-object-ownership",TAe="x-amz-optional-object-attributes",OAe="x-amz-object-size",MAe="x-amz-restore",ec="x-amz-request-charged",Ai="x-amz-request-payer",DAe="x-amz-replication-status",O1="x-amz-storage-class",M1="x-amz-sdk-checksum-algorithm",Ii="x-amz-server-side-encryption",Ti="x-amz-server-side-encryption-aws-kms-key-id",Oi="x-amz-server-side-encryption-bucket-key-enabled",Hu="x-amz-server-side-encryption-context",Mi="x-amz-server-side-encryption-customer-algorithm",lp="x-amz-server-side-encryption-customer-key",Di="x-amz-server-side-encryption-customer-key-MD5",lB="x-amz-tagging",PAe="x-amz-tagging-count",up="x-amz-version-id",kAe="x-amz-write-offset-bytes",D1="x-amz-website-redirect-location",Te="com.amazonaws.s3",uB=Gn.for(iB);var NAe=[-3,iB,"S3ServiceException",0,[],[]];uB.registerError(NAe,Yn);const _s=Gn.for(Te);var LAe=[-3,Te,B1e,{[Ms]:Os,[Zs]:403},[],[]];_s.registerError(LAe,Cw);var $Ae=[-3,Te,K1e,{[Ms]:Os,[Zs]:409},[],[]];_s.registerError($Ae,Iw);var zAe=[-3,Te,Z1e,{[Ms]:Os,[Zs]:409},[],[]];_s.registerError(zAe,Tw);var BAe=[-3,Te,CRe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(BAe,kw);var UAe=[-3,Te,URe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(UAe,zw);var jAe=[-3,Te,BRe,{[Ms]:Os,[Zs]:403},[ap,G1e],[0,0]];_s.registerError(jAe,Mw);var VAe=[-3,Te,jRe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(VAe,Nw);var HAe=[-3,Te,GRe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(HAe,Lw);var qAe=[-3,Te,dCe,{[Ms]:Os,[Zs]:404},[],[]];_s.registerError(qAe,Ow);var FAe=[-3,Te,pCe,{[Ms]:Os,[Zs]:404},[],[]];_s.registerError(FAe,Dw);var GAe=[-3,Te,hCe,{[Ms]:Os,[Zs]:404},[],[]];_s.registerError(GAe,Rw);var KAe=[-3,Te,fCe,{[Ms]:Os},[],[]];_s.registerError(KAe,Pw);var ZAe=[-3,Te,mCe,{[Ms]:Os,[Zs]:403},[],[]];_s.registerError(ZAe,Bw);var QAe=[-3,Te,vCe,{[Ms]:Os,[Zs]:403},[],[]];_s.registerError(QAe,Aw);var YAe=[-3,Te,GCe,{[Ms]:Os,[Zs]:400},[],[]];_s.registerError(YAe,$w);const XAe=[uB,_s];var eD=[0,Te,jCe,8,0],fp=[0,Te,$u,8,0],qu=[0,Te,el,8,0],Pi=[0,Te,Do,8,0],P1=[0,Te,UCe,{[dAe]:1},42],WAe=[3,Te,V1e,0,[Wa],[[0,{[L]:ec}]]],JAe=[3,Te,H1e,0,[cs,qr,py,Ei,_i,PRe],[[0,1],[0,1],[0,{[nn]:v1}],[0,{[L]:Ai}],[0,{[L]:Ci}],[6,{[L]:_Ae}]],3],eIe=[3,Te,cs,0,[l1,eRe,Hz,Vz],[0,4,0,0]],tIe=[3,Te,Y1e,0,[RRe,nB],[0,0]],nIe=[3,Te,lRe,0,[ip],[0]],sIe=[3,Te,tRe,0,[TCe],[[()=>LIe,{[Jm]:1,[is]:OCe}]]],rIe=[3,Te,dRe,0,[pi,Ka,Za,Qa,Ya,Xa,h1],[0,0,0,0,0,0,1]],oIe=[3,Te,nRe,{[is]:rRe},[Wm,cs,qr,Id,pi,Ka,Za,Qa,Ya,Xa,Jc,xi,Ja,Do,Si,Wa],[0,0,0,[0,{[L]:_1}],0,0,0,0,0,0,0,[0,{[L]:Ii}],[0,{[L]:up}],[()=>Pi,{[L]:Ti}],[2,{[L]:Oi}],[0,{[L]:ec}]]],iIe=[3,Te,oRe,0,[cs,qr,py,lCe,Ka,Za,Qa,Ya,Xa,Jc,cCe,Ei,_i,fy,i1,wi,$u,Ri],[[0,1],[0,1],[0,{[nn]:v1}],[()=>sIe,{[g1]:1,[is]:Fz}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:cp}],[1,{[L]:CAe}],[0,{[L]:Ai}],[0,{[L]:Ci}],[0,{[L]:dy}],[0,{[L]:a1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}]],3],aIe=[3,Te,OS,0,[JRe,Wm,cs,qCe],[0,()=>EIe,()=>tIe,[()=>dB,0]]],cIe=[3,Te,W1e,0,[Wm,Vz],[[0,{[L]:Wm}],[0,{[L]:mAe}]]],lIe=[3,Te,J1e,0,[cs,Uw,OS,n1,s1,r1,MRe,o1,gCe,bCe],[[0,1],[0,{[L]:S1}],[()=>aIe,{[g1]:1,[is]:OS}],[0,{[L]:E1}],[0,{[L]:x1}],[0,{[L]:w1}],[0,{[L]:SAe}],[0,{[L]:R1}],[2,{[L]:yAe}],[0,{[L]:IAe}]],1],uIe=[3,Te,sRe,{[is]:zRe},[U1e,F1e,cs,qr,py,xi,wi,Ri,Do,el,Si,Wa,Lu,Jc],[[4,{[L]:pAe}],[0,{[L]:hAe}],[0,{[is]:cs}],0,0,[0,{[L]:Ii}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[0,{[L]:ec}],[0,{[L]:aB}],[0,{[L]:cp}]]],fIe=[3,Te,iRe,0,[cs,qr,Uw,Vw,Fw,Kw,Zw,t1,vu,n1,s1,r1,o1,c1,xi,ap,m1,wi,$u,Ri,Do,el,Si,Ei,Td,d1,p1,f1,_i,Lu,Jc],[[0,1],[0,1],[0,{[L]:S1}],[0,{[L]:Hw}],[0,{[L]:qw}],[0,{[L]:Gw}],[0,{[L]:Qw}],[0,{[L]:e1}],[4,{[L]:vu}],[0,{[L]:E1}],[0,{[L]:x1}],[0,{[L]:w1}],[0,{[L]:R1}],[128,{[y1]:C1}],[0,{[L]:Ii}],[0,{[L]:O1}],[0,{[L]:D1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[0,{[L]:Ai}],[0,{[L]:lB}],[0,{[L]:I1}],[5,{[L]:T1}],[0,{[L]:A1}],[0,{[L]:Ci}],[0,{[L]:aB}],[0,{[L]:cp}]],2],dIe=[3,Te,gRe,{[is]:yRe},[QM,xi,Do,el,Si],[[()=>TIe,{[is]:QM}],[0,{[L]:Ii}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}]],1],pIe=[3,Te,vRe,0,[cs,HCe,xi,Do,el,Si],[[0,1],[0,{[L]:bAe}],[0,{[L]:Ii}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}]],1],hIe=[3,Te,ERe,0,[Gz,Ja,Wa],[[2,{[L]:cB}],[0,{[L]:up}],[0,{[L]:ec}]]],mIe=[3,Te,xRe,0,[cs,qr,iCe,Ja,Ei,Q1e,_i,fy,kRe,NRe],[[0,1],[0,1],[0,{[L]:wAe}],[0,{[nn]:b1}],[0,{[L]:Ai}],[2,{[L]:gAe}],[0,{[L]:Ci}],[0,{[L]:dy}],[6,{[L]:EAe}],[1,{[L]:xAe}]],2],gIe=[3,Te,TRe,0,[jw,Gz,q1e,Id,BCe,Qz,Xw,pi,Ka,Za,Qa,Ya,Xa,Jc,aCe,Ja,Vw,Fw,Kw,Zw,hRe,t1,vu,YM,m1,xi,c1,wi,Ri,Do,Si,ap,Wa,zCe,ECe,FCe,d1,p1,f1],[[()=>P1,16],[2,{[L]:cB}],[0,{[L]:WCe}],[0,{[L]:_1}],[0,{[L]:MAe}],[4,{[L]:tCe}],[1,{[L]:Yw}],[0,{[L]:pi}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:cp}],[1,{[L]:RAe}],[0,{[L]:up}],[0,{[L]:Hw}],[0,{[L]:qw}],[0,{[L]:Gw}],[0,{[L]:Qw}],[0,{[L]:mRe}],[0,{[L]:e1}],[4,{[L]:vu}],[0,{[L]:YM}],[0,{[L]:D1}],[0,{[L]:Ii}],[128,{[y1]:C1}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[2,{[L]:Oi}],[0,{[L]:O1}],[0,{[L]:ec}],[0,{[L]:DAe}],[1,{[L]:AAe}],[1,{[L]:PAe}],[0,{[L]:I1}],[5,{[L]:T1}],[0,{[L]:A1}]]],yIe=[3,Te,ORe,0,[cs,qr,fy,$Re,i1,qRe,XM,MCe,DCe,PCe,kCe,NCe,LCe,Ja,wi,$u,Ri,Ei,h1,_i,cRe],[[0,1],[0,1],[0,{[L]:dy}],[4,{[L]:LRe}],[0,{[L]:a1}],[4,{[L]:FRe}],[0,{[L]:XM}],[0,{[nn]:oAe}],[0,{[nn]:iAe}],[0,{[nn]:aAe}],[0,{[nn]:cAe}],[0,{[nn]:lAe}],[6,{[nn]:uAe}],[0,{[nn]:b1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[0,{[L]:Ai}],[1,{[nn]:oB}],[0,{[L]:Ci}],[0,{[L]:vAe}]],2],vIe=[3,Te,YRe,{[is]:ZRe},[qz,u1,uy,ip],[[()=>kIe,0],()=>fB,0,0]],bIe=[3,Te,XRe,0,[oCe,uy,ip,Hz],[[1,{[nn]:sAe}],[0,{[nn]:sB}],[0,{[nn]:rB}],[0,{[nn]:JCe}]]],SIe=[3,Te,sCe,{[is]:WRe},[HRe,SRe,l1,ip,Kz,Yz,pRe,Zz,KRe,uy,uCe,Wz,Wa],[2,[()=>$Ie,{[Jm]:1}],0,0,0,1,[()=>NIe,{[Jm]:1}],0,1,0,0,0,[0,{[L]:ec}]]],_Ie=[3,Te,rCe,0,[cs,Kz,Zz,Yz,ip,uy,ARe,Wz,Ei,_i,SCe],[[0,1],[0,{[nn]:eAe}],[0,{[nn]:tAe}],[1,{[nn]:rAe}],[0,{[nn]:rB}],[0,{[nn]:sB}],[2,{[nn]:nAe}],[0,{[nn]:fAe}],[0,{[L]:Ai}],[0,{[L]:Ci}],[64,{[L]:TAe}]],1],EIe=[3,Te,eCe,0,[nB,l1],[0,0]],xIe=[3,Te,_Ce,0,[qr,Qz,pi,Lu,Jc,Jz,ap,u1,Xz],[0,4,0,[64,{[Jm]:1}],0,1,0,()=>fB,()=>IIe]],fB=[3,Te,u1,0,[_Re,DRe],[0,0]],wIe=[3,Te,wCe,0,[Id,pi,Ka,Za,Qa,Ya,Xa,Jc,xi,Ja,wi,Ri,Do,el,Si,Jz,Wa],[[0,{[L]:_1}],[0,{[L]:pi}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:cp}],[0,{[L]:Ii}],[0,{[L]:up}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[1,{[L]:OAe}],[0,{[L]:ec}]]],RIe=[3,Te,RCe,0,[cs,qr,Uw,jw,Vw,Fw,Kw,Zw,Xw,Jw,t1,Lu,Ka,Za,Qa,Ya,Xa,vu,fy,i1,n1,s1,r1,o1,XCe,c1,xi,ap,m1,wi,$u,Ri,Do,el,Si,Ei,Td,d1,p1,f1,_i],[[0,1],[0,1],[0,{[L]:S1}],[()=>P1,16],[0,{[L]:Hw}],[0,{[L]:qw}],[0,{[L]:Gw}],[0,{[L]:Qw}],[1,{[L]:Yw}],[0,{[L]:Ww}],[0,{[L]:e1}],[0,{[L]:M1}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[4,{[L]:vu}],[0,{[L]:dy}],[0,{[L]:a1}],[0,{[L]:E1}],[0,{[L]:x1}],[0,{[L]:w1}],[0,{[L]:R1}],[1,{[L]:kAe}],[128,{[y1]:C1}],[0,{[L]:Ii}],[0,{[L]:O1}],[0,{[L]:D1}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[()=>qu,{[L]:Hu}],[2,{[L]:Oi}],[0,{[L]:Ai}],[0,{[L]:lB}],[0,{[L]:I1}],[5,{[L]:T1}],[0,{[L]:A1}],[0,{[L]:Ci}]],2],CIe=[3,Te,ACe,0,[Ja],[[0,{[L]:up}]]],AIe=[3,Te,ICe,0,[cs,qr,Td,Ja,Jw,Lu,_i,Ei],[[0,1],[0,1],[()=>MIe,{[g1]:1,[is]:Td}],[0,{[nn]:b1}],[0,{[L]:Ww}],[0,{[L]:M1}],[0,{[L]:Ci}],[0,{[L]:Ai}]],3],IIe=[3,Te,Xz,0,[VRe,$Ce],[2,4]],TIe=[3,Te,VCe,0,[ZM,WM,JM,Id],[[0,{[is]:ZM}],[()=>eD,{[is]:WM}],[()=>eD,{[is]:JM}],[4,{[is]:Id}]],4],OIe=[3,Te,tB,0,[qr,YCe],[0,0],2],MIe=[3,Te,Td,0,[eB],[[()=>dB,0]],1],DIe=[3,Te,ZCe,0,[xi,pi,Ka,Za,Qa,Ya,Xa,wi,Ri,Do,Si,Wa],[[0,{[L]:Ii}],[0,{[L]:pi}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:Mi}],[0,{[L]:Di}],[()=>Pi,{[L]:Ti}],[2,{[L]:Oi}],[0,{[L]:ec}]]],PIe=[3,Te,QCe,0,[cs,qr,h1,py,jw,Xw,Jw,Lu,Ka,Za,Qa,Ya,Xa,wi,$u,Ri,Ei,_i],[[0,1],[0,1],[1,{[nn]:oB}],[0,{[nn]:v1}],[()=>P1,16],[1,{[L]:Yw}],[0,{[L]:Ww}],[0,{[L]:M1}],[0,{[L]:zu}],[0,{[L]:Bu}],[0,{[L]:Uu}],[0,{[L]:ju}],[0,{[L]:Vu}],[0,{[L]:Mi}],[()=>fp,{[L]:lp}],[0,{[L]:Di}],[0,{[L]:Ai}],[0,{[L]:Ci}]],4],kIe=[1,Te,qz,0,[()=>eIe,{[is]:cs}]],NIe=[1,Te,uRe,0,()=>nIe],LIe=[1,Te,fRe,0,()=>rIe],$Ie=[1,Te,yCe,0,[()=>xIe,0]],dB=[1,Te,eB,0,[()=>OIe,{[is]:tB}]],hDe=[9,Te,j1e,{[Fr]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>JAe,()=>WAe],mDe=[9,Te,Fz,{[Fr]:["POST","/{Key+}",200]},()=>iIe,()=>oIe],gDe=[9,Te,X1e,{[Fr]:["PUT","/",200]},()=>lIe,()=>cIe],yDe=[9,Te,aRe,{[Fr]:["POST","/{Key+}?uploads",200]},()=>fIe,()=>uIe],zIe=[9,Te,bRe,{[Fr]:["GET","/?session",200]},()=>pIe,()=>dIe],vDe=[9,Te,wRe,{[Fr]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>mIe,()=>hIe],bDe=[9,Te,IRe,{[hy]:"-",[Fr]:["GET","/{Key+}?x-id=GetObject",200]},()=>yIe,()=>gIe],BIe=[9,Te,QRe,{[Fr]:["GET","/?x-id=ListBuckets",200]},()=>bIe,()=>vIe],UIe=[9,Te,nCe,{[Fr]:["GET","/?list-type=2",200]},()=>_Ie,()=>SIe],SDe=[9,Te,xCe,{[hy]:"-",[Fr]:["PUT","/{Key+}?x-id=PutObject",200]},()=>RIe,()=>wIe],_De=[9,Te,CCe,{[hy]:"-",[Fr]:["PUT","/{Key+}?tagging",200]},()=>AIe,()=>CIe],EDe=[9,Te,KCe,{[hy]:"-",[Fr]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>PIe,()=>DIe];class jIe extends xn.classBuilder().ep({...ww,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions()),gw(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(zIe).build(){}const VIe="3.1000.0",HIe={version:VIe};function tD(e){return typeof e=="string"?e.length===0:e.byteLength===0}var pB={name:"SHA-1"},nD={name:"HMAC",hash:pB},qIe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),FIe=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){Ca().crypto.subtle.importKey("raw",sD(t),nD,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!tD(t)){var n=sD(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return Ca().crypto.subtle.sign(nD,n,t.toHash).then(function(r){return new Uint8Array(r)})}):tD(this.toHash)?Promise.resolve(qIe):Promise.resolve().then(function(){return Ca().crypto.subtle.digest(pB,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function sD(e){return typeof e=="string"?Q3(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var GIe=(function(){function e(t){if(J3(Ca()))this.hash=new FIe(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(zc(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();class pd{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&rD(n),new pd(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&rD(t),parseInt(Vs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function rD(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class KIe{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){const n=[];for(const c of Object.keys(t)){const l=this.fromUtf8(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=this.fromUtf8(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const p=new Uint8Array(d.buffer);return p.set(f,3),p;case"timestamp":const v=new Uint8Array(9);return v[0]=8,v.set(pd.fromNumber(t.value.valueOf()).bytes,1),v;case"uuid":if(!nTe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(c3(t.value.replace(/\-/g,"")),1),g}}parse(t){const n={};let r=0;for(;r{if(typeof f!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+f);t=f,n=4,r=new Uint8Array(f),new DataView(r.buffer).setUint32(0,f,!1)},l=async function*(){const f=e[Symbol.asyncIterator]();for(;;){const{value:d,done:p}=await f.next();if(p){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const v=d.length;let g=0;for(;g({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),hTe=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 mTe{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new dTe({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const r=gTe(t)?pTe(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){const r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?hTe(r):r}}const gTe=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,yTe=e=>new mTe(e);async function vTe(e,t,n=1024*1024){const r=e.size;let i=0;for(;i{r.update(i)}),r.digest()},ha=64,STe=16,_Te=[1732584193,4023233417,2562383102,271733878];class ETe{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(xTe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const n=wTe(t);let r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===ha&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:n,bufferLength:r,bytesHashed:i}=this,c=i*8;if(n.setUint8(this.bufferLength++,128),r%ha>=ha-8){for(let l=this.bufferLength;l>>0,!0),n.setUint32(ha-4,Math.floor(c/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(STe));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(_Te),this.buffer=new DataView(new ArrayBuffer(ha)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function my(e,t,n,r,i,c){return t=(t+e&4294967295)+(r+c&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function ms(e,t,n,r,i,c,l){return my(t&n|~t&r,e,t,i,c,l)}function gs(e,t,n,r,i,c,l){return my(t&r|n&~r,e,t,i,c,l)}function ys(e,t,n,r,i,c,l){return my(t^n^r,e,t,i,c,l)}function vs(e,t,n,r,i,c,l){return my(n^(t|~r),e,t,i,c,l)}function xTe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function wTe(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 RTe=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Ia,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Bz,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??OX,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??L1e,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Mg},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new aJ}],logger:e?.logger??new Dg,protocol:e?.protocol??WJ,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:XAe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??l3,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??Ez,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??hu,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??xo,utf8Encoder:e?.utf8Encoder??$a}),CTe=e=>{const t=iE(e),n=()=>t().then(H_),r=RTe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??j_,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??rE({serviceId:r.serviceId,clientVersion:HIe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??yTe,maxAttempts:e?.maxAttempts??gu,md5:e?.md5??ETe,region:e?.region??oE("Region is missing"),requestHandler:Ld.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||W_),sha1:e?.sha1??GIe,sha256:e?.sha256??sE,streamCollector:e?.streamCollector??wg,streamHasher:e?.streamHasher??bTe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(K_)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Z_))}},ATe=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}}},ITe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),TTe=(e,t)=>{const n=Object.assign(wx(e),q_(e),__(e),ATe(e));return t.forEach(r=>r.configure(n)),Object.assign(e,Rx(n),F_(n),E_(n),ITe(n))};class OTe extends V_{config;constructor(...[t]){const n=CTe(t||{});super(n),this.initConfig=n;const r=z1e(n),i=N_(r),c=jwe(i),l=tE(c),f=Q_(l),d=f,p=X_(d),v=y1e(p),g=$1e(v),b=o1e(g,{session:[()=>this,jIe]}),_=TTe(b,t?.extensions||[]);this.config=_,this.middlewareStack.use(I_(this.config)),this.middlewareStack.use(G_(this.config)),this.middlewareStack.use(nE(this.config)),this.middlewareStack.use(Y_(this.config)),this.middlewareStack.use(x_(this.config)),this.middlewareStack.use(w_(this.config)),this.middlewareStack.use(R_(this.config)),this.middlewareStack.use(C_(this.config,{httpAuthSchemeParametersProvider:P1e,identityProviderConfigProvider:async E=>new k_({"aws.auth#sigv4":E.credentials,"aws.auth#sigv4a":E.credentials})})),this.middlewareStack.use(A_(this.config)),this.middlewareStack.use(g1e(this.config)),this.middlewareStack.use(Lwe(this.config)),this.middlewareStack.use(Gwe(this.config)),this.middlewareStack.use(Jwe(this.config)),this.middlewareStack.use(r1e(this.config))}destroy(){super.destroy()}}class MTe extends xn.classBuilder().ep(ww).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions()),gw(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(BIe).build(){}class DTe extends xn.classBuilder().ep({...ww,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[Nn(r,t.getEndpointParameterInstructions()),gw(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(UIe).build(){}const k1="ap-southeast-2",mB=`${window.location.protocol}//${window.location.hostname}:9999`,PTe=`${window.location.protocol}//${window.location.hostname}:8443`;let dm=null,pm=null,nd=null;function ls(){if(!dm){const e=Nd();if(!e)throw new Error("AWS credentials not configured");dm=new PSe({endpoint:mB,region:k1,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return dm}function tl(){if(!pm){const e=Nd();if(!e)throw new Error("AWS credentials not configured");pm=new Cwe({endpoint:mB,region:k1,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return pm}function gB(){if(!nd){const e=Nd();if(!e)throw new Error("AWS credentials not configured");nd=new OTe({endpoint:PTe,region:k1,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 kTe(){dm=null,pm=null,nd=null}function yB(){const e=qt.c(99);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:NTe},e[0]=t):t=e[0];const n=wj(t),r=ig(),i=mD();let c;e[1]!==r||e[2]!==i?(c=function(){dX(),kTe(),i.clear(),r({to:"/login"})},e[1]=r,e[2]=i,e[3]=c):c=e[3];const l=c;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=k.jsx(Zf,{children:"General"}),e[4]=f):f=e[4];const d=n==="/";let p,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(b9,{className:"size-4"}),v=k.jsx("span",{children:"Dashboard"}),e[5]=p,e[6]=v):(p=e[5],v=e[6]);let g;e[7]!==d?(g=k.jsxs(Kf,{children:[f,k.jsx(jl,{children:k.jsx(Cr,{children:k.jsx(Rs,{to:"/",children:k.jsxs(Ar,{isActive:d,tooltip:"Dashboard",children:[p,v]})})})})]}),e[7]=d,e[8]=g):g=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=k.jsx(Zf,{children:"EC2"}),e[9]=b):b=e[9];let _;e[10]!==n?(_=n.startsWith("/ec2/describe-instances")||n.startsWith("/ec2/run-instances"),e[10]=n,e[11]=_):_=e[11];let E,x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=k.jsx(xT,{className:"size-4"}),E=k.jsx("span",{children:"Instances"}),e[12]=E,e[13]=x):(E=e[12],x=e[13]);let R;e[14]!==_?(R=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-instances",children:k.jsxs(Ar,{isActive:_,tooltip:"EC2 Instances",children:[x,E]})})}),e[14]=_,e[15]=R):R=e[15];let C;e[16]!==n?(C=n.startsWith("/ec2/describe-images"),e[16]=n,e[17]=C):C=e[17];let T,P;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=k.jsx(_9,{className:"size-4"}),P=k.jsx("span",{children:"Images"}),e[18]=T,e[19]=P):(T=e[18],P=e[19]);let I;e[20]!==C?(I=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-images",children:k.jsxs(Ar,{isActive:C,tooltip:"Images",children:[T,P]})})}),e[20]=C,e[21]=I):I=e[21];let B;e[22]!==n?(B=n.startsWith("/ec2/describe-key-pairs"),e[22]=n,e[23]=B):B=e[23];let j,V;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=k.jsx(x9,{className:"size-4"}),V=k.jsx("span",{children:"Key Pairs"}),e[24]=j,e[25]=V):(j=e[24],V=e[25]);let N;e[26]!==B?(N=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-key-pairs",children:k.jsxs(Ar,{isActive:B,tooltip:"Key Pairs",children:[j,V]})})}),e[26]=B,e[27]=N):N=e[27];let Q;e[28]!==n?(Q=n.startsWith("/ec2/describe-volumes")||n.startsWith("/ec2/create-volume")||n.startsWith("/ec2/modify-volume"),e[28]=n,e[29]=Q):Q=e[29];let ne,te;e[30]===Symbol.for("react.memo_cache_sentinel")?(ne=k.jsx(y9,{className:"size-4"}),te=k.jsx("span",{children:"Volumes"}),e[30]=ne,e[31]=te):(ne=e[30],te=e[31]);let F;e[32]!==Q?(F=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-volumes",children:k.jsxs(Ar,{isActive:Q,tooltip:"Volumes",children:[ne,te]})})}),e[32]=Q,e[33]=F):F=e[33];let oe;e[34]!==n?(oe=n.startsWith("/ec2/describe-snapshots")||n.startsWith("/ec2/create-snapshot"),e[34]=n,e[35]=oe):oe=e[35];let me,ge;e[36]===Symbol.for("react.memo_cache_sentinel")?(me=k.jsx(p9,{className:"size-4"}),ge=k.jsx("span",{children:"Snapshots"}),e[36]=me,e[37]=ge):(me=e[36],ge=e[37]);let H;e[38]!==oe?(H=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-snapshots",children:k.jsxs(Ar,{isActive:oe,tooltip:"Snapshots",children:[me,ge]})})}),e[38]=oe,e[39]=H):H=e[39];let re;e[40]!==R||e[41]!==I||e[42]!==N||e[43]!==F||e[44]!==H?(re=k.jsxs(Kf,{children:[b,k.jsxs(jl,{children:[R,I,N,F,H]})]}),e[40]=R,e[41]=I,e[42]=N,e[43]=F,e[44]=H,e[45]=re):re=e[45];let J;e[46]===Symbol.for("react.memo_cache_sentinel")?(J=k.jsx(Zf,{children:"Networking"}),e[46]=J):J=e[46];let ve;e[47]!==n?(ve=n.startsWith("/ec2/describe-vpcs")||n.startsWith("/ec2/create-vpc"),e[47]=n,e[48]=ve):ve=e[48];let ue,$;e[49]===Symbol.for("react.memo_cache_sentinel")?(ue=k.jsx(M9,{className:"size-4"}),$=k.jsx("span",{children:"VPCs"}),e[49]=ue,e[50]=$):(ue=e[49],$=e[50]);let ee;e[51]!==ve?(ee=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-vpcs",children:k.jsxs(Ar,{isActive:ve,tooltip:"VPCs",children:[ue,$]})})}),e[51]=ve,e[52]=ee):ee=e[52];let ye;e[53]!==n?(ye=n.startsWith("/ec2/describe-subnets")||n.startsWith("/ec2/create-subnet"),e[53]=n,e[54]=ye):ye=e[54];let Ee,xe;e[55]===Symbol.for("react.memo_cache_sentinel")?(Ee=k.jsx(R9,{className:"size-4"}),xe=k.jsx("span",{children:"Subnets"}),e[55]=Ee,e[56]=xe):(Ee=e[55],xe=e[56]);let Se;e[57]!==ye?(Se=k.jsx(Cr,{children:k.jsx(Rs,{to:"/ec2/describe-subnets",children:k.jsxs(Ar,{isActive:ye,tooltip:"Subnets",children:[Ee,xe]})})}),e[57]=ye,e[58]=Se):Se=e[58];let Oe;e[59]!==ee||e[60]!==Se?(Oe=k.jsxs(Kf,{children:[J,k.jsxs(jl,{children:[ee,Se]})]}),e[59]=ee,e[60]=Se,e[61]=Oe):Oe=e[61];let Fe;e[62]===Symbol.for("react.memo_cache_sentinel")?(Fe=k.jsx(Zf,{children:"IAM"}),e[62]=Fe):Fe=e[62];let be;e[63]!==n?(be=n.startsWith("/iam/list-users")||n.startsWith("/iam/create-user"),e[63]=n,e[64]=be):be=e[64];let tt,kt;e[65]===Symbol.for("react.memo_cache_sentinel")?(tt=k.jsx(U9,{className:"size-4"}),kt=k.jsx("span",{children:"Users"}),e[65]=tt,e[66]=kt):(tt=e[65],kt=e[66]);let he;e[67]!==be?(he=k.jsx(Cr,{children:k.jsx(Rs,{to:"/iam/list-users",children:k.jsxs(Ar,{isActive:be,tooltip:"Users",children:[tt,kt]})})}),e[67]=be,e[68]=he):he=e[68];let Re;e[69]!==n?(Re=n.startsWith("/iam/list-policies")||n.startsWith("/iam/create-policy"),e[69]=n,e[70]=Re):Re=e[70];let _e,Ze;e[71]===Symbol.for("react.memo_cache_sentinel")?(_e=k.jsx(L9,{className:"size-4"}),Ze=k.jsx("span",{children:"Policies"}),e[71]=_e,e[72]=Ze):(_e=e[71],Ze=e[72]);let Me;e[73]!==Re?(Me=k.jsx(Cr,{children:k.jsx(Rs,{to:"/iam/list-policies",children:k.jsxs(Ar,{isActive:Re,tooltip:"Policies",children:[_e,Ze]})})}),e[73]=Re,e[74]=Me):Me=e[74];let Ve;e[75]!==he||e[76]!==Me?(Ve=k.jsxs(Kf,{children:[Fe,k.jsxs(jl,{children:[he,Me]})]}),e[75]=he,e[76]=Me,e[77]=Ve):Ve=e[77];let De;e[78]===Symbol.for("react.memo_cache_sentinel")?(De=k.jsx(Zf,{children:"S3"}),e[78]=De):De=e[78];let nt;e[79]!==n?(nt=n.startsWith("/s3/ls"),e[79]=n,e[80]=nt):nt=e[80];let ot,Ge;e[81]===Symbol.for("react.memo_cache_sentinel")?(ot=k.jsx(xT,{className:"size-4"}),Ge=k.jsx("span",{children:"Buckets"}),e[81]=ot,e[82]=Ge):(ot=e[81],Ge=e[82]);let bt;e[83]!==nt?(bt=k.jsxs(Kf,{children:[De,k.jsx(jl,{children:k.jsx(Cr,{children:k.jsx(Rs,{to:"/s3/ls",children:k.jsxs(Ar,{isActive:nt,tooltip:"Buckets",children:[ot,Ge]})})})})]}),e[83]=nt,e[84]=bt):bt=e[84];let Xt;e[85]!==re||e[86]!==Oe||e[87]!==Ve||e[88]!==bt||e[89]!==g?(Xt=k.jsxs(AG,{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(A9,{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(CG,{children:k.jsx(jl,{children:k.jsx(Cr,{children:k.jsxs(Ar,{onClick:l,tooltip:"Sign out",children:[wt,Xn]})})})}),e[93]=l,e[94]=Je):Je=e[94];let Mt;e[95]===Symbol.for("react.memo_cache_sentinel")?(Mt=k.jsx(RG,{}),e[95]=Mt):Mt=e[95];let it;return e[96]!==Xt||e[97]!==Je?(it=k.jsxs(xG,{collapsible:"icon",children:[Xt,Je,Mt]}),e[96]=Xt,e[97]=Je,e[98]=it):it=e[98],it}function NTe(e){return e.pathname}function LTe(e){const t=qt.c(18),{error:n,reset:r}=e,i=bs(),c=mD();let l;t[0]!==c||t[1]!==r||t[2]!==i?(l=function(){c.invalidateQueries(),r(),i.invalidate()},t[0]=c,t[1]=r,t[2]=i,t[3]=l):l=t[3];const f=l;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=k.jsx(yB,{}),t[4]=d):d=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx(Tk,{}),t[5]=p):p=t[5];let v,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(v=k.jsx("div",{className:"flex justify-center",children:k.jsx(m9,{className:"size-12 text-destructive"})}),g=k.jsx("h1",{className:"font-semibold text-2xl",children:"Something went wrong"}),t[6]=v,t[7]=g):(v=t[6],g=t[7]);const b=n.message||"An unexpected error occurred";let _;t[8]!==b?(_=k.jsx("p",{className:"text-muted-foreground",children:b}),t[8]=b,t[9]=_):_=t[9];let E;t[10]!==f?(E=k.jsx(cu,{onClick:f,variant:"default",children:"Try Again"}),t[10]=f,t[11]=E):E=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=k.jsx(Rs,{to:"/",children:k.jsx(cu,{variant:"outline",children:"Go Home"})}),t[12]=x):x=t[12];let R;t[13]!==E?(R=k.jsxs("div",{className:"flex justify-center gap-2",children:[E,x]}),t[13]=E,t[14]=R):R=t[14];let C;return t[15]!==R||t[16]!==_?(C=k.jsxs(k.Fragment,{children:[d,k.jsxs("main",{className:"flex flex-1 flex-col",children:[p,k.jsx("div",{className:"flex flex-1 items-center justify-center p-6 pt-0",children:k.jsxs("div",{className:"max-w-md space-y-4 text-center",children:[v,g,_,R]})})]})]}),t[15]=R,t[16]=_,t[17]=C):C=t[17],C}const N1=uj()({head:()=>({meta:[{title:"Mulga"}]}),component:()=>k.jsxs(k.Fragment,{children:[k.jsx(Tj,{}),k.jsx(yB,{}),k.jsxs("main",{className:"flex flex-1 flex-col",children:[k.jsx(Tk,{}),k.jsx("div",{className:"flex flex-1 flex-col p-8",children:k.jsx(UD,{})})]})]}),errorComponent:LTe,notFoundComponent:OG}),$Te=()=>pt(()=>import("./login.js"),__vite__mapDeps([0,1,2,3])),zTe=at("/login")({beforeLoad:()=>{if(Nd())throw US({to:"/"})},component:yt($Te,"component")}),BTe=()=>pt(()=>import("./route.js"),[]),UTe=at("/_auth")({beforeLoad:()=>{if(!Nd())throw US({to:"/login"})},component:yt(BTe,"component")}),vB={queryKey:["ec2","availabilityZones"],queryFn:()=>{const e=new kSe({});return ls().send(e)},staleTime:3e5},bB={queryKey:["ec2","instances"],queryFn:()=>{const e=new rz({});return ls().send(e)},refetchInterval:5e3},jTe=e=>({queryKey:["ec2","instances",e],queryFn:()=>{const t=new rz({InstanceIds:[e]});return ls().send(t)},refetchInterval:5e3}),SB={queryKey:["ec2","instances","types"],queryFn:()=>{const e=new NSe({Filters:[{Name:"capacity",Values:["true"]}]});return ls().send(e)},refetchInterval:5e3},_B={queryKey:["ec2","images"],queryFn:()=>{const e=new sz({});return ls().send(e)}},EB=e=>({queryKey:["ec2","images",e??"none"],queryFn:()=>{if(!e)return{Images:[],$metadata:{}};const t=new sz({ImageIds:[e]});return ls().send(t)}}),xB={queryKey:["ec2","keypairs"],queryFn:()=>{const e=new oz({});return ls().send(e)}},VTe=e=>({queryKey:["ec2","keypairs",e],queryFn:()=>{const t=new oz({KeyPairIds:[e]});return ls().send(t)}}),wB={queryKey:["ec2","regions"],queryFn:()=>{const e=new LSe({});return ls().send(e)},staleTime:3e5},L1={queryKey:["ec2","subnets"],queryFn:()=>{const e=new az({});return ls().send(e)}},HTe=e=>({queryKey:["ec2","subnets",e],queryFn:()=>{const t=new az({SubnetIds:[e]});return ls().send(t)}}),qTe={queryKey:["ec2","snapshots"],queryFn:()=>{const e=new iz({});return ls().send(e)},refetchInterval:5e3},FTe=e=>({queryKey:["ec2","snapshots",e],queryFn:()=>{const t=new iz({SnapshotIds:[e]});return ls().send(t)},refetchInterval:5e3}),RB={queryKey:["ec2","vpcs"],queryFn:()=>{const e=new lz({});return ls().send(e)}},GTe=e=>({queryKey:["ec2","vpcs",e],queryFn:()=>{const t=new lz({VpcIds:[e]});return ls().send(t)}}),CB={queryKey:["ec2","volumes"],queryFn:()=>{const e=new cz({});return ls().send(e)},refetchInterval:5e3},AB=e=>({queryKey:["ec2","volumes",e],queryFn:()=>{const t=new cz({VolumeIds:[e]});return ls().send(t)},refetchInterval:5e3}),KTe=()=>pt(()=>import("./index3.js"),__vite__mapDeps([4,5,6])),ZTe=at("/_auth/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(wB)},head:()=>({meta:[{title:"Dashboard | Mulga"}]}),component:yt(KTe,"component")}),QTe={queryKey:["s3","buckets"],queryFn:()=>{const e=new MTe({});return gB().send(e)}},IB=(e,t)=>({queryKey:["s3","buckets",e,"objects",t??""],queryFn:()=>{const n=new DTe({Bucket:e,Prefix:t,Delimiter:"/"});return gB().send(n)}}),YTe=()=>pt(()=>import("./index4.js"),__vite__mapDeps([7,5,8,6])),XTe=at("/_auth/s3/ls/")({head:()=>({meta:[{title:"Buckets | S3 | Mulga"}]}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(QTe)},component:yt(YTe,"component")}),WTe=()=>pt(()=>import("./create-bucket.js"),__vite__mapDeps([9,1,10,11,12,6,2,3,13])),JTe=at("/_auth/s3/(buckets)/create-bucket")({head:()=>({meta:[{title:"Create Bucket | S3 | Mulga"}]}),component:yt(WTe,"component")}),e2e=()=>pt(()=>import("./create-user.js"),__vite__mapDeps([14,1,10,11,12,6,2,3,15,16])),t2e=at("/_auth/iam/(users)/create-user")({head:()=>({meta:[{title:"Create User | IAM | Mulga"}]}),component:yt(e2e,"component")}),n2e=()=>pt(()=>import("./create-policy.js"),__vite__mapDeps([17,1,10,11,12,6,2,3,18,15,16])),s2e=at("/_auth/iam/(policies)/create-policy")({head:()=>({meta:[{title:"Create Policy | IAM | Mulga"}]}),component:yt(n2e,"component")}),r2e=()=>pt(()=>import("./create-vpc.js"),__vite__mapDeps([19,1,10,11,12,6,2,3,20,21])),o2e=at("/_auth/ec2/(vpc)/create-vpc")({head:()=>({meta:[{title:"Create VPC | EC2 | Mulga"}]}),component:yt(r2e,"component")}),i2e=()=>pt(()=>import("./create-volume.js"),__vite__mapDeps([22,1,5,10,11,12,6,2,3,23,24,20,21])),a2e=at("/_auth/ec2/(volumes)/create-volume")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vB)},head:()=>({meta:[{title:"Create Volume | EC2 | Mulga"}]}),component:yt(i2e,"component")}),c2e=()=>pt(()=>import("./create-subnet.js"),__vite__mapDeps([25,1,5,10,11,12,6,2,3,23,24,20,21])),l2e=at("/_auth/ec2/(subnet)/create-subnet")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(RB),e.queryClient.ensureQueryData(vB)])},head:()=>({meta:[{title:"Create Subnet | EC2 | Mulga"}]}),component:yt(c2e,"component")}),u2e=()=>pt(()=>import("./create-snapshot.js"),__vite__mapDeps([26,1,5,10,11,12,6,2,23,24,18,20,21])),f2e=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(CB)},head:()=>({meta:[{title:"Create Snapshot | EC2 | Mulga"}]}),component:yt(u2e,"component")}),d2e=()=>pt(()=>import("./import-key-pair.js"),__vite__mapDeps([27,1,10,11,12,6,2,3,18,20,21])),p2e=at("/_auth/ec2/(key)/import-key-pair")({head:()=>({meta:[{title:"Import Key Pair | EC2 | Mulga"}]}),component:yt(d2e,"component")}),h2e=()=>pt(()=>import("./create-key-pair.js"),__vite__mapDeps([28,1,10,11,12,6,2,3,20,21,29,18,30,24,31])),m2e=at("/_auth/ec2/(key)/create-key-pair")({head:()=>({meta:[{title:"Create Key Pair | EC2 | Mulga"}]}),component:yt(h2e,"component")}),g2e=()=>pt(()=>import("./run-instances.js"),__vite__mapDeps([32,1,5,10,11,6,2,3,23,24,20,21])),y2e=at("/_auth/ec2/(instances)/run-instances")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(_B),e.queryClient.ensureQueryData(xB),e.queryClient.ensureQueryData(SB),e.queryClient.ensureQueryData(L1)])},head:()=>({meta:[{title:"Run Instances | EC2 | Mulga"}]}),component:yt(g2e,"component")}),v2e=()=>pt(()=>import("./route2.js"),[]),b2e=at("/_auth/s3/ls/$bucket")({component:yt(v2e,"component")}),S2e=()=>pt(()=>import("./index5.js"),__vite__mapDeps([33,5,10,11,6,13,34,35,29,31,36])),_2e=at("/_auth/s3/ls/$bucket/")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(IB(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:yt(S2e,"component")}),E2e={queryKey:["iam","users"],queryFn:()=>{const e=new Pwe({});return tl().send(e)},staleTime:3e5},x2e=e=>({queryKey:["iam","users",e],queryFn:()=>{const t=new Twe({UserName:e});return tl().send(t)},staleTime:3e5}),w2e=e=>({queryKey:["iam","access-keys",e],queryFn:()=>{const t=new Owe({UserName:e});return tl().send(t)},staleTime:3e5}),TB={queryKey:["iam","policies"],queryFn:()=>{const e=new Dwe({Scope:"Local"});return tl().send(e)},staleTime:3e5},R2e=e=>({queryKey:["iam","policies",e],queryFn:()=>{const t=new Awe({PolicyArn:e});return tl().send(t)},staleTime:3e5}),C2e=(e,t)=>({queryKey:["iam","policy-versions",e,t],queryFn:()=>{const n=new Iwe({PolicyArn:e,VersionId:t});return tl().send(n)},staleTime:3e5}),A2e=e=>({queryKey:["iam","attached-user-policies",e],queryFn:()=>{const t=new Mwe({UserName:e});return tl().send(t)},staleTime:3e5}),I2e=()=>pt(()=>import("./index6.js"),__vite__mapDeps([37,5,8,6])),T2e=at("/_auth/iam/(users)/list-users/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(E2e)},head:()=>({meta:[{title:"Users | IAM | Mulga"}]}),component:yt(I2e,"component")}),O2e=()=>pt(()=>import("./index7.js"),__vite__mapDeps([38,5,8,6])),M2e=at("/_auth/iam/(policies)/list-policies/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(TB)},head:()=>({meta:[{title:"Policies | IAM | Mulga"}]}),component:yt(O2e,"component")}),D2e=()=>pt(()=>import("./index8.js"),__vite__mapDeps([39,5,8,6,40])),P2e=at("/_auth/ec2/(vpc)/describe-vpcs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(RB)},head:()=>({meta:[{title:"VPCs | EC2 | Mulga"}]}),component:yt(D2e,"component")}),k2e=()=>pt(()=>import("./index9.js"),__vite__mapDeps([41,5,8,6,40])),N2e=at("/_auth/ec2/(volumes)/describe-volumes/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(CB)},head:()=>({meta:[{title:"Volumes | EC2 | Mulga"}]}),component:yt(k2e,"component")}),L2e=()=>pt(()=>import("./index10.js"),__vite__mapDeps([42,5,8,6,40])),$2e=at("/_auth/ec2/(subnet)/describe-subnets/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(L1)},head:()=>({meta:[{title:"Subnets | EC2 | Mulga"}]}),component:yt(L2e,"component")}),z2e=()=>pt(()=>import("./index11.js"),__vite__mapDeps([43,5,8,6,40])),B2e=at("/_auth/ec2/(snapshots)/describe-snapshots/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qTe)},head:()=>({meta:[{title:"Snapshots | EC2 | Mulga"}]}),component:yt(z2e,"component")}),U2e=()=>pt(()=>import("./index12.js"),__vite__mapDeps([44,5,8,6])),j2e=at("/_auth/ec2/(key)/describe-key-pairs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(xB)},head:()=>({meta:[{title:"Key Pairs | EC2 | Mulga"}]}),component:yt(U2e,"component")}),V2e=()=>pt(()=>import("./index13.js"),__vite__mapDeps([45,5,8,6,40])),H2e=at("/_auth/ec2/(instances)/describe-instances/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(bB)},head:()=>({meta:[{title:"Instances | EC2 | Mulga"}]}),component:yt(V2e,"component")}),q2e=()=>pt(()=>import("./index14.js"),__vite__mapDeps([46,5,8,6,40])),F2e=at("/_auth/ec2/(images)/describe-images/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_B)},head:()=>({meta:[{title:"Images | EC2 | Mulga"}]}),component:yt(q2e,"component")}),G2e=()=>pt(()=>import("./_.js"),__vite__mapDeps([47,5,10,11,13,34,35,29,31,36])),K2e=at("/_auth/s3/ls/$bucket/$")({loader:async({context:e,params:t})=>{const n=eH(t._splat||"");await e.queryClient.ensureQueryData(IB(t.bucket,n))},head:({params:e})=>({meta:[{title:`${tH(e._splat||"",`${e.bucket}/`)} | S3 | Mulga`}]}),component:yt(G2e,"component")}),Z2e=()=>pt(()=>import("./_userName.js"),__vite__mapDeps([48,5,10,35,29,49,11,6,40,15,30,24,36])),Q2e=at("/_auth/iam/(users)/list-users/$userName")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(x2e(t.userName)),e.queryClient.ensureQueryData(w2e(t.userName)),e.queryClient.ensureQueryData(A2e(t.userName)),e.queryClient.ensureQueryData(TB)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:yt(Z2e,"component")}),Y2e=()=>pt(()=>import("./_policyArn.js"),__vite__mapDeps([50,5,10,35,29,49,11,6,15,36])),X2e=at("/_auth/iam/(policies)/list-policies/$policyArn")({loader:async({context:e,params:t})=>{const n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(R2e(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(C2e(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??"Policy"} | IAM | Mulga`}]}),component:yt(Y2e,"component")}),W2e=()=>pt(()=>import("./_id.js"),__vite__mapDeps([51,5,10,35,29,49,11,6,40,20,36])),J2e=at("/_auth/ec2/(vpc)/describe-vpcs/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(GTe(t.id)),e.queryClient.ensureQueryData(L1)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:yt(W2e,"component")}),eOe=()=>pt(()=>import("./_id2.js"),__vite__mapDeps([52,1,5,10,11,12,6,2,3,20,21])),tOe=at("/_auth/ec2/(volumes)/modify-volume/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(AB(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:yt(eOe,"component")}),nOe=()=>pt(()=>import("./_id3.js"),__vite__mapDeps([53,5,10,35,29,49,11,6,40,2,3,23,24,20,36])),sOe=at("/_auth/ec2/(volumes)/describe-volumes/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(AB(t.id)),e.queryClient.ensureQueryData(bB)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:yt(nOe,"component")}),rOe=()=>pt(()=>import("./_id4.js"),__vite__mapDeps([54,5,10,35,29,49,11,6,40,20,36])),oOe=at("/_auth/ec2/(subnet)/describe-subnets/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(HTe(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:yt(rOe,"component")}),iOe=()=>pt(()=>import("./_id5.js"),__vite__mapDeps([55,5,10,35,29,49,11,6,40,2,3,20,36])),aOe=at("/_auth/ec2/(snapshots)/describe-snapshots/$id")({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(FTe(t.id)),e.queryClient.ensureQueryData(wB)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:yt(iOe,"component")}),cOe=()=>pt(()=>import("./_id6.js"),__vite__mapDeps([56,5,10,35,29,49,11,6,20,36])),lOe=at("/_auth/ec2/(key)/describe-key-pairs/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(VTe(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??"Key Pair"} | EC2 | Mulga`}]}),component:yt(cOe,"component")}),uOe=()=>pt(()=>import("./_id7.js"),__vite__mapDeps([57,5,10,49,11,6,40,29,2,23,24,20,58,3,18,36])),fOe=at("/_auth/ec2/(instances)/describe-instances/$id")({loader:async({context:e,params:t})=>{const[n]=await Promise.all([e.queryClient.ensureQueryData(jTe(t.id)),e.queryClient.ensureQueryData(SB)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(EB(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??"Instance"} | EC2 | Mulga`}]}),component:yt(uOe,"component")}),dOe=()=>pt(()=>import("./_id8.js"),__vite__mapDeps([59,5,10,6,40,58,49])),pOe=at("/_auth/ec2/(images)/describe-images/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(EB(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??"Image"} | EC2 | Mulga`}]}),component:yt(dOe,"component")}),hOe=zTe.update({id:"/login",path:"/login",getParentRoute:()=>N1}),Ot=UTe.update({id:"/_auth",getParentRoute:()=>N1}),mOe=ZTe.update({id:"/",path:"/",getParentRoute:()=>Ot}),gOe=XTe.update({id:"/s3/ls/",path:"/s3/ls/",getParentRoute:()=>Ot}),yOe=JTe.update({id:"/s3/(buckets)/create-bucket",path:"/s3/create-bucket",getParentRoute:()=>Ot}),vOe=t2e.update({id:"/iam/(users)/create-user",path:"/iam/create-user",getParentRoute:()=>Ot}),bOe=s2e.update({id:"/iam/(policies)/create-policy",path:"/iam/create-policy",getParentRoute:()=>Ot}),SOe=o2e.update({id:"/ec2/(vpc)/create-vpc",path:"/ec2/create-vpc",getParentRoute:()=>Ot}),_Oe=a2e.update({id:"/ec2/(volumes)/create-volume",path:"/ec2/create-volume",getParentRoute:()=>Ot}),EOe=l2e.update({id:"/ec2/(subnet)/create-subnet",path:"/ec2/create-subnet",getParentRoute:()=>Ot}),xOe=f2e.update({id:"/ec2/(snapshots)/create-snapshot",path:"/ec2/create-snapshot",getParentRoute:()=>Ot}),wOe=p2e.update({id:"/ec2/(key)/import-key-pair",path:"/ec2/import-key-pair",getParentRoute:()=>Ot}),ROe=m2e.update({id:"/ec2/(key)/create-key-pair",path:"/ec2/create-key-pair",getParentRoute:()=>Ot}),COe=y2e.update({id:"/ec2/(instances)/run-instances",path:"/ec2/run-instances",getParentRoute:()=>Ot}),$1=b2e.update({id:"/s3/ls/$bucket",path:"/s3/ls/$bucket",getParentRoute:()=>Ot}),AOe=_2e.update({id:"/",path:"/",getParentRoute:()=>$1}),IOe=T2e.update({id:"/iam/(users)/list-users/",path:"/iam/list-users/",getParentRoute:()=>Ot}),TOe=M2e.update({id:"/iam/(policies)/list-policies/",path:"/iam/list-policies/",getParentRoute:()=>Ot}),OOe=P2e.update({id:"/ec2/(vpc)/describe-vpcs/",path:"/ec2/describe-vpcs/",getParentRoute:()=>Ot}),MOe=N2e.update({id:"/ec2/(volumes)/describe-volumes/",path:"/ec2/describe-volumes/",getParentRoute:()=>Ot}),DOe=$2e.update({id:"/ec2/(subnet)/describe-subnets/",path:"/ec2/describe-subnets/",getParentRoute:()=>Ot}),POe=B2e.update({id:"/ec2/(snapshots)/describe-snapshots/",path:"/ec2/describe-snapshots/",getParentRoute:()=>Ot}),kOe=j2e.update({id:"/ec2/(key)/describe-key-pairs/",path:"/ec2/describe-key-pairs/",getParentRoute:()=>Ot}),NOe=H2e.update({id:"/ec2/(instances)/describe-instances/",path:"/ec2/describe-instances/",getParentRoute:()=>Ot}),LOe=F2e.update({id:"/ec2/(images)/describe-images/",path:"/ec2/describe-images/",getParentRoute:()=>Ot}),$Oe=K2e.update({id:"/$",path:"/$",getParentRoute:()=>$1}),zOe=Q2e.update({id:"/iam/(users)/list-users/$userName",path:"/iam/list-users/$userName",getParentRoute:()=>Ot}),BOe=X2e.update({id:"/iam/(policies)/list-policies/$policyArn",path:"/iam/list-policies/$policyArn",getParentRoute:()=>Ot}),UOe=J2e.update({id:"/ec2/(vpc)/describe-vpcs/$id",path:"/ec2/describe-vpcs/$id",getParentRoute:()=>Ot}),jOe=tOe.update({id:"/ec2/(volumes)/modify-volume/$id",path:"/ec2/modify-volume/$id",getParentRoute:()=>Ot}),VOe=sOe.update({id:"/ec2/(volumes)/describe-volumes/$id",path:"/ec2/describe-volumes/$id",getParentRoute:()=>Ot}),HOe=oOe.update({id:"/ec2/(subnet)/describe-subnets/$id",path:"/ec2/describe-subnets/$id",getParentRoute:()=>Ot}),qOe=aOe.update({id:"/ec2/(snapshots)/describe-snapshots/$id",path:"/ec2/describe-snapshots/$id",getParentRoute:()=>Ot}),FOe=lOe.update({id:"/ec2/(key)/describe-key-pairs/$id",path:"/ec2/describe-key-pairs/$id",getParentRoute:()=>Ot}),GOe=fOe.update({id:"/ec2/(instances)/describe-instances/$id",path:"/ec2/describe-instances/$id",getParentRoute:()=>Ot}),KOe=pOe.update({id:"/ec2/(images)/describe-images/$id",path:"/ec2/describe-images/$id",getParentRoute:()=>Ot}),ZOe={AuthS3LsBucketSplatRoute:$Oe,AuthS3LsBucketIndexRoute:AOe},QOe=$1._addFileChildren(ZOe),YOe={AuthIndexRoute:mOe,AuthS3LsBucketRouteRoute:QOe,AuthEc2instancesRunInstancesRoute:COe,AuthEc2keyCreateKeyPairRoute:ROe,AuthEc2keyImportKeyPairRoute:wOe,AuthEc2snapshotsCreateSnapshotRoute:xOe,AuthEc2subnetCreateSubnetRoute:EOe,AuthEc2volumesCreateVolumeRoute:_Oe,AuthEc2vpcCreateVpcRoute:SOe,AuthIampoliciesCreatePolicyRoute:bOe,AuthIamusersCreateUserRoute:vOe,AuthS3bucketsCreateBucketRoute:yOe,AuthS3LsIndexRoute:gOe,AuthEc2imagesDescribeImagesIdRoute:KOe,AuthEc2instancesDescribeInstancesIdRoute:GOe,AuthEc2keyDescribeKeyPairsIdRoute:FOe,AuthEc2snapshotsDescribeSnapshotsIdRoute:qOe,AuthEc2subnetDescribeSubnetsIdRoute:HOe,AuthEc2volumesDescribeVolumesIdRoute:VOe,AuthEc2volumesModifyVolumeIdRoute:jOe,AuthEc2vpcDescribeVpcsIdRoute:UOe,AuthIampoliciesListPoliciesPolicyArnRoute:BOe,AuthIamusersListUsersUserNameRoute:zOe,AuthEc2imagesDescribeImagesIndexRoute:LOe,AuthEc2instancesDescribeInstancesIndexRoute:NOe,AuthEc2keyDescribeKeyPairsIndexRoute:kOe,AuthEc2snapshotsDescribeSnapshotsIndexRoute:POe,AuthEc2subnetDescribeSubnetsIndexRoute:DOe,AuthEc2volumesDescribeVolumesIndexRoute:MOe,AuthEc2vpcDescribeVpcsIndexRoute:OOe,AuthIampoliciesListPoliciesIndexRoute:TOe,AuthIamusersListUsersIndexRoute:IOe},XOe=Ot._addFileChildren(YOe),WOe={AuthRouteRoute:XOe,LoginRoute:hOe},JOe=N1._addFileChildren(WOe)._addFileTypes(),OB=new y5({defaultOptions:{queries:{staleTime:5e3}}}),eMe=Sj({routeTree:JOe,context:{queryClient:OB},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),jb=document.getElementById("app");jb&&!jb.innerHTML&&Nj.createRoot(jb).render(k.jsx(M.StrictMode,{children:k.jsx(Bj,{defaultTheme:"system",storageKey:"hive-ui-theme",children:k.jsx(b5,{client:OB,children:k.jsx(SG,{children:k.jsx(xj,{router:eMe})})})})}));export{CJ as $,E2e as A,cu as B,TB as C,rz as D,qTe as E,bB as F,K2e as G,eH as H,gMe as I,tH as J,Ss as K,Rs as L,$c as M,DMe as N,UD as O,xn as P,ww as Q,f2e as R,Nn as S,bDe as T,pMe as U,gB as V,O2 as W,di as X,dDe as Y,_z as Z,RS as _,bn as a,JS as a$,Gm as a0,zc as a1,X3 as a2,W3 as a3,ete as a4,ote as a5,tte as a6,pDe as a7,wd as a8,Qn as a9,nDe as aA,sDe as aB,rDe as aC,oDe as aD,iDe as aE,aDe as aF,cDe as aG,lDe as aH,uDe as aI,tl as aJ,J2e as aK,GTe as aL,tOe as aM,AB as aN,TMe as aO,w2 as aP,OMe as aQ,ou as aR,AMe as aS,IMe as aT,$k as aU,sOe as aV,nH as aW,p9 as aX,GD as aY,hi as aZ,or as a_,eo as aa,fDe as ab,Dg as ac,gw as ad,hDe as ae,mDe as af,gDe as ag,yDe as ah,vDe as ai,SDe as aj,_De as ak,EDe as al,nMe as am,tMe as an,q3 as ao,vee as ap,Vm as aq,mD as ar,Q2e as as,x2e as at,w2e as au,A2e as av,X2e as aw,R2e as ax,C2e as ay,Xc as az,fX as b,vd as b$,$r as b0,Ke as b1,Ct as b2,Lt as b3,Oa as b4,YD as b5,si as b6,sn as b7,zr as b8,ln as b9,zMe as bA,BMe as bB,UMe as bC,jMe as bD,VMe as bE,HMe as bF,qMe as bG,FMe as bH,GMe as bI,KMe as bJ,ZMe as bK,QMe as bL,YMe as bM,XMe as bN,WMe as bO,JMe as bP,eDe as bQ,tDe as bR,bMe as bS,fH as bT,SMe as bU,yMe as bV,vMe as bW,Lh as bX,Pm as bY,kP as bZ,lu as b_,a_ as ba,eg as bb,o5 as bc,XU as bd,sMe as be,Hb as bf,to as bg,tg as bh,QU as bi,YU as bj,Vb as bk,uD as bl,f5 as bm,e5 as bn,As as bo,rMe as bp,hd as bq,h5 as br,Co as bs,PMe as bt,PX as bu,SS as bv,kMe as bw,NMe as bx,LMe as by,$Me as bz,qt as c,FTe as c$,mH as c0,t_ as c1,rS as c2,ho as c3,pg as c4,Pd as c5,DT as c6,Zv as c7,At as c8,EMe as c9,fMe as cA,SF as cB,JF as cC,dF as cD,fF as cE,Dd as cF,Ak as cG,Pn as cH,gP as cI,_7 as cJ,wMe as cK,o_ as cL,cF as cM,_Me as cN,jc as cO,RF as cP,xF as cQ,zP as cR,uF as cS,IF as cT,o7 as cU,r7 as cV,pF as cW,s7 as cX,oOe as cY,HTe as cZ,aOe as c_,On as ca,js as cb,LP as cc,pH as cd,hH as ce,dt as cf,uMe as cg,KH as ch,EF as ci,$q as cj,ok as ck,NP as cl,i_ as cm,Vq as cn,ek as co,dk as cp,ag as cq,Sk as cr,xm as cs,CMe as ct,jP as cu,JD as cv,RMe as cw,xMe as cx,t7 as cy,g7 as cz,kTe as d,lOe as d0,VTe as d1,fOe as d2,jTe as d3,EB as d4,pOe as d5,$a as d6,xo as d7,dX as e,wB as f,ls as g,QTe as h,dMe as i,k as j,E2 as k,vB as l,RB as m,hMe as n,jY as o,CB as p,_B as q,M as r,MMe as s,xB as t,ig as u,SB as v,L1 as w,_2e as x,mMe as y,IB as z}; +${Vs(l)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const c of t.split("/"))c?.length!==0&&c!=="."&&(c===".."?n.pop():n.push(c));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return 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}; diff --git a/hive/services/hiveui/frontend/dist/assets/index2.js b/hive/services/hiveui/frontend/dist/assets/index2.js index 7906cc328..9441cd9a5 100644 --- a/hive/services/hiveui/frontend/dist/assets/index2.js +++ b/hive/services/hiveui/frontend/dist/assets/index2.js @@ -1 +1 @@ -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();return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??x)(S):S,eventType:d,explicitPayloadContentType:y,additionalHeaders:h}}}export{T as EventStreamSerde}; +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/package.json b/hive/services/hiveui/frontend/package.json index 5f7afe168..dd96683d0 100644 --- a/hive/services/hiveui/frontend/package.json +++ b/hive/services/hiveui/frontend/package.json @@ -10,45 +10,40 @@ "fix": "biome check --fix" }, "dependencies": { - "@aws-sdk/client-ec2": "^3.1000.0", - "@aws-sdk/client-iam": "^3.1000.0", - "@aws-sdk/client-s3": "^3.995.0", - "@aws-sdk/lib-storage": "^3.995.0", + "@aws-sdk/client-ec2": "^3.1004.0", + "@aws-sdk/client-iam": "^3.1004.0", + "@aws-sdk/client-s3": "^3.1004.0", + "@aws-sdk/lib-storage": "^3.1004.0", "@base-ui/react": "^1.2.0", "@fontsource-variable/geist": "^5.2.8", "@fontsource-variable/jetbrains-mono": "^5.2.8", "@hookform/resolvers": "^5.2.2", "@tanstack/react-query": "^5.90.21", - "@tanstack/react-router": "^1.162.1", + "@tanstack/react-router": "^1.166.2", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "lucide-react": "^0.575.0", + "lucide-react": "^0.577.0", "react": "^19.2.4", "react-dom": "^19.2.4", "react-hook-form": "^7.71.2", "tailwind-merge": "^3.5.0", - "tailwindcss": "^4.2.0", + "tailwindcss": "^4.2.1", "zod": "^4.3.6" }, "devDependencies": { - "@biomejs/biome": "^2.4.4", - "@tailwindcss/vite": "^4.2.0", - "@tanstack/router-plugin": "^1.162.1", - "@types/node": "^24.10.13", + "@biomejs/biome": "^2.4.6", + "@tailwindcss/vite": "^4.2.1", + "@tanstack/router-plugin": "^1.166.2", + "@types/node": "24.12.0", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", - "@typescript/native-preview": "7.0.0-dev.20260302.1", + "@typescript/native-preview": "7.0.0-dev.20260307.1", "@vitejs/plugin-basic-ssl": "^2.1.4", "@vitejs/plugin-react": "^5.1.4", "babel-plugin-react-compiler": "^1.0.0", "typescript": "^5.9.3", - "ultracite": "^7.2.4", + "ultracite": "^7.2.5", "vite": "^7.3.1" }, - "pnpm": { - "overrides": { - "fast-xml-parser": ">=5.3.8" - } - }, "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 1ae51a002..b8c6adb5d 100644 --- a/hive/services/hiveui/frontend/pnpm-lock.yaml +++ b/hive/services/hiveui/frontend/pnpm-lock.yaml @@ -4,25 +4,22 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -overrides: - fast-xml-parser: '>=5.3.8' - importers: .: dependencies: '@aws-sdk/client-ec2': - specifier: ^3.1000.0 - version: 3.1000.0 + specifier: ^3.1004.0 + version: 3.1004.0 '@aws-sdk/client-iam': - specifier: ^3.1000.0 - version: 3.1000.0 + specifier: ^3.1004.0 + version: 3.1004.0 '@aws-sdk/client-s3': - specifier: ^3.995.0 - version: 3.1000.0 + specifier: ^3.1004.0 + version: 3.1004.0 '@aws-sdk/lib-storage': - specifier: ^3.995.0 - version: 3.1000.0(@aws-sdk/client-s3@3.1000.0) + specifier: ^3.1004.0 + version: 3.1004.0(@aws-sdk/client-s3@3.1004.0) '@base-ui/react': specifier: ^1.2.0 version: 1.2.0(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) @@ -39,8 +36,8 @@ importers: specifier: ^5.90.21 version: 5.90.21(react@19.2.4) '@tanstack/react-router': - specifier: ^1.162.1 - version: 1.163.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + specifier: ^1.166.2 + version: 1.166.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4) class-variance-authority: specifier: ^0.7.1 version: 0.7.1 @@ -48,8 +45,8 @@ importers: specifier: ^2.1.1 version: 2.1.1 lucide-react: - specifier: ^0.575.0 - version: 0.575.0(react@19.2.4) + specifier: ^0.577.0 + version: 0.577.0(react@19.2.4) react: specifier: ^19.2.4 version: 19.2.4 @@ -63,24 +60,24 @@ importers: specifier: ^3.5.0 version: 3.5.0 tailwindcss: - specifier: ^4.2.0 + specifier: ^4.2.1 version: 4.2.1 zod: specifier: ^4.3.6 version: 4.3.6 devDependencies: '@biomejs/biome': - specifier: ^2.4.4 - version: 2.4.4 + specifier: ^2.4.6 + version: 2.4.6 '@tailwindcss/vite': - specifier: ^4.2.0 - version: 4.2.1(vite@7.3.1(@types/node@24.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + 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)) '@tanstack/router-plugin': - specifier: ^1.162.1 - version: 1.163.3(@tanstack/react-router@1.163.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + 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)) '@types/node': - specifier: ^24.10.13 - version: 24.10.15 + specifier: 24.12.0 + version: 24.12.0 '@types/react': specifier: ^19.2.14 version: 19.2.14 @@ -88,14 +85,14 @@ importers: specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.14) '@typescript/native-preview': - specifier: 7.0.0-dev.20260302.1 - version: 7.0.0-dev.20260302.1 + 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.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + 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)) '@vitejs/plugin-react': specifier: ^5.1.4 - version: 5.1.4(vite@7.3.1(@types/node@24.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + 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)) babel-plugin-react-compiler: specifier: ^1.0.0 version: 1.0.0 @@ -103,11 +100,11 @@ importers: specifier: ^5.9.3 version: 5.9.3 ultracite: - specifier: ^7.2.4 - version: 7.2.4 + specifier: ^7.2.5 + version: 7.2.5 vite: specifier: ^7.3.1 - version: 7.3.1(@types/node@24.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + version: 7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) packages: @@ -134,149 +131,149 @@ packages: '@aws-crypto/util@5.2.0': resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==} - '@aws-sdk/client-ec2@3.1000.0': - resolution: {integrity: sha512-SLdVSUScYXbUq2VRdKa3MloNRGnKqnmVdXkfQfJ4WyR5Lzrh1Gs6t9MXBxBMYPaFEdZhav/wMK92PSYdqLBKnA==} + '@aws-sdk/client-ec2@3.1004.0': + resolution: {integrity: sha512-tfNLeHKJPz+NYczwobS9IZbIbu+75ktJFRoYaNiYrk6RLLHfHIJ/pnP9uyJqAdNt3Kh7Jslw+540ZroN41IcRg==} engines: {node: '>=20.0.0'} - '@aws-sdk/client-iam@3.1000.0': - resolution: {integrity: sha512-RR4mq7t+4Fb2iaFDTcXF6Tcigl2nSWUyH61rwtiSbRrNp9A3xSexCSw79SIAkfwsuhk8Ig/ZVt5qpRHWRj2zgA==} + '@aws-sdk/client-iam@3.1004.0': + resolution: {integrity: sha512-BLfhuoVfwudJ82YqEHVfsFbHSH4Y1iprGOvIC/PVc/MGXsd5929UuFTkxsvw0seSoNsVcccCtxGDXPFYoecC8A==} engines: {node: '>=20.0.0'} - '@aws-sdk/client-s3@3.1000.0': - resolution: {integrity: sha512-7kPy33qNGq3NfwHC0412T6LDK1bp4+eiPzetX0sVd9cpTSXuQDKpoOFnB0Njj6uZjJDcLS3n2OeyarwwgkQ0Ow==} + '@aws-sdk/client-s3@3.1004.0': + resolution: {integrity: sha512-m0zNfpsona9jQdX1cHtHArOiuvSGZPsgp/KRZS2YjJhKah96G2UN3UNGZQ6aVjXIQjCY6UanCJo0uW9Xf2U41w==} engines: {node: '>=20.0.0'} - '@aws-sdk/core@3.973.15': - resolution: {integrity: sha512-AlC0oQ1/mdJ8vCIqu524j5RB7M8i8E24bbkZmya1CuiQxkY7SdIZAyw7NDNMGaNINQFq/8oGRMX0HeOfCVsl/A==} + '@aws-sdk/core@3.973.18': + resolution: {integrity: sha512-GUIlegfcK2LO1J2Y98sCJy63rQSiLiDOgVw7HiHPRqfI2vb3XozTVqemwO0VSGXp54ngCnAQz0Lf0YPCBINNxA==} engines: {node: '>=20.0.0'} - '@aws-sdk/crc64-nvme@3.972.3': - resolution: {integrity: sha512-UExeK+EFiq5LAcbHm96CQLSia+5pvpUVSAsVApscBzayb7/6dJBJKwV4/onsk4VbWSmqxDMcfuTD+pC4RxgZHg==} + '@aws-sdk/crc64-nvme@3.972.4': + resolution: {integrity: sha512-HKZIZLbRyvzo/bXZU7Zmk6XqU+1C9DjI56xd02vwuDIxedxBEqP17t9ExhbP9QFeNq/a3l9GOcyirFXxmbDhmw==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-env@3.972.13': - resolution: {integrity: sha512-6ljXKIQ22WFKyIs1jbORIkGanySBHaPPTOI4OxACP5WXgbcR0nDYfqNJfXEGwCK7IzHdNbCSFsNKKs0qCexR8Q==} + '@aws-sdk/credential-provider-env@3.972.16': + resolution: {integrity: sha512-HrdtnadvTGAQUr18sPzGlE5El3ICphnH6SU7UQOMOWFgRKbTRNN8msTxM4emzguUso9CzaHU2xy5ctSrmK5YNA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-http@3.972.15': - resolution: {integrity: sha512-dJuSTreu/T8f24SHDNTjd7eQ4rabr0TzPh2UTCwYexQtzG3nTDKm1e5eIdhiroTMDkPEJeY+WPkA6F9wod/20A==} + '@aws-sdk/credential-provider-http@3.972.18': + resolution: {integrity: sha512-NyB6smuZAixND5jZumkpkunQ0voc4Mwgkd+SZ6cvAzIB7gK8HV8Zd4rS8Kn5MmoGgusyNfVGG+RLoYc4yFiw+A==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-ini@3.972.13': - resolution: {integrity: sha512-JKSoGb7XeabZLBJptpqoZIFbROUIS65NuQnEHGOpuT9GuuZwag2qciKANiDLFiYk4u8nSrJC9JIOnWKVvPVjeA==} + '@aws-sdk/credential-provider-ini@3.972.17': + resolution: {integrity: sha512-dFqh7nfX43B8dO1aPQHOcjC0SnCJ83H3F+1LoCh3X1P7E7N09I+0/taID0asU6GCddfDExqnEvQtDdkuMe5tKQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-login@3.972.13': - resolution: {integrity: sha512-RtYcrxdnJHKY8MFQGLltCURcjuMjnaQpAxPE6+/QEdDHHItMKZgabRe/KScX737F9vJMQsmJy9EmMOkCnoC1JQ==} + '@aws-sdk/credential-provider-login@3.972.17': + resolution: {integrity: sha512-gf2E5b7LpKb+JX2oQsRIDxdRZjBFZt2olCGlWCdb3vBERbXIPgm2t1R5mEnwd4j0UEO/Tbg5zN2KJbHXttJqwA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-node@3.972.14': - resolution: {integrity: sha512-WqoC2aliIjQM/L3oFf6j+op/enT2i9Cc4UTxxMEKrJNECkq4/PlKE5BOjSYFcq6G9mz65EFbXJh7zOU4CvjSKQ==} + '@aws-sdk/credential-provider-node@3.972.18': + resolution: {integrity: sha512-ZDJa2gd1xiPg/nBDGhUlat02O8obaDEnICBAVS8qieZ0+nDfaB0Z3ec6gjZj27OqFTjnB/Q5a0GwQwb7rMVViw==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-process@3.972.13': - resolution: {integrity: sha512-rsRG0LQA4VR+jnDyuqtXi2CePYSmfm5GNL9KxiW8DSe25YwJSr06W8TdUfONAC+rjsTI+aIH2rBGG5FjMeANrw==} + '@aws-sdk/credential-provider-process@3.972.16': + resolution: {integrity: sha512-n89ibATwnLEg0ZdZmUds5bq8AfBAdoYEDpqP3uzPLaRuGelsKlIvCYSNNvfgGLi8NaHPNNhs1HjJZYbqkW9b+g==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-sso@3.972.13': - resolution: {integrity: sha512-fr0UU1wx8kNHDhTQBXioc/YviSW8iXuAxHvnH7eQUtn8F8o/FU3uu6EUMvAQgyvn7Ne5QFnC0Cj0BFlwCk+RFw==} + '@aws-sdk/credential-provider-sso@3.972.17': + resolution: {integrity: sha512-wGtte+48xnhnhHMl/MsxzacBPs5A+7JJedjiP452IkHY7vsbYKcvQBqFye8LwdTJVeHtBHv+JFeTscnwepoWGg==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-web-identity@3.972.13': - resolution: {integrity: sha512-a6iFMh1pgUH0TdcouBppLJUfPM7Yd3R9S1xFodPtCRoLqCz2RQFA3qjA8x4112PVYXEd4/pHX2eihapq39w0rA==} + '@aws-sdk/credential-provider-web-identity@3.972.17': + resolution: {integrity: sha512-8aiVJh6fTdl8gcyL+sVNcNwTtWpmoFa1Sh7xlj6Z7L/cZ/tYMEBHq44wTYG8Kt0z/PpGNopD89nbj3FHl9QmTA==} engines: {node: '>=20.0.0'} - '@aws-sdk/lib-storage@3.1000.0': - resolution: {integrity: sha512-/5KUjz08OS6ErUAaBBBXosFWcjUQJ7R9taPDYfmeKALQF4YXirS+n4/nholInOG4/8Cg89DeufqA/Ru89jC5Kw==} + '@aws-sdk/lib-storage@3.1004.0': + resolution: {integrity: sha512-4W6UkeLVd/1FyXFvD9PHMw5FSOY7tsf6+I52jmgdZwDZ9gJcJBx6wF9IhaVp1AXhScZGY9HqHiqYt0qlrSHrGw==} engines: {node: '>=20.0.0'} peerDependencies: - '@aws-sdk/client-s3': ^3.1000.0 + '@aws-sdk/client-s3': ^3.1004.0 - '@aws-sdk/middleware-bucket-endpoint@3.972.6': - resolution: {integrity: sha512-3H2bhvb7Cb/S6WFsBy/Dy9q2aegC9JmGH1inO8Lb2sWirSqpLJlZmvQHPE29h2tIxzv6el/14X/tLCQ8BQU6ZQ==} + '@aws-sdk/middleware-bucket-endpoint@3.972.7': + resolution: {integrity: sha512-goX+axlJ6PQlRnzE2bQisZ8wVrlm6dXJfBzMJhd8LhAIBan/w1Kl73fJnalM/S+18VnpzIHumyV6DtgmvqG5IA==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-expect-continue@3.972.6': - resolution: {integrity: sha512-QMdffpU+GkSGC+bz6WdqlclqIeCsOfgX8JFZ5xvwDtX+UTj4mIXm3uXu7Ko6dBseRcJz1FA6T9OmlAAY6JgJUg==} + '@aws-sdk/middleware-expect-continue@3.972.7': + resolution: {integrity: sha512-mvWqvm61bmZUKmmrtl2uWbokqpenY3Mc3Jf4nXB/Hse6gWxLPaCQThmhPBDzsPSV8/Odn8V6ovWt3pZ7vy4BFQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-flexible-checksums@3.973.1': - resolution: {integrity: sha512-QLXsxsI6VW8LuGK+/yx699wzqP/NMCGk/hSGP+qtB+Lcff+23UlbahyouLlk+nfT7Iu021SkXBhnAuVd6IZcPw==} + '@aws-sdk/middleware-flexible-checksums@3.973.4': + resolution: {integrity: sha512-7CH2jcGmkvkHc5Buz9IGbdjq1729AAlgYJiAvGq7qhCHqYleCsriWdSnmsqWTwdAfXHMT+pkxX3w6v5tJNcSug==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-host-header@3.972.6': - resolution: {integrity: sha512-5XHwjPH1lHB+1q4bfC7T8Z5zZrZXfaLcjSMwTd1HPSPrCmPFMbg3UQ5vgNWcVj0xoX4HWqTGkSf2byrjlnRg5w==} + '@aws-sdk/middleware-host-header@3.972.7': + resolution: {integrity: sha512-aHQZgztBFEpDU1BB00VWCIIm85JjGjQW1OG9+98BdmaOpguJvzmXBGbnAiYcciCd+IS4e9BEq664lhzGnWJHgQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-location-constraint@3.972.6': - resolution: {integrity: sha512-XdZ2TLwyj3Am6kvUc67vquQvs6+D8npXvXgyEUJAdkUDx5oMFJKOqpK+UpJhVDsEL068WAJl2NEGzbSik7dGJQ==} + '@aws-sdk/middleware-location-constraint@3.972.7': + resolution: {integrity: sha512-vdK1LJfffBp87Lj0Bw3WdK1rJk9OLDYdQpqoKgmpIZPe+4+HawZ6THTbvjhJt4C4MNnRrHTKHQjkwBiIpDBoig==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-logger@3.972.6': - resolution: {integrity: sha512-iFnaMFMQdljAPrvsCVKYltPt2j40LQqukAbXvW7v0aL5I+1GO7bZ/W8m12WxW3gwyK5p5u1WlHg8TSAizC5cZw==} + '@aws-sdk/middleware-logger@3.972.7': + resolution: {integrity: sha512-LXhiWlWb26txCU1vcI9PneESSeRp/RYY/McuM4SpdrimQR5NgwaPb4VJCadVeuGWgh6QmqZ6rAKSoL1ob16W6w==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-recursion-detection@3.972.6': - resolution: {integrity: sha512-dY4v3of5EEMvik6+UDwQ96KfUFDk8m1oZDdkSc5lwi4o7rFrjnv0A+yTV+gu230iybQZnKgDLg/rt2P3H+Vscw==} + '@aws-sdk/middleware-recursion-detection@3.972.7': + resolution: {integrity: sha512-l2VQdcBcYLzIzykCHtXlbpiVCZ94/xniLIkAj0jpnpjY4xlgZx7f56Ypn+uV1y3gG0tNVytJqo3K9bfMFee7SQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-ec2@3.972.11': - resolution: {integrity: sha512-Yu1kuUlt7ElhqITICXywBZFD+c1fsvNo9W6nwhvbNco/R0PrGd2xJDkeFE38Xb37ROByvOBdbQ+DCFtxvP228A==} + '@aws-sdk/middleware-sdk-ec2@3.972.13': + resolution: {integrity: sha512-mcmO0xwjB+H68XMWBBrTD7w9fARzH7/vo7ZvJenicIGZP18tAqiETF/bDMNjtzfLbfANMBpGbn7/3lmt4dncdA==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-s3@3.972.15': - resolution: {integrity: sha512-WDLgssevOU5BFx1s8jA7jj6cE5HuImz28sy9jKOaVtz0AW1lYqSzotzdyiybFaBcQTs5zxXOb2pUfyMxgEKY3Q==} + '@aws-sdk/middleware-sdk-s3@3.972.18': + resolution: {integrity: sha512-5E3XxaElrdyk6ZJ0TjH7Qm6ios4b/qQCiLr6oQ8NK7e4Kn6JBTJCaYioQCQ65BpZ1+l1mK5wTAac2+pEz0Smpw==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-ssec@3.972.6': - resolution: {integrity: sha512-acvMUX9jF4I2Ew+Z/EA6gfaFaz9ehci5wxBmXCZeulLuv8m+iGf6pY9uKz8TPjg39bdAz3hxoE0eLP8Qz+IYlA==} + '@aws-sdk/middleware-ssec@3.972.7': + resolution: {integrity: sha512-G9clGVuAml7d8DYzY6DnRi7TIIDRvZ3YpqJPz/8wnWS5fYx/FNWNmkO6iJVlVkQg9BfeMzd+bVPtPJOvC4B+nQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-user-agent@3.972.15': - resolution: {integrity: sha512-ABlFVcIMmuRAwBT+8q5abAxOr7WmaINirDJBnqGY5b5jSDo00UMlg/G4a0xoAgwm6oAECeJcwkvDlxDwKf58fQ==} + '@aws-sdk/middleware-user-agent@3.972.19': + resolution: {integrity: sha512-Km90fcXt3W/iqujHzuM6IaDkYCj73gsYufcuWXApWdzoTy6KGk8fnchAjePMARU0xegIR3K4N3yIo1vy7OVe8A==} engines: {node: '>=20.0.0'} - '@aws-sdk/nested-clients@3.996.3': - resolution: {integrity: sha512-AU5TY1V29xqwg/MxmA2odwysTez+ccFAhmfRJk+QZT5HNv90UTA9qKd1J9THlsQkvmH7HWTEV1lDNxkQO5PzNw==} + '@aws-sdk/nested-clients@3.996.7': + resolution: {integrity: sha512-MlGWA8uPaOs5AiTZ5JLM4uuWDm9EEAnm9cqwvqQIc6kEgel/8s1BaOWm9QgUcfc9K8qd7KkC3n43yDbeXOA2tg==} engines: {node: '>=20.0.0'} - '@aws-sdk/region-config-resolver@3.972.6': - resolution: {integrity: sha512-Aa5PusHLXAqLTX1UKDvI3pHQJtIsF7Q+3turCHqfz/1F61/zDMWfbTC8evjhrrYVAtz9Vsv3SJ/waSUeu7B6gw==} + '@aws-sdk/region-config-resolver@3.972.7': + resolution: {integrity: sha512-/Ev/6AI8bvt4HAAptzSjThGUMjcWaX3GX8oERkB0F0F9x2dLSBdgFDiyrRz3i0u0ZFZFQ1b28is4QhyqXTUsVA==} engines: {node: '>=20.0.0'} - '@aws-sdk/signature-v4-multi-region@3.996.3': - resolution: {integrity: sha512-gQYI/Buwp0CAGQxY7mR5VzkP56rkWq2Y1ROkFuXh5XY94DsSjJw62B3I0N0lysQmtwiL2ht2KHI9NylM/RP4FA==} + '@aws-sdk/signature-v4-multi-region@3.996.6': + resolution: {integrity: sha512-NnsOQsVmJXy4+IdPFUjRCWPn9qNH1TzS/f7MiWgXeoHs903tJpAWQWQtoFvLccyPoBgomKP9L89RRr2YsT/L0g==} engines: {node: '>=20.0.0'} - '@aws-sdk/token-providers@3.999.0': - resolution: {integrity: sha512-cx0hHUlgXULfykx4rdu/ciNAJaa3AL5xz3rieCz7NKJ68MJwlj3664Y8WR5MGgxfyYJBdamnkjNSx5Kekuc0cg==} + '@aws-sdk/token-providers@3.1004.0': + resolution: {integrity: sha512-j9BwZZId9sFp+4GPhf6KrwO8Tben2sXibZA8D1vv2I1zBdvkUHcBA2g4pkqIpTRalMTLC0NPkBPX0gERxfy/iA==} engines: {node: '>=20.0.0'} - '@aws-sdk/types@3.973.4': - resolution: {integrity: sha512-RW60aH26Bsc016Y9B98hC0Plx6fK5P2v/iQYwMzrSjiDh1qRMUCP6KrXHYEHe3uFvKiOC93Z9zk4BJsUi6Tj1Q==} + '@aws-sdk/types@3.973.5': + resolution: {integrity: sha512-hl7BGwDCWsjH8NkZfx+HgS7H2LyM2lTMAI7ba9c8O0KqdBLTdNJivsHpqjg9rNlAlPyREb6DeDRXUl0s8uFdmQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-arn-parser@3.972.2': - resolution: {integrity: sha512-VkykWbqMjlSgBFDyrY3nOSqupMc6ivXuGmvci6Q3NnLq5kC+mKQe2QBZ4nrWRE/jqOxeFP2uYzLtwncYYcvQDg==} + '@aws-sdk/util-arn-parser@3.972.3': + resolution: {integrity: sha512-HzSD8PMFrvgi2Kserxuff5VitNq2sgf3w9qxmskKDiDTThWfVteJxuCS9JXiPIPtmCrp+7N9asfIaVhBFORllA==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-endpoints@3.996.3': - resolution: {integrity: sha512-yWIQSNiCjykLL+ezN5A+DfBb1gfXTytBxm57e64lYmwxDHNmInYHRJYYRAGWG1o77vKEiWaw4ui28e3yb1k5aQ==} + '@aws-sdk/util-endpoints@3.996.4': + resolution: {integrity: sha512-Hek90FBmd4joCFj+Vc98KLJh73Zqj3s2W56gjAcTkrNLMDI5nIFkG9YpfcJiVI1YlE2Ne1uOQNe+IgQ/Vz2XRA==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-format-url@3.972.6': - resolution: {integrity: sha512-0YNVNgFyziCejXJx0rzxPiD2rkxTWco4c9wiMF6n37Tb9aQvIF8+t7GyEyIFCwQHZ0VMQaAl+nCZHOYz5I5EKw==} + '@aws-sdk/util-format-url@3.972.7': + resolution: {integrity: sha512-V+PbnWfUl93GuFwsOHsAq7hY/fnm9kElRqR8IexIJr5Rvif9e614X5sGSyz3mVSf1YAZ+VTy63W1/pGdA55zyA==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-locate-window@3.965.4': - resolution: {integrity: sha512-H1onv5SkgPBK2P6JR2MjGgbOnttoNzSPIRoeZTNPZYyaplwGg50zS3amXvXqF0/qfXpWEC9rLWU564QTB9bSog==} + '@aws-sdk/util-locate-window@3.965.5': + resolution: {integrity: sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-user-agent-browser@3.972.6': - resolution: {integrity: sha512-Fwr/llD6GOrFgQnKaI2glhohdGuBDfHfora6iG9qsBBBR8xv1SdCSwbtf5CWlUdCw5X7g76G/9Hf0Inh0EmoxA==} + '@aws-sdk/util-user-agent-browser@3.972.7': + resolution: {integrity: sha512-7SJVuvhKhMF/BkNS1n0QAJYgvEwYbK2QLKBrzDiwQGiTRU6Yf1f3nehTzm/l21xdAOtWSfp2uWSddPnP2ZtsVw==} - '@aws-sdk/util-user-agent-node@3.973.0': - resolution: {integrity: sha512-A9J2G4Nf236e9GpaC1JnA8wRn6u6GjnOXiTwBLA6NUJhlBTIGfrTy+K1IazmF8y+4OFdW3O5TZlhyspJMqiqjA==} + '@aws-sdk/util-user-agent-node@3.973.4': + resolution: {integrity: sha512-uqKeLqZ9D3nQjH7HGIERNXK9qnSpUK08l4MlJ5/NZqSSdeJsVANYp437EM9sEzwU28c2xfj2V6qlkqzsgtKs6Q==} engines: {node: '>=20.0.0'} peerDependencies: aws-crt: '>=1.0.0' @@ -284,8 +281,8 @@ packages: aws-crt: optional: true - '@aws-sdk/xml-builder@3.972.8': - resolution: {integrity: sha512-Ql8elcUdYCha83Ol7NznBsgN5GVZnv3vUd86fEc6waU6oUdY0T1O9NODkEEOS/Uaogr87avDrUC6DSeM4oXjZg==} + '@aws-sdk/xml-builder@3.972.10': + resolution: {integrity: sha512-OnejAIVD+CxzyAUrVic7lG+3QRltyja9LoNqCE/1YVs8ichoTbJlVSaZ9iSMcnHLyzrSNtvaOGjSDRP+d/ouFA==} engines: {node: '>=20.0.0'} '@aws/lambda-invoke-store@0.2.3': @@ -412,68 +409,68 @@ packages: '@types/react': optional: true - '@biomejs/biome@2.4.4': - resolution: {integrity: sha512-tigwWS5KfJf0cABVd52NVaXyAVv4qpUXOWJ1rxFL8xF1RVoeS2q/LK+FHgYoKMclJCuRoCWAPy1IXaN9/mS61Q==} + '@biomejs/biome@2.4.6': + resolution: {integrity: sha512-QnHe81PMslpy3mnpL8DnO2M4S4ZnYPkjlGCLWBZT/3R9M6b5daArWMMtEfP52/n174RKnwRIf3oT8+wc9ihSfQ==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.4.4': - resolution: {integrity: sha512-jZ+Xc6qvD6tTH5jM6eKX44dcbyNqJHssfl2nnwT6vma6B1sj7ZLTGIk6N5QwVBs5xGN52r3trk5fgd3sQ9We9A==} + '@biomejs/cli-darwin-arm64@2.4.6': + resolution: {integrity: sha512-NW18GSyxr+8sJIqgoGwVp5Zqm4SALH4b4gftIA0n62PTuBs6G2tHlwNAOj0Vq0KKSs7Sf88VjjmHh0O36EnzrQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.4.4': - resolution: {integrity: sha512-Dh1a/+W+SUCXhEdL7TiX3ArPTFCQKJTI1mGncZNWfO+6suk+gYA4lNyJcBB+pwvF49uw0pEbUS49BgYOY4hzUg==} + '@biomejs/cli-darwin-x64@2.4.6': + resolution: {integrity: sha512-4uiE/9tuI7cnjtY9b07RgS7gGyYOAfIAGeVJWEfeCnAarOAS7qVmuRyX6d7JTKw28/mt+rUzMasYeZ+0R/U1Mw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.4.4': - resolution: {integrity: sha512-+sPAXq3bxmFwhVFJnSwkSF5Rw2ZAJMH3MF6C9IveAEOdSpgajPhoQhbbAK12SehN9j2QrHpk4J/cHsa/HqWaYQ==} + '@biomejs/cli-linux-arm64-musl@2.4.6': + resolution: {integrity: sha512-F/JdB7eN22txiTqHM5KhIVt0jVkzZwVYrdTR1O3Y4auBOQcXxHK4dxULf4z43QyZI5tsnQJrRBHZy7wwtL+B3A==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] libc: [musl] - '@biomejs/cli-linux-arm64@2.4.4': - resolution: {integrity: sha512-V/NFfbWhsUU6w+m5WYbBenlEAz8eYnSqRMDMAW3K+3v0tYVkNyZn8VU0XPxk/lOqNXLSCCrV7FmV/u3SjCBShg==} + '@biomejs/cli-linux-arm64@2.4.6': + resolution: {integrity: sha512-kMLaI7OF5GN1Q8Doymjro1P8rVEoy7BKQALNz6fiR8IC1WKduoNyteBtJlHT7ASIL0Cx2jR6VUOBIbcB1B8pew==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] libc: [glibc] - '@biomejs/cli-linux-x64-musl@2.4.4': - resolution: {integrity: sha512-gGvFTGpOIQDb5CQ2VC0n9Z2UEqlP46c4aNgHmAMytYieTGEcfqhfCFnhs6xjt0S3igE6q5GLuIXtdQt3Izok+g==} + '@biomejs/cli-linux-x64-musl@2.4.6': + resolution: {integrity: sha512-C9s98IPDu7DYarjlZNuzJKTjVHN03RUnmHV5htvqsx6vEUXCDSJ59DNwjKVD5XYoSS4N+BYhq3RTBAL8X6svEg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] libc: [musl] - '@biomejs/cli-linux-x64@2.4.4': - resolution: {integrity: sha512-R4+ZCDtG9kHArasyBO+UBD6jr/FcFCTH8QkNTOCu0pRJzCWyWC4EtZa2AmUZB5h3e0jD7bRV2KvrENcf8rndBg==} + '@biomejs/cli-linux-x64@2.4.6': + resolution: {integrity: sha512-oHXmUFEoH8Lql1xfc3QkFLiC1hGR7qedv5eKNlC185or+o4/4HiaU7vYODAH3peRCfsuLr1g6v2fK9dFFOYdyw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] libc: [glibc] - '@biomejs/cli-win32-arm64@2.4.4': - resolution: {integrity: sha512-trzCqM7x+Gn832zZHgr28JoYagQNX4CZkUZhMUac2YxvvyDRLJDrb5m9IA7CaZLlX6lTQmADVfLEKP1et1Ma4Q==} + '@biomejs/cli-win32-arm64@2.4.6': + resolution: {integrity: sha512-xzThn87Pf3YrOGTEODFGONmqXpTwUNxovQb72iaUOdcw8sBSY3+3WD8Hm9IhMYLnPi0n32s3L3NWU6+eSjfqFg==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.4.4': - resolution: {integrity: sha512-gnOHKVPFAAPrpoPt2t+Q6FZ7RPry/FDV3GcpU53P3PtLNnQjBmKyN2Vh/JtqXet+H4pme8CC76rScwdjDcT1/A==} + '@biomejs/cli-win32-x64@2.4.6': + resolution: {integrity: sha512-7++XhnsPlr1HDbor5amovPjOH6vsrFOCdp93iKXhFn6bcMUI6soodj3WWKfgEO6JosKU1W5n3uky3WW9RlRjTg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] - '@clack/core@1.0.1': - resolution: {integrity: sha512-WKeyK3NOBwDOzagPR5H08rFk9D/WuN705yEbuZvKqlkmoLM2woKtXb10OO2k1NoSU4SFG947i2/SCYh+2u5e4g==} + '@clack/core@1.1.0': + resolution: {integrity: sha512-SVcm4Dqm2ukn64/8Gub2wnlA5nS2iWJyCkdNHcvNHPIeBTGojpdJ+9cZKwLfmqy7irD4N5qLteSilJlE0WLAtA==} - '@clack/prompts@1.0.1': - resolution: {integrity: sha512-/42G73JkuYdyWZ6m8d/CJtBrGl1Hegyc7Fy78m5Ob+jF85TOUmLR5XLce/U3LxYAw0kJ8CT5aI99RIvPHcGp/Q==} + '@clack/prompts@1.1.0': + resolution: {integrity: sha512-pkqbPGtohJAvm4Dphs2M8xE29ggupihHdy1x84HNojZuMtFsHiUlRvqD24tM2+XmI+61LlfNceM3Wr7U5QES5g==} '@esbuild/aix-ppc64@0.27.3': resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} @@ -631,20 +628,20 @@ packages: cpu: [x64] os: [win32] - '@floating-ui/core@1.7.4': - resolution: {integrity: sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg==} + '@floating-ui/core@1.7.5': + resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==} - '@floating-ui/dom@1.7.5': - resolution: {integrity: sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==} + '@floating-ui/dom@1.7.6': + resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==} - '@floating-ui/react-dom@2.1.7': - resolution: {integrity: sha512-0tLRojf/1Go2JgEVm+3Frg9A3IW8bJgKgdO0BN5RkF//ufuz2joZM63Npau2ff3J6lUVYgDSNzNkR+aH3IVfjg==} + '@floating-ui/react-dom@2.1.8': + resolution: {integrity: sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==} peerDependencies: react: '>=16.8.0' react-dom: '>=16.8.0' - '@floating-ui/utils@0.2.10': - resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} + '@floating-ui/utils@0.2.11': + resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==} '@fontsource-variable/geist@5.2.8': resolution: {integrity: sha512-cJ6m9e+8MQ5dCYJsLylfZrgBh6KkG4bOLckB35Tr9J/EqdkEM6QllH5PxqP1dhTvFup+HtMRPuz9xOjxXJggxw==} @@ -814,220 +811,220 @@ packages: cpu: [x64] os: [win32] - '@smithy/abort-controller@4.2.10': - resolution: {integrity: sha512-qocxM/X4XGATqQtUkbE9SPUB6wekBi+FyJOMbPj0AhvyvFGYEmOlz6VB22iMePCQsFmMIvFSeViDvA7mZJG47g==} + '@smithy/abort-controller@4.2.11': + resolution: {integrity: sha512-Hj4WoYWMJnSpM6/kchsm4bUNTL9XiSyhvoMb2KIq4VJzyDt7JpGHUZHkVNPZVC7YE1tf8tPeVauxpFBKGW4/KQ==} engines: {node: '>=18.0.0'} - '@smithy/chunked-blob-reader-native@4.2.2': - resolution: {integrity: sha512-QzzYIlf4yg0w5TQaC9VId3B3ugSk1MI/wb7tgcHtd7CBV9gNRKZrhc2EPSxSZuDy10zUZ0lomNMgkc6/VVe8xg==} + '@smithy/chunked-blob-reader-native@4.2.3': + resolution: {integrity: sha512-jA5k5Udn7Y5717L86h4EIv06wIr3xn8GM1qHRi/Nf31annXcXHJjBKvgztnbn2TxH3xWrPBfgwHsOwZf0UmQWw==} engines: {node: '>=18.0.0'} - '@smithy/chunked-blob-reader@5.2.1': - resolution: {integrity: sha512-y5d4xRiD6TzeP5BWlb+Ig/VFqF+t9oANNhGeMqyzU7obw7FYgTgVi50i5JqBTeKp+TABeDIeeXFZdz65RipNtA==} + '@smithy/chunked-blob-reader@5.2.2': + resolution: {integrity: sha512-St+kVicSyayWQca+I1rGitaOEH6uKgE8IUWoYnnEX26SWdWQcL6LvMSD19Lg+vYHKdT9B2Zuu7rd3i6Wnyb/iw==} engines: {node: '>=18.0.0'} - '@smithy/config-resolver@4.4.9': - resolution: {integrity: sha512-ejQvXqlcU30h7liR9fXtj7PIAau1t/sFbJpgWPfiYDs7zd16jpH0IsSXKcba2jF6ChTXvIjACs27kNMc5xxE2Q==} + '@smithy/config-resolver@4.4.10': + resolution: {integrity: sha512-IRTkd6ps0ru+lTWnfnsbXzW80A8Od8p3pYiZnW98K2Hb20rqfsX7VTlfUwhrcOeSSy68Gn9WBofwPuw3e5CCsg==} engines: {node: '>=18.0.0'} - '@smithy/core@3.23.6': - resolution: {integrity: sha512-4xE+0L2NrsFKpEVFlFELkIHQddBvMbQ41LRIP74dGCXnY1zQ9DgksrBcRBDJT+iOzGy4VEJIeU3hkUK5mn06kg==} + '@smithy/core@3.23.9': + resolution: {integrity: sha512-1Vcut4LEL9HZsdpI0vFiRYIsaoPwZLjAxnVQDUMQK8beMS+EYPLDQCXtbzfxmM5GzSgjfe2Q9M7WaXwIMQllyQ==} engines: {node: '>=18.0.0'} - '@smithy/credential-provider-imds@4.2.10': - resolution: {integrity: sha512-3bsMLJJLTZGZqVGGeBVFfLzuRulVsGTj12BzRKODTHqUABpIr0jMN1vN3+u6r2OfyhAQ2pXaMZWX/swBK5I6PQ==} + '@smithy/credential-provider-imds@4.2.11': + resolution: {integrity: sha512-lBXrS6ku0kTj3xLmsJW0WwqWbGQ6ueooYyp/1L9lkyT0M02C+DWwYwc5aTyXFbRaK38ojALxNixg+LxKSHZc0g==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-codec@4.2.10': - resolution: {integrity: sha512-A4ynrsFFfSXUHicfTcRehytppFBcY3HQxEGYiyGktPIOye3Ot7fxpiy4VR42WmtGI4Wfo6OXt/c1Ky1nUFxYYQ==} + '@smithy/eventstream-codec@4.2.11': + resolution: {integrity: sha512-Sf39Ml0iVX+ba/bgMPxaXWAAFmHqYLTmbjAPfLPLY8CrYkRDEqZdUsKC1OwVMCdJXfAt0v4j49GIJ8DoSYAe6w==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-browser@4.2.10': - resolution: {integrity: sha512-0xupsu9yj9oDVuQ50YCTS9nuSYhGlrwqdaKQel9y2Fz7LU9fNErVlw9N0o4pm4qqvWEGbSTI4HKc6XJfB30MVw==} + '@smithy/eventstream-serde-browser@4.2.11': + resolution: {integrity: sha512-3rEpo3G6f/nRS7fQDsZmxw/ius6rnlIpz4UX6FlALEzz8JoSxFmdBt0SZnthis+km7sQo6q5/3e+UJcuQivoXA==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-config-resolver@4.3.10': - resolution: {integrity: sha512-8kn6sinrduk0yaYHMJDsNuiFpXwQwibR7n/4CDUqn4UgaG+SeBHu5jHGFdU9BLFAM7Q4/gvr9RYxBHz9/jKrhA==} + '@smithy/eventstream-serde-config-resolver@4.3.11': + resolution: {integrity: sha512-XeNIA8tcP/GDWnnKkO7qEm/bg0B/bP9lvIXZBXcGZwZ+VYM8h8k9wuDvUODtdQ2Wcp2RcBkPTCSMmaniVHrMlA==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-node@4.2.10': - resolution: {integrity: sha512-uUrxPGgIffnYfvIOUmBM5i+USdEBRTdh7mLPttjphgtooxQ8CtdO1p6K5+Q4BBAZvKlvtJ9jWyrWpBJYzBKsyQ==} + '@smithy/eventstream-serde-node@4.2.11': + resolution: {integrity: sha512-fzbCh18rscBDTQSCrsp1fGcclLNF//nJyhjldsEl/5wCYmgpHblv5JSppQAyQI24lClsFT0wV06N1Porn0IsEw==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-universal@4.2.10': - resolution: {integrity: sha512-aArqzOEvcs2dK+xQVCgLbpJQGfZihw8SD4ymhkwNTtwKbnrzdhJsFDKuMQnam2kF69WzgJYOU5eJlCx+CA32bw==} + '@smithy/eventstream-serde-universal@4.2.11': + resolution: {integrity: sha512-MJ7HcI+jEkqoWT5vp+uoVaAjBrmxBtKhZTeynDRG/seEjJfqyg3SiqMMqyPnAMzmIfLaeJ/uiuSDP/l9AnMy/Q==} engines: {node: '>=18.0.0'} - '@smithy/fetch-http-handler@5.3.11': - resolution: {integrity: sha512-wbTRjOxdFuyEg0CpumjZO0hkUl+fetJFqxNROepuLIoijQh51aMBmzFLfoQdwRjxsuuS2jizzIUTjPWgd8pd7g==} + '@smithy/fetch-http-handler@5.3.13': + resolution: {integrity: sha512-U2Hcfl2s3XaYjikN9cT4mPu8ybDbImV3baXR0PkVlC0TTx808bRP3FaPGAzPtB8OByI+JqJ1kyS+7GEgae7+qQ==} engines: {node: '>=18.0.0'} - '@smithy/hash-blob-browser@4.2.11': - resolution: {integrity: sha512-DrcAx3PM6AEbWZxsKl6CWAGnVwiz28Wp1ZhNu+Hi4uI/6C1PIZBIaPM2VoqBDAsOWbM6ZVzOEQMxFLLdmb4eBQ==} + '@smithy/hash-blob-browser@4.2.12': + resolution: {integrity: sha512-1wQE33DsxkM/waftAhCH9VtJbUGyt1PJ9YRDpOu+q9FUi73LLFUZ2fD8A61g2mT1UY9k7b99+V1xZ41Rz4SHRQ==} engines: {node: '>=18.0.0'} - '@smithy/hash-node@4.2.10': - resolution: {integrity: sha512-1VzIOI5CcsvMDvP3iv1vG/RfLJVVVc67dCRyLSB2Hn9SWCZrDO3zvcIzj3BfEtqRW5kcMg5KAeVf1K3dR6nD3w==} + '@smithy/hash-node@4.2.11': + resolution: {integrity: sha512-T+p1pNynRkydpdL015ruIoyPSRw9e/SQOWmSAMmmprfswMrd5Ow5igOWNVlvyVFZlxXqGmyH3NQwfwy8r5Jx0A==} engines: {node: '>=18.0.0'} - '@smithy/hash-stream-node@4.2.10': - resolution: {integrity: sha512-w78xsYrOlwXKwN5tv1GnKIRbHb1HygSpeZMP6xDxCPGf1U/xDHjCpJu64c5T35UKyEPwa0bPeIcvU69VY3khUA==} + '@smithy/hash-stream-node@4.2.11': + resolution: {integrity: sha512-hQsTjwPCRY8w9GK07w1RqJi3e+myh0UaOWBBhZ1UMSDgofH/Q1fEYzU1teaX6HkpX/eWDdm7tAGR0jBPlz9QEQ==} engines: {node: '>=18.0.0'} - '@smithy/invalid-dependency@4.2.10': - resolution: {integrity: sha512-vy9KPNSFUU0ajFYk0sDZIYiUlAWGEAhRfehIr5ZkdFrRFTAuXEPUd41USuqHU6vvLX4r6Q9X7MKBco5+Il0Org==} + '@smithy/invalid-dependency@4.2.11': + resolution: {integrity: sha512-cGNMrgykRmddrNhYy1yBdrp5GwIgEkniS7k9O1VLB38yxQtlvrxpZtUVvo6T4cKpeZsriukBuuxfJcdZQc/f/g==} engines: {node: '>=18.0.0'} '@smithy/is-array-buffer@2.2.0': resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==} engines: {node: '>=14.0.0'} - '@smithy/is-array-buffer@4.2.1': - resolution: {integrity: sha512-Yfu664Qbf1B4IYIsYgKoABt010daZjkaCRvdU/sPnZG6TtHOB0md0RjNdLGzxe5UIdn9js4ftPICzmkRa9RJ4Q==} + '@smithy/is-array-buffer@4.2.2': + resolution: {integrity: sha512-n6rQ4N8Jj4YTQO3YFrlgZuwKodf4zUFs7EJIWH86pSCWBaAtAGBFfCM7Wx6D2bBJ2xqFNxGBSrUWswT3M0VJow==} engines: {node: '>=18.0.0'} - '@smithy/md5-js@4.2.10': - resolution: {integrity: sha512-Op+Dh6dPLWTjWITChFayDllIaCXRofOed8ecpggTC5fkh8yXes0vAEX7gRUfjGK+TlyxoCAA05gHbZW/zB9JwQ==} + '@smithy/md5-js@4.2.11': + resolution: {integrity: sha512-350X4kGIrty0Snx2OWv7rPM6p6vM7RzryvFs6B/56Cux3w3sChOb3bymo5oidXJlPcP9fIRxGUCk7GqpiSOtng==} engines: {node: '>=18.0.0'} - '@smithy/middleware-content-length@4.2.10': - resolution: {integrity: sha512-TQZ9kX5c6XbjhaEBpvhSvMEZ0klBs1CFtOdPFwATZSbC9UeQfKHPLPN9Y+I6wZGMOavlYTOlHEPDrt42PMSH9w==} + '@smithy/middleware-content-length@4.2.11': + resolution: {integrity: sha512-UvIfKYAKhCzr4p6jFevPlKhQwyQwlJ6IeKLDhmV1PlYfcW3RL4ROjNEDtSik4NYMi9kDkH7eSwyTP3vNJ/u/Dw==} engines: {node: '>=18.0.0'} - '@smithy/middleware-endpoint@4.4.20': - resolution: {integrity: sha512-9W6Np4ceBP3XCYAGLoMCmn8t2RRVzuD1ndWPLBbv7H9CrwM9Bprf6Up6BM9ZA/3alodg0b7Kf6ftBK9R1N04vw==} + '@smithy/middleware-endpoint@4.4.23': + resolution: {integrity: sha512-UEFIejZy54T1EJn2aWJ45voB7RP2T+IRzUqocIdM6GFFa5ClZncakYJfcYnoXt3UsQrZZ9ZRauGm77l9UCbBLw==} engines: {node: '>=18.0.0'} - '@smithy/middleware-retry@4.4.37': - resolution: {integrity: sha512-/1psZZllBBSQ7+qo5+hhLz7AEPGLx3Z0+e3ramMBEuPK2PfvLK4SrncDB9VegX5mBn+oP/UTDrM6IHrFjvX1ZA==} + '@smithy/middleware-retry@4.4.40': + resolution: {integrity: sha512-YhEMakG1Ae57FajERdHNZ4ShOPIY7DsgV+ZoAxo/5BT0KIe+f6DDU2rtIymNNFIj22NJfeeI6LWIifrwM0f+rA==} engines: {node: '>=18.0.0'} - '@smithy/middleware-serde@4.2.11': - resolution: {integrity: sha512-STQdONGPwbbC7cusL60s7vOa6He6A9w2jWhoapL0mgVjmR19pr26slV+yoSP76SIssMTX/95e5nOZ6UQv6jolg==} + '@smithy/middleware-serde@4.2.12': + resolution: {integrity: sha512-W9g1bOLui7Xn5FABRVS0o3rXL0gfN37d/8I/W7i0N7oxjx9QecUmXEMSUMADTODwdtka9cN43t5BI2CodLJpng==} engines: {node: '>=18.0.0'} - '@smithy/middleware-stack@4.2.10': - resolution: {integrity: sha512-pmts/WovNcE/tlyHa8z/groPeOtqtEpp61q3W0nW1nDJuMq/x+hWa/OVQBtgU0tBqupeXq0VBOLA4UZwE8I0YA==} + '@smithy/middleware-stack@4.2.11': + resolution: {integrity: sha512-s+eenEPW6RgliDk2IhjD2hWOxIx1NKrOHxEwNUaUXxYBxIyCcDfNULZ2Mu15E3kwcJWBedTET/kEASPV1A1Akg==} engines: {node: '>=18.0.0'} - '@smithy/node-config-provider@4.3.10': - resolution: {integrity: sha512-UALRbJtVX34AdP2VECKVlnNgidLHA2A7YgcJzwSBg1hzmnO/bZBHl/LDQQyYifzUwp1UOODnl9JJ3KNawpUJ9w==} + '@smithy/node-config-provider@4.3.11': + resolution: {integrity: sha512-xD17eE7kaLgBBGf5CZQ58hh2YmwK1Z0O8YhffwB/De2jsL0U3JklmhVYJ9Uf37OtUDLF2gsW40Xwwag9U869Gg==} engines: {node: '>=18.0.0'} - '@smithy/node-http-handler@4.4.12': - resolution: {integrity: sha512-zo1+WKJkR9x7ZtMeMDAAsq2PufwiLDmkhcjpWPRRkmeIuOm6nq1qjFICSZbnjBvD09ei8KMo26BWxsu2BUU+5w==} + '@smithy/node-http-handler@4.4.14': + resolution: {integrity: sha512-DamSqaU8nuk0xTJDrYnRzZndHwwRnyj/n/+RqGGCcBKB4qrQem0mSDiWdupaNWdwxzyMU91qxDmHOCazfhtO3A==} engines: {node: '>=18.0.0'} - '@smithy/property-provider@4.2.10': - resolution: {integrity: sha512-5jm60P0CU7tom0eNrZ7YrkgBaoLFXzmqB0wVS+4uK8PPGmosSrLNf6rRd50UBvukztawZ7zyA8TxlrKpF5z9jw==} + '@smithy/property-provider@4.2.11': + resolution: {integrity: sha512-14T1V64o6/ndyrnl1ze1ZhyLzIeYNN47oF/QU6P5m82AEtyOkMJTb0gO1dPubYjyyKuPD6OSVMPDKe+zioOnCg==} engines: {node: '>=18.0.0'} - '@smithy/protocol-http@5.3.10': - resolution: {integrity: sha512-2NzVWpYY0tRdfeCJLsgrR89KE3NTWT2wGulhNUxYlRmtRmPwLQwKzhrfVaiNlA9ZpJvbW7cjTVChYKgnkqXj1A==} + '@smithy/protocol-http@5.3.11': + resolution: {integrity: sha512-hI+barOVDJBkNt4y0L2mu3Ugc0w7+BpJ2CZuLwXtSltGAAwCb3IvnalGlbDV/UCS6a9ZuT3+exd1WxNdLb5IlQ==} engines: {node: '>=18.0.0'} - '@smithy/querystring-builder@4.2.10': - resolution: {integrity: sha512-HeN7kEvuzO2DmAzLukE9UryiUvejD3tMp9a1D1NJETerIfKobBUCLfviP6QEk500166eD2IATaXM59qgUI+YDA==} + '@smithy/querystring-builder@4.2.11': + resolution: {integrity: sha512-7spdikrYiljpket6u0up2Ck2mxhy7dZ0+TDd+S53Dg2DHd6wg+YNJrTCHiLdgZmEXZKI7LJZcwL3721ZRDFiqA==} engines: {node: '>=18.0.0'} - '@smithy/querystring-parser@4.2.10': - resolution: {integrity: sha512-4Mh18J26+ao1oX5wXJfWlTT+Q1OpDR8ssiC9PDOuEgVBGloqg18Fw7h5Ct8DyT9NBYwJgtJ2nLjKKFU6RP1G1Q==} + '@smithy/querystring-parser@4.2.11': + resolution: {integrity: sha512-nE3IRNjDltvGcoThD2abTozI1dkSy8aX+a2N1Rs55en5UsdyyIXgGEmevUL3okZFoJC77JgRGe99xYohhsjivQ==} engines: {node: '>=18.0.0'} - '@smithy/service-error-classification@4.2.10': - resolution: {integrity: sha512-0R/+/Il5y8nB/By90o8hy/bWVYptbIfvoTYad0igYQO5RefhNCDmNzqxaMx7K1t/QWo0d6UynqpqN5cCQt1MCg==} + '@smithy/service-error-classification@4.2.11': + resolution: {integrity: sha512-HkMFJZJUhzU3HvND1+Yw/kYWXp4RPDLBWLcK1n+Vqw8xn4y2YiBhdww8IxhkQjP/QlZun5bwm3vcHc8AqIU3zw==} engines: {node: '>=18.0.0'} - '@smithy/shared-ini-file-loader@4.4.5': - resolution: {integrity: sha512-pHgASxl50rrtOztgQCPmOXFjRW+mCd7ALr/3uXNzRrRoGV5G2+78GOsQ3HlQuBVHCh9o6xqMNvlIKZjWn4Euug==} + '@smithy/shared-ini-file-loader@4.4.6': + resolution: {integrity: sha512-IB/M5I8G0EeXZTHsAxpx51tMQ5R719F3aq+fjEB6VtNcCHDc0ajFDIGDZw+FW9GxtEkgTduiPpjveJdA/CX7sw==} engines: {node: '>=18.0.0'} - '@smithy/signature-v4@5.3.10': - resolution: {integrity: sha512-Wab3wW8468WqTKIxI+aZe3JYO52/RYT/8sDOdzkUhjnLakLe9qoQqIcfih/qxcF4qWEFoWBszY0mj5uxffaVXA==} + '@smithy/signature-v4@5.3.11': + resolution: {integrity: sha512-V1L6N9aKOBAN4wEHLyqjLBnAz13mtILU0SeDrjOaIZEeN6IFa6DxwRt1NNpOdmSpQUfkBj0qeD3m6P77uzMhgQ==} engines: {node: '>=18.0.0'} - '@smithy/smithy-client@4.12.0': - resolution: {integrity: sha512-R8bQ9K3lCcXyZmBnQqUZJF4ChZmtWT5NLi6x5kgWx5D+/j0KorXcA0YcFg/X5TOgnTCy1tbKc6z2g2y4amFupQ==} + '@smithy/smithy-client@4.12.3': + resolution: {integrity: sha512-7k4UxjSpHmPN2AxVhvIazRSzFQjWnud3sOsXcFStzagww17j1cFQYqTSiQ8xuYK3vKLR1Ni8FzuT3VlKr3xCNw==} engines: {node: '>=18.0.0'} '@smithy/types@4.13.0': resolution: {integrity: sha512-COuLsZILbbQsdrwKQpkkpyep7lCsByxwj7m0Mg5v66/ZTyenlfBc40/QFQ5chO0YN/PNEH1Bi3fGtfXPnYNeDw==} engines: {node: '>=18.0.0'} - '@smithy/url-parser@4.2.10': - resolution: {integrity: sha512-uypjF7fCDsRk26u3qHmFI/ePL7bxxB9vKkE+2WKEciHhz+4QtbzWiHRVNRJwU3cKhrYDYQE3b0MRFtqfLYdA4A==} + '@smithy/url-parser@4.2.11': + resolution: {integrity: sha512-oTAGGHo8ZYc5VZsBREzuf5lf2pAurJQsccMusVZ85wDkX66ojEc/XauiGjzCj50A61ObFTPe6d7Pyt6UBYaing==} engines: {node: '>=18.0.0'} - '@smithy/util-base64@4.3.1': - resolution: {integrity: sha512-BKGuawX4Doq/bI/uEmg+Zyc36rJKWuin3py89PquXBIBqmbnJwBBsmKhdHfNEp0+A4TDgLmT/3MSKZ1SxHcR6w==} + '@smithy/util-base64@4.3.2': + resolution: {integrity: sha512-XRH6b0H/5A3SgblmMa5ErXQ2XKhfbQB+Fm/oyLZ2O2kCUrwgg55bU0RekmzAhuwOjA9qdN5VU2BprOvGGUkOOQ==} engines: {node: '>=18.0.0'} - '@smithy/util-body-length-browser@4.2.1': - resolution: {integrity: sha512-SiJeLiozrAoCrgDBUgsVbmqHmMgg/2bA15AzcbcW+zan7SuyAVHN4xTSbq0GlebAIwlcaX32xacnrG488/J/6g==} + '@smithy/util-body-length-browser@4.2.2': + resolution: {integrity: sha512-JKCrLNOup3OOgmzeaKQwi4ZCTWlYR5H4Gm1r2uTMVBXoemo1UEghk5vtMi1xSu2ymgKVGW631e2fp9/R610ZjQ==} engines: {node: '>=18.0.0'} - '@smithy/util-body-length-node@4.2.2': - resolution: {integrity: sha512-4rHqBvxtJEBvsZcFQSPQqXP2b/yy/YlB66KlcEgcH2WNoOKCKB03DSLzXmOsXjbl8dJ4OEYTn31knhdznwk7zw==} + '@smithy/util-body-length-node@4.2.3': + resolution: {integrity: sha512-ZkJGvqBzMHVHE7r/hcuCxlTY8pQr1kMtdsVPs7ex4mMU+EAbcXppfo5NmyxMYi2XU49eqaz56j2gsk4dHHPG/g==} engines: {node: '>=18.0.0'} '@smithy/util-buffer-from@2.2.0': resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==} engines: {node: '>=14.0.0'} - '@smithy/util-buffer-from@4.2.1': - resolution: {integrity: sha512-/swhmt1qTiVkaejlmMPPDgZhEaWb/HWMGRBheaxwuVkusp/z+ErJyQxO6kaXumOciZSWlmq6Z5mNylCd33X7Ig==} + '@smithy/util-buffer-from@4.2.2': + resolution: {integrity: sha512-FDXD7cvUoFWwN6vtQfEta540Y/YBe5JneK3SoZg9bThSoOAC/eGeYEua6RkBgKjGa/sz6Y+DuBZj3+YEY21y4Q==} engines: {node: '>=18.0.0'} - '@smithy/util-config-provider@4.2.1': - resolution: {integrity: sha512-462id/00U8JWFw6qBuTSWfN5TxOHvDu4WliI97qOIOnuC/g+NDAknTU8eoGXEPlLkRVgWEr03jJBLV4o2FL8+A==} + '@smithy/util-config-provider@4.2.2': + resolution: {integrity: sha512-dWU03V3XUprJwaUIFVv4iOnS1FC9HnMHDfUrlNDSh4315v0cWyaIErP8KiqGVbf5z+JupoVpNM7ZB3jFiTejvQ==} engines: {node: '>=18.0.0'} - '@smithy/util-defaults-mode-browser@4.3.36': - resolution: {integrity: sha512-R0smq7EHQXRVMxkAxtH5akJ/FvgAmNF6bUy/GwY/N20T4GrwjT633NFm0VuRpC+8Bbv8R9A0DoJ9OiZL/M3xew==} + '@smithy/util-defaults-mode-browser@4.3.39': + resolution: {integrity: sha512-ui7/Ho/+VHqS7Km2wBw4/Ab4RktoiSshgcgpJzC4keFPs6tLJS4IQwbeahxQS3E/w98uq6E1mirCH/id9xIXeQ==} engines: {node: '>=18.0.0'} - '@smithy/util-defaults-mode-node@4.2.39': - resolution: {integrity: sha512-otWuoDm35btJV1L8MyHrPl462B07QCdMTktKc7/yM+Psv6KbED/ziXiHnmr7yPHUjfIwE9S8Max0LO24Mo3ZVg==} + '@smithy/util-defaults-mode-node@4.2.42': + resolution: {integrity: sha512-QDA84CWNe8Akpj15ofLO+1N3Rfg8qa2K5uX0y6HnOp4AnRYRgWrKx/xzbYNbVF9ZsyJUYOfcoaN3y93wA/QJ2A==} engines: {node: '>=18.0.0'} - '@smithy/util-endpoints@3.3.1': - resolution: {integrity: sha512-xyctc4klmjmieQiF9I1wssBWleRV0RhJ2DpO8+8yzi2LO1Z+4IWOZNGZGNj4+hq9kdo+nyfrRLmQTzc16Op2Vg==} + '@smithy/util-endpoints@3.3.2': + resolution: {integrity: sha512-+4HFLpE5u29AbFlTdlKIT7jfOzZ8PDYZKTb3e+AgLz986OYwqTourQ5H+jg79/66DB69Un1+qKecLnkZdAsYcA==} engines: {node: '>=18.0.0'} - '@smithy/util-hex-encoding@4.2.1': - resolution: {integrity: sha512-c1hHtkgAWmE35/50gmdKajgGAKV3ePJ7t6UtEmpfCWJmQE9BQAQPz0URUVI89eSkcDqCtzqllxzG28IQoZPvwA==} + '@smithy/util-hex-encoding@4.2.2': + resolution: {integrity: sha512-Qcz3W5vuHK4sLQdyT93k/rfrUwdJ8/HZ+nMUOyGdpeGA1Wxt65zYwi3oEl9kOM+RswvYq90fzkNDahPS8K0OIg==} engines: {node: '>=18.0.0'} - '@smithy/util-middleware@4.2.10': - resolution: {integrity: sha512-LxaQIWLp4y0r72eA8mwPNQ9va4h5KeLM0I3M/HV9klmFaY2kN766wf5vsTzmaOpNNb7GgXAd9a25P3h8T49PSA==} + '@smithy/util-middleware@4.2.11': + resolution: {integrity: sha512-r3dtF9F+TpSZUxpOVVtPfk09Rlo4lT6ORBqEvX3IBT6SkQAdDSVKR5GcfmZbtl7WKhKnmb3wbDTQ6ibR2XHClw==} engines: {node: '>=18.0.0'} - '@smithy/util-retry@4.2.10': - resolution: {integrity: sha512-HrBzistfpyE5uqTwiyLsFHscgnwB0kgv8vySp7q5kZ0Eltn/tjosaSGGDj/jJ9ys7pWzIP/icE2d+7vMKXLv7A==} + '@smithy/util-retry@4.2.11': + resolution: {integrity: sha512-XSZULmL5x6aCTTii59wJqKsY1l3eMIAomRAccW7Tzh9r8s7T/7rdo03oektuH5jeYRlJMPcNP92EuRDvk9aXbw==} engines: {node: '>=18.0.0'} - '@smithy/util-stream@4.5.15': - resolution: {integrity: sha512-OlOKnaqnkU9X+6wEkd7mN+WB7orPbCVDauXOj22Q7VtiTkvy7ZdSsOg4QiNAZMgI4OkvNf+/VLUC3VXkxuWJZw==} + '@smithy/util-stream@4.5.17': + resolution: {integrity: sha512-793BYZ4h2JAQkNHcEnyFxDTcZbm9bVybD0UV/LEWmZ5bkTms7JqjfrLMi2Qy0E5WFcCzLwCAPgcvcvxoeALbAQ==} engines: {node: '>=18.0.0'} - '@smithy/util-uri-escape@4.2.1': - resolution: {integrity: sha512-YmiUDn2eo2IOiWYYvGQkgX5ZkBSiTQu4FlDo5jNPpAxng2t6Sjb6WutnZV9l6VR4eJul1ABmCrnWBC9hKHQa6Q==} + '@smithy/util-uri-escape@4.2.2': + resolution: {integrity: sha512-2kAStBlvq+lTXHyAZYfJRb/DfS3rsinLiwb+69SstC9Vb0s9vNWkRwpnj918Pfi85mzi42sOqdV72OLxWAISnw==} engines: {node: '>=18.0.0'} '@smithy/util-utf8@2.3.0': resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==} engines: {node: '>=14.0.0'} - '@smithy/util-utf8@4.2.1': - resolution: {integrity: sha512-DSIwNaWtmzrNQHv8g7DBGR9mulSit65KSj5ymGEIAknmIN8IpbZefEep10LaMG/P/xquwbmJ1h9ectz8z6mV6g==} + '@smithy/util-utf8@4.2.2': + resolution: {integrity: sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==} engines: {node: '>=18.0.0'} - '@smithy/util-waiter@4.2.10': - resolution: {integrity: sha512-4eTWph/Lkg1wZEDAyObwme0kmhEb7J/JjibY2znJdrYRgKbKqB7YoEhhJVJ4R1g/SYih4zuwX7LpJaM8RsnTVg==} + '@smithy/util-waiter@4.2.11': + resolution: {integrity: sha512-x7Rh2azQPs3XxbvCzcttRErKKvLnbZfqRf/gOjw2pb+ZscX88e5UkRPCB67bVnsFHxayvMvmePfKTqsRb+is1A==} engines: {node: '>=18.0.0'} - '@smithy/uuid@1.1.1': - resolution: {integrity: sha512-dSfDCeihDmZlV2oyr0yWPTUfh07suS+R5OB+FZGiv/hHyK3hrFBW5rR1UYjfa57vBsrP9lciFkRPzebaV1Qujw==} + '@smithy/uuid@1.1.2': + resolution: {integrity: sha512-O/IEdcCUKkubz60tFbGA7ceITTAJsty+lBjNoorP4Z6XRqaFb/OjQjZODophEcuq68nKm6/0r+6/lLQ+XVpk8g==} engines: {node: '>=18.0.0'} '@standard-schema/utils@0.3.0': @@ -1139,33 +1136,33 @@ packages: peerDependencies: react: ^18 || ^19 - '@tanstack/react-router@1.163.3': - resolution: {integrity: sha512-hheBbFVb+PbxtrWp8iy6+TTRTbhx3Pn6hKo8Tv/sWlG89ZMcD1xpQWzx8ukHN9K8YWbh5rdzt4kv6u8X4kB28Q==} + '@tanstack/react-router@1.166.2': + resolution: {integrity: sha512-pKhUtrvVLlhjWhsHkJSuIzh1J4LcP+8ErbIqRLORX9Js8dUFMKoT0+8oFpi+P8QRpuhm/7rzjYiWfcyTsqQZtA==} engines: {node: '>=20.19'} peerDependencies: react: '>=18.0.0 || >=19.0.0' react-dom: '>=18.0.0 || >=19.0.0' - '@tanstack/react-store@0.9.1': - resolution: {integrity: sha512-YzJLnRvy5lIEFTLWBAZmcOjK3+2AepnBv/sr6NZmiqJvq7zTQggyK99Gw8fqYdMdHPQWXjz0epFKJXC+9V2xDA==} + '@tanstack/react-store@0.9.2': + resolution: {integrity: sha512-Vt5usJE5sHG/cMechQfmwvwne6ktGCELe89Lmvoxe3LKRoFrhPa8OCKWs0NliG8HTJElEIj7PLtaBQIcux5pAQ==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - '@tanstack/router-core@1.163.3': - resolution: {integrity: sha512-jPptiGq/w3nuPzcMC7RNa79aU+b6OjaDzWJnBcV2UAwL4ThJamRS4h42TdhJE+oF5yH9IEnCOGQdfnbw45LbfA==} + '@tanstack/router-core@1.166.2': + resolution: {integrity: sha512-zn3NhENOAX9ToQiX077UV2OH3aJKOvV2ZMNZZxZ3gDG3i3WqL8NfWfEgetEAfMN37/Mnt90PpotYgf7IyuoKqQ==} engines: {node: '>=20.19'} - '@tanstack/router-generator@1.163.3': - resolution: {integrity: sha512-i2rWRtqY/yCYUDXva1li4zeDP20oFjMt/wh9RnGJCrKSLWrvEGnxAOSyXgiOsoJnU96TTQ0mUDbGfXsSTupeZQ==} + '@tanstack/router-generator@1.166.2': + resolution: {integrity: sha512-wbvdyP1PKKQKk4aVlGeK9S5uDy8zodTr3tEZ2gRKNavJLusXbEWqtoo42JxHFFNB6dtguehFMt8PyZPAtkgWwQ==} engines: {node: '>=20.19'} - '@tanstack/router-plugin@1.163.3': - resolution: {integrity: sha512-JOUYuUX2N9ZHnmkmvmiGzXGbkvrur/5BfW/+vpiZzuifSyvdc0XsfwkTpjvwWx9ymp4ZshSVKiQQKQi09YweIw==} + '@tanstack/router-plugin@1.166.2': + resolution: {integrity: sha512-TnyV/7//Vp5fR49mmNbOWHGz9IJTm1lqVxzPdtpzg7D5PjkW2HFmLFLtWwpJgz2R7AJJWR4Ge5kIPmC+fVZ6eQ==} engines: {node: '>=20.19'} peerDependencies: '@rsbuild/core': '>=1.0.2' - '@tanstack/react-router': ^1.163.3 + '@tanstack/react-router': ^1.166.2 vite: '>=5.0.0 || >=6.0.0 || >=7.0.0' vite-plugin-solid: ^2.11.10 webpack: '>=5.92.0' @@ -1185,8 +1182,8 @@ packages: resolution: {integrity: sha512-r8TpjyIZoqrXXaf2DDyjd44gjGBoyE+/oEaaH68yLI9ySPO1gUWmQENZ1MZnmBnpUGN24NOZxdjDLc8npK0SAw==} engines: {node: '>=20.19'} - '@tanstack/store@0.9.1': - resolution: {integrity: sha512-+qcNkOy0N1qSGsP7omVCW0SDrXtaDcycPqBDE726yryiA5eTDFpjBReaYjghVJwNf1pcPMyzIwTGlYjCSQR0Fg==} + '@tanstack/store@0.9.2': + resolution: {integrity: sha512-K013lUJEFJK2ofFQ/hZKJUmCnpcV00ebLyOyFOWQvyQHUOZp/iYO84BM6aOGiV81JzwbX0APTVmW8YI7yiG5oA==} '@tanstack/virtual-file-routes@1.161.4': resolution: {integrity: sha512-42WoRePf8v690qG8yGRe/YOh+oHni9vUaUUfoqlS91U2scd3a5rkLtVsc6b7z60w3RogH0I00vdrC5AaeiZ18w==} @@ -1207,8 +1204,8 @@ packages: '@types/estree@1.0.8': resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} - '@types/node@24.10.15': - resolution: {integrity: sha512-BgjLoRuSr0MTI5wA6gMw9Xy0sFudAaUuvrnjgGx9wZ522fYYLA5SYJ+1Y30vTcJEG+DRCyDHx/gzQVfofYzSdg==} + '@types/node@24.12.0': + resolution: {integrity: sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==} '@types/react-dom@19.2.3': resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} @@ -1218,43 +1215,43 @@ packages: '@types/react@19.2.14': resolution: {integrity: sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==} - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-bSSHf2/3/pUa1FHdHkoD2SbACh4G8GQElQmkHksf42L30rgED+thloZPyQEvaIXE44IsfFDEvsa6reF/pob5Aw==} + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-VpnrMP4iDLSTT9Hg/KrHwuIHLZr5dxYPMFErfv3ZDA0tv48u2H1lBhHVVMMopCuskuX3C35EOJbxLkxCJd6zDw==} cpu: [arm64] os: [darwin] - '@typescript/native-preview-darwin-x64@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-CfBxf/qEFgoe1zZ8U/DfgP2izrDEnERXj2uuX5Mi2m6NIdS6yo9fv+TiQS7UDINIOcRaN17NMUmIRrj8RLz3TA==} + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-+4akGPxwfrPy2AYmQO1bp6CXxUVlBPrL0lSv+wY/E8vNGqwF0UtJCwAcR54ae1+k9EmoirT7Xn6LE3Io6mXntg==} cpu: [x64] os: [darwin] - '@typescript/native-preview-linux-arm64@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-Ojecn2PD9Pgs3UUkxzKNwesFmKiCrRHHc6DFlE7Tpsf53tLEOkVTS8SdYOxoPvbM+ee9lQ+WDWyHsOHfbUXFuQ==} + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-u4kXuHN2p+HeWsnTixoEOwALsCoS+n3/ukWdnV/mwyg6BKuuU69qCv3/miY6YPFtE7mUwzPdflEXsvkZJbJ/RA==} cpu: [arm64] os: [linux] - '@typescript/native-preview-linux-arm@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-TWdwsqactujpdAuu/pepoXg7DK2TQ6Q3kYeqLlTic+0d61jece12yqk4hlmXXzQrc5D2ht9Qr3ny4BHyBvKlZw==} + '@typescript/native-preview-linux-arm@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-E0Pve6BjTVvPiHq9cPVQu6fbW/Qo/CEs1VN2NMILd0xzFVpVd9FIvzV+Ft6pZilu1SBcihThW3sQ92l03Cw2+Q==} cpu: [arm] os: [linux] - '@typescript/native-preview-linux-x64@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-f+8wzy/4xcDMgAdkJy722BL0pau8O0S4+HUR2CyFJy7HbDIGbbl/Zm5ZAq2xjMGEdq83+klp+7y/JuDIb0herA==} + '@typescript/native-preview-linux-x64@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-MzuRjTYQIS7XrJcH0As18SbaQU+rFhf9LCpXs2QeHjhXQ33wjuFDNhQeurg2eKm6A0xE0GoW9K+sKsm8bhzzPg==} cpu: [x64] os: [linux] - '@typescript/native-preview-win32-arm64@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-yN+UMH41G2UgXn5ER0FzgVQPQ6YLfpSoSaWV38l+hIkgKQSv7TsF778Svgh0dd5OpFKoeQ1aPOMalugxI3FnWw==} + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-UNZl8Q6lx1njEPU8+FNjYvqii5PtDjk6cyxmVPwwJI2Snz5T5qY6oadkUds6CJsLkt7s4UB3P5XgLu1+vwoYGw==} cpu: [arm64] os: [win32] - '@typescript/native-preview-win32-x64@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-Ni9nVkZRt3MofSUSilF51w1tkxlPegz3+zJLDPZZdc0IIaENTP37gfVkngio4tdsjIjsPFieJOkogej/wYT1AA==} + '@typescript/native-preview-win32-x64@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-aPJb4v0Df9GzWFWbO4YbLg0OjmjxZgXngkF1M746r4CgOdydWgosNPWypzzAwiliGKvCLwfAWYiV+T5Jf1vQ3g==} cpu: [x64] os: [win32] - '@typescript/native-preview@7.0.0-dev.20260302.1': - resolution: {integrity: sha512-KR2mM+hGSF9CcYRFLe/8jAFuRr0Ao3vJDnfGtEoSSpgfw0kCZTMv8fyBc5Vicrg/ByZSwGhZf7Q8HDc5lPYLGg==} + '@typescript/native-preview@7.0.0-dev.20260307.1': + resolution: {integrity: sha512-NcKdPiGjxxxdh7fLgRKTrn5hLntbt89NOodNaSrMChTfJwvLaDkgrRlnO7v5x+m7nQc87Qf1y7UoT1ZEZUBB4Q==} hasBin: true '@vitejs/plugin-basic-ssl@2.1.4': @@ -1327,8 +1324,8 @@ packages: buffer@5.6.0: resolution: {integrity: sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==} - caniuse-lite@1.0.30001774: - resolution: {integrity: sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA==} + caniuse-lite@1.0.30001777: + resolution: {integrity: sha512-tmN+fJxroPndC74efCdp12j+0rk0RHwV5Jwa1zWaFVyw2ZxAuPeG8ZgWC3Wz7uSjT3qMRQ5XHZ4COgQmsCMJAQ==} chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} @@ -1378,11 +1375,11 @@ packages: resolution: {integrity: sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ==} engines: {node: '>=0.3.1'} - electron-to-chromium@1.5.302: - resolution: {integrity: sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==} + electron-to-chromium@1.5.307: + resolution: {integrity: sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg==} - enhanced-resolve@5.19.0: - resolution: {integrity: sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==} + enhanced-resolve@5.20.0: + resolution: {integrity: sha512-/ce7+jQ1PQ6rVXwe+jKEg5hW5ciicHwIQUagZkp6IufBoY3YDgdTTY1azVs0qoRgVmvsNB+rbjLJxDAeHHtwsQ==} engines: {node: '>=10.13.0'} esbuild@0.27.3: @@ -1573,8 +1570,8 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lucide-react@0.575.0: - resolution: {integrity: sha512-VuXgKZrk0uiDlWjGGXmKV6MSk9Yy4l10qgVvzGn2AWBx1Ylt0iBexKOAoA6I7JO3m+M9oeovJd3yYENfkUbOeg==} + lucide-react@0.577.0: + resolution: {integrity: sha512-4LjoFv2eEPwYDPg/CUdBJQSDfPyzXCRrVW1X7jrx/trgxnxkHFjnVZINbzvzxjN70dxychOfg+FTYwBiS3pQ5A==} peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 @@ -1597,8 +1594,8 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - node-releases@2.0.27: - resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==} + node-releases@2.0.36: + resolution: {integrity: sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==} normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} @@ -1627,8 +1624,8 @@ packages: resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} engines: {node: '>=12'} - postcss@8.5.6: - resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + postcss@8.5.8: + resolution: {integrity: sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==} engines: {node: ^10 || ^12 || >=14} prettier@3.8.1: @@ -1719,8 +1716,8 @@ packages: string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - strnum@2.1.2: - resolution: {integrity: sha512-l63NF9y/cLROq/yqKXSLtcMeeyOfnSQlfMSlzFt/K73oIaD8DGaQWd7Z34X9GPiKqP5rbSh84Hl4bOlLcjiSrQ==} + strnum@2.2.0: + resolution: {integrity: sha512-Y7Bj8XyJxnPAORMZj/xltsfo55uOiyHcU2tnAVzHUnSJR/KsEX+9RoDeXEnsXtl/CX4fAcrt64gZ13aGaWPeBg==} tabbable@6.4.0: resolution: {integrity: sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==} @@ -1766,8 +1763,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - ultracite@7.2.4: - resolution: {integrity: sha512-3b2g2pwZMDSd+PBK8pxYCjEoYaqVSgXD22HS22BxR8GfbmRXJ3VpNu5Z5lNywIxZXsJleWdpGPHibOPYr/xmKg==} + ultracite@7.2.5: + resolution: {integrity: sha512-Fw+V7P/gzTcVz6wmyYxaw8AGIOYDOilzwEiQq7pDGjrHwqdSzNrzevh1wxk0FTYfSHhk5a+wX02/Ayu8IK/x0A==} hasBin: true peerDependencies: oxlint: ^1.0.0 @@ -1853,21 +1850,21 @@ snapshots: '@aws-crypto/crc32@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 tslib: 2.8.1 '@aws-crypto/crc32c@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 tslib: 2.8.1 '@aws-crypto/sha1-browser@5.2.0': dependencies: '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-locate-window': 3.965.4 + '@aws-sdk/types': 3.973.5 + '@aws-sdk/util-locate-window': 3.965.5 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -1876,15 +1873,15 @@ snapshots: '@aws-crypto/sha256-js': 5.2.0 '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-locate-window': 3.965.4 + '@aws-sdk/types': 3.973.5 + '@aws-sdk/util-locate-window': 3.965.5 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 '@aws-crypto/sha256-js@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 tslib: 2.8.1 '@aws-crypto/supports-web-crypto@5.2.0': @@ -1893,518 +1890,519 @@ snapshots: '@aws-crypto/util@5.2.0': dependencies: - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 - '@aws-sdk/client-ec2@3.1000.0': + '@aws-sdk/client-ec2@3.1004.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.973.15 - '@aws-sdk/credential-provider-node': 3.972.14 - '@aws-sdk/middleware-host-header': 3.972.6 - '@aws-sdk/middleware-logger': 3.972.6 - '@aws-sdk/middleware-recursion-detection': 3.972.6 - '@aws-sdk/middleware-sdk-ec2': 3.972.11 - '@aws-sdk/middleware-user-agent': 3.972.15 - '@aws-sdk/region-config-resolver': 3.972.6 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-endpoints': 3.996.3 - '@aws-sdk/util-user-agent-browser': 3.972.6 - '@aws-sdk/util-user-agent-node': 3.973.0 - '@smithy/config-resolver': 4.4.9 - '@smithy/core': 3.23.6 - '@smithy/fetch-http-handler': 5.3.11 - '@smithy/hash-node': 4.2.10 - '@smithy/invalid-dependency': 4.2.10 - '@smithy/middleware-content-length': 4.2.10 - '@smithy/middleware-endpoint': 4.4.20 - '@smithy/middleware-retry': 4.4.37 - '@smithy/middleware-serde': 4.2.11 - '@smithy/middleware-stack': 4.2.10 - '@smithy/node-config-provider': 4.3.10 - '@smithy/node-http-handler': 4.4.12 - '@smithy/protocol-http': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@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.9 + '@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.23 + '@smithy/middleware-retry': 4.4.40 + '@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.3 '@smithy/types': 4.13.0 - '@smithy/url-parser': 4.2.10 - '@smithy/util-base64': 4.3.1 - '@smithy/util-body-length-browser': 4.2.1 - '@smithy/util-body-length-node': 4.2.2 - '@smithy/util-defaults-mode-browser': 4.3.36 - '@smithy/util-defaults-mode-node': 4.2.39 - '@smithy/util-endpoints': 3.3.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-retry': 4.2.10 - '@smithy/util-utf8': 4.2.1 - '@smithy/util-waiter': 4.2.10 + '@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.39 + '@smithy/util-defaults-mode-node': 4.2.42 + '@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.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iam@3.1000.0': + '@aws-sdk/client-iam@3.1004.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.973.15 - '@aws-sdk/credential-provider-node': 3.972.14 - '@aws-sdk/middleware-host-header': 3.972.6 - '@aws-sdk/middleware-logger': 3.972.6 - '@aws-sdk/middleware-recursion-detection': 3.972.6 - '@aws-sdk/middleware-user-agent': 3.972.15 - '@aws-sdk/region-config-resolver': 3.972.6 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-endpoints': 3.996.3 - '@aws-sdk/util-user-agent-browser': 3.972.6 - '@aws-sdk/util-user-agent-node': 3.973.0 - '@smithy/config-resolver': 4.4.9 - '@smithy/core': 3.23.6 - '@smithy/fetch-http-handler': 5.3.11 - '@smithy/hash-node': 4.2.10 - '@smithy/invalid-dependency': 4.2.10 - '@smithy/middleware-content-length': 4.2.10 - '@smithy/middleware-endpoint': 4.4.20 - '@smithy/middleware-retry': 4.4.37 - '@smithy/middleware-serde': 4.2.11 - '@smithy/middleware-stack': 4.2.10 - '@smithy/node-config-provider': 4.3.10 - '@smithy/node-http-handler': 4.4.12 - '@smithy/protocol-http': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@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.9 + '@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.23 + '@smithy/middleware-retry': 4.4.40 + '@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.3 '@smithy/types': 4.13.0 - '@smithy/url-parser': 4.2.10 - '@smithy/util-base64': 4.3.1 - '@smithy/util-body-length-browser': 4.2.1 - '@smithy/util-body-length-node': 4.2.2 - '@smithy/util-defaults-mode-browser': 4.3.36 - '@smithy/util-defaults-mode-node': 4.2.39 - '@smithy/util-endpoints': 3.3.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-retry': 4.2.10 - '@smithy/util-utf8': 4.2.1 - '@smithy/util-waiter': 4.2.10 + '@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.39 + '@smithy/util-defaults-mode-node': 4.2.42 + '@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.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-s3@3.1000.0': + '@aws-sdk/client-s3@3.1004.0': dependencies: '@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.15 - '@aws-sdk/credential-provider-node': 3.972.14 - '@aws-sdk/middleware-bucket-endpoint': 3.972.6 - '@aws-sdk/middleware-expect-continue': 3.972.6 - '@aws-sdk/middleware-flexible-checksums': 3.973.1 - '@aws-sdk/middleware-host-header': 3.972.6 - '@aws-sdk/middleware-location-constraint': 3.972.6 - '@aws-sdk/middleware-logger': 3.972.6 - '@aws-sdk/middleware-recursion-detection': 3.972.6 - '@aws-sdk/middleware-sdk-s3': 3.972.15 - '@aws-sdk/middleware-ssec': 3.972.6 - '@aws-sdk/middleware-user-agent': 3.972.15 - '@aws-sdk/region-config-resolver': 3.972.6 - '@aws-sdk/signature-v4-multi-region': 3.996.3 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-endpoints': 3.996.3 - '@aws-sdk/util-user-agent-browser': 3.972.6 - '@aws-sdk/util-user-agent-node': 3.973.0 - '@smithy/config-resolver': 4.4.9 - '@smithy/core': 3.23.6 - '@smithy/eventstream-serde-browser': 4.2.10 - '@smithy/eventstream-serde-config-resolver': 4.3.10 - '@smithy/eventstream-serde-node': 4.2.10 - '@smithy/fetch-http-handler': 5.3.11 - '@smithy/hash-blob-browser': 4.2.11 - '@smithy/hash-node': 4.2.10 - '@smithy/hash-stream-node': 4.2.10 - '@smithy/invalid-dependency': 4.2.10 - '@smithy/md5-js': 4.2.10 - '@smithy/middleware-content-length': 4.2.10 - '@smithy/middleware-endpoint': 4.4.20 - '@smithy/middleware-retry': 4.4.37 - '@smithy/middleware-serde': 4.2.11 - '@smithy/middleware-stack': 4.2.10 - '@smithy/node-config-provider': 4.3.10 - '@smithy/node-http-handler': 4.4.12 - '@smithy/protocol-http': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@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.9 + '@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.23 + '@smithy/middleware-retry': 4.4.40 + '@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.3 '@smithy/types': 4.13.0 - '@smithy/url-parser': 4.2.10 - '@smithy/util-base64': 4.3.1 - '@smithy/util-body-length-browser': 4.2.1 - '@smithy/util-body-length-node': 4.2.2 - '@smithy/util-defaults-mode-browser': 4.3.36 - '@smithy/util-defaults-mode-node': 4.2.39 - '@smithy/util-endpoints': 3.3.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-retry': 4.2.10 - '@smithy/util-stream': 4.5.15 - '@smithy/util-utf8': 4.2.1 - '@smithy/util-waiter': 4.2.10 + '@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.39 + '@smithy/util-defaults-mode-node': 4.2.42 + '@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.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/core@3.973.15': + '@aws-sdk/core@3.973.18': dependencies: - '@aws-sdk/types': 3.973.4 - '@aws-sdk/xml-builder': 3.972.8 - '@smithy/core': 3.23.6 - '@smithy/node-config-provider': 4.3.10 - '@smithy/property-provider': 4.2.10 - '@smithy/protocol-http': 5.3.10 - '@smithy/signature-v4': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@aws-sdk/types': 3.973.5 + '@aws-sdk/xml-builder': 3.972.10 + '@smithy/core': 3.23.9 + '@smithy/node-config-provider': 4.3.11 + '@smithy/property-provider': 4.2.11 + '@smithy/protocol-http': 5.3.11 + '@smithy/signature-v4': 5.3.11 + '@smithy/smithy-client': 4.12.3 '@smithy/types': 4.13.0 - '@smithy/util-base64': 4.3.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-base64': 4.3.2 + '@smithy/util-middleware': 4.2.11 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@aws-sdk/crc64-nvme@3.972.3': + '@aws-sdk/crc64-nvme@3.972.4': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-env@3.972.13': + '@aws-sdk/credential-provider-env@3.972.16': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/types': 3.973.4 - '@smithy/property-provider': 4.2.10 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/types': 3.973.5 + '@smithy/property-provider': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-http@3.972.15': + '@aws-sdk/credential-provider-http@3.972.18': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/types': 3.973.4 - '@smithy/fetch-http-handler': 5.3.11 - '@smithy/node-http-handler': 4.4.12 - '@smithy/property-provider': 4.2.10 - '@smithy/protocol-http': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/types': 3.973.5 + '@smithy/fetch-http-handler': 5.3.13 + '@smithy/node-http-handler': 4.4.14 + '@smithy/property-provider': 4.2.11 + '@smithy/protocol-http': 5.3.11 + '@smithy/smithy-client': 4.12.3 '@smithy/types': 4.13.0 - '@smithy/util-stream': 4.5.15 + '@smithy/util-stream': 4.5.17 tslib: 2.8.1 - '@aws-sdk/credential-provider-ini@3.972.13': + '@aws-sdk/credential-provider-ini@3.972.17': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/credential-provider-env': 3.972.13 - '@aws-sdk/credential-provider-http': 3.972.15 - '@aws-sdk/credential-provider-login': 3.972.13 - '@aws-sdk/credential-provider-process': 3.972.13 - '@aws-sdk/credential-provider-sso': 3.972.13 - '@aws-sdk/credential-provider-web-identity': 3.972.13 - '@aws-sdk/nested-clients': 3.996.3 - '@aws-sdk/types': 3.973.4 - '@smithy/credential-provider-imds': 4.2.10 - '@smithy/property-provider': 4.2.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/credential-provider-env': 3.972.16 + '@aws-sdk/credential-provider-http': 3.972.18 + '@aws-sdk/credential-provider-login': 3.972.17 + '@aws-sdk/credential-provider-process': 3.972.16 + '@aws-sdk/credential-provider-sso': 3.972.17 + '@aws-sdk/credential-provider-web-identity': 3.972.17 + '@aws-sdk/nested-clients': 3.996.7 + '@aws-sdk/types': 3.973.5 + '@smithy/credential-provider-imds': 4.2.11 + '@smithy/property-provider': 4.2.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-login@3.972.13': + '@aws-sdk/credential-provider-login@3.972.17': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/nested-clients': 3.996.3 - '@aws-sdk/types': 3.973.4 - '@smithy/property-provider': 4.2.10 - '@smithy/protocol-http': 5.3.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/nested-clients': 3.996.7 + '@aws-sdk/types': 3.973.5 + '@smithy/property-provider': 4.2.11 + '@smithy/protocol-http': 5.3.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-node@3.972.14': + '@aws-sdk/credential-provider-node@3.972.18': dependencies: - '@aws-sdk/credential-provider-env': 3.972.13 - '@aws-sdk/credential-provider-http': 3.972.15 - '@aws-sdk/credential-provider-ini': 3.972.13 - '@aws-sdk/credential-provider-process': 3.972.13 - '@aws-sdk/credential-provider-sso': 3.972.13 - '@aws-sdk/credential-provider-web-identity': 3.972.13 - '@aws-sdk/types': 3.973.4 - '@smithy/credential-provider-imds': 4.2.10 - '@smithy/property-provider': 4.2.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@aws-sdk/credential-provider-env': 3.972.16 + '@aws-sdk/credential-provider-http': 3.972.18 + '@aws-sdk/credential-provider-ini': 3.972.17 + '@aws-sdk/credential-provider-process': 3.972.16 + '@aws-sdk/credential-provider-sso': 3.972.17 + '@aws-sdk/credential-provider-web-identity': 3.972.17 + '@aws-sdk/types': 3.973.5 + '@smithy/credential-provider-imds': 4.2.11 + '@smithy/property-provider': 4.2.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-process@3.972.13': + '@aws-sdk/credential-provider-process@3.972.16': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/types': 3.973.4 - '@smithy/property-provider': 4.2.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/types': 3.973.5 + '@smithy/property-provider': 4.2.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.972.13': + '@aws-sdk/credential-provider-sso@3.972.17': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/nested-clients': 3.996.3 - '@aws-sdk/token-providers': 3.999.0 - '@aws-sdk/types': 3.973.4 - '@smithy/property-provider': 4.2.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/nested-clients': 3.996.7 + '@aws-sdk/token-providers': 3.1004.0 + '@aws-sdk/types': 3.973.5 + '@smithy/property-provider': 4.2.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-web-identity@3.972.13': + '@aws-sdk/credential-provider-web-identity@3.972.17': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/nested-clients': 3.996.3 - '@aws-sdk/types': 3.973.4 - '@smithy/property-provider': 4.2.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/nested-clients': 3.996.7 + '@aws-sdk/types': 3.973.5 + '@smithy/property-provider': 4.2.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/lib-storage@3.1000.0(@aws-sdk/client-s3@3.1000.0)': + '@aws-sdk/lib-storage@3.1004.0(@aws-sdk/client-s3@3.1004.0)': dependencies: - '@aws-sdk/client-s3': 3.1000.0 - '@smithy/abort-controller': 4.2.10 - '@smithy/middleware-endpoint': 4.4.20 - '@smithy/smithy-client': 4.12.0 + '@aws-sdk/client-s3': 3.1004.0 + '@smithy/abort-controller': 4.2.11 + '@smithy/middleware-endpoint': 4.4.23 + '@smithy/smithy-client': 4.12.3 buffer: 5.6.0 events: 3.3.0 stream-browserify: 3.0.0 tslib: 2.8.1 - '@aws-sdk/middleware-bucket-endpoint@3.972.6': + '@aws-sdk/middleware-bucket-endpoint@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-arn-parser': 3.972.2 - '@smithy/node-config-provider': 4.3.10 - '@smithy/protocol-http': 5.3.10 + '@aws-sdk/types': 3.973.5 + '@aws-sdk/util-arn-parser': 3.972.3 + '@smithy/node-config-provider': 4.3.11 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 - '@smithy/util-config-provider': 4.2.1 + '@smithy/util-config-provider': 4.2.2 tslib: 2.8.1 - '@aws-sdk/middleware-expect-continue@3.972.6': + '@aws-sdk/middleware-expect-continue@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 - '@smithy/protocol-http': 5.3.10 + '@aws-sdk/types': 3.973.5 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/middleware-flexible-checksums@3.973.1': + '@aws-sdk/middleware-flexible-checksums@3.973.4': dependencies: '@aws-crypto/crc32': 5.2.0 '@aws-crypto/crc32c': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/core': 3.973.15 - '@aws-sdk/crc64-nvme': 3.972.3 - '@aws-sdk/types': 3.973.4 - '@smithy/is-array-buffer': 4.2.1 - '@smithy/node-config-provider': 4.3.10 - '@smithy/protocol-http': 5.3.10 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/crc64-nvme': 3.972.4 + '@aws-sdk/types': 3.973.5 + '@smithy/is-array-buffer': 4.2.2 + '@smithy/node-config-provider': 4.3.11 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-stream': 4.5.15 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-middleware': 4.2.11 + '@smithy/util-stream': 4.5.17 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@aws-sdk/middleware-host-header@3.972.6': + '@aws-sdk/middleware-host-header@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 - '@smithy/protocol-http': 5.3.10 + '@aws-sdk/types': 3.973.5 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/middleware-location-constraint@3.972.6': + '@aws-sdk/middleware-location-constraint@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/middleware-logger@3.972.6': + '@aws-sdk/middleware-logger@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/middleware-recursion-detection@3.972.6': + '@aws-sdk/middleware-recursion-detection@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 '@aws/lambda-invoke-store': 0.2.3 - '@smithy/protocol-http': 5.3.10 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-ec2@3.972.11': + '@aws-sdk/middleware-sdk-ec2@3.972.13': dependencies: - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-format-url': 3.972.6 - '@smithy/middleware-endpoint': 4.4.20 - '@smithy/protocol-http': 5.3.10 - '@smithy/signature-v4': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@aws-sdk/types': 3.973.5 + '@aws-sdk/util-format-url': 3.972.7 + '@smithy/middleware-endpoint': 4.4.23 + '@smithy/protocol-http': 5.3.11 + '@smithy/signature-v4': 5.3.11 + '@smithy/smithy-client': 4.12.3 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-s3@3.972.15': + '@aws-sdk/middleware-sdk-s3@3.972.18': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-arn-parser': 3.972.2 - '@smithy/core': 3.23.6 - '@smithy/node-config-provider': 4.3.10 - '@smithy/protocol-http': 5.3.10 - '@smithy/signature-v4': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/types': 3.973.5 + '@aws-sdk/util-arn-parser': 3.972.3 + '@smithy/core': 3.23.9 + '@smithy/node-config-provider': 4.3.11 + '@smithy/protocol-http': 5.3.11 + '@smithy/signature-v4': 5.3.11 + '@smithy/smithy-client': 4.12.3 '@smithy/types': 4.13.0 - '@smithy/util-config-provider': 4.2.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-stream': 4.5.15 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-config-provider': 4.2.2 + '@smithy/util-middleware': 4.2.11 + '@smithy/util-stream': 4.5.17 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@aws-sdk/middleware-ssec@3.972.6': + '@aws-sdk/middleware-ssec@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/middleware-user-agent@3.972.15': + '@aws-sdk/middleware-user-agent@3.972.19': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-endpoints': 3.996.3 - '@smithy/core': 3.23.6 - '@smithy/protocol-http': 5.3.10 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/types': 3.973.5 + '@aws-sdk/util-endpoints': 3.996.4 + '@smithy/core': 3.23.9 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 + '@smithy/util-retry': 4.2.11 tslib: 2.8.1 - '@aws-sdk/nested-clients@3.996.3': + '@aws-sdk/nested-clients@3.996.7': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.973.15 - '@aws-sdk/middleware-host-header': 3.972.6 - '@aws-sdk/middleware-logger': 3.972.6 - '@aws-sdk/middleware-recursion-detection': 3.972.6 - '@aws-sdk/middleware-user-agent': 3.972.15 - '@aws-sdk/region-config-resolver': 3.972.6 - '@aws-sdk/types': 3.973.4 - '@aws-sdk/util-endpoints': 3.996.3 - '@aws-sdk/util-user-agent-browser': 3.972.6 - '@aws-sdk/util-user-agent-node': 3.973.0 - '@smithy/config-resolver': 4.4.9 - '@smithy/core': 3.23.6 - '@smithy/fetch-http-handler': 5.3.11 - '@smithy/hash-node': 4.2.10 - '@smithy/invalid-dependency': 4.2.10 - '@smithy/middleware-content-length': 4.2.10 - '@smithy/middleware-endpoint': 4.4.20 - '@smithy/middleware-retry': 4.4.37 - '@smithy/middleware-serde': 4.2.11 - '@smithy/middleware-stack': 4.2.10 - '@smithy/node-config-provider': 4.3.10 - '@smithy/node-http-handler': 4.4.12 - '@smithy/protocol-http': 5.3.10 - '@smithy/smithy-client': 4.12.0 + '@aws-sdk/core': 3.973.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.9 + '@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.23 + '@smithy/middleware-retry': 4.4.40 + '@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.3 '@smithy/types': 4.13.0 - '@smithy/url-parser': 4.2.10 - '@smithy/util-base64': 4.3.1 - '@smithy/util-body-length-browser': 4.2.1 - '@smithy/util-body-length-node': 4.2.2 - '@smithy/util-defaults-mode-browser': 4.3.36 - '@smithy/util-defaults-mode-node': 4.2.39 - '@smithy/util-endpoints': 3.3.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-retry': 4.2.10 - '@smithy/util-utf8': 4.2.1 + '@smithy/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.39 + '@smithy/util-defaults-mode-node': 4.2.42 + '@smithy/util-endpoints': 3.3.2 + '@smithy/util-middleware': 4.2.11 + '@smithy/util-retry': 4.2.11 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/region-config-resolver@3.972.6': + '@aws-sdk/region-config-resolver@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 - '@smithy/config-resolver': 4.4.9 - '@smithy/node-config-provider': 4.3.10 + '@aws-sdk/types': 3.973.5 + '@smithy/config-resolver': 4.4.10 + '@smithy/node-config-provider': 4.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/signature-v4-multi-region@3.996.3': + '@aws-sdk/signature-v4-multi-region@3.996.6': dependencies: - '@aws-sdk/middleware-sdk-s3': 3.972.15 - '@aws-sdk/types': 3.973.4 - '@smithy/protocol-http': 5.3.10 - '@smithy/signature-v4': 5.3.10 + '@aws-sdk/middleware-sdk-s3': 3.972.18 + '@aws-sdk/types': 3.973.5 + '@smithy/protocol-http': 5.3.11 + '@smithy/signature-v4': 5.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/token-providers@3.999.0': + '@aws-sdk/token-providers@3.1004.0': dependencies: - '@aws-sdk/core': 3.973.15 - '@aws-sdk/nested-clients': 3.996.3 - '@aws-sdk/types': 3.973.4 - '@smithy/property-provider': 4.2.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@aws-sdk/core': 3.973.18 + '@aws-sdk/nested-clients': 3.996.7 + '@aws-sdk/types': 3.973.5 + '@smithy/property-provider': 4.2.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/types@3.973.4': + '@aws-sdk/types@3.973.5': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/util-arn-parser@3.972.2': + '@aws-sdk/util-arn-parser@3.972.3': dependencies: tslib: 2.8.1 - '@aws-sdk/util-endpoints@3.996.3': + '@aws-sdk/util-endpoints@3.996.4': dependencies: - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 '@smithy/types': 4.13.0 - '@smithy/url-parser': 4.2.10 - '@smithy/util-endpoints': 3.3.1 + '@smithy/url-parser': 4.2.11 + '@smithy/util-endpoints': 3.3.2 tslib: 2.8.1 - '@aws-sdk/util-format-url@3.972.6': + '@aws-sdk/util-format-url@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 - '@smithy/querystring-builder': 4.2.10 + '@aws-sdk/types': 3.973.5 + '@smithy/querystring-builder': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/util-locate-window@3.965.4': + '@aws-sdk/util-locate-window@3.965.5': dependencies: tslib: 2.8.1 - '@aws-sdk/util-user-agent-browser@3.972.6': + '@aws-sdk/util-user-agent-browser@3.972.7': dependencies: - '@aws-sdk/types': 3.973.4 + '@aws-sdk/types': 3.973.5 '@smithy/types': 4.13.0 bowser: 2.14.1 tslib: 2.8.1 - '@aws-sdk/util-user-agent-node@3.973.0': + '@aws-sdk/util-user-agent-node@3.973.4': dependencies: - '@aws-sdk/middleware-user-agent': 3.972.15 - '@aws-sdk/types': 3.973.4 - '@smithy/node-config-provider': 4.3.10 + '@aws-sdk/middleware-user-agent': 3.972.19 + '@aws-sdk/types': 3.973.5 + '@smithy/node-config-provider': 4.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@aws-sdk/xml-builder@3.972.8': + '@aws-sdk/xml-builder@3.972.10': dependencies: '@smithy/types': 4.13.0 fast-xml-parser: 5.4.1 @@ -2540,8 +2538,8 @@ snapshots: dependencies: '@babel/runtime': 7.28.6 '@base-ui/utils': 0.2.5(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - '@floating-ui/react-dom': 2.1.7(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - '@floating-ui/utils': 0.2.10 + '@floating-ui/react-dom': 2.1.8(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@floating-ui/utils': 0.2.11 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) tabbable: 6.4.0 @@ -2552,7 +2550,7 @@ snapshots: '@base-ui/utils@0.2.5(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': dependencies: '@babel/runtime': 7.28.6 - '@floating-ui/utils': 0.2.10 + '@floating-ui/utils': 0.2.11 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) reselect: 5.1.1 @@ -2560,50 +2558,48 @@ snapshots: optionalDependencies: '@types/react': 19.2.14 - '@biomejs/biome@2.4.4': + '@biomejs/biome@2.4.6': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.4.4 - '@biomejs/cli-darwin-x64': 2.4.4 - '@biomejs/cli-linux-arm64': 2.4.4 - '@biomejs/cli-linux-arm64-musl': 2.4.4 - '@biomejs/cli-linux-x64': 2.4.4 - '@biomejs/cli-linux-x64-musl': 2.4.4 - '@biomejs/cli-win32-arm64': 2.4.4 - '@biomejs/cli-win32-x64': 2.4.4 + '@biomejs/cli-darwin-arm64': 2.4.6 + '@biomejs/cli-darwin-x64': 2.4.6 + '@biomejs/cli-linux-arm64': 2.4.6 + '@biomejs/cli-linux-arm64-musl': 2.4.6 + '@biomejs/cli-linux-x64': 2.4.6 + '@biomejs/cli-linux-x64-musl': 2.4.6 + '@biomejs/cli-win32-arm64': 2.4.6 + '@biomejs/cli-win32-x64': 2.4.6 - '@biomejs/cli-darwin-arm64@2.4.4': + '@biomejs/cli-darwin-arm64@2.4.6': optional: true - '@biomejs/cli-darwin-x64@2.4.4': + '@biomejs/cli-darwin-x64@2.4.6': optional: true - '@biomejs/cli-linux-arm64-musl@2.4.4': + '@biomejs/cli-linux-arm64-musl@2.4.6': optional: true - '@biomejs/cli-linux-arm64@2.4.4': + '@biomejs/cli-linux-arm64@2.4.6': optional: true - '@biomejs/cli-linux-x64-musl@2.4.4': + '@biomejs/cli-linux-x64-musl@2.4.6': optional: true - '@biomejs/cli-linux-x64@2.4.4': + '@biomejs/cli-linux-x64@2.4.6': optional: true - '@biomejs/cli-win32-arm64@2.4.4': + '@biomejs/cli-win32-arm64@2.4.6': optional: true - '@biomejs/cli-win32-x64@2.4.4': + '@biomejs/cli-win32-x64@2.4.6': optional: true - '@clack/core@1.0.1': + '@clack/core@1.1.0': dependencies: - picocolors: 1.1.1 sisteransi: 1.0.5 - '@clack/prompts@1.0.1': + '@clack/prompts@1.1.0': dependencies: - '@clack/core': 1.0.1 - picocolors: 1.1.1 + '@clack/core': 1.1.0 sisteransi: 1.0.5 '@esbuild/aix-ppc64@0.27.3': @@ -2684,22 +2680,22 @@ snapshots: '@esbuild/win32-x64@0.27.3': optional: true - '@floating-ui/core@1.7.4': + '@floating-ui/core@1.7.5': dependencies: - '@floating-ui/utils': 0.2.10 + '@floating-ui/utils': 0.2.11 - '@floating-ui/dom@1.7.5': + '@floating-ui/dom@1.7.6': dependencies: - '@floating-ui/core': 1.7.4 - '@floating-ui/utils': 0.2.10 + '@floating-ui/core': 1.7.5 + '@floating-ui/utils': 0.2.11 - '@floating-ui/react-dom@2.1.7(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + '@floating-ui/react-dom@2.1.8(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': dependencies: - '@floating-ui/dom': 1.7.5 + '@floating-ui/dom': 1.7.6 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) - '@floating-ui/utils@0.2.10': {} + '@floating-ui/utils@0.2.11': {} '@fontsource-variable/geist@5.2.8': {} @@ -2806,109 +2802,109 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.59.0': optional: true - '@smithy/abort-controller@4.2.10': + '@smithy/abort-controller@4.2.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/chunked-blob-reader-native@4.2.2': + '@smithy/chunked-blob-reader-native@4.2.3': dependencies: - '@smithy/util-base64': 4.3.1 + '@smithy/util-base64': 4.3.2 tslib: 2.8.1 - '@smithy/chunked-blob-reader@5.2.1': + '@smithy/chunked-blob-reader@5.2.2': dependencies: tslib: 2.8.1 - '@smithy/config-resolver@4.4.9': + '@smithy/config-resolver@4.4.10': dependencies: - '@smithy/node-config-provider': 4.3.10 + '@smithy/node-config-provider': 4.3.11 '@smithy/types': 4.13.0 - '@smithy/util-config-provider': 4.2.1 - '@smithy/util-endpoints': 3.3.1 - '@smithy/util-middleware': 4.2.10 + '@smithy/util-config-provider': 4.2.2 + '@smithy/util-endpoints': 3.3.2 + '@smithy/util-middleware': 4.2.11 tslib: 2.8.1 - '@smithy/core@3.23.6': + '@smithy/core@3.23.9': dependencies: - '@smithy/middleware-serde': 4.2.11 - '@smithy/protocol-http': 5.3.10 + '@smithy/middleware-serde': 4.2.12 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 - '@smithy/util-base64': 4.3.1 - '@smithy/util-body-length-browser': 4.2.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-stream': 4.5.15 - '@smithy/util-utf8': 4.2.1 - '@smithy/uuid': 1.1.1 + '@smithy/util-base64': 4.3.2 + '@smithy/util-body-length-browser': 4.2.2 + '@smithy/util-middleware': 4.2.11 + '@smithy/util-stream': 4.5.17 + '@smithy/util-utf8': 4.2.2 + '@smithy/uuid': 1.1.2 tslib: 2.8.1 - '@smithy/credential-provider-imds@4.2.10': + '@smithy/credential-provider-imds@4.2.11': dependencies: - '@smithy/node-config-provider': 4.3.10 - '@smithy/property-provider': 4.2.10 + '@smithy/node-config-provider': 4.3.11 + '@smithy/property-provider': 4.2.11 '@smithy/types': 4.13.0 - '@smithy/url-parser': 4.2.10 + '@smithy/url-parser': 4.2.11 tslib: 2.8.1 - '@smithy/eventstream-codec@4.2.10': + '@smithy/eventstream-codec@4.2.11': dependencies: '@aws-crypto/crc32': 5.2.0 '@smithy/types': 4.13.0 - '@smithy/util-hex-encoding': 4.2.1 + '@smithy/util-hex-encoding': 4.2.2 tslib: 2.8.1 - '@smithy/eventstream-serde-browser@4.2.10': + '@smithy/eventstream-serde-browser@4.2.11': dependencies: - '@smithy/eventstream-serde-universal': 4.2.10 + '@smithy/eventstream-serde-universal': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/eventstream-serde-config-resolver@4.3.10': + '@smithy/eventstream-serde-config-resolver@4.3.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/eventstream-serde-node@4.2.10': + '@smithy/eventstream-serde-node@4.2.11': dependencies: - '@smithy/eventstream-serde-universal': 4.2.10 + '@smithy/eventstream-serde-universal': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/eventstream-serde-universal@4.2.10': + '@smithy/eventstream-serde-universal@4.2.11': dependencies: - '@smithy/eventstream-codec': 4.2.10 + '@smithy/eventstream-codec': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/fetch-http-handler@5.3.11': + '@smithy/fetch-http-handler@5.3.13': dependencies: - '@smithy/protocol-http': 5.3.10 - '@smithy/querystring-builder': 4.2.10 + '@smithy/protocol-http': 5.3.11 + '@smithy/querystring-builder': 4.2.11 '@smithy/types': 4.13.0 - '@smithy/util-base64': 4.3.1 + '@smithy/util-base64': 4.3.2 tslib: 2.8.1 - '@smithy/hash-blob-browser@4.2.11': + '@smithy/hash-blob-browser@4.2.12': dependencies: - '@smithy/chunked-blob-reader': 5.2.1 - '@smithy/chunked-blob-reader-native': 4.2.2 + '@smithy/chunked-blob-reader': 5.2.2 + '@smithy/chunked-blob-reader-native': 4.2.3 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/hash-node@4.2.10': + '@smithy/hash-node@4.2.11': dependencies: '@smithy/types': 4.13.0 - '@smithy/util-buffer-from': 4.2.1 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-buffer-from': 4.2.2 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@smithy/hash-stream-node@4.2.10': + '@smithy/hash-stream-node@4.2.11': dependencies: '@smithy/types': 4.13.0 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@smithy/invalid-dependency@4.2.10': + '@smithy/invalid-dependency@4.2.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 @@ -2917,143 +2913,143 @@ snapshots: dependencies: tslib: 2.8.1 - '@smithy/is-array-buffer@4.2.1': + '@smithy/is-array-buffer@4.2.2': dependencies: tslib: 2.8.1 - '@smithy/md5-js@4.2.10': + '@smithy/md5-js@4.2.11': dependencies: '@smithy/types': 4.13.0 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@smithy/middleware-content-length@4.2.10': + '@smithy/middleware-content-length@4.2.11': dependencies: - '@smithy/protocol-http': 5.3.10 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/middleware-endpoint@4.4.20': + '@smithy/middleware-endpoint@4.4.23': dependencies: - '@smithy/core': 3.23.6 - '@smithy/middleware-serde': 4.2.11 - '@smithy/node-config-provider': 4.3.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@smithy/core': 3.23.9 + '@smithy/middleware-serde': 4.2.12 + '@smithy/node-config-provider': 4.3.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 - '@smithy/url-parser': 4.2.10 - '@smithy/util-middleware': 4.2.10 + '@smithy/url-parser': 4.2.11 + '@smithy/util-middleware': 4.2.11 tslib: 2.8.1 - '@smithy/middleware-retry@4.4.37': + '@smithy/middleware-retry@4.4.40': dependencies: - '@smithy/node-config-provider': 4.3.10 - '@smithy/protocol-http': 5.3.10 - '@smithy/service-error-classification': 4.2.10 - '@smithy/smithy-client': 4.12.0 + '@smithy/node-config-provider': 4.3.11 + '@smithy/protocol-http': 5.3.11 + '@smithy/service-error-classification': 4.2.11 + '@smithy/smithy-client': 4.12.3 '@smithy/types': 4.13.0 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-retry': 4.2.10 - '@smithy/uuid': 1.1.1 + '@smithy/util-middleware': 4.2.11 + '@smithy/util-retry': 4.2.11 + '@smithy/uuid': 1.1.2 tslib: 2.8.1 - '@smithy/middleware-serde@4.2.11': + '@smithy/middleware-serde@4.2.12': dependencies: - '@smithy/protocol-http': 5.3.10 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/middleware-stack@4.2.10': + '@smithy/middleware-stack@4.2.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/node-config-provider@4.3.10': + '@smithy/node-config-provider@4.3.11': dependencies: - '@smithy/property-provider': 4.2.10 - '@smithy/shared-ini-file-loader': 4.4.5 + '@smithy/property-provider': 4.2.11 + '@smithy/shared-ini-file-loader': 4.4.6 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/node-http-handler@4.4.12': + '@smithy/node-http-handler@4.4.14': dependencies: - '@smithy/abort-controller': 4.2.10 - '@smithy/protocol-http': 5.3.10 - '@smithy/querystring-builder': 4.2.10 + '@smithy/abort-controller': 4.2.11 + '@smithy/protocol-http': 5.3.11 + '@smithy/querystring-builder': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/property-provider@4.2.10': + '@smithy/property-provider@4.2.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/protocol-http@5.3.10': + '@smithy/protocol-http@5.3.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/querystring-builder@4.2.10': + '@smithy/querystring-builder@4.2.11': dependencies: '@smithy/types': 4.13.0 - '@smithy/util-uri-escape': 4.2.1 + '@smithy/util-uri-escape': 4.2.2 tslib: 2.8.1 - '@smithy/querystring-parser@4.2.10': + '@smithy/querystring-parser@4.2.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/service-error-classification@4.2.10': + '@smithy/service-error-classification@4.2.11': dependencies: '@smithy/types': 4.13.0 - '@smithy/shared-ini-file-loader@4.4.5': + '@smithy/shared-ini-file-loader@4.4.6': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/signature-v4@5.3.10': + '@smithy/signature-v4@5.3.11': dependencies: - '@smithy/is-array-buffer': 4.2.1 - '@smithy/protocol-http': 5.3.10 + '@smithy/is-array-buffer': 4.2.2 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 - '@smithy/util-hex-encoding': 4.2.1 - '@smithy/util-middleware': 4.2.10 - '@smithy/util-uri-escape': 4.2.1 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-hex-encoding': 4.2.2 + '@smithy/util-middleware': 4.2.11 + '@smithy/util-uri-escape': 4.2.2 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@smithy/smithy-client@4.12.0': + '@smithy/smithy-client@4.12.3': dependencies: - '@smithy/core': 3.23.6 - '@smithy/middleware-endpoint': 4.4.20 - '@smithy/middleware-stack': 4.2.10 - '@smithy/protocol-http': 5.3.10 + '@smithy/core': 3.23.9 + '@smithy/middleware-endpoint': 4.4.23 + '@smithy/middleware-stack': 4.2.11 + '@smithy/protocol-http': 5.3.11 '@smithy/types': 4.13.0 - '@smithy/util-stream': 4.5.15 + '@smithy/util-stream': 4.5.17 tslib: 2.8.1 '@smithy/types@4.13.0': dependencies: tslib: 2.8.1 - '@smithy/url-parser@4.2.10': + '@smithy/url-parser@4.2.11': dependencies: - '@smithy/querystring-parser': 4.2.10 + '@smithy/querystring-parser': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/util-base64@4.3.1': + '@smithy/util-base64@4.3.2': dependencies: - '@smithy/util-buffer-from': 4.2.1 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-buffer-from': 4.2.2 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@smithy/util-body-length-browser@4.2.1': + '@smithy/util-body-length-browser@4.2.2': dependencies: tslib: 2.8.1 - '@smithy/util-body-length-node@4.2.2': + '@smithy/util-body-length-node@4.2.3': dependencies: tslib: 2.8.1 @@ -3062,65 +3058,65 @@ snapshots: '@smithy/is-array-buffer': 2.2.0 tslib: 2.8.1 - '@smithy/util-buffer-from@4.2.1': + '@smithy/util-buffer-from@4.2.2': dependencies: - '@smithy/is-array-buffer': 4.2.1 + '@smithy/is-array-buffer': 4.2.2 tslib: 2.8.1 - '@smithy/util-config-provider@4.2.1': + '@smithy/util-config-provider@4.2.2': dependencies: tslib: 2.8.1 - '@smithy/util-defaults-mode-browser@4.3.36': + '@smithy/util-defaults-mode-browser@4.3.39': dependencies: - '@smithy/property-provider': 4.2.10 - '@smithy/smithy-client': 4.12.0 + '@smithy/property-provider': 4.2.11 + '@smithy/smithy-client': 4.12.3 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/util-defaults-mode-node@4.2.39': + '@smithy/util-defaults-mode-node@4.2.42': dependencies: - '@smithy/config-resolver': 4.4.9 - '@smithy/credential-provider-imds': 4.2.10 - '@smithy/node-config-provider': 4.3.10 - '@smithy/property-provider': 4.2.10 - '@smithy/smithy-client': 4.12.0 + '@smithy/config-resolver': 4.4.10 + '@smithy/credential-provider-imds': 4.2.11 + '@smithy/node-config-provider': 4.3.11 + '@smithy/property-provider': 4.2.11 + '@smithy/smithy-client': 4.12.3 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/util-endpoints@3.3.1': + '@smithy/util-endpoints@3.3.2': dependencies: - '@smithy/node-config-provider': 4.3.10 + '@smithy/node-config-provider': 4.3.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/util-hex-encoding@4.2.1': + '@smithy/util-hex-encoding@4.2.2': dependencies: tslib: 2.8.1 - '@smithy/util-middleware@4.2.10': + '@smithy/util-middleware@4.2.11': dependencies: '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/util-retry@4.2.10': + '@smithy/util-retry@4.2.11': dependencies: - '@smithy/service-error-classification': 4.2.10 + '@smithy/service-error-classification': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/util-stream@4.5.15': + '@smithy/util-stream@4.5.17': dependencies: - '@smithy/fetch-http-handler': 5.3.11 - '@smithy/node-http-handler': 4.4.12 + '@smithy/fetch-http-handler': 5.3.13 + '@smithy/node-http-handler': 4.4.14 '@smithy/types': 4.13.0 - '@smithy/util-base64': 4.3.1 - '@smithy/util-buffer-from': 4.2.1 - '@smithy/util-hex-encoding': 4.2.1 - '@smithy/util-utf8': 4.2.1 + '@smithy/util-base64': 4.3.2 + '@smithy/util-buffer-from': 4.2.2 + '@smithy/util-hex-encoding': 4.2.2 + '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@smithy/util-uri-escape@4.2.1': + '@smithy/util-uri-escape@4.2.2': dependencies: tslib: 2.8.1 @@ -3129,18 +3125,18 @@ snapshots: '@smithy/util-buffer-from': 2.2.0 tslib: 2.8.1 - '@smithy/util-utf8@4.2.1': + '@smithy/util-utf8@4.2.2': dependencies: - '@smithy/util-buffer-from': 4.2.1 + '@smithy/util-buffer-from': 4.2.2 tslib: 2.8.1 - '@smithy/util-waiter@4.2.10': + '@smithy/util-waiter@4.2.11': dependencies: - '@smithy/abort-controller': 4.2.10 + '@smithy/abort-controller': 4.2.11 '@smithy/types': 4.13.0 tslib: 2.8.1 - '@smithy/uuid@1.1.1': + '@smithy/uuid@1.1.2': dependencies: tslib: 2.8.1 @@ -3149,7 +3145,7 @@ snapshots: '@tailwindcss/node@4.2.1': dependencies: '@jridgewell/remapping': 2.3.5 - enhanced-resolve: 5.19.0 + enhanced-resolve: 5.20.0 jiti: 2.6.1 lightningcss: 1.31.1 magic-string: 0.30.21 @@ -3207,12 +3203,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.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@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))': dependencies: '@tailwindcss/node': 4.2.1 '@tailwindcss/oxide': 4.2.1 tailwindcss: 4.2.1 - vite: 7.3.1(@types/node@24.10.15)(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.31.1)(tsx@4.21.0) '@tanstack/history@1.161.4': {} @@ -3223,37 +3219,37 @@ snapshots: '@tanstack/query-core': 5.90.20 react: 19.2.4 - '@tanstack/react-router@1.163.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + '@tanstack/react-router@1.166.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': dependencies: '@tanstack/history': 1.161.4 - '@tanstack/react-store': 0.9.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - '@tanstack/router-core': 1.163.3 + '@tanstack/react-store': 0.9.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/router-core': 1.166.2 isbot: 5.1.35 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) tiny-invariant: 1.3.3 tiny-warning: 1.0.3 - '@tanstack/react-store@0.9.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + '@tanstack/react-store@0.9.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': dependencies: - '@tanstack/store': 0.9.1 + '@tanstack/store': 0.9.2 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) use-sync-external-store: 1.6.0(react@19.2.4) - '@tanstack/router-core@1.163.3': + '@tanstack/router-core@1.166.2': dependencies: '@tanstack/history': 1.161.4 - '@tanstack/store': 0.9.1 + '@tanstack/store': 0.9.2 cookie-es: 2.0.0 seroval: 1.5.0 seroval-plugins: 1.5.0(seroval@1.5.0) tiny-invariant: 1.3.3 tiny-warning: 1.0.3 - '@tanstack/router-generator@1.163.3': + '@tanstack/router-generator@1.166.2': dependencies: - '@tanstack/router-core': 1.163.3 + '@tanstack/router-core': 1.166.2 '@tanstack/router-utils': 1.161.4 '@tanstack/virtual-file-routes': 1.161.4 prettier: 3.8.1 @@ -3264,7 +3260,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@tanstack/router-plugin@1.163.3(@tanstack/react-router@1.163.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.10.15)(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@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': dependencies: '@babel/core': 7.29.0 '@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0) @@ -3272,16 +3268,16 @@ snapshots: '@babel/template': 7.28.6 '@babel/traverse': 7.29.0 '@babel/types': 7.29.0 - '@tanstack/router-core': 1.163.3 - '@tanstack/router-generator': 1.163.3 + '@tanstack/router-core': 1.166.2 + '@tanstack/router-generator': 1.166.2 '@tanstack/router-utils': 1.161.4 '@tanstack/virtual-file-routes': 1.161.4 chokidar: 3.6.0 unplugin: 2.3.11 zod: 3.25.76 optionalDependencies: - '@tanstack/react-router': 1.163.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - vite: 7.3.1(@types/node@24.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + '@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) transitivePeerDependencies: - supports-color @@ -3299,7 +3295,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@tanstack/store@0.9.1': {} + '@tanstack/store@0.9.2': {} '@tanstack/virtual-file-routes@1.161.4': {} @@ -3326,7 +3322,7 @@ snapshots: '@types/estree@1.0.8': {} - '@types/node@24.10.15': + '@types/node@24.12.0': dependencies: undici-types: 7.16.0 @@ -3338,42 +3334,42 @@ snapshots: dependencies: csstype: 3.2.3 - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260302.1': + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260307.1': optional: true - '@typescript/native-preview-darwin-x64@7.0.0-dev.20260302.1': + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260307.1': optional: true - '@typescript/native-preview-linux-arm64@7.0.0-dev.20260302.1': + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260307.1': optional: true - '@typescript/native-preview-linux-arm@7.0.0-dev.20260302.1': + '@typescript/native-preview-linux-arm@7.0.0-dev.20260307.1': optional: true - '@typescript/native-preview-linux-x64@7.0.0-dev.20260302.1': + '@typescript/native-preview-linux-x64@7.0.0-dev.20260307.1': optional: true - '@typescript/native-preview-win32-arm64@7.0.0-dev.20260302.1': + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260307.1': optional: true - '@typescript/native-preview-win32-x64@7.0.0-dev.20260302.1': + '@typescript/native-preview-win32-x64@7.0.0-dev.20260307.1': optional: true - '@typescript/native-preview@7.0.0-dev.20260302.1': + '@typescript/native-preview@7.0.0-dev.20260307.1': optionalDependencies: - '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260302.1 - '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260302.1 - '@typescript/native-preview-linux-arm': 7.0.0-dev.20260302.1 - '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260302.1 - '@typescript/native-preview-linux-x64': 7.0.0-dev.20260302.1 - '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260302.1 - '@typescript/native-preview-win32-x64': 7.0.0-dev.20260302.1 + '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260307.1 + '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260307.1 + '@typescript/native-preview-linux-arm': 7.0.0-dev.20260307.1 + '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260307.1 + '@typescript/native-preview-linux-x64': 7.0.0-dev.20260307.1 + '@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.10.15)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + '@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))': dependencies: - vite: 7.3.1(@types/node@24.10.15)(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.31.1)(tsx@4.21.0) - '@vitejs/plugin-react@5.1.4(vite@7.3.1(@types/node@24.10.15)(jiti@2.6.1)(lightningcss@1.31.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))': dependencies: '@babel/core': 7.29.0 '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.29.0) @@ -3381,7 +3377,7 @@ 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.10.15)(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.31.1)(tsx@4.21.0) transitivePeerDependencies: - supports-color @@ -3432,9 +3428,9 @@ snapshots: browserslist@4.28.1: dependencies: baseline-browser-mapping: 2.10.0 - caniuse-lite: 1.0.30001774 - electron-to-chromium: 1.5.302 - node-releases: 2.0.27 + caniuse-lite: 1.0.30001777 + electron-to-chromium: 1.5.307 + node-releases: 2.0.36 update-browserslist-db: 1.2.3(browserslist@4.28.1) buffer@5.6.0: @@ -3442,7 +3438,7 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - caniuse-lite@1.0.30001774: {} + caniuse-lite@1.0.30001777: {} chokidar@3.6.0: dependencies: @@ -3482,9 +3478,9 @@ snapshots: diff@8.0.3: {} - electron-to-chromium@1.5.302: {} + electron-to-chromium@1.5.307: {} - enhanced-resolve@5.19.0: + enhanced-resolve@5.20.0: dependencies: graceful-fs: 4.2.11 tapable: 2.3.0 @@ -3529,7 +3525,7 @@ snapshots: fast-xml-parser@5.4.1: dependencies: fast-xml-builder: 1.0.0 - strnum: 2.1.2 + strnum: 2.2.0 fdir@6.5.0(picomatch@4.0.3): optionalDependencies: @@ -3643,7 +3639,7 @@ snapshots: dependencies: yallist: 3.1.1 - lucide-react@0.575.0(react@19.2.4): + lucide-react@0.577.0(react@19.2.4): dependencies: react: 19.2.4 @@ -3661,7 +3657,7 @@ snapshots: nanoid@3.3.11: {} - node-releases@2.0.27: {} + node-releases@2.0.36: {} normalize-path@3.0.0: {} @@ -3684,7 +3680,7 @@ snapshots: picomatch@4.0.3: {} - postcss@8.5.6: + postcss@8.5.8: dependencies: nanoid: 3.3.11 picocolors: 1.1.1 @@ -3787,7 +3783,7 @@ snapshots: dependencies: safe-buffer: 5.2.1 - strnum@2.1.2: {} + strnum@2.2.0: {} tabbable@6.4.0: {} @@ -3823,9 +3819,9 @@ snapshots: typescript@5.9.3: {} - ultracite@7.2.4: + ultracite@7.2.5: dependencies: - '@clack/prompts': 1.0.1 + '@clack/prompts': 1.1.0 commander: 14.0.3 deepmerge: 4.3.1 glob: 13.0.6 @@ -3853,16 +3849,16 @@ snapshots: util-deprecate@1.0.2: {} - vite@7.3.1(@types/node@24.10.15)(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.31.1)(tsx@4.21.0): dependencies: esbuild: 0.27.3 fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 - postcss: 8.5.6 + postcss: 8.5.8 rollup: 4.59.0 tinyglobby: 0.2.15 optionalDependencies: - '@types/node': 24.10.15 + '@types/node': 24.12.0 fsevents: 2.3.3 jiti: 2.6.1 lightningcss: 1.31.1