@stacksjs/dns 0.65.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  // @bun
2
- var jk=Object.create;var{getPrototypeOf:vk,defineProperty:V6,getOwnPropertyNames:ik}=Object;var Ok=Object.prototype.hasOwnProperty;var m=(r,s,f)=>{f=r!=null?jk(vk(r)):{};const w=s||!r||!r.__esModule?V6(f,"default",{value:r,enumerable:!0}):f;for(let h of ik(r))if(!Ok.call(w,h))V6(w,h,{get:()=>r[h],enumerable:!0});return w};var O=(r,s)=>()=>(s||r((s={exports:{}}).exports,s),s.exports);var Ys=(r,s)=>{for(var f in s)V6(r,f,{get:s[f],enumerable:!0,configurable:!0,set:(w)=>s[f]=()=>w})};var G=(r,s)=>()=>(r&&(s=r(r=0)),s);var Xs=(r)=>{let s=r.httpHandler;return{setHttpHandler(f){s=f},httpHandler(){return s},updateHttpClientConfig(f,w){s.updateHttpClientConfig(f,w)},httpHandlerConfigs(){return s.httpHandlerConfigs()}}},Ks=(r)=>{return{httpHandler:r.httpHandler()}};var LA=()=>{};var Ff=O((Ot,ZA)=>{var{defineProperty:U$,getOwnPropertyDescriptor:dk,getOwnPropertyNames:ck}=Object,bk=Object.prototype.hasOwnProperty,T$=(r,s)=>U$(r,"name",{value:s,configurable:!0}),_k=(r,s)=>{for(var f in s)U$(r,f,{get:s[f],enumerable:!0})},gk=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of ck(s))if(!bk.call(r,h)&&h!==f)U$(r,h,{get:()=>s[h],enumerable:!(w=dk(s,h))||w.enumerable})}return r},xk=(r)=>gk(U$({},"__esModule",{value:!0}),r),RA={};_k(RA,{AlgorithmId:()=>SA,EndpointURLScheme:()=>zA,FieldPosition:()=>YA,HttpApiKeyAuthLocation:()=>WA,HttpAuthLocation:()=>CA,IniSectionType:()=>XA,RequestHandlerProtocol:()=>KA,SMITHY_CONTEXT_KEY:()=>pk,getDefaultClientConfiguration:()=>ok,resolveDefaultRuntimeConfig:()=>ak});ZA.exports=xk(RA);var CA=((r)=>{return r.HEADER="header",r.QUERY="query",r})(CA||{}),WA=((r)=>{return r.HEADER="header",r.QUERY="query",r})(WA||{}),zA=((r)=>{return r.HTTP="http",r.HTTPS="https",r})(zA||{}),SA=((r)=>{return r.MD5="md5",r.CRC32="crc32",r.CRC32C="crc32c",r.SHA1="sha1",r.SHA256="sha256",r})(SA||{}),ek=T$((r)=>{const s=[];if(r.sha256!==void 0)s.push({algorithmId:()=>"sha256",checksumConstructor:()=>r.sha256});if(r.md5!=null)s.push({algorithmId:()=>"md5",checksumConstructor:()=>r.md5});return{_checksumAlgorithms:s,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),nk=T$((r)=>{const s={};return r.checksumAlgorithms().forEach((f)=>{s[f.algorithmId()]=f.checksumConstructor()}),s},"resolveChecksumRuntimeConfig"),ok=T$((r)=>{return{...ek(r)}},"getDefaultClientConfiguration"),ak=T$((r)=>{return{...nk(r)}},"resolveDefaultRuntimeConfig"),YA=((r)=>{return r[r.HEADER=0]="HEADER",r[r.TRAILER=1]="TRAILER",r})(YA||{}),pk="__smithy_context",XA=((r)=>{return r.PROFILE="profile",r.SSO_SESSION="sso-session",r.SERVICES="services",r})(XA||{}),KA=((r)=>{return r.HTTP_0_9="http/0.9",r.HTTP_1_0="http/1.0",r.TDS_8_0="tds/8.0",r})(KA||{})});var uk;var PA=G(()=>{uk=m(Ff(),1)});var JA=()=>{};function tk(r){return Object.keys(r).reduce((s,f)=>{const w=r[f];return{...s,[f]:Array.isArray(w)?[...w]:w}},{})}class Mr{constructor(r){this.method=r.method||"GET",this.hostname=r.hostname||"localhost",this.port=r.port,this.query=r.query||{},this.headers=r.headers||{},this.body=r.body,this.protocol=r.protocol?r.protocol.slice(-1)!==":"?`${r.protocol}:`:r.protocol:"https:",this.path=r.path?r.path.charAt(0)!=="/"?`/${r.path}`:r.path:"/",this.username=r.username,this.password=r.password,this.fragment=r.fragment}static clone(r){const s=new Mr({...r,headers:{...r.headers}});if(s.query)s.query=tk(s.query);return s}static isInstance(r){if(!r)return!1;const s=r;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Mr.clone(this)}}class j0{constructor(r){this.statusCode=r.statusCode,this.reason=r.reason,this.headers=r.headers||{},this.body=r.body}static isInstance(r){if(!r)return!1;const s=r;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}var QA=()=>{};var kr=G(()=>{LA();PA();JA();QA()});function Zs(r){return r}var ry=(r)=>(s)=>async(f)=>{if(!Mr.isInstance(f.request))return s(f);const{request:w}=f,{handlerProtocol:h=""}=r.requestHandler.metadata||{};if(h.indexOf("h2")>=0&&!w.headers[":authority"])delete w.headers.host,w.headers[":authority"]=w.hostname+(w.port?":"+w.port:"");else if(!w.headers.host){let E=w.hostname;if(w.port!=null)E+=`:${w.port}`;w.headers.host=E}return s(f)},fy,Ps=(r)=>({applyToStack:(s)=>{s.add(ry(r),fy)}});var pw=G(()=>{kr();fy={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var sy=()=>(r,s)=>async(f)=>{try{const w=await r(f),{clientName:h,commandName:E,logger:$,dynamoDbDocumentClientOptions:I={}}=s,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:U}=I,A=F??s.inputFilterSensitiveLog,L=U??s.outputFilterSensitiveLog,{$metadata:S,...z}=w.output;return $?.info?.({clientName:h,commandName:E,input:A(f.input),output:L(z),metadata:S}),w}catch(w){const{clientName:h,commandName:E,logger:$,dynamoDbDocumentClientOptions:I={}}=s,{overrideInputFilterSensitiveLog:F}=I,U=F??s.inputFilterSensitiveLog;throw $?.error?.({clientName:h,commandName:E,input:U(f.input),error:w,metadata:w.$metadata}),w}},wy,Js=(r)=>({applyToStack:(s)=>{s.add(sy(),wy)}});var BA=G(()=>{wy={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var uw=G(()=>{BA()});var MA="X-Amzn-Trace-Id",hy="AWS_LAMBDA_FUNCTION_NAME",Ey="_X_AMZN_TRACE_ID",$y=(r)=>(s)=>async(f)=>{const{request:w}=f;if(!Mr.isInstance(w)||r.runtime!=="node"||w.headers.hasOwnProperty(MA))return s(f);const h=process.env[hy],E=process.env[Ey],$=(I)=>typeof I==="string"&&I.length>0;if($(h)&&$(E))w.headers[MA]=E;return s({...f,request:w})},Iy,Qs=(r)=>({applyToStack:(s)=>{s.add($y(r),Iy)}});var tw=G(()=>{kr();Iy={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var G1=O((Frr,DA)=>{var{defineProperty:G$,getOwnPropertyDescriptor:Fy,getOwnPropertyNames:Uy}=Object,Ty=Object.prototype.hasOwnProperty,HA=(r,s)=>G$(r,"name",{value:s,configurable:!0}),Gy=(r,s)=>{for(var f in s)G$(r,f,{get:s[f],enumerable:!0})},Ay=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Uy(s))if(!Ty.call(r,h)&&h!==f)G$(r,h,{get:()=>s[h],enumerable:!(w=Fy(s,h))||w.enumerable})}return r},Ly=(r)=>Ay(G$({},"__esModule",{value:!0}),r),lA={};Gy(lA,{getSmithyContext:()=>Ry,normalizeProvider:()=>Cy});DA.exports=Ly(lA);var VA=Ff(),Ry=HA((r)=>r[VA.SMITHY_CONTEXT_KEY]||(r[VA.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Cy=HA((r)=>{if(typeof r==="function")return r;const s=Promise.resolve(r);return()=>s},"normalizeProvider")});var Ar=O((Urr,mA)=>{var{defineProperty:A$,getOwnPropertyDescriptor:Wy,getOwnPropertyNames:zy}=Object,Sy=Object.prototype.hasOwnProperty,Sw=(r,s)=>A$(r,"name",{value:s,configurable:!0}),Yy=(r,s)=>{for(var f in s)A$(r,f,{get:s[f],enumerable:!0})},Xy=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of zy(s))if(!Sy.call(r,h)&&h!==f)A$(r,h,{get:()=>s[h],enumerable:!(w=Wy(s,h))||w.enumerable})}return r},Ky=(r)=>Xy(A$({},"__esModule",{value:!0}),r),kA={};Yy(kA,{CredentialsProviderError:()=>Zy,ProviderError:()=>L$,TokenProviderError:()=>Py,chain:()=>Jy,fromStatic:()=>Qy,memoize:()=>By});mA.exports=Ky(kA);var yA=class r extends Error{constructor(s,f=!0){var w;let h,E=!0;if(typeof f==="boolean")h=void 0,E=f;else if(f!=null&&typeof f==="object")h=f.logger,E=f.tryNextLink??!0;super(s);this.name="ProviderError",this.tryNextLink=E,Object.setPrototypeOf(this,r.prototype),(w=h==null?void 0:h.debug)==null||w.call(h,`@smithy/property-provider ${E?"->":"(!)"} ${s}`)}static from(s,f=!0){return Object.assign(new this(s.message,f),s)}};Sw(yA,"ProviderError");var L$=yA,NA=class r extends L${constructor(s,f=!0){super(s,f);this.name="CredentialsProviderError",Object.setPrototypeOf(this,r.prototype)}};Sw(NA,"CredentialsProviderError");var Zy=NA,qA=class r extends L${constructor(s,f=!0){super(s,f);this.name="TokenProviderError",Object.setPrototypeOf(this,r.prototype)}};Sw(qA,"TokenProviderError");var Py=qA,Jy=Sw((...r)=>async()=>{if(r.length===0)throw new L$("No providers in chain");let s;for(let f of r)try{return await f()}catch(w){if(s=w,w==null?void 0:w.tryNextLink)continue;throw w}throw s},"chain"),Qy=Sw((r)=>()=>Promise.resolve(r),"fromStatic"),By=Sw((r,s,f)=>{let w,h,E,$=!1;const I=Sw(async()=>{if(!h)h=r();try{w=await h,E=!0,$=!1}finally{h=void 0}return w},"coalesceProvider");if(s===void 0)return async(F)=>{if(!E||(F==null?void 0:F.forceRefresh))w=await I();return w};return async(F)=>{if(!E||(F==null?void 0:F.forceRefresh))w=await I();if($)return w;if(f&&!f(w))return $=!0,w;if(s(w))return await I(),w;return w}},"memoize")});var rh=O((jA)=>{Object.defineProperty(jA,"__esModule",{value:!0});jA.getHomeDir=void 0;var My=import.meta.require("os"),Vy=import.meta.require("path"),H6={},Hy=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},ly=()=>{const{HOME:r,USERPROFILE:s,HOMEPATH:f,HOMEDRIVE:w=`C:${Vy.sep}`}=process.env;if(r)return r;if(s)return s;if(f)return`${w}${f}`;const h=Hy();if(!H6[h])H6[h]=My.homedir();return H6[h]};jA.getHomeDir=ly});var l6=O((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.getSSOTokenFilepath=void 0;var Dy=import.meta.require("crypto"),ky=import.meta.require("path"),yy=rh(),Ny=(r)=>{const f=Dy.createHash("sha1").update(r).digest("hex");return ky.join(yy.getHomeDir(),".aws","sso","cache",`${f}.json`)};iA.getSSOTokenFilepath=Ny});var bA=O((dA)=>{Object.defineProperty(dA,"__esModule",{value:!0});dA.getSSOTokenFromFile=void 0;var qy=import.meta.require("fs"),my=l6(),{readFile:jy}=qy.promises,vy=async(r)=>{const s=my.getSSOTokenFilepath(r),f=await jy(s,"utf8");return JSON.parse(f)};dA.getSSOTokenFromFile=vy});var k6=O((_A)=>{Object.defineProperty(_A,"__esModule",{value:!0});_A.slurpFile=void 0;var iy=import.meta.require("fs"),{readFile:Oy}=iy.promises,D6={},dy=(r,s)=>{if(!D6[r]||(s===null||s===void 0?void 0:s.ignoreCache))D6[r]=Oy(r,"utf8");return D6[r]};_A.slurpFile=dy});var m6=O((Rrr,L1)=>{var{defineProperty:W$,getOwnPropertyDescriptor:cy,getOwnPropertyNames:by}=Object,_y=Object.prototype.hasOwnProperty,Jf=(r,s)=>W$(r,"name",{value:s,configurable:!0}),gy=(r,s)=>{for(var f in s)W$(r,f,{get:s[f],enumerable:!0})},y6=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of by(s))if(!_y.call(r,h)&&h!==f)W$(r,h,{get:()=>s[h],enumerable:!(w=cy(s,h))||w.enumerable})}return r},q6=(r,s,f)=>(y6(r,s,"default"),f&&y6(f,s,"default")),xy=(r)=>y6(W$({},"__esModule",{value:!0}),r),A1={};gy(A1,{CONFIG_PREFIX_SEPARATOR:()=>Yw,DEFAULT_PROFILE:()=>oA,ENV_PROFILE:()=>nA,getProfileName:()=>ey,loadSharedConfigFiles:()=>pA,loadSsoSessionData:()=>$N,parseKnownFiles:()=>FN});L1.exports=xy(A1);q6(A1,rh(),L1.exports);var nA="AWS_PROFILE",oA="default",ey=Jf((r)=>r.profile||process.env[nA]||oA,"getProfileName");q6(A1,l6(),L1.exports);q6(A1,bA(),L1.exports);var R$=Ff(),ny=Jf((r)=>Object.entries(r).filter(([s])=>{const f=s.indexOf(Yw);if(f===-1)return!1;return Object.values(R$.IniSectionType).includes(s.substring(0,f))}).reduce((s,[f,w])=>{const h=f.indexOf(Yw),E=f.substring(0,h)===R$.IniSectionType.PROFILE?f.substring(h+1):f;return s[E]=w,s},{...r.default&&{default:r.default}}),"getConfigData"),C$=import.meta.require("path"),oy=rh(),ay="AWS_CONFIG_FILE",aA=Jf(()=>process.env[ay]||C$.join(oy.getHomeDir(),".aws","config"),"getConfigFilepath"),py=rh(),uy="AWS_SHARED_CREDENTIALS_FILE",ty=Jf(()=>process.env[uy]||C$.join(py.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),rN=rh(),fN=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,sN=["__proto__","profile __proto__"],N6=Jf((r)=>{const s={};let f,w;for(let h of r.split(/\r?\n/)){const E=h.split(/(^|\s)[;#]/)[0].trim();if(E[0]==="["&&E[E.length-1]==="]"){f=void 0,w=void 0;const I=E.substring(1,E.length-1),F=fN.exec(I);if(F){const[,U,,A]=F;if(Object.values(R$.IniSectionType).includes(U))f=[U,A].join(Yw)}else f=I;if(sN.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(f){const I=E.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[E.substring(0,I).trim(),E.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;s[f]=s[f]||{};const A=w?[w,F].join(Yw):F;s[f][A]=U}}}}return s},"parseIni"),xA=k6(),eA=Jf(()=>({}),"swallowError"),Yw=".",pA=Jf(async(r={})=>{const{filepath:s=ty(),configFilepath:f=aA()}=r,w=rN.getHomeDir();let E=s;if(s.startsWith("~/"))E=C$.join(w,s.slice(2));let $=f;if(f.startsWith("~/"))$=C$.join(w,f.slice(2));const I=await Promise.all([xA.slurpFile($,{ignoreCache:r.ignoreCache}).then(N6).then(ny).catch(eA),xA.slurpFile(E,{ignoreCache:r.ignoreCache}).then(N6).catch(eA)]);return{configFile:I[0],credentialsFile:I[1]}},"loadSharedConfigFiles"),wN=Jf((r)=>Object.entries(r).filter(([s])=>s.startsWith(R$.IniSectionType.SSO_SESSION+Yw)).reduce((s,[f,w])=>({...s,[f.substring(f.indexOf(Yw)+1)]:w}),{}),"getSsoSessionData"),hN=k6(),EN=Jf(()=>({}),"swallowError"),$N=Jf(async(r={})=>hN.slurpFile(r.configFilepath??aA()).then(N6).then(wN).catch(EN),"loadSsoSessionData"),IN=Jf((...r)=>{const s={};for(let f of r)for(let[w,h]of Object.entries(f))if(s[w]!==void 0)Object.assign(s[w],h);else s[w]=h;return s},"mergeConfigFiles"),FN=Jf(async(r)=>{const s=await pA(r);return IN(s.configFile,s.credentialsFile)},"parseKnownFiles")});var fL=O((Crr,rL)=>{function j6(r){try{const s=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return s.delete("CONFIG"),s.delete("CONFIG_PREFIX_SEPARATOR"),s.delete("ENV"),[...s].join(", ")}catch(s){return r}}var{defineProperty:z$,getOwnPropertyDescriptor:UN,getOwnPropertyNames:TN}=Object,GN=Object.prototype.hasOwnProperty,fh=(r,s)=>z$(r,"name",{value:s,configurable:!0}),AN=(r,s)=>{for(var f in s)z$(r,f,{get:s[f],enumerable:!0})},LN=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of TN(s))if(!GN.call(r,h)&&h!==f)z$(r,h,{get:()=>s[h],enumerable:!(w=UN(s,h))||w.enumerable})}return r},RN=(r)=>LN(z$({},"__esModule",{value:!0}),r),tA={};AN(tA,{loadConfig:()=>YN});rL.exports=RN(tA);var R1=Ar();fh(j6,"getSelectorName");var CN=fh((r,s)=>async()=>{try{const f=r(process.env);if(f===void 0)throw new Error;return f}catch(f){throw new R1.CredentialsProviderError(f.message||`Not found in ENV: ${j6(r.toString())}`,{logger:s})}},"fromEnv"),uA=m6(),WN=fh((r,{preferredFile:s="config",...f}={})=>async()=>{const w=uA.getProfileName(f),{configFile:h,credentialsFile:E}=await uA.loadSharedConfigFiles(f),$=E[w]||{},I=h[w]||{},F=s==="config"?{...$,...I}:{...I,...$};try{const A=r(F,s==="config"?h:E);if(A===void 0)throw new Error;return A}catch(U){throw new R1.CredentialsProviderError(U.message||`Not found in config files w/ profile [${w}]: ${j6(r.toString())}`,{logger:f.logger})}},"fromSharedConfigFiles"),zN=fh((r)=>typeof r==="function","isFunction"),SN=fh((r)=>zN(r)?async()=>await r():R1.fromStatic(r),"fromStatic"),YN=fh(({environmentVariableSelector:r,configFileSelector:s,default:f},w={})=>R1.memoize(R1.chain(CN(r),WN(s,w),SN(f))),"loadConfig")});var IL=O((EL)=>{Object.defineProperty(EL,"__esModule",{value:!0});EL.getEndpointUrlConfig=void 0;var sL=m6(),wL="AWS_ENDPOINT_URL",hL="endpoint_url",XN=(r)=>({environmentVariableSelector:(s)=>{const f=r.split(" ").map((E)=>E.toUpperCase()),w=s[[wL,...f].join("_")];if(w)return w;const h=s[wL];if(h)return h;return},configFileSelector:(s,f)=>{if(f&&s.services){const h=f[["services",s.services].join(sL.CONFIG_PREFIX_SEPARATOR)];if(h){const E=r.split(" ").map((I)=>I.toLowerCase()),$=h[[E.join("_"),hL].join(sL.CONFIG_PREFIX_SEPARATOR)];if($)return $}}const w=s[hL];if(w)return w;return},default:void 0});EL.getEndpointUrlConfig=XN});var v6=O((FL)=>{Object.defineProperty(FL,"__esModule",{value:!0});FL.getEndpointFromConfig=void 0;var KN=fL(),ZN=IL(),PN=async(r)=>KN.loadConfig(ZN.getEndpointUrlConfig(r!==null&&r!==void 0?r:""))();FL.getEndpointFromConfig=PN});var LL=O((Srr,AL)=>{function GL(r){const s={};if(r=r.replace(/^\?/,""),r)for(let f of r.split("&")){let[w,h=null]=f.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in s))s[w]=h;else if(Array.isArray(s[w]))s[w].push(h);else s[w]=[s[w],h]}return s}var{defineProperty:S$,getOwnPropertyDescriptor:JN,getOwnPropertyNames:QN}=Object,BN=Object.prototype.hasOwnProperty,MN=(r,s)=>S$(r,"name",{value:s,configurable:!0}),VN=(r,s)=>{for(var f in s)S$(r,f,{get:s[f],enumerable:!0})},HN=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of QN(s))if(!BN.call(r,h)&&h!==f)S$(r,h,{get:()=>s[h],enumerable:!(w=JN(s,h))||w.enumerable})}return r},lN=(r)=>HN(S$({},"__esModule",{value:!0}),r),TL={};VN(TL,{parseQueryString:()=>GL});AL.exports=lN(TL);MN(GL,"parseQueryString")});var zL=O((Yrr,WL)=>{var{defineProperty:Y$,getOwnPropertyDescriptor:DN,getOwnPropertyNames:kN}=Object,yN=Object.prototype.hasOwnProperty,NN=(r,s)=>Y$(r,"name",{value:s,configurable:!0}),qN=(r,s)=>{for(var f in s)Y$(r,f,{get:s[f],enumerable:!0})},mN=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of kN(s))if(!yN.call(r,h)&&h!==f)Y$(r,h,{get:()=>s[h],enumerable:!(w=DN(s,h))||w.enumerable})}return r},jN=(r)=>mN(Y$({},"__esModule",{value:!0}),r),RL={};qN(RL,{parseUrl:()=>CL});WL.exports=jN(RL);var vN=LL(),CL=NN((r)=>{if(typeof r==="string")return CL(new URL(r));const{hostname:s,pathname:f,port:w,protocol:h,search:E}=r;let $;if(E)$=vN.parseQueryString(E);return{hostname:s,port:w?parseInt(w):void 0,protocol:h,path:f,query:$}},"parseUrl")});var O6=O((Xrr,JL)=>{function PL(r,s,f){return{applyToStack:(w)=>{w.add(YL(r,f),KL),w.add(XL(r,s),ZL)}}}var{defineProperty:X$,getOwnPropertyDescriptor:iN,getOwnPropertyNames:ON}=Object,dN=Object.prototype.hasOwnProperty,i6=(r,s)=>X$(r,"name",{value:s,configurable:!0}),cN=(r,s)=>{for(var f in s)X$(r,f,{get:s[f],enumerable:!0})},bN=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of ON(s))if(!dN.call(r,h)&&h!==f)X$(r,h,{get:()=>s[h],enumerable:!(w=iN(s,h))||w.enumerable})}return r},_N=(r)=>bN(X$({},"__esModule",{value:!0}),r),SL={};cN(SL,{deserializerMiddleware:()=>YL,deserializerMiddlewareOption:()=>KL,getSerdePlugin:()=>PL,serializerMiddleware:()=>XL,serializerMiddlewareOption:()=>ZL});JL.exports=_N(SL);var YL=i6((r,s)=>(f)=>async(w)=>{const{response:h}=await f(w);try{const E=await s(h,r);return{response:h,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:h}),!("$metadata"in E)){if(E.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}},"deserializerMiddleware"),XL=i6((r,s)=>(f,w)=>async(h)=>{var E;const $=((E=w.endpointV2)==null?void 0:E.url)&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!$)throw new Error("No valid endpoint provider available.");const I=await s(h.input,{...r,endpoint:$});return f({...h,request:I})},"serializerMiddleware"),KL={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},ZL={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i6(PL,"getSerdePlugin")});var kL=O((Krr,DL)=>{var{defineProperty:Z$,getOwnPropertyDescriptor:gN,getOwnPropertyNames:xN}=Object,eN=Object.prototype.hasOwnProperty,uf=(r,s)=>Z$(r,"name",{value:s,configurable:!0}),nN=(r,s)=>{for(var f in s)Z$(r,f,{get:s[f],enumerable:!0})},oN=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of xN(s))if(!eN.call(r,h)&&h!==f)Z$(r,h,{get:()=>s[h],enumerable:!(w=gN(s,h))||w.enumerable})}return r},aN=(r)=>oN(Z$({},"__esModule",{value:!0}),r),BL={};nN(BL,{endpointMiddleware:()=>HL,endpointMiddlewareOptions:()=>lL,getEndpointFromInstructions:()=>ML,getEndpointPlugin:()=>$q,resolveEndpointConfig:()=>Fq,resolveParams:()=>VL,toEndpointV1:()=>d6});DL.exports=aN(BL);var pN=uf(async(r)=>{const s=(r==null?void 0:r.Bucket)||"";if(typeof r.Bucket==="string")r.Bucket=s.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(sq(s)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!fq(s)||s.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||s.toLowerCase()!==s||s.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},"resolveParamsForS3"),uN=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,tN=/(\d+\.){3}\d+/,rq=/\.\./,fq=uf((r)=>uN.test(r)&&!tN.test(r)&&!rq.test(r),"isDnsCompatibleBucketName"),sq=uf((r)=>{const[s,f,w,,,h]=r.split(":"),E=s==="arn"&&r.split(":").length>=6,$=Boolean(E&&f&&w&&h);if(E&&!$)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return $},"isArnBucketName"),wq=uf((r,s,f)=>{const w=uf(async()=>{const h=f[r]??f[s];if(typeof h==="function")return h();return h},"configProvider");if(r==="credentialScope"||s==="CredentialScope")return async()=>{const h=typeof f.credentials==="function"?await f.credentials():f.credentials;return(h==null?void 0:h.credentialScope)??(h==null?void 0:h.CredentialScope)};if(r==="accountId"||s==="AccountId")return async()=>{const h=typeof f.credentials==="function"?await f.credentials():f.credentials;return(h==null?void 0:h.accountId)??(h==null?void 0:h.AccountId)};if(r==="endpoint"||s==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:E,hostname:$,port:I,path:F}=h;return`${E}//${$}${I?":"+I:""}${F}`}}return h};return w},"createConfigValueProvider"),hq=v6(),QL=zL(),d6=uf((r)=>{if(typeof r==="object"){if("url"in r)return QL.parseUrl(r.url);return r}return QL.parseUrl(r)},"toEndpointV1"),ML=uf(async(r,s,f,w)=>{if(!f.endpoint){let $;if(f.serviceConfiguredEndpoint)$=await f.serviceConfiguredEndpoint();else $=await hq.getEndpointFromConfig(f.serviceId);if($)f.endpoint=()=>Promise.resolve(d6($))}const h=await VL(r,s,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(h,w)},"getEndpointFromInstructions"),VL=uf(async(r,s,f)=>{var w;const h={},E=((w=s==null?void 0:s.getEndpointParameterInstructions)==null?void 0:w.call(s))||{};for(let[$,I]of Object.entries(E))switch(I.type){case"staticContextParams":h[$]=I.value;break;case"contextParams":h[$]=r[I.name];break;case"clientContextParams":case"builtInParams":h[$]=await wq(I.name,$,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(I))}if(Object.keys(E).length===0)Object.assign(h,f);if(String(f.serviceId).toLowerCase()==="s3")await pN(h);return h},"resolveParams"),K$=G1(),HL=uf(({config:r,instructions:s})=>{return(f,w)=>async(h)=>{var E,$,I;const F=await ML(h.input,{getEndpointParameterInstructions(){return s}},{...r},w);w.endpointV2=F,w.authSchemes=(E=F.properties)==null?void 0:E.authSchemes;const U=($=w.authSchemes)==null?void 0:$[0];if(U){w.signing_region=U.signingRegion,w.signing_service=U.signingName;const A=K$.getSmithyContext(w),L=(I=A==null?void 0:A.selectedHttpAuthScheme)==null?void 0:I.httpAuthOption;if(L)L.signingProperties=Object.assign(L.signingProperties||{},{signing_region:U.signingRegion,signingRegion:U.signingRegion,signing_service:U.signingName,signingName:U.signingName,signingRegionSet:U.signingRegionSet},U.properties)}return f({...h})}},"endpointMiddleware"),Eq=O6(),lL={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Eq.serializerMiddlewareOption.name},$q=uf((r,s)=>({applyToStack:(f)=>{f.addRelativeTo(HL({config:r,instructions:s}),lL)}}),"getEndpointPlugin"),Iq=v6(),Fq=uf((r)=>{const s=r.tls??!0,{endpoint:f}=r,w=f!=null?async()=>d6(await K$.normalizeProvider(f)()):void 0,E={...r,endpoint:w,tls:s,isCustomEndpoint:!!f,useDualstackEndpoint:K$.normalizeProvider(r.useDualstackEndpoint??!1),useFipsEndpoint:K$.normalizeProvider(r.useFipsEndpoint??!1)};let $=void 0;return E.serviceConfiguredEndpoint=async()=>{if(r.serviceId&&!$)$=Iq.getEndpointFromConfig(r.serviceId);return $},E},"resolveEndpointConfig")});var L0=O((Zrr,dL)=>{function vL(r){return Object.keys(r).reduce((s,f)=>{const w=r[f];return{...s,[f]:Array.isArray(w)?[...w]:w}},{})}function OL(r){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(r)}var{defineProperty:P$,getOwnPropertyDescriptor:Uq,getOwnPropertyNames:Tq}=Object,Gq=Object.prototype.hasOwnProperty,v0=(r,s)=>P$(r,"name",{value:s,configurable:!0}),Aq=(r,s)=>{for(var f in s)P$(r,f,{get:s[f],enumerable:!0})},Lq=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Tq(s))if(!Gq.call(r,h)&&h!==f)P$(r,h,{get:()=>s[h],enumerable:!(w=Uq(s,h))||w.enumerable})}return r},Rq=(r)=>Lq(P$({},"__esModule",{value:!0}),r),yL={};Aq(yL,{Field:()=>zq,Fields:()=>Sq,HttpRequest:()=>Yq,HttpResponse:()=>Xq,IHttpRequest:()=>NL.HttpRequest,getHttpHandlerExtensionConfiguration:()=>Cq,isValidHostname:()=>OL,resolveHttpHandlerRuntimeConfig:()=>Wq});dL.exports=Rq(yL);var Cq=v0((r)=>{let s=r.httpHandler;return{setHttpHandler(f){s=f},httpHandler(){return s},updateHttpClientConfig(f,w){s.updateHttpClientConfig(f,w)},httpHandlerConfigs(){return s.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),Wq=v0((r)=>{return{httpHandler:r.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),NL=Ff(),qL=class r{constructor({name:s,kind:f=NL.FieldPosition.HEADER,values:w=[]}){this.name=s,this.kind=f,this.values=w}add(s){this.values.push(s)}set(s){this.values=s}remove(s){this.values=this.values.filter((f)=>f!==s)}toString(){return this.values.map((s)=>s.includes(",")||s.includes(" ")?`"${s}"`:s).join(", ")}get(){return this.values}};v0(qL,"Field");var zq=qL,mL=class r{constructor({fields:s=[],encoding:f="utf-8"}){this.entries={},s.forEach(this.setField.bind(this)),this.encoding=f}setField(s){this.entries[s.name.toLowerCase()]=s}getField(s){return this.entries[s.toLowerCase()]}removeField(s){delete this.entries[s.toLowerCase()]}getByType(s){return Object.values(this.entries).filter((f)=>f.kind===s)}};v0(mL,"Fields");var Sq=mL,jL=class r{constructor(s){this.method=s.method||"GET",this.hostname=s.hostname||"localhost",this.port=s.port,this.query=s.query||{},this.headers=s.headers||{},this.body=s.body,this.protocol=s.protocol?s.protocol.slice(-1)!==":"?`${s.protocol}:`:s.protocol:"https:",this.path=s.path?s.path.charAt(0)!=="/"?`/${s.path}`:s.path:"/",this.username=s.username,this.password=s.password,this.fragment=s.fragment}static clone(s){const f=new r({...s,headers:{...s.headers}});if(f.query)f.query=vL(f.query);return f}static isInstance(s){if(!s)return!1;const f=s;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return r.clone(this)}};v0(jL,"HttpRequest");var Yq=jL;v0(vL,"cloneQuery");var iL=class r{constructor(s){this.statusCode=s.statusCode,this.reason=s.reason,this.headers=s.headers||{},this.body=s.body}static isInstance(s){if(!s)return!1;const f=s;return typeof f.statusCode==="number"&&typeof f.headers==="object"}};v0(iL,"HttpResponse");var Xq=iL;v0(OL,"isValidHostname")});var c6=O((cL)=>{function Zq(r){return r&&r.__esModule?r:{default:r}}function Pq(){if(J$>Q$.length-16)Kq.default.randomFillSync(Q$),J$=0;return Q$.slice(J$,J$+=16)}Object.defineProperty(cL,"__esModule",{value:!0});cL.default=Pq;var Kq=Zq(import.meta.require("crypto")),Q$=new Uint8Array(256),J$=Q$.length});var gL=O((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});bL.default=void 0;var Qq=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;bL.default=Qq});var C1=O((xL)=>{function Mq(r){return r&&r.__esModule?r:{default:r}}function Vq(r){return typeof r==="string"&&Bq.default.test(r)}Object.defineProperty(xL,"__esModule",{value:!0});xL.default=void 0;var Bq=Mq(gL()),Hq=Vq;xL.default=Hq});var W1=O((oL)=>{function Dq(r){return r&&r.__esModule?r:{default:r}}function nL(r,s=0){return Or[r[s+0]]+Or[r[s+1]]+Or[r[s+2]]+Or[r[s+3]]+"-"+Or[r[s+4]]+Or[r[s+5]]+"-"+Or[r[s+6]]+Or[r[s+7]]+"-"+Or[r[s+8]]+Or[r[s+9]]+"-"+Or[r[s+10]]+Or[r[s+11]]+Or[r[s+12]]+Or[r[s+13]]+Or[r[s+14]]+Or[r[s+15]]}function kq(r,s=0){const f=nL(r,s);if(!lq.default(f))throw TypeError("Stringified UUID is invalid");return f}Object.defineProperty(oL,"__esModule",{value:!0});oL.default=void 0;oL.unsafeStringify=nL;var lq=Dq(C1()),Or=[];for(let r=0;r<256;++r)Or.push((r+256).toString(16).slice(1));var yq=kq;oL.default=yq});var rR=O((uL)=>{function jq(r){return r&&r.__esModule?r:{default:r}}function vq(r,s,f){let w=s&&f||0;const h=s||new Array(16);r=r||{};let E=r.node||pL,$=r.clockseq!==void 0?r.clockseq:b6;if(E==null||$==null){const S=r.random||(r.rng||qq.default)();if(E==null)E=pL=[S[0]|1,S[1],S[2],S[3],S[4],S[5]];if($==null)$=b6=(S[6]<<8|S[7])&16383}let I=r.msecs!==void 0?r.msecs:Date.now(),F=r.nsecs!==void 0?r.nsecs:g6+1;const U=I-_6+(F-g6)/1e4;if(U<0&&r.clockseq===void 0)$=$+1&16383;if((U<0||I>_6)&&r.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_6=I,g6=F,b6=$,I+=12219292800000;const A=((I&268435455)*1e4+F)%4294967296;h[w++]=A>>>24&255,h[w++]=A>>>16&255,h[w++]=A>>>8&255,h[w++]=A&255;const L=I/4294967296*1e4&268435455;h[w++]=L>>>8&255,h[w++]=L&255,h[w++]=L>>>24&15|16,h[w++]=L>>>16&255,h[w++]=$>>>8|128,h[w++]=$&255;for(let S=0;S<6;++S)h[w+S]=E[S];return s||mq.unsafeStringify(h)}Object.defineProperty(uL,"__esModule",{value:!0});uL.default=void 0;var qq=jq(c6()),mq=W1(),pL,b6,_6=0,g6=0,iq=vq;uL.default=iq});var x6=O((fR)=>{function dq(r){return r&&r.__esModule?r:{default:r}}function cq(r){if(!Oq.default(r))throw TypeError("Invalid UUID");let s;const f=new Uint8Array(16);return f[0]=(s=parseInt(r.slice(0,8),16))>>>24,f[1]=s>>>16&255,f[2]=s>>>8&255,f[3]=s&255,f[4]=(s=parseInt(r.slice(9,13),16))>>>8,f[5]=s&255,f[6]=(s=parseInt(r.slice(14,18),16))>>>8,f[7]=s&255,f[8]=(s=parseInt(r.slice(19,23),16))>>>8,f[9]=s&255,f[10]=(s=parseInt(r.slice(24,36),16))/1099511627776&255,f[11]=s/4294967296&255,f[12]=s>>>24&255,f[13]=s>>>16&255,f[14]=s>>>8&255,f[15]=s&255,f}Object.defineProperty(fR,"__esModule",{value:!0});fR.default=void 0;var Oq=dq(C1()),bq=cq;fR.default=bq});var e6=O((ER)=>{function xq(r){return r&&r.__esModule?r:{default:r}}function eq(r){r=unescape(encodeURIComponent(r));const s=[];for(let f=0;f<r.length;++f)s.push(r.charCodeAt(f));return s}function nq(r,s,f){function w(h,E,$,I){var F;if(typeof h==="string")h=eq(h);if(typeof E==="string")E=gq.default(E);if(((F=E)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let U=new Uint8Array(16+h.length);if(U.set(E),U.set(h,E.length),U=f(U),U[6]=U[6]&15|s,U[8]=U[8]&63|128,$){I=I||0;for(let A=0;A<16;++A)$[I+A]=U[A];return $}return _q.unsafeStringify(U)}try{w.name=r}catch(h){}return w.DNS=wR,w.URL=hR,w}Object.defineProperty(ER,"__esModule",{value:!0});ER.URL=ER.DNS=void 0;ER.default=nq;var _q=W1(),gq=xq(x6()),wR="6ba7b810-9dad-11d1-80b4-00c04fd430c8";ER.DNS=wR;var hR="6ba7b811-9dad-11d1-80b4-00c04fd430c8";ER.URL=hR});var UR=O((IR)=>{function uq(r){return r&&r.__esModule?r:{default:r}}function tq(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return pq.default.createHash("md5").update(r).digest()}Object.defineProperty(IR,"__esModule",{value:!0});IR.default=void 0;var pq=uq(import.meta.require("crypto")),rm=tq;IR.default=rm});var LR=O((GR)=>{function TR(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(GR,"__esModule",{value:!0});GR.default=void 0;var fm=TR(e6()),sm=TR(UR()),wm=fm.default("v3",48,sm.default),hm=wm;GR.default=hm});var WR=O((RR)=>{function $m(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(RR,"__esModule",{value:!0});RR.default=void 0;var Em=$m(import.meta.require("crypto")),Im={randomUUID:Em.default.randomUUID};RR.default=Im});var KR=O((YR)=>{function SR(r){return r&&r.__esModule?r:{default:r}}function Tm(r,s,f){if(zR.default.randomUUID&&!s&&!r)return zR.default.randomUUID();r=r||{};const w=r.random||(r.rng||Fm.default)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,s){f=f||0;for(let h=0;h<16;++h)s[f+h]=w[h];return s}return Um.unsafeStringify(w)}Object.defineProperty(YR,"__esModule",{value:!0});YR.default=void 0;var zR=SR(WR()),Fm=SR(c6()),Um=W1(),Gm=Tm;YR.default=Gm});var JR=O((ZR)=>{function Lm(r){return r&&r.__esModule?r:{default:r}}function Rm(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Am.default.createHash("sha1").update(r).digest()}Object.defineProperty(ZR,"__esModule",{value:!0});ZR.default=void 0;var Am=Lm(import.meta.require("crypto")),Cm=Rm;ZR.default=Cm});var VR=O((BR)=>{function QR(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(BR,"__esModule",{value:!0});BR.default=void 0;var Wm=QR(e6()),zm=QR(JR()),Sm=Wm.default("v5",80,zm.default),Ym=Sm;BR.default=Ym});var DR=O((HR)=>{Object.defineProperty(HR,"__esModule",{value:!0});HR.default=void 0;var Xm="00000000-0000-0000-0000-000000000000";HR.default=Xm});var NR=O((kR)=>{function Zm(r){return r&&r.__esModule?r:{default:r}}function Pm(r){if(!Km.default(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}Object.defineProperty(kR,"__esModule",{value:!0});kR.default=void 0;var Km=Zm(C1()),Jm=Pm;kR.default=Jm});var n6=O((tf)=>{function R0(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(tf,"__esModule",{value:!0});Object.defineProperty(tf,"NIL",{enumerable:!0,get:function(){return Hm.default}});Object.defineProperty(tf,"parse",{enumerable:!0,get:function(){return ym.default}});Object.defineProperty(tf,"stringify",{enumerable:!0,get:function(){return km.default}});Object.defineProperty(tf,"v1",{enumerable:!0,get:function(){return Qm.default}});Object.defineProperty(tf,"v3",{enumerable:!0,get:function(){return Bm.default}});Object.defineProperty(tf,"v4",{enumerable:!0,get:function(){return Mm.default}});Object.defineProperty(tf,"v5",{enumerable:!0,get:function(){return Vm.default}});Object.defineProperty(tf,"validate",{enumerable:!0,get:function(){return Dm.default}});Object.defineProperty(tf,"version",{enumerable:!0,get:function(){return lm.default}});var Qm=R0(rR()),Bm=R0(LR()),Mm=R0(KR()),Vm=R0(VR()),Hm=R0(DR()),lm=R0(NR()),Dm=R0(C1()),km=R0(W1()),ym=R0(x6())});var o6=O((irr,vR)=>{var{defineProperty:B$,getOwnPropertyDescriptor:Nm,getOwnPropertyNames:qm}=Object,mm=Object.prototype.hasOwnProperty,sh=(r,s)=>B$(r,"name",{value:s,configurable:!0}),jm=(r,s)=>{for(var f in s)B$(r,f,{get:s[f],enumerable:!0})},vm=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of qm(s))if(!mm.call(r,h)&&h!==f)B$(r,h,{get:()=>s[h],enumerable:!(w=Nm(s,h))||w.enumerable})}return r},im=(r)=>vm(B$({},"__esModule",{value:!0}),r),qR={};jm(qR,{isClockSkewCorrectedError:()=>mR,isClockSkewError:()=>xm,isRetryableByTrait:()=>gm,isServerError:()=>nm,isThrottlingError:()=>em,isTransientError:()=>jR});vR.exports=im(qR);var Om=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],dm=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],cm=["TimeoutError","RequestTimeout","RequestTimeoutException"],bm=[500,502,503,504],_m=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],gm=sh((r)=>r.$retryable!==void 0,"isRetryableByTrait"),xm=sh((r)=>Om.includes(r.name),"isClockSkewError"),mR=sh((r)=>{var s;return(s=r.$metadata)==null?void 0:s.clockSkewCorrected},"isClockSkewCorrectedError"),em=sh((r)=>{var s,f;return((s=r.$metadata)==null?void 0:s.httpStatusCode)===429||dm.includes(r.name)||((f=r.$retryable)==null?void 0:f.throttling)==!0},"isThrottlingError"),jR=sh((r)=>{var s;return mR(r)||cm.includes(r.name)||_m.includes((r==null?void 0:r.code)||"")||bm.includes(((s=r.$metadata)==null?void 0:s.httpStatusCode)||0)},"isTransientError"),nm=sh((r)=>{var s;if(((s=r.$metadata)==null?void 0:s.httpStatusCode)!==void 0){const f=r.$metadata.httpStatusCode;if(500<=f&&f<=599&&!jR(r))return!0;return!1}return!1},"isServerError")});var uR=O((Orr,pR)=>{var{defineProperty:M$,getOwnPropertyDescriptor:om,getOwnPropertyNames:am}=Object,pm=Object.prototype.hasOwnProperty,rs=(r,s)=>M$(r,"name",{value:s,configurable:!0}),um=(r,s)=>{for(var f in s)M$(r,f,{get:s[f],enumerable:!0})},tm=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of am(s))if(!pm.call(r,h)&&h!==f)M$(r,h,{get:()=>s[h],enumerable:!(w=om(s,h))||w.enumerable})}return r},rj=(r)=>tm(M$({},"__esModule",{value:!0}),r),OR={};um(OR,{AdaptiveRetryStrategy:()=>$j,ConfiguredRetryStrategy:()=>Ij,DEFAULT_MAX_ATTEMPTS:()=>a6,DEFAULT_RETRY_DELAY_BASE:()=>z1,DEFAULT_RETRY_MODE:()=>fj,DefaultRateLimiter:()=>bR,INITIAL_RETRY_TOKENS:()=>p6,INVOCATION_ID_HEADER:()=>wj,MAXIMUM_RETRY_DELAY:()=>u6,NO_RETRY_INCREMENT:()=>eR,REQUEST_HEADER:()=>hj,RETRY_COST:()=>gR,RETRY_MODES:()=>dR,StandardRetryStrategy:()=>t6,THROTTLING_RETRY_DELAY_BASE:()=>_R,TIMEOUT_RETRY_COST:()=>xR});pR.exports=rj(OR);var dR=((r)=>{return r.STANDARD="standard",r.ADAPTIVE="adaptive",r})(dR||{}),a6=3,fj="standard",sj=o6(),cR=class r{constructor(s){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(s==null?void 0:s.beta)??0.7,this.minCapacity=(s==null?void 0:s.minCapacity)??1,this.minFillRate=(s==null?void 0:s.minFillRate)??0.5,this.scaleConstant=(s==null?void 0:s.scaleConstant)??0.4,this.smooth=(s==null?void 0:s.smooth)??0.8;const f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(s){if(!this.enabled)return;if(this.refillTokenBucket(),s>this.currentCapacity){const f=(s-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>setTimeout(w,f))}this.currentCapacity=this.currentCapacity-s}refillTokenBucket(){const s=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=s;return}const f=(s-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=s}updateClientSendingRate(s){let f;if(this.updateMeasuredRate(),sj.isThrottlingError(s)){const h=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=h,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(h),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(s){return this.getPrecise(s*this.beta)}cubicSuccess(s){return this.getPrecise(this.scaleConstant*Math.pow(s-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(s){this.refillTokenBucket(),this.fillRate=Math.max(s,this.minFillRate),this.maxCapacity=Math.max(s,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const s=this.getCurrentTimeInSeconds(),f=Math.floor(s*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){const w=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(s){return parseFloat(s.toFixed(8))}};rs(cR,"DefaultRateLimiter");var bR=cR,z1=100,u6=20000,_R=500,p6=500,gR=5,xR=10,eR=1,wj="amz-sdk-invocation-id",hj="amz-sdk-request",Ej=rs(()=>{let r=z1;return{computeNextBackoffDelay:rs((w)=>{return Math.floor(Math.min(u6,Math.random()*2**w*r))},"computeNextBackoffDelay"),setDelayBase:rs((w)=>{r=w},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),iR=rs(({retryDelay:r,retryCount:s,retryCost:f})=>{return{getRetryCount:rs(()=>s,"getRetryCount"),getRetryDelay:rs(()=>Math.min(u6,r),"getRetryDelay"),getRetryCost:rs(()=>f,"getRetryCost")}},"createDefaultRetryToken"),nR=class r{constructor(s){this.maxAttempts=s,this.mode="standard",this.capacity=p6,this.retryBackoffStrategy=Ej(),this.maxAttemptsProvider=typeof s==="function"?s:async()=>s}async acquireInitialRetryToken(s){return iR({retryDelay:z1,retryCount:0})}async refreshRetryTokenForRetry(s,f){const w=await this.getMaxAttempts();if(this.shouldRetry(s,f,w)){const h=f.errorType;this.retryBackoffStrategy.setDelayBase(h==="THROTTLING"?_R:z1);const E=this.retryBackoffStrategy.computeNextBackoffDelay(s.getRetryCount()),$=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,E):E,I=this.getCapacityCost(h);return this.capacity-=I,iR({retryDelay:$,retryCount:s.getRetryCount()+1,retryCost:I})}throw new Error("No retry token available")}recordSuccess(s){this.capacity=Math.max(p6,this.capacity+(s.getRetryCost()??eR))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(s){return console.warn(`Max attempts provider could not resolve. Using default of ${a6}`),a6}}shouldRetry(s,f,w){return s.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(s){return s==="TRANSIENT"?xR:gR}isRetryableError(s){return s==="THROTTLING"||s==="TRANSIENT"}};rs(nR,"StandardRetryStrategy");var t6=nR,oR=class r{constructor(s,f){this.maxAttemptsProvider=s,this.mode="adaptive";const{rateLimiter:w}=f??{};this.rateLimiter=w??new bR,this.standardRetryStrategy=new t6(s)}async acquireInitialRetryToken(s){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(s)}async refreshRetryTokenForRetry(s,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(s,f)}recordSuccess(s){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(s)}};rs(oR,"AdaptiveRetryStrategy");var $j=oR,aR=class r extends t6{constructor(s,f=z1){super(typeof s==="function"?s:async()=>s);if(typeof f==="number")this.computeNextBackoffDelay=()=>f;else this.computeNextBackoffDelay=f}async refreshRetryTokenForRetry(s,f){const w=await super.refreshRetryTokenForRetry(s,f);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}};rs(aR,"ConfiguredRetryStrategy");var Ij=aR});var wC=O((drr,sC)=>{var{defineProperty:V$,getOwnPropertyDescriptor:Fj,getOwnPropertyNames:Uj}=Object,Tj=Object.prototype.hasOwnProperty,Qf=(r,s)=>V$(r,"name",{value:s,configurable:!0}),Gj=(r,s)=>{for(var f in s)V$(r,f,{get:s[f],enumerable:!0})},Aj=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Uj(s))if(!Tj.call(r,h)&&h!==f)V$(r,h,{get:()=>s[h],enumerable:!(w=Fj(s,h))||w.enumerable})}return r},Lj=(r)=>Aj(V$({},"__esModule",{value:!0}),r),fC={};Gj(fC,{constructStack:()=>rF});sC.exports=Lj(fC);var Xw=Qf((r,s)=>{const f=[];if(r)f.push(r);if(s)for(let w of s)f.push(w);return f},"getAllAliases"),i0=Qf((r,s)=>{return`${r||"anonymous"}${s&&s.length>0?` (a.k.a. ${s.join(",")})`:""}`},"getMiddlewareNameWithAliases"),rF=Qf(()=>{let r=[],s=[],f=!1;const w=new Set,h=Qf((L)=>L.sort((S,z)=>tR[z.step]-tR[S.step]||rC[z.priority||"normal"]-rC[S.priority||"normal"]),"sort"),E=Qf((L)=>{let S=!1;const z=Qf((Z)=>{const N=Xw(Z.name,Z.aliases);if(N.includes(L)){S=!0;for(let M of N)w.delete(M);return!1}return!0},"filterCb");return r=r.filter(z),s=s.filter(z),S},"removeByName"),$=Qf((L)=>{let S=!1;const z=Qf((Z)=>{if(Z.middleware===L){S=!0;for(let N of Xw(Z.name,Z.aliases))w.delete(N);return!1}return!0},"filterCb");return r=r.filter(z),s=s.filter(z),S},"removeByReference"),I=Qf((L)=>{var S;return r.forEach((z)=>{L.add(z.middleware,{...z})}),s.forEach((z)=>{L.addRelativeTo(z.middleware,{...z})}),(S=L.identifyOnResolve)==null||S.call(L,A.identifyOnResolve()),L},"cloneTo"),F=Qf((L)=>{const S=[];return L.before.forEach((z)=>{if(z.before.length===0&&z.after.length===0)S.push(z);else S.push(...F(z))}),S.push(L),L.after.reverse().forEach((z)=>{if(z.before.length===0&&z.after.length===0)S.push(z);else S.push(...F(z))}),S},"expandRelativeMiddlewareList"),U=Qf((L=!1)=>{const S=[],z=[],Z={};return r.forEach((M)=>{const l={...M,before:[],after:[]};for(let k of Xw(l.name,l.aliases))Z[k]=l;S.push(l)}),s.forEach((M)=>{const l={...M,before:[],after:[]};for(let k of Xw(l.name,l.aliases))Z[k]=l;z.push(l)}),z.forEach((M)=>{if(M.toMiddleware){const l=Z[M.toMiddleware];if(l===void 0){if(L)return;throw new Error(`${M.toMiddleware} is not found when adding ${i0(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")l.after.push(M);if(M.relation==="before")l.before.push(M)}}),h(S).map(F).reduce((M,l)=>{return M.push(...l),M},[])},"getMiddlewareList"),A={add:(L,S={})=>{const{name:z,override:Z,aliases:N}=S,M={step:"initialize",priority:"normal",middleware:L,...S},l=Xw(z,N);if(l.length>0){if(l.some((k)=>w.has(k))){if(!Z)throw new Error(`Duplicate middleware name '${i0(z,N)}'`);for(let k of l){const i=r.findIndex((sr)=>{var Br;return sr.name===k||((Br=sr.aliases)==null?void 0:Br.some((pr)=>pr===k))});if(i===-1)continue;const e=r[i];if(e.step!==M.step||M.priority!==e.priority)throw new Error(`"${i0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${i0(z,N)}" middleware with ${M.priority} priority in ${M.step} step.`);r.splice(i,1)}}for(let k of l)w.add(k)}r.push(M)},addRelativeTo:(L,S)=>{const{name:z,override:Z,aliases:N}=S,M={middleware:L,...S},l=Xw(z,N);if(l.length>0){if(l.some((k)=>w.has(k))){if(!Z)throw new Error(`Duplicate middleware name '${i0(z,N)}'`);for(let k of l){const i=s.findIndex((sr)=>{var Br;return sr.name===k||((Br=sr.aliases)==null?void 0:Br.some((pr)=>pr===k))});if(i===-1)continue;const e=s[i];if(e.toMiddleware!==M.toMiddleware||e.relation!==M.relation)throw new Error(`"${i0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${i0(z,N)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);s.splice(i,1)}}for(let k of l)w.add(k)}s.push(M)},clone:()=>I(rF()),use:(L)=>{L.applyToStack(A)},remove:(L)=>{if(typeof L==="string")return E(L);else return $(L)},removeByTag:(L)=>{let S=!1;const z=Qf((Z)=>{const{tags:N,name:M,aliases:l}=Z;if(N&&N.includes(L)){const k=Xw(M,l);for(let i of k)w.delete(i);return S=!0,!1}return!0},"filterCb");return r=r.filter(z),s=s.filter(z),S},concat:(L)=>{var S;const z=I(rF());return z.use(L),z.identifyOnResolve(f||z.identifyOnResolve()||(((S=L.identifyOnResolve)==null?void 0:S.call(L))??!1)),z},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const S=L.step??L.relation+" "+L.toMiddleware;return i0(L.name,L.aliases)+" - "+S})},identifyOnResolve(L){if(typeof L==="boolean")f=L;return f},resolve:(L,S)=>{for(let z of U().map((Z)=>Z.middleware).reverse())L=z(L,S);if(f)console.log(A.identify());return L}};return A},"constructStack"),tR={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},rC={high:3,normal:2,low:1}});var fF=O((crr,EC)=>{var{defineProperty:H$,getOwnPropertyDescriptor:Rj,getOwnPropertyNames:Cj}=Object,Wj=Object.prototype.hasOwnProperty,zj=(r,s)=>H$(r,"name",{value:s,configurable:!0}),Sj=(r,s)=>{for(var f in s)H$(r,f,{get:s[f],enumerable:!0})},Yj=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Cj(s))if(!Wj.call(r,h)&&h!==f)H$(r,h,{get:()=>s[h],enumerable:!(w=Rj(s,h))||w.enumerable})}return r},Xj=(r)=>Yj(H$({},"__esModule",{value:!0}),r),hC={};Sj(hC,{isArrayBuffer:()=>Kj});EC.exports=Xj(hC);var Kj=zj((r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]","isArrayBuffer")});var S1=O((brr,FC)=>{var{defineProperty:l$,getOwnPropertyDescriptor:Zj,getOwnPropertyNames:Pj}=Object,Jj=Object.prototype.hasOwnProperty,$C=(r,s)=>l$(r,"name",{value:s,configurable:!0}),Qj=(r,s)=>{for(var f in s)l$(r,f,{get:s[f],enumerable:!0})},Bj=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Pj(s))if(!Jj.call(r,h)&&h!==f)l$(r,h,{get:()=>s[h],enumerable:!(w=Zj(s,h))||w.enumerable})}return r},Mj=(r)=>Bj(l$({},"__esModule",{value:!0}),r),IC={};Qj(IC,{fromArrayBuffer:()=>Hj,fromString:()=>lj});FC.exports=Mj(IC);var Vj=fF(),sF=import.meta.require("buffer"),Hj=$C((r,s=0,f=r.byteLength-s)=>{if(!Vj.isArrayBuffer(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return sF.Buffer.from(r,s,f)},"fromArrayBuffer"),lj=$C((r,s)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return s?sF.Buffer.from(r,s):sF.Buffer.from(r)},"fromString")});var GC=O((UC)=>{Object.defineProperty(UC,"__esModule",{value:!0});UC.fromBase64=void 0;var Dj=S1(),kj=/^[A-Za-z0-9+/]*={0,2}$/,yj=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!kj.exec(r))throw new TypeError("Invalid base64 string.");const s=Dj.fromString(r,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)};UC.fromBase64=yj});var O0=O((grr,CC)=>{var{defineProperty:D$,getOwnPropertyDescriptor:Nj,getOwnPropertyNames:qj}=Object,mj=Object.prototype.hasOwnProperty,wF=(r,s)=>D$(r,"name",{value:s,configurable:!0}),jj=(r,s)=>{for(var f in s)D$(r,f,{get:s[f],enumerable:!0})},vj=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of qj(s))if(!mj.call(r,h)&&h!==f)D$(r,h,{get:()=>s[h],enumerable:!(w=Nj(s,h))||w.enumerable})}return r},ij=(r)=>vj(D$({},"__esModule",{value:!0}),r),AC={};jj(AC,{fromUtf8:()=>RC,toUint8Array:()=>Oj,toUtf8:()=>dj});CC.exports=ij(AC);var LC=S1(),RC=wF((r)=>{const s=LC.fromString(r,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Oj=wF((r)=>{if(typeof r==="string")return RC(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},"toUint8Array"),dj=wF((r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return LC.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")},"toUtf8")});var SC=O((WC)=>{Object.defineProperty(WC,"__esModule",{value:!0});WC.toBase64=void 0;var cj=S1(),bj=O0(),_j=(r)=>{let s;if(typeof r==="string")s=bj.fromUtf8(r);else s=r;if(typeof s!=="object"||typeof s.byteOffset!=="number"||typeof s.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return cj.fromArrayBuffer(s.buffer,s.byteOffset,s.byteLength).toString("base64")};WC.toBase64=_j});var y$=O((err,k$)=>{var{defineProperty:YC,getOwnPropertyDescriptor:gj,getOwnPropertyNames:xj}=Object,ej=Object.prototype.hasOwnProperty,hF=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of xj(s))if(!ej.call(r,h)&&h!==f)YC(r,h,{get:()=>s[h],enumerable:!(w=gj(s,h))||w.enumerable})}return r},XC=(r,s,f)=>(hF(r,s,"default"),f&&hF(f,s,"default")),nj=(r)=>hF(YC({},"__esModule",{value:!0}),r),EF={};k$.exports=nj(EF);XC(EF,GC(),k$.exports);XC(EF,SC(),k$.exports)});var PC=O((KC)=>{Object.defineProperty(KC,"__esModule",{value:!0});KC.getAwsChunkedEncodingStream=void 0;var oj=import.meta.require("stream"),aj=(r,s)=>{const{base64Encoder:f,bodyLengthChecker:w,checksumAlgorithmFn:h,checksumLocationName:E,streamHasher:$}=s,I=f!==void 0&&h!==void 0&&E!==void 0&&$!==void 0,F=I?$(h,r):void 0,U=new oj.Readable({read:()=>{}});return r.on("data",(A)=>{const L=w(A)||0;U.push(`${L.toString(16)}\r\n`),U.push(A),U.push("\r\n")}),r.on("end",async()=>{if(U.push("0\r\n"),I){const A=f(await F);U.push(`${E}:${A}\r\n`),U.push("\r\n")}U.push(null)}),U};KC.getAwsChunkedEncodingStream=aj});var IF=O((orr,BC)=>{var{defineProperty:N$,getOwnPropertyDescriptor:pj,getOwnPropertyNames:uj}=Object,tj=Object.prototype.hasOwnProperty,$F=(r,s)=>N$(r,"name",{value:s,configurable:!0}),rv=(r,s)=>{for(var f in s)N$(r,f,{get:s[f],enumerable:!0})},fv=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of uj(s))if(!tj.call(r,h)&&h!==f)N$(r,h,{get:()=>s[h],enumerable:!(w=pj(s,h))||w.enumerable})}return r},sv=(r)=>fv(N$({},"__esModule",{value:!0}),r),JC={};rv(JC,{escapeUri:()=>QC,escapeUriPath:()=>hv});BC.exports=sv(JC);var QC=$F((r)=>encodeURIComponent(r).replace(/[!'()*]/g,wv),"escapeUri"),wv=$F((r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),hv=$F((r)=>r.split("/").map(QC).join("/"),"escapeUriPath")});var UF=O((arr,HC)=>{function VC(r){const s=[];for(let f of Object.keys(r).sort()){const w=r[f];if(f=FF.escapeUri(f),Array.isArray(w))for(let h=0,E=w.length;h<E;h++)s.push(`${f}=${FF.escapeUri(w[h])}`);else{let h=f;if(w||typeof w==="string")h+=`=${FF.escapeUri(w)}`;s.push(h)}}return s.join("&")}var{defineProperty:q$,getOwnPropertyDescriptor:Ev,getOwnPropertyNames:$v}=Object,Iv=Object.prototype.hasOwnProperty,Fv=(r,s)=>q$(r,"name",{value:s,configurable:!0}),Uv=(r,s)=>{for(var f in s)q$(r,f,{get:s[f],enumerable:!0})},Tv=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of $v(s))if(!Iv.call(r,h)&&h!==f)q$(r,h,{get:()=>s[h],enumerable:!(w=Ev(s,h))||w.enumerable})}return r},Gv=(r)=>Tv(q$({},"__esModule",{value:!0}),r),MC={};Uv(MC,{buildQueryString:()=>VC});HC.exports=Gv(MC);var FF=IF();Fv(VC,"buildQueryString")});var nC=O((prr,eC)=>{async function AF(r,s,f=kC){const w=s.headers??{},h=w.Expect||w.expect;let E=-1,$=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{E=Number(setTimeout(I,Math.max(kC,f)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout(E),I()}),r.on("error",()=>{$=!0,clearTimeout(E),I()})})]);if(!$)OC(r,s.body)}function OC(r,s){if(s instanceof iC.Readable){s.pipe(r);return}if(s){if(Buffer.isBuffer(s)||typeof s==="string"){r.end(s);return}const f=s;if(typeof f==="object"&&f.buffer&&typeof f.byteOffset==="number"&&typeof f.byteLength==="number"){r.end(Buffer.from(f.buffer,f.byteOffset,f.byteLength));return}r.end(Buffer.from(s));return}r.end()}async function xC(r){const s=[],f=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await f.read();if(F)s.push(F),h+=F.length;w=I}const E=new Uint8Array(h);let $=0;for(let I of s)E.set(I,$),$+=I.length;return E}var{create:Av,defineProperty:Y1,getOwnPropertyDescriptor:Lv,getOwnPropertyNames:Rv,getPrototypeOf:Cv}=Object,Wv=Object.prototype.hasOwnProperty,Rr=(r,s)=>Y1(r,"name",{value:s,configurable:!0}),zv=(r,s)=>{for(var f in s)Y1(r,f,{get:s[f],enumerable:!0})},NC=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Rv(s))if(!Wv.call(r,h)&&h!==f)Y1(r,h,{get:()=>s[h],enumerable:!(w=Lv(s,h))||w.enumerable})}return r},Sv=(r,s,f)=>(f=r!=null?Av(Cv(r)):{},NC(s||!r||!r.__esModule?Y1(f,"default",{value:r,enumerable:!0}):f,r)),Yv=(r)=>NC(Y1({},"__esModule",{value:!0}),r),qC={};zv(qC,{DEFAULT_REQUEST_TIMEOUT:()=>Qv,NodeHttp2Handler:()=>lv,NodeHttpHandler:()=>Bv,streamCollector:()=>kv});eC.exports=Yv(qC);var mC=L0(),jC=UF(),TF=import.meta.require("http"),GF=import.meta.require("https"),Xv=["ECONNRESET","EPIPE","ETIMEDOUT"],vC=Rr((r)=>{const s={};for(let f of Object.keys(r)){const w=r[f];s[f]=Array.isArray(w)?w.join(","):w}return s},"getTransformedHeaders"),lC=1000,Kv=Rr((r,s,f=0)=>{if(!f)return-1;const w=Rr((h)=>{const E=setTimeout(()=>{r.destroy(),s(Object.assign(new Error(`Socket timed out without establishing a connection within ${f} ms`),{name:"TimeoutError"}))},f-h),$=Rr((I)=>{if(I==null?void 0:I.connecting)I.on("connect",()=>{clearTimeout(E)});else clearTimeout(E)},"doWithSocket");if(r.socket)$(r.socket);else r.on("socket",$)},"registerTimeout");if(f<2000)return w(0),0;return setTimeout(w.bind(null,lC),lC)},"setConnectionTimeout"),Zv=3000,Pv=Rr((r,{keepAlive:s,keepAliveMsecs:f},w=Zv)=>{if(s!==!0)return-1;const h=Rr(()=>{if(r.socket)r.socket.setKeepAlive(s,f||0);else r.on("socket",(E)=>{E.setKeepAlive(s,f||0)})},"registerListener");if(w===0)return h(),0;return setTimeout(h,w)},"setSocketKeepAlive"),DC=3000,Jv=Rr((r,s,f=0)=>{const w=Rr((h)=>{r.setTimeout(f-h,()=>{r.destroy(),s(Object.assign(new Error(`Connection timed out after ${f} ms`),{name:"TimeoutError"}))})},"registerTimeout");if(0<f&&f<6000)return w(0),0;return setTimeout(w.bind(null,f===0?0:DC),DC)},"setSocketTimeout"),iC=import.meta.require("stream"),kC=1000;Rr(AF,"writeRequestBody");Rr(OC,"writeBody");var Qv=0,dC=class r{constructor(s){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,w)=>{if(typeof s==="function")s().then((h)=>{f(this.resolveDefaultConfig(h))}).catch(w);else f(this.resolveDefaultConfig(s))})}static create(s){if(typeof(s==null?void 0:s.handle)==="function")return s;return new r(s)}static checkSocketUsage(s,f,w=console){var h,E,$;const{sockets:I,requests:F,maxSockets:U}=s;if(typeof U!=="number"||U===1/0)return f;const A=15000;if(Date.now()-A<f)return f;if(I&&F)for(let L in I){const S=((h=I[L])==null?void 0:h.length)??0,z=((E=F[L])==null?void 0:E.length)??0;if(S>=U&&z>=2*U)return($=w==null?void 0:w.warn)==null||$.call(w,`@smithy/node-http-handler:WARN - socket usage at capacity=${S} and ${z} additional requests are enqueued.
2
+ var Rk=Object.create;var{getPrototypeOf:Sk,defineProperty:PF,getOwnPropertyNames:Yk}=Object;var Xk=Object.prototype.hasOwnProperty;var e=(r,s,f)=>{f=r!=null?Rk(Sk(r)):{};let h=s||!r||!r.__esModule?PF(f,"default",{value:r,enumerable:!0}):f;for(let w of Yk(r))if(!Xk.call(h,w))PF(h,w,{get:()=>r[w],enumerable:!0});return h};var i=(r,s)=>()=>(s||r((s={exports:{}}).exports,s),s.exports);var Zs=(r,s)=>{for(var f in s)PF(r,f,{get:s[f],enumerable:!0,configurable:!0,set:(h)=>s[f]=()=>h})};var G=(r,s)=>()=>(r&&(s=r(r=0)),s);var Qs=(r)=>{let s=r.httpHandler;return{setHttpHandler(f){s=f},httpHandler(){return s},updateHttpClientConfig(f,h){s.updateHttpClientConfig(f,h)},httpHandlerConfigs(){return s.httpHandlerConfigs()}}},Js=(r)=>{return{httpHandler:r.httpHandler()}};var wL=()=>{};var Uf=i((Xt,LL)=>{var{defineProperty:TE,getOwnPropertyDescriptor:Kk,getOwnPropertyNames:Pk}=Object,Zk=Object.prototype.hasOwnProperty,GE=(r,s)=>TE(r,"name",{value:s,configurable:!0}),Qk=(r,s)=>{for(var f in s)TE(r,f,{get:s[f],enumerable:!0})},Jk=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Pk(s))if(!Zk.call(r,w)&&w!==f)TE(r,w,{get:()=>s[w],enumerable:!(h=Kk(s,w))||h.enumerable})}return r},Bk=(r)=>Jk(TE({},"__esModule",{value:!0}),r),$L={};Qk($L,{AlgorithmId:()=>UL,EndpointURLScheme:()=>FL,FieldPosition:()=>TL,HttpApiKeyAuthLocation:()=>IL,HttpAuthLocation:()=>EL,IniSectionType:()=>GL,RequestHandlerProtocol:()=>AL,SMITHY_CONTEXT_KEY:()=>Dk,getDefaultClientConfiguration:()=>Hk,resolveDefaultRuntimeConfig:()=>lk});LL.exports=Bk($L);var EL=((r)=>{return r.HEADER="header",r.QUERY="query",r})(EL||{}),IL=((r)=>{return r.HEADER="header",r.QUERY="query",r})(IL||{}),FL=((r)=>{return r.HTTP="http",r.HTTPS="https",r})(FL||{}),UL=((r)=>{return r.MD5="md5",r.CRC32="crc32",r.CRC32C="crc32c",r.SHA1="sha1",r.SHA256="sha256",r})(UL||{}),Mk=GE((r)=>{let s=[];if(r.sha256!==void 0)s.push({algorithmId:()=>"sha256",checksumConstructor:()=>r.sha256});if(r.md5!=null)s.push({algorithmId:()=>"md5",checksumConstructor:()=>r.md5});return{_checksumAlgorithms:s,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),Vk=GE((r)=>{let s={};return r.checksumAlgorithms().forEach((f)=>{s[f.algorithmId()]=f.checksumConstructor()}),s},"resolveChecksumRuntimeConfig"),Hk=GE((r)=>{return{...Mk(r)}},"getDefaultClientConfiguration"),lk=GE((r)=>{return{...Vk(r)}},"resolveDefaultRuntimeConfig"),TL=((r)=>{return r[r.HEADER=0]="HEADER",r[r.TRAILER=1]="TRAILER",r})(TL||{}),Dk="__smithy_context",GL=((r)=>{return r.PROFILE="profile",r.SSO_SESSION="sso-session",r.SERVICES="services",r})(GL||{}),AL=((r)=>{return r.HTTP_0_9="http/0.9",r.HTTP_1_0="http/1.0",r.TDS_8_0="tds/8.0",r})(AL||{})});var kk;var zL=G(()=>{kk=e(Uf(),1)});var WL=()=>{};class Vr{constructor(r){this.method=r.method||"GET",this.hostname=r.hostname||"localhost",this.port=r.port,this.query=r.query||{},this.headers=r.headers||{},this.body=r.body,this.protocol=r.protocol?r.protocol.slice(-1)!==":"?`${r.protocol}:`:r.protocol:"https:",this.path=r.path?r.path.charAt(0)!=="/"?`/${r.path}`:r.path:"/",this.username=r.username,this.password=r.password,this.fragment=r.fragment}static clone(r){let s=new Vr({...r,headers:{...r.headers}});if(s.query)s.query=yk(s.query);return s}static isInstance(r){if(!r)return!1;let s=r;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Vr.clone(this)}}function yk(r){return Object.keys(r).reduce((s,f)=>{let h=r[f];return{...s,[f]:Array.isArray(h)?[...h]:h}},{})}class c0{constructor(r){this.statusCode=r.statusCode,this.reason=r.reason,this.headers=r.headers||{},this.body=r.body}static isInstance(r){if(!r)return!1;let s=r;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}var CL=()=>{};var yr=G(()=>{wL();zL();WL();CL()});function Bs(r){return r}var Nk=(r)=>(s)=>async(f)=>{if(!Vr.isInstance(f.request))return s(f);let{request:h}=f,{handlerProtocol:w=""}=r.requestHandler.metadata||{};if(w.indexOf("h2")>=0&&!h.headers[":authority"])delete h.headers.host,h.headers[":authority"]=h.hostname+(h.port?":"+h.port:"");else if(!h.headers.host){let $=h.hostname;if(h.port!=null)$+=`:${h.port}`;h.headers.host=$}return s(f)},qk,Ms=(r)=>({applyToStack:(s)=>{s.add(Nk(r),qk)}});var hw=G(()=>{yr();qk={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var mk=()=>(r,s)=>async(f)=>{try{let h=await r(f),{clientName:w,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=s,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:U}=I,A=F??s.inputFilterSensitiveLog,L=U??s.outputFilterSensitiveLog,{$metadata:S,...R}=h.output;return E?.info?.({clientName:w,commandName:$,input:A(f.input),output:L(R),metadata:S}),h}catch(h){let{clientName:w,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=s,{overrideInputFilterSensitiveLog:F}=I,U=F??s.inputFilterSensitiveLog;throw E?.error?.({clientName:w,commandName:$,input:U(f.input),error:h,metadata:h.$metadata}),h}},jk,Vs=(r)=>({applyToStack:(s)=>{s.add(mk(),jk)}});var RL=G(()=>{jk={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var ww=G(()=>{RL()});var SL="X-Amzn-Trace-Id",vk="AWS_LAMBDA_FUNCTION_NAME",ik="_X_AMZN_TRACE_ID",Ok=(r)=>(s)=>async(f)=>{let{request:h}=f;if(!Vr.isInstance(h)||r.runtime!=="node"||h.headers.hasOwnProperty(SL))return s(f);let w=process.env[vk],$=process.env[ik],E=(I)=>typeof I==="string"&&I.length>0;if(E(w)&&E($))h.headers[SL]=$;return s({...f,request:h})},dk,Hs=(r)=>({applyToStack:(s)=>{s.add(Ok(r),dk)}});var $w=G(()=>{yr();dk={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var L1=i((ct,PL)=>{var{defineProperty:AE,getOwnPropertyDescriptor:ck,getOwnPropertyNames:bk}=Object,_k=Object.prototype.hasOwnProperty,XL=(r,s)=>AE(r,"name",{value:s,configurable:!0}),gk=(r,s)=>{for(var f in s)AE(r,f,{get:s[f],enumerable:!0})},xk=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of bk(s))if(!_k.call(r,w)&&w!==f)AE(r,w,{get:()=>s[w],enumerable:!(h=ck(s,w))||h.enumerable})}return r},ek=(r)=>xk(AE({},"__esModule",{value:!0}),r),KL={};gk(KL,{getSmithyContext:()=>nk,normalizeProvider:()=>ok});PL.exports=ek(KL);var YL=Uf(),nk=XL((r)=>r[YL.SMITHY_CONTEXT_KEY]||(r[YL.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),ok=XL((r)=>{if(typeof r==="function")return r;let s=Promise.resolve(r);return()=>s},"normalizeProvider")});var ZF=i((bt,ML)=>{var{defineProperty:LE,getOwnPropertyDescriptor:ak,getOwnPropertyNames:pk}=Object,uk=Object.prototype.hasOwnProperty,Ph=(r,s)=>LE(r,"name",{value:s,configurable:!0}),tk=(r,s)=>{for(var f in s)LE(r,f,{get:s[f],enumerable:!0})},ry=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of pk(s))if(!uk.call(r,w)&&w!==f)LE(r,w,{get:()=>s[w],enumerable:!(h=ak(s,w))||h.enumerable})}return r},fy=(r)=>ry(LE({},"__esModule",{value:!0}),r),ZL={};tk(ZL,{CredentialsProviderError:()=>sy,ProviderError:()=>zE,TokenProviderError:()=>hy,chain:()=>wy,fromStatic:()=>$y,memoize:()=>Ey});ML.exports=fy(ZL);var QL=class r extends Error{constructor(s,f=!0){var h;let w,$=!0;if(typeof f==="boolean")w=void 0,$=f;else if(f!=null&&typeof f==="object")w=f.logger,$=f.tryNextLink??!0;super(s);this.name="ProviderError",this.tryNextLink=$,Object.setPrototypeOf(this,r.prototype),(h=w==null?void 0:w.debug)==null||h.call(w,`@smithy/property-provider ${$?"->":"(!)"} ${s}`)}static from(s,f=!0){return Object.assign(new this(s.message,f),s)}};Ph(QL,"ProviderError");var zE=QL,JL=class r extends zE{constructor(s,f=!0){super(s,f);this.name="CredentialsProviderError",Object.setPrototypeOf(this,r.prototype)}};Ph(JL,"CredentialsProviderError");var sy=JL,BL=class r extends zE{constructor(s,f=!0){super(s,f);this.name="TokenProviderError",Object.setPrototypeOf(this,r.prototype)}};Ph(BL,"TokenProviderError");var hy=BL,wy=Ph((...r)=>async()=>{if(r.length===0)throw new zE("No providers in chain");let s;for(let f of r)try{return await f()}catch(h){if(s=h,h==null?void 0:h.tryNextLink)continue;throw h}throw s},"chain"),$y=Ph((r)=>()=>Promise.resolve(r),"fromStatic"),Ey=Ph((r,s,f)=>{let h,w,$,E=!1,I=Ph(async()=>{if(!w)w=r();try{h=await w,$=!0,E=!1}finally{w=void 0}return h},"coalesceProvider");if(s===void 0)return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))h=await I();return h};return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))h=await I();if(E)return h;if(f&&!f(h))return E=!0,h;if(s(h))return await I(),h;return h}},"memoize")});var Ew=i((VL)=>{Object.defineProperty(VL,"__esModule",{value:!0});VL.getHomeDir=void 0;var Iy=import.meta.require("os"),Fy=import.meta.require("path"),QF={},Uy=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},Ty=()=>{let{HOME:r,USERPROFILE:s,HOMEPATH:f,HOMEDRIVE:h=`C:${Fy.sep}`}=process.env;if(r)return r;if(s)return s;if(f)return`${h}${f}`;let w=Uy();if(!QF[w])QF[w]=Iy.homedir();return QF[w]};VL.getHomeDir=Ty});var JF=i((lL)=>{Object.defineProperty(lL,"__esModule",{value:!0});lL.getSSOTokenFilepath=void 0;var Gy=import.meta.require("crypto"),Ay=import.meta.require("path"),Ly=Ew(),zy=(r)=>{let f=Gy.createHash("sha1").update(r).digest("hex");return Ay.join(Ly.getHomeDir(),".aws","sso","cache",`${f}.json`)};lL.getSSOTokenFilepath=zy});var NL=i((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.getSSOTokenFromFile=void 0;var Wy=import.meta.require("fs"),Cy=JF(),{readFile:Ry}=Wy.promises,Sy=async(r)=>{let s=Cy.getSSOTokenFilepath(r),f=await Ry(s,"utf8");return JSON.parse(f)};kL.getSSOTokenFromFile=Sy});var MF=i((qL)=>{Object.defineProperty(qL,"__esModule",{value:!0});qL.slurpFile=void 0;var Yy=import.meta.require("fs"),{readFile:Xy}=Yy.promises,BF={},Ky=(r,s)=>{if(!BF[r]||(s===null||s===void 0?void 0:s.ignoreCache))BF[r]=Xy(r,"utf8");return BF[r]};qL.slurpFile=Ky});var DF=i((nt,W1)=>{var{defineProperty:RE,getOwnPropertyDescriptor:Py,getOwnPropertyNames:Zy}=Object,Qy=Object.prototype.hasOwnProperty,Bf=(r,s)=>RE(r,"name",{value:s,configurable:!0}),Jy=(r,s)=>{for(var f in s)RE(r,f,{get:s[f],enumerable:!0})},VF=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Zy(s))if(!Qy.call(r,w)&&w!==f)RE(r,w,{get:()=>s[w],enumerable:!(h=Py(s,w))||h.enumerable})}return r},lF=(r,s,f)=>(VF(r,s,"default"),f&&VF(f,s,"default")),By=(r)=>VF(RE({},"__esModule",{value:!0}),r),z1={};Jy(z1,{CONFIG_PREFIX_SEPARATOR:()=>Zh,DEFAULT_PROFILE:()=>OL,ENV_PROFILE:()=>iL,getProfileName:()=>My,loadSharedConfigFiles:()=>cL,loadSsoSessionData:()=>Oy,parseKnownFiles:()=>cy});W1.exports=By(z1);lF(z1,Ew(),W1.exports);var iL="AWS_PROFILE",OL="default",My=Bf((r)=>r.profile||process.env[iL]||OL,"getProfileName");lF(z1,JF(),W1.exports);lF(z1,NL(),W1.exports);var WE=Uf(),Vy=Bf((r)=>Object.entries(r).filter(([s])=>{let f=s.indexOf(Zh);if(f===-1)return!1;return Object.values(WE.IniSectionType).includes(s.substring(0,f))}).reduce((s,[f,h])=>{let w=f.indexOf(Zh),$=f.substring(0,w)===WE.IniSectionType.PROFILE?f.substring(w+1):f;return s[$]=h,s},{...r.default&&{default:r.default}}),"getConfigData"),CE=import.meta.require("path"),Hy=Ew(),ly="AWS_CONFIG_FILE",dL=Bf(()=>process.env[ly]||CE.join(Hy.getHomeDir(),".aws","config"),"getConfigFilepath"),Dy=Ew(),ky="AWS_SHARED_CREDENTIALS_FILE",yy=Bf(()=>process.env[ky]||CE.join(Dy.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),Ny=Ew(),qy=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,my=["__proto__","profile __proto__"],HF=Bf((r)=>{let s={},f,h;for(let w of r.split(/\r?\n/)){let $=w.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){f=void 0,h=void 0;let I=$.substring(1,$.length-1),F=qy.exec(I);if(F){let[,U,,A]=F;if(Object.values(WE.IniSectionType).includes(U))f=[U,A].join(Zh)}else f=I;if(my.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(f){let I=$.indexOf("=");if(![0,-1].includes(I)){let[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")h=F;else{if(h&&w.trimStart()===w)h=void 0;s[f]=s[f]||{};let A=h?[h,F].join(Zh):F;s[f][A]=U}}}}return s},"parseIni"),jL=MF(),vL=Bf(()=>({}),"swallowError"),Zh=".",cL=Bf(async(r={})=>{let{filepath:s=yy(),configFilepath:f=dL()}=r,h=Ny.getHomeDir(),w="~/",$=s;if(s.startsWith("~/"))$=CE.join(h,s.slice(2));let E=f;if(f.startsWith("~/"))E=CE.join(h,f.slice(2));let I=await Promise.all([jL.slurpFile(E,{ignoreCache:r.ignoreCache}).then(HF).then(Vy).catch(vL),jL.slurpFile($,{ignoreCache:r.ignoreCache}).then(HF).catch(vL)]);return{configFile:I[0],credentialsFile:I[1]}},"loadSharedConfigFiles"),jy=Bf((r)=>Object.entries(r).filter(([s])=>s.startsWith(WE.IniSectionType.SSO_SESSION+Zh)).reduce((s,[f,h])=>({...s,[f.substring(f.indexOf(Zh)+1)]:h}),{}),"getSsoSessionData"),vy=MF(),iy=Bf(()=>({}),"swallowError"),Oy=Bf(async(r={})=>vy.slurpFile(r.configFilepath??dL()).then(HF).then(jy).catch(iy),"loadSsoSessionData"),dy=Bf((...r)=>{let s={};for(let f of r)for(let[h,w]of Object.entries(f))if(s[h]!==void 0)Object.assign(s[h],w);else s[h]=w;return s},"mergeConfigFiles"),cy=Bf(async(r)=>{let s=await cL(r);return dy(s.configFile,s.credentialsFile)},"parseKnownFiles")});var xL=i((ot,gL)=>{var{defineProperty:SE,getOwnPropertyDescriptor:by,getOwnPropertyNames:_y}=Object,gy=Object.prototype.hasOwnProperty,Iw=(r,s)=>SE(r,"name",{value:s,configurable:!0}),xy=(r,s)=>{for(var f in s)SE(r,f,{get:s[f],enumerable:!0})},ey=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of _y(s))if(!gy.call(r,w)&&w!==f)SE(r,w,{get:()=>s[w],enumerable:!(h=by(s,w))||h.enumerable})}return r},ny=(r)=>ey(SE({},"__esModule",{value:!0}),r),_L={};xy(_L,{loadConfig:()=>ty});gL.exports=ny(_L);var C1=ZF();function kF(r){try{let s=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return s.delete("CONFIG"),s.delete("CONFIG_PREFIX_SEPARATOR"),s.delete("ENV"),[...s].join(", ")}catch(s){return r}}Iw(kF,"getSelectorName");var oy=Iw((r,s)=>async()=>{try{let f=r(process.env);if(f===void 0)throw new Error;return f}catch(f){throw new C1.CredentialsProviderError(f.message||`Not found in ENV: ${kF(r.toString())}`,{logger:s})}},"fromEnv"),bL=DF(),ay=Iw((r,{preferredFile:s="config",...f}={})=>async()=>{let h=bL.getProfileName(f),{configFile:w,credentialsFile:$}=await bL.loadSharedConfigFiles(f),E=$[h]||{},I=w[h]||{},F=s==="config"?{...E,...I}:{...I,...E};try{let A=r(F,s==="config"?w:$);if(A===void 0)throw new Error;return A}catch(U){throw new C1.CredentialsProviderError(U.message||`Not found in config files w/ profile [${h}]: ${kF(r.toString())}`,{logger:f.logger})}},"fromSharedConfigFiles"),py=Iw((r)=>typeof r==="function","isFunction"),uy=Iw((r)=>py(r)?async()=>await r():C1.fromStatic(r),"fromStatic"),ty=Iw(({environmentVariableSelector:r,configFileSelector:s,default:f},h={})=>C1.memoize(C1.chain(oy(r),ay(s,h),uy(f))),"loadConfig")});var uL=i((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});aL.getEndpointUrlConfig=void 0;var eL=DF(),nL="AWS_ENDPOINT_URL",oL="endpoint_url",rN=(r)=>({environmentVariableSelector:(s)=>{let f=r.split(" ").map(($)=>$.toUpperCase()),h=s[[nL,...f].join("_")];if(h)return h;let w=s[nL];if(w)return w;return},configFileSelector:(s,f)=>{if(f&&s.services){let w=f[["services",s.services].join(eL.CONFIG_PREFIX_SEPARATOR)];if(w){let $=r.split(" ").map((I)=>I.toLowerCase()),E=w[[$.join("_"),oL].join(eL.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}let h=s[oL];if(h)return h;return},default:void 0});aL.getEndpointUrlConfig=rN});var yF=i((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});tL.getEndpointFromConfig=void 0;var fN=xL(),sN=uL(),hN=async(r)=>fN.loadConfig(sN.getEndpointUrlConfig(r!==null&&r!==void 0?r:""))();tL.getEndpointFromConfig=hN});var w4=i((ut,h4)=>{var{defineProperty:YE,getOwnPropertyDescriptor:wN,getOwnPropertyNames:$N}=Object,EN=Object.prototype.hasOwnProperty,IN=(r,s)=>YE(r,"name",{value:s,configurable:!0}),FN=(r,s)=>{for(var f in s)YE(r,f,{get:s[f],enumerable:!0})},UN=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of $N(s))if(!EN.call(r,w)&&w!==f)YE(r,w,{get:()=>s[w],enumerable:!(h=wN(s,w))||h.enumerable})}return r},TN=(r)=>UN(YE({},"__esModule",{value:!0}),r),f4={};FN(f4,{parseQueryString:()=>s4});h4.exports=TN(f4);function s4(r){let s={};if(r=r.replace(/^\?/,""),r)for(let f of r.split("&")){let[h,w=null]=f.split("=");if(h=decodeURIComponent(h),w)w=decodeURIComponent(w);if(!(h in s))s[h]=w;else if(Array.isArray(s[h]))s[h].push(w);else s[h]=[s[h],w]}return s}IN(s4,"parseQueryString")});var F4=i((tt,I4)=>{var{defineProperty:XE,getOwnPropertyDescriptor:GN,getOwnPropertyNames:AN}=Object,LN=Object.prototype.hasOwnProperty,zN=(r,s)=>XE(r,"name",{value:s,configurable:!0}),WN=(r,s)=>{for(var f in s)XE(r,f,{get:s[f],enumerable:!0})},CN=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of AN(s))if(!LN.call(r,w)&&w!==f)XE(r,w,{get:()=>s[w],enumerable:!(h=GN(s,w))||h.enumerable})}return r},RN=(r)=>CN(XE({},"__esModule",{value:!0}),r),$4={};WN($4,{parseUrl:()=>E4});I4.exports=RN($4);var SN=w4(),E4=zN((r)=>{if(typeof r==="string")return E4(new URL(r));let{hostname:s,pathname:f,port:h,protocol:w,search:$}=r,E;if($)E=SN.parseQueryString($);return{hostname:s,port:h?parseInt(h):void 0,protocol:w,path:f,query:E}},"parseUrl")});var qF=i((rrr,W4)=>{var{defineProperty:KE,getOwnPropertyDescriptor:YN,getOwnPropertyNames:XN}=Object,KN=Object.prototype.hasOwnProperty,NF=(r,s)=>KE(r,"name",{value:s,configurable:!0}),PN=(r,s)=>{for(var f in s)KE(r,f,{get:s[f],enumerable:!0})},ZN=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of XN(s))if(!KN.call(r,w)&&w!==f)KE(r,w,{get:()=>s[w],enumerable:!(h=YN(s,w))||h.enumerable})}return r},QN=(r)=>ZN(KE({},"__esModule",{value:!0}),r),U4={};PN(U4,{deserializerMiddleware:()=>T4,deserializerMiddlewareOption:()=>A4,getSerdePlugin:()=>z4,serializerMiddleware:()=>G4,serializerMiddlewareOption:()=>L4});W4.exports=QN(U4);var T4=NF((r,s)=>(f)=>async(h)=>{let{response:w}=await f(h);try{let $=await s(w,r);return{response:w,output:$}}catch($){if(Object.defineProperty($,"$response",{value:w}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}},"deserializerMiddleware"),G4=NF((r,s)=>(f,h)=>async(w)=>{var $;let E=(($=h.endpointV2)==null?void 0:$.url)&&r.urlParser?async()=>r.urlParser(h.endpointV2.url):r.endpoint;if(!E)throw new Error("No valid endpoint provider available.");let I=await s(w.input,{...r,endpoint:E});return f({...w,request:I})},"serializerMiddleware"),A4={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},L4={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function z4(r,s,f){return{applyToStack:(h)=>{h.add(T4(r,f),A4),h.add(G4(r,s),L4)}}}NF(z4,"getSerdePlugin")});var Z4=i((frr,P4)=>{var{defineProperty:ZE,getOwnPropertyDescriptor:JN,getOwnPropertyNames:BN}=Object,MN=Object.prototype.hasOwnProperty,fs=(r,s)=>ZE(r,"name",{value:s,configurable:!0}),VN=(r,s)=>{for(var f in s)ZE(r,f,{get:s[f],enumerable:!0})},HN=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of BN(s))if(!MN.call(r,w)&&w!==f)ZE(r,w,{get:()=>s[w],enumerable:!(h=JN(s,w))||h.enumerable})}return r},lN=(r)=>HN(ZE({},"__esModule",{value:!0}),r),R4={};VN(R4,{endpointMiddleware:()=>X4,endpointMiddlewareOptions:()=>K4,getEndpointFromInstructions:()=>S4,getEndpointPlugin:()=>ON,resolveEndpointConfig:()=>cN,resolveParams:()=>Y4,toEndpointV1:()=>mF});P4.exports=lN(R4);var DN=fs(async(r)=>{let s=(r==null?void 0:r.Bucket)||"";if(typeof r.Bucket==="string")r.Bucket=s.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(mN(s)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!qN(s)||s.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||s.toLowerCase()!==s||s.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},"resolveParamsForS3"),kN=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,yN=/(\d+\.){3}\d+/,NN=/\.\./,qN=fs((r)=>kN.test(r)&&!yN.test(r)&&!NN.test(r),"isDnsCompatibleBucketName"),mN=fs((r)=>{let[s,f,h,,,w]=r.split(":"),$=s==="arn"&&r.split(":").length>=6,E=Boolean($&&f&&h&&w);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E},"isArnBucketName"),jN=fs((r,s,f)=>{let h=fs(async()=>{let w=f[r]??f[s];if(typeof w==="function")return w();return w},"configProvider");if(r==="credentialScope"||s==="CredentialScope")return async()=>{let w=typeof f.credentials==="function"?await f.credentials():f.credentials;return(w==null?void 0:w.credentialScope)??(w==null?void 0:w.CredentialScope)};if(r==="accountId"||s==="AccountId")return async()=>{let w=typeof f.credentials==="function"?await f.credentials():f.credentials;return(w==null?void 0:w.accountId)??(w==null?void 0:w.AccountId)};if(r==="endpoint"||s==="endpoint")return async()=>{let w=await h();if(w&&typeof w==="object"){if("url"in w)return w.url.href;if("hostname"in w){let{protocol:$,hostname:E,port:I,path:F}=w;return`${$}//${E}${I?":"+I:""}${F}`}}return w};return h},"createConfigValueProvider"),vN=yF(),C4=F4(),mF=fs((r)=>{if(typeof r==="object"){if("url"in r)return C4.parseUrl(r.url);return r}return C4.parseUrl(r)},"toEndpointV1"),S4=fs(async(r,s,f,h)=>{if(!f.endpoint){let E;if(f.serviceConfiguredEndpoint)E=await f.serviceConfiguredEndpoint();else E=await vN.getEndpointFromConfig(f.serviceId);if(E)f.endpoint=()=>Promise.resolve(mF(E))}let w=await Y4(r,s,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(w,h)},"getEndpointFromInstructions"),Y4=fs(async(r,s,f)=>{var h;let w={},$=((h=s==null?void 0:s.getEndpointParameterInstructions)==null?void 0:h.call(s))||{};for(let[E,I]of Object.entries($))switch(I.type){case"staticContextParams":w[E]=I.value;break;case"contextParams":w[E]=r[I.name];break;case"clientContextParams":case"builtInParams":w[E]=await jN(I.name,E,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(I))}if(Object.keys($).length===0)Object.assign(w,f);if(String(f.serviceId).toLowerCase()==="s3")await DN(w);return w},"resolveParams"),PE=L1(),X4=fs(({config:r,instructions:s})=>{return(f,h)=>async(w)=>{var $,E,I;let F=await S4(w.input,{getEndpointParameterInstructions(){return s}},{...r},h);h.endpointV2=F,h.authSchemes=($=F.properties)==null?void 0:$.authSchemes;let U=(E=h.authSchemes)==null?void 0:E[0];if(U){h.signing_region=U.signingRegion,h.signing_service=U.signingName;let A=PE.getSmithyContext(h),L=(I=A==null?void 0:A.selectedHttpAuthScheme)==null?void 0:I.httpAuthOption;if(L)L.signingProperties=Object.assign(L.signingProperties||{},{signing_region:U.signingRegion,signingRegion:U.signingRegion,signing_service:U.signingName,signingName:U.signingName,signingRegionSet:U.signingRegionSet},U.properties)}return f({...w})}},"endpointMiddleware"),iN=qF(),K4={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:iN.serializerMiddlewareOption.name},ON=fs((r,s)=>({applyToStack:(f)=>{f.addRelativeTo(X4({config:r,instructions:s}),K4)}}),"getEndpointPlugin"),dN=yF(),cN=fs((r)=>{let s=r.tls??!0,{endpoint:f}=r,h=f!=null?async()=>mF(await PE.normalizeProvider(f)()):void 0,$={...r,endpoint:h,tls:s,isCustomEndpoint:!!f,useDualstackEndpoint:PE.normalizeProvider(r.useDualstackEndpoint??!1),useFipsEndpoint:PE.normalizeProvider(r.useFipsEndpoint??!1)},E=void 0;return $.serviceConfiguredEndpoint=async()=>{if(r.serviceId&&!E)E=dN.getEndpointFromConfig(r.serviceId);return E},$},"resolveEndpointConfig")});var R0=i((srr,k4)=>{var{defineProperty:QE,getOwnPropertyDescriptor:bN,getOwnPropertyNames:_N}=Object,gN=Object.prototype.hasOwnProperty,b0=(r,s)=>QE(r,"name",{value:s,configurable:!0}),xN=(r,s)=>{for(var f in s)QE(r,f,{get:s[f],enumerable:!0})},eN=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of _N(s))if(!gN.call(r,w)&&w!==f)QE(r,w,{get:()=>s[w],enumerable:!(h=bN(s,w))||h.enumerable})}return r},nN=(r)=>eN(QE({},"__esModule",{value:!0}),r),Q4={};xN(Q4,{Field:()=>pN,Fields:()=>uN,HttpRequest:()=>tN,HttpResponse:()=>rq,IHttpRequest:()=>J4.HttpRequest,getHttpHandlerExtensionConfiguration:()=>oN,isValidHostname:()=>D4,resolveHttpHandlerRuntimeConfig:()=>aN});k4.exports=nN(Q4);var oN=b0((r)=>{let s=r.httpHandler;return{setHttpHandler(f){s=f},httpHandler(){return s},updateHttpClientConfig(f,h){s.updateHttpClientConfig(f,h)},httpHandlerConfigs(){return s.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),aN=b0((r)=>{return{httpHandler:r.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),J4=Uf(),B4=class r{constructor({name:s,kind:f=J4.FieldPosition.HEADER,values:h=[]}){this.name=s,this.kind=f,this.values=h}add(s){this.values.push(s)}set(s){this.values=s}remove(s){this.values=this.values.filter((f)=>f!==s)}toString(){return this.values.map((s)=>s.includes(",")||s.includes(" ")?`"${s}"`:s).join(", ")}get(){return this.values}};b0(B4,"Field");var pN=B4,M4=class r{constructor({fields:s=[],encoding:f="utf-8"}){this.entries={},s.forEach(this.setField.bind(this)),this.encoding=f}setField(s){this.entries[s.name.toLowerCase()]=s}getField(s){return this.entries[s.toLowerCase()]}removeField(s){delete this.entries[s.toLowerCase()]}getByType(s){return Object.values(this.entries).filter((f)=>f.kind===s)}};b0(M4,"Fields");var uN=M4,V4=class r{constructor(s){this.method=s.method||"GET",this.hostname=s.hostname||"localhost",this.port=s.port,this.query=s.query||{},this.headers=s.headers||{},this.body=s.body,this.protocol=s.protocol?s.protocol.slice(-1)!==":"?`${s.protocol}:`:s.protocol:"https:",this.path=s.path?s.path.charAt(0)!=="/"?`/${s.path}`:s.path:"/",this.username=s.username,this.password=s.password,this.fragment=s.fragment}static clone(s){let f=new r({...s,headers:{...s.headers}});if(f.query)f.query=H4(f.query);return f}static isInstance(s){if(!s)return!1;let f=s;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return r.clone(this)}};b0(V4,"HttpRequest");var tN=V4;function H4(r){return Object.keys(r).reduce((s,f)=>{let h=r[f];return{...s,[f]:Array.isArray(h)?[...h]:h}},{})}b0(H4,"cloneQuery");var l4=class r{constructor(s){this.statusCode=s.statusCode,this.reason=s.reason,this.headers=s.headers||{},this.body=s.body}static isInstance(s){if(!s)return!1;let f=s;return typeof f.statusCode==="number"&&typeof f.headers==="object"}};b0(l4,"HttpResponse");var rq=l4;function D4(r){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(r)}b0(D4,"isValidHostname")});var jF=i((y4)=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.default=hq;var fq=sq(import.meta.require("crypto"));function sq(r){return r&&r.__esModule?r:{default:r}}var BE=new Uint8Array(256),JE=BE.length;function hq(){if(JE>BE.length-16)fq.default.randomFillSync(BE),JE=0;return BE.slice(JE,JE+=16)}});var m4=i((N4)=>{Object.defineProperty(N4,"__esModule",{value:!0});N4.default=void 0;var $q=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;N4.default=$q});var R1=i((j4)=>{Object.defineProperty(j4,"__esModule",{value:!0});j4.default=void 0;var Eq=Iq(m4());function Iq(r){return r&&r.__esModule?r:{default:r}}function Fq(r){return typeof r==="string"&&Eq.default.test(r)}var Uq=Fq;j4.default=Uq});var S1=i((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.default=void 0;O4.unsafeStringify=i4;var Tq=Gq(R1());function Gq(r){return r&&r.__esModule?r:{default:r}}var dr=[];for(let r=0;r<256;++r)dr.push((r+256).toString(16).slice(1));function i4(r,s=0){return dr[r[s+0]]+dr[r[s+1]]+dr[r[s+2]]+dr[r[s+3]]+"-"+dr[r[s+4]]+dr[r[s+5]]+"-"+dr[r[s+6]]+dr[r[s+7]]+"-"+dr[r[s+8]]+dr[r[s+9]]+"-"+dr[r[s+10]]+dr[r[s+11]]+dr[r[s+12]]+dr[r[s+13]]+dr[r[s+14]]+dr[r[s+15]]}function Aq(r,s=0){let f=i4(r,s);if(!Tq.default(f))throw TypeError("Stringified UUID is invalid");return f}var Lq=Aq;O4.default=Lq});var g4=i((b4)=>{Object.defineProperty(b4,"__esModule",{value:!0});b4.default=void 0;var Wq=Rq(jF()),Cq=S1();function Rq(r){return r&&r.__esModule?r:{default:r}}var c4,vF,iF=0,OF=0;function Sq(r,s,f){let h=s&&f||0,w=s||new Array(16);r=r||{};let $=r.node||c4,E=r.clockseq!==void 0?r.clockseq:vF;if($==null||E==null){let S=r.random||(r.rng||Wq.default)();if($==null)$=c4=[S[0]|1,S[1],S[2],S[3],S[4],S[5]];if(E==null)E=vF=(S[6]<<8|S[7])&16383}let I=r.msecs!==void 0?r.msecs:Date.now(),F=r.nsecs!==void 0?r.nsecs:OF+1,U=I-iF+(F-OF)/1e4;if(U<0&&r.clockseq===void 0)E=E+1&16383;if((U<0||I>iF)&&r.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");iF=I,OF=F,vF=E,I+=12219292800000;let A=((I&268435455)*1e4+F)%4294967296;w[h++]=A>>>24&255,w[h++]=A>>>16&255,w[h++]=A>>>8&255,w[h++]=A&255;let L=I/4294967296*1e4&268435455;w[h++]=L>>>8&255,w[h++]=L&255,w[h++]=L>>>24&15|16,w[h++]=L>>>16&255,w[h++]=E>>>8|128,w[h++]=E&255;for(let S=0;S<6;++S)w[h+S]=$[S];return s||Cq.unsafeStringify(w)}var Yq=Sq;b4.default=Yq});var dF=i((x4)=>{Object.defineProperty(x4,"__esModule",{value:!0});x4.default=void 0;var Xq=Kq(R1());function Kq(r){return r&&r.__esModule?r:{default:r}}function Pq(r){if(!Xq.default(r))throw TypeError("Invalid UUID");let s,f=new Uint8Array(16);return f[0]=(s=parseInt(r.slice(0,8),16))>>>24,f[1]=s>>>16&255,f[2]=s>>>8&255,f[3]=s&255,f[4]=(s=parseInt(r.slice(9,13),16))>>>8,f[5]=s&255,f[6]=(s=parseInt(r.slice(14,18),16))>>>8,f[7]=s&255,f[8]=(s=parseInt(r.slice(19,23),16))>>>8,f[9]=s&255,f[10]=(s=parseInt(r.slice(24,36),16))/1099511627776&255,f[11]=s/4294967296&255,f[12]=s>>>24&255,f[13]=s>>>16&255,f[14]=s>>>8&255,f[15]=s&255,f}var Zq=Pq;x4.default=Zq});var cF=i((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.URL=a4.DNS=void 0;a4.default=Vq;var Qq=S1(),Jq=Bq(dF());function Bq(r){return r&&r.__esModule?r:{default:r}}function Mq(r){r=unescape(encodeURIComponent(r));let s=[];for(let f=0;f<r.length;++f)s.push(r.charCodeAt(f));return s}var n4="6ba7b810-9dad-11d1-80b4-00c04fd430c8";a4.DNS=n4;var o4="6ba7b811-9dad-11d1-80b4-00c04fd430c8";a4.URL=o4;function Vq(r,s,f){function h(w,$,E,I){var F;if(typeof w==="string")w=Mq(w);if(typeof $==="string")$=Jq.default($);if(((F=$)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let U=new Uint8Array(16+w.length);if(U.set($),U.set(w,$.length),U=f(U),U[6]=U[6]&15|s,U[8]=U[8]&63|128,E){I=I||0;for(let A=0;A<16;++A)E[I+A]=U[A];return E}return Qq.unsafeStringify(U)}try{h.name=r}catch(w){}return h.DNS=n4,h.URL=o4,h}});var rz=i((u4)=>{Object.defineProperty(u4,"__esModule",{value:!0});u4.default=void 0;var Dq=kq(import.meta.require("crypto"));function kq(r){return r&&r.__esModule?r:{default:r}}function yq(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Dq.default.createHash("md5").update(r).digest()}var Nq=yq;u4.default=Nq});var wz=i((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.default=void 0;var qq=fz(cF()),mq=fz(rz());function fz(r){return r&&r.__esModule?r:{default:r}}var jq=qq.default("v3",48,mq.default),vq=jq;sz.default=vq});var Iz=i(($z)=>{Object.defineProperty($z,"__esModule",{value:!0});$z.default=void 0;var iq=Oq(import.meta.require("crypto"));function Oq(r){return r&&r.__esModule?r:{default:r}}var dq={randomUUID:iq.default.randomUUID};$z.default=dq});var Az=i((Tz)=>{Object.defineProperty(Tz,"__esModule",{value:!0});Tz.default=void 0;var Fz=Uz(Iz()),cq=Uz(jF()),bq=S1();function Uz(r){return r&&r.__esModule?r:{default:r}}function _q(r,s,f){if(Fz.default.randomUUID&&!s&&!r)return Fz.default.randomUUID();r=r||{};let h=r.random||(r.rng||cq.default)();if(h[6]=h[6]&15|64,h[8]=h[8]&63|128,s){f=f||0;for(let w=0;w<16;++w)s[f+w]=h[w];return s}return bq.unsafeStringify(h)}var gq=_q;Tz.default=gq});var Wz=i((Lz)=>{Object.defineProperty(Lz,"__esModule",{value:!0});Lz.default=void 0;var xq=eq(import.meta.require("crypto"));function eq(r){return r&&r.__esModule?r:{default:r}}function nq(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return xq.default.createHash("sha1").update(r).digest()}var oq=nq;Lz.default=oq});var Yz=i((Rz)=>{Object.defineProperty(Rz,"__esModule",{value:!0});Rz.default=void 0;var aq=Cz(cF()),pq=Cz(Wz());function Cz(r){return r&&r.__esModule?r:{default:r}}var uq=aq.default("v5",80,pq.default),tq=uq;Rz.default=tq});var Pz=i((Xz)=>{Object.defineProperty(Xz,"__esModule",{value:!0});Xz.default=void 0;var rm="00000000-0000-0000-0000-000000000000";Xz.default=rm});var Jz=i((Zz)=>{Object.defineProperty(Zz,"__esModule",{value:!0});Zz.default=void 0;var fm=sm(R1());function sm(r){return r&&r.__esModule?r:{default:r}}function hm(r){if(!fm.default(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var wm=hm;Zz.default=wm});var bF=i((ss)=>{Object.defineProperty(ss,"__esModule",{value:!0});Object.defineProperty(ss,"NIL",{enumerable:!0,get:function(){return Um.default}});Object.defineProperty(ss,"parse",{enumerable:!0,get:function(){return Lm.default}});Object.defineProperty(ss,"stringify",{enumerable:!0,get:function(){return Am.default}});Object.defineProperty(ss,"v1",{enumerable:!0,get:function(){return $m.default}});Object.defineProperty(ss,"v3",{enumerable:!0,get:function(){return Em.default}});Object.defineProperty(ss,"v4",{enumerable:!0,get:function(){return Im.default}});Object.defineProperty(ss,"v5",{enumerable:!0,get:function(){return Fm.default}});Object.defineProperty(ss,"validate",{enumerable:!0,get:function(){return Gm.default}});Object.defineProperty(ss,"version",{enumerable:!0,get:function(){return Tm.default}});var $m=S0(g4()),Em=S0(wz()),Im=S0(Az()),Fm=S0(Yz()),Um=S0(Pz()),Tm=S0(Jz()),Gm=S0(R1()),Am=S0(S1()),Lm=S0(dF());function S0(r){return r&&r.__esModule?r:{default:r}}});var Qh=i((Yrr,Hz)=>{var{defineProperty:ME,getOwnPropertyDescriptor:zm,getOwnPropertyNames:Wm}=Object,Cm=Object.prototype.hasOwnProperty,Fw=(r,s)=>ME(r,"name",{value:s,configurable:!0}),Rm=(r,s)=>{for(var f in s)ME(r,f,{get:s[f],enumerable:!0})},Sm=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Wm(s))if(!Cm.call(r,w)&&w!==f)ME(r,w,{get:()=>s[w],enumerable:!(h=zm(s,w))||h.enumerable})}return r},Ym=(r)=>Sm(ME({},"__esModule",{value:!0}),r),Bz={};Rm(Bz,{isClockSkewCorrectedError:()=>Mz,isClockSkewError:()=>Bm,isRetryableByTrait:()=>Jm,isServerError:()=>Vm,isThrottlingError:()=>Mm,isTransientError:()=>Vz});Hz.exports=Ym(Bz);var Xm=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],Km=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Pm=["TimeoutError","RequestTimeout","RequestTimeoutException"],Zm=[500,502,503,504],Qm=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Jm=Fw((r)=>r.$retryable!==void 0,"isRetryableByTrait"),Bm=Fw((r)=>Xm.includes(r.name),"isClockSkewError"),Mz=Fw((r)=>{var s;return(s=r.$metadata)==null?void 0:s.clockSkewCorrected},"isClockSkewCorrectedError"),Mm=Fw((r)=>{var s,f;return((s=r.$metadata)==null?void 0:s.httpStatusCode)===429||Km.includes(r.name)||((f=r.$retryable)==null?void 0:f.throttling)==!0},"isThrottlingError"),Vz=Fw((r)=>{var s;return Mz(r)||Pm.includes(r.name)||Qm.includes((r==null?void 0:r.code)||"")||Zm.includes(((s=r.$metadata)==null?void 0:s.httpStatusCode)||0)},"isTransientError"),Vm=Fw((r)=>{var s;if(((s=r.$metadata)==null?void 0:s.httpStatusCode)!==void 0){let f=r.$metadata.httpStatusCode;if(500<=f&&f<=599&&!Vz(r))return!0;return!1}return!1},"isServerError")});var bz=i((Xrr,cz)=>{var{defineProperty:VE,getOwnPropertyDescriptor:Hm,getOwnPropertyNames:lm}=Object,Dm=Object.prototype.hasOwnProperty,hs=(r,s)=>VE(r,"name",{value:s,configurable:!0}),km=(r,s)=>{for(var f in s)VE(r,f,{get:s[f],enumerable:!0})},ym=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of lm(s))if(!Dm.call(r,w)&&w!==f)VE(r,w,{get:()=>s[w],enumerable:!(h=Hm(s,w))||h.enumerable})}return r},Nm=(r)=>ym(VE({},"__esModule",{value:!0}),r),Dz={};km(Dz,{AdaptiveRetryStrategy:()=>Om,ConfiguredRetryStrategy:()=>dm,DEFAULT_MAX_ATTEMPTS:()=>_F,DEFAULT_RETRY_DELAY_BASE:()=>Y1,DEFAULT_RETRY_MODE:()=>qm,DefaultRateLimiter:()=>Nz,INITIAL_RETRY_TOKENS:()=>gF,INVOCATION_ID_HEADER:()=>jm,MAXIMUM_RETRY_DELAY:()=>xF,NO_RETRY_INCREMENT:()=>vz,REQUEST_HEADER:()=>vm,RETRY_COST:()=>mz,RETRY_MODES:()=>kz,StandardRetryStrategy:()=>eF,THROTTLING_RETRY_DELAY_BASE:()=>qz,TIMEOUT_RETRY_COST:()=>jz});cz.exports=Nm(Dz);var kz=((r)=>{return r.STANDARD="standard",r.ADAPTIVE="adaptive",r})(kz||{}),_F=3,qm="standard",mm=Qh(),yz=class r{constructor(s){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(s==null?void 0:s.beta)??0.7,this.minCapacity=(s==null?void 0:s.minCapacity)??1,this.minFillRate=(s==null?void 0:s.minFillRate)??0.5,this.scaleConstant=(s==null?void 0:s.scaleConstant)??0.4,this.smooth=(s==null?void 0:s.smooth)??0.8;let f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(s){if(!this.enabled)return;if(this.refillTokenBucket(),s>this.currentCapacity){let f=(s-this.currentCapacity)/this.fillRate*1000;await new Promise((h)=>setTimeout(h,f))}this.currentCapacity=this.currentCapacity-s}refillTokenBucket(){let s=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=s;return}let f=(s-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=s}updateClientSendingRate(s){let f;if(this.updateMeasuredRate(),mm.isThrottlingError(s)){let w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());let h=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(h)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(s){return this.getPrecise(s*this.beta)}cubicSuccess(s){return this.getPrecise(this.scaleConstant*Math.pow(s-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(s){this.refillTokenBucket(),this.fillRate=Math.max(s,this.minFillRate),this.maxCapacity=Math.max(s,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let s=this.getCurrentTimeInSeconds(),f=Math.floor(s*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){let h=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(h*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(s){return parseFloat(s.toFixed(8))}};hs(yz,"DefaultRateLimiter");var Nz=yz,Y1=100,xF=20000,qz=500,gF=500,mz=5,jz=10,vz=1,jm="amz-sdk-invocation-id",vm="amz-sdk-request",im=hs(()=>{let r=Y1;return{computeNextBackoffDelay:hs((h)=>{return Math.floor(Math.min(xF,Math.random()*2**h*r))},"computeNextBackoffDelay"),setDelayBase:hs((h)=>{r=h},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),lz=hs(({retryDelay:r,retryCount:s,retryCost:f})=>{return{getRetryCount:hs(()=>s,"getRetryCount"),getRetryDelay:hs(()=>Math.min(xF,r),"getRetryDelay"),getRetryCost:hs(()=>f,"getRetryCost")}},"createDefaultRetryToken"),iz=class r{constructor(s){this.maxAttempts=s,this.mode="standard",this.capacity=gF,this.retryBackoffStrategy=im(),this.maxAttemptsProvider=typeof s==="function"?s:async()=>s}async acquireInitialRetryToken(s){return lz({retryDelay:Y1,retryCount:0})}async refreshRetryTokenForRetry(s,f){let h=await this.getMaxAttempts();if(this.shouldRetry(s,f,h)){let w=f.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?qz:Y1);let $=this.retryBackoffStrategy.computeNextBackoffDelay(s.getRetryCount()),E=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,$):$,I=this.getCapacityCost(w);return this.capacity-=I,lz({retryDelay:E,retryCount:s.getRetryCount()+1,retryCost:I})}throw new Error("No retry token available")}recordSuccess(s){this.capacity=Math.max(gF,this.capacity+(s.getRetryCost()??vz))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(s){return console.warn(`Max attempts provider could not resolve. Using default of ${_F}`),_F}}shouldRetry(s,f,h){return s.getRetryCount()+1<h&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(s){return s==="TRANSIENT"?jz:mz}isRetryableError(s){return s==="THROTTLING"||s==="TRANSIENT"}};hs(iz,"StandardRetryStrategy");var eF=iz,Oz=class r{constructor(s,f){this.maxAttemptsProvider=s,this.mode="adaptive";let{rateLimiter:h}=f??{};this.rateLimiter=h??new Nz,this.standardRetryStrategy=new eF(s)}async acquireInitialRetryToken(s){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(s)}async refreshRetryTokenForRetry(s,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(s,f)}recordSuccess(s){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(s)}};hs(Oz,"AdaptiveRetryStrategy");var Om=Oz,dz=class r extends eF{constructor(s,f=Y1){super(typeof s==="function"?s:async()=>s);if(typeof f==="number")this.computeNextBackoffDelay=()=>f;else this.computeNextBackoffDelay=f}async refreshRetryTokenForRetry(s,f){let h=await super.refreshRetryTokenForRetry(s,f);return h.getRetryDelay=()=>this.computeNextBackoffDelay(h.getRetryCount()),h}};hs(dz,"ConfiguredRetryStrategy");var dm=dz});var nz=i((Krr,ez)=>{var{defineProperty:HE,getOwnPropertyDescriptor:cm,getOwnPropertyNames:bm}=Object,_m=Object.prototype.hasOwnProperty,Mf=(r,s)=>HE(r,"name",{value:s,configurable:!0}),gm=(r,s)=>{for(var f in s)HE(r,f,{get:s[f],enumerable:!0})},xm=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of bm(s))if(!_m.call(r,w)&&w!==f)HE(r,w,{get:()=>s[w],enumerable:!(h=cm(s,w))||h.enumerable})}return r},em=(r)=>xm(HE({},"__esModule",{value:!0}),r),xz={};gm(xz,{constructStack:()=>nF});ez.exports=em(xz);var Jh=Mf((r,s)=>{let f=[];if(r)f.push(r);if(s)for(let h of s)f.push(h);return f},"getAllAliases"),_0=Mf((r,s)=>{return`${r||"anonymous"}${s&&s.length>0?` (a.k.a. ${s.join(",")})`:""}`},"getMiddlewareNameWithAliases"),nF=Mf(()=>{let r=[],s=[],f=!1,h=new Set,w=Mf((L)=>L.sort((S,R)=>_z[R.step]-_z[S.step]||gz[R.priority||"normal"]-gz[S.priority||"normal"]),"sort"),$=Mf((L)=>{let S=!1,R=Mf((P)=>{let N=Jh(P.name,P.aliases);if(N.includes(L)){S=!0;for(let M of N)h.delete(M);return!1}return!0},"filterCb");return r=r.filter(R),s=s.filter(R),S},"removeByName"),E=Mf((L)=>{let S=!1,R=Mf((P)=>{if(P.middleware===L){S=!0;for(let N of Jh(P.name,P.aliases))h.delete(N);return!1}return!0},"filterCb");return r=r.filter(R),s=s.filter(R),S},"removeByReference"),I=Mf((L)=>{var S;return r.forEach((R)=>{L.add(R.middleware,{...R})}),s.forEach((R)=>{L.addRelativeTo(R.middleware,{...R})}),(S=L.identifyOnResolve)==null||S.call(L,A.identifyOnResolve()),L},"cloneTo"),F=Mf((L)=>{let S=[];return L.before.forEach((R)=>{if(R.before.length===0&&R.after.length===0)S.push(R);else S.push(...F(R))}),S.push(L),L.after.reverse().forEach((R)=>{if(R.before.length===0&&R.after.length===0)S.push(R);else S.push(...F(R))}),S},"expandRelativeMiddlewareList"),U=Mf((L=!1)=>{let S=[],R=[],P={};return r.forEach((M)=>{let l={...M,before:[],after:[]};for(let k of Jh(l.name,l.aliases))P[k]=l;S.push(l)}),s.forEach((M)=>{let l={...M,before:[],after:[]};for(let k of Jh(l.name,l.aliases))P[k]=l;R.push(l)}),R.forEach((M)=>{if(M.toMiddleware){let l=P[M.toMiddleware];if(l===void 0){if(L)return;throw new Error(`${M.toMiddleware} is not found when adding ${_0(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")l.after.push(M);if(M.relation==="before")l.before.push(M)}}),w(S).map(F).reduce((M,l)=>{return M.push(...l),M},[])},"getMiddlewareList"),A={add:(L,S={})=>{let{name:R,override:P,aliases:N}=S,M={step:"initialize",priority:"normal",middleware:L,...S},l=Jh(R,N);if(l.length>0){if(l.some((k)=>h.has(k))){if(!P)throw new Error(`Duplicate middleware name '${_0(R,N)}'`);for(let k of l){let v=r.findIndex((hr)=>{var Mr;return hr.name===k||((Mr=hr.aliases)==null?void 0:Mr.some((ur)=>ur===k))});if(v===-1)continue;let x=r[v];if(x.step!==M.step||M.priority!==x.priority)throw new Error(`"${_0(x.name,x.aliases)}" middleware with ${x.priority} priority in ${x.step} step cannot be overridden by "${_0(R,N)}" middleware with ${M.priority} priority in ${M.step} step.`);r.splice(v,1)}}for(let k of l)h.add(k)}r.push(M)},addRelativeTo:(L,S)=>{let{name:R,override:P,aliases:N}=S,M={middleware:L,...S},l=Jh(R,N);if(l.length>0){if(l.some((k)=>h.has(k))){if(!P)throw new Error(`Duplicate middleware name '${_0(R,N)}'`);for(let k of l){let v=s.findIndex((hr)=>{var Mr;return hr.name===k||((Mr=hr.aliases)==null?void 0:Mr.some((ur)=>ur===k))});if(v===-1)continue;let x=s[v];if(x.toMiddleware!==M.toMiddleware||x.relation!==M.relation)throw new Error(`"${_0(x.name,x.aliases)}" middleware ${x.relation} "${x.toMiddleware}" middleware cannot be overridden by "${_0(R,N)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);s.splice(v,1)}}for(let k of l)h.add(k)}s.push(M)},clone:()=>I(nF()),use:(L)=>{L.applyToStack(A)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let S=!1,R=Mf((P)=>{let{tags:N,name:M,aliases:l}=P;if(N&&N.includes(L)){let k=Jh(M,l);for(let v of k)h.delete(v);return S=!0,!1}return!0},"filterCb");return r=r.filter(R),s=s.filter(R),S},concat:(L)=>{var S;let R=I(nF());return R.use(L),R.identifyOnResolve(f||R.identifyOnResolve()||(((S=L.identifyOnResolve)==null?void 0:S.call(L))??!1)),R},applyToStack:I,identify:()=>{return U(!0).map((L)=>{let S=L.step??L.relation+" "+L.toMiddleware;return _0(L.name,L.aliases)+" - "+S})},identifyOnResolve(L){if(typeof L==="boolean")f=L;return f},resolve:(L,S)=>{for(let R of U().map((P)=>P.middleware).reverse())L=R(L,S);if(f)console.log(A.identify());return L}};return A},"constructStack"),_z={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},gz={high:3,normal:2,low:1}});var oF=i((Prr,az)=>{var{defineProperty:lE,getOwnPropertyDescriptor:nm,getOwnPropertyNames:om}=Object,am=Object.prototype.hasOwnProperty,pm=(r,s)=>lE(r,"name",{value:s,configurable:!0}),um=(r,s)=>{for(var f in s)lE(r,f,{get:s[f],enumerable:!0})},tm=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of om(s))if(!am.call(r,w)&&w!==f)lE(r,w,{get:()=>s[w],enumerable:!(h=nm(s,w))||h.enumerable})}return r},rj=(r)=>tm(lE({},"__esModule",{value:!0}),r),oz={};um(oz,{isArrayBuffer:()=>fj});az.exports=rj(oz);var fj=pm((r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]","isArrayBuffer")});var X1=i((Zrr,tz)=>{var{defineProperty:DE,getOwnPropertyDescriptor:sj,getOwnPropertyNames:hj}=Object,wj=Object.prototype.hasOwnProperty,pz=(r,s)=>DE(r,"name",{value:s,configurable:!0}),$j=(r,s)=>{for(var f in s)DE(r,f,{get:s[f],enumerable:!0})},Ej=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of hj(s))if(!wj.call(r,w)&&w!==f)DE(r,w,{get:()=>s[w],enumerable:!(h=sj(s,w))||h.enumerable})}return r},Ij=(r)=>Ej(DE({},"__esModule",{value:!0}),r),uz={};$j(uz,{fromArrayBuffer:()=>Uj,fromString:()=>Tj});tz.exports=Ij(uz);var Fj=oF(),aF=import.meta.require("buffer"),Uj=pz((r,s=0,f=r.byteLength-s)=>{if(!Fj.isArrayBuffer(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return aF.Buffer.from(r,s,f)},"fromArrayBuffer"),Tj=pz((r,s)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return s?aF.Buffer.from(r,s):aF.Buffer.from(r)},"fromString")});var sW=i((rW)=>{Object.defineProperty(rW,"__esModule",{value:!0});rW.fromBase64=void 0;var Gj=X1(),Aj=/^[A-Za-z0-9+/]*={0,2}$/,Lj=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Aj.exec(r))throw new TypeError("Invalid base64 string.");let s=Gj.fromString(r,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)};rW.fromBase64=Lj});var g0=i((Jrr,EW)=>{var{defineProperty:kE,getOwnPropertyDescriptor:zj,getOwnPropertyNames:Wj}=Object,Cj=Object.prototype.hasOwnProperty,pF=(r,s)=>kE(r,"name",{value:s,configurable:!0}),Rj=(r,s)=>{for(var f in s)kE(r,f,{get:s[f],enumerable:!0})},Sj=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Wj(s))if(!Cj.call(r,w)&&w!==f)kE(r,w,{get:()=>s[w],enumerable:!(h=zj(s,w))||h.enumerable})}return r},Yj=(r)=>Sj(kE({},"__esModule",{value:!0}),r),hW={};Rj(hW,{fromUtf8:()=>$W,toUint8Array:()=>Xj,toUtf8:()=>Kj});EW.exports=Yj(hW);var wW=X1(),$W=pF((r)=>{let s=wW.fromString(r,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Xj=pF((r)=>{if(typeof r==="string")return $W(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},"toUint8Array"),Kj=pF((r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return wW.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")},"toUtf8")});var UW=i((IW)=>{Object.defineProperty(IW,"__esModule",{value:!0});IW.toBase64=void 0;var Pj=X1(),Zj=g0(),Qj=(r)=>{let s;if(typeof r==="string")s=Zj.fromUtf8(r);else s=r;if(typeof s!=="object"||typeof s.byteOffset!=="number"||typeof s.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Pj.fromArrayBuffer(s.buffer,s.byteOffset,s.byteLength).toString("base64")};IW.toBase64=Qj});var NE=i((Mrr,yE)=>{var{defineProperty:TW,getOwnPropertyDescriptor:Jj,getOwnPropertyNames:Bj}=Object,Mj=Object.prototype.hasOwnProperty,uF=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Bj(s))if(!Mj.call(r,w)&&w!==f)TW(r,w,{get:()=>s[w],enumerable:!(h=Jj(s,w))||h.enumerable})}return r},GW=(r,s,f)=>(uF(r,s,"default"),f&&uF(f,s,"default")),Vj=(r)=>uF(TW({},"__esModule",{value:!0}),r),tF={};yE.exports=Vj(tF);GW(tF,sW(),yE.exports);GW(tF,UW(),yE.exports)});var zW=i((AW)=>{Object.defineProperty(AW,"__esModule",{value:!0});AW.getAwsChunkedEncodingStream=void 0;var Hj=import.meta.require("stream"),lj=(r,s)=>{let{base64Encoder:f,bodyLengthChecker:h,checksumAlgorithmFn:w,checksumLocationName:$,streamHasher:E}=s,I=f!==void 0&&w!==void 0&&$!==void 0&&E!==void 0,F=I?E(w,r):void 0,U=new Hj.Readable({read:()=>{}});return r.on("data",(A)=>{let L=h(A)||0;U.push(`${L.toString(16)}\r\n`),U.push(A),U.push("\r\n")}),r.on("end",async()=>{if(U.push("0\r\n"),I){let A=f(await F);U.push(`${$}:${A}\r\n`),U.push("\r\n")}U.push(null)}),U};AW.getAwsChunkedEncodingStream=lj});var fU=i((Hrr,RW)=>{var{defineProperty:qE,getOwnPropertyDescriptor:Dj,getOwnPropertyNames:kj}=Object,yj=Object.prototype.hasOwnProperty,rU=(r,s)=>qE(r,"name",{value:s,configurable:!0}),Nj=(r,s)=>{for(var f in s)qE(r,f,{get:s[f],enumerable:!0})},qj=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of kj(s))if(!yj.call(r,w)&&w!==f)qE(r,w,{get:()=>s[w],enumerable:!(h=Dj(s,w))||h.enumerable})}return r},mj=(r)=>qj(qE({},"__esModule",{value:!0}),r),WW={};Nj(WW,{escapeUri:()=>CW,escapeUriPath:()=>vj});RW.exports=mj(WW);var CW=rU((r)=>encodeURIComponent(r).replace(/[!'()*]/g,jj),"escapeUri"),jj=rU((r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),vj=rU((r)=>r.split("/").map(CW).join("/"),"escapeUriPath")});var hU=i((lrr,XW)=>{var{defineProperty:mE,getOwnPropertyDescriptor:ij,getOwnPropertyNames:Oj}=Object,dj=Object.prototype.hasOwnProperty,cj=(r,s)=>mE(r,"name",{value:s,configurable:!0}),bj=(r,s)=>{for(var f in s)mE(r,f,{get:s[f],enumerable:!0})},_j=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Oj(s))if(!dj.call(r,w)&&w!==f)mE(r,w,{get:()=>s[w],enumerable:!(h=ij(s,w))||h.enumerable})}return r},gj=(r)=>_j(mE({},"__esModule",{value:!0}),r),SW={};bj(SW,{buildQueryString:()=>YW});XW.exports=gj(SW);var sU=fU();function YW(r){let s=[];for(let f of Object.keys(r).sort()){let h=r[f];if(f=sU.escapeUri(f),Array.isArray(h))for(let w=0,$=h.length;w<$;w++)s.push(`${f}=${sU.escapeUri(h[w])}`);else{let w=f;if(h||typeof h==="string")w+=`=${sU.escapeUri(h)}`;s.push(w)}}return s.join("&")}cj(YW,"buildQueryString")});var iW=i((Drr,vW)=>{var{create:xj,defineProperty:K1,getOwnPropertyDescriptor:ej,getOwnPropertyNames:nj,getPrototypeOf:oj}=Object,aj=Object.prototype.hasOwnProperty,Wr=(r,s)=>K1(r,"name",{value:s,configurable:!0}),pj=(r,s)=>{for(var f in s)K1(r,f,{get:s[f],enumerable:!0})},JW=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of nj(s))if(!aj.call(r,w)&&w!==f)K1(r,w,{get:()=>s[w],enumerable:!(h=ej(s,w))||h.enumerable})}return r},uj=(r,s,f)=>(f=r!=null?xj(oj(r)):{},JW(s||!r||!r.__esModule?K1(f,"default",{value:r,enumerable:!0}):f,r)),tj=(r)=>JW(K1({},"__esModule",{value:!0}),r),BW={};pj(BW,{DEFAULT_REQUEST_TIMEOUT:()=>$v,NodeHttp2Handler:()=>Tv,NodeHttpHandler:()=>Ev,streamCollector:()=>Av});vW.exports=tj(BW);var MW=R0(),VW=hU(),wU=import.meta.require("http"),$U=import.meta.require("https"),rv=["ECONNRESET","EPIPE","ETIMEDOUT"],HW=Wr((r)=>{let s={};for(let f of Object.keys(r)){let h=r[f];s[f]=Array.isArray(h)?h.join(","):h}return s},"getTransformedHeaders"),KW=1000,fv=Wr((r,s,f=0)=>{if(!f)return-1;let h=Wr((w)=>{let $=setTimeout(()=>{r.destroy(),s(Object.assign(new Error(`Socket timed out without establishing a connection within ${f} ms`),{name:"TimeoutError"}))},f-w),E=Wr((I)=>{if(I==null?void 0:I.connecting)I.on("connect",()=>{clearTimeout($)});else clearTimeout($)},"doWithSocket");if(r.socket)E(r.socket);else r.on("socket",E)},"registerTimeout");if(f<2000)return h(0),0;return setTimeout(h.bind(null,KW),KW)},"setConnectionTimeout"),sv=3000,hv=Wr((r,{keepAlive:s,keepAliveMsecs:f},h=sv)=>{if(s!==!0)return-1;let w=Wr(()=>{if(r.socket)r.socket.setKeepAlive(s,f||0);else r.on("socket",($)=>{$.setKeepAlive(s,f||0)})},"registerListener");if(h===0)return w(),0;return setTimeout(w,h)},"setSocketKeepAlive"),PW=3000,wv=Wr((r,s,f=0)=>{let h=Wr((w)=>{r.setTimeout(f-w,()=>{r.destroy(),s(Object.assign(new Error(`Connection timed out after ${f} ms`),{name:"TimeoutError"}))})},"registerTimeout");if(0<f&&f<6000)return h(0),0;return setTimeout(h.bind(null,f===0?0:PW),PW)},"setSocketTimeout"),lW=import.meta.require("stream"),ZW=1000;async function EU(r,s,f=ZW){let h=s.headers??{},w=h.Expect||h.expect,$=-1,E=!1;if(w==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(ZW,f)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)DW(r,s.body)}Wr(EU,"writeRequestBody");function DW(r,s){if(s instanceof lW.Readable){s.pipe(r);return}if(s){if(Buffer.isBuffer(s)||typeof s==="string"){r.end(s);return}let f=s;if(typeof f==="object"&&f.buffer&&typeof f.byteOffset==="number"&&typeof f.byteLength==="number"){r.end(Buffer.from(f.buffer,f.byteOffset,f.byteLength));return}r.end(Buffer.from(s));return}r.end()}Wr(DW,"writeBody");var $v=0,kW=class r{constructor(s){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,h)=>{if(typeof s==="function")s().then((w)=>{f(this.resolveDefaultConfig(w))}).catch(h);else f(this.resolveDefaultConfig(s))})}static create(s){if(typeof(s==null?void 0:s.handle)==="function")return s;return new r(s)}static checkSocketUsage(s,f,h=console){var w,$,E;let{sockets:I,requests:F,maxSockets:U}=s;if(typeof U!=="number"||U===1/0)return f;let A=15000;if(Date.now()-A<f)return f;if(I&&F)for(let L in I){let S=((w=I[L])==null?void 0:w.length)??0,R=(($=F[L])==null?void 0:$.length)??0;if(S>=U&&R>=2*U)return(E=h==null?void 0:h.warn)==null||E.call(h,`@smithy/node-http-handler:WARN - socket usage at capacity=${S} and ${R} additional requests are enqueued.
3
3
  See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
4
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return f}resolveDefaultConfig(s){const{requestTimeout:f,connectionTimeout:w,socketTimeout:h,httpAgent:E,httpsAgent:$}=s||{};return{connectionTimeout:w,requestTimeout:f??h,httpAgent:(()=>{if(E instanceof TF.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new TF.Agent({keepAlive:!0,maxSockets:50,...E})})(),httpsAgent:(()=>{if($ instanceof GF.Agent||typeof($==null?void 0:$.destroy)==="function")return $;return new GF.Agent({keepAlive:!0,maxSockets:50,...$})})(),logger:console}}destroy(){var s,f,w,h;(f=(s=this.config)==null?void 0:s.httpAgent)==null||f.destroy(),(h=(w=this.config)==null?void 0:w.httpsAgent)==null||h.destroy()}async handle(s,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;return new Promise((w,h)=>{let E=void 0;const $=[],I=Rr(async(i)=>{await E,$.forEach(clearTimeout),w(i)},"resolve"),F=Rr(async(i)=>{await E,$.forEach(clearTimeout),h(i)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f==null?void 0:f.aborted){const i=new Error("Request aborted");i.name="AbortError",F(i);return}const U=s.protocol==="https:",A=U?this.config.httpsAgent:this.config.httpAgent;$.push(setTimeout(()=>{this.socketWarningTimestamp=r.checkSocketUsage(A,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));const L=jC.buildQueryString(s.query||{});let S=void 0;if(s.username!=null||s.password!=null){const i=s.username??"",e=s.password??"";S=`${i}:${e}`}let z=s.path;if(L)z+=`?${L}`;if(s.fragment)z+=`#${s.fragment}`;let Z=s.hostname??"";if(Z[0]==="["&&Z.endsWith("]"))Z=s.hostname.slice(1,-1);else Z=s.hostname;const N={headers:s.headers,host:Z,method:s.method,path:z,port:s.port,agent:A,auth:S},l=(U?GF.request:TF.request)(N,(i)=>{const e=new mC.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:vC(i.headers),body:i});I({response:e})});if(l.on("error",(i)=>{if(Xv.includes(i.code))F(Object.assign(i,{name:"TimeoutError"}));else F(i)}),f){const i=Rr(()=>{l.destroy();const e=new Error("Request aborted");e.name="AbortError",F(e)},"onAbort");if(typeof f.addEventListener==="function"){const e=f;e.addEventListener("abort",i,{once:!0}),l.once("close",()=>e.removeEventListener("abort",i))}else f.onabort=i}$.push(Kv(l,F,this.config.connectionTimeout)),$.push(Jv(l,F,this.config.requestTimeout));const k=N.agent;if(typeof k==="object"&&"keepAlive"in k)$.push(Pv(l,{keepAlive:k.keepAlive,keepAliveMsecs:k.keepAliveMsecs}));E=AF(l,s,this.config.requestTimeout).catch((i)=>{return $.forEach(clearTimeout),h(i)})})}updateHttpClientConfig(s,f){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[s]:f}})}httpHandlerConfigs(){return this.config??{}}};Rr(dC,"NodeHttpHandler");var Bv=dC,yC=import.meta.require("http2"),Mv=Sv(import.meta.require("http2")),cC=class r{constructor(s){this.sessions=[],this.sessions=s??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(s){this.sessions.push(s)}contains(s){return this.sessions.includes(s)}remove(s){this.sessions=this.sessions.filter((f)=>f!==s)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(s){for(let f of this.sessions)if(f===s){if(!f.destroyed)f.destroy()}}};Rr(cC,"NodeHttp2ConnectionPool");var Vv=cC,bC=class r{constructor(s){if(this.sessionCache=new Map,this.config=s,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(s,f){const w=this.getUrlString(s),h=this.sessionCache.get(w);if(h){const F=h.poll();if(F&&!this.config.disableConcurrency)return F}const E=Mv.default.connect(w);if(this.config.maxConcurrency)E.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+s.destination.toString())});E.unref();const $=Rr(()=>{E.destroy(),this.deleteSession(w,E)},"destroySessionCb");if(E.on("goaway",$),E.on("error",$),E.on("frameError",$),E.on("close",()=>this.deleteSession(w,E)),f.requestTimeout)E.setTimeout(f.requestTimeout,$);const I=this.sessionCache.get(w)||new Vv;return I.offerLast(E),this.sessionCache.set(w,I),E}deleteSession(s,f){const w=this.sessionCache.get(s);if(!w)return;if(!w.contains(f))return;w.remove(f),this.sessionCache.set(s,w)}release(s,f){var w;const h=this.getUrlString(s);(w=this.sessionCache.get(h))==null||w.offerLast(f)}destroy(){for(let[s,f]of this.sessionCache){for(let w of f){if(!w.destroyed)w.destroy();f.remove(w)}this.sessionCache.delete(s)}}setMaxConcurrentStreams(s){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=s}setDisableConcurrentStreams(s){this.config.disableConcurrency=s}getUrlString(s){return s.destination.toString()}};Rr(bC,"NodeHttp2ConnectionManager");var Hv=bC,_C=class r{constructor(s){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Hv({}),this.configProvider=new Promise((f,w)=>{if(typeof s==="function")s().then((h)=>{f(h||{})}).catch(w);else f(s||{})})}static create(s){if(typeof(s==null?void 0:s.handle)==="function")return s;return new r(s)}destroy(){this.connectionManager.destroy()}async handle(s,{abortSignal:f}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:w,disableConcurrentStreams:h}=this.config;return new Promise((E,$)=>{var I;let F=!1,U=void 0;const A=Rr(async(Jr)=>{await U,E(Jr)},"resolve"),L=Rr(async(Jr)=>{await U,$(Jr)},"reject");if(f==null?void 0:f.aborted){F=!0;const Jr=new Error("Request aborted");Jr.name="AbortError",L(Jr);return}const{hostname:S,method:z,port:Z,protocol:N,query:M}=s;let l="";if(s.username!=null||s.password!=null){const Jr=s.username??"",pf=s.password??"";l=`${Jr}:${pf}@`}const k=`${N}//${l}${S}${Z?`:${Z}`:""}`,i={destination:new URL(k)},e=this.connectionManager.lease(i,{requestTimeout:(I=this.config)==null?void 0:I.sessionTimeout,disableConcurrentStreams:h||!1}),sr=Rr((Jr)=>{if(h)this.destroySession(e);F=!0,L(Jr)},"rejectWithDestroy"),Br=jC.buildQueryString(M||{});let pr=s.path;if(Br)pr+=`?${Br}`;if(s.fragment)pr+=`#${s.fragment}`;const Pf=e.request({...s.headers,[yC.constants.HTTP2_HEADER_PATH]:pr,[yC.constants.HTTP2_HEADER_METHOD]:z});if(e.ref(),Pf.on("response",(Jr)=>{const pf=new mC.HttpResponse({statusCode:Jr[":status"]||-1,headers:vC(Jr),body:Pf});if(F=!0,A({response:pf}),h)e.close(),this.connectionManager.deleteSession(k,e)}),w)Pf.setTimeout(w,()=>{Pf.close();const Jr=new Error(`Stream timed out because of no activity for ${w} ms`);Jr.name="TimeoutError",sr(Jr)});if(f){const Jr=Rr(()=>{Pf.close();const pf=new Error("Request aborted");pf.name="AbortError",sr(pf)},"onAbort");if(typeof f.addEventListener==="function"){const pf=f;pf.addEventListener("abort",Jr,{once:!0}),Pf.once("close",()=>pf.removeEventListener("abort",Jr))}else f.onabort=Jr}Pf.on("frameError",(Jr,pf,mk)=>{sr(new Error(`Frame type id ${Jr} in stream id ${mk} has failed with code ${pf}.`))}),Pf.on("error",sr),Pf.on("aborted",()=>{sr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Pf.rstCode}.`))}),Pf.on("close",()=>{if(e.unref(),h)e.destroy();if(!F)sr(new Error("Unexpected error: http2 request did not get a response"))}),U=AF(Pf,s,w)})}updateHttpClientConfig(s,f){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[s]:f}})}httpHandlerConfigs(){return this.config??{}}destroySession(s){if(!s.destroyed)s.destroy()}};Rr(_C,"NodeHttp2Handler");var lv=_C,gC=class r extends iC.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(s,f,w){this.bufferedBytes.push(s),w()}};Rr(gC,"Collector");var Dv=gC,kv=Rr((r)=>{if(yv(r))return xC(r);return new Promise((s,f)=>{const w=new Dv;r.pipe(w),r.on("error",(h)=>{w.end(),f(h)}),w.on("error",f),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));s(h)})})},"streamCollector"),yv=Rr((r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream,"isReadableStreamInstance");Rr(xC,"collectReadableStream")});var wW=O((urr,sW)=>{function pC(r=0){return new Promise((s,f)=>{if(r)setTimeout(()=>{const w=new Error(`Request did not complete within ${r} ms`);w.name="TimeoutError",f(w)},r)})}async function tC(r){const s=await fW(r),f=cv.fromBase64(s);return new Uint8Array(f)}async function rW(r){const s=[],f=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await f.read();if(F)s.push(F),h+=F.length;w=I}const E=new Uint8Array(h);let $=0;for(let I of s)E.set(I,$),$+=I.length;return E}function fW(r){return new Promise((s,f)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return f(new Error("Reader aborted too early"));const h=w.result??"",E=h.indexOf(","),$=E>-1?E+1:h.length;s(h.substring($))},w.onabort=()=>f(new Error("Read aborted")),w.onerror=()=>f(w.error),w.readAsDataURL(r)})}var{defineProperty:j$,getOwnPropertyDescriptor:Nv,getOwnPropertyNames:qv}=Object,mv=Object.prototype.hasOwnProperty,C0=(r,s)=>j$(r,"name",{value:s,configurable:!0}),jv=(r,s)=>{for(var f in s)j$(r,f,{get:s[f],enumerable:!0})},vv=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of qv(s))if(!mv.call(r,h)&&h!==f)j$(r,h,{get:()=>s[h],enumerable:!(w=Nv(s,h))||w.enumerable})}return r},iv=(r)=>vv(j$({},"__esModule",{value:!0}),r),aC={};jv(aC,{FetchHttpHandler:()=>dv,keepAliveSupport:()=>m$,streamCollector:()=>bv});sW.exports=iv(aC);var oC=L0(),Ov=UF();C0(pC,"requestTimeout");var m$={supported:void 0},uC=class r{static create(s){if(typeof(s==null?void 0:s.handle)==="function")return s;return new r(s)}constructor(s){if(typeof s==="function")this.configProvider=s().then((f)=>f||{});else this.config=s??{},this.configProvider=Promise.resolve(this.config);if(m$.supported===void 0)m$.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(s,{abortSignal:f}={}){var w;if(!this.config)this.config=await this.configProvider;const h=this.config.requestTimeout,E=this.config.keepAlive===!0,$=this.config.credentials;if(f==null?void 0:f.aborted){const k=new Error("Request aborted");return k.name="AbortError",Promise.reject(k)}let I=s.path;const F=Ov.buildQueryString(s.query||{});if(F)I+=`?${F}`;if(s.fragment)I+=`#${s.fragment}`;let U="";if(s.username!=null||s.password!=null){const k=s.username??"",i=s.password??"";U=`${k}:${i}@`}const{port:A,method:L}=s,S=`${s.protocol}//${U}${s.hostname}${A?`:${A}`:""}${I}`,z=L==="GET"||L==="HEAD"?void 0:s.body,Z={body:z,headers:new Headers(s.headers),method:L,credentials:$};if((w=this.config)==null?void 0:w.cache)Z.cache=this.config.cache;if(z)Z.duplex="half";if(typeof AbortController!=="undefined")Z.signal=f;if(m$.supported)Z.keepalive=E;if(typeof this.config.requestInit==="function")Object.assign(Z,this.config.requestInit(s));let N=C0(()=>{},"removeSignalEventListener");const M=new Request(S,Z),l=[fetch(M).then((k)=>{const i=k.headers,e={};for(let Br of i.entries())e[Br[0]]=Br[1];if(k.body==null)return k.blob().then((Br)=>({response:new oC.HttpResponse({headers:e,reason:k.statusText,statusCode:k.status,body:Br})}));return{response:new oC.HttpResponse({headers:e,reason:k.statusText,statusCode:k.status,body:k.body})}}),pC(h)];if(f)l.push(new Promise((k,i)=>{const e=C0(()=>{const sr=new Error("Request aborted");sr.name="AbortError",i(sr)},"onAbort");if(typeof f.addEventListener==="function"){const sr=f;sr.addEventListener("abort",e,{once:!0}),N=C0(()=>sr.removeEventListener("abort",e),"removeSignalEventListener")}else f.onabort=e}));return Promise.race(l).finally(N)}updateHttpClientConfig(s,f){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return w[s]=f,w})}httpHandlerConfigs(){return this.config??{}}};C0(uC,"FetchHttpHandler");var dv=uC,cv=y$(),bv=C0((r)=>{if(typeof Blob==="function"&&r instanceof Blob)return tC(r);return rW(r)},"streamCollector");C0(tC,"collectBlob");C0(rW,"collectStream");C0(fW,"readToBase64")});var i$=O((trr,UW)=>{function IW(r){if(r.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const s=new Uint8Array(r.length/2);for(let f=0;f<r.length;f+=2){const w=r.slice(f,f+2).toLowerCase();if(w in LF)s[f/2]=LF[w];else throw new Error(`Cannot decode unrecognized sequence ${w} as hexadecimal`)}return s}function FW(r){let s="";for(let f=0;f<r.byteLength;f++)s+=$W[r[f]];return s}var{defineProperty:v$,getOwnPropertyDescriptor:_v,getOwnPropertyNames:gv}=Object,xv=Object.prototype.hasOwnProperty,hW=(r,s)=>v$(r,"name",{value:s,configurable:!0}),ev=(r,s)=>{for(var f in s)v$(r,f,{get:s[f],enumerable:!0})},nv=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of gv(s))if(!xv.call(r,h)&&h!==f)v$(r,h,{get:()=>s[h],enumerable:!(w=_v(s,h))||w.enumerable})}return r},ov=(r)=>nv(v$({},"__esModule",{value:!0}),r),EW={};ev(EW,{fromHex:()=>IW,toHex:()=>FW});UW.exports=ov(EW);var $W={},LF={};for(let r=0;r<256;r++){let s=r.toString(16).toLowerCase();if(s.length===1)s=`0${s}`;$W[r]=s,LF[s]=r}hW(IW,"fromHex");hW(FW,"toHex")});var X1=O((TW)=>{Object.defineProperty(TW,"__esModule",{value:!0});TW.isReadableStream=void 0;var av=(r)=>{var s;return typeof ReadableStream==="function"&&(((s=r===null||r===void 0?void 0:r.constructor)===null||s===void 0?void 0:s.name)===ReadableStream.name||r instanceof ReadableStream)};TW.isReadableStream=av});var zW=O((CW)=>{Object.defineProperty(CW,"__esModule",{value:!0});CW.sdkStreamMixin=void 0;var pv=wW(),uv=y$(),tv=i$(),ri=O0(),AW=X1(),LW="The stream has already been transformed.",fi=(r)=>{var s,f;if(!RW(r)&&!AW.isReadableStream(r)){const $=((f=(s=r===null||r===void 0?void 0:r.__proto__)===null||s===void 0?void 0:s.constructor)===null||f===void 0?void 0:f.name)||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${$}`)}let w=!1;const h=async()=>{if(w)throw new Error(LW);return w=!0,await pv.streamCollector(r)},E=($)=>{if(typeof $.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return $.stream()};return Object.assign(r,{transformToByteArray:h,transformToString:async($)=>{const I=await h();if($==="base64")return uv.toBase64(I);else if($==="hex")return tv.toHex(I);else if($===void 0||$==="utf8"||$==="utf-8")return ri.toUtf8(I);else if(typeof TextDecoder==="function")return new TextDecoder($).decode(I);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(w)throw new Error(LW);if(w=!0,RW(r))return E(r);else if(AW.isReadableStream(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})};CW.sdkStreamMixin=fi;var RW=(r)=>typeof Blob==="function"&&r instanceof Blob});var KW=O((YW)=>{Object.defineProperty(YW,"__esModule",{value:!0});YW.sdkStreamMixin=void 0;var si=nC(),wi=S1(),RF=import.meta.require("stream"),hi=import.meta.require("util"),Ei=zW(),SW="The stream has already been transformed.",$i=(r)=>{var s,f;if(!(r instanceof RF.Readable))try{return Ei.sdkStreamMixin(r)}catch(E){const $=((f=(s=r===null||r===void 0?void 0:r.__proto__)===null||s===void 0?void 0:s.constructor)===null||f===void 0?void 0:f.name)||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${$}`)}let w=!1;const h=async()=>{if(w)throw new Error(SW);return w=!0,await si.streamCollector(r)};return Object.assign(r,{transformToByteArray:h,transformToString:async(E)=>{const $=await h();if(E===void 0||Buffer.isEncoding(E))return wi.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString(E);else return new hi.TextDecoder(E).decode($)},transformToWebStream:()=>{if(w)throw new Error(SW);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof RF.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return w=!0,RF.Readable.toWeb(r)}})};YW.sdkStreamMixin=$i});var JW=O((ZW)=>{async function Ii(r){if(typeof r.stream==="function")r=r.stream();return r.tee()}Object.defineProperty(ZW,"__esModule",{value:!0});ZW.splitStream=void 0;ZW.splitStream=Ii});var VW=O((BW)=>{async function Ti(r){if(Ui.isReadableStream(r))return Fi.splitStream(r);const s=new QW.PassThrough,f=new QW.PassThrough;return r.pipe(s),r.pipe(f),[s,f]}Object.defineProperty(BW,"__esModule",{value:!0});BW.splitStream=void 0;var QW=import.meta.require("stream"),Fi=JW(),Ui=X1();BW.splitStream=Ti});var DW=O((HW)=>{async function Gi(r,s){var f;let w=0;const h=[],E=r.getReader();let $=!1;while(!$){const{done:U,value:A}=await E.read();if(A)h.push(A),w+=(f=A===null||A===void 0?void 0:A.byteLength)!==null&&f!==void 0?f:0;if(w>=s)break;$=U}E.releaseLock();const I=new Uint8Array(Math.min(s,w));let F=0;for(let U of h){if(U.byteLength>I.byteLength-F){I.set(U.subarray(0,I.byteLength-F),F);break}else I.set(U,F);F+=U.length}return I}Object.defineProperty(HW,"__esModule",{value:!0});HW.headStream=void 0;HW.headStream=Gi});var qW=O((yW)=>{Object.defineProperty(yW,"__esModule",{value:!0});yW.headStream=void 0;var Ai=import.meta.require("stream"),Li=DW(),Ri=X1(),Ci=(r,s)=>{if(Ri.isReadableStream(r))return Li.headStream(r,s);return new Promise((f,w)=>{const h=new kW;h.limit=s,r.pipe(h),r.on("error",(E)=>{h.end(),w(E)}),h.on("error",w),h.on("finish",function(){const E=new Uint8Array(Buffer.concat(this.buffers));f(E)})})};yW.headStream=Ci;class kW extends Ai.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(r,s,f){var w;if(this.buffers.push(r),this.bytesBuffered+=(w=r.byteLength)!==null&&w!==void 0?w:0,this.bytesBuffered>=this.limit){const h=this.bytesBuffered-this.limit,E=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=E.subarray(0,E.byteLength-h),this.emit("finish")}f()}}});var dW=O((Ifr,Zw)=>{function vW(r,s="utf-8"){if(s==="base64")return mW.toBase64(r);return jW.toUtf8(r)}function iW(r,s){if(s==="base64")return WF.mutate(mW.fromBase64(r));return WF.mutate(jW.fromUtf8(r))}var{defineProperty:O$,getOwnPropertyDescriptor:Wi,getOwnPropertyNames:zi}=Object,Si=Object.prototype.hasOwnProperty,zF=(r,s)=>O$(r,"name",{value:s,configurable:!0}),Yi=(r,s)=>{for(var f in s)O$(r,f,{get:s[f],enumerable:!0})},CF=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of zi(s))if(!Si.call(r,h)&&h!==f)O$(r,h,{get:()=>s[h],enumerable:!(w=Wi(s,h))||w.enumerable})}return r},K1=(r,s,f)=>(CF(r,s,"default"),f&&CF(f,s,"default")),Xi=(r)=>CF(O$({},"__esModule",{value:!0}),r),Kw={};Yi(Kw,{Uint8ArrayBlobAdapter:()=>WF});Zw.exports=Xi(Kw);var mW=y$(),jW=O0();zF(vW,"transformToString");zF(iW,"transformFromString");var OW=class r extends Uint8Array{static fromString(s,f="utf-8"){switch(typeof s){case"string":return iW(s,f);default:throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}}static mutate(s){return Object.setPrototypeOf(s,r.prototype),s}transformToString(s="utf-8"){return vW(this,s)}};zF(OW,"Uint8ArrayBlobAdapter");var WF=OW;K1(Kw,PC(),Zw.exports);K1(Kw,KW(),Zw.exports);K1(Kw,VW(),Zw.exports);K1(Kw,qW(),Zw.exports);K1(Kw,X1(),Zw.exports)});var $h=O((Ffr,Gz)=>{function rz(r){const s=r.getUTCFullYear(),f=r.getUTCMonth(),w=r.getUTCDay(),h=r.getUTCDate(),E=r.getUTCHours(),$=r.getUTCMinutes(),I=r.getUTCSeconds(),F=h<10?`0${h}`:`${h}`,U=E<10?`0${E}`:`${E}`,A=$<10?`0${$}`:`${$}`,L=I<10?`0${I}`:`${I}`;return`${ei[w]}, ${F} ${VF[f]} ${s} ${U}:${A}:${L} GMT`}function b$(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}function HF(r,s,f){let w,h,E;if(typeof s==="undefined"&&typeof f==="undefined")w={},E=r;else if(w=r,typeof s==="function")return h=s,E=f,VO(w,h,E);else E=s;for(let $ of Object.keys(E)){if(!Array.isArray(E[$])){w[$]=E[$];continue}Fz(w,null,E,$)}return w}function Uz(r){if(r.includes(",")||r.includes('"'))r=`"${r.replace(/"/g,'\\"')}"`;return r}function Tz(r,s,f){if(f<=0||!Number.isInteger(f))throw new Error("Invalid number of delimiters ("+f+") for splitEvery.");const w=r.split(s);if(f===1)return w;const h=[];let E="";for(let $=0;$<w.length;$++){if(E==="")E=w[$];else E+=s+w[$];if(($+1)%f===0)h.push(E),E=""}if(E!=="")h.push(E);return h}var{defineProperty:_$,getOwnPropertyDescriptor:Ki,getOwnPropertyNames:Zi}=Object,Pi=Object.prototype.hasOwnProperty,v=(r,s)=>_$(r,"name",{value:s,configurable:!0}),Ji=(r,s)=>{for(var f in s)_$(r,f,{get:s[f],enumerable:!0})},Qi=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Zi(s))if(!Pi.call(r,h)&&h!==f)_$(r,h,{get:()=>s[h],enumerable:!(w=Ki(s,h))||w.enumerable})}return r},Bi=(r)=>Qi(_$({},"__esModule",{value:!0}),r),bW={};Ji(bW,{Client:()=>Mi,Command:()=>eW,LazyJsonString:()=>JO,NoOpLogger:()=>QO,SENSITIVE_STRING:()=>li,ServiceException:()=>GO,StringWrapper:()=>B1,_json:()=>JF,collectBody:()=>Vi,convertMap:()=>BO,createAggregatedClient:()=>Di,dateToUtcString:()=>rz,decorateServiceException:()=>sz,emitWarningIfUnsupportedVersion:()=>CO,expectBoolean:()=>yi,expectByte:()=>PF,expectFloat32:()=>d$,expectInt:()=>qi,expectInt32:()=>KF,expectLong:()=>J1,expectNonNull:()=>ji,expectNumber:()=>P1,expectObject:()=>oW,expectShort:()=>ZF,expectString:()=>vi,expectUnion:()=>ii,extendedEncodeURIComponent:()=>b$,getArrayIfSingleItem:()=>ZO,getDefaultClientConfiguration:()=>XO,getDefaultExtensionConfiguration:()=>hz,getValueFromTextNode:()=>Ez,handleFloat:()=>ci,isSerializableHeaderValue:()=>PO,limitedParseDouble:()=>MF,limitedParseFloat:()=>bi,limitedParseFloat32:()=>_i,loadConfigsForDefaultMode:()=>RO,logger:()=>Q1,map:()=>HF,parseBoolean:()=>ki,parseEpochTimestamp:()=>sO,parseRfc3339DateTime:()=>oi,parseRfc3339DateTimeWithOffset:()=>pi,parseRfc7231DateTime:()=>fO,quoteHeader:()=>Uz,resolveDefaultRuntimeConfig:()=>KO,resolvedPath:()=>DO,serializeDateTime:()=>yO,serializeFloat:()=>kO,splitEvery:()=>Tz,splitHeader:()=>NO,strictParseByte:()=>tW,strictParseDouble:()=>BF,strictParseFloat:()=>Oi,strictParseFloat32:()=>aW,strictParseInt:()=>gi,strictParseInt32:()=>xi,strictParseLong:()=>uW,strictParseShort:()=>wh,take:()=>MO,throwDefaultError:()=>wz,withBaseException:()=>AO});Gz.exports=Bi(bW);var _W=wC(),gW=class r{constructor(s){this.config=s,this.middlewareStack=_W.constructStack()}send(s,f,w){const h=typeof f!=="function"?f:void 0,E=typeof f==="function"?f:w,$=h===void 0&&this.config.cacheMiddleware===!0;let I;if($){if(!this.handlers)this.handlers=new WeakMap;const F=this.handlers;if(F.has(s.constructor))I=F.get(s.constructor);else I=s.resolveMiddleware(this.middlewareStack,this.config,h),F.set(s.constructor,I)}else delete this.handlers,I=s.resolveMiddleware(this.middlewareStack,this.config,h);if(E)I(s).then((F)=>E(null,F.output),(F)=>E(F)).catch(()=>{});else return I(s).then((F)=>F.output)}destroy(){var s,f,w;(w=(f=(s=this.config)==null?void 0:s.requestHandler)==null?void 0:f.destroy)==null||w.call(f),delete this.handlers}};v(gW,"Client");var Mi=gW,SF=dW(),Vi=v(async(r=new Uint8Array,s)=>{if(r instanceof Uint8Array)return SF.Uint8ArrayBlobAdapter.mutate(r);if(!r)return SF.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const f=s.streamCollector(r);return SF.Uint8ArrayBlobAdapter.mutate(await f)},"collectBody"),XF=Ff(),xW=class r{constructor(){this.middlewareStack=_W.constructStack()}static classBuilder(){return new Hi}resolveMiddlewareWithContext(s,f,w,{middlewareFn:h,clientName:E,commandName:$,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,smithyContext:U,additionalContext:A,CommandCtor:L}){for(let M of h.bind(this)(L,s,f,w))this.middlewareStack.use(M);const S=s.concat(this.middlewareStack),{logger:z}=f,Z={logger:z,clientName:E,commandName:$,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,[XF.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...A},{requestHandler:N}=f;return S.resolve((M)=>N.handle(M.request,w||{}),Z)}};v(xW,"Command");var eW=xW,nW=class r{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(s)=>s,this._outputFilterSensitiveLog=(s)=>s,this._serializer=null,this._deserializer=null}init(s){this._init=s}ep(s){return this._ep=s,this}m(s){return this._middlewareFn=s,this}s(s,f,w={}){return this._smithyContext={service:s,operation:f,...w},this}c(s={}){return this._additionalContext=s,this}n(s,f){return this._clientName=s,this._commandName=f,this}f(s=(w)=>w,f=(w)=>w){return this._inputFilterSensitiveLog=s,this._outputFilterSensitiveLog=f,this}ser(s){return this._serializer=s,this}de(s){return this._deserializer=s,this}build(){var s;const f=this;let w;return w=(s=class extends eW{constructor(...[h]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=h??{},f._init(this)}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(h,E,$){return this.resolveMiddlewareWithContext(h,E,$,{CommandCtor:w,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}},v(s,"CommandRef"),s)}};v(nW,"ClassBuilder");var Hi=nW,li="***SensitiveInformation***",Di=v((r,s)=>{for(let f of Object.keys(r)){const w=r[f],h=v(async function($,I,F){const U=new w($);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},"methodImpl"),E=(f[0].toLowerCase()+f.slice(1)).replace(/Command$/,"");s.prototype[E]=h}},"createAggregatedClient"),ki=v((r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},"parseBoolean"),yi=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)Q1.warn(c$(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const s=r.toLowerCase();if(s==="false"||s==="true")Q1.warn(c$(`Expected boolean, got ${typeof r}: ${r}`));if(s==="false")return!1;if(s==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},"expectBoolean"),P1=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const s=parseFloat(r);if(!Number.isNaN(s)){if(String(s)!==String(r))Q1.warn(c$(`Expected number but observed string: ${r}`));return s}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},"expectNumber"),Ni=Math.ceil(340282346638528860000000000000000000000),d$=v((r)=>{const s=P1(r);if(s!==void 0&&!Number.isNaN(s)&&s!==1/0&&s!==-1/0){if(Math.abs(s)>Ni)throw new TypeError(`Expected 32-bit float, got ${r}`)}return s},"expectFloat32"),J1=v((r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},"expectLong"),qi=J1,KF=v((r)=>QF(r,32),"expectInt32"),ZF=v((r)=>QF(r,16),"expectShort"),PF=v((r)=>QF(r,8),"expectByte"),QF=v((r,s)=>{const f=J1(r);if(f!==void 0&&mi(f,s)!==f)throw new TypeError(`Expected ${s}-bit integer, got ${r}`);return f},"expectSizedInt"),mi=v((r,s)=>{switch(s){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},"castInt"),ji=v((r,s)=>{if(r===null||r===void 0){if(s)throw new TypeError(`Expected a non-null value for ${s}`);throw new TypeError("Expected a non-null value")}return r},"expectNonNull"),oW=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const s=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${s}: ${r}`)},"expectObject"),vi=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return Q1.warn(c$(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},"expectString"),ii=v((r)=>{if(r===null||r===void 0)return;const s=oW(r),f=Object.entries(s).filter(([,w])=>w!=null).map(([w])=>w);if(f.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(f.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${f} were not null.`);return s},"expectUnion"),BF=v((r)=>{if(typeof r=="string")return P1(Eh(r));return P1(r)},"strictParseDouble"),Oi=BF,aW=v((r)=>{if(typeof r=="string")return d$(Eh(r));return d$(r)},"strictParseFloat32"),di=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Eh=v((r)=>{const s=r.match(di);if(s===null||s[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},"parseNumber"),MF=v((r)=>{if(typeof r=="string")return pW(r);return P1(r)},"limitedParseDouble"),ci=MF,bi=MF,_i=v((r)=>{if(typeof r=="string")return pW(r);return d$(r)},"limitedParseFloat32"),pW=v((r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},"parseFloatString"),uW=v((r)=>{if(typeof r==="string")return J1(Eh(r));return J1(r)},"strictParseLong"),gi=uW,xi=v((r)=>{if(typeof r==="string")return KF(Eh(r));return KF(r)},"strictParseInt32"),wh=v((r)=>{if(typeof r==="string")return ZF(Eh(r));return ZF(r)},"strictParseShort"),tW=v((r)=>{if(typeof r==="string")return PF(Eh(r));return PF(r)},"strictParseByte"),c$=v((r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((s)=>!s.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),Q1={warn:console.warn},ei=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],VF=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];v(rz,"dateToUtcString");var ni=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),oi=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const s=ni.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");const[f,w,h,E,$,I,F,U]=s,A=wh(hh(w)),L=Bs(h,"month",1,12),S=Bs(E,"day",1,31);return Z1(A,L,S,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U})},"parseRfc3339DateTime"),ai=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),pi=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const s=ai.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");const[f,w,h,E,$,I,F,U,A]=s,L=wh(hh(w)),S=Bs(h,"month",1,12),z=Bs(E,"day",1,31),Z=Z1(L,S,z,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U});if(A.toUpperCase()!="Z")Z.setTime(Z.getTime()-TO(A));return Z},"parseRfc3339DateTimeWithOffset"),ui=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$/),ti=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$/),rO=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})$/),fO=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let s=ui.exec(r);if(s){const[f,w,h,E,$,I,F,U]=s;return Z1(wh(hh(E)),YF(h),Bs(w,"day",1,31),{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U})}if(s=ti.exec(r),s){const[f,w,h,E,$,I,F,U]=s;return EO(Z1(wO(E),YF(h),Bs(w,"day",1,31),{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U}))}if(s=rO.exec(r),s){const[f,w,h,E,$,I,F,U]=s;return Z1(wh(hh(U)),YF(w),Bs(h.trimLeft(),"day",1,31),{hours:E,minutes:$,seconds:I,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),sO=v((r)=>{if(r===null||r===void 0)return;let s;if(typeof r==="number")s=r;else if(typeof r==="string")s=BF(r);else if(typeof r==="object"&&r.tag===1)s=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(s)||s===1/0||s===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(s*1000))},"parseEpochTimestamp"),Z1=v((r,s,f,w)=>{const h=s-1;return IO(r,h,f),new Date(Date.UTC(r,h,f,Bs(w.hours,"hour",0,23),Bs(w.minutes,"minute",0,59),Bs(w.seconds,"seconds",0,60),UO(w.fractionalMilliseconds)))},"buildDate"),wO=v((r)=>{const s=new Date().getUTCFullYear(),f=Math.floor(s/100)*100+wh(hh(r));if(f<s)return f+100;return f},"parseTwoDigitYear"),hO=1576800000000,EO=v((r)=>{if(r.getTime()-new Date().getTime()>hO)return new Date(Date.UTC(r.getUTCFullYear()-100,r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()));return r},"adjustRfc850Year"),YF=v((r)=>{const s=VF.indexOf(r);if(s<0)throw new TypeError(`Invalid month: ${r}`);return s+1},"parseMonthByShortName"),$O=[31,28,31,30,31,30,31,31,30,31,30,31],IO=v((r,s,f)=>{let w=$O[s];if(s===1&&FO(r))w=29;if(f>w)throw new TypeError(`Invalid day for ${VF[s]} in ${r}: ${f}`)},"validateDayOfMonth"),FO=v((r)=>{return r%4===0&&(r%100!==0||r%400===0)},"isLeapYear"),Bs=v((r,s,f,w)=>{const h=tW(hh(r));if(h<f||h>w)throw new TypeError(`${s} must be between ${f} and ${w}, inclusive`);return h},"parseDateValue"),UO=v((r)=>{if(r===null||r===void 0)return 0;return aW("0."+r)*1000},"parseMilliseconds"),TO=v((r)=>{const s=r[0];let f=1;if(s=="+")f=1;else if(s=="-")f=-1;else throw new TypeError(`Offset direction, ${s}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return f*(w*60+h)*60*1000},"parseOffsetToMilliseconds"),hh=v((r)=>{let s=0;while(s<r.length-1&&r.charAt(s)==="0")s++;if(s===0)return r;return r.slice(s)},"stripLeadingZeroes"),fz=class r extends Error{constructor(s){super(s.message);Object.setPrototypeOf(this,r.prototype),this.name=s.name,this.$fault=s.$fault,this.$metadata=s.$metadata}};v(fz,"ServiceException");var GO=fz,sz=v((r,s={})=>{Object.entries(s).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const f=r.message||r.Message||"UnknownError";return r.message=f,delete r.Message,r},"decorateServiceException"),wz=v(({output:r,parsedBody:s,exceptionCtor:f,errorCode:w})=>{const h=LO(r),E=h.httpStatusCode?h.httpStatusCode+"":void 0,$=new f({name:(s==null?void 0:s.code)||(s==null?void 0:s.Code)||w||E||"UnknownError",$fault:"client",$metadata:h});throw sz($,s)},"throwDefaultError"),AO=v((r)=>{return({output:s,parsedBody:f,errorCode:w})=>{wz({output:s,parsedBody:f,exceptionCtor:r,errorCode:w})}},"withBaseException"),LO=v((r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),"deserializeMetadata"),RO=v((r)=>{switch(r){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:30000};default:return{}}},"loadConfigsForDefaultMode"),cW=!1,CO=v((r)=>{if(r&&!cW&&parseInt(r.substring(1,r.indexOf(".")))<16)cW=!0},"emitWarningIfUnsupportedVersion");v(b$,"extendedEncodeURIComponent");var WO=v((r)=>{const s=[];for(let f in XF.AlgorithmId){const w=XF.AlgorithmId[f];if(r[w]===void 0)continue;s.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:s,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),zO=v((r)=>{const s={};return r.checksumAlgorithms().forEach((f)=>{s[f.algorithmId()]=f.checksumConstructor()}),s},"resolveChecksumRuntimeConfig"),SO=v((r)=>{let s=r.retryStrategy;return{setRetryStrategy(f){s=f},retryStrategy(){return s}}},"getRetryConfiguration"),YO=v((r)=>{const s={};return s.retryStrategy=r.retryStrategy(),s},"resolveRetryRuntimeConfig"),hz=v((r)=>{return{...WO(r),...SO(r)}},"getDefaultExtensionConfiguration"),XO=hz,KO=v((r)=>{return{...zO(r),...YO(r)}},"resolveDefaultRuntimeConfig"),ZO=v((r)=>Array.isArray(r)?r:[r],"getArrayIfSingleItem"),Ez=v((r)=>{for(let f in r)if(r.hasOwnProperty(f)&&r[f]["#text"]!==void 0)r[f]=r[f]["#text"];else if(typeof r[f]==="object"&&r[f]!==null)r[f]=Ez(r[f]);return r},"getValueFromTextNode"),PO=v((r)=>{return r!=null},"isSerializableHeaderValue"),B1=v(function(){const r=Object.getPrototypeOf(this).constructor,f=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(f,r.prototype),f},"StringWrapper");B1.prototype=Object.create(String.prototype,{constructor:{value:B1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(B1,String);var $z=class r extends B1{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(s){if(s instanceof r)return s;else if(s instanceof String||typeof s==="string")return new r(s);return new r(JSON.stringify(s))}};v($z,"LazyJsonString");var JO=$z,Iz=class r{trace(){}debug(){}info(){}warn(){}error(){}};v(Iz,"NoOpLogger");var QO=Iz;v(HF,"map");var BO=v((r)=>{const s={};for(let[f,w]of Object.entries(r||{}))s[f]=[,w];return s},"convertMap"),MO=v((r,s)=>{const f={};for(let w in s)Fz(f,r,s,w);return f},"take"),VO=v((r,s,f)=>{return HF(r,Object.entries(f).reduce((w,[h,E])=>{if(Array.isArray(E))w[h]=E;else if(typeof E==="function")w[h]=[s,E()];else w[h]=[s,E];return w},{}))},"mapWithFilter"),Fz=v((r,s,f,w)=>{if(s!==null){let $=f[w];if(typeof $==="function")$=[,$];const[I=HO,F=lO,U=w]=$;if(typeof I==="function"&&I(s[U])||typeof I!=="function"&&!!I)r[w]=F(s[U]);return}let[h,E]=f[w];if(typeof E==="function"){let $;const I=h===void 0&&($=E())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=$;else if(F)r[w]=E()}else{const $=h===void 0&&E!=null,I=typeof h==="function"&&!!h(E)||typeof h!=="function"&&!!h;if($||I)r[w]=E}},"applyInstruction"),HO=v((r)=>r!=null,"nonNullish"),lO=v((r)=>r,"pass");v(Uz,"quoteHeader");var DO=v((r,s,f,w,h,E)=>{if(s!=null&&s[f]!==void 0){const $=w();if($.length<=0)throw new Error("Empty value provided for input HTTP label: "+f+".");r=r.replace(h,E?$.split("/").map((I)=>b$(I)).join("/"):b$($))}else throw new Error("No value provided for input HTTP label: "+f+".");return r},"resolvedPath"),kO=v((r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}},"serializeFloat"),yO=v((r)=>r.toISOString().replace(".000Z","Z"),"serializeDateTime"),JF=v((r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((s)=>s!=null).map(JF);if(typeof r==="object"){const s={};for(let f of Object.keys(r)){if(r[f]==null)continue;s[f]=JF(r[f])}return s}return r},"_json");v(Tz,"splitEvery");var NO=v((r)=>{const s=r.length,f=[];let w=!1,h=void 0,E=0;for(let $=0;$<s;++$){const I=r[$];switch(I){case'"':if(h!=="\\")w=!w;break;case",":if(!w)f.push(r.slice(E,$)),E=$+1;break;default:}h=I}return f.push(r.slice(E)),f.map(($)=>{$=$.trim();const I=$.length;if(I<2)return $;if($[0]==='"'&&$[I-1]==='"')$=$.slice(1,I-1);return $.replace(/\\"/g,'"')})},"splitHeader")});var Rz=O((Az)=>{Object.defineProperty(Az,"__esModule",{value:!0});Az.isStreamingPayload=void 0;var qO=import.meta.require("stream"),mO=(r)=>(r===null||r===void 0?void 0:r.body)instanceof qO.Readable||typeof ReadableStream!=="undefined"&&(r===null||r===void 0?void 0:r.body)instanceof ReadableStream;Az.isStreamingPayload=mO});var kz=O((Gfr,Dz)=>{var{defineProperty:g$,getOwnPropertyDescriptor:jO,getOwnPropertyNames:vO}=Object,iO=Object.prototype.hasOwnProperty,Dr=(r,s)=>g$(r,"name",{value:s,configurable:!0}),OO=(r,s)=>{for(var f in s)g$(r,f,{get:s[f],enumerable:!0})},dO=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of vO(s))if(!iO.call(r,h)&&h!==f)g$(r,h,{get:()=>s[h],enumerable:!(w=jO(s,h))||w.enumerable})}return r},cO=(r)=>dO(g$({},"__esModule",{value:!0}),r),Wz={};OO(Wz,{AdaptiveRetryStrategy:()=>gO,CONFIG_MAX_ATTEMPTS:()=>DF,CONFIG_RETRY_MODE:()=>Qz,ENV_MAX_ATTEMPTS:()=>lF,ENV_RETRY_MODE:()=>Jz,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>xO,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>nO,StandardRetryStrategy:()=>Zz,defaultDelayDecider:()=>Sz,defaultRetryDecider:()=>Yz,getOmitRetryHeadersPlugin:()=>oO,getRetryAfterHint:()=>lz,getRetryPlugin:()=>fd,omitRetryHeadersMiddleware:()=>Bz,omitRetryHeadersMiddlewareOptions:()=>Mz,resolveRetryConfig:()=>eO,retryMiddleware:()=>Vz,retryMiddlewareOptions:()=>Hz});Dz.exports=cO(Wz);var Ih=L0(),zz=n6(),Zr=uR(),bO=Dr((r,s)=>{const f=r,w=(s==null?void 0:s.noRetryIncrement)??Zr.NO_RETRY_INCREMENT,h=(s==null?void 0:s.retryCost)??Zr.RETRY_COST,E=(s==null?void 0:s.timeoutRetryCost)??Zr.TIMEOUT_RETRY_COST;let $=r;const I=Dr((L)=>L.name==="TimeoutError"?E:h,"getCapacityAmount"),F=Dr((L)=>I(L)<=$,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:Dr((L)=>{if(!F(L))throw new Error("No retry token available");const S=I(L);return $-=S,S},"retrieveRetryTokens"),releaseRetryTokens:Dr((L)=>{$+=L??w,$=Math.min($,f)},"releaseRetryTokens")})},"getDefaultRetryQuota"),Sz=Dr((r,s)=>Math.floor(Math.min(Zr.MAXIMUM_RETRY_DELAY,Math.random()*2**s*r)),"defaultDelayDecider"),d0=o6(),Yz=Dr((r)=>{if(!r)return!1;return d0.isRetryableByTrait(r)||d0.isClockSkewError(r)||d0.isThrottlingError(r)||d0.isTransientError(r)},"defaultRetryDecider"),Xz=Dr((r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)},"asSdkError"),Kz=class r{constructor(s,f){this.maxAttemptsProvider=s,this.mode=Zr.RETRY_MODES.STANDARD,this.retryDecider=(f==null?void 0:f.retryDecider)??Yz,this.delayDecider=(f==null?void 0:f.delayDecider)??Sz,this.retryQuota=(f==null?void 0:f.retryQuota)??bO(Zr.INITIAL_RETRY_TOKENS)}shouldRetry(s,f,w){return f<w&&this.retryDecider(s)&&this.retryQuota.hasRetryTokens(s)}async getMaxAttempts(){let s;try{s=await this.maxAttemptsProvider()}catch(f){s=Zr.DEFAULT_MAX_ATTEMPTS}return s}async retry(s,f,w){let h,E=0,$=0;const I=await this.getMaxAttempts(),{request:F}=f;if(Ih.HttpRequest.isInstance(F))F.headers[Zr.INVOCATION_ID_HEADER]=zz.v4();while(!0)try{if(Ih.HttpRequest.isInstance(F))F.headers[Zr.REQUEST_HEADER]=`attempt=${E+1}; max=${I}`;if(w==null?void 0:w.beforeRequest)await w.beforeRequest();const{response:U,output:A}=await s(f);if(w==null?void 0:w.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(h),A.$metadata.attempts=E+1,A.$metadata.totalRetryDelay=$,{response:U,output:A}}catch(U){const A=Xz(U);if(E++,this.shouldRetry(A,E,I)){h=this.retryQuota.retrieveRetryTokens(A);const L=this.delayDecider(d0.isThrottlingError(A)?Zr.THROTTLING_RETRY_DELAY_BASE:Zr.DEFAULT_RETRY_DELAY_BASE,E),S=_O(A.$response),z=Math.max(S||0,L);$+=z,await new Promise((Z)=>setTimeout(Z,z));continue}if(!A.$metadata)A.$metadata={};throw A.$metadata.attempts=E,A.$metadata.totalRetryDelay=$,A}}};Dr(Kz,"StandardRetryStrategy");var Zz=Kz,_O=Dr((r)=>{if(!Ih.HttpResponse.isInstance(r))return;const s=Object.keys(r.headers).find((E)=>E.toLowerCase()==="retry-after");if(!s)return;const f=r.headers[s],w=Number(f);if(!Number.isNaN(w))return w*1000;return new Date(f).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),Pz=class r extends Zz{constructor(s,f){const{rateLimiter:w,...h}=f??{};super(s,h);this.rateLimiter=w??new Zr.DefaultRateLimiter,this.mode=Zr.RETRY_MODES.ADAPTIVE}async retry(s,f){return super.retry(s,f,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}};Dr(Pz,"AdaptiveRetryStrategy");var gO=Pz,Cz=G1(),lF="AWS_MAX_ATTEMPTS",DF="max_attempts",xO={environmentVariableSelector:(r)=>{const s=r[lF];if(!s)return;const f=parseInt(s);if(Number.isNaN(f))throw new Error(`Environment variable ${lF} mast be a number, got "${s}"`);return f},configFileSelector:(r)=>{const s=r[DF];if(!s)return;const f=parseInt(s);if(Number.isNaN(f))throw new Error(`Shared config file entry ${DF} mast be a number, got "${s}"`);return f},default:Zr.DEFAULT_MAX_ATTEMPTS},eO=Dr((r)=>{const{retryStrategy:s}=r,f=Cz.normalizeProvider(r.maxAttempts??Zr.DEFAULT_MAX_ATTEMPTS);return{...r,maxAttempts:f,retryStrategy:async()=>{if(s)return s;if(await Cz.normalizeProvider(r.retryMode)()===Zr.RETRY_MODES.ADAPTIVE)return new Zr.AdaptiveRetryStrategy(f);return new Zr.StandardRetryStrategy(f)}}},"resolveRetryConfig"),Jz="AWS_RETRY_MODE",Qz="retry_mode",nO={environmentVariableSelector:(r)=>r[Jz],configFileSelector:(r)=>r[Qz],default:Zr.DEFAULT_RETRY_MODE},Bz=Dr(()=>(r)=>async(s)=>{const{request:f}=s;if(Ih.HttpRequest.isInstance(f))delete f.headers[Zr.INVOCATION_ID_HEADER],delete f.headers[Zr.REQUEST_HEADER];return r(s)},"omitRetryHeadersMiddleware"),Mz={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},oO=Dr((r)=>({applyToStack:(s)=>{s.addRelativeTo(Bz(),Mz)}}),"getOmitRetryHeadersPlugin"),aO=$h(),pO=Rz(),Vz=Dr((r)=>(s,f)=>async(w)=>{var h;let E=await r.retryStrategy();const $=await r.maxAttempts();if(uO(E)){E=E;let I=await E.acquireInitialRetryToken(f.partition_id),F=new Error,U=0,A=0;const{request:L}=w,S=Ih.HttpRequest.isInstance(L);if(S)L.headers[Zr.INVOCATION_ID_HEADER]=zz.v4();while(!0)try{if(S)L.headers[Zr.REQUEST_HEADER]=`attempt=${U+1}; max=${$}`;const{response:z,output:Z}=await s(w);return E.recordSuccess(I),Z.$metadata.attempts=U+1,Z.$metadata.totalRetryDelay=A,{response:z,output:Z}}catch(z){const Z=tO(z);if(F=Xz(z),S&&pO.isStreamingPayload(L))throw(h=f.logger instanceof aO.NoOpLogger?console:f.logger)==null||h.warn("An error was encountered in a non-retryable streaming request."),F;try{I=await E.refreshRetryTokenForRetry(I,Z)}catch(M){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=U+1,F.$metadata.totalRetryDelay=A,F}U=I.getRetryCount();const N=I.getRetryDelay();A+=N,await new Promise((M)=>setTimeout(M,N))}}else{if(E=E,E==null?void 0:E.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",E.mode]];return E.retry(s,w)}},"retryMiddleware"),uO=Dr((r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined","isRetryStrategyV2"),tO=Dr((r)=>{const s={error:r,errorType:rd(r)},f=lz(r.$response);if(f)s.retryAfterHint=f;return s},"getRetryErrorInfo"),rd=Dr((r)=>{if(d0.isThrottlingError(r))return"THROTTLING";if(d0.isTransientError(r))return"TRANSIENT";if(d0.isServerError(r))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),Hz={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},fd=Dr((r)=>({applyToStack:(s)=>{s.add(Vz(r),Hz)}}),"getRetryPlugin"),lz=Dr((r)=>{if(!Ih.HttpResponse.isInstance(r))return;const s=Object.keys(r.headers).find((E)=>E.toLowerCase()==="retry-after");if(!s)return;const f=r.headers[s],w=Number(f);if(!Number.isNaN(w))return new Date(w*1000);return new Date(f)},"getRetryAfterHint")});var qr=O((Afr,pz)=>{function qz(r){const s=new Map;for(let f of r)s.set(f.schemeId,f);return s}function ez(r,s){return new oz(r,s)}function az(r,s,f,w,h){return zr(async function*E($,I,...F){let U=$.startingToken||void 0,A=!0,L;while(A){if(I[f]=U,h)I[h]=I[h]??$.pageSize;if($.client instanceof r)L=await Qd(s,$.client,I,...F);else throw new Error(`Invalid client, expected instance of ${r.name}`);yield L;const S=U;U=Bd(L,w),A=!!(U&&(!$.stopOnSameToken||U!==S))}return},"paginateOperation")}var{defineProperty:e$,getOwnPropertyDescriptor:sd,getOwnPropertyNames:wd}=Object,hd=Object.prototype.hasOwnProperty,zr=(r,s)=>e$(r,"name",{value:s,configurable:!0}),Ed=(r,s)=>{for(var f in s)e$(r,f,{get:s[f],enumerable:!0})},$d=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of wd(s))if(!hd.call(r,h)&&h!==f)e$(r,h,{get:()=>s[h],enumerable:!(w=sd(s,h))||w.enumerable})}return r},Id=(r)=>$d(e$({},"__esModule",{value:!0}),r),yz={};Ed(yz,{DefaultIdentityProviderConfig:()=>Wd,EXPIRATION_MS:()=>gz,HttpApiKeyAuthSigner:()=>zd,HttpBearerAuthSigner:()=>Sd,NoAuthSigner:()=>Yd,RequestBuilder:()=>oz,createIsIdentityExpiredFunction:()=>_z,createPaginator:()=>az,doesIdentityRequireRefresh:()=>xz,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Ud,getHttpAuthSchemePlugin:()=>Gd,getHttpSigningPlugin:()=>Cd,getSmithyContext:()=>Zd,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>mz,httpAuthSchemeMiddleware:()=>kF,httpAuthSchemeMiddlewareOptions:()=>jz,httpSigningMiddleware:()=>vz,httpSigningMiddlewareOptions:()=>iz,isIdentityExpired:()=>Xd,memoizeIdentityProvider:()=>Kd,normalizeProvider:()=>Pd,requestBuilder:()=>ez});pz.exports=Id(yz);var Nz=G1();zr(qz,"convertHttpAuthSchemesToMap");var kF=zr((r,s)=>(f,w)=>async(h)=>{var E;const $=r.httpAuthSchemeProvider(await s.httpAuthSchemeParametersProvider(r,w,h.input)),I=qz(r.httpAuthSchemes),F=Nz.getSmithyContext(w),U=[];for(let A of $){const L=I.get(A.schemeId);if(!L){U.push(`HttpAuthScheme \`${A.schemeId}\` was not enabled for this service.`);continue}const S=L.identityProvider(await s.identityProviderConfigProvider(r));if(!S){U.push(`HttpAuthScheme \`${A.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:z={},signingProperties:Z={}}=((E=A.propertiesExtractor)==null?void 0:E.call(A,r,w))||{};A.identityProperties=Object.assign(A.identityProperties||{},z),A.signingProperties=Object.assign(A.signingProperties||{},Z),F.selectedHttpAuthScheme={httpAuthOption:A,identity:await S(A.identityProperties),signer:L.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(U.join("\n"));return f(h)},"httpAuthSchemeMiddleware"),Fd=kL(),mz={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Fd.endpointMiddlewareOptions.name},Ud=zr((r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f})=>({applyToStack:(w)=>{w.addRelativeTo(kF(r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f}),mz)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Td=O6(),jz={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Td.serializerMiddlewareOption.name},Gd=zr((r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f})=>({applyToStack:(w)=>{w.addRelativeTo(kF(r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f}),jz)}}),"getHttpAuthSchemePlugin"),n$=L0(),Ad=zr((r)=>(s)=>{throw s},"defaultErrorHandler"),Ld=zr((r,s)=>{},"defaultSuccessHandler"),vz=zr((r)=>(s,f)=>async(w)=>{if(!n$.HttpRequest.isInstance(w.request))return s(w);const E=Nz.getSmithyContext(f).selectedHttpAuthScheme;if(!E)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:$={}},identity:I,signer:F}=E,U=await s({...w,request:await F.sign(w.request,I,$)}).catch((F.errorHandler||Ad)($));return(F.successHandler||Ld)(U.response,$),U},"httpSigningMiddleware"),Rd=kz(),iz={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:Rd.retryMiddlewareOptions.name},Cd=zr((r)=>({applyToStack:(s)=>{s.addRelativeTo(vz(r),iz)}}),"getHttpSigningPlugin"),Oz=class r{constructor(s){this.authSchemes=new Map;for(let[f,w]of Object.entries(s))if(w!==void 0)this.authSchemes.set(f,w)}getIdentityProvider(s){return this.authSchemes.get(s)}};zr(Oz,"DefaultIdentityProviderConfig");var Wd=Oz,x$=Ff(),dz=class r{async sign(s,f,w){if(!w)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!w.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!w.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!f.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const h=n$.HttpRequest.clone(s);if(w.in===x$.HttpApiKeyAuthLocation.QUERY)h.query[w.name]=f.apiKey;else if(w.in===x$.HttpApiKeyAuthLocation.HEADER)h.headers[w.name]=w.scheme?`${w.scheme} ${f.apiKey}`:f.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return h}};zr(dz,"HttpApiKeyAuthSigner");var zd=dz,cz=class r{async sign(s,f,w){const h=n$.HttpRequest.clone(s);if(!f.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return h.headers.Authorization=`Bearer ${f.token}`,h}};zr(cz,"HttpBearerAuthSigner");var Sd=cz,bz=class r{async sign(s,f,w){return s}};zr(bz,"NoAuthSigner");var Yd=bz,_z=zr((r)=>(s)=>xz(s)&&s.expiration.getTime()-Date.now()<r,"createIsIdentityExpiredFunction"),gz=300000,Xd=_z(gz),xz=zr((r)=>r.expiration!==void 0,"doesIdentityRequireRefresh"),Kd=zr((r,s,f)=>{if(r===void 0)return;const w=typeof r!=="function"?async()=>Promise.resolve(r):r;let h,E,$,I=!1;const F=zr(async(U)=>{if(!E)E=w(U);try{h=await E,$=!0,I=!1}finally{E=void 0}return h},"coalesceProvider");if(s===void 0)return async(U)=>{if(!$||(U==null?void 0:U.forceRefresh))h=await F(U);return h};return async(U)=>{if(!$||(U==null?void 0:U.forceRefresh))h=await F(U);if(I)return h;if(!f(h))return I=!0,h;if(s(h))return await F(U),h;return h}},"memoizeIdentityProvider"),Zd=zr((r)=>r[x$.SMITHY_CONTEXT_KEY]||(r[x$.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Pd=zr((r)=>{if(typeof r==="function")return r;const s=Promise.resolve(r);return()=>s},"normalizeProvider"),Jd=$h();zr(ez,"requestBuilder");var nz=class r{constructor(s,f){this.input=s,this.context=f,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:s,protocol:f="https",port:w,path:h}=await this.context.endpoint();this.path=h;for(let E of this.resolvePathStack)E(this.path);return new n$.HttpRequest({protocol:f,hostname:this.hostname||s,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(s){return this.hostname=s,this}bp(s){return this.resolvePathStack.push((f)=>{this.path=`${(f==null?void 0:f.endsWith("/"))?f.slice(0,-1):f||""}`+s}),this}p(s,f,w,h){return this.resolvePathStack.push((E)=>{this.path=Jd.resolvedPath(E,this.input,s,f,w,h)}),this}h(s){return this.headers=s,this}q(s){return this.query=s,this}b(s){return this.body=s,this}m(s){return this.method=s,this}};zr(nz,"RequestBuilder");var oz=nz,Qd=zr(async(r,s,f,...w)=>{return await s.send(new r(f),...w)},"makePagedClientRequest");zr(az,"createPaginator");var Bd=zr((r,s)=>{let f=r;const w=s.split(".");for(let h of w){if(!f||typeof f!=="object")return;f=f[h]}return f},"get")});function Md(r){if(r===void 0)return!0;return typeof r==="string"&&r.length<=50}function Ms(r){const s=uz.normalizeProvider(r.userAgentAppId??yF);return{...r,customUserAgent:typeof r.customUserAgent==="string"?[[r.customUserAgent]]:r.customUserAgent,userAgentAppId:async()=>{const f=await s();if(!Md(f)){const w=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console:r.logger;if(typeof f!=="string")w?.warn("userAgentAppId must be a string or undefined.");else if(f.length>50)w?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return f}}}var uz,yF=void 0;var tz=G(()=>{uz=m(qr(),1)});class fs{constructor({size:r,params:s}){if(this.data=new Map,this.parameters=[],this.capacity=r??50,s)this.parameters=s}get(r,s){const f=this.hash(r);if(f===!1)return s();if(!this.data.has(f)){if(this.data.size>this.capacity+10){const w=this.data.keys();let h=0;while(!0){const{value:E,done:$}=w.next();if(this.data.delete(E),$||++h>10)break}}this.data.set(f,s())}return this.data.get(f)}size(){return this.data.size}hash(r){let s="";const{parameters:f}=this;if(f.length===0)return!1;for(let w of f){const h=String(r[w]??"");if(h.includes("|;"))return!1;s+=h+"|;"}return s}}var Vd,M1=(r)=>Vd.test(r)||r.startsWith("[")&&r.endsWith("]");var NF=G(()=>{Vd=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}$")});var Hd,V1=(r,s=!1)=>{if(!s)return Hd.test(r);const f=r.split(".");for(let w of f)if(!V1(w))return!1;return!0};var qF=G(()=>{Hd=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var ur;var o$=G(()=>{ur={}});var W0="endpoints";function Bf(r){if(typeof r!=="object"||r==null)return r;if("ref"in r)return`\$${Bf(r.ref)}`;if("fn"in r)return`${r.fn}(${(r.argv||[]).map(Bf).join(", ")})`;return JSON.stringify(r,null,2)}var H1=()=>{};var Wr;var rS=G(()=>{Wr=class Wr extends Error{constructor(r){super(r);this.name="EndpointError"}}});var fS=()=>{};var sS=()=>{};var wS=()=>{};var hS=()=>{};var ES=()=>{};var $S=()=>{};var Mf=G(()=>{rS();fS();sS();wS();hS();ES();$S()});var IS=(r,s)=>r===s;var FS=(r)=>{const s=r.split("."),f=[];for(let w of s){const h=w.indexOf("[");if(h!==-1){if(w.indexOf("]")!==w.length-1)throw new Wr(`Path: '${r}' does not end with ']'`);const E=w.slice(h+1,-1);if(Number.isNaN(parseInt(E)))throw new Wr(`Invalid array index: '${E}' in path: '${r}'`);if(h!==0)f.push(w.slice(0,h));f.push(E)}else f.push(w)}return f};var US=G(()=>{Mf()});var a$=(r,s)=>FS(s).reduce((f,w)=>{if(typeof f!=="object")throw new Wr(`Index '${w}' in '${s}' not found in '${JSON.stringify(r)}'`);else if(Array.isArray(f))return f[parseInt(w)];return f[w]},r);var TS=G(()=>{Mf();US()});var GS=(r)=>r!=null;var AS=(r)=>!r;var p$,mF,LS=(r)=>{const s=(()=>{try{if(r instanceof URL)return r;if(typeof r==="object"&&"hostname"in r){const{hostname:S,port:z,protocol:Z="",path:N="",query:M={}}=r,l=new URL(`${Z}//${S}${z?`:${z}`:""}${N}`);return l.search=Object.entries(M).map(([k,i])=>`${k}=${i}`).join("&"),l}return new URL(r)}catch(S){return null}})();if(!s)return console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`),null;const f=s.href,{host:w,hostname:h,pathname:E,protocol:$,search:I}=s;if(I)return null;const F=$.slice(0,-1);if(!Object.values(p$.EndpointURLScheme).includes(F))return null;const U=M1(h),A=f.includes(`${w}:${mF[F]}`)||typeof r==="string"&&r.includes(`${w}:${mF[F]}`),L=`${w}${A?`:${mF[F]}`:""}`;return{scheme:F,authority:L,path:E,normalizedPath:E.endsWith("/")?E:`${E}/`,isIp:U}};var RS=G(()=>{p$=m(Ff(),1);NF();mF={[p$.EndpointURLScheme.HTTP]:80,[p$.EndpointURLScheme.HTTPS]:443}});var CS=(r,s)=>r===s;var WS=(r,s,f,w)=>{if(s>=f||r.length<f)return null;if(!w)return r.substring(s,f);return r.substring(r.length-f,r.length-s)};var zS=(r)=>encodeURIComponent(r).replace(/[!*'()]/g,(s)=>`%${s.charCodeAt(0).toString(16).toUpperCase()}`);var jF=G(()=>{TS();qF();RS()});var SS;var YS=G(()=>{jF();SS={booleanEquals:IS,getAttr:a$,isSet:GS,isValidHostLabel:V1,not:AS,parseURL:LS,stringEquals:CS,substring:WS,uriEncode:zS}});var u$=(r,s)=>{const f=[],w={...s.endpointParams,...s.referenceRecord};let h=0;while(h<r.length){const E=r.indexOf("{",h);if(E===-1){f.push(r.slice(h));break}f.push(r.slice(h,E));const $=r.indexOf("}",E);if($===-1){f.push(r.slice(E));break}if(r[E+1]==="{"&&r[$+1]==="}")f.push(r.slice(E+1,$)),h=$+2;const I=r.substring(E+1,$);if(I.includes("#")){const[F,U]=I.split("#");f.push(a$(w[F],U))}else f.push(w[I]);h=$+1}return f.join("")};var vF=G(()=>{jF()});var XS=({ref:r},s)=>{return{...s.endpointParams,...s.referenceRecord}[r]};var c0=(r,s,f)=>{if(typeof r==="string")return u$(r,f);else if(r.fn)return t$(r,f);else if(r.ref)return XS(r,f);throw new Wr(`'${s}': ${String(r)} is not a string, function or reference.`)};var l1=G(()=>{Mf();iF();vF()});var t$=({fn:r,argv:s},f)=>{const w=s.map((E)=>["boolean","number"].includes(typeof E)?E:c0(E,"arg",f)),h=r.split(".");if(h[0]in ur&&h[1]!=null)return ur[h[0]][h[1]](...w);return SS[r](...w)};var iF=G(()=>{o$();YS();l1()});var KS=({assign:r,...s},f)=>{if(r&&r in f.referenceRecord)throw new Wr(`'${r}' is already defined in Reference Record.`);const w=t$(s,f);return f.logger?.debug?.(`${W0} evaluateCondition: ${Bf(s)} = ${Bf(w)}`),{result:w===""?!0:!!w,...r!=null&&{toAssign:{name:r,value:w}}}};var ZS=G(()=>{H1();Mf();iF()});var Fh=(r=[],s)=>{const f={};for(let w of r){const{result:h,toAssign:E}=KS(w,{...s,referenceRecord:{...s.referenceRecord,...f}});if(!h)return{result:h};if(E)f[E.name]=E.value,s.logger?.debug?.(`${W0} assign: ${E.name} := ${Bf(E.value)}`)}return{result:!0,referenceRecord:f}};var r3=G(()=>{H1();ZS()});var PS=(r,s)=>Object.entries(r).reduce((f,[w,h])=>({...f,[w]:h.map((E)=>{const $=c0(E,"Header value entry",s);if(typeof $!=="string")throw new Wr(`Header '${w}' value '${$}' is not a string`);return $})}),{});var JS=G(()=>{Mf();l1()});var OF=(r,s)=>{if(Array.isArray(r))return r.map((f)=>OF(f,s));switch(typeof r){case"string":return u$(r,s);case"object":if(r===null)throw new Wr(`Unexpected endpoint property: ${r}`);return f3(r,s);case"boolean":return r;default:throw new Wr(`Unexpected endpoint property type: ${typeof r}`)}};var QS=G(()=>{Mf();vF();dF()});var f3=(r,s)=>Object.entries(r).reduce((f,[w,h])=>({...f,[w]:OF(h,s)}),{});var dF=G(()=>{QS()});var BS=(r,s)=>{const f=c0(r,"Endpoint URL",s);if(typeof f==="string")try{return new URL(f)}catch(w){throw console.error(`Failed to construct URL with ${f}`,w),w}throw new Wr(`Endpoint URL must be a string, got ${typeof f}`)};var MS=G(()=>{Mf();l1()});var VS=(r,s)=>{const{conditions:f,endpoint:w}=r,{result:h,referenceRecord:E}=Fh(f,s);if(!h)return;const $={...s,referenceRecord:{...s.referenceRecord,...E}},{url:I,properties:F,headers:U}=w;return s.logger?.debug?.(`${W0} Resolving endpoint from template: ${Bf(w)}`),{...U!=null&&{headers:PS(U,$)},...F!=null&&{properties:f3(F,$)},url:BS(I,$)}};var HS=G(()=>{H1();r3();JS();dF();MS()});var lS=(r,s)=>{const{conditions:f,error:w}=r,{result:h,referenceRecord:E}=Fh(f,s);if(!h)return;throw new Wr(c0(w,"Error",{...s,referenceRecord:{...s.referenceRecord,...E}}))};var DS=G(()=>{Mf();r3();l1()});var kS=(r,s)=>{const{conditions:f,rules:w}=r,{result:h,referenceRecord:E}=Fh(f,s);if(!h)return;return s3(w,{...s,referenceRecord:{...s.referenceRecord,...E}})};var yS=G(()=>{r3();cF()});var s3=(r,s)=>{for(let f of r)if(f.type==="endpoint"){const w=VS(f,s);if(w)return w}else if(f.type==="error")lS(f,s);else if(f.type==="tree"){const w=kS(f,s);if(w)return w}else throw new Wr(`Unknown endpoint rule: ${f}`);throw new Wr("Rules evaluation failed")};var cF=G(()=>{Mf();HS();DS();yS()});var NS=G(()=>{o$();cF()});var ss=(r,s)=>{const{endpointParams:f,logger:w}=s,{parameters:h,rules:E}=r;s.logger?.debug?.(`${W0} Initial EndpointParams: ${Bf(f)}`);const $=Object.entries(h).filter(([,U])=>U.default!=null).map(([U,A])=>[U,A.default]);if($.length>0)for(let[U,A]of $)f[U]=f[U]??A;const I=Object.entries(h).filter(([,U])=>U.required).map(([U])=>U);for(let U of I)if(f[U]==null)throw new Wr(`Missing required parameter: '${U}'`);const F=s3(E,{endpointParams:f,logger:w,referenceRecord:{}});return s.logger?.debug?.(`${W0} Resolved endpoint: ${Bf(F)}`),F};var qS=G(()=>{H1();Mf();NS()});var ws=G(()=>{NF();qF();o$();qS();Mf()});var bF=G(()=>{ws()});var _F=(r,s=!1)=>{if(s){for(let f of r.split("."))if(!_F(f))return!1;return!0}if(!V1(r))return!1;if(r.length<3||r.length>63)return!1;if(r!==r.toLowerCase())return!1;if(M1(r))return!1;return!0};var mS=G(()=>{ws();bF()});var jS=(r)=>{const s=r.split(":");if(s.length<6)return null;const[f,w,h,E,$,...I]=s;if(f!=="arn"||w===""||h===""||I.join(":")==="")return null;const F=I.map((U)=>U.split("/")).flat();return{partition:w,service:h,region:E,accountId:$,resourceId:F}};var iS;var vS=G(()=>{iS={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-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)"},"aws-global":{description:"AWS Standard 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)"},"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 China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{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 GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) 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:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Dd,kd="",OS=(r)=>{const{partitions:s}=Dd;for(let w of s){const{regions:h,outputs:E}=w;for(let[$,I]of Object.entries(h))if($===r)return{...E,...I}}for(let w of s){const{regionRegex:h,outputs:E}=w;if(new RegExp(h).test(r))return{...E}}const f=s.find((w)=>w.id==="aws");if(!f)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...f.outputs}},dS=()=>kd;var gF=G(()=>{vS();Dd=iS});var hs;var cS=G(()=>{ws();mS();gF();hs={isVirtualHostableS3Bucket:_F,parseArn:jS,partition:OS};ur.aws=hs});var bS=G(()=>{ws()});var _S=G(()=>{ws()});var gS=()=>{};var xS=()=>{};var eS=()=>{};var nS=()=>{};var oS=()=>{};var aS=G(()=>{_S();gS();xS();eS();nS();oS()});var Pw=G(()=>{cS();gF();bF();bS();aS()});var J7=O((b0r,E3)=>{var pS,uS,tS,r7,f7,s7,w7,h7,E7,$7,I7,F7,U7,w3,xF,T7,G7,A7,Uh,L7,R7,C7,W7,z7,S7,Y7,X7,K7,h3,Z7,P7;(function(r){var s=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(w){r(f(s,f(w)))});else if(typeof E3==="object"&&typeof b0r==="object")r(f(s,f(b0r)));else r(f(s));function f(w,h){if(w!==s)if(typeof Object.create==="function")Object.defineProperty(w,"__esModule",{value:!0});else w.__esModule=!0;return function(E,$){return w[E]=h?h(E,$):$}}})(function(r){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var $ in E)if(Object.prototype.hasOwnProperty.call(E,$))h[$]=E[$]};pS=function(h,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");s(h,E);function $(){this.constructor=h}h.prototype=E===null?Object.create(E):($.prototype=E.prototype,new $)},uS=Object.assign||function(h){for(var E,$=1,I=arguments.length;$<I;$++){E=arguments[$];for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F))h[F]=E[F]}return h},tS=function(h,E){var $={};for(var I in h)if(Object.prototype.hasOwnProperty.call(h,I)&&E.indexOf(I)<0)$[I]=h[I];if(h!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,I=Object.getOwnPropertySymbols(h);F<I.length;F++)if(E.indexOf(I[F])<0&&Object.prototype.propertyIsEnumerable.call(h,I[F]))$[I[F]]=h[I[F]]}return $},r7=function(h,E,$,I){var F=arguments.length,U=F<3?E:I===null?I=Object.getOwnPropertyDescriptor(E,$):I,A;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")U=Reflect.decorate(h,E,$,I);else for(var L=h.length-1;L>=0;L--)if(A=h[L])U=(F<3?A(U):F>3?A(E,$,U):A(E,$))||U;return F>3&&U&&Object.defineProperty(E,$,U),U},f7=function(h,E){return function($,I){E($,I,h)}},s7=function(h,E,$,I,F,U){function A(sr){if(sr!==void 0&&typeof sr!=="function")throw new TypeError("Function expected");return sr}var L=I.kind,S=L==="getter"?"get":L==="setter"?"set":"value",z=!E&&h?I.static?h:h.prototype:null,Z=E||(z?Object.getOwnPropertyDescriptor(z,I.name):{}),N,M=!1;for(var l=$.length-1;l>=0;l--){var k={};for(var i in I)k[i]=i==="access"?{}:I[i];for(var i in I.access)k.access[i]=I.access[i];k.addInitializer=function(sr){if(M)throw new TypeError("Cannot add initializers after decoration has completed");U.push(A(sr||null))};var e=$[l](L==="accessor"?{get:Z.get,set:Z.set}:Z[S],k);if(L==="accessor"){if(e===void 0)continue;if(e===null||typeof e!=="object")throw new TypeError("Object expected");if(N=A(e.get))Z.get=N;if(N=A(e.set))Z.set=N;if(N=A(e.init))F.unshift(N)}else if(N=A(e))if(L==="field")F.unshift(N);else Z[S]=N}if(z)Object.defineProperty(z,I.name,Z);M=!0},w7=function(h,E,$){var I=arguments.length>2;for(var F=0;F<E.length;F++)$=I?E[F].call(h,$):E[F].call(h);return I?$:void 0},h7=function(h){return typeof h==="symbol"?h:"".concat(h)},E7=function(h,E,$){if(typeof E==="symbol")E=E.description?"[".concat(E.description,"]"):"";return Object.defineProperty(h,"name",{configurable:!0,value:$?"".concat($," ",E):E})},$7=function(h,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(h,E)},I7=function(h,E,$,I){function F(U){return U instanceof $?U:new $(function(A){A(U)})}return new($||($=Promise))(function(U,A){function L(Z){try{z(I.next(Z))}catch(N){A(N)}}function S(Z){try{z(I.throw(Z))}catch(N){A(N)}}function z(Z){Z.done?U(Z.value):F(Z.value).then(L,S)}z((I=I.apply(h,E||[])).next())})},F7=function(h,E){var $={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},I,F,U,A=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return A.next=L(0),A.throw=L(1),A.return=L(2),typeof Symbol==="function"&&(A[Symbol.iterator]=function(){return this}),A;function L(z){return function(Z){return S([z,Z])}}function S(z){if(I)throw new TypeError("Generator is already executing.");while(A&&(A=0,z[0]&&($=0)),$)try{if(I=1,F&&(U=z[0]&2?F.return:z[0]?F.throw||((U=F.return)&&U.call(F),0):F.next)&&!(U=U.call(F,z[1])).done)return U;if(F=0,U)z=[z[0]&2,U.value];switch(z[0]){case 0:case 1:U=z;break;case 4:return $.label++,{value:z[1],done:!1};case 5:$.label++,F=z[1],z=[0];continue;case 7:z=$.ops.pop(),$.trys.pop();continue;default:if((U=$.trys,!(U=U.length>0&&U[U.length-1]))&&(z[0]===6||z[0]===2)){$=0;continue}if(z[0]===3&&(!U||z[1]>U[0]&&z[1]<U[3])){$.label=z[1];break}if(z[0]===6&&$.label<U[1]){$.label=U[1],U=z;break}if(U&&$.label<U[2]){$.label=U[2],$.ops.push(z);break}if(U[2])$.ops.pop();$.trys.pop();continue}z=E.call(h,$)}catch(Z){z=[6,Z],F=0}finally{I=U=0}if(z[0]&5)throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}},U7=function(h,E){for(var $ in h)if($!=="default"&&!Object.prototype.hasOwnProperty.call(E,$))h3(E,h,$)},h3=Object.create?function(h,E,$,I){if(I===void 0)I=$;var F=Object.getOwnPropertyDescriptor(E,$);if(!F||("get"in F?!E.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return E[$]}};Object.defineProperty(h,I,F)}:function(h,E,$,I){if(I===void 0)I=$;h[I]=E[$]},w3=function(h){var E=typeof Symbol==="function"&&Symbol.iterator,$=E&&h[E],I=0;if($)return $.call(h);if(h&&typeof h.length==="number")return{next:function(){if(h&&I>=h.length)h=void 0;return{value:h&&h[I++],done:!h}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},xF=function(h,E){var $=typeof Symbol==="function"&&h[Symbol.iterator];if(!$)return h;var I=$.call(h),F,U=[],A;try{while((E===void 0||E-- >0)&&!(F=I.next()).done)U.push(F.value)}catch(L){A={error:L}}finally{try{if(F&&!F.done&&($=I.return))$.call(I)}finally{if(A)throw A.error}}return U},T7=function(){for(var h=[],E=0;E<arguments.length;E++)h=h.concat(xF(arguments[E]));return h},G7=function(){for(var h=0,E=0,$=arguments.length;E<$;E++)h+=arguments[E].length;for(var I=Array(h),F=0,E=0;E<$;E++)for(var U=arguments[E],A=0,L=U.length;A<L;A++,F++)I[F]=U[A];return I},A7=function(h,E,$){if($||arguments.length===2){for(var I=0,F=E.length,U;I<F;I++)if(U||!(I in E)){if(!U)U=Array.prototype.slice.call(E,0,I);U[I]=E[I]}}return h.concat(U||Array.prototype.slice.call(E))},Uh=function(h){return this instanceof Uh?(this.v=h,this):new Uh(h)},L7=function(h,E,$){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=$.apply(h,E||[]),F,U=[];return F=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),L("next"),L("throw"),L("return",A),F[Symbol.asyncIterator]=function(){return this},F;function A(l){return function(k){return Promise.resolve(k).then(l,N)}}function L(l,k){if(I[l]){if(F[l]=function(i){return new Promise(function(e,sr){U.push([l,i,e,sr])>1||S(l,i)})},k)F[l]=k(F[l])}}function S(l,k){try{z(I[l](k))}catch(i){M(U[0][3],i)}}function z(l){l.value instanceof Uh?Promise.resolve(l.value.v).then(Z,N):M(U[0][2],l)}function Z(l){S("next",l)}function N(l){S("throw",l)}function M(l,k){if(l(k),U.shift(),U.length)S(U[0][0],U[0][1])}},R7=function(h){var E,$;return E={},I("next"),I("throw",function(F){throw F}),I("return"),E[Symbol.iterator]=function(){return this},E;function I(F,U){E[F]=h[F]?function(A){return($=!$)?{value:Uh(h[F](A)),done:!1}:U?U(A):A}:U}},C7=function(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=h[Symbol.asyncIterator],$;return E?E.call(h):(h=typeof w3==="function"?w3(h):h[Symbol.iterator](),$={},I("next"),I("throw"),I("return"),$[Symbol.asyncIterator]=function(){return this},$);function I(U){$[U]=h[U]&&function(A){return new Promise(function(L,S){A=h[U](A),F(L,S,A.done,A.value)})}}function F(U,A,L,S){Promise.resolve(S).then(function(z){U({value:z,done:L})},A)}},W7=function(h,E){if(Object.defineProperty)Object.defineProperty(h,"raw",{value:E});else h.raw=E;return h};var f=Object.create?function(h,E){Object.defineProperty(h,"default",{enumerable:!0,value:E})}:function(h,E){h.default=E};z7=function(h){if(h&&h.__esModule)return h;var E={};if(h!=null){for(var $ in h)if($!=="default"&&Object.prototype.hasOwnProperty.call(h,$))h3(E,h,$)}return f(E,h),E},S7=function(h){return h&&h.__esModule?h:{default:h}},Y7=function(h,E,$,I){if($==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof E==="function"?h!==E||!I:!E.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return $==="m"?I:$==="a"?I.call(h):I?I.value:E.get(h)},X7=function(h,E,$,I,F){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof E==="function"?h!==E||!F:!E.has(h))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?F.call(h,$):F?F.value=$:E.set(h,$),$},K7=function(h,E){if(E===null||typeof E!=="object"&&typeof E!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof h==="function"?E===h:h.has(E)},Z7=function(h,E,$){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var I,F;if($){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");I=E[Symbol.asyncDispose]}if(I===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(I=E[Symbol.dispose],$)F=I}if(typeof I!=="function")throw new TypeError("Object not disposable.");if(F)I=function(){try{F.call(this)}catch(U){return Promise.reject(U)}};h.stack.push({value:E,dispose:I,async:$})}else if($)h.stack.push({async:!0});return E};var w=typeof SuppressedError==="function"?SuppressedError:function(h,E,$){var I=new Error($);return I.name="SuppressedError",I.error=h,I.suppressed=E,I};P7=function(h){function E(U){h.error=h.hasError?new w(U,h.error,"An error was suppressed during disposal."):U,h.hasError=!0}var $,I=0;function F(){while($=h.stack.pop())try{if(!$.async&&I===1)return I=0,h.stack.push($),Promise.resolve().then(F);if($.dispose){var U=$.dispose.call($.value);if($.async)return I|=2,Promise.resolve(U).then(F,function(A){return E(A),F()})}else I|=1}catch(A){E(A)}if(I===1)return h.hasError?Promise.reject(h.error):Promise.resolve();if(h.hasError)throw h.error}return F()},r("__extends",pS),r("__assign",uS),r("__rest",tS),r("__decorate",r7),r("__param",f7),r("__esDecorate",s7),r("__runInitializers",w7),r("__propKey",h7),r("__setFunctionName",E7),r("__metadata",$7),r("__awaiter",I7),r("__generator",F7),r("__exportStar",U7),r("__createBinding",h3),r("__values",w3),r("__read",xF),r("__spread",T7),r("__spreadArrays",G7),r("__spreadArray",A7),r("__await",Uh),r("__asyncGenerator",L7),r("__asyncDelegator",R7),r("__asyncValues",C7),r("__makeTemplateObject",W7),r("__importStar",z7),r("__importDefault",S7),r("__classPrivateFieldGet",Y7),r("__classPrivateFieldSet",X7),r("__classPrivateFieldIn",K7),r("__addDisposableResource",Z7),r("__disposeResources",P7)})});var tr=O((_0r,H7)=>{function M7(r,s,f){if(!r.$source)r.$source={};return r.$source[s]=f,r}function V7(r,s,f){if(!r.__aws_sdk_context)r.__aws_sdk_context={features:{}};else if(!r.__aws_sdk_context.features)r.__aws_sdk_context.features={};r.__aws_sdk_context.features[s]=f}var{defineProperty:$3,getOwnPropertyDescriptor:yd,getOwnPropertyNames:Nd}=Object,qd=Object.prototype.hasOwnProperty,eF=(r,s)=>$3(r,"name",{value:s,configurable:!0}),md=(r,s)=>{for(var f in s)$3(r,f,{get:s[f],enumerable:!0})},jd=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Nd(s))if(!qd.call(r,h)&&h!==f)$3(r,h,{get:()=>s[h],enumerable:!(w=yd(s,h))||w.enumerable})}return r},vd=(r)=>jd($3({},"__esModule",{value:!0}),r),B7={};md(B7,{emitWarningIfUnsupportedVersion:()=>id,setCredentialFeature:()=>M7,setFeature:()=>V7});H7.exports=vd(B7);var Q7=!1,id=eF((r)=>{if(r&&!Q7&&parseInt(r.substring(1,r.indexOf(".")))<18)Q7=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
4
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return f}resolveDefaultConfig(s){let{requestTimeout:f,connectionTimeout:h,socketTimeout:w,httpAgent:$,httpsAgent:E}=s||{},I=!0,F=50;return{connectionTimeout:h,requestTimeout:f??w,httpAgent:(()=>{if($ instanceof wU.Agent||typeof($==null?void 0:$.destroy)==="function")return $;return new wU.Agent({keepAlive:!0,maxSockets:50,...$})})(),httpsAgent:(()=>{if(E instanceof $U.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new $U.Agent({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){var s,f,h,w;(f=(s=this.config)==null?void 0:s.httpAgent)==null||f.destroy(),(w=(h=this.config)==null?void 0:h.httpsAgent)==null||w.destroy()}async handle(s,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;return new Promise((h,w)=>{let $=void 0,E=[],I=Wr(async(v)=>{await $,E.forEach(clearTimeout),h(v)},"resolve"),F=Wr(async(v)=>{await $,E.forEach(clearTimeout),w(v)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f==null?void 0:f.aborted){let v=new Error("Request aborted");v.name="AbortError",F(v);return}let U=s.protocol==="https:",A=U?this.config.httpsAgent:this.config.httpAgent;E.push(setTimeout(()=>{this.socketWarningTimestamp=r.checkSocketUsage(A,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let L=VW.buildQueryString(s.query||{}),S=void 0;if(s.username!=null||s.password!=null){let v=s.username??"",x=s.password??"";S=`${v}:${x}`}let R=s.path;if(L)R+=`?${L}`;if(s.fragment)R+=`#${s.fragment}`;let P=s.hostname??"";if(P[0]==="["&&P.endsWith("]"))P=s.hostname.slice(1,-1);else P=s.hostname;let N={headers:s.headers,host:P,method:s.method,path:R,port:s.port,agent:A,auth:S},l=(U?$U.request:wU.request)(N,(v)=>{let x=new MW.HttpResponse({statusCode:v.statusCode||-1,reason:v.statusMessage,headers:HW(v.headers),body:v});I({response:x})});if(l.on("error",(v)=>{if(rv.includes(v.code))F(Object.assign(v,{name:"TimeoutError"}));else F(v)}),f){let v=Wr(()=>{l.destroy();let x=new Error("Request aborted");x.name="AbortError",F(x)},"onAbort");if(typeof f.addEventListener==="function"){let x=f;x.addEventListener("abort",v,{once:!0}),l.once("close",()=>x.removeEventListener("abort",v))}else f.onabort=v}E.push(fv(l,F,this.config.connectionTimeout)),E.push(wv(l,F,this.config.requestTimeout));let k=N.agent;if(typeof k==="object"&&"keepAlive"in k)E.push(hv(l,{keepAlive:k.keepAlive,keepAliveMsecs:k.keepAliveMsecs}));$=EU(l,s,this.config.requestTimeout).catch((v)=>{return E.forEach(clearTimeout),w(v)})})}updateHttpClientConfig(s,f){this.config=void 0,this.configProvider=this.configProvider.then((h)=>{return{...h,[s]:f}})}httpHandlerConfigs(){return this.config??{}}};Wr(kW,"NodeHttpHandler");var Ev=kW,QW=import.meta.require("http2"),Iv=uj(import.meta.require("http2")),yW=class r{constructor(s){this.sessions=[],this.sessions=s??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(s){this.sessions.push(s)}contains(s){return this.sessions.includes(s)}remove(s){this.sessions=this.sessions.filter((f)=>f!==s)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(s){for(let f of this.sessions)if(f===s){if(!f.destroyed)f.destroy()}}};Wr(yW,"NodeHttp2ConnectionPool");var Fv=yW,NW=class r{constructor(s){if(this.sessionCache=new Map,this.config=s,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(s,f){let h=this.getUrlString(s),w=this.sessionCache.get(h);if(w){let F=w.poll();if(F&&!this.config.disableConcurrency)return F}let $=Iv.default.connect(h);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+s.destination.toString())});$.unref();let E=Wr(()=>{$.destroy(),this.deleteSession(h,$)},"destroySessionCb");if($.on("goaway",E),$.on("error",E),$.on("frameError",E),$.on("close",()=>this.deleteSession(h,$)),f.requestTimeout)$.setTimeout(f.requestTimeout,E);let I=this.sessionCache.get(h)||new Fv;return I.offerLast($),this.sessionCache.set(h,I),$}deleteSession(s,f){let h=this.sessionCache.get(s);if(!h)return;if(!h.contains(f))return;h.remove(f),this.sessionCache.set(s,h)}release(s,f){var h;let w=this.getUrlString(s);(h=this.sessionCache.get(w))==null||h.offerLast(f)}destroy(){for(let[s,f]of this.sessionCache){for(let h of f){if(!h.destroyed)h.destroy();f.remove(h)}this.sessionCache.delete(s)}}setMaxConcurrentStreams(s){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=s}setDisableConcurrentStreams(s){this.config.disableConcurrency=s}getUrlString(s){return s.destination.toString()}};Wr(NW,"NodeHttp2ConnectionManager");var Uv=NW,qW=class r{constructor(s){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Uv({}),this.configProvider=new Promise((f,h)=>{if(typeof s==="function")s().then((w)=>{f(w||{})}).catch(h);else f(s||{})})}static create(s){if(typeof(s==null?void 0:s.handle)==="function")return s;return new r(s)}destroy(){this.connectionManager.destroy()}async handle(s,{abortSignal:f}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}let{requestTimeout:h,disableConcurrentStreams:w}=this.config;return new Promise(($,E)=>{var I;let F=!1,U=void 0,A=Wr(async(Jr)=>{await U,$(Jr)},"resolve"),L=Wr(async(Jr)=>{await U,E(Jr)},"reject");if(f==null?void 0:f.aborted){F=!0;let Jr=new Error("Request aborted");Jr.name="AbortError",L(Jr);return}let{hostname:S,method:R,port:P,protocol:N,query:M}=s,l="";if(s.username!=null||s.password!=null){let Jr=s.username??"",rs=s.password??"";l=`${Jr}:${rs}@`}let k=`${N}//${l}${S}${P?`:${P}`:""}`,v={destination:new URL(k)},x=this.connectionManager.lease(v,{requestTimeout:(I=this.config)==null?void 0:I.sessionTimeout,disableConcurrentStreams:w||!1}),hr=Wr((Jr)=>{if(w)this.destroySession(x);F=!0,L(Jr)},"rejectWithDestroy"),Mr=VW.buildQueryString(M||{}),ur=s.path;if(Mr)ur+=`?${Mr}`;if(s.fragment)ur+=`#${s.fragment}`;let Jf=x.request({...s.headers,[QW.constants.HTTP2_HEADER_PATH]:ur,[QW.constants.HTTP2_HEADER_METHOD]:R});if(x.ref(),Jf.on("response",(Jr)=>{let rs=new MW.HttpResponse({statusCode:Jr[":status"]||-1,headers:HW(Jr),body:Jf});if(F=!0,A({response:rs}),w)x.close(),this.connectionManager.deleteSession(k,x)}),h)Jf.setTimeout(h,()=>{Jf.close();let Jr=new Error(`Stream timed out because of no activity for ${h} ms`);Jr.name="TimeoutError",hr(Jr)});if(f){let Jr=Wr(()=>{Jf.close();let rs=new Error("Request aborted");rs.name="AbortError",hr(rs)},"onAbort");if(typeof f.addEventListener==="function"){let rs=f;rs.addEventListener("abort",Jr,{once:!0}),Jf.once("close",()=>rs.removeEventListener("abort",Jr))}else f.onabort=Jr}Jf.on("frameError",(Jr,rs,Ck)=>{hr(new Error(`Frame type id ${Jr} in stream id ${Ck} has failed with code ${rs}.`))}),Jf.on("error",hr),Jf.on("aborted",()=>{hr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Jf.rstCode}.`))}),Jf.on("close",()=>{if(x.unref(),w)x.destroy();if(!F)hr(new Error("Unexpected error: http2 request did not get a response"))}),U=EU(Jf,s,h)})}updateHttpClientConfig(s,f){this.config=void 0,this.configProvider=this.configProvider.then((h)=>{return{...h,[s]:f}})}httpHandlerConfigs(){return this.config??{}}destroySession(s){if(!s.destroyed)s.destroy()}};Wr(qW,"NodeHttp2Handler");var Tv=qW,mW=class r extends lW.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(s,f,h){this.bufferedBytes.push(s),h()}};Wr(mW,"Collector");var Gv=mW,Av=Wr((r)=>{if(Lv(r))return jW(r);return new Promise((s,f)=>{let h=new Gv;r.pipe(h),r.on("error",(w)=>{h.end(),f(w)}),h.on("error",f),h.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.bufferedBytes));s(w)})})},"streamCollector"),Lv=Wr((r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream,"isReadableStreamInstance");async function jW(r){let s=[],f=r.getReader(),h=!1,w=0;while(!h){let{done:I,value:F}=await f.read();if(F)s.push(F),w+=F.length;h=I}let $=new Uint8Array(w),E=0;for(let I of s)$.set(I,E),E+=I.length;return $}Wr(jW,"collectReadableStream")});var nW=i((krr,eW)=>{var{defineProperty:vE,getOwnPropertyDescriptor:zv,getOwnPropertyNames:Wv}=Object,Cv=Object.prototype.hasOwnProperty,Y0=(r,s)=>vE(r,"name",{value:s,configurable:!0}),Rv=(r,s)=>{for(var f in s)vE(r,f,{get:s[f],enumerable:!0})},Sv=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Wv(s))if(!Cv.call(r,w)&&w!==f)vE(r,w,{get:()=>s[w],enumerable:!(h=zv(s,w))||h.enumerable})}return r},Yv=(r)=>Sv(vE({},"__esModule",{value:!0}),r),dW={};Rv(dW,{FetchHttpHandler:()=>Kv,keepAliveSupport:()=>jE,streamCollector:()=>Zv});eW.exports=Yv(dW);var OW=R0(),Xv=hU();function cW(r=0){return new Promise((s,f)=>{if(r)setTimeout(()=>{let h=new Error(`Request did not complete within ${r} ms`);h.name="TimeoutError",f(h)},r)})}Y0(cW,"requestTimeout");var jE={supported:void 0},bW=class r{static create(s){if(typeof(s==null?void 0:s.handle)==="function")return s;return new r(s)}constructor(s){if(typeof s==="function")this.configProvider=s().then((f)=>f||{});else this.config=s??{},this.configProvider=Promise.resolve(this.config);if(jE.supported===void 0)jE.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(s,{abortSignal:f}={}){var h;if(!this.config)this.config=await this.configProvider;let w=this.config.requestTimeout,$=this.config.keepAlive===!0,E=this.config.credentials;if(f==null?void 0:f.aborted){let k=new Error("Request aborted");return k.name="AbortError",Promise.reject(k)}let I=s.path,F=Xv.buildQueryString(s.query||{});if(F)I+=`?${F}`;if(s.fragment)I+=`#${s.fragment}`;let U="";if(s.username!=null||s.password!=null){let k=s.username??"",v=s.password??"";U=`${k}:${v}@`}let{port:A,method:L}=s,S=`${s.protocol}//${U}${s.hostname}${A?`:${A}`:""}${I}`,R=L==="GET"||L==="HEAD"?void 0:s.body,P={body:R,headers:new Headers(s.headers),method:L,credentials:E};if((h=this.config)==null?void 0:h.cache)P.cache=this.config.cache;if(R)P.duplex="half";if(typeof AbortController!=="undefined")P.signal=f;if(jE.supported)P.keepalive=$;if(typeof this.config.requestInit==="function")Object.assign(P,this.config.requestInit(s));let N=Y0(()=>{},"removeSignalEventListener"),M=new Request(S,P),l=[fetch(M).then((k)=>{let v=k.headers,x={};for(let Mr of v.entries())x[Mr[0]]=Mr[1];if(k.body==null)return k.blob().then((Mr)=>({response:new OW.HttpResponse({headers:x,reason:k.statusText,statusCode:k.status,body:Mr})}));return{response:new OW.HttpResponse({headers:x,reason:k.statusText,statusCode:k.status,body:k.body})}}),cW(w)];if(f)l.push(new Promise((k,v)=>{let x=Y0(()=>{let hr=new Error("Request aborted");hr.name="AbortError",v(hr)},"onAbort");if(typeof f.addEventListener==="function"){let hr=f;hr.addEventListener("abort",x,{once:!0}),N=Y0(()=>hr.removeEventListener("abort",x),"removeSignalEventListener")}else f.onabort=x}));return Promise.race(l).finally(N)}updateHttpClientConfig(s,f){this.config=void 0,this.configProvider=this.configProvider.then((h)=>{return h[s]=f,h})}httpHandlerConfigs(){return this.config??{}}};Y0(bW,"FetchHttpHandler");var Kv=bW,Pv=NE(),Zv=Y0((r)=>{if(typeof Blob==="function"&&r instanceof Blob)return _W(r);return gW(r)},"streamCollector");async function _W(r){let s=await xW(r),f=Pv.fromBase64(s);return new Uint8Array(f)}Y0(_W,"collectBlob");async function gW(r){let s=[],f=r.getReader(),h=!1,w=0;while(!h){let{done:I,value:F}=await f.read();if(F)s.push(F),w+=F.length;h=I}let $=new Uint8Array(w),E=0;for(let I of s)$.set(I,E),E+=I.length;return $}Y0(gW,"collectStream");function xW(r){return new Promise((s,f)=>{let h=new FileReader;h.onloadend=()=>{if(h.readyState!==2)return f(new Error("Reader aborted too early"));let w=h.result??"",$=w.indexOf(","),E=$>-1?$+1:w.length;s(w.substring(E))},h.onabort=()=>f(new Error("Read aborted")),h.onerror=()=>f(h.error),h.readAsDataURL(r)})}Y0(xW,"readToBase64")});var FU=i((yrr,rC)=>{var{defineProperty:iE,getOwnPropertyDescriptor:Qv,getOwnPropertyNames:Jv}=Object,Bv=Object.prototype.hasOwnProperty,oW=(r,s)=>iE(r,"name",{value:s,configurable:!0}),Mv=(r,s)=>{for(var f in s)iE(r,f,{get:s[f],enumerable:!0})},Vv=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Jv(s))if(!Bv.call(r,w)&&w!==f)iE(r,w,{get:()=>s[w],enumerable:!(h=Qv(s,w))||h.enumerable})}return r},Hv=(r)=>Vv(iE({},"__esModule",{value:!0}),r),aW={};Mv(aW,{fromHex:()=>uW,toHex:()=>tW});rC.exports=Hv(aW);var pW={},IU={};for(let r=0;r<256;r++){let s=r.toString(16).toLowerCase();if(s.length===1)s=`0${s}`;pW[r]=s,IU[s]=r}function uW(r){if(r.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let s=new Uint8Array(r.length/2);for(let f=0;f<r.length;f+=2){let h=r.slice(f,f+2).toLowerCase();if(h in IU)s[f/2]=IU[h];else throw new Error(`Cannot decode unrecognized sequence ${h} as hexadecimal`)}return s}oW(uW,"fromHex");function tW(r){let s="";for(let f=0;f<r.byteLength;f++)s+=pW[r[f]];return s}oW(tW,"toHex")});var P1=i((fC)=>{Object.defineProperty(fC,"__esModule",{value:!0});fC.isReadableStream=void 0;var lv=(r)=>{var s;return typeof ReadableStream==="function"&&(((s=r===null||r===void 0?void 0:r.constructor)===null||s===void 0?void 0:s.name)===ReadableStream.name||r instanceof ReadableStream)};fC.isReadableStream=lv});var FC=i((EC)=>{Object.defineProperty(EC,"__esModule",{value:!0});EC.sdkStreamMixin=void 0;var Dv=nW(),kv=NE(),yv=FU(),Nv=g0(),hC=P1(),wC="The stream has already been transformed.",qv=(r)=>{var s,f;if(!$C(r)&&!hC.isReadableStream(r)){let E=((f=(s=r===null||r===void 0?void 0:r.__proto__)===null||s===void 0?void 0:s.constructor)===null||f===void 0?void 0:f.name)||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let h=!1,w=async()=>{if(h)throw new Error(wC);return h=!0,await Dv.streamCollector(r)},$=(E)=>{if(typeof E.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return E.stream()};return Object.assign(r,{transformToByteArray:w,transformToString:async(E)=>{let I=await w();if(E==="base64")return kv.toBase64(I);else if(E==="hex")return yv.toHex(I);else if(E===void 0||E==="utf8"||E==="utf-8")return Nv.toUtf8(I);else if(typeof TextDecoder==="function")return new TextDecoder(E).decode(I);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(h)throw new Error(wC);if(h=!0,$C(r))return $(r);else if(hC.isReadableStream(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})};EC.sdkStreamMixin=qv;var $C=(r)=>typeof Blob==="function"&&r instanceof Blob});var AC=i((TC)=>{Object.defineProperty(TC,"__esModule",{value:!0});TC.sdkStreamMixin=void 0;var mv=iW(),jv=X1(),UU=import.meta.require("stream"),vv=import.meta.require("util"),iv=FC(),UC="The stream has already been transformed.",Ov=(r)=>{var s,f;if(!(r instanceof UU.Readable))try{return iv.sdkStreamMixin(r)}catch($){let E=((f=(s=r===null||r===void 0?void 0:r.__proto__)===null||s===void 0?void 0:s.constructor)===null||f===void 0?void 0:f.name)||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${E}`)}let h=!1,w=async()=>{if(h)throw new Error(UC);return h=!0,await mv.streamCollector(r)};return Object.assign(r,{transformToByteArray:w,transformToString:async($)=>{let E=await w();if($===void 0||Buffer.isEncoding($))return jv.fromArrayBuffer(E.buffer,E.byteOffset,E.byteLength).toString($);else return new vv.TextDecoder($).decode(E)},transformToWebStream:()=>{if(h)throw new Error(UC);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof UU.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return h=!0,UU.Readable.toWeb(r)}})};TC.sdkStreamMixin=Ov});var WC=i((LC)=>{Object.defineProperty(LC,"__esModule",{value:!0});LC.splitStream=void 0;async function dv(r){if(typeof r.stream==="function")r=r.stream();return r.tee()}LC.splitStream=dv});var YC=i((RC)=>{Object.defineProperty(RC,"__esModule",{value:!0});RC.splitStream=void 0;var CC=import.meta.require("stream"),cv=WC(),bv=P1();async function _v(r){if(bv.isReadableStream(r))return cv.splitStream(r);let s=new CC.PassThrough,f=new CC.PassThrough;return r.pipe(s),r.pipe(f),[s,f]}RC.splitStream=_v});var PC=i((XC)=>{Object.defineProperty(XC,"__esModule",{value:!0});XC.headStream=void 0;async function gv(r,s){var f;let h=0,w=[],$=r.getReader(),E=!1;while(!E){let{done:U,value:A}=await $.read();if(A)w.push(A),h+=(f=A===null||A===void 0?void 0:A.byteLength)!==null&&f!==void 0?f:0;if(h>=s)break;E=U}$.releaseLock();let I=new Uint8Array(Math.min(s,h)),F=0;for(let U of w){if(U.byteLength>I.byteLength-F){I.set(U.subarray(0,I.byteLength-F),F);break}else I.set(U,F);F+=U.length}return I}XC.headStream=gv});var BC=i((QC)=>{Object.defineProperty(QC,"__esModule",{value:!0});QC.headStream=void 0;var xv=import.meta.require("stream"),ev=PC(),nv=P1(),ov=(r,s)=>{if(nv.isReadableStream(r))return ev.headStream(r,s);return new Promise((f,h)=>{let w=new ZC;w.limit=s,r.pipe(w),r.on("error",($)=>{w.end(),h($)}),w.on("error",h),w.on("finish",function(){let $=new Uint8Array(Buffer.concat(this.buffers));f($)})})};QC.headStream=ov;class ZC extends xv.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(r,s,f){var h;if(this.buffers.push(r),this.bytesBuffered+=(h=r.byteLength)!==null&&h!==void 0?h:0,this.bytesBuffered>=this.limit){let w=this.bytesBuffered-this.limit,$=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=$.subarray(0,$.byteLength-w),this.emit("finish")}f()}}});var kC=i((drr,Mh)=>{var{defineProperty:OE,getOwnPropertyDescriptor:av,getOwnPropertyNames:pv}=Object,uv=Object.prototype.hasOwnProperty,AU=(r,s)=>OE(r,"name",{value:s,configurable:!0}),tv=(r,s)=>{for(var f in s)OE(r,f,{get:s[f],enumerable:!0})},TU=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of pv(s))if(!uv.call(r,w)&&w!==f)OE(r,w,{get:()=>s[w],enumerable:!(h=av(s,w))||h.enumerable})}return r},Z1=(r,s,f)=>(TU(r,s,"default"),f&&TU(f,s,"default")),ri=(r)=>TU(OE({},"__esModule",{value:!0}),r),Bh={};tv(Bh,{Uint8ArrayBlobAdapter:()=>GU});Mh.exports=ri(Bh);var MC=NE(),VC=g0();function HC(r,s="utf-8"){if(s==="base64")return MC.toBase64(r);return VC.toUtf8(r)}AU(HC,"transformToString");function lC(r,s){if(s==="base64")return GU.mutate(MC.fromBase64(r));return GU.mutate(VC.fromUtf8(r))}AU(lC,"transformFromString");var DC=class r extends Uint8Array{static fromString(s,f="utf-8"){switch(typeof s){case"string":return lC(s,f);default:throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}}static mutate(s){return Object.setPrototypeOf(s,r.prototype),s}transformToString(s="utf-8"){return HC(this,s)}};AU(DC,"Uint8ArrayBlobAdapter");var GU=DC;Z1(Bh,zW(),Mh.exports);Z1(Bh,AC(),Mh.exports);Z1(Bh,YC(),Mh.exports);Z1(Bh,BC(),Mh.exports);Z1(Bh,P1(),Mh.exports)});var Aw=i((crr,sR)=>{var{defineProperty:_E,getOwnPropertyDescriptor:fi,getOwnPropertyNames:si}=Object,hi=Object.prototype.hasOwnProperty,j=(r,s)=>_E(r,"name",{value:s,configurable:!0}),wi=(r,s)=>{for(var f in s)_E(r,f,{get:s[f],enumerable:!0})},$i=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of si(s))if(!hi.call(r,w)&&w!==f)_E(r,w,{get:()=>s[w],enumerable:!(h=fi(s,w))||h.enumerable})}return r},Ei=(r)=>$i(_E({},"__esModule",{value:!0}),r),NC={};wi(NC,{Client:()=>Ii,Command:()=>vC,LazyJsonString:()=>wO,NoOpLogger:()=>$O,SENSITIVE_STRING:()=>Ti,ServiceException:()=>gi,StringWrapper:()=>V1,_json:()=>YU,collectBody:()=>Fi,convertMap:()=>EO,createAggregatedClient:()=>Gi,dateToUtcString:()=>gC,decorateServiceException:()=>eC,emitWarningIfUnsupportedVersion:()=>oi,expectBoolean:()=>Li,expectByte:()=>SU,expectFloat32:()=>dE,expectInt:()=>Wi,expectInt32:()=>CU,expectLong:()=>B1,expectNonNull:()=>Ri,expectNumber:()=>J1,expectObject:()=>OC,expectShort:()=>RU,expectString:()=>Si,expectUnion:()=>Yi,extendedEncodeURIComponent:()=>bE,getArrayIfSingleItem:()=>sO,getDefaultClientConfiguration:()=>rO,getDefaultExtensionConfiguration:()=>oC,getValueFromTextNode:()=>aC,handleFloat:()=>Pi,isSerializableHeaderValue:()=>hO,limitedParseDouble:()=>PU,limitedParseFloat:()=>Zi,limitedParseFloat32:()=>Qi,loadConfigsForDefaultMode:()=>ni,logger:()=>M1,map:()=>QU,parseBoolean:()=>Ai,parseEpochTimestamp:()=>mi,parseRfc3339DateTime:()=>Hi,parseRfc3339DateTimeWithOffset:()=>Di,parseRfc7231DateTime:()=>qi,quoteHeader:()=>rR,resolveDefaultRuntimeConfig:()=>fO,resolvedPath:()=>GO,serializeDateTime:()=>LO,serializeFloat:()=>AO,splitEvery:()=>fR,splitHeader:()=>zO,strictParseByte:()=>_C,strictParseDouble:()=>KU,strictParseFloat:()=>Xi,strictParseFloat32:()=>dC,strictParseInt:()=>Ji,strictParseInt32:()=>Bi,strictParseLong:()=>bC,strictParseShort:()=>Uw,take:()=>IO,throwDefaultError:()=>nC,withBaseException:()=>xi});sR.exports=Ei(NC);var qC=nz(),mC=class r{constructor(s){this.config=s,this.middlewareStack=qC.constructStack()}send(s,f,h){let w=typeof f!=="function"?f:void 0,$=typeof f==="function"?f:h,E=w===void 0&&this.config.cacheMiddleware===!0,I;if(E){if(!this.handlers)this.handlers=new WeakMap;let F=this.handlers;if(F.has(s.constructor))I=F.get(s.constructor);else I=s.resolveMiddleware(this.middlewareStack,this.config,w),F.set(s.constructor,I)}else delete this.handlers,I=s.resolveMiddleware(this.middlewareStack,this.config,w);if($)I(s).then((F)=>$(null,F.output),(F)=>$(F)).catch(()=>{});else return I(s).then((F)=>F.output)}destroy(){var s,f,h;(h=(f=(s=this.config)==null?void 0:s.requestHandler)==null?void 0:f.destroy)==null||h.call(f),delete this.handlers}};j(mC,"Client");var Ii=mC,LU=kC(),Fi=j(async(r=new Uint8Array,s)=>{if(r instanceof Uint8Array)return LU.Uint8ArrayBlobAdapter.mutate(r);if(!r)return LU.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let f=s.streamCollector(r);return LU.Uint8ArrayBlobAdapter.mutate(await f)},"collectBody"),WU=Uf(),jC=class r{constructor(){this.middlewareStack=qC.constructStack()}static classBuilder(){return new Ui}resolveMiddlewareWithContext(s,f,h,{middlewareFn:w,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,smithyContext:U,additionalContext:A,CommandCtor:L}){for(let M of w.bind(this)(L,s,f,h))this.middlewareStack.use(M);let S=s.concat(this.middlewareStack),{logger:R}=f,P={logger:R,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,[WU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...A},{requestHandler:N}=f;return S.resolve((M)=>N.handle(M.request,h||{}),P)}};j(jC,"Command");var vC=jC,iC=class r{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(s)=>s,this._outputFilterSensitiveLog=(s)=>s,this._serializer=null,this._deserializer=null}init(s){this._init=s}ep(s){return this._ep=s,this}m(s){return this._middlewareFn=s,this}s(s,f,h={}){return this._smithyContext={service:s,operation:f,...h},this}c(s={}){return this._additionalContext=s,this}n(s,f){return this._clientName=s,this._commandName=f,this}f(s=(h)=>h,f=(h)=>h){return this._inputFilterSensitiveLog=s,this._outputFilterSensitiveLog=f,this}ser(s){return this._serializer=s,this}de(s){return this._deserializer=s,this}build(){var s;let f=this,h;return h=(s=class extends vC{constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(w,$,E){return this.resolveMiddlewareWithContext(w,$,E,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}},j(s,"CommandRef"),s)}};j(iC,"ClassBuilder");var Ui=iC,Ti="***SensitiveInformation***",Gi=j((r,s)=>{for(let f of Object.keys(r)){let h=r[f],w=j(async function(E,I,F){let U=new h(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},"methodImpl"),$=(f[0].toLowerCase()+f.slice(1)).replace(/Command$/,"");s.prototype[$]=w}},"createAggregatedClient"),Ai=j((r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},"parseBoolean"),Li=j((r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)M1.warn(cE(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){let s=r.toLowerCase();if(s==="false"||s==="true")M1.warn(cE(`Expected boolean, got ${typeof r}: ${r}`));if(s==="false")return!1;if(s==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},"expectBoolean"),J1=j((r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){let s=parseFloat(r);if(!Number.isNaN(s)){if(String(s)!==String(r))M1.warn(cE(`Expected number but observed string: ${r}`));return s}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},"expectNumber"),zi=Math.ceil(340282346638528860000000000000000000000),dE=j((r)=>{let s=J1(r);if(s!==void 0&&!Number.isNaN(s)&&s!==1/0&&s!==-1/0){if(Math.abs(s)>zi)throw new TypeError(`Expected 32-bit float, got ${r}`)}return s},"expectFloat32"),B1=j((r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},"expectLong"),Wi=B1,CU=j((r)=>XU(r,32),"expectInt32"),RU=j((r)=>XU(r,16),"expectShort"),SU=j((r)=>XU(r,8),"expectByte"),XU=j((r,s)=>{let f=B1(r);if(f!==void 0&&Ci(f,s)!==f)throw new TypeError(`Expected ${s}-bit integer, got ${r}`);return f},"expectSizedInt"),Ci=j((r,s)=>{switch(s){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},"castInt"),Ri=j((r,s)=>{if(r===null||r===void 0){if(s)throw new TypeError(`Expected a non-null value for ${s}`);throw new TypeError("Expected a non-null value")}return r},"expectNonNull"),OC=j((r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;let s=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${s}: ${r}`)},"expectObject"),Si=j((r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return M1.warn(cE(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},"expectString"),Yi=j((r)=>{if(r===null||r===void 0)return;let s=OC(r),f=Object.entries(s).filter(([,h])=>h!=null).map(([h])=>h);if(f.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(f.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${f} were not null.`);return s},"expectUnion"),KU=j((r)=>{if(typeof r=="string")return J1(Gw(r));return J1(r)},"strictParseDouble"),Xi=KU,dC=j((r)=>{if(typeof r=="string")return dE(Gw(r));return dE(r)},"strictParseFloat32"),Ki=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Gw=j((r)=>{let s=r.match(Ki);if(s===null||s[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},"parseNumber"),PU=j((r)=>{if(typeof r=="string")return cC(r);return J1(r)},"limitedParseDouble"),Pi=PU,Zi=PU,Qi=j((r)=>{if(typeof r=="string")return cC(r);return dE(r)},"limitedParseFloat32"),cC=j((r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},"parseFloatString"),bC=j((r)=>{if(typeof r==="string")return B1(Gw(r));return B1(r)},"strictParseLong"),Ji=bC,Bi=j((r)=>{if(typeof r==="string")return CU(Gw(r));return CU(r)},"strictParseInt32"),Uw=j((r)=>{if(typeof r==="string")return RU(Gw(r));return RU(r)},"strictParseShort"),_C=j((r)=>{if(typeof r==="string")return SU(Gw(r));return SU(r)},"strictParseByte"),cE=j((r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((s)=>!s.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),M1={warn:console.warn},Mi=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ZU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gC(r){let s=r.getUTCFullYear(),f=r.getUTCMonth(),h=r.getUTCDay(),w=r.getUTCDate(),$=r.getUTCHours(),E=r.getUTCMinutes(),I=r.getUTCSeconds(),F=w<10?`0${w}`:`${w}`,U=$<10?`0${$}`:`${$}`,A=E<10?`0${E}`:`${E}`,L=I<10?`0${I}`:`${I}`;return`${Mi[h]}, ${F} ${ZU[f]} ${s} ${U}:${A}:${L} GMT`}j(gC,"dateToUtcString");var Vi=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Hi=j((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let s=Vi.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");let[f,h,w,$,E,I,F,U]=s,A=Uw(Tw(h)),L=ls(w,"month",1,12),S=ls($,"day",1,31);return Q1(A,L,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},"parseRfc3339DateTime"),li=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Di=j((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let s=li.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");let[f,h,w,$,E,I,F,U,A]=s,L=Uw(Tw(h)),S=ls(w,"month",1,12),R=ls($,"day",1,31),P=Q1(L,S,R,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(A.toUpperCase()!="Z")P.setTime(P.getTime()-_i(A));return P},"parseRfc3339DateTimeWithOffset"),ki=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$/),yi=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$/),Ni=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})$/),qi=j((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let s=ki.exec(r);if(s){let[f,h,w,$,E,I,F,U]=s;return Q1(Uw(Tw($)),zU(w),ls(h,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})}if(s=yi.exec(r),s){let[f,h,w,$,E,I,F,U]=s;return ii(Q1(ji($),zU(w),ls(h,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U}))}if(s=Ni.exec(r),s){let[f,h,w,$,E,I,F,U]=s;return Q1(Uw(Tw(U)),zU(h),ls(w.trimLeft(),"day",1,31),{hours:$,minutes:E,seconds:I,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),mi=j((r)=>{if(r===null||r===void 0)return;let s;if(typeof r==="number")s=r;else if(typeof r==="string")s=KU(r);else if(typeof r==="object"&&r.tag===1)s=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(s)||s===1/0||s===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(s*1000))},"parseEpochTimestamp"),Q1=j((r,s,f,h)=>{let w=s-1;return di(r,w,f),new Date(Date.UTC(r,w,f,ls(h.hours,"hour",0,23),ls(h.minutes,"minute",0,59),ls(h.seconds,"seconds",0,60),bi(h.fractionalMilliseconds)))},"buildDate"),ji=j((r)=>{let s=new Date().getUTCFullYear(),f=Math.floor(s/100)*100+Uw(Tw(r));if(f<s)return f+100;return f},"parseTwoDigitYear"),vi=1576800000000,ii=j((r)=>{if(r.getTime()-new Date().getTime()>vi)return new Date(Date.UTC(r.getUTCFullYear()-100,r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()));return r},"adjustRfc850Year"),zU=j((r)=>{let s=ZU.indexOf(r);if(s<0)throw new TypeError(`Invalid month: ${r}`);return s+1},"parseMonthByShortName"),Oi=[31,28,31,30,31,30,31,31,30,31,30,31],di=j((r,s,f)=>{let h=Oi[s];if(s===1&&ci(r))h=29;if(f>h)throw new TypeError(`Invalid day for ${ZU[s]} in ${r}: ${f}`)},"validateDayOfMonth"),ci=j((r)=>{return r%4===0&&(r%100!==0||r%400===0)},"isLeapYear"),ls=j((r,s,f,h)=>{let w=_C(Tw(r));if(w<f||w>h)throw new TypeError(`${s} must be between ${f} and ${h}, inclusive`);return w},"parseDateValue"),bi=j((r)=>{if(r===null||r===void 0)return 0;return dC("0."+r)*1000},"parseMilliseconds"),_i=j((r)=>{let s=r[0],f=1;if(s=="+")f=1;else if(s=="-")f=-1;else throw new TypeError(`Offset direction, ${s}, must be "+" or "-"`);let h=Number(r.substring(1,3)),w=Number(r.substring(4,6));return f*(h*60+w)*60*1000},"parseOffsetToMilliseconds"),Tw=j((r)=>{let s=0;while(s<r.length-1&&r.charAt(s)==="0")s++;if(s===0)return r;return r.slice(s)},"stripLeadingZeroes"),xC=class r extends Error{constructor(s){super(s.message);Object.setPrototypeOf(this,r.prototype),this.name=s.name,this.$fault=s.$fault,this.$metadata=s.$metadata}};j(xC,"ServiceException");var gi=xC,eC=j((r,s={})=>{Object.entries(s).filter(([,h])=>h!==void 0).forEach(([h,w])=>{if(r[h]==null||r[h]==="")r[h]=w});let f=r.message||r.Message||"UnknownError";return r.message=f,delete r.Message,r},"decorateServiceException"),nC=j(({output:r,parsedBody:s,exceptionCtor:f,errorCode:h})=>{let w=ei(r),$=w.httpStatusCode?w.httpStatusCode+"":void 0,E=new f({name:(s==null?void 0:s.code)||(s==null?void 0:s.Code)||h||$||"UnknownError",$fault:"client",$metadata:w});throw eC(E,s)},"throwDefaultError"),xi=j((r)=>{return({output:s,parsedBody:f,errorCode:h})=>{nC({output:s,parsedBody:f,exceptionCtor:r,errorCode:h})}},"withBaseException"),ei=j((r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),"deserializeMetadata"),ni=j((r)=>{switch(r){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:30000};default:return{}}},"loadConfigsForDefaultMode"),yC=!1,oi=j((r)=>{if(r&&!yC&&parseInt(r.substring(1,r.indexOf(".")))<16)yC=!0},"emitWarningIfUnsupportedVersion");function bE(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}j(bE,"extendedEncodeURIComponent");var ai=j((r)=>{let s=[];for(let f in WU.AlgorithmId){let h=WU.AlgorithmId[f];if(r[h]===void 0)continue;s.push({algorithmId:()=>h,checksumConstructor:()=>r[h]})}return{_checksumAlgorithms:s,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),pi=j((r)=>{let s={};return r.checksumAlgorithms().forEach((f)=>{s[f.algorithmId()]=f.checksumConstructor()}),s},"resolveChecksumRuntimeConfig"),ui=j((r)=>{let s=r.retryStrategy;return{setRetryStrategy(f){s=f},retryStrategy(){return s}}},"getRetryConfiguration"),ti=j((r)=>{let s={};return s.retryStrategy=r.retryStrategy(),s},"resolveRetryRuntimeConfig"),oC=j((r)=>{return{...ai(r),...ui(r)}},"getDefaultExtensionConfiguration"),rO=oC,fO=j((r)=>{return{...pi(r),...ti(r)}},"resolveDefaultRuntimeConfig"),sO=j((r)=>Array.isArray(r)?r:[r],"getArrayIfSingleItem"),aC=j((r)=>{for(let f in r)if(r.hasOwnProperty(f)&&r[f]["#text"]!==void 0)r[f]=r[f]["#text"];else if(typeof r[f]==="object"&&r[f]!==null)r[f]=aC(r[f]);return r},"getValueFromTextNode"),hO=j((r)=>{return r!=null},"isSerializableHeaderValue"),V1=j(function(){let r=Object.getPrototypeOf(this).constructor,f=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(f,r.prototype),f},"StringWrapper");V1.prototype=Object.create(String.prototype,{constructor:{value:V1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(V1,String);var pC=class r extends V1{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(s){if(s instanceof r)return s;else if(s instanceof String||typeof s==="string")return new r(s);return new r(JSON.stringify(s))}};j(pC,"LazyJsonString");var wO=pC,uC=class r{trace(){}debug(){}info(){}warn(){}error(){}};j(uC,"NoOpLogger");var $O=uC;function QU(r,s,f){let h,w,$;if(typeof s==="undefined"&&typeof f==="undefined")h={},$=r;else if(h=r,typeof s==="function")return w=s,$=f,FO(h,w,$);else $=s;for(let E of Object.keys($)){if(!Array.isArray($[E])){h[E]=$[E];continue}tC(h,null,$,E)}return h}j(QU,"map");var EO=j((r)=>{let s={};for(let[f,h]of Object.entries(r||{}))s[f]=[,h];return s},"convertMap"),IO=j((r,s)=>{let f={};for(let h in s)tC(f,r,s,h);return f},"take"),FO=j((r,s,f)=>{return QU(r,Object.entries(f).reduce((h,[w,$])=>{if(Array.isArray($))h[w]=$;else if(typeof $==="function")h[w]=[s,$()];else h[w]=[s,$];return h},{}))},"mapWithFilter"),tC=j((r,s,f,h)=>{if(s!==null){let E=f[h];if(typeof E==="function")E=[,E];let[I=UO,F=TO,U=h]=E;if(typeof I==="function"&&I(s[U])||typeof I!=="function"&&!!I)r[h]=F(s[U]);return}let[w,$]=f[h];if(typeof $==="function"){let E,I=w===void 0&&(E=$())!=null,F=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(I)r[h]=E;else if(F)r[h]=$()}else{let E=w===void 0&&$!=null,I=typeof w==="function"&&!!w($)||typeof w!=="function"&&!!w;if(E||I)r[h]=$}},"applyInstruction"),UO=j((r)=>r!=null,"nonNullish"),TO=j((r)=>r,"pass");function rR(r){if(r.includes(",")||r.includes('"'))r=`"${r.replace(/"/g,'\\"')}"`;return r}j(rR,"quoteHeader");var GO=j((r,s,f,h,w,$)=>{if(s!=null&&s[f]!==void 0){let E=h();if(E.length<=0)throw new Error("Empty value provided for input HTTP label: "+f+".");r=r.replace(w,$?E.split("/").map((I)=>bE(I)).join("/"):bE(E))}else throw new Error("No value provided for input HTTP label: "+f+".");return r},"resolvedPath"),AO=j((r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}},"serializeFloat"),LO=j((r)=>r.toISOString().replace(".000Z","Z"),"serializeDateTime"),YU=j((r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((s)=>s!=null).map(YU);if(typeof r==="object"){let s={};for(let f of Object.keys(r)){if(r[f]==null)continue;s[f]=YU(r[f])}return s}return r},"_json");function fR(r,s,f){if(f<=0||!Number.isInteger(f))throw new Error("Invalid number of delimiters ("+f+") for splitEvery.");let h=r.split(s);if(f===1)return h;let w=[],$="";for(let E=0;E<h.length;E++){if($==="")$=h[E];else $+=s+h[E];if((E+1)%f===0)w.push($),$=""}if($!=="")w.push($);return w}j(fR,"splitEvery");var zO=j((r)=>{let s=r.length,f=[],h=!1,w=void 0,$=0;for(let E=0;E<s;++E){let I=r[E];switch(I){case'"':if(w!=="\\")h=!h;break;case",":if(!h)f.push(r.slice($,E)),$=E+1;break;default:}w=I}return f.push(r.slice($)),f.map((E)=>{E=E.trim();let I=E.length;if(I<2)return E;if(E[0]==='"'&&E[I-1]==='"')E=E.slice(1,I-1);return E.replace(/\\"/g,'"')})},"splitHeader")});var $R=i((hR)=>{Object.defineProperty(hR,"__esModule",{value:!0});hR.isStreamingPayload=void 0;var WO=import.meta.require("stream"),CO=(r)=>(r===null||r===void 0?void 0:r.body)instanceof WO.Readable||typeof ReadableStream!=="undefined"&&(r===null||r===void 0?void 0:r.body)instanceof ReadableStream;hR.isStreamingPayload=CO});var ZR=i((grr,PR)=>{var{defineProperty:gE,getOwnPropertyDescriptor:RO,getOwnPropertyNames:SO}=Object,YO=Object.prototype.hasOwnProperty,kr=(r,s)=>gE(r,"name",{value:s,configurable:!0}),XO=(r,s)=>{for(var f in s)gE(r,f,{get:s[f],enumerable:!0})},KO=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of SO(s))if(!YO.call(r,w)&&w!==f)gE(r,w,{get:()=>s[w],enumerable:!(h=RO(s,w))||h.enumerable})}return r},PO=(r)=>KO(gE({},"__esModule",{value:!0}),r),IR={};XO(IR,{AdaptiveRetryStrategy:()=>JO,CONFIG_MAX_ATTEMPTS:()=>BU,CONFIG_RETRY_MODE:()=>CR,ENV_MAX_ATTEMPTS:()=>JU,ENV_RETRY_MODE:()=>WR,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>BO,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>VO,StandardRetryStrategy:()=>LR,defaultDelayDecider:()=>UR,defaultRetryDecider:()=>TR,getOmitRetryHeadersPlugin:()=>HO,getRetryAfterHint:()=>KR,getRetryPlugin:()=>qO,omitRetryHeadersMiddleware:()=>RR,omitRetryHeadersMiddlewareOptions:()=>SR,resolveRetryConfig:()=>MO,retryMiddleware:()=>YR,retryMiddlewareOptions:()=>XR});PR.exports=PO(IR);var Lw=R0(),FR=bF(),Zr=bz(),ZO=kr((r,s)=>{let f=r,h=(s==null?void 0:s.noRetryIncrement)??Zr.NO_RETRY_INCREMENT,w=(s==null?void 0:s.retryCost)??Zr.RETRY_COST,$=(s==null?void 0:s.timeoutRetryCost)??Zr.TIMEOUT_RETRY_COST,E=r,I=kr((L)=>L.name==="TimeoutError"?$:w,"getCapacityAmount"),F=kr((L)=>I(L)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:kr((L)=>{if(!F(L))throw new Error("No retry token available");let S=I(L);return E-=S,S},"retrieveRetryTokens"),releaseRetryTokens:kr((L)=>{E+=L??h,E=Math.min(E,f)},"releaseRetryTokens")})},"getDefaultRetryQuota"),UR=kr((r,s)=>Math.floor(Math.min(Zr.MAXIMUM_RETRY_DELAY,Math.random()*2**s*r)),"defaultDelayDecider"),x0=Qh(),TR=kr((r)=>{if(!r)return!1;return x0.isRetryableByTrait(r)||x0.isClockSkewError(r)||x0.isThrottlingError(r)||x0.isTransientError(r)},"defaultRetryDecider"),GR=kr((r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)},"asSdkError"),AR=class r{constructor(s,f){this.maxAttemptsProvider=s,this.mode=Zr.RETRY_MODES.STANDARD,this.retryDecider=(f==null?void 0:f.retryDecider)??TR,this.delayDecider=(f==null?void 0:f.delayDecider)??UR,this.retryQuota=(f==null?void 0:f.retryQuota)??ZO(Zr.INITIAL_RETRY_TOKENS)}shouldRetry(s,f,h){return f<h&&this.retryDecider(s)&&this.retryQuota.hasRetryTokens(s)}async getMaxAttempts(){let s;try{s=await this.maxAttemptsProvider()}catch(f){s=Zr.DEFAULT_MAX_ATTEMPTS}return s}async retry(s,f,h){let w,$=0,E=0,I=await this.getMaxAttempts(),{request:F}=f;if(Lw.HttpRequest.isInstance(F))F.headers[Zr.INVOCATION_ID_HEADER]=FR.v4();while(!0)try{if(Lw.HttpRequest.isInstance(F))F.headers[Zr.REQUEST_HEADER]=`attempt=${$+1}; max=${I}`;if(h==null?void 0:h.beforeRequest)await h.beforeRequest();let{response:U,output:A}=await s(f);if(h==null?void 0:h.afterRequest)h.afterRequest(U);return this.retryQuota.releaseRetryTokens(w),A.$metadata.attempts=$+1,A.$metadata.totalRetryDelay=E,{response:U,output:A}}catch(U){let A=GR(U);if($++,this.shouldRetry(A,$,I)){w=this.retryQuota.retrieveRetryTokens(A);let L=this.delayDecider(x0.isThrottlingError(A)?Zr.THROTTLING_RETRY_DELAY_BASE:Zr.DEFAULT_RETRY_DELAY_BASE,$),S=QO(A.$response),R=Math.max(S||0,L);E+=R,await new Promise((P)=>setTimeout(P,R));continue}if(!A.$metadata)A.$metadata={};throw A.$metadata.attempts=$,A.$metadata.totalRetryDelay=E,A}}};kr(AR,"StandardRetryStrategy");var LR=AR,QO=kr((r)=>{if(!Lw.HttpResponse.isInstance(r))return;let s=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!s)return;let f=r.headers[s],h=Number(f);if(!Number.isNaN(h))return h*1000;return new Date(f).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),zR=class r extends LR{constructor(s,f){let{rateLimiter:h,...w}=f??{};super(s,w);this.rateLimiter=h??new Zr.DefaultRateLimiter,this.mode=Zr.RETRY_MODES.ADAPTIVE}async retry(s,f){return super.retry(s,f,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(h)=>{this.rateLimiter.updateClientSendingRate(h)}})}};kr(zR,"AdaptiveRetryStrategy");var JO=zR,ER=L1(),JU="AWS_MAX_ATTEMPTS",BU="max_attempts",BO={environmentVariableSelector:(r)=>{let s=r[JU];if(!s)return;let f=parseInt(s);if(Number.isNaN(f))throw new Error(`Environment variable ${JU} mast be a number, got "${s}"`);return f},configFileSelector:(r)=>{let s=r[BU];if(!s)return;let f=parseInt(s);if(Number.isNaN(f))throw new Error(`Shared config file entry ${BU} mast be a number, got "${s}"`);return f},default:Zr.DEFAULT_MAX_ATTEMPTS},MO=kr((r)=>{let{retryStrategy:s}=r,f=ER.normalizeProvider(r.maxAttempts??Zr.DEFAULT_MAX_ATTEMPTS);return{...r,maxAttempts:f,retryStrategy:async()=>{if(s)return s;if(await ER.normalizeProvider(r.retryMode)()===Zr.RETRY_MODES.ADAPTIVE)return new Zr.AdaptiveRetryStrategy(f);return new Zr.StandardRetryStrategy(f)}}},"resolveRetryConfig"),WR="AWS_RETRY_MODE",CR="retry_mode",VO={environmentVariableSelector:(r)=>r[WR],configFileSelector:(r)=>r[CR],default:Zr.DEFAULT_RETRY_MODE},RR=kr(()=>(r)=>async(s)=>{let{request:f}=s;if(Lw.HttpRequest.isInstance(f))delete f.headers[Zr.INVOCATION_ID_HEADER],delete f.headers[Zr.REQUEST_HEADER];return r(s)},"omitRetryHeadersMiddleware"),SR={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},HO=kr((r)=>({applyToStack:(s)=>{s.addRelativeTo(RR(),SR)}}),"getOmitRetryHeadersPlugin"),lO=Aw(),DO=$R(),YR=kr((r)=>(s,f)=>async(h)=>{var w;let $=await r.retryStrategy(),E=await r.maxAttempts();if(kO($)){$=$;let I=await $.acquireInitialRetryToken(f.partition_id),F=new Error,U=0,A=0,{request:L}=h,S=Lw.HttpRequest.isInstance(L);if(S)L.headers[Zr.INVOCATION_ID_HEADER]=FR.v4();while(!0)try{if(S)L.headers[Zr.REQUEST_HEADER]=`attempt=${U+1}; max=${E}`;let{response:R,output:P}=await s(h);return $.recordSuccess(I),P.$metadata.attempts=U+1,P.$metadata.totalRetryDelay=A,{response:R,output:P}}catch(R){let P=yO(R);if(F=GR(R),S&&DO.isStreamingPayload(L))throw(w=f.logger instanceof lO.NoOpLogger?console:f.logger)==null||w.warn("An error was encountered in a non-retryable streaming request."),F;try{I=await $.refreshRetryTokenForRetry(I,P)}catch(M){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=U+1,F.$metadata.totalRetryDelay=A,F}U=I.getRetryCount();let N=I.getRetryDelay();A+=N,await new Promise((M)=>setTimeout(M,N))}}else{if($=$,$==null?void 0:$.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(s,h)}},"retryMiddleware"),kO=kr((r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined","isRetryStrategyV2"),yO=kr((r)=>{let s={error:r,errorType:NO(r)},f=KR(r.$response);if(f)s.retryAfterHint=f;return s},"getRetryErrorInfo"),NO=kr((r)=>{if(x0.isThrottlingError(r))return"THROTTLING";if(x0.isTransientError(r))return"TRANSIENT";if(x0.isServerError(r))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),XR={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},qO=kr((r)=>({applyToStack:(s)=>{s.add(YR(r),XR)}}),"getRetryPlugin"),KR=kr((r)=>{if(!Lw.HttpResponse.isInstance(r))return;let s=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!s)return;let f=r.headers[s],h=Number(f);if(!Number.isNaN(h))return new Date(h*1000);return new Date(f)},"getRetryAfterHint")});var mr=i((xrr,cR)=>{var{defineProperty:eE,getOwnPropertyDescriptor:mO,getOwnPropertyNames:jO}=Object,vO=Object.prototype.hasOwnProperty,Sr=(r,s)=>eE(r,"name",{value:s,configurable:!0}),iO=(r,s)=>{for(var f in s)eE(r,f,{get:s[f],enumerable:!0})},OO=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of jO(s))if(!vO.call(r,w)&&w!==f)eE(r,w,{get:()=>s[w],enumerable:!(h=mO(s,w))||h.enumerable})}return r},dO=(r)=>OO(eE({},"__esModule",{value:!0}),r),QR={};iO(QR,{DefaultIdentityProviderConfig:()=>aO,EXPIRATION_MS:()=>mR,HttpApiKeyAuthSigner:()=>pO,HttpBearerAuthSigner:()=>uO,NoAuthSigner:()=>tO,RequestBuilder:()=>OR,createIsIdentityExpiredFunction:()=>qR,createPaginator:()=>dR,doesIdentityRequireRefresh:()=>jR,getHttpAuthSchemeEndpointRuleSetPlugin:()=>bO,getHttpAuthSchemePlugin:()=>gO,getHttpSigningPlugin:()=>oO,getSmithyContext:()=>sd,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>MR,httpAuthSchemeMiddleware:()=>MU,httpAuthSchemeMiddlewareOptions:()=>VR,httpSigningMiddleware:()=>HR,httpSigningMiddlewareOptions:()=>lR,isIdentityExpired:()=>rd,memoizeIdentityProvider:()=>fd,normalizeProvider:()=>hd,requestBuilder:()=>vR});cR.exports=dO(QR);var JR=L1();function BR(r){let s=new Map;for(let f of r)s.set(f.schemeId,f);return s}Sr(BR,"convertHttpAuthSchemesToMap");var MU=Sr((r,s)=>(f,h)=>async(w)=>{var $;let E=r.httpAuthSchemeProvider(await s.httpAuthSchemeParametersProvider(r,h,w.input)),I=BR(r.httpAuthSchemes),F=JR.getSmithyContext(h),U=[];for(let A of E){let L=I.get(A.schemeId);if(!L){U.push(`HttpAuthScheme \`${A.schemeId}\` was not enabled for this service.`);continue}let S=L.identityProvider(await s.identityProviderConfigProvider(r));if(!S){U.push(`HttpAuthScheme \`${A.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:R={},signingProperties:P={}}=(($=A.propertiesExtractor)==null?void 0:$.call(A,r,h))||{};A.identityProperties=Object.assign(A.identityProperties||{},R),A.signingProperties=Object.assign(A.signingProperties||{},P),F.selectedHttpAuthScheme={httpAuthOption:A,identity:await S(A.identityProperties),signer:L.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(U.join("\n"));return f(w)},"httpAuthSchemeMiddleware"),cO=Z4(),MR={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:cO.endpointMiddlewareOptions.name},bO=Sr((r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f})=>({applyToStack:(h)=>{h.addRelativeTo(MU(r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f}),MR)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),_O=qF(),VR={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:_O.serializerMiddlewareOption.name},gO=Sr((r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f})=>({applyToStack:(h)=>{h.addRelativeTo(MU(r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:f}),VR)}}),"getHttpAuthSchemePlugin"),nE=R0(),xO=Sr((r)=>(s)=>{throw s},"defaultErrorHandler"),eO=Sr((r,s)=>{},"defaultSuccessHandler"),HR=Sr((r)=>(s,f)=>async(h)=>{if(!nE.HttpRequest.isInstance(h.request))return s(h);let $=JR.getSmithyContext(f).selectedHttpAuthScheme;if(!$)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:E={}},identity:I,signer:F}=$,U=await s({...h,request:await F.sign(h.request,I,E)}).catch((F.errorHandler||xO)(E));return(F.successHandler||eO)(U.response,E),U},"httpSigningMiddleware"),nO=ZR(),lR={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:nO.retryMiddlewareOptions.name},oO=Sr((r)=>({applyToStack:(s)=>{s.addRelativeTo(HR(r),lR)}}),"getHttpSigningPlugin"),DR=class r{constructor(s){this.authSchemes=new Map;for(let[f,h]of Object.entries(s))if(h!==void 0)this.authSchemes.set(f,h)}getIdentityProvider(s){return this.authSchemes.get(s)}};Sr(DR,"DefaultIdentityProviderConfig");var aO=DR,xE=Uf(),kR=class r{async sign(s,f,h){if(!h)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!h.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!h.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!f.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let w=nE.HttpRequest.clone(s);if(h.in===xE.HttpApiKeyAuthLocation.QUERY)w.query[h.name]=f.apiKey;else if(h.in===xE.HttpApiKeyAuthLocation.HEADER)w.headers[h.name]=h.scheme?`${h.scheme} ${f.apiKey}`:f.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+h.in+"`");return w}};Sr(kR,"HttpApiKeyAuthSigner");var pO=kR,yR=class r{async sign(s,f,h){let w=nE.HttpRequest.clone(s);if(!f.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return w.headers.Authorization=`Bearer ${f.token}`,w}};Sr(yR,"HttpBearerAuthSigner");var uO=yR,NR=class r{async sign(s,f,h){return s}};Sr(NR,"NoAuthSigner");var tO=NR,qR=Sr((r)=>(s)=>jR(s)&&s.expiration.getTime()-Date.now()<r,"createIsIdentityExpiredFunction"),mR=300000,rd=qR(mR),jR=Sr((r)=>r.expiration!==void 0,"doesIdentityRequireRefresh"),fd=Sr((r,s,f)=>{if(r===void 0)return;let h=typeof r!=="function"?async()=>Promise.resolve(r):r,w,$,E,I=!1,F=Sr(async(U)=>{if(!$)$=h(U);try{w=await $,E=!0,I=!1}finally{$=void 0}return w},"coalesceProvider");if(s===void 0)return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))w=await F(U);return w};return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))w=await F(U);if(I)return w;if(!f(w))return I=!0,w;if(s(w))return await F(U),w;return w}},"memoizeIdentityProvider"),sd=Sr((r)=>r[xE.SMITHY_CONTEXT_KEY]||(r[xE.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),hd=Sr((r)=>{if(typeof r==="function")return r;let s=Promise.resolve(r);return()=>s},"normalizeProvider"),wd=Aw();function vR(r,s){return new OR(r,s)}Sr(vR,"requestBuilder");var iR=class r{constructor(s,f){this.input=s,this.context=f,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){let{hostname:s,protocol:f="https",port:h,path:w}=await this.context.endpoint();this.path=w;for(let $ of this.resolvePathStack)$(this.path);return new nE.HttpRequest({protocol:f,hostname:this.hostname||s,port:h,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(s){return this.hostname=s,this}bp(s){return this.resolvePathStack.push((f)=>{this.path=`${(f==null?void 0:f.endsWith("/"))?f.slice(0,-1):f||""}`+s}),this}p(s,f,h,w){return this.resolvePathStack.push(($)=>{this.path=wd.resolvedPath($,this.input,s,f,h,w)}),this}h(s){return this.headers=s,this}q(s){return this.query=s,this}b(s){return this.body=s,this}m(s){return this.method=s,this}};Sr(iR,"RequestBuilder");var OR=iR,$d=Sr(async(r,s,f,...h)=>{return await s.send(new r(f),...h)},"makePagedClientRequest");function dR(r,s,f,h,w){return Sr(async function*$(E,I,...F){let U=E.startingToken||void 0,A=!0,L;while(A){if(I[f]=U,w)I[w]=I[w]??E.pageSize;if(E.client instanceof r)L=await $d(s,E.client,I,...F);else throw new Error(`Invalid client, expected instance of ${r.name}`);yield L;let S=U;U=Ed(L,h),A=!!(U&&(!E.stopOnSameToken||U!==S))}return},"paginateOperation")}Sr(dR,"createPaginator");var Ed=Sr((r,s)=>{let f=r,h=s.split(".");for(let w of h){if(!f||typeof f!=="object")return;f=f[w]}return f},"get")});function Id(r){if(r===void 0)return!0;return typeof r==="string"&&r.length<=50}function Ds(r){let s=bR.normalizeProvider(r.userAgentAppId??VU);return{...r,customUserAgent:typeof r.customUserAgent==="string"?[[r.customUserAgent]]:r.customUserAgent,userAgentAppId:async()=>{let f=await s();if(!Id(f)){let h=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console:r.logger;if(typeof f!=="string")h?.warn("userAgentAppId must be a string or undefined.");else if(f.length>50)h?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return f}}}var bR,VU=void 0;var _R=G(()=>{bR=e(mr(),1)});class ws{constructor({size:r,params:s}){if(this.data=new Map,this.parameters=[],this.capacity=r??50,s)this.parameters=s}get(r,s){let f=this.hash(r);if(f===!1)return s();if(!this.data.has(f)){if(this.data.size>this.capacity+10){let h=this.data.keys(),w=0;while(!0){let{value:$,done:E}=h.next();if(this.data.delete($),E||++w>10)break}}this.data.set(f,s())}return this.data.get(f)}size(){return this.data.size}hash(r){let s="",{parameters:f}=this;if(f.length===0)return!1;for(let h of f){let w=String(r[h]??"");if(w.includes("|;"))return!1;s+=w+"|;"}return s}}var Fd,H1=(r)=>Fd.test(r)||r.startsWith("[")&&r.endsWith("]");var HU=G(()=>{Fd=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}$")});var Ud,l1=(r,s=!1)=>{if(!s)return Ud.test(r);let f=r.split(".");for(let h of f)if(!l1(h))return!1;return!0};var lU=G(()=>{Ud=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var tr;var oE=G(()=>{tr={}});var X0="endpoints";function Vf(r){if(typeof r!=="object"||r==null)return r;if("ref"in r)return`\$${Vf(r.ref)}`;if("fn"in r)return`${r.fn}(${(r.argv||[]).map(Vf).join(", ")})`;return JSON.stringify(r,null,2)}var D1=()=>{};var Rr;var gR=G(()=>{Rr=class Rr extends Error{constructor(r){super(r);this.name="EndpointError"}}});var xR=()=>{};var eR=()=>{};var nR=()=>{};var oR=()=>{};var aR=()=>{};var pR=()=>{};var Hf=G(()=>{gR();xR();eR();nR();oR();aR();pR()});var uR=(r,s)=>r===s;var tR=(r)=>{let s=r.split("."),f=[];for(let h of s){let w=h.indexOf("[");if(w!==-1){if(h.indexOf("]")!==h.length-1)throw new Rr(`Path: '${r}' does not end with ']'`);let $=h.slice(w+1,-1);if(Number.isNaN(parseInt($)))throw new Rr(`Invalid array index: '${$}' in path: '${r}'`);if(w!==0)f.push(h.slice(0,w));f.push($)}else f.push(h)}return f};var r7=G(()=>{Hf()});var aE=(r,s)=>tR(s).reduce((f,h)=>{if(typeof f!=="object")throw new Rr(`Index '${h}' in '${s}' not found in '${JSON.stringify(r)}'`);else if(Array.isArray(f))return f[parseInt(h)];return f[h]},r);var f7=G(()=>{Hf();r7()});var s7=(r)=>r!=null;var h7=(r)=>!r;var pE,DU,w7=(r)=>{let s=(()=>{try{if(r instanceof URL)return r;if(typeof r==="object"&&"hostname"in r){let{hostname:S,port:R,protocol:P="",path:N="",query:M={}}=r,l=new URL(`${P}//${S}${R?`:${R}`:""}${N}`);return l.search=Object.entries(M).map(([k,v])=>`${k}=${v}`).join("&"),l}return new URL(r)}catch(S){return null}})();if(!s)return console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`),null;let f=s.href,{host:h,hostname:w,pathname:$,protocol:E,search:I}=s;if(I)return null;let F=E.slice(0,-1);if(!Object.values(pE.EndpointURLScheme).includes(F))return null;let U=H1(w),A=f.includes(`${h}:${DU[F]}`)||typeof r==="string"&&r.includes(`${h}:${DU[F]}`),L=`${h}${A?`:${DU[F]}`:""}`;return{scheme:F,authority:L,path:$,normalizedPath:$.endsWith("/")?$:`${$}/`,isIp:U}};var $7=G(()=>{pE=e(Uf(),1);HU();DU={[pE.EndpointURLScheme.HTTP]:80,[pE.EndpointURLScheme.HTTPS]:443}});var E7=(r,s)=>r===s;var I7=(r,s,f,h)=>{if(s>=f||r.length<f)return null;if(!h)return r.substring(s,f);return r.substring(r.length-f,r.length-s)};var F7=(r)=>encodeURIComponent(r).replace(/[!*'()]/g,(s)=>`%${s.charCodeAt(0).toString(16).toUpperCase()}`);var kU=G(()=>{f7();lU();$7()});var U7;var T7=G(()=>{kU();U7={booleanEquals:uR,getAttr:aE,isSet:s7,isValidHostLabel:l1,not:h7,parseURL:w7,stringEquals:E7,substring:I7,uriEncode:F7}});var uE=(r,s)=>{let f=[],h={...s.endpointParams,...s.referenceRecord},w=0;while(w<r.length){let $=r.indexOf("{",w);if($===-1){f.push(r.slice(w));break}f.push(r.slice(w,$));let E=r.indexOf("}",$);if(E===-1){f.push(r.slice($));break}if(r[$+1]==="{"&&r[E+1]==="}")f.push(r.slice($+1,E)),w=E+2;let I=r.substring($+1,E);if(I.includes("#")){let[F,U]=I.split("#");f.push(aE(h[F],U))}else f.push(h[I]);w=E+1}return f.join("")};var yU=G(()=>{kU()});var G7=({ref:r},s)=>{return{...s.endpointParams,...s.referenceRecord}[r]};var e0=(r,s,f)=>{if(typeof r==="string")return uE(r,f);else if(r.fn)return tE(r,f);else if(r.ref)return G7(r,f);throw new Rr(`'${s}': ${String(r)} is not a string, function or reference.`)};var k1=G(()=>{Hf();NU();yU()});var tE=({fn:r,argv:s},f)=>{let h=s.map(($)=>["boolean","number"].includes(typeof $)?$:e0($,"arg",f)),w=r.split(".");if(w[0]in tr&&w[1]!=null)return tr[w[0]][w[1]](...h);return U7[r](...h)};var NU=G(()=>{oE();T7();k1()});var A7=({assign:r,...s},f)=>{if(r&&r in f.referenceRecord)throw new Rr(`'${r}' is already defined in Reference Record.`);let h=tE(s,f);return f.logger?.debug?.(`${X0} evaluateCondition: ${Vf(s)} = ${Vf(h)}`),{result:h===""?!0:!!h,...r!=null&&{toAssign:{name:r,value:h}}}};var L7=G(()=>{D1();Hf();NU()});var zw=(r=[],s)=>{let f={};for(let h of r){let{result:w,toAssign:$}=A7(h,{...s,referenceRecord:{...s.referenceRecord,...f}});if(!w)return{result:w};if($)f[$.name]=$.value,s.logger?.debug?.(`${X0} assign: ${$.name} := ${Vf($.value)}`)}return{result:!0,referenceRecord:f}};var r3=G(()=>{D1();L7()});var z7=(r,s)=>Object.entries(r).reduce((f,[h,w])=>({...f,[h]:w.map(($)=>{let E=e0($,"Header value entry",s);if(typeof E!=="string")throw new Rr(`Header '${h}' value '${E}' is not a string`);return E})}),{});var W7=G(()=>{Hf();k1()});var qU=(r,s)=>{if(Array.isArray(r))return r.map((f)=>qU(f,s));switch(typeof r){case"string":return uE(r,s);case"object":if(r===null)throw new Rr(`Unexpected endpoint property: ${r}`);return f3(r,s);case"boolean":return r;default:throw new Rr(`Unexpected endpoint property type: ${typeof r}`)}};var C7=G(()=>{Hf();yU();mU()});var f3=(r,s)=>Object.entries(r).reduce((f,[h,w])=>({...f,[h]:qU(w,s)}),{});var mU=G(()=>{C7()});var R7=(r,s)=>{let f=e0(r,"Endpoint URL",s);if(typeof f==="string")try{return new URL(f)}catch(h){throw console.error(`Failed to construct URL with ${f}`,h),h}throw new Rr(`Endpoint URL must be a string, got ${typeof f}`)};var S7=G(()=>{Hf();k1()});var Y7=(r,s)=>{let{conditions:f,endpoint:h}=r,{result:w,referenceRecord:$}=zw(f,s);if(!w)return;let E={...s,referenceRecord:{...s.referenceRecord,...$}},{url:I,properties:F,headers:U}=h;return s.logger?.debug?.(`${X0} Resolving endpoint from template: ${Vf(h)}`),{...U!=null&&{headers:z7(U,E)},...F!=null&&{properties:f3(F,E)},url:R7(I,E)}};var X7=G(()=>{D1();r3();W7();mU();S7()});var K7=(r,s)=>{let{conditions:f,error:h}=r,{result:w,referenceRecord:$}=zw(f,s);if(!w)return;throw new Rr(e0(h,"Error",{...s,referenceRecord:{...s.referenceRecord,...$}}))};var P7=G(()=>{Hf();r3();k1()});var Z7=(r,s)=>{let{conditions:f,rules:h}=r,{result:w,referenceRecord:$}=zw(f,s);if(!w)return;return s3(h,{...s,referenceRecord:{...s.referenceRecord,...$}})};var Q7=G(()=>{r3();jU()});var s3=(r,s)=>{for(let f of r)if(f.type==="endpoint"){let h=Y7(f,s);if(h)return h}else if(f.type==="error")K7(f,s);else if(f.type==="tree"){let h=Z7(f,s);if(h)return h}else throw new Rr(`Unknown endpoint rule: ${f}`);throw new Rr("Rules evaluation failed")};var jU=G(()=>{Hf();X7();P7();Q7()});var J7=G(()=>{oE();jU()});var $s=(r,s)=>{let{endpointParams:f,logger:h}=s,{parameters:w,rules:$}=r;s.logger?.debug?.(`${X0} Initial EndpointParams: ${Vf(f)}`);let E=Object.entries(w).filter(([,U])=>U.default!=null).map(([U,A])=>[U,A.default]);if(E.length>0)for(let[U,A]of E)f[U]=f[U]??A;let I=Object.entries(w).filter(([,U])=>U.required).map(([U])=>U);for(let U of I)if(f[U]==null)throw new Rr(`Missing required parameter: '${U}'`);let F=s3($,{endpointParams:f,logger:h,referenceRecord:{}});return s.logger?.debug?.(`${X0} Resolved endpoint: ${Vf(F)}`),F};var B7=G(()=>{D1();Hf();J7()});var Es=G(()=>{HU();lU();oE();B7();Hf()});var vU=G(()=>{Es()});var iU=(r,s=!1)=>{if(s){for(let f of r.split("."))if(!iU(f))return!1;return!0}if(!l1(r))return!1;if(r.length<3||r.length>63)return!1;if(r!==r.toLowerCase())return!1;if(H1(r))return!1;return!0};var M7=G(()=>{Es();vU()});var V7=(r)=>{let s=r.split(":");if(s.length<6)return null;let[f,h,w,$,E,...I]=s;if(f!=="arn"||h===""||w===""||I.join(":")==="")return null;let F=I.map((U)=>U.split("/")).flat();return{partition:h,service:w,region:$,accountId:E,resourceId:F}};var l7;var H7=G(()=>{l7={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-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)"},"aws-global":{description:"AWS Standard 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)"},"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 China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{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 GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) 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:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Gd,Ad="",D7=(r)=>{let{partitions:s}=Gd;for(let h of s){let{regions:w,outputs:$}=h;for(let[E,I]of Object.entries(w))if(E===r)return{...$,...I}}for(let h of s){let{regionRegex:w,outputs:$}=h;if(new RegExp(w).test(r))return{...$}}let f=s.find((h)=>h.id==="aws");if(!f)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...f.outputs}},k7=()=>Ad;var OU=G(()=>{H7();Gd=l7});var Is;var y7=G(()=>{Es();M7();OU();Is={isVirtualHostableS3Bucket:iU,parseArn:V7,partition:D7};tr.aws=Is});var N7=G(()=>{Es()});var q7=G(()=>{Es()});var m7=()=>{};var j7=()=>{};var v7=()=>{};var i7=()=>{};var O7=()=>{};var d7=G(()=>{q7();m7();j7();v7();i7();O7()});var Vh=G(()=>{y7();OU();vU();N7();d7()});var WS=i((Z0r,$3)=>{var c7,b7,_7,g7,x7,e7,n7,o7,a7,p7,u7,t7,rS,h3,dU,fS,sS,hS,Ww,wS,$S,ES,IS,FS,US,TS,GS,AS,w3,LS,zS;(function(r){var s=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(h){r(f(s,f(h)))});else if(typeof $3==="object"&&typeof Z0r==="object")r(f(s,f(Z0r)));else r(f(s));function f(h,w){if(h!==s)if(typeof Object.create==="function")Object.defineProperty(h,"__esModule",{value:!0});else h.__esModule=!0;return function($,E){return h[$]=w?w($,E):E}}})(function(r){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,$){w.__proto__=$}||function(w,$){for(var E in $)if(Object.prototype.hasOwnProperty.call($,E))w[E]=$[E]};c7=function(w,$){if(typeof $!=="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");s(w,$);function E(){this.constructor=w}w.prototype=$===null?Object.create($):(E.prototype=$.prototype,new E)},b7=Object.assign||function(w){for(var $,E=1,I=arguments.length;E<I;E++){$=arguments[E];for(var F in $)if(Object.prototype.hasOwnProperty.call($,F))w[F]=$[F]}return w},_7=function(w,$){var E={};for(var I in w)if(Object.prototype.hasOwnProperty.call(w,I)&&$.indexOf(I)<0)E[I]=w[I];if(w!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,I=Object.getOwnPropertySymbols(w);F<I.length;F++)if($.indexOf(I[F])<0&&Object.prototype.propertyIsEnumerable.call(w,I[F]))E[I[F]]=w[I[F]]}return E},g7=function(w,$,E,I){var F=arguments.length,U=F<3?$:I===null?I=Object.getOwnPropertyDescriptor($,E):I,A;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")U=Reflect.decorate(w,$,E,I);else for(var L=w.length-1;L>=0;L--)if(A=w[L])U=(F<3?A(U):F>3?A($,E,U):A($,E))||U;return F>3&&U&&Object.defineProperty($,E,U),U},x7=function(w,$){return function(E,I){$(E,I,w)}},e7=function(w,$,E,I,F,U){function A(hr){if(hr!==void 0&&typeof hr!=="function")throw new TypeError("Function expected");return hr}var L=I.kind,S=L==="getter"?"get":L==="setter"?"set":"value",R=!$&&w?I.static?w:w.prototype:null,P=$||(R?Object.getOwnPropertyDescriptor(R,I.name):{}),N,M=!1;for(var l=E.length-1;l>=0;l--){var k={};for(var v in I)k[v]=v==="access"?{}:I[v];for(var v in I.access)k.access[v]=I.access[v];k.addInitializer=function(hr){if(M)throw new TypeError("Cannot add initializers after decoration has completed");U.push(A(hr||null))};var x=E[l](L==="accessor"?{get:P.get,set:P.set}:P[S],k);if(L==="accessor"){if(x===void 0)continue;if(x===null||typeof x!=="object")throw new TypeError("Object expected");if(N=A(x.get))P.get=N;if(N=A(x.set))P.set=N;if(N=A(x.init))F.unshift(N)}else if(N=A(x))if(L==="field")F.unshift(N);else P[S]=N}if(R)Object.defineProperty(R,I.name,P);M=!0},n7=function(w,$,E){var I=arguments.length>2;for(var F=0;F<$.length;F++)E=I?$[F].call(w,E):$[F].call(w);return I?E:void 0},o7=function(w){return typeof w==="symbol"?w:"".concat(w)},a7=function(w,$,E){if(typeof $==="symbol")$=$.description?"[".concat($.description,"]"):"";return Object.defineProperty(w,"name",{configurable:!0,value:E?"".concat(E," ",$):$})},p7=function(w,$){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(w,$)},u7=function(w,$,E,I){function F(U){return U instanceof E?U:new E(function(A){A(U)})}return new(E||(E=Promise))(function(U,A){function L(P){try{R(I.next(P))}catch(N){A(N)}}function S(P){try{R(I.throw(P))}catch(N){A(N)}}function R(P){P.done?U(P.value):F(P.value).then(L,S)}R((I=I.apply(w,$||[])).next())})},t7=function(w,$){var E={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},I,F,U,A=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return A.next=L(0),A.throw=L(1),A.return=L(2),typeof Symbol==="function"&&(A[Symbol.iterator]=function(){return this}),A;function L(R){return function(P){return S([R,P])}}function S(R){if(I)throw new TypeError("Generator is already executing.");while(A&&(A=0,R[0]&&(E=0)),E)try{if(I=1,F&&(U=R[0]&2?F.return:R[0]?F.throw||((U=F.return)&&U.call(F),0):F.next)&&!(U=U.call(F,R[1])).done)return U;if(F=0,U)R=[R[0]&2,U.value];switch(R[0]){case 0:case 1:U=R;break;case 4:return E.label++,{value:R[1],done:!1};case 5:E.label++,F=R[1],R=[0];continue;case 7:R=E.ops.pop(),E.trys.pop();continue;default:if((U=E.trys,!(U=U.length>0&&U[U.length-1]))&&(R[0]===6||R[0]===2)){E=0;continue}if(R[0]===3&&(!U||R[1]>U[0]&&R[1]<U[3])){E.label=R[1];break}if(R[0]===6&&E.label<U[1]){E.label=U[1],U=R;break}if(U&&E.label<U[2]){E.label=U[2],E.ops.push(R);break}if(U[2])E.ops.pop();E.trys.pop();continue}R=$.call(w,E)}catch(P){R=[6,P],F=0}finally{I=U=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}},rS=function(w,$){for(var E in w)if(E!=="default"&&!Object.prototype.hasOwnProperty.call($,E))w3($,w,E)},w3=Object.create?function(w,$,E,I){if(I===void 0)I=E;var F=Object.getOwnPropertyDescriptor($,E);if(!F||("get"in F?!$.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return $[E]}};Object.defineProperty(w,I,F)}:function(w,$,E,I){if(I===void 0)I=E;w[I]=$[E]},h3=function(w){var $=typeof Symbol==="function"&&Symbol.iterator,E=$&&w[$],I=0;if(E)return E.call(w);if(w&&typeof w.length==="number")return{next:function(){if(w&&I>=w.length)w=void 0;return{value:w&&w[I++],done:!w}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},dU=function(w,$){var E=typeof Symbol==="function"&&w[Symbol.iterator];if(!E)return w;var I=E.call(w),F,U=[],A;try{while(($===void 0||$-- >0)&&!(F=I.next()).done)U.push(F.value)}catch(L){A={error:L}}finally{try{if(F&&!F.done&&(E=I.return))E.call(I)}finally{if(A)throw A.error}}return U},fS=function(){for(var w=[],$=0;$<arguments.length;$++)w=w.concat(dU(arguments[$]));return w},sS=function(){for(var w=0,$=0,E=arguments.length;$<E;$++)w+=arguments[$].length;for(var I=Array(w),F=0,$=0;$<E;$++)for(var U=arguments[$],A=0,L=U.length;A<L;A++,F++)I[F]=U[A];return I},hS=function(w,$,E){if(E||arguments.length===2){for(var I=0,F=$.length,U;I<F;I++)if(U||!(I in $)){if(!U)U=Array.prototype.slice.call($,0,I);U[I]=$[I]}}return w.concat(U||Array.prototype.slice.call($))},Ww=function(w){return this instanceof Ww?(this.v=w,this):new Ww(w)},wS=function(w,$,E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=E.apply(w,$||[]),F,U=[];return F=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),L("next"),L("throw"),L("return",A),F[Symbol.asyncIterator]=function(){return this},F;function A(l){return function(k){return Promise.resolve(k).then(l,N)}}function L(l,k){if(I[l]){if(F[l]=function(v){return new Promise(function(x,hr){U.push([l,v,x,hr])>1||S(l,v)})},k)F[l]=k(F[l])}}function S(l,k){try{R(I[l](k))}catch(v){M(U[0][3],v)}}function R(l){l.value instanceof Ww?Promise.resolve(l.value.v).then(P,N):M(U[0][2],l)}function P(l){S("next",l)}function N(l){S("throw",l)}function M(l,k){if(l(k),U.shift(),U.length)S(U[0][0],U[0][1])}},$S=function(w){var $,E;return $={},I("next"),I("throw",function(F){throw F}),I("return"),$[Symbol.iterator]=function(){return this},$;function I(F,U){$[F]=w[F]?function(A){return(E=!E)?{value:Ww(w[F](A)),done:!1}:U?U(A):A}:U}},ES=function(w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $=w[Symbol.asyncIterator],E;return $?$.call(w):(w=typeof h3==="function"?h3(w):w[Symbol.iterator](),E={},I("next"),I("throw"),I("return"),E[Symbol.asyncIterator]=function(){return this},E);function I(U){E[U]=w[U]&&function(A){return new Promise(function(L,S){A=w[U](A),F(L,S,A.done,A.value)})}}function F(U,A,L,S){Promise.resolve(S).then(function(R){U({value:R,done:L})},A)}},IS=function(w,$){if(Object.defineProperty)Object.defineProperty(w,"raw",{value:$});else w.raw=$;return w};var f=Object.create?function(w,$){Object.defineProperty(w,"default",{enumerable:!0,value:$})}:function(w,$){w.default=$};FS=function(w){if(w&&w.__esModule)return w;var $={};if(w!=null){for(var E in w)if(E!=="default"&&Object.prototype.hasOwnProperty.call(w,E))w3($,w,E)}return f($,w),$},US=function(w){return w&&w.__esModule?w:{default:w}},TS=function(w,$,E,I){if(E==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof $==="function"?w!==$||!I:!$.has(w))throw new TypeError("Cannot read private member from an object whose class did not declare it");return E==="m"?I:E==="a"?I.call(w):I?I.value:$.get(w)},GS=function(w,$,E,I,F){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof $==="function"?w!==$||!F:!$.has(w))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?F.call(w,E):F?F.value=E:$.set(w,E),E},AS=function(w,$){if($===null||typeof $!=="object"&&typeof $!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof w==="function"?$===w:w.has($)},LS=function(w,$,E){if($!==null&&$!==void 0){if(typeof $!=="object"&&typeof $!=="function")throw new TypeError("Object expected.");var I,F;if(E){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");I=$[Symbol.asyncDispose]}if(I===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(I=$[Symbol.dispose],E)F=I}if(typeof I!=="function")throw new TypeError("Object not disposable.");if(F)I=function(){try{F.call(this)}catch(U){return Promise.reject(U)}};w.stack.push({value:$,dispose:I,async:E})}else if(E)w.stack.push({async:!0});return $};var h=typeof SuppressedError==="function"?SuppressedError:function(w,$,E){var I=new Error(E);return I.name="SuppressedError",I.error=w,I.suppressed=$,I};zS=function(w){function $(U){w.error=w.hasError?new h(U,w.error,"An error was suppressed during disposal."):U,w.hasError=!0}var E,I=0;function F(){while(E=w.stack.pop())try{if(!E.async&&I===1)return I=0,w.stack.push(E),Promise.resolve().then(F);if(E.dispose){var U=E.dispose.call(E.value);if(E.async)return I|=2,Promise.resolve(U).then(F,function(A){return $(A),F()})}else I|=1}catch(A){$(A)}if(I===1)return w.hasError?Promise.reject(w.error):Promise.resolve();if(w.hasError)throw w.error}return F()},r("__extends",c7),r("__assign",b7),r("__rest",_7),r("__decorate",g7),r("__param",x7),r("__esDecorate",e7),r("__runInitializers",n7),r("__propKey",o7),r("__setFunctionName",a7),r("__metadata",p7),r("__awaiter",u7),r("__generator",t7),r("__exportStar",rS),r("__createBinding",w3),r("__values",h3),r("__read",dU),r("__spread",fS),r("__spreadArrays",sS),r("__spreadArray",hS),r("__await",Ww),r("__asyncGenerator",wS),r("__asyncDelegator",$S),r("__asyncValues",ES),r("__makeTemplateObject",IS),r("__importStar",FS),r("__importDefault",US),r("__classPrivateFieldGet",TS),r("__classPrivateFieldSet",GS),r("__classPrivateFieldIn",AS),r("__addDisposableResource",LS),r("__disposeResources",zS)})});var rf=i((Q0r,XS)=>{var{defineProperty:E3,getOwnPropertyDescriptor:Ld,getOwnPropertyNames:zd}=Object,Wd=Object.prototype.hasOwnProperty,cU=(r,s)=>E3(r,"name",{value:s,configurable:!0}),Cd=(r,s)=>{for(var f in s)E3(r,f,{get:s[f],enumerable:!0})},Rd=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of zd(s))if(!Wd.call(r,w)&&w!==f)E3(r,w,{get:()=>s[w],enumerable:!(h=Ld(s,w))||h.enumerable})}return r},Sd=(r)=>Rd(E3({},"__esModule",{value:!0}),r),RS={};Cd(RS,{emitWarningIfUnsupportedVersion:()=>Yd,setCredentialFeature:()=>SS,setFeature:()=>YS});XS.exports=Sd(RS);var CS=!1,Yd=cU((r)=>{if(r&&!CS&&parseInt(r.substring(1,r.indexOf(".")))<18)CS=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
5
5
  no longer support Node.js 16.x on January 6, 2025.
6
6
 
7
7
  To continue receiving updates to AWS services, bug fixes, and security
8
8
  updates please upgrade to a supported Node.js LTS version.
9
9
 
10
- More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");eF(M7,"setCredentialFeature");eF(V7,"setFeature")});var o7=O((g0r,n7)=>{function uF(r){for(let s=0;s<8;s++)r[s]^=255;for(let s=7;s>-1;s--)if(r[s]++,r[s]!==0)break}var{defineProperty:A3,getOwnPropertyDescriptor:Od,getOwnPropertyNames:dd}=Object,cd=Object.prototype.hasOwnProperty,mr=(r,s)=>A3(r,"name",{value:s,configurable:!0}),bd=(r,s)=>{for(var f in s)A3(r,f,{get:s[f],enumerable:!0})},_d=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of dd(s))if(!cd.call(r,h)&&h!==f)A3(r,h,{get:()=>s[h],enumerable:!(w=Od(s,h))||w.enumerable})}return r},gd=(r)=>_d(A3({},"__esModule",{value:!0}),r),N7={};bd(N7,{SignatureV4:()=>zc,clearCredentialCache:()=>Fc,createScope:()=>U3,getCanonicalHeaders:()=>pF,getCanonicalQuery:()=>c7,getPayloadHash:()=>G3,getSigningKey:()=>d7,moveHeadersToQuery:()=>x7,prepareRequest:()=>tF});n7.exports=gd(N7);var l7=G1(),nF=O0(),xd="X-Amz-Algorithm",ed="X-Amz-Credential",q7="X-Amz-Date",nd="X-Amz-SignedHeaders",od="X-Amz-Expires",m7="X-Amz-Signature",j7="X-Amz-Security-Token",v7="authorization",i7=q7.toLowerCase(),ad="date",pd=[v7,i7,ad],ud=m7.toLowerCase(),aF="x-amz-content-sha256",td=j7.toLowerCase(),rc={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},fc=/^proxy-/,sc=/^sec-/,oF="AWS4-HMAC-SHA256",wc="AWS4-HMAC-SHA256-PAYLOAD",hc="UNSIGNED-PAYLOAD",Ec=50,O7="aws4_request",$c=604800,b0=i$(),Ic=O0(),Th={},F3=[],U3=mr((r,s,f)=>`${r}/${s}/${f}/${O7}`,"createScope"),d7=mr(async(r,s,f,w,h)=>{const E=await D7(r,s.secretAccessKey,s.accessKeyId),$=`${f}:${w}:${h}:${b0.toHex(E)}:${s.sessionToken}`;if($ in Th)return Th[$];F3.push($);while(F3.length>Ec)delete Th[F3.shift()];let I=`AWS4${s.secretAccessKey}`;for(let F of[f,w,h,O7])I=await D7(r,I,F);return Th[$]=I},"getSigningKey"),Fc=mr(()=>{F3.length=0,Object.keys(Th).forEach((r)=>{delete Th[r]})},"clearCredentialCache"),D7=mr((r,s,f)=>{const w=new r(s);return w.update(Ic.toUint8Array(f)),w.digest()},"hmac"),pF=mr(({headers:r},s,f)=>{const w={};for(let h of Object.keys(r).sort()){if(r[h]==null)continue;const E=h.toLowerCase();if(E in rc||(s==null?void 0:s.has(E))||fc.test(E)||sc.test(E)){if(!f||f&&!f.has(E))continue}w[E]=r[h].trim().replace(/\s+/g," ")}return w},"getCanonicalHeaders"),T3=IF(),c7=mr(({query:r={}})=>{const s=[],f={};for(let w of Object.keys(r)){if(w.toLowerCase()===ud)continue;const h=T3.escapeUri(w);s.push(h);const E=r[w];if(typeof E==="string")f[h]=`${h}=${T3.escapeUri(E)}`;else if(Array.isArray(E))f[h]=E.slice(0).reduce(($,I)=>$.concat([`${h}=${T3.escapeUri(I)}`]),[]).sort().join("&")}return s.sort().map((w)=>f[w]).filter((w)=>w).join("&")},"getCanonicalQuery"),Uc=fF(),Tc=O0(),G3=mr(async({headers:r,body:s},f)=>{for(let w of Object.keys(r))if(w.toLowerCase()===aF)return r[w];if(s==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof s==="string"||ArrayBuffer.isView(s)||Uc.isArrayBuffer(s)){const w=new f;return w.update(Tc.toUint8Array(s)),b0.toHex(await w.digest())}return hc},"getPayloadHash"),k7=O0(),b7=class r{format(s){const f=[];for(let E of Object.keys(s)){const $=k7.fromUtf8(E);f.push(Uint8Array.from([$.byteLength]),$,this.formatHeaderValue(s[E]))}const w=new Uint8Array(f.reduce((E,$)=>E+$.byteLength,0));let h=0;for(let E of f)w.set(E,h),h+=E.byteLength;return w}formatHeaderValue(s){switch(s.type){case"boolean":return Uint8Array.from([s.value?0:1]);case"byte":return Uint8Array.from([2,s.value]);case"short":const f=new DataView(new ArrayBuffer(3));return f.setUint8(0,3),f.setInt16(1,s.value,!1),new Uint8Array(f.buffer);case"integer":const w=new DataView(new ArrayBuffer(5));return w.setUint8(0,4),w.setInt32(1,s.value,!1),new Uint8Array(w.buffer);case"long":const h=new Uint8Array(9);return h[0]=5,h.set(s.value.bytes,1),h;case"binary":const E=new DataView(new ArrayBuffer(3+s.value.byteLength));E.setUint8(0,6),E.setUint16(1,s.value.byteLength,!1);const $=new Uint8Array(E.buffer);return $.set(s.value,3),$;case"string":const I=k7.fromUtf8(s.value),F=new DataView(new ArrayBuffer(3+I.byteLength));F.setUint8(0,7),F.setUint16(1,I.byteLength,!1);const U=new Uint8Array(F.buffer);return U.set(I,3),U;case"timestamp":const A=new Uint8Array(9);return A[0]=8,A.set(Lc.fromNumber(s.value.valueOf()).bytes,1),A;case"uuid":if(!Ac.test(s.value))throw new Error(`Invalid UUID received: ${s.value}`);const L=new Uint8Array(17);return L[0]=9,L.set(b0.fromHex(s.value.replace(/\-/g,"")),1),L}}};mr(b7,"HeaderFormatter");var Gc=b7,Ac=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,_7=class r{constructor(s){if(this.bytes=s,s.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(s){if(s>9223372036854776000||s<-9223372036854776000)throw new Error(`${s} is too large (or, if negative, too small) to represent as an Int64`);const f=new Uint8Array(8);for(let w=7,h=Math.abs(Math.round(s));w>-1&&h>0;w--,h/=256)f[w]=h;if(s<0)uF(f);return new r(f)}valueOf(){const s=this.bytes.slice(0),f=s[0]&128;if(f)uF(s);return parseInt(b0.toHex(s),16)*(f?-1:1)}toString(){return String(this.valueOf())}};mr(_7,"Int64");var Lc=_7;mr(uF,"negate");var Rc=mr((r,s)=>{r=r.toLowerCase();for(let f of Object.keys(s))if(r===f.toLowerCase())return!0;return!1},"hasHeader"),g7=L0(),x7=mr((r,s={})=>{var f,w;const{headers:h,query:E={}}=g7.HttpRequest.clone(r);for(let $ of Object.keys(h)){const I=$.toLowerCase();if(I.slice(0,6)==="x-amz-"&&!((f=s.unhoistableHeaders)==null?void 0:f.has(I))||((w=s.hoistableHeaders)==null?void 0:w.has(I)))E[$]=h[$],delete h[$]}return{...r,headers:h,query:E}},"moveHeadersToQuery"),tF=mr((r)=>{r=g7.HttpRequest.clone(r);for(let s of Object.keys(r.headers))if(pd.indexOf(s.toLowerCase())>-1)delete r.headers[s];return r},"prepareRequest"),Cc=mr((r)=>Wc(r).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),Wc=mr((r)=>{if(typeof r==="number")return new Date(r*1000);if(typeof r==="string"){if(Number(r))return new Date(Number(r)*1000);return new Date(r)}return r},"toDate"),e7=class r{constructor({applyChecksum:s,credentials:f,region:w,service:h,sha256:E,uriEscapePath:$=!0}){this.headerFormatter=new Gc,this.service=h,this.sha256=E,this.uriEscapePath=$,this.applyChecksum=typeof s==="boolean"?s:!0,this.regionProvider=l7.normalizeProvider(w),this.credentialProvider=l7.normalizeProvider(f)}async presign(s,f={}){const{signingDate:w=new Date,expiresIn:h=3600,unsignableHeaders:E,unhoistableHeaders:$,signableHeaders:I,hoistableHeaders:F,signingRegion:U,signingService:A}=f,L=await this.credentialProvider();this.validateResolvedCredentials(L);const S=U??await this.regionProvider(),{longDate:z,shortDate:Z}=I3(w);if(h>$c)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const N=U3(Z,S,A??this.service),M=x7(tF(s),{unhoistableHeaders:$,hoistableHeaders:F});if(L.sessionToken)M.query[j7]=L.sessionToken;M.query[xd]=oF,M.query[ed]=`${L.accessKeyId}/${N}`,M.query[q7]=z,M.query[od]=h.toString(10);const l=pF(M,E,I);return M.query[nd]=y7(l),M.query[m7]=await this.getSignature(z,N,this.getSigningKey(L,S,Z,A),this.createCanonicalRequest(M,l,await G3(s,this.sha256))),M}async sign(s,f){if(typeof s==="string")return this.signString(s,f);else if(s.headers&&s.payload)return this.signEvent(s,f);else if(s.message)return this.signMessage(s,f);else return this.signRequest(s,f)}async signEvent({headers:s,payload:f},{signingDate:w=new Date,priorSignature:h,signingRegion:E,signingService:$}){const I=E??await this.regionProvider(),{shortDate:F,longDate:U}=I3(w),A=U3(F,I,$??this.service),L=await G3({headers:{},body:f},this.sha256),S=new this.sha256;S.update(s);const z=b0.toHex(await S.digest()),Z=[wc,U,A,h,z,L].join("\n");return this.signString(Z,{signingDate:w,signingRegion:I,signingService:$})}async signMessage(s,{signingDate:f=new Date,signingRegion:w,signingService:h}){return this.signEvent({headers:this.headerFormatter.format(s.message.headers),payload:s.message.body},{signingDate:f,signingRegion:w,signingService:h,priorSignature:s.priorSignature}).then(($)=>{return{message:s.message,signature:$}})}async signString(s,{signingDate:f=new Date,signingRegion:w,signingService:h}={}){const E=await this.credentialProvider();this.validateResolvedCredentials(E);const $=w??await this.regionProvider(),{shortDate:I}=I3(f),F=new this.sha256(await this.getSigningKey(E,$,I,h));return F.update(nF.toUint8Array(s)),b0.toHex(await F.digest())}async signRequest(s,{signingDate:f=new Date,signableHeaders:w,unsignableHeaders:h,signingRegion:E,signingService:$}={}){const I=await this.credentialProvider();this.validateResolvedCredentials(I);const F=E??await this.regionProvider(),U=tF(s),{longDate:A,shortDate:L}=I3(f),S=U3(L,F,$??this.service);if(U.headers[i7]=A,I.sessionToken)U.headers[td]=I.sessionToken;const z=await G3(U,this.sha256);if(!Rc(aF,U.headers)&&this.applyChecksum)U.headers[aF]=z;const Z=pF(U,h,w),N=await this.getSignature(A,S,this.getSigningKey(I,F,L,$),this.createCanonicalRequest(U,Z,z));return U.headers[v7]=`${oF} Credential=${I.accessKeyId}/${S}, SignedHeaders=${y7(Z)}, Signature=${N}`,U}createCanonicalRequest(s,f,w){const h=Object.keys(f).sort();return`${s.method}
10
+ More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");function SS(r,s,f){if(!r.$source)r.$source={};return r.$source[s]=f,r}cU(SS,"setCredentialFeature");function YS(r,s,f){if(!r.__aws_sdk_context)r.__aws_sdk_context={features:{}};else if(!r.__aws_sdk_context.features)r.__aws_sdk_context.features={};r.__aws_sdk_context.features[s]=f}cU(YS,"setFeature")});var OS=i((J0r,iS)=>{var{defineProperty:A3,getOwnPropertyDescriptor:Xd,getOwnPropertyNames:Kd}=Object,Pd=Object.prototype.hasOwnProperty,jr=(r,s)=>A3(r,"name",{value:s,configurable:!0}),Zd=(r,s)=>{for(var f in s)A3(r,f,{get:s[f],enumerable:!0})},Qd=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Kd(s))if(!Pd.call(r,w)&&w!==f)A3(r,w,{get:()=>s[w],enumerable:!(h=Xd(s,w))||h.enumerable})}return r},Jd=(r)=>Qd(A3({},"__esModule",{value:!0}),r),JS={};Zd(JS,{SignatureV4:()=>pd,clearCredentialCache:()=>cd,createScope:()=>U3,getCanonicalHeaders:()=>xU,getCanonicalQuery:()=>yS,getPayloadHash:()=>G3,getSigningKey:()=>kS,moveHeadersToQuery:()=>jS,prepareRequest:()=>nU});iS.exports=Jd(JS);var KS=L1(),bU=g0(),Bd="X-Amz-Algorithm",Md="X-Amz-Credential",BS="X-Amz-Date",Vd="X-Amz-SignedHeaders",Hd="X-Amz-Expires",MS="X-Amz-Signature",VS="X-Amz-Security-Token",HS="authorization",lS=BS.toLowerCase(),ld="date",Dd=[HS,lS,ld],kd=MS.toLowerCase(),gU="x-amz-content-sha256",yd=VS.toLowerCase(),Nd={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},qd=/^proxy-/,md=/^sec-/,_U="AWS4-HMAC-SHA256",jd="AWS4-HMAC-SHA256-PAYLOAD",vd="UNSIGNED-PAYLOAD",id=50,DS="aws4_request",Od=604800,n0=FU(),dd=g0(),Cw={},F3=[],U3=jr((r,s,f)=>`${r}/${s}/${f}/${DS}`,"createScope"),kS=jr(async(r,s,f,h,w)=>{let $=await PS(r,s.secretAccessKey,s.accessKeyId),E=`${f}:${h}:${w}:${n0.toHex($)}:${s.sessionToken}`;if(E in Cw)return Cw[E];F3.push(E);while(F3.length>id)delete Cw[F3.shift()];let I=`AWS4${s.secretAccessKey}`;for(let F of[f,h,w,DS])I=await PS(r,I,F);return Cw[E]=I},"getSigningKey"),cd=jr(()=>{F3.length=0,Object.keys(Cw).forEach((r)=>{delete Cw[r]})},"clearCredentialCache"),PS=jr((r,s,f)=>{let h=new r(s);return h.update(dd.toUint8Array(f)),h.digest()},"hmac"),xU=jr(({headers:r},s,f)=>{let h={};for(let w of Object.keys(r).sort()){if(r[w]==null)continue;let $=w.toLowerCase();if($ in Nd||(s==null?void 0:s.has($))||qd.test($)||md.test($)){if(!f||f&&!f.has($))continue}h[$]=r[w].trim().replace(/\s+/g," ")}return h},"getCanonicalHeaders"),T3=fU(),yS=jr(({query:r={}})=>{let s=[],f={};for(let h of Object.keys(r)){if(h.toLowerCase()===kd)continue;let w=T3.escapeUri(h);s.push(w);let $=r[h];if(typeof $==="string")f[w]=`${w}=${T3.escapeUri($)}`;else if(Array.isArray($))f[w]=$.slice(0).reduce((E,I)=>E.concat([`${w}=${T3.escapeUri(I)}`]),[]).sort().join("&")}return s.sort().map((h)=>f[h]).filter((h)=>h).join("&")},"getCanonicalQuery"),bd=oF(),_d=g0(),G3=jr(async({headers:r,body:s},f)=>{for(let h of Object.keys(r))if(h.toLowerCase()===gU)return r[h];if(s==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof s==="string"||ArrayBuffer.isView(s)||bd.isArrayBuffer(s)){let h=new f;return h.update(_d.toUint8Array(s)),n0.toHex(await h.digest())}return vd},"getPayloadHash"),ZS=g0(),NS=class r{format(s){let f=[];for(let $ of Object.keys(s)){let E=ZS.fromUtf8($);f.push(Uint8Array.from([E.byteLength]),E,this.formatHeaderValue(s[$]))}let h=new Uint8Array(f.reduce(($,E)=>$+E.byteLength,0)),w=0;for(let $ of f)h.set($,w),w+=$.byteLength;return h}formatHeaderValue(s){switch(s.type){case"boolean":return Uint8Array.from([s.value?0:1]);case"byte":return Uint8Array.from([2,s.value]);case"short":let f=new DataView(new ArrayBuffer(3));return f.setUint8(0,3),f.setInt16(1,s.value,!1),new Uint8Array(f.buffer);case"integer":let h=new DataView(new ArrayBuffer(5));return h.setUint8(0,4),h.setInt32(1,s.value,!1),new Uint8Array(h.buffer);case"long":let w=new Uint8Array(9);return w[0]=5,w.set(s.value.bytes,1),w;case"binary":let $=new DataView(new ArrayBuffer(3+s.value.byteLength));$.setUint8(0,6),$.setUint16(1,s.value.byteLength,!1);let E=new Uint8Array($.buffer);return E.set(s.value,3),E;case"string":let I=ZS.fromUtf8(s.value),F=new DataView(new ArrayBuffer(3+I.byteLength));F.setUint8(0,7),F.setUint16(1,I.byteLength,!1);let U=new Uint8Array(F.buffer);return U.set(I,3),U;case"timestamp":let A=new Uint8Array(9);return A[0]=8,A.set(ed.fromNumber(s.value.valueOf()).bytes,1),A;case"uuid":if(!xd.test(s.value))throw new Error(`Invalid UUID received: ${s.value}`);let L=new Uint8Array(17);return L[0]=9,L.set(n0.fromHex(s.value.replace(/\-/g,"")),1),L}}};jr(NS,"HeaderFormatter");var gd=NS,xd=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,qS=class r{constructor(s){if(this.bytes=s,s.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(s){if(s>9223372036854776000||s<-9223372036854776000)throw new Error(`${s} is too large (or, if negative, too small) to represent as an Int64`);let f=new Uint8Array(8);for(let h=7,w=Math.abs(Math.round(s));h>-1&&w>0;h--,w/=256)f[h]=w;if(s<0)eU(f);return new r(f)}valueOf(){let s=this.bytes.slice(0),f=s[0]&128;if(f)eU(s);return parseInt(n0.toHex(s),16)*(f?-1:1)}toString(){return String(this.valueOf())}};jr(qS,"Int64");var ed=qS;function eU(r){for(let s=0;s<8;s++)r[s]^=255;for(let s=7;s>-1;s--)if(r[s]++,r[s]!==0)break}jr(eU,"negate");var nd=jr((r,s)=>{r=r.toLowerCase();for(let f of Object.keys(s))if(r===f.toLowerCase())return!0;return!1},"hasHeader"),mS=R0(),jS=jr((r,s={})=>{var f,h;let{headers:w,query:$={}}=mS.HttpRequest.clone(r);for(let E of Object.keys(w)){let I=E.toLowerCase();if(I.slice(0,6)==="x-amz-"&&!((f=s.unhoistableHeaders)==null?void 0:f.has(I))||((h=s.hoistableHeaders)==null?void 0:h.has(I)))$[E]=w[E],delete w[E]}return{...r,headers:w,query:$}},"moveHeadersToQuery"),nU=jr((r)=>{r=mS.HttpRequest.clone(r);for(let s of Object.keys(r.headers))if(Dd.indexOf(s.toLowerCase())>-1)delete r.headers[s];return r},"prepareRequest"),od=jr((r)=>ad(r).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),ad=jr((r)=>{if(typeof r==="number")return new Date(r*1000);if(typeof r==="string"){if(Number(r))return new Date(Number(r)*1000);return new Date(r)}return r},"toDate"),vS=class r{constructor({applyChecksum:s,credentials:f,region:h,service:w,sha256:$,uriEscapePath:E=!0}){this.headerFormatter=new gd,this.service=w,this.sha256=$,this.uriEscapePath=E,this.applyChecksum=typeof s==="boolean"?s:!0,this.regionProvider=KS.normalizeProvider(h),this.credentialProvider=KS.normalizeProvider(f)}async presign(s,f={}){let{signingDate:h=new Date,expiresIn:w=3600,unsignableHeaders:$,unhoistableHeaders:E,signableHeaders:I,hoistableHeaders:F,signingRegion:U,signingService:A}=f,L=await this.credentialProvider();this.validateResolvedCredentials(L);let S=U??await this.regionProvider(),{longDate:R,shortDate:P}=I3(h);if(w>Od)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let N=U3(P,S,A??this.service),M=jS(nU(s),{unhoistableHeaders:E,hoistableHeaders:F});if(L.sessionToken)M.query[VS]=L.sessionToken;M.query[Bd]=_U,M.query[Md]=`${L.accessKeyId}/${N}`,M.query[BS]=R,M.query[Hd]=w.toString(10);let l=xU(M,$,I);return M.query[Vd]=QS(l),M.query[MS]=await this.getSignature(R,N,this.getSigningKey(L,S,P,A),this.createCanonicalRequest(M,l,await G3(s,this.sha256))),M}async sign(s,f){if(typeof s==="string")return this.signString(s,f);else if(s.headers&&s.payload)return this.signEvent(s,f);else if(s.message)return this.signMessage(s,f);else return this.signRequest(s,f)}async signEvent({headers:s,payload:f},{signingDate:h=new Date,priorSignature:w,signingRegion:$,signingService:E}){let I=$??await this.regionProvider(),{shortDate:F,longDate:U}=I3(h),A=U3(F,I,E??this.service),L=await G3({headers:{},body:f},this.sha256),S=new this.sha256;S.update(s);let R=n0.toHex(await S.digest()),P=[jd,U,A,w,R,L].join("\n");return this.signString(P,{signingDate:h,signingRegion:I,signingService:E})}async signMessage(s,{signingDate:f=new Date,signingRegion:h,signingService:w}){return this.signEvent({headers:this.headerFormatter.format(s.message.headers),payload:s.message.body},{signingDate:f,signingRegion:h,signingService:w,priorSignature:s.priorSignature}).then((E)=>{return{message:s.message,signature:E}})}async signString(s,{signingDate:f=new Date,signingRegion:h,signingService:w}={}){let $=await this.credentialProvider();this.validateResolvedCredentials($);let E=h??await this.regionProvider(),{shortDate:I}=I3(f),F=new this.sha256(await this.getSigningKey($,E,I,w));return F.update(bU.toUint8Array(s)),n0.toHex(await F.digest())}async signRequest(s,{signingDate:f=new Date,signableHeaders:h,unsignableHeaders:w,signingRegion:$,signingService:E}={}){let I=await this.credentialProvider();this.validateResolvedCredentials(I);let F=$??await this.regionProvider(),U=nU(s),{longDate:A,shortDate:L}=I3(f),S=U3(L,F,E??this.service);if(U.headers[lS]=A,I.sessionToken)U.headers[yd]=I.sessionToken;let R=await G3(U,this.sha256);if(!nd(gU,U.headers)&&this.applyChecksum)U.headers[gU]=R;let P=xU(U,w,h),N=await this.getSignature(A,S,this.getSigningKey(I,F,L,E),this.createCanonicalRequest(U,P,R));return U.headers[HS]=`${_U} Credential=${I.accessKeyId}/${S}, SignedHeaders=${QS(P)}, Signature=${N}`,U}createCanonicalRequest(s,f,h){let w=Object.keys(f).sort();return`${s.method}
11
11
  ${this.getCanonicalPath(s)}
12
- ${c7(s)}
13
- ${h.map((E)=>`${E}:${f[E]}`).join("\n")}
12
+ ${yS(s)}
13
+ ${w.map(($)=>`${$}:${f[$]}`).join("\n")}
14
14
 
15
- ${h.join(";")}
16
- ${w}`}async createStringToSign(s,f,w){const h=new this.sha256;h.update(nF.toUint8Array(w));const E=await h.digest();return`${oF}
15
+ ${w.join(";")}
16
+ ${h}`}async createStringToSign(s,f,h){let w=new this.sha256;w.update(bU.toUint8Array(h));let $=await w.digest();return`${_U}
17
17
  ${s}
18
18
  ${f}
19
- ${b0.toHex(E)}`}getCanonicalPath({path:s}){if(this.uriEscapePath){const f=[];for(let E of s.split("/")){if((E==null?void 0:E.length)===0)continue;if(E===".")continue;if(E==="..")f.pop();else f.push(E)}const w=`${(s==null?void 0:s.startsWith("/"))?"/":""}${f.join("/")}${f.length>0&&(s==null?void 0:s.endsWith("/"))?"/":""}`;return T3.escapeUri(w).replace(/%2F/g,"/")}return s}async getSignature(s,f,w,h){const E=await this.createStringToSign(s,f,h),$=new this.sha256(await w);return $.update(nF.toUint8Array(E)),b0.toHex(await $.digest())}getSigningKey(s,f,w,h){return d7(this.sha256,s,w,f,h||this.service)}validateResolvedCredentials(s){if(typeof s!=="object"||typeof s.accessKeyId!=="string"||typeof s.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};mr(e7,"SignatureV4");var zc=e7,I3=mr((r)=>{const s=Cc(r).replace(/[\-:]/g,"");return{longDate:s,shortDate:s.slice(0,8)}},"formatDate"),y7=mr((r)=>Object.keys(r).sort().join(";"),"getCanonicalHeaderList")});var EY=O((x0r,hY)=>{var{defineProperty:L3,getOwnPropertyDescriptor:Sc,getOwnPropertyNames:Yc}=Object,Xc=Object.prototype.hasOwnProperty,Cf=(r,s)=>L3(r,"name",{value:s,configurable:!0}),Kc=(r,s)=>{for(var f in s)L3(r,f,{get:s[f],enumerable:!0})},Zc=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of Yc(s))if(!Xc.call(r,h)&&h!==f)L3(r,h,{get:()=>s[h],enumerable:!(w=Sc(s,h))||w.enumerable})}return r},Pc=(r)=>Zc(L3({},"__esModule",{value:!0}),r),rY={};Kc(rY,{AWSSDKSigV4Signer:()=>Mc,AwsSdkSigV4ASigner:()=>Hc,AwsSdkSigV4Signer:()=>sU,NODE_SIGV4A_CONFIG_OPTIONS:()=>kc,resolveAWSSDKSigV4Config:()=>Nc,resolveAwsSdkSigV4AConfig:()=>Dc,resolveAwsSdkSigV4Config:()=>wY,validateSigningProperties:()=>fU});hY.exports=Pc(rY);var Jc=L0(),Qc=L0(),a7=Cf((r)=>{var s,f;return Qc.HttpResponse.isInstance(r)?((s=r.headers)==null?void 0:s.date)??((f=r.headers)==null?void 0:f.Date):void 0},"getDateHeader"),rU=Cf((r)=>new Date(Date.now()+r),"getSkewCorrectedDate"),Bc=Cf((r,s)=>Math.abs(rU(s).getTime()-r)>=300000,"isClockSkewed"),p7=Cf((r,s)=>{const f=Date.parse(r);if(Bc(f,s))return f-Date.now();return s},"getUpdatedSystemClockOffset"),D1=Cf((r,s)=>{if(!s)throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`);return s},"throwSigningPropertyError"),fU=Cf(async(r)=>{var s,f,w;const h=D1("context",r.context),E=D1("config",r.config),$=(w=(f=(s=h.endpointV2)==null?void 0:s.properties)==null?void 0:f.authSchemes)==null?void 0:w[0],F=await D1("signer",E.signer)($),U=r==null?void 0:r.signingRegion,A=r==null?void 0:r.signingRegionSet,L=r==null?void 0:r.signingName;return{config:E,signer:F,signingRegion:U,signingRegionSet:A,signingName:L}},"validateSigningProperties"),fY=class r{async sign(s,f,w){var h;if(!Jc.HttpRequest.isInstance(s))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const E=await fU(w),{config:$,signer:I}=E;let{signingRegion:F,signingName:U}=E;const A=w.context;if(((h=A==null?void 0:A.authSchemes)==null?void 0:h.length)??0>1){const[S,z]=A.authSchemes;if((S==null?void 0:S.name)==="sigv4a"&&(z==null?void 0:z.name)==="sigv4")F=(z==null?void 0:z.signingRegion)??F,U=(z==null?void 0:z.signingName)??U}return await I.sign(s,{signingDate:rU($.systemClockOffset),signingRegion:F,signingService:U})}errorHandler(s){return(f)=>{const w=f.ServerTime??a7(f.$response);if(w){const h=D1("config",s.config),E=h.systemClockOffset;if(h.systemClockOffset=p7(w,h.systemClockOffset),h.systemClockOffset!==E&&f.$metadata)f.$metadata.clockSkewCorrected=!0}throw f}}successHandler(s,f){const w=a7(s);if(w){const h=D1("config",f.config);h.systemClockOffset=p7(w,h.systemClockOffset)}}};Cf(fY,"AwsSdkSigV4Signer");var sU=fY,Mc=sU,Vc=L0(),sY=class r extends sU{async sign(s,f,w){var h;if(!Vc.HttpRequest.isInstance(s))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:E,signer:$,signingRegion:I,signingRegionSet:F,signingName:U}=await fU(w),L=(await((h=E.sigv4aSigningRegionSet)==null?void 0:h.call(E))??F??[I]).join(",");return await $.sign(s,{signingDate:rU(E.systemClockOffset),signingRegion:L,signingService:U})}};Cf(sY,"AwsSdkSigV4ASigner");var Hc=sY,lc=qr(),u7=Ar(),Dc=Cf((r)=>{return r.sigv4aSigningRegionSet=lc.normalizeProvider(r.sigv4aSigningRegionSet),r},"resolveAwsSdkSigV4AConfig"),kc={environmentVariableSelector(r){if(r.AWS_SIGV4A_SIGNING_REGION_SET)return r.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((s)=>s.trim());throw new u7.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(r){if(r.sigv4a_signing_region_set)return(r.sigv4a_signing_region_set??"").split(",").map((s)=>s.trim());throw new u7.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},yc=tr(),Jw=qr(),t7=o7(),wY=Cf((r)=>{let s=!1,f;if(r.credentials)s=!0,f=Jw.memoizeIdentityProvider(r.credentials,Jw.isIdentityExpired,Jw.doesIdentityRequireRefresh);if(!f)if(r.credentialDefaultProvider)f=Jw.normalizeProvider(r.credentialDefaultProvider(Object.assign({},r,{parentClientConfig:r})));else f=Cf(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:w=!0,systemClockOffset:h=r.systemClockOffset||0,sha256:E}=r;let $;if(r.signer)$=Jw.normalizeProvider(r.signer);else if(r.regionInfoProvider)$=Cf(()=>Jw.normalizeProvider(r.region)().then(async(I)=>[await r.regionInfoProvider(I,{useFipsEndpoint:await r.useFipsEndpoint(),useDualstackEndpoint:await r.useDualstackEndpoint()})||{},I]).then(([I,F])=>{const{signingRegion:U,signingService:A}=I;r.signingRegion=r.signingRegion||U||F,r.signingName=r.signingName||A||r.serviceId;const L={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:E,uriEscapePath:w};return new(r.signerConstructor||t7.SignatureV4)(L)}),"signer");else $=Cf(async(I)=>{I=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:await Jw.normalizeProvider(r.region)(),properties:{}},I);const{signingRegion:F,signingName:U}=I;r.signingRegion=r.signingRegion||F,r.signingName=r.signingName||U||r.serviceId;const A={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:E,uriEscapePath:w};return new(r.signerConstructor||t7.SignatureV4)(A)},"signer");return{...r,systemClockOffset:h,signingEscapePath:w,credentials:s?async()=>f().then((I)=>yc.setCredentialFeature(I,"CREDENTIALS_CODE","e")):f,signer:$}},"resolveAwsSdkSigV4Config"),Nc=wY});var R3=O((ic)=>{var qc=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",$Y="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+qc+"]*",mc=new RegExp("^"+$Y+"$"),jc=function(r,s){const f=[];let w=s.exec(r);while(w){const h=[];h.startIndex=s.lastIndex-w[0].length;const E=w.length;for(let $=0;$<E;$++)h.push(w[$]);f.push(h),w=s.exec(r)}return f},vc=function(r){const s=mc.exec(r);return!(s===null||typeof s==="undefined")};ic.isExist=function(r){return typeof r!=="undefined"};ic.isEmptyObject=function(r){return Object.keys(r).length===0};ic.merge=function(r,s,f){if(s){const w=Object.keys(s),h=w.length;for(let E=0;E<h;E++)if(f==="strict")r[w[E]]=[s[w[E]]];else r[w[E]]=s[w[E]]}};ic.getValue=function(r){if(ic.isExist(r))return r;else return""};ic.isName=vc;ic.getAllMatches=jc;ic.nameRegexp=$Y});var hU=O((fb)=>{function FY(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function UY(r,s){const f=s;for(;s<r.length;s++)if(r[s]=="?"||r[s]==" "){const w=r.substr(f,s-f);if(s>5&&w==="xml")return Vr("InvalidXml","XML declaration allowed only at the start of the document.",rf(r,s));else if(r[s]=="?"&&r[s+1]==">"){s++;break}else continue}return s}function TY(r,s){if(r.length>s+5&&r[s+1]==="-"&&r[s+2]==="-"){for(s+=3;s<r.length;s++)if(r[s]==="-"&&r[s+1]==="-"&&r[s+2]===">"){s+=2;break}}else if(r.length>s+8&&r[s+1]==="D"&&r[s+2]==="O"&&r[s+3]==="C"&&r[s+4]==="T"&&r[s+5]==="Y"&&r[s+6]==="P"&&r[s+7]==="E"){let f=1;for(s+=8;s<r.length;s++)if(r[s]==="<")f++;else if(r[s]===">"){if(f--,f===0)break}}else if(r.length>s+9&&r[s+1]==="["&&r[s+2]==="C"&&r[s+3]==="D"&&r[s+4]==="A"&&r[s+5]==="T"&&r[s+6]==="A"&&r[s+7]==="["){for(s+=8;s<r.length;s++)if(r[s]==="]"&&r[s+1]==="]"&&r[s+2]===">"){s+=2;break}}return s}function oc(r,s){let f="",w="",h=!1;for(;s<r.length;s++){if(r[s]===ec||r[s]===nc)if(w==="")w=r[s];else if(w!==r[s]);else w="";else if(r[s]===">"){if(w===""){h=!0;break}}f+=r[s]}if(w!=="")return!1;return{value:f,index:s,tagClosed:h}}function GY(r,s){const f=wU.getAllMatches(r,ac),w={};for(let h=0;h<f.length;h++){if(f[h][1].length===0)return Vr("InvalidAttr","Attribute '"+f[h][2]+"' has no space in starting.",k1(f[h]));else if(f[h][3]!==void 0&&f[h][4]===void 0)return Vr("InvalidAttr","Attribute '"+f[h][2]+"' is without value.",k1(f[h]));else if(f[h][3]===void 0&&!s.allowBooleanAttributes)return Vr("InvalidAttr","boolean attribute '"+f[h][2]+"' is not allowed.",k1(f[h]));const E=f[h][2];if(!tc(E))return Vr("InvalidAttr","Attribute '"+E+"' is an invalid name.",k1(f[h]));if(!w.hasOwnProperty(E))w[E]=1;else return Vr("InvalidAttr","Attribute '"+E+"' is repeated.",k1(f[h]))}return!0}function pc(r,s){let f=/\d/;if(r[s]==="x")s++,f=/[\da-fA-F]/;for(;s<r.length;s++){if(r[s]===";")return s;if(!r[s].match(f))break}return-1}function uc(r,s){if(s++,r[s]===";")return-1;if(r[s]==="#")return s++,pc(r,s);let f=0;for(;s<r.length;s++,f++){if(r[s].match(/\w/)&&f<20)continue;if(r[s]===";")break;return-1}return s}function Vr(r,s,f){return{err:{code:r,msg:s,line:f.line||f,col:f.col}}}function tc(r){return wU.isName(r)}function rb(r){return wU.isName(r)}function rf(r,s){const f=r.substring(0,s).split(/\r?\n/);return{line:f.length,col:f[f.length-1].length+1}}function k1(r){return r.startIndex+r[1].length}var wU=R3(),xc={allowBooleanAttributes:!1,unpairedTags:[]};fb.validate=function(r,s){s=Object.assign({},xc,s);const f=[];let w=!1,h=!1;if(r[0]==="\uFEFF")r=r.substr(1);for(let E=0;E<r.length;E++)if(r[E]==="<"&&r[E+1]==="?"){if(E+=2,E=UY(r,E),E.err)return E}else if(r[E]==="<"){let $=E;if(E++,r[E]==="!"){E=TY(r,E);continue}else{let I=!1;if(r[E]==="/")I=!0,E++;let F="";for(;E<r.length&&r[E]!==">"&&r[E]!==" "&&r[E]!=="\t"&&r[E]!=="\n"&&r[E]!=="\r";E++)F+=r[E];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),E--;if(!rb(F)){let L;if(F.trim().length===0)L="Invalid space after '<'.";else L="Tag '"+F+"' is an invalid name.";return Vr("InvalidTag",L,rf(r,E))}const U=oc(r,E);if(U===!1)return Vr("InvalidAttr","Attributes for '"+F+"' have open quote.",rf(r,E));let A=U.value;if(E=U.index,A[A.length-1]==="/"){const L=E-A.length;A=A.substring(0,A.length-1);const S=GY(A,s);if(S===!0)w=!0;else return Vr(S.err.code,S.err.msg,rf(r,L+S.err.line))}else if(I)if(!U.tagClosed)return Vr("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",rf(r,E));else if(A.trim().length>0)return Vr("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",rf(r,$));else if(f.length===0)return Vr("InvalidTag","Closing tag '"+F+"' has not been opened.",rf(r,$));else{const L=f.pop();if(F!==L.tagName){let S=rf(r,L.tagStartPos);return Vr("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+S.line+", col "+S.col+") instead of closing tag '"+F+"'.",rf(r,$))}if(f.length==0)h=!0}else{const L=GY(A,s);if(L!==!0)return Vr(L.err.code,L.err.msg,rf(r,E-A.length+L.err.line));if(h===!0)return Vr("InvalidXml","Multiple possible root nodes found.",rf(r,E));else if(s.unpairedTags.indexOf(F)!==-1);else f.push({tagName:F,tagStartPos:$});w=!0}for(E++;E<r.length;E++)if(r[E]==="<")if(r[E+1]==="!"){E++,E=TY(r,E);continue}else if(r[E+1]==="?"){if(E=UY(r,++E),E.err)return E}else break;else if(r[E]==="&"){const L=uc(r,E);if(L==-1)return Vr("InvalidChar","char '&' is not expected.",rf(r,E));E=L}else if(h===!0&&!FY(r[E]))return Vr("InvalidXml","Extra text at the end",rf(r,E));if(r[E]==="<")E--}}else{if(FY(r[E]))continue;return Vr("InvalidChar","char '"+r[E]+"' is not expected.",rf(r,E))}if(!w)return Vr("InvalidXml","Start tag expected.",1);else if(f.length==1)return Vr("InvalidTag","Unclosed tag '"+f[0].tagName+"'.",rf(r,f[0].tagStartPos));else if(f.length>0)return Vr("InvalidXml","Invalid '"+JSON.stringify(f.map((E)=>E.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var ec='"',nc="'",ac=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var LY=O((hb)=>{var AY={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,s){return s},attributeValueProcessor:function(r,s){return s},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,s,f){return r}},wb=function(r){return Object.assign({},AY,r)};hb.buildOptions=wb;hb.defaultOptions=AY});var WY=O((a0r,CY)=>{class RY{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,s){if(r==="__proto__")r="#__proto__";this.child.push({[r]:s})}addChild(r){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0)this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]});else this.child.push({[r.tagname]:r.child})}}CY.exports=RY});var SY=O((p0r,zY)=>{function Fb(r,s){const f={};if(r[s+3]==="O"&&r[s+4]==="C"&&r[s+5]==="T"&&r[s+6]==="Y"&&r[s+7]==="P"&&r[s+8]==="E"){s=s+9;let w=1,h=!1,E=!1,$="";for(;s<r.length;s++)if(r[s]==="<"&&!E){if(h&&Gb(r,s)){if(s+=7,[entityName,val,s]=Ub(r,s+1),val.indexOf("&")===-1)f[Cb(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(h&&Ab(r,s))s+=8;else if(h&&Lb(r,s))s+=8;else if(h&&Rb(r,s))s+=9;else if(Tb)E=!0;else throw new Error("Invalid DOCTYPE");w++,$=""}else if(r[s]===">"){if(E){if(r[s-1]==="-"&&r[s-2]==="-")E=!1,w--}else w--;if(w===0)break}else if(r[s]==="[")h=!0;else $+=r[s];if(w!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:s}}function Ub(r,s){let f="";for(;s<r.length&&(r[s]!=="'"&&r[s]!=='"');s++)f+=r[s];if(f=f.trim(),f.indexOf(" ")!==-1)throw new Error("External entites are not supported");const w=r[s++];let h="";for(;s<r.length&&r[s]!==w;s++)h+=r[s];return[f,h,s]}function Tb(r,s){if(r[s+1]==="!"&&r[s+2]==="-"&&r[s+3]==="-")return!0;return!1}function Gb(r,s){if(r[s+1]==="!"&&r[s+2]==="E"&&r[s+3]==="N"&&r[s+4]==="T"&&r[s+5]==="I"&&r[s+6]==="T"&&r[s+7]==="Y")return!0;return!1}function Ab(r,s){if(r[s+1]==="!"&&r[s+2]==="E"&&r[s+3]==="L"&&r[s+4]==="E"&&r[s+5]==="M"&&r[s+6]==="E"&&r[s+7]==="N"&&r[s+8]==="T")return!0;return!1}function Lb(r,s){if(r[s+1]==="!"&&r[s+2]==="A"&&r[s+3]==="T"&&r[s+4]==="T"&&r[s+5]==="L"&&r[s+6]==="I"&&r[s+7]==="S"&&r[s+8]==="T")return!0;return!1}function Rb(r,s){if(r[s+1]==="!"&&r[s+2]==="N"&&r[s+3]==="O"&&r[s+4]==="T"&&r[s+5]==="A"&&r[s+6]==="T"&&r[s+7]==="I"&&r[s+8]==="O"&&r[s+9]==="N")return!0;return!1}function Cb(r){if(Ib.isName(r))return r;else throw new Error(`Invalid entity name ${r}`)}var Ib=R3();zY.exports=Fb});var XY=O((u0r,YY)=>{function Yb(r,s={}){if(s=Object.assign({},Sb,s),!r||typeof r!=="string")return r;let f=r.trim();if(s.skipLike!==void 0&&s.skipLike.test(f))return r;else if(s.hex&&Wb.test(f))return Number.parseInt(f,16);else{const w=zb.exec(f);if(w){const h=w[1],E=w[2];let $=Xb(w[3]);const I=w[4]||w[6];if(!s.leadingZeros&&E.length>0&&h&&f[2]!==".")return r;else if(!s.leadingZeros&&E.length>0&&!h&&f[1]!==".")return r;else{const F=Number(f),U=""+F;if(U.search(/[eE]/)!==-1)if(s.eNotation)return F;else return r;else if(I)if(s.eNotation)return F;else return r;else if(f.indexOf(".")!==-1)if(U==="0"&&$==="")return F;else if(U===$)return F;else if(h&&U==="-"+$)return F;else return r;if(E)if($===U)return F;else if(h+$===U)return F;else return r;if(f===U)return F;else if(f===h+U)return F;return r}}else return r}}function Xb(r){if(r&&r.indexOf(".")!==-1){if(r=r.replace(/0+$/,""),r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substr(0,r.length-1);return r}return r}var Wb=/^[-+]?0x[a-fA-F0-9]+$/,zb=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var Sb={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};YY.exports=Yb});var JY=O((t0r,PY)=>{function Pb(r){const s=Object.keys(r);for(let f=0;f<s.length;f++){const w=s[f];this.lastEntities[w]={regex:new RegExp("&"+w+";","g"),val:r[w]}}}function Jb(r,s,f,w,h,E,$){if(r!==void 0){if(this.options.trimValues&&!w)r=r.trim();if(r.length>0){if(!$)r=this.replaceEntitiesValue(r);const I=this.options.tagValueProcessor(s,r,f,h,E);if(I===null||I===void 0)return r;else if(typeof I!==typeof r||I!==r)return I;else if(this.options.trimValues)return $U(r,this.options.parseTagValue,this.options.numberParseOptions);else if(r.trim()===r)return $U(r,this.options.parseTagValue,this.options.numberParseOptions);else return r}}}function Qb(r){if(this.options.removeNSPrefix){const s=r.split(":"),f=r.charAt(0)==="/"?"/":"";if(s[0]==="xmlns")return"";if(s.length===2)r=f+s[1]}return r}function Mb(r,s,f){if(!this.options.ignoreAttributes&&typeof r==="string"){const w=KY.getAllMatches(r,Bb),h=w.length,E={};for(let $=0;$<h;$++){const I=this.resolveNameSpace(w[$][1]);let F=w[$][4],U=this.options.attributeNamePrefix+I;if(I.length){if(this.options.transformAttributeName)U=this.options.transformAttributeName(U);if(U==="__proto__")U="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const A=this.options.attributeValueProcessor(I,F,s);if(A===null||A===void 0)E[U]=F;else if(typeof A!==typeof F||A!==F)E[U]=A;else E[U]=$U(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)E[U]=!0}}if(!Object.keys(E).length)return;if(this.options.attributesGroupName){const $={};return $[this.options.attributesGroupName]=E,$}return E}}function Hb(r,s,f){const w=this.options.updateTag(s.tagname,f,s[":@"]);if(w===!1);else if(typeof w==="string")s.tagname=w,r.addChild(s);else r.addChild(s)}function Db(r,s,f,w){if(r){if(w===void 0)w=Object.keys(s.child).length===0;if(r=this.parseTextData(r,s.tagname,f,!1,s[":@"]?Object.keys(s[":@"]).length!==0:!1,w),r!==void 0&&r!=="")s.add(this.options.textNodeName,r);r=""}return r}function kb(r,s,f){const w="*."+f;for(let h in r){const E=r[h];if(w===E||s===E)return!0}return!1}function yb(r,s,f=">"){let w,h="";for(let E=s;E<r.length;E++){let $=r[E];if(w){if($===w)w=""}else if($==='"'||$==="'")w=$;else if($===f[0])if(f[1]){if(r[E+1]===f[1])return{data:h,index:E}}else return{data:h,index:E};else if($==="\t")$=" ";h+=$}}function Qw(r,s,f,w){const h=r.indexOf(s,f);if(h===-1)throw new Error(w);else return h+s.length-1}function EU(r,s,f,w=">"){const h=yb(r,s+1,w);if(!h)return;let E=h.data;const $=h.index,I=E.search(/\s/);let F=E,U=!0;if(I!==-1)F=E.substring(0,I),E=E.substring(I+1).trimStart();const A=F;if(f){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1),U=F!==h.data.substr(L+1)}return{tagName:F,tagExp:E,closeIndex:$,attrExpPresent:U,rawTagName:A}}function Nb(r,s,f){const w=f;let h=1;for(;f<r.length;f++)if(r[f]==="<")if(r[f+1]==="/"){const E=Qw(r,">",f,`${s} is not closed`);if(r.substring(f+2,E).trim()===s){if(h--,h===0)return{tagContent:r.substring(w,f),i:E}}f=E}else if(r[f+1]==="?")f=Qw(r,"?>",f+1,"StopNode is not closed.");else if(r.substr(f+1,3)==="!--")f=Qw(r,"-->",f+3,"StopNode is not closed.");else if(r.substr(f+1,2)==="![")f=Qw(r,"]]>",f,"StopNode is not closed.")-2;else{const E=EU(r,f,">");if(E){if((E&&E.tagName)===s&&E.tagExp[E.tagExp.length-1]!=="/")h++;f=E.closeIndex}}}function $U(r,s,f){if(s&&typeof r==="string"){const w=r.trim();if(w==="true")return!0;else if(w==="false")return!1;else return Zb(r,f)}else if(KY.isExist(r))return r;else return""}var KY=R3(),y1=WY(),Kb=SY(),Zb=XY();class ZY{constructor(r){this.options=r,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(s,f)=>String.fromCharCode(Number.parseInt(f,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(s,f)=>String.fromCharCode(Number.parseInt(f,16))}},this.addExternalEntities=Pb,this.parseXml=Vb,this.parseTextData=Jb,this.resolveNameSpace=Qb,this.buildAttributesMap=Mb,this.isItStopNode=kb,this.replaceEntitiesValue=lb,this.readStopNodeData=Nb,this.saveTextToParentTag=Db,this.addChild=Hb}}var Bb=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),Vb=function(r){r=r.replace(/\r\n?/g,"\n");const s=new y1("!xml");let f=s,w="",h="";for(let E=0;E<r.length;E++)if(r[E]==="<")if(r[E+1]==="/"){const I=Qw(r,">",E,"Closing Tag is not closed.");let F=r.substring(E+2,I).trim();if(this.options.removeNSPrefix){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(f)w=this.saveTextToParentTag(w,f,h);const U=h.substring(h.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let A=0;if(U&&this.options.unpairedTags.indexOf(U)!==-1)A=h.lastIndexOf(".",h.lastIndexOf(".")-1),this.tagsNodeStack.pop();else A=h.lastIndexOf(".");h=h.substring(0,A),f=this.tagsNodeStack.pop(),w="",E=I}else if(r[E+1]==="?"){let I=EU(r,E,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(w=this.saveTextToParentTag(w,f,h),this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags);else{const F=new y1(I.tagName);if(F.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent)F[":@"]=this.buildAttributesMap(I.tagExp,h,I.tagName);this.addChild(f,F,h)}E=I.closeIndex+1}else if(r.substr(E+1,3)==="!--"){const I=Qw(r,"-->",E+4,"Comment is not closed.");if(this.options.commentPropName){const F=r.substring(E+4,I-2);w=this.saveTextToParentTag(w,f,h),f.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}E=I}else if(r.substr(E+1,2)==="!D"){const I=Kb(r,E);this.docTypeEntities=I.entities,E=I.i}else if(r.substr(E+1,2)==="!["){const I=Qw(r,"]]>",E,"CDATA is not closed.")-2,F=r.substring(E+9,I);w=this.saveTextToParentTag(w,f,h);let U=this.parseTextData(F,f.tagname,h,!0,!1,!0,!0);if(U==null)U="";if(this.options.cdataPropName)f.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else f.add(this.options.textNodeName,U);E=I+2}else{let I=EU(r,E,this.options.removeNSPrefix),F=I.tagName;const U=I.rawTagName;let{tagExp:A,attrExpPresent:L,closeIndex:S}=I;if(this.options.transformTagName)F=this.options.transformTagName(F);if(f&&w){if(f.tagname!=="!xml")w=this.saveTextToParentTag(w,f,h,!1)}const z=f;if(z&&this.options.unpairedTags.indexOf(z.tagname)!==-1)f=this.tagsNodeStack.pop(),h=h.substring(0,h.lastIndexOf("."));if(F!==s.tagname)h+=h?"."+F:F;if(this.isItStopNode(this.options.stopNodes,h,F)){let Z="";if(A.length>0&&A.lastIndexOf("/")===A.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),A=F;else A=A.substr(0,A.length-1);E=I.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)E=I.closeIndex;else{const M=this.readStopNodeData(r,U,S+1);if(!M)throw new Error(`Unexpected end of ${U}`);E=M.i,Z=M.tagContent}const N=new y1(F);if(F!==A&&L)N[":@"]=this.buildAttributesMap(A,h,F);if(Z)Z=this.parseTextData(Z,F,h,!0,L,!0,!0);h=h.substr(0,h.lastIndexOf(".")),N.add(this.options.textNodeName,Z),this.addChild(f,N,h)}else{if(A.length>0&&A.lastIndexOf("/")===A.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),A=F;else A=A.substr(0,A.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const Z=new y1(F);if(F!==A&&L)Z[":@"]=this.buildAttributesMap(A,h,F);this.addChild(f,Z,h),h=h.substr(0,h.lastIndexOf("."))}else{const Z=new y1(F);if(this.tagsNodeStack.push(f),F!==A&&L)Z[":@"]=this.buildAttributesMap(A,h,F);this.addChild(f,Z,h),f=Z}w="",E=S}}else w+=r[E];return s.child},lb=function(r){if(this.options.processEntities){for(let s in this.docTypeEntities){const f=this.docTypeEntities[s];r=r.replace(f.regx,f.val)}for(let s in this.lastEntities){const f=this.lastEntities[s];r=r.replace(f.regex,f.val)}if(this.options.htmlEntities)for(let s in this.htmlEntities){const f=this.htmlEntities[s];r=r.replace(f.regex,f.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};PY.exports=ZY});var BY=O((ib)=>{function qb(r,s){return QY(r,s)}function QY(r,s,f){let w;const h={};for(let E=0;E<r.length;E++){const $=r[E],I=mb($);let F="";if(f===void 0)F=I;else F=f+"."+I;if(I===s.textNodeName)if(w===void 0)w=$[I];else w+=""+$[I];else if(I===void 0)continue;else if($[I]){let U=QY($[I],s,F);const A=vb(U,s);if($[":@"])jb(U,$[":@"],F,s);else if(Object.keys(U).length===1&&U[s.textNodeName]!==void 0&&!s.alwaysCreateTextNode)U=U[s.textNodeName];else if(Object.keys(U).length===0)if(s.alwaysCreateTextNode)U[s.textNodeName]="";else U="";if(h[I]!==void 0&&h.hasOwnProperty(I)){if(!Array.isArray(h[I]))h[I]=[h[I]];h[I].push(U)}else if(s.isArray(I,F,A))h[I]=[U];else h[I]=U}}if(typeof w==="string"){if(w.length>0)h[s.textNodeName]=w}else if(w!==void 0)h[s.textNodeName]=w;return h}function mb(r){const s=Object.keys(r);for(let f=0;f<s.length;f++){const w=s[f];if(w!==":@")return w}}function jb(r,s,f,w){if(s){const h=Object.keys(s),E=h.length;for(let $=0;$<E;$++){const I=h[$];if(w.isArray(I,f+"."+I,!0,!0))r[I]=[s[I]];else r[I]=s[I]}}}function vb(r,s){const{textNodeName:f}=s,w=Object.keys(r).length;if(w===0)return!0;if(w===1&&(r[f]||typeof r[f]==="boolean"||r[f]===0))return!0;return!1}ib.prettify=qb});var HY=O((fwr,VY)=>{var{buildOptions:db}=LY(),cb=JY(),{prettify:bb}=BY(),_b=hU();class MY{constructor(r){this.externalEntities={},this.options=db(r)}parse(r,s){if(typeof r==="string");else if(r.toString)r=r.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(s){if(s===!0)s={};const h=_b.validate(r,s);if(h!==!0)throw Error(`${h.err.msg}:${h.err.line}:${h.err.col}`)}const f=new cb(this.options);f.addExternalEntities(this.externalEntities);const w=f.parseXml(r);if(this.options.preserveOrder||w===void 0)return w;else return bb(w,this.options)}addEntity(r,s){if(s.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(r.indexOf("&")!==-1||r.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(s==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[r]=s}}VY.exports=MY});var NY=O((swr,yY)=>{function gb(r,s){let f="";if(s.format&&s.indentBy.length>0)f="\n";return DY(r,s,"",f)}function DY(r,s,f,w){let h="",E=!1;for(let $=0;$<r.length;$++){const I=r[$],F=xb(I);if(F===void 0)continue;let U="";if(f.length===0)U=F;else U=`${f}.${F}`;if(F===s.textNodeName){let Z=I[F];if(!eb(U,s))Z=s.tagValueProcessor(F,Z),Z=kY(Z,s);if(E)h+=w;h+=Z,E=!1;continue}else if(F===s.cdataPropName){if(E)h+=w;h+=`<![CDATA[${I[F][0][s.textNodeName]}]]>`,E=!1;continue}else if(F===s.commentPropName){h+=w+`<!--${I[F][0][s.textNodeName]}-->`,E=!0;continue}else if(F[0]==="?"){const Z=lY(I[":@"],s),N=F==="?xml"?"":w;let M=I[F][0][s.textNodeName];M=M.length!==0?" "+M:"",h+=N+`<${F}${M}${Z}?>`,E=!0;continue}let A=w;if(A!=="")A+=s.indentBy;const L=lY(I[":@"],s),S=w+`<${F}${L}`,z=DY(I[F],s,U,A);if(s.unpairedTags.indexOf(F)!==-1)if(s.suppressUnpairedNode)h+=S+">";else h+=S+"/>";else if((!z||z.length===0)&&s.suppressEmptyNode)h+=S+"/>";else if(z&&z.endsWith(">"))h+=S+`>${z}${w}</${F}>`;else{if(h+=S+">",z&&w!==""&&(z.includes("/>")||z.includes("</")))h+=w+s.indentBy+z+w;else h+=z;h+=`</${F}>`}E=!0}return h}function xb(r){const s=Object.keys(r);for(let f=0;f<s.length;f++){const w=s[f];if(!r.hasOwnProperty(w))continue;if(w!==":@")return w}}function lY(r,s){let f="";if(r&&!s.ignoreAttributes)for(let w in r){if(!r.hasOwnProperty(w))continue;let h=s.attributeValueProcessor(w,r[w]);if(h=kY(h,s),h===!0&&s.suppressBooleanAttributes)f+=` ${w.substr(s.attributeNamePrefix.length)}`;else f+=` ${w.substr(s.attributeNamePrefix.length)}="${h}"`}return f}function eb(r,s){r=r.substr(0,r.length-s.textNodeName.length-1);let f=r.substr(r.lastIndexOf(".")+1);for(let w in s.stopNodes)if(s.stopNodes[w]===r||s.stopNodes[w]==="*."+f)return!0;return!1}function kY(r,s){if(r&&r.length>0&&s.processEntities)for(let f=0;f<s.entities.length;f++){const w=s.entities[f];r=r.replace(w.regex,w.val)}return r}yY.exports=gb});var mY=O((wwr,qY)=>{function _0(r){if(this.options=Object.assign({},ob,r),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ub;if(this.processTextOrObjNode=ab,this.options.format)this.indentate=pb,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}function ab(r,s,f){const w=this.j2x(r,f+1);if(r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1)return this.buildTextValNode(r[this.options.textNodeName],s,w.attrStr,f);else return this.buildObjectNode(w.val,s,w.attrStr,f)}function pb(r){return this.options.indentBy.repeat(r)}function ub(r){if(r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName)return r.substr(this.attrPrefixLen);else return!1}var nb=NY(),ob={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,s){return s},attributeValueProcessor:function(r,s){return s},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};_0.prototype.build=function(r){if(this.options.preserveOrder)return nb(r,this.options);else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)r={[this.options.arrayNodeName]:r};return this.j2x(r,0).val}};_0.prototype.j2x=function(r,s){let f="",w="";for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;if(typeof r[h]==="undefined"){if(this.isAttribute(h))w+=""}else if(r[h]===null)if(this.isAttribute(h))w+="";else if(h[0]==="?")w+=this.indentate(s)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(s)+"<"+h+"/"+this.tagEndChar;else if(r[h]instanceof Date)w+=this.buildTextValNode(r[h],h,"",s);else if(typeof r[h]!=="object"){const E=this.isAttribute(h);if(E)f+=this.buildAttrPairStr(E,""+r[h]);else if(h===this.options.textNodeName){let $=this.options.tagValueProcessor(h,""+r[h]);w+=this.replaceEntitiesValue($)}else w+=this.buildTextValNode(r[h],h,"",s)}else if(Array.isArray(r[h])){const E=r[h].length;let $="",I="";for(let F=0;F<E;F++){const U=r[h][F];if(typeof U==="undefined");else if(U===null)if(h[0]==="?")w+=this.indentate(s)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(s)+"<"+h+"/"+this.tagEndChar;else if(typeof U==="object")if(this.options.oneListGroup){const A=this.j2x(U,s+1);if($+=A.val,this.options.attributesGroupName&&U.hasOwnProperty(this.options.attributesGroupName))I+=A.attrStr}else $+=this.processTextOrObjNode(U,h,s);else if(this.options.oneListGroup){let A=this.options.tagValueProcessor(h,U);A=this.replaceEntitiesValue(A),$+=A}else $+=this.buildTextValNode(U,h,"",s)}if(this.options.oneListGroup)$=this.buildObjectNode($,h,I,s);w+=$}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const E=Object.keys(r[h]),$=E.length;for(let I=0;I<$;I++)f+=this.buildAttrPairStr(E[I],""+r[h][E[I]])}else w+=this.processTextOrObjNode(r[h],h,s)}return{attrStr:f,val:w}};_0.prototype.buildAttrPairStr=function(r,s){if(s=this.options.attributeValueProcessor(r,""+s),s=this.replaceEntitiesValue(s),this.options.suppressBooleanAttributes&&s==="true")return" "+r;else return" "+r+'="'+s+'"'};_0.prototype.buildObjectNode=function(r,s,f,w){if(r==="")if(s[0]==="?")return this.indentate(w)+"<"+s+f+"?"+this.tagEndChar;else return this.indentate(w)+"<"+s+f+this.closeTag(s)+this.tagEndChar;else{let h="</"+s+this.tagEndChar,E="";if(s[0]==="?")E="?",h="";if((f||f==="")&&r.indexOf("<")===-1)return this.indentate(w)+"<"+s+f+E+">"+r+h;else if(this.options.commentPropName!==!1&&s===this.options.commentPropName&&E.length===0)return this.indentate(w)+`<!--${r}-->`+this.newLine;else return this.indentate(w)+"<"+s+f+E+this.tagEndChar+r+this.indentate(w)+h}};_0.prototype.closeTag=function(r){let s="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)s="/"}else if(this.options.suppressEmptyNode)s="/";else s=`></${r}`;return s};_0.prototype.buildTextValNode=function(r,s,f,w){if(this.options.cdataPropName!==!1&&s===this.options.cdataPropName)return this.indentate(w)+`<![CDATA[${r}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&s===this.options.commentPropName)return this.indentate(w)+`<!--${r}-->`+this.newLine;else if(s[0]==="?")return this.indentate(w)+"<"+s+f+"?"+this.tagEndChar;else{let h=this.options.tagValueProcessor(s,r);if(h=this.replaceEntitiesValue(h),h==="")return this.indentate(w)+"<"+s+f+this.closeTag(s)+this.tagEndChar;else return this.indentate(w)+"<"+s+f+">"+h+"</"+s+this.tagEndChar}};_0.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let s=0;s<this.options.entities.length;s++){const f=this.options.entities[s];r=r.replace(f.regex,f.val)}return r};qY.exports=_0});var vY=O((hwr,jY)=>{var tb=hU(),r_=HY(),f_=mY();jY.exports={XMLParser:r_,XMLValidator:tb,XMLBuilder:f_}});var _Y=O((Ewr,bY)=>{var{defineProperty:C3,getOwnPropertyDescriptor:s_,getOwnPropertyNames:w_}=Object,h_=Object.prototype.hasOwnProperty,Wf=(r,s)=>C3(r,"name",{value:s,configurable:!0}),E_=(r,s)=>{for(var f in s)C3(r,f,{get:s[f],enumerable:!0})},$_=(r,s,f,w)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let h of w_(s))if(!h_.call(r,h)&&h!==f)C3(r,h,{get:()=>s[h],enumerable:!(w=s_(s,h))||w.enumerable})}return r},I_=(r)=>$_(C3({},"__esModule",{value:!0}),r),iY={};E_(iY,{_toBool:()=>U_,_toNum:()=>T_,_toStr:()=>F_,awsExpectUnion:()=>A_,loadRestJsonErrorCode:()=>C_,loadRestXmlErrorCode:()=>Y_,parseJsonBody:()=>dY,parseJsonErrorBody:()=>R_,parseXmlBody:()=>cY,parseXmlErrorBody:()=>S_});bY.exports=I_(iY);var F_=Wf((r)=>{if(r==null)return r;if(typeof r==="number"||typeof r==="bigint"){const s=new Error(`Received number ${r} where a string was expected.`);return s.name="Warning",console.warn(s),String(r)}if(typeof r==="boolean"){const s=new Error(`Received boolean ${r} where a string was expected.`);return s.name="Warning",console.warn(s),String(r)}return r},"_toStr"),U_=Wf((r)=>{if(r==null)return r;if(typeof r==="string"){const s=r.toLowerCase();if(r!==""&&s!=="false"&&s!=="true"){const f=new Error(`Received string "${r}" where a boolean was expected.`);f.name="Warning",console.warn(f)}return r!==""&&s!=="false"}return r},"_toBool"),T_=Wf((r)=>{if(r==null)return r;if(typeof r==="string"){const s=Number(r);if(s.toString()!==r){const f=new Error(`Received string "${r}" where a number was expected.`);return f.name="Warning",console.warn(f),r}return s}return r},"_toNum"),G_=$h(),A_=Wf((r)=>{if(r==null)return;if(typeof r==="object"&&"__type"in r)delete r.__type;return G_.expectUnion(r)},"awsExpectUnion"),L_=$h(),OY=Wf((r,s)=>L_.collectBody(r,s).then((f)=>s.utf8Encoder(f)),"collectBodyString"),dY=Wf((r,s)=>OY(r,s).then((f)=>{if(f.length)try{return JSON.parse(f)}catch(w){if((w==null?void 0:w.name)==="SyntaxError")Object.defineProperty(w,"$responseBodyText",{value:f});throw w}return{}}),"parseJsonBody"),R_=Wf(async(r,s)=>{const f=await dY(r,s);return f.message=f.message??f.Message,f},"parseJsonErrorBody"),C_=Wf((r,s)=>{const f=Wf((E,$)=>Object.keys(E).find((I)=>I.toLowerCase()===$.toLowerCase()),"findKey"),w=Wf((E)=>{let $=E;if(typeof $==="number")$=$.toString();if($.indexOf(",")>=0)$=$.split(",")[0];if($.indexOf(":")>=0)$=$.split(":")[0];if($.indexOf("#")>=0)$=$.split("#")[1];return $},"sanitizeErrorCode"),h=f(r.headers,"x-amzn-errortype");if(h!==void 0)return w(r.headers[h]);if(s.code!==void 0)return w(s.code);if(s.__type!==void 0)return w(s.__type)},"loadRestJsonErrorCode"),W_=$h(),z_=vY(),cY=Wf((r,s)=>OY(r,s).then((f)=>{if(f.length){const w=new z_.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,U)=>U.trim()===""&&U.includes("\n")?"":void 0});w.addEntity("#xD","\r"),w.addEntity("#10","\n");let h;try{h=w.parse(f,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:f});throw F}const E="#text",$=Object.keys(h)[0],I=h[$];if(I[E])I[$]=I[E],delete I[E];return W_.getValueFromTextNode(I)}return{}}),"parseXmlBody"),S_=Wf(async(r,s)=>{const f=await cY(r,s);if(f.Error)f.Error.message=f.Error.message??f.Error.Message;return f},"parseXmlErrorBody"),Y_=Wf((r,s)=>{var f;if(((f=s==null?void 0:s.Error)==null?void 0:f.Code)!==void 0)return s.Error.Code;if((s==null?void 0:s.Code)!==void 0)return s.Code;if(r.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Qr=O((N1)=>{Object.defineProperty(N1,"__esModule",{value:!0});var IU=J7();IU.__exportStar(tr(),N1);IU.__exportStar(EY(),N1);IU.__exportStar(_Y(),N1)});async function gY(r,s,f){const w=f.request;if(typeof s.accountIdEndpointMode==="function")switch(await s.accountIdEndpointMode?.()){case"disabled":Gh.setFeature(r,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Gh.setFeature(r,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Gh.setFeature(r,"ACCOUNT_ID_MODE_REQUIRED","R");break}const h=r.__smithy_context?.selectedHttpAuthScheme?.identity;if(h?.$source){const E=h;if(E.accountId)Gh.setFeature(r,"RESOLVED_ACCOUNT_ID","T");for(let[$,I]of Object.entries(E.$source??{}))Gh.setFeature(r,$,I)}}var Gh;var xY=G(()=>{Gh=m(Qr(),1)});var FU="user-agent",W3="x-amz-user-agent",UU=" ",z3="/",eY,nY,TU="-";var oY=G(()=>{eY=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,nY=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});function aY(r){let s="";for(let f in r){const w=r[f];if(s.length+w.length+1<=1024){if(s.length)s+=","+w;else s+=w;continue}break}return s}var X_=(r)=>(s,f)=>async(w)=>{const{request:h}=w;if(!Mr.isInstance(h))return s(w);const{headers:E}=h,$=f?.userAgent?.map(S3)||[],I=(await r.defaultUserAgentProvider()).map(S3);await gY(f,r,w);const F=f;I.push(`m/${aY(Object.assign({},f.__smithy_context?.features,F.__aws_sdk_context?.features))}`);const U=r?.customUserAgent?.map(S3)||[],A=await r.userAgentAppId();if(A)I.push(S3([`app/${A}`]));const L=dS(),S=(L?[L]:[]).concat([...I,...$,...U]).join(UU),z=[...I.filter((Z)=>Z.startsWith("aws-sdk-")),...U].join(UU);if(r.runtime!=="browser"){if(z)E[W3]=E[W3]?`${E[FU]} ${z}`:z;E[FU]=S}else E[W3]=S;return s({...w,request:h})},S3=(r)=>{const s=r[0].split(z3).map(($)=>$.replace(eY,TU)).join(z3),f=r[1]?.replace(nY,TU),w=s.indexOf(z3),h=s.substring(0,w);let E=s.substring(w+1);if(h==="api")E=E.toLowerCase();return[h,E,f].filter(($)=>$&&$.length>0).reduce(($,I,F)=>{switch(F){case 0:return I;case 1:return`${$}/${I}`;default:return`${$}#${I}`}},"")},K_,Vs=(r)=>({applyToStack:(s)=>{s.add(X_(r),K_)}});var pY=G(()=>{Pw();kr();xY();oY();K_={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var Bw=G(()=>{tz();pY()});var Ah=(r,s,f)=>{if(!(s in r))return;if(r[s]==="true")return!0;if(r[s]==="false")return!1;throw new Error(`Cannot load ${f} "${s}". Expected "true" or "false", got ${r[s]}.`)};var g0;var uY=G(()=>{(function(r){r.ENV="env",r.CONFIG="shared config entry"})(g0||(g0={}))});var GU=G(()=>{uY()});var Z_="AWS_USE_DUALSTACK_ENDPOINT",P_="use_dualstack_endpoint",Hs;var tY=G(()=>{GU();Hs={environmentVariableSelector:(r)=>Ah(r,Z_,g0.ENV),configFileSelector:(r)=>Ah(r,P_,g0.CONFIG),default:!1}});var J_="AWS_USE_FIPS_ENDPOINT",Q_="use_fips_endpoint",ls;var rX=G(()=>{GU();ls={environmentVariableSelector:(r)=>Ah(r,J_,g0.ENV),configFileSelector:(r)=>Ah(r,Q_,g0.CONFIG),default:!1}});var AU,Vf=(r)=>r[AU.SMITHY_CONTEXT_KEY]||(r[AU.SMITHY_CONTEXT_KEY]={});var fX=G(()=>{AU=m(Ff(),1)});var yr=(r)=>{if(typeof r==="function")return r;const s=Promise.resolve(r);return()=>s};var Es=G(()=>{fX()});var sX=G(()=>{Es()});var wX=G(()=>{Es()});var hX=G(()=>{tY();rX();sX();wX()});var Hf,Ds;var EX=G(()=>{Hf={environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>r.region,default:()=>{throw new Error("Region is missing")}},Ds={preferredFile:"credentials"}});var Y3=(r)=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"));var LU=(r)=>Y3(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r;var $X=()=>{};var ks=(r)=>{const{region:s,useFipsEndpoint:f}=r;if(!s)throw new Error("Region is missing");return{...r,region:async()=>{if(typeof s==="string")return LU(s);const w=await s();return LU(w)},useFipsEndpoint:async()=>{const w=typeof s==="string"?s:await s();if(Y3(w))return!0;return typeof f!=="function"?Promise.resolve(!!f):f()}}};var IX=G(()=>{$X()});var FX=G(()=>{EX();IX()});var UX=()=>{};var TX=()=>{};var GX=()=>{};var AX=G(()=>{UX();TX();GX()});var lf=G(()=>{hX();FX();AX()});function B_(r){return(s)=>async(f)=>{const w=f.request;if(Mr.isInstance(w)){const{body:h,headers:E}=w;if(h&&Object.keys(E).map(($)=>$.toLowerCase()).indexOf(LX)===-1)try{const $=r(h);w.headers={...w.headers,[LX]:String($)}}catch($){}}return s({...f,request:w})}}var LX="content-length",M_,ys=(r)=>({applyToStack:(s)=>{s.add(B_(r.bodyLengthChecker),M_)}});var Lh=G(()=>{kr();M_={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var RX=async(r)=>{const s=r?.Bucket||"";if(typeof r.Bucket==="string")r.Bucket=s.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(k_(s)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!D_(s)||s.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||s.toLowerCase()!==s||s.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},V_,H_,l_,D_=(r)=>V_.test(r)&&!H_.test(r)&&!l_.test(r),k_=(r)=>{const[s,f,w,,,h]=r.split(":"),E=s==="arn"&&r.split(":").length>=6,$=Boolean(E&&f&&w&&h);if(E&&!$)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return $};var CX=G(()=>{V_=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,H_=/(\d+\.){3}\d+/,l_=/\.\./});var WX=G(()=>{CX()});var zX=(r,s,f)=>{const w=async()=>{const h=f[r]??f[s];if(typeof h==="function")return h();return h};if(r==="credentialScope"||s==="CredentialScope")return async()=>{const h=typeof f.credentials==="function"?await f.credentials():f.credentials;return h?.credentialScope??h?.CredentialScope};if(r==="accountId"||s==="AccountId")return async()=>{const h=typeof f.credentials==="function"?await f.credentials():f.credentials;return h?.accountId??h?.AccountId};if(r==="endpoint"||s==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:E,hostname:$,port:I,path:F}=h;return`${E}//${$}${I?":"+I:""}${F}`}}return h};return w};function X3(r){try{const s=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return s.delete("CONFIG"),s.delete("CONFIG_PREFIX_SEPARATOR"),s.delete("ENV"),[...s].join(", ")}catch(s){return r}}var SX,YX=(r,s)=>async()=>{try{const f=r(process.env);if(f===void 0)throw new Error;return f}catch(f){throw new SX.CredentialsProviderError(f.message||`Not found in ENV: ${X3(r.toString())}`,{logger:s})}};var XX=G(()=>{SX=m(Ar(),1)});import{homedir as y_}from"os";import{sep as N_}from"path";var RU,q_=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},x0=()=>{const{HOME:r,USERPROFILE:s,HOMEPATH:f,HOMEDRIVE:w=`C:${N_}`}=process.env;if(r)return r;if(s)return s;if(f)return`${w}${f}`;const h=q_();if(!RU[h])RU[h]=y_();return RU[h]};var Rh=G(()=>{RU={}});var KX="AWS_PROFILE",Df=(r)=>r.profile||process.env.AWS_PROFILE||"default";import{createHash as m_}from"crypto";import{join as j_}from"path";var K3=(r)=>{const f=m_("sha1").update(r).digest("hex");return j_(x0(),".aws","sso","cache",`${f}.json`)};var CU=G(()=>{Rh()});import{promises as v_}from"fs";var i_,Z3=async(r)=>{const s=K3(r),f=await i_(s,"utf8");return JSON.parse(f)};var ZX=G(()=>{CU();({readFile:i_}=v_)});var WU,PX=(r)=>Object.entries(r).filter(([s])=>{const f=s.indexOf(kf);if(f===-1)return!1;return Object.values(WU.IniSectionType).includes(s.substring(0,f))}).reduce((s,[f,w])=>{const h=f.indexOf(kf),E=f.substring(0,h)===WU.IniSectionType.PROFILE?f.substring(h+1):f;return s[E]=w,s},{...r.default&&{default:r.default}});var JX=G(()=>{WU=m(Ff(),1);Ch()});import{join as O_}from"path";var d_="AWS_CONFIG_FILE",P3=()=>process.env[d_]||O_(x0(),".aws","config");var zU=G(()=>{Rh()});import{join as c_}from"path";var b_="AWS_SHARED_CREDENTIALS_FILE",QX=()=>process.env[b_]||c_(x0(),".aws","credentials");var BX=G(()=>{Rh()});var MX,__,g_,q1=(r)=>{const s={};let f,w;for(let h of r.split(/\r?\n/)){const E=h.split(/(^|\s)[;#]/)[0].trim();if(E[0]==="["&&E[E.length-1]==="]"){f=void 0,w=void 0;const I=E.substring(1,E.length-1),F=__.exec(I);if(F){const[,U,,A]=F;if(Object.values(MX.IniSectionType).includes(U))f=[U,A].join(kf)}else f=I;if(g_.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(f){const I=E.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[E.substring(0,I).trim(),E.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;s[f]=s[f]||{};const A=w?[w,F].join(kf):F;s[f][A]=U}}}}return s};var SU=G(()=>{MX=m(Ff(),1);Ch();__=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,g_=["__proto__","profile __proto__"]});import{promises as x_}from"fs";var e_,YU,m1=(r,s)=>{if(!YU[r]||s?.ignoreCache)YU[r]=e_(r,"utf8");return YU[r]};var XU=G(()=>{({readFile:e_}=x_),YU={}});import{join as VX}from"path";var HX=()=>({}),kf=".",J3=async(r={})=>{const{filepath:s=QX(),configFilepath:f=P3()}=r,w=x0();let E=s;if(s.startsWith("~/"))E=VX(w,s.slice(2));let $=f;if(f.startsWith("~/"))$=VX(w,f.slice(2));const I=await Promise.all([m1($,{ignoreCache:r.ignoreCache}).then(q1).then(PX).catch(HX),m1(E,{ignoreCache:r.ignoreCache}).then(q1).catch(HX)]);return{configFile:I[0],credentialsFile:I[1]}};var Ch=G(()=>{JX();zU();BX();Rh();SU();XU()});var lX,DX=(r)=>Object.entries(r).filter(([s])=>s.startsWith(lX.IniSectionType.SSO_SESSION+kf)).reduce((s,[f,w])=>({...s,[f.substring(f.indexOf(kf)+1)]:w}),{});var kX=G(()=>{lX=m(Ff(),1);Ch()});var n_=()=>({}),Q3=async(r={})=>m1(r.configFilepath??P3()).then(q1).then(DX).catch(n_);var yX=G(()=>{zU();kX();SU();XU()});var NX=(...r)=>{const s={};for(let f of r)for(let[w,h]of Object.entries(f))if(s[w]!==void 0)Object.assign(s[w],h);else s[w]=h;return s};var e0=async(r)=>{const s=await J3(r);return NX(s.configFile,s.credentialsFile)};var qX=G(()=>{Ch()});var mX=()=>{};var $s=G(()=>{Rh();CU();ZX();Ch();yX();qX();mX()});var jX,vX=(r,{preferredFile:s="config",...f}={})=>async()=>{const w=Df(f),{configFile:h,credentialsFile:E}=await J3(f),$=E[w]||{},I=h[w]||{},F=s==="config"?{...$,...I}:{...I,...$};try{const A=r(F,s==="config"?h:E);if(A===void 0)throw new Error;return A}catch(U){throw new jX.CredentialsProviderError(U.message||`Not found in config files w/ profile [${w}]: ${X3(r.toString())}`,{logger:f.logger})}};var iX=G(()=>{jX=m(Ar(),1);$s()});var OX,o_=(r)=>typeof r==="function",dX=(r)=>o_(r)?async()=>await r():OX.fromStatic(r);var cX=G(()=>{OX=m(Ar(),1)});var B3,u=({environmentVariableSelector:r,configFileSelector:s,default:f},w={})=>B3.memoize(B3.chain(YX(r),vX(s,w),dX(f)));var bX=G(()=>{B3=m(Ar(),1);XX();iX();cX()});var Ns=G(()=>{bX()});var _X="AWS_ENDPOINT_URL",gX="endpoint_url",xX=(r)=>({environmentVariableSelector:(s)=>{const f=r.split(" ").map((E)=>E.toUpperCase()),w=s[[_X,...f].join("_")];if(w)return w;const h=s[_X];if(h)return h;return},configFileSelector:(s,f)=>{if(f&&s.services){const h=f[["services",s.services].join(kf)];if(h){const E=r.split(" ").map((I)=>I.toLowerCase()),$=h[[E.join("_"),gX].join(kf)];if($)return $}}const w=s[gX];if(w)return w;return},default:void 0});var eX=G(()=>{$s()});var M3=async(r)=>u(xX(r??""))();var KU=G(()=>{Ns();eX()});function nX(r){const s={};if(r=r.replace(/^\?/,""),r)for(let f of r.split("&")){let[w,h=null]=f.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in s))s[w]=h;else if(Array.isArray(s[w]))s[w].push(h);else s[w]=[s[w],h]}return s}var br=(r)=>{if(typeof r==="string")return br(new URL(r));const{hostname:s,pathname:f,port:w,protocol:h,search:E}=r;let $;if(E)$=nX(E);return{hostname:s,port:w?parseInt(w):void 0,protocol:h,path:f,query:$}};var n0=()=>{};var V3=(r)=>{if(typeof r==="object"){if("url"in r)return br(r.url);return r}return br(r)};var H3=G(()=>{n0()});var oX=async(r,s,f,w)=>{if(!f.endpoint){let $;if(f.serviceConfiguredEndpoint)$=await f.serviceConfiguredEndpoint();else $=await M3(f.serviceId);if($)f.endpoint=()=>Promise.resolve(V3($))}const h=await a_(r,s,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(h,w)},a_=async(r,s,f)=>{const w={},h=s?.getEndpointParameterInstructions?.()||{};for(let[E,$]of Object.entries(h))switch($.type){case"staticContextParams":w[E]=$.value;break;case"contextParams":w[E]=r[$.name];break;case"clientContextParams":case"builtInParams":w[E]=await zX($.name,E,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify($))}if(Object.keys(h).length===0)Object.assign(w,f);if(String(f.serviceId).toLowerCase()==="s3")await RX(w);return w};var ZU=G(()=>{WX();KU();H3()});var aX=G(()=>{ZU();H3()});var pX=({config:r,instructions:s})=>{return(f,w)=>async(h)=>{const E=await oX(h.input,{getEndpointParameterInstructions(){return s}},{...r},w);w.endpointV2=E,w.authSchemes=E.properties?.authSchemes;const $=w.authSchemes?.[0];if($){w.signing_region=$.signingRegion,w.signing_service=$.signingName;const F=Vf(w)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:$.signingRegion,signingRegion:$.signingRegion,signing_service:$.signingName,signingName:$.signingName,signingRegionSet:$.signingRegionSet},$.properties)}return f({...h})}};var PU=G(()=>{Es();ZU()});var uX=(r,s)=>(f)=>async(w)=>{const{response:h}=await f(w);try{const E=await s(h,r);return{response:h,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:h}),!("$metadata"in E)){if(E.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}};var tX=(r,s)=>(f,w)=>async(h)=>{const E=w.endpointV2?.url&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const $=await s(h.input,{...r,endpoint:E});return f({...h,request:$})};function C(r,s,f){return{applyToStack:(w)=>{w.add(uX(r,f),p_),w.add(tX(r,s),JU)}}}var p_,JU;var rK=G(()=>{p_={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},JU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var V=G(()=>{rK()});var u_,W=(r,s)=>({applyToStack:(f)=>{f.addRelativeTo(pX({config:r,instructions:s}),u_)}});var fK=G(()=>{V();PU();u_={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:JU.name}});var qs=(r)=>{const s=r.tls??!0,{endpoint:f}=r,w=f!=null?async()=>V3(await yr(f)()):void 0,E={...r,endpoint:w,tls:s,isCustomEndpoint:!!f,useDualstackEndpoint:yr(r.useDualstackEndpoint??!1),useFipsEndpoint:yr(r.useFipsEndpoint??!1)};let $=void 0;return E.serviceConfiguredEndpoint=async()=>{if(r.serviceId&&!$)$=M3(r.serviceId);return $},E};var sK=G(()=>{Es();KU();H3()});var wK=()=>{};var B=G(()=>{aX();PU();fK();sK();wK()});var yf,Mw=3,Nf;var l3=G(()=>{(function(r){r.STANDARD="standard",r.ADAPTIVE="adaptive"})(yf||(yf={}));Nf=yf.STANDARD});var hK,EK,$K,IK;var FK=G(()=>{hK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],EK=["TimeoutError","RequestTimeout","RequestTimeoutException"],$K=[500,502,503,504],IK=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var t_=(r)=>r.$metadata?.clockSkewCorrected,Wh=(r)=>r.$metadata?.httpStatusCode===429||hK.includes(r.name)||r.$retryable?.throttling==!0,D3=(r)=>t_(r)||EK.includes(r.name)||IK.includes(r?.code||"")||$K.includes(r.$metadata?.httpStatusCode||0),UK=(r)=>{if(r.$metadata?.httpStatusCode!==void 0){const s=r.$metadata.httpStatusCode;if(500<=s&&s<=599&&!D3(r))return!0;return!1}return!1};var j1=G(()=>{FK()});class k3{constructor(r){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=r?.beta??0.7,this.minCapacity=r?.minCapacity??1,this.minFillRate=r?.minFillRate??0.5,this.scaleConstant=r?.scaleConstant??0.4,this.smooth=r?.smooth??0.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(r){if(!this.enabled)return;if(this.refillTokenBucket(),r>this.currentCapacity){const s=(r-this.currentCapacity)/this.fillRate*1000;await new Promise((f)=>setTimeout(f,s))}this.currentCapacity=this.currentCapacity-r}refillTokenBucket(){const r=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=r;return}const s=(r-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+s),this.lastTimestamp=r}updateClientSendingRate(r){let s;if(this.updateMeasuredRate(),Wh(r)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());const f=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(f)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(r){return this.getPrecise(r*this.beta)}cubicSuccess(r){return this.getPrecise(this.scaleConstant*Math.pow(r-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(r){this.refillTokenBucket(),this.fillRate=Math.max(r,this.minFillRate),this.maxCapacity=Math.max(r,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const r=this.getCurrentTimeInSeconds(),s=Math.floor(r*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){const f=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(f*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(r){return parseFloat(r.toFixed(8))}}var QU=G(()=>{j1()});var Vw=100,v1=20000,BU=500,y3=500,MU=5,VU=10,HU=1,N3="amz-sdk-invocation-id",q3="amz-sdk-request";var TK=()=>{let r=Vw;return{computeNextBackoffDelay:(w)=>{return Math.floor(Math.min(v1,Math.random()*2**w*r))},setDelayBase:(w)=>{r=w}}};var GK=()=>{};var lU=({retryDelay:r,retryCount:s,retryCost:f})=>{return{getRetryCount:()=>s,getRetryDelay:()=>Math.min(v1,r),getRetryCost:()=>f}};var AK=()=>{};class zh{constructor(r){this.maxAttempts=r,this.mode=yf.STANDARD,this.capacity=y3,this.retryBackoffStrategy=TK(),this.maxAttemptsProvider=typeof r==="function"?r:async()=>r}async acquireInitialRetryToken(r){return lU({retryDelay:Vw,retryCount:0})}async refreshRetryTokenForRetry(r,s){const f=await this.getMaxAttempts();if(this.shouldRetry(r,s,f)){const w=s.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?BU:Vw);const h=this.retryBackoffStrategy.computeNextBackoffDelay(r.getRetryCount()),E=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,h):h,$=this.getCapacityCost(w);return this.capacity-=$,lU({retryDelay:E,retryCount:r.getRetryCount()+1,retryCost:$})}throw new Error("No retry token available")}recordSuccess(r){this.capacity=Math.max(y3,this.capacity+(r.getRetryCost()??HU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(r){return console.warn(`Max attempts provider could not resolve. Using default of ${Mw}`),Mw}}shouldRetry(r,s,f){return r.getRetryCount()+1<f&&this.capacity>=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(r){return r==="TRANSIENT"?VU:MU}isRetryableError(r){return r==="THROTTLING"||r==="TRANSIENT"}}var m3=G(()=>{l3();GK();AK()});class DU{constructor(r,s){this.maxAttemptsProvider=r,this.mode=yf.ADAPTIVE;const{rateLimiter:f}=s??{};this.rateLimiter=f??new k3,this.standardRetryStrategy=new zh(r)}async acquireInitialRetryToken(r){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(r)}async refreshRetryTokenForRetry(r,s){return this.rateLimiter.updateClientSendingRate(s),this.standardRetryStrategy.refreshRetryTokenForRetry(r,s)}recordSuccess(r){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(r)}}var LK=G(()=>{l3();QU();m3()});var RK=G(()=>{m3()});var CK=()=>{};var zf=G(()=>{LK();RK();QU();m3();l3();CK()});var ms,I$r,F$r,WK,U$r,T$r,G$r,A$r,L$r,R$r;var zK=G(()=>{ms=m(n6(),1),I$r=ms.default.v1,F$r=ms.default.v3,WK=ms.default.v4,U$r=ms.default.v5,T$r=ms.default.NIL,G$r=ms.default.version,A$r=ms.default.validate,L$r=ms.default.stringify,R$r=ms.default.parse});var SK=G(()=>{zf()});var kU=G(()=>{zf()});var yU=G(()=>{j1()});var NU=(r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)};var qU=G(()=>{kr();j1();zf();SK();kU();yU()});var YK=G(()=>{zf();qU()});var XK="AWS_MAX_ATTEMPTS",KK="max_attempts",js,vs=(r)=>{const{retryStrategy:s}=r,f=yr(r.maxAttempts??Mw);return{...r,maxAttempts:f,retryStrategy:async()=>{if(s)return s;if(await yr(r.retryMode)()===yf.ADAPTIVE)return new DU(f);return new zh(f)}}},rg="AWS_RETRY_MODE",fg="retry_mode",is;var ZK=G(()=>{Es();zf();js={environmentVariableSelector:(r)=>{const s=r[XK];if(!s)return;const f=parseInt(s);if(Number.isNaN(f))throw new Error(`Environment variable ${XK} mast be a number, got "${s}"`);return f},configFileSelector:(r)=>{const s=r[KK];if(!s)return;const f=parseInt(s);if(Number.isNaN(f))throw new Error(`Shared config file entry ${KK} mast be a number, got "${s}"`);return f},default:Mw},is={environmentVariableSelector:(r)=>r[rg],configFileSelector:(r)=>r[fg],default:Nf}});var PK=G(()=>{kr();zf()});var Hw=(r,s)=>{const f=[];if(r)f.push(r);if(s)for(let w of s)f.push(w);return f},o0=(r,s)=>{return`${r||"anonymous"}${s&&s.length>0?` (a.k.a. ${s.join(",")})`:""}`},Sh=()=>{let r=[],s=[],f=!1;const w=new Set,h=(L)=>L.sort((S,z)=>JK[z.step]-JK[S.step]||QK[z.priority||"normal"]-QK[S.priority||"normal"]),E=(L)=>{let S=!1;const z=(Z)=>{const N=Hw(Z.name,Z.aliases);if(N.includes(L)){S=!0;for(let M of N)w.delete(M);return!1}return!0};return r=r.filter(z),s=s.filter(z),S},$=(L)=>{let S=!1;const z=(Z)=>{if(Z.middleware===L){S=!0;for(let N of Hw(Z.name,Z.aliases))w.delete(N);return!1}return!0};return r=r.filter(z),s=s.filter(z),S},I=(L)=>{return r.forEach((S)=>{L.add(S.middleware,{...S})}),s.forEach((S)=>{L.addRelativeTo(S.middleware,{...S})}),L.identifyOnResolve?.(A.identifyOnResolve()),L},F=(L)=>{const S=[];return L.before.forEach((z)=>{if(z.before.length===0&&z.after.length===0)S.push(z);else S.push(...F(z))}),S.push(L),L.after.reverse().forEach((z)=>{if(z.before.length===0&&z.after.length===0)S.push(z);else S.push(...F(z))}),S},U=(L=!1)=>{const S=[],z=[],Z={};return r.forEach((M)=>{const l={...M,before:[],after:[]};for(let k of Hw(l.name,l.aliases))Z[k]=l;S.push(l)}),s.forEach((M)=>{const l={...M,before:[],after:[]};for(let k of Hw(l.name,l.aliases))Z[k]=l;z.push(l)}),z.forEach((M)=>{if(M.toMiddleware){const l=Z[M.toMiddleware];if(l===void 0){if(L)return;throw new Error(`${M.toMiddleware} is not found when adding ${o0(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")l.after.push(M);if(M.relation==="before")l.before.push(M)}}),h(S).map(F).reduce((M,l)=>{return M.push(...l),M},[])},A={add:(L,S={})=>{const{name:z,override:Z,aliases:N}=S,M={step:"initialize",priority:"normal",middleware:L,...S},l=Hw(z,N);if(l.length>0){if(l.some((k)=>w.has(k))){if(!Z)throw new Error(`Duplicate middleware name '${o0(z,N)}'`);for(let k of l){const i=r.findIndex((sr)=>sr.name===k||sr.aliases?.some((Br)=>Br===k));if(i===-1)continue;const e=r[i];if(e.step!==M.step||M.priority!==e.priority)throw new Error(`"${o0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${o0(z,N)}" middleware with ${M.priority} priority in ${M.step} step.`);r.splice(i,1)}}for(let k of l)w.add(k)}r.push(M)},addRelativeTo:(L,S)=>{const{name:z,override:Z,aliases:N}=S,M={middleware:L,...S},l=Hw(z,N);if(l.length>0){if(l.some((k)=>w.has(k))){if(!Z)throw new Error(`Duplicate middleware name '${o0(z,N)}'`);for(let k of l){const i=s.findIndex((sr)=>sr.name===k||sr.aliases?.some((Br)=>Br===k));if(i===-1)continue;const e=s[i];if(e.toMiddleware!==M.toMiddleware||e.relation!==M.relation)throw new Error(`"${o0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${o0(z,N)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);s.splice(i,1)}}for(let k of l)w.add(k)}s.push(M)},clone:()=>I(Sh()),use:(L)=>{L.applyToStack(A)},remove:(L)=>{if(typeof L==="string")return E(L);else return $(L)},removeByTag:(L)=>{let S=!1;const z=(Z)=>{const{tags:N,name:M,aliases:l}=Z;if(N&&N.includes(L)){const k=Hw(M,l);for(let i of k)w.delete(i);return S=!0,!1}return!0};return r=r.filter(z),s=s.filter(z),S},concat:(L)=>{const S=I(Sh());return S.use(L),S.identifyOnResolve(f||S.identifyOnResolve()||(L.identifyOnResolve?.()??!1)),S},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const S=L.step??L.relation+" "+L.toMiddleware;return o0(L.name,L.aliases)+" - "+S})},identifyOnResolve(L){if(typeof L==="boolean")f=L;return f},resolve:(L,S)=>{for(let z of U().map((Z)=>Z.middleware).reverse())L=z(L,S);if(f)console.log(A.identify());return L}};return A},JK,QK;var BK=G(()=>{JK={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},QK={high:3,normal:2,low:1}});var mU=G(()=>{BK()});class Sf{constructor(r){this.config=r,this.middlewareStack=Sh()}send(r,s,f){const w=typeof s!=="function"?s:void 0,h=typeof s==="function"?s:f,E=w===void 0&&this.config.cacheMiddleware===!0;let $;if(E){if(!this.handlers)this.handlers=new WeakMap;const I=this.handlers;if(I.has(r.constructor))$=I.get(r.constructor);else $=r.resolveMiddleware(this.middlewareStack,this.config,w),I.set(r.constructor,$)}else delete this.handlers,$=r.resolveMiddleware(this.middlewareStack,this.config,w);if(h)$(r).then((I)=>h(null,I.output),(I)=>h(I)).catch(()=>{});else return $(r).then((I)=>I.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var MK=G(()=>{mU()});var VK=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as jU}from"buffer";var z0=(r,s=0,f=r.byteLength-s)=>{if(!VK(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return jU.from(r,s,f)},Yh=(r,s)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return s?jU.from(r,s):jU.from(r)};var lw=()=>{};var sg,Uf=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!sg.exec(r))throw new TypeError("Invalid base64 string.");const s=Yh(r,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)};var HK=G(()=>{lw();sg=/^[A-Za-z0-9+/]*={0,2}$/});var _r=(r)=>{const s=Yh(r,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var vU=G(()=>{lw()});var lK=(r)=>{if(typeof r==="string")return _r(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)};var DK=G(()=>{vU()});var Tf=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return z0(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};var kK=G(()=>{lw()});var Os=G(()=>{vU();DK();kK()});var Gf=(r)=>{let s;if(typeof r==="string")s=_r(r);else s=r;if(typeof s!=="object"||typeof s.byteOffset!=="number"||typeof s.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return z0(s.buffer,s.byteOffset,s.byteLength).toString("base64")};var yK=G(()=>{lw();Os()});var S0=G(()=>{HK();yK()});function NK(r,s="utf-8"){if(s==="base64")return Gf(r);return Tf(r)}function qK(r,s){if(s==="base64")return Y0.mutate(Uf(r));return Y0.mutate(_r(r))}var mK=G(()=>{S0();Os();iU()});var Y0;var iU=G(()=>{mK();Y0=class Y0 extends Uint8Array{static fromString(r,s="utf-8"){switch(typeof r){case"string":return qK(r,s);default:throw new Error(`Unsupported conversion from ${typeof r} to Uint8ArrayBlobAdapter.`)}}static mutate(r){return Object.setPrototypeOf(r,Y0.prototype),r}transformToString(r="utf-8"){return NK(this,r)}}});var jK=()=>{};var i1=(r)=>encodeURIComponent(r).replace(/[!'()*]/g,wg),wg=(r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`;var vK=()=>{};var iK=G(()=>{vK()});function j3(r){const s=[];for(let f of Object.keys(r).sort()){const w=r[f];if(f=i1(f),Array.isArray(w))for(let h=0,E=w.length;h<E;h++)s.push(`${f}=${i1(w[h])}`);else{let h=f;if(w||typeof w==="string")h+=`=${i1(w)}`;s.push(h)}}return s.join("&")}var v3=G(()=>{iK()});var OK;var dK=G(()=>{OK=["ECONNRESET","EPIPE","ETIMEDOUT"]});var OU=(r)=>{const s={};for(let f of Object.keys(r)){const w=r[f];s[f]=Array.isArray(w)?w.join(","):w}return s};var dU=()=>{};var cK=(r,s,f=0)=>{if(!f)return-1;const w=(h)=>{const E=setTimeout(()=>{r.destroy(),s(Object.assign(new Error(`Socket timed out without establishing a connection within ${f} ms`),{name:"TimeoutError"}))},f-h),$=(I)=>{if(I?.connecting)I.on("connect",()=>{clearTimeout(E)});else clearTimeout(E)};if(r.socket)$(r.socket);else r.on("socket",$)};if(f<2000)return w(0),0;return setTimeout(w.bind(null,1000),1000)};var bK=(r,{keepAlive:s,keepAliveMsecs:f},w=3000)=>{if(s!==!0)return-1;const h=()=>{if(r.socket)r.socket.setKeepAlive(s,f||0);else r.on("socket",(E)=>{E.setKeepAlive(s,f||0)})};if(w===0)return h(),0;return setTimeout(h,w)};var _K=(r,s,f=0)=>{const w=(h)=>{r.setTimeout(f-h,()=>{r.destroy(),s(Object.assign(new Error(`Connection timed out after ${f} ms`),{name:"TimeoutError"}))})};if(0<f&&f<6000)return w(0),0;return setTimeout(w.bind(null,f===0?0:3000),3000)};import{Readable as hg}from"stream";async function cU(r,s,f=gK){const w=s.headers??{},h=w.Expect||w.expect;let E=-1,$=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{E=Number(setTimeout(I,Math.max(gK,f)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout(E),I()}),r.on("error",()=>{$=!0,clearTimeout(E),I()})})]);if(!$)Eg(r,s.body)}function Eg(r,s){if(s instanceof hg){s.pipe(r);return}if(s){if(Buffer.isBuffer(s)||typeof s==="string"){r.end(s);return}const f=s;if(typeof f==="object"&&f.buffer&&typeof f.byteOffset==="number"&&typeof f.byteLength==="number"){r.end(Buffer.from(f.buffer,f.byteOffset,f.byteLength));return}r.end(Buffer.from(s));return}r.end()}var gK=1000;var bU=()=>{};import{Agent as xK,request as $g}from"http";import{Agent as eK,request as Ig}from"https";class ff{static create(r){if(typeof r?.handle==="function")return r;return new ff(r)}static checkSocketUsage(r,s,f=console){const{sockets:w,requests:h,maxSockets:E}=r;if(typeof E!=="number"||E===1/0)return s;const $=15000;if(Date.now()-$<s)return s;if(w&&h)for(let I in w){const F=w[I]?.length??0,U=h[I]?.length??0;if(F>=E&&U>=2*E)return f?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${U} additional requests are enqueued.
19
+ ${n0.toHex($)}`}getCanonicalPath({path:s}){if(this.uriEscapePath){let f=[];for(let $ of s.split("/")){if(($==null?void 0:$.length)===0)continue;if($===".")continue;if($==="..")f.pop();else f.push($)}let h=`${(s==null?void 0:s.startsWith("/"))?"/":""}${f.join("/")}${f.length>0&&(s==null?void 0:s.endsWith("/"))?"/":""}`;return T3.escapeUri(h).replace(/%2F/g,"/")}return s}async getSignature(s,f,h,w){let $=await this.createStringToSign(s,f,w),E=new this.sha256(await h);return E.update(bU.toUint8Array($)),n0.toHex(await E.digest())}getSigningKey(s,f,h,w){return kS(this.sha256,s,h,f,w||this.service)}validateResolvedCredentials(s){if(typeof s!=="object"||typeof s.accessKeyId!=="string"||typeof s.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};jr(vS,"SignatureV4");var pd=vS,I3=jr((r)=>{let s=od(r).replace(/[\-:]/g,"");return{longDate:s,shortDate:s.slice(0,8)}},"formatDate"),QS=jr((r)=>Object.keys(r).sort().join(";"),"getCanonicalHeaderList")});var aS=i((B0r,oS)=>{var{defineProperty:L3,getOwnPropertyDescriptor:ud,getOwnPropertyNames:td}=Object,rc=Object.prototype.hasOwnProperty,Rf=(r,s)=>L3(r,"name",{value:s,configurable:!0}),fc=(r,s)=>{for(var f in s)L3(r,f,{get:s[f],enumerable:!0})},sc=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of td(s))if(!rc.call(r,w)&&w!==f)L3(r,w,{get:()=>s[w],enumerable:!(h=ud(s,w))||h.enumerable})}return r},hc=(r)=>sc(L3({},"__esModule",{value:!0}),r),gS={};fc(gS,{AWSSDKSigV4Signer:()=>Ic,AwsSdkSigV4ASigner:()=>Uc,AwsSdkSigV4Signer:()=>pU,NODE_SIGV4A_CONFIG_OPTIONS:()=>Ac,resolveAWSSDKSigV4Config:()=>zc,resolveAwsSdkSigV4AConfig:()=>Gc,resolveAwsSdkSigV4Config:()=>nS,validateSigningProperties:()=>aU});oS.exports=hc(gS);var wc=R0(),$c=R0(),dS=Rf((r)=>{var s,f;return $c.HttpResponse.isInstance(r)?((s=r.headers)==null?void 0:s.date)??((f=r.headers)==null?void 0:f.Date):void 0},"getDateHeader"),oU=Rf((r)=>new Date(Date.now()+r),"getSkewCorrectedDate"),Ec=Rf((r,s)=>Math.abs(oU(s).getTime()-r)>=300000,"isClockSkewed"),cS=Rf((r,s)=>{let f=Date.parse(r);if(Ec(f,s))return f-Date.now();return s},"getUpdatedSystemClockOffset"),y1=Rf((r,s)=>{if(!s)throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`);return s},"throwSigningPropertyError"),aU=Rf(async(r)=>{var s,f,h;let w=y1("context",r.context),$=y1("config",r.config),E=(h=(f=(s=w.endpointV2)==null?void 0:s.properties)==null?void 0:f.authSchemes)==null?void 0:h[0],F=await y1("signer",$.signer)(E),U=r==null?void 0:r.signingRegion,A=r==null?void 0:r.signingRegionSet,L=r==null?void 0:r.signingName;return{config:$,signer:F,signingRegion:U,signingRegionSet:A,signingName:L}},"validateSigningProperties"),xS=class r{async sign(s,f,h){var w;if(!wc.HttpRequest.isInstance(s))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let $=await aU(h),{config:E,signer:I}=$,{signingRegion:F,signingName:U}=$,A=h.context;if(((w=A==null?void 0:A.authSchemes)==null?void 0:w.length)??0>1){let[S,R]=A.authSchemes;if((S==null?void 0:S.name)==="sigv4a"&&(R==null?void 0:R.name)==="sigv4")F=(R==null?void 0:R.signingRegion)??F,U=(R==null?void 0:R.signingName)??U}return await I.sign(s,{signingDate:oU(E.systemClockOffset),signingRegion:F,signingService:U})}errorHandler(s){return(f)=>{let h=f.ServerTime??dS(f.$response);if(h){let w=y1("config",s.config),$=w.systemClockOffset;if(w.systemClockOffset=cS(h,w.systemClockOffset),w.systemClockOffset!==$&&f.$metadata)f.$metadata.clockSkewCorrected=!0}throw f}}successHandler(s,f){let h=dS(s);if(h){let w=y1("config",f.config);w.systemClockOffset=cS(h,w.systemClockOffset)}}};Rf(xS,"AwsSdkSigV4Signer");var pU=xS,Ic=pU,Fc=R0(),eS=class r extends pU{async sign(s,f,h){var w;if(!Fc.HttpRequest.isInstance(s))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:$,signer:E,signingRegion:I,signingRegionSet:F,signingName:U}=await aU(h),L=(await((w=$.sigv4aSigningRegionSet)==null?void 0:w.call($))??F??[I]).join(",");return await E.sign(s,{signingDate:oU($.systemClockOffset),signingRegion:L,signingService:U})}};Rf(eS,"AwsSdkSigV4ASigner");var Uc=eS,Tc=mr(),bS=ZF(),Gc=Rf((r)=>{return r.sigv4aSigningRegionSet=Tc.normalizeProvider(r.sigv4aSigningRegionSet),r},"resolveAwsSdkSigV4AConfig"),Ac={environmentVariableSelector(r){if(r.AWS_SIGV4A_SIGNING_REGION_SET)return r.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((s)=>s.trim());throw new bS.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(r){if(r.sigv4a_signing_region_set)return(r.sigv4a_signing_region_set??"").split(",").map((s)=>s.trim());throw new bS.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Lc=rf(),Hh=mr(),_S=OS(),nS=Rf((r)=>{let s=!1,f;if(r.credentials)s=!0,f=Hh.memoizeIdentityProvider(r.credentials,Hh.isIdentityExpired,Hh.doesIdentityRequireRefresh);if(!f)if(r.credentialDefaultProvider)f=Hh.normalizeProvider(r.credentialDefaultProvider(Object.assign({},r,{parentClientConfig:r})));else f=Rf(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");let{signingEscapePath:h=!0,systemClockOffset:w=r.systemClockOffset||0,sha256:$}=r,E;if(r.signer)E=Hh.normalizeProvider(r.signer);else if(r.regionInfoProvider)E=Rf(()=>Hh.normalizeProvider(r.region)().then(async(I)=>[await r.regionInfoProvider(I,{useFipsEndpoint:await r.useFipsEndpoint(),useDualstackEndpoint:await r.useDualstackEndpoint()})||{},I]).then(([I,F])=>{let{signingRegion:U,signingService:A}=I;r.signingRegion=r.signingRegion||U||F,r.signingName=r.signingName||A||r.serviceId;let L={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:$,uriEscapePath:h};return new(r.signerConstructor||_S.SignatureV4)(L)}),"signer");else E=Rf(async(I)=>{I=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:await Hh.normalizeProvider(r.region)(),properties:{}},I);let{signingRegion:F,signingName:U}=I;r.signingRegion=r.signingRegion||F,r.signingName=r.signingName||U||r.serviceId;let A={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:$,uriEscapePath:h};return new(r.signerConstructor||_S.SignatureV4)(A)},"signer");return{...r,systemClockOffset:w,signingEscapePath:h,credentials:s?async()=>f().then((I)=>Lc.setCredentialFeature(I,"CREDENTIALS_CODE","e")):f,signer:E}},"resolveAwsSdkSigV4Config"),zc=nS});var z3=i((Yc)=>{var Wc=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pS="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+Wc+"]*",Cc=new RegExp("^"+pS+"$"),Rc=function(r,s){let f=[],h=s.exec(r);while(h){let w=[];w.startIndex=s.lastIndex-h[0].length;let $=h.length;for(let E=0;E<$;E++)w.push(h[E]);f.push(w),h=s.exec(r)}return f},Sc=function(r){let s=Cc.exec(r);return!(s===null||typeof s==="undefined")};Yc.isExist=function(r){return typeof r!=="undefined"};Yc.isEmptyObject=function(r){return Object.keys(r).length===0};Yc.merge=function(r,s,f){if(s){let h=Object.keys(s),w=h.length;for(let $=0;$<w;$++)if(f==="strict")r[h[$]]=[s[h[$]]];else r[h[$]]=s[h[$]]}};Yc.getValue=function(r){if(Yc.isExist(r))return r;else return""};Yc.isName=Sc;Yc.getAllMatches=Rc;Yc.nameRegexp=pS});var tU=i((qc)=>{var uU=z3(),Bc={allowBooleanAttributes:!1,unpairedTags:[]};qc.validate=function(r,s){s=Object.assign({},Bc,s);let f=[],h=!1,w=!1;if(r[0]==="\uFEFF")r=r.substr(1);for(let $=0;$<r.length;$++)if(r[$]==="<"&&r[$+1]==="?"){if($+=2,$=rY(r,$),$.err)return $}else if(r[$]==="<"){let E=$;if($++,r[$]==="!"){$=fY(r,$);continue}else{let I=!1;if(r[$]==="/")I=!0,$++;let F="";for(;$<r.length&&r[$]!==">"&&r[$]!==" "&&r[$]!=="\t"&&r[$]!=="\n"&&r[$]!=="\r";$++)F+=r[$];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),$--;if(!Nc(F)){let L;if(F.trim().length===0)L="Invalid space after '<'.";else L="Tag '"+F+"' is an invalid name.";return Hr("InvalidTag",L,ff(r,$))}let U=Hc(r,$);if(U===!1)return Hr("InvalidAttr","Attributes for '"+F+"' have open quote.",ff(r,$));let A=U.value;if($=U.index,A[A.length-1]==="/"){let L=$-A.length;A=A.substring(0,A.length-1);let S=sY(A,s);if(S===!0)h=!0;else return Hr(S.err.code,S.err.msg,ff(r,L+S.err.line))}else if(I)if(!U.tagClosed)return Hr("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",ff(r,$));else if(A.trim().length>0)return Hr("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",ff(r,E));else if(f.length===0)return Hr("InvalidTag","Closing tag '"+F+"' has not been opened.",ff(r,E));else{let L=f.pop();if(F!==L.tagName){let S=ff(r,L.tagStartPos);return Hr("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+S.line+", col "+S.col+") instead of closing tag '"+F+"'.",ff(r,E))}if(f.length==0)w=!0}else{let L=sY(A,s);if(L!==!0)return Hr(L.err.code,L.err.msg,ff(r,$-A.length+L.err.line));if(w===!0)return Hr("InvalidXml","Multiple possible root nodes found.",ff(r,$));else if(s.unpairedTags.indexOf(F)!==-1);else f.push({tagName:F,tagStartPos:E});h=!0}for($++;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="!"){$++,$=fY(r,$);continue}else if(r[$+1]==="?"){if($=rY(r,++$),$.err)return $}else break;else if(r[$]==="&"){let L=kc(r,$);if(L==-1)return Hr("InvalidChar","char '&' is not expected.",ff(r,$));$=L}else if(w===!0&&!tS(r[$]))return Hr("InvalidXml","Extra text at the end",ff(r,$));if(r[$]==="<")$--}}else{if(tS(r[$]))continue;return Hr("InvalidChar","char '"+r[$]+"' is not expected.",ff(r,$))}if(!h)return Hr("InvalidXml","Start tag expected.",1);else if(f.length==1)return Hr("InvalidTag","Unclosed tag '"+f[0].tagName+"'.",ff(r,f[0].tagStartPos));else if(f.length>0)return Hr("InvalidXml","Invalid '"+JSON.stringify(f.map(($)=>$.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};function tS(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function rY(r,s){let f=s;for(;s<r.length;s++)if(r[s]=="?"||r[s]==" "){let h=r.substr(f,s-f);if(s>5&&h==="xml")return Hr("InvalidXml","XML declaration allowed only at the start of the document.",ff(r,s));else if(r[s]=="?"&&r[s+1]==">"){s++;break}else continue}return s}function fY(r,s){if(r.length>s+5&&r[s+1]==="-"&&r[s+2]==="-"){for(s+=3;s<r.length;s++)if(r[s]==="-"&&r[s+1]==="-"&&r[s+2]===">"){s+=2;break}}else if(r.length>s+8&&r[s+1]==="D"&&r[s+2]==="O"&&r[s+3]==="C"&&r[s+4]==="T"&&r[s+5]==="Y"&&r[s+6]==="P"&&r[s+7]==="E"){let f=1;for(s+=8;s<r.length;s++)if(r[s]==="<")f++;else if(r[s]===">"){if(f--,f===0)break}}else if(r.length>s+9&&r[s+1]==="["&&r[s+2]==="C"&&r[s+3]==="D"&&r[s+4]==="A"&&r[s+5]==="T"&&r[s+6]==="A"&&r[s+7]==="["){for(s+=8;s<r.length;s++)if(r[s]==="]"&&r[s+1]==="]"&&r[s+2]===">"){s+=2;break}}return s}var Mc='"',Vc="'";function Hc(r,s){let f="",h="",w=!1;for(;s<r.length;s++){if(r[s]===Mc||r[s]===Vc)if(h==="")h=r[s];else if(h!==r[s]);else h="";else if(r[s]===">"){if(h===""){w=!0;break}}f+=r[s]}if(h!=="")return!1;return{value:f,index:s,tagClosed:w}}var lc=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g");function sY(r,s){let f=uU.getAllMatches(r,lc),h={};for(let w=0;w<f.length;w++){if(f[w][1].length===0)return Hr("InvalidAttr","Attribute '"+f[w][2]+"' has no space in starting.",N1(f[w]));else if(f[w][3]!==void 0&&f[w][4]===void 0)return Hr("InvalidAttr","Attribute '"+f[w][2]+"' is without value.",N1(f[w]));else if(f[w][3]===void 0&&!s.allowBooleanAttributes)return Hr("InvalidAttr","boolean attribute '"+f[w][2]+"' is not allowed.",N1(f[w]));let $=f[w][2];if(!yc($))return Hr("InvalidAttr","Attribute '"+$+"' is an invalid name.",N1(f[w]));if(!h.hasOwnProperty($))h[$]=1;else return Hr("InvalidAttr","Attribute '"+$+"' is repeated.",N1(f[w]))}return!0}function Dc(r,s){let f=/\d/;if(r[s]==="x")s++,f=/[\da-fA-F]/;for(;s<r.length;s++){if(r[s]===";")return s;if(!r[s].match(f))break}return-1}function kc(r,s){if(s++,r[s]===";")return-1;if(r[s]==="#")return s++,Dc(r,s);let f=0;for(;s<r.length;s++,f++){if(r[s].match(/\w/)&&f<20)continue;if(r[s]===";")break;return-1}return s}function Hr(r,s,f){return{err:{code:r,msg:s,line:f.line||f,col:f.col}}}function yc(r){return uU.isName(r)}function Nc(r){return uU.isName(r)}function ff(r,s){let f=r.substring(0,s).split(/\r?\n/);return{line:f.length,col:f[f.length-1].length+1}}function N1(r){return r.startIndex+r[1].length}});var wY=i((vc)=>{var hY={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,s){return s},attributeValueProcessor:function(r,s){return s},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,s,f){return r}},jc=function(r){return Object.assign({},hY,r)};vc.buildOptions=jc;vc.defaultOptions=hY});var IY=i((l0r,EY)=>{class $Y{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,s){if(r==="__proto__")r="#__proto__";this.child.push({[r]:s})}addChild(r){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0)this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]});else this.child.push({[r.tagname]:r.child})}}EY.exports=$Y});var UY=i((D0r,FY)=>{var dc=z3();function cc(r,s){let f={};if(r[s+3]==="O"&&r[s+4]==="C"&&r[s+5]==="T"&&r[s+6]==="Y"&&r[s+7]==="P"&&r[s+8]==="E"){s=s+9;let h=1,w=!1,$=!1,E="";for(;s<r.length;s++)if(r[s]==="<"&&!$){if(w&&gc(r,s)){if(s+=7,[entityName,val,s]=bc(r,s+1),val.indexOf("&")===-1)f[oc(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(w&&xc(r,s))s+=8;else if(w&&ec(r,s))s+=8;else if(w&&nc(r,s))s+=9;else if(_c)$=!0;else throw new Error("Invalid DOCTYPE");h++,E=""}else if(r[s]===">"){if($){if(r[s-1]==="-"&&r[s-2]==="-")$=!1,h--}else h--;if(h===0)break}else if(r[s]==="[")w=!0;else E+=r[s];if(h!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:s}}function bc(r,s){let f="";for(;s<r.length&&(r[s]!=="'"&&r[s]!=='"');s++)f+=r[s];if(f=f.trim(),f.indexOf(" ")!==-1)throw new Error("External entites are not supported");let h=r[s++],w="";for(;s<r.length&&r[s]!==h;s++)w+=r[s];return[f,w,s]}function _c(r,s){if(r[s+1]==="!"&&r[s+2]==="-"&&r[s+3]==="-")return!0;return!1}function gc(r,s){if(r[s+1]==="!"&&r[s+2]==="E"&&r[s+3]==="N"&&r[s+4]==="T"&&r[s+5]==="I"&&r[s+6]==="T"&&r[s+7]==="Y")return!0;return!1}function xc(r,s){if(r[s+1]==="!"&&r[s+2]==="E"&&r[s+3]==="L"&&r[s+4]==="E"&&r[s+5]==="M"&&r[s+6]==="E"&&r[s+7]==="N"&&r[s+8]==="T")return!0;return!1}function ec(r,s){if(r[s+1]==="!"&&r[s+2]==="A"&&r[s+3]==="T"&&r[s+4]==="T"&&r[s+5]==="L"&&r[s+6]==="I"&&r[s+7]==="S"&&r[s+8]==="T")return!0;return!1}function nc(r,s){if(r[s+1]==="!"&&r[s+2]==="N"&&r[s+3]==="O"&&r[s+4]==="T"&&r[s+5]==="A"&&r[s+6]==="T"&&r[s+7]==="I"&&r[s+8]==="O"&&r[s+9]==="N")return!0;return!1}function oc(r){if(dc.isName(r))return r;else throw new Error(`Invalid entity name ${r}`)}FY.exports=cc});var GY=i((k0r,TY)=>{var ac=/^[-+]?0x[a-fA-F0-9]+$/,pc=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var uc={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function tc(r,s={}){if(s=Object.assign({},uc,s),!r||typeof r!=="string")return r;let f=r.trim();if(s.skipLike!==void 0&&s.skipLike.test(f))return r;else if(s.hex&&ac.test(f))return Number.parseInt(f,16);else{let h=pc.exec(f);if(h){let w=h[1],$=h[2],E=rb(h[3]),I=h[4]||h[6];if(!s.leadingZeros&&$.length>0&&w&&f[2]!==".")return r;else if(!s.leadingZeros&&$.length>0&&!w&&f[1]!==".")return r;else{let F=Number(f),U=""+F;if(U.search(/[eE]/)!==-1)if(s.eNotation)return F;else return r;else if(I)if(s.eNotation)return F;else return r;else if(f.indexOf(".")!==-1)if(U==="0"&&E==="")return F;else if(U===E)return F;else if(w&&U==="-"+E)return F;else return r;if($)if(E===U)return F;else if(w+E===U)return F;else return r;if(f===U)return F;else if(f===w+U)return F;return r}}else return r}}function rb(r){if(r&&r.indexOf(".")!==-1){if(r=r.replace(/0+$/,""),r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substr(0,r.length-1);return r}return r}TY.exports=tc});var WY=i((y0r,zY)=>{var AY=z3(),q1=IY(),fb=UY(),sb=GY();class LY{constructor(r){this.options=r,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(s,f)=>String.fromCharCode(Number.parseInt(f,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(s,f)=>String.fromCharCode(Number.parseInt(f,16))}},this.addExternalEntities=hb,this.parseXml=Fb,this.parseTextData=wb,this.resolveNameSpace=$b,this.buildAttributesMap=Ib,this.isItStopNode=Ab,this.replaceEntitiesValue=Tb,this.readStopNodeData=zb,this.saveTextToParentTag=Gb,this.addChild=Ub}}function hb(r){let s=Object.keys(r);for(let f=0;f<s.length;f++){let h=s[f];this.lastEntities[h]={regex:new RegExp("&"+h+";","g"),val:r[h]}}}function wb(r,s,f,h,w,$,E){if(r!==void 0){if(this.options.trimValues&&!h)r=r.trim();if(r.length>0){if(!E)r=this.replaceEntitiesValue(r);let I=this.options.tagValueProcessor(s,r,f,w,$);if(I===null||I===void 0)return r;else if(typeof I!==typeof r||I!==r)return I;else if(this.options.trimValues)return f6(r,this.options.parseTagValue,this.options.numberParseOptions);else if(r.trim()===r)return f6(r,this.options.parseTagValue,this.options.numberParseOptions);else return r}}}function $b(r){if(this.options.removeNSPrefix){let s=r.split(":"),f=r.charAt(0)==="/"?"/":"";if(s[0]==="xmlns")return"";if(s.length===2)r=f+s[1]}return r}var Eb=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm");function Ib(r,s,f){if(!this.options.ignoreAttributes&&typeof r==="string"){let h=AY.getAllMatches(r,Eb),w=h.length,$={};for(let E=0;E<w;E++){let I=this.resolveNameSpace(h[E][1]),F=h[E][4],U=this.options.attributeNamePrefix+I;if(I.length){if(this.options.transformAttributeName)U=this.options.transformAttributeName(U);if(U==="__proto__")U="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);let A=this.options.attributeValueProcessor(I,F,s);if(A===null||A===void 0)$[U]=F;else if(typeof A!==typeof F||A!==F)$[U]=A;else $[U]=f6(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)$[U]=!0}}if(!Object.keys($).length)return;if(this.options.attributesGroupName){let E={};return E[this.options.attributesGroupName]=$,E}return $}}var Fb=function(r){r=r.replace(/\r\n?/g,"\n");let s=new q1("!xml"),f=s,h="",w="";for(let $=0;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="/"){let I=lh(r,">",$,"Closing Tag is not closed."),F=r.substring($+2,I).trim();if(this.options.removeNSPrefix){let L=F.indexOf(":");if(L!==-1)F=F.substr(L+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(f)h=this.saveTextToParentTag(h,f,w);let U=w.substring(w.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let A=0;if(U&&this.options.unpairedTags.indexOf(U)!==-1)A=w.lastIndexOf(".",w.lastIndexOf(".")-1),this.tagsNodeStack.pop();else A=w.lastIndexOf(".");w=w.substring(0,A),f=this.tagsNodeStack.pop(),h="",$=I}else if(r[$+1]==="?"){let I=r6(r,$,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(h=this.saveTextToParentTag(h,f,w),this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags);else{let F=new q1(I.tagName);if(F.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent)F[":@"]=this.buildAttributesMap(I.tagExp,w,I.tagName);this.addChild(f,F,w)}$=I.closeIndex+1}else if(r.substr($+1,3)==="!--"){let I=lh(r,"-->",$+4,"Comment is not closed.");if(this.options.commentPropName){let F=r.substring($+4,I-2);h=this.saveTextToParentTag(h,f,w),f.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}$=I}else if(r.substr($+1,2)==="!D"){let I=fb(r,$);this.docTypeEntities=I.entities,$=I.i}else if(r.substr($+1,2)==="!["){let I=lh(r,"]]>",$,"CDATA is not closed.")-2,F=r.substring($+9,I);h=this.saveTextToParentTag(h,f,w);let U=this.parseTextData(F,f.tagname,w,!0,!1,!0,!0);if(U==null)U="";if(this.options.cdataPropName)f.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else f.add(this.options.textNodeName,U);$=I+2}else{let I=r6(r,$,this.options.removeNSPrefix),F=I.tagName,U=I.rawTagName,A=I.tagExp,L=I.attrExpPresent,S=I.closeIndex;if(this.options.transformTagName)F=this.options.transformTagName(F);if(f&&h){if(f.tagname!=="!xml")h=this.saveTextToParentTag(h,f,w,!1)}let R=f;if(R&&this.options.unpairedTags.indexOf(R.tagname)!==-1)f=this.tagsNodeStack.pop(),w=w.substring(0,w.lastIndexOf("."));if(F!==s.tagname)w+=w?"."+F:F;if(this.isItStopNode(this.options.stopNodes,w,F)){let P="";if(A.length>0&&A.lastIndexOf("/")===A.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),w=w.substr(0,w.length-1),A=F;else A=A.substr(0,A.length-1);$=I.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)$=I.closeIndex;else{let M=this.readStopNodeData(r,U,S+1);if(!M)throw new Error(`Unexpected end of ${U}`);$=M.i,P=M.tagContent}let N=new q1(F);if(F!==A&&L)N[":@"]=this.buildAttributesMap(A,w,F);if(P)P=this.parseTextData(P,F,w,!0,L,!0,!0);w=w.substr(0,w.lastIndexOf(".")),N.add(this.options.textNodeName,P),this.addChild(f,N,w)}else{if(A.length>0&&A.lastIndexOf("/")===A.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),w=w.substr(0,w.length-1),A=F;else A=A.substr(0,A.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);let P=new q1(F);if(F!==A&&L)P[":@"]=this.buildAttributesMap(A,w,F);this.addChild(f,P,w),w=w.substr(0,w.lastIndexOf("."))}else{let P=new q1(F);if(this.tagsNodeStack.push(f),F!==A&&L)P[":@"]=this.buildAttributesMap(A,w,F);this.addChild(f,P,w),f=P}h="",$=S}}else h+=r[$];return s.child};function Ub(r,s,f){let h=this.options.updateTag(s.tagname,f,s[":@"]);if(h===!1);else if(typeof h==="string")s.tagname=h,r.addChild(s);else r.addChild(s)}var Tb=function(r){if(this.options.processEntities){for(let s in this.docTypeEntities){let f=this.docTypeEntities[s];r=r.replace(f.regx,f.val)}for(let s in this.lastEntities){let f=this.lastEntities[s];r=r.replace(f.regex,f.val)}if(this.options.htmlEntities)for(let s in this.htmlEntities){let f=this.htmlEntities[s];r=r.replace(f.regex,f.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};function Gb(r,s,f,h){if(r){if(h===void 0)h=Object.keys(s.child).length===0;if(r=this.parseTextData(r,s.tagname,f,!1,s[":@"]?Object.keys(s[":@"]).length!==0:!1,h),r!==void 0&&r!=="")s.add(this.options.textNodeName,r);r=""}return r}function Ab(r,s,f){let h="*."+f;for(let w in r){let $=r[w];if(h===$||s===$)return!0}return!1}function Lb(r,s,f=">"){let h,w="";for(let $=s;$<r.length;$++){let E=r[$];if(h){if(E===h)h=""}else if(E==='"'||E==="'")h=E;else if(E===f[0])if(f[1]){if(r[$+1]===f[1])return{data:w,index:$}}else return{data:w,index:$};else if(E==="\t")E=" ";w+=E}}function lh(r,s,f,h){let w=r.indexOf(s,f);if(w===-1)throw new Error(h);else return w+s.length-1}function r6(r,s,f,h=">"){let w=Lb(r,s+1,h);if(!w)return;let{data:$,index:E}=w,I=$.search(/\s/),F=$,U=!0;if(I!==-1)F=$.substring(0,I),$=$.substring(I+1).trimStart();let A=F;if(f){let L=F.indexOf(":");if(L!==-1)F=F.substr(L+1),U=F!==w.data.substr(L+1)}return{tagName:F,tagExp:$,closeIndex:E,attrExpPresent:U,rawTagName:A}}function zb(r,s,f){let h=f,w=1;for(;f<r.length;f++)if(r[f]==="<")if(r[f+1]==="/"){let $=lh(r,">",f,`${s} is not closed`);if(r.substring(f+2,$).trim()===s){if(w--,w===0)return{tagContent:r.substring(h,f),i:$}}f=$}else if(r[f+1]==="?")f=lh(r,"?>",f+1,"StopNode is not closed.");else if(r.substr(f+1,3)==="!--")f=lh(r,"-->",f+3,"StopNode is not closed.");else if(r.substr(f+1,2)==="![")f=lh(r,"]]>",f,"StopNode is not closed.")-2;else{let $=r6(r,f,">");if($){if(($&&$.tagName)===s&&$.tagExp[$.tagExp.length-1]!=="/")w++;f=$.closeIndex}}}function f6(r,s,f){if(s&&typeof r==="string"){let h=r.trim();if(h==="true")return!0;else if(h==="false")return!1;else return sb(r,f)}else if(AY.isExist(r))return r;else return""}zY.exports=LY});var RY=i((Yb)=>{function Wb(r,s){return CY(r,s)}function CY(r,s,f){let h,w={};for(let $=0;$<r.length;$++){let E=r[$],I=Cb(E),F="";if(f===void 0)F=I;else F=f+"."+I;if(I===s.textNodeName)if(h===void 0)h=E[I];else h+=""+E[I];else if(I===void 0)continue;else if(E[I]){let U=CY(E[I],s,F),A=Sb(U,s);if(E[":@"])Rb(U,E[":@"],F,s);else if(Object.keys(U).length===1&&U[s.textNodeName]!==void 0&&!s.alwaysCreateTextNode)U=U[s.textNodeName];else if(Object.keys(U).length===0)if(s.alwaysCreateTextNode)U[s.textNodeName]="";else U="";if(w[I]!==void 0&&w.hasOwnProperty(I)){if(!Array.isArray(w[I]))w[I]=[w[I]];w[I].push(U)}else if(s.isArray(I,F,A))w[I]=[U];else w[I]=U}}if(typeof h==="string"){if(h.length>0)w[s.textNodeName]=h}else if(h!==void 0)w[s.textNodeName]=h;return w}function Cb(r){let s=Object.keys(r);for(let f=0;f<s.length;f++){let h=s[f];if(h!==":@")return h}}function Rb(r,s,f,h){if(s){let w=Object.keys(s),$=w.length;for(let E=0;E<$;E++){let I=w[E];if(h.isArray(I,f+"."+I,!0,!0))r[I]=[s[I]];else r[I]=s[I]}}}function Sb(r,s){let{textNodeName:f}=s,h=Object.keys(r).length;if(h===0)return!0;if(h===1&&(r[f]||typeof r[f]==="boolean"||r[f]===0))return!0;return!1}Yb.prettify=Wb});var XY=i((q0r,YY)=>{var{buildOptions:Kb}=wY(),Pb=WY(),{prettify:Zb}=RY(),Qb=tU();class SY{constructor(r){this.externalEntities={},this.options=Kb(r)}parse(r,s){if(typeof r==="string");else if(r.toString)r=r.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(s){if(s===!0)s={};let w=Qb.validate(r,s);if(w!==!0)throw Error(`${w.err.msg}:${w.err.line}:${w.err.col}`)}let f=new Pb(this.options);f.addExternalEntities(this.externalEntities);let h=f.parseXml(r);if(this.options.preserveOrder||h===void 0)return h;else return Zb(h,this.options)}addEntity(r,s){if(s.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(r.indexOf("&")!==-1||r.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(s==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[r]=s}}YY.exports=SY});var JY=i((m0r,QY)=>{function Jb(r,s){let f="";if(s.format&&s.indentBy.length>0)f="\n";return PY(r,s,"",f)}function PY(r,s,f,h){let w="",$=!1;for(let E=0;E<r.length;E++){let I=r[E],F=Bb(I);if(F===void 0)continue;let U="";if(f.length===0)U=F;else U=`${f}.${F}`;if(F===s.textNodeName){let P=I[F];if(!Mb(U,s))P=s.tagValueProcessor(F,P),P=ZY(P,s);if($)w+=h;w+=P,$=!1;continue}else if(F===s.cdataPropName){if($)w+=h;w+=`<![CDATA[${I[F][0][s.textNodeName]}]]>`,$=!1;continue}else if(F===s.commentPropName){w+=h+`<!--${I[F][0][s.textNodeName]}-->`,$=!0;continue}else if(F[0]==="?"){let P=KY(I[":@"],s),N=F==="?xml"?"":h,M=I[F][0][s.textNodeName];M=M.length!==0?" "+M:"",w+=N+`<${F}${M}${P}?>`,$=!0;continue}let A=h;if(A!=="")A+=s.indentBy;let L=KY(I[":@"],s),S=h+`<${F}${L}`,R=PY(I[F],s,U,A);if(s.unpairedTags.indexOf(F)!==-1)if(s.suppressUnpairedNode)w+=S+">";else w+=S+"/>";else if((!R||R.length===0)&&s.suppressEmptyNode)w+=S+"/>";else if(R&&R.endsWith(">"))w+=S+`>${R}${h}</${F}>`;else{if(w+=S+">",R&&h!==""&&(R.includes("/>")||R.includes("</")))w+=h+s.indentBy+R+h;else w+=R;w+=`</${F}>`}$=!0}return w}function Bb(r){let s=Object.keys(r);for(let f=0;f<s.length;f++){let h=s[f];if(!r.hasOwnProperty(h))continue;if(h!==":@")return h}}function KY(r,s){let f="";if(r&&!s.ignoreAttributes)for(let h in r){if(!r.hasOwnProperty(h))continue;let w=s.attributeValueProcessor(h,r[h]);if(w=ZY(w,s),w===!0&&s.suppressBooleanAttributes)f+=` ${h.substr(s.attributeNamePrefix.length)}`;else f+=` ${h.substr(s.attributeNamePrefix.length)}="${w}"`}return f}function Mb(r,s){r=r.substr(0,r.length-s.textNodeName.length-1);let f=r.substr(r.lastIndexOf(".")+1);for(let h in s.stopNodes)if(s.stopNodes[h]===r||s.stopNodes[h]==="*."+f)return!0;return!1}function ZY(r,s){if(r&&r.length>0&&s.processEntities)for(let f=0;f<s.entities.length;f++){let h=s.entities[f];r=r.replace(h.regex,h.val)}return r}QY.exports=Jb});var MY=i((j0r,BY)=>{var Vb=JY(),Hb={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,s){return s},attributeValueProcessor:function(r,s){return s},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o0(r){if(this.options=Object.assign({},Hb,r),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=kb;if(this.processTextOrObjNode=lb,this.options.format)this.indentate=Db,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}o0.prototype.build=function(r){if(this.options.preserveOrder)return Vb(r,this.options);else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)r={[this.options.arrayNodeName]:r};return this.j2x(r,0).val}};o0.prototype.j2x=function(r,s){let f="",h="";for(let w in r){if(!Object.prototype.hasOwnProperty.call(r,w))continue;if(typeof r[w]==="undefined"){if(this.isAttribute(w))h+=""}else if(r[w]===null)if(this.isAttribute(w))h+="";else if(w[0]==="?")h+=this.indentate(s)+"<"+w+"?"+this.tagEndChar;else h+=this.indentate(s)+"<"+w+"/"+this.tagEndChar;else if(r[w]instanceof Date)h+=this.buildTextValNode(r[w],w,"",s);else if(typeof r[w]!=="object"){let $=this.isAttribute(w);if($)f+=this.buildAttrPairStr($,""+r[w]);else if(w===this.options.textNodeName){let E=this.options.tagValueProcessor(w,""+r[w]);h+=this.replaceEntitiesValue(E)}else h+=this.buildTextValNode(r[w],w,"",s)}else if(Array.isArray(r[w])){let $=r[w].length,E="",I="";for(let F=0;F<$;F++){let U=r[w][F];if(typeof U==="undefined");else if(U===null)if(w[0]==="?")h+=this.indentate(s)+"<"+w+"?"+this.tagEndChar;else h+=this.indentate(s)+"<"+w+"/"+this.tagEndChar;else if(typeof U==="object")if(this.options.oneListGroup){let A=this.j2x(U,s+1);if(E+=A.val,this.options.attributesGroupName&&U.hasOwnProperty(this.options.attributesGroupName))I+=A.attrStr}else E+=this.processTextOrObjNode(U,w,s);else if(this.options.oneListGroup){let A=this.options.tagValueProcessor(w,U);A=this.replaceEntitiesValue(A),E+=A}else E+=this.buildTextValNode(U,w,"",s)}if(this.options.oneListGroup)E=this.buildObjectNode(E,w,I,s);h+=E}else if(this.options.attributesGroupName&&w===this.options.attributesGroupName){let $=Object.keys(r[w]),E=$.length;for(let I=0;I<E;I++)f+=this.buildAttrPairStr($[I],""+r[w][$[I]])}else h+=this.processTextOrObjNode(r[w],w,s)}return{attrStr:f,val:h}};o0.prototype.buildAttrPairStr=function(r,s){if(s=this.options.attributeValueProcessor(r,""+s),s=this.replaceEntitiesValue(s),this.options.suppressBooleanAttributes&&s==="true")return" "+r;else return" "+r+'="'+s+'"'};function lb(r,s,f){let h=this.j2x(r,f+1);if(r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1)return this.buildTextValNode(r[this.options.textNodeName],s,h.attrStr,f);else return this.buildObjectNode(h.val,s,h.attrStr,f)}o0.prototype.buildObjectNode=function(r,s,f,h){if(r==="")if(s[0]==="?")return this.indentate(h)+"<"+s+f+"?"+this.tagEndChar;else return this.indentate(h)+"<"+s+f+this.closeTag(s)+this.tagEndChar;else{let w="</"+s+this.tagEndChar,$="";if(s[0]==="?")$="?",w="";if((f||f==="")&&r.indexOf("<")===-1)return this.indentate(h)+"<"+s+f+$+">"+r+w;else if(this.options.commentPropName!==!1&&s===this.options.commentPropName&&$.length===0)return this.indentate(h)+`<!--${r}-->`+this.newLine;else return this.indentate(h)+"<"+s+f+$+this.tagEndChar+r+this.indentate(h)+w}};o0.prototype.closeTag=function(r){let s="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)s="/"}else if(this.options.suppressEmptyNode)s="/";else s=`></${r}`;return s};o0.prototype.buildTextValNode=function(r,s,f,h){if(this.options.cdataPropName!==!1&&s===this.options.cdataPropName)return this.indentate(h)+`<![CDATA[${r}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&s===this.options.commentPropName)return this.indentate(h)+`<!--${r}-->`+this.newLine;else if(s[0]==="?")return this.indentate(h)+"<"+s+f+"?"+this.tagEndChar;else{let w=this.options.tagValueProcessor(s,r);if(w=this.replaceEntitiesValue(w),w==="")return this.indentate(h)+"<"+s+f+this.closeTag(s)+this.tagEndChar;else return this.indentate(h)+"<"+s+f+">"+w+"</"+s+this.tagEndChar}};o0.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let s=0;s<this.options.entities.length;s++){let f=this.options.entities[s];r=r.replace(f.regex,f.val)}return r};function Db(r){return this.options.indentBy.repeat(r)}function kb(r){if(r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName)return r.substr(this.attrPrefixLen);else return!1}BY.exports=o0});var HY=i((v0r,VY)=>{var yb=tU(),Nb=XY(),qb=MY();VY.exports={XMLParser:Nb,XMLValidator:yb,XMLBuilder:qb}});var qY=i((i0r,NY)=>{var{defineProperty:W3,getOwnPropertyDescriptor:mb,getOwnPropertyNames:jb}=Object,vb=Object.prototype.hasOwnProperty,Sf=(r,s)=>W3(r,"name",{value:s,configurable:!0}),ib=(r,s)=>{for(var f in s)W3(r,f,{get:s[f],enumerable:!0})},Ob=(r,s,f,h)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of jb(s))if(!vb.call(r,w)&&w!==f)W3(r,w,{get:()=>s[w],enumerable:!(h=mb(s,w))||h.enumerable})}return r},db=(r)=>Ob(W3({},"__esModule",{value:!0}),r),lY={};ib(lY,{_toBool:()=>bb,_toNum:()=>_b,_toStr:()=>cb,awsExpectUnion:()=>xb,loadRestJsonErrorCode:()=>ob,loadRestXmlErrorCode:()=>tb,parseJsonBody:()=>kY,parseJsonErrorBody:()=>nb,parseXmlBody:()=>yY,parseXmlErrorBody:()=>ub});NY.exports=db(lY);var cb=Sf((r)=>{if(r==null)return r;if(typeof r==="number"||typeof r==="bigint"){let s=new Error(`Received number ${r} where a string was expected.`);return s.name="Warning",console.warn(s),String(r)}if(typeof r==="boolean"){let s=new Error(`Received boolean ${r} where a string was expected.`);return s.name="Warning",console.warn(s),String(r)}return r},"_toStr"),bb=Sf((r)=>{if(r==null)return r;if(typeof r==="string"){let s=r.toLowerCase();if(r!==""&&s!=="false"&&s!=="true"){let f=new Error(`Received string "${r}" where a boolean was expected.`);f.name="Warning",console.warn(f)}return r!==""&&s!=="false"}return r},"_toBool"),_b=Sf((r)=>{if(r==null)return r;if(typeof r==="string"){let s=Number(r);if(s.toString()!==r){let f=new Error(`Received string "${r}" where a number was expected.`);return f.name="Warning",console.warn(f),r}return s}return r},"_toNum"),gb=Aw(),xb=Sf((r)=>{if(r==null)return;if(typeof r==="object"&&"__type"in r)delete r.__type;return gb.expectUnion(r)},"awsExpectUnion"),eb=Aw(),DY=Sf((r,s)=>eb.collectBody(r,s).then((f)=>s.utf8Encoder(f)),"collectBodyString"),kY=Sf((r,s)=>DY(r,s).then((f)=>{if(f.length)try{return JSON.parse(f)}catch(h){if((h==null?void 0:h.name)==="SyntaxError")Object.defineProperty(h,"$responseBodyText",{value:f});throw h}return{}}),"parseJsonBody"),nb=Sf(async(r,s)=>{let f=await kY(r,s);return f.message=f.message??f.Message,f},"parseJsonErrorBody"),ob=Sf((r,s)=>{let f=Sf(($,E)=>Object.keys($).find((I)=>I.toLowerCase()===E.toLowerCase()),"findKey"),h=Sf(($)=>{let E=$;if(typeof E==="number")E=E.toString();if(E.indexOf(",")>=0)E=E.split(",")[0];if(E.indexOf(":")>=0)E=E.split(":")[0];if(E.indexOf("#")>=0)E=E.split("#")[1];return E},"sanitizeErrorCode"),w=f(r.headers,"x-amzn-errortype");if(w!==void 0)return h(r.headers[w]);if(s.code!==void 0)return h(s.code);if(s.__type!==void 0)return h(s.__type)},"loadRestJsonErrorCode"),ab=Aw(),pb=HY(),yY=Sf((r,s)=>DY(r,s).then((f)=>{if(f.length){let h=new pb.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,U)=>U.trim()===""&&U.includes("\n")?"":void 0});h.addEntity("#xD","\r"),h.addEntity("#10","\n");let w;try{w=h.parse(f,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:f});throw F}let $="#text",E=Object.keys(w)[0],I=w[E];if(I[$])I[E]=I[$],delete I[$];return ab.getValueFromTextNode(I)}return{}}),"parseXmlBody"),ub=Sf(async(r,s)=>{let f=await yY(r,s);if(f.Error)f.Error.message=f.Error.message??f.Error.Message;return f},"parseXmlErrorBody"),tb=Sf((r,s)=>{var f;if(((f=s==null?void 0:s.Error)==null?void 0:f.Code)!==void 0)return s.Error.Code;if((s==null?void 0:s.Code)!==void 0)return s.Code;if(r.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Br=i((m1)=>{Object.defineProperty(m1,"__esModule",{value:!0});var s6=WS();s6.__exportStar(rf(),m1);s6.__exportStar(aS(),m1);s6.__exportStar(qY(),m1)});async function mY(r,s,f){if(f.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")Fs.setFeature(r,"PROTOCOL_RPC_V2_CBOR","M");if(typeof s.retryStrategy==="function"){let $=await s.retryStrategy();if(typeof $.acquireInitialRetryToken==="function")if($.constructor?.name?.includes("Adaptive"))Fs.setFeature(r,"RETRY_MODE_ADAPTIVE","F");else Fs.setFeature(r,"RETRY_MODE_STANDARD","E");else Fs.setFeature(r,"RETRY_MODE_LEGACY","D")}if(typeof s.accountIdEndpointMode==="function"){let $=r.endpointV2;if(String($?.url?.hostname).match(r_))Fs.setFeature(r,"ACCOUNT_ID_ENDPOINT","O");switch(await s.accountIdEndpointMode?.()){case"disabled":Fs.setFeature(r,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Fs.setFeature(r,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Fs.setFeature(r,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let w=r.__smithy_context?.selectedHttpAuthScheme?.identity;if(w?.$source){let $=w;if($.accountId)Fs.setFeature(r,"RESOLVED_ACCOUNT_ID","T");for(let[E,I]of Object.entries($.$source??{}))Fs.setFeature(r,E,I)}}var Fs,r_;var jY=G(()=>{Fs=e(Br(),1),r_=/\d{12}\.ddb/});var h6="user-agent",C3="x-amz-user-agent",w6=" ",R3="/",vY,iY,$6="-";var OY=G(()=>{vY=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,iY=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});function dY(r){let s="";for(let f in r){let h=r[f];if(s.length+h.length+1<=1024){if(s.length)s+=","+h;else s+=h;continue}break}return s}var f_=(r)=>(s,f)=>async(h)=>{let{request:w}=h;if(!Vr.isInstance(w))return s(h);let{headers:$}=w,E=f?.userAgent?.map(S3)||[],I=(await r.defaultUserAgentProvider()).map(S3);await mY(f,r,h);let F=f;I.push(`m/${dY(Object.assign({},f.__smithy_context?.features,F.__aws_sdk_context?.features))}`);let U=r?.customUserAgent?.map(S3)||[],A=await r.userAgentAppId();if(A)I.push(S3([`app/${A}`]));let L=k7(),S=(L?[L]:[]).concat([...I,...E,...U]).join(w6),R=[...I.filter((P)=>P.startsWith("aws-sdk-")),...U].join(w6);if(r.runtime!=="browser"){if(R)$[C3]=$[C3]?`${$[h6]} ${R}`:R;$[h6]=S}else $[C3]=S;return s({...h,request:w})},S3=(r)=>{let s=r[0].split(R3).map((E)=>E.replace(vY,$6)).join(R3),f=r[1]?.replace(iY,$6),h=s.indexOf(R3),w=s.substring(0,h),$=s.substring(h+1);if(w==="api")$=$.toLowerCase();return[w,$,f].filter((E)=>E&&E.length>0).reduce((E,I,F)=>{switch(F){case 0:return I;case 1:return`${E}/${I}`;default:return`${E}#${I}`}},"")},s_,ks=(r)=>({applyToStack:(s)=>{s.add(f_(r),s_)}});var cY=G(()=>{Vh();yr();jY();OY();s_={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var Dh=G(()=>{_R();cY()});var Rw=(r,s,f)=>{if(!(s in r))return;if(r[s]==="true")return!0;if(r[s]==="false")return!1;throw new Error(`Cannot load ${f} "${s}". Expected "true" or "false", got ${r[s]}.`)};var a0;var bY=G(()=>{(function(r){r.ENV="env",r.CONFIG="shared config entry"})(a0||(a0={}))});var E6=G(()=>{bY()});var h_="AWS_USE_DUALSTACK_ENDPOINT",w_="use_dualstack_endpoint",ys;var _Y=G(()=>{E6();ys={environmentVariableSelector:(r)=>Rw(r,h_,a0.ENV),configFileSelector:(r)=>Rw(r,w_,a0.CONFIG),default:!1}});var $_="AWS_USE_FIPS_ENDPOINT",E_="use_fips_endpoint",Ns;var gY=G(()=>{E6();Ns={environmentVariableSelector:(r)=>Rw(r,$_,a0.ENV),configFileSelector:(r)=>Rw(r,E_,a0.CONFIG),default:!1}});var I6,lf=(r)=>r[I6.SMITHY_CONTEXT_KEY]||(r[I6.SMITHY_CONTEXT_KEY]={});var xY=G(()=>{I6=e(Uf(),1)});var Nr=(r)=>{if(typeof r==="function")return r;let s=Promise.resolve(r);return()=>s};var Us=G(()=>{xY()});var eY=G(()=>{Us()});var nY=G(()=>{Us()});var oY=G(()=>{_Y();gY();eY();nY()});var Df,qs;var aY=G(()=>{Df={environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>r.region,default:()=>{throw new Error("Region is missing")}},qs={preferredFile:"credentials"}});var Y3=(r)=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"));var F6=(r)=>Y3(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r;var pY=()=>{};var ms=(r)=>{let{region:s,useFipsEndpoint:f}=r;if(!s)throw new Error("Region is missing");return{...r,region:async()=>{if(typeof s==="string")return F6(s);let h=await s();return F6(h)},useFipsEndpoint:async()=>{let h=typeof s==="string"?s:await s();if(Y3(h))return!0;return typeof f!=="function"?Promise.resolve(!!f):f()}}};var uY=G(()=>{pY()});var tY=G(()=>{aY();uY()});var rX=()=>{};var fX=()=>{};var sX=()=>{};var hX=G(()=>{rX();fX();sX()});var kf=G(()=>{oY();tY();hX()});function I_(r){return(s)=>async(f)=>{let h=f.request;if(Vr.isInstance(h)){let{body:w,headers:$}=h;if(w&&Object.keys($).map((E)=>E.toLowerCase()).indexOf(wX)===-1)try{let E=r(w);h.headers={...h.headers,[wX]:String(E)}}catch(E){}}return s({...f,request:h})}}var wX="content-length",F_,js=(r)=>({applyToStack:(s)=>{s.add(I_(r.bodyLengthChecker),F_)}});var Sw=G(()=>{yr();F_={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var $X=async(r)=>{let s=r?.Bucket||"";if(typeof r.Bucket==="string")r.Bucket=s.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(L_(s)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!A_(s)||s.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||s.toLowerCase()!==s||s.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},U_,T_,G_,A_=(r)=>U_.test(r)&&!T_.test(r)&&!G_.test(r),L_=(r)=>{let[s,f,h,,,w]=r.split(":"),$=s==="arn"&&r.split(":").length>=6,E=Boolean($&&f&&h&&w);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E};var EX=G(()=>{U_=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,T_=/(\d+\.){3}\d+/,G_=/\.\./});var IX=G(()=>{EX()});var FX=(r,s,f)=>{let h=async()=>{let w=f[r]??f[s];if(typeof w==="function")return w();return w};if(r==="credentialScope"||s==="CredentialScope")return async()=>{let w=typeof f.credentials==="function"?await f.credentials():f.credentials;return w?.credentialScope??w?.CredentialScope};if(r==="accountId"||s==="AccountId")return async()=>{let w=typeof f.credentials==="function"?await f.credentials():f.credentials;return w?.accountId??w?.AccountId};if(r==="endpoint"||s==="endpoint")return async()=>{let w=await h();if(w&&typeof w==="object"){if("url"in w)return w.url.href;if("hostname"in w){let{protocol:$,hostname:E,port:I,path:F}=w;return`${$}//${E}${I?":"+I:""}${F}`}}return w};return h};var yf;var j1=G(()=>{yf=class yf extends Error{constructor(r,s=!0){let f,h=!0;if(typeof s==="boolean")f=void 0,h=s;else if(s!=null&&typeof s==="object")f=s.logger,h=s.tryNextLink??!0;super(r);this.name="ProviderError",this.tryNextLink=h,Object.setPrototypeOf(this,yf.prototype),f?.debug?.(`@smithy/property-provider ${h?"->":"(!)"} ${r}`)}static from(r,s=!0){return Object.assign(new this(r.message,s),r)}}});var n;var UX=G(()=>{j1();n=class n extends yf{constructor(r,s=!0){super(r,s);this.name="CredentialsProviderError",Object.setPrototypeOf(this,n.prototype)}}});var Tf;var TX=G(()=>{j1();Tf=class Tf extends yf{constructor(r,s=!0){super(r,s);this.name="TokenProviderError",Object.setPrototypeOf(this,Tf.prototype)}}});var K0=(...r)=>async()=>{if(r.length===0)throw new yf("No providers in chain");let s;for(let f of r)try{return await f()}catch(h){if(s=h,h?.tryNextLink)continue;throw h}throw s};var GX=G(()=>{j1()});var AX=(r)=>()=>Promise.resolve(r);var kh=(r,s,f)=>{let h,w,$,E=!1,I=async()=>{if(!w)w=r();try{h=await w,$=!0,E=!1}finally{w=void 0}return h};if(s===void 0)return async(F)=>{if(!$||F?.forceRefresh)h=await I();return h};return async(F)=>{if(!$||F?.forceRefresh)h=await I();if(E)return h;if(f&&!f(h))return E=!0,h;if(s(h))return await I(),h;return h}};var Lr=G(()=>{UX();j1();TX();GX()});function X3(r){try{let s=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return s.delete("CONFIG"),s.delete("CONFIG_PREFIX_SEPARATOR"),s.delete("ENV"),[...s].join(", ")}catch(s){return r}}var LX=(r,s)=>async()=>{try{let f=r(process.env);if(f===void 0)throw new Error;return f}catch(f){throw new n(f.message||`Not found in ENV: ${X3(r.toString())}`,{logger:s})}};var zX=G(()=>{Lr()});import{homedir as z_}from"os";import{sep as W_}from"path";var U6,C_=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},p0=()=>{let{HOME:r,USERPROFILE:s,HOMEPATH:f,HOMEDRIVE:h=`C:${W_}`}=process.env;if(r)return r;if(s)return s;if(f)return`${h}${f}`;let w=C_();if(!U6[w])U6[w]=z_();return U6[w]};var Yw=G(()=>{U6={}});var WX="AWS_PROFILE",Nf=(r)=>r.profile||process.env.AWS_PROFILE||"default";import{createHash as R_}from"crypto";import{join as S_}from"path";var K3=(r)=>{let f=R_("sha1").update(r).digest("hex");return S_(p0(),".aws","sso","cache",`${f}.json`)};var T6=G(()=>{Yw()});import{promises as Y_}from"fs";var X_,P3=async(r)=>{let s=K3(r),f=await X_(s,"utf8");return JSON.parse(f)};var CX=G(()=>{T6();({readFile:X_}=Y_)});var G6,RX=(r)=>Object.entries(r).filter(([s])=>{let f=s.indexOf(qf);if(f===-1)return!1;return Object.values(G6.IniSectionType).includes(s.substring(0,f))}).reduce((s,[f,h])=>{let w=f.indexOf(qf),$=f.substring(0,w)===G6.IniSectionType.PROFILE?f.substring(w+1):f;return s[$]=h,s},{...r.default&&{default:r.default}});var SX=G(()=>{G6=e(Uf(),1);Xw()});import{join as K_}from"path";var P_="AWS_CONFIG_FILE",Z3=()=>process.env[P_]||K_(p0(),".aws","config");var A6=G(()=>{Yw()});import{join as Z_}from"path";var Q_="AWS_SHARED_CREDENTIALS_FILE",YX=()=>process.env[Q_]||Z_(p0(),".aws","credentials");var XX=G(()=>{Yw()});var KX,J_,B_,v1=(r)=>{let s={},f,h;for(let w of r.split(/\r?\n/)){let $=w.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){f=void 0,h=void 0;let I=$.substring(1,$.length-1),F=J_.exec(I);if(F){let[,U,,A]=F;if(Object.values(KX.IniSectionType).includes(U))f=[U,A].join(qf)}else f=I;if(B_.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(f){let I=$.indexOf("=");if(![0,-1].includes(I)){let[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")h=F;else{if(h&&w.trimStart()===w)h=void 0;s[f]=s[f]||{};let A=h?[h,F].join(qf):F;s[f][A]=U}}}}return s};var L6=G(()=>{KX=e(Uf(),1);Xw();J_=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,B_=["__proto__","profile __proto__"]});import{promises as M_}from"fs";var V_,z6,i1=(r,s)=>{if(!z6[r]||s?.ignoreCache)z6[r]=V_(r,"utf8");return z6[r]};var W6=G(()=>{({readFile:V_}=M_),z6={}});import{join as PX}from"path";var ZX=()=>({}),qf=".",Q3=async(r={})=>{let{filepath:s=YX(),configFilepath:f=Z3()}=r,h=p0(),w="~/",$=s;if(s.startsWith("~/"))$=PX(h,s.slice(2));let E=f;if(f.startsWith("~/"))E=PX(h,f.slice(2));let I=await Promise.all([i1(E,{ignoreCache:r.ignoreCache}).then(v1).then(RX).catch(ZX),i1($,{ignoreCache:r.ignoreCache}).then(v1).catch(ZX)]);return{configFile:I[0],credentialsFile:I[1]}};var Xw=G(()=>{SX();A6();XX();Yw();L6();W6()});var QX,JX=(r)=>Object.entries(r).filter(([s])=>s.startsWith(QX.IniSectionType.SSO_SESSION+qf)).reduce((s,[f,h])=>({...s,[f.substring(f.indexOf(qf)+1)]:h}),{});var BX=G(()=>{QX=e(Uf(),1);Xw()});var H_=()=>({}),J3=async(r={})=>i1(r.configFilepath??Z3()).then(v1).then(JX).catch(H_);var MX=G(()=>{A6();BX();L6();W6()});var VX=(...r)=>{let s={};for(let f of r)for(let[h,w]of Object.entries(f))if(s[h]!==void 0)Object.assign(s[h],w);else s[h]=w;return s};var u0=async(r)=>{let s=await Q3(r);return VX(s.configFile,s.credentialsFile)};var HX=G(()=>{Xw()});var lX=()=>{};var Ts=G(()=>{Yw();T6();CX();Xw();MX();HX();lX()});var DX=(r,{preferredFile:s="config",...f}={})=>async()=>{let h=Nf(f),{configFile:w,credentialsFile:$}=await Q3(f),E=$[h]||{},I=w[h]||{},F=s==="config"?{...E,...I}:{...I,...E};try{let A=r(F,s==="config"?w:$);if(A===void 0)throw new Error;return A}catch(U){throw new n(U.message||`Not found in config files w/ profile [${h}]: ${X3(r.toString())}`,{logger:f.logger})}};var kX=G(()=>{Lr();Ts()});var l_=(r)=>typeof r==="function",yX=(r)=>l_(r)?async()=>await r():AX(r);var NX=G(()=>{Lr()});var t=({environmentVariableSelector:r,configFileSelector:s,default:f},h={})=>kh(K0(LX(r),DX(s,h),yX(f)));var qX=G(()=>{Lr();zX();kX();NX()});var vs=G(()=>{qX()});var mX="AWS_ENDPOINT_URL",jX="endpoint_url",vX=(r)=>({environmentVariableSelector:(s)=>{let f=r.split(" ").map(($)=>$.toUpperCase()),h=s[[mX,...f].join("_")];if(h)return h;let w=s[mX];if(w)return w;return},configFileSelector:(s,f)=>{if(f&&s.services){let w=f[["services",s.services].join(qf)];if(w){let $=r.split(" ").map((I)=>I.toLowerCase()),E=w[[$.join("_"),jX].join(qf)];if(E)return E}}let h=s[jX];if(h)return h;return},default:void 0});var iX=G(()=>{Ts()});var B3=async(r)=>t(vX(r??""))();var C6=G(()=>{vs();iX()});function OX(r){let s={};if(r=r.replace(/^\?/,""),r)for(let f of r.split("&")){let[h,w=null]=f.split("=");if(h=decodeURIComponent(h),w)w=decodeURIComponent(w);if(!(h in s))s[h]=w;else if(Array.isArray(s[h]))s[h].push(w);else s[h]=[s[h],w]}return s}var _r=(r)=>{if(typeof r==="string")return _r(new URL(r));let{hostname:s,pathname:f,port:h,protocol:w,search:$}=r,E;if($)E=OX($);return{hostname:s,port:h?parseInt(h):void 0,protocol:w,path:f,query:E}};var t0=()=>{};var M3=(r)=>{if(typeof r==="object"){if("url"in r)return _r(r.url);return r}return _r(r)};var V3=G(()=>{t0()});var dX=async(r,s,f,h)=>{if(!f.endpoint){let E;if(f.serviceConfiguredEndpoint)E=await f.serviceConfiguredEndpoint();else E=await B3(f.serviceId);if(E)f.endpoint=()=>Promise.resolve(M3(E))}let w=await D_(r,s,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(w,h)},D_=async(r,s,f)=>{let h={},w=s?.getEndpointParameterInstructions?.()||{};for(let[$,E]of Object.entries(w))switch(E.type){case"staticContextParams":h[$]=E.value;break;case"contextParams":h[$]=r[E.name];break;case"clientContextParams":case"builtInParams":h[$]=await FX(E.name,$,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys(w).length===0)Object.assign(h,f);if(String(f.serviceId).toLowerCase()==="s3")await $X(h);return h};var R6=G(()=>{IX();C6();V3()});var cX=G(()=>{R6();V3()});var bX=({config:r,instructions:s})=>{return(f,h)=>async(w)=>{let $=await dX(w.input,{getEndpointParameterInstructions(){return s}},{...r},h);h.endpointV2=$,h.authSchemes=$.properties?.authSchemes;let E=h.authSchemes?.[0];if(E){h.signing_region=E.signingRegion,h.signing_service=E.signingName;let F=lf(h)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return f({...w})}};var S6=G(()=>{Us();R6()});var _X=(r,s)=>(f)=>async(h)=>{let{response:w}=await f(h);try{let $=await s(w,r);return{response:w,output:$}}catch($){if(Object.defineProperty($,"$response",{value:w}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}};var gX=(r,s)=>(f,h)=>async(w)=>{let $=h.endpointV2?.url&&r.urlParser?async()=>r.urlParser(h.endpointV2.url):r.endpoint;if(!$)throw new Error("No valid endpoint provider available.");let E=await s(w.input,{...r,endpoint:$});return f({...w,request:E})};function W(r,s,f){return{applyToStack:(h)=>{h.add(_X(r,f),k_),h.add(gX(r,s),Y6)}}}var k_,Y6;var xX=G(()=>{k_={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Y6={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var V=G(()=>{xX()});var y_,C=(r,s)=>({applyToStack:(f)=>{f.addRelativeTo(bX({config:r,instructions:s}),y_)}});var eX=G(()=>{V();S6();y_={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Y6.name}});var is=(r)=>{let s=r.tls??!0,{endpoint:f}=r,h=f!=null?async()=>M3(await Nr(f)()):void 0,$={...r,endpoint:h,tls:s,isCustomEndpoint:!!f,useDualstackEndpoint:Nr(r.useDualstackEndpoint??!1),useFipsEndpoint:Nr(r.useFipsEndpoint??!1)},E=void 0;return $.serviceConfiguredEndpoint=async()=>{if(r.serviceId&&!E)E=B3(r.serviceId);return E},$};var nX=G(()=>{Us();C6();V3()});var oX=()=>{};var B=G(()=>{cX();S6();eX();nX();oX()});var mf,yh=3,jf;var H3=G(()=>{(function(r){r.STANDARD="standard",r.ADAPTIVE="adaptive"})(mf||(mf={}));jf=mf.STANDARD});class l3{constructor(r){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=r?.beta??0.7,this.minCapacity=r?.minCapacity??1,this.minFillRate=r?.minFillRate??0.5,this.scaleConstant=r?.scaleConstant??0.4,this.smooth=r?.smooth??0.8;let s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(r){if(!this.enabled)return;if(this.refillTokenBucket(),r>this.currentCapacity){let s=(r-this.currentCapacity)/this.fillRate*1000;await new Promise((f)=>setTimeout(f,s))}this.currentCapacity=this.currentCapacity-r}refillTokenBucket(){let r=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=r;return}let s=(r-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+s),this.lastTimestamp=r}updateClientSendingRate(r){let s;if(this.updateMeasuredRate(),aX.isThrottlingError(r)){let h=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=h,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(h),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());let f=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(f)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(r){return this.getPrecise(r*this.beta)}cubicSuccess(r){return this.getPrecise(this.scaleConstant*Math.pow(r-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(r){this.refillTokenBucket(),this.fillRate=Math.max(r,this.minFillRate),this.maxCapacity=Math.max(r,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let r=this.getCurrentTimeInSeconds(),s=Math.floor(r*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){let f=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(f*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(r){return parseFloat(r.toFixed(8))}}var aX;var X6=G(()=>{aX=e(Qh(),1)});var Nh=100,O1=20000,K6=500,D3=500,P6=5,Z6=10,Q6=1,k3="amz-sdk-invocation-id",y3="amz-sdk-request";var pX=()=>{let r=Nh;return{computeNextBackoffDelay:(h)=>{return Math.floor(Math.min(O1,Math.random()*2**h*r))},setDelayBase:(h)=>{r=h}}};var uX=()=>{};var J6=({retryDelay:r,retryCount:s,retryCost:f})=>{return{getRetryCount:()=>s,getRetryDelay:()=>Math.min(O1,r),getRetryCost:()=>f}};var tX=()=>{};class Kw{constructor(r){this.maxAttempts=r,this.mode=mf.STANDARD,this.capacity=D3,this.retryBackoffStrategy=pX(),this.maxAttemptsProvider=typeof r==="function"?r:async()=>r}async acquireInitialRetryToken(r){return J6({retryDelay:Nh,retryCount:0})}async refreshRetryTokenForRetry(r,s){let f=await this.getMaxAttempts();if(this.shouldRetry(r,s,f)){let h=s.errorType;this.retryBackoffStrategy.setDelayBase(h==="THROTTLING"?K6:Nh);let w=this.retryBackoffStrategy.computeNextBackoffDelay(r.getRetryCount()),$=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,w):w,E=this.getCapacityCost(h);return this.capacity-=E,J6({retryDelay:$,retryCount:r.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(r){this.capacity=Math.max(D3,this.capacity+(r.getRetryCost()??Q6))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(r){return console.warn(`Max attempts provider could not resolve. Using default of ${yh}`),yh}}shouldRetry(r,s,f){return r.getRetryCount()+1<f&&this.capacity>=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(r){return r==="TRANSIENT"?Z6:P6}isRetryableError(r){return r==="THROTTLING"||r==="TRANSIENT"}}var N3=G(()=>{H3();uX();tX()});class B6{constructor(r,s){this.maxAttemptsProvider=r,this.mode=mf.ADAPTIVE;let{rateLimiter:f}=s??{};this.rateLimiter=f??new l3,this.standardRetryStrategy=new Kw(r)}async acquireInitialRetryToken(r){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(r)}async refreshRetryTokenForRetry(r,s){return this.rateLimiter.updateClientSendingRate(s),this.standardRetryStrategy.refreshRetryTokenForRetry(r,s)}recordSuccess(r){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(r)}}var rK=G(()=>{H3();X6();N3()});var fK=G(()=>{N3()});var sK=()=>{};var Yf=G(()=>{rK();fK();X6();N3();H3();sK()});var Os,sEr,hEr,hK,wEr,$Er,EEr,IEr,FEr,UEr;var wK=G(()=>{Os=e(bF(),1),sEr=Os.default.v1,hEr=Os.default.v3,hK=Os.default.v4,wEr=Os.default.v5,$Er=Os.default.NIL,EEr=Os.default.version,IEr=Os.default.validate,FEr=Os.default.stringify,UEr=Os.default.parse});var $K=G(()=>{Yf()});var M6=G(()=>{Yf()});var q3;var V6=G(()=>{q3=e(Qh(),1)});var H6=(r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)};var N_;var l6=G(()=>{yr();N_=e(Qh(),1);Yf();$K();M6();V6()});var EK=G(()=>{Yf();l6()});var IK="AWS_MAX_ATTEMPTS",FK="max_attempts",ds,cs=(r)=>{let{retryStrategy:s}=r,f=Nr(r.maxAttempts??yh);return{...r,maxAttempts:f,retryStrategy:async()=>{if(s)return s;if(await Nr(r.retryMode)()===mf.ADAPTIVE)return new B6(f);return new Kw(f)}}},q_="AWS_RETRY_MODE",m_="retry_mode",bs;var UK=G(()=>{Us();Yf();ds={environmentVariableSelector:(r)=>{let s=r[IK];if(!s)return;let f=parseInt(s);if(Number.isNaN(f))throw new Error(`Environment variable ${IK} mast be a number, got "${s}"`);return f},configFileSelector:(r)=>{let s=r[FK];if(!s)return;let f=parseInt(s);if(Number.isNaN(f))throw new Error(`Shared config file entry ${FK} mast be a number, got "${s}"`);return f},default:yh},bs={environmentVariableSelector:(r)=>r[q_],configFileSelector:(r)=>r[m_],default:jf}});var TK=G(()=>{yr();Yf()});var qh=(r,s)=>{let f=[];if(r)f.push(r);if(s)for(let h of s)f.push(h);return f},rh=(r,s)=>{return`${r||"anonymous"}${s&&s.length>0?` (a.k.a. ${s.join(",")})`:""}`},Pw=()=>{let r=[],s=[],f=!1,h=new Set,w=(L)=>L.sort((S,R)=>GK[R.step]-GK[S.step]||AK[R.priority||"normal"]-AK[S.priority||"normal"]),$=(L)=>{let S=!1,R=(P)=>{let N=qh(P.name,P.aliases);if(N.includes(L)){S=!0;for(let M of N)h.delete(M);return!1}return!0};return r=r.filter(R),s=s.filter(R),S},E=(L)=>{let S=!1,R=(P)=>{if(P.middleware===L){S=!0;for(let N of qh(P.name,P.aliases))h.delete(N);return!1}return!0};return r=r.filter(R),s=s.filter(R),S},I=(L)=>{return r.forEach((S)=>{L.add(S.middleware,{...S})}),s.forEach((S)=>{L.addRelativeTo(S.middleware,{...S})}),L.identifyOnResolve?.(A.identifyOnResolve()),L},F=(L)=>{let S=[];return L.before.forEach((R)=>{if(R.before.length===0&&R.after.length===0)S.push(R);else S.push(...F(R))}),S.push(L),L.after.reverse().forEach((R)=>{if(R.before.length===0&&R.after.length===0)S.push(R);else S.push(...F(R))}),S},U=(L=!1)=>{let S=[],R=[],P={};return r.forEach((M)=>{let l={...M,before:[],after:[]};for(let k of qh(l.name,l.aliases))P[k]=l;S.push(l)}),s.forEach((M)=>{let l={...M,before:[],after:[]};for(let k of qh(l.name,l.aliases))P[k]=l;R.push(l)}),R.forEach((M)=>{if(M.toMiddleware){let l=P[M.toMiddleware];if(l===void 0){if(L)return;throw new Error(`${M.toMiddleware} is not found when adding ${rh(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")l.after.push(M);if(M.relation==="before")l.before.push(M)}}),w(S).map(F).reduce((M,l)=>{return M.push(...l),M},[])},A={add:(L,S={})=>{let{name:R,override:P,aliases:N}=S,M={step:"initialize",priority:"normal",middleware:L,...S},l=qh(R,N);if(l.length>0){if(l.some((k)=>h.has(k))){if(!P)throw new Error(`Duplicate middleware name '${rh(R,N)}'`);for(let k of l){let v=r.findIndex((hr)=>hr.name===k||hr.aliases?.some((Mr)=>Mr===k));if(v===-1)continue;let x=r[v];if(x.step!==M.step||M.priority!==x.priority)throw new Error(`"${rh(x.name,x.aliases)}" middleware with ${x.priority} priority in ${x.step} step cannot be overridden by "${rh(R,N)}" middleware with ${M.priority} priority in ${M.step} step.`);r.splice(v,1)}}for(let k of l)h.add(k)}r.push(M)},addRelativeTo:(L,S)=>{let{name:R,override:P,aliases:N}=S,M={middleware:L,...S},l=qh(R,N);if(l.length>0){if(l.some((k)=>h.has(k))){if(!P)throw new Error(`Duplicate middleware name '${rh(R,N)}'`);for(let k of l){let v=s.findIndex((hr)=>hr.name===k||hr.aliases?.some((Mr)=>Mr===k));if(v===-1)continue;let x=s[v];if(x.toMiddleware!==M.toMiddleware||x.relation!==M.relation)throw new Error(`"${rh(x.name,x.aliases)}" middleware ${x.relation} "${x.toMiddleware}" middleware cannot be overridden by "${rh(R,N)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);s.splice(v,1)}}for(let k of l)h.add(k)}s.push(M)},clone:()=>I(Pw()),use:(L)=>{L.applyToStack(A)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let S=!1,R=(P)=>{let{tags:N,name:M,aliases:l}=P;if(N&&N.includes(L)){let k=qh(M,l);for(let v of k)h.delete(v);return S=!0,!1}return!0};return r=r.filter(R),s=s.filter(R),S},concat:(L)=>{let S=I(Pw());return S.use(L),S.identifyOnResolve(f||S.identifyOnResolve()||(L.identifyOnResolve?.()??!1)),S},applyToStack:I,identify:()=>{return U(!0).map((L)=>{let S=L.step??L.relation+" "+L.toMiddleware;return rh(L.name,L.aliases)+" - "+S})},identifyOnResolve(L){if(typeof L==="boolean")f=L;return f},resolve:(L,S)=>{for(let R of U().map((P)=>P.middleware).reverse())L=R(L,S);if(f)console.log(A.identify());return L}};return A},GK,AK;var LK=G(()=>{GK={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},AK={high:3,normal:2,low:1}});var D6=G(()=>{LK()});class Xf{constructor(r){this.config=r,this.middlewareStack=Pw()}send(r,s,f){let h=typeof s!=="function"?s:void 0,w=typeof s==="function"?s:f,$=h===void 0&&this.config.cacheMiddleware===!0,E;if($){if(!this.handlers)this.handlers=new WeakMap;let I=this.handlers;if(I.has(r.constructor))E=I.get(r.constructor);else E=r.resolveMiddleware(this.middlewareStack,this.config,h),I.set(r.constructor,E)}else delete this.handlers,E=r.resolveMiddleware(this.middlewareStack,this.config,h);if(w)E(r).then((I)=>w(null,I.output),(I)=>w(I)).catch(()=>{});else return E(r).then((I)=>I.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var zK=G(()=>{D6()});var WK=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as k6}from"buffer";var P0=(r,s=0,f=r.byteLength-s)=>{if(!WK(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return k6.from(r,s,f)},Zw=(r,s)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return s?k6.from(r,s):k6.from(r)};var mh=()=>{};var j_,Gf=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!j_.exec(r))throw new TypeError("Invalid base64 string.");let s=Zw(r,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)};var CK=G(()=>{mh();j_=/^[A-Za-z0-9+/]*={0,2}$/});var gr=(r)=>{let s=Zw(r,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var y6=G(()=>{mh()});var RK=(r)=>{if(typeof r==="string")return gr(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)};var SK=G(()=>{y6()});var Af=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return P0(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};var YK=G(()=>{mh()});var _s=G(()=>{y6();SK();YK()});var Lf=(r)=>{let s;if(typeof r==="string")s=gr(r);else s=r;if(typeof s!=="object"||typeof s.byteOffset!=="number"||typeof s.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return P0(s.buffer,s.byteOffset,s.byteLength).toString("base64")};var XK=G(()=>{mh();_s()});var Z0=G(()=>{CK();XK()});function KK(r,s="utf-8"){if(s==="base64")return Lf(r);return Af(r)}function PK(r,s){if(s==="base64")return Q0.mutate(Gf(r));return Q0.mutate(gr(r))}var ZK=G(()=>{Z0();_s();N6()});var Q0;var N6=G(()=>{ZK();Q0=class Q0 extends Uint8Array{static fromString(r,s="utf-8"){switch(typeof r){case"string":return PK(r,s);default:throw new Error(`Unsupported conversion from ${typeof r} to Uint8ArrayBlobAdapter.`)}}static mutate(r){return Object.setPrototypeOf(r,Q0.prototype),r}transformToString(r="utf-8"){return KK(this,r)}}});var QK=()=>{};var d1=(r)=>encodeURIComponent(r).replace(/[!'()*]/g,v_),v_=(r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`;var JK=()=>{};var BK=G(()=>{JK()});function m3(r){let s=[];for(let f of Object.keys(r).sort()){let h=r[f];if(f=d1(f),Array.isArray(h))for(let w=0,$=h.length;w<$;w++)s.push(`${f}=${d1(h[w])}`);else{let w=f;if(h||typeof h==="string")w+=`=${d1(h)}`;s.push(w)}}return s.join("&")}var j3=G(()=>{BK()});var MK;var VK=G(()=>{MK=["ECONNRESET","EPIPE","ETIMEDOUT"]});var q6=(r)=>{let s={};for(let f of Object.keys(r)){let h=r[f];s[f]=Array.isArray(h)?h.join(","):h}return s};var m6=()=>{};var HK=(r,s,f=0)=>{if(!f)return-1;let h=(w)=>{let $=setTimeout(()=>{r.destroy(),s(Object.assign(new Error(`Socket timed out without establishing a connection within ${f} ms`),{name:"TimeoutError"}))},f-w),E=(I)=>{if(I?.connecting)I.on("connect",()=>{clearTimeout($)});else clearTimeout($)};if(r.socket)E(r.socket);else r.on("socket",E)};if(f<2000)return h(0),0;return setTimeout(h.bind(null,1000),1000)};var lK=(r,{keepAlive:s,keepAliveMsecs:f},h=3000)=>{if(s!==!0)return-1;let w=()=>{if(r.socket)r.socket.setKeepAlive(s,f||0);else r.on("socket",($)=>{$.setKeepAlive(s,f||0)})};if(h===0)return w(),0;return setTimeout(w,h)};var DK=(r,s,f=0)=>{let h=(w)=>{r.setTimeout(f-w,()=>{r.destroy(),s(Object.assign(new Error(`Connection timed out after ${f} ms`),{name:"TimeoutError"}))})};if(0<f&&f<6000)return h(0),0;return setTimeout(h.bind(null,f===0?0:3000),3000)};import{Readable as i_}from"stream";async function j6(r,s,f=kK){let h=s.headers??{},w=h.Expect||h.expect,$=-1,E=!1;if(w==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(kK,f)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)O_(r,s.body)}function O_(r,s){if(s instanceof i_){s.pipe(r);return}if(s){if(Buffer.isBuffer(s)||typeof s==="string"){r.end(s);return}let f=s;if(typeof f==="object"&&f.buffer&&typeof f.byteOffset==="number"&&typeof f.byteLength==="number"){r.end(Buffer.from(f.buffer,f.byteOffset,f.byteLength));return}r.end(Buffer.from(s));return}r.end()}var kK=1000;var v6=()=>{};import{Agent as yK,request as d_}from"http";import{Agent as NK,request as c_}from"https";class sf{static create(r){if(typeof r?.handle==="function")return r;return new sf(r)}static checkSocketUsage(r,s,f=console){let{sockets:h,requests:w,maxSockets:$}=r;if(typeof $!=="number"||$===1/0)return s;let E=15000;if(Date.now()-E<s)return s;if(h&&w)for(let I in h){let F=h[I]?.length??0,U=w[I]?.length??0;if(F>=$&&U>=2*$)return f?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${U} additional requests are enqueued.
20
20
  See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
21
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return s}constructor(r){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((s,f)=>{if(typeof r==="function")r().then((w)=>{s(this.resolveDefaultConfig(w))}).catch(f);else s(this.resolveDefaultConfig(r))})}resolveDefaultConfig(r){const{requestTimeout:s,connectionTimeout:f,socketTimeout:w,httpAgent:h,httpsAgent:E}=r||{};return{connectionTimeout:f,requestTimeout:s??w,httpAgent:(()=>{if(h instanceof xK||typeof h?.destroy==="function")return h;return new xK({keepAlive:!0,maxSockets:50,...h})})(),httpsAgent:(()=>{if(E instanceof eK||typeof E?.destroy==="function")return E;return new eK({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(r,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;return new Promise((f,w)=>{let h=void 0;const E=[],$=async(k)=>{await h,E.forEach(clearTimeout),f(k)},I=async(k)=>{await h,E.forEach(clearTimeout),w(k)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(s?.aborted){const k=new Error("Request aborted");k.name="AbortError",I(k);return}const F=r.protocol==="https:",U=F?this.config.httpsAgent:this.config.httpAgent;E.push(setTimeout(()=>{this.socketWarningTimestamp=ff.checkSocketUsage(U,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));const A=j3(r.query||{});let L=void 0;if(r.username!=null||r.password!=null){const k=r.username??"",i=r.password??"";L=`${k}:${i}`}let S=r.path;if(A)S+=`?${A}`;if(r.fragment)S+=`#${r.fragment}`;let z=r.hostname??"";if(z[0]==="["&&z.endsWith("]"))z=r.hostname.slice(1,-1);else z=r.hostname;const Z={headers:r.headers,host:z,method:r.method,path:S,port:r.port,agent:U,auth:L},M=(F?Ig:$g)(Z,(k)=>{const i=new j0({statusCode:k.statusCode||-1,reason:k.statusMessage,headers:OU(k.headers),body:k});$({response:i})});if(M.on("error",(k)=>{if(OK.includes(k.code))I(Object.assign(k,{name:"TimeoutError"}));else I(k)}),s){const k=()=>{M.destroy();const i=new Error("Request aborted");i.name="AbortError",I(i)};if(typeof s.addEventListener==="function"){const i=s;i.addEventListener("abort",k,{once:!0}),M.once("close",()=>i.removeEventListener("abort",k))}else s.onabort=k}E.push(cK(M,I,this.config.connectionTimeout)),E.push(_K(M,I,this.config.requestTimeout));const l=Z.agent;if(typeof l==="object"&&"keepAlive"in l)E.push(bK(M,{keepAlive:l.keepAlive,keepAliveMsecs:l.keepAliveMsecs}));h=cU(M,r,this.config.requestTimeout).catch((k)=>{return E.forEach(clearTimeout),w(k)})})}updateHttpClientConfig(r,s){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return{...f,[r]:s}})}httpHandlerConfigs(){return this.config??{}}}var nK=G(()=>{kr();v3();dK();dU();bU()});var oK=()=>{};var aK=G(()=>{oK()});var pK=G(()=>{kr();v3();dU();aK();bU()});import{Writable as Fg}from"stream";var _U;var uK=G(()=>{_U=class _U extends Fg{constructor(){super(...arguments);this.bufferedBytes=[]}_write(r,s,f){this.bufferedBytes.push(r),f()}}});async function Tg(r){const s=[],f=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await f.read();if(F)s.push(F),h+=F.length;w=I}const E=new Uint8Array(h);let $=0;for(let I of s)E.set(I,$),$+=I.length;return E}var qf=(r)=>{if(Ug(r))return Tg(r);return new Promise((s,f)=>{const w=new _U;r.pipe(w),r.on("error",(h)=>{w.end(),f(h)}),w.on("error",f),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));s(h)})})},Ug=(r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream;var tK=G(()=>{uK()});var a0=G(()=>{nK();pK();tK()});var rZ=G(()=>{kr();v3()});async function Gg(r){const s=await Lg(r),f=Uf(s);return new Uint8Array(f)}async function Ag(r){const s=[],f=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await f.read();if(F)s.push(F),h+=F.length;w=I}const E=new Uint8Array(h);let $=0;for(let I of s)E.set(I,$),$+=I.length;return E}function Lg(r){return new Promise((s,f)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return f(new Error("Reader aborted too early"));const h=w.result??"",E=h.indexOf(","),$=E>-1?E+1:h.length;s(h.substring($))},w.onabort=()=>f(new Error("Read aborted")),w.onerror=()=>f(w.error),w.readAsDataURL(r)})}var fZ=(r)=>{if(typeof Blob==="function"&&r instanceof Blob)return Gg(r);return Ag(r)};var sZ=G(()=>{S0()});var wZ=G(()=>{rZ();sZ()});var O1=(r)=>typeof ReadableStream==="function"&&(r?.constructor?.name===ReadableStream.name||r instanceof ReadableStream);var $Z,hZ="The stream has already been transformed.",IZ=(r)=>{if(!EZ(r)&&!O1(r)){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${h}`)}let s=!1;const f=async()=>{if(s)throw new Error(hZ);return s=!0,await fZ(r)},w=(h)=>{if(typeof h.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return h.stream()};return Object.assign(r,{transformToByteArray:f,transformToString:async(h)=>{const E=await f();if(h==="base64")return Gf(E);else if(h==="hex")return $Z.toHex(E);else if(h===void 0||h==="utf8"||h==="utf-8")return Tf(E);else if(typeof TextDecoder==="function")return new TextDecoder(h).decode(E);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(s)throw new Error(hZ);if(s=!0,EZ(r))return w(r);else if(O1(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})},EZ=(r)=>typeof Blob==="function"&&r instanceof Blob;var FZ=G(()=>{wZ();S0();$Z=m(i$(),1);Os()});import{Readable as gU}from"stream";import{TextDecoder as Rg}from"util";var UZ="The stream has already been transformed.",TZ=(r)=>{if(!(r instanceof gU))try{return IZ(r)}catch(w){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${h}`)}let s=!1;const f=async()=>{if(s)throw new Error(UZ);return s=!0,await qf(r)};return Object.assign(r,{transformToByteArray:f,transformToString:async(w)=>{const h=await f();if(w===void 0||Buffer.isEncoding(w))return z0(h.buffer,h.byteOffset,h.byteLength).toString(w);else return new Rg(w).decode(h)},transformToWebStream:()=>{if(s)throw new Error(UZ);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof gU.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return s=!0,gU.toWeb(r)}})};var GZ=G(()=>{a0();lw();FZ()});var AZ=()=>{};var LZ=()=>{};var xU=G(()=>{iU();jK();GZ();AZ();LZ()});var gr=async(r=new Uint8Array,s)=>{if(r instanceof Uint8Array)return Y0.mutate(r);if(!r)return Y0.mutate(new Uint8Array);const f=s.streamCollector(r);return Y0.mutate(await f)};var RZ=G(()=>{xU()});class R{constructor(){this.middlewareStack=Sh()}static classBuilder(){return new WZ}resolveMiddlewareWithContext(r,s,f,{middlewareFn:w,clientName:h,commandName:E,inputFilterSensitiveLog:$,outputFilterSensitiveLog:I,smithyContext:F,additionalContext:U,CommandCtor:A}){for(let N of w.bind(this)(A,r,s,f))this.middlewareStack.use(N);const L=r.concat(this.middlewareStack),{logger:S}=s,z={logger:S,clientName:h,commandName:E,inputFilterSensitiveLog:$,outputFilterSensitiveLog:I,[CZ.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...U},{requestHandler:Z}=s;return L.resolve((N)=>Z.handle(N.request,f||{}),z)}}class WZ{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(r)=>r,this._outputFilterSensitiveLog=(r)=>r,this._serializer=null,this._deserializer=null}init(r){this._init=r}ep(r){return this._ep=r,this}m(r){return this._middlewareFn=r,this}s(r,s,f={}){return this._smithyContext={service:r,operation:s,...f},this}c(r={}){return this._additionalContext=r,this}n(r,s){return this._clientName=r,this._commandName=s,this}f(r=(f)=>f,s=(f)=>f){return this._inputFilterSensitiveLog=r,this._outputFilterSensitiveLog=s,this}ser(r){return this._serializer=r,this}de(r){return this._deserializer=r,this}build(){const r=this;let s;return s=class extends R{static getEndpointParameterInstructions(){return r._ep}constructor(...[f]){super();this.serialize=r._serializer,this.deserialize=r._deserializer,this.input=f??{},r._init(this)}resolveMiddleware(f,w,h){return this.resolveMiddlewareWithContext(f,w,h,{CommandCtor:s,middlewareFn:r._middlewareFn,clientName:r._clientName,commandName:r._commandName,inputFilterSensitiveLog:r._inputFilterSensitiveLog,outputFilterSensitiveLog:r._outputFilterSensitiveLog,smithyContext:r._smithyContext,additionalContext:r._additionalContext})}}}}var CZ;var zZ=G(()=>{mU();CZ=m(Ff(),1)});var o="***SensitiveInformation***";var ds=(r,s)=>{for(let f of Object.keys(r)){const w=r[f],h=async function($,I,F){const U=new w($);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},E=(f[0].toLowerCase()+f.slice(1)).replace(/Command$/,"");s.prototype[E]=h}};var Nr=(r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},p0=(r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)O3.warn(i3(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const s=r.toLowerCase();if(s==="false"||s==="true")O3.warn(i3(`Expected boolean, got ${typeof r}: ${r}`));if(s==="false")return!1;if(s==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},Af=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const s=parseFloat(r);if(!Number.isNaN(s)){if(String(s)!==String(r))O3.warn(i3(`Expected number but observed string: ${r}`));return s}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},Cg,SZ=(r)=>{const s=Af(r);if(s!==void 0&&!Number.isNaN(s)&&s!==1/0&&s!==-1/0){if(Math.abs(s)>Cg)throw new TypeError(`Expected 32-bit float, got ${r}`)}return s},Xh=(r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},Dw=(r)=>eU(r,32),YZ=(r)=>eU(r,16),XZ=(r)=>eU(r,8),eU=(r,s)=>{const f=Xh(r);if(f!==void 0&&Wg(f,s)!==f)throw new TypeError(`Expected ${s}-bit integer, got ${r}`);return f},Wg=(r,s)=>{switch(s){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},y=(r,s)=>{if(r===null||r===void 0){if(s)throw new TypeError(`Expected a non-null value for ${s}`);throw new TypeError("Expected a non-null value")}return r},c=(r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const s=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${s}: ${r}`)},T=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return O3.warn(i3(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},nU=(r)=>{if(typeof r=="string")return Af(Kh(r));return Af(r)},KZ,ZZ=(r)=>{if(typeof r=="string")return SZ(Kh(r));return SZ(r)},zg,Kh=(r)=>{const s=r.match(zg);if(s===null||s[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},oU=(r)=>{if(typeof r=="string")return Sg(r);return Af(r)},Sg=(r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},xr=(r)=>{if(typeof r==="string")return Xh(Kh(r));return Xh(r)},hr=(r)=>{if(typeof r==="string")return Dw(Kh(r));return Dw(r)},aU=(r)=>{if(typeof r==="string")return YZ(Kh(r));return YZ(r)},PZ=(r)=>{if(typeof r==="string")return XZ(Kh(r));return XZ(r)},i3=(r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((s)=>!s.includes("stackTraceWarning")).join("\n")},O3;var pU=G(()=>{Cg=Math.ceil(340282346638528860000000000000000000000),KZ=nU,zg=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,O3={warn:console.warn}});var Yg,Xg,JZ=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const s=Xg.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");const[f,w,h,E,$,I,F,U]=s,A=aU(uU(w)),L=kw(h,"month",1,12),S=kw(E,"day",1,31);return QZ(A,L,S,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U})},Kg,yw=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const s=Kg.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");const[f,w,h,E,$,I,F,U,A]=s,L=aU(uU(w)),S=kw(h,"month",1,12),z=kw(E,"day",1,31),Z=QZ(L,S,z,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U});if(A.toUpperCase()!="Z")Z.setTime(Z.getTime()-Bg(A));return Z},A2r,L2r,R2r,cs=(r)=>{if(r===null||r===void 0)return;let s;if(typeof r==="number")s=r;else if(typeof r==="string")s=nU(r);else if(typeof r==="object"&&r.tag===1)s=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(s)||s===1/0||s===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(s*1000))},QZ=(r,s,f,w)=>{const h=s-1;return Pg(r,h,f),new Date(Date.UTC(r,h,f,kw(w.hours,"hour",0,23),kw(w.minutes,"minute",0,59),kw(w.seconds,"seconds",0,60),Qg(w.fractionalMilliseconds)))},Zg,Pg=(r,s,f)=>{let w=Zg[s];if(s===1&&Jg(r))w=29;if(f>w)throw new TypeError(`Invalid day for ${Yg[s]} in ${r}: ${f}`)},Jg=(r)=>{return r%4===0&&(r%100!==0||r%400===0)},kw=(r,s,f,w)=>{const h=PZ(uU(r));if(h<f||h>w)throw new TypeError(`${s} must be between ${f} and ${w}, inclusive`);return h},Qg=(r)=>{if(r===null||r===void 0)return 0;return ZZ("0."+r)*1000},Bg=(r)=>{const s=r[0];let f=1;if(s=="+")f=1;else if(s=="-")f=-1;else throw new TypeError(`Offset direction, ${s}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return f*(w*60+h)*60*1000},uU=(r)=>{let s=0;while(s<r.length-1&&r.charAt(s)==="0")s++;if(s===0)return r;return r.slice(s)};var BZ=G(()=>{pU();Yg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Xg=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Kg=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),A2r=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$/),L2r=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$/),R2r=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})$/),Zg=[31,28,31,30,31,30,31,31,30,31,30,31]});var mf,D=(r,s={})=>{Object.entries(s).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const f=r.message||r.Message||"UnknownError";return r.message=f,delete r.Message,r};var tU=G(()=>{mf=class mf extends Error{constructor(r){super(r.message);Object.setPrototypeOf(this,mf.prototype),this.name=r.name,this.$fault=r.$fault,this.$metadata=r.$metadata}}});var Mg=({output:r,parsedBody:s,exceptionCtor:f,errorCode:w})=>{const h=Vg(r),E=h.httpStatusCode?h.httpStatusCode+"":void 0,$=new f({name:s?.code||s?.Code||w||E||"UnknownError",$fault:"client",$metadata:h});throw D($,s)},bs=(r)=>{return({output:s,parsedBody:f,errorCode:w})=>{Mg({output:s,parsedBody:f,exceptionCtor:r,errorCode:w})}},Vg=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var MZ=G(()=>{tU()});var _s=(r)=>{switch(r){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:30000};default:return{}}};var VZ=!1,gs=(r)=>{if(r&&!VZ&&parseInt(r.substring(1,r.indexOf(".")))<16)VZ=!0};function d3(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}var rT,HZ=(r)=>{const s=[];for(let f in rT.AlgorithmId){const w=rT.AlgorithmId[f];if(r[w]===void 0)continue;s.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:s,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},lZ=(r)=>{const s={};return r.checksumAlgorithms().forEach((f)=>{s[f.algorithmId()]=f.checksumConstructor()}),s};var DZ=G(()=>{rT=m(Ff(),1)});var kZ=(r)=>{let s=r.retryStrategy;return{setRetryStrategy(f){s=f},retryStrategy(){return s}}},yZ=(r)=>{const s={};return s.retryStrategy=r.retryStrategy(),s};var xs=(r)=>{return{...HZ(r),...kZ(r)}},es=(r)=>{return{...lZ(r),...yZ(r)}};var NZ=G(()=>{DZ()});var qZ=G(()=>{NZ()});var Gr=(r)=>Array.isArray(r)?r:[r];var d1=(r)=>{return r!=null};var fT=function(){const r=Object.getPrototypeOf(this).constructor,f=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(f,r.prototype),f};var mZ=G(()=>{fT.prototype=Object.create(String.prototype,{constructor:{value:fT,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(fT,String)});class Yf{trace(){}debug(){}info(){}warn(){}error(){}}function Y(r,s,f){let w,h,E;if(typeof s==="undefined"&&typeof f==="undefined")w={},E=r;else if(w=r,typeof s==="function")return h=s,E=f,Hg(w,h,E);else E=s;for(let $ of Object.keys(E)){if(!Array.isArray(E[$])){w[$]=E[$];continue}jZ(w,null,E,$)}return w}var p=(r,s)=>{const f={};for(let w in s)jZ(f,r,s,w);return f},Hg=(r,s,f)=>{return Y(r,Object.entries(f).reduce((w,[h,E])=>{if(Array.isArray(E))w[h]=E;else if(typeof E==="function")w[h]=[s,E()];else w[h]=[s,E];return w},{}))},jZ=(r,s,f,w)=>{if(s!==null){let $=f[w];if(typeof $==="function")$=[,$];const[I=lg,F=Dg,U=w]=$;if(typeof I==="function"&&I(s[U])||typeof I!=="function"&&!!I)r[w]=F(s[U]);return}let[h,E]=f[w];if(typeof E==="function"){let $;const I=h===void 0&&($=E())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=$;else if(F)r[w]=E()}else{const $=h===void 0&&E!=null,I=typeof h==="function"&&!!h(E)||typeof h!=="function"&&!!h;if($||I)r[w]=E}},lg=(r)=>r!=null,Dg=(r)=>r;var vZ=()=>{};var iZ=(r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}};var q=(r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((s)=>s!=null).map(q);if(typeof r==="object"){const s={};for(let f of Object.keys(r)){if(r[f]==null)continue;s[f]=q(r[f])}return s}return r};var K=G(()=>{MK();RZ();zZ();BZ();MZ();tU();qZ();mZ();pU();vZ()});import{Readable as kg}from"stream";var OZ=(r)=>r?.body instanceof kg||typeof ReadableStream!=="undefined"&&r?.body instanceof ReadableStream;var dZ=()=>{};var yg=(r)=>(s,f)=>async(w)=>{let h=await r.retryStrategy();const E=await r.maxAttempts();if(Ng(h)){h=h;let $=await h.acquireInitialRetryToken(f.partition_id),I=new Error,F=0,U=0;const{request:A}=w,L=Mr.isInstance(A);if(L)A.headers[N3]=WK();while(!0)try{if(L)A.headers[q3]=`attempt=${F+1}; max=${E}`;const{response:S,output:z}=await s(w);return h.recordSuccess($),z.$metadata.attempts=F+1,z.$metadata.totalRetryDelay=U,{response:S,output:z}}catch(S){const z=qg(S);if(I=NU(S),L&&OZ(A))throw(f.logger instanceof Yf?console:f.logger)?.warn("An error was encountered in a non-retryable streaming request."),I;try{$=await h.refreshRetryTokenForRetry($,z)}catch(N){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=F+1,I.$metadata.totalRetryDelay=U,I}F=$.getRetryCount();const Z=$.getRetryDelay();U+=Z,await new Promise((N)=>setTimeout(N,Z))}}else{if(h=h,h?.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",h.mode]];return h.retry(s,w)}},Ng=(r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined",qg=(r)=>{const s={error:r,errorType:mg(r)},f=vg(r.$response);if(f)s.retryAfterHint=f;return s},mg=(r)=>{if(Wh(r))return"THROTTLING";if(D3(r))return"TRANSIENT";if(UK(r))return"SERVER_ERROR";return"CLIENT_ERROR"},jg,ns=(r)=>({applyToStack:(s)=>{s.add(yg(r),jg)}}),vg=(r)=>{if(!j0.isInstance(r))return;const s=Object.keys(r.headers).find((E)=>E.toLowerCase()==="retry-after");if(!s)return;const f=r.headers[s],w=Number(f);if(!Number.isNaN(w))return new Date(w*1000);return new Date(f)};var cZ=G(()=>{kr();j1();K();zf();zK();dZ();jg={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Is=G(()=>{YK();qU();ZK();kU();PK();yU();cZ()});var oZ,aZ,c3="AWS_ACCESS_KEY_ID",b3="AWS_SECRET_ACCESS_KEY",pZ="AWS_SESSION_TOKEN",uZ="AWS_CREDENTIAL_EXPIRATION",tZ="AWS_CREDENTIAL_SCOPE",rP="AWS_ACCOUNT_ID",sT=(r)=>async()=>{r?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const s=process.env[c3],f=process.env[b3],w=process.env[pZ],h=process.env[uZ],E=process.env[tZ],$=process.env[rP];if(s&&f){const I={accessKeyId:s,secretAccessKey:f,...w&&{sessionToken:w},...h&&{expiration:new Date(h)},...E&&{credentialScope:E},...$&&{accountId:$}};return oZ.setCredentialFeature(I,"CREDENTIALS_ENV_VARS","g"),I}throw new aZ.CredentialsProviderError("Unable to find environment variable credentials.",{logger:r?.logger})};var fP=G(()=>{oZ=m(tr(),1),aZ=m(Ar(),1)});var sP={};Ys(sP,{fromEnv:()=>sT,ENV_SESSION:()=>pZ,ENV_SECRET:()=>b3,ENV_KEY:()=>c3,ENV_EXPIRATION:()=>uZ,ENV_CREDENTIAL_SCOPE:()=>tZ,ENV_ACCOUNT_ID:()=>rP});var wT=G(()=>{fP()});import{Buffer as dg}from"buffer";import{request as cg}from"http";function u0(r){return new Promise((s,f)=>{const w=cg({method:"GET",...r,hostname:r.hostname?.replace(/^\[(.+)\]$/,"$1")});w.on("error",(h)=>{f(Object.assign(new _3.ProviderError("Unable to connect to instance metadata service"),h)),w.destroy()}),w.on("timeout",()=>{f(new _3.ProviderError("TimeoutError from instance metadata service")),w.destroy()}),w.on("response",(h)=>{const{statusCode:E=400}=h;if(E<200||300<=E)f(Object.assign(new _3.ProviderError("Error response received from instance metadata service"),{statusCode:E})),w.destroy();const $=[];h.on("data",(I)=>{$.push(I)}),h.on("end",()=>{s(dg.concat($)),w.destroy()})}),w.end()})}var _3;var g3=G(()=>{_3=m(Ar(),1)});var x3=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.AccessKeyId==="string"&&typeof r.SecretAccessKey==="string"&&typeof r.Token==="string"&&typeof r.Expiration==="string",e3=(r)=>({accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:new Date(r.Expiration),...r.AccountId&&{accountId:r.AccountId}});var bg=1000,_g=0,c1=({maxRetries:r=0,timeout:s=1000})=>({maxRetries:r,timeout:s});var b1=(r,s)=>{let f=r();for(let w=0;w<s;w++)f=f.catch(r);return f};import{parse as gg}from"url";var _1,n3="AWS_CONTAINER_CREDENTIALS_FULL_URI",o3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",hT="AWS_CONTAINER_AUTHORIZATION_TOKEN",xg=(r={})=>{const{timeout:s,maxRetries:f}=c1(r);return()=>b1(async()=>{const w=await pg({logger:r.logger}),h=JSON.parse(await eg(s,w));if(!x3(h))throw new _1.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:r.logger});return e3(h)},f)},eg=async(r,s)=>{if(process.env[hT])s.headers={...s.headers,Authorization:process.env[hT]};return(await u0({...s,timeout:r})).toString()},ng="169.254.170.2",og,ag,pg=async({logger:r})=>{if(process.env[o3])return{hostname:ng,path:process.env[o3]};if(process.env[n3]){const s=gg(process.env[n3]);if(!s.hostname||!(s.hostname in og))throw new _1.CredentialsProviderError(`${s.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:r});if(!s.protocol||!(s.protocol in ag))throw new _1.CredentialsProviderError(`${s.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:r});return{...s,port:s.port?parseInt(s.port,10):void 0}}throw new _1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${o3} or ${n3} environment variable is set`,{tryNextLink:!1,logger:r})};var wP=G(()=>{_1=m(Ar(),1);g3();og={localhost:!0,"127.0.0.1":!0},ag={"http:":!0,"https:":!0}});var hP,a3;var EP=G(()=>{hP=m(Ar(),1);a3=class a3 extends hP.CredentialsProviderError{constructor(r,s=!0){super(r,s);this.tryNextLink=s,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,a3.prototype)}}});var Nw;var ET=G(()=>{(function(r){r.IPv4="http://169.254.169.254",r.IPv6="http://[fd00:ec2::254]"})(Nw||(Nw={}))});var $P;var IP=G(()=>{$P={environmentVariableSelector:(r)=>r.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(r)=>r.ec2_metadata_service_endpoint,default:void 0}});var t0;var $T=G(()=>{(function(r){r.IPv4="IPv4",r.IPv6="IPv6"})(t0||(t0={}))});var ug="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",tg="ec2_metadata_service_endpoint_mode",FP;var UP=G(()=>{$T();FP={environmentVariableSelector:(r)=>r[ug],configFileSelector:(r)=>r[tg],default:t0.IPv4}});var p3=async()=>br(await rx()||await fx()),rx=async()=>u($P)(),fx=async()=>{const r=await u(FP)();switch(r){case t0.IPv4:return Nw.IPv4;case t0.IPv6:return Nw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${r}. Select from ${Object.values(t0)}`)}};var IT=G(()=>{Ns();n0();ET();IP();$T();UP()});var FT=(r,s)=>{const f=300+Math.floor(Math.random()*300),w=new Date(Date.now()+f*1000);s.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(w)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);const h=r.originalExpiration??r.expiration;return{...r,...h?{originalExpiration:h}:{},expiration:w}};var TP=(r,s={})=>{const f=s?.logger||console;let w;return async()=>{let h;try{if(h=await r(),h.expiration&&h.expiration.getTime()<Date.now())h=FT(h,f)}catch(E){if(w)f.warn("Credential renew failed: ",E),h=FT(w,f);else throw E}return w=h,h}};var GP=()=>{};var TT,RP="/latest/meta-data/iam/security-credentials/",sx="/latest/api/token",UT="AWS_EC2_METADATA_V1_DISABLED",AP="ec2_metadata_v1_disabled",LP="x-aws-ec2-metadata-token",wx=(r={})=>TP(hx(r),{logger:r.logger}),hx=(r={})=>{let s=!1;const{logger:f,profile:w}=r,{timeout:h,maxRetries:E}=c1(r),$=async(I,F)=>{if(s||F.headers?.[LP]==null){let L=!1,S=!1;const z=await u({environmentVariableSelector:(Z)=>{const N=Z[UT];if(S=!!N&&N!=="false",N===void 0)throw new TT.CredentialsProviderError(`${UT} not set in env, checking config file next.`,{logger:r.logger});return S},configFileSelector:(Z)=>{const N=Z[AP];return L=!!N&&N!=="false",L},default:!1},{profile:w})();if(r.ec2MetadataV1Disabled||z){const Z=[];if(r.ec2MetadataV1Disabled)Z.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(L)Z.push(`config file profile (${AP})`);if(S)Z.push(`process environment variable (${UT})`);throw new a3(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Z.join(", ")}].`)}}const A=(await b1(async()=>{let L;try{L=await $x(F)}catch(S){if(S.statusCode===401)s=!1;throw S}return L},I)).trim();return b1(async()=>{let L;try{L=await Ix(A,F,r)}catch(S){if(S.statusCode===401)s=!1;throw S}return L},I)};return async()=>{const I=await p3();if(s)return f?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),$(E,{...I,timeout:h});else{let F;try{F=(await Ex({...I,timeout:h})).toString()}catch(U){if(U?.statusCode===400)throw Object.assign(U,{message:"EC2 Metadata token request returned error"});else if(U.message==="TimeoutError"||[403,404,405].includes(U.statusCode))s=!0;return f?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),$(E,{...I,timeout:h})}return $(E,{...I,headers:{[LP]:F},timeout:h})}}},Ex=async(r)=>u0({...r,path:sx,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),$x=async(r)=>(await u0({...r,path:RP})).toString(),Ix=async(r,s,f)=>{const w=JSON.parse((await u0({...s,path:RP+r})).toString());if(!x3(w))throw new TT.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:f.logger});return e3(w)};var CP=G(()=>{Ns();TT=m(Ar(),1);EP();g3();IT();GP()});var WP=()=>{};var g1={};Ys(g1,{providerConfigFromInit:()=>c1,httpRequest:()=>u0,getInstanceMetadataEndpoint:()=>p3,fromInstanceMetadata:()=>wx,fromContainerMetadata:()=>xg,Endpoint:()=>Nw,ENV_CMDS_RELATIVE_URI:()=>o3,ENV_CMDS_FULL_URI:()=>n3,ENV_CMDS_AUTH_TOKEN:()=>hT,DEFAULT_TIMEOUT:()=>bg,DEFAULT_MAX_RETRIES:()=>_g});var x1=G(()=>{wP();CP();WP();g3();IT();ET()});var zP,Fx="169.254.170.2",Ux="169.254.170.23",Tx="[fd00:ec2::23]",SP=(r,s)=>{if(r.protocol==="https:")return;if(r.hostname===Fx||r.hostname===Ux||r.hostname===Tx)return;if(r.hostname.includes("[")){if(r.hostname==="[::1]"||r.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(r.hostname==="localhost")return;const f=r.hostname.split("."),w=(h)=>{const E=parseInt(h,10);return 0<=E&&E<=255};if(f[0]==="127"&&w(f[1])&&w(f[2])&&w(f[3])&&f.length===4)return}throw new zP.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
21
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return s}constructor(r){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((s,f)=>{if(typeof r==="function")r().then((h)=>{s(this.resolveDefaultConfig(h))}).catch(f);else s(this.resolveDefaultConfig(r))})}resolveDefaultConfig(r){let{requestTimeout:s,connectionTimeout:f,socketTimeout:h,httpAgent:w,httpsAgent:$}=r||{},E=!0,I=50;return{connectionTimeout:f,requestTimeout:s??h,httpAgent:(()=>{if(w instanceof yK||typeof w?.destroy==="function")return w;return new yK({keepAlive:!0,maxSockets:50,...w})})(),httpsAgent:(()=>{if($ instanceof NK||typeof $?.destroy==="function")return $;return new NK({keepAlive:!0,maxSockets:50,...$})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(r,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;return new Promise((f,h)=>{let w=void 0,$=[],E=async(k)=>{await w,$.forEach(clearTimeout),f(k)},I=async(k)=>{await w,$.forEach(clearTimeout),h(k)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(s?.aborted){let k=new Error("Request aborted");k.name="AbortError",I(k);return}let F=r.protocol==="https:",U=F?this.config.httpsAgent:this.config.httpAgent;$.push(setTimeout(()=>{this.socketWarningTimestamp=sf.checkSocketUsage(U,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let A=m3(r.query||{}),L=void 0;if(r.username!=null||r.password!=null){let k=r.username??"",v=r.password??"";L=`${k}:${v}`}let S=r.path;if(A)S+=`?${A}`;if(r.fragment)S+=`#${r.fragment}`;let R=r.hostname??"";if(R[0]==="["&&R.endsWith("]"))R=r.hostname.slice(1,-1);else R=r.hostname;let P={headers:r.headers,host:R,method:r.method,path:S,port:r.port,agent:U,auth:L},M=(F?c_:d_)(P,(k)=>{let v=new c0({statusCode:k.statusCode||-1,reason:k.statusMessage,headers:q6(k.headers),body:k});E({response:v})});if(M.on("error",(k)=>{if(MK.includes(k.code))I(Object.assign(k,{name:"TimeoutError"}));else I(k)}),s){let k=()=>{M.destroy();let v=new Error("Request aborted");v.name="AbortError",I(v)};if(typeof s.addEventListener==="function"){let v=s;v.addEventListener("abort",k,{once:!0}),M.once("close",()=>v.removeEventListener("abort",k))}else s.onabort=k}$.push(HK(M,I,this.config.connectionTimeout)),$.push(DK(M,I,this.config.requestTimeout));let l=P.agent;if(typeof l==="object"&&"keepAlive"in l)$.push(lK(M,{keepAlive:l.keepAlive,keepAliveMsecs:l.keepAliveMsecs}));w=j6(M,r,this.config.requestTimeout).catch((k)=>{return $.forEach(clearTimeout),h(k)})})}updateHttpClientConfig(r,s){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return{...f,[r]:s}})}httpHandlerConfigs(){return this.config??{}}}var qK=G(()=>{yr();j3();VK();m6();v6()});var mK=()=>{};var jK=G(()=>{mK()});var vK=G(()=>{yr();j3();m6();jK();v6()});import{Writable as b_}from"stream";var i6;var iK=G(()=>{i6=class i6 extends b_{constructor(){super(...arguments);this.bufferedBytes=[]}_write(r,s,f){this.bufferedBytes.push(r),f()}}});async function g_(r){let s=[],f=r.getReader(),h=!1,w=0;while(!h){let{done:I,value:F}=await f.read();if(F)s.push(F),w+=F.length;h=I}let $=new Uint8Array(w),E=0;for(let I of s)$.set(I,E),E+=I.length;return $}var vf=(r)=>{if(__(r))return g_(r);return new Promise((s,f)=>{let h=new i6;r.pipe(h),r.on("error",(w)=>{h.end(),f(w)}),h.on("error",f),h.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.bufferedBytes));s(w)})})},__=(r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream;var OK=G(()=>{iK()});var fh=G(()=>{qK();vK();OK()});var dK=G(()=>{yr();j3()});async function x_(r){let s=await n_(r),f=Gf(s);return new Uint8Array(f)}async function e_(r){let s=[],f=r.getReader(),h=!1,w=0;while(!h){let{done:I,value:F}=await f.read();if(F)s.push(F),w+=F.length;h=I}let $=new Uint8Array(w),E=0;for(let I of s)$.set(I,E),E+=I.length;return $}function n_(r){return new Promise((s,f)=>{let h=new FileReader;h.onloadend=()=>{if(h.readyState!==2)return f(new Error("Reader aborted too early"));let w=h.result??"",$=w.indexOf(","),E=$>-1?$+1:w.length;s(w.substring(E))},h.onabort=()=>f(new Error("Read aborted")),h.onerror=()=>f(h.error),h.readAsDataURL(r)})}var cK=(r)=>{if(typeof Blob==="function"&&r instanceof Blob)return x_(r);return e_(r)};var bK=G(()=>{Z0()});var _K=G(()=>{dK();bK()});function xK(r){let s="";for(let f=0;f<r.byteLength;f++)s+=gK[r[f]];return s}var gK,o_;var eK=G(()=>{gK={},o_={};for(let r=0;r<256;r++){let s=r.toString(16).toLowerCase();if(s.length===1)s=`0${s}`;gK[r]=s,o_[s]=r}});var c1=(r)=>typeof ReadableStream==="function"&&(r?.constructor?.name===ReadableStream.name||r instanceof ReadableStream);var nK="The stream has already been transformed.",aK=(r)=>{if(!oK(r)&&!c1(r)){let w=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${w}`)}let s=!1,f=async()=>{if(s)throw new Error(nK);return s=!0,await cK(r)},h=(w)=>{if(typeof w.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return w.stream()};return Object.assign(r,{transformToByteArray:f,transformToString:async(w)=>{let $=await f();if(w==="base64")return Lf($);else if(w==="hex")return xK($);else if(w===void 0||w==="utf8"||w==="utf-8")return Af($);else if(typeof TextDecoder==="function")return new TextDecoder(w).decode($);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(s)throw new Error(nK);if(s=!0,oK(r))return h(r);else if(c1(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})},oK=(r)=>typeof Blob==="function"&&r instanceof Blob;var pK=G(()=>{_K();Z0();eK();_s()});import{Readable as O6}from"stream";import{TextDecoder as a_}from"util";var uK="The stream has already been transformed.",tK=(r)=>{if(!(r instanceof O6))try{return aK(r)}catch(h){let w=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${w}`)}let s=!1,f=async()=>{if(s)throw new Error(uK);return s=!0,await vf(r)};return Object.assign(r,{transformToByteArray:f,transformToString:async(h)=>{let w=await f();if(h===void 0||Buffer.isEncoding(h))return P0(w.buffer,w.byteOffset,w.byteLength).toString(h);else return new a_(h).decode(w)},transformToWebStream:()=>{if(s)throw new Error(uK);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof O6.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return s=!0,O6.toWeb(r)}})};var rP=G(()=>{fh();mh();pK()});var fP=()=>{};var sP=()=>{};var d6=G(()=>{N6();QK();rP();fP();sP()});var xr=async(r=new Uint8Array,s)=>{if(r instanceof Uint8Array)return Q0.mutate(r);if(!r)return Q0.mutate(new Uint8Array);let f=s.streamCollector(r);return Q0.mutate(await f)};var hP=G(()=>{d6()});class z{constructor(){this.middlewareStack=Pw()}static classBuilder(){return new $P}resolveMiddlewareWithContext(r,s,f,{middlewareFn:h,clientName:w,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,smithyContext:F,additionalContext:U,CommandCtor:A}){for(let N of h.bind(this)(A,r,s,f))this.middlewareStack.use(N);let L=r.concat(this.middlewareStack),{logger:S}=s,R={logger:S,clientName:w,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,[wP.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...U},{requestHandler:P}=s;return L.resolve((N)=>P.handle(N.request,f||{}),R)}}class $P{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(r)=>r,this._outputFilterSensitiveLog=(r)=>r,this._serializer=null,this._deserializer=null}init(r){this._init=r}ep(r){return this._ep=r,this}m(r){return this._middlewareFn=r,this}s(r,s,f={}){return this._smithyContext={service:r,operation:s,...f},this}c(r={}){return this._additionalContext=r,this}n(r,s){return this._clientName=r,this._commandName=s,this}f(r=(f)=>f,s=(f)=>f){return this._inputFilterSensitiveLog=r,this._outputFilterSensitiveLog=s,this}ser(r){return this._serializer=r,this}de(r){return this._deserializer=r,this}build(){let r=this,s;return s=class extends z{static getEndpointParameterInstructions(){return r._ep}constructor(...[f]){super();this.serialize=r._serializer,this.deserialize=r._deserializer,this.input=f??{},r._init(this)}resolveMiddleware(f,h,w){return this.resolveMiddlewareWithContext(f,h,w,{CommandCtor:s,middlewareFn:r._middlewareFn,clientName:r._clientName,commandName:r._commandName,inputFilterSensitiveLog:r._inputFilterSensitiveLog,outputFilterSensitiveLog:r._outputFilterSensitiveLog,smithyContext:r._smithyContext,additionalContext:r._additionalContext})}}}}var wP;var EP=G(()=>{D6();wP=e(Uf(),1)});var a="***SensitiveInformation***";var gs=(r,s)=>{for(let f of Object.keys(r)){let h=r[f],w=async function(E,I,F){let U=new h(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},$=(f[0].toLowerCase()+f.slice(1)).replace(/Command$/,"");s.prototype[$]=w}};var qr=(r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},sh=(r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)i3.warn(v3(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){let s=r.toLowerCase();if(s==="false"||s==="true")i3.warn(v3(`Expected boolean, got ${typeof r}: ${r}`));if(s==="false")return!1;if(s==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},zf=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){let s=parseFloat(r);if(!Number.isNaN(s)){if(String(s)!==String(r))i3.warn(v3(`Expected number but observed string: ${r}`));return s}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},p_,IP=(r)=>{let s=zf(r);if(s!==void 0&&!Number.isNaN(s)&&s!==1/0&&s!==-1/0){if(Math.abs(s)>p_)throw new TypeError(`Expected 32-bit float, got ${r}`)}return s},Qw=(r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},jh=(r)=>c6(r,32),FP=(r)=>c6(r,16),UP=(r)=>c6(r,8),c6=(r,s)=>{let f=Qw(r);if(f!==void 0&&u_(f,s)!==f)throw new TypeError(`Expected ${s}-bit integer, got ${r}`);return f},u_=(r,s)=>{switch(s){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},y=(r,s)=>{if(r===null||r===void 0){if(s)throw new TypeError(`Expected a non-null value for ${s}`);throw new TypeError("Expected a non-null value")}return r},d=(r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;let s=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${s}: ${r}`)},T=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return i3.warn(v3(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},b6=(r)=>{if(typeof r=="string")return zf(Jw(r));return zf(r)},TP,GP=(r)=>{if(typeof r=="string")return IP(Jw(r));return IP(r)},t_,Jw=(r)=>{let s=r.match(t_);if(s===null||s[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},_6=(r)=>{if(typeof r=="string")return rg(r);return zf(r)},rg=(r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},er=(r)=>{if(typeof r==="string")return Qw(Jw(r));return Qw(r)},$r=(r)=>{if(typeof r==="string")return jh(Jw(r));return jh(r)},g6=(r)=>{if(typeof r==="string")return FP(Jw(r));return FP(r)},AP=(r)=>{if(typeof r==="string")return UP(Jw(r));return UP(r)},v3=(r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((s)=>!s.includes("stackTraceWarning")).join("\n")},i3;var x6=G(()=>{p_=Math.ceil(340282346638528860000000000000000000000),TP=b6,t_=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,i3={warn:console.warn}});var fg,sg,LP=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let s=sg.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");let[f,h,w,$,E,I,F,U]=s,A=g6(e6(h)),L=vh(w,"month",1,12),S=vh($,"day",1,31);return zP(A,L,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},hg,ih=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let s=hg.exec(r);if(!s)throw new TypeError("Invalid RFC-3339 date-time value");let[f,h,w,$,E,I,F,U,A]=s,L=g6(e6(h)),S=vh(w,"month",1,12),R=vh($,"day",1,31),P=zP(L,S,R,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(A.toUpperCase()!="Z")P.setTime(P.getTime()-Fg(A));return P},$2r,E2r,I2r,xs=(r)=>{if(r===null||r===void 0)return;let s;if(typeof r==="number")s=r;else if(typeof r==="string")s=b6(r);else if(typeof r==="object"&&r.tag===1)s=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(s)||s===1/0||s===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(s*1000))},zP=(r,s,f,h)=>{let w=s-1;return $g(r,w,f),new Date(Date.UTC(r,w,f,vh(h.hours,"hour",0,23),vh(h.minutes,"minute",0,59),vh(h.seconds,"seconds",0,60),Ig(h.fractionalMilliseconds)))},wg,$g=(r,s,f)=>{let h=wg[s];if(s===1&&Eg(r))h=29;if(f>h)throw new TypeError(`Invalid day for ${fg[s]} in ${r}: ${f}`)},Eg=(r)=>{return r%4===0&&(r%100!==0||r%400===0)},vh=(r,s,f,h)=>{let w=AP(e6(r));if(w<f||w>h)throw new TypeError(`${s} must be between ${f} and ${h}, inclusive`);return w},Ig=(r)=>{if(r===null||r===void 0)return 0;return GP("0."+r)*1000},Fg=(r)=>{let s=r[0],f=1;if(s=="+")f=1;else if(s=="-")f=-1;else throw new TypeError(`Offset direction, ${s}, must be "+" or "-"`);let h=Number(r.substring(1,3)),w=Number(r.substring(4,6));return f*(h*60+w)*60*1000},e6=(r)=>{let s=0;while(s<r.length-1&&r.charAt(s)==="0")s++;if(s===0)return r;return r.slice(s)};var WP=G(()=>{x6();fg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sg=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),hg=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),$2r=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$/),E2r=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$/),I2r=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})$/),wg=[31,28,31,30,31,30,31,31,30,31,30,31]});var Of,D=(r,s={})=>{Object.entries(s).filter(([,h])=>h!==void 0).forEach(([h,w])=>{if(r[h]==null||r[h]==="")r[h]=w});let f=r.message||r.Message||"UnknownError";return r.message=f,delete r.Message,r};var n6=G(()=>{Of=class Of extends Error{constructor(r){super(r.message);Object.setPrototypeOf(this,Of.prototype),this.name=r.name,this.$fault=r.$fault,this.$metadata=r.$metadata}}});var Ug=({output:r,parsedBody:s,exceptionCtor:f,errorCode:h})=>{let w=Tg(r),$=w.httpStatusCode?w.httpStatusCode+"":void 0,E=new f({name:s?.code||s?.Code||h||$||"UnknownError",$fault:"client",$metadata:w});throw D(E,s)},es=(r)=>{return({output:s,parsedBody:f,errorCode:h})=>{Ug({output:s,parsedBody:f,exceptionCtor:r,errorCode:h})}},Tg=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var CP=G(()=>{n6()});var ns=(r)=>{switch(r){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:30000};default:return{}}};var RP=!1,os=(r)=>{if(r&&!RP&&parseInt(r.substring(1,r.indexOf(".")))<16)RP=!0};function O3(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}var o6,SP=(r)=>{let s=[];for(let f in o6.AlgorithmId){let h=o6.AlgorithmId[f];if(r[h]===void 0)continue;s.push({algorithmId:()=>h,checksumConstructor:()=>r[h]})}return{_checksumAlgorithms:s,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},YP=(r)=>{let s={};return r.checksumAlgorithms().forEach((f)=>{s[f.algorithmId()]=f.checksumConstructor()}),s};var XP=G(()=>{o6=e(Uf(),1)});var KP=(r)=>{let s=r.retryStrategy;return{setRetryStrategy(f){s=f},retryStrategy(){return s}}},PP=(r)=>{let s={};return s.retryStrategy=r.retryStrategy(),s};var as=(r)=>{return{...SP(r),...KP(r)}},ps=(r)=>{return{...YP(r),...PP(r)}};var ZP=G(()=>{XP()});var QP=G(()=>{ZP()});var Ar=(r)=>Array.isArray(r)?r:[r];var b1=(r)=>{return r!=null};var a6=function(){let r=Object.getPrototypeOf(this).constructor,f=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(f,r.prototype),f};var JP=G(()=>{a6.prototype=Object.create(String.prototype,{constructor:{value:a6,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(a6,String)});class Kf{trace(){}debug(){}info(){}warn(){}error(){}}function Y(r,s,f){let h,w,$;if(typeof s==="undefined"&&typeof f==="undefined")h={},$=r;else if(h=r,typeof s==="function")return w=s,$=f,Gg(h,w,$);else $=s;for(let E of Object.keys($)){if(!Array.isArray($[E])){h[E]=$[E];continue}BP(h,null,$,E)}return h}var u=(r,s)=>{let f={};for(let h in s)BP(f,r,s,h);return f},Gg=(r,s,f)=>{return Y(r,Object.entries(f).reduce((h,[w,$])=>{if(Array.isArray($))h[w]=$;else if(typeof $==="function")h[w]=[s,$()];else h[w]=[s,$];return h},{}))},BP=(r,s,f,h)=>{if(s!==null){let E=f[h];if(typeof E==="function")E=[,E];let[I=Ag,F=Lg,U=h]=E;if(typeof I==="function"&&I(s[U])||typeof I!=="function"&&!!I)r[h]=F(s[U]);return}let[w,$]=f[h];if(typeof $==="function"){let E,I=w===void 0&&(E=$())!=null,F=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(I)r[h]=E;else if(F)r[h]=$()}else{let E=w===void 0&&$!=null,I=typeof w==="function"&&!!w($)||typeof w!=="function"&&!!w;if(E||I)r[h]=$}},Ag=(r)=>r!=null,Lg=(r)=>r;var MP=()=>{};var VP=(r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}};var q=(r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((s)=>s!=null).map(q);if(typeof r==="object"){let s={};for(let f of Object.keys(r)){if(r[f]==null)continue;s[f]=q(r[f])}return s}return r};var K=G(()=>{zK();hP();EP();WP();CP();n6();QP();JP();x6();MP()});import{Readable as zg}from"stream";var HP=(r)=>r?.body instanceof zg||typeof ReadableStream!=="undefined"&&r?.body instanceof ReadableStream;var lP=()=>{};var Bw,Wg=(r)=>(s,f)=>async(h)=>{let w=await r.retryStrategy(),$=await r.maxAttempts();if(Cg(w)){w=w;let E=await w.acquireInitialRetryToken(f.partition_id),I=new Error,F=0,U=0,{request:A}=h,L=Vr.isInstance(A);if(L)A.headers[k3]=hK();while(!0)try{if(L)A.headers[y3]=`attempt=${F+1}; max=${$}`;let{response:S,output:R}=await s(h);return w.recordSuccess(E),R.$metadata.attempts=F+1,R.$metadata.totalRetryDelay=U,{response:S,output:R}}catch(S){let R=Rg(S);if(I=H6(S),L&&HP(A))throw(f.logger instanceof Kf?console:f.logger)?.warn("An error was encountered in a non-retryable streaming request."),I;try{E=await w.refreshRetryTokenForRetry(E,R)}catch(N){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=F+1,I.$metadata.totalRetryDelay=U,I}F=E.getRetryCount();let P=E.getRetryDelay();U+=P,await new Promise((N)=>setTimeout(N,P))}}else{if(w=w,w?.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",w.mode]];return w.retry(s,h)}},Cg=(r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined",Rg=(r)=>{let s={error:r,errorType:Sg(r)},f=Xg(r.$response);if(f)s.retryAfterHint=f;return s},Sg=(r)=>{if(Bw.isThrottlingError(r))return"THROTTLING";if(Bw.isTransientError(r))return"TRANSIENT";if(Bw.isServerError(r))return"SERVER_ERROR";return"CLIENT_ERROR"},Yg,us=(r)=>({applyToStack:(s)=>{s.add(Wg(r),Yg)}}),Xg=(r)=>{if(!c0.isInstance(r))return;let s=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!s)return;let f=r.headers[s],h=Number(f);if(!Number.isNaN(h))return new Date(h*1000);return new Date(f)};var DP=G(()=>{yr();Bw=e(Qh(),1);K();Yf();wK();lP();Yg={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Gs=G(()=>{EK();l6();UK();M6();TK();V6();DP()});var vP,d3="AWS_ACCESS_KEY_ID",c3="AWS_SECRET_ACCESS_KEY",iP="AWS_SESSION_TOKEN",OP="AWS_CREDENTIAL_EXPIRATION",dP="AWS_CREDENTIAL_SCOPE",cP="AWS_ACCOUNT_ID",p6=(r)=>async()=>{r?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let s=process.env[d3],f=process.env[c3],h=process.env[iP],w=process.env[OP],$=process.env[dP],E=process.env[cP];if(s&&f){let I={accessKeyId:s,secretAccessKey:f,...h&&{sessionToken:h},...w&&{expiration:new Date(w)},...$&&{credentialScope:$},...E&&{accountId:E}};return vP.setCredentialFeature(I,"CREDENTIALS_ENV_VARS","g"),I}throw new n("Unable to find environment variable credentials.",{logger:r?.logger})};var bP=G(()=>{vP=e(rf(),1);Lr()});var _P={};Zs(_P,{fromEnv:()=>p6,ENV_SESSION:()=>iP,ENV_SECRET:()=>c3,ENV_KEY:()=>d3,ENV_EXPIRATION:()=>OP,ENV_CREDENTIAL_SCOPE:()=>dP,ENV_ACCOUNT_ID:()=>cP});var u6=G(()=>{bP()});import{Buffer as Zg}from"buffer";import{request as Qg}from"http";function hh(r){return new Promise((s,f)=>{let h=Qg({method:"GET",...r,hostname:r.hostname?.replace(/^\[(.+)\]$/,"$1")});h.on("error",(w)=>{f(Object.assign(new yf("Unable to connect to instance metadata service"),w)),h.destroy()}),h.on("timeout",()=>{f(new yf("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(w)=>{let{statusCode:$=400}=w;if($<200||300<=$)f(Object.assign(new yf("Error response received from instance metadata service"),{statusCode:$})),h.destroy();let E=[];w.on("data",(I)=>{E.push(I)}),w.on("end",()=>{s(Zg.concat(E)),h.destroy()})}),h.end()})}var b3=G(()=>{Lr()});var _3=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.AccessKeyId==="string"&&typeof r.SecretAccessKey==="string"&&typeof r.Token==="string"&&typeof r.Expiration==="string",g3=(r)=>({accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:new Date(r.Expiration),...r.AccountId&&{accountId:r.AccountId}});var Jg=1000,Bg=0,_1=({maxRetries:r=0,timeout:s=1000})=>({maxRetries:r,timeout:s});var g1=(r,s)=>{let f=r();for(let h=0;h<s;h++)f=f.catch(r);return f};import{parse as Mg}from"url";var x3="AWS_CONTAINER_CREDENTIALS_FULL_URI",e3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",t6="AWS_CONTAINER_AUTHORIZATION_TOKEN",Vg=(r={})=>{let{timeout:s,maxRetries:f}=_1(r);return()=>g1(async()=>{let h=await yg({logger:r.logger}),w=JSON.parse(await Hg(s,h));if(!_3(w))throw new n("Invalid response received from instance metadata service.",{logger:r.logger});return g3(w)},f)},Hg=async(r,s)=>{if(process.env[t6])s.headers={...s.headers,Authorization:process.env[t6]};return(await hh({...s,timeout:r})).toString()},lg="169.254.170.2",Dg,kg,yg=async({logger:r})=>{if(process.env[e3])return{hostname:lg,path:process.env[e3]};if(process.env[x3]){let s=Mg(process.env[x3]);if(!s.hostname||!(s.hostname in Dg))throw new n(`${s.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:r});if(!s.protocol||!(s.protocol in kg))throw new n(`${s.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:r});return{...s,port:s.port?parseInt(s.port,10):void 0}}throw new n(`The container metadata credential provider cannot be used unless the ${e3} or ${x3} environment variable is set`,{tryNextLink:!1,logger:r})};var gP=G(()=>{Lr();b3();Dg={localhost:!0,"127.0.0.1":!0},kg={"http:":!0,"https:":!0}});var n3;var xP=G(()=>{Lr();n3=class n3 extends n{constructor(r,s=!0){super(r,s);this.tryNextLink=s,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,n3.prototype)}}});var Oh;var rT=G(()=>{(function(r){r.IPv4="http://169.254.169.254",r.IPv6="http://[fd00:ec2::254]"})(Oh||(Oh={}))});var eP;var nP=G(()=>{eP={environmentVariableSelector:(r)=>r.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(r)=>r.ec2_metadata_service_endpoint,default:void 0}});var wh;var fT=G(()=>{(function(r){r.IPv4="IPv4",r.IPv6="IPv6"})(wh||(wh={}))});var Ng="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",qg="ec2_metadata_service_endpoint_mode",oP;var aP=G(()=>{fT();oP={environmentVariableSelector:(r)=>r[Ng],configFileSelector:(r)=>r[qg],default:wh.IPv4}});var o3=async()=>_r(await mg()||await jg()),mg=async()=>t(eP)(),jg=async()=>{let r=await t(oP)();switch(r){case wh.IPv4:return Oh.IPv4;case wh.IPv6:return Oh.IPv6;default:throw new Error(`Unsupported endpoint mode: ${r}. Select from ${Object.values(wh)}`)}};var sT=G(()=>{vs();t0();rT();nP();fT();aP()});var hT=(r,s)=>{let f=300+Math.floor(Math.random()*300),h=new Date(Date.now()+f*1000);s.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(h)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let w=r.originalExpiration??r.expiration;return{...r,...w?{originalExpiration:w}:{},expiration:h}};var pP=(r,s={})=>{let f=s?.logger||console,h;return async()=>{let w;try{if(w=await r(),w.expiration&&w.expiration.getTime()<Date.now())w=hT(w,f)}catch($){if(h)f.warn("Credential renew failed: ",$),w=hT(h,f);else throw $}return h=w,w}};var uP=()=>{};var fZ="/latest/meta-data/iam/security-credentials/",vg="/latest/api/token",wT="AWS_EC2_METADATA_V1_DISABLED",tP="ec2_metadata_v1_disabled",rZ="x-aws-ec2-metadata-token",ig=(r={})=>pP(Og(r),{logger:r.logger}),Og=(r={})=>{let s=!1,{logger:f,profile:h}=r,{timeout:w,maxRetries:$}=_1(r),E=async(I,F)=>{if(s||F.headers?.[rZ]==null){let L=!1,S=!1,R=await t({environmentVariableSelector:(P)=>{let N=P[wT];if(S=!!N&&N!=="false",N===void 0)throw new n(`${wT} not set in env, checking config file next.`,{logger:r.logger});return S},configFileSelector:(P)=>{let N=P[tP];return L=!!N&&N!=="false",L},default:!1},{profile:h})();if(r.ec2MetadataV1Disabled||R){let P=[];if(r.ec2MetadataV1Disabled)P.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(L)P.push(`config file profile (${tP})`);if(S)P.push(`process environment variable (${wT})`);throw new n3(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${P.join(", ")}].`)}}let A=(await g1(async()=>{let L;try{L=await cg(F)}catch(S){if(S.statusCode===401)s=!1;throw S}return L},I)).trim();return g1(async()=>{let L;try{L=await bg(A,F,r)}catch(S){if(S.statusCode===401)s=!1;throw S}return L},I)};return async()=>{let I=await o3();if(s)return f?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E($,{...I,timeout:w});else{let F;try{F=(await dg({...I,timeout:w})).toString()}catch(U){if(U?.statusCode===400)throw Object.assign(U,{message:"EC2 Metadata token request returned error"});else if(U.message==="TimeoutError"||[403,404,405].includes(U.statusCode))s=!0;return f?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E($,{...I,timeout:w})}return E($,{...I,headers:{[rZ]:F},timeout:w})}}},dg=async(r)=>hh({...r,path:vg,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),cg=async(r)=>(await hh({...r,path:fZ})).toString(),bg=async(r,s,f)=>{let h=JSON.parse((await hh({...s,path:fZ+r})).toString());if(!_3(h))throw new n("Invalid response received from instance metadata service.",{logger:f.logger});return g3(h)};var sZ=G(()=>{vs();Lr();xP();b3();sT();uP()});var hZ=()=>{};var x1={};Zs(x1,{providerConfigFromInit:()=>_1,httpRequest:()=>hh,getInstanceMetadataEndpoint:()=>o3,fromInstanceMetadata:()=>ig,fromContainerMetadata:()=>Vg,Endpoint:()=>Oh,ENV_CMDS_RELATIVE_URI:()=>e3,ENV_CMDS_FULL_URI:()=>x3,ENV_CMDS_AUTH_TOKEN:()=>t6,DEFAULT_TIMEOUT:()=>Jg,DEFAULT_MAX_RETRIES:()=>Bg});var e1=G(()=>{gP();sZ();hZ();b3();sT();rT()});var _g="169.254.170.2",gg="169.254.170.23",xg="[fd00:ec2::23]",wZ=(r,s)=>{if(r.protocol==="https:")return;if(r.hostname===_g||r.hostname===gg||r.hostname===xg)return;if(r.hostname.includes("[")){if(r.hostname==="[::1]"||r.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(r.hostname==="localhost")return;let f=r.hostname.split("."),h=(w)=>{let $=parseInt(w,10);return 0<=$&&$<=255};if(f[0]==="127"&&h(f[1])&&h(f[2])&&h(f[3])&&f.length===4)return}throw new n(`URL not accepted. It must either be HTTPS or match one of the following:
22
22
  - loopback CIDR 127.0.0.0/8 or [::1/128]
23
23
  - ECS container host 169.254.170.2
24
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:s})};var YP=G(()=>{zP=m(Ar(),1)});function XP(r){return new Mr({protocol:r.protocol,hostname:r.hostname,port:Number(r.port),path:r.pathname,query:Array.from(r.searchParams.entries()).reduce((s,[f,w])=>{return s[f]=w,s},{}),fragment:r.hash})}async function KP(r,s){const w=await TZ(r.body).transformToString();if(r.statusCode===200){const h=JSON.parse(w);if(typeof h.AccessKeyId!=="string"||typeof h.SecretAccessKey!=="string"||typeof h.Token!=="string"||typeof h.Expiration!=="string")throw new u3.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:s});return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.Token,expiration:JZ(h.Expiration)}}if(r.statusCode>=400&&r.statusCode<500){let h={};try{h=JSON.parse(w)}catch(E){}throw Object.assign(new u3.CredentialsProviderError(`Server responded with status: ${r.statusCode}`,{logger:s}),{Code:h.Code,Message:h.Message})}throw new u3.CredentialsProviderError(`Server responded with status: ${r.statusCode}`,{logger:s})}var u3;var ZP=G(()=>{u3=m(Ar(),1);kr();K();xU()});var PP=(r,s,f)=>{return async()=>{for(let w=0;w<s;++w)try{return await r()}catch(h){await new Promise((E)=>setTimeout(E,f))}return await r()}};import Gx from"fs/promises";var JP,GT,Ax="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Lx="http://169.254.170.2",Rx="AWS_CONTAINER_CREDENTIALS_FULL_URI",Cx="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Wx="AWS_CONTAINER_AUTHORIZATION_TOKEN",QP=(r={})=>{r.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let s;const f=r.awsContainerCredentialsRelativeUri??process.env[Ax],w=r.awsContainerCredentialsFullUri??process.env[Rx],h=r.awsContainerAuthorizationToken??process.env[Wx],E=r.awsContainerAuthorizationTokenFile??process.env[Cx],$=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console.warn:r.logger.warn;if(f&&w)$("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),$("awsContainerCredentialsFullUri will take precedence.");if(h&&E)$("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),$("awsContainerAuthorizationToken will take precedence.");if(w)s=w;else if(f)s=`${Lx}${f}`;else throw new GT.CredentialsProviderError(`No HTTP credential provider host provided.
25
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:r.logger});const I=new URL(s);SP(I,r.logger);const F=new ff({requestTimeout:r.timeout??1000,connectionTimeout:r.timeout??1000});return PP(async()=>{const U=XP(I);if(h)U.headers.Authorization=h;else if(E)U.headers.Authorization=(await Gx.readFile(E)).toString();try{const A=await F.handle(U);return KP(A.response).then((L)=>JP.setCredentialFeature(L,"CREDENTIALS_HTTP","z"))}catch(A){throw new GT.CredentialsProviderError(String(A),{logger:r.logger})}},r.maxRetries??3,r.timeout??1000)};var BP=G(()=>{JP=m(tr(),1);a0();GT=m(Ar(),1);YP();ZP()});var AT={};Ys(AT,{fromHttp:()=>QP});var LT=G(()=>{BP()});var t3,zx="AWS_EC2_METADATA_DISABLED",MP=async(r)=>{const{ENV_CMDS_FULL_URI:s,ENV_CMDS_RELATIVE_URI:f,fromContainerMetadata:w,fromInstanceMetadata:h}=await Promise.resolve().then(() => (x1(),g1));if(process.env[f]||process.env[s]){r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:E}=await Promise.resolve().then(() => (LT(),AT));return t3.chain(E(r),w(r))}if(process.env[zx])return async()=>{throw new t3.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:r.logger})};return r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),h(r)};var VP=G(()=>{t3=m(Ar(),1)});var RT=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var HP=300000,Zh="To refresh this SSO session run 'aws sso login' with the corresponding profile.";function Sx(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}function CT(r){return{schemeId:"smithy.api#noAuth"}}var lP,DP=async(r,s,f)=>{return{operation:Vf(s).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},kP=(r)=>{const s=[];switch(r.operation){case"CreateToken":{s.push(CT(r));break}case"RegisterClient":{s.push(CT(r));break}case"StartDeviceAuthorization":{s.push(CT(r));break}default:s.push(Sx(r))}return s},yP=(r)=>{return{...lP.resolveAwsSdkSigV4Config(r)}};var WT=G(()=>{lP=m(Qr(),1);Es()});var NP=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},rw;var Ph=G(()=>{rw={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var mP;var qP=G(()=>{mP={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.668.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.668.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.668.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var zT;var ST=G(()=>{zT={isCrtAvailable:!1}});var jP=()=>{if(zT.isCrtAvailable)return["md/crt-avail"];return null};var vP=G(()=>{ST()});import{platform as Xx,release as Kx}from"os";import{env as iP,versions as Zx}from"process";var Px=({serviceId:r,clientVersion:s})=>{return async(f)=>{const w=[["aws-sdk-js",s],["ua","2.1"],[`os/${Xx()}`,Kx()],["lang/js"],["md/nodejs",`${Zx.node}`]],h=jP();if(h)w.push(h);if(r)w.push([`api/${r}`,s]);if(iP.AWS_EXECUTION_ENV)w.push([`exec-env/${iP.AWS_EXECUTION_ENV}`]);const E=await f?.userAgentAppId?.();return E?[...w,[`app/${E}`]]:[...w]}},os;var OP=G(()=>{vP();ST();os=Px});var Jx="AWS_SDK_UA_APP_ID",Qx="sdk-ua-app-id",as;var dP=G(()=>{Bw();as={environmentVariableSelector:(r)=>r[Jx],configFileSelector:(r)=>r[Qx],default:yF}});var Jh=G(()=>{OP();dP()});import{Buffer as Bx}from"buffer";import{createHash as Mx,createHmac as Vx}from"crypto";function cP(r,s){if(Bx.isBuffer(r))return r;if(typeof r==="string")return Yh(r,s);if(ArrayBuffer.isView(r))return z0(r.buffer,r.byteOffset,r.byteLength);return z0(r)}class Fs{constructor(r,s){this.algorithmIdentifier=r,this.secret=s,this.reset()}update(r,s){this.hash.update(lK(cP(r,s)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Vx(this.algorithmIdentifier,cP(this.secret)):Mx(this.algorithmIdentifier)}}var Qh=G(()=>{lw();Os()});import{fstatSync as Hx,lstatSync as lx}from"fs";var ps=(r)=>{if(!r)return 0;if(typeof r==="string")return Buffer.byteLength(r);else if(typeof r.byteLength==="number")return r.byteLength;else if(typeof r.size==="number")return r.size;else if(typeof r.start==="number"&&typeof r.end==="number")return r.end+1-r.start;else if(typeof r.path==="string"||Buffer.isBuffer(r.path))return lx(r.path).size;else if(typeof r.fd==="number")return Hx(r.fd).size;throw new Error(`Body Length computation failed for ${r}`)};var bP=()=>{};var Bh=G(()=>{bP()});var _P,gP,xP,uP,tP,jf,eP,rJ,nP,oP,aP,pP,Dx,fJ;var sJ=G(()=>{_P={["required"]:!1,type:"String"},gP={["required"]:!0,default:!1,type:"Boolean"},xP={["ref"]:"Endpoint"},uP={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},tP={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},jf={},eP={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},rJ={["ref"]:"PartitionResult"},nP={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[rJ,"supportsDualStack"]}]},oP=[uP],aP=[tP],pP=[{["ref"]:"Region"}],Dx={version:"1.0",parameters:{Region:_P,UseDualStack:gP,UseFIPS:gP,Endpoint:_P},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[xP]}],rules:[{conditions:oP,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:aP,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:xP,properties:jf,headers:jf},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:pP}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:pP,assign:"PartitionResult"}],rules:[{conditions:[uP,tP],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,eP]},nP],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:jf,headers:jf},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:oP,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[eP,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[rJ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:jf,headers:jf},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:jf,headers:jf},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:aP,rules:[{conditions:[nP],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:jf,headers:jf},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:jf,headers:jf},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},fJ=Dx});var kx,wJ=(r,s={})=>{return kx.get(r,()=>ss(fJ,{endpointParams:r,logger:s.logger}))};var hJ=G(()=>{Pw();ws();sJ();kx=new fs({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});ur.aws=hs});var EJ,$J,IJ=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Uf,base64Encoder:r?.base64Encoder??Gf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??wJ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??kP,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new EJ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new $J.NoAuthSigner}],logger:r?.logger??new Yf,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??br,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Tf}};var FJ=G(()=>{EJ=m(Qr(),1),$J=m(qr(),1);K();n0();S0();Os();WT();hJ()});var UJ="AWS_EXECUTION_ENV",YT="AWS_REGION",XT="AWS_DEFAULT_REGION",TJ="AWS_EC2_METADATA_DISABLED",GJ,AJ="/latest/meta-data/placement/region";var LJ=G(()=>{GJ=["in-region","cross-region","mobile","standard","legacy"]});var RJ;var CJ=G(()=>{RJ={environmentVariableSelector:(r)=>{return r.AWS_DEFAULTS_MODE},configFileSelector:(r)=>{return r.defaults_mode},default:"legacy"}});var WJ,us=({region:r=u(Hf),defaultsMode:s=u(RJ)}={})=>WJ.memoize(async()=>{const f=typeof s==="function"?await s():s;switch(f?.toLowerCase()){case"auto":return yx(r);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(f?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${GJ.join(", ")}, got ${f}`)}}),yx=async(r)=>{if(r){const s=typeof r==="function"?await r():r,f=await Nx();if(!f)return"standard";if(s===f)return"in-region";else return"cross-region"}return"standard"},Nx=async()=>{if(process.env[UJ]&&(process.env[YT]||process.env[XT]))return process.env[YT]??process.env[XT];if(!process.env[TJ])try{const{getInstanceMetadataEndpoint:r,httpRequest:s}=await Promise.resolve().then(() => (x1(),g1)),f=await r();return(await s({...f,path:AJ})).toString()}catch(r){}};var zJ=G(()=>{lf();Ns();WJ=m(Ar(),1);LJ();CJ()});var Mh=G(()=>{zJ()});var SJ,YJ=(r)=>{gs(process.version);const s=us(r),f=()=>s().then(_s),w=IJ(r);return SJ.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??ps,credentialDefaultProvider:r?.credentialDefaultProvider??X0,defaultUserAgentProvider:r?.defaultUserAgentProvider??os({serviceId:w.serviceId,clientVersion:mP.version}),maxAttempts:r?.maxAttempts??u(js),region:r?.region??u(Hf,Ds),requestHandler:ff.create(r?.requestHandler??f),retryMode:r?.retryMode??u({...is,default:async()=>(await f()).retryMode||Nf}),sha256:r?.sha256??Fs.bind(null,"sha256"),streamCollector:r?.streamCollector??qf,useDualstackEndpoint:r?.useDualstackEndpoint??u(Hs),useFipsEndpoint:r?.useFipsEndpoint??u(ls),userAgentAppId:r?.userAgentAppId??u(as)}};var XJ=G(()=>{qP();SJ=m(Qr(),1);e1();Jh();lf();Qh();Is();Ns();a0();Bh();zf();FJ();K();Mh();K()});var ts=(r)=>{let s=async()=>{if(r.region===void 0)throw new Error("Region is missing from runtimeConfig");const f=r.region;if(typeof f==="string")return f;return f()};return{setRegion(f){s=f},region(){return s}}},r0=(r)=>{return{region:r.region()}};var KJ=()=>{};var ZJ=()=>{};var PJ=G(()=>{ZJ()});var JJ=G(()=>{KJ();PJ()});var Vh=G(()=>{JJ()});var QJ=(r)=>{const s=r.httpAuthSchemes;let{httpAuthSchemeProvider:f,credentials:w}=r;return{setHttpAuthScheme(h){const E=s.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)s.push(h);else s.splice(E,1,h)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(h){f=h},httpAuthSchemeProvider(){return f},setCredentials(h){w=h},credentials(){return w}}},BJ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var rI=(r)=>r,MJ=(r,s)=>{const f={...rI(ts(r)),...rI(xs(r)),...rI(Xs(r)),...rI(QJ(r))};return s.forEach((w)=>w.configure(f)),{...r,...r0(f),...es(f),...Ks(f),...BJ(f)}};var VJ=G(()=>{Vh();kr();K()});var Hh,fI;var KT=G(()=>{pw();uw();tw();Bw();lf();Hh=m(qr(),1);Lh();B();Is();K();WT();Ph();XJ();VJ();fI=class fI extends Sf{constructor(...[r]){const s=YJ(r||{}),f=NP(s),w=Ms(f),h=vs(w),E=ks(h),$=Zs(E),I=qs($),F=yP(I),U=MJ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ys(this.config)),this.middlewareStack.use(Ps(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(Qs(this.config)),this.middlewareStack.use(Hh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:DP,identityProviderConfigProvider:async(A)=>new Hh.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(Hh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var Hr;var sI=G(()=>{K();Hr=class Hr extends mf{constructor(r){super(r);Object.setPrototypeOf(this,Hr.prototype)}}});var n1,o1,a1,p1,u1,t1,rE,fE,sE,wE,hE,EE,$E,IE,ZT=(r)=>({...r,...r.clientSecret&&{clientSecret:o},...r.refreshToken&&{refreshToken:o},...r.codeVerifier&&{codeVerifier:o}}),PT=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),JT=(r)=>({...r,...r.refreshToken&&{refreshToken:o},...r.assertion&&{assertion:o},...r.subjectToken&&{subjectToken:o},...r.codeVerifier&&{codeVerifier:o}}),QT=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),BT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}}),MT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}});var qw=G(()=>{K();sI();n1=class n1 extends Hr{constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,n1.prototype),this.error=r.error,this.error_description=r.error_description}};o1=class o1 extends Hr{constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,o1.prototype),this.error=r.error,this.error_description=r.error_description}};a1=class a1 extends Hr{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,a1.prototype),this.error=r.error,this.error_description=r.error_description}};p1=class p1 extends Hr{constructor(r){super({name:"InternalServerException",$fault:"server",...r});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,p1.prototype),this.error=r.error,this.error_description=r.error_description}};u1=class u1 extends Hr{constructor(r){super({name:"InvalidClientException",$fault:"client",...r});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,u1.prototype),this.error=r.error,this.error_description=r.error_description}};t1=class t1 extends Hr{constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,t1.prototype),this.error=r.error,this.error_description=r.error_description}};rE=class rE extends Hr{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,rE.prototype),this.error=r.error,this.error_description=r.error_description}};fE=class fE extends Hr{constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,fE.prototype),this.error=r.error,this.error_description=r.error_description}};sE=class sE extends Hr{constructor(r){super({name:"SlowDownException",$fault:"client",...r});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,sE.prototype),this.error=r.error,this.error_description=r.error_description}};wE=class wE extends Hr{constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,wE.prototype),this.error=r.error,this.error_description=r.error_description}};hE=class hE extends Hr{constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,hE.prototype),this.error=r.error,this.error_description=r.error_description}};EE=class EE extends Hr{constructor(r){super({name:"InvalidRequestRegionException",$fault:"client",...r});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,EE.prototype),this.error=r.error,this.error_description=r.error_description,this.endpoint=r.endpoint,this.region=r.region}};$E=class $E extends Hr{constructor(r){super({name:"InvalidClientMetadataException",$fault:"client",...r});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,$E.prototype),this.error=r.error,this.error_description=r.error_description}};IE=class IE extends Hr{constructor(r){super({name:"InvalidRedirectUriException",$fault:"client",...r});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,IE.prototype),this.error=r.error,this.error_description=r.error_description}}});var K0,FE,HJ=async(r,s)=>{const f=FE.requestBuilder(r,s),w={"content-type":"application/json"};f.bp("/token");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(E)=>q(E)})),f.m("POST").h(w).b(h),f.build()},lJ=async(r,s)=>{const f=FE.requestBuilder(r,s),w={"content-type":"application/json"};f.bp("/token");const h=Y({[px]:[,"t"]});let E;return E=JSON.stringify(p(r,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:($)=>q($),subjectToken:[],subjectTokenType:[]})),f.m("POST").h(w).q(h).b(E),f.build()},DJ=async(r,s)=>{const f=FE.requestBuilder(r,s),w={"content-type":"application/json"};f.bp("/client/register");let h;return h=JSON.stringify(p(r,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(E)=>q(E),issuerUrl:[],redirectUris:(E)=>q(E),scopes:(E)=>q(E)})),f.m("POST").h(w).b(h),f.build()},kJ=async(r,s)=>{const f=FE.requestBuilder(r,s),w={"content-type":"application/json"};f.bp("/device_authorization");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],startUrl:[]})),f.m("POST").h(w).b(h),f.build()},yJ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,s);const f=Y({$metadata:jr(r)}),w=y(c(await K0.parseJsonBody(r.body,s)),"body"),h=p(w,{accessToken:T,expiresIn:Dw,idToken:T,refreshToken:T,tokenType:T});return Object.assign(f,h),f},NJ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,s);const f=Y({$metadata:jr(r)}),w=y(c(await K0.parseJsonBody(r.body,s)),"body"),h=p(w,{accessToken:T,expiresIn:Dw,idToken:T,issuedTokenType:T,refreshToken:T,scope:q,tokenType:T});return Object.assign(f,h),f},qJ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,s);const f=Y({$metadata:jr(r)}),w=y(c(await K0.parseJsonBody(r.body,s)),"body"),h=p(w,{authorizationEndpoint:T,clientId:T,clientIdIssuedAt:Xh,clientSecret:T,clientSecretExpiresAt:Xh,tokenEndpoint:T});return Object.assign(f,h),f},mJ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,s);const f=Y({$metadata:jr(r)}),w=y(c(await K0.parseJsonBody(r.body,s)),"body"),h=p(w,{deviceCode:T,expiresIn:Dw,interval:Dw,userCode:T,verificationUri:T,verificationUriComplete:T});return Object.assign(f,h),f},wI=async(r,s)=>{const f={...r,body:await K0.parseJsonErrorBody(r.body,s)},w=K0.loadRestJsonErrorCode(r,f.body);switch(w){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await jx(f,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await vx(f,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await ix(f,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ox(f,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await dx(f,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await bx(f,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await gx(f,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await ex(f,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await nx(f,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await ox(f,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await ax(f,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await xx(f,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await cx(f,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await _x(f,s);default:const h=f.body;return mx({output:r,parsedBody:h,errorCode:w})}},mx,jx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new n1({$metadata:jr(r),...f});return D(E,r.body)},vx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new o1({$metadata:jr(r),...f});return D(E,r.body)},ix=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new a1({$metadata:jr(r),...f});return D(E,r.body)},Ox=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new p1({$metadata:jr(r),...f});return D(E,r.body)},dx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new u1({$metadata:jr(r),...f});return D(E,r.body)},cx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new $E({$metadata:jr(r),...f});return D(E,r.body)},bx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new t1({$metadata:jr(r),...f});return D(E,r.body)},_x=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new IE({$metadata:jr(r),...f});return D(E,r.body)},gx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new rE({$metadata:jr(r),...f});return D(E,r.body)},xx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{endpoint:T,error:T,error_description:T,region:T});Object.assign(f,h);const E=new EE({$metadata:jr(r),...f});return D(E,r.body)},ex=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new fE({$metadata:jr(r),...f});return D(E,r.body)},nx=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new sE({$metadata:jr(r),...f});return D(E,r.body)},ox=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new wE({$metadata:jr(r),...f});return D(E,r.body)},ax=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(f,h);const E=new hE({$metadata:jr(r),...f});return D(E,r.body)},jr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),px="aws_iam";var UE=G(()=>{K0=m(Qr(),1),FE=m(qr(),1);K();qw();sI();mx=bs(Hr)});var hI;var VT=G(()=>{B();V();K();Ph();qw();UE();hI=class hI extends R.classBuilder().ep(rw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(ZT,PT).ser(HJ).de(yJ).build(){}});var EI;var HT=G(()=>{B();V();K();Ph();qw();UE();EI=class EI extends R.classBuilder().ep(rw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(JT,QT).ser(lJ).de(NJ).build(){}});var $I;var lT=G(()=>{B();V();K();Ph();qw();UE();$I=class $I extends R.classBuilder().ep(rw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,BT).ser(DJ).de(qJ).build(){}});var II;var DT=G(()=>{B();V();K();Ph();qw();UE();II=class II extends R.classBuilder().ep(rw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(MT,void 0).ser(kJ).de(mJ).build(){}});var ux,kT;var jJ=G(()=>{K();VT();HT();lT();DT();KT();ux={CreateTokenCommand:hI,CreateTokenWithIAMCommand:EI,RegisterClientCommand:$I,StartDeviceAuthorizationCommand:II};kT=class kT extends fI{};ds(ux,kT)});var vJ=G(()=>{VT();HT();lT();DT()});var iJ=G(()=>{qw()});var yT={};Ys(yT,{__Client:()=>Sf,UnsupportedGrantTypeException:()=>hE,UnauthorizedClientException:()=>wE,StartDeviceAuthorizationRequestFilterSensitiveLog:()=>MT,StartDeviceAuthorizationCommand:()=>II,SlowDownException:()=>sE,SSOOIDCServiceException:()=>Hr,SSOOIDCClient:()=>fI,SSOOIDC:()=>kT,RegisterClientResponseFilterSensitiveLog:()=>BT,RegisterClientCommand:()=>$I,InvalidScopeException:()=>fE,InvalidRequestRegionException:()=>EE,InvalidRequestException:()=>rE,InvalidRedirectUriException:()=>IE,InvalidGrantException:()=>t1,InvalidClientMetadataException:()=>$E,InvalidClientException:()=>u1,InternalServerException:()=>p1,ExpiredTokenException:()=>a1,CreateTokenWithIAMResponseFilterSensitiveLog:()=>QT,CreateTokenWithIAMRequestFilterSensitiveLog:()=>JT,CreateTokenWithIAMCommand:()=>EI,CreateTokenResponseFilterSensitiveLog:()=>PT,CreateTokenRequestFilterSensitiveLog:()=>ZT,CreateTokenCommand:()=>hI,AuthorizationPendingException:()=>o1,AccessDeniedException:()=>n1,$Command:()=>R});var NT=G(()=>{KT();jJ();vJ();iJ();sI()});var qT,OJ=async(r)=>{const{SSOOIDCClient:s}=await Promise.resolve().then(() => (NT(),yT));if(qT[r])return qT[r];const f=new s({region:r});return qT[r]=f,f};var dJ=G(()=>{qT={}});var cJ=async(r,s)=>{const{CreateTokenCommand:f}=await Promise.resolve().then(() => (NT(),yT));return(await OJ(s)).send(new f({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))};var bJ=G(()=>{dJ()});var _J,mT=(r)=>{if(r.expiration&&r.expiration.getTime()<Date.now())throw new _J.TokenProviderError(`Token is expired. ${Zh}`,!1)};var gJ=G(()=>{_J=m(Ar(),1)});var xJ,fw=(r,s,f=!1)=>{if(typeof s==="undefined")throw new xJ.TokenProviderError(`Value not present for '${r}' in SSO Token${f?". Cannot refresh":""}. ${Zh}`,!1)};var eJ=G(()=>{xJ=m(Ar(),1)});import{promises as tx}from"fs";var re,nJ=(r,s)=>{const f=K3(r),w=JSON.stringify(s,null,2);return re(f,w)};var oJ=G(()=>{$s();({writeFile:re}=tx)});var lh,aJ,pJ=(r={})=>async()=>{r.logger?.debug("@aws-sdk/token-providers - fromSso");const s=await e0(r),f=Df(r),w=s[f];if(!w)throw new lh.TokenProviderError(`Profile '${f}' could not be found in shared credentials file.`,!1);else if(!w.sso_session)throw new lh.TokenProviderError(`Profile '${f}' is missing required property 'sso_session'.`);const h=w.sso_session,$=(await Q3(r))[h];if(!$)throw new lh.TokenProviderError(`Sso session '${h}' could not be found in shared credentials file.`,!1);for(let z of["sso_start_url","sso_region"])if(!$[z])throw new lh.TokenProviderError(`Sso session '${h}' is missing required property '${z}'.`,!1);const{sso_start_url:I,sso_region:F}=$;let U;try{U=await Z3(h)}catch(z){throw new lh.TokenProviderError(`The SSO session token associated with profile=${f} was not found or is invalid. ${Zh}`,!1)}fw("accessToken",U.accessToken),fw("expiresAt",U.expiresAt);const{accessToken:A,expiresAt:L}=U,S={token:A,expiration:new Date(L)};if(S.expiration.getTime()-Date.now()>HP)return S;if(Date.now()-aJ.getTime()<30000)return mT(S),S;fw("clientId",U.clientId,!0),fw("clientSecret",U.clientSecret,!0),fw("refreshToken",U.refreshToken,!0);try{aJ.setTime(Date.now());const z=await cJ(U,F);fw("accessToken",z.accessToken),fw("expiresIn",z.expiresIn);const Z=new Date(Date.now()+z.expiresIn*1000);try{await nJ(h,{...U,accessToken:z.accessToken,expiresAt:Z.toISOString(),refreshToken:z.refreshToken})}catch(N){}return{token:z.accessToken,expiration:Z}}catch(z){return mT(S),S}};var uJ=G(()=>{lh=m(Ar(),1);$s();bJ();gJ();eJ();oJ();aJ=new Date(0)});var fe;var tJ=G(()=>{fe=m(Ar(),1)});var jT;var rQ=G(()=>{jT=m(Ar(),1)});var fQ=G(()=>{uJ();tJ();rQ()});function se(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}function FI(r){return{schemeId:"smithy.api#noAuth"}}var sQ,wQ=async(r,s,f)=>{return{operation:Vf(s).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},hQ=(r)=>{const s=[];switch(r.operation){case"GetRoleCredentials":{s.push(FI(r));break}case"ListAccountRoles":{s.push(FI(r));break}case"ListAccounts":{s.push(FI(r));break}case"Logout":{s.push(FI(r));break}default:s.push(se(r))}return s},EQ=(r)=>{return{...sQ.resolveAwsSdkSigV4Config(r)}};var vT=G(()=>{sQ=m(Qr(),1);Es()});var $Q=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},sw;var Dh=G(()=>{sw={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var FQ;var IQ=G(()=>{FQ={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.668.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.667.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var UQ,TQ,GQ,zQ,SQ,vf,AQ,YQ,LQ,RQ,CQ,WQ,he,XQ;var KQ=G(()=>{UQ={["required"]:!1,type:"String"},TQ={["required"]:!0,default:!1,type:"Boolean"},GQ={["ref"]:"Endpoint"},zQ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},SQ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},vf={},AQ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},YQ={["ref"]:"PartitionResult"},LQ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[YQ,"supportsDualStack"]}]},RQ=[zQ],CQ=[SQ],WQ=[{["ref"]:"Region"}],he={version:"1.0",parameters:{Region:UQ,UseDualStack:TQ,UseFIPS:TQ,Endpoint:UQ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[GQ]}],rules:[{conditions:RQ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:CQ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:GQ,properties:vf,headers:vf},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:WQ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:WQ,assign:"PartitionResult"}],rules:[{conditions:[zQ,SQ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,AQ]},LQ],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vf,headers:vf},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:RQ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[AQ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[YQ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:vf,headers:vf},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vf,headers:vf},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:CQ,rules:[{conditions:[LQ],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vf,headers:vf},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:vf,headers:vf},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},XQ=he});var Ee,ZQ=(r,s={})=>{return Ee.get(r,()=>ss(XQ,{endpointParams:r,logger:s.logger}))};var PQ=G(()=>{Pw();ws();KQ();Ee=new fs({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});ur.aws=hs});var JQ,QQ,BQ=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Uf,base64Encoder:r?.base64Encoder??Gf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??ZQ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??hQ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new JQ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new QQ.NoAuthSigner}],logger:r?.logger??new Yf,serviceId:r?.serviceId??"SSO",urlParser:r?.urlParser??br,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Tf}};var MQ=G(()=>{JQ=m(Qr(),1),QQ=m(qr(),1);K();n0();S0();Os();vT();PQ()});var VQ,HQ=(r)=>{gs(process.version);const s=us(r),f=()=>s().then(_s),w=BQ(r);return VQ.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??ps,defaultUserAgentProvider:r?.defaultUserAgentProvider??os({serviceId:w.serviceId,clientVersion:FQ.version}),maxAttempts:r?.maxAttempts??u(js),region:r?.region??u(Hf,Ds),requestHandler:ff.create(r?.requestHandler??f),retryMode:r?.retryMode??u({...is,default:async()=>(await f()).retryMode||Nf}),sha256:r?.sha256??Fs.bind(null,"sha256"),streamCollector:r?.streamCollector??qf,useDualstackEndpoint:r?.useDualstackEndpoint??u(Hs),useFipsEndpoint:r?.useFipsEndpoint??u(ls),userAgentAppId:r?.userAgentAppId??u(as)}};var lQ=G(()=>{IQ();VQ=m(Qr(),1);Jh();lf();Qh();Is();Ns();a0();Bh();zf();MQ();K();Mh();K()});var DQ=(r)=>{const s=r.httpAuthSchemes;let{httpAuthSchemeProvider:f,credentials:w}=r;return{setHttpAuthScheme(h){const E=s.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)s.push(h);else s.splice(E,1,h)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(h){f=h},httpAuthSchemeProvider(){return f},setCredentials(h){w=h},credentials(){return w}}},kQ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var UI=(r)=>r,yQ=(r,s)=>{const f={...UI(ts(r)),...UI(xs(r)),...UI(Xs(r)),...UI(DQ(r))};return s.forEach((w)=>w.configure(f)),{...r,...r0(f),...es(f),...Ks(f),...kQ(f)}};var NQ=G(()=>{Vh();kr();K()});var kh,Z0;var TE=G(()=>{pw();uw();tw();Bw();lf();kh=m(qr(),1);Lh();B();Is();K();vT();Dh();lQ();NQ();Z0=class Z0 extends Sf{constructor(...[r]){const s=HQ(r||{}),f=$Q(s),w=Ms(f),h=vs(w),E=ks(h),$=Zs(E),I=qs($),F=EQ(I),U=yQ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ys(this.config)),this.middlewareStack.use(Ps(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(Qs(this.config)),this.middlewareStack.use(kh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:wQ,identityProviderConfigProvider:async(A)=>new kh.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(kh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var P0;var iT=G(()=>{K();P0=class P0 extends mf{constructor(r){super(r);Object.setPrototypeOf(this,P0.prototype)}}});var TI,GI,AI,LI,qQ=(r)=>({...r,...r.accessToken&&{accessToken:o}}),$e=(r)=>({...r,...r.secretAccessKey&&{secretAccessKey:o},...r.sessionToken&&{sessionToken:o}}),mQ=(r)=>({...r,...r.roleCredentials&&{roleCredentials:$e(r.roleCredentials)}}),jQ=(r)=>({...r,...r.accessToken&&{accessToken:o}}),vQ=(r)=>({...r,...r.accessToken&&{accessToken:o}}),iQ=(r)=>({...r,...r.accessToken&&{accessToken:o}});var mw=G(()=>{K();iT();TI=class TI extends P0{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,TI.prototype)}};GI=class GI extends P0{constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,GI.prototype)}};AI=class AI extends P0{constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,AI.prototype)}};LI=class LI extends P0{constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,LI.prototype)}}});var ww,GE,OQ=async(r,s)=>{const f=GE.requestBuilder(r,s),w=Y({},d1,{[WI]:r[CI]});f.bp("/federation/credentials");const h=Y({[Le]:[,y(r[Ae],"roleName")],[oQ]:[,y(r[nQ],"accountId")]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},dQ=async(r,s)=>{const f=GE.requestBuilder(r,s),w=Y({},d1,{[WI]:r[CI]});f.bp("/assignment/roles");const h=Y({[tQ]:[,r[uQ]],[pQ]:[()=>r.maxResults!==void 0,()=>r[aQ].toString()],[oQ]:[,y(r[nQ],"accountId")]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},cQ=async(r,s)=>{const f=GE.requestBuilder(r,s),w=Y({},d1,{[WI]:r[CI]});f.bp("/assignment/accounts");const h=Y({[tQ]:[,r[uQ]],[pQ]:[()=>r.maxResults!==void 0,()=>r[aQ].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},bQ=async(r,s)=>{const f=GE.requestBuilder(r,s),w=Y({},d1,{[WI]:r[CI]});f.bp("/logout");let h;return f.m("POST").h(w).b(h),f.build()},_Q=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return RI(r,s);const f=Y({$metadata:hw(r)}),w=y(c(await ww.parseJsonBody(r.body,s)),"body"),h=p(w,{roleCredentials:q});return Object.assign(f,h),f},gQ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return RI(r,s);const f=Y({$metadata:hw(r)}),w=y(c(await ww.parseJsonBody(r.body,s)),"body"),h=p(w,{nextToken:T,roleList:q});return Object.assign(f,h),f},xQ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return RI(r,s);const f=Y({$metadata:hw(r)}),w=y(c(await ww.parseJsonBody(r.body,s)),"body"),h=p(w,{accountList:q,nextToken:T});return Object.assign(f,h),f},eQ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return RI(r,s);const f=Y({$metadata:hw(r)});return await gr(r.body,s),f},RI=async(r,s)=>{const f={...r,body:await ww.parseJsonErrorBody(r.body,s)},w=ww.loadRestJsonErrorCode(r,f.body);switch(w){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Fe(f,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Ue(f,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Te(f,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Ge(f,s);default:const h=f.body;return Ie({output:r,parsedBody:h,errorCode:w})}},Ie,Fe=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{message:T});Object.assign(f,h);const E=new TI({$metadata:hw(r),...f});return D(E,r.body)},Ue=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{message:T});Object.assign(f,h);const E=new GI({$metadata:hw(r),...f});return D(E,r.body)},Te=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{message:T});Object.assign(f,h);const E=new AI({$metadata:hw(r),...f});return D(E,r.body)},Ge=async(r,s)=>{const f=Y({}),w=r.body,h=p(w,{message:T});Object.assign(f,h);const E=new LI({$metadata:hw(r),...f});return D(E,r.body)},hw=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),nQ="accountId",CI="accessToken",oQ="account_id",aQ="maxResults",pQ="max_result",uQ="nextToken",tQ="next_token",Ae="roleName",Le="role_name",WI="x-amz-sso_bearer_token";var AE=G(()=>{ww=m(Qr(),1),GE=m(qr(),1);K();mw();iT();Ie=bs(P0)});var LE;var OT=G(()=>{B();V();K();Dh();mw();AE();LE=class LE extends R.classBuilder().ep(sw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(qQ,mQ).ser(OQ).de(_Q).build(){}});var RE;var zI=G(()=>{B();V();K();Dh();mw();AE();RE=class RE extends R.classBuilder().ep(sw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(jQ,void 0).ser(dQ).de(gQ).build(){}});var CE;var SI=G(()=>{B();V();K();Dh();mw();AE();CE=class CE extends R.classBuilder().ep(sw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(vQ,void 0).ser(cQ).de(xQ).build(){}});var dT;var cT=G(()=>{B();V();K();Dh();mw();AE();dT=class dT extends R.classBuilder().ep(sw).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(iQ,void 0).ser(bQ).de(eQ).build(){}});var Re,r9;var f9=G(()=>{K();OT();zI();SI();cT();TE();Re={GetRoleCredentialsCommand:LE,ListAccountRolesCommand:RE,ListAccountsCommand:CE,LogoutCommand:dT};r9=class r9 extends Z0{};ds(Re,r9)});var s9=G(()=>{OT();zI();SI();cT()});var w9=()=>{};var h9,p8r;var E9=G(()=>{h9=m(qr(),1);zI();TE();p8r=h9.createPaginator(Z0,RE,"nextToken","nextToken","maxResults")});var $9,f4r;var I9=G(()=>{$9=m(qr(),1);SI();TE();f4r=$9.createPaginator(Z0,CE,"nextToken","nextToken","maxResults")});var F9=G(()=>{w9();E9();I9()});var U9=G(()=>{mw()});var T9=G(()=>{TE();f9();s9();F9();U9()});var G9={};Ys(G9,{SSOClient:()=>Z0,GetRoleCredentialsCommand:()=>LE});var A9=G(()=>{T9()});var bT,yh,WE=!1,_T=async({ssoStartUrl:r,ssoSession:s,ssoAccountId:f,ssoRegion:w,ssoRoleName:h,ssoClient:E,clientConfig:$,profile:I,logger:F})=>{let U;const A="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{const pr=await pJ({profile:I})();U={accessToken:pr.token,expiresAt:new Date(pr.expiration).toISOString()}}catch(pr){throw new yh.CredentialsProviderError(pr.message,{tryNextLink:WE,logger:F})}else try{U=await Z3(r)}catch(pr){throw new yh.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:WE,logger:F})}if(new Date(U.expiresAt).getTime()-Date.now()<=0)throw new yh.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:WE,logger:F});const{accessToken:L}=U,{SSOClient:S,GetRoleCredentialsCommand:z}=await Promise.resolve().then(() => (A9(),G9)),Z=E||new S(Object.assign({},$??{},{region:$?.region??w}));let N;try{N=await Z.send(new z({accountId:f,roleName:h,accessToken:L}))}catch(pr){throw new yh.CredentialsProviderError(pr,{tryNextLink:WE,logger:F})}const{roleCredentials:{accessKeyId:M,secretAccessKey:l,sessionToken:k,expiration:i,credentialScope:e,accountId:sr}={}}=N;if(!M||!l||!k||!i)throw new yh.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:WE,logger:F});const Br={accessKeyId:M,secretAccessKey:l,sessionToken:k,expiration:new Date(i),...e&&{credentialScope:e},...sr&&{accountId:sr}};if(s)bT.setCredentialFeature(Br,"CREDENTIALS_SSO","s");else bT.setCredentialFeature(Br,"CREDENTIALS_SSO_LEGACY","u");return Br};var L9=G(()=>{bT=m(tr(),1);fQ();yh=m(Ar(),1);$s()});var R9,gT=(r,s)=>{const{sso_start_url:f,sso_account_id:w,sso_region:h,sso_role_name:E}=r;if(!f||!w||!h||!E)throw new R9.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(r).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return r};var xT=G(()=>{R9=m(Ar(),1)});var Nh,Ce=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:s,ssoAccountId:f,ssoRegion:w,ssoRoleName:h,ssoSession:E}=r,{ssoClient:$}=r,I=Df(r);if(!s&&!f&&!w&&!h&&!E){const U=(await e0(r))[I];if(!U)throw new Nh.CredentialsProviderError(`Profile ${I} was not found.`,{logger:r.logger});if(!RT(U))throw new Nh.CredentialsProviderError(`Profile ${I} is not configured with SSO credentials.`,{logger:r.logger});if(U?.sso_session){const M=(await Q3(r))[U.sso_session],l=` configurations in profile ${I} and sso-session ${U.sso_session}`;if(w&&w!==M.sso_region)throw new Nh.CredentialsProviderError("Conflicting SSO region"+l,{tryNextLink:!1,logger:r.logger});if(s&&s!==M.sso_start_url)throw new Nh.CredentialsProviderError("Conflicting SSO start_url"+l,{tryNextLink:!1,logger:r.logger});U.sso_region=M.sso_region,U.sso_start_url=M.sso_start_url}const{sso_start_url:A,sso_account_id:L,sso_region:S,sso_role_name:z,sso_session:Z}=gT(U,r.logger);return _T({ssoStartUrl:A,ssoSession:Z,ssoAccountId:L,ssoRegion:S,ssoRoleName:z,ssoClient:$,clientConfig:r.clientConfig,profile:I})}else if(!s||!f||!w||!h)throw new Nh.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:r.logger});else return _T({ssoStartUrl:s,ssoSession:E,ssoAccountId:f,ssoRegion:w,ssoRoleName:h,ssoClient:$,clientConfig:r.clientConfig,profile:I})};var C9=G(()=>{Nh=m(Ar(),1);$s();L9();xT()});var W9=()=>{};var eT={};Ys(eT,{validateSsoProfile:()=>gT,isSsoProfile:()=>RT,fromSSO:()=>Ce});var nT=G(()=>{C9();W9();xT()});var z9,YI,S9=(r,s,f)=>{const w={EcsContainer:async(h)=>{const{fromHttp:E}=await Promise.resolve().then(() => (LT(),AT)),{fromContainerMetadata:$}=await Promise.resolve().then(() => (x1(),g1));return f?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>YI.chain(E(h??{}),$(h))().then(oT)},Ec2InstanceMetadata:async(h)=>{f?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:E}=await Promise.resolve().then(() => (x1(),g1));return async()=>E(h)().then(oT)},Environment:async(h)=>{f?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:E}=await Promise.resolve().then(() => (wT(),sP));return async()=>E(h)().then(oT)}};if(r in w)return w[r];else throw new YI.CredentialsProviderError(`Unsupported credential source in profile ${s}. Got ${r}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:f})},oT=(r)=>z9.setCredentialFeature(r,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var Y9=G(()=>{z9=m(tr(),1),YI=m(Ar(),1)});function We(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}function X9(r){return{schemeId:"smithy.api#noAuth"}}var K9,Z9=async(r,s,f)=>{return{operation:Vf(s).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},P9=(r)=>{const s=[];switch(r.operation){case"AssumeRoleWithSAML":{s.push(X9(r));break}case"AssumeRoleWithWebIdentity":{s.push(X9(r));break}default:s.push(We(r))}return s},ze=(r)=>({...r,stsClientCtor:J0}),J9=(r)=>{const s=ze(r);return{...K9.resolveAwsSdkSigV4Config(s)}};var aT=G(()=>{K9=m(Qr(),1);Es();zE()});var Q9=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}},er;var f0=G(()=>{er={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"}}});var M9;var B9=G(()=>{M9={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.668.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.668.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.668.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var V9,pT,j9,H9,dr,l9,v9,i9,nr,Xf,D9,O9,d9,k9,c9,y9,N9,q9,m9,Ye,b9;var _9=G(()=>{V9={["required"]:!1,["type"]:"String"},pT={["required"]:!0,default:!1,["type"]:"Boolean"},j9={["ref"]:"Endpoint"},H9={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},dr={["ref"]:"Region"},l9={["fn"]:"aws.partition",["argv"]:[dr],assign:"PartitionResult"},v9={["ref"]:"UseFIPS"},i9={["ref"]:"UseDualStack"},nr={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},Xf={},D9={conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"aws-global"]}],["endpoint"]:nr,["type"]:"endpoint"},O9={["fn"]:"booleanEquals",["argv"]:[v9,!0]},d9={["fn"]:"booleanEquals",["argv"]:[i9,!0]},k9={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},c9={["ref"]:"PartitionResult"},y9={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[c9,"supportsDualStack"]}]},N9=[{["fn"]:"isSet",["argv"]:[j9]}],q9=[O9],m9=[d9],Ye={version:"1.0",parameters:{Region:V9,UseDualStack:pT,UseFIPS:pT,Endpoint:V9,UseGlobalEndpoint:pT},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:N9},H9,l9,{["fn"]:"booleanEquals",["argv"]:[v9,!1]},{["fn"]:"booleanEquals",["argv"]:[i9,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"ap-northeast-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"ap-south-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"ap-southeast-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"ap-southeast-2"]}],endpoint:nr,["type"]:"endpoint"},D9,{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"ca-central-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"eu-central-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"eu-north-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"eu-west-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"eu-west-2"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"eu-west-3"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"sa-east-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"us-east-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"us-east-2"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"us-west-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dr,"us-west-2"]}],endpoint:nr,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:Xf},["type"]:"endpoint"}],["type"]:"tree"},{conditions:N9,rules:[{conditions:q9,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:m9,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:j9,properties:Xf,headers:Xf},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[H9],rules:[{conditions:[l9],rules:[{conditions:[O9,d9],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,k9]},y9],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Xf,headers:Xf},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:q9,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[k9,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[c9,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Xf,headers:Xf},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Xf,headers:Xf},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:m9,rules:[{conditions:[y9],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Xf,headers:Xf},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},D9,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:Xf,headers:Xf},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},b9=Ye});var Xe,g9=(r,s={})=>{return Xe.get(r,()=>ss(b9,{endpointParams:r,logger:s.logger}))};var x9=G(()=>{Pw();ws();_9();Xe=new fs({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});ur.aws=hs});var e9,n9,o9=(r)=>{return{apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??Uf,base64Encoder:r?.base64Encoder??Gf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??g9,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??P9,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new e9.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new n9.NoAuthSigner}],logger:r?.logger??new Yf,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??br,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Tf}};var a9=G(()=>{e9=m(Qr(),1),n9=m(qr(),1);K();n0();S0();Os();aT();x9()});var XI,p9,u9=(r)=>{gs(process.version);const s=us(r),f=()=>s().then(_s),w=o9(r);return XI.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??ps,credentialDefaultProvider:r?.credentialDefaultProvider??X0,defaultUserAgentProvider:r?.defaultUserAgentProvider??os({serviceId:w.serviceId,clientVersion:M9.version}),httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4")||(async(E)=>await X0(E?.__config||{})()),signer:new XI.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new p9.NoAuthSigner}],maxAttempts:r?.maxAttempts??u(js),region:r?.region??u(Hf,Ds),requestHandler:ff.create(r?.requestHandler??f),retryMode:r?.retryMode??u({...is,default:async()=>(await f()).retryMode||Nf}),sha256:r?.sha256??Fs.bind(null,"sha256"),streamCollector:r?.streamCollector??qf,useDualstackEndpoint:r?.useDualstackEndpoint??u(Hs),useFipsEndpoint:r?.useFipsEndpoint??u(ls),userAgentAppId:r?.userAgentAppId??u(as)}};var t9=G(()=>{B9();XI=m(Qr(),1);e1();Jh();lf();p9=m(qr(),1);Qh();Is();Ns();a0();Bh();zf();a9();K();Mh();K()});var rB=(r)=>{const s=r.httpAuthSchemes;let{httpAuthSchemeProvider:f,credentials:w}=r;return{setHttpAuthScheme(h){const E=s.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)s.push(h);else s.splice(E,1,h)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(h){f=h},httpAuthSchemeProvider(){return f},setCredentials(h){w=h},credentials(){return w}}},fB=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var KI=(r)=>r,sB=(r,s)=>{const f={...KI(ts(r)),...KI(xs(r)),...KI(Xs(r)),...KI(rB(r))};return s.forEach((w)=>w.configure(f)),{...r,...r0(f),...es(f),...Ks(f),...fB(f)}};var wB=G(()=>{Vh();kr();K()});var qh,J0;var zE=G(()=>{pw();uw();tw();Bw();lf();qh=m(qr(),1);Lh();B();Is();K();aT();f0();t9();wB();J0=class J0 extends Sf{constructor(...[r]){const s=u9(r||{}),f=Q9(s),w=Ms(f),h=vs(w),E=ks(h),$=Zs(E),I=qs($),F=J9(I),U=sB(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ys(this.config)),this.middlewareStack.use(Ps(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(Qs(this.config)),this.middlewareStack.use(qh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Z9,identityProviderConfigProvider:async(A)=>new qh.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(qh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var sf;var ZI=G(()=>{K();sf=class sf extends mf{constructor(r){super(r);Object.setPrototypeOf(this,sf.prototype)}}});var SE,YE,XE,KE,ZE,PE,JE,QE,mh=(r)=>({...r,...r.SecretAccessKey&&{SecretAccessKey:o}}),uT=(r)=>({...r,...r.Credentials&&{Credentials:mh(r.Credentials)}}),tT=(r)=>({...r,...r.SAMLAssertion&&{SAMLAssertion:o}}),r5=(r)=>({...r,...r.Credentials&&{Credentials:mh(r.Credentials)}}),f5=(r)=>({...r,...r.WebIdentityToken&&{WebIdentityToken:o}}),s5=(r)=>({...r,...r.Credentials&&{Credentials:mh(r.Credentials)}}),w5=(r)=>({...r,...r.Credentials&&{Credentials:mh(r.Credentials)}}),h5=(r)=>({...r,...r.Credentials&&{Credentials:mh(r.Credentials)}});var Ew=G(()=>{K();ZI();SE=class SE extends sf{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,SE.prototype)}};YE=class YE extends sf{constructor(r){super({name:"MalformedPolicyDocumentException",$fault:"client",...r});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,YE.prototype)}};XE=class XE extends sf{constructor(r){super({name:"PackedPolicyTooLargeException",$fault:"client",...r});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,XE.prototype)}};KE=class KE extends sf{constructor(r){super({name:"RegionDisabledException",$fault:"client",...r});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,KE.prototype)}};ZE=class ZE extends sf{constructor(r){super({name:"IDPRejectedClaimException",$fault:"client",...r});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,ZE.prototype)}};PE=class PE extends sf{constructor(r){super({name:"InvalidIdentityTokenException",$fault:"client",...r});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,PE.prototype)}};JE=class JE extends sf{constructor(r){super({name:"IDPCommunicationErrorException",$fault:"client",...r});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,JE.prototype)}};QE=class QE extends sf{constructor(r){super({name:"InvalidAuthorizationMessageException",$fault:"client",...r});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,QE.prototype)}}});var Us,hB=async(r,s)=>{const f=Fw;let w;return w=Aw({...He(r,s),[Tw]:$n,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},EB=async(r,s)=>{const f=Fw;let w;return w=Aw({...le(r,s),[Tw]:In,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},$B=async(r,s)=>{const f=Fw;let w;return w=Aw({...De(r,s),[Tw]:Fn,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},IB=async(r,s)=>{const f=Fw;let w;return w=Aw({...ke(r,s),[Tw]:Un,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},FB=async(r,s)=>{const f=Fw;let w;return w=Aw({...ye(r,s),[Tw]:Tn,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},UB=async(r,s)=>{const f=Fw;let w;return w=Aw({...Ne(r,s),[Tw]:Gn,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},TB=async(r,s)=>{const f=Fw;let w;return w=Aw({...qe(r,s),[Tw]:An,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},GB=async(r,s)=>{const f=Fw;let w;return w=Aw({...me(r,s),[Tw]:Ln,[Gw]:Uw}),Iw(s,f,"/",void 0,w)},AB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=ce(f.AssumeRoleResult,s),{$metadata:or(r),...w}},LB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=be(f.AssumeRoleWithSAMLResult,s),{$metadata:or(r),...w}},RB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=_e(f.AssumeRoleWithWebIdentityResult,s),{$metadata:or(r),...w}},CB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=ge(f.DecodeAuthorizationMessageResult,s),{$metadata:or(r),...w}},WB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=ne(f.GetAccessKeyInfoResult,s),{$metadata:or(r),...w}},zB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=oe(f.GetCallerIdentityResult,s),{$metadata:or(r),...w}},SB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=ae(f.GetFederationTokenResult,s),{$metadata:or(r),...w}},YB=async(r,s)=>{if(r.statusCode>=300)return $w(r,s);const f=await Us.parseXmlBody(r.body,s);let w={};return w=pe(f.GetSessionTokenResult,s),{$metadata:or(r),...w}},$w=async(r,s)=>{const f={...r,body:await Us.parseXmlErrorBody(r.body,s)},w=Rn(r,f.body);switch(w){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ke(f,s);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Be(f,s);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Me(f,s);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Ve(f,s);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Pe(f,s);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Qe(f,s);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Ze(f,s);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Je(f,s);default:const h=f.body;return En({output:r,parsedBody:h.Error,errorCode:w})}},Ke=async(r,s)=>{const f=r.body,w=xe(f.Error,s),h=new SE({$metadata:or(r),...w});return D(h,f)},Ze=async(r,s)=>{const f=r.body,w=ue(f.Error,s),h=new JE({$metadata:or(r),...w});return D(h,f)},Pe=async(r,s)=>{const f=r.body,w=te(f.Error,s),h=new ZE({$metadata:or(r),...w});return D(h,f)},Je=async(r,s)=>{const f=r.body,w=rn(f.Error,s),h=new QE({$metadata:or(r),...w});return D(h,f)},Qe=async(r,s)=>{const f=r.body,w=fn(f.Error,s),h=new PE({$metadata:or(r),...w});return D(h,f)},Be=async(r,s)=>{const f=r.body,w=sn(f.Error,s),h=new YE({$metadata:or(r),...w});return D(h,f)},Me=async(r,s)=>{const f=r.body,w=wn(f.Error,s),h=new XE({$metadata:or(r),...w});return D(h,f)},Ve=async(r,s)=>{const f=r.body,w=hn(f.Error,s),h=new KE({$metadata:or(r),...w});return D(h,f)},He=(r,s)=>{const f={};if(r[M0]!=null)f[M0]=r[M0];if(r[Oh]!=null)f[Oh]=r[Oh];if(r[df]!=null){const w=PI(r[df],s);if(r[df]?.length===0)f.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;f[$]=E})}if(r[Of]!=null)f[Of]=r[Of];if(r[hf]!=null)f[hf]=r[hf];if(r[ch]!=null){const w=XB(r[ch],s);if(r[ch]?.length===0)f.Tags=[];Object.entries(w).forEach(([h,E])=>{const $=`Tags.${h}`;f[$]=E})}if(r[V5]!=null){const w=de(r[V5],s);if(r[V5]?.length===0)f.TransitiveTagKeys=[];Object.entries(w).forEach(([h,E])=>{const $=`TransitiveTagKeys.${h}`;f[$]=E})}if(r[U5]!=null)f[U5]=r[U5];if(r[dh]!=null)f[dh]=r[dh];if(r[bh]!=null)f[bh]=r[bh];if(r[bf]!=null)f[bf]=r[bf];if(r[Y5]!=null){const w=ie(r[Y5],s);if(r[Y5]?.length===0)f.ProvidedContexts=[];Object.entries(w).forEach(([h,E])=>{const $=`ProvidedContexts.${h}`;f[$]=E})}return f},le=(r,s)=>{const f={};if(r[M0]!=null)f[M0]=r[M0];if(r[z5]!=null)f[z5]=r[z5];if(r[J5]!=null)f[J5]=r[J5];if(r[df]!=null){const w=PI(r[df],s);if(r[df]?.length===0)f.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;f[$]=E})}if(r[Of]!=null)f[Of]=r[Of];if(r[hf]!=null)f[hf]=r[hf];return f},De=(r,s)=>{const f={};if(r[M0]!=null)f[M0]=r[M0];if(r[Oh]!=null)f[Oh]=r[Oh];if(r[D5]!=null)f[D5]=r[D5];if(r[X5]!=null)f[X5]=r[X5];if(r[df]!=null){const w=PI(r[df],s);if(r[df]?.length===0)f.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;f[$]=E})}if(r[Of]!=null)f[Of]=r[Of];if(r[hf]!=null)f[hf]=r[hf];return f},ke=(r,s)=>{const f={};if(r[T5]!=null)f[T5]=r[T5];return f},ye=(r,s)=>{const f={};if(r[jh]!=null)f[jh]=r[jh];return f},Ne=(r,s)=>{return{}},qe=(r,s)=>{const f={};if(r[C5]!=null)f[C5]=r[C5];if(r[Of]!=null)f[Of]=r[Of];if(r[df]!=null){const w=PI(r[df],s);if(r[df]?.length===0)f.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;f[$]=E})}if(r[hf]!=null)f[hf]=r[hf];if(r[ch]!=null){const w=XB(r[ch],s);if(r[ch]?.length===0)f.Tags=[];Object.entries(w).forEach(([h,E])=>{const $=`Tags.${h}`;f[$]=E})}return f},me=(r,s)=>{const f={};if(r[hf]!=null)f[hf]=r[hf];if(r[dh]!=null)f[dh]=r[dh];if(r[bh]!=null)f[bh]=r[bh];return f},PI=(r,s)=>{const f={};let w=1;for(let h of r){if(h===null)continue;const E=je(h,s);Object.entries(E).forEach(([$,I])=>{f[`member.${w}.${$}`]=I}),w++}return f},je=(r,s)=>{const f={};if(r[k5]!=null)f[k5]=r[k5];return f},ve=(r,s)=>{const f={};if(r[S5]!=null)f[S5]=r[S5];if(r[$5]!=null)f[$5]=r[$5];return f},ie=(r,s)=>{const f={};let w=1;for(let h of r){if(h===null)continue;const E=ve(h,s);Object.entries(E).forEach(([$,I])=>{f[`member.${w}.${$}`]=I}),w++}return f},Oe=(r,s)=>{const f={};if(r[R5]!=null)f[R5]=r[R5];if(r[l5]!=null)f[l5]=r[l5];return f},de=(r,s)=>{const f={};let w=1;for(let h of r){if(h===null)continue;f[`member.${w}`]=h,w++}return f},XB=(r,s)=>{const f={};let w=1;for(let h of r){if(h===null)continue;const E=Oe(h,s);Object.entries(E).forEach(([$,I])=>{f[`member.${w}.${$}`]=I}),w++}return f},y5=(r,s)=>{const f={};if(r[E5]!=null)f[E5]=T(r[E5]);if(r[B0]!=null)f[B0]=T(r[B0]);return f},ce=(r,s)=>{const f={};if(r[wf]!=null)f[wf]=BE(r[wf],s);if(r[Q0]!=null)f[Q0]=y5(r[Q0],s);if(r[cf]!=null)f[cf]=hr(r[cf]);if(r[bf]!=null)f[bf]=T(r[bf]);return f},be=(r,s)=>{const f={};if(r[wf]!=null)f[wf]=BE(r[wf],s);if(r[Q0]!=null)f[Q0]=y5(r[Q0],s);if(r[cf]!=null)f[cf]=hr(r[cf]);if(r[Z5]!=null)f[Z5]=T(r[Z5]);if(r[B5]!=null)f[B5]=T(r[B5]);if(r[L5]!=null)f[L5]=T(r[L5]);if(r[ih]!=null)f[ih]=T(r[ih]);if(r[W5]!=null)f[W5]=T(r[W5]);if(r[bf]!=null)f[bf]=T(r[bf]);return f},_e=(r,s)=>{const f={};if(r[wf]!=null)f[wf]=BE(r[wf],s);if(r[Q5]!=null)f[Q5]=T(r[Q5]);if(r[Q0]!=null)f[Q0]=y5(r[Q0],s);if(r[cf]!=null)f[cf]=hr(r[cf]);if(r[K5]!=null)f[K5]=T(r[K5]);if(r[ih]!=null)f[ih]=T(r[ih]);if(r[bf]!=null)f[bf]=T(r[bf]);return f},BE=(r,s)=>{const f={};if(r[jh]!=null)f[jh]=T(r[jh]);if(r[P5]!=null)f[P5]=T(r[P5]);if(r[M5]!=null)f[M5]=T(r[M5]);if(r[F5]!=null)f[F5]=y(yw(r[F5]));return f},ge=(r,s)=>{const f={};if(r[I5]!=null)f[I5]=T(r[I5]);return f},xe=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},ee=(r,s)=>{const f={};if(r[A5]!=null)f[A5]=T(r[A5]);if(r[B0]!=null)f[B0]=T(r[B0]);return f},ne=(r,s)=>{const f={};if(r[vh]!=null)f[vh]=T(r[vh]);return f},oe=(r,s)=>{const f={};if(r[H5]!=null)f[H5]=T(r[H5]);if(r[vh]!=null)f[vh]=T(r[vh]);if(r[B0]!=null)f[B0]=T(r[B0]);return f},ae=(r,s)=>{const f={};if(r[wf]!=null)f[wf]=BE(r[wf],s);if(r[G5]!=null)f[G5]=ee(r[G5],s);if(r[cf]!=null)f[cf]=hr(r[cf]);return f},pe=(r,s)=>{const f={};if(r[wf]!=null)f[wf]=BE(r[wf],s);return f},ue=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},te=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},rn=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},fn=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},sn=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},wn=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},hn=(r,s)=>{const f={};if(r[Sr]!=null)f[Sr]=T(r[Sr]);return f},or=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),En,Iw=async(r,s,f,w,h)=>{const{hostname:E,protocol:$="https",port:I,path:F}=await r.endpoint(),U={protocol:$,hostname:E,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+f:F+f,headers:s};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Mr(U)},Fw,Uw="2011-06-15",Tw="Action",jh="AccessKeyId",$n="AssumeRole",E5="AssumedRoleId",Q0="AssumedRoleUser",In="AssumeRoleWithSAML",Fn="AssumeRoleWithWebIdentity",vh="Account",B0="Arn",ih="Audience",wf="Credentials",$5="ContextAssertion",Un="DecodeAuthorizationMessage",I5="DecodedMessage",hf="DurationSeconds",F5="Expiration",U5="ExternalId",T5="EncodedMessage",G5="FederatedUser",A5="FederatedUserId",Tn="GetAccessKeyInfo",Gn="GetCallerIdentity",An="GetFederationToken",Ln="GetSessionToken",L5="Issuer",R5="Key",C5="Name",W5="NameQualifier",Of="Policy",df="PolicyArns",z5="PrincipalArn",S5="ProviderArn",Y5="ProvidedContexts",X5="ProviderId",cf="PackedPolicySize",K5="Provider",M0="RoleArn",Oh="RoleSessionName",Z5="Subject",P5="SecretAccessKey",J5="SAMLAssertion",Q5="SubjectFromWebIdentityToken",bf="SourceIdentity",dh="SerialNumber",B5="SubjectType",M5="SessionToken",ch="Tags",bh="TokenCode",V5="TransitiveTagKeys",H5="UserId",Gw="Version",l5="Value",D5="WebIdentityToken",k5="arn",Sr="message",Aw=(r)=>Object.entries(r).map(([s,f])=>d3(s)+"="+d3(f)).join("&"),Rn=(r,s)=>{if(s.Error?.Code!==void 0)return s.Error.Code;if(r.statusCode==404)return"NotFound"};var V0=G(()=>{Us=m(Qr(),1);kr();K();Ew();ZI();En=bs(sf),Fw={"content-type":"application/x-www-form-urlencoded"}});var _h;var JI=G(()=>{B();V();K();f0();Ew();V0();_h=class _h extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,uT).ser(hB).de(AB).build(){}});var QI;var N5=G(()=>{B();V();K();f0();Ew();V0();QI=class QI extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(tT,r5).ser(EB).de(LB).build(){}});var gh;var BI=G(()=>{B();V();K();f0();Ew();V0();gh=class gh extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(f5,s5).ser($B).de(RB).build(){}});var MI;var q5=G(()=>{B();V();K();f0();V0();MI=class MI extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(IB).de(CB).build(){}});var VI;var m5=G(()=>{B();V();K();f0();V0();VI=class VI extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(FB).de(WB).build(){}});var HI;var j5=G(()=>{B();V();K();f0();V0();HI=class HI extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(UB).de(zB).build(){}});var lI;var v5=G(()=>{B();V();K();f0();Ew();V0();lI=class lI extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,w5).ser(TB).de(SB).build(){}});var DI;var i5=G(()=>{B();V();K();f0();Ew();V0();DI=class DI extends R.classBuilder().ep(er).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,h5).ser(GB).de(YB).build(){}});var Cn,O5;var KB=G(()=>{K();JI();N5();BI();q5();m5();j5();v5();i5();zE();Cn={AssumeRoleCommand:_h,AssumeRoleWithSAMLCommand:QI,AssumeRoleWithWebIdentityCommand:gh,DecodeAuthorizationMessageCommand:MI,GetAccessKeyInfoCommand:VI,GetCallerIdentityCommand:HI,GetFederationTokenCommand:lI,GetSessionTokenCommand:DI};O5=class O5 extends J0{};ds(Cn,O5)});var ZB=G(()=>{JI();N5();BI();q5();m5();j5();v5();i5()});var PB=G(()=>{Ew()});var kI,JB="us-east-1",QB=(r)=>{if(typeof r?.Arn==="string"){const s=r.Arn.split(":");if(s.length>4&&s[4]!=="")return s[4]}return},BB=async(r,s,f)=>{const w=typeof r==="function"?await r():r,h=typeof s==="function"?await s():s;return f?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${w} (provider)`,`${h} (parent client)`,`${JB} (STS default)`),w??h??JB},MB=(r,s)=>{let f,w;return async(h,E)=>{if(w=h,!f){const{logger:A=r?.parentClientConfig?.logger,region:L,requestHandler:S=r?.parentClientConfig?.requestHandler,credentialProviderLogger:z}=r,Z=await BB(L,r?.parentClientConfig?.region,z),N=!HB(S);f=new s({credentialDefaultProvider:()=>async()=>w,region:Z,requestHandler:N?S:void 0,logger:A})}const{Credentials:$,AssumedRoleUser:I}=await f.send(new _h(E));if(!$||!$.AccessKeyId||!$.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${E.RoleArn}`);const F=QB(I),U={accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.SessionToken,expiration:$.Expiration,...$.CredentialScope&&{credentialScope:$.CredentialScope},...F&&{accountId:F}};return kI.setCredentialFeature(U,"CREDENTIALS_STS_ASSUME_ROLE","i"),U}},VB=(r,s)=>{let f;return async(w)=>{if(!f){const{logger:F=r?.parentClientConfig?.logger,region:U,requestHandler:A=r?.parentClientConfig?.requestHandler,credentialProviderLogger:L}=r,S=await BB(U,r?.parentClientConfig?.region,L),z=!HB(A);f=new s({region:S,requestHandler:z?A:void 0,logger:F})}const{Credentials:h,AssumedRoleUser:E}=await f.send(new gh(w));if(!h||!h.AccessKeyId||!h.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${w.RoleArn}`);const $=QB(E),I={accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.SessionToken,expiration:h.Expiration,...h.CredentialScope&&{credentialScope:h.CredentialScope},...$&&{accountId:$}};if($)kI.setCredentialFeature(I,"RESOLVED_ACCOUNT_ID","T");return kI.setCredentialFeature(I,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),I}},HB=(r)=>{return r?.metadata?.handlerProtocol==="h2"};var lB=G(()=>{kI=m(tr(),1);JI();BI()});var DB=(r,s)=>{if(!s)return r;else return class f extends r{constructor(w){super(w);for(let h of s)this.middlewareStack.use(h)}}},kB=(r={},s)=>MB(r,DB(J0,s)),yB=(r={},s)=>VB(r,DB(J0,s)),Wn=(r)=>(s)=>r({roleAssumer:kB(s),roleAssumerWithWebIdentity:yB(s),...s});var NB=G(()=>{lB();zE()});var d5={};Ys(d5,{getDefaultRoleAssumerWithWebIdentity:()=>yB,getDefaultRoleAssumer:()=>kB,decorateDefaultCredentialProvider:()=>Wn,__Client:()=>Sf,STSServiceException:()=>sf,STSClient:()=>J0,STS:()=>O5,RegionDisabledException:()=>KE,PackedPolicyTooLargeException:()=>XE,MalformedPolicyDocumentException:()=>YE,InvalidIdentityTokenException:()=>PE,InvalidAuthorizationMessageException:()=>QE,IDPRejectedClaimException:()=>ZE,IDPCommunicationErrorException:()=>JE,GetSessionTokenResponseFilterSensitiveLog:()=>h5,GetSessionTokenCommand:()=>DI,GetFederationTokenResponseFilterSensitiveLog:()=>w5,GetFederationTokenCommand:()=>lI,GetCallerIdentityCommand:()=>HI,GetAccessKeyInfoCommand:()=>VI,ExpiredTokenException:()=>SE,DecodeAuthorizationMessageCommand:()=>MI,CredentialsFilterSensitiveLog:()=>mh,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>s5,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>f5,AssumeRoleWithWebIdentityCommand:()=>gh,AssumeRoleWithSAMLResponseFilterSensitiveLog:()=>r5,AssumeRoleWithSAMLRequestFilterSensitiveLog:()=>tT,AssumeRoleWithSAMLCommand:()=>QI,AssumeRoleResponseFilterSensitiveLog:()=>uT,AssumeRoleCommand:()=>_h,$Command:()=>R});var c5=G(()=>{zE();KB();ZB();PB();NB();ZI()});var b5,_5,mB=(r,{profile:s="default",logger:f}={})=>{return Boolean(r)&&typeof r==="object"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1&&["undefined","string"].indexOf(typeof r.external_id)>-1&&["undefined","string"].indexOf(typeof r.mfa_serial)>-1&&(zn(r,{profile:s,logger:f})||Sn(r,{profile:s,logger:f}))},zn=(r,{profile:s,logger:f})=>{const w=typeof r.source_profile==="string"&&typeof r.credential_source==="undefined";if(w)f?.debug?.(` ${s} isAssumeRoleWithSourceProfile source_profile=${r.source_profile}`);return w},Sn=(r,{profile:s,logger:f})=>{const w=typeof r.credential_source==="string"&&typeof r.source_profile==="undefined";if(w)f?.debug?.(` ${s} isCredentialSourceProfile credential_source=${r.credential_source}`);return w},jB=async(r,s,f,w={})=>{f.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const h=s[r];if(!f.roleAssumer){const{getDefaultRoleAssumer:I}=await Promise.resolve().then(() => (c5(),d5));f.roleAssumer=I({...f.clientConfig,credentialProviderLogger:f.logger,parentClientConfig:f?.parentClientConfig},f.clientPlugins)}const{source_profile:E}=h;if(E&&E in w)throw new _5.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${Df(f)}. Profiles visited: `+Object.keys(w).join(", "),{logger:f.logger});f.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${E?`source_profile=[${E}]`:`profile=[${r}]`}`);const $=E?yI(E,s,f,{...w,[E]:!0},qB(s[E]??{})):(await S9(h.credential_source,r,f.logger)(f))();if(qB(h))return $.then((I)=>b5.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{const I={RoleArn:h.role_arn,RoleSessionName:h.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:h.external_id,DurationSeconds:parseInt(h.duration_seconds||"3600",10)},{mfa_serial:F}=h;if(F){if(!f.mfaCodeProvider)throw new _5.CredentialsProviderError(`Profile ${r} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:f.logger,tryNextLink:!1});I.SerialNumber=F,I.TokenCode=await f.mfaCodeProvider(F)}const U=await $;return f.roleAssumer(U,I).then((A)=>b5.setCredentialFeature(A,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},qB=(r)=>{return!r.role_arn&&!!r.credential_source};var vB=G(()=>{b5=m(tr(),1),_5=m(Ar(),1);$s();Y9();g5()});var iB,OB=(r,s,f)=>{if(s.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(s.AccessKeyId===void 0||s.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(s.Expiration){const E=new Date;if(new Date(s.Expiration)<E)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let w=s.AccountId;if(!w&&f?.[r]?.aws_account_id)w=f[r].aws_account_id;const h={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,...s.SessionToken&&{sessionToken:s.SessionToken},...s.Expiration&&{expiration:new Date(s.Expiration)},...s.CredentialScope&&{credentialScope:s.CredentialScope},...w&&{accountId:w}};return iB.setCredentialFeature(h,"CREDENTIALS_PROCESS","w"),h};var dB=G(()=>{iB=m(tr(),1)});import{exec as Yn}from"child_process";import{promisify as Xn}from"util";var NI,cB=async(r,s,f)=>{const w=s[r];if(s[r]){const h=w.credential_process;if(h!==void 0){const E=Xn(Yn);try{const{stdout:$}=await E(h);let I;try{I=JSON.parse($.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return OB(r,I,s)}catch($){throw new NI.CredentialsProviderError($.message,{logger:f})}}else throw new NI.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:f})}else throw new NI.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:f})};var bB=G(()=>{NI=m(Ar(),1);dB()});var Kn=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const s=await e0(r);return cB(Df(r),s,r.logger)};var _B=G(()=>{$s();bB()});var x5={};Ys(x5,{fromProcess:()=>Kn});var e5=G(()=>{_B()});var gB,xB=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string",eB=async(r,s)=>Promise.resolve().then(() => (e5(),x5)).then(({fromProcess:f})=>f({...r,profile:s})().then((w)=>gB.setCredentialFeature(w,"CREDENTIALS_PROFILE_PROCESS","v")));var nB=G(()=>{gB=m(tr(),1)});var n5,oB=async(r,s,f={})=>{const{fromSSO:w}=await Promise.resolve().then(() => (nT(),eT));return w({profile:r,logger:f.logger})().then((h)=>{if(s.sso_session)return n5.setCredentialFeature(h,"CREDENTIALS_PROFILE_SSO","r");else return n5.setCredentialFeature(h,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},aB=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var pB=G(()=>{n5=m(tr(),1)});var uB,o5=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.aws_access_key_id==="string"&&typeof r.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof r.aws_session_token)>-1&&["undefined","string"].indexOf(typeof r.aws_account_id)>-1,a5=async(r,s)=>{s?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");const f={accessKeyId:r.aws_access_key_id,secretAccessKey:r.aws_secret_access_key,sessionToken:r.aws_session_token,...r.aws_credential_scope&&{credentialScope:r.aws_credential_scope},...r.aws_account_id&&{accountId:r.aws_account_id}};return uB.setCredentialFeature(f,"CREDENTIALS_PROFILE","n")};var tB=G(()=>{uB=m(tr(),1)});var p5=(r)=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:s,roleSessionName:f,webIdentityToken:w,providerId:h,policyArns:E,policy:$,durationSeconds:I}=r;let{roleAssumerWithWebIdentity:F}=r;if(!F){const{getDefaultRoleAssumerWithWebIdentity:U}=await Promise.resolve().then(() => (c5(),d5));F=U({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:r.parentClientConfig},r.clientPlugins)}return F({RoleArn:s,RoleSessionName:f??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:w,ProviderId:h,PolicyArns:E,Policy:$,DurationSeconds:I})};import{readFileSync as Zn}from"fs";var fM,sM,rM="AWS_WEB_IDENTITY_TOKEN_FILE",Pn="AWS_ROLE_ARN",Jn="AWS_ROLE_SESSION_NAME",Qn=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const s=r?.webIdentityTokenFile??process.env[rM],f=r?.roleArn??process.env[Pn],w=r?.roleSessionName??process.env[Jn];if(!s||!f)throw new sM.CredentialsProviderError("Web identity configuration not specified",{logger:r.logger});const h=await p5({...r,webIdentityToken:Zn(s,{encoding:"ascii"}),roleArn:f,roleSessionName:w})();if(s===process.env[rM])fM.setCredentialFeature(h,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return h};var wM=G(()=>{fM=m(tr(),1),sM=m(Ar(),1)});var u5={};Ys(u5,{fromWebToken:()=>p5,fromTokenFile:()=>Qn});var t5=G(()=>{wM()});var hM,EM=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.web_identity_token_file==="string"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1,$M=async(r,s)=>Promise.resolve().then(() => (t5(),u5)).then(({fromTokenFile:f})=>f({webIdentityTokenFile:r.web_identity_token_file,roleArn:r.role_arn,roleSessionName:r.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})().then((w)=>hM.setCredentialFeature(w,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var IM=G(()=>{hM=m(tr(),1)});var FM,yI=async(r,s,f,w={},h=!1)=>{const E=s[r];if(Object.keys(w).length>0&&o5(E))return a5(E,f);if(h||mB(E,{profile:r,logger:f.logger}))return jB(r,s,f,w);if(o5(E))return a5(E,f);if(EM(E))return $M(E,f);if(xB(E))return eB(f,r);if(aB(E))return await oB(r,E,f);throw new FM.CredentialsProviderError(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:f.logger})};var g5=G(()=>{FM=m(Ar(),1);vB();nB();pB();tB();IM()});var Bn=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const s=await e0(r);return yI(Df(r),s,r)};var UM=G(()=>{$s();g5()});var TM={};Ys(TM,{fromIni:()=>Bn});var GM=G(()=>{UM()});var Lw,AM=!1,X0=(r={})=>Lw.memoize(Lw.chain(async()=>{if(r.profile??process.env[KX]){if(process.env[c3]&&process.env[b3]){if(!AM)(r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
24
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:s})};var $Z=G(()=>{Lr()});function EZ(r){return new Vr({protocol:r.protocol,hostname:r.hostname,port:Number(r.port),path:r.pathname,query:Array.from(r.searchParams.entries()).reduce((s,[f,h])=>{return s[f]=h,s},{}),fragment:r.hash})}async function IZ(r,s){let h=await tK(r.body).transformToString();if(r.statusCode===200){let w=JSON.parse(h);if(typeof w.AccessKeyId!=="string"||typeof w.SecretAccessKey!=="string"||typeof w.Token!=="string"||typeof w.Expiration!=="string")throw new n("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:s});return{accessKeyId:w.AccessKeyId,secretAccessKey:w.SecretAccessKey,sessionToken:w.Token,expiration:LP(w.Expiration)}}if(r.statusCode>=400&&r.statusCode<500){let w={};try{w=JSON.parse(h)}catch($){}throw Object.assign(new n(`Server responded with status: ${r.statusCode}`,{logger:s}),{Code:w.Code,Message:w.Message})}throw new n(`Server responded with status: ${r.statusCode}`,{logger:s})}var FZ=G(()=>{Lr();yr();K();d6()});var UZ=(r,s,f)=>{return async()=>{for(let h=0;h<s;++h)try{return await r()}catch(w){await new Promise(($)=>setTimeout($,f))}return await r()}};import eg from"fs/promises";var TZ,ng="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",og="http://169.254.170.2",ag="AWS_CONTAINER_CREDENTIALS_FULL_URI",pg="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",ug="AWS_CONTAINER_AUTHORIZATION_TOKEN",GZ=(r={})=>{r.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let s,f=r.awsContainerCredentialsRelativeUri??process.env[ng],h=r.awsContainerCredentialsFullUri??process.env[ag],w=r.awsContainerAuthorizationToken??process.env[ug],$=r.awsContainerAuthorizationTokenFile??process.env[pg],E=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console.warn:r.logger.warn;if(f&&h)E("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),E("awsContainerCredentialsFullUri will take precedence.");if(w&&$)E("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),E("awsContainerAuthorizationToken will take precedence.");if(h)s=h;else if(f)s=`${og}${f}`;else throw new n(`No HTTP credential provider host provided.
25
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:r.logger});let I=new URL(s);wZ(I,r.logger);let F=new sf({requestTimeout:r.timeout??1000,connectionTimeout:r.timeout??1000});return UZ(async()=>{let U=EZ(I);if(w)U.headers.Authorization=w;else if($)U.headers.Authorization=(await eg.readFile($)).toString();try{let A=await F.handle(U);return IZ(A.response).then((L)=>TZ.setCredentialFeature(L,"CREDENTIALS_HTTP","z"))}catch(A){throw new n(String(A),{logger:r.logger})}},r.maxRetries??3,r.timeout??1000)};var AZ=G(()=>{TZ=e(rf(),1);fh();Lr();$Z();FZ()});var $T={};Zs($T,{fromHttp:()=>GZ});var ET=G(()=>{AZ()});var tg="AWS_EC2_METADATA_DISABLED",LZ=async(r)=>{let{ENV_CMDS_FULL_URI:s,ENV_CMDS_RELATIVE_URI:f,fromContainerMetadata:h,fromInstanceMetadata:w}=await Promise.resolve().then(() => (e1(),x1));if(process.env[f]||process.env[s]){r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:$}=await Promise.resolve().then(() => (ET(),$T));return K0($(r),h(r))}if(process.env[tg])return async()=>{throw new n("EC2 Instance Metadata Service access disabled",{logger:r.logger})};return r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),w(r)};var zZ=G(()=>{Lr()});var IT=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var WZ=300000,Mw="To refresh this SSO session run 'aws sso login' with the corresponding profile.";function rx(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}function FT(r){return{schemeId:"smithy.api#noAuth"}}var CZ,RZ=async(r,s,f)=>{return{operation:lf(s).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},SZ=(r)=>{let s=[];switch(r.operation){case"CreateToken":{s.push(FT(r));break}case"RegisterClient":{s.push(FT(r));break}case"StartDeviceAuthorization":{s.push(FT(r));break}default:s.push(rx(r))}return s},YZ=(r)=>{return{...CZ.resolveAwsSdkSigV4Config(r)}};var UT=G(()=>{CZ=e(Br(),1);Us()});var XZ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},$h;var Vw=G(()=>{$h={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var PZ;var KZ=G(()=>{PZ={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.670.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.670.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.669.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.670.0","@aws-sdk/util-user-agent-node":"3.669.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.670.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var TT;var GT=G(()=>{TT={isCrtAvailable:!1}});var ZZ=()=>{if(TT.isCrtAvailable)return["md/crt-avail"];return null};var QZ=G(()=>{GT()});import{platform as sx,release as hx}from"os";import{env as JZ,versions as wx}from"process";var ts=({serviceId:r,clientVersion:s})=>{return async(f)=>{let h=[["aws-sdk-js",s],["ua","2.1"],[`os/${sx()}`,hx()],["lang/js"],["md/nodejs",`${wx.node}`]],w=ZZ();if(w)h.push(w);if(r)h.push([`api/${r}`,s]);if(JZ.AWS_EXECUTION_ENV)h.push([`exec-env/${JZ.AWS_EXECUTION_ENV}`]);let $=await f?.userAgentAppId?.();return $?[...h,[`app/${$}`]]:[...h]}};var BZ=G(()=>{QZ();GT()});var $x="AWS_SDK_UA_APP_ID",Ex="sdk-ua-app-id",r0;var MZ=G(()=>{Dh();r0={environmentVariableSelector:(r)=>r[$x],configFileSelector:(r)=>r[Ex],default:VU}});var Hw=G(()=>{BZ();MZ()});import{Buffer as Ix}from"buffer";import{createHash as Fx,createHmac as Ux}from"crypto";class As{constructor(r,s){this.algorithmIdentifier=r,this.secret=s,this.reset()}update(r,s){this.hash.update(RK(VZ(r,s)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Ux(this.algorithmIdentifier,VZ(this.secret)):Fx(this.algorithmIdentifier)}}function VZ(r,s){if(Ix.isBuffer(r))return r;if(typeof r==="string")return Zw(r,s);if(ArrayBuffer.isView(r))return P0(r.buffer,r.byteOffset,r.byteLength);return P0(r)}var lw=G(()=>{mh();_s()});import{fstatSync as Tx,lstatSync as Gx}from"fs";var f0=(r)=>{if(!r)return 0;if(typeof r==="string")return Buffer.byteLength(r);else if(typeof r.byteLength==="number")return r.byteLength;else if(typeof r.size==="number")return r.size;else if(typeof r.start==="number"&&typeof r.end==="number")return r.end+1-r.start;else if(typeof r.path==="string"||Buffer.isBuffer(r.path))return Gx(r.path).size;else if(typeof r.fd==="number")return Tx(r.fd).size;throw new Error(`Body Length computation failed for ${r}`)};var HZ=()=>{};var Dw=G(()=>{HZ()});var lZ,DZ,kZ,vZ,iZ,df,yZ,OZ,NZ,qZ,mZ,jZ,Ax,dZ;var cZ=G(()=>{lZ={["required"]:!1,type:"String"},DZ={["required"]:!0,default:!1,type:"Boolean"},kZ={["ref"]:"Endpoint"},vZ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},iZ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},df={},yZ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},OZ={["ref"]:"PartitionResult"},NZ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[OZ,"supportsDualStack"]}]},qZ=[vZ],mZ=[iZ],jZ=[{["ref"]:"Region"}],Ax={version:"1.0",parameters:{Region:lZ,UseDualStack:DZ,UseFIPS:DZ,Endpoint:lZ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[kZ]}],rules:[{conditions:qZ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:mZ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:kZ,properties:df,headers:df},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:jZ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:jZ,assign:"PartitionResult"}],rules:[{conditions:[vZ,iZ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,yZ]},NZ],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:df,headers:df},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:qZ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[yZ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[OZ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:df,headers:df},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:df,headers:df},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:mZ,rules:[{conditions:[NZ],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:df,headers:df},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:df,headers:df},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},dZ=Ax});var Lx,bZ=(r,s={})=>{return Lx.get(r,()=>$s(dZ,{endpointParams:r,logger:s.logger}))};var _Z=G(()=>{Vh();Es();cZ();Lx=new ws({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});tr.aws=Is});var gZ,xZ,eZ=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Gf,base64Encoder:r?.base64Encoder??Lf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??bZ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??SZ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new gZ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new xZ.NoAuthSigner}],logger:r?.logger??new Kf,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??gr,utf8Encoder:r?.utf8Encoder??Af}};var nZ=G(()=>{gZ=e(Br(),1),xZ=e(mr(),1);K();t0();Z0();_s();UT();_Z()});var oZ="AWS_EXECUTION_ENV",AT="AWS_REGION",LT="AWS_DEFAULT_REGION",aZ="AWS_EC2_METADATA_DISABLED",pZ,uZ="/latest/meta-data/placement/region";var tZ=G(()=>{pZ=["in-region","cross-region","mobile","standard","legacy"]});var r9;var f9=G(()=>{r9={environmentVariableSelector:(r)=>{return r.AWS_DEFAULTS_MODE},configFileSelector:(r)=>{return r.defaults_mode},default:"legacy"}});var s0=({region:r=t(Df),defaultsMode:s=t(r9)}={})=>kh(async()=>{let f=typeof s==="function"?await s():s;switch(f?.toLowerCase()){case"auto":return zx(r);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(f?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${pZ.join(", ")}, got ${f}`)}}),zx=async(r)=>{if(r){let s=typeof r==="function"?await r():r,f=await Wx();if(!f)return"standard";if(s===f)return"in-region";else return"cross-region"}return"standard"},Wx=async()=>{if(process.env[oZ]&&(process.env[AT]||process.env[LT]))return process.env[AT]??process.env[LT];if(!process.env[aZ])try{let{getInstanceMetadataEndpoint:r,httpRequest:s}=await Promise.resolve().then(() => (e1(),x1)),f=await r();return(await s({...f,path:uZ})).toString()}catch(r){}};var s9=G(()=>{kf();vs();Lr();tZ();f9()});var kw=G(()=>{s9()});var h9,w9=(r)=>{os(process.version);let s=s0(r),f=()=>s().then(ns),h=eZ(r);return h9.emitWarningIfUnsupportedVersion(process.version),{...h,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??f0,credentialDefaultProvider:r?.credentialDefaultProvider??J0,defaultUserAgentProvider:r?.defaultUserAgentProvider??ts({serviceId:h.serviceId,clientVersion:PZ.version}),maxAttempts:r?.maxAttempts??t(ds),region:r?.region??t(Df,qs),requestHandler:sf.create(r?.requestHandler??f),retryMode:r?.retryMode??t({...bs,default:async()=>(await f()).retryMode||jf}),sha256:r?.sha256??As.bind(null,"sha256"),streamCollector:r?.streamCollector??vf,useDualstackEndpoint:r?.useDualstackEndpoint??t(ys),useFipsEndpoint:r?.useFipsEndpoint??t(Ns),userAgentAppId:r?.userAgentAppId??t(r0)}};var $9=G(()=>{KZ();h9=e(Br(),1);n1();Hw();kf();lw();Gs();vs();fh();Dw();Yf();nZ();K();kw();K()});var h0=(r)=>{let s=async()=>{if(r.region===void 0)throw new Error("Region is missing from runtimeConfig");let f=r.region;if(typeof f==="string")return f;return f()};return{setRegion(f){s=f},region(){return s}}},w0=(r)=>{return{region:r.region()}};var E9=()=>{};var I9=()=>{};var F9=G(()=>{I9()});var U9=G(()=>{E9();F9()});var yw=G(()=>{U9()});var T9=(r)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:f,credentials:h}=r;return{setHttpAuthScheme(w){let $=s.findIndex((E)=>E.schemeId===w.schemeId);if($===-1)s.push(w);else s.splice($,1,w)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(w){f=w},httpAuthSchemeProvider(){return f},setCredentials(w){h=w},credentials(){return h}}},G9=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var a3=(r)=>r,A9=(r,s)=>{let f={...a3(h0(r)),...a3(as(r)),...a3(Qs(r)),...a3(T9(r))};return s.forEach((h)=>h.configure(f)),{...r,...w0(f),...ps(f),...Js(f),...G9(f)}};var L9=G(()=>{yw();yr();K()});var Nw,p3;var zT=G(()=>{hw();ww();$w();Dh();kf();Nw=e(mr(),1);Sw();B();Gs();K();UT();Vw();$9();L9();p3=class p3 extends Xf{constructor(...[r]){let s=w9(r||{}),f=XZ(s),h=Ds(f),w=cs(h),$=ms(w),E=Bs($),I=is(E),F=YZ(I),U=A9(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(ks(this.config)),this.middlewareStack.use(us(this.config)),this.middlewareStack.use(js(this.config)),this.middlewareStack.use(Ms(this.config)),this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(Hs(this.config)),this.middlewareStack.use(Nw.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:RZ,identityProviderConfigProvider:async(A)=>new Nw.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(Nw.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var lr;var u3=G(()=>{K();lr=class lr extends Of{constructor(r){super(r);Object.setPrototypeOf(this,lr.prototype)}}});var o1,a1,p1,u1,t1,r$,f$,s$,h$,w$,$$,E$,I$,F$,WT=(r)=>({...r,...r.clientSecret&&{clientSecret:a},...r.refreshToken&&{refreshToken:a},...r.codeVerifier&&{codeVerifier:a}}),CT=(r)=>({...r,...r.accessToken&&{accessToken:a},...r.refreshToken&&{refreshToken:a},...r.idToken&&{idToken:a}}),RT=(r)=>({...r,...r.refreshToken&&{refreshToken:a},...r.assertion&&{assertion:a},...r.subjectToken&&{subjectToken:a},...r.codeVerifier&&{codeVerifier:a}}),ST=(r)=>({...r,...r.accessToken&&{accessToken:a},...r.refreshToken&&{refreshToken:a},...r.idToken&&{idToken:a}}),YT=(r)=>({...r,...r.clientSecret&&{clientSecret:a}}),XT=(r)=>({...r,...r.clientSecret&&{clientSecret:a}});var dh=G(()=>{K();u3();o1=class o1 extends lr{constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,o1.prototype),this.error=r.error,this.error_description=r.error_description}};a1=class a1 extends lr{constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,a1.prototype),this.error=r.error,this.error_description=r.error_description}};p1=class p1 extends lr{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,p1.prototype),this.error=r.error,this.error_description=r.error_description}};u1=class u1 extends lr{constructor(r){super({name:"InternalServerException",$fault:"server",...r});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,u1.prototype),this.error=r.error,this.error_description=r.error_description}};t1=class t1 extends lr{constructor(r){super({name:"InvalidClientException",$fault:"client",...r});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,t1.prototype),this.error=r.error,this.error_description=r.error_description}};r$=class r$ extends lr{constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,r$.prototype),this.error=r.error,this.error_description=r.error_description}};f$=class f$ extends lr{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,f$.prototype),this.error=r.error,this.error_description=r.error_description}};s$=class s$ extends lr{constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,s$.prototype),this.error=r.error,this.error_description=r.error_description}};h$=class h$ extends lr{constructor(r){super({name:"SlowDownException",$fault:"client",...r});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,h$.prototype),this.error=r.error,this.error_description=r.error_description}};w$=class w$ extends lr{constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,w$.prototype),this.error=r.error,this.error_description=r.error_description}};$$=class $$ extends lr{constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,$$.prototype),this.error=r.error,this.error_description=r.error_description}};E$=class E$ extends lr{constructor(r){super({name:"InvalidRequestRegionException",$fault:"client",...r});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,E$.prototype),this.error=r.error,this.error_description=r.error_description,this.endpoint=r.endpoint,this.region=r.region}};I$=class I$ extends lr{constructor(r){super({name:"InvalidClientMetadataException",$fault:"client",...r});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,I$.prototype),this.error=r.error,this.error_description=r.error_description}};F$=class F$ extends lr{constructor(r){super({name:"InvalidRedirectUriException",$fault:"client",...r});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,F$.prototype),this.error=r.error,this.error_description=r.error_description}}});var B0,U$,z9=async(r,s)=>{let f=U$.requestBuilder(r,s),h={"content-type":"application/json"};f.bp("/token");let w;return w=JSON.stringify(u(r,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:($)=>q($)})),f.m("POST").h(h).b(w),f.build()},W9=async(r,s)=>{let f=U$.requestBuilder(r,s),h={"content-type":"application/json"};f.bp("/token");let w=Y({[kx]:[,"t"]}),$;return $=JSON.stringify(u(r,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(E)=>q(E),subjectToken:[],subjectTokenType:[]})),f.m("POST").h(h).q(w).b($),f.build()},C9=async(r,s)=>{let f=U$.requestBuilder(r,s),h={"content-type":"application/json"};f.bp("/client/register");let w;return w=JSON.stringify(u(r,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:($)=>q($),issuerUrl:[],redirectUris:($)=>q($),scopes:($)=>q($)})),f.m("POST").h(h).b(w),f.build()},R9=async(r,s)=>{let f=U$.requestBuilder(r,s),h={"content-type":"application/json"};f.bp("/device_authorization");let w;return w=JSON.stringify(u(r,{clientId:[],clientSecret:[],startUrl:[]})),f.m("POST").h(h).b(w),f.build()},S9=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return t3(r,s);let f=Y({$metadata:vr(r)}),h=y(d(await B0.parseJsonBody(r.body,s)),"body"),w=u(h,{accessToken:T,expiresIn:jh,idToken:T,refreshToken:T,tokenType:T});return Object.assign(f,w),f},Y9=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return t3(r,s);let f=Y({$metadata:vr(r)}),h=y(d(await B0.parseJsonBody(r.body,s)),"body"),w=u(h,{accessToken:T,expiresIn:jh,idToken:T,issuedTokenType:T,refreshToken:T,scope:q,tokenType:T});return Object.assign(f,w),f},X9=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return t3(r,s);let f=Y({$metadata:vr(r)}),h=y(d(await B0.parseJsonBody(r.body,s)),"body"),w=u(h,{authorizationEndpoint:T,clientId:T,clientIdIssuedAt:Qw,clientSecret:T,clientSecretExpiresAt:Qw,tokenEndpoint:T});return Object.assign(f,w),f},K9=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return t3(r,s);let f=Y({$metadata:vr(r)}),h=y(d(await B0.parseJsonBody(r.body,s)),"body"),w=u(h,{deviceCode:T,expiresIn:jh,interval:jh,userCode:T,verificationUri:T,verificationUriComplete:T});return Object.assign(f,w),f},t3=async(r,s)=>{let f={...r,body:await B0.parseJsonErrorBody(r.body,s)},h=B0.loadRestJsonErrorCode(r,f.body);switch(h){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Sx(f,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Yx(f,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Xx(f,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Kx(f,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Px(f,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Qx(f,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Bx(f,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Vx(f,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Hx(f,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await lx(f,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Dx(f,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await Mx(f,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await Zx(f,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await Jx(f,s);default:let w=f.body;return Rx({output:r,parsedBody:w,errorCode:h})}},Rx,Sx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new o1({$metadata:vr(r),...f});return D($,r.body)},Yx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new a1({$metadata:vr(r),...f});return D($,r.body)},Xx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new p1({$metadata:vr(r),...f});return D($,r.body)},Kx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new u1({$metadata:vr(r),...f});return D($,r.body)},Px=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new t1({$metadata:vr(r),...f});return D($,r.body)},Zx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new I$({$metadata:vr(r),...f});return D($,r.body)},Qx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new r$({$metadata:vr(r),...f});return D($,r.body)},Jx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new F$({$metadata:vr(r),...f});return D($,r.body)},Bx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new f$({$metadata:vr(r),...f});return D($,r.body)},Mx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{endpoint:T,error:T,error_description:T,region:T});Object.assign(f,w);let $=new E$({$metadata:vr(r),...f});return D($,r.body)},Vx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new s$({$metadata:vr(r),...f});return D($,r.body)},Hx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new h$({$metadata:vr(r),...f});return D($,r.body)},lx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new w$({$metadata:vr(r),...f});return D($,r.body)},Dx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{error:T,error_description:T});Object.assign(f,w);let $=new $$({$metadata:vr(r),...f});return D($,r.body)},vr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),kx="aws_iam";var T$=G(()=>{B0=e(Br(),1),U$=e(mr(),1);K();dh();u3();Rx=es(lr)});var rI;var KT=G(()=>{B();V();K();Vw();dh();T$();rI=class rI extends z.classBuilder().ep($h).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(WT,CT).ser(z9).de(S9).build(){}});var fI;var PT=G(()=>{B();V();K();Vw();dh();T$();fI=class fI extends z.classBuilder().ep($h).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(RT,ST).ser(W9).de(Y9).build(){}});var sI;var ZT=G(()=>{B();V();K();Vw();dh();T$();sI=class sI extends z.classBuilder().ep($h).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,YT).ser(C9).de(X9).build(){}});var hI;var QT=G(()=>{B();V();K();Vw();dh();T$();hI=class hI extends z.classBuilder().ep($h).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(XT,void 0).ser(R9).de(K9).build(){}});var yx,JT;var P9=G(()=>{K();KT();PT();ZT();QT();zT();yx={CreateTokenCommand:rI,CreateTokenWithIAMCommand:fI,RegisterClientCommand:sI,StartDeviceAuthorizationCommand:hI};JT=class JT extends p3{};gs(yx,JT)});var Z9=G(()=>{KT();PT();ZT();QT()});var Q9=G(()=>{dh()});var BT={};Zs(BT,{__Client:()=>Xf,UnsupportedGrantTypeException:()=>$$,UnauthorizedClientException:()=>w$,StartDeviceAuthorizationRequestFilterSensitiveLog:()=>XT,StartDeviceAuthorizationCommand:()=>hI,SlowDownException:()=>h$,SSOOIDCServiceException:()=>lr,SSOOIDCClient:()=>p3,SSOOIDC:()=>JT,RegisterClientResponseFilterSensitiveLog:()=>YT,RegisterClientCommand:()=>sI,InvalidScopeException:()=>s$,InvalidRequestRegionException:()=>E$,InvalidRequestException:()=>f$,InvalidRedirectUriException:()=>F$,InvalidGrantException:()=>r$,InvalidClientMetadataException:()=>I$,InvalidClientException:()=>t1,InternalServerException:()=>u1,ExpiredTokenException:()=>p1,CreateTokenWithIAMResponseFilterSensitiveLog:()=>ST,CreateTokenWithIAMRequestFilterSensitiveLog:()=>RT,CreateTokenWithIAMCommand:()=>fI,CreateTokenResponseFilterSensitiveLog:()=>CT,CreateTokenRequestFilterSensitiveLog:()=>WT,CreateTokenCommand:()=>rI,AuthorizationPendingException:()=>a1,AccessDeniedException:()=>o1,$Command:()=>z});var MT=G(()=>{zT();P9();Z9();Q9();u3()});var VT,J9=async(r)=>{let{SSOOIDCClient:s}=await Promise.resolve().then(() => (MT(),BT));if(VT[r])return VT[r];let f=new s({region:r});return VT[r]=f,f};var B9=G(()=>{VT={}});var M9=async(r,s)=>{let{CreateTokenCommand:f}=await Promise.resolve().then(() => (MT(),BT));return(await J9(s)).send(new f({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))};var V9=G(()=>{B9()});var HT=(r)=>{if(r.expiration&&r.expiration.getTime()<Date.now())throw new Tf(`Token is expired. ${Mw}`,!1)};var H9=G(()=>{Lr()});var Eh=(r,s,f=!1)=>{if(typeof s==="undefined")throw new Tf(`Value not present for '${r}' in SSO Token${f?". Cannot refresh":""}. ${Mw}`,!1)};var l9=G(()=>{Lr()});import{promises as Nx}from"fs";var qx,D9=(r,s)=>{let f=K3(r),h=JSON.stringify(s,null,2);return qx(f,h)};var k9=G(()=>{Ts();({writeFile:qx}=Nx)});var y9,N9=(r={})=>async()=>{r.logger?.debug("@aws-sdk/token-providers - fromSso");let s=await u0(r),f=Nf(r),h=s[f];if(!h)throw new Tf(`Profile '${f}' could not be found in shared credentials file.`,!1);else if(!h.sso_session)throw new Tf(`Profile '${f}' is missing required property 'sso_session'.`);let w=h.sso_session,E=(await J3(r))[w];if(!E)throw new Tf(`Sso session '${w}' could not be found in shared credentials file.`,!1);for(let R of["sso_start_url","sso_region"])if(!E[R])throw new Tf(`Sso session '${w}' is missing required property '${R}'.`,!1);let{sso_start_url:I,sso_region:F}=E,U;try{U=await P3(w)}catch(R){throw new Tf(`The SSO session token associated with profile=${f} was not found or is invalid. ${Mw}`,!1)}Eh("accessToken",U.accessToken),Eh("expiresAt",U.expiresAt);let{accessToken:A,expiresAt:L}=U,S={token:A,expiration:new Date(L)};if(S.expiration.getTime()-Date.now()>WZ)return S;if(Date.now()-y9.getTime()<30000)return HT(S),S;Eh("clientId",U.clientId,!0),Eh("clientSecret",U.clientSecret,!0),Eh("refreshToken",U.refreshToken,!0);try{y9.setTime(Date.now());let R=await M9(U,F);Eh("accessToken",R.accessToken),Eh("expiresIn",R.expiresIn);let P=new Date(Date.now()+R.expiresIn*1000);try{await D9(w,{...U,accessToken:R.accessToken,expiresAt:P.toISOString(),refreshToken:R.refreshToken})}catch(N){}return{token:R.accessToken,expiration:P}}catch(R){return HT(S),S}};var q9=G(()=>{Lr();Ts();V9();H9();l9();k9();y9=new Date(0)});var m9=G(()=>{Lr()});var j9=G(()=>{Lr()});var v9=G(()=>{q9();m9();j9()});function mx(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}function wI(r){return{schemeId:"smithy.api#noAuth"}}var i9,O9=async(r,s,f)=>{return{operation:lf(s).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},d9=(r)=>{let s=[];switch(r.operation){case"GetRoleCredentials":{s.push(wI(r));break}case"ListAccountRoles":{s.push(wI(r));break}case"ListAccounts":{s.push(wI(r));break}case"Logout":{s.push(wI(r));break}default:s.push(mx(r))}return s},c9=(r)=>{return{...i9.resolveAwsSdkSigV4Config(r)}};var lT=G(()=>{i9=e(Br(),1);Us()});var b9=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},Ih;var qw=G(()=>{Ih={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var g9;var _9=G(()=>{g9={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.670.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.667.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.669.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.670.0","@aws-sdk/util-user-agent-node":"3.669.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var x9,e9,n9,rQ,fQ,cf,o9,sQ,a9,p9,u9,t9,vx,hQ;var wQ=G(()=>{x9={["required"]:!1,type:"String"},e9={["required"]:!0,default:!1,type:"Boolean"},n9={["ref"]:"Endpoint"},rQ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},fQ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},cf={},o9={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},sQ={["ref"]:"PartitionResult"},a9={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[sQ,"supportsDualStack"]}]},p9=[rQ],u9=[fQ],t9=[{["ref"]:"Region"}],vx={version:"1.0",parameters:{Region:x9,UseDualStack:e9,UseFIPS:e9,Endpoint:x9},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[n9]}],rules:[{conditions:p9,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:u9,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:n9,properties:cf,headers:cf},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:t9}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:t9,assign:"PartitionResult"}],rules:[{conditions:[rQ,fQ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,o9]},a9],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cf,headers:cf},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:p9,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[o9,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[sQ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:cf,headers:cf},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:cf,headers:cf},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:u9,rules:[{conditions:[a9],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cf,headers:cf},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:cf,headers:cf},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},hQ=vx});var ix,$Q=(r,s={})=>{return ix.get(r,()=>$s(hQ,{endpointParams:r,logger:s.logger}))};var EQ=G(()=>{Vh();Es();wQ();ix=new ws({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});tr.aws=Is});var IQ,FQ,UQ=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Gf,base64Encoder:r?.base64Encoder??Lf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??$Q,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??d9,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new IQ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new FQ.NoAuthSigner}],logger:r?.logger??new Kf,serviceId:r?.serviceId??"SSO",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??gr,utf8Encoder:r?.utf8Encoder??Af}};var TQ=G(()=>{IQ=e(Br(),1),FQ=e(mr(),1);K();t0();Z0();_s();lT();EQ()});var GQ,AQ=(r)=>{os(process.version);let s=s0(r),f=()=>s().then(ns),h=UQ(r);return GQ.emitWarningIfUnsupportedVersion(process.version),{...h,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??f0,defaultUserAgentProvider:r?.defaultUserAgentProvider??ts({serviceId:h.serviceId,clientVersion:g9.version}),maxAttempts:r?.maxAttempts??t(ds),region:r?.region??t(Df,qs),requestHandler:sf.create(r?.requestHandler??f),retryMode:r?.retryMode??t({...bs,default:async()=>(await f()).retryMode||jf}),sha256:r?.sha256??As.bind(null,"sha256"),streamCollector:r?.streamCollector??vf,useDualstackEndpoint:r?.useDualstackEndpoint??t(ys),useFipsEndpoint:r?.useFipsEndpoint??t(Ns),userAgentAppId:r?.userAgentAppId??t(r0)}};var LQ=G(()=>{_9();GQ=e(Br(),1);Hw();kf();lw();Gs();vs();fh();Dw();Yf();TQ();K();kw();K()});var zQ=(r)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:f,credentials:h}=r;return{setHttpAuthScheme(w){let $=s.findIndex((E)=>E.schemeId===w.schemeId);if($===-1)s.push(w);else s.splice($,1,w)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(w){f=w},httpAuthSchemeProvider(){return f},setCredentials(w){h=w},credentials(){return h}}},WQ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var $I=(r)=>r,CQ=(r,s)=>{let f={...$I(h0(r)),...$I(as(r)),...$I(Qs(r)),...$I(zQ(r))};return s.forEach((h)=>h.configure(f)),{...r,...w0(f),...ps(f),...Js(f),...WQ(f)}};var RQ=G(()=>{yw();yr();K()});var mw,M0;var G$=G(()=>{hw();ww();$w();Dh();kf();mw=e(mr(),1);Sw();B();Gs();K();lT();qw();LQ();RQ();M0=class M0 extends Xf{constructor(...[r]){let s=AQ(r||{}),f=b9(s),h=Ds(f),w=cs(h),$=ms(w),E=Bs($),I=is(E),F=c9(I),U=CQ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(ks(this.config)),this.middlewareStack.use(us(this.config)),this.middlewareStack.use(js(this.config)),this.middlewareStack.use(Ms(this.config)),this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(Hs(this.config)),this.middlewareStack.use(mw.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:O9,identityProviderConfigProvider:async(A)=>new mw.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(mw.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var V0;var DT=G(()=>{K();V0=class V0 extends Of{constructor(r){super(r);Object.setPrototypeOf(this,V0.prototype)}}});var EI,II,FI,UI,SQ=(r)=>({...r,...r.accessToken&&{accessToken:a}}),Ox=(r)=>({...r,...r.secretAccessKey&&{secretAccessKey:a},...r.sessionToken&&{sessionToken:a}}),YQ=(r)=>({...r,...r.roleCredentials&&{roleCredentials:Ox(r.roleCredentials)}}),XQ=(r)=>({...r,...r.accessToken&&{accessToken:a}}),KQ=(r)=>({...r,...r.accessToken&&{accessToken:a}}),PQ=(r)=>({...r,...r.accessToken&&{accessToken:a}});var ch=G(()=>{K();DT();EI=class EI extends V0{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,EI.prototype)}};II=class II extends V0{constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,II.prototype)}};FI=class FI extends V0{constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,FI.prototype)}};UI=class UI extends V0{constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,UI.prototype)}}});var Fh,A$,ZQ=async(r,s)=>{let f=A$.requestBuilder(r,s),h=Y({},b1,{[AI]:r[GI]});f.bp("/federation/credentials");let w=Y({[ex]:[,y(r[xx],"roleName")],[kQ]:[,y(r[DQ],"accountId")]}),$;return f.m("GET").h(h).q(w).b($),f.build()},QQ=async(r,s)=>{let f=A$.requestBuilder(r,s),h=Y({},b1,{[AI]:r[GI]});f.bp("/assignment/roles");let w=Y({[mQ]:[,r[qQ]],[NQ]:[()=>r.maxResults!==void 0,()=>r[yQ].toString()],[kQ]:[,y(r[DQ],"accountId")]}),$;return f.m("GET").h(h).q(w).b($),f.build()},JQ=async(r,s)=>{let f=A$.requestBuilder(r,s),h=Y({},b1,{[AI]:r[GI]});f.bp("/assignment/accounts");let w=Y({[mQ]:[,r[qQ]],[NQ]:[()=>r.maxResults!==void 0,()=>r[yQ].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},BQ=async(r,s)=>{let f=A$.requestBuilder(r,s),h=Y({},b1,{[AI]:r[GI]});f.bp("/logout");let w;return f.m("POST").h(h).b(w),f.build()},MQ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return TI(r,s);let f=Y({$metadata:Uh(r)}),h=y(d(await Fh.parseJsonBody(r.body,s)),"body"),w=u(h,{roleCredentials:q});return Object.assign(f,w),f},VQ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return TI(r,s);let f=Y({$metadata:Uh(r)}),h=y(d(await Fh.parseJsonBody(r.body,s)),"body"),w=u(h,{nextToken:T,roleList:q});return Object.assign(f,w),f},HQ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return TI(r,s);let f=Y({$metadata:Uh(r)}),h=y(d(await Fh.parseJsonBody(r.body,s)),"body"),w=u(h,{accountList:q,nextToken:T});return Object.assign(f,w),f},lQ=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return TI(r,s);let f=Y({$metadata:Uh(r)});return await xr(r.body,s),f},TI=async(r,s)=>{let f={...r,body:await Fh.parseJsonErrorBody(r.body,s)},h=Fh.loadRestJsonErrorCode(r,f.body);switch(h){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await cx(f,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await bx(f,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await _x(f,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await gx(f,s);default:let w=f.body;return dx({output:r,parsedBody:w,errorCode:h})}},dx,cx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{message:T});Object.assign(f,w);let $=new EI({$metadata:Uh(r),...f});return D($,r.body)},bx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{message:T});Object.assign(f,w);let $=new II({$metadata:Uh(r),...f});return D($,r.body)},_x=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{message:T});Object.assign(f,w);let $=new FI({$metadata:Uh(r),...f});return D($,r.body)},gx=async(r,s)=>{let f=Y({}),h=r.body,w=u(h,{message:T});Object.assign(f,w);let $=new UI({$metadata:Uh(r),...f});return D($,r.body)},Uh=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),DQ="accountId",GI="accessToken",kQ="account_id",yQ="maxResults",NQ="max_result",qQ="nextToken",mQ="next_token",xx="roleName",ex="role_name",AI="x-amz-sso_bearer_token";var L$=G(()=>{Fh=e(Br(),1),A$=e(mr(),1);K();ch();DT();dx=es(V0)});var z$;var kT=G(()=>{B();V();K();qw();ch();L$();z$=class z$ extends z.classBuilder().ep(Ih).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(SQ,YQ).ser(ZQ).de(MQ).build(){}});var W$;var LI=G(()=>{B();V();K();qw();ch();L$();W$=class W$ extends z.classBuilder().ep(Ih).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(XQ,void 0).ser(QQ).de(VQ).build(){}});var C$;var zI=G(()=>{B();V();K();qw();ch();L$();C$=class C$ extends z.classBuilder().ep(Ih).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(KQ,void 0).ser(JQ).de(HQ).build(){}});var yT;var NT=G(()=>{B();V();K();qw();ch();L$();yT=class yT extends z.classBuilder().ep(Ih).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(PQ,void 0).ser(BQ).de(lQ).build(){}});var nx,jQ;var vQ=G(()=>{K();kT();LI();zI();NT();G$();nx={GetRoleCredentialsCommand:z$,ListAccountRolesCommand:W$,ListAccountsCommand:C$,LogoutCommand:yT};jQ=class jQ extends M0{};gs(nx,jQ)});var iQ=G(()=>{kT();LI();zI();NT()});var OQ=()=>{};var dQ,w8r;var cQ=G(()=>{dQ=e(mr(),1);LI();G$();w8r=dQ.createPaginator(M0,W$,"nextToken","nextToken","maxResults")});var bQ,F8r;var _Q=G(()=>{bQ=e(mr(),1);zI();G$();F8r=bQ.createPaginator(M0,C$,"nextToken","nextToken","maxResults")});var gQ=G(()=>{OQ();cQ();_Q()});var xQ=G(()=>{ch()});var eQ=G(()=>{G$();vQ();iQ();gQ();xQ()});var nQ={};Zs(nQ,{SSOClient:()=>M0,GetRoleCredentialsCommand:()=>z$});var oQ=G(()=>{eQ()});var qT,R$=!1,mT=async({ssoStartUrl:r,ssoSession:s,ssoAccountId:f,ssoRegion:h,ssoRoleName:w,ssoClient:$,clientConfig:E,profile:I,logger:F})=>{let U,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let ur=await N9({profile:I})();U={accessToken:ur.token,expiresAt:new Date(ur.expiration).toISOString()}}catch(ur){throw new n(ur.message,{tryNextLink:R$,logger:F})}else try{U=await P3(r)}catch(ur){throw new n("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:R$,logger:F})}if(new Date(U.expiresAt).getTime()-Date.now()<=0)throw new n("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:R$,logger:F});let{accessToken:L}=U,{SSOClient:S,GetRoleCredentialsCommand:R}=await Promise.resolve().then(() => (oQ(),nQ)),P=$||new S(Object.assign({},E??{},{region:E?.region??h})),N;try{N=await P.send(new R({accountId:f,roleName:w,accessToken:L}))}catch(ur){throw new n(ur,{tryNextLink:R$,logger:F})}let{roleCredentials:{accessKeyId:M,secretAccessKey:l,sessionToken:k,expiration:v,credentialScope:x,accountId:hr}={}}=N;if(!M||!l||!k||!v)throw new n("SSO returns an invalid temporary credential.",{tryNextLink:R$,logger:F});let Mr={accessKeyId:M,secretAccessKey:l,sessionToken:k,expiration:new Date(v),...x&&{credentialScope:x},...hr&&{accountId:hr}};if(s)qT.setCredentialFeature(Mr,"CREDENTIALS_SSO","s");else qT.setCredentialFeature(Mr,"CREDENTIALS_SSO_LEGACY","u");return Mr};var aQ=G(()=>{qT=e(rf(),1);v9();Lr();Ts()});var jT=(r,s)=>{let{sso_start_url:f,sso_account_id:h,sso_region:w,sso_role_name:$}=r;if(!f||!h||!w||!$)throw new n(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(r).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return r};var vT=G(()=>{Lr()});var ox=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:s,ssoAccountId:f,ssoRegion:h,ssoRoleName:w,ssoSession:$}=r,{ssoClient:E}=r,I=Nf(r);if(!s&&!f&&!h&&!w&&!$){let U=(await u0(r))[I];if(!U)throw new n(`Profile ${I} was not found.`,{logger:r.logger});if(!IT(U))throw new n(`Profile ${I} is not configured with SSO credentials.`,{logger:r.logger});if(U?.sso_session){let M=(await J3(r))[U.sso_session],l=` configurations in profile ${I} and sso-session ${U.sso_session}`;if(h&&h!==M.sso_region)throw new n("Conflicting SSO region"+l,{tryNextLink:!1,logger:r.logger});if(s&&s!==M.sso_start_url)throw new n("Conflicting SSO start_url"+l,{tryNextLink:!1,logger:r.logger});U.sso_region=M.sso_region,U.sso_start_url=M.sso_start_url}let{sso_start_url:A,sso_account_id:L,sso_region:S,sso_role_name:R,sso_session:P}=jT(U,r.logger);return mT({ssoStartUrl:A,ssoSession:P,ssoAccountId:L,ssoRegion:S,ssoRoleName:R,ssoClient:E,clientConfig:r.clientConfig,profile:I})}else if(!s||!f||!h||!w)throw new n('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:r.logger});else return mT({ssoStartUrl:s,ssoSession:$,ssoAccountId:f,ssoRegion:h,ssoRoleName:w,ssoClient:E,clientConfig:r.clientConfig,profile:I})};var pQ=G(()=>{Lr();Ts();aQ();vT()});var uQ=()=>{};var iT={};Zs(iT,{validateSsoProfile:()=>jT,isSsoProfile:()=>IT,fromSSO:()=>ox});var OT=G(()=>{pQ();uQ();vT()});var tQ,rJ=(r,s,f)=>{let h={EcsContainer:async(w)=>{let{fromHttp:$}=await Promise.resolve().then(() => (ET(),$T)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (e1(),x1));return f?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>K0($(w??{}),E(w))().then(dT)},Ec2InstanceMetadata:async(w)=>{f?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:$}=await Promise.resolve().then(() => (e1(),x1));return async()=>$(w)().then(dT)},Environment:async(w)=>{f?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:$}=await Promise.resolve().then(() => (u6(),_P));return async()=>$(w)().then(dT)}};if(r in h)return h[r];else throw new n(`Unsupported credential source in profile ${s}. Got ${r}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:f})},dT=(r)=>tQ.setCredentialFeature(r,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var fJ=G(()=>{tQ=e(rf(),1);Lr()});function ax(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}function sJ(r){return{schemeId:"smithy.api#noAuth"}}var hJ,wJ=async(r,s,f)=>{return{operation:lf(s).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},$J=(r)=>{let s=[];switch(r.operation){case"AssumeRoleWithSAML":{s.push(sJ(r));break}case"AssumeRoleWithWebIdentity":{s.push(sJ(r));break}default:s.push(ax(r))}return s},px=(r)=>({...r,stsClientCtor:H0}),EJ=(r)=>{let s=px(r);return{...hJ.resolveAwsSdkSigV4Config(s)}};var cT=G(()=>{hJ=e(Br(),1);Us();S$()});var IJ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}},nr;var $0=G(()=>{nr={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"}}});var UJ;var FJ=G(()=>{UJ={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.670.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.670.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.670.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.669.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.670.0","@aws-sdk/util-user-agent-node":"3.669.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var TJ,bT,YJ,GJ,cr,AJ,XJ,KJ,or,Pf,LJ,PJ,ZJ,zJ,QJ,WJ,CJ,RJ,SJ,tx,JJ;var BJ=G(()=>{TJ={["required"]:!1,["type"]:"String"},bT={["required"]:!0,default:!1,["type"]:"Boolean"},YJ={["ref"]:"Endpoint"},GJ={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},cr={["ref"]:"Region"},AJ={["fn"]:"aws.partition",["argv"]:[cr],assign:"PartitionResult"},XJ={["ref"]:"UseFIPS"},KJ={["ref"]:"UseDualStack"},or={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},Pf={},LJ={conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"aws-global"]}],["endpoint"]:or,["type"]:"endpoint"},PJ={["fn"]:"booleanEquals",["argv"]:[XJ,!0]},ZJ={["fn"]:"booleanEquals",["argv"]:[KJ,!0]},zJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},QJ={["ref"]:"PartitionResult"},WJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[QJ,"supportsDualStack"]}]},CJ=[{["fn"]:"isSet",["argv"]:[YJ]}],RJ=[PJ],SJ=[ZJ],tx={version:"1.0",parameters:{Region:TJ,UseDualStack:bT,UseFIPS:bT,Endpoint:TJ,UseGlobalEndpoint:bT},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:CJ},GJ,AJ,{["fn"]:"booleanEquals",["argv"]:[XJ,!1]},{["fn"]:"booleanEquals",["argv"]:[KJ,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-northeast-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-south-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-southeast-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-southeast-2"]}],endpoint:or,["type"]:"endpoint"},LJ,{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ca-central-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-central-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-north-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-2"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-3"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"sa-east-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-east-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-east-2"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-west-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-west-2"]}],endpoint:or,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:Pf},["type"]:"endpoint"}],["type"]:"tree"},{conditions:CJ,rules:[{conditions:RJ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:SJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:YJ,properties:Pf,headers:Pf},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[GJ],rules:[{conditions:[AJ],rules:[{conditions:[PJ,ZJ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,zJ]},WJ],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Pf,headers:Pf},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:RJ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[zJ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[QJ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Pf,headers:Pf},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Pf,headers:Pf},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:SJ,rules:[{conditions:[WJ],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Pf,headers:Pf},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},LJ,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:Pf,headers:Pf},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},JJ=tx});var re,MJ=(r,s={})=>{return re.get(r,()=>$s(JJ,{endpointParams:r,logger:s.logger}))};var VJ=G(()=>{Vh();Es();BJ();re=new ws({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});tr.aws=Is});var HJ,lJ,DJ=(r)=>{return{apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??Gf,base64Encoder:r?.base64Encoder??Lf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??MJ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??$J,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new HJ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new lJ.NoAuthSigner}],logger:r?.logger??new Kf,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??gr,utf8Encoder:r?.utf8Encoder??Af}};var kJ=G(()=>{HJ=e(Br(),1),lJ=e(mr(),1);K();t0();Z0();_s();cT();VJ()});var WI,yJ,NJ=(r)=>{os(process.version);let s=s0(r),f=()=>s().then(ns),h=DJ(r);return WI.emitWarningIfUnsupportedVersion(process.version),{...h,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??f0,credentialDefaultProvider:r?.credentialDefaultProvider??J0,defaultUserAgentProvider:r?.defaultUserAgentProvider??ts({serviceId:h.serviceId,clientVersion:UJ.version}),httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4")||(async($)=>await J0($?.__config||{})()),signer:new WI.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new yJ.NoAuthSigner}],maxAttempts:r?.maxAttempts??t(ds),region:r?.region??t(Df,qs),requestHandler:sf.create(r?.requestHandler??f),retryMode:r?.retryMode??t({...bs,default:async()=>(await f()).retryMode||jf}),sha256:r?.sha256??As.bind(null,"sha256"),streamCollector:r?.streamCollector??vf,useDualstackEndpoint:r?.useDualstackEndpoint??t(ys),useFipsEndpoint:r?.useFipsEndpoint??t(Ns),userAgentAppId:r?.userAgentAppId??t(r0)}};var qJ=G(()=>{FJ();WI=e(Br(),1);n1();Hw();kf();yJ=e(mr(),1);lw();Gs();vs();fh();Dw();Yf();kJ();K();kw();K()});var mJ=(r)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:f,credentials:h}=r;return{setHttpAuthScheme(w){let $=s.findIndex((E)=>E.schemeId===w.schemeId);if($===-1)s.push(w);else s.splice($,1,w)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(w){f=w},httpAuthSchemeProvider(){return f},setCredentials(w){h=w},credentials(){return h}}},jJ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var CI=(r)=>r,vJ=(r,s)=>{let f={...CI(h0(r)),...CI(as(r)),...CI(Qs(r)),...CI(mJ(r))};return s.forEach((h)=>h.configure(f)),{...r,...w0(f),...ps(f),...Js(f),...jJ(f)}};var iJ=G(()=>{yw();yr();K()});var jw,H0;var S$=G(()=>{hw();ww();$w();Dh();kf();jw=e(mr(),1);Sw();B();Gs();K();cT();$0();qJ();iJ();H0=class H0 extends Xf{constructor(...[r]){let s=NJ(r||{}),f=IJ(s),h=Ds(f),w=cs(h),$=ms(w),E=Bs($),I=is(E),F=EJ(I),U=vJ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(ks(this.config)),this.middlewareStack.use(us(this.config)),this.middlewareStack.use(js(this.config)),this.middlewareStack.use(Ms(this.config)),this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(Hs(this.config)),this.middlewareStack.use(jw.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:wJ,identityProviderConfigProvider:async(A)=>new jw.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(jw.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var hf;var RI=G(()=>{K();hf=class hf extends Of{constructor(r){super(r);Object.setPrototypeOf(this,hf.prototype)}}});var Y$,X$,K$,P$,Z$,Q$,J$,B$,vw=(r)=>({...r,...r.SecretAccessKey&&{SecretAccessKey:a}}),_T=(r)=>({...r,...r.Credentials&&{Credentials:vw(r.Credentials)}}),gT=(r)=>({...r,...r.SAMLAssertion&&{SAMLAssertion:a}}),xT=(r)=>({...r,...r.Credentials&&{Credentials:vw(r.Credentials)}}),eT=(r)=>({...r,...r.WebIdentityToken&&{WebIdentityToken:a}}),nT=(r)=>({...r,...r.Credentials&&{Credentials:vw(r.Credentials)}}),oT=(r)=>({...r,...r.Credentials&&{Credentials:vw(r.Credentials)}}),aT=(r)=>({...r,...r.Credentials&&{Credentials:vw(r.Credentials)}});var Th=G(()=>{K();RI();Y$=class Y$ extends hf{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Y$.prototype)}};X$=class X$ extends hf{constructor(r){super({name:"MalformedPolicyDocumentException",$fault:"client",...r});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,X$.prototype)}};K$=class K$ extends hf{constructor(r){super({name:"PackedPolicyTooLargeException",$fault:"client",...r});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,K$.prototype)}};P$=class P$ extends hf{constructor(r){super({name:"RegionDisabledException",$fault:"client",...r});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,P$.prototype)}};Z$=class Z$ extends hf{constructor(r){super({name:"IDPRejectedClaimException",$fault:"client",...r});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Z$.prototype)}};Q$=class Q$ extends hf{constructor(r){super({name:"InvalidIdentityTokenException",$fault:"client",...r});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,Q$.prototype)}};J$=class J$ extends hf{constructor(r){super({name:"IDPCommunicationErrorException",$fault:"client",...r});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,J$.prototype)}};B$=class B$ extends hf{constructor(r){super({name:"InvalidAuthorizationMessageException",$fault:"client",...r});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,B$.prototype)}}});var Ls,OJ=async(r,s)=>{let f=Lh,h;return h=Rh({...Ue(r,s),[Wh]:Oe,[Ch]:zh}),Ah(s,f,"/",void 0,h)},dJ=async(r,s)=>{let f=Lh,h;return h=Rh({...Te(r,s),[Wh]:de,[Ch]:zh}),Ah(s,f,"/",void 0,h)},cJ=async(r,s)=>{let f=Lh,h;return h=Rh({...Ge(r,s),[Wh]:ce,[Ch]:zh}),Ah(s,f,"/",void 0,h)},bJ=async(r,s)=>{let f=Lh,h;return h=Rh({...Ae(r,s),[Wh]:be,[Ch]:zh}),Ah(s,f,"/",void 0,h)},_J=async(r,s)=>{let f=Lh,h;return h=Rh({...Le(r,s),[Wh]:_e,[Ch]:zh}),Ah(s,f,"/",void 0,h)},gJ=async(r,s)=>{let f=Lh,h;return h=Rh({...ze(r,s),[Wh]:ge,[Ch]:zh}),Ah(s,f,"/",void 0,h)},xJ=async(r,s)=>{let f=Lh,h;return h=Rh({...We(r,s),[Wh]:xe,[Ch]:zh}),Ah(s,f,"/",void 0,h)},eJ=async(r,s)=>{let f=Lh,h;return h=Rh({...Ce(r,s),[Wh]:ee,[Ch]:zh}),Ah(s,f,"/",void 0,h)},nJ=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=Pe(f.AssumeRoleResult,s),{$metadata:ar(r),...h}},oJ=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=Ze(f.AssumeRoleWithSAMLResult,s),{$metadata:ar(r),...h}},aJ=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=Qe(f.AssumeRoleWithWebIdentityResult,s),{$metadata:ar(r),...h}},pJ=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=Je(f.DecodeAuthorizationMessageResult,s),{$metadata:ar(r),...h}},uJ=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=Ve(f.GetAccessKeyInfoResult,s),{$metadata:ar(r),...h}},tJ=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=He(f.GetCallerIdentityResult,s),{$metadata:ar(r),...h}},rB=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=le(f.GetFederationTokenResult,s),{$metadata:ar(r),...h}},fB=async(r,s)=>{if(r.statusCode>=300)return Gh(r,s);let f=await Ls.parseXmlBody(r.body,s),h={};return h=De(f.GetSessionTokenResult,s),{$metadata:ar(r),...h}},Gh=async(r,s)=>{let f={...r,body:await Ls.parseXmlErrorBody(r.body,s)},h=ne(r,f.body);switch(h){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await fe(f,s);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Ee(f,s);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Ie(f,s);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Fe(f,s);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await he(f,s);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await $e(f,s);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await se(f,s);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await we(f,s);default:let w=f.body;return ie({output:r,parsedBody:w.Error,errorCode:h})}},fe=async(r,s)=>{let f=r.body,h=Be(f.Error,s),w=new Y$({$metadata:ar(r),...h});return D(w,f)},se=async(r,s)=>{let f=r.body,h=ke(f.Error,s),w=new J$({$metadata:ar(r),...h});return D(w,f)},he=async(r,s)=>{let f=r.body,h=ye(f.Error,s),w=new Z$({$metadata:ar(r),...h});return D(w,f)},we=async(r,s)=>{let f=r.body,h=Ne(f.Error,s),w=new B$({$metadata:ar(r),...h});return D(w,f)},$e=async(r,s)=>{let f=r.body,h=qe(f.Error,s),w=new Q$({$metadata:ar(r),...h});return D(w,f)},Ee=async(r,s)=>{let f=r.body,h=me(f.Error,s),w=new X$({$metadata:ar(r),...h});return D(w,f)},Ie=async(r,s)=>{let f=r.body,h=je(f.Error,s),w=new K$({$metadata:ar(r),...h});return D(w,f)},Fe=async(r,s)=>{let f=r.body,h=ve(f.Error,s),w=new P$({$metadata:ar(r),...h});return D(w,f)},Ue=(r,s)=>{let f={};if(r[k0]!=null)f[k0]=r[k0];if(r[cw]!=null)f[cw]=r[cw];if(r[_f]!=null){let h=SI(r[_f],s);if(r[_f]?.length===0)f.PolicyArns=[];Object.entries(h).forEach(([w,$])=>{let E=`PolicyArns.${w}`;f[E]=$})}if(r[bf]!=null)f[bf]=r[bf];if(r[$f]!=null)f[$f]=r[$f];if(r[_w]!=null){let h=sB(r[_w],s);if(r[_w]?.length===0)f.Tags=[];Object.entries(h).forEach(([w,$])=>{let E=`Tags.${w}`;f[E]=$})}if(r[X5]!=null){let h=Ke(r[X5],s);if(r[X5]?.length===0)f.TransitiveTagKeys=[];Object.entries(h).forEach(([w,$])=>{let E=`TransitiveTagKeys.${w}`;f[E]=$})}if(r[f5]!=null)f[f5]=r[f5];if(r[bw]!=null)f[bw]=r[bw];if(r[gw]!=null)f[gw]=r[gw];if(r[xf]!=null)f[xf]=r[xf];if(r[G5]!=null){let h=Ye(r[G5],s);if(r[G5]?.length===0)f.ProvidedContexts=[];Object.entries(h).forEach(([w,$])=>{let E=`ProvidedContexts.${w}`;f[E]=$})}return f},Te=(r,s)=>{let f={};if(r[k0]!=null)f[k0]=r[k0];if(r[U5]!=null)f[U5]=r[U5];if(r[C5]!=null)f[C5]=r[C5];if(r[_f]!=null){let h=SI(r[_f],s);if(r[_f]?.length===0)f.PolicyArns=[];Object.entries(h).forEach(([w,$])=>{let E=`PolicyArns.${w}`;f[E]=$})}if(r[bf]!=null)f[bf]=r[bf];if(r[$f]!=null)f[$f]=r[$f];return f},Ge=(r,s)=>{let f={};if(r[k0]!=null)f[k0]=r[k0];if(r[cw]!=null)f[cw]=r[cw];if(r[Z5]!=null)f[Z5]=r[Z5];if(r[A5]!=null)f[A5]=r[A5];if(r[_f]!=null){let h=SI(r[_f],s);if(r[_f]?.length===0)f.PolicyArns=[];Object.entries(h).forEach(([w,$])=>{let E=`PolicyArns.${w}`;f[E]=$})}if(r[bf]!=null)f[bf]=r[bf];if(r[$f]!=null)f[$f]=r[$f];return f},Ae=(r,s)=>{let f={};if(r[s5]!=null)f[s5]=r[s5];return f},Le=(r,s)=>{let f={};if(r[iw]!=null)f[iw]=r[iw];return f},ze=(r,s)=>{return{}},We=(r,s)=>{let f={};if(r[I5]!=null)f[I5]=r[I5];if(r[bf]!=null)f[bf]=r[bf];if(r[_f]!=null){let h=SI(r[_f],s);if(r[_f]?.length===0)f.PolicyArns=[];Object.entries(h).forEach(([w,$])=>{let E=`PolicyArns.${w}`;f[E]=$})}if(r[$f]!=null)f[$f]=r[$f];if(r[_w]!=null){let h=sB(r[_w],s);if(r[_w]?.length===0)f.Tags=[];Object.entries(h).forEach(([w,$])=>{let E=`Tags.${w}`;f[E]=$})}return f},Ce=(r,s)=>{let f={};if(r[$f]!=null)f[$f]=r[$f];if(r[bw]!=null)f[bw]=r[bw];if(r[gw]!=null)f[gw]=r[gw];return f},SI=(r,s)=>{let f={},h=1;for(let w of r){if(w===null)continue;let $=Re(w,s);Object.entries($).forEach(([E,I])=>{f[`member.${h}.${E}`]=I}),h++}return f},Re=(r,s)=>{let f={};if(r[Q5]!=null)f[Q5]=r[Q5];return f},Se=(r,s)=>{let f={};if(r[T5]!=null)f[T5]=r[T5];if(r[uT]!=null)f[uT]=r[uT];return f},Ye=(r,s)=>{let f={},h=1;for(let w of r){if(w===null)continue;let $=Se(w,s);Object.entries($).forEach(([E,I])=>{f[`member.${h}.${E}`]=I}),h++}return f},Xe=(r,s)=>{let f={};if(r[E5]!=null)f[E5]=r[E5];if(r[P5]!=null)f[P5]=r[P5];return f},Ke=(r,s)=>{let f={},h=1;for(let w of r){if(w===null)continue;f[`member.${h}`]=w,h++}return f},sB=(r,s)=>{let f={},h=1;for(let w of r){if(w===null)continue;let $=Xe(w,s);Object.entries($).forEach(([E,I])=>{f[`member.${h}.${E}`]=I}),h++}return f},J5=(r,s)=>{let f={};if(r[pT]!=null)f[pT]=T(r[pT]);if(r[D0]!=null)f[D0]=T(r[D0]);return f},Pe=(r,s)=>{let f={};if(r[wf]!=null)f[wf]=M$(r[wf],s);if(r[l0]!=null)f[l0]=J5(r[l0],s);if(r[gf]!=null)f[gf]=$r(r[gf]);if(r[xf]!=null)f[xf]=T(r[xf]);return f},Ze=(r,s)=>{let f={};if(r[wf]!=null)f[wf]=M$(r[wf],s);if(r[l0]!=null)f[l0]=J5(r[l0],s);if(r[gf]!=null)f[gf]=$r(r[gf]);if(r[z5]!=null)f[z5]=T(r[z5]);if(r[S5]!=null)f[S5]=T(r[S5]);if(r[$5]!=null)f[$5]=T(r[$5]);if(r[dw]!=null)f[dw]=T(r[dw]);if(r[F5]!=null)f[F5]=T(r[F5]);if(r[xf]!=null)f[xf]=T(r[xf]);return f},Qe=(r,s)=>{let f={};if(r[wf]!=null)f[wf]=M$(r[wf],s);if(r[R5]!=null)f[R5]=T(r[R5]);if(r[l0]!=null)f[l0]=J5(r[l0],s);if(r[gf]!=null)f[gf]=$r(r[gf]);if(r[L5]!=null)f[L5]=T(r[L5]);if(r[dw]!=null)f[dw]=T(r[dw]);if(r[xf]!=null)f[xf]=T(r[xf]);return f},M$=(r,s)=>{let f={};if(r[iw]!=null)f[iw]=T(r[iw]);if(r[W5]!=null)f[W5]=T(r[W5]);if(r[Y5]!=null)f[Y5]=T(r[Y5]);if(r[r5]!=null)f[r5]=y(ih(r[r5]));return f},Je=(r,s)=>{let f={};if(r[tT]!=null)f[tT]=T(r[tT]);return f},Be=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},Me=(r,s)=>{let f={};if(r[w5]!=null)f[w5]=T(r[w5]);if(r[D0]!=null)f[D0]=T(r[D0]);return f},Ve=(r,s)=>{let f={};if(r[Ow]!=null)f[Ow]=T(r[Ow]);return f},He=(r,s)=>{let f={};if(r[K5]!=null)f[K5]=T(r[K5]);if(r[Ow]!=null)f[Ow]=T(r[Ow]);if(r[D0]!=null)f[D0]=T(r[D0]);return f},le=(r,s)=>{let f={};if(r[wf]!=null)f[wf]=M$(r[wf],s);if(r[h5]!=null)f[h5]=Me(r[h5],s);if(r[gf]!=null)f[gf]=$r(r[gf]);return f},De=(r,s)=>{let f={};if(r[wf]!=null)f[wf]=M$(r[wf],s);return f},ke=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},ye=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},Ne=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},qe=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},me=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},je=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},ve=(r,s)=>{let f={};if(r[Yr]!=null)f[Yr]=T(r[Yr]);return f},ar=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),ie,Ah=async(r,s,f,h,w)=>{let{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+f:F+f,headers:s};if(h!==void 0)U.hostname=h;if(w!==void 0)U.body=w;return new Vr(U)},Lh,zh="2011-06-15",Wh="Action",iw="AccessKeyId",Oe="AssumeRole",pT="AssumedRoleId",l0="AssumedRoleUser",de="AssumeRoleWithSAML",ce="AssumeRoleWithWebIdentity",Ow="Account",D0="Arn",dw="Audience",wf="Credentials",uT="ContextAssertion",be="DecodeAuthorizationMessage",tT="DecodedMessage",$f="DurationSeconds",r5="Expiration",f5="ExternalId",s5="EncodedMessage",h5="FederatedUser",w5="FederatedUserId",_e="GetAccessKeyInfo",ge="GetCallerIdentity",xe="GetFederationToken",ee="GetSessionToken",$5="Issuer",E5="Key",I5="Name",F5="NameQualifier",bf="Policy",_f="PolicyArns",U5="PrincipalArn",T5="ProviderArn",G5="ProvidedContexts",A5="ProviderId",gf="PackedPolicySize",L5="Provider",k0="RoleArn",cw="RoleSessionName",z5="Subject",W5="SecretAccessKey",C5="SAMLAssertion",R5="SubjectFromWebIdentityToken",xf="SourceIdentity",bw="SerialNumber",S5="SubjectType",Y5="SessionToken",_w="Tags",gw="TokenCode",X5="TransitiveTagKeys",K5="UserId",Ch="Version",P5="Value",Z5="WebIdentityToken",Q5="arn",Yr="message",Rh=(r)=>Object.entries(r).map(([s,f])=>O3(s)+"="+O3(f)).join("&"),ne=(r,s)=>{if(s.Error?.Code!==void 0)return s.Error.Code;if(r.statusCode==404)return"NotFound"};var y0=G(()=>{Ls=e(Br(),1);yr();K();Th();RI();ie=es(hf),Lh={"content-type":"application/x-www-form-urlencoded"}});var xw;var YI=G(()=>{B();V();K();$0();Th();y0();xw=class xw extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,_T).ser(OJ).de(nJ).build(){}});var XI;var B5=G(()=>{B();V();K();$0();Th();y0();XI=class XI extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(gT,xT).ser(dJ).de(oJ).build(){}});var ew;var KI=G(()=>{B();V();K();$0();Th();y0();ew=class ew extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(eT,nT).ser(cJ).de(aJ).build(){}});var PI;var M5=G(()=>{B();V();K();$0();y0();PI=class PI extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(bJ).de(pJ).build(){}});var ZI;var V5=G(()=>{B();V();K();$0();y0();ZI=class ZI extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(_J).de(uJ).build(){}});var QI;var H5=G(()=>{B();V();K();$0();y0();QI=class QI extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(gJ).de(tJ).build(){}});var JI;var l5=G(()=>{B();V();K();$0();Th();y0();JI=class JI extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,oT).ser(xJ).de(rB).build(){}});var BI;var D5=G(()=>{B();V();K();$0();Th();y0();BI=class BI extends z.classBuilder().ep(nr).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,aT).ser(eJ).de(fB).build(){}});var oe,k5;var hB=G(()=>{K();YI();B5();KI();M5();V5();H5();l5();D5();S$();oe={AssumeRoleCommand:xw,AssumeRoleWithSAMLCommand:XI,AssumeRoleWithWebIdentityCommand:ew,DecodeAuthorizationMessageCommand:PI,GetAccessKeyInfoCommand:ZI,GetCallerIdentityCommand:QI,GetFederationTokenCommand:JI,GetSessionTokenCommand:BI};k5=class k5 extends H0{};gs(oe,k5)});var wB=G(()=>{YI();B5();KI();M5();V5();H5();l5();D5()});var $B=G(()=>{Th()});var MI,EB="us-east-1",IB=(r)=>{if(typeof r?.Arn==="string"){let s=r.Arn.split(":");if(s.length>4&&s[4]!=="")return s[4]}return},FB=async(r,s,f)=>{let h=typeof r==="function"?await r():r,w=typeof s==="function"?await s():s;return f?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${h} (provider)`,`${w} (parent client)`,`${EB} (STS default)`),h??w??EB},UB=(r,s)=>{let f,h;return async(w,$)=>{if(h=w,!f){let{logger:A=r?.parentClientConfig?.logger,region:L,requestHandler:S=r?.parentClientConfig?.requestHandler,credentialProviderLogger:R}=r,P=await FB(L,r?.parentClientConfig?.region,R),N=!GB(S);f=new s({credentialDefaultProvider:()=>async()=>h,region:P,requestHandler:N?S:void 0,logger:A})}let{Credentials:E,AssumedRoleUser:I}=await f.send(new xw($));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${$.RoleArn}`);let F=IB(I),U={accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...F&&{accountId:F}};return MI.setCredentialFeature(U,"CREDENTIALS_STS_ASSUME_ROLE","i"),U}},TB=(r,s)=>{let f;return async(h)=>{if(!f){let{logger:F=r?.parentClientConfig?.logger,region:U,requestHandler:A=r?.parentClientConfig?.requestHandler,credentialProviderLogger:L}=r,S=await FB(U,r?.parentClientConfig?.region,L),R=!GB(A);f=new s({region:S,requestHandler:R?A:void 0,logger:F})}let{Credentials:w,AssumedRoleUser:$}=await f.send(new ew(h));if(!w||!w.AccessKeyId||!w.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${h.RoleArn}`);let E=IB($),I={accessKeyId:w.AccessKeyId,secretAccessKey:w.SecretAccessKey,sessionToken:w.SessionToken,expiration:w.Expiration,...w.CredentialScope&&{credentialScope:w.CredentialScope},...E&&{accountId:E}};if(E)MI.setCredentialFeature(I,"RESOLVED_ACCOUNT_ID","T");return MI.setCredentialFeature(I,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),I}},GB=(r)=>{return r?.metadata?.handlerProtocol==="h2"};var AB=G(()=>{MI=e(rf(),1);YI();KI()});var LB=(r,s)=>{if(!s)return r;else return class f extends r{constructor(h){super(h);for(let w of s)this.middlewareStack.use(w)}}},zB=(r={},s)=>UB(r,LB(H0,s)),WB=(r={},s)=>TB(r,LB(H0,s)),ae=(r)=>(s)=>r({roleAssumer:zB(s),roleAssumerWithWebIdentity:WB(s),...s});var CB=G(()=>{AB();S$()});var y5={};Zs(y5,{getDefaultRoleAssumerWithWebIdentity:()=>WB,getDefaultRoleAssumer:()=>zB,decorateDefaultCredentialProvider:()=>ae,__Client:()=>Xf,STSServiceException:()=>hf,STSClient:()=>H0,STS:()=>k5,RegionDisabledException:()=>P$,PackedPolicyTooLargeException:()=>K$,MalformedPolicyDocumentException:()=>X$,InvalidIdentityTokenException:()=>Q$,InvalidAuthorizationMessageException:()=>B$,IDPRejectedClaimException:()=>Z$,IDPCommunicationErrorException:()=>J$,GetSessionTokenResponseFilterSensitiveLog:()=>aT,GetSessionTokenCommand:()=>BI,GetFederationTokenResponseFilterSensitiveLog:()=>oT,GetFederationTokenCommand:()=>JI,GetCallerIdentityCommand:()=>QI,GetAccessKeyInfoCommand:()=>ZI,ExpiredTokenException:()=>Y$,DecodeAuthorizationMessageCommand:()=>PI,CredentialsFilterSensitiveLog:()=>vw,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>nT,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>eT,AssumeRoleWithWebIdentityCommand:()=>ew,AssumeRoleWithSAMLResponseFilterSensitiveLog:()=>xT,AssumeRoleWithSAMLRequestFilterSensitiveLog:()=>gT,AssumeRoleWithSAMLCommand:()=>XI,AssumeRoleResponseFilterSensitiveLog:()=>_T,AssumeRoleCommand:()=>xw,$Command:()=>z});var N5=G(()=>{S$();hB();wB();$B();CB();RI()});var q5,SB=(r,{profile:s="default",logger:f}={})=>{return Boolean(r)&&typeof r==="object"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1&&["undefined","string"].indexOf(typeof r.external_id)>-1&&["undefined","string"].indexOf(typeof r.mfa_serial)>-1&&(pe(r,{profile:s,logger:f})||ue(r,{profile:s,logger:f}))},pe=(r,{profile:s,logger:f})=>{let h=typeof r.source_profile==="string"&&typeof r.credential_source==="undefined";if(h)f?.debug?.(` ${s} isAssumeRoleWithSourceProfile source_profile=${r.source_profile}`);return h},ue=(r,{profile:s,logger:f})=>{let h=typeof r.credential_source==="string"&&typeof r.source_profile==="undefined";if(h)f?.debug?.(` ${s} isCredentialSourceProfile credential_source=${r.credential_source}`);return h},YB=async(r,s,f,h={})=>{f.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let w=s[r];if(!f.roleAssumer){let{getDefaultRoleAssumer:I}=await Promise.resolve().then(() => (N5(),y5));f.roleAssumer=I({...f.clientConfig,credentialProviderLogger:f.logger,parentClientConfig:f?.parentClientConfig},f.clientPlugins)}let{source_profile:$}=w;if($&&$ in h)throw new n(`Detected a cycle attempting to resolve credentials for profile ${Nf(f)}. Profiles visited: `+Object.keys(h).join(", "),{logger:f.logger});f.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${$?`source_profile=[${$}]`:`profile=[${r}]`}`);let E=$?VI($,s,f,{...h,[$]:!0},RB(s[$]??{})):(await rJ(w.credential_source,r,f.logger)(f))();if(RB(w))return E.then((I)=>q5.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let I={RoleArn:w.role_arn,RoleSessionName:w.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:w.external_id,DurationSeconds:parseInt(w.duration_seconds||"3600",10)},{mfa_serial:F}=w;if(F){if(!f.mfaCodeProvider)throw new n(`Profile ${r} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:f.logger,tryNextLink:!1});I.SerialNumber=F,I.TokenCode=await f.mfaCodeProvider(F)}let U=await E;return f.roleAssumer(U,I).then((A)=>q5.setCredentialFeature(A,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},RB=(r)=>{return!r.role_arn&&!!r.credential_source};var XB=G(()=>{q5=e(rf(),1);Lr();Ts();fJ();m5()});var KB,PB=(r,s,f)=>{if(s.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(s.AccessKeyId===void 0||s.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(s.Expiration){let $=new Date;if(new Date(s.Expiration)<$)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let h=s.AccountId;if(!h&&f?.[r]?.aws_account_id)h=f[r].aws_account_id;let w={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,...s.SessionToken&&{sessionToken:s.SessionToken},...s.Expiration&&{expiration:new Date(s.Expiration)},...s.CredentialScope&&{credentialScope:s.CredentialScope},...h&&{accountId:h}};return KB.setCredentialFeature(w,"CREDENTIALS_PROCESS","w"),w};var ZB=G(()=>{KB=e(rf(),1)});import{exec as te}from"child_process";import{promisify as rn}from"util";var QB=async(r,s,f)=>{let h=s[r];if(s[r]){let w=h.credential_process;if(w!==void 0){let $=rn(te);try{let{stdout:E}=await $(w),I;try{I=JSON.parse(E.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return PB(r,I,s)}catch(E){throw new n(E.message,{logger:f})}}else throw new n(`Profile ${r} did not contain credential_process.`,{logger:f})}else throw new n(`Profile ${r} could not be found in shared credentials file.`,{logger:f})};var JB=G(()=>{Lr();ZB()});var fn=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let s=await u0(r);return QB(Nf(r),s,r.logger)};var BB=G(()=>{Ts();JB()});var j5={};Zs(j5,{fromProcess:()=>fn});var v5=G(()=>{BB()});var MB,VB=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string",HB=async(r,s)=>Promise.resolve().then(() => (v5(),j5)).then(({fromProcess:f})=>f({...r,profile:s})().then((h)=>MB.setCredentialFeature(h,"CREDENTIALS_PROFILE_PROCESS","v")));var lB=G(()=>{MB=e(rf(),1)});var i5,DB=async(r,s,f={})=>{let{fromSSO:h}=await Promise.resolve().then(() => (OT(),iT));return h({profile:r,logger:f.logger})().then((w)=>{if(s.sso_session)return i5.setCredentialFeature(w,"CREDENTIALS_PROFILE_SSO","r");else return i5.setCredentialFeature(w,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},kB=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var yB=G(()=>{i5=e(rf(),1)});var NB,O5=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.aws_access_key_id==="string"&&typeof r.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof r.aws_session_token)>-1&&["undefined","string"].indexOf(typeof r.aws_account_id)>-1,d5=async(r,s)=>{s?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let f={accessKeyId:r.aws_access_key_id,secretAccessKey:r.aws_secret_access_key,sessionToken:r.aws_session_token,...r.aws_credential_scope&&{credentialScope:r.aws_credential_scope},...r.aws_account_id&&{accountId:r.aws_account_id}};return NB.setCredentialFeature(f,"CREDENTIALS_PROFILE","n")};var qB=G(()=>{NB=e(rf(),1)});var c5=(r)=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:s,roleSessionName:f,webIdentityToken:h,providerId:w,policyArns:$,policy:E,durationSeconds:I}=r,{roleAssumerWithWebIdentity:F}=r;if(!F){let{getDefaultRoleAssumerWithWebIdentity:U}=await Promise.resolve().then(() => (N5(),y5));F=U({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:r.parentClientConfig},r.clientPlugins)}return F({RoleArn:s,RoleSessionName:f??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:h,ProviderId:w,PolicyArns:$,Policy:E,DurationSeconds:I})};import{readFileSync as sn}from"fs";var jB,mB="AWS_WEB_IDENTITY_TOKEN_FILE",hn="AWS_ROLE_ARN",wn="AWS_ROLE_SESSION_NAME",$n=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let s=r?.webIdentityTokenFile??process.env[mB],f=r?.roleArn??process.env[hn],h=r?.roleSessionName??process.env[wn];if(!s||!f)throw new n("Web identity configuration not specified",{logger:r.logger});let w=await c5({...r,webIdentityToken:sn(s,{encoding:"ascii"}),roleArn:f,roleSessionName:h})();if(s===process.env[mB])jB.setCredentialFeature(w,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return w};var vB=G(()=>{jB=e(rf(),1);Lr()});var b5={};Zs(b5,{fromWebToken:()=>c5,fromTokenFile:()=>$n});var _5=G(()=>{vB()});var iB,OB=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.web_identity_token_file==="string"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1,dB=async(r,s)=>Promise.resolve().then(() => (_5(),b5)).then(({fromTokenFile:f})=>f({webIdentityTokenFile:r.web_identity_token_file,roleArn:r.role_arn,roleSessionName:r.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})().then((h)=>iB.setCredentialFeature(h,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var cB=G(()=>{iB=e(rf(),1)});var VI=async(r,s,f,h={},w=!1)=>{let $=s[r];if(Object.keys(h).length>0&&O5($))return d5($,f);if(w||SB($,{profile:r,logger:f.logger}))return YB(r,s,f,h);if(O5($))return d5($,f);if(OB($))return dB($,f);if(VB($))return HB(f,r);if(kB($))return await DB(r,$,f);throw new n(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:f.logger})};var m5=G(()=>{Lr();XB();lB();yB();qB();cB()});var En=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let s=await u0(r);return VI(Nf(r),s,r)};var bB=G(()=>{Ts();m5()});var _B={};Zs(_B,{fromIni:()=>En});var gB=G(()=>{bB()});var xB=!1,J0=(r={})=>kh(K0(async()=>{if(r.profile??process.env[WX]){if(process.env[d3]&&process.env[c3]){if(!xB)(r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
26
26
  Multiple credential sources detected:
27
27
  Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
28
28
  This SDK will proceed with the AWS_PROFILE value.
@@ -30,7 +30,4 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
30
30
  However, a future version may change this behavior to prefer the ENV static credentials.
31
31
  Please ensure that your environment only sets either the AWS_PROFILE or the
32
32
  AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
33
- `),AM=!0}throw new Lw.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:r.logger,tryNextLink:!0})}return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),sT(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:s,ssoAccountId:f,ssoRegion:w,ssoRoleName:h,ssoSession:E}=r;if(!s&&!f&&!w&&!h&&!E)throw new Lw.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:r.logger});const{fromSSO:$}=await Promise.resolve().then(() => (nT(),eT));return $(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:s}=await Promise.resolve().then(() => (GM(),TM));return s(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:s}=await Promise.resolve().then(() => (e5(),x5));return s(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:s}=await Promise.resolve().then(() => (t5(),u5));return s(r)()},async()=>{return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await MP(r))()},async()=>{throw new Lw.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:r.logger})}),Vn,Mn),Mn=(r)=>r?.expiration!==void 0,Vn=(r)=>r?.expiration!==void 0&&r.expiration.getTime()-Date.now()<300000;var LM=G(()=>{wT();Lw=m(Ar(),1);$s();VP()});var e1=G(()=>{LM()});pw();uw();tw();Bw();lf();var eh=m(qr(),1);Lh();B();Is();K();var bZ=m(Qr(),1);Es();function ig(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}var _Z=async(r,s,f)=>{return{operation:Vf(s).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},gZ=(r)=>{const s=[];switch(r.operation){default:s.push(ig(r))}return s},xZ=(r)=>{return{...bZ.resolveAwsSdkSigV4Config(r)}};var eZ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53"}},J={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var nZ={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.668.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.668.0","@aws-sdk/client-sts":"3.668.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.668.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-sdk-route53":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.0","@aws-sdk/xml-builder":"3.662.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.6",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53"}};var DM=m(Qr(),1);e1();Jh();lf();Qh();Is();Ns();a0();Bh();zf();var HM=m(Qr(),1);K();n0();S0();Os();Pw();ws();var RM={["required"]:!1,type:"String"},CM={["required"]:!0,default:!1,type:"Boolean"},WM={["ref"]:"Endpoint"},qI={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},BM={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},cr={},zM={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},xh={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},jw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},H0={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},SM={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},YM={["fn"]:"stringEquals",["argv"]:[xh,"aws-us-gov"]},XM={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},KM={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},ZM={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},PM=[qI],JM=[BM],QM=[{["ref"]:"Region"}],Hn={version:"1.0",parameters:{Region:RM,UseDualStack:CM,UseFIPS:CM,Endpoint:RM},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[WM]}],rules:[{conditions:PM,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:JM,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:WM,properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:QM}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:QM,assign:"PartitionResult"}],rules:[{conditions:[zM,jw,H0],endpoint:{url:"https://route53.amazonaws.com",properties:SM,headers:cr},type:"endpoint"},{conditions:[zM,qI,H0],endpoint:{url:"https://route53-fips.amazonaws.com",properties:SM,headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[xh,"aws-cn"]},jw,H0],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:cr},type:"endpoint"},{conditions:[YM,jw,H0],endpoint:XM,type:"endpoint"},{conditions:[YM,qI,H0],endpoint:XM,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[xh,"aws-iso"]},jw,H0],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[xh,"aws-iso-b"]},jw,H0],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[xh,"aws-iso-e"]},jw,H0],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[xh,"aws-iso-f"]},jw,H0],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:cr},type:"endpoint"},{conditions:[qI,BM],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,KM]},ZM],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:PM,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[KM,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:JM,rules:[{conditions:[ZM],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53.{Region}.{PartitionResult#dnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},MM=Hn;var ln=new fs({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),VM=(r,s={})=>{return ln.get(r,()=>ss(MM,{endpointParams:r,logger:s.logger}))};ur.aws=hs;var lM=(r)=>{return{apiVersion:"2013-04-01",base64Decoder:r?.base64Decoder??Uf,base64Encoder:r?.base64Encoder??Gf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??VM,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??gZ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new HM.AwsSdkSigV4Signer}],logger:r?.logger??new Yf,serviceId:r?.serviceId??"Route 53",urlParser:r?.urlParser??br,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Tf}};K();Mh();K();var kM=(r)=>{gs(process.version);const s=us(r),f=()=>s().then(_s),w=lM(r);return DM.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??ps,credentialDefaultProvider:r?.credentialDefaultProvider??X0,defaultUserAgentProvider:r?.defaultUserAgentProvider??os({serviceId:w.serviceId,clientVersion:nZ.version}),maxAttempts:r?.maxAttempts??u(js),region:r?.region??u(Hf,Ds),requestHandler:ff.create(r?.requestHandler??f),retryMode:r?.retryMode??u({...is,default:async()=>(await f()).retryMode||Nf}),sha256:r?.sha256??Fs.bind(null,"sha256"),streamCollector:r?.streamCollector??qf,useDualstackEndpoint:r?.useDualstackEndpoint??u(Hs),useFipsEndpoint:r?.useFipsEndpoint??u(ls),userAgentAppId:r?.userAgentAppId??u(as)}};Vh();kr();K();var yM=(r)=>{const s=r.httpAuthSchemes;let{httpAuthSchemeProvider:f,credentials:w}=r;return{setHttpAuthScheme(h){const E=s.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)s.push(h);else s.splice(E,1,h)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(h){f=h},httpAuthSchemeProvider(){return f},setCredentials(h){w=h},credentials(){return w}}},NM=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var mI=(r)=>r,qM=(r,s)=>{const f={...mI(ts(r)),...mI(xs(r)),...mI(Xs(r)),...mI(yM(r))};return s.forEach((w)=>w.configure(f)),{...r,...r0(f),...es(f),...Ks(f),...NM(f)}};class rG extends Sf{constructor(...[r]){const s=kM(r||{}),f=eZ(s),w=Ms(f),h=vs(w),E=ks(h),$=Zs(E),I=qs($),F=xZ(I),U=qM(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ys(this.config)),this.middlewareStack.use(Ps(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(Qs(this.config)),this.middlewareStack.use(eh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:_Z,identityProviderConfigProvider:async(A)=>new eh.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(eh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}K();var jI=/^\/(hostedzone|change|delegationset)\//;function Dn(){return(r)=>async(s)=>{const{ChangeBatch:f}=s.input,w=[];for(let h of f.Changes){const{AliasTarget:E}=h.ResourceRecordSet;if(E)w.push({...h,ResourceRecordSet:{...h.ResourceRecordSet,AliasTarget:{...E,HostedZoneId:E.HostedZoneId.replace(jI,"")}}});else w.push(h)}return r({...s,input:{...s.input,ChangeBatch:{...f,Changes:w}}})}}var kn={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},mM=(r)=>({applyToStack:(s)=>{s.add(Dn(),kn)}});function Nn(){return(r)=>async(s)=>{const f={...s.input};for(let w of yn){const h=f[w];if(h)f[w]=h.replace(jI,"")}return r({...s,input:f})}}var yn=["DelegationSetId","HostedZoneId","Id"],qn={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},j=(r)=>({applyToStack:(s)=>{s.add(Nn(),qn)}});B();V();K();var x=m(Qr(),1);function jM(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function vM(r){return r.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class fG{constructor(r){this.value=r}toString(){return vM(""+this.value)}}class H{static of(r,s,f){const w=new H(r);if(s!==void 0)w.addChildNode(new fG(s));if(f!==void 0)w.withName(f);return w}constructor(r,s=[]){this.name=r,this.children=s,this.attributes={}}withName(r){return this.name=r,this}addAttribute(r,s){return this.attributes[r]=s,this}addChildNode(r){return this.children.push(r),this}removeAttribute(r){return delete this.attributes[r],this}n(r){return this.name=r,this}c(r){return this.children.push(r),this}a(r,s){if(s!=null)this.attributes[r]=s;return this}cc(r,s,f=s){if(r[s]!=null){const w=H.of(s,r[s]).withName(f);this.c(w)}}l(r,s,f,w){if(r[s]!=null)w().map((E)=>{E.withName(f),this.c(E)})}lc(r,s,f,w){if(r[s]!=null){const h=w(),E=new H(f);h.map(($)=>{E.c($)}),this.c(E)}}toString(){const r=Boolean(this.children.length);let s=`<${this.name}`;const f=this.attributes;for(let w of Object.keys(f)){const h=f[w];if(h!=null)s+=` ${w}="${jM(""+h)}"`}return s+=!r?"/>":`>${this.children.map((w)=>w.toString()).join("")}</${this.name}>`}}var b=m(qr(),1);K();K();class d extends mf{constructor(r){super(r);Object.setPrototypeOf(this,d.prototype)}}class vI extends d{constructor(r){super({name:"ConcurrentModification",$fault:"client",...r});this.name="ConcurrentModification",this.$fault="client",Object.setPrototypeOf(this,vI.prototype)}}class iI extends d{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,iI.prototype)}}class OI extends d{constructor(r){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...r});this.name="InvalidKeySigningKeyStatus",this.$fault="client",Object.setPrototypeOf(this,OI.prototype)}}class dI extends d{constructor(r){super({name:"InvalidKMSArn",$fault:"client",...r});this.name="InvalidKMSArn",this.$fault="client",Object.setPrototypeOf(this,dI.prototype)}}class cI extends d{constructor(r){super({name:"InvalidSigningStatus",$fault:"client",...r});this.name="InvalidSigningStatus",this.$fault="client",Object.setPrototypeOf(this,cI.prototype)}}class bI extends d{constructor(r){super({name:"NoSuchKeySigningKey",$fault:"client",...r});this.name="NoSuchKeySigningKey",this.$fault="client",Object.setPrototypeOf(this,bI.prototype)}}class _I extends d{constructor(r){super({name:"ConflictingDomainExists",$fault:"client",...r});this.name="ConflictingDomainExists",this.$fault="client",Object.setPrototypeOf(this,_I.prototype)}}class gI extends d{constructor(r){super({name:"InvalidVPCId",$fault:"client",...r});this.name="InvalidVPCId",this.$fault="client",Object.setPrototypeOf(this,gI.prototype)}}class xI extends d{constructor(r){super({name:"LimitsExceeded",$fault:"client",...r});this.name="LimitsExceeded",this.$fault="client",Object.setPrototypeOf(this,xI.prototype)}}class eI extends d{constructor(r){super({name:"NoSuchHostedZone",$fault:"client",...r});this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,eI.prototype)}}class nI extends d{constructor(r){super({name:"NotAuthorizedException",$fault:"client",...r});this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,nI.prototype)}}class oI extends d{constructor(r){super({name:"PriorRequestNotComplete",$fault:"client",...r});this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,oI.prototype)}}class aI extends d{constructor(r){super({name:"PublicZoneVPCAssociation",$fault:"client",...r});this.name="PublicZoneVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,aI.prototype)}}class pI extends d{constructor(r){super({name:"CidrBlockInUseException",$fault:"client",...r});this.name="CidrBlockInUseException",this.$fault="client",Object.setPrototypeOf(this,pI.prototype),this.Message=r.Message}}class uI extends d{constructor(r){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...r});this.name="CidrCollectionVersionMismatchException",this.$fault="client",Object.setPrototypeOf(this,uI.prototype),this.Message=r.Message}}class tI extends d{constructor(r){super({name:"NoSuchCidrCollectionException",$fault:"client",...r});this.name="NoSuchCidrCollectionException",this.$fault="client",Object.setPrototypeOf(this,tI.prototype),this.Message=r.Message}}class r2 extends d{constructor(r){super({name:"InvalidChangeBatch",$fault:"client",...r});this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,r2.prototype),this.messages=r.messages}}class f2 extends d{constructor(r){super({name:"NoSuchHealthCheck",$fault:"client",...r});this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,f2.prototype)}}class s2 extends d{constructor(r){super({name:"ThrottlingException",$fault:"client",...r});this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,s2.prototype)}}class w2 extends d{constructor(r){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...r});this.name="CidrCollectionAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,w2.prototype),this.Message=r.Message}}class h2 extends d{constructor(r){super({name:"HealthCheckAlreadyExists",$fault:"client",...r});this.name="HealthCheckAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,h2.prototype)}}class E2 extends d{constructor(r){super({name:"TooManyHealthChecks",$fault:"client",...r});this.name="TooManyHealthChecks",this.$fault="client",Object.setPrototypeOf(this,E2.prototype)}}class $2 extends d{constructor(r){super({name:"DelegationSetNotAvailable",$fault:"client",...r});this.name="DelegationSetNotAvailable",this.$fault="client",Object.setPrototypeOf(this,$2.prototype)}}class I2 extends d{constructor(r){super({name:"DelegationSetNotReusable",$fault:"client",...r});this.name="DelegationSetNotReusable",this.$fault="client",Object.setPrototypeOf(this,I2.prototype)}}class F2 extends d{constructor(r){super({name:"HostedZoneAlreadyExists",$fault:"client",...r});this.name="HostedZoneAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,F2.prototype)}}class U2 extends d{constructor(r){super({name:"InvalidDomainName",$fault:"client",...r});this.name="InvalidDomainName",this.$fault="client",Object.setPrototypeOf(this,U2.prototype)}}class T2 extends d{constructor(r){super({name:"NoSuchDelegationSet",$fault:"client",...r});this.name="NoSuchDelegationSet",this.$fault="client",Object.setPrototypeOf(this,T2.prototype)}}class G2 extends d{constructor(r){super({name:"TooManyHostedZones",$fault:"client",...r});this.name="TooManyHostedZones",this.$fault="client",Object.setPrototypeOf(this,G2.prototype)}}class A2 extends d{constructor(r){super({name:"InvalidArgument",$fault:"client",...r});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,A2.prototype)}}class L2 extends d{constructor(r){super({name:"InvalidKeySigningKeyName",$fault:"client",...r});this.name="InvalidKeySigningKeyName",this.$fault="client",Object.setPrototypeOf(this,L2.prototype)}}class R2 extends d{constructor(r){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...r});this.name="KeySigningKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,R2.prototype)}}class C2 extends d{constructor(r){super({name:"TooManyKeySigningKeys",$fault:"client",...r});this.name="TooManyKeySigningKeys",this.$fault="client",Object.setPrototypeOf(this,C2.prototype)}}class W2 extends d{constructor(r){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...r});this.name="InsufficientCloudWatchLogsResourcePolicy",this.$fault="client",Object.setPrototypeOf(this,W2.prototype)}}class z2 extends d{constructor(r){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...r});this.name="NoSuchCloudWatchLogsLogGroup",this.$fault="client",Object.setPrototypeOf(this,z2.prototype)}}class S2 extends d{constructor(r){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...r});this.name="QueryLoggingConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,S2.prototype)}}class Y2 extends d{constructor(r){super({name:"DelegationSetAlreadyCreated",$fault:"client",...r});this.name="DelegationSetAlreadyCreated",this.$fault="client",Object.setPrototypeOf(this,Y2.prototype)}}class X2 extends d{constructor(r){super({name:"DelegationSetAlreadyReusable",$fault:"client",...r});this.name="DelegationSetAlreadyReusable",this.$fault="client",Object.setPrototypeOf(this,X2.prototype)}}class K2 extends d{constructor(r){super({name:"HostedZoneNotFound",$fault:"client",...r});this.name="HostedZoneNotFound",this.$fault="client",Object.setPrototypeOf(this,K2.prototype)}}class Z2 extends d{constructor(r){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...r});this.name="InvalidTrafficPolicyDocument",this.$fault="client",Object.setPrototypeOf(this,Z2.prototype)}}class P2 extends d{constructor(r){super({name:"TooManyTrafficPolicies",$fault:"client",...r});this.name="TooManyTrafficPolicies",this.$fault="client",Object.setPrototypeOf(this,P2.prototype)}}class J2 extends d{constructor(r){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,J2.prototype)}}class Q2 extends d{constructor(r){super({name:"NoSuchTrafficPolicy",$fault:"client",...r});this.name="NoSuchTrafficPolicy",this.$fault="client",Object.setPrototypeOf(this,Q2.prototype)}}class B2 extends d{constructor(r){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...r});this.name="TooManyTrafficPolicyInstances",this.$fault="client",Object.setPrototypeOf(this,B2.prototype)}}class M2 extends d{constructor(r){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyInstanceAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,M2.prototype)}}class V2 extends d{constructor(r){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...r});this.name="TooManyTrafficPolicyVersionsForCurrentPolicy",this.$fault="client",Object.setPrototypeOf(this,V2.prototype)}}class H2 extends d{constructor(r){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...r});this.name="TooManyVPCAssociationAuthorizations",this.$fault="client",Object.setPrototypeOf(this,H2.prototype)}}class l2 extends d{constructor(r){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...r});this.name="KeySigningKeyInParentDSRecord",this.$fault="client",Object.setPrototypeOf(this,l2.prototype)}}class D2 extends d{constructor(r){super({name:"KeySigningKeyInUse",$fault:"client",...r});this.name="KeySigningKeyInUse",this.$fault="client",Object.setPrototypeOf(this,D2.prototype)}}class k2 extends d{constructor(r){super({name:"CidrCollectionInUseException",$fault:"client",...r});this.name="CidrCollectionInUseException",this.$fault="client",Object.setPrototypeOf(this,k2.prototype),this.Message=r.Message}}class y2 extends d{constructor(r){super({name:"HealthCheckInUse",$fault:"client",...r});this.name="HealthCheckInUse",this.$fault="client",Object.setPrototypeOf(this,y2.prototype)}}class N2 extends d{constructor(r){super({name:"HostedZoneNotEmpty",$fault:"client",...r});this.name="HostedZoneNotEmpty",this.$fault="client",Object.setPrototypeOf(this,N2.prototype)}}class q2 extends d{constructor(r){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...r});this.name="NoSuchQueryLoggingConfig",this.$fault="client",Object.setPrototypeOf(this,q2.prototype)}}class m2 extends d{constructor(r){super({name:"DelegationSetInUse",$fault:"client",...r});this.name="DelegationSetInUse",this.$fault="client",Object.setPrototypeOf(this,m2.prototype)}}class j2 extends d{constructor(r){super({name:"TrafficPolicyInUse",$fault:"client",...r});this.name="TrafficPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,j2.prototype)}}class v2 extends d{constructor(r){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...r});this.name="NoSuchTrafficPolicyInstance",this.$fault="client",Object.setPrototypeOf(this,v2.prototype)}}class i2 extends d{constructor(r){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...r});this.name="VPCAssociationAuthorizationNotFound",this.$fault="client",Object.setPrototypeOf(this,i2.prototype)}}class O2 extends d{constructor(r){super({name:"DNSSECNotFound",$fault:"client",...r});this.name="DNSSECNotFound",this.$fault="client",Object.setPrototypeOf(this,O2.prototype)}}class d2 extends d{constructor(r){super({name:"LastVPCAssociation",$fault:"client",...r});this.name="LastVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,d2.prototype)}}class c2 extends d{constructor(r){super({name:"VPCAssociationNotFound",$fault:"client",...r});this.name="VPCAssociationNotFound",this.$fault="client",Object.setPrototypeOf(this,c2.prototype)}}class b2 extends d{constructor(r){super({name:"HostedZonePartiallyDelegated",$fault:"client",...r});this.name="HostedZonePartiallyDelegated",this.$fault="client",Object.setPrototypeOf(this,b2.prototype)}}class _2 extends d{constructor(r){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...r});this.name="KeySigningKeyWithActiveStatusNotFound",this.$fault="client",Object.setPrototypeOf(this,_2.prototype)}}class g2 extends d{constructor(r){super({name:"NoSuchChange",$fault:"client",...r});this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,g2.prototype)}}class x2 extends d{constructor(r){super({name:"NoSuchGeoLocation",$fault:"client",...r});this.name="NoSuchGeoLocation",this.$fault="client",Object.setPrototypeOf(this,x2.prototype)}}class e2 extends d{constructor(r){super({name:"IncompatibleVersion",$fault:"client",...r});this.name="IncompatibleVersion",this.$fault="client",Object.setPrototypeOf(this,e2.prototype)}}class n2 extends d{constructor(r){super({name:"HostedZoneNotPrivate",$fault:"client",...r});this.name="HostedZoneNotPrivate",this.$fault="client",Object.setPrototypeOf(this,n2.prototype)}}class o2 extends d{constructor(r){super({name:"NoSuchCidrLocationException",$fault:"client",...r});this.name="NoSuchCidrLocationException",this.$fault="client",Object.setPrototypeOf(this,o2.prototype),this.Message=r.Message}}class a2 extends d{constructor(r){super({name:"InvalidPaginationToken",$fault:"client",...r});this.name="InvalidPaginationToken",this.$fault="client",Object.setPrototypeOf(this,a2.prototype)}}class p2 extends d{constructor(r){super({name:"HealthCheckVersionMismatch",$fault:"client",...r});this.name="HealthCheckVersionMismatch",this.$fault="client",Object.setPrototypeOf(this,p2.prototype)}}class u2 extends d{constructor(r){super({name:"ConflictingTypes",$fault:"client",...r});this.name="ConflictingTypes",this.$fault="client",Object.setPrototypeOf(this,u2.prototype)}}var xM=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),f.p("Name",()=>r.Name,"{Name}",!1);let h;return f.m("POST").h(w).b(h),f.build()},eM=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=lr;const E=new H(Yp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)E.c(H.of(Sp,r[Fr]).n(Fr));if(r[Cr]!=null)E.c(f$(r[Cr],s).n(Cr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},nM=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/cidrcollection/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;h=lr;const E=new H(Pp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.lc(r,"Changes","Changes",()=>Ea(r[Nl],s)),r[t2]!=null)E.c(H.of(t2,String(r[t2])).n(t2));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},oM=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=lr;const E=new H(qp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[f6]!=null)E.c(sa(r[f6],s).n(f6));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},aM=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),f.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),f.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;h=lr;const E=new H(mp);return E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.lc(r,"AddTags","AddTags",()=>Ya(r[zp],s)),E.lc(r,"RemoveTagKeys","RemoveTagKeys",()=>Sa(r[Au],s)),h+=E.toString(),f.m("POST").h(w).b(h),f.build()},pM=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/cidrcollection");let h;h=lr;const E=new H(Jp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Yr]!=null)E.c(H.of(Dp,r[Yr]).n(Yr));if(r[n]!=null)E.c(H.of(kp,r[n]).n(n));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},uM=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/healthcheck");let h;h=lr;const E=new H(Qp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Yr]!=null)E.c(H.of(ap,r[Yr]).n(Yr));if(r[ow]!=null)E.c(Ga(r[ow],s).n(ow));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},tM=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone");let h;h=lr;const E=new H(Bp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Yr]!=null)E.c(H.of(T8,r[Yr]).n(Yr));if(r[w6]!=null)E.c(H.of(F0,r[w6]).n(w6));if(r[h6]!=null)E.c(Aa(r[h6],s).n(h6));if(r[n]!=null)E.c(H.of(Ws,r[n]).n(n));if(r[Cr]!=null)E.c(f$(r[Cr],s).n(Cr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},rV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/keysigningkey");let h;h=lr;const E=new H(Mp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Yr]!=null)E.c(H.of(T8,r[Yr]).n(Yr));if(r[rr]!=null)E.c(H.of(F0,r[rr]).n(rr));if(r[ZG]!=null)E.c(H.of(Wu,r[ZG]).n(ZG));if(r[n]!=null)E.c(H.of(Cu,r[n]).n(n));if(r[$f]!=null)E.c(H.of(zu,r[$f]).n($f));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},fV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/queryloggingconfig");let h;h=lr;const E=new H(yp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.cc(r,s6),r[rr]!=null)E.c(H.of(F0,r[rr]).n(rr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},sV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/delegationset");let h;h=lr;const E=new H(Np);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Yr]!=null)E.c(H.of(T8,r[Yr]).n(Yr));if(r[rr]!=null)E.c(H.of(F0,r[rr]).n(rr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},wV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicy");let h;h=lr;const E=new H(vp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)E.c(H.of(A8,r[Fr]).n(Fr));if(r[D0]!=null)E.c(H.of(jl,r[D0]).n(D0));if(r[n]!=null)E.c(H.of(Zu,r[n]).n(n));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},hV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicyinstance");let h;h=lr;const E=new H(jp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[rr]!=null)E.c(H.of(F0,r[rr]).n(rr));if(r[n]!=null)E.c(H.of(Ws,r[n]).n(n));if(r[vr]!=null)E.c(H.of(vr,String(r[vr])).n(vr));if(E.cc(r,$1),r[_f]!=null)E.c(H.of(_f,String(r[_f])).n(_f));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},EV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicy/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;h=lr;const E=new H(ip);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)E.c(H.of(A8,r[Fr]).n(Fr));if(r[D0]!=null)E.c(H.of(jl,r[D0]).n(D0));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},$V=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=lr;const E=new H(Op);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Cr]!=null)E.c(f$(r[Cr],s).n(Cr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},IV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),f.p("Name",()=>r.Name,"{Name}",!1);let h;return f.m("POST").h(w).b(h),f.build()},FV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/cidrcollection/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},UV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},TV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},GV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),f.p("Name",()=>r.Name,"{Name}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},AV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/queryloggingconfig/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},LV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/delegationset/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},RV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),f.p("Id",()=>r.Id,"{Id}",!1),f.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},CV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicyinstance/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("DELETE").h(w).b(h),f.build()},WV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=lr;const E=new H(cp);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Cr]!=null)E.c(f$(r[Cr],s).n(Cr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},zV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return f.m("POST").h(w).b(h),f.build()},SV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=lr;const E=new H(_p);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)E.c(H.of(bp,r[Fr]).n(Fr));if(r[Cr]!=null)E.c(f$(r[Cr],s).n(Cr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},YV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return f.m("POST").h(w).b(h),f.build()},XV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/accountlimit/{Type}"),f.p("Type",()=>r.Type,"{Type}",!1);let h;return f.m("GET").h(w).b(h),f.build()},KV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/change/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("GET").h(w).b(h),f.build()},ZV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/checkeripranges");let h;return f.m("GET").h(w).b(h),f.build()},PV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return f.m("GET").h(w).b(h),f.build()},JV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/geolocation");const h=Y({[lu]:[,r[$0]],[Du]:[,r[I0]],[cu]:[,r[U0]]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},QV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return f.m("GET").h(w).b(h),f.build()},BV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/healthcheckcount");let h;return f.m("GET").h(w).b(h),f.build()},MV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return f.m("GET").h(w).b(h),f.build()},VV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return f.m("GET").h(w).b(h),f.build()},HV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("GET").h(w).b(h),f.build()},lV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzonecount");let h;return f.m("GET").h(w).b(h),f.build()},DV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),f.p("Type",()=>r.Type,"{Type}",!1),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return f.m("GET").h(w).b(h),f.build()},kV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/queryloggingconfig/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("GET").h(w).b(h),f.build()},yV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/delegationset/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("GET").h(w).b(h),f.build()},NV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),f.p("Type",()=>r.Type,"{Type}",!1),f.p("DelegationSetId",()=>r.DelegationSetId,"{DelegationSetId}",!1);let h;return f.m("GET").h(w).b(h),f.build()},qV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),f.p("Id",()=>r.Id,"{Id}",!1),f.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return f.m("GET").h(w).b(h),f.build()},mV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicyinstance/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;return f.m("GET").h(w).b(h),f.build()},jV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicyinstancecount");let h;return f.m("GET").h(w).b(h),f.build()},vV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),f.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=Y({[T0]:[,r[ar]],[F1]:[,r[Xr]],[$$]:[()=>r.MaxResults!==void 0,()=>r[h$].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},iV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/cidrcollection");const h=Y({[F1]:[,r[Xr]],[$$]:[()=>r.MaxResults!==void 0,()=>r[h$].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},OV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/cidrcollection/{CollectionId}"),f.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=Y({[F1]:[,r[Xr]],[$$]:[()=>r.MaxResults!==void 0,()=>r[h$].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},dV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/geolocations");const h=Y({[bu]:[,r[Lu]],[_u]:[,r[Ru]],[gu]:[,r[Ku]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},cV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/healthcheck");const h=Y({[L8]:[,r[gf]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},bV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone");const h=Y({[L8]:[,r[gf]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[ku]:[,r[w6]],[mu]:[,r[tp]]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},_V=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzonesbyname");const h=Y({[yu]:[,r[Ws]],[E$]:[,r[rr]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},gV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzonesbyvpc");const h=Y({[ou]:[,y(r[tE],"VPCId")],[pu]:[,y(r[r$],"VPCRegion")],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[F1]:[,r[Xr]]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},xV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/queryloggingconfig");const h=Y({[E$]:[,r[rr]],[F1]:[,r[Xr]],[$$]:[()=>r.MaxResults!==void 0,()=>r[h$].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},eV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=Y({[vu]:[,r[Yu]],[xu]:[,r[Xu]],[ju]:[,r[Su]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},nV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/delegationset");const h=Y({[L8]:[,r[gf]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},oV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),f.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),f.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;return f.m("GET").h(w).b(h),f.build()},aV=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/tags/{ResourceType}"),f.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1);let h;h=lr;const E=new H(fu);return E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.lc(r,"ResourceIds","ResourceIds",()=>Xa(r[Eu],s)),h+=E.toString(),f.m("POST").h(w).b(h),f.build()},pV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicies");const h=Y({[eu]:[,r[A6]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},uV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicyinstances");const h=Y({[E$]:[,r[Rw]],[R8]:[,r[xf]],[C8]:[,r[ef]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},tV=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicyinstances/hostedzone");const h=Y({[vl]:[,y(r[rr],"HostedZoneId")],[R8]:[,r[xf]],[C8]:[,r[ef]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},rH=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");const h=Y({[vl]:[,y(r[$1],"TrafficPolicyId")],[au]:[y(r.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>r[_f].toString()],[E$]:[,r[Rw]],[R8]:[,r[xf]],[C8]:[,r[ef]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},fH=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/trafficpolicies/{Id}/versions"),f.p("Id",()=>r.Id,"{Id}",!1);const h=Y({[nu]:[,r[L6]],[of]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},sH=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=Y({[F1]:[,r[Xr]],[$$]:[()=>r.MaxResults!==void 0,()=>r[h$].toString()]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},wH=async(r,s)=>{const f=b.requestBuilder(r,s),w={};f.bp("/2013-04-01/testdnsanswer");const h=Y({[E$]:[,y(r[rr],"HostedZoneId")],[iu]:[,y(r[U6],"RecordName")],[Ou]:[,y(r[T6],"RecordType")],[du]:[,r[hu]],[Nu]:[,r[gp]],[qu]:[,r[xp]]});let E;return f.m("GET").h(w).q(h).b(E),f.build()},hH=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/healthcheck/{HealthCheckId}"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;h=lr;const E=new H(Qu);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[E0]!=null)E.c(Jl(r[E0],s).n(E0));if(E.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>Ql(r[vw],s)),r[Ts]!=null)E.c(H.of(Ts,String(r[Ts])).n(Ts));if(r[Gs]!=null)E.c(H.of(Gs,String(r[Gs])).n(Gs));if(r[As]!=null)E.c(H.of(As,String(r[As])).n(As));if(E.cc(r,xE),r[dw]!=null)E.c(H.of(dw,String(r[dw])).n(dw));if(r[Ls]!=null)E.c(H.of(Ls,String(r[Ls])).n(Ls));if(E.cc(r,Cw),E.cc(r,oE),r[Rs]!=null)E.c(H.of(Rs,String(r[Rs])).n(Rs));if(r[Cs]!=null)E.c(H.of(Cs,String(r[Cs])).n(Cs));return E.lc(r,"Regions","Regions",()=>Bl(r[iw],s)),E.lc(r,"ResetElements","ResetElements",()=>La(r[wu],s)),E.cc(r,aE),E.cc(r,uE),h+=E.toString(),f.m("POST").h(w).b(h),f.build()},EH=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;h=lr;const E=new H(Bu);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)E.c(H.of(G8,r[Fr]).n(Fr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},$H=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),f.p("Id",()=>r.Id,"{Id}",!1),f.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;h=lr;const E=new H(Mu);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)E.c(H.of(A8,r[Fr]).n(Fr));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},IH=async(r,s)=>{const f=b.requestBuilder(r,s),w={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicyinstance/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let h;h=lr;const E=new H(Vu);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[vr]!=null)E.c(H.of(vr,String(r[vr])).n(vr));if(E.cc(r,$1),r[_f]!=null)E.c(H.of(_f,String(r[_f])).n(_f));return h+=E.toString(),f.m("POST").h(w).b(h),f.build()},FH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},UH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},TH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Tr]!=null)f[Tr]=T(w[Tr]);return f},GH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},AH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},LH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[UG]!=null)f[UG]=Va(w[UG],s);return f},RH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[zs]!=null)f[zs]=z6(w[zs],s);return f},CH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);if(w[Lf]!=null)f[Lf]=s$(w[Lf],s);if(w[Kf]!=null)f[Kf]=S6(w[Kf],s);if(w[Cr]!=null)f[Cr]=U8(w[Cr],s);return f},WH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);if(w[PG]!=null)f[PG]=ll(w[PG],s);return f},zH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Ww]!=null)f[Ww]=I8(w[Ww],s);return f},SH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Lf]!=null)f[Lf]=s$(w[Lf],s);return f},YH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Rf]!=null)f[Rf]=w$(w[Rf],s);return f},XH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[If]!=null)f[If]=Y6(w[If],s);return f},KH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r),[q0]:[,r.headers[T0]]}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Rf]!=null)f[Rf]=w$(w[Rf],s);return f},ZH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[rr]!=null)f[rr]=T(w[rr]);if(w[Cr]!=null)f[Cr]=U8(w[Cr],s);return f},PH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},JH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},QH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},BH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},MH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},VH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},HH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},lH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},DH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},kH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)});return await gr(r.body,s),f},yH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},NH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},qH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},mH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[l0]!=null)f[l0]=xr(w[l0]);if(w[k0]!=null)f[k0]=Ka(w[k0],s);return f},jH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[wr]!=null)f[wr]=nf(w[wr],s);return f},vH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.CheckerIpRanges==="")f[HE]=[];else if(w[HE]!=null&&w[HE][Ss]!=null)f[HE]=Ja(Gr(w[HE][Ss]),s);return f},iH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.KeySigningKeys==="")f[mE]=[];else if(w[mE]!=null&&w[mE][Ss]!=null)f[mE]=ua(Gr(w[mE][Ss]),s);if(w[$f]!=null)f[$f]=va(w[$f],s);return f},OH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[eE]!=null)f[eE]=Ml(w[eE],s);return f},dH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[zs]!=null)f[zs]=z6(w[zs],s);return f},cH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[YG]!=null)f[YG]=xr(w[YG]);return f},bH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.HealthCheckObservations==="")f[s0]=[];else if(w[s0]!=null&&w[s0][R6]!=null)f[s0]=Vl(Gr(w[s0][R6]),s);return f},_H=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.HealthCheckObservations==="")f[s0]=[];else if(w[s0]!=null&&w[s0][R6]!=null)f[s0]=Vl(Gr(w[s0][R6]),s);return f},gH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Lf]!=null)f[Lf]=s$(w[Lf],s);if(w[Kf]!=null)f[Kf]=S6(w[Kf],s);if(w.VPCs==="")f[h0]=[];else if(w[h0]!=null&&w[h0][Cr]!=null)f[h0]=yl(Gr(w[h0][Cr]),s);return f},xH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[XG]!=null)f[XG]=xr(w[XG]);return f},eH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[l0]!=null)f[l0]=xr(w[l0]);if(w[k0]!=null)f[k0]=na(w[k0],s);return f},nH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Ww]!=null)f[Ww]=I8(w[Ww],s);return f},oH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Lf]!=null)f[Lf]=s$(w[Lf],s);return f},aH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[l0]!=null)f[l0]=xr(w[l0]);if(w[k0]!=null)f[k0]=Fp(w[k0],s);return f},pH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Rf]!=null)f[Rf]=w$(w[Rf],s);return f},uH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[If]!=null)f[If]=Y6(w[If],s);return f},tH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[w8]!=null)f[w8]=hr(w[w8]);return f},rl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.CidrBlocks==="")f[ME]=[];else if(w[ME]!=null&&w[ME][Ss]!=null)f[ME]=Ba(Gr(w[ME][Ss]),s);if(w[Xr]!=null)f[Xr]=T(w[Xr]);return f},fl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.CidrCollections==="")f[VE]=[];else if(w[VE]!=null&&w[VE][Ss]!=null)f[VE]=Da(Gr(w[VE][Ss]),s);if(w[Xr]!=null)f[Xr]=T(w[Xr]);return f},sl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.CidrLocations==="")f[lE]=[];else if(w[lE]!=null&&w[lE][Ss]!=null)f[lE]=ta(Gr(w[lE][Ss]),s);if(w[Xr]!=null)f[Xr]=T(w[Xr]);return f},wl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.GeoLocationDetailsList==="")f[yE]=[];else if(w[yE]!=null&&w[yE][eE]!=null)f[yE]=da(Gr(w[yE][eE]),s);if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w[VG]!=null)f[VG]=T(w[VG]);if(w[HG]!=null)f[HG]=T(w[HG]);if(w[qG]!=null)f[qG]=T(w[qG]);return f},hl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.HealthChecks==="")f[NE]=[];else if(w[NE]!=null&&w[NE][zs]!=null)f[NE]=xa(Gr(w[NE][zs]),s);if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[gf]!=null)f[gf]=T(w[gf]);if(w[a]!=null)f[a]=hr(w[a]);if(w[y0]!=null)f[y0]=T(w[y0]);return f},El=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.HostedZones==="")f[w0]=[];else if(w[w0]!=null&&w[w0][Kf]!=null)f[w0]=Hl(Gr(w[w0][Kf]),s);if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[gf]!=null)f[gf]=T(w[gf]);if(w[a]!=null)f[a]=hr(w[a]);if(w[y0]!=null)f[y0]=T(w[y0]);return f},$l=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Ws]!=null)f[Ws]=T(w[Ws]);if(w[rr]!=null)f[rr]=T(w[rr]);if(w.HostedZones==="")f[w0]=[];else if(w[w0]!=null&&w[w0][Kf]!=null)f[w0]=Hl(Gr(w[w0][Kf]),s);if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w[lG]!=null)f[lG]=T(w[lG]);if(w[DG]!=null)f[DG]=T(w[DG]);return f},Il=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.HostedZoneSummaries==="")f[qE]=[];else if(w[qE]!=null&&w[qE][dM]!=null)f[qE]=aa(Gr(w[qE][dM]),s);if(w[a]!=null)f[a]=hr(w[a]);if(w[Xr]!=null)f[Xr]=T(w[Xr]);return f},Fl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Xr]!=null)f[Xr]=T(w[Xr]);if(w.QueryLoggingConfigs==="")f[vE]=[];else if(w[vE]!=null&&w[vE][Ww]!=null)f[vE]=fp(Gr(w[vE][Ww]),s);return f},Ul=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w[kG]!=null)f[kG]=T(w[kG]);if(w[yG]!=null)f[yG]=T(w[yG]);if(w[NG]!=null)f[NG]=T(w[NG]);if(w.ResourceRecordSets==="")f[OE]=[];else if(w[OE]!=null&&w[OE][w1]!=null)f[OE]=$p(Gr(w[OE][w1]),s);return f},Tl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.DelegationSets==="")f[DE]=[];else if(w[DE]!=null&&w[DE][Lf]!=null)f[DE]=qa(Gr(w[DE][Lf]),s);if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[gf]!=null)f[gf]=T(w[gf]);if(w[a]!=null)f[a]=hr(w[a]);if(w[y0]!=null)f[y0]=T(w[y0]);return f},Gl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[pE]!=null)f[pE]=kl(w[pE],s);return f},Al=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w.ResourceTagSets==="")f[dE]=[];else if(w[dE]!=null&&w[dE][pE]!=null)f[dE]=Ip(Gr(w[dE][pE]),s);return f},Ll=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w[A6]!=null)f[A6]=T(w[A6]);if(w.TrafficPolicySummaries==="")f[cE]=[];else if(w[cE]!=null&&w[cE][gM]!=null)f[cE]=Lp(Gr(w[cE][gM]),s);return f},Rl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Rw]!=null)f[Rw]=T(w[Rw]);if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w[xf]!=null)f[xf]=T(w[xf]);if(w[ef]!=null)f[ef]=T(w[ef]);if(w.TrafficPolicyInstances==="")f[Ef]=[];else if(w[Ef]!=null&&w[Ef][If]!=null)f[Ef]=F8(Gr(w[Ef][If]),s);return f},Cl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w[xf]!=null)f[xf]=T(w[xf]);if(w[ef]!=null)f[ef]=T(w[ef]);if(w.TrafficPolicyInstances==="")f[Ef]=[];else if(w[Ef]!=null&&w[Ef][If]!=null)f[Ef]=F8(Gr(w[Ef][If]),s);return f},Wl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Rw]!=null)f[Rw]=T(w[Rw]);if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w[xf]!=null)f[xf]=T(w[xf]);if(w[ef]!=null)f[ef]=T(w[ef]);if(w.TrafficPolicyInstances==="")f[Ef]=[];else if(w[Ef]!=null&&w[Ef][If]!=null)f[Ef]=F8(Gr(w[Ef][If]),s);return f},zl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Ur]!=null)f[Ur]=Nr(w[Ur]);if(w[a]!=null)f[a]=hr(w[a]);if(w.TrafficPolicies==="")f[bE]=[];else if(w[bE]!=null&&w[bE][Rf]!=null)f[bE]=Ap(Gr(w[bE][Rf]),s);if(w[L6]!=null)f[L6]=T(w[L6]);return f},Sl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[rr]!=null)f[rr]=T(w[rr]);if(w[Xr]!=null)f[Xr]=T(w[Xr]);if(w.VPCs==="")f[h0]=[];else if(w[h0]!=null&&w[h0][Cr]!=null)f[h0]=yl(Gr(w[h0][Cr]),s);return f},Yl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[mG]!=null)f[mG]=T(w[mG]);if(w[bG]!=null)f[bG]=T(w[bG]);if(w.RecordData==="")f[iE]=[];else if(w[iE]!=null&&w[iE][bM]!=null)f[iE]=sp(Gr(w[iE][bM]),s);if(w[U6]!=null)f[U6]=T(w[U6]);if(w[T6]!=null)f[T6]=T(w[T6]);if(w[_G]!=null)f[_G]=T(w[_G]);return f},Xl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[zs]!=null)f[zs]=z6(w[zs],s);return f},Kl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Kf]!=null)f[Kf]=S6(w[Kf],s);return f},Zl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[Rf]!=null)f[Rf]=w$(w[Rf],s);return f},Pl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return _(r,s);const f=Y({$metadata:Q(r)}),w=y(c(await x.parseXmlBody(r.body,s)),"body");if(w[If]!=null)f[If]=Y6(w[If],s);return f},_=async(r,s)=>{const f={...r,body:await x.parseXmlErrorBody(r.body,s)},w=x.loadRestXmlErrorCode(r,f.body);switch(w){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await cn(f,s);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await To(f,s);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await Lo(f,s);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await Ao(f,s);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await Co(f,s);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await ko(f,s);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await bn(f,s);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await zo(f,s);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Po(f,s);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Do(f,s);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await mo(f,s);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await jo(f,s);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await vo(f,s);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await jn(f,s);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await dn(f,s);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await Qo(f,s);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await Fo(f,s);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await lo(f,s);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await Oo(f,s);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await vn(f,s);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await pn(f,s);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await co(f,s);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await nn(f,s);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await on(f,s);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await ro(f,s);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await Uo(f,s);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Vo(f,s);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await bo(f,s);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await Io(f,s);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await Go(f,s);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await So(f,s);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await _o(f,s);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await $o(f,s);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await Mo(f,s);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await io(f,s);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await gn(f,s);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await xn(f,s);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await so(f,s);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await Wo(f,s);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await go(f,s);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await oo(f,s);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await No(f,s);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await xo(f,s);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await ao(f,s);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await eo(f,s);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await no(f,s);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await Yo(f,s);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await Xo(f,s);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await On(f,s);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await un(f,s);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await fo(f,s);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await yo(f,s);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await en(f,s);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await po(f,s);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await qo(f,s);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await uo(f,s);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await an(f,s);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Zo(f,s);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await to(f,s);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await ho(f,s);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await Ko(f,s);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await Jo(f,s);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Ho(f,s);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await Eo(f,s);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await wo(f,s);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await Bo(f,s);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await Ro(f,s);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await tn(f,s);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await _n(f,s);default:const h=f.body;return mn({output:r,parsedBody:h.Error,errorCode:w})}},mn=bs(d),jn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[Pr]!=null)f[Pr]=T(w[Pr]);const h=new pI({$metadata:Q(r),...f});return D(h,r.body.Error)},vn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[Pr]!=null)f[Pr]=T(w[Pr]);const h=new w2({$metadata:Q(r),...f});return D(h,r.body.Error)},On=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[Pr]!=null)f[Pr]=T(w[Pr]);const h=new k2({$metadata:Q(r),...f});return D(h,r.body.Error)},dn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[Pr]!=null)f[Pr]=T(w[Pr]);const h=new uI({$metadata:Q(r),...f});return D(h,r.body.Error)},cn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new vI({$metadata:Q(r),...f});return D(h,r.body.Error)},bn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new _I({$metadata:Q(r),...f});return D(h,r.body.Error)},_n=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new u2({$metadata:Q(r),...f});return D(h,r.body.Error)},gn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new Y2({$metadata:Q(r),...f});return D(h,r.body.Error)},xn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new X2({$metadata:Q(r),...f});return D(h,r.body.Error)},en=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new m2({$metadata:Q(r),...f});return D(h,r.body.Error)},nn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new $2({$metadata:Q(r),...f});return D(h,r.body.Error)},on=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new I2({$metadata:Q(r),...f});return D(h,r.body.Error)},an=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new O2({$metadata:Q(r),...f});return D(h,r.body.Error)},pn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new h2({$metadata:Q(r),...f});return D(h,r.body.Error)},un=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new y2({$metadata:Q(r),...f});return D(h,r.body.Error)},tn=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new p2({$metadata:Q(r),...f});return D(h,r.body.Error)},ro=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new F2({$metadata:Q(r),...f});return D(h,r.body.Error)},fo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new N2({$metadata:Q(r),...f});return D(h,r.body.Error)},so=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new K2({$metadata:Q(r),...f});return D(h,r.body.Error)},wo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new n2({$metadata:Q(r),...f});return D(h,r.body.Error)},ho=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new b2({$metadata:Q(r),...f});return D(h,r.body.Error)},Eo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new e2({$metadata:Q(r),...f});return D(h,r.body.Error)},$o=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new W2({$metadata:Q(r),...f});return D(h,r.body.Error)},Io=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new A2({$metadata:Q(r),...f});return D(h,r.body.Error)},Fo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);if(w.messages==="")f[gE]=[];else if(w[gE]!=null&&w[gE][Pr]!=null)f[gE]=ia(Gr(w[gE][Pr]),s);const h=new r2({$metadata:Q(r),...f});return D(h,r.body.Error)},Uo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new U2({$metadata:Q(r),...f});return D(h,r.body.Error)},To=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new iI({$metadata:Q(r),...f});return D(h,r.body.Error)},Go=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new L2({$metadata:Q(r),...f});return D(h,r.body.Error)},Ao=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new OI({$metadata:Q(r),...f});return D(h,r.body.Error)},Lo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new dI({$metadata:Q(r),...f});return D(h,r.body.Error)},Ro=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new a2({$metadata:Q(r),...f});return D(h,r.body.Error)},Co=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new cI({$metadata:Q(r),...f});return D(h,r.body.Error)},Wo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new Z2({$metadata:Q(r),...f});return D(h,r.body.Error)},zo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new gI({$metadata:Q(r),...f});return D(h,r.body.Error)},So=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new R2({$metadata:Q(r),...f});return D(h,r.body.Error)},Yo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new l2({$metadata:Q(r),...f});return D(h,r.body.Error)},Xo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new D2({$metadata:Q(r),...f});return D(h,r.body.Error)},Ko=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new _2({$metadata:Q(r),...f});return D(h,r.body.Error)},Zo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new d2({$metadata:Q(r),...f});return D(h,r.body.Error)},Po=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new xI({$metadata:Q(r),...f});return D(h,r.body.Error)},Jo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new g2({$metadata:Q(r),...f});return D(h,r.body.Error)},Qo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[Pr]!=null)f[Pr]=T(w[Pr]);const h=new tI({$metadata:Q(r),...f});return D(h,r.body.Error)},Bo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[Pr]!=null)f[Pr]=T(w[Pr]);const h=new o2({$metadata:Q(r),...f});return D(h,r.body.Error)},Mo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new z2({$metadata:Q(r),...f});return D(h,r.body.Error)},Vo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new T2({$metadata:Q(r),...f});return D(h,r.body.Error)},Ho=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new x2({$metadata:Q(r),...f});return D(h,r.body.Error)},lo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new f2({$metadata:Q(r),...f});return D(h,r.body.Error)},Do=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new eI({$metadata:Q(r),...f});return D(h,r.body.Error)},ko=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new bI({$metadata:Q(r),...f});return D(h,r.body.Error)},yo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new q2({$metadata:Q(r),...f});return D(h,r.body.Error)},No=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new Q2({$metadata:Q(r),...f});return D(h,r.body.Error)},qo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new v2({$metadata:Q(r),...f});return D(h,r.body.Error)},mo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new nI({$metadata:Q(r),...f});return D(h,r.body.Error)},jo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new oI({$metadata:Q(r),...f});return D(h,r.body.Error)},vo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new aI({$metadata:Q(r),...f});return D(h,r.body.Error)},io=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new S2({$metadata:Q(r),...f});return D(h,r.body.Error)},Oo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new s2({$metadata:Q(r),...f});return D(h,r.body.Error)},co=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new E2({$metadata:Q(r),...f});return D(h,r.body.Error)},bo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new G2({$metadata:Q(r),...f});return D(h,r.body.Error)},_o=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new C2({$metadata:Q(r),...f});return D(h,r.body.Error)},go=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new P2({$metadata:Q(r),...f});return D(h,r.body.Error)},xo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new B2({$metadata:Q(r),...f});return D(h,r.body.Error)},eo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new V2({$metadata:Q(r),...f});return D(h,r.body.Error)},no=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new H2({$metadata:Q(r),...f});return D(h,r.body.Error)},oo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new J2({$metadata:Q(r),...f});return D(h,r.body.Error)},ao=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new M2({$metadata:Q(r),...f});return D(h,r.body.Error)},po=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new j2({$metadata:Q(r),...f});return D(h,r.body.Error)},uo=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new i2({$metadata:Q(r),...f});return D(h,r.body.Error)},to=async(r,s)=>{const f=Y({}),w=r.body.Error;if(w[X]!=null)f[X]=T(w[X]);const h=new c2({$metadata:Q(r),...f});return D(h,r.body.Error)},Jl=(r,s)=>{const f=new H(E0);if(r[ir]!=null)f.c(H.of(dp,r[ir]).n(ir));if(r[n]!=null)f.c(H.of(Wp,r[n]).n(n));return f},ra=(r,s)=>{const f=new H(_w);if(r[rr]!=null)f.c(H.of(F0,r[rr]).n(rr));if(f.cc(r,Ws),r[uh]!=null)f.c(H.of(Cp,String(r[uh])).n(uh));return f},fa=(r,s)=>{const f=new H(ql);if(r[oh]!=null)f.c(H.of(Xp,r[oh]).n(oh));if(r[w1]!=null)f.c(Wa(r[w1],s).n(w1));return f},sa=(r,s)=>{const f=new H(f6);if(r[Fr]!=null)f.c(H.of(G8,r[Fr]).n(Fr));return f.lc(r,"Changes","Changes",()=>wa(r[Nl],s)),f},wa=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return fa(f,s).n(ql)})},Ql=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(nE,f).n($8)})},ha=(r,s)=>{const f=new H(Kp);if(r[ar]!=null)f.c(H.of(Hp,r[ar]).n(ar));if(r[oh]!=null)f.c(H.of(Zp,r[oh]).n(oh));return f.lc(r,"CidrList","CidrList",()=>$a(r[lp],s)),f},Ea=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return ha(f,s).n(Ss)})},$a=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(iM,f).n(iM)})},Ia=(r,s)=>{const f=new H(gw);if(r[ph]!=null)f.c(H.of(Hu,r[ph]).n(ph));if(r[ar]!=null)f.c(H.of(Vp,r[ar]).n(ar));return f},Fa=(r,s)=>{const f=new H(xw);return f.cc(r,$6),f.cc(r,I6),f},Ua=(r,s)=>{const f=new H(ew);if(r[$0]!=null)f.c(H.of(ep,r[$0]).n($0));if(r[I0]!=null)f.c(H.of(np,r[I0]).n(I0));if(r[U0]!=null)f.c(H.of(op,r[U0]).n(U0));return f},Ta=(r,s)=>{const f=new H(nw);if(f.cc(r,r6),f.cc(r,E6),r[xw]!=null)f.c(Fa(r[xw],s).n(xw));if(r[Ow]!=null)f.c(H.of(Ow,String(r[Ow])).n(Ow));return f},Ga=(r,s)=>{const f=new H(ow);if(f.cc(r,Cw),r[Cs]!=null)f.c(H.of(Cs,String(r[Cs])).n(Cs));if(r[Lr]!=null)f.c(H.of(up,r[Lr]).n(Lr));if(f.cc(r,aE),f.cc(r,xE),f.cc(r,uE),r[bw]!=null)f.c(H.of(bw,String(r[bw])).n(bw));if(r[As]!=null)f.c(H.of(As,String(r[As])).n(As));if(r[cw]!=null)f.c(H.of(cw,String(r[cw])).n(cw));if(r[Rs]!=null)f.c(H.of(Rs,String(r[Rs])).n(Rs));if(r[Ts]!=null)f.c(H.of(Ts,String(r[Ts])).n(Ts));if(r[Ls]!=null)f.c(H.of(Ls,String(r[Ls])).n(Ls));if(f.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>Ql(r[vw],s)),r[Gs]!=null)f.c(H.of(Gs,String(r[Gs])).n(Gs));if(f.lc(r,"Regions","Regions",()=>Bl(r[iw],s)),r[E0]!=null)f.c(Jl(r[E0],s).n(E0));return f.cc(r,oE),f.cc(r,F6),f},Bl=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(pp,f).n(ir)})},Aa=(r,s)=>{const f=new H(h6);if(r[Fr]!=null)f.c(H.of(G8,r[Fr]).n(Fr));if(r[s1]!=null)f.c(H.of(ru,String(r[s1])).n(s1));return f},La=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(_M,f).n(_M)})},Ra=(r,s)=>{const f=new H(C6);if(r[Kr]!=null)f.c(H.of(su,r[Kr]).n(Kr));return f},Ca=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return Ra(f,s).n(C6)})},Wa=(r,s)=>{const f=new H(w1);if(r[n]!=null)f.c(H.of(Ws,r[n]).n(n));if(r[Lr]!=null)f.c(H.of(Gu,r[Lr]).n(Lr));if(r[h1]!=null)f.c(H.of(Iu,r[h1]).n(h1));if(r[I1]!=null)f.c(H.of(Tu,String(r[I1])).n(I1));if(r[ir]!=null)f.c(H.of(Uu,r[ir]).n(ir));if(r[ew]!=null)f.c(Ua(r[ew],s).n(ew));if(r[th]!=null)f.c(H.of($u,r[th]).n(th));if(r[f1]!=null)f.c(H.of(Fu,String(r[f1])).n(f1));if(r[vr]!=null)f.c(H.of(vr,String(r[vr])).n(vr));if(f.lc(r,"ResourceRecords","ResourceRecords",()=>Ca(r[nh],s)),r[_w]!=null)f.c(ra(r[_w],s).n(_w));if(f.cc(r,nE),f.cc(r,G6),r[gw]!=null)f.c(Ia(r[gw],s).n(gw));if(r[nw]!=null)f.c(Ta(r[nw],s).n(nw));return f},za=(r,s)=>{const f=new H(W6);if(r[aw]!=null)f.c(H.of(ml,r[aw]).n(aw));if(r[Kr]!=null)f.c(H.of(Ju,r[Kr]).n(Kr));return f},Sa=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(ml,f).n(aw)})},Ya=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return za(f,s).n(W6)})},Xa=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(Pu,f).n(F0)})},f$=(r,s)=>{const f=new H(Cr);return f.cc(r,r$),f.cc(r,tE),f},Ka=(r,s)=>{const f={};if(r[Lr]!=null)f[Lr]=T(r[Lr]);if(r[Kr]!=null)f[Kr]=xr(r[Kr]);return f},Za=(r,s)=>{const f={};if(r[ir]!=null)f[ir]=T(r[ir]);if(r[n]!=null)f[n]=T(r[n]);return f},Pa=(r,s)=>{const f={};if(r[rr]!=null)f[rr]=T(r[rr]);if(r[Ws]!=null)f[Ws]=T(r[Ws]);if(r[uh]!=null)f[uh]=Nr(r[uh]);return f},nf=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[$f]!=null)f[$f]=T(r[$f]);if(r[eG]!=null)f[eG]=y(yw(r[eG]));if(r[Fr]!=null)f[Fr]=T(r[Fr]);return f},Ja=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},Qa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},Ba=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Ma(f,s)})},Ma=(r,s)=>{const f={};if(r[sG]!=null)f[sG]=T(r[sG]);if(r[ar]!=null)f[ar]=T(r[ar]);return f},Va=(r,s)=>{const f={};if(r[ah]!=null)f[ah]=T(r[ah]);if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[n]!=null)f[n]=T(r[n]);if(r[N0]!=null)f[N0]=xr(r[N0]);return f},Ha=(r,s)=>{const f={};if(r[ph]!=null)f[ph]=T(r[ph]);if(r[ar]!=null)f[ar]=T(r[ar]);return f},la=(r,s)=>{const f={};if(r[zG]!=null)f[zG]=hr(r[zG]);if(r[E8]!=null)f[E8]=KZ(r[E8]);if(r[$G]!=null)f[$G]=T(r[$G]);if(r[cG]!=null)f[cG]=hr(r[cG]);if(r[MG]!=null)f[MG]=T(r[MG]);if(r[jG]!=null)f[jG]=T(r[jG]);if(r[r8]!=null)f[r8]=T(r[r8]);if(r.Dimensions==="")f[kE]=[];else if(r[kE]!=null&&r[kE][OM]!=null)f[kE]=ja(Gr(r[kE][OM]),s);return f},Da=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return ka(f,s)})},ka=(r,s)=>{const f={};if(r[ah]!=null)f[ah]=T(r[ah]);if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[n]!=null)f[n]=T(r[n]);if(r[N0]!=null)f[N0]=xr(r[N0]);return f},ya=(r,s)=>{const f={};if(r[$6]!=null)f[$6]=T(r[$6]);if(r[I6]!=null)f[I6]=T(r[I6]);return f},s$=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[Yr]!=null)f[Yr]=T(r[Yr]);if(r.NameServers==="")f[jE]=[];else if(r[jE]!=null&&r[jE][cM]!=null)f[jE]=Na(Gr(r[jE][cM]),s);return f},Na=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},qa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return s$(f,s)})},ma=(r,s)=>{const f={};if(r[n]!=null)f[n]=T(r[n]);if(r[Kr]!=null)f[Kr]=T(r[Kr]);return f},ja=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return ma(f,s)})},va=(r,s)=>{const f={};if(r[tG]!=null)f[tG]=T(r[tG]);if(r[E1]!=null)f[E1]=T(r[E1]);return f},ia=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},Oa=(r,s)=>{const f={};if(r[$0]!=null)f[$0]=T(r[$0]);if(r[I0]!=null)f[I0]=T(r[I0]);if(r[U0]!=null)f[U0]=T(r[U0]);return f},Ml=(r,s)=>{const f={};if(r[$0]!=null)f[$0]=T(r[$0]);if(r[hG]!=null)f[hG]=T(r[hG]);if(r[I0]!=null)f[I0]=T(r[I0]);if(r[EG]!=null)f[EG]=T(r[EG]);if(r[U0]!=null)f[U0]=T(r[U0]);if(r[aG]!=null)f[aG]=T(r[aG]);return f},da=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Ml(f,s)})},ca=(r,s)=>{const f={};if(r[r6]!=null)f[r6]=T(r[r6]);if(r[E6]!=null)f[E6]=T(r[E6]);if(r[xw]!=null)f[xw]=ya(r[xw],s);if(r[Ow]!=null)f[Ow]=hr(r[Ow]);return f},z6=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[Yr]!=null)f[Yr]=T(r[Yr]);if(r[r1]!=null)f[r1]=Dl(r[r1],s);if(r[ow]!=null)f[ow]=ba(r[ow],s);if(r[dw]!=null)f[dw]=xr(r[dw]);if(r[FG]!=null)f[FG]=la(r[FG],s);return f},ba=(r,s)=>{const f={};if(r[Cw]!=null)f[Cw]=T(r[Cw]);if(r[Cs]!=null)f[Cs]=hr(r[Cs]);if(r[Lr]!=null)f[Lr]=T(r[Lr]);if(r[aE]!=null)f[aE]=T(r[aE]);if(r[xE]!=null)f[xE]=T(r[xE]);if(r[uE]!=null)f[uE]=T(r[uE]);if(r[bw]!=null)f[bw]=hr(r[bw]);if(r[As]!=null)f[As]=hr(r[As]);if(r[cw]!=null)f[cw]=Nr(r[cw]);if(r[Rs]!=null)f[Rs]=Nr(r[Rs]);if(r[Ts]!=null)f[Ts]=Nr(r[Ts]);if(r[Ls]!=null)f[Ls]=hr(r[Ls]);if(r.ChildHealthChecks==="")f[vw]=[];else if(r[vw]!=null&&r[vw][$8]!=null)f[vw]=Qa(Gr(r[vw][$8]),s);if(r[Gs]!=null)f[Gs]=Nr(r[Gs]);if(r.Regions==="")f[iw]=[];else if(r[iw]!=null&&r[iw][ir]!=null)f[iw]=ga(Gr(r[iw][ir]),s);if(r[E0]!=null)f[E0]=Za(r[E0],s);if(r[oE]!=null)f[oE]=T(r[oE]);if(r[F6]!=null)f[F6]=T(r[F6]);return f},_a=(r,s)=>{const f={};if(r[ir]!=null)f[ir]=T(r[ir]);if(r[Cw]!=null)f[Cw]=T(r[Cw]);if(r[uG]!=null)f[uG]=Up(r[uG],s);return f},Vl=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return _a(f,s)})},ga=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},xa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return z6(f,s)})},S6=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[n]!=null)f[n]=T(r[n]);if(r[Yr]!=null)f[Yr]=T(r[Yr]);if(r[TG]!=null)f[TG]=ea(r[TG],s);if(r[gG]!=null)f[gG]=xr(r[gG]);if(r[r1]!=null)f[r1]=Dl(r[r1],s);return f},ea=(r,s)=>{const f={};if(r[Fr]!=null)f[Fr]=T(r[Fr]);if(r[s1]!=null)f[s1]=Nr(r[s1]);return f},na=(r,s)=>{const f={};if(r[Lr]!=null)f[Lr]=T(r[Lr]);if(r[Kr]!=null)f[Kr]=xr(r[Kr]);return f},oa=(r,s)=>{const f={};if(r[iG]!=null)f[iG]=T(r[iG]);if(r[OG]!=null)f[OG]=T(r[OG]);return f},Hl=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return S6(f,s)})},aa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return pa(f,s)})},pa=(r,s)=>{const f={};if(r[rr]!=null)f[rr]=T(r[rr]);if(r[n]!=null)f[n]=T(r[n]);if(r[vG]!=null)f[vG]=oa(r[vG],s);return f},ll=(r,s)=>{const f={};if(r[n]!=null)f[n]=T(r[n]);if(r[KG]!=null)f[KG]=T(r[KG]);if(r[SG]!=null)f[SG]=hr(r[SG]);if(r[nG]!=null)f[nG]=T(r[nG]);if(r[oG]!=null)f[oG]=hr(r[oG]);if(r[GG]!=null)f[GG]=T(r[GG]);if(r[AG]!=null)f[AG]=hr(r[AG]);if(r[JG]!=null)f[JG]=hr(r[JG]);if(r[CG]!=null)f[CG]=T(r[CG]);if(r[dG]!=null)f[dG]=T(r[dG]);if(r[RG]!=null)f[RG]=T(r[RG]);if(r[LG]!=null)f[LG]=T(r[LG]);if(r[$f]!=null)f[$f]=T(r[$f]);if(r[E1]!=null)f[E1]=T(r[E1]);if(r[wG]!=null)f[wG]=y(yw(r[wG]));if(r[QG]!=null)f[QG]=y(yw(r[QG]));return f},ua=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return ll(f,s)})},Dl=(r,s)=>{const f={};if(r[pG]!=null)f[pG]=T(r[pG]);if(r[WG]!=null)f[WG]=T(r[WG]);return f},ta=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return rp(f,s)})},rp=(r,s)=>{const f={};if(r[ar]!=null)f[ar]=T(r[ar]);return f},I8=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[rr]!=null)f[rr]=T(r[rr]);if(r[s6]!=null)f[s6]=T(r[s6]);return f},fp=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return I8(f,s)})},sp=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},wp=(r,s)=>{const f={};if(r[Kr]!=null)f[Kr]=T(r[Kr]);return f},hp=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return wp(f,s)})},Ep=(r,s)=>{const f={};if(r[n]!=null)f[n]=T(r[n]);if(r[Lr]!=null)f[Lr]=T(r[Lr]);if(r[h1]!=null)f[h1]=T(r[h1]);if(r[I1]!=null)f[I1]=xr(r[I1]);if(r[ir]!=null)f[ir]=T(r[ir]);if(r[ew]!=null)f[ew]=Oa(r[ew],s);if(r[th]!=null)f[th]=T(r[th]);if(r[f1]!=null)f[f1]=Nr(r[f1]);if(r[vr]!=null)f[vr]=xr(r[vr]);if(r.ResourceRecords==="")f[nh]=[];else if(r[nh]!=null&&r[nh][C6]!=null)f[nh]=hp(Gr(r[nh][C6]),s);if(r[_w]!=null)f[_w]=Pa(r[_w],s);if(r[nE]!=null)f[nE]=T(r[nE]);if(r[G6]!=null)f[G6]=T(r[G6]);if(r[gw]!=null)f[gw]=Ha(r[gw],s);if(r[nw]!=null)f[nw]=ca(r[nw],s);return f},$p=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Ep(f,s)})},kl=(r,s)=>{const f={};if(r[xG]!=null)f[xG]=T(r[xG]);if(r[F0]!=null)f[F0]=T(r[F0]);if(r.Tags==="")f[_E]=[];else if(r[_E]!=null&&r[_E][W6]!=null)f[_E]=Gp(Gr(r[_E][W6]),s);return f},Ip=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return kl(f,s)})},Fp=(r,s)=>{const f={};if(r[Lr]!=null)f[Lr]=T(r[Lr]);if(r[Kr]!=null)f[Kr]=xr(r[Kr]);return f},Up=(r,s)=>{const f={};if(r[$f]!=null)f[$f]=T(r[$f]);if(r[IG]!=null)f[IG]=y(yw(r[IG]));return f},Tp=(r,s)=>{const f={};if(r[aw]!=null)f[aw]=T(r[aw]);if(r[Kr]!=null)f[Kr]=T(r[Kr]);return f},Gp=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Tp(f,s)})},Ap=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return w$(f,s)})},w$=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[N0]!=null)f[N0]=hr(r[N0]);if(r[n]!=null)f[n]=T(r[n]);if(r[Lr]!=null)f[Lr]=T(r[Lr]);if(r[D0]!=null)f[D0]=T(r[D0]);if(r[Fr]!=null)f[Fr]=T(r[Fr]);return f},Y6=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[rr]!=null)f[rr]=T(r[rr]);if(r[n]!=null)f[n]=T(r[n]);if(r[vr]!=null)f[vr]=xr(r[vr]);if(r[f8]!=null)f[f8]=T(r[f8]);if(r[Pr]!=null)f[Pr]=T(r[Pr]);if(r[$1]!=null)f[$1]=T(r[$1]);if(r[_f]!=null)f[_f]=hr(r[_f]);if(r[h8]!=null)f[h8]=T(r[h8]);return f},F8=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Y6(f,s)})},Lp=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Rp(f,s)})},Rp=(r,s)=>{const f={};if(r[Tr]!=null)f[Tr]=T(r[Tr]);if(r[n]!=null)f[n]=T(r[n]);if(r[Lr]!=null)f[Lr]=T(r[Lr]);if(r[BG]!=null)f[BG]=hr(r[BG]);if(r[s8]!=null)f[s8]=hr(r[s8]);return f},U8=(r,s)=>{const f={};if(r[r$]!=null)f[r$]=T(r[r$]);if(r[tE]!=null)f[tE]=T(r[tE]);return f},yl=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return U8(f,s)})},Q=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var oh="Action",Cp="AliasHealthEnabled",E0="AlarmIdentifier",Wp="AlarmName",zp="AddTags",_w="AliasTarget",Sp="AssociateVPCComment",Yp="AssociateVPCWithHostedZoneRequest",r6="AWSRegion",ah="Arn",Ow="Bias",Fr="Comment",Xp="ChangeAction",f6="ChangeBatch",ME="CidrBlocks",sG="CidrBlock",$0="ContinentCode",Kp="CidrCollectionChange",Zp="CidrCollectionChangeAction",Pp="ChangeCidrCollectionRequest",Jp="CreateCidrCollectionRequest",VE="CidrCollections",I0="CountryCode",wG="CreatedDate",vw="ChildHealthChecks",Qp="CreateHealthCheckRequest",$8="ChildHealthCheck",Bp="CreateHostedZoneRequest",wr="ChangeInfo",HE="CheckerIpRanges",ph="CollectionId",Mp="CreateKeySigningKeyRequest",lE="CidrLocations",Vp="CidrLocationNameDefaultAllowed",Hp="CidrLocationNameDefaultNotAllowed",lp="CidrList",Dp="CidrNonce",kp="CollectionName",hG="ContinentName",EG="CountryName",$G="ComparisonOperator",yp="CreateQueryLoggingConfigRequest",Yr="CallerReference",gw="CidrRoutingConfig",Np="CreateReusableDelegationSetRequest",qp="ChangeResourceRecordSetsRequest",IG="CheckedTime",mp="ChangeTagsForResourceRequest",jp="CreateTrafficPolicyInstanceRequest",vp="CreateTrafficPolicyRequest",ip="CreateTrafficPolicyVersionRequest",t2="CollectionVersion",Op="CreateVPCAssociationAuthorizationRequest",FG="CloudWatchAlarmConfiguration",s6="CloudWatchLogsLogGroupArn",dp="CloudWatchRegion",Nl="Changes",ql="Change",iM="Cidr",UG="Collection",TG="Config",xw="Coordinates",l0="Count",D0="Document",GG="DigestAlgorithmMnemonic",AG="DigestAlgorithmType",LG="DNSKEYRecord",Ws="DNSName",Lf="DelegationSet",w6="DelegationSetId",RG="DSRecord",DE="DelegationSets",CG="DigestValue",cp="DeleteVPCAssociationAuthorizationRequest",bp="DisassociateVPCComment",_p="DisassociateVPCFromHostedZoneRequest",WG="Description",Ts="Disabled",kE="Dimensions",OM="Dimension",gp="EDNS0ClientSubnetIP",xp="EDNS0ClientSubnetMask",zG="EvaluationPeriods",Gs="EnableSNI",uh="EvaluateTargetHealth",th="Failover",xE="FullyQualifiedDomainName",As="FailureThreshold",SG="Flag",ew="GeoLocation",ep="GeoLocationContinentCode",np="GeoLocationCountryCode",eE="GeoLocationDetails",yE="GeoLocationDetailsList",op="GeoLocationSubdivisionCode",nw="GeoProximityLocation",zs="HealthCheck",ow="HealthCheckConfig",YG="HealthCheckCount",nE="HealthCheckId",ap="HealthCheckNonce",s0="HealthCheckObservations",R6="HealthCheckObservation",pp="HealthCheckRegion",up="HealthCheckType",dw="HealthCheckVersion",NE="HealthChecks",Ls="HealthThreshold",Kf="HostedZone",h6="HostedZoneConfig",XG="HostedZoneCount",rr="HostedZoneId",Rw="HostedZoneIdMarker",qE="HostedZoneSummaries",dM="HostedZoneSummary",tp="HostedZoneType",w0="HostedZones",Rs="Inverted",oE="InsufficientDataHealthStatus",Cw="IPAddress",ru="IsPrivateZone",Ur="IsTruncated",Tr="Id",aw="Key",KG="KmsArn",ZG="KeyManagementServiceArn",PG="KeySigningKey",mE="KeySigningKeys",JG="KeyTag",q0="Location",QG="LastModifiedDate",ar="LocationName",r1="LinkedService",fu="ListTagsForResourcesRequest",BG="LatestVersion",E6="LocalZoneGroup",$6="Latitude",k0="Limit",I6="Longitude",gf="Marker",a="MaxItems",cw="MeasureLatency",MG="MetricName",h$="MaxResults",f1="MultiValueAnswer",Pr="Message",n="Name",VG="NextContinentCode",HG="NextCountryCode",lG="NextDNSName",DG="NextHostedZoneId",y0="NextMarker",kG="NextRecordIdentifier",yG="NextRecordName",NG="NextRecordType",jE="NameServers",qG="NextSubdivisionCode",cM="NameServer",Xr="NextToken",mG="Nameserver",jG="Namespace",T8="Nonce",vG="Owner",iG="OwningAccount",OG="OwningService",Cs="Port",dG="PublicKey",s1="PrivateZone",cG="Period",bG="Protocol",Ww="QueryLoggingConfig",vE="QueryLoggingConfigs",iw="Regions",_G="ResponseCode",F6="RoutingControlArn",G8="ResourceDescription",bM="RecordDataEntry",su="RData",iE="RecordData",wu="ResetElements",_M="ResettableElementName",F0="ResourceId",hu="ResolverIP",Eu="ResourceIds",bw="RequestInterval",U6="RecordName",aE="ResourcePath",C6="ResourceRecord",OE="ResourceRecordSets",gG="ResourceRecordSetCount",$u="ResourceRecordSetFailover",Iu="ResourceRecordSetIdentifier",Fu="ResourceRecordSetMultiValueAnswer",Uu="ResourceRecordSetRegion",Tu="ResourceRecordSetWeight",w1="ResourceRecordSet",Gu="RRType",nh="ResourceRecords",T6="RecordType",Au="RemoveTagKeys",pE="ResourceTagSet",dE="ResourceTagSets",xG="ResourceType",ir="Region",$f="Status",eG="SubmittedAt",nG="SigningAlgorithmMnemonic",oG="SigningAlgorithmType",U0="SubdivisionCode",Lu="StartContinentCode",Ru="StartCountryCode",h1="SetIdentifier",Cu="SigningKeyName",Wu="SigningKeyString",zu="SigningKeyStatus",E1="StatusMessage",aG="SubdivisionName",pG="ServicePrincipal",uG="StatusReport",Su="StartRecordIdentifier",Yu="StartRecordName",Xu="StartRecordType",uE="SearchString",Ku="StartSubdivisionCode",tG="ServeSignature",r8="Statistic",f8="State",Lr="Type",ml="TagKey",Rf="TrafficPolicy",A8="TrafficPolicyComment",s8="TrafficPolicyCount",jl="TrafficPolicyDocument",$1="TrafficPolicyId",w8="TrafficPolicyInstanceCount",G6="TrafficPolicyInstanceId",A6="TrafficPolicyIdMarker",xf="TrafficPolicyInstanceNameMarker",ef="TrafficPolicyInstanceTypeMarker",If="TrafficPolicyInstance",Ef="TrafficPolicyInstances",Zu="TrafficPolicyName",cE="TrafficPolicySummaries",gM="TrafficPolicySummary",h8="TrafficPolicyType",_f="TrafficPolicyVersion",L6="TrafficPolicyVersionMarker",bE="TrafficPolicies",Pu="TagResourceId",vr="TTL",Ju="TagValue",W6="Tag",_E="Tags",E8="Threshold",Qu="UpdateHealthCheckRequest",Bu="UpdateHostedZoneCommentRequest",Mu="UpdateTrafficPolicyCommentRequest",Vu="UpdateTrafficPolicyInstanceRequest",Hu="UUID",Kr="Value",Cr="VPC",tE="VPCId",r$="VPCRegion",h0="VPCs",N0="Version",I1="Weight",lu="continentcode",Du="countrycode",ku="delegationsetid",yu="dnsname",Nu="edns0clientsubnetip",qu="edns0clientsubnetmask",mu="hostedzonetype",E$="hostedzoneid",ju="identifier",vl="id",T0="location",$$="maxresults",of="maxitems",L8="marker",Ss="member",X="message",gE="messages",F1="nexttoken",vu="name",iu="recordname",Ou="recordtype",du="resolverip",cu="subdivisioncode",bu="startcontinentcode",_u="startcountrycode",gu="startsubdivisioncode",xu="type",eu="trafficpolicyid",R8="trafficpolicyinstancename",C8="trafficpolicyinstancetype",nu="trafficpolicyversion",ou="vpcid",lr='<?xml version="1.0" encoding="UTF-8"?>',au="version",pu="vpcregion";class W8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(xM).de(FH).build(){}B();V();K();class z8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(eM).de(UH).build(){}B();V();K();class S8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(nM).de(TH).build(){}B();V();K();class Y8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),mM(f),j(f)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(oM).de(GH).build(){}B();V();K();class X8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(aM).de(AH).build(){}B();V();K();class K8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(pM).de(LH).build(){}B();V();K();class Z8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(uM).de(RH).build(){}B();V();K();class P8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(tM).de(CH).build(){}B();V();K();class J8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(rV).de(WH).build(){}B();V();K();class Q8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(fV).de(zH).build(){}B();V();K();class B8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(sV).de(SH).build(){}B();V();K();class M8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(wV).de(YH).build(){}B();V();K();class V8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(hV).de(XH).build(){}B();V();K();class H8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(EV).de(KH).build(){}B();V();K();class l8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser($V).de(ZH).build(){}B();V();K();class D8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(IV).de(PH).build(){}B();V();K();class k8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(FV).de(JH).build(){}B();V();K();class y8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(UV).de(QH).build(){}B();V();K();class N8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(TV).de(BH).build(){}B();V();K();class q8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(GV).de(MH).build(){}B();V();K();class m8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(AV).de(VH).build(){}B();V();K();class j8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(LV).de(HH).build(){}B();V();K();class v8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(RV).de(lH).build(){}B();V();K();class i8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(CV).de(DH).build(){}B();V();K();class O8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(WV).de(kH).build(){}B();V();K();class d8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(zV).de(yH).build(){}B();V();K();class c8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(SV).de(NH).build(){}B();V();K();class b8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(YV).de(qH).build(){}B();V();K();class _8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(XV).de(mH).build(){}B();V();K();class g8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(KV).de(jH).build(){}B();V();K();class x8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(ZV).de(vH).build(){}B();V();K();class e8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(PV).de(iH).build(){}B();V();K();class n8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(JV).de(OH).build(){}B();V();K();class o8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(QV).de(dH).build(){}B();V();K();class a8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(BV).de(cH).build(){}B();V();K();class p8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(MV).de(bH).build(){}B();V();K();class u8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(VV).de(_H).build(){}B();V();K();class t8 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(HV).de(gH).build(){}B();V();K();class r4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(lV).de(xH).build(){}B();V();K();class f4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(DV).de(eH).build(){}B();V();K();class s4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(kV).de(nH).build(){}B();V();K();class w4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(yV).de(oH).build(){}B();V();K();class h4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(NV).de(aH).build(){}B();V();K();class E4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(qV).de(pH).build(){}B();V();K();class $4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(mV).de(uH).build(){}B();V();K();class I4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(jV).de(tH).build(){}B();V();K();class F4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(vV).de(rl).build(){}B();V();K();class U4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(iV).de(fl).build(){}B();V();K();class T4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(OV).de(sl).build(){}B();V();K();class G4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(dV).de(wl).build(){}B();V();K();class A4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(cV).de(hl).build(){}B();V();K();class L4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(_V).de($l).build(){}B();V();K();class R4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(gV).de(Il).build(){}B();V();K();class C4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(bV).de(El).build(){}B();V();K();class W4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(xV).de(Fl).build(){}B();V();K();class z4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(eV).de(Ul).build(){}B();V();K();class S4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(nV).de(Tl).build(){}B();V();K();class Y4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(oV).de(Gl).build(){}B();V();K();class X4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(aV).de(Al).build(){}B();V();K();class K4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(pV).de(Ll).build(){}B();V();K();class Z4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(tV).de(Cl).build(){}B();V();K();class P4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(rH).de(Wl).build(){}B();V();K();class J4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(uV).de(Rl).build(){}B();V();K();class Q4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(fH).de(zl).build(){}B();V();K();class B4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(sH).de(Sl).build(){}B();V();K();class M4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(wH).de(Yl).build(){}B();V();K();class V4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(hH).de(Xl).build(){}B();V();K();class H4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(EH).de(Kl).build(){}B();V();K();class l4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser($H).de(Zl).build(){}B();V();K();class D4 extends R.classBuilder().ep(J).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions()),j(f)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(IH).de(Pl).build(){}var uu={ActivateKeySigningKeyCommand:W8,AssociateVPCWithHostedZoneCommand:z8,ChangeCidrCollectionCommand:S8,ChangeResourceRecordSetsCommand:Y8,ChangeTagsForResourceCommand:X8,CreateCidrCollectionCommand:K8,CreateHealthCheckCommand:Z8,CreateHostedZoneCommand:P8,CreateKeySigningKeyCommand:J8,CreateQueryLoggingConfigCommand:Q8,CreateReusableDelegationSetCommand:B8,CreateTrafficPolicyCommand:M8,CreateTrafficPolicyInstanceCommand:V8,CreateTrafficPolicyVersionCommand:H8,CreateVPCAssociationAuthorizationCommand:l8,DeactivateKeySigningKeyCommand:D8,DeleteCidrCollectionCommand:k8,DeleteHealthCheckCommand:y8,DeleteHostedZoneCommand:N8,DeleteKeySigningKeyCommand:q8,DeleteQueryLoggingConfigCommand:m8,DeleteReusableDelegationSetCommand:j8,DeleteTrafficPolicyCommand:v8,DeleteTrafficPolicyInstanceCommand:i8,DeleteVPCAssociationAuthorizationCommand:O8,DisableHostedZoneDNSSECCommand:d8,DisassociateVPCFromHostedZoneCommand:c8,EnableHostedZoneDNSSECCommand:b8,GetAccountLimitCommand:_8,GetChangeCommand:g8,GetCheckerIpRangesCommand:x8,GetDNSSECCommand:e8,GetGeoLocationCommand:n8,GetHealthCheckCommand:o8,GetHealthCheckCountCommand:a8,GetHealthCheckLastFailureReasonCommand:p8,GetHealthCheckStatusCommand:u8,GetHostedZoneCommand:t8,GetHostedZoneCountCommand:r4,GetHostedZoneLimitCommand:f4,GetQueryLoggingConfigCommand:s4,GetReusableDelegationSetCommand:w4,GetReusableDelegationSetLimitCommand:h4,GetTrafficPolicyCommand:E4,GetTrafficPolicyInstanceCommand:$4,GetTrafficPolicyInstanceCountCommand:I4,ListCidrBlocksCommand:F4,ListCidrCollectionsCommand:U4,ListCidrLocationsCommand:T4,ListGeoLocationsCommand:G4,ListHealthChecksCommand:A4,ListHostedZonesCommand:C4,ListHostedZonesByNameCommand:L4,ListHostedZonesByVPCCommand:R4,ListQueryLoggingConfigsCommand:W4,ListResourceRecordSetsCommand:z4,ListReusableDelegationSetsCommand:S4,ListTagsForResourceCommand:Y4,ListTagsForResourcesCommand:X4,ListTrafficPoliciesCommand:K4,ListTrafficPolicyInstancesCommand:J4,ListTrafficPolicyInstancesByHostedZoneCommand:Z4,ListTrafficPolicyInstancesByPolicyCommand:P4,ListTrafficPolicyVersionsCommand:Q4,ListVPCAssociationAuthorizationsCommand:B4,TestDNSAnswerCommand:M4,UpdateHealthCheckCommand:V4,UpdateHostedZoneCommentCommand:H4,UpdateTrafficPolicyCommentCommand:l4,UpdateTrafficPolicyInstanceCommand:D4};class zw extends rG{}ds(uu,zw);pw();uw();tw();Bw();lf();var U1=m(qr(),1);Lh();B();Is();K();var il=m(Qr(),1);Es();function tu(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}var Ol=async(r,s,f)=>{return{operation:Vf(s).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},dl=(r)=>{const s=[];switch(r.operation){default:s.push(tu(r))}return s},cl=(r)=>{return{...il.resolveAwsSdkSigV4Config(r)}};var bl=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},g={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var _l={name:"@aws-sdk/client-route-53-domains",description:"AWS SDK for JavaScript Route 53 Domains Client for Node.js, Browser and React Native",version:"3.668.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53-domains","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53-domains"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.668.0","@aws-sdk/client-sts":"3.668.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.668.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53-domains",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53-domains"}};var ED=m(Qr(),1);e1();Jh();lf();Qh();Is();Ns();a0();Bh();zf();var wD=m(Qr(),1);K();n0();S0();Os();Pw();ws();var gl={["required"]:!1,type:"String"},xl={["required"]:!0,default:!1,type:"Boolean"},el={["ref"]:"Endpoint"},tl={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},rD={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},G0={},nl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},ol={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},al=[tl],pl=[rD],ul=[{["ref"]:"Region"}],ft={version:"1.0",parameters:{Region:gl,UseDualStack:xl,UseFIPS:xl,Endpoint:gl},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[el]}],rules:[{conditions:al,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:pl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:el,properties:G0,headers:G0},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:ul}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:ul,assign:"PartitionResult"}],rules:[{conditions:[tl,rD],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,nl]},ol],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:G0,headers:G0},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:al,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[nl,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:G0,headers:G0},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:pl,rules:[{conditions:[ol],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:G0,headers:G0},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:G0,headers:G0},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},fD=ft;var st=new fs({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),sD=(r,s={})=>{return st.get(r,()=>ss(fD,{endpointParams:r,logger:s.logger}))};ur.aws=hs;var hD=(r)=>{return{apiVersion:"2014-05-15",base64Decoder:r?.base64Decoder??Uf,base64Encoder:r?.base64Encoder??Gf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??sD,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??dl,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new wD.AwsSdkSigV4Signer}],logger:r?.logger??new Yf,serviceId:r?.serviceId??"Route 53 Domains",urlParser:r?.urlParser??br,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Tf}};K();Mh();K();var $D=(r)=>{gs(process.version);const s=us(r),f=()=>s().then(_s),w=hD(r);return ED.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??ps,credentialDefaultProvider:r?.credentialDefaultProvider??X0,defaultUserAgentProvider:r?.defaultUserAgentProvider??os({serviceId:w.serviceId,clientVersion:_l.version}),maxAttempts:r?.maxAttempts??u(js),region:r?.region??u(Hf,Ds),requestHandler:ff.create(r?.requestHandler??f),retryMode:r?.retryMode??u({...is,default:async()=>(await f()).retryMode||Nf}),sha256:r?.sha256??Fs.bind(null,"sha256"),streamCollector:r?.streamCollector??qf,useDualstackEndpoint:r?.useDualstackEndpoint??u(Hs),useFipsEndpoint:r?.useFipsEndpoint??u(ls),userAgentAppId:r?.userAgentAppId??u(as)}};Vh();kr();K();var ID=(r)=>{const s=r.httpAuthSchemes;let{httpAuthSchemeProvider:f,credentials:w}=r;return{setHttpAuthScheme(h){const E=s.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)s.push(h);else s.splice(E,1,h)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(h){f=h},httpAuthSchemeProvider(){return f},setCredentials(h){w=h},credentials(){return w}}},FD=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var X6=(r)=>r,UD=(r,s)=>{const f={...X6(ts(r)),...X6(xs(r)),...X6(Xs(r)),...X6(ID(r))};return s.forEach((w)=>w.configure(f)),{...r,...r0(f),...es(f),...Ks(f),...FD(f)}};class k4 extends Sf{constructor(...[r]){const s=$D(r||{}),f=bl(s),w=Ms(f),h=vs(w),E=ks(h),$=Zs(E),I=qs($),F=cl(I),U=UD(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ys(this.config)),this.middlewareStack.use(Ps(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(Qs(this.config)),this.middlewareStack.use(U1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ol,identityProviderConfigProvider:async(A)=>new U1.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(U1.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}K();B();V();K();K();K();class af extends mf{constructor(r){super(r);Object.setPrototypeOf(this,af.prototype)}}class K6 extends af{constructor(r){super({name:"DomainLimitExceeded",$fault:"client",...r});this.name="DomainLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,K6.prototype)}}class Z6 extends af{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,Z6.prototype)}}class P6 extends af{constructor(r){super({name:"OperationLimitExceeded",$fault:"client",...r});this.name="OperationLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,P6.prototype)}}class J6 extends af{constructor(r){super({name:"UnsupportedTLD",$fault:"client",...r});this.name="UnsupportedTLD",this.$fault="client",Object.setPrototypeOf(this,J6.prototype)}}class Q6 extends af{constructor(r){super({name:"DnssecLimitExceeded",$fault:"client",...r});this.name="DnssecLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,Q6.prototype)}}class B6 extends af{constructor(r){super({name:"DuplicateRequest",$fault:"client",...r});this.name="DuplicateRequest",this.$fault="client",Object.setPrototypeOf(this,B6.prototype),this.requestId=r.requestId}}class M6 extends af{constructor(r){super({name:"TLDRulesViolation",$fault:"client",...r});this.name="TLDRulesViolation",this.$fault="client",Object.setPrototypeOf(this,M6.prototype)}}var TD=(r)=>({...r,...r.Password&&{Password:o}}),GD=(r)=>({...r,...r.AuthCode&&{AuthCode:o}});var AD=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.AbuseContactEmail&&{AbuseContactEmail:o},...r.AbuseContactPhone&&{AbuseContactPhone:o},...r.BillingContact&&{BillingContact:o}}),LD=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),RD=(r)=>({...r,...r.emailAddress&&{emailAddress:o}}),CD=(r)=>({...r,...r.AuthCode&&{AuthCode:o}}),WD=(r)=>({...r,...r.AuthCode&&{AuthCode:o},...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),zD=(r)=>({...r,...r.Password&&{Password:o}}),SD=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),YD=(r)=>({...r,...r.FIAuthKey&&{FIAuthKey:o}});var fr=m(Qr(),1);kr();K();function Ir(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${r}`}}var XD=async(r,s)=>{const f=Ir("AcceptDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},KD=async(r,s)=>{const f=Ir("AssociateDelegationSignerToDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},ZD=async(r,s)=>{const f=Ir("CancelDomainTransferToAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},PD=async(r,s)=>{const f=Ir("CheckDomainAvailability");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},JD=async(r,s)=>{const f=Ir("CheckDomainTransferability");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},QD=async(r,s)=>{const f=Ir("DeleteDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},BD=async(r,s)=>{const f=Ir("DeleteTagsForDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},MD=async(r,s)=>{const f=Ir("DisableDomainAutoRenew");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},VD=async(r,s)=>{const f=Ir("DisableDomainTransferLock");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},HD=async(r,s)=>{const f=Ir("DisassociateDelegationSignerFromDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},lD=async(r,s)=>{const f=Ir("EnableDomainAutoRenew");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},DD=async(r,s)=>{const f=Ir("EnableDomainTransferLock");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},kD=async(r,s)=>{const f=Ir("GetContactReachabilityStatus");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},yD=async(r,s)=>{const f=Ir("GetDomainDetail");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},ND=async(r,s)=>{const f=Ir("GetDomainSuggestions");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},qD=async(r,s)=>{const f=Ir("GetOperationDetail");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},mD=async(r,s)=>{const f=Ir("ListDomains");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},jD=async(r,s)=>{const f=Ir("ListOperations");let w;return w=JSON.stringify(Gt(r,s)),$r(s,f,"/",void 0,w)},vD=async(r,s)=>{const f=Ir("ListPrices");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},iD=async(r,s)=>{const f=Ir("ListTagsForDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},OD=async(r,s)=>{const f=Ir("PushDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},dD=async(r,s)=>{const f=Ir("RegisterDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},cD=async(r,s)=>{const f=Ir("RejectDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},bD=async(r,s)=>{const f=Ir("RenewDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},_D=async(r,s)=>{const f=Ir("ResendContactReachabilityEmail");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},gD=async(r,s)=>{const f=Ir("ResendOperationAuthorization");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},xD=async(r,s)=>{const f=Ir("RetrieveDomainAuthCode");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},eD=async(r,s)=>{const f=Ir("TransferDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},nD=async(r,s)=>{const f=Ir("TransferDomainToAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},oD=async(r,s)=>{const f=Ir("UpdateDomainContact");let w;return w=JSON.stringify(At(r,s)),$r(s,f,"/",void 0,w)},aD=async(r,s)=>{const f=Ir("UpdateDomainContactPrivacy");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},pD=async(r,s)=>{const f=Ir("UpdateDomainNameservers");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},uD=async(r,s)=>{const f=Ir("UpdateTagsForDomain");let w;return w=JSON.stringify(q(r)),$r(s,f,"/",void 0,w)},tD=async(r,s)=>{const f=Ir("ViewBilling");let w;return w=JSON.stringify(Lt(r,s)),$r(s,f,"/",void 0,w)},rk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},fk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},sk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},wk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},hk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Ek=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},$k=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Ik=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Fk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Uk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Tk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Gk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Ak=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Lk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=Xt(f,s),{$metadata:t(r),...w}},Rk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Ck=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=Kt(f,s),{$metadata:t(r),...w}},Wk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=Zt(f,s),{$metadata:t(r),...w}},zk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=Pt(f,s),{$metadata:t(r),...w}},Sk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=Jt(f,s),{$metadata:t(r),...w}},Yk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Xk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);return await gr(r.body,s),{$metadata:t(r)}},Kk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Zk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Pk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Jk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Qk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);return await gr(r.body,s),{$metadata:t(r)}},Bk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Mk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Vk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Hk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},lk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},Dk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},kk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=q(f),{$metadata:t(r),...w}},yk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);const f=await fr.parseJsonBody(r.body,s);let w={};return w=Mt(f,s),{$metadata:t(r),...w}},Er=async(r,s)=>{const f={...r,body:await fr.parseJsonErrorBody(r.body,s)},w=fr.loadRestJsonErrorCode(r,f.body);switch(w){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await ht(f,s);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await $t(f,s);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await It(f,s);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await Ut(f,s);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await wt(f,s);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await Et(f,s);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await Ft(f,s);default:const h=f.body;return Vt({output:r,parsedBody:h,errorCode:w})}},wt=async(r,s)=>{const f=r.body,w=q(f),h=new Q6({$metadata:t(r),...w});return D(h,f)},ht=async(r,s)=>{const f=r.body,w=q(f),h=new K6({$metadata:t(r),...w});return D(h,f)},Et=async(r,s)=>{const f=r.body,w=q(f),h=new B6({$metadata:t(r),...w});return D(h,f)},$t=async(r,s)=>{const f=r.body,w=q(f),h=new Z6({$metadata:t(r),...w});return D(h,f)},It=async(r,s)=>{const f=r.body,w=q(f),h=new P6({$metadata:t(r),...w});return D(h,f)},Ft=async(r,s)=>{const f=r.body,w=q(f),h=new M6({$metadata:t(r),...w});return D(h,f)},Ut=async(r,s)=>{const f=r.body,w=q(f),h=new J6({$metadata:t(r),...w});return D(h,f)},Tt=(r,s)=>{return p(r,{Currency:[],MaxPrice:iZ})},Gt=(r,s)=>{return p(r,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:q,SubmittedSince:(f)=>f.getTime()/1000,Type:q})},At=(r,s)=>{return p(r,{AdminContact:q,BillingContact:q,Consent:(f)=>Tt(f,s),DomainName:[],RegistrantContact:q,TechContact:q})},Lt=(r,s)=>{return p(r,{End:(f)=>f.getTime()/1000,Marker:[],MaxItems:[],Start:(f)=>f.getTime()/1000})},Rt=(r,s)=>{return p(r,{BillDate:(f)=>y(cs(Af(f))),DomainName:T,InvoiceId:T,Operation:T,Price:oU})},Ct=(r,s)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Rt(w,s)})},Wt=(r,s)=>{return p(r,{ChangeOwnershipPrice:(f)=>I$(f,s),Name:T,RegistrationPrice:(f)=>I$(f,s),RenewalPrice:(f)=>I$(f,s),RestorationPrice:(f)=>I$(f,s),TransferPrice:(f)=>I$(f,s)})},zt=(r,s)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Wt(w,s)})},St=(r,s)=>{return p(r,{AutoRenew:p0,DomainName:T,Expiry:(f)=>y(cs(Af(f))),TransferLock:p0})},Yt=(r,s)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return St(w,s)})},Xt=(r,s)=>{return p(r,{AbuseContactEmail:T,AbuseContactPhone:T,AdminContact:q,AdminPrivacy:p0,AutoRenew:p0,BillingContact:q,BillingPrivacy:p0,CreationDate:(f)=>y(cs(Af(f))),DnsSec:T,DnssecKeys:q,DomainName:T,ExpirationDate:(f)=>y(cs(Af(f))),Nameservers:q,RegistrantContact:q,RegistrantPrivacy:p0,RegistrarName:T,RegistrarUrl:T,RegistryDomainId:T,Reseller:T,StatusList:q,TechContact:q,TechPrivacy:p0,UpdatedDate:(f)=>y(cs(Af(f))),WhoIsServer:T})},Kt=(r,s)=>{return p(r,{DomainName:T,LastUpdatedDate:(f)=>y(cs(Af(f))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(f)=>y(cs(Af(f))),Type:T})},Zt=(r,s)=>{return p(r,{Domains:(f)=>Yt(f,s),NextPageMarker:T})},Pt=(r,s)=>{return p(r,{NextPageMarker:T,Operations:(f)=>Bt(f,s)})},Jt=(r,s)=>{return p(r,{NextPageMarker:T,Prices:(f)=>zt(f,s)})},Qt=(r,s)=>{return p(r,{DomainName:T,LastUpdatedDate:(f)=>y(cs(Af(f))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(f)=>y(cs(Af(f))),Type:T})},Bt=(r,s)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Qt(w,s)})},I$=(r,s)=>{return p(r,{Currency:T,Price:oU})},Mt=(r,s)=>{return p(r,{BillingRecords:(f)=>Ct(f,s),NextPageMarker:T})},t=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var Vt=bs(af),$r=async(r,s,f,w,h)=>{const{hostname:E,protocol:$="https",port:I,path:F}=await r.endpoint(),U={protocol:$,hostname:E,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+f:F+f,headers:s};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Mr(U)};class y4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(TD,void 0).ser(XD).de(rk).build(){}B();V();K();class N4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(KD).de(fk).build(){}B();V();K();class q4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(ZD).de(sk).build(){}B();V();K();class m4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(PD).de(wk).build(){}B();V();K();class j4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(GD,void 0).ser(JD).de(hk).build(){}B();V();K();class v4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(QD).de(Ek).build(){}B();V();K();class i4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(BD).de($k).build(){}B();V();K();class O4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(MD).de(Ik).build(){}B();V();K();class d4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(VD).de(Fk).build(){}B();V();K();class c4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(HD).de(Uk).build(){}B();V();K();class b4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(lD).de(Tk).build(){}B();V();K();class _4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(DD).de(Gk).build(){}B();V();K();class g4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(kD).de(Ak).build(){}B();V();K();class x4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,AD).ser(yD).de(Lk).build(){}B();V();K();class e4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(ND).de(Rk).build(){}B();V();K();class n4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(qD).de(Ck).build(){}B();V();K();class o4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(mD).de(Wk).build(){}B();V();K();class a4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(jD).de(zk).build(){}B();V();K();class p4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(vD).de(Sk).build(){}B();V();K();class u4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(iD).de(Yk).build(){}B();V();K();class t4 extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(OD).de(Xk).build(){}B();V();K();class rA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(LD,void 0).ser(dD).de(Kk).build(){}B();V();K();class fA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(cD).de(Zk).build(){}B();V();K();class sA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(bD).de(Pk).build(){}B();V();K();class wA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,RD).ser(_D).de(Jk).build(){}B();V();K();class hA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(gD).de(Qk).build(){}B();V();K();class EA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,CD).ser(xD).de(Bk).build(){}B();V();K();class $A extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(WD,void 0).ser(eD).de(Mk).build(){}B();V();K();class IA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,zD).ser(nD).de(Vk).build(){}B();V();K();class FA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(SD,void 0).ser(oD).de(Hk).build(){}B();V();K();class UA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(aD).de(lk).build(){}B();V();K();class TA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(YD,void 0).ser(pD).de(Dk).build(){}B();V();K();class GA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(uD).de(kk).build(){}B();V();K();class AA extends R.classBuilder().ep(g).m(function(r,s,f,w){return[C(f,this.serialize,this.deserialize),W(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(tD).de(yk).build(){}var Ht={AcceptDomainTransferFromAnotherAwsAccountCommand:y4,AssociateDelegationSignerToDomainCommand:N4,CancelDomainTransferToAnotherAwsAccountCommand:q4,CheckDomainAvailabilityCommand:m4,CheckDomainTransferabilityCommand:j4,DeleteDomainCommand:v4,DeleteTagsForDomainCommand:i4,DisableDomainAutoRenewCommand:O4,DisableDomainTransferLockCommand:d4,DisassociateDelegationSignerFromDomainCommand:c4,EnableDomainAutoRenewCommand:b4,EnableDomainTransferLockCommand:_4,GetContactReachabilityStatusCommand:g4,GetDomainDetailCommand:x4,GetDomainSuggestionsCommand:e4,GetOperationDetailCommand:n4,ListDomainsCommand:o4,ListOperationsCommand:a4,ListPricesCommand:p4,ListTagsForDomainCommand:u4,PushDomainCommand:t4,RegisterDomainCommand:rA,RejectDomainTransferFromAnotherAwsAccountCommand:fA,RenewDomainCommand:sA,ResendContactReachabilityEmailCommand:wA,ResendOperationAuthorizationCommand:hA,RetrieveDomainAuthCodeCommand:EA,TransferDomainCommand:$A,TransferDomainToAnotherAwsAccountCommand:IA,UpdateDomainContactCommand:FA,UpdateDomainContactPrivacyCommand:UA,UpdateDomainNameserversCommand:TA,UpdateTagsForDomainCommand:GA,ViewBillingCommand:AA};class F$ extends k4{}ds(Ht,F$);import{runAction as lt}from"@stacksjs/actions";import{config as qk}from"@stacksjs/config";import{Action as Dt}from"@stacksjs/enums";import{err as m0,handleError as A0,ok as T1}from"@stacksjs/error-handling";import{log as Zf}from"@stacksjs/logging";import{path as kt}from"@stacksjs/path";import{fs as Nk}from"@stacksjs/storage";async function Clr(r){const s=new zw,f=await s.listHostedZonesByName({DNSName:r});if(!f||!f.HostedZones)return m0(A0(`No hosted zones found for domain: ${r}`));const w=f.HostedZones.find((E)=>E.Name===`${r}.`);if(!w)return m0(A0(`Hosted Zone not found for domain: ${r}`));const h=await s.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return m0(A0(`No DNS records found for domain: ${r}`));for(let E of h.ResourceRecordSets)if(E.Type!=="NS"&&E.Type!=="SOA")await s.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:E}]}});return await s.deleteHostedZone({Id:w.Id}),Zf.info(`Deleted Hosted Zone for domain: ${r}`),T1("success")}async function Wlr(r){const s=new zw,f=await s.listHostedZonesByName({DNSName:r});if(!f||!f.HostedZones)return m0(A0(`No hosted zones found for domain: ${r}`));const w=f.HostedZones.find((E)=>E.Name===`${r}.`);if(!w)return m0(A0(`Hosted Zone not found for domain: ${r}`));const h=await s.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return m0(A0(`No DNS records found for domain: ${r}`));for(let E of h.ResourceRecordSets)if(E.Type!=="NS"&&E.Type!=="SOA")await s.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:E}]}});return Zf.info(`Deleted DNS records for domain: ${r}`),T1("success")}async function zlr(r){const s=new zw,w=(await s.listHostedZonesByName({DNSName:r})).HostedZones?.find((E)=>E.Name===`${r}.`);if(w)return T1(w);const h=await s.createHostedZone({Name:r,CallerReference:`${Date.now()}`});if(!h.HostedZone)return m0(A0("Failed to create hosted zone"));return T1(h)}function yt(r){try{const s=kt.projectConfigPath("dns.ts"),w=Nk.readFileSync(s,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${r.map((h)=>`'${h}'`).join(", ")}]`);Nk.writeFileSync(s,w,"utf-8"),Zf.info("Nameservers have been set.")}catch(s){console.error("Error updating nameservers:",s)}}async function Slr(r){try{const s=new zw,{HostedZones:f}=await s.listHostedZonesByName({DNSName:r});if(!f)return m0(A0(`No hosted zones found for domain ${r}`));const w=f[0];if(w&&w.Name===`${r}.`)return T1(w.Id);return T1(null)}catch(s){return m0(A0(`Failed to find hosted zone for domain ${r}`,s))}}async function Nt(r){if(Zf.debug("Getting nameservers for domain:",r),!r)return[];try{return(await new F$().getDomainDetail({DomainName:r}))?.Nameservers?.map((w)=>w.Name)||[]}catch(s){A0("Error getting domain detail",s)}}async function qt(r,s){if(!s)s=qk.app.url;const f=await Nt(s);if(f&&r&&JSON.stringify(f.sort())!==JSON.stringify(r.sort()))return Zf.info("Updating your domain nameservers to match the ones in your hosted zone..."),Zf.debug("Hosted zone nameservers:",r),Zf.debug("Domain nameservers:",f),await new F$().updateDomainNameservers({DomainName:s,Nameservers:r.map((h)=>({Name:h}))}),yt(r),Zf.info("Nameservers updated."),!0;Zf.success("Your nameservers are up to date.")}async function Ylr(r){if(Zf.debug("Checking if domain has been added to cloud..."),!r)r=qk.app.url;Zf.debug("domainName:",r);const s=new zw,f=await s.listHostedZonesByName({DNSName:r});if(Zf.debug("Existing hosted zones:",f),!f||!f.HostedZones)return!1;const w=f.HostedZones.find((h)=>h.Name===`${r}.`);if(w){Zf.debug("Hosted zone found:",w);const E=(await s.getHostedZone({Id:w.Id})).DelegationSet?.NameServers||[];return await qt(E,r),!0}return!1}async function Xlr(r){return await lt(Dt.DomainsAdd,r)}export{yt as writeNameserversToConfig,qt as updateNameservers,Ylr as hasUserDomainBeenAddedToCloud,Nt as getNameservers,Slr as findHostedZone,Wlr as deleteHostedZoneRecords,Clr as deleteHostedZone,zlr as createHostedZone,Xlr as addDomain};
34
-
35
- //# debugId=494FFC744DBF30B964756E2164756E21
36
- //# sourceMappingURL=index.js.map
33
+ `),xB=!0}throw new n("AWS_PROFILE is set, skipping fromEnv provider.",{logger:r.logger,tryNextLink:!0})}return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),p6(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:s,ssoAccountId:f,ssoRegion:h,ssoRoleName:w,ssoSession:$}=r;if(!s&&!f&&!h&&!w&&!$)throw new n("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:r.logger});let{fromSSO:E}=await Promise.resolve().then(() => (OT(),iT));return E(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:s}=await Promise.resolve().then(() => (gB(),_B));return s(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:s}=await Promise.resolve().then(() => (v5(),j5));return s(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:s}=await Promise.resolve().then(() => (_5(),b5));return s(r)()},async()=>{return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await LZ(r))()},async()=>{throw new n("Could not load credentials from any providers",{tryNextLink:!1,logger:r.logger})}),Fn,In),In=(r)=>r?.expiration!==void 0,Fn=(r)=>r?.expiration!==void 0&&r.expiration.getTime()-Date.now()<300000;var eB=G(()=>{u6();Lr();Ts();zZ()});var n1=G(()=>{eB()});hw();ww();$w();Dh();kf();var ow=e(mr(),1);Sw();B();Gs();K();var kP=e(Br(),1);Us();var yP=async(r,s,f)=>{return{operation:lf(s).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Kg(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}var NP=(r)=>{let s=[];switch(r.operation){default:s.push(Kg(r))}return s},qP=(r)=>{return{...kP.resolveAwsSdkSigV4Config(r)}};var mP=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53"}},Q={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var jP={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.670.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.670.0","@aws-sdk/client-sts":"3.670.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.670.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-sdk-route53":"3.667.0","@aws-sdk/middleware-user-agent":"3.669.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.670.0","@aws-sdk/util-user-agent-node":"3.669.0","@aws-sdk/xml-builder":"3.662.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.6",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53"}};var GM=e(Br(),1);n1();Hw();kf();lw();Gs();vs();fh();Dw();Yf();var UM=e(Br(),1);K();t0();Z0();_s();Vh();Es();var nB={["required"]:!1,type:"String"},oB={["required"]:!0,default:!1,type:"Boolean"},aB={["ref"]:"Endpoint"},HI={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},EM={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},br={},pB={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},nw={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},bh={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},N0={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},uB={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},tB={["fn"]:"stringEquals",["argv"]:[nw,"aws-us-gov"]},rM={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},fM={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},sM={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},hM=[HI],wM=[EM],$M=[{["ref"]:"Region"}],Un={version:"1.0",parameters:{Region:nB,UseDualStack:oB,UseFIPS:oB,Endpoint:nB},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[aB]}],rules:[{conditions:hM,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:wM,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:aB,properties:br,headers:br},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:$M}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:$M,assign:"PartitionResult"}],rules:[{conditions:[pB,bh,N0],endpoint:{url:"https://route53.amazonaws.com",properties:uB,headers:br},type:"endpoint"},{conditions:[pB,HI,N0],endpoint:{url:"https://route53-fips.amazonaws.com",properties:uB,headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[nw,"aws-cn"]},bh,N0],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:br},type:"endpoint"},{conditions:[tB,bh,N0],endpoint:rM,type:"endpoint"},{conditions:[tB,HI,N0],endpoint:rM,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[nw,"aws-iso"]},bh,N0],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[nw,"aws-iso-b"]},bh,N0],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[nw,"aws-iso-e"]},bh,N0],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[nw,"aws-iso-f"]},bh,N0],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:br},type:"endpoint"},{conditions:[HI,EM],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,fM]},sM],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:hM,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[fM,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:wM,rules:[{conditions:[sM],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53.{Region}.{PartitionResult#dnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},IM=Un;var Tn=new ws({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),FM=(r,s={})=>{return Tn.get(r,()=>$s(IM,{endpointParams:r,logger:s.logger}))};tr.aws=Is;var TM=(r)=>{return{apiVersion:"2013-04-01",base64Decoder:r?.base64Decoder??Gf,base64Encoder:r?.base64Encoder??Lf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??FM,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??NP,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new UM.AwsSdkSigV4Signer}],logger:r?.logger??new Kf,serviceId:r?.serviceId??"Route 53",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??gr,utf8Encoder:r?.utf8Encoder??Af}};K();kw();K();var AM=(r)=>{os(process.version);let s=s0(r),f=()=>s().then(ns),h=TM(r);return GM.emitWarningIfUnsupportedVersion(process.version),{...h,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??f0,credentialDefaultProvider:r?.credentialDefaultProvider??J0,defaultUserAgentProvider:r?.defaultUserAgentProvider??ts({serviceId:h.serviceId,clientVersion:jP.version}),maxAttempts:r?.maxAttempts??t(ds),region:r?.region??t(Df,qs),requestHandler:sf.create(r?.requestHandler??f),retryMode:r?.retryMode??t({...bs,default:async()=>(await f()).retryMode||jf}),sha256:r?.sha256??As.bind(null,"sha256"),streamCollector:r?.streamCollector??vf,useDualstackEndpoint:r?.useDualstackEndpoint??t(ys),useFipsEndpoint:r?.useFipsEndpoint??t(Ns),userAgentAppId:r?.userAgentAppId??t(r0)}};yw();yr();K();var LM=(r)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:f,credentials:h}=r;return{setHttpAuthScheme(w){let $=s.findIndex((E)=>E.schemeId===w.schemeId);if($===-1)s.push(w);else s.splice($,1,w)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(w){f=w},httpAuthSchemeProvider(){return f},setCredentials(w){h=w},credentials(){return h}}},zM=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var lI=(r)=>r,WM=(r,s)=>{let f={...lI(h0(r)),...lI(as(r)),...lI(Qs(r)),...lI(LM(r))};return s.forEach((h)=>h.configure(f)),{...r,...w0(f),...ps(f),...Js(f),...zM(f)}};class g5 extends Xf{constructor(...[r]){let s=AM(r||{}),f=mP(s),h=Ds(f),w=cs(h),$=ms(w),E=Bs($),I=is(E),F=qP(I),U=WM(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(ks(this.config)),this.middlewareStack.use(us(this.config)),this.middlewareStack.use(js(this.config)),this.middlewareStack.use(Ms(this.config)),this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(Hs(this.config)),this.middlewareStack.use(ow.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:yP,identityProviderConfigProvider:async(A)=>new ow.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(ow.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}K();var DI=/^\/(hostedzone|change|delegationset)\//;function Gn(){return(r)=>async(s)=>{let{ChangeBatch:f}=s.input,h=[];for(let w of f.Changes){let{AliasTarget:$}=w.ResourceRecordSet;if($)h.push({...w,ResourceRecordSet:{...w.ResourceRecordSet,AliasTarget:{...$,HostedZoneId:$.HostedZoneId.replace(DI,"")}}});else h.push(w)}return r({...s,input:{...s.input,ChangeBatch:{...f,Changes:h}}})}}var An={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},CM=(r)=>({applyToStack:(s)=>{s.add(Gn(),An)}});var Ln=["DelegationSetId","HostedZoneId","Id"];function zn(){return(r)=>async(s)=>{let f={...s.input};for(let h of Ln){let w=f[h];if(w)f[h]=w.replace(DI,"")}return r({...s,input:f})}}var Wn={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},m=(r)=>({applyToStack:(s)=>{s.add(zn(),Wn)}});B();V();K();var g=e(Br(),1);function RM(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function SM(r){return r.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class x5{constructor(r){this.value=r}toString(){return SM(""+this.value)}}class H{static of(r,s,f){let h=new H(r);if(s!==void 0)h.addChildNode(new x5(s));if(f!==void 0)h.withName(f);return h}constructor(r,s=[]){this.name=r,this.children=s,this.attributes={}}withName(r){return this.name=r,this}addAttribute(r,s){return this.attributes[r]=s,this}addChildNode(r){return this.children.push(r),this}removeAttribute(r){return delete this.attributes[r],this}n(r){return this.name=r,this}c(r){return this.children.push(r),this}a(r,s){if(s!=null)this.attributes[r]=s;return this}cc(r,s,f=s){if(r[s]!=null){let h=H.of(s,r[s]).withName(f);this.c(h)}}l(r,s,f,h){if(r[s]!=null)h().map(($)=>{$.withName(f),this.c($)})}lc(r,s,f,h){if(r[s]!=null){let w=h(),$=new H(f);w.map((E)=>{$.c(E)}),this.c($)}}toString(){let r=Boolean(this.children.length),s=`<${this.name}`,f=this.attributes;for(let h of Object.keys(f)){let w=f[h];if(w!=null)s+=` ${h}="${RM(""+w)}"`}return s+=!r?"/>":`>${this.children.map((h)=>h.toString()).join("")}</${this.name}>`}}var c=e(mr(),1);K();K();class O extends Of{constructor(r){super(r);Object.setPrototypeOf(this,O.prototype)}}class kI extends O{constructor(r){super({name:"ConcurrentModification",$fault:"client",...r});this.name="ConcurrentModification",this.$fault="client",Object.setPrototypeOf(this,kI.prototype)}}class yI extends O{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,yI.prototype)}}class NI extends O{constructor(r){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...r});this.name="InvalidKeySigningKeyStatus",this.$fault="client",Object.setPrototypeOf(this,NI.prototype)}}class qI extends O{constructor(r){super({name:"InvalidKMSArn",$fault:"client",...r});this.name="InvalidKMSArn",this.$fault="client",Object.setPrototypeOf(this,qI.prototype)}}class mI extends O{constructor(r){super({name:"InvalidSigningStatus",$fault:"client",...r});this.name="InvalidSigningStatus",this.$fault="client",Object.setPrototypeOf(this,mI.prototype)}}class jI extends O{constructor(r){super({name:"NoSuchKeySigningKey",$fault:"client",...r});this.name="NoSuchKeySigningKey",this.$fault="client",Object.setPrototypeOf(this,jI.prototype)}}class vI extends O{constructor(r){super({name:"ConflictingDomainExists",$fault:"client",...r});this.name="ConflictingDomainExists",this.$fault="client",Object.setPrototypeOf(this,vI.prototype)}}class iI extends O{constructor(r){super({name:"InvalidVPCId",$fault:"client",...r});this.name="InvalidVPCId",this.$fault="client",Object.setPrototypeOf(this,iI.prototype)}}class OI extends O{constructor(r){super({name:"LimitsExceeded",$fault:"client",...r});this.name="LimitsExceeded",this.$fault="client",Object.setPrototypeOf(this,OI.prototype)}}class dI extends O{constructor(r){super({name:"NoSuchHostedZone",$fault:"client",...r});this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,dI.prototype)}}class cI extends O{constructor(r){super({name:"NotAuthorizedException",$fault:"client",...r});this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,cI.prototype)}}class bI extends O{constructor(r){super({name:"PriorRequestNotComplete",$fault:"client",...r});this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,bI.prototype)}}class _I extends O{constructor(r){super({name:"PublicZoneVPCAssociation",$fault:"client",...r});this.name="PublicZoneVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,_I.prototype)}}class gI extends O{constructor(r){super({name:"CidrBlockInUseException",$fault:"client",...r});this.name="CidrBlockInUseException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.Message=r.Message}}class xI extends O{constructor(r){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...r});this.name="CidrCollectionVersionMismatchException",this.$fault="client",Object.setPrototypeOf(this,xI.prototype),this.Message=r.Message}}class eI extends O{constructor(r){super({name:"NoSuchCidrCollectionException",$fault:"client",...r});this.name="NoSuchCidrCollectionException",this.$fault="client",Object.setPrototypeOf(this,eI.prototype),this.Message=r.Message}}class nI extends O{constructor(r){super({name:"InvalidChangeBatch",$fault:"client",...r});this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,nI.prototype),this.messages=r.messages}}class oI extends O{constructor(r){super({name:"NoSuchHealthCheck",$fault:"client",...r});this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,oI.prototype)}}class aI extends O{constructor(r){super({name:"ThrottlingException",$fault:"client",...r});this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,aI.prototype)}}class pI extends O{constructor(r){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...r});this.name="CidrCollectionAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,pI.prototype),this.Message=r.Message}}class uI extends O{constructor(r){super({name:"HealthCheckAlreadyExists",$fault:"client",...r});this.name="HealthCheckAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,uI.prototype)}}class tI extends O{constructor(r){super({name:"TooManyHealthChecks",$fault:"client",...r});this.name="TooManyHealthChecks",this.$fault="client",Object.setPrototypeOf(this,tI.prototype)}}class r2 extends O{constructor(r){super({name:"DelegationSetNotAvailable",$fault:"client",...r});this.name="DelegationSetNotAvailable",this.$fault="client",Object.setPrototypeOf(this,r2.prototype)}}class f2 extends O{constructor(r){super({name:"DelegationSetNotReusable",$fault:"client",...r});this.name="DelegationSetNotReusable",this.$fault="client",Object.setPrototypeOf(this,f2.prototype)}}class s2 extends O{constructor(r){super({name:"HostedZoneAlreadyExists",$fault:"client",...r});this.name="HostedZoneAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,s2.prototype)}}class h2 extends O{constructor(r){super({name:"InvalidDomainName",$fault:"client",...r});this.name="InvalidDomainName",this.$fault="client",Object.setPrototypeOf(this,h2.prototype)}}class w2 extends O{constructor(r){super({name:"NoSuchDelegationSet",$fault:"client",...r});this.name="NoSuchDelegationSet",this.$fault="client",Object.setPrototypeOf(this,w2.prototype)}}class $2 extends O{constructor(r){super({name:"TooManyHostedZones",$fault:"client",...r});this.name="TooManyHostedZones",this.$fault="client",Object.setPrototypeOf(this,$2.prototype)}}class E2 extends O{constructor(r){super({name:"InvalidArgument",$fault:"client",...r});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,E2.prototype)}}class I2 extends O{constructor(r){super({name:"InvalidKeySigningKeyName",$fault:"client",...r});this.name="InvalidKeySigningKeyName",this.$fault="client",Object.setPrototypeOf(this,I2.prototype)}}class F2 extends O{constructor(r){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...r});this.name="KeySigningKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,F2.prototype)}}class U2 extends O{constructor(r){super({name:"TooManyKeySigningKeys",$fault:"client",...r});this.name="TooManyKeySigningKeys",this.$fault="client",Object.setPrototypeOf(this,U2.prototype)}}class T2 extends O{constructor(r){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...r});this.name="InsufficientCloudWatchLogsResourcePolicy",this.$fault="client",Object.setPrototypeOf(this,T2.prototype)}}class G2 extends O{constructor(r){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...r});this.name="NoSuchCloudWatchLogsLogGroup",this.$fault="client",Object.setPrototypeOf(this,G2.prototype)}}class A2 extends O{constructor(r){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...r});this.name="QueryLoggingConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,A2.prototype)}}class L2 extends O{constructor(r){super({name:"DelegationSetAlreadyCreated",$fault:"client",...r});this.name="DelegationSetAlreadyCreated",this.$fault="client",Object.setPrototypeOf(this,L2.prototype)}}class z2 extends O{constructor(r){super({name:"DelegationSetAlreadyReusable",$fault:"client",...r});this.name="DelegationSetAlreadyReusable",this.$fault="client",Object.setPrototypeOf(this,z2.prototype)}}class W2 extends O{constructor(r){super({name:"HostedZoneNotFound",$fault:"client",...r});this.name="HostedZoneNotFound",this.$fault="client",Object.setPrototypeOf(this,W2.prototype)}}class C2 extends O{constructor(r){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...r});this.name="InvalidTrafficPolicyDocument",this.$fault="client",Object.setPrototypeOf(this,C2.prototype)}}class R2 extends O{constructor(r){super({name:"TooManyTrafficPolicies",$fault:"client",...r});this.name="TooManyTrafficPolicies",this.$fault="client",Object.setPrototypeOf(this,R2.prototype)}}class S2 extends O{constructor(r){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,S2.prototype)}}class Y2 extends O{constructor(r){super({name:"NoSuchTrafficPolicy",$fault:"client",...r});this.name="NoSuchTrafficPolicy",this.$fault="client",Object.setPrototypeOf(this,Y2.prototype)}}class X2 extends O{constructor(r){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...r});this.name="TooManyTrafficPolicyInstances",this.$fault="client",Object.setPrototypeOf(this,X2.prototype)}}class K2 extends O{constructor(r){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyInstanceAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,K2.prototype)}}class P2 extends O{constructor(r){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...r});this.name="TooManyTrafficPolicyVersionsForCurrentPolicy",this.$fault="client",Object.setPrototypeOf(this,P2.prototype)}}class Z2 extends O{constructor(r){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...r});this.name="TooManyVPCAssociationAuthorizations",this.$fault="client",Object.setPrototypeOf(this,Z2.prototype)}}class Q2 extends O{constructor(r){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...r});this.name="KeySigningKeyInParentDSRecord",this.$fault="client",Object.setPrototypeOf(this,Q2.prototype)}}class J2 extends O{constructor(r){super({name:"KeySigningKeyInUse",$fault:"client",...r});this.name="KeySigningKeyInUse",this.$fault="client",Object.setPrototypeOf(this,J2.prototype)}}class B2 extends O{constructor(r){super({name:"CidrCollectionInUseException",$fault:"client",...r});this.name="CidrCollectionInUseException",this.$fault="client",Object.setPrototypeOf(this,B2.prototype),this.Message=r.Message}}class M2 extends O{constructor(r){super({name:"HealthCheckInUse",$fault:"client",...r});this.name="HealthCheckInUse",this.$fault="client",Object.setPrototypeOf(this,M2.prototype)}}class V2 extends O{constructor(r){super({name:"HostedZoneNotEmpty",$fault:"client",...r});this.name="HostedZoneNotEmpty",this.$fault="client",Object.setPrototypeOf(this,V2.prototype)}}class H2 extends O{constructor(r){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...r});this.name="NoSuchQueryLoggingConfig",this.$fault="client",Object.setPrototypeOf(this,H2.prototype)}}class l2 extends O{constructor(r){super({name:"DelegationSetInUse",$fault:"client",...r});this.name="DelegationSetInUse",this.$fault="client",Object.setPrototypeOf(this,l2.prototype)}}class D2 extends O{constructor(r){super({name:"TrafficPolicyInUse",$fault:"client",...r});this.name="TrafficPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,D2.prototype)}}class k2 extends O{constructor(r){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...r});this.name="NoSuchTrafficPolicyInstance",this.$fault="client",Object.setPrototypeOf(this,k2.prototype)}}class y2 extends O{constructor(r){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...r});this.name="VPCAssociationAuthorizationNotFound",this.$fault="client",Object.setPrototypeOf(this,y2.prototype)}}class N2 extends O{constructor(r){super({name:"DNSSECNotFound",$fault:"client",...r});this.name="DNSSECNotFound",this.$fault="client",Object.setPrototypeOf(this,N2.prototype)}}class q2 extends O{constructor(r){super({name:"LastVPCAssociation",$fault:"client",...r});this.name="LastVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,q2.prototype)}}class m2 extends O{constructor(r){super({name:"VPCAssociationNotFound",$fault:"client",...r});this.name="VPCAssociationNotFound",this.$fault="client",Object.setPrototypeOf(this,m2.prototype)}}class j2 extends O{constructor(r){super({name:"HostedZonePartiallyDelegated",$fault:"client",...r});this.name="HostedZonePartiallyDelegated",this.$fault="client",Object.setPrototypeOf(this,j2.prototype)}}class v2 extends O{constructor(r){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...r});this.name="KeySigningKeyWithActiveStatusNotFound",this.$fault="client",Object.setPrototypeOf(this,v2.prototype)}}class i2 extends O{constructor(r){super({name:"NoSuchChange",$fault:"client",...r});this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,i2.prototype)}}class O2 extends O{constructor(r){super({name:"NoSuchGeoLocation",$fault:"client",...r});this.name="NoSuchGeoLocation",this.$fault="client",Object.setPrototypeOf(this,O2.prototype)}}class d2 extends O{constructor(r){super({name:"IncompatibleVersion",$fault:"client",...r});this.name="IncompatibleVersion",this.$fault="client",Object.setPrototypeOf(this,d2.prototype)}}class c2 extends O{constructor(r){super({name:"HostedZoneNotPrivate",$fault:"client",...r});this.name="HostedZoneNotPrivate",this.$fault="client",Object.setPrototypeOf(this,c2.prototype)}}class b2 extends O{constructor(r){super({name:"NoSuchCidrLocationException",$fault:"client",...r});this.name="NoSuchCidrLocationException",this.$fault="client",Object.setPrototypeOf(this,b2.prototype),this.Message=r.Message}}class _2 extends O{constructor(r){super({name:"InvalidPaginationToken",$fault:"client",...r});this.name="InvalidPaginationToken",this.$fault="client",Object.setPrototypeOf(this,_2.prototype)}}class g2 extends O{constructor(r){super({name:"HealthCheckVersionMismatch",$fault:"client",...r});this.name="HealthCheckVersionMismatch",this.$fault="client",Object.setPrototypeOf(this,g2.prototype)}}class x2 extends O{constructor(r){super({name:"ConflictingTypes",$fault:"client",...r});this.name="ConflictingTypes",this.$fault="client",Object.setPrototypeOf(this,x2.prototype)}}var BM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),f.p("Name",()=>r.Name,"{Name}",!1);let w;return f.m("POST").h(h).b(w),f.build()},MM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;w=Dr;let $=new H(ta);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(H.of(ua,r[Ur]).n(Ur));if(r[Cr]!=null)$.c(sE(r[Cr],s).n(Cr));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},VM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/cidrcollection/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;w=Dr;let $=new H(hp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"Changes","Changes",()=>vo(r[zl],s)),r[e2]!=null)$.c(H.of(e2,String(r[e2])).n(e2));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},HM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;w=Dr;let $=new H(Wp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[o2]!=null)$.c(qo(r[o2],s).n(o2));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},lM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),f.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),f.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let w;w=Dr;let $=new H(Cp);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"AddTags","AddTags",()=>to(r[pa],s)),$.lc(r,"RemoveTagKeys","RemoveTagKeys",()=>uo(r[xp],s)),w+=$.toString(),f.m("POST").h(h).b(w),f.build()},DM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/cidrcollection");let w;w=Dr;let $=new H(wp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Xr]!=null)$.c(H.of(Gp,r[Xr]).n(Xr));if(r[o]!=null)$.c(H.of(Ap,r[o]).n(o));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},kM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/healthcheck");let w;w=Dr;let $=new H($p);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Xr]!=null)$.c(H.of(lp,r[Xr]).n(Xr));if(r[fw]!=null)$.c(go(r[fw],s).n(fw));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},yM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone");let w;w=Dr;let $=new H(Ep);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Xr]!=null)$.c(H.of(fA,r[Xr]).n(Xr));if(r[p2]!=null)$.c(H.of(A0,r[p2]).n(p2));if(r[u2]!=null)$.c(xo(r[u2],s).n(u2));if(r[o]!=null)$.c(H.of(Xs,r[o]).n(o));if(r[Cr]!=null)$.c(sE(r[Cr],s).n(Cr));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},NM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/keysigningkey");let w;w=Dr;let $=new H(Ip);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Xr]!=null)$.c(H.of(fA,r[Xr]).n(Xr));if(r[fr]!=null)$.c(H.of(A0,r[fr]).n(fr));if(r[LG]!=null)$.c(H.of(ap,r[LG]).n(LG));if(r[o]!=null)$.c(H.of(op,r[o]).n(o));if(r[If]!=null)$.c(H.of(pp,r[If]).n(If));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},qM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/queryloggingconfig");let w;w=Dr;let $=new H(Lp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.cc(r,a2),r[fr]!=null)$.c(H.of(A0,r[fr]).n(fr));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},mM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/delegationset");let w;w=Dr;let $=new H(zp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Xr]!=null)$.c(H.of(fA,r[Xr]).n(Xr));if(r[fr]!=null)$.c(H.of(A0,r[fr]).n(fr));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},jM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicy");let w;w=Dr;let $=new H(Sp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(H.of(hA,r[Ur]).n(Ur));if(r[m0]!=null)$.c(H.of(Rl,r[m0]).n(m0));if(r[o]!=null)$.c(H.of(su,r[o]).n(o));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},vM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicyinstance");let w;w=Dr;let $=new H(Rp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[fr]!=null)$.c(H.of(A0,r[fr]).n(fr));if(r[o]!=null)$.c(H.of(Xs,r[o]).n(o));if(r[ir]!=null)$.c(H.of(ir,String(r[ir])).n(ir));if($.cc(r,F1),r[ef]!=null)$.c(H.of(ef,String(r[ef])).n(ef));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},iM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicy/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;w=Dr;let $=new H(Yp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(H.of(hA,r[Ur]).n(Ur));if(r[m0]!=null)$.c(H.of(Rl,r[m0]).n(m0));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},OM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;w=Dr;let $=new H(Xp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Cr]!=null)$.c(sE(r[Cr],s).n(Cr));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},dM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),f.p("Name",()=>r.Name,"{Name}",!1);let w;return f.m("POST").h(h).b(w),f.build()},cM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/cidrcollection/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},bM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},_M=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},gM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),f.p("Name",()=>r.Name,"{Name}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},xM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/queryloggingconfig/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},eM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/delegationset/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},nM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),f.p("Id",()=>r.Id,"{Id}",!1),f.p("Version",()=>r.Version.toString(),"{Version}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},oM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicyinstance/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("DELETE").h(h).b(w),f.build()},aM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;w=Dr;let $=new H(Pp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Cr]!=null)$.c(sE(r[Cr],s).n(Cr));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},pM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;return f.m("POST").h(h).b(w),f.build()},uM=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;w=Dr;let $=new H(Qp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(H.of(Zp,r[Ur]).n(Ur));if(r[Cr]!=null)$.c(sE(r[Cr],s).n(Cr));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},tM=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;return f.m("POST").h(h).b(w),f.build()},rV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/accountlimit/{Type}"),f.p("Type",()=>r.Type,"{Type}",!1);let w;return f.m("GET").h(h).b(w),f.build()},fV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/change/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("GET").h(h).b(w),f.build()},sV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/checkeripranges");let w;return f.m("GET").h(h).b(w),f.build()},hV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;return f.m("GET").h(h).b(w),f.build()},wV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/geolocation");let w=Y({[Tu]:[,r[T0]],[Gu]:[,r[G0]],[Pu]:[,r[L0]]}),$;return f.m("GET").h(h).q(w).b($),f.build()},$V=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let w;return f.m("GET").h(h).b(w),f.build()},EV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/healthcheckcount");let w;return f.m("GET").h(h).b(w),f.build()},IV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let w;return f.m("GET").h(h).b(w),f.build()},FV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let w;return f.m("GET").h(h).b(w),f.build()},UV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("GET").h(h).b(w),f.build()},TV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzonecount");let w;return f.m("GET").h(h).b(w),f.build()},GV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),f.p("Type",()=>r.Type,"{Type}",!1),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w;return f.m("GET").h(h).b(w),f.build()},AV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/queryloggingconfig/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("GET").h(h).b(w),f.build()},LV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/delegationset/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("GET").h(h).b(w),f.build()},zV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),f.p("Type",()=>r.Type,"{Type}",!1),f.p("DelegationSetId",()=>r.DelegationSetId,"{DelegationSetId}",!1);let w;return f.m("GET").h(h).b(w),f.build()},WV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),f.p("Id",()=>r.Id,"{Id}",!1),f.p("Version",()=>r.Version.toString(),"{Version}",!1);let w;return f.m("GET").h(h).b(w),f.build()},CV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicyinstance/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;return f.m("GET").h(h).b(w),f.build()},RV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicyinstancecount");let w;return f.m("GET").h(h).b(w),f.build()},SV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),f.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);let w=Y({[z0]:[,r[pr]],[T1]:[,r[Kr]],[IE]:[()=>r.MaxResults!==void 0,()=>r[$E].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},YV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/cidrcollection");let w=Y({[T1]:[,r[Kr]],[IE]:[()=>r.MaxResults!==void 0,()=>r[$E].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},XV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/cidrcollection/{CollectionId}"),f.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);let w=Y({[T1]:[,r[Kr]],[IE]:[()=>r.MaxResults!==void 0,()=>r[$E].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},KV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/geolocations");let w=Y({[Zu]:[,r[ep]],[Qu]:[,r[np]],[Ju]:[,r[fu]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},PV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/healthcheck");let w=Y({[wA]:[,r[nf]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},ZV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone");let w=Y({[wA]:[,r[nf]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()],[Au]:[,r[p2]],[Cu]:[,r[yp]]}),$;return f.m("GET").h(h).q(w).b($),f.build()},QV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzonesbyname");let w=Y({[Lu]:[,r[Xs]],[EE]:[,r[fr]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},JV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzonesbyvpc");let w=Y({[Hu]:[,y(r[rE],"VPCId")],[Du]:[,y(r[fE],"VPCRegion")],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()],[T1]:[,r[Kr]]}),$;return f.m("GET").h(h).q(w).b($),f.build()},BV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/queryloggingconfig");let w=Y({[EE]:[,r[fr]],[T1]:[,r[Kr]],[IE]:[()=>r.MaxResults!==void 0,()=>r[$E].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},MV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w=Y({[Su]:[,r[tp]],[Bu]:[,r[ru]],[Ru]:[,r[up]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},VV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/delegationset");let w=Y({[wA]:[,r[nf]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},HV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),f.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),f.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let w;return f.m("GET").h(h).b(w),f.build()},lV=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/tags/{ResourceType}"),f.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1);let w;w=Dr;let $=new H(qp);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"ResourceIds","ResourceIds",()=>ra(r[ip],s)),w+=$.toString(),f.m("POST").h(h).b(w),f.build()},DV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicies");let w=Y({[Mu]:[,r[EF]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},kV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicyinstances");let w=Y({[EE]:[,r[Sh]],[$A]:[,r[of]],[EA]:[,r[af]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},yV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicyinstances/hostedzone");let w=Y({[Sl]:[,y(r[fr],"HostedZoneId")],[$A]:[,r[of]],[EA]:[,r[af]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},NV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");let w=Y({[Sl]:[,y(r[F1],"TrafficPolicyId")],[lu]:[y(r.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>r[ef].toString()],[EE]:[,r[Sh]],[$A]:[,r[of]],[EA]:[,r[af]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},qV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/trafficpolicies/{Id}/versions"),f.p("Id",()=>r.Id,"{Id}",!1);let w=Y({[Vu]:[,r[IF]],[uf]:[()=>r.MaxItems!==void 0,()=>r[p].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},mV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),f.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let w=Y({[T1]:[,r[Kr]],[IE]:[()=>r.MaxResults!==void 0,()=>r[$E].toString()]}),$;return f.m("GET").h(h).q(w).b($),f.build()},jV=async(r,s)=>{let f=c.requestBuilder(r,s),h={};f.bp("/2013-04-01/testdnsanswer");let w=Y({[EE]:[,y(r[fr],"HostedZoneId")],[Yu]:[,y(r[hF],"RecordName")],[Xu]:[,y(r[wF],"RecordType")],[Ku]:[,r[vp]],[zu]:[,r[Jp]],[Wu]:[,r[Bp]]}),$;return f.m("GET").h(h).q(w).b($),f.build()},vV=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/healthcheck/{HealthCheckId}"),f.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let w;w=Dr;let $=new H($u);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[U0]!=null)$.c(wl(r[U0],s).n(U0));if($.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>$l(r[_h],s)),r[zs]!=null)$.c(H.of(zs,String(r[zs])).n(zs));if(r[Ws]!=null)$.c(H.of(Ws,String(r[Ws])).n(Ws));if(r[Cs]!=null)$.c(H.of(Cs,String(r[Cs])).n(Cs));if($.cc(r,e$),r[eh]!=null)$.c(H.of(eh,String(r[eh])).n(eh));if(r[Rs]!=null)$.c(H.of(Rs,String(r[Rs])).n(Rs));if($.cc(r,Yh),$.cc(r,a$),r[Ss]!=null)$.c(H.of(Ss,String(r[Ss])).n(Ss));if(r[Ys]!=null)$.c(H.of(Ys,String(r[Ys])).n(Ys));return $.lc(r,"Regions","Regions",()=>El(r[gh],s)),$.lc(r,"ResetElements","ResetElements",()=>eo(r[jp],s)),$.cc(r,p$),$.cc(r,t$),w+=$.toString(),f.m("POST").h(h).b(w),f.build()},iV=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/hostedzone/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;w=Dr;let $=new H(Eu);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(H.of(sA,r[Ur]).n(Ur));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},OV=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),f.p("Id",()=>r.Id,"{Id}",!1),f.p("Version",()=>r.Version.toString(),"{Version}",!1);let w;w=Dr;let $=new H(Iu);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(H.of(hA,r[Ur]).n(Ur));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},dV=async(r,s)=>{let f=c.requestBuilder(r,s),h={"content-type":"application/xml"};f.bp("/2013-04-01/trafficpolicyinstance/{Id}"),f.p("Id",()=>r.Id,"{Id}",!1);let w;w=Dr;let $=new H(Fu);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[ir]!=null)$.c(H.of(ir,String(r[ir])).n(ir));if($.cc(r,F1),r[ef]!=null)$.c(H.of(ef,String(r[ef])).n(ef));return w+=$.toString(),f.m("POST").h(h).b(w),f.build()},cV=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},bV=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},_V=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Gr]!=null)f[Gr]=T(h[Gr]);return f},gV=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},xV=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},eV=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[rG]!=null)f[rG]=Fa(h[rG],s);return f},nV=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Ks]!=null)f[Ks]=GF(h[Ks],s);return f},oV=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);if(h[Wf]!=null)f[Wf]=hE(h[Wf],s);if(h[Zf]!=null)f[Zf]=AF(h[Zf],s);if(h[Cr]!=null)f[Cr]=rA(h[Cr],s);return f},aV=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);if(h[zG]!=null)f[zG]=Tl(h[zG],s);return f},pV=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Xh]!=null)f[Xh]=uG(h[Xh],s);return f},uV=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Wf]!=null)f[Wf]=hE(h[Wf],s);return f},tV=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Cf]!=null)f[Cf]=wE(h[Cf],s);return f},rH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Ff]!=null)f[Ff]=LF(h[Ff],s);return f},fH=async(r,s)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r),[O0]:[,r.headers[z0]]}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Cf]!=null)f[Cf]=wE(h[Cf],s);return f},sH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[fr]!=null)f[fr]=T(h[fr]);if(h[Cr]!=null)f[Cr]=rA(h[Cr],s);return f},hH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},wH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},$H=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},EH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},IH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},FH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},UH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},TH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},GH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},AH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)});return await xr(r.body,s),f},LH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},zH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},WH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},CH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[q0]!=null)f[q0]=er(h[q0]);if(h[j0]!=null)f[j0]=fa(h[j0],s);return f},RH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[wr]!=null)f[wr]=pf(h[wr],s);return f},SH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.CheckerIpRanges==="")f[l$]=[];else if(h[l$]!=null&&h[l$][Ps]!=null)f[l$]=wa(Ar(h[l$][Ps]),s);return f},YH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.KeySigningKeys==="")f[j$]=[];else if(h[j$]!=null&&h[j$][Ps]!=null)f[j$]=ka(Ar(h[j$][Ps]),s);if(h[If]!=null)f[If]=Sa(h[If],s);return f},XH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[n$]!=null)f[n$]=Il(h[n$],s);return f},KH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Ks]!=null)f[Ks]=GF(h[Ks],s);return f},PH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[TG]!=null)f[TG]=er(h[TG]);return f},ZH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.HealthCheckObservations==="")f[E0]=[];else if(h[E0]!=null&&h[E0][FF]!=null)f[E0]=Fl(Ar(h[E0][FF]),s);return f},QH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.HealthCheckObservations==="")f[E0]=[];else if(h[E0]!=null&&h[E0][FF]!=null)f[E0]=Fl(Ar(h[E0][FF]),s);return f},JH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Wf]!=null)f[Wf]=hE(h[Wf],s);if(h[Zf]!=null)f[Zf]=AF(h[Zf],s);if(h.VPCs==="")f[F0]=[];else if(h[F0]!=null&&h[F0][Cr]!=null)f[F0]=Ll(Ar(h[F0][Cr]),s);return f},BH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[GG]!=null)f[GG]=er(h[GG]);return f},MH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[q0]!=null)f[q0]=er(h[q0]);if(h[j0]!=null)f[j0]=Va(h[j0],s);return f},VH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Xh]!=null)f[Xh]=uG(h[Xh],s);return f},HH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Wf]!=null)f[Wf]=hE(h[Wf],s);return f},lH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[q0]!=null)f[q0]=er(h[q0]);if(h[j0]!=null)f[j0]=ca(h[j0],s);return f},DH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Cf]!=null)f[Cf]=wE(h[Cf],s);return f},kH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Ff]!=null)f[Ff]=LF(h[Ff],s);return f},yH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[nG]!=null)f[nG]=$r(h[nG]);return f},NH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.CidrBlocks==="")f[V$]=[];else if(h[V$]!=null&&h[V$][Ps]!=null)f[V$]=Ea(Ar(h[V$][Ps]),s);if(h[Kr]!=null)f[Kr]=T(h[Kr]);return f},qH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.CidrCollections==="")f[H$]=[];else if(h[H$]!=null&&h[H$][Ps]!=null)f[H$]=Ga(Ar(h[H$][Ps]),s);if(h[Kr]!=null)f[Kr]=T(h[Kr]);return f},mH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.CidrLocations==="")f[D$]=[];else if(h[D$]!=null&&h[D$][Ps]!=null)f[D$]=ya(Ar(h[D$][Ps]),s);if(h[Kr]!=null)f[Kr]=T(h[Kr]);return f},jH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.GeoLocationDetailsList==="")f[N$]=[];else if(h[N$]!=null&&h[N$][n$]!=null)f[N$]=Ka(Ar(h[N$][n$]),s);if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h[YG]!=null)f[YG]=T(h[YG]);if(h[XG]!=null)f[XG]=T(h[XG]);if(h[BG]!=null)f[BG]=T(h[BG]);return f},vH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.HealthChecks==="")f[q$]=[];else if(h[q$]!=null&&h[q$][Ks]!=null)f[q$]=Ba(Ar(h[q$][Ks]),s);if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[nf]!=null)f[nf]=T(h[nf]);if(h[p]!=null)f[p]=$r(h[p]);if(h[v0]!=null)f[v0]=T(h[v0]);return f},iH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.HostedZones==="")f[I0]=[];else if(h[I0]!=null&&h[I0][Zf]!=null)f[I0]=Ul(Ar(h[I0][Zf]),s);if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[nf]!=null)f[nf]=T(h[nf]);if(h[p]!=null)f[p]=$r(h[p]);if(h[v0]!=null)f[v0]=T(h[v0]);return f},OH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Xs]!=null)f[Xs]=T(h[Xs]);if(h[fr]!=null)f[fr]=T(h[fr]);if(h.HostedZones==="")f[I0]=[];else if(h[I0]!=null&&h[I0][Zf]!=null)f[I0]=Ul(Ar(h[I0][Zf]),s);if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h[KG]!=null)f[KG]=T(h[KG]);if(h[PG]!=null)f[PG]=T(h[PG]);return f},dH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.HostedZoneSummaries==="")f[m$]=[];else if(h[m$]!=null&&h[m$][KM]!=null)f[m$]=la(Ar(h[m$][KM]),s);if(h[p]!=null)f[p]=$r(h[p]);if(h[Kr]!=null)f[Kr]=T(h[Kr]);return f},cH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Kr]!=null)f[Kr]=T(h[Kr]);if(h.QueryLoggingConfigs==="")f[i$]=[];else if(h[i$]!=null&&h[i$][Xh]!=null)f[i$]=qa(Ar(h[i$][Xh]),s);return f},bH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h[ZG]!=null)f[ZG]=T(h[ZG]);if(h[QG]!=null)f[QG]=T(h[QG]);if(h[JG]!=null)f[JG]=T(h[JG]);if(h.ResourceRecordSets==="")f[d$]=[];else if(h[d$]!=null&&h[d$][$1]!=null)f[d$]=Oa(Ar(h[d$][$1]),s);return f},_H=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.DelegationSets==="")f[k$]=[];else if(h[k$]!=null&&h[k$][Wf]!=null)f[k$]=Wa(Ar(h[k$][Wf]),s);if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[nf]!=null)f[nf]=T(h[nf]);if(h[p]!=null)f[p]=$r(h[p]);if(h[v0]!=null)f[v0]=T(h[v0]);return f},gH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[u$]!=null)f[u$]=Al(h[u$],s);return f},xH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h.ResourceTagSets==="")f[c$]=[];else if(h[c$]!=null&&h[c$][u$]!=null)f[c$]=da(Ar(h[c$][u$]),s);return f},eH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h[EF]!=null)f[EF]=T(h[EF]);if(h.TrafficPolicySummaries==="")f[b$]=[];else if(h[b$]!=null&&h[b$][JM]!=null)f[b$]=ea(Ar(h[b$][JM]),s);return f},nH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Sh]!=null)f[Sh]=T(h[Sh]);if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h[of]!=null)f[of]=T(h[of]);if(h[af]!=null)f[af]=T(h[af]);if(h.TrafficPolicyInstances==="")f[Ef]=[];else if(h[Ef]!=null&&h[Ef][Ff]!=null)f[Ef]=tG(Ar(h[Ef][Ff]),s);return f},oH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h[of]!=null)f[of]=T(h[of]);if(h[af]!=null)f[af]=T(h[af]);if(h.TrafficPolicyInstances==="")f[Ef]=[];else if(h[Ef]!=null&&h[Ef][Ff]!=null)f[Ef]=tG(Ar(h[Ef][Ff]),s);return f},aH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Sh]!=null)f[Sh]=T(h[Sh]);if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h[of]!=null)f[of]=T(h[of]);if(h[af]!=null)f[af]=T(h[af]);if(h.TrafficPolicyInstances==="")f[Ef]=[];else if(h[Ef]!=null&&h[Ef][Ff]!=null)f[Ef]=tG(Ar(h[Ef][Ff]),s);return f},pH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Tr]!=null)f[Tr]=qr(h[Tr]);if(h[p]!=null)f[p]=$r(h[p]);if(h.TrafficPolicies==="")f[_$]=[];else if(h[_$]!=null&&h[_$][Cf]!=null)f[_$]=xa(Ar(h[_$][Cf]),s);if(h[IF]!=null)f[IF]=T(h[IF]);return f},uH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[fr]!=null)f[fr]=T(h[fr]);if(h[Kr]!=null)f[Kr]=T(h[Kr]);if(h.VPCs==="")f[F0]=[];else if(h[F0]!=null&&h[F0][Cr]!=null)f[F0]=Ll(Ar(h[F0][Cr]),s);return f},tH=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[MG]!=null)f[MG]=T(h[MG]);if(h[NG]!=null)f[NG]=T(h[NG]);if(h.RecordData==="")f[O$]=[];else if(h[O$]!=null&&h[O$][ZM]!=null)f[O$]=ma(Ar(h[O$][ZM]),s);if(h[hF]!=null)f[hF]=T(h[hF]);if(h[wF]!=null)f[wF]=T(h[wF]);if(h[qG]!=null)f[qG]=T(h[qG]);return f},rl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Ks]!=null)f[Ks]=GF(h[Ks],s);return f},fl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Zf]!=null)f[Zf]=AF(h[Zf],s);return f},sl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Cf]!=null)f[Cf]=wE(h[Cf],s);return f},hl=async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,s);let f=Y({$metadata:J(r)}),h=y(d(await g.parseXmlBody(r.body,s)),"body");if(h[Ff]!=null)f[Ff]=LF(h[Ff],s);return f},b=async(r,s)=>{let f={...r,body:await g.parseXmlErrorBody(r.body,s)},h=g.loadRestXmlErrorCode(r,f.body);switch(h){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await Kn(f,s);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await _n(f,s);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await en(f,s);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await xn(f,s);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await on(f,s);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await Ao(f,s);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await Pn(f,s);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await pn(f,s);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await ho(f,s);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Go(f,s);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await Co(f,s);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await Ro(f,s);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await So(f,s);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await Rn(f,s);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await Xn(f,s);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await $o(f,s);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await cn(f,s);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await To(f,s);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await Xo(f,s);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await Sn(f,s);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await ln(f,s);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await Ko(f,s);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await Mn(f,s);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await Vn(f,s);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await yn(f,s);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await bn(f,s);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Fo(f,s);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await Po(f,s);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await dn(f,s);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await gn(f,s);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await un(f,s);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await Zo(f,s);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await On(f,s);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await Io(f,s);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await Yo(f,s);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await Qn(f,s);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await Jn(f,s);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await qn(f,s);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await an(f,s);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await Qo(f,s);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await Vo(f,s);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await zo(f,s);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await Jo(f,s);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await Ho(f,s);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await Bo(f,s);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await Mo(f,s);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await tn(f,s);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await ro(f,s);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await Yn(f,s);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await Dn(f,s);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await Nn(f,s);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await Lo(f,s);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await Bn(f,s);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await lo(f,s);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await Wo(f,s);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await Do(f,s);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await Hn(f,s);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await so(f,s);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await ko(f,s);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await jn(f,s);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await fo(f,s);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await wo(f,s);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Uo(f,s);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await vn(f,s);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await mn(f,s);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await Eo(f,s);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await nn(f,s);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await kn(f,s);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await Zn(f,s);default:let w=f.body;return Cn({output:r,parsedBody:w.Error,errorCode:h})}},Cn=es(O),Rn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[Qr]!=null)f[Qr]=T(h[Qr]);let w=new gI({$metadata:J(r),...f});return D(w,r.body.Error)},Sn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[Qr]!=null)f[Qr]=T(h[Qr]);let w=new pI({$metadata:J(r),...f});return D(w,r.body.Error)},Yn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[Qr]!=null)f[Qr]=T(h[Qr]);let w=new B2({$metadata:J(r),...f});return D(w,r.body.Error)},Xn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[Qr]!=null)f[Qr]=T(h[Qr]);let w=new xI({$metadata:J(r),...f});return D(w,r.body.Error)},Kn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new kI({$metadata:J(r),...f});return D(w,r.body.Error)},Pn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new vI({$metadata:J(r),...f});return D(w,r.body.Error)},Zn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new x2({$metadata:J(r),...f});return D(w,r.body.Error)},Qn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new L2({$metadata:J(r),...f});return D(w,r.body.Error)},Jn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new z2({$metadata:J(r),...f});return D(w,r.body.Error)},Bn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new l2({$metadata:J(r),...f});return D(w,r.body.Error)},Mn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new r2({$metadata:J(r),...f});return D(w,r.body.Error)},Vn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new f2({$metadata:J(r),...f});return D(w,r.body.Error)},Hn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new N2({$metadata:J(r),...f});return D(w,r.body.Error)},ln=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new uI({$metadata:J(r),...f});return D(w,r.body.Error)},Dn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new M2({$metadata:J(r),...f});return D(w,r.body.Error)},kn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new g2({$metadata:J(r),...f});return D(w,r.body.Error)},yn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new s2({$metadata:J(r),...f});return D(w,r.body.Error)},Nn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new V2({$metadata:J(r),...f});return D(w,r.body.Error)},qn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new W2({$metadata:J(r),...f});return D(w,r.body.Error)},mn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new c2({$metadata:J(r),...f});return D(w,r.body.Error)},jn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new j2({$metadata:J(r),...f});return D(w,r.body.Error)},vn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new d2({$metadata:J(r),...f});return D(w,r.body.Error)},On=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new T2({$metadata:J(r),...f});return D(w,r.body.Error)},dn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new E2({$metadata:J(r),...f});return D(w,r.body.Error)},cn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);if(h.messages==="")f[x$]=[];else if(h[x$]!=null&&h[x$][Qr]!=null)f[x$]=Ya(Ar(h[x$][Qr]),s);let w=new nI({$metadata:J(r),...f});return D(w,r.body.Error)},bn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new h2({$metadata:J(r),...f});return D(w,r.body.Error)},_n=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new yI({$metadata:J(r),...f});return D(w,r.body.Error)},gn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new I2({$metadata:J(r),...f});return D(w,r.body.Error)},xn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new NI({$metadata:J(r),...f});return D(w,r.body.Error)},en=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new qI({$metadata:J(r),...f});return D(w,r.body.Error)},nn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new _2({$metadata:J(r),...f});return D(w,r.body.Error)},on=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new mI({$metadata:J(r),...f});return D(w,r.body.Error)},an=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new C2({$metadata:J(r),...f});return D(w,r.body.Error)},pn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new iI({$metadata:J(r),...f});return D(w,r.body.Error)},un=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new F2({$metadata:J(r),...f});return D(w,r.body.Error)},tn=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new Q2({$metadata:J(r),...f});return D(w,r.body.Error)},ro=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new J2({$metadata:J(r),...f});return D(w,r.body.Error)},fo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new v2({$metadata:J(r),...f});return D(w,r.body.Error)},so=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new q2({$metadata:J(r),...f});return D(w,r.body.Error)},ho=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new OI({$metadata:J(r),...f});return D(w,r.body.Error)},wo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new i2({$metadata:J(r),...f});return D(w,r.body.Error)},$o=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[Qr]!=null)f[Qr]=T(h[Qr]);let w=new eI({$metadata:J(r),...f});return D(w,r.body.Error)},Eo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[Qr]!=null)f[Qr]=T(h[Qr]);let w=new b2({$metadata:J(r),...f});return D(w,r.body.Error)},Io=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new G2({$metadata:J(r),...f});return D(w,r.body.Error)},Fo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new w2({$metadata:J(r),...f});return D(w,r.body.Error)},Uo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new O2({$metadata:J(r),...f});return D(w,r.body.Error)},To=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new oI({$metadata:J(r),...f});return D(w,r.body.Error)},Go=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new dI({$metadata:J(r),...f});return D(w,r.body.Error)},Ao=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new jI({$metadata:J(r),...f});return D(w,r.body.Error)},Lo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new H2({$metadata:J(r),...f});return D(w,r.body.Error)},zo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new Y2({$metadata:J(r),...f});return D(w,r.body.Error)},Wo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new k2({$metadata:J(r),...f});return D(w,r.body.Error)},Co=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new cI({$metadata:J(r),...f});return D(w,r.body.Error)},Ro=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new bI({$metadata:J(r),...f});return D(w,r.body.Error)},So=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new _I({$metadata:J(r),...f});return D(w,r.body.Error)},Yo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new A2({$metadata:J(r),...f});return D(w,r.body.Error)},Xo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new aI({$metadata:J(r),...f});return D(w,r.body.Error)},Ko=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new tI({$metadata:J(r),...f});return D(w,r.body.Error)},Po=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new $2({$metadata:J(r),...f});return D(w,r.body.Error)},Zo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new U2({$metadata:J(r),...f});return D(w,r.body.Error)},Qo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new R2({$metadata:J(r),...f});return D(w,r.body.Error)},Jo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new X2({$metadata:J(r),...f});return D(w,r.body.Error)},Bo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new P2({$metadata:J(r),...f});return D(w,r.body.Error)},Mo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new Z2({$metadata:J(r),...f});return D(w,r.body.Error)},Vo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new S2({$metadata:J(r),...f});return D(w,r.body.Error)},Ho=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new K2({$metadata:J(r),...f});return D(w,r.body.Error)},lo=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new D2({$metadata:J(r),...f});return D(w,r.body.Error)},Do=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new y2({$metadata:J(r),...f});return D(w,r.body.Error)},ko=async(r,s)=>{let f=Y({}),h=r.body.Error;if(h[X]!=null)f[X]=T(h[X]);let w=new m2({$metadata:J(r),...f});return D(w,r.body.Error)},wl=(r,s)=>{let f=new H(U0);if(r[Or]!=null)f.c(H.of(Kp,r[Or]).n(Or));if(r[o]!=null)f.c(H.of(aa,r[o]).n(o));return f},yo=(r,s)=>{let f=new H(ah);if(r[fr]!=null)f.c(H.of(A0,r[fr]).n(fr));if(f.cc(r,Xs),r[r1]!=null)f.c(H.of(oa,String(r[r1])).n(r1));return f},No=(r,s)=>{let f=new H(Wl);if(r[pw]!=null)f.c(H.of(rp,r[pw]).n(pw));if(r[$1]!=null)f.c(ao(r[$1],s).n($1));return f},qo=(r,s)=>{let f=new H(o2);if(r[Ur]!=null)f.c(H.of(sA,r[Ur]).n(Ur));return f.lc(r,"Changes","Changes",()=>mo(r[zl],s)),f},mo=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return No(f,s).n(Wl)})},$l=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(o$,f).n(pG)})},jo=(r,s)=>{let f=new H(fp);if(r[pr]!=null)f.c(H.of(Up,r[pr]).n(pr));if(r[pw]!=null)f.c(H.of(sp,r[pw]).n(pw));return f.lc(r,"CidrList","CidrList",()=>io(r[Tp],s)),f},vo=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return jo(f,s).n(Ps)})},io=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(YM,f).n(YM)})},Oo=(r,s)=>{let f=new H(ph);if(r[tw]!=null)f.c(H.of(Uu,r[tw]).n(tw));if(r[pr]!=null)f.c(H.of(Fp,r[pr]).n(pr));return f},co=(r,s)=>{let f=new H(uh);return f.cc(r,rF),f.cc(r,fF),f},bo=(r,s)=>{let f=new H(th);if(r[T0]!=null)f.c(H.of(Mp,r[T0]).n(T0));if(r[G0]!=null)f.c(H.of(Vp,r[G0]).n(G0));if(r[L0]!=null)f.c(H.of(Hp,r[L0]).n(L0));return f},_o=(r,s)=>{let f=new H(rw);if(f.cc(r,n2),f.cc(r,t2),r[uh]!=null)f.c(co(r[uh],s).n(uh));if(r[xh]!=null)f.c(H.of(xh,String(r[xh])).n(xh));return f},go=(r,s)=>{let f=new H(fw);if(f.cc(r,Yh),r[Ys]!=null)f.c(H.of(Ys,String(r[Ys])).n(Ys));if(r[zr]!=null)f.c(H.of(kp,r[zr]).n(zr));if(f.cc(r,p$),f.cc(r,e$),f.cc(r,t$),r[oh]!=null)f.c(H.of(oh,String(r[oh])).n(oh));if(r[Cs]!=null)f.c(H.of(Cs,String(r[Cs])).n(Cs));if(r[nh]!=null)f.c(H.of(nh,String(r[nh])).n(nh));if(r[Ss]!=null)f.c(H.of(Ss,String(r[Ss])).n(Ss));if(r[zs]!=null)f.c(H.of(zs,String(r[zs])).n(zs));if(r[Rs]!=null)f.c(H.of(Rs,String(r[Rs])).n(Rs));if(f.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>$l(r[_h],s)),r[Ws]!=null)f.c(H.of(Ws,String(r[Ws])).n(Ws));if(f.lc(r,"Regions","Regions",()=>El(r[gh],s)),r[U0]!=null)f.c(wl(r[U0],s).n(U0));return f.cc(r,a$),f.cc(r,sF),f},El=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(Dp,f).n(Or)})},xo=(r,s)=>{let f=new H(u2);if(r[Ur]!=null)f.c(H.of(sA,r[Ur]).n(Ur));if(r[w1]!=null)f.c(H.of(Np,String(r[w1])).n(w1));return f},eo=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(QM,f).n(QM)})},no=(r,s)=>{let f=new H(UF);if(r[Pr]!=null)f.c(H.of(mp,r[Pr]).n(Pr));return f},oo=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return no(f,s).n(UF)})},ao=(r,s)=>{let f=new H($1);if(r[o]!=null)f.c(H.of(Xs,r[o]).n(o));if(r[zr]!=null)f.c(H.of(gp,r[zr]).n(zr));if(r[E1]!=null)f.c(H.of(dp,r[E1]).n(E1));if(r[U1]!=null)f.c(H.of(_p,String(r[U1])).n(U1));if(r[Or]!=null)f.c(H.of(bp,r[Or]).n(Or));if(r[th]!=null)f.c(bo(r[th],s).n(th));if(r[f1]!=null)f.c(H.of(Op,r[f1]).n(f1));if(r[h1]!=null)f.c(H.of(cp,String(r[h1])).n(h1));if(r[ir]!=null)f.c(H.of(ir,String(r[ir])).n(ir));if(f.lc(r,"ResourceRecords","ResourceRecords",()=>oo(r[aw],s)),r[ah]!=null)f.c(yo(r[ah],s).n(ah));if(f.cc(r,o$),f.cc(r,$F),r[ph]!=null)f.c(Oo(r[ph],s).n(ph));if(r[rw]!=null)f.c(_o(r[rw],s).n(rw));return f},po=(r,s)=>{let f=new H(TF);if(r[sw]!=null)f.c(H.of(Cl,r[sw]).n(sw));if(r[Pr]!=null)f.c(H.of(wu,r[Pr]).n(Pr));return f},uo=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(Cl,f).n(sw)})},to=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return po(f,s).n(TF)})},ra=(r,s)=>{return r.filter((f)=>f!=null).map((f)=>{return H.of(hu,f).n(A0)})},sE=(r,s)=>{let f=new H(Cr);return f.cc(r,fE),f.cc(r,rE),f},fa=(r,s)=>{let f={};if(r[zr]!=null)f[zr]=T(r[zr]);if(r[Pr]!=null)f[Pr]=er(r[Pr]);return f},sa=(r,s)=>{let f={};if(r[Or]!=null)f[Or]=T(r[Or]);if(r[o]!=null)f[o]=T(r[o]);return f},ha=(r,s)=>{let f={};if(r[fr]!=null)f[fr]=T(r[fr]);if(r[Xs]!=null)f[Xs]=T(r[Xs]);if(r[r1]!=null)f[r1]=qr(r[r1]);return f},pf=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[If]!=null)f[If]=T(r[If]);if(r[vG]!=null)f[vG]=y(ih(r[vG]));if(r[Ur]!=null)f[Ur]=T(r[Ur]);return f},wa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},$a=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},Ea=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Ia(f,s)})},Ia=(r,s)=>{let f={};if(r[e5]!=null)f[e5]=T(r[e5]);if(r[pr]!=null)f[pr]=T(r[pr]);return f},Fa=(r,s)=>{let f={};if(r[uw]!=null)f[uw]=T(r[uw]);if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[o]!=null)f[o]=T(r[o]);if(r[i0]!=null)f[i0]=er(r[i0]);return f},Ua=(r,s)=>{let f={};if(r[tw]!=null)f[tw]=T(r[tw]);if(r[pr]!=null)f[pr]=T(r[pr]);return f},Ta=(r,s)=>{let f={};if(r[FG]!=null)f[FG]=$r(r[FG]);if(r[aG]!=null)f[aG]=TP(r[aG]);if(r[p5]!=null)f[p5]=T(r[p5]);if(r[yG]!=null)f[yG]=$r(r[yG]);if(r[SG]!=null)f[SG]=T(r[SG]);if(r[VG]!=null)f[VG]=T(r[VG]);if(r[gG]!=null)f[gG]=T(r[gG]);if(r.Dimensions==="")f[y$]=[];else if(r[y$]!=null&&r[y$][XM]!=null)f[y$]=Ra(Ar(r[y$][XM]),s);return f},Ga=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Aa(f,s)})},Aa=(r,s)=>{let f={};if(r[uw]!=null)f[uw]=T(r[uw]);if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[o]!=null)f[o]=T(r[o]);if(r[i0]!=null)f[i0]=er(r[i0]);return f},La=(r,s)=>{let f={};if(r[rF]!=null)f[rF]=T(r[rF]);if(r[fF]!=null)f[fF]=T(r[fF]);return f},hE=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[Xr]!=null)f[Xr]=T(r[Xr]);if(r.NameServers==="")f[v$]=[];else if(r[v$]!=null&&r[v$][PM]!=null)f[v$]=za(Ar(r[v$][PM]),s);return f},za=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},Wa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return hE(f,s)})},Ca=(r,s)=>{let f={};if(r[o]!=null)f[o]=T(r[o]);if(r[Pr]!=null)f[Pr]=T(r[Pr]);return f},Ra=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Ca(f,s)})},Sa=(r,s)=>{let f={};if(r[_G]!=null)f[_G]=T(r[_G]);if(r[I1]!=null)f[I1]=T(r[I1]);return f},Ya=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},Xa=(r,s)=>{let f={};if(r[T0]!=null)f[T0]=T(r[T0]);if(r[G0]!=null)f[G0]=T(r[G0]);if(r[L0]!=null)f[L0]=T(r[L0]);return f},Il=(r,s)=>{let f={};if(r[T0]!=null)f[T0]=T(r[T0]);if(r[o5]!=null)f[o5]=T(r[o5]);if(r[G0]!=null)f[G0]=T(r[G0]);if(r[a5]!=null)f[a5]=T(r[a5]);if(r[L0]!=null)f[L0]=T(r[L0]);if(r[dG]!=null)f[dG]=T(r[dG]);return f},Ka=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Il(f,s)})},Pa=(r,s)=>{let f={};if(r[n2]!=null)f[n2]=T(r[n2]);if(r[t2]!=null)f[t2]=T(r[t2]);if(r[uh]!=null)f[uh]=La(r[uh],s);if(r[xh]!=null)f[xh]=$r(r[xh]);return f},GF=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[Xr]!=null)f[Xr]=T(r[Xr]);if(r[s1]!=null)f[s1]=Gl(r[s1],s);if(r[fw]!=null)f[fw]=Za(r[fw],s);if(r[eh]!=null)f[eh]=er(r[eh]);if(r[t5]!=null)f[t5]=Ta(r[t5],s);return f},Za=(r,s)=>{let f={};if(r[Yh]!=null)f[Yh]=T(r[Yh]);if(r[Ys]!=null)f[Ys]=$r(r[Ys]);if(r[zr]!=null)f[zr]=T(r[zr]);if(r[p$]!=null)f[p$]=T(r[p$]);if(r[e$]!=null)f[e$]=T(r[e$]);if(r[t$]!=null)f[t$]=T(r[t$]);if(r[oh]!=null)f[oh]=$r(r[oh]);if(r[Cs]!=null)f[Cs]=$r(r[Cs]);if(r[nh]!=null)f[nh]=qr(r[nh]);if(r[Ss]!=null)f[Ss]=qr(r[Ss]);if(r[zs]!=null)f[zs]=qr(r[zs]);if(r[Rs]!=null)f[Rs]=$r(r[Rs]);if(r.ChildHealthChecks==="")f[_h]=[];else if(r[_h]!=null&&r[_h][pG]!=null)f[_h]=$a(Ar(r[_h][pG]),s);if(r[Ws]!=null)f[Ws]=qr(r[Ws]);if(r.Regions==="")f[gh]=[];else if(r[gh]!=null&&r[gh][Or]!=null)f[gh]=Ja(Ar(r[gh][Or]),s);if(r[U0]!=null)f[U0]=sa(r[U0],s);if(r[a$]!=null)f[a$]=T(r[a$]);if(r[sF]!=null)f[sF]=T(r[sF]);return f},Qa=(r,s)=>{let f={};if(r[Or]!=null)f[Or]=T(r[Or]);if(r[Yh]!=null)f[Yh]=T(r[Yh]);if(r[bG]!=null)f[bG]=ba(r[bG],s);return f},Fl=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Qa(f,s)})},Ja=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},Ba=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return GF(f,s)})},AF=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[o]!=null)f[o]=T(r[o]);if(r[Xr]!=null)f[Xr]=T(r[Xr]);if(r[fG]!=null)f[fG]=Ma(r[fG],s);if(r[mG]!=null)f[mG]=er(r[mG]);if(r[s1]!=null)f[s1]=Gl(r[s1],s);return f},Ma=(r,s)=>{let f={};if(r[Ur]!=null)f[Ur]=T(r[Ur]);if(r[w1]!=null)f[w1]=qr(r[w1]);return f},Va=(r,s)=>{let f={};if(r[zr]!=null)f[zr]=T(r[zr]);if(r[Pr]!=null)f[Pr]=er(r[Pr]);return f},Ha=(r,s)=>{let f={};if(r[lG]!=null)f[lG]=T(r[lG]);if(r[DG]!=null)f[DG]=T(r[DG]);return f},Ul=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return AF(f,s)})},la=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Da(f,s)})},Da=(r,s)=>{let f={};if(r[fr]!=null)f[fr]=T(r[fr]);if(r[o]!=null)f[o]=T(r[o]);if(r[HG]!=null)f[HG]=Ha(r[HG],s);return f},Tl=(r,s)=>{let f={};if(r[o]!=null)f[o]=T(r[o]);if(r[AG]!=null)f[AG]=T(r[AG]);if(r[UG]!=null)f[UG]=$r(r[UG]);if(r[iG]!=null)f[iG]=T(r[iG]);if(r[OG]!=null)f[OG]=$r(r[OG]);if(r[sG]!=null)f[sG]=T(r[sG]);if(r[hG]!=null)f[hG]=$r(r[hG]);if(r[WG]!=null)f[WG]=$r(r[WG]);if(r[EG]!=null)f[EG]=T(r[EG]);if(r[kG]!=null)f[kG]=T(r[kG]);if(r[$G]!=null)f[$G]=T(r[$G]);if(r[wG]!=null)f[wG]=T(r[wG]);if(r[If]!=null)f[If]=T(r[If]);if(r[I1]!=null)f[I1]=T(r[I1]);if(r[n5]!=null)f[n5]=y(ih(r[n5]));if(r[CG]!=null)f[CG]=y(ih(r[CG]));return f},ka=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Tl(f,s)})},Gl=(r,s)=>{let f={};if(r[cG]!=null)f[cG]=T(r[cG]);if(r[IG]!=null)f[IG]=T(r[IG]);return f},ya=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Na(f,s)})},Na=(r,s)=>{let f={};if(r[pr]!=null)f[pr]=T(r[pr]);return f},uG=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[fr]!=null)f[fr]=T(r[fr]);if(r[a2]!=null)f[a2]=T(r[a2]);return f},qa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return uG(f,s)})},ma=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return T(f)})},ja=(r,s)=>{let f={};if(r[Pr]!=null)f[Pr]=T(r[Pr]);return f},va=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return ja(f,s)})},ia=(r,s)=>{let f={};if(r[o]!=null)f[o]=T(r[o]);if(r[zr]!=null)f[zr]=T(r[zr]);if(r[E1]!=null)f[E1]=T(r[E1]);if(r[U1]!=null)f[U1]=er(r[U1]);if(r[Or]!=null)f[Or]=T(r[Or]);if(r[th]!=null)f[th]=Xa(r[th],s);if(r[f1]!=null)f[f1]=T(r[f1]);if(r[h1]!=null)f[h1]=qr(r[h1]);if(r[ir]!=null)f[ir]=er(r[ir]);if(r.ResourceRecords==="")f[aw]=[];else if(r[aw]!=null&&r[aw][UF]!=null)f[aw]=va(Ar(r[aw][UF]),s);if(r[ah]!=null)f[ah]=ha(r[ah],s);if(r[o$]!=null)f[o$]=T(r[o$]);if(r[$F]!=null)f[$F]=T(r[$F]);if(r[ph]!=null)f[ph]=Ua(r[ph],s);if(r[rw]!=null)f[rw]=Pa(r[rw],s);return f},Oa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return ia(f,s)})},Al=(r,s)=>{let f={};if(r[jG]!=null)f[jG]=T(r[jG]);if(r[A0]!=null)f[A0]=T(r[A0]);if(r.Tags==="")f[g$]=[];else if(r[g$]!=null&&r[g$][TF]!=null)f[g$]=ga(Ar(r[g$][TF]),s);return f},da=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return Al(f,s)})},ca=(r,s)=>{let f={};if(r[zr]!=null)f[zr]=T(r[zr]);if(r[Pr]!=null)f[Pr]=er(r[Pr]);return f},ba=(r,s)=>{let f={};if(r[If]!=null)f[If]=T(r[If]);if(r[u5]!=null)f[u5]=y(ih(r[u5]));return f},_a=(r,s)=>{let f={};if(r[sw]!=null)f[sw]=T(r[sw]);if(r[Pr]!=null)f[Pr]=T(r[Pr]);return f},ga=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return _a(f,s)})},xa=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return wE(f,s)})},wE=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[i0]!=null)f[i0]=$r(r[i0]);if(r[o]!=null)f[o]=T(r[o]);if(r[zr]!=null)f[zr]=T(r[zr]);if(r[m0]!=null)f[m0]=T(r[m0]);if(r[Ur]!=null)f[Ur]=T(r[Ur]);return f},LF=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[fr]!=null)f[fr]=T(r[fr]);if(r[o]!=null)f[o]=T(r[o]);if(r[ir]!=null)f[ir]=er(r[ir]);if(r[xG]!=null)f[xG]=T(r[xG]);if(r[Qr]!=null)f[Qr]=T(r[Qr]);if(r[F1]!=null)f[F1]=T(r[F1]);if(r[ef]!=null)f[ef]=$r(r[ef]);if(r[oG]!=null)f[oG]=T(r[oG]);return f},tG=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return LF(f,s)})},ea=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return na(f,s)})},na=(r,s)=>{let f={};if(r[Gr]!=null)f[Gr]=T(r[Gr]);if(r[o]!=null)f[o]=T(r[o]);if(r[zr]!=null)f[zr]=T(r[zr]);if(r[RG]!=null)f[RG]=$r(r[RG]);if(r[eG]!=null)f[eG]=$r(r[eG]);return f},rA=(r,s)=>{let f={};if(r[fE]!=null)f[fE]=T(r[fE]);if(r[rE]!=null)f[rE]=T(r[rE]);return f},Ll=(r,s)=>{return(r||[]).filter((f)=>f!=null).map((f)=>{return rA(f,s)})},J=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var pw="Action",oa="AliasHealthEnabled",U0="AlarmIdentifier",aa="AlarmName",pa="AddTags",ah="AliasTarget",ua="AssociateVPCComment",ta="AssociateVPCWithHostedZoneRequest",n2="AWSRegion",uw="Arn",xh="Bias",Ur="Comment",rp="ChangeAction",o2="ChangeBatch",V$="CidrBlocks",e5="CidrBlock",T0="ContinentCode",fp="CidrCollectionChange",sp="CidrCollectionChangeAction",hp="ChangeCidrCollectionRequest",wp="CreateCidrCollectionRequest",H$="CidrCollections",G0="CountryCode",n5="CreatedDate",_h="ChildHealthChecks",$p="CreateHealthCheckRequest",pG="ChildHealthCheck",Ep="CreateHostedZoneRequest",wr="ChangeInfo",l$="CheckerIpRanges",tw="CollectionId",Ip="CreateKeySigningKeyRequest",D$="CidrLocations",Fp="CidrLocationNameDefaultAllowed",Up="CidrLocationNameDefaultNotAllowed",Tp="CidrList",Gp="CidrNonce",Ap="CollectionName",o5="ContinentName",a5="CountryName",p5="ComparisonOperator",Lp="CreateQueryLoggingConfigRequest",Xr="CallerReference",ph="CidrRoutingConfig",zp="CreateReusableDelegationSetRequest",Wp="ChangeResourceRecordSetsRequest",u5="CheckedTime",Cp="ChangeTagsForResourceRequest",Rp="CreateTrafficPolicyInstanceRequest",Sp="CreateTrafficPolicyRequest",Yp="CreateTrafficPolicyVersionRequest",e2="CollectionVersion",Xp="CreateVPCAssociationAuthorizationRequest",t5="CloudWatchAlarmConfiguration",a2="CloudWatchLogsLogGroupArn",Kp="CloudWatchRegion",zl="Changes",Wl="Change",YM="Cidr",rG="Collection",fG="Config",uh="Coordinates",q0="Count",m0="Document",sG="DigestAlgorithmMnemonic",hG="DigestAlgorithmType",wG="DNSKEYRecord",Xs="DNSName",Wf="DelegationSet",p2="DelegationSetId",$G="DSRecord",k$="DelegationSets",EG="DigestValue",Pp="DeleteVPCAssociationAuthorizationRequest",Zp="DisassociateVPCComment",Qp="DisassociateVPCFromHostedZoneRequest",IG="Description",zs="Disabled",y$="Dimensions",XM="Dimension",Jp="EDNS0ClientSubnetIP",Bp="EDNS0ClientSubnetMask",FG="EvaluationPeriods",Ws="EnableSNI",r1="EvaluateTargetHealth",f1="Failover",e$="FullyQualifiedDomainName",Cs="FailureThreshold",UG="Flag",th="GeoLocation",Mp="GeoLocationContinentCode",Vp="GeoLocationCountryCode",n$="GeoLocationDetails",N$="GeoLocationDetailsList",Hp="GeoLocationSubdivisionCode",rw="GeoProximityLocation",Ks="HealthCheck",fw="HealthCheckConfig",TG="HealthCheckCount",o$="HealthCheckId",lp="HealthCheckNonce",E0="HealthCheckObservations",FF="HealthCheckObservation",Dp="HealthCheckRegion",kp="HealthCheckType",eh="HealthCheckVersion",q$="HealthChecks",Rs="HealthThreshold",Zf="HostedZone",u2="HostedZoneConfig",GG="HostedZoneCount",fr="HostedZoneId",Sh="HostedZoneIdMarker",m$="HostedZoneSummaries",KM="HostedZoneSummary",yp="HostedZoneType",I0="HostedZones",Ss="Inverted",a$="InsufficientDataHealthStatus",Yh="IPAddress",Np="IsPrivateZone",Tr="IsTruncated",Gr="Id",sw="Key",AG="KmsArn",LG="KeyManagementServiceArn",zG="KeySigningKey",j$="KeySigningKeys",WG="KeyTag",O0="Location",CG="LastModifiedDate",pr="LocationName",s1="LinkedService",qp="ListTagsForResourcesRequest",RG="LatestVersion",t2="LocalZoneGroup",rF="Latitude",j0="Limit",fF="Longitude",nf="Marker",p="MaxItems",nh="MeasureLatency",SG="MetricName",$E="MaxResults",h1="MultiValueAnswer",Qr="Message",o="Name",YG="NextContinentCode",XG="NextCountryCode",KG="NextDNSName",PG="NextHostedZoneId",v0="NextMarker",ZG="NextRecordIdentifier",QG="NextRecordName",JG="NextRecordType",v$="NameServers",BG="NextSubdivisionCode",PM="NameServer",Kr="NextToken",MG="Nameserver",VG="Namespace",fA="Nonce",HG="Owner",lG="OwningAccount",DG="OwningService",Ys="Port",kG="PublicKey",w1="PrivateZone",yG="Period",NG="Protocol",Xh="QueryLoggingConfig",i$="QueryLoggingConfigs",gh="Regions",qG="ResponseCode",sF="RoutingControlArn",sA="ResourceDescription",ZM="RecordDataEntry",mp="RData",O$="RecordData",jp="ResetElements",QM="ResettableElementName",A0="ResourceId",vp="ResolverIP",ip="ResourceIds",oh="RequestInterval",hF="RecordName",p$="ResourcePath",UF="ResourceRecord",d$="ResourceRecordSets",mG="ResourceRecordSetCount",Op="ResourceRecordSetFailover",dp="ResourceRecordSetIdentifier",cp="ResourceRecordSetMultiValueAnswer",bp="ResourceRecordSetRegion",_p="ResourceRecordSetWeight",$1="ResourceRecordSet",gp="RRType",aw="ResourceRecords",wF="RecordType",xp="RemoveTagKeys",u$="ResourceTagSet",c$="ResourceTagSets",jG="ResourceType",Or="Region",If="Status",vG="SubmittedAt",iG="SigningAlgorithmMnemonic",OG="SigningAlgorithmType",L0="SubdivisionCode",ep="StartContinentCode",np="StartCountryCode",E1="SetIdentifier",op="SigningKeyName",ap="SigningKeyString",pp="SigningKeyStatus",I1="StatusMessage",dG="SubdivisionName",cG="ServicePrincipal",bG="StatusReport",up="StartRecordIdentifier",tp="StartRecordName",ru="StartRecordType",t$="SearchString",fu="StartSubdivisionCode",_G="ServeSignature",gG="Statistic",xG="State",zr="Type",Cl="TagKey",Cf="TrafficPolicy",hA="TrafficPolicyComment",eG="TrafficPolicyCount",Rl="TrafficPolicyDocument",F1="TrafficPolicyId",nG="TrafficPolicyInstanceCount",$F="TrafficPolicyInstanceId",EF="TrafficPolicyIdMarker",of="TrafficPolicyInstanceNameMarker",af="TrafficPolicyInstanceTypeMarker",Ff="TrafficPolicyInstance",Ef="TrafficPolicyInstances",su="TrafficPolicyName",b$="TrafficPolicySummaries",JM="TrafficPolicySummary",oG="TrafficPolicyType",ef="TrafficPolicyVersion",IF="TrafficPolicyVersionMarker",_$="TrafficPolicies",hu="TagResourceId",ir="TTL",wu="TagValue",TF="Tag",g$="Tags",aG="Threshold",$u="UpdateHealthCheckRequest",Eu="UpdateHostedZoneCommentRequest",Iu="UpdateTrafficPolicyCommentRequest",Fu="UpdateTrafficPolicyInstanceRequest",Uu="UUID",Pr="Value",Cr="VPC",rE="VPCId",fE="VPCRegion",F0="VPCs",i0="Version",U1="Weight",Tu="continentcode",Gu="countrycode",Au="delegationsetid",Lu="dnsname",zu="edns0clientsubnetip",Wu="edns0clientsubnetmask",Cu="hostedzonetype",EE="hostedzoneid",Ru="identifier",Sl="id",z0="location",IE="maxresults",uf="maxitems",wA="marker",Ps="member",X="message",x$="messages",T1="nexttoken",Su="name",Yu="recordname",Xu="recordtype",Ku="resolverip",Pu="subdivisioncode",Zu="startcontinentcode",Qu="startcountrycode",Ju="startsubdivisioncode",Bu="type",Mu="trafficpolicyid",$A="trafficpolicyinstancename",EA="trafficpolicyinstancetype",Vu="trafficpolicyversion",Hu="vpcid",Dr='<?xml version="1.0" encoding="UTF-8"?>',lu="version",Du="vpcregion";class IA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(BM).de(cV).build(){}B();V();K();class FA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(MM).de(bV).build(){}B();V();K();class UA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(VM).de(_V).build(){}B();V();K();class TA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),CM(f),m(f)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(HM).de(gV).build(){}B();V();K();class GA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(lM).de(xV).build(){}B();V();K();class AA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(DM).de(eV).build(){}B();V();K();class LA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(kM).de(nV).build(){}B();V();K();class zA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(yM).de(oV).build(){}B();V();K();class WA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(NM).de(aV).build(){}B();V();K();class CA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(qM).de(pV).build(){}B();V();K();class RA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(mM).de(uV).build(){}B();V();K();class SA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(jM).de(tV).build(){}B();V();K();class YA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(vM).de(rH).build(){}B();V();K();class XA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(iM).de(fH).build(){}B();V();K();class KA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(OM).de(sH).build(){}B();V();K();class PA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(dM).de(hH).build(){}B();V();K();class ZA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(cM).de(wH).build(){}B();V();K();class QA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(bM).de($H).build(){}B();V();K();class JA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(_M).de(EH).build(){}B();V();K();class BA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(gM).de(IH).build(){}B();V();K();class MA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(xM).de(FH).build(){}B();V();K();class VA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(eM).de(UH).build(){}B();V();K();class HA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(nM).de(TH).build(){}B();V();K();class lA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(oM).de(GH).build(){}B();V();K();class DA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(aM).de(AH).build(){}B();V();K();class kA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(pM).de(LH).build(){}B();V();K();class yA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(uM).de(zH).build(){}B();V();K();class NA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(tM).de(WH).build(){}B();V();K();class qA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(rV).de(CH).build(){}B();V();K();class mA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(fV).de(RH).build(){}B();V();K();class jA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(sV).de(SH).build(){}B();V();K();class vA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(hV).de(YH).build(){}B();V();K();class iA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(wV).de(XH).build(){}B();V();K();class OA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser($V).de(KH).build(){}B();V();K();class dA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(EV).de(PH).build(){}B();V();K();class cA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(IV).de(ZH).build(){}B();V();K();class bA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(FV).de(QH).build(){}B();V();K();class _A extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(UV).de(JH).build(){}B();V();K();class gA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(TV).de(BH).build(){}B();V();K();class xA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(GV).de(MH).build(){}B();V();K();class eA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(AV).de(VH).build(){}B();V();K();class nA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(LV).de(HH).build(){}B();V();K();class oA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(zV).de(lH).build(){}B();V();K();class aA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(WV).de(DH).build(){}B();V();K();class pA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(CV).de(kH).build(){}B();V();K();class uA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(RV).de(yH).build(){}B();V();K();class tA extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(SV).de(NH).build(){}B();V();K();class r8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(YV).de(qH).build(){}B();V();K();class f8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(XV).de(mH).build(){}B();V();K();class s8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(KV).de(jH).build(){}B();V();K();class h8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(PV).de(vH).build(){}B();V();K();class w8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(QV).de(OH).build(){}B();V();K();class $8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(JV).de(dH).build(){}B();V();K();class E8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(ZV).de(iH).build(){}B();V();K();class I8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(BV).de(cH).build(){}B();V();K();class F8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(MV).de(bH).build(){}B();V();K();class U8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(VV).de(_H).build(){}B();V();K();class T8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(HV).de(gH).build(){}B();V();K();class G8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(lV).de(xH).build(){}B();V();K();class A8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(DV).de(eH).build(){}B();V();K();class L8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(yV).de(oH).build(){}B();V();K();class z8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(NV).de(aH).build(){}B();V();K();class W8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(kV).de(nH).build(){}B();V();K();class C8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(qV).de(pH).build(){}B();V();K();class R8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(mV).de(uH).build(){}B();V();K();class S8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(jV).de(tH).build(){}B();V();K();class Y8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(vV).de(rl).build(){}B();V();K();class X8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(iV).de(fl).build(){}B();V();K();class K8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(OV).de(sl).build(){}B();V();K();class P8 extends z.classBuilder().ep(Q).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions()),m(f)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(dV).de(hl).build(){}var ku={ActivateKeySigningKeyCommand:IA,AssociateVPCWithHostedZoneCommand:FA,ChangeCidrCollectionCommand:UA,ChangeResourceRecordSetsCommand:TA,ChangeTagsForResourceCommand:GA,CreateCidrCollectionCommand:AA,CreateHealthCheckCommand:LA,CreateHostedZoneCommand:zA,CreateKeySigningKeyCommand:WA,CreateQueryLoggingConfigCommand:CA,CreateReusableDelegationSetCommand:RA,CreateTrafficPolicyCommand:SA,CreateTrafficPolicyInstanceCommand:YA,CreateTrafficPolicyVersionCommand:XA,CreateVPCAssociationAuthorizationCommand:KA,DeactivateKeySigningKeyCommand:PA,DeleteCidrCollectionCommand:ZA,DeleteHealthCheckCommand:QA,DeleteHostedZoneCommand:JA,DeleteKeySigningKeyCommand:BA,DeleteQueryLoggingConfigCommand:MA,DeleteReusableDelegationSetCommand:VA,DeleteTrafficPolicyCommand:HA,DeleteTrafficPolicyInstanceCommand:lA,DeleteVPCAssociationAuthorizationCommand:DA,DisableHostedZoneDNSSECCommand:kA,DisassociateVPCFromHostedZoneCommand:yA,EnableHostedZoneDNSSECCommand:NA,GetAccountLimitCommand:qA,GetChangeCommand:mA,GetCheckerIpRangesCommand:jA,GetDNSSECCommand:vA,GetGeoLocationCommand:iA,GetHealthCheckCommand:OA,GetHealthCheckCountCommand:dA,GetHealthCheckLastFailureReasonCommand:cA,GetHealthCheckStatusCommand:bA,GetHostedZoneCommand:_A,GetHostedZoneCountCommand:gA,GetHostedZoneLimitCommand:xA,GetQueryLoggingConfigCommand:eA,GetReusableDelegationSetCommand:nA,GetReusableDelegationSetLimitCommand:oA,GetTrafficPolicyCommand:aA,GetTrafficPolicyInstanceCommand:pA,GetTrafficPolicyInstanceCountCommand:uA,ListCidrBlocksCommand:tA,ListCidrCollectionsCommand:r8,ListCidrLocationsCommand:f8,ListGeoLocationsCommand:s8,ListHealthChecksCommand:h8,ListHostedZonesCommand:E8,ListHostedZonesByNameCommand:w8,ListHostedZonesByVPCCommand:$8,ListQueryLoggingConfigsCommand:I8,ListResourceRecordSetsCommand:F8,ListReusableDelegationSetsCommand:U8,ListTagsForResourceCommand:T8,ListTagsForResourcesCommand:G8,ListTrafficPoliciesCommand:A8,ListTrafficPolicyInstancesCommand:W8,ListTrafficPolicyInstancesByHostedZoneCommand:L8,ListTrafficPolicyInstancesByPolicyCommand:z8,ListTrafficPolicyVersionsCommand:C8,ListVPCAssociationAuthorizationsCommand:R8,TestDNSAnswerCommand:S8,UpdateHealthCheckCommand:Y8,UpdateHostedZoneCommentCommand:X8,UpdateTrafficPolicyCommentCommand:K8,UpdateTrafficPolicyInstanceCommand:P8};class Kh extends g5{}gs(ku,Kh);hw();ww();$w();Dh();kf();var G1=e(mr(),1);Sw();B();Gs();K();var Yl=e(Br(),1);Us();var Xl=async(r,s,f)=>{return{operation:lf(s).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function yu(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:r.region},propertiesExtractor:(s,f)=>({signingProperties:{config:s,context:f}})}}var Kl=(r)=>{let s=[];switch(r.operation){default:s.push(yu(r))}return s},Pl=(r)=>{return{...Yl.resolveAwsSdkSigV4Config(r)}};var Zl=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},_={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ql={name:"@aws-sdk/client-route-53-domains",description:"AWS SDK for JavaScript Route 53 Domains Client for Node.js, Browser and React Native",version:"3.670.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53-domains","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53-domains"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.670.0","@aws-sdk/client-sts":"3.670.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.670.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.669.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.670.0","@aws-sdk/util-user-agent-node":"3.669.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53-domains",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53-domains"}};var il=e(Br(),1);n1();Hw();kf();lw();Gs();vs();fh();Dw();Yf();var jl=e(Br(),1);K();t0();Z0();_s();Vh();Es();var Jl={["required"]:!1,type:"String"},Bl={["required"]:!0,default:!1,type:"Boolean"},Ml={["ref"]:"Endpoint"},yl={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},Nl={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},W0={},Vl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Hl={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},ll=[yl],Dl=[Nl],kl=[{["ref"]:"Region"}],qu={version:"1.0",parameters:{Region:Jl,UseDualStack:Bl,UseFIPS:Bl,Endpoint:Jl},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[Ml]}],rules:[{conditions:ll,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Dl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:Ml,properties:W0,headers:W0},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:kl}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:kl,assign:"PartitionResult"}],rules:[{conditions:[yl,Nl],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Vl]},Hl],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:W0,headers:W0},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:ll,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Vl,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:W0,headers:W0},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Dl,rules:[{conditions:[Hl],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:W0,headers:W0},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:W0,headers:W0},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},ql=qu;var mu=new ws({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),ml=(r,s={})=>{return mu.get(r,()=>$s(ql,{endpointParams:r,logger:s.logger}))};tr.aws=Is;var vl=(r)=>{return{apiVersion:"2014-05-15",base64Decoder:r?.base64Decoder??Gf,base64Encoder:r?.base64Encoder??Lf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??ml,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??Kl,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new jl.AwsSdkSigV4Signer}],logger:r?.logger??new Kf,serviceId:r?.serviceId??"Route 53 Domains",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??gr,utf8Encoder:r?.utf8Encoder??Af}};K();kw();K();var Ol=(r)=>{os(process.version);let s=s0(r),f=()=>s().then(ns),h=vl(r);return il.emitWarningIfUnsupportedVersion(process.version),{...h,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??f0,credentialDefaultProvider:r?.credentialDefaultProvider??J0,defaultUserAgentProvider:r?.defaultUserAgentProvider??ts({serviceId:h.serviceId,clientVersion:Ql.version}),maxAttempts:r?.maxAttempts??t(ds),region:r?.region??t(Df,qs),requestHandler:sf.create(r?.requestHandler??f),retryMode:r?.retryMode??t({...bs,default:async()=>(await f()).retryMode||jf}),sha256:r?.sha256??As.bind(null,"sha256"),streamCollector:r?.streamCollector??vf,useDualstackEndpoint:r?.useDualstackEndpoint??t(ys),useFipsEndpoint:r?.useFipsEndpoint??t(Ns),userAgentAppId:r?.userAgentAppId??t(r0)}};yw();yr();K();var dl=(r)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:f,credentials:h}=r;return{setHttpAuthScheme(w){let $=s.findIndex((E)=>E.schemeId===w.schemeId);if($===-1)s.push(w);else s.splice($,1,w)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(w){f=w},httpAuthSchemeProvider(){return f},setCredentials(w){h=w},credentials(){return h}}},cl=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var zF=(r)=>r,bl=(r,s)=>{let f={...zF(h0(r)),...zF(as(r)),...zF(Qs(r)),...zF(dl(r))};return s.forEach((h)=>h.configure(f)),{...r,...w0(f),...ps(f),...Js(f),...cl(f)}};class Z8 extends Xf{constructor(...[r]){let s=Ol(r||{}),f=Zl(s),h=Ds(f),w=cs(h),$=ms(w),E=Bs($),I=is(E),F=Pl(I),U=bl(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(ks(this.config)),this.middlewareStack.use(us(this.config)),this.middlewareStack.use(js(this.config)),this.middlewareStack.use(Ms(this.config)),this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(Hs(this.config)),this.middlewareStack.use(G1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Xl,identityProviderConfigProvider:async(A)=>new G1.DefaultIdentityProviderConfig({"aws.auth#sigv4":A.credentials})})),this.middlewareStack.use(G1.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}K();B();V();K();K();K();class tf extends Of{constructor(r){super(r);Object.setPrototypeOf(this,tf.prototype)}}class WF extends tf{constructor(r){super({name:"DomainLimitExceeded",$fault:"client",...r});this.name="DomainLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,WF.prototype)}}class CF extends tf{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,CF.prototype)}}class RF extends tf{constructor(r){super({name:"OperationLimitExceeded",$fault:"client",...r});this.name="OperationLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,RF.prototype)}}class SF extends tf{constructor(r){super({name:"UnsupportedTLD",$fault:"client",...r});this.name="UnsupportedTLD",this.$fault="client",Object.setPrototypeOf(this,SF.prototype)}}class YF extends tf{constructor(r){super({name:"DnssecLimitExceeded",$fault:"client",...r});this.name="DnssecLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,YF.prototype)}}class XF extends tf{constructor(r){super({name:"DuplicateRequest",$fault:"client",...r});this.name="DuplicateRequest",this.$fault="client",Object.setPrototypeOf(this,XF.prototype),this.requestId=r.requestId}}class KF extends tf{constructor(r){super({name:"TLDRulesViolation",$fault:"client",...r});this.name="TLDRulesViolation",this.$fault="client",Object.setPrototypeOf(this,KF.prototype)}}var _l=(r)=>({...r,...r.Password&&{Password:a}}),gl=(r)=>({...r,...r.AuthCode&&{AuthCode:a}});var xl=(r)=>({...r,...r.AdminContact&&{AdminContact:a},...r.RegistrantContact&&{RegistrantContact:a},...r.TechContact&&{TechContact:a},...r.AbuseContactEmail&&{AbuseContactEmail:a},...r.AbuseContactPhone&&{AbuseContactPhone:a},...r.BillingContact&&{BillingContact:a}}),el=(r)=>({...r,...r.AdminContact&&{AdminContact:a},...r.RegistrantContact&&{RegistrantContact:a},...r.TechContact&&{TechContact:a},...r.BillingContact&&{BillingContact:a}}),nl=(r)=>({...r,...r.emailAddress&&{emailAddress:a}}),ol=(r)=>({...r,...r.AuthCode&&{AuthCode:a}}),al=(r)=>({...r,...r.AuthCode&&{AuthCode:a},...r.AdminContact&&{AdminContact:a},...r.RegistrantContact&&{RegistrantContact:a},...r.TechContact&&{TechContact:a},...r.BillingContact&&{BillingContact:a}}),pl=(r)=>({...r,...r.Password&&{Password:a}}),ul=(r)=>({...r,...r.AdminContact&&{AdminContact:a},...r.RegistrantContact&&{RegistrantContact:a},...r.TechContact&&{TechContact:a},...r.BillingContact&&{BillingContact:a}}),tl=(r)=>({...r,...r.FIAuthKey&&{FIAuthKey:a}});var sr=e(Br(),1);yr();K();var rD=async(r,s)=>{let f=Fr("AcceptDomainTransferFromAnotherAwsAccount"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},fD=async(r,s)=>{let f=Fr("AssociateDelegationSignerToDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},sD=async(r,s)=>{let f=Fr("CancelDomainTransferToAnotherAwsAccount"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},hD=async(r,s)=>{let f=Fr("CheckDomainAvailability"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},wD=async(r,s)=>{let f=Fr("CheckDomainTransferability"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},$D=async(r,s)=>{let f=Fr("DeleteDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},ED=async(r,s)=>{let f=Fr("DeleteTagsForDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},ID=async(r,s)=>{let f=Fr("DisableDomainAutoRenew"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},FD=async(r,s)=>{let f=Fr("DisableDomainTransferLock"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},UD=async(r,s)=>{let f=Fr("DisassociateDelegationSignerFromDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},TD=async(r,s)=>{let f=Fr("EnableDomainAutoRenew"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},GD=async(r,s)=>{let f=Fr("EnableDomainTransferLock"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},AD=async(r,s)=>{let f=Fr("GetContactReachabilityStatus"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},LD=async(r,s)=>{let f=Fr("GetDomainDetail"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},zD=async(r,s)=>{let f=Fr("GetDomainSuggestions"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},WD=async(r,s)=>{let f=Fr("GetOperationDetail"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},CD=async(r,s)=>{let f=Fr("ListDomains"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},RD=async(r,s)=>{let f=Fr("ListOperations"),h;return h=JSON.stringify(gu(r,s)),Ir(s,f,"/",void 0,h)},SD=async(r,s)=>{let f=Fr("ListPrices"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},YD=async(r,s)=>{let f=Fr("ListTagsForDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},XD=async(r,s)=>{let f=Fr("PushDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},KD=async(r,s)=>{let f=Fr("RegisterDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},PD=async(r,s)=>{let f=Fr("RejectDomainTransferFromAnotherAwsAccount"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},ZD=async(r,s)=>{let f=Fr("RenewDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},QD=async(r,s)=>{let f=Fr("ResendContactReachabilityEmail"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},JD=async(r,s)=>{let f=Fr("ResendOperationAuthorization"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},BD=async(r,s)=>{let f=Fr("RetrieveDomainAuthCode"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},MD=async(r,s)=>{let f=Fr("TransferDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},VD=async(r,s)=>{let f=Fr("TransferDomainToAnotherAwsAccount"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},HD=async(r,s)=>{let f=Fr("UpdateDomainContact"),h;return h=JSON.stringify(xu(r,s)),Ir(s,f,"/",void 0,h)},lD=async(r,s)=>{let f=Fr("UpdateDomainContactPrivacy"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},DD=async(r,s)=>{let f=Fr("UpdateDomainNameservers"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},kD=async(r,s)=>{let f=Fr("UpdateTagsForDomain"),h;return h=JSON.stringify(q(r)),Ir(s,f,"/",void 0,h)},yD=async(r,s)=>{let f=Fr("ViewBilling"),h;return h=JSON.stringify(eu(r,s)),Ir(s,f,"/",void 0,h)},ND=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},qD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},mD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},jD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},vD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},iD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},OD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},dD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},cD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},bD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},_D=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},gD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},xD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},eD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=rt(f,s),{$metadata:rr(r),...h}},nD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},oD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=ft(f,s),{$metadata:rr(r),...h}},aD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=st(f,s),{$metadata:rr(r),...h}},pD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=ht(f,s),{$metadata:rr(r),...h}},uD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=wt(f,s),{$metadata:rr(r),...h}},tD=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},rk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);return await xr(r.body,s),{$metadata:rr(r)}},fk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},sk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},hk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},wk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},$k=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);return await xr(r.body,s),{$metadata:rr(r)}},Ek=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},Ik=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},Fk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},Uk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},Tk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},Gk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},Ak=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=q(f),{$metadata:rr(r),...h}},Lk=async(r,s)=>{if(r.statusCode>=300)return Er(r,s);let f=await sr.parseJsonBody(r.body,s),h={};return h=It(f,s),{$metadata:rr(r),...h}},Er=async(r,s)=>{let f={...r,body:await sr.parseJsonErrorBody(r.body,s)},h=sr.loadRestJsonErrorCode(r,f.body);switch(h){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await vu(f,s);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await Ou(f,s);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await du(f,s);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await bu(f,s);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await ju(f,s);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await iu(f,s);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await cu(f,s);default:let w=f.body;return Ft({output:r,parsedBody:w,errorCode:h})}},ju=async(r,s)=>{let f=r.body,h=q(f),w=new YF({$metadata:rr(r),...h});return D(w,f)},vu=async(r,s)=>{let f=r.body,h=q(f),w=new WF({$metadata:rr(r),...h});return D(w,f)},iu=async(r,s)=>{let f=r.body,h=q(f),w=new XF({$metadata:rr(r),...h});return D(w,f)},Ou=async(r,s)=>{let f=r.body,h=q(f),w=new CF({$metadata:rr(r),...h});return D(w,f)},du=async(r,s)=>{let f=r.body,h=q(f),w=new RF({$metadata:rr(r),...h});return D(w,f)},cu=async(r,s)=>{let f=r.body,h=q(f),w=new KF({$metadata:rr(r),...h});return D(w,f)},bu=async(r,s)=>{let f=r.body,h=q(f),w=new SF({$metadata:rr(r),...h});return D(w,f)},_u=(r,s)=>{return u(r,{Currency:[],MaxPrice:VP})},gu=(r,s)=>{return u(r,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:q,SubmittedSince:(f)=>f.getTime()/1000,Type:q})},xu=(r,s)=>{return u(r,{AdminContact:q,BillingContact:q,Consent:(f)=>_u(f,s),DomainName:[],RegistrantContact:q,TechContact:q})},eu=(r,s)=>{return u(r,{End:(f)=>f.getTime()/1000,Marker:[],MaxItems:[],Start:(f)=>f.getTime()/1000})},nu=(r,s)=>{return u(r,{BillDate:(f)=>y(xs(zf(f))),DomainName:T,InvoiceId:T,Operation:T,Price:_6})},ou=(r,s)=>{return(r||[]).filter((h)=>h!=null).map((h)=>{return nu(h,s)})},au=(r,s)=>{return u(r,{ChangeOwnershipPrice:(f)=>FE(f,s),Name:T,RegistrationPrice:(f)=>FE(f,s),RenewalPrice:(f)=>FE(f,s),RestorationPrice:(f)=>FE(f,s),TransferPrice:(f)=>FE(f,s)})},pu=(r,s)=>{return(r||[]).filter((h)=>h!=null).map((h)=>{return au(h,s)})},uu=(r,s)=>{return u(r,{AutoRenew:sh,DomainName:T,Expiry:(f)=>y(xs(zf(f))),TransferLock:sh})},tu=(r,s)=>{return(r||[]).filter((h)=>h!=null).map((h)=>{return uu(h,s)})},rt=(r,s)=>{return u(r,{AbuseContactEmail:T,AbuseContactPhone:T,AdminContact:q,AdminPrivacy:sh,AutoRenew:sh,BillingContact:q,BillingPrivacy:sh,CreationDate:(f)=>y(xs(zf(f))),DnsSec:T,DnssecKeys:q,DomainName:T,ExpirationDate:(f)=>y(xs(zf(f))),Nameservers:q,RegistrantContact:q,RegistrantPrivacy:sh,RegistrarName:T,RegistrarUrl:T,RegistryDomainId:T,Reseller:T,StatusList:q,TechContact:q,TechPrivacy:sh,UpdatedDate:(f)=>y(xs(zf(f))),WhoIsServer:T})},ft=(r,s)=>{return u(r,{DomainName:T,LastUpdatedDate:(f)=>y(xs(zf(f))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(f)=>y(xs(zf(f))),Type:T})},st=(r,s)=>{return u(r,{Domains:(f)=>tu(f,s),NextPageMarker:T})},ht=(r,s)=>{return u(r,{NextPageMarker:T,Operations:(f)=>Et(f,s)})},wt=(r,s)=>{return u(r,{NextPageMarker:T,Prices:(f)=>pu(f,s)})},$t=(r,s)=>{return u(r,{DomainName:T,LastUpdatedDate:(f)=>y(xs(zf(f))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(f)=>y(xs(zf(f))),Type:T})},Et=(r,s)=>{return(r||[]).filter((h)=>h!=null).map((h)=>{return $t(h,s)})},FE=(r,s)=>{return u(r,{Currency:T,Price:_6})},It=(r,s)=>{return u(r,{BillingRecords:(f)=>ou(f,s),NextPageMarker:T})},rr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var Ft=es(tf),Ir=async(r,s,f,h,w)=>{let{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+f:F+f,headers:s};if(h!==void 0)U.hostname=h;if(w!==void 0)U.body=w;return new Vr(U)};function Fr(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${r}`}}class Q8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(_l,void 0).ser(rD).de(ND).build(){}B();V();K();class J8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(fD).de(qD).build(){}B();V();K();class B8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(sD).de(mD).build(){}B();V();K();class M8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(hD).de(jD).build(){}B();V();K();class V8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(gl,void 0).ser(wD).de(vD).build(){}B();V();K();class H8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser($D).de(iD).build(){}B();V();K();class l8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(ED).de(OD).build(){}B();V();K();class D8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(ID).de(dD).build(){}B();V();K();class k8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(FD).de(cD).build(){}B();V();K();class y8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(UD).de(bD).build(){}B();V();K();class N8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(TD).de(_D).build(){}B();V();K();class q8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(GD).de(gD).build(){}B();V();K();class m8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(AD).de(xD).build(){}B();V();K();class j8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,xl).ser(LD).de(eD).build(){}B();V();K();class v8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(zD).de(nD).build(){}B();V();K();class i8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(WD).de(oD).build(){}B();V();K();class O8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(CD).de(aD).build(){}B();V();K();class d8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(RD).de(pD).build(){}B();V();K();class c8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(SD).de(uD).build(){}B();V();K();class b8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(YD).de(tD).build(){}B();V();K();class _8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(XD).de(rk).build(){}B();V();K();class g8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(el,void 0).ser(KD).de(fk).build(){}B();V();K();class x8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(PD).de(sk).build(){}B();V();K();class e8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(ZD).de(hk).build(){}B();V();K();class n8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,nl).ser(QD).de(wk).build(){}B();V();K();class o8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(JD).de($k).build(){}B();V();K();class a8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,ol).ser(BD).de(Ek).build(){}B();V();K();class p8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(al,void 0).ser(MD).de(Ik).build(){}B();V();K();class u8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,pl).ser(VD).de(Fk).build(){}B();V();K();class t8 extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(ul,void 0).ser(HD).de(Uk).build(){}B();V();K();class rL extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(lD).de(Tk).build(){}B();V();K();class fL extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(tl,void 0).ser(DD).de(Gk).build(){}B();V();K();class sL extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(kD).de(Ak).build(){}B();V();K();class hL extends z.classBuilder().ep(_).m(function(r,s,f,h){return[W(f,this.serialize,this.deserialize),C(f,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(yD).de(Lk).build(){}var Ut={AcceptDomainTransferFromAnotherAwsAccountCommand:Q8,AssociateDelegationSignerToDomainCommand:J8,CancelDomainTransferToAnotherAwsAccountCommand:B8,CheckDomainAvailabilityCommand:M8,CheckDomainTransferabilityCommand:V8,DeleteDomainCommand:H8,DeleteTagsForDomainCommand:l8,DisableDomainAutoRenewCommand:D8,DisableDomainTransferLockCommand:k8,DisassociateDelegationSignerFromDomainCommand:y8,EnableDomainAutoRenewCommand:N8,EnableDomainTransferLockCommand:q8,GetContactReachabilityStatusCommand:m8,GetDomainDetailCommand:j8,GetDomainSuggestionsCommand:v8,GetOperationDetailCommand:i8,ListDomainsCommand:O8,ListOperationsCommand:d8,ListPricesCommand:c8,ListTagsForDomainCommand:b8,PushDomainCommand:_8,RegisterDomainCommand:g8,RejectDomainTransferFromAnotherAwsAccountCommand:x8,RenewDomainCommand:e8,ResendContactReachabilityEmailCommand:n8,ResendOperationAuthorizationCommand:o8,RetrieveDomainAuthCodeCommand:a8,TransferDomainCommand:p8,TransferDomainToAnotherAwsAccountCommand:u8,UpdateDomainContactCommand:t8,UpdateDomainContactPrivacyCommand:rL,UpdateDomainNameserversCommand:fL,UpdateTagsForDomainCommand:sL,ViewBillingCommand:hL};class UE extends Z8{}gs(Ut,UE);import{runAction as Tt}from"@stacksjs/actions";import{config as Wk}from"@stacksjs/config";import{Action as Gt}from"@stacksjs/enums";import{err as d0,handleError as C0,ok as A1}from"@stacksjs/error-handling";import{log as Qf}from"@stacksjs/logging";import{path as At}from"@stacksjs/path";import{fs as zk}from"@stacksjs/storage";async function Dlr(r){let s=new Kh,f=await s.listHostedZonesByName({DNSName:r});if(!f||!f.HostedZones)return d0(C0(`No hosted zones found for domain: ${r}`));let h=f.HostedZones.find(($)=>$.Name===`${r}.`);if(!h)return d0(C0(`Hosted Zone not found for domain: ${r}`));let w=await s.listResourceRecordSets({HostedZoneId:h.Id});if(!w||!w.ResourceRecordSets)return d0(C0(`No DNS records found for domain: ${r}`));for(let $ of w.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await s.changeResourceRecordSets({HostedZoneId:h.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return await s.deleteHostedZone({Id:h.Id}),Qf.info(`Deleted Hosted Zone for domain: ${r}`),A1("success")}async function klr(r){let s=new Kh,f=await s.listHostedZonesByName({DNSName:r});if(!f||!f.HostedZones)return d0(C0(`No hosted zones found for domain: ${r}`));let h=f.HostedZones.find(($)=>$.Name===`${r}.`);if(!h)return d0(C0(`Hosted Zone not found for domain: ${r}`));let w=await s.listResourceRecordSets({HostedZoneId:h.Id});if(!w||!w.ResourceRecordSets)return d0(C0(`No DNS records found for domain: ${r}`));for(let $ of w.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await s.changeResourceRecordSets({HostedZoneId:h.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return Qf.info(`Deleted DNS records for domain: ${r}`),A1("success")}async function ylr(r){let s=new Kh,h=(await s.listHostedZonesByName({DNSName:r})).HostedZones?.find(($)=>$.Name===`${r}.`);if(h)return A1(h);let w=await s.createHostedZone({Name:r,CallerReference:`${Date.now()}`});if(!w.HostedZone)return d0(C0("Failed to create hosted zone"));return A1(w)}function Lt(r){try{let s=At.projectConfigPath("dns.ts"),h=zk.readFileSync(s,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${r.map((w)=>`'${w}'`).join(", ")}]`);zk.writeFileSync(s,h,"utf-8"),Qf.info("Nameservers have been set.")}catch(s){console.error("Error updating nameservers:",s)}}async function Nlr(r){try{let s=new Kh,{HostedZones:f}=await s.listHostedZonesByName({DNSName:r});if(!f)return d0(C0(`No hosted zones found for domain ${r}`));let h=f[0];if(h&&h.Name===`${r}.`)return A1(h.Id);return A1(null)}catch(s){return d0(C0(`Failed to find hosted zone for domain ${r}`,s))}}async function zt(r){if(Qf.debug("Getting nameservers for domain:",r),!r)return[];try{return(await new UE().getDomainDetail({DomainName:r}))?.Nameservers?.map((h)=>h.Name)||[]}catch(s){C0("Error getting domain detail",s)}}async function Wt(r,s){if(!s)s=Wk.app.url;let f=await zt(s);if(f&&r&&JSON.stringify(f.sort())!==JSON.stringify(r.sort()))return Qf.info("Updating your domain nameservers to match the ones in your hosted zone..."),Qf.debug("Hosted zone nameservers:",r),Qf.debug("Domain nameservers:",f),await new UE().updateDomainNameservers({DomainName:s,Nameservers:r.map((w)=>({Name:w}))}),Lt(r),Qf.info("Nameservers updated."),!0;Qf.success("Your nameservers are up to date.")}async function qlr(r){if(Qf.debug("Checking if domain has been added to cloud..."),!r)r=Wk.app.url;Qf.debug("domainName:",r);let s=new Kh,f=await s.listHostedZonesByName({DNSName:r});if(Qf.debug("Existing hosted zones:",f),!f||!f.HostedZones)return!1;let h=f.HostedZones.find((w)=>w.Name===`${r}.`);if(h){Qf.debug("Hosted zone found:",h);let $=(await s.getHostedZone({Id:h.Id})).DelegationSet?.NameServers||[];return await Wt($,r),!0}return!1}async function mlr(r){return await Tt(Gt.DomainsAdd,r)}export{Lt as writeNameserversToConfig,Wt as updateNameservers,qlr as hasUserDomainBeenAddedToCloud,zt as getNameservers,Nlr as findHostedZone,klr as deleteHostedZoneRecords,Dlr as deleteHostedZone,ylr as createHostedZone,mlr as addDomain};